/*
Theme Name: ADISEP
Description: Thème sobre et très lisible, pensé pour un public peu à l'aise avec l'informatique.
Version: 1.3.11
Requires PHP: 8.1
Text Domain: adisep
*/

:root {
	--encre: #1b2430;
	--encre-douce: #46525f;
	--fond: #f7f6f2;
	--surface: #ffffff;
	--marine: #17324d;
	--marine-fonce: #0f2438;
	--foret: #0f6b52;
	--foret-fonce: #0b5340;
	--foret-fond: #e3f3ec;
	--soleil: #f4b71a;
	--soleil-fond: #fff5d6;
	--ciel: #12689c;
	--ciel-fond: #e1f0f9;
	--terre: #a8481c;
	--terre-fond: #fbeade;
	--prune: #6a3f8f;
	--prune-fond: #f1e8f7;
	--lien: #0b4f8a;
	--trait: #c9cdd2;
	--trait-fort: #5c6875;
	--ocre: #8a5a00;
	--ocre-fond: #fbf3df;
	--vert: #1d6b3a;
	--vert-fond: #e6f3ea;
	--rouge: #a4231c;
	--rouge-fond: #fbe9e7;
	--bleu-fond: #e8f0f7;
	--rayon: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--fond);
	color: var(--encre);
	font-family: Verdana, "DejaVu Sans", Geneva, Tahoma, sans-serif;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

h1, h2, h3 { color: var(--marine); line-height: 1.25; margin: 1.6em 0 .6em; font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; font-family: Verdana, "DejaVu Sans", Geneva, sans-serif; }
p { margin: 0 0 1em; }
small { font-size: .85rem; color: var(--encre-douce); }
hr { border: 0; border-top: 1px solid var(--trait); margin: 1.5rem 0; }
img { max-width: 100%; height: auto; }

a { color: var(--lien); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--marine-fonce); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #d17a00; outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: -999px; top: 0; background: #fff; padding: .75rem 1rem; z-index: 10; }
.lien-evitement:focus { left: 8px; top: 8px; }

