/* =====================================================================
   Veille Écologie — feuille de style
   ===================================================================== */
:root {
    --paper: #eef3f2;
    --paper-2: #e2eae8;
    --card: #fbfdfc;
    --ink: #15232a;
    --ink-2: #44545b;
    --ink-3: #6c7b81;
    --line: #cfdcda;
    --brand: #0e5a64;
    --brand-2: #157784;
    --accent: #a85d10;
    --pos: #1f7a6c;
    --pos-soft: #d6ebe6;
    --neg: #b5502e;
    --neg-soft: #f3ddd2;
    --mid: #9aa59f;
    --cat-tf: #0e5a64;
    --cat-f: #4f9f94;
    --cat-m: #c6c9b8;
    --cat-d: #e0995a;
    --cat-td: #a8402a;
    --cat-n: #dde4e2;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(21, 35, 42, .06), 0 4px 16px rgba(21, 35, 42, .05);
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #0f171a; --paper-2: #152024; --card: #1a272b; --ink: #e4ecea; --ink-2: #b7c4c3; --ink-3: #8a9a99;
        --line: #2c3b3f; --brand: #6cc4c9; --brand-2: #8dd6da; --accent: #e7a14f;
        --pos: #6cc4b0; --pos-soft: #18342f; --neg: #ef8a6c; --neg-soft: #432820; --mid: #7f8a86;
        --cat-tf: #3fa3a8; --cat-f: #79bfae; --cat-m: #6f7672; --cat-d: #e2a05f; --cat-td: #d75a42; --cat-n: #2f3a3c;
        --shadow: 0 1px 2px rgba(0,0,0,.3);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code, pre { font: .9em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: .8em 1em; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
mark { background: #f5d77a; color: #1d221e; padding: 0 .1em; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: .5rem 1rem; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.section { padding-top: 2rem; padding-bottom: 2rem; }

/* ---------- En-tête ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-mark { display: block; width: 40px; height: 40px; flex: none; }
.brand-name { display: block; font: 700 1.15rem/1.1 var(--serif); }
.brand-sub { display: block; font-size: .78rem; color: var(--ink-3); }
.nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; padding: .45rem .75rem; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand); color: var(--paper); }
.nav a.nav-sec { color: var(--ink-3); }
.nav-toggle { display: none; }
@media (max-width: 860px) {
    .nav-toggle { display: block; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .4rem .9rem; font: inherit; }
    .nav { display: none; width: 100%; flex-direction: column; padding-bottom: .8rem; }
    .nav.open { display: flex; }
}

/* ---------- Accueil ---------- */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(21,119,132,.18), transparent 60%), var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.5fr 1fr; } }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: .8rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; }
.lead-court { color: var(--ink-2); max-width: 70ch; }
.search { display: flex; gap: .5rem; max-width: 520px; margin-top: 1.5rem; }
.search input { flex: 1; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.stats > div { background: var(--card); padding: 1rem 1.2rem; }
.stats dt { font-size: .8rem; color: var(--ink-3); }
.stats dd { margin: .2rem 0 0; font: 700 2rem/1.1 var(--serif); }
.stats dd.small { font-size: 1.2rem; }
.stats-profil { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 1.5rem; }

.repartition { display: flex; height: 44px; border-radius: 8px; overflow: hidden; gap: 2px; }
.repartition.petite { height: 22px; font-size: .75rem; }
.repartition .seg { display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-weight: 700; min-width: 0; flex-basis: 0; }
.repartition .seg span { overflow: hidden; padding: 0 .2rem; }
.repartition .seg:hover { filter: brightness(1.08); }
.legende { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; }
.legende a { color: var(--ink-2); text-decoration: none; }
.legende i { display: inline-block; width: .8em; height: .8em; border-radius: 3px; margin-right: .4em; vertical-align: -.05em; }
.cat-tf { background: var(--cat-tf); } .cat-f { background: var(--cat-f); } .cat-m { background: var(--cat-m); color: var(--ink) !important; }
.cat-d { background: var(--cat-d); } .cat-td { background: var(--cat-td); } .cat-n { background: var(--cat-n); color: var(--ink-2) !important; }

.deux-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .deux-col { grid-template-columns: 1fr 1fr; } }
.titre-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }

