/**
 * L'Assemblée — identité visuelle (03/10/2026, demande : « plus d'emoji de couleur, d'images, une plus jolie interface »).
 * Couche posée APRÈS assemblee.css : chaleur du logo (orange → corail), cartes douces, boutons arrondis, couleur par étape,
 * en-tête d'accueil avec la mascotte. Tout passe par des jetons : le mode sombre (assemblee.css) garde la main sur les surfaces.
 */
.la-shell {
    --la-paper: #fbf8f4; --la-paper-warm: #fffaf3; --la-line: #eadfd2; --la-ink: #231a14; --la-muted: #6a5c50;
    --la-radius: 12px; --la-radius-lg: 18px;
    --ui-link: #b4410f; --ui-orange: #e8651a; --ui-coral: #d63a24;
    --ui-shadow: 0 1px 2px rgba(35, 26, 20, .05), 0 10px 28px rgba(35, 26, 20, .07);
    --ui-c1: #e8651a; --ui-c2: #2f6fa8; --ui-c3: #2d8a5f; --ui-c4: #c58a1a; --ui-c5: #8a55b8;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .la-shell { --ui-link: #ffa273; --ui-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35); } }
:root[data-theme="dark"] .la-shell { --ui-link: #ffa273; --ui-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35); }

/* ── Cartes, boutons, liens ─────────────────────────────────────────────── */
.la-shell .la-card { border-radius: var(--la-radius-lg); box-shadow: var(--ui-shadow); padding: 22px; }
.la-shell .la-btn { border-radius: 999px; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.la-shell .la-btn:hover:not(:disabled) { transform: translateY(-1px); }
.la-shell .la-btn-primary, .la-shell a.la-btn-primary { background: linear-gradient(135deg, var(--ui-orange), var(--ui-coral)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(214, 58, 36, .28); }
.la-shell .la-btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #d65a14, #bf2f1b); }
.la-shell .la-btn-outline { border-color: var(--ui-orange); color: var(--ui-link); }
.la-shell .la-btn-outline:hover:not(:disabled) { background: color-mix(in srgb, var(--ui-orange) 12%, var(--la-surface)); }
.la-shell a:not(.la-btn):not(.la-card-link) { color: var(--ui-link); text-underline-offset: 3px; }
.la-shell .la-badge { border-radius: 999px; padding: 4px 12px; font-weight: 700; }

/* ── Emoji en pastille de couleur ───────────────────────────────────────── */
.la-shell .la-emo { display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; font-size: 30px; line-height: 1; background: color-mix(in srgb, var(--c, var(--ui-c1)) 15%, var(--la-surface)); }
.la-shell .la-emo-s { display: inline-block; margin-inline-end: 10px; font-size: 1.15em; }

/* ── En-tête d'accueil (hero) ───────────────────────────────────────────── */
.la-shell .la-accueil { font-size: 19px; }
.la-hero2 { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 12px; align-items: center; padding: 42px 40px 100px; border-radius: 26px; color: #fff;
    background: radial-gradient(900px 420px at 88% 8%, rgba(255, 200, 120, .38), transparent 62%), linear-gradient(135deg, #c2410c 0%, #a8300f 58%, #8c2210 100%); box-shadow: 0 18px 40px rgba(140, 34, 16, .28); }
.la-shell .la-hero2 h1 { color: #fff; font-size: clamp(28px, 4.6vw, 46px); line-height: 1.12; margin: 0 0 14px; text-wrap: balance; }
.la-shell .la-hero2 .la-acc-lead { color: #fff; font-size: 1.1em; margin: 0 0 4px; }
.la-shell .la-hero2 .la-acc-garanties { margin: 16px 0 0; }
.la-shell .la-hero2 .la-acc-garanties li { background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; }
.la-hero2-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.la-shell a.la-btn-clair, .la-shell .la-btn-clair { background: #fff; color: #8c2210; border: 2px solid #fff; min-height: 54px; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); text-decoration: none; }
.la-shell a.la-btn-contour-clair { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .85); min-height: 54px; text-decoration: none; }
.la-shell a.la-btn-contour-clair:hover { background: rgba(255, 255, 255, .16); }
.la-hero2-visuel { position: relative; min-height: 270px; display: grid; place-items: center; }
.la-hero2-loup { width: min(210px, 80%); height: auto; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .3)); }
.la-puce { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .96); font-size: 27px; box-shadow: 0 8px 18px rgba(0, 0, 0, .22); animation: la-flotte 5.5s ease-in-out infinite; }
.la-puce-1 { top: 4%; left: 12%; } .la-puce-2 { top: 10%; right: 8%; animation-delay: -1.4s; } .la-puce-3 { top: 52%; left: 2%; animation-delay: -2.8s; } .la-puce-4 { top: 46%; right: 2%; animation-delay: -4s; }
@keyframes la-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.la-bulle { position: absolute; inset-inline-start: -6px; bottom: 4px; max-width: 235px; margin: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: #2a1a12; font-size: .72em; line-height: 1.45; box-shadow: 0 8px 18px rgba(0, 0, 0, .22); }
.la-hero2-vague { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 86px; pointer-events: none; }

/* ── Quatre étapes : une couleur chacune ────────────────────────────────── */
.la-shell .la-acc-etapes li { --c: var(--ui-c1); border: 1px solid var(--la-line); border-top: 5px solid var(--c); border-radius: var(--la-radius-lg); background: var(--la-surface); box-shadow: var(--ui-shadow); padding: 20px 18px 18px; }
.la-shell .la-acc-etapes li:nth-child(2) { --c: var(--ui-c2); } .la-shell .la-acc-etapes li:nth-child(3) { --c: var(--ui-c3); } .la-shell .la-acc-etapes li:nth-child(4) { --c: var(--ui-c4); }
.la-shell .la-acc-etapes li::before { position: absolute; top: 14px; inset-inline-end: 14px; width: 30px; height: 30px; margin: 0; font-size: 15px; line-height: 30px; background: var(--c); }
.la-shell .la-acc-etapes li > strong { margin-top: 2px; font-size: 1.08em; }
.la-shell .la-acc-d { display: block; font-size: .92em; color: var(--la-muted); }

/* ── Premiers pas ───────────────────────────────────────────────────────── */
.la-shell .la-acc-action { --c: var(--ui-c1); border: 1px solid var(--la-line); border-radius: var(--la-radius-lg); background: var(--la-surface); box-shadow: var(--ui-shadow); padding: 18px; transition: transform .15s ease, box-shadow .15s ease; }
.la-shell .la-acc-action:nth-child(2) { --c: var(--ui-c2); } .la-shell .la-acc-action:nth-child(3) { --c: var(--ui-c4); } .la-shell .la-acc-action:nth-child(4) { --c: var(--ui-c3); } .la-shell .la-acc-action:nth-child(5) { --c: var(--ui-c5); }
.la-shell .la-acc-action:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(35, 26, 20, .06), 0 16px 34px rgba(35, 26, 20, .12); }
.la-shell .la-acc-action .la-emo { margin-bottom: 6px; }

/* ── Questions fréquentes et lexique ────────────────────────────────────── */
.la-shell .la-acc-faq details, .la-shell .la-acc-mots { border-radius: 14px; box-shadow: 0 1px 2px rgba(35, 26, 20, .04); }
.la-shell .la-acc-faq details[open], .la-shell .la-acc-mots[open] { border-color: var(--ui-orange); box-shadow: var(--ui-shadow); }
.la-shell .la-acc-faq summary, .la-shell .la-acc-mots > summary { list-style: none; display: flex; align-items: center; }
.la-shell .la-acc-faq summary::-webkit-details-marker, .la-shell .la-acc-mots > summary::-webkit-details-marker { display: none; }
.la-shell .la-acc-faq summary::after, .la-shell .la-acc-mots > summary::after { content: "+"; margin-inline-start: auto; padding-inline-start: 12px; font-size: 1.4em; font-weight: 400; color: var(--ui-link); }
.la-shell .la-acc-faq details[open] > summary::after, .la-shell .la-acc-mots[open] > summary::after { content: "–"; }

/* ── Grandes parties de la page ─────────────────────────────────────────── */
.la-shell .la-groupe > h2 { display: flex; align-items: center; gap: 14px; border-top: 0; padding: 0 0 12px; margin: 38px 0 10px; font-size: 1.7em; border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--ui-orange), #f5b942 55%, transparent) 1; }
.la-shell .la-groupe > h2 .la-emo { width: 48px; height: 48px; font-size: 26px; border-radius: 14px; background: color-mix(in srgb, var(--ui-orange) 16%, var(--la-surface)); }
.la-shell .la-groupe > h3, .la-shell .la-groupe h3 { margin-top: 26px; }

/* ── Cartes « grandes questions » et « aller plus loin » ────────────────── */
.la-shell .la-card-grid { gap: 14px; }
.la-shell .la-card-link { --c: var(--ui-c1); display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--la-line); border-inline-start: 6px solid var(--c); border-radius: var(--la-radius-lg); background: var(--la-surface); box-shadow: var(--ui-shadow); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.la-shell .la-card-link:nth-child(2) { --c: var(--ui-c2); } .la-shell .la-card-link:nth-child(3) { --c: var(--ui-c3); } .la-shell .la-card-link:nth-child(4) { --c: var(--ui-c4); } .la-shell .la-card-link:nth-child(5) { --c: var(--ui-c5); } .la-shell .la-card-link:nth-child(6) { --c: #c0392b; }
.la-shell .la-card-link:hover, .la-shell .la-card-link:focus-visible { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 2px 4px rgba(35, 26, 20, .06), 0 16px 34px rgba(35, 26, 20, .12); }
.la-shell .la-card-link .la-emo { width: 48px; height: 48px; font-size: 26px; }
.la-shell .la-card-link strong { margin: 0; font-size: 1.02em; }

/* ── Petits écrans ──────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .la-hero2 { grid-template-columns: 1fr; padding: 28px 20px 92px; border-radius: 22px; }
    .la-hero2-visuel { min-height: 0; padding-top: 8px; }
    .la-hero2-loup { width: 150px; }
    .la-puce { width: 42px; height: 42px; font-size: 21px; }
    .la-puce-1 { top: 0; left: 8%; } .la-puce-2 { top: 4%; right: 6%; } .la-puce-3 { top: 40%; left: 0; } .la-puce-4 { top: 36%; right: 0; }
    .la-bulle { position: static; max-width: none; margin-top: 12px; font-size: .78em; border-radius: 16px; }
    .la-shell .la-groupe > h2 { font-size: 1.4em; }
}
@media (prefers-reduced-motion: reduce) { .la-puce { animation: none; } .la-shell .la-btn, .la-shell .la-acc-action, .la-shell .la-card-link { transition: none; } }

/* ── Retouches après première vue ───────────────────────────────────────── */
.la-hero2-visuel { align-content: center; justify-items: center; gap: 12px; padding-top: 6px; }
.la-bulle { position: relative; inset: auto; max-width: 300px; margin: 0; text-align: start; border-radius: 16px; }
.la-bulle::before { content: ""; position: absolute; top: -8px; inset-inline-start: 46%; border: 9px solid transparent; border-top: 0; border-bottom-color: #fff; }
.la-shell .la-acc-etapes strong, .la-shell .la-acc-action strong { line-height: 1.3; }
.la-shell .la-acc-action strong { font-size: 1.08em; }
.la-shell .la-acc-d { line-height: 1.55; }
.la-shell .la-acc-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.la-shell .la-acc-action { flex: 1 1 250px; }
@media (max-width: 760px) { .la-bulle { max-width: none; width: 100%; } }

@media (max-width: 760px) {
    .la-shell .la-hero2 .la-acc-lead { font-size: .98em; line-height: 1.55; }
    .la-shell .la-hero2 h1 { font-size: 1.75rem; }
    .la-shell .la-hero2 .la-acc-garanties { gap: 6px; }
    .la-shell .la-hero2 .la-acc-garanties li { padding: 4px 11px; font-size: .78em; }
    .la-hero2-cta { gap: 10px; margin-top: 18px; }
    .la-hero2-cta .la-btn { flex: 1 1 100%; justify-content: center; text-align: center; }
    .la-hero2 { padding: 26px 18px 88px; }
}

/* ── En-têtes illustrés des pages intérieures ───────────────────────────── */
.la-shell-hero { background: transparent; padding: 0; }
.la-page-hero { --c: var(--ui-c1); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px); gap: 22px; align-items: center; padding: 24px 30px; margin: 0 0 28px; border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--c) 32%, var(--la-line)); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, var(--la-surface)), var(--la-surface) 72%); box-shadow: var(--ui-shadow); color: var(--la-ink); }
.la-page-hero-texte { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.la-shell .la-page-hero .la-emo { width: 56px; height: 56px; font-size: 29px; background: color-mix(in srgb, var(--c) 24%, var(--la-surface)); }
.la-shell .la-page-hero h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; text-wrap: balance; color: var(--la-ink); }
.la-shell .la-page-hero p { margin: 0; max-width: 58ch; font-size: 1.04em; line-height: 1.6; color: var(--la-muted); }
.la-page-hero-ill { color: var(--c); min-width: 0; }
.la-page-hero-ill .la-ill { display: block; width: 100%; height: auto; }
@media (max-width: 700px) { .la-page-hero { grid-template-columns: 1fr; padding: 20px 18px; gap: 6px; } .la-page-hero-ill { max-width: 190px; margin-inline: auto; } }

/* Titre répété par le module de la page : masqué (le titre est déjà dans l'en-tête) ; sinon gardé comme sous-titre */
.la-shell .la-h1-module.la-doublon { display: none; }
.la-shell .la-h1-module:not(.la-doublon) { font-size: 1.35em; margin: 6px 0 14px; }

/* ── Fiche : statut, territoire, clôture ────────────────────────────────── */
.la-fiche-infos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.la-shell .la-puce-info { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; background: color-mix(in srgb, var(--ui-c2) 12%, var(--la-surface)); border: 1px solid color-mix(in srgb, var(--ui-c2) 30%, var(--la-line)); font-size: .88em; font-weight: 600; color: var(--la-ink); }
.la-fiche-infos .la-badge { font-size: .9em; }

/* ── Pages de texte (porteur de clé, certification, rôles…) ─────────────── */
.la-texte { font-size: 1.04em; line-height: 1.75; }
.la-texte h2 { font-size: 1.45em; line-height: 1.25; margin: 2em 0 .55em; padding-inline-start: 14px; border-inline-start: 6px solid var(--as-acc); }
.la-texte h3 { font-size: 1.15em; margin: 1.5em 0 .4em; color: var(--as-link); }
.la-texte ul { list-style: none; padding: 0; }
.la-texte ul > li { position: relative; margin: .5em 0; padding-inline-start: 30px; }
.la-texte ul > li::before { content: ""; position: absolute; inset-inline-start: 6px; top: .62em; width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--as-acc), #f5b942); }
.la-texte ol { counter-reset: lt; list-style: none; padding: 0; }
.la-texte ol > li { counter-increment: lt; position: relative; margin: .7em 0; padding-inline-start: 46px; }
.la-texte ol > li::before { content: counter(lt); position: absolute; inset-inline-start: 0; top: .1em; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--as-acc); color: #fff; font-weight: 700; }
.la-texte blockquote { margin: 1.3em 0; padding: 14px 20px; border-inline-start: 5px solid #f5b942; border-radius: 0 14px 14px 0; background: color-mix(in srgb, #f5b942 14%, var(--as-surface)); }
.la-texte p strong, .la-texte li strong { color: var(--as-ink); }
.la-texte hr { border: 0; height: 3px; margin: 2em 0; background: linear-gradient(90deg, var(--as-acc), #f5b942, transparent); }

/* Même largeur et mêmes marges que les modules (.la-container : 960 px, 20 px de marge) pour que tout s'aligne */
.la-shell-hero, .la-texte { max-width: 960px; margin-inline: auto; padding-inline: 20px; box-sizing: border-box; }
.la-texte p, .la-texte li { max-width: 72ch; }
.la-ill text { fill: var(--la-ink); }

/* ── Fiches : étiquette de type, cartes d'archive ───────────────────────── */
.la-shell { --ui-c6: #c0392b; }
.la-shell .la-etiquette { display: inline-flex; align-items: center; gap: 6px; padding: 4px 13px; border-radius: 999px; font-size: .82em; font-weight: 700; letter-spacing: .02em; background: color-mix(in srgb, var(--c) 20%, var(--la-surface)); color: var(--la-ink); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--la-line)); }
.la-fiches { display: grid; gap: 14px; margin: 0 0 24px; }
.la-shell a.la-fiche-carte { --c: var(--ui-c1); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--la-line); border-inline-start: 6px solid var(--c); border-radius: var(--la-radius-lg); background: var(--la-surface); box-shadow: var(--ui-shadow); text-decoration: none; color: var(--la-ink); transition: transform .15s ease, box-shadow .15s ease; }
.la-shell a.la-fiche-carte:hover, .la-shell a.la-fiche-carte:focus-visible { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(35, 26, 20, .06), 0 16px 34px rgba(35, 26, 20, .12); border-color: var(--c); }
.la-fiche-carte-texte { display: grid; gap: 6px; min-width: 0; }
.la-fiche-carte-texte strong { font-size: 1.08em; line-height: 1.3; color: var(--la-ink); overflow-wrap: anywhere; }
.la-fiche-carte-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.la-shell .la-etiquette-s { font-size: .78em; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--la-muted); }
.la-fiche-carte-ext { font-size: .92em; line-height: 1.5; color: var(--la-muted); }
.la-fiche-carte-lire { font-weight: 700; color: var(--ui-link); white-space: nowrap; }
.la-vide { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 28px 16px; border: 2px dashed var(--la-line); border-radius: var(--la-radius-lg); background: var(--la-surface); color: var(--la-muted); }
.la-vide .la-ill { width: 190px; color: var(--ui-c3); }
.la-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 32px; }
.la-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--la-line); border-radius: 999px; background: var(--la-surface); color: var(--la-ink); text-decoration: none; font-weight: 700; }
.la-pagination .page-numbers.current { background: linear-gradient(135deg, var(--ui-orange), var(--ui-coral)); border-color: transparent; color: #fff; }
@media (max-width: 640px) { .la-shell a.la-fiche-carte { grid-template-columns: auto minmax(0, 1fr); } .la-fiche-carte-lire { grid-column: 1 / -1; } }
/* Sur une fiche, le contenu n'a pas de marge latérale : l'en-tête non plus, pour que tout s'aligne */
.la-shell-hero:has(.la-fiche-hero) { padding-inline: 0; }

/* ── Guide des façons de voter ──────────────────────────────────────────── */
.la-guide-sec { margin: 0 0 40px; }
.la-shell .la-guide-sec > h2 { display: flex; align-items: center; gap: 14px; font-size: 1.65em; margin: 34px 0 10px; padding-bottom: 12px; border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--ui-orange), #f5b942 55%, transparent) 1; }
.la-shell .la-guide-sec > h2 .la-emo { width: 48px; height: 48px; font-size: 26px; border-radius: 14px; background: color-mix(in srgb, var(--ui-orange) 16%, var(--la-surface)); }
/* arguments (page et accueil) */
.la-args { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin: 14px 0 18px; }
.la-shell .la-arg { --c: var(--ui-c1); padding: 20px 18px 18px; border: 1px solid var(--la-line); border-top: 5px solid var(--c); border-radius: var(--la-radius-lg); background: var(--la-surface); box-shadow: var(--ui-shadow); min-width: 0; }
.la-shell .la-arg h3 { margin: 10px 0 6px; font-size: 1.1em; line-height: 1.3; }
.la-shell .la-arg p { margin: 0; font-size: .95em; line-height: 1.6; color: var(--la-muted); }
/* guide de choix */
.la-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.la-choix-groupe h3 { margin: 0 0 10px; font-size: 1.05em; }
.la-choix-groupe ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.la-shell a.la-situation { --c: var(--ui-c1); display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1.5px solid var(--la-line); border-inline-start: 6px solid var(--c); border-radius: var(--la-radius); background: var(--la-surface); text-decoration: none; color: var(--la-ink); min-height: 56px; transition: transform .15s ease, box-shadow .15s ease; }
.la-shell a.la-situation:hover, .la-shell a.la-situation:focus-visible { transform: translateX(3px); box-shadow: var(--ui-shadow); border-color: var(--c); }
.la-shell .la-situation .la-emo { width: 42px; height: 42px; font-size: 22px; }
.la-situation-t { display: grid; gap: 2px; line-height: 1.35; font-weight: 600; }
.la-situation-t small { font-weight: 700; color: var(--ui-link); font-size: .88em; }
/* tableau comparatif */
.la-tableau-wrap { overflow-x: auto; border: 1px solid var(--la-line); border-radius: var(--la-radius-lg); background: var(--la-surface); box-shadow: var(--ui-shadow); }
.la-tableau { width: 100%; border-collapse: collapse; font-size: .93em; min-width: 720px; }
.la-tableau th, .la-tableau td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--la-line); }
.la-tableau thead th { position: sticky; top: 0; background: color-mix(in srgb, var(--ui-orange) 12%, var(--la-surface)); font-size: .85em; text-transform: uppercase; letter-spacing: .04em; }
.la-tableau tbody th { font-weight: 700; border-inline-start: 6px solid var(--c, var(--ui-c1)); white-space: nowrap; }
.la-tableau tbody th a { color: var(--la-ink); text-decoration: none; }
.la-tableau tbody tr:nth-child(even) { background: color-mix(in srgb, var(--la-paper) 70%, var(--la-surface)); }
.la-tableau tbody tr:last-child > * { border-bottom: 0; }
.la-etiq-secret { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .85em; font-weight: 700; white-space: nowrap; }
.la-etiq-secret.la-etiq-secret { background: color-mix(in srgb, var(--ui-c3) 16%, var(--la-surface)); color: var(--la-green-fg); }
.la-etiq-secret.la-etiq-public { background: color-mix(in srgb, var(--ui-c4) 18%, var(--la-surface)); color: var(--la-seal-ink); }
.la-etiq-secret.la-etiq-none { background: color-mix(in srgb, var(--la-muted) 14%, var(--la-surface)); color: var(--la-muted); }
.la-effort { color: var(--ui-c4); letter-spacing: 2px; white-space: nowrap; }
/* fiches de méthode */
.la-methodes { display: grid; gap: 18px; }
.la-methode { --c: var(--ui-c1); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px 22px; border: 1px solid var(--la-line); border-inline-start: 6px solid var(--c); border-radius: var(--la-radius-lg); background: var(--la-surface); box-shadow: var(--ui-shadow); scroll-margin-top: 90px; }
.la-methode:target { outline: 3px solid var(--c); outline-offset: 3px; background: color-mix(in srgb, var(--c) 7%, var(--la-surface)); }
.la-methode-ill { color: var(--c); min-width: 0; } .la-methode-ill .la-ill { display: block; width: 100%; height: auto; }
.la-methode-texte { min-width: 0; } .la-methode-texte p { margin: 8px 0; line-height: 1.6; }
.la-shell .la-methode h3 { margin: 0 0 6px; font-size: 1.25em; display: flex; align-items: center; gap: 10px; }
.la-emo-s { font-size: 1.1em; }
.la-methode-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.la-methode-savoir { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--c) 9%, var(--la-surface)); font-size: .94em; }
.la-shell a.la-retour { font-size: .88em; font-weight: 700; }
@media (max-width: 700px) { .la-methode { grid-template-columns: 1fr; gap: 6px; } .la-methode-ill { max-width: 170px; margin-inline: auto; } }
/* limites assumées */
.la-limites { list-style: none; margin: 10px 0 18px; padding: 0; display: grid; gap: 10px; }
.la-limites li { position: relative; padding: 12px 16px 12px 46px; border: 1.5px dashed var(--la-seal); border-radius: var(--la-radius); background: var(--la-warm-tint); line-height: 1.55; }
.la-limites li::before { content: "ℹ️"; position: absolute; inset-inline-start: 14px; top: 12px; }
.la-puce-lien { text-decoration: none; cursor: pointer; } .la-shell a.la-puce-lien { color: var(--ui-link); }
.la-shell a.la-situation .la-situation-t { color: var(--la-ink); }
.la-shell a.la-situation .la-situation-t small { color: var(--ui-link); }
.la-effort { color: var(--la-seal-ink); }

