/* Extension des rappels validés à toutes les autres pages du site.
   Présentation uniquement : aucun changement de données, de routes ou de cartes d’adhésion. */
body[data-current-page]:not([data-current-page="accueil"]){background:#f3f7fd}
#page-banner{background:radial-gradient(ellipse at 96% 0%,#075685,transparent 65%),linear-gradient(115deg,#051e3d,#073458);color:white}
#page-banner:before{inset:0;width:auto;height:auto;border:0;border-radius:0;box-shadow:none;animation:none;background:url('assets/crefom-home-waves.svg') right center/cover no-repeat;opacity:.65;pointer-events:none}
#page-banner:after{content:none}
#page-banner .route-kicker{color:#8de7f3;line-height:1.6}
#page-banner .route-intro{color:#d2e7f6}
#page-banner .route-accent{width:95px;height:4px;border-radius:2px;background:linear-gradient(90deg,#21c7df 0 33.333%,#fff 33.333% 66.666%,#e22344 66.666%);animation:none}
:is(.program,#voyages,#gouvernance,#delegations,#partenaires,#adherer,#suivi-national,#mon-crefom,#associations-projets,#crefom-en-images,#mediatheque,.department-page){background:linear-gradient(180deg,#edf7ff,#f9fbff 650px);color:#0b294a}
:is(.program,#voyages,#gouvernance,#delegations,#partenaires,#adherer,#suivi-national,#mon-crefom,#associations-projets,#crefom-en-images,#mediatheque) h2{color:#0b294a}
:is(.program,#voyages,#gouvernance,#delegations,#partenaires,#adherer,#suivi-national,#mon-crefom,#associations-projets,#crefom-en-images,#mediatheque) :is(.eyebrow,.m-kicker,.mc-kicker,.ap-kicker){color:#006b88;line-height:1.6}
:is(.program,#voyages,#gouvernance,#delegations,#partenaires,#adherer,#suivi-national,#mon-crefom,#associations-projets,#crefom-en-images,#mediatheque,.department-page) .context-back a{border-radius:12px;border-color:#c9dfed;color:#075778;background:white}
:is(.program,#gouvernance,#crefom-en-images,#mediatheque) .rubric-links a{border:1px solid #bfdfea;background:#edf9fd;color:#00617e;border-radius:12px;padding:12px 17px;min-height:46px;font-size:15px;line-height:1.5}
/* Programmes : texte large conservé et encadrés de lecture. */
.program .continuity-article>h3{color:#0b294a;border-left:4px solid #12b7d1;padding-left:17px;line-height:1.35}
.program .continuity-article>h3:nth-of-type(3n+2){border-left-color:#3478cf}
.program .continuity-article>h3:nth-of-type(3n){border-left-color:#d82b50}
.program .continuity-article>p:first-child{border:1px solid #bce4ef;border-left:4px solid #00a9c6;background:#e7f7fc;border-radius:0 17px 17px 0;padding:25px 28px;color:#123d59}
:is(.program,#voyages) .program-detail{background:#fff;border:1px solid #c9e3ef;border-top:4px solid #11b8d1;border-radius:22px;box-shadow:0 8px 25px #082e5709}
:is(.program,#voyages) .program-detail h3{color:#0b294a}
:is(.program,#voyages) .program-detail p{font-size:16px;line-height:1.7;color:#526b82}
#voyages .operation-caption{border-left-color:#12bad2;background:#e6f7fc;color:#0b294a}
#voyages .operation-name{color:#0b294a}
/* Boutons et formulaires : conservation des états, contrôles et identifiants. */
:is(.program,#voyages,#gouvernance,#delegations,#partenaires,#adherer,#suivi-national,#mon-crefom,#associations-projets,#crefom-en-images,#mediatheque,.department-page) :is(.btn,.primary,.secondary,.mc-primary,.ap-primary,.ap-cards button):not(#account-logout){border-radius:12px;min-height:46px;font-size:16px;line-height:1.5;box-sizing:border-box}
:is(.program,#voyages,#gouvernance,#delegations,#partenaires,#adherer,#suivi-national,#mon-crefom,#associations-projets,.department-page) :is(.primary,.mc-primary,.ap-primary,.ap-cards button){background:#075183;color:#fff}
:is(.program,#voyages,#gouvernance,#delegations,#partenaires,#adherer,#suivi-national,#mon-crefom,#associations-projets,.department-page) .btn.red{background:#d91c40;color:#fff}
:is(.program,#voyages,#gouvernance,#delegations,#partenaires,#adherer,#suivi-national,#mon-crefom,#associations-projets,.department-page) .secondary:not(#account-logout){background:#e8f7fc;color:#00617e;border:1px solid #bfdfea}
:is(#adherer,#suivi-national,#mon-crefom,#associations-projets,#delegations) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea){border:1px solid #c2d8e8;border-radius:11px;color:#0b294a;font-size:16px;box-sizing:border-box}
:is(#adherer,#suivi-national,#mon-crefom,#associations-projets,#delegations) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea):not(:disabled){background-color:#fbfdff}
:is(#adherer,#suivi-national,#mon-crefom,#associations-projets,#delegations) select{appearance:none;padding-right:39px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%2307597d' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px}
/* Délégations : le numéro reste un repère géographique. */
#delegations .delegation-membership-copy{background:#fff;border:1px solid #dce7f2;border-top:4px solid #12bad2;border-radius:22px;padding:28px;box-sizing:border-box}
#delegations .delegation-membership-copy h3{color:#0b294a}
#delegations .dep-card{border-radius:15px;border-color:#d0e2ef;background:#fff;box-shadow:0 4px 14px #082e5706}
#delegations .dep-card strong{color:#006b88}
#delegations .dep-card:not(:disabled):hover{background:#e3f7fc;border-color:#14b1ce}
#delegations .dep-card:disabled{box-shadow:none;background:#f1f4f7;color:#6c767b}
.department-page .dept-hero{background:radial-gradient(ellipse at 96% 0%,#075685,transparent 65%),linear-gradient(115deg,#051e3d,#073458);border-bottom:3px solid #1bc4dc}
.department-page .dept-hero:before{inset:0;width:auto;height:auto;border:0;border-radius:0;box-shadow:none;background:url('assets/crefom-home-waves.svg') right center/cover no-repeat;opacity:.65}
.department-page .dept-hero:after{width:95px;height:4px;background:linear-gradient(90deg,#21c7df 0 33.333%,#fff 33.333% 66.666%,#e22344 66.666%);animation:none}
.department-page .dept-hero .eyebrow{color:#8de7f3}
.department-page .delegation-state{background:#e1f6fc;color:#00617e;border-radius:10px}
.department-page .dept-local-grid article{border:1px solid #dce7f2;border-top:3px solid #12bad2;border-radius:20px;background:#fff;box-shadow:0 7px 22px #082e5708}
.department-page .dept-local-grid article:nth-child(3n+2){border-top-color:#2c67c3}
.department-page .dept-local-grid article:nth-child(3n){border-top-color:#d92a50}
/* Équipe : portraits et cadrages inchangés. */
#gouvernance .president-copy{border-top:3px solid #12bad2;padding-top:22px}
#gouvernance .team-role{color:#006b88}
#gouvernance .president-word{background:transparent;border-radius:0;border-top:1px solid #7297a5;padding:18px 0 0}
#gouvernance .president-word h4{color:#fff}
#gouvernance .president-word p{color:#e2f0f5;margin:0}
:is(#gouvernance,.department-page) .bureau-card{border:1px solid #dce7f2;border-bottom:3px solid #12bad2;border-radius:21px;box-shadow:0 8px 25px #082e5709;background:#fff}
:is(#gouvernance,.department-page) .bureau-card:nth-child(3n+2){border-bottom-color:#2c67c3}
:is(#gouvernance,.department-page) .bureau-card:nth-child(3n){border-bottom-color:#d92a50}
#gouvernance .portrait-frame:not(.has-portrait){background:linear-gradient(135deg,#062a50,#075478)}
#gouvernance .bureau-content h4{color:#0b294a}
/* Partenaires et associations : cartes sobres, accents tricolores. */
:is(#partenaires .partner-categories,#associations-projets .ap-cards)>article{border:1px solid #dce7f2;border-top:4px solid #00a8c5;border-radius:22px;box-shadow:0 8px 25px #082e5709;background:#fff}
:is(#partenaires .partner-categories,#associations-projets .ap-cards)>article:nth-child(3n+2){border-top-color:#2c67c3}
:is(#partenaires .partner-categories,#associations-projets .ap-cards)>article:nth-child(3n){border-top-color:#d92a50}
:is(#partenaires .partner-categories,#associations-projets .ap-cards)>article h3{color:#0b294a}
:is(#partenaires .partner-categories,#associations-projets .ap-cards)>article p{font-size:16px;line-height:1.7;color:#526b82}
#partenaires .partner-placeholder{border-color:#bddfea;background:#edf9fd;color:#325978}
#partenaires .partner-join{background:#e5f5fc;border:1px solid #c2dfed;border-radius:22px}
#associations-projets .ap-panel{border-color:#dce7f2;border-top:4px solid #12bad2;box-shadow:0 8px 25px #082e5709}
#associations-projets .ap-panel-head small{color:#006b88}
#associations-projets .ap-close{background:#e3f4fc;color:#075778}
/* Adhésion : choix et tarifs existants conservés. */
#adherer .plan-card{border:1px solid #dce7f2;border-top:4px solid #12bad2;box-shadow:0 8px 25px #082e5709;color:#0b294a}
#adherer .plan-card.featured{border:2px solid #0aa6c5;border-top-width:4px;background:linear-gradient(160deg,#f1fcff,#fff 55%)}
#adherer .plan-badge{display:inline-block;color:#006b88;background:#e0f7fc;border-radius:9px;padding:7px 10px;font-size:12px}
#adherer .price{color:#0b294a}
#adherer .choose{border-radius:12px;background:#075183;color:#fff;font-size:16px;line-height:1.5}
#adherer .plan-card.featured .choose{background:#18c5dc;color:#042c45}
#adherer .plan-card p,#adherer .plan-card li{color:#526b82;font-size:16px;line-height:1.7}
:is(#adherer,#suivi-national) :is(.adhesion-panel,.member-preview){border-color:#dce7f2;border-top:4px solid #12bad2;box-shadow:0 8px 25px #082e5709}
#adherer .selected-plan{background:#e0f7fc;color:#075778;border:1px solid #bfe5ef}
/* Espace personnel : les cartes d’adhésion et leurs QR restent intacts. */
#mon-crefom .mc-account-box,#mon-crefom .mc-box,#mon-crefom .mc-metrics article{background:#fff;border-color:#dce7f2;box-shadow:0 7px 22px #082e5708}
#mon-crefom .mc-account-box{border-top:4px solid #12bad2}
#mon-crefom .mc-account-box>summary{color:#0b294a}
#mon-crefom .mc-side{background:#062a50;border:1px solid #234e71;padding:13px}
#mon-crefom .mc-side .mc-tab{color:#d4e8f5;font-size:15px;line-height:1.5}
#mon-crefom .mc-side .mc-tab.active{background:#075b83;color:#fff}
#mon-crefom .mc-welcome{background:linear-gradient(115deg,#051e3d,#075478);border-bottom:3px solid #12bad2}
#mon-crefom .mc-welcome h3{color:#fff}
#mon-crefom .mc-welcome p{color:#d2e7f6}
#mon-crefom .mc-status,#mon-crefom .mc-chip{background:#e0f7fc;color:#00617e}
#mon-crefom .mc-box p,#mon-crefom .mc-metrics span{font-size:16px;line-height:1.65;color:#526b82}
/* Articles et galeries : médias et largeur de lecture conservés. */
:is(#actualite-hommage-verdun-2026,#actualite-hommage-11-novembre-2026,#actualite-teddy-riner){background:#f3f7fd}
.news-feature{border-color:#dce7f2;border-radius:22px;box-shadow:0 10px 30px #082e570c}
.news-feature .news-feature-header{background:linear-gradient(115deg,#051e3d,#075478);border-bottom:4px solid #12bad2}
.news-feature .news-feature-kicker{color:#9fe6f3}
.news-feature .news-feature-content a{color:#006b88}
#crefom-en-images .photo-card{border:1px solid #d0e4ef;box-shadow:0 9px 25px #082e5715}
#crefom-en-images .photo-card:after{background:linear-gradient(180deg,transparent 38%,#061f3ef0 100%)}
#crefom-en-images .photo-card small{color:#a4edf5}
#mediatheque .cards article{border:1px solid #dce7f2;border-top:4px solid #12bad2;border-radius:22px;background:#fff}
#mediatheque .cards article:nth-child(3n+2){border-top-color:#2c67c3}
#mediatheque .cards article:nth-child(3n){border-top-color:#d92a50}
/* Fenêtres de prévisualisation et formulaires des parcours. */
#site-dialog{border:1px solid #beddeb;border-top:4px solid #12bad2;border-radius:24px;background:linear-gradient(145deg,#f0faff,#fff 45%);box-shadow:0 24px 65px #062a5033;color:#0b294a}
#site-dialog::backdrop{background:#031a36aa;backdrop-filter:blur(4px)}
#site-dialog .primary{background:#075183;color:#fff;border-radius:12px;min-height:46px}
#site-dialog .secondary{background:#e5f7fc;color:#00617e;border-radius:12px;min-height:46px}
#site-dialog :is(input,select,textarea){border-color:#c2d8e8;border-radius:11px;font-size:16px}
:is(.program,#voyages,#gouvernance,#delegations,#partenaires,#adherer,#suivi-national,#mon-crefom,#associations-projets,#crefom-en-images,#mediatheque,.department-page) :is(a,button,input,select,textarea):focus-visible{outline:3px solid #008da9;outline-offset:4px}
@media(max-width:900px){#page-banner:before{background-size:auto 100%;background-position:70% center;opacity:.5}}
@media(max-width:600px){.program .continuity-article>p:first-child{padding:22px;font-size:17px;line-height:1.75}.program .continuity-article>h3{padding-left:14px}#delegations .delegation-membership-copy{padding:22px}.department-page .dept-hero:before{background-size:auto 100%;background-position:70% center}.news-feature{border-radius:18px}#mon-crefom .mc-side .mc-tab{font-size:14px}}
@media(prefers-reduced-motion:reduce){#adherer .plan-card:hover{transform:none}#adherer .plan-card{transition:none}}
/* Le lien d’adhésion conserve son contraste quand la rubrique est active. */
header #site-navigation a.btn.red[aria-current="page"]{color:#fff}
/* Les cases de consentement gardent leur largeur propre dans les formulaires mobiles. */
:is(#adherer,#mon-crefom) .mc-account-consent{align-items:flex-start;min-width:0;overflow-wrap:anywhere}
:is(#adherer,#mon-crefom) .mc-account-consent input[type="checkbox"]{width:18px;height:18px;flex:0 0 18px;margin-top:4px}
