/**
 * L'Assemblée — identité visuelle dédiée (institutionnelle, ≠ charte Almanach).
 * Scope : .la-shell (posé sur le wrapper de chaque page/panneau du module).
 * Ne dépend d'aucune police supplémentaire (Lora / Source Sans 3 / Courier
 * Prime sont déjà chargées par astra-child/functions.php).
 */

.la-shell {
    --la-ink: #1b2430;
    --la-civic: #24466b;
    --la-civic-d: #17304c;
    --la-civic-l: #3d6b9c;
    --la-paper: #f7f8fa;
    --la-paper-warm: #fbfaf6;
    --la-line: #d5dae2;
    --la-line-strong: #9aa6b4;
    --la-muted: #5d6874;
    --la-seal: #a8842f;
    --la-seal-l: #cdae5f;
    --la-green: #2d6a4f;
    --la-green-bg: #eaf5ef;
    --la-red: #9b2c2c;
    --la-red-bg: #fbecec;
    --la-surface: #fff;
    --la-tint: #eef1f5;
    --la-civic-tint: #e4ecf5;
    --la-seal-tint: #f6ecd8;
    --la-warm-tint: #fdf8ee;
    --la-seal-ink: #7a5a17;
    --la-seal-line: #edd9a3;
    --la-toast-bg: #1b2430;
    --la-green-fg: var(--la-green);
    --la-red-fg: var(--la-red);
    --la-civic-fg: var(--la-civic-d);
    --la-radius: 6px;
    --la-radius-lg: 10px;
    --la-mono: 'Courier Prime', ui-monospace, SFMono-Regular, Menlo, monospace;
    --la-serif: 'Lora', Georgia, serif;
    --la-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--la-ink);
    background: var(--la-paper);
    font-family: var(--la-sans);
    line-height: 1.55;
}
.la-shell * { box-sizing: border-box; }
.la-shell a { color: var(--la-civic-fg); }
.la-shell h1, .la-shell h2, .la-shell h3, .la-shell h4 {
    font-family: var(--la-serif);
    color: var(--la-ink);
    line-height: 1.25;
    margin: 0 0 .5em;
}
.la-shell h1 { font-size: clamp(28px, 4vw, 40px); }
.la-shell h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 2.2em; }
.la-shell h3 { font-size: 19px; }
.la-shell p { margin: 0 0 1em; }

.la-container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Focus visible partout — jamais retiré à la souris */
.la-shell a:focus-visible,
.la-shell button:focus-visible,
.la-shell input:focus-visible,
.la-shell select:focus-visible,
.la-shell textarea:focus-visible,
.la-shell [tabindex]:focus-visible {
    outline: 3px solid var(--la-seal);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .la-shell * { animation: none !important; transition: none !important; }
}

/* ── En-tête d'acte ─────────────────────────────────────────────────────── */
.la-act-header {
    background: var(--la-civic);
    color: #fff;
    border-radius: var(--la-radius-lg);
    padding: 22px 24px;
    margin-bottom: 24px;
}
.la-act-num {
    font-family: var(--la-mono);
    font-size: 13px;
    opacity: .85;
    letter-spacing: .02em;
    display: block;
    margin-bottom: 6px;
}
.la-act-header h1 { color: #fff; margin-bottom: 10px; }
.la-act-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; opacity: .95; }
.la-act-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ── Cartes ──────────────────────────────────────────────────────────────── */
.la-card {
    background: var(--la-paper-warm);
    border: 1px solid var(--la-line);
    border-radius: var(--la-radius-lg);
    padding: 20px 22px;
    margin-bottom: 20px;
}
.la-card > h3:first-child, .la-card > h2:first-child { margin-top: 0; }
.la-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 16px 0;
}
.la-card-link {
    display: block;
    background: var(--la-paper-warm);
    border: 1px solid var(--la-line);
    border-radius: var(--la-radius-lg);
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .15s ease;
}
.la-card-link:hover, .la-card-link:focus-visible { border-color: var(--la-civic-l); }
.la-card-link strong { display: block; font-family: var(--la-serif); font-size: 16px; margin-bottom: 8px; color: var(--la-ink); }

/* ── Badges / pastilles ─────────────────────────────────────────────────── */
.la-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 700;
    background: var(--la-tint);
    color: var(--la-ink);
    white-space: nowrap;
}
.la-badge + .la-badge { margin-inline-start: 6px; }
.la-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.la-badge-civic { background: var(--la-civic-tint); color: var(--la-civic-fg); }
.la-badge-adopted { background: var(--la-green-bg); color: var(--la-green-fg); }
.la-badge-rejected { background: var(--la-red-bg); color: var(--la-red-fg); }
.la-badge-vote { background: var(--la-seal-tint); color: var(--la-seal-ink); }

/* ── Sceau (décision adoptée) ───────────────────────────────────────────── */
.la-seal-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--la-seal);
    color: #fff;
    font-size: 16px;
    transform: rotate(-8deg);
    flex-shrink: 0;
}

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.la-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: var(--la-radius);
    border: 1.5px solid transparent;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--la-sans);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.la-btn:disabled { opacity: .55; cursor: not-allowed; }
.la-btn-primary { background: var(--la-civic); color: #fff; }
.la-btn-primary:hover:not(:disabled) { background: var(--la-civic-d); }
.la-btn-outline { background: transparent; border-color: var(--la-civic); color: var(--la-civic-fg); }
.la-btn-outline:hover:not(:disabled) { background: var(--la-civic-tint); }
.la-btn-danger { background: transparent; border-color: var(--la-red); color: var(--la-red-fg); }
.la-btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
.la-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }

