/* DPLO v2 — feuille de style unique.
   Toutes les couleurs sont des variables : changer de palette = modifier le bloc :root, rien d'autre.
   Règles de contraste (vérifiées, voir v2/DECISIONS.md) :
   - texte NOIR (--encre) sur orange, bleu du logo, bleu mer, beige, lavande ;
   - texte BLANC seulement sur sarcelle (--sarcelle) et sur ses variantes foncées ;
   - jamais de texte blanc sur --action ni sur --logo. */

/* ---- Police Atkinson Hyperlegible (licence SIL OFL 1.1, hébergée ici : aucune requête vers Google) ---- */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-400-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-400-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 700; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-700-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 700; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-700-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- Palette « mixte » (charte DPLO + teintes de la carte Wikipédia) ---- */
:root {
    --sarcelle: #0b5e6c;        /* base sombre : blanc dessus 7,4:1 */
    --sarcelle-fonce: #08454f;  /* survol, cartes sur fond sarcelle */
    --logo: #58add6;            /* bleu du logo : texte noir dessus */
    --action: #ff801b;          /* orange : seule couleur d'action, texte noir dessus */
    --doux: #c6ecff;            /* bleu mer : fonds doux, texte noir dessus */
    --pale: #e9f3f5;            /* fond très clair */
    --encre: #111111;           /* texte */
    --gris: #4b5563;            /* texte secondaire (7,5:1 sur blanc) */
    --trait: #c5d4d8;           /* filets décoratifs */
    --trait-fort: #5f7a82;      /* contours de composants (≥ 3:1) */
    --police: 'Atkinson Hyperlegible', Arial, Helvetica, sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--police); font-size: 1.125rem; line-height: 1.6; color: var(--encre); background: #fff; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.25rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.15rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