.liste-deputes { list-style: none; margin: 0; padding: 0; counter-reset: rang; }
.liste-deputes li { counter-increment: rang; }
.liste-deputes a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .6rem .4rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.liste-deputes a:hover { background: var(--card); }
.ld-nom { font-weight: 600; line-height: 1.3; }
.ld-nom small { display: block; font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.ld-score { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; min-width: 96px; }
.ld-score b { font: 700 1.1rem var(--serif); }

.cartes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.carte-texte { display: flex; flex-direction: column; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.carte-texte:hover { border-color: var(--brand); color: var(--ink); }
.carte-texte strong { font-weight: 600; line-height: 1.35; }
.encart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; margin: 2rem auto 3rem; max-width: 1104px; }

/* ---------- Composants ---------- */
.meta { font-size: .85rem; color: var(--ink-3); margin-bottom: .3rem; }
.type { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .5rem; border-radius: 4px; background: var(--paper-2); color: var(--ink-2); margin-right: .3rem; }
.type-scrutin { background: #e3e9f6; color: #2c4a86; }
.type-amendement { background: #f3e6d4; color: #7a4b12; }
.type-proposition { background: #e2efe5; color: #22603a; }
.type-question { background: #ece3f2; color: #5c3a7a; }
@media (prefers-color-scheme: dark) {
    .type-scrutin { background: #26324a; color: #b4c6ef; } .type-amendement { background: #3d3020; color: #ecc890; }
    .type-proposition { background: #213a2a; color: #9fd8b2; } .type-question { background: #33283d; color: #d4bdea; }
}
.sens { font-size: .85rem; font-weight: 600; }
.sens-favorable { color: var(--pos); } .sens-defavorable { color: var(--neg); }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; white-space: nowrap; }
.groupe { display: inline-flex; align-items: center; gap: .35em; font-size: .85rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.groupe i { width: .7em; height: .7em; border-radius: 50%; display: inline-block; }
.g-abr { display: inline-block; font-size: .7rem; font-weight: 700; padding: 0 .4em; border-radius: 3px; border-left: 3px solid var(--gc, #8a8577); background: var(--paper-2); color: var(--ink-2); }
.compteur { display: inline-block; font: 600 .8rem var(--sans); background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: .05rem .55rem; vertical-align: middle; }
.vide { color: var(--ink-3); font-style: italic; }
.aide { color: var(--ink-3); font-size: .9rem; }
.note { background: var(--paper-2); border-left: 4px solid var(--mid); padding: .7rem 1rem; border-radius: 4px; }
.fil { font-size: .9rem; margin-bottom: 1rem; }
.pos-txt { color: var(--pos); } .neg-txt { color: var(--neg); }
.nowrap { white-space: nowrap; }
.sep { color: var(--ink-3); }

.avatar { --size: 44px; position: relative; flex: none; width: var(--size); height: var(--size); border-radius: 50%; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 2px var(--gc, var(--line)); display: inline-block; }
.avatar::before { content: attr(data-initiales); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 calc(var(--size) * .36) var(--serif); color: var(--ink-2); }
.avatar img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.sm { --size: 34px; } .avatar.xl { --size: 112px; box-shadow: 0 0 0 4px var(--gc, var(--line)); }

.jauge { position: relative; display: block; width: 96px; height: 8px; border-radius: 4px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.jauge-xl { width: 100%; max-width: 280px; height: 14px; border-radius: 7px; }
.jauge-axe { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--ink-3); opacity: .5; }
.jauge-val { position: absolute; top: 0; bottom: 0; }
.jauge-val.pos { background: var(--pos); } .jauge-val.neg { background: var(--neg); } .jauge-val.mid { background: var(--mid); }
.jauge-vide { background: repeating-linear-gradient(45deg, var(--paper-2) 0 4px, transparent 4px 8px); }

button, .bouton { display: inline-flex; align-items: center; gap: .4rem; font: 600 .95rem var(--sans); padding: .6rem 1.1rem; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: var(--paper); cursor: pointer; text-decoration: none; }
button:hover, .bouton:hover { background: var(--brand-2); color: var(--paper); }
button.sec, .bouton-sec { background: transparent; color: var(--brand); }
button.sec:hover, .bouton-sec:hover { background: var(--paper-2); color: var(--brand); }
button.danger { background: transparent; color: var(--neg); border-color: var(--neg); }
button.danger:hover { background: var(--neg-soft); color: var(--neg); }
button.ok { background: var(--pos); border-color: var(--pos); }
button.petit { padding: .3rem .7rem; font-size: .85rem; }
button.lien { background: none; border: none; color: var(--ink-3); padding: 0 .2rem; font-weight: 500; font-size: .8rem; }
button.lien:hover { color: var(--accent); background: none; }
input[type=search], input[type=text], input[type=number], input[type=url], input:not([type]), input[type=email], input[type=password], select, textarea {
    font: inherit; font-weight: 400; font-size: .95rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .75rem; width: 100%;
}
textarea { resize: vertical; }
.search input { padding: .75rem 1rem; font-size: 1.05rem; }
.search button { padding: .75rem 1.3rem; }

.filtres { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 1.2rem 0; }
.champ { display: flex; flex-direction: column; gap: .25rem; flex: 1 1 160px; min-width: 0; }
.champ-large { flex: 2 1 240px; }
.champ-bouton { flex: 0 0 auto; flex-direction: row; align-items: center; gap: .8rem; }
.champ label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.lien-discret { font-size: .9rem; color: var(--ink-3); }
.compte { font-size: .9rem; color: var(--ink-3); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.tableau { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tableau th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; padding: .7rem .8rem; border-bottom: 1px solid var(--line); background: var(--paper-2); white-space: nowrap; }
.tableau td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: none; }
.tableau tbody tr:hover { background: var(--paper-2); }
.tableau .num { text-align: right; font-variant-numeric: tabular-nums; }
.cellule-depute { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-width: 220px; }
.cellule-depute small { display: block; color: var(--ink-3); font-size: .8rem; }
.indice-cell { display: inline-flex; align-items: center; gap: .6rem; justify-content: flex-end; }
.indice-cell b { font-family: var(--serif); min-width: 2.6em; text-align: right; }

.pagination { display: flex; gap: 1rem; justify-content: center; align-items: center; margin: 2rem 0; }

/* ---------- Fiche député ---------- */
.profil { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: auto 1fr; }
@media (min-width: 820px) { .profil { grid-template-columns: auto 1fr auto; } }
.profil-id h1 { margin-bottom: .3rem; }
.profil-id p { margin: 0 0 .3rem; color: var(--ink-2); }
.profil-score { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; min-width: 260px; }
@media (min-width: 820px) { .profil-score { grid-column: auto; } }
.profil-indice { font: 700 3rem/1 var(--serif); }
.echelle { display: flex; justify-content: space-between; width: 100%; max-width: 280px; font-size: .72rem; color: var(--ink-3); }

.actions { list-style: none; margin: 0; padding: 0; }
.action { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.action a { color: var(--ink); font-weight: 500; }
.action a:hover { color: var(--accent); }
.action-effet { align-self: start; text-align: center; font-size: .78rem; font-weight: 700; padding: .3rem .4rem; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); }
.effet-favorable .action-effet { background: var(--pos-soft); color: var(--pos); }
.effet-defavorable .action-effet { background: var(--neg-soft); color: var(--neg); }
@media (max-width: 560px) { .action { grid-template-columns: 1fr; gap: .4rem; } .action-effet { justify-self: start; } }
.justif { font-size: .9rem; color: var(--ink-2); margin: .3rem 0 0; border-left: 3px solid var(--line); padding-left: .7rem; }
.justif-inline { color: var(--ink-3); font-size: .9rem; margin-left: .4rem; }
.absences { margin-top: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.1rem; }
.absences summary { cursor: pointer; font-weight: 600; }
.liste-simple { padding-left: 1.2rem; font-size: .9rem; }

/* ---------- Textes ---------- */
.liste-textes { list-style: none; padding: 0; margin: 0; }
.liste-textes li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.liste-textes .titre { display: block; color: var(--ink); font-weight: 600; font-size: 1.05rem; margin-bottom: .3rem; line-height: 1.4; }
.liste-textes p { margin: 0; }
.titre-texte { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); max-width: 40ch; }
.verdict { border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.2rem 0; border: 1px solid var(--line); background: var(--card); }
.verdict p:last-child { margin-bottom: 0; }
.verdict-titre { font-weight: 700; font-size: 1.05rem; }
.sens-bloc-favorable { border-left: 6px solid var(--pos); }
.sens-bloc-defavorable { border-left: 6px solid var(--neg); }
.resume { margin: 1rem 0; }
.resume summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.resume p { color: var(--ink-2); font-size: .95rem; margin-top: .6rem; }
.barre-cell { min-width: 160px; }
.barre-vote { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.barre-vote .pos { background: var(--pos); } .barre-vote .neg { background: var(--neg); } .barre-vote .mid { background: var(--mid); }
.positions { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.position { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; border-top: 5px solid var(--mid); }
.position.effet-favorable { border-top-color: var(--pos); } .position.effet-defavorable { border-top-color: var(--neg); }
.position h3 small { display: block; font: 500 .8rem var(--sans); color: var(--ink-3); margin-top: .2rem; }
.noms { list-style: none; padding: 0; margin: 0; columns: 1; font-size: .9rem; max-height: 420px; overflow-y: auto; }
.noms li { padding: .15rem 0; break-inside: avoid; }
.noms a { color: var(--ink); text-decoration: none; }
.noms a:hover { text-decoration: underline; }

/* ---------- Groupes ---------- */
.groupes { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 1.5rem; }
.groupe-carte { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; border-top: 6px solid var(--gc); display: flex; flex-direction: column; gap: .9rem; }
.groupe-carte header { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.groupe-carte h2 { font-size: 1.05rem; margin: 0; }
.groupe-carte h2 a { color: var(--ink); text-decoration: none; }
.groupe-score { display: flex; align-items: center; gap: 1rem; }
.groupe-score .profil-indice { font-size: 2rem; min-width: 2.6em; }
.mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; margin: 0; font-size: .8rem; }
.mini dt { color: var(--ink-3); } .mini dd { margin: 0; font-weight: 700; font-size: 1rem; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 2rem; }
.liste-cat { list-style: none; padding: 0; } .liste-cat li { padding: .3rem 0; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); margin-top: 3rem; font-size: .9rem; color: var(--ink-2); }
.footer-inner { display: grid; gap: 1rem; padding-top: 2rem; padding-bottom: 2rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.5fr 1fr; } }

/* ---------- Administration ---------- */
.flash { padding: .8rem 1rem; border-radius: 8px; margin-top: 1rem; font-weight: 500; }
.flash-ok { background: var(--pos-soft); color: var(--pos); }
.flash-erreur { background: var(--neg-soft); color: var(--neg); }
.onglets { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 1rem 0; }
.onglets a { padding: .5rem .9rem; text-decoration: none; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 500; }
.onglets a[aria-current="page"] { border-color: var(--brand); color: var(--ink); font-weight: 700; }
.onglets a span { font-size: .8rem; color: var(--ink-3); }
.lot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .9rem; }
.carte-admin { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.carte-admin header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.carte-admin header .meta { margin: 0; }
.carte-admin .lien-source { margin-left: auto; font-size: .9rem; }
.carte-admin h3 { font: 600 1.02rem/1.4 var(--sans); }
.carte-admin details summary { cursor: pointer; color: var(--brand); font-size: .9rem; }
.resume-admin { font-size: .9rem; color: var(--ink-2); max-height: 320px; overflow-y: auto; background: var(--paper); padding: .7rem; border-radius: 6px; }
.alerte { font-size: .75rem; background: #f6e7b4; color: #6b5310; padding: .1rem .5rem; border-radius: 4px; }
.lie { font-size: .88rem; color: var(--ink-2); }
.mots { font-size: .8rem; color: var(--ink-3); }
.mots span { display: inline-block; background: var(--paper-2); border-radius: 4px; padding: 0 .4rem; margin: 0 .2rem .2rem 0; }
.form-valid { border-top: 1px dashed var(--line); margin-top: .8rem; padding-top: .8rem; display: grid; gap: .7rem; }
.choix-sens { border: none; padding: 0; margin: 0; display: flex; gap: .4rem 1.4rem; flex-wrap: wrap; }
.choix-sens legend { font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: .3rem; }
.choix-sens label { cursor: pointer; }
.ligne-champs { display: flex; gap: 1rem; flex-wrap: wrap; }
.ligne-champs label { display: flex; flex-direction: column; font-size: .8rem; font-weight: 600; color: var(--ink-2); gap: .2rem; }
.bloc { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.bloc small { font-weight: 400; color: var(--ink-3); }
.boutons { display: flex; gap: .6rem; flex-wrap: wrap; }
.carte-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.carte-form > * { max-width: 100%; }
.carte-form h2 { margin: 0; }
.cases { border: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.cases legend { font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: .3rem; }
.mots-liste { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.mots-liste li { display: inline-flex; align-items: center; gap: .3rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .4rem .2rem .8rem; font-size: .9rem; }
.mots-liste li.inactif span { text-decoration: line-through; color: var(--ink-3); }
.mots-liste form { display: inline-flex; }
.statut { font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 4px; background: var(--paper-2); }
.statut-ok { background: var(--pos-soft); color: var(--pos); } .statut-erreur { background: var(--neg-soft); color: var(--neg); }
.sortie { max-height: 300px; overflow-y: auto; }
.login { max-width: 440px; }
.form-login { display: flex; flex-direction: column; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.form-login label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }

/* ---------- Validation enrichie (résumé, élus, texte complet) ---------- */
.titre-lien { color: var(--ink); text-decoration: none; }
.titre-lien:hover { color: var(--accent); text-decoration: underline; }
.carte-corps { display: grid; gap: 1rem 1.6rem; margin: .4rem 0 .6rem; }
@media (min-width: 860px) { .carte-corps { grid-template-columns: 1.25fr 1fr; } }
.etiquette { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 .35rem; }
.etiquette small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.carte-resume p { margin-bottom: .6rem; color: var(--ink-2); font-size: .95rem; }
.en-savoir-plus { display: inline-block; font-weight: 600; font-size: .92rem; }
.carte-elus { background: var(--paper); border-radius: 8px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .5rem; }
.elu { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); padding: .35rem .4rem; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.elu:hover { border-color: var(--brand); color: var(--ink); }
.elu-id { line-height: 1.3; min-width: 0; }
.elu-id strong { display: block; }
.elu-id small { color: var(--ink-3); font-size: .8rem; }
.elu-score { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.elu-score b { font: 700 1.15rem var(--serif); }
.ligne-photos { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.lp-lib { font-size: .8rem; font-weight: 600; color: var(--ink-2); min-width: 7.5em; }
.rangee { display: inline-flex; flex-wrap: wrap; align-items: center; }
.rangee a { margin-right: -6px; margin-bottom: 4px; transition: transform .1s; }
.rangee a:hover { transform: translateY(-2px); position: relative; z-index: 1; }
.rangee .avatar { box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--gc, var(--line)); }
.rangee-plus { margin-left: 12px; font-size: .8rem; font-weight: 700; color: var(--ink-3); }
.decompte { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.decompte b { font: 700 1.25rem var(--serif); margin-right: .2em; }
.dc-pour { color: var(--brand); } .dc-contre { color: var(--accent); } .dc-abst { color: var(--ink-3); }
.effet-score { font-size: .88rem; color: var(--ink-2); background: var(--paper-2); border-radius: 6px; padding: .45rem .7rem; margin: .4rem 0; }

.detail-grille { display: grid; gap: 1.6rem; margin-top: 1rem; }
@media (min-width: 980px) { .detail-grille { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); align-items: start; } .detail-cote { position: sticky; top: 84px; } }
.detail-cote { display: flex; flex-direction: column; gap: 1rem; }
.detail-cote .carte-form { align-items: stretch; }
.detail-cote .form-valid { border-top: none; margin-top: 0; padding-top: 0; }
.encadre-resume { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.encadre-resume p:last-child { margin: 0; }
.texte-complet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; font-size: .97rem; line-height: 1.7; max-width: 75ch; }
.texte-complet p { margin: 0 0 .9em; }
.section-texte { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 1.2em 0 .5em; }
.section-texte:first-child { margin-top: 0; }
.h-lie { font-size: 1.1rem; }
.grille-elus { display: flex; flex-direction: column; gap: .4rem; max-height: 420px; overflow-y: auto; }
.sous-titre { font: 700 .9rem var(--sans); margin: .6rem 0 .2rem; }
.statut-attente { background: #f6e7b4; color: #6b5310; }
.resume-public { font-size: 1.05rem; color: var(--ink-2); max-width: 70ch; }
.resume .texte-complet { margin-top: .8rem; }

/* ---------- Progression de l'import ---------- */
.progression-import { align-items: stretch; margin-bottom: 1.5rem; }
.barre-prog { height: 14px; border-radius: 7px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.barre-prog span { display: block; height: 100%; background: var(--brand); transition: width .4s ease; }
.progression-import p { margin: 0; }
.progression-import .boutons form { display: inline; }
.statut-en_cours { background: #e3e9f6; color: #2c4a86; }
.statut-ignore { color: var(--ink-3); }
[hidden] { display: none !important; }
button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Aide de l'IA ---------- */
.bloc-ia { border: 1px solid #c9d6ee; background: #f2f6fd; border-radius: 8px; padding: .8rem 1rem; margin: .6rem 0; }
.bloc-ia .etiquette { color: #2c4a86; }
.bloc-ia .etiquette small { color: var(--ink-3); }
.bloc-ia-vide { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.bloc-ia-vide p { margin: 0; }
.ia-explication { color: var(--ink); margin: 0 0 .5rem; }
.ia-verdict { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .4rem; }
.ia-chip { font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.ia-chip.ia-fav { background: var(--pos-soft); color: var(--pos); border-color: transparent; }
.ia-chip.ia-def { background: var(--neg-soft); color: var(--neg); border-color: transparent; }
.ia-chip.ia-hors { background: #ece9e1; color: var(--ink-2); border-color: transparent; }
.ia-conf-faible { border-color: var(--accent); color: var(--accent); }
.ia-attention { font-size: .88rem; color: #6b5310; background: #fbf3d5; border-radius: 6px; padding: .4rem .6rem; margin: .3rem 0 0; }
.note-ia { font-size: .85rem; color: #2c4a86; margin: 0; }
.form-valid.prerempli { border-top-color: #c9d6ee; }
button.danger.suggere { background: var(--neg-soft); }
.bandeau-ia { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; background: #f2f6fd; border: 1px solid #c9d6ee; border-radius: var(--radius); padding: .8rem 1rem; margin: 1rem 0; }
@media (prefers-color-scheme: dark) {
    .bloc-ia, .bandeau-ia { background: #1d2635; border-color: #33415c; }
    .bloc-ia .etiquette, .note-ia { color: #b4c6ef; }
    .ia-attention { background: #3a3220; color: #ecd48f; }
    .ia-chip.ia-hors { background: #2c302b; }
}

/* ---------- Partage sur les réseaux sociaux ---------- */
.partage { margin: 1.5rem 0 0; }
.partage-titre { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 .5rem; }
.partage-boutons { display: flex; flex-wrap: wrap; gap: .45rem; }
.pb { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line);
      background: var(--card); color: var(--ink); font: 600 .88rem var(--sans); text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s; }
.pb:hover { border-color: var(--brand); background: var(--card); color: var(--ink); }
.pb .ico { flex: none; }
.pb-whatsapp .ico { color: #1f9e55; } .pb-facebook .ico { color: #1877f2; } .pb-bluesky .ico { color: #1185fe; }
.pb-linkedin .ico { color: #0a66c2; } .pb-insta .ico { color: #c13584; } .pb-x .ico, .pb-mail .ico, .pb-copier .ico { color: var(--ink-2); }
.pb-natif { background: var(--brand); color: var(--paper); border-color: var(--brand); }
.pb-natif:hover { background: var(--brand-2); color: var(--paper); }
.pb-ok { border-color: var(--pos); color: var(--pos); }
.hero .partage { margin: 0 0 2rem; }
@media (max-width: 560px) { .pb { font-size: .82rem; padding: .4rem .7rem; } }

/* ---------- Logo ---------- */
.brand { gap: .65rem; }
.footer-marque { display: flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; }
.footer-marque img { flex: none; }
@media (max-width: 560px) { .brand-mark { width: 34px; height: 34px; } }

/* ---------- Page d'un texte : signataires avec photos ---------- */
.avatar.xs { --size: 26px; } .avatar.lg { --size: 64px; box-shadow: 0 0 0 3px var(--gc, var(--line)); }
.bloc-signataires { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--mid); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; margin-bottom: 1.2rem; }
.bloc-signataires.effet-favorable { border-top-color: var(--pos); } .bloc-signataires.effet-defavorable { border-top-color: var(--neg); }
.bloc-signataires h3 { margin-bottom: .8rem; }
.bloc-signataires h3 small { display: block; font: 500 .8rem var(--sans); color: var(--ink-3); margin-top: .2rem; }
.repartition { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem; margin: -.2rem 0 .9rem; }
.repartition .g-abr { display: inline-flex; align-items: center; gap: .3em; font-size: .78rem; line-height: 1.6; padding: 0 .5em; }
.grille-auteurs { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.carte-elu { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.carte-elu:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); }
.ce-id { display: flex; flex-direction: column; gap: .2rem; min-width: 0; line-height: 1.3; }
.ce-id strong { font: 700 1.05rem var(--serif); }
.ce-id small { color: var(--ink-3); font-size: .8rem; }
.ce-score { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.ce-score b { font: 700 1.35rem var(--serif); }
.grille-cosign { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.grille-cosign a { display: flex; align-items: center; gap: .55rem; padding: .35rem .5rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.25; }
.grille-cosign a:hover { background: var(--paper-2); color: var(--ink); }
.grille-cosign .g-abr { margin-left: .15rem; }
.plus-cosign { margin-top: .7rem; }
.plus-cosign summary { cursor: pointer; font-weight: 600; color: var(--brand); margin-bottom: .6rem; }
.noms-photos { padding: 2px 2px 2px 3px; }
.noms-photos li { display: flex; align-items: center; gap: .4rem; padding: .2rem 0; }
.noms-photos a { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; }
.noms-photos .avatar { box-shadow: 0 0 0 1.5px var(--gc, var(--line)); }
@media (max-width: 520px) { .carte-elu { grid-template-columns: auto 1fr; } .ce-score { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: center; } }

/* ---------- Bandeau de consentement (mesure d'audience) ---------- */
.bandeau-consentement { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 30px rgba(29, 34, 30, .18); padding: 1rem 1.1rem; display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.bandeau-consentement p { margin: 0; flex: 1 1 320px; font-size: .92rem; line-height: 1.5; }
.bc-boutons { display: flex; gap: .6rem; flex: 0 0 auto; }
.bc-boutons button { min-width: 7.5em; justify-content: center; }
.footer-legal { font-size: .85rem; }

/* ---------- Agenda : « Cette semaine à l'Assemblée » ---------- */
.agenda-grille { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); margin-top: .4rem; }
.rdv { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: .8rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.rdv p { margin: 0; }
.rdv-vote { border-left-color: var(--accent); }
.rdv-quand { font-size: .95rem; }
.rdv-quand strong::first-letter { text-transform: uppercase; }
.rdv-provisoire { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 999px; padding: 0 .5em; vertical-align: middle; }
.rdv-quoi { font-size: .85rem; color: var(--ink-2); }
.rdv-type { font-weight: 700; color: var(--brand); }
.rdv-vote .rdv-type { color: var(--accent); }
.rdv-titre { font-weight: 600; line-height: 1.35; }
.rdv-suivis { font-size: .8rem; color: var(--ink-3); }
.agenda-appel { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1rem 0 .4rem; font-weight: 600; }

/* ---------- Parcours d'un texte ---------- */
.parcours-bloc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.parcours-statut { font: 700 1.2rem var(--serif); margin: 0 0 .2rem; }
.parcours-statut small { font: 500 .85rem var(--sans); color: var(--ink-3); margin-left: .4rem; }
.parcours-prochain { margin: .8rem 0; display: flex; flex-direction: column; gap: .3rem; }
.parcours { list-style: none; margin: .8rem 0 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line); }
.parcours li { position: relative; display: flex; gap: .8rem; flex-wrap: wrap; padding: .3rem 0; font-size: .92rem; }
.parcours li::before { content: ""; position: absolute; left: calc(-1.1rem - 6px); top: .62rem; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--mid); }
.parcours li.pc-actuel::before { background: var(--brand); border-color: var(--brand); }
.parcours li.pc-actuel .pc-lib { font-weight: 700; }
.pc-date { color: var(--ink-3); min-width: 6.5em; font-variant-numeric: tabular-nums; }
.pc-lib::first-letter { text-transform: uppercase; }
.parcours-avant summary { cursor: pointer; font-size: .88rem; color: var(--brand); margin-top: .6rem; }

/* ---------- Fiche député : thèmes, groupe, écrire ---------- */
.themes-depute { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; max-width: 720px; }
.themes-depute li { display: grid; grid-template-columns: minmax(0, 1fr) 110px 3.2em 6.5em; align-items: center; gap: .8rem; padding: .45rem .7rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.themes-depute .td-nom { color: var(--ink); font-weight: 600; text-decoration: none; }
.themes-depute .td-nom:hover { text-decoration: underline; }
.themes-depute .td-indice { font: 700 1.05rem var(--serif); text-align: right; }
.themes-depute .td-nb { font-size: .8rem; color: var(--ink-3); }
.themes-depute .jauge { width: 110px; }
.themes-depute .td-peu { opacity: .7; }
@media (max-width: 560px) { .themes-depute li { grid-template-columns: 1fr auto; } .themes-depute .td-jauge { grid-column: 1 / -1; order: 3; } .themes-depute .td-nb { grid-column: 1 / -1; order: 4; } }
.groupe-resume { font-size: 1.02rem; }
.groupe-resume strong { font: 700 1.4rem var(--serif); }
.bouton-ecrire { margin-top: .2rem; }

/* Tri en lot (admin) */
.tri-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tri-colonnes label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
.tri-colonnes textarea { width: 100%; font: inherit; font-weight: 400; font-size: .9rem; }
.tri-liste { list-style: none; padding: 0; margin: 0 0 1rem; }
.tri-liste li { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.tri-liste label { display: flex; gap: .7rem; align-items: flex-start; }
.tri-liste input { margin-top: .3rem; }
.tri-liste small { display: block; color: var(--ink-2, #666); }
.tri-resume { margin-top: .2rem; }
@media (max-width: 700px) { .tri-colonnes { grid-template-columns: 1fr; } }
.tri-proteges { margin: 1rem 0; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); }
.tri-proteges summary { cursor: pointer; font-weight: 600; }

/* ===== Statut d'un texte ===== */
.statut-badge { display: inline-block; font: 700 .72rem/1.5 var(--sans); padding: .05rem .55rem; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; vertical-align: middle; }
.statut-ok { background: var(--pos-soft); color: var(--pos); border-color: color-mix(in srgb, var(--pos) 30%, transparent); }
.statut-neg { background: var(--neg-soft); color: var(--neg); border-color: color-mix(in srgb, var(--neg) 30%, transparent); }
.statut-encours { background: #fdf1d8; color: #8a5a00; border-color: #efd9a6; }
.statut-neutre { background: var(--paper-2); color: var(--ink-3); border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .statut-encours { background: #3a2f17; color: #f0c56a; border-color: #5a4720; } }

/* ===== « Ce que ça change » ===== */
.ccc { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.2rem; box-shadow: var(--shadow); }
.ccc p { margin: 0; font-size: 1.08rem; }
.ccc .ccc-titre { font: 700 .75rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: .35rem; }
.sujets-lies { font-weight: 600; margin: -.4rem 0 1.2rem; }
.details-ccc summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.details-ccc summary small { font-weight: 400; color: var(--ink-3); }
.details-ccc textarea { width: 100%; margin-top: .4rem; }

/* ===== Trouver son député ===== */
.trouver { display: flex; flex-direction: column; gap: .4rem; max-width: 560px; margin: 1.2rem 0; }
.trouver label { font-weight: 700; font-size: .95rem; }
.trouver-ligne { display: flex; gap: .5rem; }
.trouver-ligne input { flex: 1; min-width: 0; }
.trouver-grand { margin: 1.5rem 0 2rem; }
.trouver-grand input { font-size: 1.1rem; padding: .8rem 1rem; }
.trouver-texte { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.hero-aide { font-size: .88rem; color: var(--ink-3); margin-top: .5rem; }
.trouver-choix { list-style: none; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.trouver-choix a { display: flex; justify-content: space-between; gap: .5rem; padding: .7rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.trouver-choix a:hover { border-color: var(--brand); }
.trouver-choix span { color: var(--ink-3); font-size: .85rem; }
.trouver-resultat { margin-top: 1.5rem; }
.trouver-resultat h2 small { font: 400 1rem var(--sans); color: var(--ink-3); }
.trouve-liste { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); margin-top: 1rem; }
.trouve { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: grid; gap: .8rem; box-shadow: var(--shadow); }
.trouve-id { display: flex; gap: .9rem; align-items: center; text-decoration: none; color: var(--ink); }
.trouve-id > span { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.trouve-nom { font: 700 1.2rem/1.2 var(--serif); }
.trouve-circo { font-size: .85rem; color: var(--ink-3); }
.avatar.lg { --size: 64px; box-shadow: 0 0 0 3px var(--gc, var(--line)); }
.trouve-score { display: flex; align-items: center; gap: .7rem; }
.trouve-indice { font: 700 1.8rem/1 var(--serif); }
.trouve-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ===== En bref (fiche député) ===== */
.en-bref { margin-top: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; }
.en-bref-titre { font: 700 .75rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin: 0 0 .4rem; }
.en-bref ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.en-bref b { color: var(--ink); }

/* ===== Dossiers thématiques ===== */
.sujets-grille { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 1rem; }
.sujet-carte { display: flex; flex-direction: column; gap: .4rem; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: var(--radius); padding: 1.2rem 1.3rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.sujet-carte:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--ink); }
.sujet-carte h2, .sujet-carte h3 { margin: 0; font-size: 1.35rem; }
.sujet-carte p { margin: 0; color: var(--ink-2); }
.sujet-carte .kicker { margin: 0; }
.sujet-pied { margin-top: auto; padding-top: .6rem; font-size: .85rem; color: var(--ink-3); display: flex; justify-content: space-between; }
.sujet-pied b { color: var(--brand); }
.sujet-tete { background: radial-gradient(900px 300px at 90% -20%, rgba(21,119,132,.16), transparent 60%), var(--paper); border-bottom: 1px solid var(--line); padding: 1.5rem 0 2rem; }
.sujet-tete h1 { margin-bottom: .3em; }
.sujet-accroche { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.sujet-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0 0; max-width: 820px; }
.sujet-chiffres > div { background: var(--card); padding: .8rem 1rem; }
.sujet-chiffres dt { font-size: .78rem; color: var(--ink-3); }
.sujet-chiffres dd { margin: .15rem 0 0; font: 700 1.8rem/1.1 var(--serif); }
.sujet-chiffres dd.petit { font-size: 1.1rem; padding-top: .4rem; }
.sujet-essentiel { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .sujet-essentiel { grid-template-columns: 3fr 2fr; align-items: start; } }
.essentiel-bloc p { font-size: 1.08rem; max-width: 68ch; }
.enjeu-bloc { background: var(--pos-soft); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.enjeu-bloc h2 { font-size: 1.15rem; }
.enjeu-bloc p:last-child { margin-bottom: 0; }
.sujet-dossiers { list-style: none; padding: 0; display: grid; gap: .6rem; margin-top: 1rem; }
.sujet-dossiers li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .7rem 1rem; }
.sujet-dossiers small { color: var(--ink-3); }
.acteurs { display: grid; gap: 1.2rem; }
@media (min-width: 800px) { .acteurs { grid-template-columns: 1fr 1fr; } }
.acteurs-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.acteurs-pos { border-top: 5px solid var(--pos); } .acteurs-neg { border-top: 5px solid var(--neg); }
.acteurs-col h3 { font-size: 1.1rem; }
.acteurs-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.acteurs-col li a { display: flex; align-items: center; gap: .7rem; padding: .4rem .3rem; border-radius: 6px; text-decoration: none; color: var(--ink); }
.acteurs-col li a:hover { background: var(--paper-2); }
.acteurs-col li span { display: flex; flex-direction: column; min-width: 0; }
.acteurs-col small { color: var(--ink-3); font-size: .8rem; }
.groupes-titre { margin-top: 1.8rem; font-size: 1.1rem; }
.balance { display: grid; gap: .35rem; max-width: 760px; }
.balance-legende { display: grid; grid-template-columns: 90px 1fr 1fr; font-size: .78rem; font-weight: 600; }
.balance-legende span:first-child { grid-column: 2; text-align: right; padding-right: .5rem; }
.balance-ligne { display: grid; grid-template-columns: 90px 1fr 1fr; align-items: center; gap: 0; }
.balance-nom { font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: .35rem; white-space: nowrap; overflow: hidden; }
.balance-nom i { width: .7em; height: .7em; border-radius: 50%; flex: none; }
.balance-neg, .balance-pos { position: relative; height: 22px; display: flex; align-items: center; }
.balance-neg { justify-content: flex-end; border-right: 2px solid var(--ink-3); }
.balance-neg b { height: 16px; background: var(--neg); border-radius: 4px 0 0 4px; }
.balance-pos b { height: 16px; background: var(--pos); border-radius: 0 4px 4px 0; }
.balance-neg em, .balance-pos em { font: 600 .75rem var(--sans); font-style: normal; color: var(--ink-2); padding: 0 .35rem; }
.balance-neg em { order: -1; }
.chrono { list-style: none; padding: 0; margin: 1rem 0 0; position: relative; }
.chrono::before { content: ""; position: absolute; left: 6.2rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.chrono-item { display: grid; grid-template-columns: 5.6rem 1fr; gap: 1.4rem; padding: .6rem 0; position: relative; }
.chrono-item::before { content: ""; position: absolute; left: calc(6.2rem - 5px); top: 1rem; width: 12px; height: 12px; border-radius: 50%; background: var(--mid); box-shadow: 0 0 0 3px var(--paper); }
.chrono-item.sens-favorable::before { background: var(--pos); } .chrono-item.sens-defavorable::before { background: var(--neg); }
.chrono-date { font-size: .82rem; color: var(--ink-3); text-align: right; padding-top: .55rem; font-variant-numeric: tabular-nums; }
.chrono-corps { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .7rem 1rem; }
.chrono-corps .meta { margin: 0 0 .3rem; display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; font-size: .82rem; }
.chrono-corps > a { font-weight: 600; }
.chrono-corps .justif { margin: .35rem 0 0; color: var(--ink-2); font-size: .92rem; }
@media (max-width: 600px) {
    .chrono::before { left: .4rem; } .chrono-item { grid-template-columns: 1fr; gap: .3rem; padding-left: 1.4rem; }
    .chrono-item::before { left: calc(.4rem - 5px); top: .35rem; } .chrono-date { text-align: left; padding-top: 0; }
    .balance-ligne, .balance-legende { grid-template-columns: 64px 1fr 1fr; }
}
.sujet-cta { background: var(--brand); color: var(--paper); padding: 2rem 0; margin-top: 1rem; }
.sujet-cta h2 { color: var(--paper); }
.sujet-cta p { color: color-mix(in srgb, var(--paper) 85%, transparent); max-width: 60ch; }
.sujet-cta .trouver label { color: var(--paper); }
.sujet-cta .trouver button { background: var(--paper); color: var(--brand); border-color: var(--paper); }
.sujet-cta .trouver input { border-color: transparent; }

/* Admin des dossiers */
.form-grille { display: grid; gap: 1rem; width: 100%; }
@media (min-width: 800px) { .form-grille { grid-template-columns: 1fr 1fr; } .form-grille-3 { grid-template-columns: 1fr 1fr 1fr; align-items: end; } }
.sujet-form .bloc input, .sujet-form .bloc textarea, .sujet-form .bloc select { width: 100%; font-weight: 400; }
.sujet-form > label.bloc { width: 100%; }
.case { display: flex; gap: .5rem; align-items: center; font-weight: 600; font-size: .9rem; }
.sujet-admin-liste { list-style: none; padding: 0; display: grid; gap: .3rem; }
.sujet-admin-liste li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .7rem; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.sujet-admin-liste li > span { min-width: 0; }
.sujet-admin-liste small { color: var(--ink-3); }
.zone-danger { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* =====================================================================
   Lexique : infobulles et page « Comprendre le Parlement »
   ===================================================================== */
a.lex { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--mid); text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: help; }
a.lex:hover, a.lex:focus-visible { color: var(--brand); text-decoration-color: currentColor; }
.type a.lex { text-decoration-color: currentColor; }
.lex-bulle { position: absolute; z-index: 50; max-width: min(320px, calc(100vw - 16px)); background: var(--ink); color: var(--paper); font-size: .86rem; line-height: 1.45; padding: .6rem .8rem; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.18); pointer-events: auto; }
.lex-bulle a { color: #a9dfe3; font-weight: 600; white-space: nowrap; }
.profil-lex { display: block; font-size: .8rem; margin-top: .3rem; }
.profil-lex a.lex { color: var(--brand); }

.sommaire { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.sommaire a { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .3rem .9rem; font-size: .9rem; text-decoration: none; }
.chemin { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); counter-reset: none; }
.chemin li { position: relative; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 1rem 1rem .8rem; }
.chemin li:last-child { border-top-color: var(--accent); }
.chemin h3 { margin: .5rem 0 .4rem; font-size: 1.05rem; }
.chemin h3 a.lex { color: var(--ink); }
.chemin p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.chemin-num { display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand); color: #fff; font: 700 .95rem var(--serif); }
.chemin li:last-child .chemin-num { background: var(--accent); }
@media (min-width: 980px) {
    .chemin li:not(:last-child)::after { content: "→"; position: absolute; right: -.75rem; top: 1.2rem; color: var(--mid); font-weight: 700; z-index: 1; }
}
.outils-grille { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin: 1rem 0; }
.outil { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; }
.outil h3 { margin: .6rem 0 .4rem; }
.outil p { font-size: .92rem; color: var(--ink-2); }
.outil .outil-liens { margin: auto 0 0; font-size: .85rem; }
.lexique-filtre input { min-width: 220px; }
.lexique-bloc h3 { margin-top: 1.4rem; color: var(--brand); font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.lexique { margin: 0; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.lexique > div { display: grid; gap: .2rem 1.4rem; padding: .7rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
@media (min-width: 720px) { .lexique > div { grid-template-columns: 240px 1fr; } }
.lexique dt { font-weight: 700; font-family: var(--serif); }
.lexique dd { margin: 0; color: var(--ink-2); }
.lexique > div:target { background: var(--pos-soft); border-radius: 6px; padding-left: .6rem; padding-right: .6rem; }

/* =====================================================================
   Récapitulatif de la semaine
   ===================================================================== */
.semaine-periode { font: 600 1.15rem var(--serif); color: var(--ink-2); margin-top: -.3rem; }
.semaine-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: .4rem 0 1.4rem; font-size: .95rem; }
.semaine-nav .semaine-cours { font-weight: 700; }
.stats-semaine { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
@media (min-width: 720px) { .stats-semaine { grid-template-columns: repeat(4, 1fr); } }
.votes-semaine { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.vote-sem { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--mid); border-radius: var(--radius); padding: 1rem 1.2rem; }
.vote-sem.vote-bonne { border-left-color: var(--pos); }
.vote-sem.vote-mauvaise { border-left-color: var(--neg); }
.vote-sem p { margin: 0 0 .35rem; }
.vote-sem .titre { display: block; color: var(--ink); font-weight: 600; font-size: 1.05rem; line-height: 1.4; margin-bottom: .35rem; }
.issue { display: inline-block; font-size: .78rem; font-weight: 700; padding: .1rem .6rem; border-radius: 999px; margin-left: .2rem; }
.issue-bonne { background: var(--pos-soft); color: var(--pos); }
.issue-mauvaise { background: var(--neg-soft); color: var(--neg); }
.decompte { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--paper-2); margin: .6rem 0 .3rem; max-width: 520px; }
.decompte span { flex-basis: 0; min-width: 0; }
.dc-pour { background: var(--pos); } .dc-contre { background: var(--neg); } .dc-abst { background: var(--mid); }
.decompte-leg { font-size: .85rem; color: var(--ink-2); }
.sem-type { margin-top: 1.4rem; }
.sem-type span { color: var(--ink-3); font-weight: 500; }
.actifs { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.actifs a { display: flex; align-items: center; gap: .7rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; text-decoration: none; color: var(--ink); }
.actifs a:hover { border-color: var(--brand); }
.actifs span { display: flex; flex-direction: column; line-height: 1.3; }
.actifs small { color: var(--ink-3); }

/* =====================================================================
   Carte de France
   ===================================================================== */
.vues { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); margin-top: .4rem; }
.vues a { padding: .3rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.vues a[aria-selected="true"] { background: var(--brand); color: #fff; }
.carte-zone { display: grid; gap: 1.5rem; align-items: start; padding-bottom: 1rem; }
@media (min-width: 900px) { .carte-zone { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); } .carte-panneau { position: sticky; top: 84px; } }
.carte-svg svg { width: 100%; height: auto; display: block; }
.carte-svg .dep { stroke: var(--paper); stroke-width: .7; stroke-linejoin: round; transition: opacity .15s; }
.carte-svg .dep.cat-n { fill: var(--cat-n); }
.carte-svg .cat-tf { fill: var(--cat-tf); } .carte-svg .cat-f { fill: var(--cat-f); } .carte-svg .cat-m { fill: var(--cat-m); }
.carte-svg .cat-d { fill: var(--cat-d); } .carte-svg .cat-td { fill: var(--cat-td); }
.carte-svg .dep-vide { fill: var(--paper-2); }
.carte-svg a { cursor: pointer; outline: none; }
.carte-svg a:hover .dep, .carte-svg a:focus-visible .dep { stroke: var(--ink); stroke-width: 1.4; }
.carte-svg a.actif .dep { stroke: var(--ink); stroke-width: 2; }
.carte-svg a:focus-visible .dep { stroke: var(--accent); stroke-width: 2.2; }
.carte-svg .cadre { fill: none; stroke: var(--line); stroke-dasharray: 3 3; }
.carte-svg .cadre-nom { font: 600 8px var(--sans); fill: var(--ink-3); stroke: var(--paper); stroke-width: 3px; paint-order: stroke; pointer-events: none; }
.legende-carte { font-size: .85rem; }
.legende-carte li { color: var(--ink-2); }
.carte-autres { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.carte-autres a { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; text-decoration: none; color: var(--ink); }
.carte-autres a.actif { border-color: var(--ink); }
.carte-autres i { width: .8em; height: .8em; border-radius: 3px; display: inline-block; }
.carte-svg > .etiquette { margin-top: 1rem; }
.carte-panneau { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.carte-panneau h2 { margin-bottom: .5rem; }
.mini-classement { margin: 0 0 1rem; padding-left: 1.3rem; }
.mini-classement li { margin: .15rem 0; }
.mini-classement b { float: right; font-family: var(--serif); }
.panneau-retour { background: none; border: 0; padding: 0; color: var(--brand); font: 600 .88rem var(--sans); cursor: pointer; margin-bottom: .8rem; }
.panneau-score { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.panneau-score .aide { margin: .3rem 0 0; font-size: .85rem; }
.panneau-indice { font: 700 2.6rem/1 var(--serif); }
.dep-repart { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px; margin-bottom: 1rem; font-size: .75rem; }
.dep-repart .seg { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-basis: 0; min-width: 0; }
.dep-repart .seg span { overflow: hidden; padding: 0 .2rem; }
.panneau-liste { list-style: none; margin: 0 0 1rem; padding: 0; max-height: 460px; overflow-y: auto; }
.panneau-liste a { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .5rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.panneau-liste a:hover { background: var(--paper-2); }
.pl-id { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pl-id small { color: var(--ink-3); }
.pl-score { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.pl-score b { font-family: var(--serif); }
.pl-score .badge { font-size: .68rem; }
.carte-bulle { position: absolute; z-index: 40; pointer-events: none; background: var(--ink); color: var(--paper); border-radius: 8px; padding: .45rem .7rem; font-size: .82rem; line-height: 1.35; display: flex; flex-direction: column; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.carte-bulle[hidden] { display: none; }
.carte-bulle small { opacity: .75; }
.carte-tableau summary { cursor: pointer; font-weight: 700; color: var(--brand); margin-bottom: .8rem; }
.trouver-carte { margin-bottom: 0; }

/* =====================================================================
   Soutenir Veille Écologie
   ===================================================================== */
.nav a.nav-soutien { background: var(--accent); color: #fff; font-weight: 700; }
.nav a.nav-soutien:hover { background: #8a4b0c; color: #fff; }
.nav a.nav-soutien[aria-current="page"] { background: var(--ink); }
.soutien-tete { background: linear-gradient(180deg, var(--paper-2), var(--paper)); padding: 2.4rem 0 1rem; }
.soutien-tete .lead { max-width: 62ch; }
.soutien-merci { background: var(--pos-soft); color: var(--pos); border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: 1.4rem; font-size: 1.05rem; }
.soutien-compteur { max-width: 520px; margin-top: 1.2rem; }
.soutien-compteur p { margin: 0 0 .4rem; }
.soutien-compteur strong { font: 700 1.6rem var(--serif); color: var(--brand); }
.soutien-barre { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.soutien-barre span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.soutien-onglets { margin-bottom: 1.4rem; }
.soutien-panneau h2 { margin-bottom: .3rem; }
.montants { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.montant { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 1.4rem .8rem 1rem; text-decoration: none; color: var(--ink); height: 100%; transition: border-color .15s, transform .15s; }
.montant:hover, .montant:focus-visible { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.montant-badge { position: absolute; top: -.75rem; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .6rem; border-radius: 999px; }
.montant-unique .montant-badge { background: var(--ink-3); }
.montant-val { font: 700 2.1rem/1.1 var(--serif); }
.montant-libre .montant-val { font-size: 1.45rem; padding: .3rem 0; }
.montant-freq { font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.montant-act { margin-top: .6rem; font-size: .88rem; font-weight: 700; color: var(--brand); }
.soutien-gerer { font-size: .95rem; }
.soutien-securite { font-size: .85rem; color: var(--ink-3); margin-top: 1rem; }
.l-coche { list-style: none; padding: 0; margin: 0; }
.l-coche li { position: relative; padding-left: 1.8rem; margin-bottom: .9rem; color: var(--ink-2); }
.l-coche li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }
.l-coche b { color: var(--ink); }
.soutien-faq details { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.soutien-faq summary { cursor: pointer; font-weight: 700; }
.soutien-faq details p { margin: .6rem 0 0; color: var(--ink-2); }
.encart-soutien { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1.4rem; }
.encart-soutien p { margin: 0; max-width: 60ch; color: var(--ink-2); }
.encart-soutien strong { color: var(--ink); }
.bouton-soutien { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.aide-stripe { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.1rem; margin: 1rem 0 1.4rem; }
.aide-stripe summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.aide-stripe li { margin-bottom: .5rem; }
.form-soutien input[type=url] { width: 100%; min-width: 220px; }
.form-soutien .table-wrap { width: 100%; }

/* =====================================================================
   Lettre d'information (récap par e-mail)
   ===================================================================== */
.form-newsletter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin: 1.4rem 0; }
.form-newsletter.nl-bandeau { border-left: 5px solid var(--brand); }
.form-newsletter.nl-grand { max-width: 640px; }
.nl-titre { font: 700 1.25rem/1.3 var(--serif); margin: 0 0 .3rem; }
.nl-texte { color: var(--ink-2); margin: 0 0 .8rem; max-width: 62ch; }
.nl-ligne { display: flex; gap: .5rem; flex-wrap: wrap; max-width: 560px; }
.nl-ligne input[type=email] { flex: 1 1 240px; width: auto; }
.nl-mention { font-size: .8rem; color: var(--ink-3); margin: .6rem 0 0; }
.nl-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.page-newsletter .boutons { margin: 1rem 0; }
/* Admin */
.nl-composer { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1100px) { .nl-composer { grid-template-columns: 360px 1fr; } }
.nl-form textarea, .nl-form input[type=text], .nl-form select { width: 100%; }
.nl-blocs { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; display: grid; gap: .35rem; width: 100%; }
.nl-blocs legend { font-weight: 700; font-size: .85rem; padding: 0 .3rem; }
.nl-apercu { background: #e2eae8; border-radius: var(--radius); padding: 1rem; }
.nl-apercu-barre { display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; font-size: .9rem; }
.nl-apercu-barre .etiquette { margin: 0 auto 0 0; }
.nl-apercu iframe { display: block; width: 640px; max-width: 100%; height: 1400px; border: 0; margin: 0 auto; background: #eef3f2; border-radius: 8px; transition: width .2s; }
.nl-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; margin-top: 1rem; }
.nl-test { display: flex; gap: .5rem; flex-wrap: wrap; }
.nl-test input[type=email] { width: 260px; }
.nl-progression { background: var(--pos-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.nl-barre { height: 12px; background: #fff; border-radius: 999px; overflow: hidden; margin: .5rem 0; }
.nl-barre span { display: block; height: 100%; background: var(--brand); transition: width .4s; }
.nl-reglages fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; display: grid; gap: .35rem; width: 100%; }
.nl-port { display: flex; gap: .5rem; } .nl-port input { width: 110px; }
.nl-ligne-admin { display: flex; gap: .5rem; flex-wrap: wrap; } .nl-ligne-admin input { width: 280px; }
.nl-test-reglages { margin-top: 1rem; }
.nl-form label.bloc, .nl-envoi { width: 100%; }
.nl-envoi .nl-actions { flex-direction: column; align-items: stretch; margin-top: 0; }
.nl-envoi .nl-test input[type=email] { flex: 1 1 180px; width: auto; }
.nl-gauche { display: grid; gap: 1rem; }
@media (min-width: 1100px) { .nl-gauche { position: sticky; top: 84px; } }