/* ── Formulaires ─────────────────────────────────────────────────────────── */
.la-field { margin-bottom: 16px; }
.la-field label {
    display: block;
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 6px;
    color: var(--la-ink);
}
.la-field .la-help { display: block; font-size: 12.5px; color: var(--la-muted); margin-top: 4px; font-weight: 400; }
.la-field input[type=text], .la-field input[type=number], .la-field input[type=date],
.la-field select, .la-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--la-line);
    border-radius: var(--la-radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--la-ink);
    background: var(--la-surface);
}
.la-field input:focus, .la-field select:focus, .la-field textarea:focus {
    outline: none;
    border-color: var(--la-civic);
    box-shadow: 0 0 0 3px rgba(36, 70, 107, .12);
}
.la-field-row { display: flex; flex-wrap: wrap; gap: 12px; }
.la-field-row .la-field { flex: 1 1 160px; margin-bottom: 0; }
.la-radiogroup fieldset { border: 0; padding: 0; margin: 0; }
.la-radiogroup legend { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; padding: 0; }
.la-radiogroup label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-bottom: 8px; cursor: pointer; }
.la-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.la-checkbox input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }

/* ── Frise de phases (stepper) — jamais la couleur seule ────────────────── */
.la-stepper { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 16px 0; padding: 0; }
.la-stepper li {
    flex: 1 1 auto;
    min-width: 110px;
    text-align: center;
    padding: 10px 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--la-muted);
    border-bottom: 4px solid var(--la-line);
    position: relative;
}
.la-stepper li.la-step-done { color: var(--la-green-fg); border-bottom-color: var(--la-green); }
.la-stepper li.la-step-done::before { content: '✓ '; }
.la-stepper li.la-step-active { color: var(--la-civic-fg); border-bottom-color: var(--la-civic); font-weight: 800; }
.la-stepper li.la-step-active::before { content: '● '; }
.la-stepper li.la-step-future::before { content: '○ '; opacity: .5; }

/* ── Jauge (soutiens / quorum) ──────────────────────────────────────────── */
.la-gauge-wrap { margin: 14px 0; }
.la-gauge-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.la-gauge {
    height: 12px;
    border-radius: 100px;
    background: var(--la-tint);
    overflow: hidden;
    position: relative;
}
.la-gauge-fill { height: 100%; background: var(--la-civic); border-radius: 100px; transition: width .3s ease; }
.la-gauge-fill.la-gauge-reached { background: var(--la-green); }

/* ── Bulletin de vote ───────────────────────────────────────────────────── */
.la-ballot { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.la-ballot-opt {
    flex: 1 1 140px;
    min-height: 52px;
    border: 1.5px solid var(--la-line);
    border-radius: var(--la-radius);
    background: var(--la-surface);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.la-ballot-opt:hover:not(:disabled) { border-color: var(--la-civic); }
.la-ballot-opt.la-opt-pour { color: var(--la-green-fg); }
.la-ballot-opt.la-opt-contre { color: var(--la-red-fg); }
.la-ballot-opt.la-opt-abstention { color: var(--la-muted); }
.la-ballot-secret-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--la-muted); margin-top: 8px; }

/* ── Résultat ────────────────────────────────────────────────────────────── */
.la-result-bars { margin: 14px 0; }
.la-result-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.la-result-row .la-result-label { width: 110px; flex-shrink: 0; font-weight: 700; }
.la-result-row .la-result-track { flex: 1; height: 20px; background: var(--la-tint); border-radius: 4px; overflow: hidden; }
.la-result-row .la-result-fill { height: 100%; background: var(--la-civic); }
.la-result-row .la-result-fill.la-fill-pour { background: var(--la-green); }
.la-result-row .la-result-fill.la-fill-contre { background: var(--la-red); }
.la-result-row .la-result-num { width: 50px; text-align: end; flex-shrink: 0; font-family: var(--la-mono); }
.la-result-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 10px; }
.la-result-table caption { text-align: start; font-size: 12px; color: var(--la-muted); margin-bottom: 6px; }
.la-result-table th, .la-result-table td { padding: 6px 10px; border-bottom: 1px solid var(--la-line); text-align: start; }

/* ── Registre (transparence) ────────────────────────────────────────────── */
.la-registry { font-family: var(--la-mono); }
.la-registry-status {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: var(--la-radius); margin-bottom: 16px; font-weight: 700; font-size: 14px;
}
.la-registry-status.la-ok { background: var(--la-green-bg); color: var(--la-green-fg); }
.la-registry-status.la-bad { background: var(--la-red-bg); color: var(--la-red-fg); }
.la-registry-table-wrap { overflow-x: auto; border: 1px solid var(--la-line); border-radius: var(--la-radius-lg); }
.la-registry-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.la-registry-table th {
    background: var(--la-civic); color: #fff; text-align: start; padding: 10px 14px; font-family: var(--la-sans); font-weight: 700;
}
.la-registry-table td { padding: 9px 14px; border-bottom: 1px solid var(--la-line); }
.la-registry-hash { font-size: 12px; color: var(--la-muted); }

/* ── Accordéon (natif <details>) ────────────────────────────────────────── */
.la-accordion { border: 1px solid var(--la-line); border-radius: var(--la-radius-lg); margin-bottom: 14px; overflow: hidden; }
.la-accordion summary {
    padding: 14px 18px; cursor: pointer; font-weight: 700; list-style: none;
    display: flex; justify-content: space-between; align-items: center; background: var(--la-paper-warm);
}
.la-accordion summary::-webkit-details-marker { display: none; }
.la-accordion summary::after { content: '▾'; color: var(--la-muted); transition: transform .15s ease; }
.la-accordion[open] summary::after { transform: rotate(180deg); }
.la-accordion-body { padding: 16px 18px; border-top: 1px solid var(--la-line); }