/* Bulle de la mascotte : devient un lien vers la rubrique d'aide pas à pas */
.la-shell a.la-bulle { display: block; text-decoration: none; color: #2a1a12; cursor: pointer; }
.la-shell a.la-bulle:hover, .la-shell a.la-bulle:focus-visible { box-shadow: 0 0 0 3px #f5b942, 0 8px 18px rgba(0, 0, 0, .22); }
.la-aide-note { margin: 4px 0 14px; padding: 12px 16px; border: 1.5px dashed var(--la-seal); border-radius: var(--la-radius); background: var(--la-warm-tint); font-size: .95em; }
.la-accueil #aide { scroll-margin-top: 90px; }


/* Suivre une délibération */
.la-suivi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.la-suivi .la-btn[aria-pressed="true"] { background: var(--la-green, #1a6b3a); border-color: var(--la-green, #1a6b3a); color: #fff; }

/* Page Accessibilité */
.la-ad-liste { display: grid; gap: 8px; padding-inline-start: 1.2em; }

/* Décisions et suites */
.la-im-tuiles { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.la-im-tuile { display: grid; justify-items: start; gap: 4px; padding: 14px; border: 1px solid var(--la-line, #ccc); border-radius: 16px; background: var(--la-surface, #fff); }
.la-im-tuile strong { font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.la-im-liste { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.la-im-item h3 { margin: 0 0 6px; font-size: 1.1rem; }
.la-puce-alerte { background: var(--la-warm-tint, #fde8d8); }

/* Données ouvertes */
.la-od-liens { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* Lieux, portées et initiatives */
.la-puce-portee { background: var(--la-civic-tint, #e3ecf7); font-weight: 600; }
.la-lieu { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.la-lieu legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.la-lieu-ligne { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.la-lieu-ligne select { max-width: 100%; padding: 10px; border: 1px solid var(--la-line); border-radius: 10px; background: var(--la-surface); color: inherit; font: inherit; }
.la-lieu-ligne input[type=search] { flex: 1 1 220px; min-width: 0; padding: 10px; border: 1px solid var(--la-line); border-radius: 10px; background: var(--la-surface); color: inherit; font: inherit; }
.la-lieu-radios { display: grid; gap: 6px; margin: 8px 0; }
.la-lieu-radio { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--la-line); border-radius: 12px; cursor: pointer; background: var(--la-surface); }
.la-lieu-radio input { width: 20px; height: 20px; flex: none; }
.la-lieu-resultats { display: grid; gap: 6px; margin: 6px 0; }
.la-lieu-opt { display: block; text-align: start; width: 100%; padding: 10px 12px; border: 1px solid var(--la-line); border-radius: 12px; background: var(--la-surface); color: inherit; font: inherit; cursor: pointer; min-height: 44px; overflow-wrap: anywhere; }
.la-lieu-opt:hover, .la-lieu-opt:focus-visible { border-color: var(--la-civic); outline: 2px solid var(--la-civic); }
.la-lieu-opt em { opacity: .8; font-style: normal; font-size: .9em; } .la-lieu-opt small { display: block; opacity: .8; }
.la-lieu-choisi { margin: 4px 0; font-weight: 700; color: var(--la-green-fg, #1a6b3a); }
.la-filtres { display: grid; gap: 10px; margin: 0 0 14px; }
.la-filtre-ligne { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.la-filtre-titre { margin: 4px 0 0; }
.la-shell a.la-filtre-puce { display: inline-block; padding: 8px 14px; border: 2px solid var(--la-line); border-radius: 999px; text-decoration: none; color: var(--la-ink); font-weight: 600; min-height: 24px; background: var(--la-surface); }
.la-shell a.la-filtre-puce:hover { border-color: var(--la-civic); }
.la-shell a.la-filtre-on { background: var(--la-civic); border-color: var(--la-civic); color: #fff; }

/* ── Panneau « Ce que vous pouvez faire ici » ── */
.la-agir { margin: 0 0 22px; padding: 18px; border-radius: var(--la-radius-lg); border: 1px solid var(--la-line); background: linear-gradient(135deg, var(--la-civic-tint), var(--la-surface)); }
.la-agir h2 { margin: 0 0 12px; font-size: 1.25rem; }
.la-agir-compte { margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: var(--la-warm-tint); border: 2px solid var(--ui-c1, #e8651a); }
.la-agir-compte p { margin: 0 0 8px; } .la-agir-compte .la-btn-row { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.la-agir-liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.la-shell a.la-agir-act { --c: var(--ui-c1); display: flex; gap: 12px; align-items: center; padding: 12px 14px; min-height: 64px; border: 1px solid var(--la-line); border-inline-start: 6px solid var(--c); border-radius: 16px; background: var(--la-surface); color: var(--la-ink); text-decoration: none; position: relative; }
.la-shell a.la-agir-act:hover, .la-shell a.la-agir-act:focus-visible { border-color: var(--c); box-shadow: var(--ui-shadow); transform: translateY(-2px); }
.la-agir-act strong { display: block; } .la-agir-act small { display: block; opacity: .85; line-height: 1.35; }
.la-agir-lock { margin-inline-start: auto; align-self: flex-start; font-size: .72rem; font-style: normal; opacity: .85; white-space: nowrap; }
.la-agir-apercu { margin: 14px 0 0; padding: 14px; border: 2px dashed var(--la-line); border-radius: 16px; background: var(--la-surface); }
.la-agir-apercu-t { margin: 0 0 8px; font-weight: 700; }
.la-agir-bulletin { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.la-agir-bulletin .la-ballot-opt { opacity: .6; cursor: not-allowed; pointer-events: none; }
.la-agir-options, .la-agir-projets { margin: 6px 0 10px; padding-inline-start: 1.3em; display: grid; gap: 6px; }
.la-agir-projets { list-style: none; padding: 0; } .la-agir-projets li { padding: 10px 12px; border: 1px solid var(--la-line); border-radius: 12px; }
.la-agir-fake { margin-inline-start: 8px; white-space: nowrap; color: var(--la-ink); font-weight: 400; }
.la-agir-flash { animation: la-agir-flash 1.6s ease; }
@keyframes la-agir-flash { 0%, 60% { box-shadow: 0 0 0 4px var(--ui-c1, #e8651a); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .la-agir-flash { animation: none; outline: 3px solid var(--ui-c1, #e8651a); } .la-shell a.la-agir-act:hover { transform: none; } }

/* ── Exemples : corps de fiche court, coloré, scannable ── */
.la-ex { --c: var(--ui-c1); display: grid; gap: 14px; margin: 0 0 22px; }
.la-ex-pill { margin: 0; justify-self: start; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--la-seal, #a8842f); background: var(--la-surface); font-size: .86rem; }
.la-ex-accroche { margin: 0; padding: 16px 18px; border-radius: 18px; font-size: 1.22rem; font-weight: 700; line-height: 1.35; background: var(--la-surface); border: 1px solid var(--la-line); border-inline-start: 7px solid var(--c); box-shadow: var(--ui-shadow); }
.la-ex-faits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.la-ex-faits li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--la-line); border-radius: 14px; background: var(--la-surface); }
.la-ex-faits .la-ex-e { font-size: 1.6rem; line-height: 1; } .la-ex-faits small { display: block; opacity: .75; } .la-ex-faits b { display: block; line-height: 1.25; }
.la-ex-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.la-ex-col { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--la-line); background: var(--la-surface); }
.la-ex-col h3 { margin: 0 0 8px; font-size: 1.02rem; }
.la-ex-col.la-ex-pour { border-top: 5px solid var(--la-green, #1a6b3a); } .la-ex-col.la-ex-quest { border-top: 5px solid var(--ui-c3, #e0a800); }
.la-ex-col ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 6px; }
.la-ex-essayez { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--la-civic-tint); }
.la-ex-essayez strong { margin-inline-end: 4px; } .la-ex-essayez span { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--la-surface); border: 1px solid var(--la-line); font-size: .92rem; }
/* anciens exemples pédagogiques : cadre pointillé lourd remplacé par un encart léger, replié */
.la-shell .la-demo-exemple, .la-demo-exemple { border: 1px solid var(--la-line) !important; border-inline-start: 6px solid var(--la-seal, #a8842f) !important; border-radius: 16px; padding: 12px 16px !important; margin-bottom: 18px !important; }
.la-demo-exemple p { margin: 0 0 6px; font-size: .95rem; }

/* ── Accueil : tour des fonctionnalités ── */
.la-ft-grille { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.la-shell a.la-ft-tuile { --c: var(--ui-c1); display: grid; gap: 6px; align-content: start; height: 100%; padding: 16px; border-radius: 18px; border: 1px solid var(--la-line); border-top: 6px solid var(--c); background: var(--la-surface); color: var(--la-ink); text-decoration: none; box-shadow: var(--ui-shadow); }
.la-shell a.la-ft-tuile:hover, .la-shell a.la-ft-tuile:focus-visible { transform: translateY(-3px); border-color: var(--c); }
.la-ft-tuile .la-emo { font-size: 1.7rem; } .la-ft-tuile strong { font-size: 1.1rem; } .la-ft-tuile span.la-ft-d { opacity: .88; line-height: 1.4; }
.la-ft-go { margin-top: 4px; font-weight: 700; color: var(--c); }
.la-test-note { margin: 12px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); font-size: .9rem; line-height: 1.4; }

/* Bac à sable : confirmation avant de valider un choix */
.la-sb-confirm { margin: 12px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--la-warm-tint); border: 2px solid var(--ui-c1, #e8651a); }
.la-sb-confirm p { margin: 0 0 8px; } .la-sb-confirm .la-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }

/* ── Tableau de bord « Mon espace » ── */
.la-dash-hero { margin: 0 0 18px; padding: 20px; border-radius: var(--la-radius-lg); background: linear-gradient(135deg, #c2410c, #8c2210); color: #fff; box-shadow: var(--ui-shadow); }
.la-dash-hero h1 { margin: 0; color: #fff; font-size: 1.6rem; line-height: 1.2; }
.la-dash-id { display: flex; gap: 14px; align-items: flex-start; } .la-dash-id > div { min-width: 0; flex: 1; }
.la-dash-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: rgba(255, 255, 255, .2); border: 2px solid rgba(255, 255, 255, .5); }
.la-dash-sous { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.la-dash-hero .la-puce-info { background: rgba(255, 255, 255, .2); color: #fff; border: 1px solid rgba(255, 255, 255, .35); } .la-shell .la-dash-hero a.la-puce-info { color: #fff; text-decoration: none; }
.la-dash-niv { margin: 10px 0 4px; } .la-dash-hero .la-help { color: rgba(255, 255, 255, .92); }
.la-dash-hero .la-gauge { background: rgba(255, 255, 255, .25); max-width: 360px; } .la-dash-hero .la-gauge-fill { background: #ffd27a; }
.la-kpis { list-style: none; margin: 16px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.la-shell a.la-kpi { --c: var(--ui-c1); display: grid; gap: 2px; justify-items: start; padding: 12px; border-radius: 16px; background: var(--la-surface); color: var(--la-ink); text-decoration: none; border-top: 5px solid var(--c); min-height: 96px; }
.la-kpi .la-emo { font-size: 1.3rem; } .la-kpi strong { font-size: 1.8rem; line-height: 1; font-variant-numeric: tabular-nums; } .la-kpi span:last-child { font-size: .88rem; opacity: .85; }
.la-kpi-on { box-shadow: 0 0 0 3px rgba(255, 210, 122, .9); }
.la-shell a.la-kpi:hover, .la-shell a.la-kpi:focus-visible { transform: translateY(-2px); }
.la-dash-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.la-dash-hero .la-btn-primary { background: #fff; color: #8c2210; } .la-dash-hero .la-btn-outline { border-color: #fff; color: #fff; background: transparent; }
.la-shell .la-dash-hero a.la-btn-outline { color: #fff; } .la-shell .la-dash-hero a.la-btn-primary { color: #8c2210; }
.la-dash-vide { text-align: center; } .la-dash-vide .la-emo { font-size: 2.2rem; }
.la-dash .la-tabs { display: flex; flex-wrap: wrap; gap: 6px; } .la-dash .la-tab { min-height: 44px; }
.la-card h4 { margin: 14px 0 8px; }

/* Lecture à voix haute : conseils dans une bulle ⓘ (plus de texte permanent sur la page) */
.la-ecoute { position: relative; }
.la-ecoute-info { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--la-line); background: var(--la-surface); color: var(--la-civic-fg, #1d4e89); font-size: 1.1rem; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.la-ecoute-info:hover, .la-ecoute-info:focus-visible, .la-ecoute-info[aria-expanded="true"] { border-color: var(--la-civic); outline: 2px solid var(--la-civic); outline-offset: 1px; }
.la-ecoute-alerte::after { content: ""; position: absolute; inset-block-start: 1px; inset-inline-end: 1px; width: 9px; height: 9px; border-radius: 50%; background: var(--ui-c1, #e8651a); border: 1.5px solid var(--la-surface); }
.la-ecoute-pop { position: absolute; z-index: 40; inset-block-start: calc(100% + 6px); inset-inline-start: 0; width: min(380px, calc(100vw - 48px)); padding: 12px 14px; border-radius: 14px; border: 1px solid var(--la-line); background: var(--la-surface); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); display: grid; gap: 8px; }
.la-ecoute-pop[hidden] { display: none; } .la-ecoute-pop .la-ecoute-aide { flex-basis: auto; border-style: solid; } .la-ecoute-pop .la-ecoute-conseil { flex-basis: auto; }

/* texte des tuiles-liens : encre normale (le lien orange ne doit colorer que « Essayer → ») */
.la-shell a.la-ft-tuile strong, .la-shell a.la-ft-tuile .la-ft-d, .la-shell a.la-agir-act strong, .la-shell a.la-agir-act small, .la-shell a.la-kpi strong, .la-shell a.la-kpi span, .la-shell a.la-filtre-puce { color: var(--la-ink); }
.la-shell a.la-filtre-on { color: #fff; } .la-shell a.la-ft-tuile .la-ft-go { color: var(--la-ink); }
.la-shell a.la-ft-tuile .la-ft-go { color: var(--ui-link); }

/* Tableau de bord : lisible sur téléphone (titre blanc sur le fond orange, indicateurs sur 2 colonnes) */
.la-shell .la-dash-hero h1, .la-shell .la-dash-hero h1 * { color: #fff; }
.la-kpis { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.la-shell a.la-kpi { min-height: 84px; padding: 10px 12px; }
.la-dash-avatar { width: 52px; height: 52px; font-size: 1.6rem; }
@media (max-width: 520px) { .la-dash-hero { padding: 14px; } .la-kpis { grid-template-columns: repeat(2, 1fr); } .la-dash-hero h1 { font-size: 1.35rem; } }

/* Lecture à voix haute : seul le bouton « Écouter » est visible au départ ; voix, vitesse, arrêt et bulle ⓘ apparaissent après le clic */
.la-ecoute-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.la-ecoute-opts[hidden] { display: none; }

/* Bulletin : la légende (long texte d'introduction) reste DANS le cadre au lieu de chevaucher sa bordure (bug vu sur mobile) */
fieldset.la-ballot { min-width: 0; margin: 0 0 16px; padding: 14px; border: 1px solid var(--la-line); border-radius: 16px; box-sizing: border-box; }
fieldset.la-ballot > legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-size: .95rem; line-height: 1.45; }
fieldset.la-ballot > legend + * { clear: both; }

/* Contrastes (audit axe, 04/10) */
.la-shell a.la-filtre-puce.la-filtre-on { background: #1d4e89; border-color: #1d4e89; color: #fff; }
:root[data-theme="dark"] .la-shell a.la-filtre-puce.la-filtre-on { background: #2f6db5; border-color: #2f6db5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .la-shell a.la-filtre-puce.la-filtre-on { background: #2f6db5; border-color: #2f6db5; } }
.la-shell a.la-filtre-puce.la-filtre-on * { color: #fff; }
.la-agir-lock { color: var(--la-ink); opacity: 1; }
.la-agir-bulletin .la-ballot-opt { opacity: 1; border-style: dashed; cursor: not-allowed; pointer-events: none; }
.la-shell a.la-bulle { background: #fff; color: #7a2b0a !important; }
