/* ─────────────────────────────────────────────────────────────────────────
   Site V2 — charte graphique reprise de la proposition graphique (agence Make).
   Fond crème, encre ardoise, rouge corail, turquoise, angles droits, photo reprise.
   Appliquée à tout le site depuis le 14 octobre 2026 (body.theme-v2 sur chaque page) :
   elle se pose par-dessus espace.css, d'où les !important.
   On ne change que des couleurs, le héros, le logo, les cartes, la photo.
   ───────────────────────────────────────────────────────────────────────── */

/* 0) Polices Greed : exactement les déclarations de natachapolony2027.fr (mêmes fichiers WOFF2, mêmes
   graisses 400 / 600 / 900), pour que le navigateur choisisse les mêmes fontes que sur leur site.
   Condensed = titres, menu et boutons ; Standard = texte. */
@font-face { font-family: "Greed Condensed"; src: url("/fonts/greed-condensed-heavy.woff2") format("woff2"); font-style: normal; font-weight: 900; font-display: block; }
@font-face { font-family: "Greed Condensed"; src: url("/fonts/greed-condensed-semibold.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: block; }
@font-face { font-family: "Greed Condensed"; src: url("/fonts/greed-condensed-regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: block; }
@font-face { font-family: "Greed Condensed"; src: url("/fonts/greed-condensed-heavyitalic.woff2") format("woff2"); font-style: italic; font-weight: 900; font-display: block; }
@font-face { font-family: "Greed Condensed"; src: url("/fonts/greed-condensed-semibolditalic.woff2") format("woff2"); font-style: italic; font-weight: 600; font-display: block; }
@font-face { font-family: "Greed Standard"; src: url("/fonts/greed-standard-regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Greed Standard"; src: url("/fonts/greed-standard-heavy.woff2") format("woff2"); font-style: normal; font-weight: 900; font-display: swap; }
@font-face { font-family: "Greed Narrow"; src: url("/fonts/greed-narrow-bold.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: block; }

/* 1) Palette : on remappe les variables du site → tout ce qui les utilise suit. */
body.theme-v2 {
  --font-title: "Greed Condensed", "Arial Narrow", sans-serif;
  --sans: "Greed Standard", Arial, sans-serif;
  /* Couleurs de natachapolony2027.fr : encre #424047, rouge #ea504b, turquoise #009aac. */
  --navy: #424047;
  --teal-deep: #424047;
  --bleu-logo: #424047;
  --teal: #009aac;
  --red: #ea504b;
  --red-dark: #d2403b;
  /* Plus de doré : la charte est bleu (turquoise) et rouge ; l'ancien « or » prend le turquoise. */
  --gold: #009aac;
  --gold-ink: #007a88;
  --gold-soft: #e6f5f7;
  --cream: #f9f7f3;
  --cream-muted: #ecebe4;
  --ink: #424047;
  --muted: #6c6a66;
  --line: #e6e1d8;
  --paper: #f9f7f3;
  --white: #fff;
}

body.theme-v2 { background: #f9f7f3; }
body.theme-v2 .esp-app { background: #f9f7f3 !important; max-width: 1360px !important; box-shadow: none !important; }
body.theme-v2 .esp-main { background: #f9f7f3 !important; }

/* 2) Angles droits (signature visuelle Make). */
body.theme-v2 .esp-button,
body.theme-v2 .esp-card,
body.theme-v2 .esp-entry,
body.theme-v2 .esp-une,
body.theme-v2 .esp-chip,
body.theme-v2 .esp-band,
body.theme-v2 .esp-modal,
body.theme-v2 input,
body.theme-v2 select,
body.theme-v2 textarea,
body.theme-v2 .esp-avatar,
body.theme-v2 figure { border-radius: 0 !important; }

/* 3) Héros : traitement clair, encre, liseré turquoise (reprise du hero Make). */
body.theme-v2 .esp-hero { background: #f9f7f3 !important; color: var(--ink) !important; }
body.theme-v2 .esp-hero h1,
body.theme-v2 .esp .esp-hero h1,
body.theme-v2 .esp .esp-hero.is-home h1,
body.theme-v2 .esp .esp-hero.is-home h2.esp-hero-titre {
  color: var(--ink) !important;
  font-weight: 900 !important; font-style: italic !important;
  text-transform: uppercase; letter-spacing: -.005em; line-height: .98;
}
/* Titre bicolore comme Make : première moitié turquoise, reste rouge, empilés. */
body.theme-v2 .esp-hero h1 .v2-tq, body.theme-v2 .esp-hero .esp-hero-titre .v2-tq { color: var(--teal) !important; display: block; }
body.theme-v2 .esp-hero h1 .v2-rd, body.theme-v2 .esp-hero .esp-hero-titre .v2-rd { color: var(--red) !important; display: block; }
body.theme-v2 .esp-hero p,
body.theme-v2 .esp-hero .esp-lede,
body.theme-v2 .esp-hero .esp-muted,
body.theme-v2 .esp-hero .esp-meta { color: #5c5a56 !important; }
body.theme-v2 .esp-hero .esp-kicker { color: var(--teal) !important; }
body.theme-v2 .esp-hero a:not(.esp-button) { color: var(--teal) !important; }
body.theme-v2 .esp-hero .esp-back a { color: #5c5a56 !important; }

/* 4) Photo : on reprend le portrait de la proposition, par-dessus le visuel du
   héros (la place reste définie par l'image V1 masquée → aucun décalage). */
body.theme-v2 .esp-hero-visual { position: relative; overflow: hidden; background: #dfe7e4 !important; }
body.theme-v2 .esp-hero-visual > picture,
body.theme-v2 .esp-hero-visual > img { visibility: hidden; }
body.theme-v2 .esp-hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: url("/portrait-v2.jpg") center 10% / cover no-repeat;
}

/* 5) En-tête clair (comme la proposition Make) : fond beige, texte encre. */
body.theme-v2 .esp-top { background: #f9f7f3 !important; border-bottom: 1px solid var(--line) !important; }
body.theme-v2 .esp-brand-bandeau { width: auto; }
body.theme-v2 .esp-nav a,
body.theme-v2 .esp-top a:not(.esp-button),
body.theme-v2 .esp-top .esp-profile-toggle,
body.theme-v2 .esp-caret { color: var(--ink) !important; }
body.theme-v2 .esp-burger span,
body.theme-v2 .esp-burger span::before,
body.theme-v2 .esp-burger span::after { background: var(--ink) !important; }
/* Police du menu reprise de l'esprit Make : condensé, majuscules, actif souligné rouge. */
body.theme-v2 .esp-nav a,
body.theme-v2 .esp-nav-group > a {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .03em; font-weight: 500; font-size: 13px;
}
body.theme-v2 .esp-nav a:hover { color: var(--teal) !important; }
body.theme-v2 .esp-nav a[aria-current="page"],
body.theme-v2 .esp-nav-group.is-current > a { color: var(--ink) !important; border-bottom-color: var(--red) !important; }
body.theme-v2 .esp-top .esp-button.is-outline,
body.theme-v2 .esp-top .esp-button.is-outline.esp-top-invite { color: var(--ink) !important; border-color: var(--ink) !important; background: transparent !important; font-weight: 600 !important; opacity: 1 !important; }
body.theme-v2 .esp-top .esp-button.is-outline:hover { background: var(--ink) !important; color: #fff !important; }
/* Macaron du profil : sur la palette (turquoise + crème), plus de doré. */
body.theme-v2 .esp-top .esp-avatar { background: var(--teal) !important; color: #f9f7f3 !important; box-shadow: 0 0 0 2px var(--ink) !important; }
body.theme-v2 .esp-top .esp-profile-menu.is-current .esp-avatar,
body.theme-v2 .esp-top .esp-profile-menu.is-open .esp-avatar { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #fff !important; }

/* 6) Sur-titres en turquoise, espacés. */
body.theme-v2 .esp-kicker { color: var(--teal) !important; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }

/* 7) Boutons : corail plein ; contour turquoise ; carrés. */
body.theme-v2 .esp-button { background: var(--red) !important; color: #f9f7f3 !important; border: 2px solid var(--red) !important; font-family: var(--font-title); font-weight: 600; font-style: normal; text-transform: uppercase; letter-spacing: .02em; }
body.theme-v2 .esp-button:hover { background: var(--red-dark) !important; }
body.theme-v2 .esp-button.is-outline { background: transparent !important; color: var(--teal) !important; border-color: var(--teal) !important; }
body.theme-v2 .esp-button.is-outline:hover { background: var(--teal) !important; color: #fff !important; }
body.theme-v2 .esp-button.is-quiet { background: transparent !important; color: var(--ink) !important; border-color: var(--line) !important; }

/* 8) Cartes / entrées : à plat, filet léger, survol turquoise. */
body.theme-v2 .esp-card,
body.theme-v2 .esp-entry,
body.theme-v2 .esp-une { background: #fff !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
body.theme-v2 .esp-card:hover,
body.theme-v2 .esp-entry:hover,
body.theme-v2 .esp-une:hover { border-color: var(--teal) !important; }

/* 9) Puces / numéros. */
body.theme-v2 .esp-chip.is-published { background: var(--teal) !important; color: #fff !important; }
body.theme-v2 .esp-chip.is-chiffres { background: var(--gold) !important; color: #fff !important; }
body.theme-v2 .esp-num { color: var(--red) !important; }

/* 10) Bandeaux d'appel. */
body.theme-v2 .esp-don-band { background: var(--red) !important; }
body.theme-v2 .esp-band .esp-button { background: #fff !important; color: var(--ink) !important; border-color: #fff !important; }

/* 11) Carrousel du héros : point actif corail. */
body.theme-v2 .esp-hero-vues .esp-carrousel-points button[aria-current="true"]::before { background: var(--red) !important; }

/* 11b) Héros : le TEXTE DÉBORDE SUR L'IMAGE (idée reprise de la proposition Make).
   L'image glisse sous la colonne de texte ; le chapô posé sur la photo reste
   lisible grâce à un surlignage clair par ligne. Desktop uniquement. */
@media (min-width: 900px) {
  body.theme-v2 .esp-hero.is-home { align-items: center; position: relative; }
  body.theme-v2 .esp-hero.is-home .esp-hero-vues { position: relative; z-index: 3; }
  body.theme-v2 .esp-hero.is-home .esp-hero-visual { margin-left: -120px; }
  body.theme-v2 .esp-hero.is-home h1,
  body.theme-v2 .esp-hero.is-home h2.esp-hero-titre { text-shadow: 0 1px 0 rgba(249, 239, 228, .6); }
  body.theme-v2 .esp-hero.is-home .esp-lede {
    display: inline; background: rgba(249, 239, 228, .92);
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    padding: .14em .4em; line-height: 1.9;
    box-shadow: .4em 0 0 rgba(249, 239, 228, .92), -.4em 0 0 rgba(249, 239, 228, .92);
  }
}

/* 11c) Page bio : photos et look repris de la page « Natacha Polony » de Make.
   Le héros de la bio prend la photo au micro ; les autres photos s'intercalent
   dans le texte (injectées côté serveur, en V2 seulement). */
body.theme-v2 .esp-bio-hero .esp-hero-visual::after { background: #d9e2df url("/bio-mic-v2.jpg") center 22% / cover no-repeat; }
body.theme-v2 .esp-bio { max-width: 820px; margin: 2.5rem auto; }
body.theme-v2 .esp-bio p { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
/* Petites images intégrées dans le texte (flottantes, alternées). */
body.theme-v2 .esp-bio-photo { float: right; width: 300px; max-width: 42%; margin: .3rem 0 1.1rem 1.8rem; }
body.theme-v2 .esp-bio-photo.is-wide { float: left; margin: .3rem 1.8rem 1.1rem 0; }
body.theme-v2 .esp-bio-photo img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
body.theme-v2 .esp-bio p.is-fort, body.theme-v2 .esp-bio p:last-child { clear: both; }


/* 13) Pied de page : celui de natachapolony2027.fr — turquoise, logo blanc, introduction, trois colonnes
   (titres en italique soulignés de rouge), ligne légale sous un filet clair. */
body.theme-v2 .esp-pied { display: block; padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) 1.75rem; background: var(--teal); color: #f9f7f3; border-top: 0; font-size: 1rem; line-height: 1.6; }
body.theme-v2 .esp-pied a { color: #f9f7f3; }
body.theme-v2 .esp-pied-haut { display: grid; gap: 2rem; align-items: start; }
body.theme-v2 .esp-pied-logo img { display: block; width: clamp(11rem, 17vw, 15rem); height: auto; filter: brightness(0) invert(1); }
body.theme-v2 .esp-pied-intro { max-width: 34rem; margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; }
body.theme-v2 .esp-pied-colonnes { display: grid; gap: 2.75rem; margin-top: clamp(3rem, 6vw, 5rem); }
body.theme-v2 .esp-pied h2 { display: inline-block; margin: 0; padding-bottom: .5rem; border-bottom: 2px solid var(--red); color: #f9f7f3; font-family: var(--font-title); font-size: 1.5rem; font-weight: 600; font-style: italic; letter-spacing: 0; }
body.theme-v2 .esp-pied ul { margin: 1.25rem 0 0; padding: 0; list-style: none; }
body.theme-v2 .esp-pied nav li + li { margin-top: .25rem; }
body.theme-v2 .esp-pied nav a, body.theme-v2 .esp-pied-reseaux a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; text-underline-offset: .3rem; }
body.theme-v2 .esp-pied nav a:hover, body.theme-v2 .esp-pied-reseaux a:hover { text-decoration: underline; }
body.theme-v2 .esp-pied-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: 1.25rem; }
body.theme-v2 .esp-pied-actions .esp-button { display: inline-flex; align-items: center; justify-content: center; width: min(100%, 15rem); min-height: 3.5rem; border-width: 3px !important; }
body.theme-v2 .esp-pied-actions .esp-button.is-outline { background: transparent !important; color: #f9f7f3 !important; border-color: #f9f7f3 !important; }
body.theme-v2 .esp-pied-actions .esp-button.is-outline:hover { background: var(--red) !important; border-color: var(--red) !important; }
body.theme-v2 .esp-pied-reseaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .2rem .75rem; margin-top: 1rem !important; }
body.theme-v2 .esp-pied-reseaux a { gap: .55rem; --brand: var(--teal); }
body.theme-v2 .esp-pied-reseaux svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
body.theme-v2 .esp-pied-bas { display: flex; flex-direction: column; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid rgba(249, 247, 243, .55); font-size: .875rem; }
body.theme-v2 .esp-pied-bas nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: center; }
body.theme-v2 .esp-pied-bas nav a { min-height: 2rem; }
body.theme-v2 .esp-pied-bas nav span a { min-height: 0; text-decoration: underline; }
body.theme-v2 .esp-pied-bas p { margin: 0; }
@media (min-width: 640px) { body.theme-v2 .esp-pied-bas { flex-direction: row; align-items: center; justify-content: space-between; } }
@media (min-width: 768px) { body.theme-v2 .esp-pied-colonnes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { body.theme-v2 .esp-pied-haut { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(3rem, 7vw, 6rem); } }

/* 14) Titres de section : italique, comme les titres de natachapolony2027.fr. */
body.theme-v2 .esp-section-head h2, body.theme-v2 .esp-hero h1 { font-style: italic; }

/* 15) Cartes des comités (Pedro, 14 oct. 2026) : « le jaune de la carte doit être le bleu, et rouge si
   sélectionné ». Un territoire avec un comité est turquoise ; un comité en lancement, turquoise clair ;
   le territoire choisi, rouge. Mêmes couleurs pour la légende et les pastilles des outre-mer. */
body.theme-v2 .esp-dep path { stroke: #b9c4c9; }
body.theme-v2 .esp-dep:hover path { fill: #cdebef; stroke: var(--teal); }
body.theme-v2 .esp-carte .esp-dep.has-groups path, body.theme-v2 .esp-encart .esp-dep.has-groups path { fill: var(--teal); stroke: #007a88; }
body.theme-v2 .esp-carte .esp-dep.has-groups:hover path, body.theme-v2 .esp-encart .esp-dep.has-groups:hover path { fill: #33b3c1; }
body.theme-v2 .esp-carte .esp-dep.is-forming path, body.theme-v2 .esp-encart .esp-dep.is-forming path { fill: #cdebef; stroke: #7fcbd4; stroke-dasharray: none; }
body.theme-v2 .esp-carte .esp-dep.is-forming:hover path, body.theme-v2 .esp-encart .esp-dep.is-forming:hover path { fill: #a6dce3; }
body.theme-v2 .esp-carte .esp-dep.is-selected path, body.theme-v2 .esp-encart .esp-dep.is-selected path,
body.theme-v2 .esp-carte .esp-dep.is-selected:hover path, body.theme-v2 .esp-encart .esp-dep.is-selected:hover path { fill: var(--red); stroke: #c43a35; stroke-dasharray: none; }
body.theme-v2 .esp-carte .esp-dep.is-home path { stroke: var(--ink); }
body.theme-v2 .esp-carte .esp-dep.is-home.is-selected path { stroke: var(--ink); }
body.theme-v2 .esp-dep:focus-visible path { stroke: var(--red); }
body.theme-v2 .esp-swatch.has-groups, body.theme-v2 .esp-swatch.is-local { background: var(--teal); border-color: #007a88; }
body.theme-v2 .esp-swatch.is-forming { background: #cdebef; border-color: #7fcbd4; }
body.theme-v2 .esp-terr.has-groups { background: #e6f5f7; border-color: #7fcbd4; }
body.theme-v2 .esp-terr span { background: var(--teal); color: #fff; }
body.theme-v2 .esp-terr.is-forming { background: #f1fafb; border-color: #a6dce3; }
body.theme-v2 .esp-terr.is-forming span { background: #cdebef; color: var(--ink); }
body.theme-v2 .esp-terr.is-selected, body.theme-v2 .esp-terr.is-selected.is-forming { background: var(--red); border-color: var(--red); color: #fff; }
body.theme-v2 .esp-terr.is-selected span { background: #fff; color: var(--red); }

/* 16) En-tête aussi haut que celui de natachapolony2027.fr (7rem, logo de 11,5rem) : les éléments
   collants et les ancres sont décalés d'autant. En mobile, l'en-tête garde sa composition. */
@media (min-width: 851px) {
  body.theme-v2 .esp-top { min-height: 112px; }
  body.theme-v2 .esp-brand img.esp-brand-bandeau { width: 184px; height: auto; }
  body.theme-v2 .esp-nav a, body.theme-v2 .esp-nav-group > a { font-size: 14px; }
  body.theme-v2 .esp-edf-sommaire { top: 112px; }
  body.theme-v2 [data-edf] section[id] { scroll-margin-top: 170px; }
  body.theme-v2 .esp-manifeste-head { top: 140px; }
  body.theme-v2 .esp-comites-side, body.theme-v2 .esp-vision-num { top: 136px; }
  body.theme-v2 .esp-comite-side { top: 130px; }
  body.theme-v2 :is(.esp-presse-card, .esp-presse-row, .esp-player, .esp-principe, .esp-vision-section) { scroll-margin-top: 130px; }
}
@media (max-width: 850px) {
  body.theme-v2 .esp-brand img.esp-brand-bandeau { height: 46px; }
}

/* 17) Flèches des sous-menus bien visibles, comme les chevrons de natachapolony2027.fr. */
body.theme-v2 .esp-nav-toggle { color: var(--ink) !important; opacity: 1 !important; }
body.theme-v2 .esp-nav-toggle:hover, body.theme-v2 .esp-nav-toggle[aria-expanded="true"] { color: var(--red) !important; }

/* 18) Typographie alignée sur natachapolony2027.fr. Menu : Greed Condensed 16 px, graisse normale,
   capitales espacées, l'entrée courante en gras. Boutons : Condensed 600, 16 px. Titres : 600
   (italique pour les titres de section), le héros restant en 900. */
body.theme-v2 .esp-nav a, body.theme-v2 .esp-nav-group > a, body.theme-v2 .esp-nav-panel a {
  font-family: var(--font-title) !important; font-size: 16px !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .04em !important;
}
body.theme-v2 .esp-nav a[aria-current="page"], body.theme-v2 .esp-nav-group.is-current > a { font-weight: 700 !important; }
body.theme-v2 .esp-button { font-size: 1rem; font-weight: 600; letter-spacing: .04em; }
body.theme-v2 .esp-top .esp-button { min-height: 2.75rem; padding: 0 1.25rem; display: inline-flex; align-items: center; font-size: 1rem; }
body.theme-v2 .esp h2, body.theme-v2 .esp h3, body.theme-v2 h2, body.theme-v2 h3 { font-weight: 600; }
body.theme-v2 .esp-hero h1, body.theme-v2 .esp-hero .esp-hero-titre { font-weight: 900 !important; }
/* « Participer » turquoise plein, comme le bouton secondaire de natachapolony2027.fr. */
body.theme-v2 .esp-top .esp-button.esp-top-inscrire { background: var(--teal) !important; border-color: var(--teal) !important; color: #f9f7f3 !important; }
body.theme-v2 .esp-top .esp-button.esp-top-inscrire:hover { background: var(--ink) !important; border-color: var(--ink) !important; }

/* 19) Bandes rouges (« Et chez vous ? », « Signaler une erreur ») : surtitre et boutons contour en
   crème, lisibles sur le rouge ; hors de la page de l'état de la France, la bande laisse de l'air
   avant la section suivante. */
body.theme-v2 .is-rouge .esp-kicker { color: #f9f7f3 !important; opacity: .9; }
body.theme-v2 .is-rouge .esp-button.is-outline { background: transparent !important; color: #f9f7f3 !important; border-color: #f9f7f3 !important; }
body.theme-v2 .is-rouge .esp-button.is-outline:hover { background: #f9f7f3 !important; color: var(--red) !important; }
body.theme-v2 .is-rouge a:not(.esp-button) { color: #f9f7f3; }
/* Hors de la page de l'état de la France, « Et chez vous ? » est seul dans son conteneur : celui-ci perd
   la marge négative qui colle la page au pied, et laisse de l'air avant la section suivante. */
body.theme-v2 [data-edf]:has(> #chez-vous:only-child) { margin-bottom: 48px; }

/* 20) Témoignages (« Ils soutiennent ») : initiales sur turquoise ; la case « Et vous ? » à la charte,
   son « + » en rouge. */
body.theme-v2 .esp-soutien-photo.is-initiales, body.theme-v2 .esp-animateur-photo.is-initiales { background: var(--teal); color: #f9f7f3; }
body.theme-v2 .esp-soutien.is-vip .esp-soutien-photo { box-shadow: 0 0 0 3px var(--teal); }
body.theme-v2 .esp-soutien.is-vip { border-top-color: var(--teal); }
body.theme-v2 .esp-soutien.is-invite { border: 1px dashed var(--red); border-top: 3px solid var(--red); background: #fff; }
body.theme-v2 .esp-soutien.is-invite .esp-soutien-photo { background: var(--red); color: #f9f7f3; }
/* Tous les ronds des témoignages à la même taille (personnalités comprises). */
body.theme-v2 .esp-soutien.is-vip .esp-soutien-photo { width: 64px; height: 64px; }

/* 21) Titres H1 (et titres du carrousel) un peu plus aérés : l'ancien resserrement (-0,035 em) collait les
   lettres de Greed Condensed ; natachapolony2027.fr est à 0, on passe légèrement au-dessus. */
body.theme-v2 h1, body.theme-v2 .esp-hero h1, body.theme-v2 .esp-hero .esp-hero-titre,
body.theme-v2 .esp-hero.is-home .esp-hero-titre { letter-spacing: .01em !important; }

/* 22) L'état réel de la France sans gris (Pedro, 14 oct. 2026) : les bandes sombres, les cartes de
   chiffres et la barre du sommaire prennent un bleu canard profond (dérivé du turquoise) ; textes
   secondaires et filets en bleus clairs, accents corail et turquoise. Les graphiques suivent
   (palette C de espace-etat-france.js). */
body.theme-v2 [data-edf], body.theme-v2 [data-edf-chiffres], body.theme-v2 .esp-edf-sommaire, body.theme-v2 .esp-edf-fenetre {
  --edf-nuit: #0a4a52; --edf-filet: #2f7d87; --edf-brume: #cde7ea; --edf-rouge-vif: #ff8a84; --edf-bleu-clair: #7fd6e0;
}
body.theme-v2 .esp-edf-bande.is-nuit, body.theme-v2 .esp-edf-compteur, body.theme-v2 .esp-edf-tuile { background: #0d5c66; }
body.theme-v2 .esp-edf-chip[aria-pressed="true"] { border-color: #0d5c66; background: #0d5c66; }
body.theme-v2 .esp-edf-cle.is-seconde i { background: #0d5c66; }
body.theme-v2 .esp-edf-annees button[aria-pressed="true"] { color: #0d5c66; }

/* 23) Largeurs de natachapolony2027.fr : contenu de 1 152 px au plus, centré ; sous 1 184 px, toute la
   largeur avec 16 px de chaque côté ; héros (photo et titre) de 1 024 px au plus ; fonds de couleur sur
   toute la largeur de l'écran, leur contenu restant dans les 1 152 px. Toute la mise en page suit la marge
   --gutter : il suffit de la calculer. Le cadre .esp-app prend toute la largeur ; ce qui déborderait de la
   largeur d'une barre de défilement est rogné. */
body.theme-v2 { --gutter: max(16px, calc((100vw - 1152px) / 2)); }
body.theme-v2 .esp-app { max-width: none !important; overflow-x: clip; }
body.theme-v2 .esp-top { padding-inline: var(--gutter); }
body.theme-v2 .esp-hero { padding-inline: max(16px, calc((100vw - 1024px) / 2)); }
/* Le héros à photo (carrousel de La campagne) : texte et photo dans 1 024 px, centrés. */
@media (min-width: 900px) {
  body.theme-v2 .esp-main > .esp-hero.is-home { width: min(1024px, 100%); margin-inline: auto; padding: 0; }
  body.theme-v2 .esp-hero.is-home .esp-hero-copy { padding: 74px 40px 55px 0; }
}
/* L'en-tête tient dans 1 152 px : logo un peu plus petit, boutons plus compacts. */
@media (min-width: 851px) {
  body.theme-v2 .esp-brand img.esp-brand-bandeau { width: 164px; }
  body.theme-v2 .esp-top .esp-button { padding: 0 .9rem; }
  body.theme-v2 .esp-top-actions { gap: 8px; }
}
/* Raccourcis d'un inscrit sous le carrousel : dans les 1 152 px, quatre cases égales (leurs marges ne
   suivent plus la marge de page, devenue large). */
body.theme-v2 .esp-strip-actions { margin: -22px 0 0; border-top: 1px solid var(--line); }
body.theme-v2 .esp-strip-actions a, body.theme-v2 .esp-strip-actions a:first-child { padding: 18px 20px; }
@media (min-width: 900px) {
  /* Le surlignage du chapô (ombres latérales) ne déborde plus sur la diapositive voisine. */
  body.theme-v2 .esp-hero.is-home .esp-hero-copy { padding-left: 12px; }
}

/* 24) Restes relevés par un audit des pages (14 oct. 2026). Surfaces encore à l'encre (gris) : vidéo,
   communiqués, logos de la revue de presse et compteurs du cahier en bleus de la charte ; liens écrits
   en blanc pour l'ancien héros sombre, posés aujourd'hui sur le crème. */
body.theme-v2 .esp-video-frame, body.theme-v2 .esp-cp-band, body.theme-v2 .esp-presse-visuel { background: #0d5c66; }
body.theme-v2 .esp-signal-count, body.theme-v2 .esp-signal.is-solution { background: var(--teal); }
body.theme-v2 .esp-hero-visual { background: #f9f7f3 !important; }
body.theme-v2 .esp-hero .esp-link { color: var(--ink); }
body.theme-v2 .esp-hero .esp-link:hover { color: var(--red); }
body.theme-v2 .esp-inscription-band { background: #0d5c66 !important; }
/* En-tête d'un visiteur (trois boutons) : menu et boutons un peu resserrés pour tenir dans 1 152 px,
   même quand l'entrée la plus longue est en gras. */
@media (min-width: 851px) {
  body.theme-v2 .esp-top { gap: 12px; }
  body.theme-v2 .esp-nav { gap: 8px; }
  body.theme-v2 .esp-nav a, body.theme-v2 .esp-nav-group > a { letter-spacing: .03em !important; }
  body.theme-v2 .esp-top .esp-button { padding: 0 .7rem; }
}
/* Carrousel : le second bouton (contour) passait transparent sur la photo ; il est plein, turquoise,
   comme le bouton secondaire de natachapolony2027.fr. */
body.theme-v2 .esp-hero .esp-button.is-outline { background: var(--teal) !important; border-color: var(--teal) !important; color: #f9f7f3 !important; }
body.theme-v2 .esp-hero .esp-button.is-outline:hover { background: var(--ink) !important; border-color: var(--ink) !important; }

/* Connexion : « Pas encore de compte ? Inscrivez-vous », en gros sous le formulaire (14 oct. 2026). */
body.theme-v2 .esp-connexion-inscrire { margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgb(66 64 71 / .2); font-family: var(--font-title); font-size: 1.6rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
body.theme-v2 .esp-connexion-inscrire a { color: var(--red); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
body.theme-v2 .esp-connexion-inscrire a:hover { color: var(--ink); }

/* 25) Menu ☰ (tablette et téléphone) à la charte claire (14 oct. 2026). La feuille d'origine peignait le
   menu déplié en var(--bleu-logo), que la charte remappe sur l'encre : liens à l'encre sur fond encre,
   menu illisible. Il prend le crème de l'en-tête, filets légers, entrée courante en rouge, et défile
   s'il dépasse l'écran (l'en-tête est collant). Les boutons flottants s'effacent pendant qu'il est ouvert. */
@media (max-width: 1160px) {
  body.theme-v2 .esp-burger { border-color: var(--line); background: transparent; }
  /* Menu ouvert : la barre du milieu s'efface (la charte la forçait à l'encre), il ne reste que la croix. */
  body.theme-v2 .esp-top.is-menu-open .esp-burger span { background: transparent !important; }
  body.theme-v2 .esp-nav { background: #f9f7f3; border-top-color: var(--line); }
  body.theme-v2 .esp-top.is-menu-open .esp-nav { max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
  body.theme-v2 .esp-nav a, body.theme-v2 .esp-nav-group > a, body.theme-v2 .esp-nav-group.is-current > a { border-bottom: 1px solid var(--line) !important; }
  body.theme-v2 .esp-nav-panel a { border-radius: 0; color: var(--ink) !important; }
  body.theme-v2 .esp-nav a[aria-current="page"], body.theme-v2 .esp-nav-panel a[aria-current="page"],
  body.theme-v2 .esp-nav-panel a[aria-current="true"], body.theme-v2 .esp-nav-group.is-current > a { color: var(--red) !important; }
  body.theme-v2 .esp-nav-panel-titre { border-top-color: var(--line); color: var(--muted); }
  /* Les sous-menus y sont toujours dépliés : leurs flèches n'ont plus d'usage. */
  body.theme-v2 .esp-nav-toggle { display: none !important; }
}
body.theme-v2:has(.esp-top.is-menu-open) :is(.esp-flottants, .esp-don-flottant) { display: none; }
/* Téléphone : l'en-tête tient sur une ligne. « Faire un don » (visiteur) et « Inviter » (inscrit) restent
   à portée, par le bouton flottant et par le menu du profil ; la règle de espace.css perdait contre le
   display de « .esp-top .esp-button » de la charte. */
@media (max-width: 480px) {
  body.theme-v2 .esp-top-actions.is-visiteur .esp-top-don,
  body.theme-v2 .esp-top-actions .esp-top-invite { display: none; }
  body.theme-v2 .esp-top .esp-button { padding: 0 .8rem; }
  body.theme-v2 .esp-brand img.esp-brand-bandeau { height: 42px; }
}
/* Très petit téléphone (iPhone SE…) : l'inscrit garde son macaron ; son « Faire un don » passe au bouton flottant. */
@media (max-width: 374px) {
  body.theme-v2 .esp-top-actions:not(.is-visiteur) a[href="/espace/dons"] { display: none; }
}