/* ── Différences d'amendement ───────────────────────────────────────────── */
.la-diff { border-inline-start: 4px solid var(--la-seal); background: var(--la-warm-tint); padding: 12px 16px; border-radius: 0 var(--la-radius) var(--la-radius) 0; margin: 12px 0; }
.la-diff-meta { font-size: 12.5px; color: var(--la-muted); margin-bottom: 6px; }

/* ── Deux colonnes d'arguments ──────────────────────────────────────────── */
.la-args-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
@media (max-width: 640px) { .la-args-cols { grid-template-columns: 1fr; } }
.la-args-col h4 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.la-args-col.la-args-pour h4 { color: var(--la-green-fg); }
.la-args-col.la-args-contre h4 { color: var(--la-red-fg); }
.la-arg-item { border: 1px solid var(--la-line); border-radius: var(--la-radius); padding: 10px 12px; margin-bottom: 8px; font-size: 14px; }

/* ── États vides ─────────────────────────────────────────────────────────── */
.la-empty { text-align: center; padding: 32px 20px; border: 1.5px dashed var(--la-line-strong); border-radius: var(--la-radius-lg); }
.la-empty-icon { font-size: 30px; margin-bottom: 10px; }
.la-empty-title { font-weight: 700; margin-bottom: 4px; }
.la-empty-text { color: var(--la-muted); font-size: 14px; }

/* ── Toasts ──────────────────────────────────────────────────────────────── */
#la-toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.la-toast {
    background: var(--la-toast-bg); color: #fff; padding: 12px 18px; border-radius: var(--la-radius);
    font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
    opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease;
}
.la-toast.la-toast-show { opacity: 1; transform: translateY(0); }
.la-toast.la-toast-error { background: var(--la-red); }
.la-toast.la-toast-success { background: var(--la-green); }

/* ── Modale (réutilise le pattern libertaModalA11y côté JS) ─────────────── */
.la-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: none; align-items: center; justify-content: center; z-index: 9998; padding: 20px; }
.la-modal-overlay.la-modal-open { display: flex; }
.la-modal { background: var(--la-surface); border-radius: var(--la-radius-lg); max-width: 480px; width: 100%; padding: 24px; max-height: 86vh; overflow-y: auto; }
.la-modal-close { float: right; background: none; border: 0; font-size: 22px; cursor: pointer; line-height: 1; color: var(--la-muted); }