/* En-tête */
.site-entete { background: var(--marine); color: #fff; }
.site-entete a { color: #fff; }
.entete-haut { max-width: 72rem; margin: 0 auto; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.site-nom { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 700; text-decoration: none; letter-spacing: .03em; }
.site-nom small { display: block; color: #d6dfe7; font-family: Verdana, sans-serif; font-size: .8rem; font-weight: 400; letter-spacing: 0; }
.site-nom-logo { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.site-logo, .logo-apercu img { flex: none; width: auto; height: auto; max-height: 4rem; max-width: 14rem; }
@media (max-width: 40rem) { .site-logo, .logo-apercu img { max-height: 3rem; max-width: 9rem; } }
.logo-apercu { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 1rem 1.25rem; border-radius: var(--rayon); background: linear-gradient(100deg, var(--marine) 0%, var(--foret) 100%); color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 700; letter-spacing: .03em; }
.logo-apercu span { overflow-wrap: normal; word-break: normal; }
.logo-icone img { vertical-align: middle; margin-left: .5rem; border-radius: 4px; }
.entete-compte { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.entete-compte .bouton { background: #fff; color: var(--marine); border-color: #fff; }

.nav-principale { background: var(--marine-fonce); }
.nav-bureau { background: #5c4400; }
.nav-principale ul { list-style: none; max-width: 72rem; margin: 0 auto; padding: 0 .5rem; display: flex; flex-wrap: wrap; }
.nav-principale a { display: block; padding: .8rem .85rem; color: #fff; text-decoration: none; font-size: .95rem; border-bottom: 4px solid transparent; }
.nav-principale a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-principale a[aria-current="page"] { border-bottom-color: #ffc861; font-weight: 700; }
.nav-etiquette { display: block; color: #ffe3a8; font-size: .8rem; padding: .5rem .85rem 0; width: 100%; }

/* Contenu */
.contenu { max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem 3.5rem; }
.contenu-etroit { max-width: 46rem; }
.page-titre { margin-bottom: 1.25rem; }
section { margin-bottom: 2.5rem; }

/* Sections de la page d'accueil */
.wp-block-group { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.5rem 1.75rem; margin-bottom: 1.75rem; }
.wp-block-group > :first-child, .wp-block-group__inner-container > :first-child { margin-top: 0; }
.wp-block-group > :last-child, .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.deux-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; }
.deux-choix h2 { margin-top: 0; font-size: 1.3rem; }
.section-acces { background: var(--bleu-fond); border-color: #b9cfe2; }

/* Boutons */
.bouton {
	display: inline-block;
	min-height: 3rem;
	padding: .65rem 1.25rem;
	background: var(--marine);
	color: #fff;
	border: 2px solid var(--marine);
	border-radius: var(--rayon);
	font: inherit;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.bouton:hover { background: var(--marine-fonce); border-color: var(--marine-fonce); color: #fff; }
.bouton-principal { font-size: 1.1rem; padding: .85rem 1.75rem; }
.bouton-secondaire { background: #fff; color: var(--marine); }
.bouton-secondaire:hover { background: var(--bleu-fond); color: var(--marine-fonce); }
.bouton-lien { background: transparent; color: var(--lien); border-color: transparent; text-decoration: underline; font-weight: 400; }
.bouton-lien:hover { background: transparent; border-color: transparent; color: var(--marine-fonce); }
.bouton-danger { background: var(--rouge); border-color: var(--rouge); }
.bouton-danger:hover { background: #7f1a14; border-color: #7f1a14; }
.form-bouton { display: inline-block; margin: 0; }
.outils-ligne { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0; }
.exports { margin: 1rem 0 1.5rem; }
.exports > p { margin: 0; }
.exports .outils-ligne { margin: .4rem 0; }

/* Formulaires */
.formulaire { max-width: 40rem; }
.champ { margin-bottom: 1.4rem; }
label { display: block; font-weight: 700; margin-bottom: .3rem; }
.obligatoire { font-weight: 400; font-size: .85rem; color: var(--encre-douce); }
.aide, .aide-inline { color: var(--encre-douce); font-size: .9rem; margin: 0 0 .4rem; font-weight: 400; }
.aide-formulaire { color: var(--encre-douce); }
.erreur { color: var(--rouge); font-weight: 700; margin: 0 0 .4rem; }
.champ-erreur input, .champ-erreur select, .champ-erreur textarea { border-color: var(--rouge); border-width: 3px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"],
input[type="number"], input[type="search"], input[type="datetime-local"], input[type="file"], select, textarea {
	display: block;
	width: 100%;
	min-height: 3rem;
	padding: .6rem .75rem;
	background: #fff;
	color: var(--encre);
	border: 2px solid var(--trait-fort);
	border-radius: var(--rayon);
	font: inherit;
}
textarea { line-height: 1.5; }
/* Champ en lecture seule : on voit qu'il ne se modifie pas. */
input[readonly], textarea[readonly] { background: var(--fond); border-style: dashed; color: var(--encre); cursor: default; }
.piece-jointe { background: var(--fond); border-left: 4px solid var(--trait-fort); padding: .6rem .9rem; border-radius: var(--rayon); }
.groupe { border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--surface); padding: 1rem 1.25rem; margin: 0 0 1.4rem; }
.groupe legend, .sous-groupe legend { font-weight: 700; padding: 0 .4rem; color: var(--marine); }
.sous-groupe { border: 0; border-top: 1px solid var(--trait); padding: 1rem 0 .25rem; margin: 1rem 0 0; }
.case { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; padding: .4rem 0; cursor: pointer; }
.case input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; flex: none; accent-color: var(--marine); }
.case-retrait { margin-left: 2rem; }
.detail-paiement { margin: 0 0 .75rem 2.15rem; font-size: .92rem; color: var(--encre-douce); }
.detail-paiement p { margin: 0; }
.piege { position: absolute; left: -9999px; }
.ligne-copie { display: flex; gap: .5rem; }
.ligne-copie input { flex: 1; min-width: 0; }
.ligne-form { display: grid; grid-template-columns: 9rem 1fr auto; gap: .5rem .75rem; align-items: center; margin: 0 0 .6rem; }
.ligne-form label { margin: 0; }
.choix-adhesion { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.choix-adhesion .choix { display: flex; flex-direction: column; margin: 0; }
.choix-adhesion .choix-bouton { margin-top: auto; margin-bottom: 0; }
.choix-adhesion .choix-bouton + .aide { margin: .5rem 0 0; }
.choix-adhesion .choix h2 { margin-top: 0; }
@media (max-width: 52rem) { .choix-adhesion { grid-template-columns: minmax(0, 1fr); } }
.avis-merci p:first-child { font-weight: 700; }
/* Statistiques */
.chiffres-cles { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem; }
.chiffres-cles li { background: var(--surface); border: 1px solid var(--trait); border-left: 6px solid var(--foret); border-radius: var(--rayon); padding: .8rem 1rem; }
.chiffres-cles strong { display: block; font-size: 1.8rem; color: var(--foret-fonce); line-height: 1.1; }
table.stats caption { text-align: left; font-weight: 700; padding: .4rem 0; }
table.stats th, table.stats td, table.tableau-import th, table.tableau-import td { overflow-wrap: normal; word-break: normal; hyphens: none; }
table.stats td.nombre { white-space: nowrap; }
.barre { display: inline-block; vertical-align: middle; width: 8rem; height: .8rem; background: var(--foret-fond); border-radius: 3px; margin-left: .5rem; overflow: hidden; }
.barre span { display: block; height: 100%; background: var(--foret); }
.stats-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem 1.5rem; align-items: start; }
@media (max-width: 40rem) { .barre { width: 4rem; } }
.ligne-form.ligne-type { grid-template-columns: 9rem 1fr auto auto; }
.ligne-form .case { margin: 0; white-space: nowrap; }
.ligne-retrait { margin-left: 1.5rem; }
@media (max-width: 40rem) { .ligne-form { grid-template-columns: 1fr; } .ligne-retrait { margin-left: 0; } }
.bouton-voir { margin-top: .4rem; }

/* Messages */
.avis { border-left: 6px solid var(--marine); background: var(--bleu-fond); padding: .9rem 1.1rem; margin: 0 0 1.5rem; border-radius: var(--rayon); }
.avis p:last-child, .avis ul:last-child { margin-bottom: 0; }
.avis-succes { border-color: var(--vert); background: var(--vert-fond); }
.avis-erreur { border-color: var(--rouge); background: var(--rouge-fond); }
.vide { color: var(--encre-douce); font-style: italic; }

/* Cartes */
.cartes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.1rem; }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.1rem 1.25rem; }
.carte h3 { margin: 0 0 .4rem; color: var(--marine); }
.carte p:last-child { margin: 0; font-size: .95rem; }
.noms { font-weight: 700; margin-bottom: .4rem; }
.carte-connexion { max-width: 30rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.5rem 1.75rem; }
.carte-connexion h2 { margin-top: 0; }
.encart { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.1rem 1.4rem; margin: 1.25rem 0; }
.encart h3:first-child { margin-top: 0; }
.outils-bureau { background: var(--ocre-fond); border: 1px solid #e0cfa5; border-radius: var(--rayon); padding: 1rem 1.25rem; margin: 1.25rem 0; }
.outils-bureau > h2:first-child { margin-top: 0; }
.zone-danger { border: 1px solid var(--rouge); border-radius: var(--rayon); padding: 1rem 1.25rem; margin-top: 2rem; }
details > summary { cursor: pointer; font-weight: 700; color: var(--marine); padding: .3rem 0; }
details[open] > summary { margin-bottom: .75rem; }

/* Listes de documents */
.documents { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.document { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: .9rem 1.1rem; margin-bottom: .7rem; }
.document-titre { font-weight: 700; font-size: 1.05rem; display: block; }
.document-format { display: block; font-weight: 400; font-size: .85rem; color: var(--encre-douce); }
.document-desc { margin: .4rem 0 0; font-size: .95rem; }
.document-meta { margin: .4rem 0 0; font-size: .85rem; color: var(--encre-douce); }
.etiquette { display: inline-block; background: var(--bleu-fond); color: var(--marine); border-radius: 3px; padding: .05rem .5rem; font-size: .8rem; font-weight: 700; margin-left: .35rem; }
.etiquette-cabinet { background: var(--ocre-fond); color: #5c4400; }
.grands-liens { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.grands-liens a { display: block; background: var(--surface); border: 2px solid var(--marine); border-radius: var(--rayon); padding: 1rem 1.25rem; font-weight: 700; text-decoration: none; color: var(--marine); }
.grands-liens a:hover { background: var(--bleu-fond); }
.grands-liens-dossiers a::before { content: "\1F4C1\00A0"; }
.sommaire { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); margin-bottom: 1.5rem; }
.liste-simple { padding-left: 1.2rem; }
.liste-simple li { margin-bottom: .6rem; }
.liste-compacte { columns: 2; padding-left: 1.2rem; font-size: .92rem; }

/* Agenda */
.evenements { list-style: none; padding: 0; margin: 0; }
.evenement { background: var(--surface); border: 1px solid var(--trait); border-left: 6px solid var(--marine); border-radius: var(--rayon); padding: 1rem 1.25rem; margin-bottom: .9rem; }
.evenement h3 { margin: 0 0 .4rem; }
.evenement-date { font-weight: 700; color: var(--marine); margin-bottom: .25rem; }
.evenements-passes .evenement { border-left-color: var(--trait-fort); background: #fbfbfa; }

/* FAQ */
.accordeon details { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); margin-bottom: .7rem; }
.accordeon summary { padding: 1rem 1.25rem; font-size: 1.05rem; }
.accordeon details[open] > summary { margin: 0; border-bottom: 1px solid var(--trait); }
.accordeon-contenu { padding: 1rem 1.25rem; }

/* Tableaux */
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: .7rem .8rem; border: 1px solid var(--trait); }
th { background: var(--bleu-fond); color: var(--marine); font-size: .92rem; }
.tableau-defilant { overflow-x: auto; }
.ligne-bureau td { background: #fdfaf2; padding: .25rem .8rem; }
.ligne-bureau .outils-bureau { margin: .25rem 0; padding: .4rem .75rem; border: 0; background: transparent; }
.statut { display: inline-block; padding: .05rem .5rem; border-radius: 3px; font-size: .85rem; font-weight: 700; background: var(--bleu-fond); color: var(--marine); }
.statut-actif, .statut-mail-delivre, .statut-mail-ouvert, .decision-acceptee { background: var(--vert-fond); color: var(--vert); }
.statut-en_attente, .statut-mail-differe, .statut-mail-en_file { background: var(--ocre-fond); color: #5c4400; }
.statut-expire, .statut-refuse, .statut-mail-rebond, .statut-mail-bloque, .statut-mail-erreur, .statut-mail-spam, .decision-refusee { background: var(--rouge-fond); color: var(--rouge); }
.decision { display: inline-block; padding: .05rem .5rem; border-radius: 3px; font-weight: 700; font-size: .9rem; }

/* Sur petit écran, chaque ligne devient une carte : pas de défilement horizontal. */
@media (max-width: 52rem) {
	.tableau-cartes table, .tableau-cartes tbody, .tableau-cartes tr, .tableau-cartes td { display: block; width: 100%; }
	.tableau-cartes thead { position: absolute; left: -9999px; }
	.tableau-cartes tr { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); margin-bottom: .8rem; padding: .5rem .25rem; }
	.tableau-cartes td { border: 0; padding: .35rem .8rem; }
	.tableau-cartes td[data-titre]::before { content: attr(data-titre); display: block; font-weight: 700; font-size: .82rem; color: var(--encre-douce); }
	.tableau-cartes .ligne-bureau { margin-top: -.8rem; border-top: 0; }
	.liste-compacte { columns: 1; }
}

/* Bureau */
.filtres { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.1rem 1.25rem .4rem; margin-bottom: 1.25rem; align-items: end; }
.filtres .aide { display: none; }
.filtres-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.entete-liste { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; }
.entete-liste p { margin: 0; }
.ged { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.ged-arbre { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem 1.1rem; font-size: .92rem; }
.ged-arbre h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.ged-arbre ul { list-style: none; margin: 0; padding: 0; }
.ged-arbre ul ul { padding-left: 1rem; border-left: 2px solid var(--trait); margin-left: .25rem; }
.ged-arbre li { margin: .3rem 0; }
.ged-arbre a[aria-current="page"] { font-weight: 700; color: var(--encre); text-decoration: none; }
.ged-contenu h2:first-of-type { margin-top: .5rem; }
.fil { font-size: .92rem; }
.recherche { margin-bottom: 1.25rem; }
@media (max-width: 58rem) { .ged { grid-template-columns: 1fr; gap: 1.25rem; } }
.trombinoscope { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); gap: 1rem; }
@media (max-width: 30rem) { .trombinoscope { grid-template-columns: 1fr; } }
.personne { display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem; }
.personne img, .sans-photo { width: 6rem; height: 6rem; border-radius: var(--rayon); object-fit: cover; flex: none; }
.sans-photo { display: flex; align-items: center; justify-content: center; background: var(--bleu-fond); color: var(--marine); font-size: 1.75rem; font-weight: 700; }
.personne h3 { margin: 0; }
.personne p { margin: .25rem 0 0; font-size: .92rem; }
.role { color: var(--ocre); font-weight: 700; }
.apercu-message { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem 1.25rem; margin: .75rem 0 1.25rem; }
.bloc-vote { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.1rem 1.4rem; margin-bottom: 1.25rem; }
.bloc-vote h3 { margin-top: 0; }
.bloc-ag h4, .accordeon-contenu h4 { margin: 1.5rem 0 .6rem; font-size: 1.05rem; color: var(--marine); }
.ag-quand { background: var(--fond, #f6f5f1); border-radius: var(--rayon); padding: .8rem 1rem; }
.ag-quand p { margin: .25rem 0; }
.ag-quand .bouton { margin-top: .5rem; }
.ag-resume { font-weight: 400; margin-left: .5rem; }
.bloc-ag .outils-bureau:last-child, .accordeon-contenu .outils-bureau:last-child { margin-bottom: 0; }

/* Pied de page */
.site-pied { background: var(--marine-fonce); color: #fff; padding: 1.75rem 1.25rem; }
.site-pied a { color: #fff; }
.site-pied ul { list-style: none; max-width: 72rem; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }

/* ---------- Couleurs ---------- */
.site-entete { background: linear-gradient(100deg, var(--marine) 0%, var(--foret) 100%); }
.nav-principale { background: var(--marine-fonce); border-top: 4px solid var(--soleil); }
.nav-principale > ul { align-items: stretch; }
.nav-principale a[aria-current="page"] { border-bottom-color: var(--soleil); background: rgba(255, 255, 255, .08); }
.page-titre { padding-bottom: .4rem; border-bottom: 4px solid var(--soleil); display: inline-block; }
h2 { color: var(--foret-fonce); }
.bouton { background: var(--foret); border-color: var(--foret); }
.bouton:hover { background: var(--foret-fonce); border-color: var(--foret-fonce); }
.bouton-secondaire { background: #fff; color: var(--foret-fonce); border-color: var(--foret); }
.bouton-secondaire:hover { background: var(--foret-fond); color: var(--foret-fonce); }
.bouton-lien { background: transparent; color: var(--lien); border-color: transparent; }
.bouton-lien:hover { background: transparent; border-color: transparent; color: var(--marine-fonce); }
.entete-compte .bouton { background: #fff; color: var(--marine); border-color: #fff; }
.case input { accent-color: var(--foret); }
th { background: var(--foret-fond); color: var(--foret-fonce); }
.grands-liens a { border-color: var(--foret); border-left-width: 8px; color: var(--foret-fonce); }
.grands-liens li:nth-child(4n+2) a { border-color: var(--ciel); color: var(--ciel); }
.grands-liens li:nth-child(4n+3) a { border-color: var(--terre); color: var(--terre); }
.grands-liens li:nth-child(4n) a { border-color: var(--prune); color: var(--prune); }
.grands-liens-dossiers li a { border-color: var(--foret); color: var(--foret-fonce); }
.grands-liens a:hover { background: var(--soleil-fond); }
.accordeon summary { color: var(--foret-fonce); }
.accordeon details { border-left: 6px solid var(--foret); }
.accordeon details:nth-child(even) { border-left-color: var(--ciel); }
.bloc-ag { border-top: 6px solid var(--prune); }
.bloc-ag h3 { color: var(--prune); font-size: 1.3rem; }
.bloc-ag h4, .accordeon-contenu h4 { color: var(--foret-fonce); }
.ag-quand { background: var(--prune-fond); border-left: 5px solid var(--prune); }
.ag-quand .evenement-date { color: var(--prune); }
.evenement { border-left-color: var(--foret); }
.evenements-passes .evenement { border-left-color: var(--trait-fort); }
.filtres { background: var(--ciel-fond); border-color: #a9cfe6; border-left: 6px solid var(--ciel); }
.sommaire { background: var(--soleil-fond); border-color: #ecd68f; }
.site-pied { background: var(--marine-fonce); border-top: 4px solid var(--soleil); }

/* Accueil */
.wp-block-group { border-top: 6px solid var(--foret); }
.section-accueil { background: linear-gradient(120deg, var(--foret-fond), #fff 70%); }
.section-acces { background: var(--soleil-fond); border-color: #ecd68f; border-top-color: var(--soleil); }
.section-organisation { border-top-color: var(--ciel); }
.section-organisation h2 { color: var(--ciel); }
.section-documents { border-top-color: var(--terre); }
.section-documents h2 { color: var(--terre); }
.section-contact { border-top-color: var(--prune); }
.section-contact h2 { color: var(--prune); }
#nous-contacter { scroll-margin-top: 6rem; }

/* Menu unique : le bureau se déplie */
.nav-principale > ul > li > a { padding: .8rem .75rem; white-space: nowrap; }
.menu-bureau { position: relative; margin-left: auto; }
.menu-bureau summary { list-style: none; padding: .8rem .95rem; color: #1b2430; background: var(--soleil); font-size: .95rem; font-weight: 700; height: 100%; display: flex; align-items: center; }
.menu-bureau summary::-webkit-details-marker { display: none; }
.menu-bureau summary::after { content: "\25BE"; margin-left: .45rem; }
.menu-bureau details[open] > summary { margin: 0; }
.menu-bureau .menu-actif > summary { box-shadow: inset 0 -4px 0 var(--marine); }
.menu-bureau ul { position: absolute; right: 0; top: 100%; z-index: 20; display: block; list-style: none; min-width: 16rem; margin: 0; padding: .35rem 0; background: var(--marine-fonce); border: 2px solid var(--soleil); border-top: 0; }
.menu-bureau ul a { border-bottom: 0; border-left: 4px solid transparent; }
.menu-bureau ul a[aria-current="page"] { border-left-color: var(--soleil); }
@media (max-width: 52rem) {
	.menu-bureau { width: 100%; margin-left: 0; }
	.menu-bureau ul { position: static; min-width: 0; border: 0; }
}

/* Documents : des cartes, plus des bandes sur toute la largeur */
.documents { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .8rem; align-items: stretch; }
.document { margin: 0; border-left: 6px solid var(--trait-fort); display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.document .document-titre { font-size: 1rem; }
.etiquette-cat { display: inline-block; border-radius: 3px; padding: .05rem .5rem; font-size: .8rem; font-weight: 700; }
.etiquette { margin-left: 0; margin-right: .3rem; }
.cat-0 { background: var(--foret-fond); color: var(--foret-fonce); }
.cat-1 { background: var(--terre-fond); color: #7f3412; }
.cat-2 { background: var(--ciel-fond); color: #0d4f78; }
.cat-3 { background: var(--prune-fond); color: #52307a; }
.cat-4 { background: var(--soleil-fond); color: #5c4400; }
.cat-5 { background: var(--rouge-fond); color: var(--rouge); }
.cat-6 { background: #e6e9ee; color: var(--marine); }
.cat-bord-0 { border-left-color: var(--foret); }
.cat-bord-1 { border-left-color: var(--terre); }
.cat-bord-2 { border-left-color: var(--ciel); }
.cat-bord-3 { border-left-color: var(--prune); }
.cat-bord-4 { border-left-color: var(--soleil); }
.cat-bord-5 { border-left-color: var(--rouge); }
.cat-bord-6 { border-left-color: var(--marine); }

/* Organigramme */
.orga-grille { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.orga-seule { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 52rem) { .orga-grille { grid-template-columns: minmax(0, 1fr); } }
.orga ul { list-style: none; margin: 0; padding: 0; }
.orga ul ul { margin-left: 1.2rem; }
.orga ul ul > li { position: relative; padding: .55rem 0 0 1.6rem; }
.orga ul ul > li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 3px solid var(--trait-fort); }
.orga ul ul > li:last-child::before { bottom: auto; height: 1.9rem; }
.orga ul ul > li::after { content: ""; position: absolute; left: 0; top: 1.9rem; width: 1.6rem; border-top: 3px solid var(--trait-fort); }
.orga-carte { background: var(--surface); border: 1px solid var(--trait); border-left: 8px solid var(--foret); border-radius: var(--rayon); padding: .6rem .9rem; }
.orga-carte h3 { margin: 0; font-size: 1.02rem; }
.orga-carte .noms { margin: .1rem 0 0; }
.noms-vide { color: var(--encre-douce); font-style: italic; font-weight: 400; }
.orga-role { margin: .15rem 0 0; font-size: .85rem; color: var(--encre-douce); }
.orga-president { border-left-color: var(--marine); background: #eef2f7; }
.orga-president h3 { color: var(--marine); }
.orga-tresorier { border-left-color: var(--foret); background: var(--foret-fond); }
.orga-tresorier h3 { color: var(--foret-fonce); }
.orga-secretaire { border-left-color: var(--ciel); background: var(--ciel-fond); }
.orga-secretaire h3 { color: #0d4f78; }
.orga-bureau { border-left-color: var(--terre); }
.orga-bureau h3 { color: #7f3412; }
.orga-conseil .orga-carte, .orga-conseil { border-color: var(--prune); }
.orga-conseil .orga-carte { border-style: dashed; border-left-style: solid; background: var(--prune-fond); }
.orga-conseil h3 { color: var(--prune); }
.orga-note { font-size: .9rem; color: var(--encre-douce); margin: 0 0 .5rem; }

/* Bureau et conseil : rôle sur chaque fiche */
.role { display: inline-block; margin: .35rem 0 0 !important; padding: .05rem .55rem; border-radius: 3px; background: var(--terre-fond); color: #7f3412; font-weight: 700; font-size: .85rem !important; }
.role-president { background: #e2e8f0; color: var(--marine); }
.role-tresorier { background: var(--foret-fond); color: var(--foret-fonce); }
.role-secretaire { background: var(--ciel-fond); color: #0d4f78; }
.role-conseil { background: var(--prune-fond); color: var(--prune); }
.role-desc { margin: .2rem 0 .3rem !important; font-size: .88rem !important; color: var(--encre-douce); }
.fiche-roles { background: var(--surface); border: 1px solid var(--trait); border-left: 8px solid var(--terre); border-radius: var(--rayon); padding: .5rem 1rem; margin-bottom: 1.25rem; }
.sans-photo { background: var(--foret-fond); color: var(--foret-fonce); }

/* Onglets : sans JavaScript, de simples liens vers des parties toutes visibles */
.onglets-liste ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 4px solid var(--foret); }
.onglets-liste a { overflow-wrap: normal; word-break: normal; hyphens: none; display: block; padding: .7rem 1rem; background: var(--surface); border: 2px solid var(--foret); border-bottom: 0; border-radius: var(--rayon) var(--rayon) 0 0; color: var(--foret-fonce); font-weight: 700; text-decoration: none; }
.onglets-liste a:hover { background: var(--foret-fond); }
.onglets-liste a[aria-selected="true"] { background: var(--foret); color: #fff; }
.onglets-actifs ~ .onglet > h2:first-child, .onglet > h2:first-child { margin-top: 0; }
.onglet { margin-bottom: 1.5rem; }
@media (max-width: 40rem) {
	.onglets-liste ul { border-bottom: 0; }
	.onglets-liste li { flex: 1 1 auto; }
	.onglets-liste a { padding: .65rem .8rem; font-size: .95rem; }
	.onglets-liste a { border-bottom: 2px solid var(--foret); border-radius: var(--rayon); text-align: center; }
}
.historique th, .historique td { overflow-wrap: normal; word-break: normal; }
.liste-adherents th, .liste-adherents td[data-titre="N° d'adhérent"] { overflow-wrap: normal; word-break: normal; }
.liste-adherents td[data-titre="N° d'adhérent"] { white-space: nowrap; }
.historique td:first-child, .historique td:last-child { white-space: nowrap; }
.statut-histo-validee { background: var(--vert-fond); color: var(--vert); }
.statut-histo-en_attente { background: var(--ocre-fond); color: #5c4400; }
.statut-histo-refusee { background: var(--rouge-fond); color: var(--rouge); }

/* Gravity Forms : même lisibilité que les formulaires du site */
.gform_validation_container, .gfield--type-honeypot, .gform_wrapper .gform_validation_container { display: none !important; position: absolute !important; left: -9999px !important; }
.gform_wrapper { max-width: 40rem; }
.gform_wrapper .gfield { margin-bottom: 1.25rem; }
.gform_wrapper .gfield_label, .gform_wrapper .gform-field-label { font-weight: 700; display: block; margin-bottom: .3rem; }
.gform_wrapper .gfield_required { color: var(--encre-douce); font-weight: 400; font-size: .85rem; }
.gform_wrapper ul.gform_fields { list-style: none; margin: 0; padding: 0; }
.gform_wrapper .gform_button, .gform_wrapper input[type="submit"] { min-height: 3rem; padding: .75rem 1.5rem; background: var(--foret); color: #fff; border: 2px solid var(--foret); border-radius: var(--rayon); font: inherit; font-weight: 700; cursor: pointer; }
.gform_wrapper .gform_validation_errors, .gform_wrapper .validation_message { color: var(--rouge); font-weight: 700; }
.gform_confirmation_message { background: var(--vert-fond); border-left: 6px solid var(--vert); padding: .9rem 1.1rem; border-radius: var(--rayon); }

@media print {
	.filtres, .site-entete, .nav-principale, .site-pied, .outils-bureau, .bouton { display: none !important; }
	body { background: #fff; }
}