p, ul, ol, dl { margin: 0 0 1em; }
a { color: var(--sarcelle); text-underline-offset: .18em; }
a:hover { color: var(--sarcelle-fonce); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; border-radius: 2px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conteneur { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.icone { width: .95em; height: .95em; margin-left: .35em; vertical-align: -.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lien-evitement { position: absolute; left: 8px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--encre); color: #fff; font-weight: 700; border-radius: 0 0 10px 10px; }
.lien-evitement:focus { top: 0; }
.pile > * + * { margin-top: 1.2rem; }

/* ---- En-tête et menu ---- */
.entete { background: #fff; border-bottom: 1px solid var(--trait); }
.entete__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; font-size: 1.1rem; line-height: 1.2; color: var(--encre); text-decoration: none; }
.logo img { flex: none; width: 56px; height: 54px; object-fit: contain; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.menu a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: 1.05rem; color: var(--encre); text-decoration: none; border-radius: 10px; }
.menu a:hover { background: var(--pale); color: var(--encre); }
.menu a[aria-current="page"] { background: var(--sarcelle); color: #fff; font-weight: 700; }
.btn-menu { display: none; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; font: 700 1.05rem var(--police); color: #fff; background: var(--sarcelle); border: 0; border-radius: 10px; cursor: pointer; }
.btn-menu svg { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
@media (max-width: 980px) {
    .js .btn-menu { display: inline-flex; }
    .js .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; }
    .js .menu.ouvert { display: flex; }
    .sans-js .menu { width: 100%; }
}

/* ---- Bandeau « À la une » : disparaît tout seul après la fin de l'événement ---- */
.une { background: var(--sarcelle); color: #fff; }
.une__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 18px; text-align: center; font-size: 1rem; line-height: 1.4; }
.une p { margin: 0; padding: 10px 0; }
.une a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 700; }
.une__etiquette { display: inline-block; padding: 1px 10px; background: var(--action); color: var(--encre); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-radius: 99px; }

/* ---- Boutons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; font: 700 1.1rem var(--police); line-height: 1.2; text-align: center; text-decoration: none; border: 2px solid transparent; border-radius: 10px; cursor: pointer; }
.btn--action { background: var(--action); color: var(--encre); }
.btn--action:hover { background: #ff9340; color: var(--encre); }
.btn--sombre { background: var(--sarcelle); color: #fff; }
.btn--sombre:hover { background: var(--sarcelle-fonce); color: #fff; }
.btn--contour { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn--contour:hover { background: var(--pale); color: var(--encre); }
.bande--sombre .btn--contour, .pied .btn--contour { color: #fff; border-color: #fff; }
.bande--sombre .btn--contour:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Bandes de page ---- */
.bande { padding: 56px 0; }
.bande--pale { background: var(--pale); }
.bande--sombre { background: var(--sarcelle); color: #fff; }
.bande--sombre a:not(.btn) { color: #fff; }
.bande--sombre :focus-visible, .une :focus-visible, .pied :focus-visible { outline-color: #fff; box-shadow: 0 0 0 3px var(--sarcelle); }
.surtitre { margin: 0 0 .6rem; font-size: 1rem; font-weight: 700; color: var(--sarcelle); }
.chapeau { font-size: 1.25rem; line-height: 1.55; max-width: 46rem; }

/* ---- Accueil ---- */
.hero { background: var(--pale); padding: 48px 0 56px; }
.hero__grille { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.hero__texte { flex: 1 1 380px; min-width: 0; }
.hero__texte .btn { margin-top: .6rem; }
.hero__carte { flex: 1 1 520px; min-width: 0; margin: 0; padding: 18px; background: #fff; border-radius: 18px; }
.hero__carte figcaption { margin-top: .6rem; font-size: 1rem; color: var(--gris); }
.carte-svg { display: block; width: 100%; height: auto; }
.carte-svg .zone { stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; transition: opacity .15s; }
.carte-svg a { cursor: pointer; }
.carte-svg a:hover .zone { opacity: .82; }
.carte-svg a:focus { outline: none; }
.carte-svg a:focus-visible .zone { stroke: var(--encre); stroke-width: 4; }
.carte-svg__noms text { font-family: var(--police); font-weight: 700; font-size: 21px; text-anchor: middle; pointer-events: none; }

/* ---- Tuiles (langues, liens) ---- */
.tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.tuile { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 120px; padding: 18px; background: #fff; border: 2px solid var(--trait); border-radius: 14px; color: var(--encre); text-decoration: none; }
.tuile:hover { border-color: var(--sarcelle); color: var(--encre); }
.tuile__nom { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; }
.pastille { flex: none; width: 18px; height: 18px; }
.tuile__detail { font-size: 1rem; }
.tuile__asso { font-size: 1rem; color: var(--sarcelle); }

/* ---- Agenda ---- */
.evt { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; padding: 28px; background: var(--sarcelle-fonce); border-radius: 18px; color: #fff; }
.evt h3 { color: #fff; font-size: 1.6rem; }
.evt a:not(.btn) { color: #fff; }
.date-carre { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 150px; background: var(--action); border-radius: 16px; color: var(--encre); text-align: center; line-height: 1.1; }
.date-carre strong { font-size: 2.7rem; }
.date-carre span { font-size: 1.25rem; font-weight: 700; }
.evt__corps { flex: 1 1 420px; min-width: 0; }
.carte-evt { display: flex; flex-direction: column; gap: .5rem; padding: 22px; background: #fff; border: 2px solid var(--encre); border-radius: 14px; }
.carte-evt--passe { border: 1px solid var(--trait-fort); }
.carte-evt h3 { margin: 0; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 .3rem; padding: 0; list-style: none; }
.etiquette { display: inline-block; padding: 2px 12px; background: var(--doux); color: var(--encre); font-size: .9rem; font-weight: 700; border-radius: 99px; }
.etiquette--avenir { background: var(--action); }
.etiquette--fini { background: #e3e8ea; }
.etiquette--lang { background: #e3e8ea; }
.liste-cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; align-items: stretch; }
.carte { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 22px; background: #fff; border: 1px solid var(--trait-fort); border-radius: 14px; }
.carte h2, .carte h3 { margin: 0; font-size: 1.3rem; }
.carte > .etiquette { align-self: flex-start; }
.carte p { margin: 0; }
.carte__liens { margin-top: auto; padding-top: .4rem; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.carte__liens a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.vide { padding: 18px 22px; background: var(--pale); border-radius: 12px; }

/* ---- Pages de contenu ---- */
.page { padding: 32px 0 64px; }
.fil ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 1rem; }
.fil li + li::before { content: '›'; margin-right: 8px; color: var(--gris); }
.fil a { display: inline-flex; align-items: center; min-height: 44px; }
.fil [aria-current] { font-weight: 700; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.signature { font-style: italic; color: var(--gris); }
.deux-colonnes { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.deux-colonnes > * { flex: 1 1 340px; min-width: 0; }
.objectifs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 18px; counter-reset: obj; }
.objectifs li { padding: 22px; background: #fff; border-top: 6px solid var(--logo); border-radius: 4px 4px 12px 12px; counter-increment: obj; }
.objectifs li:nth-child(2) { border-top-color: var(--action); }
.objectifs li:nth-child(3) { border-top-color: var(--sarcelle); }
.objectifs li::before { content: counter(obj); display: block; font-size: 2rem; font-weight: 700; color: var(--sarcelle); line-height: 1.2; }
.objectifs strong { display: block; font-size: 1.25rem; margin-bottom: .2rem; }
.variantes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.variantes li { padding: 6px 14px; background: var(--pale); border-radius: 99px; font-size: 1.05rem; }
.a-fournir { padding: 20px; border: 2px dashed var(--trait-fort); border-radius: 12px; color: var(--gris); }
.encadre-langue { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.encadre-langue__texte { flex: 3 1 480px; min-width: 0; }
.encadre-langue__carte { flex: 2 1 320px; min-width: 0; padding: 18px; background: var(--pale); border-radius: 18px; }
.encadre-langue__carte p { margin: .6rem 0 0; font-size: 1rem; }
.bandeau-langue { background: var(--logo); color: var(--encre); padding: 24px 0 44px; }
.bandeau-langue h1 { margin-bottom: .3rem; }
.bandeau-langue p { margin: 0; font-size: 1.25rem; font-weight: 700; }
.bandeau-langue a { color: var(--encre); }
.autres-langues { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.autres-langues a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; background: #fff; border-radius: 10px; font-weight: 700; color: var(--encre); text-decoration: none; }
.autres-langues a:hover { background: var(--doux); }

/* Programme du Mans */
.programme h2 { margin-top: 2.2rem; }
.programme h3 { margin-top: 2rem; padding-top: 1rem; border-top: 3px solid var(--sarcelle); color: var(--sarcelle); }
.programme h4 { margin-top: 1.6rem; }
.programme h5 { margin-top: 1.4rem; font-size: 1.1rem; }
.programme section { margin: 0 0 1rem; }
.heure { font-weight: 700; color: var(--sarcelle); white-space: nowrap; }
.session-titre { font-weight: 700; }
.programme ul { padding-left: 1.2rem; }

/* CEPPLOD */
.numerotee { list-style: none; margin: 0 0 2rem; padding: 0; }
.numerotee li { display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 2px solid var(--trait-fort); }
.numerotee__n { flex: none; width: 3.4rem; font-size: 1.6rem; font-weight: 700; color: var(--sarcelle); }
.numerotee div { min-width: 0; }
.numerotee p { margin: 0 0 .7em; }
.numerotee p:last-child { margin-bottom: 0; }
.onglets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; }
.onglets a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; font-weight: 700; color: var(--encre); border: 2px solid var(--encre); border-radius: 10px; text-decoration: none; }
.onglets a[aria-current="true"] { background: var(--sarcelle); border-color: var(--sarcelle); color: #fff; }
.comite { columns: 2 320px; padding-left: 1.2rem; }

/* Liens isolés (seuls sur leur ligne) : zone tactile d'au moins 44 px */
dd a, .liste-liens a, .lien-seul a, .carte-evt h3 a, .carte h2 a { display: inline-flex; align-items: center; min-height: 44px; }
.liste-liens { padding-left: 1.2rem; }
.carte, .prose, .carte__liens a, dd { overflow-wrap: anywhere; }
dd { margin: 0 0 1rem; }

/* ---- Pied de page ---- */
.pied { background: var(--sarcelle); color: #fff; padding: 32px 0 20px; font-size: 1.05rem; }
.pied a { color: #fff; }
.pied__ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.pied p { margin: 0; line-height: 1.7; }
.pied nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: flex-start; }
.pied nav a { display: inline-flex; align-items: center; min-height: 44px; }
.pied__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; margin-top: 12px; }
.pied__droits { font-size: .95rem; }
.pied__credit { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .4em; font-size: .95rem; }
.pied__credit a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.coeur { flex: none; width: 1.15em; height: 1.15em; fill: var(--action); }

@media print { .entete, .une, .pied, .btn-menu { display: none; } body { font-size: 12pt; } a { color: inherit; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