/* ── Barre d'action fixe mobile ──────────────────────────────────────────── */
.la-actionbar {
    position: sticky; bottom: 0; left: 0; right: 0;
    background: var(--la-surface); border-top: 1px solid var(--la-line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: flex; gap: 10px; z-index: 40; margin: 20px -20px -20px;
}
.la-actionbar .la-btn { flex: 1; }
@media (min-width: 720px) {
    .la-actionbar { position: static; box-shadow: none; margin: 20px 0 0; border-radius: var(--la-radius-lg); border: 1px solid var(--la-line); }
}

/* ── Skeleton ────────────────────────────────────────────────────────────── */
.la-skeleton { background: linear-gradient(90deg, var(--la-tint) 25%, var(--la-paper-warm) 50%, var(--la-tint) 75%); background-size: 200% 100%; animation: la-shimmer 1.4s infinite; border-radius: var(--la-radius); height: 16px; margin-bottom: 8px; }
@keyframes la-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Délégué — recherche ─────────────────────────────────────────────────── */
.la-delegate-picker { position: relative; }
.la-delegate-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--la-surface); border: 1px solid var(--la-line); border-radius: var(--la-radius); box-shadow: 0 8px 20px rgba(0,0,0,.1); z-index: 20; max-height: 220px; overflow-y: auto; display: none; }
.la-delegate-results.la-open { display: block; }
.la-delegate-results button { display: block; width: 100%; text-align: start; padding: 10px 14px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.la-delegate-results button:hover, .la-delegate-results button:focus-visible { background: var(--la-paper); }

/* ── Vitrine (page d'accueil de l'Assemblée) ─────────────────────────────── */
.la-hero { background: var(--la-civic); color: #fff; border-radius: var(--la-radius-lg); padding: 40px 32px; margin-bottom: 28px; }
.la-hero h1 { color: #fff; }
.la-hero-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; font-size: 13.5px; }
.la-hero-trust span { display: flex; align-items: center; gap: 8px; }
.la-section-intro { color: var(--la-muted); max-width: 640px; }

/* ── Responsive tables (les tableaux ne débordent jamais du body) ────────── */
.la-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Utilitaire lecteur d'écran ──────────────────────────────────────────── */
.la-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Jugement majoritaire / Condorcet (lot 2) ──────────────────────────── */
.la-registry-table th[scope="row"] { color: var(--la-ink); font-family: var(--la-sans); font-weight: 700; text-align: start; background: transparent; }
.la-registry-table thead th { font-size: 12px; white-space: nowrap; }
.la-registry-table td input[type="radio"] { width: 18px; height: 18px; cursor: pointer; }
.la-condorcet-rank { width: 100%; }

/* ── Vote quadratique / conviction — scrutin ouvert assumé ──────────────── */
.la-open-vote-note {
    display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--la-seal-ink);
    background: var(--la-warm-tint); border: 1px solid var(--la-seal-line); border-radius: var(--la-radius); padding: 10px 14px; margin-bottom: 14px;
}

/* ── Bandeau « environnement de test » ───────────────────────────────────
   Volontairement hors de l'identité institutionnelle bleue du module
   (--la-civic) pour ne jamais être confondu avec un contenu officiel — motif
   de hachures façon ruban de chantier, couleur ambre distincte de toute
   autre couleur du site (ni le bleu civique, ni le vert/terre cuite de la
   charte Almanach du reste de Liberta Local). Piloté par un seul
   interrupteur (LIBERTA_ASM_TEST_MODE, assemblee-core.php) : disparaît
   partout d'un coup à l'ouverture publique réelle. */
.la-test-banner {
    display: flex; align-items: flex-start; gap: 14px;
    background: repeating-linear-gradient(135deg, #fff3cd, #fff3cd 12px, #ffe69c 12px, #ffe69c 24px);
    border: 2px solid #cc9a06;
    border-radius: var(--la-radius-lg);
    padding: 16px 20px;
    margin-bottom: 22px;
    color: #5c4400;
}
.la-test-banner-icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.la-test-banner strong { display: block; font-family: var(--la-serif); font-size: 16px; margin-bottom: 4px; }
.la-test-banner p { margin: 0; font-size: 13.5px; line-height: 1.5; }
/* Variante compacte pour les bandeaux/badges hors de .la-shell (homepage, nav) */
.la-test-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: #ffe69c; color: #5c4400; border: 1px solid #cc9a06;
    padding: 2px 10px; border-radius: 100px; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .03em; vertical-align: middle;
}
/* Cadre « ruban de chantier » jaune/rouge tout autour de la fenêtre, en plus
   du bandeau ci-dessus (demande explicite 02/10/2026, pour que le statut de
   test reste visible même après avoir défilé loin du bandeau). Fixe,
   pointer-events:none (ne bloque jamais un clic), purement décoratif
   (aria-hidden — l'information elle-même reste portée par le bandeau
   accessible ci-dessus). Même interrupteur LIBERTA_ASM_TEST_MODE. */
/* Cadre « Environnement de test » : quatre bandes jaunes, texte noir en continu, losanges rouges.
   Le body reçoit un padding de l'épaisseur du cadre pour que rien ne passe dessous. */
:root { --la-tf: 22px; }
@media (max-width: 600px) { :root { --la-tf: 17px; } }
body.la-test-framed { padding: var(--la-tf); }
.la-test-frame { position: fixed; inset: 0; z-index: 99999; pointer-events: none; }
.la-test-frame > span {
    position: absolute; display: block; overflow: hidden; white-space: nowrap;
    background: #facc15; color: #1a1300; box-shadow: inset 0 0 0 2px #dc2626;
    font: 800 11px/var(--la-tf) system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .24em; text-transform: uppercase;
}
.la-test-frame b { font-weight: 800; }
.la-test-frame i { color: #dc2626; font-style: normal; margin: 0 1.1em; }
.la-tf-top { top: 0; left: 0; right: 0; height: var(--la-tf); }
.la-tf-bottom { bottom: 0; left: 0; right: 0; height: var(--la-tf); }
.la-tf-left, .la-tf-right { top: var(--la-tf); bottom: var(--la-tf); width: var(--la-tf); writing-mode: vertical-rl; }
.la-tf-left { left: 0; transform: rotate(180deg); }
.la-tf-right { right: 0; }
@media (max-width: 600px) { .la-test-frame > span { font-size: 9px; letter-spacing: .18em; } }

/* ── Spectre d'opinion (cartographie d'opinion, assemblee-deliberation.php)
   Nuage de points 1D : chaque participant est un point coloré par tendance.
   Ajouté suite à un retour utilisateur — le texte seul (% par "camp") était
   incompréhensible sans rien à regarder ; recommandation confirmée par une
   recherche externe sur Pol.is/vTaiwan (même limite documentée chez eux). */
/* aspect-ratio posé en inline (dépend du viewBox choisi côté PHP) — ici on
   ne fixe que la largeur, la hauteur en découle automatiquement. Sans ça,
   un viewBox large (ex. 400×70) étiré dans une boîte de rapport différent
   déforme les cercles en ellipses (piège constaté, corrigé). */
.la-opinion-spectre { margin: 14px 0 18px; width: 100%; max-width: 480px; }
.la-opinion-spectre svg { display: block; width: 100%; height: 100%; }
.la-spectre-legende { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.la-spectre-legende-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--la-muted); }
.la-spectre-pastille { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ── Bulletins tactiles, confirmation et reçu (phase 2a) ─────────────────── */
.la-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.la-shell .la-grades-list { display: grid; gap: 14px; margin: 12px 0; }
.la-shell .la-grades-card { background: var(--la-surface); border: 1.5px solid var(--la-line); border-radius: var(--la-radius-lg); padding: 12px 14px; }
.la-shell .la-grades-label { font-weight: 700; margin-bottom: 8px; }
.la-shell .la-grades { display: flex; flex-wrap: wrap; gap: 8px; }
/* Échelle de mentions : du rouge (à rejeter) au vert (excellent), via --g de 0 à 1. */
.la-shell .la-grade {
    --c: hsl(calc(var(--g) * 125), 52%, 38%);
    flex: 1 1 88px; min-height: 46px; padding: 6px 10px; border-radius: 999px; cursor: pointer;
    border: 2px solid color-mix(in srgb, var(--c) 55%, var(--la-surface)); background: color-mix(in srgb, var(--c) 8%, var(--la-surface));
    color: var(--c); font: 700 14px/1.2 var(--la-sans); transition: transform .08s ease, background .12s ease;
}
.la-shell .la-grade:hover { background: color-mix(in srgb, var(--c) 18%, var(--la-surface)); }
.la-shell .la-grade:active { transform: scale(.97); }
.la-shell .la-grade.is-on { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.la-shell .la-grade:focus-visible, .la-shell .la-rank button:focus-visible, .la-shell .la-rank-handle:focus-visible { outline: 3px solid var(--la-civic-l); outline-offset: 2px; }
/* Approbation : grandes cases à toucher */
.la-shell .la-appro-tactile .la-checkbox { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; margin: 8px 0; background: var(--la-surface); border: 1.5px solid var(--la-line); border-radius: var(--la-radius-lg); cursor: pointer; font-weight: 600; }
.la-shell .la-appro-tactile .la-checkbox input { width: 22px; height: 22px; flex: none; accent-color: var(--la-green); }
.la-shell .la-appro-tactile .la-checkbox.is-on { border-color: var(--la-green); background: var(--la-green-bg); }
.la-shell .la-appro-count { font-weight: 700; color: var(--la-civic-fg); margin: 6px 0; }
/* Classement (Condorcet) */
.la-shell .la-rank { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; touch-action: pan-y; }
.la-shell .la-rank-item { display: flex; align-items: center; gap: 10px; background: var(--la-surface); border: 1.5px solid var(--la-line); border-radius: var(--la-radius-lg); padding: 8px 10px; min-height: 54px; }
.la-shell .la-rank-item.is-drag { box-shadow: 0 6px 18px rgba(27,36,48,.22); border-color: var(--la-civic); background: var(--la-paper-warm); }
.la-shell .la-rank-handle { cursor: grab; font-size: 22px; line-height: 1; padding: 8px 6px; color: var(--la-muted); touch-action: none; user-select: none; border-radius: 6px; }
.la-shell .la-rank-pos { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--la-civic); color: #fff; font-weight: 700; display: grid; place-items: center; }
.la-shell .la-rank-label { flex: 1; font-weight: 600; }
.la-shell .la-rank button { width: 44px; height: 44px; border: 1.5px solid var(--la-line); background: var(--la-surface); border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--la-civic-fg); }
.la-shell .la-rank button:disabled { opacity: .35; cursor: default; }
/* Confirmation et reçu */
.la-shell .la-confirming { opacity: .45; pointer-events: none; }
.la-shell .la-confirm, .la-shell .la-recu { background: var(--la-paper-warm); border: 2px solid var(--la-seal); border-radius: var(--la-radius-lg); padding: 16px 18px; margin: 14px 0; }
.la-shell .la-confirm-list { margin: 6px 0 10px; padding-inline-start: 22px; font-weight: 600; }
.la-shell .la-confirm-choice { font: 700 22px var(--la-serif); margin: 6px 0 10px; }
.la-shell .la-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.la-shell .la-recu-code { font: 700 26px/1.2 var(--la-mono); letter-spacing: .06em; color: var(--la-civic-fg); word-break: break-all; margin: 6px 0 10px; }
.la-shell .la-recu-verif.is-ok { color: var(--la-green-fg); font-weight: 600; }
.la-shell .la-recu-verif.is-bad { color: var(--la-red-fg); font-weight: 600; }
.la-shell .la-recu-root { display: block; font: 12px var(--la-mono); word-break: break-all; color: var(--la-muted); }
@media (prefers-reduced-motion: reduce) { .la-shell .la-grade { transition: none; } }

/* ── Bac à sable « essayez de voter » (phase 2f) ─────────────────────────── */
.la-shell .la-sb-steps { list-style: none; counter-reset: sb; margin: 14px 0; padding: 0; display: grid; gap: 16px; }
.la-shell .la-sb-steps > li { counter-increment: sb; position: relative; padding-inline-start: 46px; }
.la-shell .la-sb-steps > li::before { content: counter(sb); position: absolute; inset-inline-start: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--la-civic); color: #fff; font: 700 17px/34px var(--la-serif); text-align: center; }
.la-shell .la-sb-steps h4 { margin-top: 4px; }
.la-shell .sb-vote.is-on { border-color: var(--la-civic); background: var(--la-paper-warm); box-shadow: 0 0 0 3px color-mix(in srgb, var(--la-civic) 25%, transparent); }
.la-shell .la-sb-cipher { background: #14151c; color: #9ae6b4; padding: 12px 14px; border-radius: var(--la-radius); font: 12px/1.5 var(--la-mono); overflow-x: auto; white-space: pre; margin: 6px 0; }
.la-shell .la-sb-out { margin-top: 10px; }
.la-shell .sb-row.is-ok, .la-shell .la-sb-out p.is-ok { color: var(--la-green-fg); font-weight: 600; }
.la-shell .sb-row.is-bad, .la-shell .la-sb-out p.is-bad { color: var(--la-red-fg); font-weight: 600; }
.la-shell .sb-bar { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 36px; align-items: center; gap: 10px; margin: 6px 0; }
.la-shell .sb-bar i { display: block; height: 18px; border-radius: 4px; background: var(--la-civic-l); min-width: 3px; }
.la-shell .sb-bar.is-mine i { background: var(--la-seal); }
.la-shell .sb-bar b { text-align: end; font-variant-numeric: tabular-nums; }

/* ── Résultats lisibles (phase 2d) ───────────────────────────────────────── */
.la-shell .la-jmres { display: grid; gap: 16px; margin: 12px 0 8px; }
.la-shell .la-jmres-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 6px; font-weight: 600; }
.la-shell .la-jmbar { position: relative; display: flex; height: 30px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.la-shell .la-jmbar > span { display: grid; place-items: center; min-width: 2px; background: hsl(calc(var(--g) * 125), 52%, 38%); color: #fff; font: 700 12px var(--la-sans); font-variant-numeric: tabular-nums; }
.la-shell .la-jmmed { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-inline-start: -1px; background: #14151c; box-shadow: 0 0 0 1.5px #fff; }
.la-shell .la-jmleg { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.la-shell .la-jmleg > span { padding: 3px 10px; border-radius: 999px; font: 600 12px var(--la-sans); color: #fff; background: hsl(calc(var(--g) * 125), 52%, 38%); }
.la-shell .la-scroll-x { overflow-x: auto; }
.la-shell .la-duels { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 14px; }
.la-shell .la-duels th, .la-shell .la-duels td { border: 1px solid var(--la-line); padding: 7px 9px; text-align: center; }
.la-shell .la-duels thead th { background: var(--la-paper); font-size: 12px; }
.la-shell .la-duels tbody th { text-align: start; font-weight: 600; background: var(--la-paper); white-space: nowrap; }
.la-shell .la-duel-win { background: var(--la-green-bg); color: var(--la-green-fg); font-weight: 700; }
.la-shell .la-duel-lose { background: var(--la-red-bg); color: var(--la-red-fg); }
.la-shell .la-duel-tie { background: var(--la-tint); color: var(--la-muted); }
.la-shell .la-duel-self { background: var(--la-tint); color: #999; }
.la-shell .la-duel-score { font-weight: 700; }
.la-shell .la-stack { position: relative; display: flex; height: 30px; border-radius: 6px; overflow: hidden; margin: 8px 0 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.la-shell .la-stack > span { display: grid; place-items: center; color: #fff; font: 700 12px var(--la-sans); }
.la-shell .la-stack-pour { background: var(--la-green); } .la-shell .la-stack-contre { background: var(--la-red); } .la-shell .la-stack-abstention { background: #8b94a0; }
.la-shell .la-stack-seuil { position: absolute; top: 0; bottom: 0; width: 3px; margin-inline-start: -1px; background: #14151c; box-shadow: 0 0 0 1.5px #fff; }
.la-shell .la-res-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.la-shell .la-res-list .is-ok { color: var(--la-green-fg); font-weight: 600; list-style: none; margin-inline-start: -20px; }
.la-shell .la-res-list .is-bad { color: var(--la-red-fg); font-weight: 600; list-style: none; margin-inline-start: -20px; }
.la-shell .la-res .la-badge { white-space: normal; }
.la-shell .la-duel-letter { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--la-civic); color: #fff; font: 700 12px var(--la-sans); margin-inline-end: 6px; }
.la-shell .la-duels tbody th { white-space: normal; min-width: 150px; }
.la-shell .la-duels td { white-space: nowrap; }

/* ── Aide au choix (phase 2b) ────────────────────────────────────────────── */
.la-shell .la-aide { border: 1.5px dashed var(--la-line-strong); border-radius: var(--la-radius-lg); padding: 10px 14px; margin: 12px 0; background: var(--la-paper-warm); }
.la-shell .la-aide summary { cursor: pointer; font-weight: 700; padding: 6px 0; min-height: 44px; display: flex; align-items: center; }
.la-shell .la-aide-table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 10px 0; }
.la-shell .la-aide-table th, .la-shell .la-aide-table td { border: 1px solid var(--la-line); padding: 6px 8px; vertical-align: top; text-align: start; }
.la-shell .la-aide-table th input[type=text] { width: 100%; min-width: 110px; padding: 6px; border: 1px solid var(--la-line-strong); border-radius: 4px; }
.la-shell .la-aide-table input[type=range] { width: 100%; min-width: 90px; accent-color: var(--la-civic); }
.la-shell .la-aide-v { display: inline-block; min-width: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.la-shell .la-aide-rm { float: right; width: 30px; height: 30px; border: 1px solid var(--la-line); border-radius: 50%; background: var(--la-surface); cursor: pointer; }
.la-shell .la-aide .sb-bar { grid-template-columns: minmax(100px, 40%) 1fr 36px; }
.la-shell .la-aide .sb-bar i { background: var(--la-civic-l); display: block; height: 16px; border-radius: 4px; min-width: 3px; }

/* ── Budget par parts égales (phase 2h) ──────────────────────────────────── */
.la-shell .la-bp-pe-row { display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 10px 14px; margin: 8px 0; background: var(--la-surface); border: 1.5px solid var(--la-line); border-radius: var(--la-radius-lg); cursor: pointer; }
.la-shell .la-bp-pe-row input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--la-green); }
.la-shell .la-bp-pe-row.is-on, .la-shell .la-bp-pe-row:has(input:checked) { border-color: var(--la-green); background: var(--la-green-bg); }
.la-shell .la-bp-pe-resume { font-weight: 700; color: var(--la-civic-fg); }
.la-shell .la-bp-pe-res { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--la-line); }
.la-shell .la-bp-pe-res.is-ko { color: var(--la-muted); }

/* ── Mode réunion (phase 2g) ─────────────────────────────────────────────── */
.la-shell .la-reunion-liens { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 8px; }
.la-shell .la-reunion-liens code { word-break: break-all; background: var(--la-paper); padding: 2px 6px; border-radius: 4px; }
.la-shell .la-kiosque { background: var(--la-warm-tint); border: 2px solid var(--la-seal); border-radius: var(--la-radius-lg); padding: 12px 16px; margin: 0 0 14px; font-weight: 600; }

/* ── Consultation ouverte et carte des idées (phase 2e) ──────────────────── */
.la-shell .la-idees-liste { padding-inline-start: 20px; display: grid; gap: 8px; }
.la-shell .la-idees-liste select { max-width: 100%; margin-inline-start: 6px; }
.la-shell .la-consult-themes p { margin: 6px 0; }
.la-shell .la-consult-themes input { width: 100%; max-width: 420px; padding: 8px 10px; border: 1.5px solid var(--la-line-strong); border-radius: 6px; font-weight: 600; }
.la-shell .la-cmap { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0; align-items: flex-start; }
.la-shell .la-cbulle { --c: hsl(var(--h), 50%, 36%); flex: calc(var(--n) + 2) 1 clamp(220px, calc(var(--n) * 9%), 100%); min-width: min(100%, 220px); background: color-mix(in srgb, var(--c) 9%, var(--la-surface)); border: 2px solid var(--c); border-radius: 22px; padding: 12px 16px; }
.la-shell .la-cbulle[data-neutre] { --c: #6b7280; border-style: dashed; }
.la-shell .la-cbulle summary { cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; color: var(--c); min-height: 32px; align-items: center; }
.la-shell .la-cbulle summary span { font-size: 13px; opacity: .85; }
.la-shell .la-cbulle ul { margin: 8px 0 2px; padding-inline-start: 18px; display: grid; gap: 6px; }

/* ── Compte et tableau de bord du membre ─────────────────────────────────── */
.la-shell .la-compte { max-width: 560px; }
.la-shell .la-compte .la-field { margin-bottom: 14px; display: grid; gap: 4px; }
.la-shell .la-compte input[type=text], .la-shell .la-compte input[type=email], .la-shell .la-compte input[type=password], .la-shell .la-compte input:not([type]) { padding: 11px 12px; border: 1.5px solid var(--la-line-strong); border-radius: 6px; font: inherit; width: 100%; min-height: 46px; }
.la-shell .la-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; border-bottom: 2px solid var(--la-line); }
.la-shell .la-tab { padding: 11px 16px; min-height: 46px; background: transparent; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; font: 700 15px var(--la-sans); color: var(--la-muted); cursor: pointer; border-radius: 8px 8px 0 0; }
.la-shell .la-tab:hover { background: var(--la-paper-warm); color: var(--la-ink); }
.la-shell .la-tab[aria-selected=true] { color: var(--la-civic-fg); border-bottom-color: var(--la-seal); background: var(--la-paper-warm); }
.la-shell .la-tab:focus-visible { outline: 3px solid var(--la-civic-l); outline-offset: -3px; }
.la-shell .la-dash-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.la-shell .la-dash-liste li { padding: 6px 0; border-bottom: 1px solid var(--la-line); }
.la-shell .la-dash-alerte { border-color: var(--la-seal); background: var(--la-warm-tint); }

/* Amendement ancré à un passage : avant / après */
.la-diff-passage { font-weight: 600; color: var(--la-ink); }
.la-diff-avant, .la-diff-apres { margin: 6px 0; padding: 6px 10px; border-radius: var(--la-radius); }
.la-diff-avant { background: rgba(170, 60, 40, .08); }
.la-diff-apres { background: rgba(40, 120, 70, .09); }
.la-diff-avant del { text-decoration-thickness: 1px; }
.la-diff-apres ins { text-decoration: none; font-weight: 500; }
.la-diff-etiq { display: inline-block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--la-muted); margin-inline-end: 6px; }

/* ─── Mode sombre : mêmes jetons, valeurs chaudes assorties au thème ─────────
   Suit le réglage de l'appareil, sauf choix explicite (data-theme sur <html>). */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .la-shell { --la-dark: 1;
        --la-ink: #efe8df; --la-civic: #3a6ea5; --la-civic-d: #2c5788; --la-civic-l: #86aedb;
        --la-paper: #14110f; --la-paper-warm: #1a1613; --la-line: #332c26; --la-line-strong: #5d5348; --la-muted: #b2a598;
        --la-seal: #c9a24a; --la-seal-l: #e0c27a; --la-green: #2f7d5b; --la-green-bg: #14301f; --la-red: #b84040; --la-red-bg: #3a1c1c;
        --la-surface: #1d1915; --la-tint: #272019; --la-civic-tint: #1d3250; --la-seal-tint: #3a3017; --la-warm-tint: #2a2514;
        --la-seal-ink: #e2c27a; --la-seal-line: #6b5a2a; --la-toast-bg: #0c0a09;
        --la-green-fg: #7fd3a8; --la-red-fg: #f19a9a; --la-civic-fg: #a9c9ee; color-scheme: dark; }
}
:root[data-theme="dark"] .la-shell {
    --la-ink: #efe8df; --la-civic: #3a6ea5; --la-civic-d: #2c5788; --la-civic-l: #86aedb;
    --la-paper: #14110f; --la-paper-warm: #1a1613; --la-line: #332c26; --la-line-strong: #5d5348; --la-muted: #b2a598;
    --la-seal: #c9a24a; --la-seal-l: #e0c27a; --la-green: #2f7d5b; --la-green-bg: #14301f; --la-red: #b84040; --la-red-bg: #3a1c1c;
    --la-surface: #1d1915; --la-tint: #272019; --la-civic-tint: #1d3250; --la-seal-tint: #3a3017; --la-warm-tint: #2a2514;
    --la-seal-ink: #e2c27a; --la-seal-line: #6b5a2a; --la-toast-bg: #0c0a09;
    --la-green-fg: #7fd3a8; --la-red-fg: #f19a9a; --la-civic-fg: #a9c9ee; color-scheme: dark;
}

/* Boutons-liens : la règle générale des liens (.la-shell a) ne doit pas teinter le texte d'un bouton plein ;
   dans l'en-tête bleu, le bouton plein devient clair et le bouton contour devient blanc (lisibles dans les deux thèmes). */
.la-shell a.la-btn-primary, .la-shell a.la-btn-primary:hover { color: #fff; }
.la-shell .la-hero .la-btn-primary, .la-shell .la-hero .la-btn-primary:hover:not(:disabled) { background: #fff; color: #17304c; border-color: #fff; }
.la-shell .la-hero .la-btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.la-shell .la-hero .la-btn-outline:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }

/* Lecture à voix haute */
.la-ecoute { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.la-ecoute[hidden] { display: none; }
.la-ecoute .la-btn[aria-pressed=true] { background: var(--la-civic-tint); }

/* Mobile : rien ne doit élargir la page. Les éléments de grille/flex peuvent rétrécir sous leur contenu,
   les blocs de code et les champs restent dans leur colonne (les tableaux défilent dans leur cadre). */
.la-shell .la-sb-steps > li, .la-shell .la-card, .la-shell .la-container, .la-shell .la-ballot > * { min-width: 0; }
.la-shell pre, .la-shell .la-sb-cipher { max-width: 100%; overflow-x: auto; }
.la-shell .la-field input, .la-shell .la-field select, .la-shell .la-field textarea,
.la-shell textarea, .la-shell select { box-sizing: border-box; max-width: 100%; }
.la-shell .la-ballot-opt { max-width: 100%; }
.la-shell img, .la-shell video, .la-shell iframe { max-width: 100%; }
.la-shell .la-badge { white-space: normal; max-width: 100%; }
.la-ecoute-champ { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--la-muted); }
.la-ecoute-champ[hidden] { display: none; }
.la-ecoute-champ select { padding: 6px 8px; border: 1.5px solid var(--la-line); border-radius: var(--la-radius); background: var(--la-surface); color: var(--la-ink); font: inherit; font-size: 13.5px; max-width: 100%; }
.la-ecoute-conseil { flex-basis: 100%; margin: 0; }
.la-ecoute-conseil[hidden] { display: none; }

.la-ecoute-aide { flex-basis: 100%; padding: 12px 14px; border: 1.5px dashed var(--la-seal); border-radius: var(--la-radius); background: var(--la-warm-tint); font-size: 14px; }
.la-ecoute-aide[hidden] { display: none; }
.la-ecoute-aide p { margin: 8px 0 0; }
.la-ecoute-aide p[hidden] { display: none; }

/* Version facile à lire */
.la-falc { margin: 0 0 16px; }
.la-falc-texte { margin-top: 10px; padding: 16px 18px; border: 2px solid var(--la-civic); border-radius: var(--la-radius-lg); background: var(--la-warm-tint); }
.la-falc-texte[hidden] { display: none; }
.la-falc-corps { font-size: 1.2em; line-height: 1.9; max-width: 60ch; overflow-wrap: anywhere; }
.la-falc-edition { margin-top: 10px; }
.la-falc-edition > summary { cursor: pointer; font-weight: 700; color: var(--la-civic-fg); padding: 6px 0; }
.la-falc-regles { margin: 4px 0 12px 1.2em; padding: 0; font-size: 14px; }
.la-falc-edition textarea { width: 100%; box-sizing: border-box; max-width: 100%; }

/* Accueil clair : grand texte, gros boutons, phrases courtes (public peu à l'aise avec l'informatique) */
.la-accueil { margin: 0 0 32px; font-size: 19px; line-height: 1.7; }
.la-accueil h2 { font-size: 1.8em; margin: 0 0 8px; }
.la-accueil h3 { font-size: 1.25em; margin: 28px 0 12px; }
.la-acc-lead { font-size: 1.1em; max-width: 60ch; margin: 0 0 8px; }
.la-acc-etapes { list-style: none; counter-reset: acc; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.la-acc-etapes li { counter-increment: acc; position: relative; padding: 18px 16px 16px 16px; background: var(--la-surface); border: 1.5px solid var(--la-line); border-radius: var(--la-radius-lg); min-width: 0; }
.la-acc-etapes li::before { content: counter(acc); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 50%; background: var(--la-civic); color: #fff; font: 700 22px/1 var(--la-serif); }
.la-acc-etapes strong { display: block; font-size: 1.05em; margin-bottom: 4px; }
.la-acc-etapes span { display: block; font-size: .92em; color: var(--la-muted); }
.la-acc-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.la-acc-action { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--la-paper-warm); border: 1.5px solid var(--la-line); border-radius: var(--la-radius-lg); min-width: 0; }
.la-acc-action strong { font-size: 1.05em; }
.la-acc-action span { flex: 1; font-size: .92em; color: var(--la-muted); }
.la-acc-bouton { min-height: 52px; font-size: 1em; text-align: center; justify-content: center; text-decoration: none; margin-top: 6px; }
.la-acc-faq details, .la-acc-mots { border: 1.5px solid var(--la-line); border-radius: var(--la-radius); background: var(--la-surface); margin: 0 0 8px; }
.la-acc-faq summary, .la-acc-mots > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; min-height: 48px; box-sizing: border-box; }
.la-acc-faq p { margin: 0; padding: 0 16px 14px; max-width: 62ch; }
.la-acc-mots dl { margin: 0; padding: 0 16px 14px; }
.la-acc-mots dt { font-weight: 700; margin-top: 10px; }
.la-acc-mots dd { margin: 2px 0 0; max-width: 62ch; }

.la-accueil h1 { font-size: 2em; line-height: 1.2; margin: 0 0 8px; }
.la-acc-garanties { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 12px 0 0; padding: 0; }
.la-acc-garanties li { padding: 6px 14px; border: 1.5px solid var(--la-green); border-radius: 999px; color: var(--la-green-fg); font-weight: 700; font-size: .85em; }
.la-groupe { margin: 0 0 34px; }
.la-groupe > h2 { font-size: 1.6em; margin: 28px 0 8px; padding-top: 18px; border-top: 3px solid var(--la-seal); }

/* Les sous-titres du bloc d'accueil sont des h2 (hiérarchie h1 → h2) mais gardent leur taille de sous-titre */
.la-accueil h2.la-acc-h { font-size: 1.25em; margin: 28px 0 12px; }
/* Zones à toucher : 44 px de haut au minimum (doigts peu précis) */
.la-btn-sm { min-height: 44px; }
.la-shell select, .la-shell input[type=text], .la-shell input[type=email], .la-shell input[type=number], .la-shell input[type=password], .la-shell input[type=date], .la-shell input[type=search] { min-height: 44px; box-sizing: border-box; }
.la-ecoute-champ select { min-height: 44px; }

.comment-form input[type=submit], .must-log-in .la-btn { min-height: 44px; }

/* Lecture de droite à gauche : le liseré de la vue « avant/après » change de côté, et les barres de résultats gardent leur axe gauche → droite
   (leurs repères, médiane et seuil, sont placés en pourcentage depuis la gauche : un axe inversé les rendrait faux). */
.la-shell .la-jmbar, .la-shell .la-stack { direction: ltr; }
[dir="rtl"] .la-diff { border-radius: var(--la-radius) 0 0 var(--la-radius); }
