/* Espace des inscrits — sur le prototype de campagne
   (sources/prototype-campagne.html) : ses couleurs (bleu nuit #122f3e, rouge
   #e02d2d), son en-tête, ses héros, son bandeau d'actions, ses cartes et sa
   bande bleue. Titres Montserrat Bold, textes Varta. */
:root {
  --navy: #122f3e;
  --teal-deep: #122f3e;
  --teal: #33434b;
  --red: #e02d2d;
  --red-dark: #bf2222;
  /* L'or du logo, gardé pour les états (comités, newsletters, réseaux suivis). */
  --gold: #f8ab19;
  --gold-ink: #96590a;
  --gold-soft: #fdf3e0;
  --cream: #f3eee5;
  --cream-muted: #d7e0e3;
  --ink: #14212a;
  --muted: #68747a;
  --white: #fff;
  --line: #dfe5e7;
  --paper: #f7f8f8;
  --font-title: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sans: "Varta", "Helvetica Neue", Arial, sans-serif;
  --gutter: 48px;
  --top: 42px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.esp {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #eef1f2;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
/* Titres, surtitres, boutons et chiffres : Montserrat Bold. */
.esp h1, .esp h2, .esp h3, .esp-kicker, .esp-button, .esp-nav a, .esp-brand-name,
.esp-choice strong, .esp-bignum, .esp-strip strong, .esp-social-button, .esp-fab,
.esp-amount-value, .esp-welcome-title, .esp-subject strong, .esp-tri-bar strong,
.esp-rule-item strong, .esp-actionbar-progress strong, .esp-group legend, .esp-chip {
  font-family: var(--font-title); font-weight: 700; letter-spacing: .015em;
}
a { color: var(--teal-deep); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ── Cadre et en-tête (prototype : 1440 px, en-tête blanc de 72 px) ─── */
.esp-app { display: flex; flex-direction: column; max-width: 1440px; min-height: 100vh; margin: 0 auto; background: #fff; box-shadow: 0 0 50px rgba(0, 0, 0, .07); }
.esp-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 30px;
  min-height: 72px; padding: 0 34px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.esp-brand { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.esp-brand img { display: block; width: 44px; height: 44px; }
.esp-brand-name { color: var(--navy); font-size: 1.1rem; line-height: .85; letter-spacing: -.02em !important; text-transform: uppercase; }
.esp-brand-name span { display: block; }
.esp-nav { display: flex; flex: 1; align-items: center; gap: 25px; min-width: 0; }
.esp .esp-nav a {
  padding: 4px 0; color: #33434b; border-bottom: 2px solid transparent;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0; text-decoration: none; white-space: nowrap;
}
.esp .esp-nav a:hover { text-decoration: underline; }
.esp .esp-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; border-bottom-color: var(--red); text-decoration: none; }
.esp-top-actions { display: flex; flex: none; align-items: center; gap: 9px; margin-left: auto; }
.esp-top-actions .esp-button { padding: 12px 20px; font-size: 12px; }

/* ── Mise en page : sections pleine largeur, marges du prototype ──────── */
.esp-main {
  flex: 1; display: flex; flex-direction: column; gap: 22px;
  padding: var(--top) var(--gutter) 56px;
}
.esp-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding: 25px var(--gutter); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted);
}
.esp-foot a { color: var(--muted); }
/* Les réseaux en pied de page : pastilles rondes, comme sur npolony.fr. */
.esp-foot-social { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; justify-content: center; padding-bottom: 6px; }
.esp-foot-social a {
  --brand: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--navy); color: #fff; transition: transform .15s, background .15s;
}
.esp-foot-social a:hover, .esp-foot-social a:focus-visible { background: var(--gold, #c9a24e); --brand: var(--gold, #c9a24e); transform: translateY(-2px); }
.esp-foot-social svg { width: 18px; height: 18px; }

.esp-kicker {
  display: block; margin: 0 0 17px; color: var(--navy);
  font-size: 11px; letter-spacing: 2px !important; text-transform: uppercase;
}
span.esp-kicker, .esp-modal-head .esp-kicker, .esp-answers .esp-kicker { display: block; }
span.esp-kicker::before, .esp-modal-head .esp-kicker::before, .esp-answers .esp-kicker::before { content: none; }
.esp h1 {
  margin: 0 0 20px; color: var(--navy);
  font-size: clamp(2.3rem, 4.2vw, 3.6rem); line-height: .98;
  letter-spacing: -.035em !important; text-wrap: balance;
}
.esp h2 { margin: 0 0 .75rem; color: var(--navy); font-size: 1.2rem; }
.esp p { margin: 0 0 .9rem; max-width: 66ch; }
.esp p:last-child { margin-bottom: 0; }

/* Héros des pages : le bandeau bleu du prototype (pages « Agir », « Don »),
   d'un bord à l'autre. L'accueil a son héros crème à portrait (.is-home). */
.esp-hero {
  margin: 0 calc(-1 * var(--gutter)); padding: 58px var(--gutter);
  background: linear-gradient(135deg, #122f3e, #294c5d); color: #fff;
}
.esp-main > .esp-hero:first-child { margin-top: calc(-1 * var(--top)); }
.esp-hero .esp-kicker, .esp .esp-hero h1 { color: #fff; }
/* Bandeau : le titre tient sur une ligne quand la place le permet (sinon il
   se coupe en lignes équilibrées), le chapeau évite de laisser un mot seul. */
.esp .esp-hero h1 { max-width: 960px; font-size: clamp(2.2rem, 3.6vw, 3rem); text-wrap: balance; }
.esp-hero p { color: #e0e7e9; }
.esp-hero a { color: #fff; }
.esp-lede { max-width: 760px !important; font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.esp-hero .esp-lede { color: #e0e7e9; }
.esp-hero .esp-muted, .esp-hero .esp-meta { color: #c9d5d9; }
/* Encadrés posés dans le bandeau bleu : ils gardent leurs couleurs. */
.esp-hero p.esp-reverse, .esp-hero p.esp-alert { color: #8d251d; }
.esp-hero p.esp-note { color: var(--ink); }
.esp-hero .esp-card, .esp-hero .esp-card p { color: var(--ink); }
.esp-hero .esp-card a { color: var(--navy); }

.esp-back { margin: 0; font-size: .85rem; font-weight: 700; }
.esp-back a { text-decoration: none; }

.esp-card { padding: 24px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.esp-narrow.esp-card { box-shadow: 0 15px 40px rgba(18, 47, 62, .1); border-radius: 6px; }
.esp-narrow { width: min(100%, 540px); margin: 4vh auto 0; }
.esp-narrow h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); margin-bottom: 1.1rem; }

.esp-muted { color: var(--muted); font-size: .88rem; }
.esp-note { margin: 0; padding: .9rem 1.1rem; border-left: 4px solid var(--navy); background: var(--paper); color: var(--ink); max-width: none; }
.esp-alert { padding: .8rem 1rem; border-left: 4px solid var(--red); background: #fff1ee; color: #8d251d; }

/* ── Boutons et formulaires ──────────────────────────────────────────── */
.esp-button {
  display: inline-block; border: 0; border-radius: 4px; padding: 13px 21px;
  color: #fff; background: var(--red); cursor: pointer;
  font-size: 13px; line-height: 1.3; text-align: center; text-decoration: none;
}
.esp-button:hover { background: var(--red-dark); }
.esp-button.is-quiet { background: var(--navy); }
.esp-button.is-quiet:hover { background: #0b2330; }
.esp-button.is-outline { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px #9ba9ae; }
.esp-button.is-outline:hover, .esp-button.is-outline[aria-current="page"] { background: var(--paper); box-shadow: inset 0 0 0 1px var(--navy); }
.esp-link { background: none; border: 0; padding: 0; color: var(--muted); font-size: .88rem; text-decoration: underline; cursor: pointer; }

.esp-form { display: grid; gap: 1rem; margin-top: 1rem; }
.esp-form label { display: grid; gap: .4rem; font-size: .82rem; font-weight: 700; }
.esp-form input[type="email"], .esp-form input[type="tel"], .esp-form input:not([type]), .esp-form select, .esp-form textarea {
  width: 100%; min-width: 0; border: 1px solid #c9ccc9; border-radius: 4px;
  padding: .75rem .85rem; background: #fff; font-weight: 400; font-size: 1rem;
}
.esp-form textarea { resize: vertical; line-height: 1.55; }
.esp-form .esp-button { justify-self: start; }
.esp-kind { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; border: 0; }
.esp-kind legend { width: 100%; margin-bottom: .4rem; font-size: .82rem; font-weight: 700; }
.esp-kind label { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 600; }
.esp-kind input { width: 1.1rem; height: 1.1rem; accent-color: var(--red); }

/* ── Accueil ─────────────────────────────────────────────────────────── */
.esp-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.esp-choice { display: grid; gap: .45rem; color: inherit; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.esp-choice:hover { border-color: var(--teal-deep); background: var(--paper); }
.esp-choice strong { color: var(--teal-deep); font-size: 1.3rem; line-height: 1.2; }
.esp-choice span:last-child { color: var(--teal); }
.esp-choice .esp-kicker { margin: 0; }

.esp-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.esp-strip div { display: grid; gap: .1rem; padding: 1rem 1.25rem; background: var(--white); }
.esp-strip strong { color: var(--teal-deep); font-size: 2rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.esp-strip span { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ── Cahier ──────────────────────────────────────────────────────────── */
.esp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.esp-subject { display: grid; gap: .4rem; align-content: start; color: inherit; text-decoration: none; }
.esp-subject strong { color: var(--teal-deep); font-size: 1.1rem; font-weight: 800; line-height: 1.25; }
.esp-subject span { color: var(--teal); font-size: .92rem; }
.esp-subject em { margin-top: .4rem; color: var(--muted); font-size: .78rem; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.esp-subject:hover strong { text-decoration: underline; }

.esp-list { display: flex; flex-direction: column; gap: 1rem; }
.esp-list > h2, .esp-list > .esp-card-head h2 { margin: .75rem 0 0; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.05; }
.esp-thread { display: flex; flex-direction: column; gap: .6rem; }
.esp-entry { padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 5px; scroll-margin-top: 1rem; }
.esp-entry.is-problem { border-left-color: var(--red); }
.esp-entry.is-solution { border-left-color: var(--teal-deep); }
.esp-entry > header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: .6rem; }
.esp-entry > footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: .8rem; }
.esp-entry-body p { max-width: 72ch; }
.esp-answers { display: flex; flex-direction: column; gap: .6rem; margin-left: clamp(.75rem, 4vw, 2.5rem); }
.esp-answers .esp-kicker { margin: .2rem 0 0; color: var(--teal-deep); }
.esp-entry:target { box-shadow: 0 0 0 3px var(--gold); }

.esp-signal {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 0; border-radius: 999px; padding: .62rem 1.05rem .62rem .9rem;
  background: var(--red); color: #fff; cursor: pointer;
  font-size: .9rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(215, 50, 36, .65);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.esp-signal:hover, .esp-signal:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(215, 50, 36, .75); }
.esp-signal-icon { font-size: 1.05rem; line-height: 1; }
.esp-signal-count {
  min-width: 1.7rem; padding: .12rem .45rem; border-radius: 999px; text-align: center;
  background: rgba(255, 255, 255, .22); font-variant-numeric: tabular-nums; font-size: .82rem;
}
.esp-signal.is-solution { background: var(--teal-deep); box-shadow: 0 6px 16px -8px rgba(17, 66, 95, .6); }
.esp-signal.is-on { background: #fff; color: var(--teal-deep); box-shadow: inset 0 0 0 2px var(--teal-deep); }
.esp-signal.is-on .esp-signal-count { background: var(--teal-deep); color: #fff; }
.esp-signal.is-own { cursor: default; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px #c9c2b4; transform: none; }
.esp-signal.is-own .esp-signal-count { background: #f1ede4; color: var(--muted); }

/* ── Mon espace ──────────────────────────────────────────────────────── */
.esp-chip { display: inline-block; padding: .15rem .55rem; border-radius: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.esp-chip.is-pending { background: var(--gold-soft); color: #7a5410; }
.esp-chip.is-published { background: #e2efe8; color: #245c40; }
.esp-chip.is-rejected { background: #f3e6e4; color: #8d251d; }
.esp-facts { display: grid; gap: .1rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.esp-facts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.esp-facts span { color: var(--muted); font-size: .88rem; }
.esp-facts strong { font-weight: 700; overflow-wrap: anywhere; }
.esp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ── Tri des thèmes ──────────────────────────────────────────────────── */
.esp-invite { border-top: 4px solid var(--gold); }
.esp-grid-title { margin: .5rem 0 -.25rem; }
.esp-narrow-left { width: min(100%, 540px); }

.esp-tri { display: flex; flex-direction: column; gap: 1rem; }
.esp-tri-bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem;
  padding: .85rem 1.1rem; background: var(--teal-deep); color: var(--white);
  box-shadow: 0 10px 24px -18px rgba(15, 66, 95, .8);
}
.esp-tri-bar strong { font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.esp-tri-hint { color: rgba(255, 253, 248, .72); font-size: .85rem; }
.esp-tri-full { display: none; width: 100%; color: var(--gold); font-size: .85rem; font-weight: 700; }
.esp-tri-bar.is-full .esp-tri-full { display: block; }
.esp-tri-bar.is-full .esp-tri-hint { display: none; }

.esp-tri-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.esp-tri-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem;
  padding: .8rem 1.1rem; background: var(--white);
}
.esp-tri-row:has(input[value="prioritaire"]:checked) { box-shadow: inset 4px 0 0 var(--red); }
.esp-tri-row:has(input[value="accessoire"]:checked) .esp-tri-name { opacity: .6; }
.esp-tri-name { display: grid; gap: .05rem; min-width: min(100%, 16rem); flex: 1; }
.esp-tri-name strong { color: var(--teal-deep); font-weight: 800; }
.esp-tri-name span { color: var(--muted); font-size: .84rem; }

.esp-seg { display: inline-flex; flex: none; border: 1px solid #c9c2b4; border-radius: 999px; overflow: hidden; background: #fff; }
.esp-seg-opt { position: relative; }
.esp-seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.esp-seg-opt span { display: block; padding: .45rem .8rem; color: var(--teal); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.esp-seg-opt + .esp-seg-opt span { border-left: 1px solid #c9c2b4; }
.esp-seg-opt input:hover + span { background: var(--cream); }
.esp-seg-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: -3px; }
.esp-seg-opt.is-prioritaire input:checked + span { background: var(--red); color: #fff; }
.esp-seg-opt.is-secondaire input:checked + span { background: var(--teal-deep); color: #fff; }
.esp-seg-opt.is-accessoire input:checked + span { background: #d9d3c7; color: var(--ink); }
.esp-seg-opt.is-locked input { cursor: not-allowed; }
.esp-seg-opt.is-locked span { color: #bdb6aa; background: #fff; }

.esp-tri-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.esp-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.esp-chips li { padding: .35rem .8rem; border-radius: 999px; background: var(--cream); color: var(--teal-deep); font-size: .88rem; font-weight: 700; }
.esp-chips li b { margin-right: .35rem; color: var(--red); }

@media (max-width: 520px) {
  .esp-seg { width: 100%; }
  .esp-seg-opt { flex: 1; text-align: center; }
}
.esp-tri-domain { display: flex; flex-direction: column; gap: .5rem; }
.esp-tri-domain h2 { display: flex; align-items: baseline; gap: .5rem; margin: .75rem 0 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.esp-tri-domain h2 span { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: 0; }
.esp-tri-domain .esp-tri-row { padding-top: .6rem; padding-bottom: .6rem; }
/* Répartition imposée : trois jauges et un état */
.esp-tri-gauge { font-size: .9rem; color: rgba(255, 253, 248, .85); }
.esp-tri-gauge strong { margin-right: .15rem; color: var(--white); }
.esp-tri-gauge.is-done strong { color: var(--gold); }
.esp-tri-gauge.is-done::after { content: " ✓"; color: var(--gold); font-weight: 800; }
.esp-tri-bar .esp-tri-status { width: 100%; margin: .15rem 0 0; color: rgba(255, 253, 248, .75); font-size: .85rem; max-width: none; }
.esp-tri.is-complete .esp-tri-bar .esp-tri-status { color: var(--gold); font-weight: 700; }
.esp-tri-actions .esp-tri-status { margin: 0; color: var(--muted); font-size: .88rem; }
.esp-button:disabled { background: #bdb6aa; cursor: not-allowed; }

/* ── Inscription ─────────────────────────────────────────────────────── */
.esp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.esp-form input[readonly] { background: var(--cream); color: var(--muted); }
.esp-form label.has-error input { border-color: var(--red); }
.esp-field-error { color: #8d251d; font-size: .82rem; font-weight: 600; }
.esp-kind.has-error legend { color: #8d251d; }
/* « Laquelle ? » n'apparaît que pour une autre nationalité. Sans :has(), il
   reste visible : c'est le serveur qui décide s'il est requis. */
.esp-profile:not(:has(input[name="nationalite"][value="autre"]:checked)) .esp-nat-other { display: none; }
.esp-why { margin: 0; padding: .9rem 1rem; background: var(--cream); max-width: none; line-height: 1.5; }

/* ── Suivez la campagne ──────────────────────────────────────────────── */
.esp-socials { display: flex; flex-direction: column; gap: 1.1rem; }
.esp-social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .esp-social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.esp-social {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 1.35rem 1rem 1rem; background: var(--white); text-align: center;
  border: 1px solid var(--line); border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.esp-social:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 16px 34px -24px rgba(15, 66, 95, .45); }
.esp-social:focus-within { border-color: var(--brand); }
.esp-social h2 { margin: .75rem 0 .2rem; font-size: 1.05rem; }
.esp-social-why { margin: 0 0 .35rem !important; color: var(--teal); font-size: .86rem; line-height: 1.4; min-height: 2.4em; }
.esp-social-handle { margin: 0 0 .95rem !important; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.esp-social-icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--brand); color: #fff; }
.esp-social-icon svg { width: 1.7rem; height: 1.7rem; }
.esp-brand-fill { fill: var(--brand); }
.esp-brand-stroke { stroke: var(--brand); }
/* Toute la carte est cliquable : le lien s'étend sur elle. */
.esp-social-button {
  margin-top: auto; width: 100%; padding: .62rem .9rem; border-radius: 4px;
  background: var(--teal-deep); color: #fff; font-size: .88rem; font-weight: 800; text-decoration: none;
}
.esp-social-button::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.esp-social-button:focus-visible { outline: none; }
.esp-social-button:focus-visible::after { outline: 3px solid var(--gold); outline-offset: 2px; }
.esp-social:hover .esp-social-button { background: var(--brand); }
.esp-social-check {
  position: absolute; top: .65rem; right: .65rem; display: none; place-items: center;
  width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--gold); color: #fff; font-size: .8rem; font-weight: 900;
}
.esp-social.is-done { background: #fffaf0; border-color: #ecd9b0; }
.esp-social.is-done .esp-social-check { display: grid; }
.esp-social.is-done .esp-social-button, .esp-social.is-done:hover .esp-social-button { background: transparent; color: #8a6414; box-shadow: inset 0 0 0 1px #e3c98f; }
.esp-social-note { margin: 0 !important; max-width: 70ch; }

/* Barre d'action collée en bas : progression + bouton, toujours visibles. */
.esp-actionbar {
  position: sticky; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  margin: .25rem -1rem 0; padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom));
  background: rgba(242, 238, 229, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
}
.esp-actionbar-progress { display: grid; gap: .4rem; flex: 1; max-width: 26rem; }
.esp-actionbar-progress p { margin: 0 !important; color: var(--muted); font-size: .9rem; }
.esp-actionbar-progress strong { color: var(--teal-deep); font-size: 1.25rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.esp-actionbar-progress [data-status] { margin-left: .5rem; color: var(--ink); font-weight: 700; }
.esp-socials.is-complete .esp-actionbar-progress [data-status] { color: #8a6414; }
.esp-actionbar progress { width: 100%; height: .5rem; border: 0; border-radius: 999px; overflow: hidden; background: #e2dccf; appearance: none; -webkit-appearance: none; }
.esp-actionbar progress::-webkit-progress-bar { background: #e2dccf; border-radius: 999px; }
.esp-actionbar progress::-webkit-progress-value { background: var(--teal-deep); border-radius: 999px; transition: width .3s ease; }
.esp-actionbar progress::-moz-progress-bar { background: var(--teal-deep); border-radius: 999px; }
.esp-socials.is-complete .esp-actionbar progress::-webkit-progress-value { background: var(--gold); }
.esp-socials.is-complete .esp-actionbar progress::-moz-progress-bar { background: var(--gold); }
.esp-actionbar .esp-button { flex: none; }

.esp-social.is-whatsapp { --brand: #25d366; }
.esp-social.is-telegram { --brand: #229ed9; }
.esp-social.is-instagram { --brand: #e1306c; }
.esp-social.is-x { --brand: #111111; }
.esp-social.is-facebook { --brand: #1877f2; }
.esp-social.is-youtube { --brand: #ff0000; }
.esp-social.is-tiktok { --brand: #111111; }
.esp-social.is-linkedin { --brand: #0a66c2; }

/* ── Tri : la règle en trois blocs ───────────────────────────────────── */
.esp-rule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.esp-rule-item { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.15rem; background: var(--white); border-top: 4px solid; }
.esp-rule-item strong { font-size: 2.3rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.esp-rule-item span { display: grid; gap: .1rem; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.esp-rule-item b { color: var(--ink); font-size: .95rem; font-weight: 800; }
.esp-rule-item.is-prioritaire { border-top-color: var(--red); }
.esp-rule-item.is-prioritaire strong { color: var(--red); }
.esp-rule-item.is-secondaire { border-top-color: var(--teal-deep); }
.esp-rule-item.is-secondaire strong { color: var(--teal-deep); }
.esp-rule-item.is-accessoire { border-top-color: #bdb5a6; }
.esp-rule-item.is-accessoire strong { color: #8a8274; }
.esp-rule-note { margin: -.5rem 0 0 !important; }
@media (max-width: 640px) { .esp-rule { grid-template-columns: 1fr; } }

/* Jauges de la barre : pastille de la couleur du niveau */
.esp-tri-gauge::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .45rem; border-radius: 50%; vertical-align: .05em; }
.esp-tri-gauge.is-prioritaire::before { background: var(--red); }
.esp-tri-gauge.is-secondaire::before { background: #7fa6c0; }
.esp-tri-gauge.is-accessoire::before { background: #d9d3c7; }

/* Utilitaires */
.esp-form label .esp-muted { font-weight: 400; }
.esp-form label .esp-field-error { font-weight: 600; }
.esp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.esp-ext { width: .72em; height: .72em; margin-left: .35em; vertical-align: -.02em; }

/* Téléphone : les réseaux en lignes compactes, pour que les huit tiennent sur
   un écran et demi au lieu de huit. */
@media (max-width: 560px) {
  .esp-social-grid { grid-template-columns: 1fr; gap: .6rem; }
  .esp-social {
    display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon name button" "icon why button";
    align-items: center; column-gap: .8rem; row-gap: .1rem; padding: .75rem .8rem; text-align: left;
  }
  .esp-social:hover { transform: none; }
  .esp-social-icon { grid-area: icon; width: 2.6rem; height: 2.6rem; }
  .esp-social-icon svg { width: 1.35rem; height: 1.35rem; }
  .esp-social h2 { grid-area: name; margin: 0; font-size: 1rem; }
  .esp-social-why { grid-area: why; min-height: 0; margin: 0 !important; font-size: .8rem; }
  .esp-social-handle { display: none; }
  .esp-social-button { grid-area: button; width: auto; margin: 0; padding: .5rem .75rem; font-size: .8rem; white-space: nowrap; }
  .esp-social-check { top: -.4rem; right: -.4rem; width: 1.3rem; height: 1.3rem; font-size: .7rem; }
}

/* ── Inscription : groupes, adresse vérifiée, téléphone ──────────────── */
.esp-profile-card { width: 100%; }
.esp-profile { gap: 1.5rem; }
.esp-group { display: grid; gap: 1rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.esp-group legend {
  width: 100%; margin-bottom: .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line);
  color: var(--teal-deep); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.esp-label { font-size: .82rem; font-weight: 700; }
.esp-kind .esp-label { width: 100%; }
.esp-hint { color: var(--muted); font-size: .8rem; font-weight: 400; }
.esp-form select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23374955' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .85rem center; }
.esp-fr-only { display: grid; gap: .6rem; }
.esp-cp { grid-template-columns: minmax(7rem, 10rem) 1fr; align-items: start; }
.esp-cp [data-city] { display: block; }
.esp-cp [data-city] > * { width: 100%; }
.esp-derived { min-height: 1.3em; margin: 0 !important; color: var(--muted); font-size: .84rem; font-weight: 500; }
.esp-derived:not(:empty)::before { content: "📍 "; }
.esp-phone { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: .5rem; }
.esp-phone select { font-size: .92rem !important; }
.esp-why { display: grid; gap: .35rem; padding: .9rem 1rem; background: var(--cream); border-radius: 8px; }
.esp-why p { margin: 0 !important; max-width: none; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.esp-why strong { color: var(--ink); }
/* France : code postal et commune ; ailleurs : la ville. Sans script, les deux
   restent visibles et le service s'y retrouve. */
.esp-profile[data-residence="fr"] .esp-abroad-only,
.esp-profile[data-residence="abroad"] .esp-fr-only,
.esp-profile[data-residence="none"] .esp-fr-only,
.esp-profile[data-residence="none"] .esp-abroad-only { display: none; }
@media (max-width: 520px) {
  .esp-cp, .esp-phone { grid-template-columns: 1fr; }
}

/* ── Accueil de l'espace ─────────────────────────────────────────────── */
.esp-welcome { padding: 1.3rem 1.5rem; border-radius: 6px; background: var(--teal-deep); color: var(--white); }
.esp-welcome p { margin: 0 !important; max-width: none; color: rgba(255, 253, 248, .85); }
.esp-welcome .esp-welcome-title { margin-bottom: .2rem !important; color: var(--white); font-size: 1.25rem; font-weight: 800; }
.esp-meta { margin-top: .6rem !important; color: var(--muted); font-size: .92rem; }
.esp-meta a { margin-left: .35rem; font-weight: 700; }
.esp-choice-go { margin-top: .35rem; color: var(--red); font-size: .88rem; font-style: normal; font-weight: 800; }

.esp-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.esp-side { display: grid; gap: 1rem; }
@media (max-width: 800px) { .esp-columns { grid-template-columns: 1fr; } }
.esp-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.esp-card-head h2 { margin: 0; }
.esp-card-head a { font-size: .88rem; font-weight: 700; }
.esp-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.esp-podium li { display: flex; align-items: center; gap: .6rem; padding: .75rem .85rem; border-radius: 10px; background: var(--cream); color: var(--teal-deep); font-weight: 800; line-height: 1.25; }
.esp-podium span { display: grid; place-items: center; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-title); font-size: .8rem; line-height: 1; font-variant-numeric: tabular-nums; padding-top: 2px; box-sizing: border-box; }
.esp-podium.is-long { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 520px) { .esp-podium, .esp-podium.is-long { grid-template-columns: 1fr; } }
.esp-subhead { margin: 0 0 .5rem !important; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.esp-priorities .esp-chips { margin-bottom: 0; }
.esp-priorities .esp-chips li { background: #f6f3ec; font-weight: 600; font-size: .84rem; }
.esp-mine h2, .esp-next h2 { font-size: 1.05rem; }
.esp-bignum { margin: 0 !important; color: var(--teal-deep); font-size: 2.4rem; font-weight: 900; line-height: 1; }
.esp-next p { color: var(--teal); font-size: .92rem; }

/* ── Mes invitations ─────────────────────────────────────────────────── */
.esp-reverse { margin-top: .9rem !important; padding: .8rem 1rem; border-left: 4px solid var(--red); background: #fff1ee; color: #8d251d; font-weight: 700; box-sizing: border-box; width: fit-content; max-width: 100% !important; text-wrap: balance; }
.esp-slots { display: grid; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.esp-slot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.esp-slot.is-free { border-style: dashed; background: transparent; color: var(--muted); }
.esp-slot-num { display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--cream); color: var(--teal-deep); font-size: .8rem; font-weight: 800; }
.esp-slot-mail { flex: 1; min-width: 10rem; font-weight: 600; overflow-wrap: anywhere; }
.esp-slot-mail em { color: var(--muted); font-weight: 400; }
.esp-invite-form { margin-top: 0; }
.esp-legal { margin: 0 !important; max-width: 80ch; font-size: .8rem; }
.esp-consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: .6rem !important; font-weight: 400 !important; font-size: .82rem !important; line-height: 1.5; color: var(--teal); }
.esp-consent input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--red); }

/* Cahier : suggestions de contributions proches et repères */
.esp-similar { margin: 12px 0 0; padding: 14px 16px; border-radius: 12px; background: #f3f6fb; border: 1px solid #d8e0ee; }
.esp-similar-title { margin: 0 0 8px; font-weight: 600; font-size: .95rem; }
.esp-similar ul { margin: 0; padding-left: 18px; }
.esp-similar li + li { margin-top: 6px; }
.esp-similar a { color: inherit; }
.esp-reperes { margin: 18px 0; padding: 16px 18px; border-left: 4px solid #1f3a68; background: #f7f8fb; border-radius: 0 12px 12px 0; }
.esp-reperes h2 { margin: 0 0 8px; font-size: 1.05rem; }
.esp-reperes ul { margin: 0; padding-left: 18px; }

/* ── Don ─────────────────────────────────────────────────────────────── */
.esp-don { display: grid; gap: 1.25rem; }
.esp-don label { display: grid; gap: .4rem; font-size: .82rem; font-weight: 700; }
.esp-don input:not([type]), .esp-don input[inputmode] {
  width: 100%; padding: .75rem .85rem; border: 1px solid #cfc7b8; border-radius: 10px; background: #fff; font-size: 1rem; font-weight: 500;
}
.esp-amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .75rem; }
.esp-don label.esp-amount {
  position: relative; display: grid; gap: .2rem; align-content: start; padding: 1rem 1rem .9rem;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.esp-amount:hover { border-color: #c9b58f; transform: translateY(-1px); }
.esp-amount input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.esp-amount-value { color: var(--teal-deep); font-size: 1.45rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.esp-amount-cost { color: var(--muted); font-size: .76rem; font-weight: 600; }
.esp-amount.is-selected, .esp-amount:has(input[type="radio"]:checked) { border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(15, 66, 95, .14); background: #f5f9fb; }
.esp-amount:has(input[type="radio"]:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.esp-amount.is-other .esp-amount-value { font-size: 1rem; padding-top: .3rem; }
.esp-amount-input { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-weight: 700; }
.esp-don .esp-amount-input input { padding: .45rem .6rem; font-size: 1rem; }
.esp-don-cost { margin: .25rem 0 0; padding: .8rem 1rem; border-radius: 10px; background: var(--gold-soft); color: #6b4a12; font-size: .92rem; }
.esp-don-cost strong { font-size: 1.05rem; }
.esp-don-identity { margin: 0; padding: .75rem 1rem; border-radius: 10px; background: var(--cream); font-size: .9rem; overflow-wrap: anywhere; }
.esp-don label.esp-check { display: flex; align-items: flex-start; gap: .7rem; font-size: .92rem; font-weight: 500; line-height: 1.5; cursor: pointer; }
.esp-check input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--teal-deep); }
.esp-don-mention { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.esp-secure { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0; color: var(--muted); font-size: .85rem; }
.esp-secure-text::before { content: "🔒 "; }
.esp-stripe-badge {
  display: inline-flex; align-items: baseline; gap: .35rem; padding: .28rem .7rem; border-radius: 6px;
  background: #635bff; color: #fff; font-size: .7rem; font-weight: 600; line-height: 1;
}
.esp-stripe-badge b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.04em; font-family: "Helvetica Neue", Arial, sans-serif; }
.esp-cards { display: inline-flex; gap: .3rem; }
.esp-cards span { padding: .18rem .45rem; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--teal-deep); font-size: .66rem; font-weight: 800; letter-spacing: .02em; }
.esp-don .esp-actionbar .esp-actions { margin: 0; }
.esp-law { display: block; width: 100%; margin-top: 1.25rem; font-size: .92rem; color: var(--ink); }
.esp .esp-law h2 { margin: 0 0 12px; font-size: 1.05rem; }
.esp .esp-law p { max-width: none; }
@media (max-width: 560px) {
  .esp-don .esp-actionbar { flex-direction: column; align-items: stretch; }
  .esp-don .esp-actionbar .esp-actions { justify-content: space-between; }
}

/* Menu du profil : l'avatar ouvre un sous-menu. */
.esp-profile-menu { position: relative; }
.esp-profile-toggle { display: flex; align-items: center; gap: .3rem; padding: 0; color: var(--teal); text-decoration: none; }
.esp-avatar {
  display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-title); font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line);
}
.esp-profile-menu.is-current .esp-avatar, .esp-profile-menu.is-open .esp-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); }
.esp-caret { font-size: .7rem; }
.esp-profile-panel[hidden] { display: none; }
.esp-profile-panel {
  position: absolute; right: 0; top: calc(100% + .6rem); z-index: 10; display: grid; min-width: 15rem; padding: .5rem;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 18px 40px -12px rgba(15, 66, 95, .35);
}
.esp-profile-who { display: grid; gap: .1rem; margin: 0 0 .35rem; padding: .5rem .65rem .65rem; border-bottom: 1px solid var(--line); }
.esp-profile-who span { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.esp-profile-panel a, .esp-profile-panel button {
  display: block; width: 100%; padding: .55rem .65rem; border: 0; border-radius: 4px; background: none; text-align: left;
  color: var(--ink); font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer;
}
.esp-profile-panel a:hover, .esp-profile-panel button:hover { background: var(--cream); color: var(--ink); }
.esp-profile-panel a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.esp-profile-panel form { margin: .25rem 0 0; padding-top: .25rem; border-top: 1px solid var(--line); }
.esp-profile-panel button { color: var(--red-dark); }

/* Bouton de don flottant et fenêtre de don */
.esp-fab {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 20;
  display: inline-flex; align-items: center; gap: .45rem; padding: .85rem 1.25rem; border-radius: 4px;
  background: var(--red); color: #fff; font-size: .85rem; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(174, 35, 25, .75); transition: transform .15s, background .15s;
}
.esp-fab:hover { background: var(--red-dark); transform: translateY(-2px); }
.esp-fab span { font-size: 1.05em; }
.esp-modal {
  width: min(100% - 1.5rem, 46rem); max-height: min(92vh, 60rem); padding: 0; border: 0; border-radius: 6px;
  background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(15, 66, 95, .6);
}
.esp-modal::backdrop { background: rgba(15, 30, 40, .55); backdrop-filter: blur(2px); }
.esp-modal-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem .9rem; background: var(--cream); border-bottom: 1px solid var(--line);
}
.esp-modal-head h2 { margin: 0; font-size: 1.5rem; color: var(--teal-deep); }
.esp-modal-head .esp-kicker { margin: 0 0 .15rem; }
.esp-modal-close { width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.esp-modal-close:hover { color: var(--ink); background: var(--gold-soft); }
.esp-modal-body { padding: 1rem 1.4rem 1.4rem; }
.esp-modal .esp-card { box-shadow: none; }
.esp-modal .esp-actionbar { margin: 0 -1.4rem; padding-inline: 1.4rem; }
@media (max-width: 560px) {
  .esp-fab { padding: .8rem 1rem; }
  .esp-modal { width: 100%; max-height: 100vh; border-radius: 0; }
}
.esp-fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(1rem); }
.esp-fab { transition: transform .15s, background .15s, opacity .2s; }

/* Le point sur l'inscription : trois étapes */
.esp-status-steps { display: grid; gap: .55rem; margin: 1rem 0 1.25rem; padding: 0; list-style: none; }
.esp-status-steps li { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-weight: 600; }
.esp-status-steps li span {
  display: inline-grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; font-size: .85rem; font-weight: 800;
}
.esp-status-steps li.is-done { color: var(--ink); }
.esp-status-steps li.is-done span { border-color: var(--teal-deep); background: var(--teal-deep); color: #fff; }
.esp-status-steps li.is-current { color: var(--teal-deep); font-weight: 800; }
.esp-status-steps li.is-current span { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }
.esp-kind .esp-hint { width: 100%; margin-top: -.15rem; }

/* ── Comités locaux : la carte ───────────────────────────────────────── */
.esp-carte-card { display: grid; gap: .9rem; }
.esp-carte-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; }
.esp-carte-head p { margin: 0 !important; }
.esp-carte-legende { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .82rem; }
.esp-swatch { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; border: 1px solid var(--teal-deep); }
.esp-swatch.has-groups { background: var(--gold); }
.esp-swatch.is-empty { background: var(--white); }
.esp-carte { display: block; width: 100%; max-width: 620px; margin: 0 auto; height: auto; }
.esp-dep path { fill: var(--white); stroke: #b9c4c9; stroke-width: 1.2; transition: fill .12s; cursor: pointer; }
.esp-dep.has-groups path { fill: var(--gold); stroke: #b98a2e; }
.esp-dep:hover path { fill: var(--teal); stroke: var(--teal-deep); }
.esp-dep.has-groups:hover path { fill: #e7b768; }
.esp-dep.is-selected path { fill: var(--teal-deep); stroke: var(--teal-deep); }
.esp-dep.is-home path { stroke: var(--red); stroke-width: 2.4; }
.esp-dep:focus-visible { outline: none; }
.esp-dep:focus-visible path { stroke: var(--gold); stroke-width: 3; }
/* L'encart de la petite couronne : le vrai tracé des quatre départements, à
   leur propre échelle (data/couronne-source.json). Sur la carte de France, ces
   quatre-là restent dessinés mais muets — c'est l'encart qui les donne à cliquer.
   Les contours gardent leur épaisseur à l'écran malgré la réduction. */
.esp-carte .esp-dep.is-confetti { pointer-events: none; }
.esp-encart .esp-dep path { vector-effect: non-scaling-stroke; }
.esp-encart-cadre { fill: #fbfdfd; stroke: #c6d2d6; stroke-width: 1.2; }
.esp-encart-titre { fill: var(--muted); font-size: 13px; font-weight: 700; }
.esp-encart-numero { fill: var(--ink); font-size: 15px; font-weight: 800; pointer-events: none; }
.esp-encart .esp-dep:hover .esp-encart-numero,
.esp-encart .esp-dep.is-selected .esp-encart-numero { fill: var(--white); }
.esp-repere { fill: none; stroke: #9fb0b6; stroke-width: 1.6; stroke-dasharray: 4 3; }

.esp-carte-outremer { margin: 0 !important; color: var(--muted); font-size: .84rem; font-weight: 600; }
/* L'Île-de-France en pastilles : inutile sur grand écran, où l'encart suffit ;
   indispensable sur téléphone, où la carte entière fait trois cents pixels. */
.esp-terrs.esp-idf, .esp-idf-titre { display: none; }
@media (max-width: 700px) {
  .esp-terrs.esp-idf { display: flex; }
  .esp-idf-titre { display: block; }
}
.esp-terrs { display: flex; flex-wrap: wrap; gap: .45rem; }
.esp-terr {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: .84rem; font-weight: 600; text-decoration: none;
}
.esp-terr:hover { border-color: var(--teal-deep); }
.esp-terr.has-groups { background: var(--gold-soft); border-color: #e3c98f; }
.esp-terr.is-selected { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.esp-terr span { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .74rem; font-weight: 800; }
.esp-terr.is-selected span { background: var(--white); }

/* ── Comités locaux : les cartes de comité ───────────────────────────── */
.esp-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
article.esp-group { display: grid; align-content: start; gap: .45rem; padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--white); box-shadow: 0 1px 2px rgba(15, 66, 95, .06), 0 14px 30px -24px rgba(15, 66, 95, .4); }
article.esp-group h3 { margin: 0; font-size: 1.15rem; color: var(--teal-deep); }
article.esp-group p { margin: 0 !important; font-size: .9rem; }
.esp-group-where { color: var(--muted); font-weight: 600; }
.esp-group-count { color: var(--muted); font-size: .84rem !important; }
article.esp-group form { margin-top: .35rem; }
.esp-mine { border-left: 4px solid var(--gold); }
.esp-mine h2 { margin: .1rem 0 .3rem; }
.esp-comite-card { border-left: 4px solid var(--gold); }
.esp-mine-list { display: grid; gap: .7rem; margin: .4rem 0 .8rem; padding: 0; list-style: none; }
.esp-mine-list li { display: grid; gap: .15rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.esp-mine-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.esp-mine-list strong { color: var(--teal-deep); }
.esp-mine-list .esp-muted { font-size: .86rem; }
.esp-mine-list form { margin-top: .2rem; }
.esp-swatch.is-forming { background: var(--gold-soft); border-style: dashed; }
.esp-dep.is-forming path { fill: var(--gold-soft); stroke: #cbb489; stroke-dasharray: 3 2; }
.esp-dep.is-forming:hover path { fill: #f6e4c2; }
.esp-terr.is-forming { background: #fbf6ec; border-style: dashed; }
.esp-terr.is-forming span { background: var(--gold-soft); }
article.esp-group.is-forming { background: #fffdf6; box-shadow: inset 0 0 0 1px #ecdcba, 0 1px 2px rgba(15, 66, 95, .05); }
article.esp-group .esp-chip { justify-self: start; }

/* Le territoire regardé et le sien priment sur la couleur d'état. */
.esp-carte .esp-dep.is-selected path { fill: var(--teal-deep); stroke: var(--teal-deep); stroke-dasharray: none; }
.esp-carte .esp-dep.is-home path { stroke: var(--red); stroke-width: 2.4; stroke-dasharray: none; }
.esp-carte .esp-dep.is-home.is-selected path { stroke: var(--gold); }

/* ── Cahier : le sens politique, en tête de page ─────────────────────── */
/* Le laïus, sous le héros : bande crème d'un bord à l'autre, titre à gauche,
   texte à droite en corps de lecture. */
.esp-manifeste {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 20px 64px; align-items: start;
  margin: -22px calc(-1 * var(--gutter)) 0; padding: 56px var(--gutter) 60px;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.esp-manifeste-head { position: sticky; top: 100px; }
.esp .esp-manifeste h2 { margin: 0; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.esp-manifeste-head::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 22px; background: var(--red); }
.esp-manifeste-text p { max-width: 68ch; margin: 0 0 1.1rem; color: var(--ink); font-size: 18px; line-height: 1.7; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 850px) {
  .esp-manifeste { grid-template-columns: 1fr; padding: 36px var(--gutter) 40px; }
  .esp-manifeste-head { position: static; }
  .esp-manifeste-text p { font-size: 17px; }
}

/* ── Actualités : vidéo, nouveautés, revue de presse ─────────────────── */
.esp-video h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
.esp-video-frame { position: relative; max-width: 880px; aspect-ratio: 16 / 9; margin-top: .4rem; border-radius: 4px; overflow: hidden; background: var(--teal-deep); }
.esp-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.esp-video-text { margin-top: 1rem; }
.esp-une-list { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.esp-une-list li { display: grid; gap: .1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.esp-une-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.esp-une-list .esp-muted { font-size: .78rem; }
.esp-une-list a { color: var(--teal-deep); font-weight: 600; line-height: 1.35; text-decoration: none; }
.esp-une-list a:hover { text-decoration: underline; }
.esp-actu h3 { margin: .1rem 0 .6rem; color: var(--teal-deep); font-size: 1.2rem; line-height: 1.25; }
.esp-actu > .esp-muted { margin: 0; font-size: .8rem; }
.esp-presse-note { margin: -.4rem 0 .2rem !important; }
.esp-presse { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.esp-presse li { display: grid; align-content: start; gap: .35rem; padding: 1.1rem 1.2rem; }
.esp-presse-meta { margin: 0 !important; color: var(--red); font-family: var(--font-title); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.esp-presse-title { color: var(--teal-deep); font-family: var(--font-title); font-weight: 700; font-size: 1.02rem; line-height: 1.3; text-decoration: none; }
.esp-presse-title:hover { text-decoration: underline; }
.esp-presse-extrait { margin: 0 !important; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.esp-presse-une { grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); }
.esp-presse li.is-une { border-top: 4px solid var(--red); }
.esp-presse li.is-une .esp-presse-title { font-size: 1.2rem; }
.esp-reponse { margin-top: .5rem; padding: .8rem 1rem; border-left: 4px solid var(--gold); background: var(--gold-soft); }
.esp-reponse p { margin: 0 0 .5rem; font-size: .92rem; line-height: 1.5; }
.esp-reponse p:last-child { margin-bottom: 0; }
.esp-reponse .esp-reponse-titre { margin-bottom: .25rem; color: var(--teal-deep); font-family: var(--font-title); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.esp-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .4rem; font-weight: 700; font-size: .9rem; }
.esp-pager a { text-decoration: none; }

/* ── Agenda public ───────────────────────────────────────────────────── */
.esp-agenda-mois { margin: .5rem 0 0; font-size: .8rem !important; letter-spacing: .14em !important; text-transform: uppercase; color: var(--muted) !important; }
.esp-agenda-item { border-left: 4px solid var(--teal-deep); }
.esp-agenda-item h3 { margin: .15rem 0 .35rem; color: var(--teal-deep); font-size: 1.2rem; line-height: 1.25; }
.esp-rdv-date { margin: 0 !important; color: var(--red); font-family: var(--font-title); font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.esp-rdv-date::first-letter { text-transform: uppercase; }
.esp-agenda-lieu { margin: 0 0 .6rem !important; color: var(--teal); font-weight: 600; }
.esp-agenda-lieu::before { content: "📍 "; }

/* ── Catégories : newsletters, types de rendez-vous ──────────────────── */
.esp-actu-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: 0 0 .2rem !important; }
.esp-actu-meta .esp-muted { font-size: .8rem; }
.esp-badge { display: inline-block; padding: .2rem .55rem .15rem; border-radius: 3px; background: var(--teal-deep); color: #fff; font-family: var(--font-title); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.esp-actu.is-newsletter { border-top: 4px solid var(--gold); }
.esp-actu.is-newsletter .esp-badge { background: var(--gold); color: var(--ink); }
.esp-suite { margin-top: .4rem; }
.esp-suite summary { cursor: pointer; color: var(--teal-deep); font-family: var(--font-title); font-size: .85rem; font-weight: 700; }
.esp-suite[open] summary { margin-bottom: .8rem; }
.esp-filtres { display: flex; flex-wrap: wrap; gap: .4rem; }
.esp-filtres a { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--teal-deep); font-size: .82rem; font-weight: 600; text-decoration: none; }
.esp-filtres a:hover { border-color: var(--teal-deep); }
.esp-filtres a[aria-current="true"] { border-color: var(--teal-deep); background: var(--teal-deep); color: #fff; }
.esp-agenda-item .esp-rdv-date { font-size: .82rem; }
.esp-agenda-media { margin: 0 0 .3rem !important; color: var(--ink); font-weight: 700; }
.esp-agenda-item.is-tv, .esp-agenda-item.is-radio, .esp-agenda-item.is-podcast { border-left-color: var(--red); }
.esp-agenda-item.is-tv .esp-badge, .esp-agenda-item.is-radio .esp-badge, .esp-agenda-item.is-podcast .esp-badge { background: var(--red); }

/* ── Accueil : héros crème à portrait (prototype, page d'accueil) ────── */
.esp .esp-hero.is-home {
  display: grid; grid-template-columns: 1.05fr .95fr; min-height: 440px; padding: 0;
  background: var(--cream); color: var(--ink);
}
.esp-hero.is-home .esp-hero-copy { padding: 74px 56px 55px; }
.esp-hero.is-home .esp-kicker, .esp .esp-hero.is-home h1 { color: var(--navy); }
.esp .esp-hero.is-home h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.esp-hero.is-home .esp-lede { color: var(--ink); }
.esp-hero.is-home a:not(.esp-button) { color: var(--navy); }
.esp-hero.is-home .esp-meta { color: var(--muted); }
.esp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.esp-hero-visual { position: relative; min-height: 440px; overflow: hidden; background: linear-gradient(145deg, #203c49, #78919b 52%, #e9ddd0); }
.esp-hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

/* Raccourcis sous le héros : quatre liens séparés par des filets. */
.esp-strip-actions {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: -22px calc(-1 * var(--gutter)) 0; border-bottom: 1px solid var(--line);
}
.esp-strip-actions a { display: grid; gap: 2px; padding: 20px var(--gutter) 20px 24px; border-right: 1px solid var(--line); color: inherit; text-decoration: none; }
.esp-strip-actions a:first-child { padding-left: var(--gutter); }
.esp-strip-actions a:last-child { border-right: 0; }
.esp-strip-actions a:hover strong { text-decoration: underline; }
.esp-strip-actions strong { color: var(--navy); font-family: var(--font-title); font-size: 15px; letter-spacing: .01em; }
.esp-strip-actions span { color: var(--muted); font-size: 14px; }

/* Sections : un titre, un lien à droite. */
.esp-section { display: grid; gap: 0; padding-top: 20px; }
.esp-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 22px; }
.esp .esp-section-head h2 { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.1rem); line-height: 1.05; letter-spacing: -.01em; }
.esp-section-head .esp-kicker { margin-bottom: 10px; }
.esp-section-head > a { color: var(--navy); font-size: 15px; font-weight: 600; }
/* À la une : trois colonnes de texte, séparées par des filets. */
.esp-une-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); }
.esp-une-cols li { display: grid; align-content: start; gap: 6px; padding: 16px 24px 4px; border-left: 1px solid var(--line); }
.esp-une-cols li:first-child { padding-left: 0; border-left: 0; }
.esp .esp-une-source { margin: 0; color: var(--muted); font-size: 14px; }
.esp-une-cols a { color: var(--navy); font-family: var(--font-title); font-size: 1.1rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.esp-une-cols a:hover { text-decoration: underline; }

/* Accueil : l'activité en grille de cartes, les priorités sur toute la largeur. */
.esp-engage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.esp-engage .esp-priorities { grid-column: 1 / -1; }
.esp-engage .esp-mine, .esp-engage .esp-comite-card { border-left: 1px solid var(--line); }
@media (max-width: 850px) { .esp-engage { grid-template-columns: 1fr; } }

/* Bande bleue d'appel, avant le pied de page. */
.esp-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 30px;
  padding: 42px var(--gutter); background: var(--navy); color: #fff;
}
.esp .esp-band h2 { margin: 0; color: #fff; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.1; }
.esp-band p { margin: 8px 0 0; color: #d7e0e3; }
.esp-band .esp-button { flex: none; }

/* Page de don : la boîte blanche chevauche le héros, comme dans le prototype. */
.esp-hero + form.esp-don {
  position: relative; width: min(100%, 900px); margin: -45px auto 0; padding: 28px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 15px 40px rgba(18, 47, 62, .1);
}
.esp-hero + form.esp-don > .esp-card { padding: 0 0 22px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.esp-hero + form.esp-don > .esp-card:last-of-type { border-bottom: 0; }
.esp-don label.esp-amount { border-radius: 4px; text-align: center; justify-items: center; }
.esp-amount.is-selected, .esp-amount:has(input[type="radio"]:checked) { border-color: var(--red); background: var(--red); box-shadow: none; }
.esp-amount:has(input[type="radio"]:checked) .esp-amount-value, .esp-amount:has(input[type="radio"]:checked) .esp-amount-cost { color: #fff; }

@media (max-width: 1100px) {
  .esp-top { gap: 18px; padding: 0 20px; }
  .esp-nav { gap: 16px; }
  .esp .esp-nav a { font-size: 13px; }
}
/* Tablette et téléphone : le menu passe sous le logo, en une ligne qui défile. */
@media (max-width: 850px) {
  :root { --gutter: 20px; --top: 30px; }
  .esp-top { flex-wrap: wrap; gap: 0 10px; min-height: 64px; padding: 10px 16px 0; }
  .esp-brand img { width: 34px; height: 34px; }
  .esp-brand-name { font-size: .95rem; }
  .esp-top-actions { padding-bottom: 10px; }
  .esp-brand { padding-bottom: 10px; }
  .esp-nav { order: 3; flex: 0 0 calc(100% + 32px); margin: 0 -16px; padding: 0 16px; overflow-x: auto; gap: 20px; border-top: 1px solid var(--line); scrollbar-width: none; }
  .esp-nav::-webkit-scrollbar { display: none; }
  .esp .esp-nav a { padding: 11px 0 9px; }
  .esp-top-actions .esp-button { padding: 10px 13px; font-size: 11px; }
  .esp-hero { padding: 40px var(--gutter); }
  .esp .esp-hero.is-home { grid-template-columns: 1fr; }
  .esp-hero.is-home .esp-hero-copy { padding: 44px 24px; }
  .esp-hero-visual { min-height: 300px; order: -1; }
  .esp-strip-actions { grid-template-columns: 1fr 1fr; }
  .esp-strip-actions a, .esp-strip-actions a:first-child { padding: 16px var(--gutter); }
  .esp-strip-actions a:nth-child(2) { border-right: 0; }
  .esp-strip-actions a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .esp-une-cols { grid-template-columns: 1fr; }
  .esp-une-cols li, .esp-une-cols li:first-child { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .esp-band { display: block; padding: 32px var(--gutter); }
  .esp-band .esp-button { margin-top: 20px; }
  .esp-foot { flex-direction: column; }
}
@media (max-width: 560px) {
  .esp-top-invite { display: none; }
  .esp-hero-actions { flex-direction: column; }
  .esp-hero-actions .esp-button { width: 100%; }
}

/* ── Revue de presse : la une en cartes, le fil en liste éditoriale ──── */
.esp-presse-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.esp-presse-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-top: 2px solid var(--navy); border-radius: 0 0 4px 4px; background: #fff; scroll-margin-top: 90px; }
.esp-presse-card:target { box-shadow: 0 0 0 3px var(--red); }
.esp .esp-presse-mast {
  max-width: none; margin: 0 20px; padding: 18px 0 12px; border-bottom: 1px solid var(--line);
  color: var(--navy); font-family: var(--font-title); font-size: 1.25rem; font-weight: 700; line-height: 1.1;
}
.esp-presse-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.esp .esp-presse-body .esp-presse-meta { margin: 0; color: var(--muted); font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.esp-presse-title { color: var(--navy); font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; line-height: 1.3; text-decoration: none; }
.esp-presse-title:hover { text-decoration: underline; }
.esp-presse-extrait { margin: 0 !important; color: var(--ink); font-size: 16px; line-height: 1.55; }
.esp-presse-lire { margin-top: auto; padding-top: 6px; color: var(--navy); font-family: var(--font-title); font-size: 13px; font-weight: 700; text-decoration: none; }
.esp-presse-lire:hover { text-decoration: underline; }

.esp-presse-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.esp-presse-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.esp-presse-row:target { background: var(--paper); }
.esp .esp-presse-side { display: grid; gap: 2px; margin: 0; }
.esp-presse-side strong { color: var(--navy); font-family: var(--font-title); font-size: 15px; }
.esp-presse-side span { color: var(--muted); font-size: 13px; }
.esp-presse-main { display: grid; gap: 6px; max-width: 760px; }
.esp-presse-row .esp-presse-title { font-size: 1.1rem; }

.esp-reponse { margin-top: 4px; padding: 12px 16px; border-left: 3px solid var(--red); background: var(--paper); }
.esp-reponse p { margin: 0 0 .5rem; font-size: 15px; line-height: 1.5; }
.esp-reponse .esp-reponse-titre { color: var(--navy); font-size: 13px !important; letter-spacing: 0 !important; text-transform: none !important; }

/* ── Agenda : bloc date, rendez-vous, action ──────────────────────────── */
.esp-agenda-mois-bloc { display: grid; gap: 14px; padding-top: 18px; }
.esp .esp-agenda-mois { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--navy) !important; font-size: 12px !important; letter-spacing: .16em !important; }
.esp-agenda-mois::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.esp-agenda { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.esp .esp-agenda-item {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 28px; align-items: center;
  padding: 20px 24px 20px 20px; border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 5px; background: #fff; scroll-margin-top: 90px;
}
.esp-agenda-item:target { box-shadow: 0 0 0 3px var(--red); }
.esp .esp-agenda-date { display: grid; justify-items: start; gap: 0; align-self: start; margin: 0; padding-right: 20px; border-right: 1px solid var(--line); color: var(--navy); }
.esp-agenda-date span { color: var(--muted); font-size: 14px; }
.esp-agenda-date strong { font-family: var(--font-title); font-size: 36px; line-height: 1.05; }
.esp-agenda-main { display: grid; gap: 4px; min-width: 0; }
.esp .esp-agenda-item h3 { margin: 2px 0 0; color: var(--navy); font-size: 1.3rem; line-height: 1.2; }
.esp .esp-agenda-media { margin: 0 !important; color: var(--ink); font-weight: 600; }
.esp .esp-agenda-lieu { margin: 0 !important; color: var(--muted); font-weight: 500; }
.esp-agenda-texte p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.esp-agenda-go { white-space: nowrap; }
.esp-agenda-go .esp-ext { margin-left: .4em; }

@media (max-width: 850px) {
  .esp-presse-row { grid-template-columns: 1fr; gap: 6px; }
  .esp .esp-agenda-item { grid-template-columns: 64px minmax(0, 1fr); padding: 16px; gap: 8px 16px; }
  .esp-agenda-date strong { font-size: 28px; }
  .esp .esp-agenda-date { padding-right: 12px; }
  .esp-agenda-go { grid-column: 1 / -1; justify-self: start; }
}

/* Agenda : le type en texte simple, pas en étiquette. */
.esp-agenda-item .esp-badge { padding: 0; background: none !important; color: var(--muted) !important; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.esp-agenda-item .esp-badge::after { content: "\00a0·\00a0"; }
.esp .esp-agenda-item .esp-rdv-date { color: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.esp .esp-agenda-lieu::before { content: none; }
/* Bouton flottant : texte seul. */
.esp-fab span { display: none; }

/* ── Vidéos : lecteur, puis la grille des vidéos et celle des Shorts ─── */
.esp-video-frame.is-short { max-width: 340px; aspect-ratio: 9 / 16; }
.esp-player { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px 40px; align-items: start; scroll-margin-top: 90px; }
.esp-player .esp-video-frame { max-width: none; margin: 0; }
.esp-player.is-short { grid-template-columns: 340px minmax(0, 1fr); }
.esp-player-text { display: grid; gap: 8px; }
.esp .esp-player-text h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; }
.esp-player-text p { font-size: 16px; overflow-wrap: anywhere; }
.esp-player-text .esp-muted { margin: 0; font-size: 14px; }
.esp-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 24px 16px; margin: 0; padding: 0; list-style: none; }
.esp-video-grid.is-shorts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.esp-video-grid a { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.esp-video-grid strong { color: var(--navy); font-family: var(--font-title); font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.esp-video-grid a:hover strong { text-decoration: underline; }
.esp-video-grid .esp-muted { font-size: 13px; }
.esp-video-resume { color: var(--ink); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.esp-video-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--paper); }
.esp-video-grid.is-shorts .esp-video-thumb { aspect-ratio: 9 / 16; }
.esp-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.esp-video-grid li[aria-current="true"] .esp-video-thumb { outline: 3px solid var(--red); outline-offset: 2px; }
@media (max-width: 850px) {
  .esp-player, .esp-player.is-short { grid-template-columns: 1fr; }
  .esp-player.is-short .esp-video-frame { justify-self: center; width: min(100%, 340px); }
}

/* ── Menu : le groupe « Actualités » et son sous-menu ─────────────────── */
.esp-nav-group { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.esp .esp-nav-group.is-current > a { color: var(--navy); font-weight: 700; border-bottom-color: var(--red); }
.esp-nav-toggle {
  display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px;
  background: none; color: #33434b; font-size: 12px; cursor: pointer;
}
.esp-nav-toggle:hover, .esp-nav-group.is-open .esp-nav-toggle { background: var(--paper); color: var(--navy); }
.esp-nav-group.is-open .esp-nav-toggle span { display: inline-block; transform: rotate(180deg); }
.esp-nav-panel[hidden] { display: none; }
.esp-nav-panel {
  position: absolute; left: -12px; top: calc(100% + 14px); z-index: 11; display: grid; min-width: 15rem; padding: 6px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 18px 40px -12px rgba(18, 47, 62, .3);
}
.esp .esp-nav-panel a { display: block; padding: 9px 10px; border: 0; border-radius: 4px; color: var(--ink); font-weight: 500; }
.esp .esp-nav-panel a:hover { background: var(--paper); text-decoration: none; }
.esp .esp-nav-panel a[aria-current="page"] { background: var(--paper); color: var(--navy); font-weight: 700; }
.esp .esp-nav-panel a:first-child { margin-bottom: 4px; padding-bottom: 11px; border-bottom: 1px solid var(--line); border-radius: 4px 4px 0 0; }

/* Page d'ensemble : chaque section finit par « Voir plus ». */
.esp-hub { gap: 0; }
.esp-voir-plus { margin: 18px 0 0 !important; }
.esp-hub + .esp-hub { margin-top: 18px; padding-top: 30px; border-top: 1px solid var(--line); }
.esp-video-grid.is-hub { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Téléphone : le menu défile, un sous-menu y serait coupé ; « Actualités »
   mène à la page d'ensemble, qui ouvre chaque rubrique. */
@media (max-width: 850px) {
  .esp-nav-toggle, .esp-nav-panel { display: none !important; }
  .esp-video-grid.is-hub { grid-template-columns: 1fr 1fr; }
}

/* Carte vidéo de l'accueil : le lecteur à gauche, le texte à droite. */
.esp-player.esp-video { padding: 24px; border: 1px solid var(--line); border-radius: 5px; }
.esp-player-text .esp-kicker { margin: 0 0 4px; }
.esp-player-text p { max-width: 60ch; }

/* Don : le rythme (une fois / chaque mois), deux choix comme les montants. */
.esp-rythmes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.esp-don label.esp-rythme-choix {
  position: relative; display: grid; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 4px;
  background: #fff; cursor: pointer; font-size: 1rem; font-weight: 400;
}
.esp-rythme-choix input { position: absolute; opacity: 0; pointer-events: none; }
.esp-rythme-choix strong { color: var(--navy); font-family: var(--font-title); font-size: 1.05rem; }
.esp-rythme-choix span { color: var(--muted); font-size: .88rem; }
.esp-rythme-choix:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--paper); }
.esp-rythme-choix:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.esp-don > .esp-alert { margin: 0; }
@media (max-width: 520px) { .esp-rythme-choix span { font-size: .8rem; } }

/* Don : ce qui a déjà été donné, et les montants qui dépassent le reste. */
.esp .esp-deja { margin: 0 0 12px; padding: 12px 14px; border-left: 3px solid var(--navy); background: var(--paper); max-width: none; font-size: .95rem; }
.esp-don label.esp-amount.is-disabled { opacity: .4; cursor: not-allowed; }
.esp-don label.esp-amount.is-disabled:hover { transform: none; border-color: var(--line); }

/* Page de don : l'encadré « Ce que dit la loi » aligné sur la boîte du
   formulaire, et le filet de la mention sur toute la largeur. */
.esp-main > .esp-law { width: min(100%, 900px); margin: 0 auto; padding: 20px 28px; }
.esp .esp-don-mention { max-width: none; }
.esp-don .esp-hint { margin: -6px 0 0 !important; }

/* Cartes acceptées : logos Visa et Mastercard, pastille CB. */
.esp-cards { display: inline-flex; align-items: center; gap: 6px; }
.esp-cards img { display: block; width: 38px; height: 24px; border-radius: 3px; }
.esp-cards .esp-card-cb { display: grid; place-items: center; width: 38px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--navy); font-family: var(--font-title); font-size: 11px; font-weight: 700; }

/* ── Passe de mise en page ─────────────────────────────────────────────── */
/* Retour vers la rubrique parente, en tête du héros. */
.esp .esp-hero .esp-back { margin: -28px 0 22px; font-size: 14px; font-weight: 600; }
.esp .esp-hero .esp-back a { color: #c9d5d9; text-decoration: none; }
.esp .esp-hero .esp-back a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 850px) { .esp .esp-hero .esp-back { margin-top: -14px; } }

/* Comités : le territoire choisi reste lisible, même « en constitution ». */
.esp-terr.is-selected, .esp-terr.is-selected.is-forming { background: var(--navy); border-color: var(--navy); border-style: solid; color: #fff; }
/* Cartes de comité au style des autres cartes. */
article.esp-group { border: 1px solid var(--line); border-radius: 5px; box-shadow: none; }
article.esp-group.is-forming { background: #fff; border-style: dashed; box-shadow: none; }

/* Agenda : type et date sur une ligne qui se replie normalement. */
.esp .esp-agenda-item .esp-actu-meta { display: block; }

/* Revue de presse : la date reste sous le nom du journal. */
.esp .esp-presse-side { align-content: start; align-self: start; }

/* Accueil : les cartes d'activité se répartissent sur toute la largeur. */
.esp-engage { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Don : blocs de texte sur toute la largeur de la boîte, montants sur une ligne. */
.esp .esp-don .esp-don-cost, .esp .esp-don .esp-don-identity, .esp .esp-don .esp-hint, .esp .esp-don .esp-deja { max-width: none; }
.esp-amounts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.esp-amount.is-other .esp-amount-value { font-size: .95rem; }
.esp .esp-don-mention { margin-top: 20px; padding-top: 14px; }
@media (max-width: 850px) {
  .esp-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .esp-hero + form.esp-don { padding: 20px 16px; }
  .esp-player.esp-video { padding: 16px; }
  .esp-list > .esp-card-head { flex-wrap: wrap; }
}
@media (max-width: 520px) { .esp-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Réseaux : l'avertissement, tant qu'il en reste à suivre (non bloquant). */
.esp-relais { display: grid; gap: 6px; padding: 16px 18px; border-left: 4px solid var(--red); background: var(--paper); }
.esp-relais[hidden] { display: none; }
.esp .esp-relais p { margin: 0; max-width: none; }
.esp .esp-relais-titre { color: var(--navy); font-family: var(--font-title); font-size: 1.05rem; font-weight: 700; }

/* Don : « Plus tard » et « Donner » côte à côte, même gabarit. */
.esp-actionbar .esp-actions { flex-wrap: nowrap; gap: 10px; }
@media (max-width: 560px) { .esp-don .esp-actionbar .esp-actions .esp-button { flex: 1; } }

/* Contact presse, en tête des pages presse. */
.esp-contact-presse { display: grid; gap: 4px; padding: 16px 18px; border-left: 4px solid var(--navy); background: var(--paper); }
.esp .esp-contact-presse p { margin: 0; max-width: none; }
.esp-contact-presse strong { margin-right: 8px; color: var(--navy); font-family: var(--font-title); }
.esp-contact-presse a { font-weight: 600; }
.esp-communique h3 { margin: 2px 0 10px; color: var(--navy); font-size: 1.25rem; line-height: 1.25; }

/* ── Vignettes presse : image de l'article, logo du journal en pastille ── */
.esp-presse-vignette { display: block; text-decoration: none; }
.esp-presse-visuel {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 4px; background: var(--navy); isolation: isolate;
}
.esp-presse-fond { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
/* Avec l'image de l'article : elle s'affiche nette, le logo du journal en pastille en haut à droite. */
.esp-presse-visuel.has-carte { place-items: start end; }
.esp-presse-visuel.has-carte .esp-presse-logo { width: 44px; max-width: none; margin: 10px; padding: 6px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.esp-presse-visuel.has-carte .esp-presse-nom { margin: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(18, 47, 62, .85); font-size: .8rem; text-shadow: none; }
.esp-presse-logo { display: grid; place-items: center; width: 34%; max-width: 96px; aspect-ratio: 1; padding: 8%; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.esp-presse-visuel:not(.has-carte) .esp-presse-logo { box-shadow: none; }
.esp-presse-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.esp-presse-nom { padding: 0 12px; color: #fff; font-family: var(--font-title); font-size: 1.1rem; font-weight: 700; line-height: 1.15; text-align: center; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.esp-presse-vignette:hover .esp-presse-fond { transform: scale(1.03); }
.esp-presse-card > .esp-presse-vignette .esp-presse-visuel { border-radius: 0; }
.esp-presse-card { grid-template-rows: auto auto 1fr; }
.esp-presse-row { grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "vignette main" "side main"; }
.esp-presse-row > .esp-presse-vignette { grid-area: vignette; }
.esp-presse-row > .esp-presse-side { grid-area: side; }
.esp-presse-row > .esp-presse-main { grid-area: main; align-content: start; align-self: start; }
.esp-presse-row > .esp-presse-side { align-self: start; }
@media (max-width: 850px) {
  .esp-presse-row { grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: "vignette side" "main main"; gap: 10px 14px; }
}

/* ── Communiqués : miniature de la première page ─────────────────────── */
.esp-cp-thumb {
  display: flex; flex-direction: column; gap: 5px; aspect-ratio: 210 / 297; overflow: hidden; padding: 0 0 8px;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; box-shadow: 0 2px 10px rgba(18, 47, 62, .12);
  color: var(--ink); font-size: 6.5px; line-height: 1.45; text-align: left;
}
.esp-cp-band { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--navy); color: #fff; font-family: var(--font-title); font-size: 7px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid var(--red); }
.esp-cp-band img { width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.esp-cp-date { padding: 4px 10px 0; color: var(--muted); }
.esp-cp-titre { padding: 0 10px; color: var(--navy); font-family: var(--font-title); font-size: 9.5px; font-weight: 700; line-height: 1.2; }
.esp-cp-corps { padding: 0 10px; overflow: hidden; text-align: justify; hyphens: auto; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.esp-cp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; margin: 0; padding: 0; list-style: none; }
.esp-cp-grid a { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.esp-cp-grid a .esp-cp-thumb { margin-bottom: 6px; transition: transform .15s, box-shadow .15s; }
.esp-cp-grid a:hover .esp-cp-thumb { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(18, 47, 62, .2); }
.esp-cp-grid strong { color: var(--navy); font-family: var(--font-title); font-size: 15px; line-height: 1.3; }
.esp-cp-grid a:hover strong { text-decoration: underline; }
.esp-cp-grid .esp-une-source { margin: 0; color: var(--muted); font-size: 13px; }
.esp-communique { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: start; }
.esp-cp-side { display: block; }
.esp-communique-main { min-width: 0; }
@media (max-width: 850px) {
  .esp-cp-grid { grid-template-columns: 1fr 1fr; }
  .esp-communique { grid-template-columns: 1fr; }
  .esp-cp-side { width: 140px; }
}

/* ── Téléphone et tablette : menu en hamburger ───────────────────────── */
.esp-burger { display: none; }
/* Menu ☰ jusqu'à 960 px : en dessous, les entrées ne tiennent plus sur une ligne. */
@media (max-width: 960px) {
  .esp-top { flex-wrap: wrap; padding: 10px 16px; gap: 0 10px; }
  .esp-brand, .esp-top-actions { padding-bottom: 0; }
  .esp-burger {
    display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; margin-right: 2px;
    border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer;
  }
  .esp-burger span, .esp-burger span::before, .esp-burger span::after {
    content: ""; display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--navy); position: relative; transition: transform .15s;
  }
  .esp-burger span::before { position: absolute; top: -6px; }
  .esp-burger span::after { position: absolute; top: 6px; }
  .esp-top.is-menu-open .esp-burger span { background: transparent; }
  .esp-top.is-menu-open .esp-burger span::before { top: 0; transform: rotate(45deg); }
  .esp-top.is-menu-open .esp-burger span::after { top: 0; transform: rotate(-45deg); }
  /* Le menu, replié par défaut, se déplie en liste sous l'en-tête. */
  .esp-nav { display: none; order: 3; flex: 0 0 calc(100% + 32px); margin: 10px -16px -10px; padding: 6px 16px 12px; overflow: visible; border-top: 1px solid var(--line); background: #fff; flex-direction: column; align-items: stretch; gap: 0; }
  .esp-top.is-menu-open .esp-nav { display: flex; }
  .esp .esp-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .esp .esp-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--red); }
  .esp-nav-group { display: block; }
  .esp .esp-nav-group > a { font-weight: 700; color: var(--navy); }
  .esp-nav-panel, .esp-nav-panel[hidden] { display: grid !important; position: static; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; }
  .esp .esp-nav-panel a:first-child { display: none; }
  .esp .esp-nav-panel a { padding: 10px 0; font-size: 15px; }
}

/* ── Priorités : choisir ses thèmes, dans l'ordre ───────────────────── */
.esp-picker { display: flex; flex-direction: column; gap: 1.1rem; }
.esp-pick-bar {
  position: sticky; top: 0; z-index: 3;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem;
  padding: .85rem 1.1rem; background: var(--teal-deep); color: var(--white);
  box-shadow: 0 12px 26px -18px rgba(15, 66, 95, .85);
}
.esp-pick-bar-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-width: 0; flex: 1; }
.esp-pick-bar strong { font-family: var(--font-title); font-size: 1.15rem; font-weight: 800; white-space: nowrap; }
.esp-pick-chosen { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.esp-pick-chosen:empty::before { content: "Touchez les sujets qui comptent le plus, dans l’ordre."; color: rgba(255, 253, 248, .75); font-size: .88rem; }
.esp-pick-chosen li {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .35rem .2rem .25rem;
  background: rgba(255, 255, 255, .1); border-radius: 999px; font-size: .84rem; font-weight: 700;
}
.esp-pick-chosen li > span {
  display: inline-flex; align-items: center; justify-content: center; width: 1.35rem; height: 1.35rem;
  border-radius: 50%; background: var(--gold); color: var(--navy); font-size: .74rem; font-weight: 900;
}
.esp-pick-remove { border: 0; background: transparent; color: rgba(255, 255, 255, .75); font-size: 1rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.esp-pick-remove:hover { color: var(--white); }
.esp-pick-bar .esp-button { white-space: nowrap; }
.esp-pick-bar .esp-button:disabled, .esp-picker .esp-button:disabled { opacity: .45; cursor: not-allowed; }

.esp-pick-search input {
  width: 100%; box-sizing: border-box; padding: .7rem 1rem; border: 1px solid var(--line); background: var(--white);
  font: inherit; font-size: .95rem; color: var(--ink);
}
.esp-pick-domain h2 { margin: 0 0 .55rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.esp-pick-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.esp-pick {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .95rem .55rem .65rem; border: 1px solid #cfd6d9; border-radius: 999px; background: var(--white);
  color: var(--teal-deep); font-weight: 700; font-size: .92rem; cursor: pointer; user-select: none;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.esp-pick:hover { border-color: var(--teal-deep); }
.esp-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.esp-pick-num {
  display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; flex: none;
  border-radius: 50%; border: 1.5px solid #cfd6d9; font-size: .76rem; font-weight: 900; color: var(--navy);
}
.esp-pick.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.esp-pick.is-on .esp-pick-num { background: var(--gold); border-color: var(--gold); }
.esp-pick.is-locked { opacity: .45; cursor: not-allowed; }
.esp-pick.is-locked input { cursor: not-allowed; }
.esp-pick:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.esp-pick[hidden], .esp-pick-domain[hidden] { display: none; }
/* Ce qui compte moins : pas de rang, une coche discrète. */
.esp-picker.is-moins .esp-pick.is-on { background: var(--paper); border-color: var(--muted); color: var(--ink); text-decoration: line-through; text-decoration-color: var(--muted); }
.esp-picker.is-moins .esp-pick.is-on .esp-pick-num { background: var(--muted); border-color: var(--muted); }
.esp-picker.is-moins .esp-pick-num { font-size: 0; }
.esp-picker.is-moins .esp-pick-chosen li > span { display: none; }
.esp-picker.is-moins .esp-pick-chosen:empty::before { content: "Touchez les sujets qui vous paraissent secondaires, ou passez cette étape."; }
@media (max-width: 640px) {
  .esp-pick { font-size: .88rem; padding: .5rem .8rem .5rem .55rem; }
  .esp-pick-bar { flex-wrap: nowrap; padding: .6rem .7rem; gap: .6rem; }
  .esp-pick-bar-head { flex-wrap: nowrap; gap: .6rem; }
  .esp-pick-bar strong { font-size: 1rem; }
  .esp-pick-chosen { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .esp-pick-chosen::-webkit-scrollbar { display: none; }
  .esp-pick-chosen li { white-space: nowrap; }
  .esp-pick-chosen:empty::before { content: "Touchez vos sujets, dans l’ordre."; white-space: nowrap; }
  .esp-pick-bar .esp-button { padding: .55rem .8rem; font-size: .85rem; }
}

/* ── Biographie ─────────────────────────────────────────────────────── */
.esp-bio-hero .esp-hero-copy { display: flex; flex-direction: column; justify-content: center; }
.esp-bio-hero .esp-hero-copy h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 22px; background: var(--red); }
.esp-bio-hero .esp-hero-visual img { object-position: 50% 22%; }
/* Une vraie colonne de lecture : large, aérée, et des respirations. */
.esp-bio { max-width: 720px; margin: 0 auto; padding: 64px 0 80px; }
.esp-bio p { margin: 0 0 1.35rem; color: var(--ink); font-size: 19px; line-height: 1.85; }
/* Tous les paragraphes sur la même largeur (le 66ch général variait avec la
   taille du texte), justifiés avec une césure retenue : mots de 7 lettres et
   plus, coupés après 3 lettres au moins. */
.esp .esp-bio p { max-width: none; }
.esp-bio p:not(.is-fort):not(:last-child) { text-align: justify; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3; text-wrap: pretty; }
.esp-bio p:first-child { font-size: 20px; line-height: 1.8; }
.esp-bio p:first-child::first-letter { float: left; margin: .06em .14em 0 0; font-family: var(--font-title); font-weight: 800; font-size: 4.1em; line-height: .8; color: var(--red); }
/* Les phrases courtes du texte : un bandeau qui déborde de la colonne. */
.esp-bio p.is-fort {
  position: relative; margin: 2.6rem -96px; padding: 30px 48px 30px 56px;
  background: var(--navy); color: var(--white);
  font-family: var(--font-title); font-weight: 800; font-size: 26px; line-height: 1.32; letter-spacing: -.01em;
}
.esp-bio p.is-fort::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--gold); }
.esp-bio p.is-fort + p.is-fort { margin-top: -2.6rem; padding-top: 0; }
/* Un nouveau temps du récit : un filet et un peu d'air. */
.esp-bio p.is-temps { margin-top: 3.4rem; }
.esp-bio p.is-temps::before { content: ""; display: block; width: 48px; height: 3px; margin-bottom: 1.6rem; background: var(--red); }
.esp-bio p:last-child { margin-top: 2.6rem; padding: 2rem 0 0; border-top: 1px solid var(--line); font-family: var(--font-title); font-weight: 800; color: var(--navy); font-size: 23px; line-height: 1.5; }
@media (max-width: 1000px) {
  .esp-bio p.is-fort { margin-inline: -24px; padding: 24px 28px 24px 34px; font-size: 22px; }
}
@media (max-width: 820px) {
  .esp-bio { padding: 36px 0 48px; }
  .esp-bio p { font-size: 17.5px; }
  .esp-bio p:first-child { font-size: 19px; }
  .esp-bio p.is-fort { margin-inline: -16px; padding: 20px 20px 20px 26px; font-size: 20px; }
  .esp-bio p:last-child { font-size: 19px; }
}

/* ── Comités : la carte à gauche, « Mes comités » à droite ─────────────── */
.esp-comites-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.esp-comites-main { display: grid; gap: 1.2rem; min-width: 0; }
.esp-comites-side { position: sticky; top: 96px; }
.esp-comites-side .esp-mine { padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-left: 1px solid var(--line); border-radius: 0 0 4px 4px; background: #fff; }
.esp-mine-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.esp .esp-comites-side h2 { margin: 0; color: var(--navy); font-size: 1.25rem; }
.esp-mine-compte { color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.esp-comites-side .esp-mine-list { gap: 10px; margin: 0; }
.esp-comites-side .esp-mine-list li.esp-mine-item { display: grid; justify-items: start; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: 4px; }
.esp-comites-side .esp-mine-list li.esp-mine-item.is-forming { border-left-color: var(--gold); }
.esp-comites-side .esp-mine-list li.esp-mine-item.is-free { border: 1px dashed var(--line); background: var(--paper); }
.esp-mine-name { color: var(--navy); font-family: var(--font-title); font-weight: 700; line-height: 1.25; text-decoration: none; }
.esp-mine-name:hover { text-decoration: underline; }
.esp-mine-item.is-free strong { color: var(--muted); font-family: var(--font-title); font-size: 15px; }
.esp-mine-rdv { color: var(--ink); font-size: .86rem; }
.esp-comites-side .esp-chip { margin: 0; }
.esp-mine-note { margin: 12px 0 0 !important; font-size: .86rem; }
@media (max-width: 960px) {
  .esp-comites-layout { grid-template-columns: 1fr; }
  .esp-comites-side { position: static; order: -1; }
}

/* Les comités d'un territoire, en fenêtre (styles propres à cette fenêtre :
   la fenêtre de don garde les siens). */
.esp-modal.is-territoire { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 64px); background: var(--paper, #f7f4ee); }
.esp-modal.is-territoire .esp-modal-inner { position: relative; padding: 28px 28px 24px; }
.esp-modal.is-territoire .esp-modal-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; background: transparent; color: var(--navy); font-size: 1.6rem; }
.esp-modal.is-territoire .esp-modal-close:hover { background: rgba(18, 47, 62, .08); }
.esp-modal.is-territoire .esp-card-head { padding-right: 40px; }
@media (max-width: 600px) { .esp-modal.is-territoire .esp-modal-inner { padding: 22px 16px 18px; } }

/* Fenêtre de confirmation (après l'envoi d'une contribution…). */
.esp-modal.is-avis { width: min(100% - 2rem, 32rem); text-align: left; }
.esp-avis-corps { display: grid; gap: 14px; padding: 30px 30px 26px; }
.esp-avis-corps::before { content: "✓"; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e2efe8; color: #245c40; font-size: 1.5rem; font-weight: 800; }
.esp .esp-avis-corps h2 { margin: 0; color: var(--navy); font-size: 1.5rem; }
.esp .esp-avis-corps p { margin: 0; max-width: none; color: var(--ink); font-size: 16.5px; line-height: 1.6; }
.esp-avis-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }

/* Vos courriels : une case par envoi. */
.esp-courriels { display: grid; gap: 10px; }
.esp-courriel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.esp-courriel:has(input:checked) { border-color: var(--navy); background: var(--paper); }
.esp-courriel input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); }
.esp-courriel > span { display: grid; gap: 2px; }
.esp-courriel strong { color: var(--navy); }
.esp-courriel .esp-muted { font-size: .88rem; }

/* Comités « en lancement » : un état normal, pas un manque. Aplat doux et
   plein (plus de pointillés), pastille discrète en casse normale. */
.esp-chip.is-pending { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #fff4de; color: #8a5a0b; font-size: .74rem; letter-spacing: 0; text-transform: none; }
.esp-chip.is-pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.esp-swatch.is-forming { background: #fde7bd; border-style: solid; border-color: #d9a441; }
.esp-carte .esp-dep.is-forming path { fill: #fde7bd; stroke: #e2b866; stroke-dasharray: none; stroke-width: 1; }
.esp-carte .esp-dep.is-forming:hover path { fill: #f8cf7f; }
.esp-carte .esp-dep.has-groups path { fill: var(--gold); }
.esp-terr.is-forming { background: #fff4de; border-style: solid; border-color: #f0d49c; }
article.esp-group.is-forming { border: 1px solid var(--line); border-top: 3px solid var(--gold); background: #fff; }
article.esp-group .esp-group-count { color: var(--ink); font-weight: 600; }

/* ── Ma vision pour la France : une lettre, au rythme du discours ─────── */
.esp-vision-hero .esp-lede { max-width: 560px !important; margin-top: 14px; color: var(--ink); font-size: 18px; line-height: 1.6; }
.esp-lettre { width: 100%; max-width: 720px; margin: 0 auto; padding: 64px 0 40px; }
.esp .esp-lettre-salut { margin: 0 0 2rem; color: var(--navy); font-family: var(--font-title); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; }
.esp-lettre-bloc { margin: 0 0 2.4rem; }
.esp-lettre-bloc + .esp-lettre-bloc::before { content: ""; display: block; width: 40px; height: 3px; margin: 0 0 2.4rem; background: var(--red); opacity: .85; }
.esp .esp-lettre p { max-width: none; margin: 0 0 .9rem; color: var(--ink); font-size: 19px; line-height: 1.75; text-wrap: pretty; }
.esp .esp-lettre p.is-fort { margin: 1.2rem 0; color: var(--navy); font-family: var(--font-title); font-size: 1.35rem; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.esp .esp-lettre .esp-lettre-bloc:first-of-type p:first-child { color: var(--navy); font-family: var(--font-title); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; line-height: 1.3; }
.esp-lettre-fin {
  display: grid; justify-items: center; gap: 14px; margin: 24px calc(-1 * var(--gutter)) 0; padding: 72px var(--gutter);
  background: linear-gradient(135deg, #122f3e, #294c5d); text-align: center;
}
.esp .esp-lettre-fin p { max-width: 760px; margin: 0; color: #e0e7e9; }
.esp .esp-lettre-fin .is-grand { color: #fff; font-family: var(--font-title); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.esp .esp-lettre-fin .is-vive { color: var(--gold); font-family: var(--font-title); font-size: 1rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.esp .esp-lettre-fin .is-suite { font-size: 19px; line-height: 1.6; text-wrap: balance; }

/* ── Mes principes : douze principes numérotés ───────────────────────── */
.esp-principes-hero .esp-lede { max-width: 820px !important; }
.esp-principes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: none; }
.esp-principe { position: relative; display: grid; align-content: start; gap: 10px; padding: 30px 30px 26px; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 0 0 6px 6px; background: #fff; scroll-margin-top: 90px; }
.esp-principe:nth-child(4n+1), .esp-principe:nth-child(4n) { background: var(--cream); border-top-color: var(--red); }
.esp-principe-num { color: var(--red); font-family: var(--font-title); font-size: 3rem; font-weight: 800; line-height: .9; letter-spacing: -.03em; }
.esp .esp-principe h2 { margin: 0 0 4px; color: var(--navy); font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.esp .esp-principe p { max-width: none; margin: 0; color: var(--ink); font-size: 16.5px; line-height: 1.7; text-wrap: pretty; }

/* Liens vers les autres pages de la rubrique « Natacha Polony ». */
.esp-ch-suite { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 40px; }
.esp-ch-suite a { display: grid; gap: 6px; padding: 24px 26px; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 4px; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.esp-ch-suite a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 47, 62, .1); }
.esp-ch-suite strong { color: var(--navy); font-family: var(--font-title); font-size: 1.25rem; }
.esp-ch-suite a > span:last-child { color: var(--muted); font-size: 15px; }
.esp-ch-suite .esp-kicker { margin: 0; }

@media (max-width: 850px) {
  .esp-principes { grid-template-columns: 1fr; }
  .esp-principe { padding: 24px 20px 20px; }
  .esp-lettre { padding: 40px 0 24px; }
  .esp .esp-lettre p { font-size: 17.5px; }
  .esp-lettre-fin { padding: 52px var(--gutter); }
}

/* Écrans moyens (au-dessus du menu ☰) : l'en-tête se resserre pour que le
   menu, plus long avec « Natacha Polony », ne passe pas sous les boutons. */
@media (min-width: 961px) and (max-width: 1100px) {
  .esp-top { gap: 18px; padding: 0 20px; }
  .esp-nav { gap: 14px; }
  .esp .esp-nav a { font-size: 13px; }
  .esp-top-actions .esp-button { padding: 10px 14px; }
}

/* ── Mon espace : contributions et courriels à gauche, le reste à droite ── */
.esp-moi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 24px; align-items: start; }
.esp-moi-main, .esp-moi-side { display: grid; gap: 20px; min-width: 0; }
.esp-moi .esp-entry-body p { max-width: none; }
.esp-moi-side .esp-card { margin: 0; }
.esp-moi-side .esp-facts li { flex-wrap: wrap; gap: 2px 12px; }
@media (max-width: 960px) { .esp-moi { grid-template-columns: 1fr; } }

/* ── Cahier : problèmes, solutions, recherche, carte des doléances ─────────── */
.esp-num { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.esp-entry-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.esp-solutions-link { font-weight: 700; font-size: .9rem; color: var(--teal-deep); text-decoration: none; }
.esp-solutions-link:hover { text-decoration: underline; }
.esp-entry.is-best { box-shadow: inset 0 0 0 2px var(--gold); }
.esp-solutions { margin-top: 1.5rem; }
.esp-hero .esp-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.esp-avec-solution { border: 1px dashed var(--line); border-radius: 5px; padding: .6rem .9rem; }
.esp-avec-solution summary { cursor: pointer; font-weight: 700; color: var(--teal-deep); }
.esp-avec-solution[open] summary { margin-bottom: .6rem; }
.esp-ecrire-solution { margin-top: .9rem; }

.esp-search { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: .8rem; align-items: end; }
.esp-search label { display: grid; gap: .3rem; font-weight: 700; font-size: .85rem; }
.esp-search input, .esp-search select { width: 100%; min-width: 0; border: 1px solid #c9ccc9; border-radius: 4px; padding: .75rem .85rem; background: #fff; font-weight: 400; font-size: 1rem; }
@media (max-width: 720px) { .esp-search { grid-template-columns: 1fr; } }

.esp-dol-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.esp-dol-item { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .85rem 1rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 5px; }
.esp-dol-lien { flex: 1 1 22rem; display: grid; gap: .25rem; color: var(--ink); text-decoration: none; }
.esp-dol-lien:hover .esp-dol-texte { text-decoration: underline; }
.esp-dol-item em { font-style: normal; font-size: .8rem; color: var(--muted); }
.esp-dol-item form { margin: 0; }
.esp-dol-item > .esp-button, .esp-dol-item form .esp-button { flex: none; white-space: nowrap; }

.esp-carte-doleances h2 { margin: 0; }
.esp-carte.is-doleances .esp-dep.lvl-1 path, .esp-swatch.lvl-1 { fill: #fbe3e1; background: #fbe3e1; }
.esp-carte.is-doleances .esp-dep.lvl-2 path { fill: #f5b5af; }
.esp-carte.is-doleances .esp-dep.lvl-3 path, .esp-swatch.lvl-3 { fill: #ea7369; background: #ea7369; }
.esp-carte.is-doleances .esp-dep.lvl-4 path, .esp-swatch.lvl-4 { fill: #c0221b; background: #c0221b; }
.esp-carte.is-doleances .esp-dep[class*="lvl-"] path { stroke: #d9a7a2; }
.esp-carte.is-doleances .esp-dep:hover path { fill: var(--teal); stroke: var(--teal-deep); }
.esp-carte.is-doleances .esp-dep.is-selected path { fill: var(--teal-deep); }
.esp-terr.lvl-1, .esp-terr.lvl-2 { background: #fdf0ef; border-color: #f0c4c0; }
.esp-terr.lvl-3, .esp-terr.lvl-4 { background: #fbe3e1; border-color: #ea7369; }
.esp-modal.is-territoire .esp-dol-list { max-height: 60vh; overflow: auto; }
.esp-carte-doleances { display: grid; gap: 1rem; }
.esp-carte-doleances-head p { margin: .3rem 0 0; }
.esp-doleances-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(14rem, 1fr); gap: 1.5rem; align-items: start; }
.esp-doleances-top h3 { margin: 0 0 .7rem; font-size: 1rem; }
.esp-doleances-top ol { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.esp-doleances-top .esp-terr { display: flex; justify-content: space-between; width: 100%; }
@media (max-width: 860px) { .esp-doleances-layout { grid-template-columns: 1fr; } }
.esp .esp-modal.is-erreur .esp-avis-corps h2 { color: var(--red); }
.esp-modal.is-erreur .esp-avis-corps { border-top: 4px solid var(--red); }
.esp-modal.is-erreur .esp-avis-corps::before { content: "!"; background: #fde4e4; color: var(--red); }
.esp-alert.is-repris { display: none; }

/* ── Merci après un don ─────────────────────────────────────────────────── */
.esp-merci { max-width: 860px; margin: 0 auto; display: grid; gap: 1.4rem; }
.esp-merci-hero { background: var(--navy); color: #fff; border-radius: 6px; padding: 2.2rem 2.2rem 2rem; }
.esp .esp-merci-hero h1 { color: #fff; margin: .2rem 0 .8rem; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.esp .esp-merci-hero .esp-kicker { color: var(--gold); }
.esp .esp-merci-lede { color: rgba(255, 255, 255, .92); font-size: 1.08rem; line-height: 1.6; max-width: 62ch; margin: 0; }
.esp-merci-impact, .esp-merci-tableau, .esp-merci-recu, .esp-merci-suite { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem 1.6rem; }
.esp .esp-merci h2 { margin: 0 0 1rem; font-size: 1.2rem; }
.esp-merci-chiffres { display: flex; flex-wrap: wrap; align-items: stretch; gap: .8rem; }
.esp-merci-chiffre { flex: 1 1 11rem; display: grid; gap: .2rem; padding: 1rem 1.1rem; border-radius: 6px; background: var(--gold-soft); border: 1px solid #ecdcba; }
.esp-merci-chiffre strong { font-size: 2.3rem; line-height: 1; color: var(--red); font-family: Montserrat, system-ui, sans-serif; font-weight: 800; }
.esp-merci-chiffre span { font-weight: 700; color: var(--ink); }
.esp-merci-chiffre em { font-style: normal; font-size: .82rem; color: var(--muted); }
.esp-merci-ou { align-self: center; font-weight: 800; color: var(--muted); text-transform: uppercase; font-size: .8rem; }
.esp-table-scroll { overflow-x: auto; }
.esp-merci-tableau table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.esp-merci-tableau th, .esp-merci-tableau td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.esp-merci-tableau tbody th { text-align: left; font-weight: 600; white-space: normal; }
.esp-merci-tableau thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.esp-merci-tableau .is-vous { background: #fdeceb; color: var(--red); font-weight: 800; }
.esp-merci-tableau p { margin: .8rem 0 0; font-size: .82rem; }
.esp-merci-recu p { margin: 0; }
.esp-merci-suite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; background: var(--paper); }
.esp-merci-suite > div:first-child { display: grid; gap: .2rem; max-width: 46ch; }
.esp-merci-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 600px) { .esp-merci-hero { padding: 1.5rem 1.2rem; } .esp-merci-impact, .esp-merci-tableau, .esp-merci-recu, .esp-merci-suite { padding: 1.1rem; } }

/* ── Ma vision pour la France : sections numérotées, fonds alternés ────── */
.esp-vision { margin: 0 calc(-1 * var(--gutter)); }
.esp .esp-vision-salut { max-width: 1000px; margin: 0 auto; padding: 56px var(--gutter) 8px; color: var(--navy); font-family: var(--font-title); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; box-sizing: content-box; }
.esp-vision-section { padding: 48px var(--gutter); }
.esp-vision-section:nth-of-type(even) { background: var(--cream); }
.esp-vision-inner { display: grid; grid-template-columns: 120px minmax(0, 720px); gap: 32px; max-width: 1000px; margin: 0 auto; }
.esp-vision-num { position: sticky; top: 96px; align-self: start; color: var(--red); font-family: var(--font-title); font-size: 3.4rem; font-weight: 800; line-height: .9; letter-spacing: -.04em; opacity: .9; }
.esp .esp-vision-texte p { max-width: none; margin: 0 0 .55rem; color: var(--ink); font-size: 18.5px; line-height: 1.7; text-wrap: pretty; }
.esp .esp-vision-texte p.esp-vision-ouverture { margin: 0 0 1.2rem; color: var(--navy); font-family: var(--font-title); font-size: clamp(1.45rem, 2.3vw, 1.85rem); font-weight: 800; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.esp .esp-vision-texte p.is-fort { margin: 1rem 0; color: var(--navy); font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; line-height: 1.35; letter-spacing: -.01em; }
.esp .esp-vision-texte p.is-refrain { margin: 0 0 .35rem; padding: .35rem 0 .35rem 1rem; border-left: 3px solid var(--red); }
.esp .esp-vision-texte p.is-refrain + p:not(.is-refrain) { margin-top: 1rem; }
.esp .esp-vision-texte p.is-refrain.is-fort { font-size: 1.05rem; }
.esp-vision + .esp-lettre-fin { margin-top: 0; }
@media (max-width: 850px) {
  .esp-vision-section { padding: 36px var(--gutter); }
  .esp-vision-inner { grid-template-columns: 1fr; gap: 10px; }
  .esp-vision-num { position: static; font-size: 2.4rem; }
  .esp .esp-vision-texte p { font-size: 17.5px; }
}
.esp-lettre-fin .esp-signature { width: min(400px, 78vw); height: auto; margin-top: 22px; }

/* ── Revue de presse : cartes, « Nouveau », archives par mois et par jour ─── */
.esp-presse-card.is-nouveau { border-top-color: var(--red); }
.esp-presse-nouveau { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.esp-presse-cards.is-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.esp-presse-cards.is-compact .esp-presse-extrait { display: none; }
.esp-presse-mois { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 10px; margin-top: 12px; }
.esp-presse-mois a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 4px; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.esp-presse-mois a:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(18, 47, 62, .08); }
.esp-presse-mois a strong { color: var(--navy); font-family: var(--font-title); text-transform: capitalize; }
.esp-presse-mois a span { color: var(--muted); font-size: .85rem; }
.esp-presse-mois.is-compact { display: flex; flex-wrap: wrap; gap: 8px; }
.esp-presse-mois.is-compact a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-left-width: 1px; border-radius: 999px; }
.esp-presse-mois.is-compact a span { padding: 0 .45rem; border-radius: 999px; background: var(--paper); font-weight: 700; }
.esp-presse-mois.is-compact a[aria-current="page"] { border-color: var(--navy); background: var(--navy); }
.esp-presse-mois.is-compact a[aria-current="page"] strong { color: #fff; }
.esp-presse-archives-nav { display: grid; gap: 10px; margin: 8px 0 4px; }
.esp-presse-ordre { margin: 0; font-size: .9rem; color: var(--muted); }
.esp .esp-presse-jour-titre { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
.esp .esp-presse-jour-titre .esp-muted { font-family: inherit; font-size: .85rem; font-weight: 400; }

/* ── Accueil : « À la une » en cartes, « Votre activité » en grille pleine ── */
.esp-une-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.esp-une-cards .esp-cp-thumb { aspect-ratio: 16 / 9; height: auto; margin: 0; border-radius: 0; }
.esp-une-bandeau { display: grid; place-items: center; align-content: center; gap: 10px; background: linear-gradient(135deg, #122f3e, #294c5d); }
.esp-une-bandeau img { width: 72px; height: auto; }
.esp-une-bandeau span { color: var(--gold); font-family: var(--font-title); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.esp-engage-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 14px; margin-top: 14px; }
.esp-engage-cards > .esp-card { display: flex; flex-direction: column; gap: 6px; margin: 0; border-top: 3px solid var(--navy); }
.esp-engage-cards > .esp-mine { border-top-color: var(--red); }
.esp-engage-cards > .esp-next { border-top-color: var(--gold); background: var(--paper); }
.esp .esp-engage-cards .esp-kicker { margin: 0; }
.esp .esp-engage-cards h2 { margin: 0 0 4px; font-size: 1.2rem; }
.esp-engage-cards p { margin: 0; }
.esp-engage-cta { margin-top: auto !important; padding-top: 12px; }
.esp-engage-cards .esp-bignum { margin: 4px 0 0; }
.esp-une-cards .esp-cp-thumb { font-size: 11px; border: 0; box-shadow: none; }
.esp-une-cards .esp-cp-band { font-size: 10px; padding: 10px 14px; }
.esp-une-cards .esp-cp-band img { width: 20px; height: 20px; }
.esp-une-cards .esp-cp-titre { padding: 0 14px; font-size: 15px; }
.esp-une-cards .esp-cp-date, .esp-une-cards .esp-cp-corps { padding-left: 14px; padding-right: 14px; }
.esp-engage-cards > .esp-card { border-left: 1px solid var(--line); padding-left: 24px; }

/* ── Visite guidée ─────────────────────────────────────────────────────── */
.esp-modal.is-tuto { width: min(100% - 2rem, 36rem); padding: 0; border: 0; border-radius: 8px; }
.esp-tuto { position: relative; display: grid; gap: 18px; padding: 32px 32px 24px; border-top: 4px solid var(--red); }
.esp-tuto .esp-modal-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--navy); font-size: 1.6rem; cursor: pointer; }
.esp .esp-tuto-etape h2 { margin: 4px 0 12px; color: var(--navy); font-size: 1.55rem; }
.esp .esp-tuto-etape p { margin: 0 0 .8rem; max-width: none; color: var(--ink); line-height: 1.6; }
.esp-tuto-etape .esp-kicker { margin: 0; }
.esp-tuto-liste { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.esp-tuto-liste li { display: grid; gap: 2px; padding: 10px 12px; border-left: 3px solid var(--navy); border-radius: 0 4px 4px 0; background: var(--paper); }
.esp-tuto-liste strong { color: var(--navy); }
.esp-tuto-liste span { color: var(--ink); font-size: .95rem; line-height: 1.5; }
.esp-tuto-actions { display: flex; align-items: center; gap: 14px; }
.esp-tuto-points { display: inline-flex; gap: 6px; margin-right: auto; }
.esp-tuto-points span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.esp-tuto-points span.is-on { background: var(--red); }
@media (max-width: 600px) { .esp-tuto { padding: 26px 18px 18px; } }

/* « Faire un don » flottant : en bas à droite, effacé près du bandeau de don. */
.esp-don-flottant { position: fixed; right: 20px; bottom: 20px; z-index: 40; box-shadow: 0 10px 28px rgba(18, 47, 62, .28); transition: opacity .2s, transform .2s; }
.esp-don-flottant.is-cache { opacity: 0; transform: translateY(12px); pointer-events: none; }
.esp-don-flottant::before { content: "♥"; margin-right: 8px; }
@media (max-width: 600px) { .esp-don-flottant { right: 14px; bottom: 14px; } }
@media print { .esp-don-flottant { display: none; } }

/* ── Page d'un comité, animateurs, activité ──────────────────────────────── */
.esp-comite-action { margin-top: 18px; }
.esp-comite-action form { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.esp-comite-quitter { color: #fff !important; opacity: .8; }
.esp-comite-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 24px; align-items: start; }
.esp-comite-main { display: grid; gap: 8px; }
.esp-comite-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.esp-comite-side h2 { margin: 0 0 12px; font-size: 1.2rem; }
.esp .esp-comite-rdv { margin: 4px 0 0; color: var(--navy); font-family: var(--font-title); font-size: 1.3rem; font-weight: 800; }
.esp-comite-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.esp-comite-chiffres li { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 4px; background: #fff; }
.esp-comite-chiffres strong { color: var(--red); font-family: var(--font-title); font-size: 2rem; line-height: 1; }
.esp-comite-chiffres span { color: var(--muted); font-size: .9rem; }
.esp-comite-chiffres.is-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0; }
.esp-comite-chiffres.is-mini li { padding: 10px 12px; border-top-width: 2px; }
.esp-comite-chiffres.is-mini strong { font-size: 1.4rem; }
.esp-animateurs { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.esp-animateur { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
.esp-animateur-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.esp-animateur-photo.is-initiales { display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-title); font-size: 1.4rem; font-weight: 800; }
.esp-animateur-texte { display: grid; gap: 3px; min-width: 0; }
.esp-animateur-texte a { overflow-wrap: anywhere; font-size: .9rem; }
.esp-animateur-tel { display: block; width: auto; max-width: 100%; height: 34px; margin-top: 4px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.esp-animateur-note { margin: 14px 0 0; font-size: .82rem; }
@media print { .esp-animateur-tel { display: none !important; } }
/* Fenêtre qui perd le focus (outil de capture, autre application) : le numéro se brouille. */
body.is-hors-focus .esp-animateur-tel { filter: blur(6px); }
.esp-comite-activites { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 14px; }
.esp-comite-activite { display: flex; flex-direction: column; gap: 6px; margin: 0; border-top: 3px solid var(--gold); }
.esp .esp-comite-activite h3 { margin: 0; font-size: 1.25rem; }
.esp-comite-activite h3 a { color: var(--navy); text-decoration: none; }
.esp-comite-activite p { margin: 0; }
.esp-comite-animateurs-mini { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.esp-comite-animateurs-mini img, .esp-comite-animateurs-mini > span[aria-hidden] { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 800; }
.esp-comite-dol-mini { display: grid; gap: 2px; padding-left: 10px; border-left: 3px solid var(--red); }
.esp-comite-dol-mini a { color: var(--ink); text-decoration: none; font-size: .92rem; }
.esp-nav-panel-titre { margin: 6px 0 2px; padding: 4px 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 900px) { .esp-comite-layout { grid-template-columns: 1fr; } .esp-comite-side { position: static; } .esp-comite-chiffres { grid-template-columns: 1fr 1fr 1fr; } }
.esp-animateur-photo { object-position: center 18%; }
/* Macaron des réunions de comité : présentiel, visio, ou les deux. */
.esp-macaron { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: none; vertical-align: middle; }
.esp-macaron::before { font-size: .85rem; }
.esp-macaron.is-presentiel { background: #e0f2e9; color: #14532d; }
.esp-macaron.is-presentiel::before { content: "📍"; }
.esp-macaron.is-visio { background: #e0ecfa; color: #1e3a8a; }
.esp-macaron.is-visio::before { content: "🎥"; }
.esp-macaron.is-mixte { background: #f3e8ff; color: #581c87; }
.esp-macaron.is-mixte::before { content: "📍🎥"; }
/* Actions de terrain d'un comité. */
.esp-actions-terrain { display: grid; gap: 10px; margin: 0 0 10px; padding: 0; list-style: none; }
.esp-action { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 4px; background: #fff; }
.esp-action-icone { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); font-size: 1.3rem; }
.esp-action div { display: grid; gap: 2px; }
.esp-action strong { color: var(--navy); }
.esp-action-quand { color: var(--ink); font-size: .92rem; }
.esp-comite-action-mini { padding: 6px 10px; border-radius: 4px; background: #fdeceb; font-size: .9rem; }
/* Agenda : les rendez-vous de mes comités, d'une autre couleur que les nationaux. */
.esp-agenda-item.is-local { border-left-color: var(--gold); background: #fffaf0; }
.esp-agenda-item.is-local h3 a { color: inherit; }
.esp-badge.is-local { background: var(--gold); color: var(--ink); }
.esp-agenda-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.esp-swatch.is-national { background: var(--teal-deep); }
.esp-swatch.is-local { background: var(--gold); }

/* ── Ils soutiennent ───────────────────────────────────────────────────── */
.esp-soutiens { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.esp-soutiens.is-vip { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.esp-soutien { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 10px; padding: 20px 18px 16px; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 6px; background: #fff; text-align: center; }
.esp-soutien.is-vip { border-top-color: var(--gold); background: linear-gradient(180deg, #fffaf0, #fff 40%); }
.esp-soutien-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.esp-soutien.is-vip .esp-soutien-photo { width: 88px; height: 88px; box-shadow: 0 0 0 3px var(--gold); }
.esp-soutien-photo.is-initiales { display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 1.2rem; }
.esp .esp-soutien blockquote { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.5; font-style: italic; }
.esp-soutien-qui { display: grid; gap: 2px; margin: 0; }
.esp-soutien-qui strong { color: var(--navy); }
.esp-soutien-qui span { color: var(--muted); font-size: .85rem; }
.esp-soutiens-cta { margin: 14px 0 0; text-align: center; }
.esp-soutien-moi { margin: 24px 0; }
.esp-soutien-photo-choix { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.esp-soutien-apercu img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.esp-soutien-modifier summary { cursor: pointer; font-weight: 700; color: var(--teal-deep); margin: 6px 0 10px; }
.esp-alert-doux { margin: 0; padding: 12px 14px; border-left: 4px solid var(--gold); border-radius: 0 4px 4px 0; background: var(--gold-soft); color: var(--ink); line-height: 1.5; }
.esp-soutien-identite { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .esp-soutien-identite { grid-template-columns: 1fr; } }
.esp-soutiens-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; padding: 16px 18px; border: 1px dashed var(--gold); border-radius: 6px; background: #fffaf0; }
.esp-soutiens-invite p { margin: 0; max-width: 60ch; }
/* Accueil : trois colonnes fixes (une carte seule ne s'étire plus sur toute la largeur). */
.esp-une-cards, .esp-soutiens.is-accueil { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .esp-une-cards, .esp-soutiens.is-accueil { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .esp-une-cards, .esp-soutiens.is-accueil { grid-template-columns: 1fr; } }
.esp-une-cards .esp-cp-thumb { aspect-ratio: 16 / 9 !important; }
.esp-soutien.is-invite { grid-template-rows: auto auto 1fr auto; border: 1px dashed var(--gold); border-top: 3px solid var(--gold); background: #fffaf0; }
.esp-soutien.is-invite .esp-soutien-photo { background: var(--gold); color: var(--ink); font-size: 1.6rem; }
.esp-soutien.is-invite p { margin: 0; }

/* Connexion : ce qui attend chacun, selon son inscription. */
.esp-login-cases { margin: 0 0 1rem; padding-left: 1.1rem; display: grid; gap: .6rem; line-height: 1.55; }

/* Suivi du cahier dans Mon espace : ce qui attend une réponse, et où en est chaque contribution. */
.esp-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.15rem; height: 1.15rem;
  padding: 0 .3rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; line-height: 1;
}
.esp-profile-toggle { position: relative; }
.esp-badge.is-avatar { position: absolute; top: -4px; left: 26px; box-shadow: 0 0 0 2px #fff; }
.esp-a-faire { margin: .4rem 0 0; font-weight: 700; }
.esp-a-faire a { color: var(--red); }
.esp-a-faire-card { border-left: 4px solid var(--red); margin-bottom: 1rem; }
.esp-a-faire-card h2 { margin-top: 0; }
.esp-a-faire-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.esp-a-faire-card a { display: grid; gap: .15rem; padding: .6rem .75rem; border-radius: 10px; background: #fff6f5; text-decoration: none; color: inherit; }
.esp-a-faire-card a:hover { background: #ffecea; }
.esp-a-faire-card strong { color: var(--red); }
.esp-a-faire-card span { color: var(--muted); font-size: .88rem; }
.esp-suivi { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.esp-suivi li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; font-size: .8rem; color: var(--muted); }
.esp-suivi strong { display: block; font-size: 1.35rem; color: var(--navy); }
.esp-suivi .is-rejected strong { color: var(--muted); }
@media (max-width: 640px) { .esp-suivi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.esp-rewrite { border-left: 4px solid #7c3aed; }
.esp-diff { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .75rem; white-space: pre-wrap; line-height: 1.6; margin: .4rem 0 .6rem; }
.esp-diff del, .esp-diff-legend del { background: #fee2e2; color: #b91c1c; text-decoration-color: #b91c1c; }
.esp-diff ins, .esp-diff-legend ins { background: #dcfce7; color: #166534; text-decoration: none; font-weight: 700; }
.esp-diff-legend { font-size: .78rem; margin: .2rem 0 0; display: flex; gap: .6rem; }
.esp-team-message { border-left: 4px solid var(--navy); }
.esp-team-message .esp-kicker { margin-bottom: .4rem; }

/* Parcours d'arrivée : revenir à l'étape précédente. */
.esp-step-back { margin-left: .8rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: inherit; opacity: .85; white-space: nowrap; }
.esp-step-back:hover { opacity: 1; }

/* Don pendant l'arrivée : facultatif, et dit clairement. */
.esp-don-libre { display: flex; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 4px solid var(--navy); }
.esp-don-libre p { margin: 0 0 .35rem; }
.esp-don-libre > div { flex: 1 1 380px; }
.esp-button.esp-sans-don { font-weight: 700; border-width: 2px; }
/* Visite guidée : la page reste lisible derrière (grisée, pas floutée). */
.esp-modal.is-tuto::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(15, 30, 40, .45); }

/* Visite guidée : la zone décrite est mise en lumière, le reste est assombri. */
.esp-tuto-spot { position: fixed; z-index: 0; border-radius: 10px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 9999px rgba(15, 30, 40, .45); transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease, opacity .2s; }
.esp-modal.is-tuto.has-spot::backdrop { background: transparent; }
.esp-modal.is-tuto.has-spot .esp-tuto-spot { opacity: 1; }
.esp-modal.is-tuto .esp-tuto { position: relative; z-index: 1; background: #fff; }
.esp-tuto-liste li[data-cible] { cursor: pointer; transition: background .2s, border-color .2s; }
.esp-tuto-liste li.is-eclaire { border-left-color: var(--gold); background: #fff6df; }

/* Formulaire « Je soutiens » : l'avertissement prend toute la largeur, la case
   « profil sous alias » est alignée avec son texte, la photo sans retrait. */
.esp .esp-soutien-form .esp-alert-doux { max-width: none; }
.esp-form label.esp-check { display: flex; align-items: flex-start; gap: .7rem; font-size: .88rem; font-weight: 500; line-height: 1.5; cursor: pointer; }
.esp-form label.esp-check strong { font-weight: 700; }
.esp-soutien-apercu:empty { display: none; }

/* Demande de complément de la modération, citée dans « Mon espace ». */
.esp-quote { margin: .4rem 0 .8rem; padding: 10px 14px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 4px 4px 0; }
.esp-quote p { margin: 0; max-width: none; }

/* Carte : des frontières lisibles à toute taille (trait en pixels d'écran, clair
   sur les départements dorés) et le contour de son département toujours au-dessus. */
.esp-carte .esp-dep path { vector-effect: non-scaling-stroke; }
.esp-carte .esp-dep.has-groups path { stroke: #fff7e6; stroke-width: 1.1; }
.esp-carte .esp-dep.is-empty path { stroke: #aebbc0; stroke-width: 1; }
.esp-carte .esp-dep.is-home path { stroke-width: 1.1; }
.esp-home-outline { fill: none; stroke: var(--red); stroke-width: 2.6; vector-effect: non-scaling-stroke; pointer-events: none; stroke-linejoin: round; }

/* Cahier : la vitrine (ce qui a la cote, ce qui mérite plus d'attention). */
.esp-vitrine { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.esp-vitrine-col { display: flex; flex-direction: column; padding: 22px 24px 18px; border-top: 4px solid var(--red); }
.esp-vitrine-col + .esp-vitrine-col { border-left: 1px solid var(--line); }
.esp-vitrine-col.is-solutions { border-top-color: var(--teal-deep); }
.esp-vitrine-col.is-attention { border-top-color: var(--gold); background: var(--gold-soft); }
.esp-vitrine-col h3 { margin: 0; font-family: var(--font-title); font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.esp-vitrine-col > .esp-muted { margin: .2rem 0 .8rem; font-size: .85rem; }
.esp-vitrine-col ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.esp-vitrine-col li + li { border-top: 1px solid var(--line); }
.esp-vitrine-col.is-attention li + li { border-top-color: rgba(150, 89, 10, .18); }
.esp-vitrine-col a { display: grid; gap: .3rem; padding: .75rem 0; color: inherit; text-decoration: none; }
.esp-vitrine-col a:hover .esp-vitrine-texte { text-decoration: underline; }
.esp-vitrine-texte { color: var(--ink); font-size: .95rem; line-height: 1.45; }
.esp-vitrine-repond { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.esp-vitrine-pied { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; color: var(--muted); font-size: .8rem; font-weight: 700; }
.esp-vitrine-voix { padding: 1px 8px; border-radius: 999px; background: var(--paper); color: var(--navy); }
.esp-vitrine-col.is-attention .esp-vitrine-voix { background: #fff; }
@media (max-width: 960px) {
  .esp-vitrine-col + .esp-vitrine-col { border-left: 0; border-top-width: 4px; }
}

/* Cahier : les contributions se lisent en colonnes, sans grande marge vide. */
.esp-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 1rem; align-items: stretch; }
.esp-entries > .esp-entry, .esp-probleme .esp-entry { display: flex; flex-direction: column; }
.esp-entries .esp-entry > footer { margin-top: auto; padding-top: .8rem; }
.esp .esp-entry-body p { max-width: none; }
.esp-cahier-ecrire.has-reperes { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.esp-cahier-ecrire .esp-reperes { margin: 0; }
.esp-probleme { display: flex; flex-direction: column; gap: 22px; }
.esp-probleme-lecture { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.esp-probleme > .esp-probleme-lecture > .esp-entry.is-problem .esp-entry-body { font-size: 1.12rem; line-height: 1.55; }
@media (min-width: 1000px) {
  .esp-probleme.has-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); align-items: start; }
  .esp-probleme-ecrire { position: sticky; top: 1rem; }
}
@media (max-width: 850px) {
  .esp-cahier-ecrire.has-reperes { grid-template-columns: 1fr; }
}

/* Cahier : le dialogue avec l'équipe (Mon espace). */
.esp-repondre { margin-top: .6rem; }
.esp-repondre > summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.esp-repondre .esp-form { margin-top: .5rem; }
.esp-author-reply { margin-top: .8rem; padding: .7rem .9rem; border-left: 3px solid var(--gold); background: #fff; }
.esp-author-reply .esp-kicker { margin-bottom: .3rem; }
.esp-lien-refuse { margin: .4rem 0 0 !important; padding: .55rem .8rem; border-left: 4px solid var(--red); background: #fff1ee; color: #8d251d; font-size: .9rem; max-width: none !important; }
