/* =================================================================
   Nicolas Plourde — Candidat libéral dans Anjou–Louis-Riel
   Charte graphique du Parti libéral du Québec
   ================================================================= */

/* ----- Police officielle du PLQ : Gilroy (auto-hébergée) ----- */
@font-face{font-family:"Gilroy";src:url("../fonts/Gilroy-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"Gilroy";src:url("../fonts/Gilroy-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:"Gilroy";src:url("../fonts/Gilroy-SemiBold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:"Gilroy";src:url("../fonts/Gilroy-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:"Gilroy";src:url("../fonts/Gilroy-ExtraBold.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap;}
@font-face{font-family:"Gilroy";src:url("../fonts/Gilroy-Black.woff2") format("woff2");font-weight:900;font-style:normal;font-display:swap;}
@font-face{font-family:"Gilroy";src:url("../fonts/Gilroy-BoldItalic.woff2") format("woff2");font-weight:700;font-style:italic;font-display:swap;}

/* ----- Palette PLQ ----- */
:root {
  --blue:        #0079C2;
  --blue-bright: #3896CF;
  --blue-600:    #0066A3;
  --blue-deep:   #003F65;
  --blue-ink:    #002E4A;
  --blue-050:    #EBF4FA;
  --blue-100:    #D6EAF5;
  --blue-200:    #A8D1EA;

  --red:         #EB1F2F;
  --red-700:     #C51A27;
  --red-050:     #FDEDEE;

  --white:       #FFFFFF;
  --paper:       #F7F8FA;
  --grey-200:    #E2E6EC;
  --grey-400:    #9AA4B2;
  --slate:       #5B6675;
  --ink:         #16243A;

  --font: "Gilroy", "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);

  --radius: 14px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(22,36,58,.06);
  --shadow:    0 14px 40px -18px rgba(22,36,58,.28);
  --shadow-lg: 0 40px 80px -30px rgba(0,46,74,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 80px;
}

/* ----- Masquage garanti (attribut hidden) ----- */
[hidden] { display: none !important; }

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
/* Garantit le masquage des sections portant l'attribut « hidden » (ex. la galerie
   de terrain en attente de photos), même si une règle leur donne un display. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: clamp(3.8rem, 8vw, 7rem); }

/* ----- Bilingue : afficher seulement la langue active ----- */
html[lang="fr"] [data-lang="en"],
html[lang="en"] [data-lang="fr"] { display: none !important; }

/* ----- Accessibilité ----- */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ----- Module flottant Loi 25 (coin inférieur gauche) ----- */
.loi25-float {
  position: fixed; left: clamp(12px, 2vw, 22px); bottom: clamp(12px, 2vw, 22px); z-index: 90;
  width: min(360px, calc(100vw - 24px));
  background: #fff; color: var(--ink);
  border-radius: 16px 28px 16px 28px; border: 1px solid var(--grey-200); border-top: 4px solid var(--blue);
  box-shadow: var(--shadow-lg); padding: 1rem 1.1rem 1.05rem;
  animation: loi25-in .55s var(--ease) both;
}
@keyframes loi25-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.loi25-float__head { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; padding-right: 1.4rem; }
.loi25-float__icon { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.loi25-float__head strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-deep); }
.loi25-float__text { font-size: .82rem; color: var(--slate); line-height: 1.5; margin: 0 0 .9rem; }
.loi25-float__actions { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.loi25-float__link { font-size: .82rem; font-weight: 700; color: var(--blue-600); }
.loi25-float__close {
  position: absolute; top: 7px; right: 9px; width: 28px; height: 28px; border: 0; background: transparent;
  font-size: 1.35rem; line-height: 1; color: var(--grey-400); cursor: pointer; border-radius: 8px;
}
.loi25-float__close:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 520px) { .loi25-float { left: 10px; right: 10px; bottom: 10px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .loi25-float { animation: none; } }

/* ----- Typographie utilitaire ----- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  font-size: .78rem;
  color: var(--blue-600);
  margin: 0 0 1rem;
}
.eyebrow--light { color: rgba(255,255,255,.92); }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 3px; background: var(--red); vertical-align: middle; margin-right: .6rem; border-radius: 2px; }

.section-title {
  font-weight: 900;
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem);
  color: var(--blue-ink);
  letter-spacing: -.025em;
}
.section-title--light { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-intro { color: var(--slate); font-size: 1.1rem; margin-top: 1rem; }
.section-title--light + .section-intro, .eyebrow--light ~ .section-intro { color: rgba(255,255,255,.9); }

/* ----- Boutons ----- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: inherit; font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  padding: .92rem 1.7rem; border-radius: 100px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  box-shadow: 0 10px 22px -12px rgba(0,121,194,.7);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 16px 30px -14px rgba(0,121,194,.8); }
.btn:active { transform: translateY(0); }
.btn--accent { --btn-bg: var(--red); box-shadow: 0 10px 24px -12px rgba(235,31,47,.75); }
.btn--accent:hover { --btn-bg: var(--red-700); box-shadow: 0 16px 32px -14px rgba(235,31,47,.85); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); box-shadow: none; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; box-shadow: none; }
.btn--small { padding: .62rem 1.15rem; font-size: .9rem; }
.btn--light { background: #fff; color: var(--blue-deep); box-shadow: none; }
.btn--light:hover { background: var(--blue-050); }
.btn--block { width: 100%; }

/* =================================================================
   En-tête / Navigation
   ================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; width: 100%; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand__logo { height: 52px; width: auto; transition: opacity .3s var(--ease); }
.brand__logo--color { display: none; }

.main-nav { display: flex; gap: clamp(1rem, 2vw, 2rem); align-items: center; }
.main-nav__link {
  color: rgba(255,255,255,.92); font-weight: 600; font-size: .96rem; text-decoration: none;
  position: relative; padding: .3rem 0; transition: color .2s var(--ease);
}
.main-nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--red);
  transition: width .25s var(--ease);
}
.main-nav__link:hover { text-decoration: none; }
.main-nav__link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang-switch { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem; border: 1.5px solid rgba(255,255,255,.4); border-radius: 100px; }
.lang-btn {
  border: 0; background: transparent; color: rgba(255,255,255,.8); font-family: inherit; font-weight: 700;
  font-size: .82rem; padding: .25rem .6rem; border-radius: 100px; cursor: pointer; transition: all .2s var(--ease);
}
.lang-btn.is-active { background: #fff; color: var(--blue-deep); }
.lang-switch__sep { width: 1px; height: 14px; background: rgba(255,255,255,.35); }

/* Barres en pixels entiers (2.5px donnait des épaisseurs inégales au rendu)
   et pile centrée verticalement, sinon elle se colle en haut du bouton. */
/* Retrait bas 13px (et non 12) : la pile fait 19px, un nombre impair — c'est ce
   qui place les 3 barres sur des pixels entiers plutôt qu'à cheval. */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 12px 10px 13px; }
.nav-toggle span { height: 3px; width: 100%; background: #fff; border-radius: 3px; transition: transform .3s var(--ease), opacity .2s var(--ease); }

/* État défilé : en-tête plein, texte foncé */
.site-header.is-scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); height: 68px; }
.site-header.is-scrolled .brand__logo--white { display: none; }
.site-header.is-scrolled .brand__logo--color { display: block; }
.site-header.is-scrolled .main-nav__link { color: var(--ink); }
.site-header.is-scrolled .lang-switch { border-color: var(--grey-200); }
.site-header.is-scrolled .lang-btn { color: var(--slate); }
.site-header.is-scrolled .lang-btn.is-active { background: var(--blue); color: #fff; }
.site-header.is-scrolled .nav-toggle[aria-expanded="false"] span { background: var(--ink); }

/* =================================================================
   Hero
   ================================================================= */
.hero {
  position: relative;
  background: radial-gradient(135% 130% at 76% 42%, #1C8BD0 0%, #0079C2 52%, #0A67A1 100%);
  color: #fff;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 5vw, 3.5rem));
  padding-bottom: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__flame {
  position: absolute; right: clamp(1.25rem, 4vw, 3.5rem); top: 50%; transform: translateY(-50%) rotate(-8deg);
  width: min(400px, 30%); max-height: 66%; object-fit: contain; opacity: .06; filter: saturate(0);
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__title {
  font-weight: 900; letter-spacing: -.035em;
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5.2rem);
  margin: .4rem 0 .5rem; line-height: .95;
}
.hero__slogan {
  font-weight: 800; color: #fff;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem);
  margin: 0 0 1.2rem; letter-spacing: -.01em;
}
.hero__slogan::after { content: ""; display: block; width: 90px; height: 4px; background: var(--red); border-radius: 3px; margin-top: 1rem; }
.hero__lead { color: rgba(255,255,255,.94); font-size: 1.12rem; max-width: 38ch; margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Portrait : cadre courbe + droit (écho de la flamme) */
.hero__portrait { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.hero__portrait-frame {
  position: relative;
  border-radius: 20px 120px 20px 120px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-ink) 100%);
  box-shadow: var(--shadow-lg);
  /* 4:5 = format de l'image, qui est déjà coupée à la taille → aucun recadrage. */
  aspect-ratio: 4 / 5;
}
.hero__portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero__portrait::before {
  content: ""; position: absolute; right: -18px; bottom: -18px; width: 62%; height: 62%;
  background: var(--red); border-radius: 20px 90px 20px 90px; z-index: -1; opacity: .9;
}
.hero__badge {
  position: absolute; left: -14px; bottom: 26px; z-index: 3;
  background: #fff; color: var(--blue-ink); padding: .7rem 1.1rem; border-radius: 12px 26px 12px 26px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.1;
}
.hero__badge strong { font-weight: 900; font-size: 1.1rem; color: var(--blue-deep); }
.hero__badge em { font-style: normal; font-weight: 600; font-size: .76rem; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }

/* =================================================================
   Réseaux sociaux
   ================================================================= */
.social-follow {
  position: relative;
  z-index: 5;
  background: var(--white);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.2rem, 3vw, 2.4rem);
}
.social-follow__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(17rem, .85fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px 62px 22px 62px;
  background:
    radial-gradient(circle at 94% 12%, rgba(56,150,207,.42), transparent 30%),
    linear-gradient(125deg, var(--blue-ink) 0%, var(--blue-deep) 52%, var(--blue-600) 100%);
  box-shadow: 0 28px 65px -34px rgba(0,46,74,.72);
  color: #fff;
}
.social-follow__panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--red) 0%, #ff5a66 100%);
}
.social-follow__panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -5rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  border: 3rem solid rgba(255,255,255,.045);
  border-radius: 42% 58% 64% 36%;
  transform: rotate(-18deg);
}
.social-follow__copy { position: relative; z-index: 1; }
.social-follow__eyebrow {
  margin: 0 0 .6rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.social-follow__eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 3px;
  margin: 0 .65rem .2rem 0;
  border-radius: 3px;
  background: var(--red);
}
.social-follow__title {
  max-width: 15ch;
  color: #fff;
  font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.04;
}
.social-follow__text {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: rgba(255,255,255,.78);
  font-size: .98rem;
  line-height: 1.5;
}
.social-follow__links {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.social-link {
  position: relative;
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .8rem;
  padding: 1.1rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px 30px 14px 30px;
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.social-link:hover {
  transform: translateY(-5px);
  background: #fff;
  color: var(--blue-ink);
  text-decoration: none;
  box-shadow: 0 18px 36px -20px rgba(0,0,0,.55);
}
.social-link__icon {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 10px 20px 10px 20px;
  box-shadow: 0 8px 18px -12px rgba(0,0,0,.6);
}
.social-link__icon img {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}
.social-link__icon--facebook {
  background: #1877F2;
}
.social-link__icon--facebook img { width: 2.1rem; height: 2.1rem; }
.social-link__icon--x {
  background: #08090A;
}
.social-link__icon--x img { width: 1.65rem; height: 1.7rem; }
.social-link__icon--instagram {
  background: linear-gradient(145deg, #6f45bf 5%, #cf2e92 45%, #ed623b 72%, #f2c04b 100%);
}
.social-link__icon--instagram img { width: 1.9rem; height: 1.9rem; }
.social-link__icon--linkedin { background: #0A66C2; }
.social-link__icon--linkedin img { width: 1.9rem; height: 1.9rem; }
.social-link__icon--youtube { background: #FF0000; }
.social-link__icon--youtube img { width: 1.95rem; height: 1.95rem; }
.social-link__icon--tiktok,
.social-link__icon--threads { background: #08090A; }
.social-link__icon--bluesky { background: #1185FE; }
.social-link__icon--tiktok img,
.social-link__icon--threads img,
.social-link__icon--bluesky img { width: 1.85rem; height: 1.85rem; }
.social-link__label { font-size: 1.03rem; font-weight: 800; line-height: 1; }
.social-link__arrow {
  position: absolute;
  top: .85rem;
  right: 1rem;
  color: rgba(255,255,255,.72);
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.social-link:hover .social-link__arrow { transform: translate(2px, -2px); color: var(--red); }
@media (min-width: 521px) {
  .social-follow__links[data-social-count="1"] {
    grid-template-columns: minmax(10rem, 14rem);
  }
  .social-follow__links[data-social-count="2"] {
    grid-template-columns: repeat(2, minmax(9rem, 1fr));
  }
  /* 4 comptes : grille 2×2 (4 de front seraient trop étroits dans cette colonne).
     Aucune règle pour 3 → retour automatique à la ligne unique par défaut. */
  .social-follow__links[data-social-count="4"] {
    grid-template-columns: repeat(2, minmax(9rem, 1fr));
  }
}

/* =================================================================
   Séparateurs courbés / droits
   ================================================================= */
.section-curve { position: absolute; left: 0; width: 100%; line-height: 0; z-index: 3; pointer-events: none; }
.section-curve svg { width: 100%; height: clamp(60px, 8vw, 120px); display: block; }
.section-curve--bottom { bottom: -1px; }
.section-curve--top { top: -1px; }
.section-curve svg path { fill: #fff; }
.section-curve--blue svg path { fill: var(--white); }      /* bas de la section bleue -> vers le blanc */
.section-curve--paper svg path { fill: var(--white); }

/* =================================================================
   Bandeau citation « porte de l'Est »
   ================================================================= */
.statement { background: var(--white); padding-block: clamp(2.6rem, 6vw, 4.2rem); }
.statement__text {
  font-weight: 800; letter-spacing: -.02em; text-align: center; color: var(--blue-ink);
  font-size: clamp(1.3rem, 1rem + 1.9vw, 2.15rem); line-height: 1.25; max-width: min(90%, 52rem); margin-inline: auto;
}
.statement__text strong { color: var(--red); }

/* =================================================================
   Parcours
   ================================================================= */
.parcours { background: var(--white); }
.parcours__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.framed-photo {
  position: relative; border-radius: 18px 90px 18px 90px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}
.framed-photo::after { content: ""; position: absolute; inset: 0; border: 3px solid rgba(255,255,255,.6); border-radius: inherit; pointer-events: none; }
.framed-photo img { width: 100%; height: 100%; object-fit: cover; }
.parcours__media { position: relative; }
.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.facts li { background: #fff; border-radius: 12px; padding: 1rem .9rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .2rem; }
.facts strong { font-weight: 900; font-size: 1.55rem; color: var(--blue); line-height: 1; }
.facts span { font-size: .76rem; color: var(--slate); line-height: 1.25; }

.parcours__content p { color: var(--slate); margin: 0 0 1.1rem; }
.parcours__content .section-title { margin-bottom: 1.4rem; }
.pull {
  border-left: 4px solid var(--red); padding: .2rem 0 .2rem 1.2rem; margin-top: 1.4rem !important;
  font-weight: 700; font-style: italic; color: var(--blue-ink) !important; font-size: 1.12rem;
}
.parcours__cta { margin: 1.8rem 0 0; }

/* =================================================================
   Priorités (section bleue)
   ================================================================= */
.section--blue { background: linear-gradient(165deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; }
.section--paper { background: var(--paper); }
/* Plus de respiration en haut/bas car cette section a des vagues courbes qui chevauchent le contenu */
.priorites { padding-block: clamp(6.5rem, 12vw, 11rem); }
/* Aucune déclaration grid-template-rows ici : le subgrid des cartes s'aligne sur
   les rangées implicites, et un gabarit figé laisserait du vide dès que le nombre
   de priorités change (la liste est éditable depuis /admin). */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.card {
  /* subgrid : chaque rangée (en-tête / titre / accroche / texte) s'aligne d'une
     carte à l'autre → les blocs restent à la même hauteur d'une carte à l'autre. */
  display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0;
  background: #fff; border-radius: var(--radius-lg) var(--radius) var(--radius-lg) var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--blue), var(--red)); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.card__icon { width: 56px; height: 56px; border-radius: 14px 26px 14px 26px; background: var(--blue-050); display: grid; place-items: center; }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card__num { font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--blue-100); }
.card__title { font-weight: 800; font-size: 1.3rem; color: var(--blue-ink); margin-bottom: .6rem; }
.card__lead { font-weight: 700; color: var(--blue-ink); font-size: 1.02rem; margin: 0 0 .7rem; }
.card__text { color: var(--slate); font-size: .98rem; margin: 0; }
.card__text p { margin: 0 0 .7rem; }
.card__text p:last-child { margin-bottom: 0; }
/* Nombre de colonnes selon le nombre de priorités affichées (data-card-count est
   écrit dans le HTML et recalculé par le JS). Confiné au-delà du point de rupture
   mobile, qui impose une seule colonne. */
@media (min-width: 861px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards[data-card-count="1"] { grid-template-columns: minmax(0, 460px); justify-content: center; }
  .cards[data-card-count="2"],
  .cards[data-card-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.priorites__kicker {
  text-align: center; margin: clamp(2.4rem, 5vw, 3.6rem) auto 0; max-width: 30ch;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); font-weight: 700; color: rgba(255,255,255,.95);
}
.priorites__kicker strong { color: #fff; border-bottom: 3px solid var(--red); }

/* =================================================================
   Bilan et engagement — Timeline (le même balisage sert aux deux sections)
   ================================================================= */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--blue), var(--blue-100)); border-radius: 3px; }
.timeline__item { position: relative; padding: 0 0 2.2rem 3.2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: 0; top: 4px; width: 25px; height: 25px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 0 0 5px var(--blue-050); }
.timeline__item:nth-child(even) .timeline__dot { border-color: var(--red); box-shadow: 0 0 0 5px var(--red-050); }
.timeline__item h3 { font-weight: 800; font-size: 1.2rem; color: var(--blue-ink); margin-bottom: .3rem; }
.timeline__item p { color: var(--slate); margin: 0; }

/* Fond alterné pour la section « Son engagement » */
.section--paper { background: var(--paper); }

/* Convictions démocratiques — bloc de prose */
.convictions__body { max-width: 820px; }
.convictions__body p { color: var(--slate); }

/* Boutons vers la page biographie et retour depuis celle-ci */
.parcours__cta { margin: 1.8rem 0 0; }
.parcours-page__cta { max-width: 820px; margin: 2rem auto 0; }

/* =================================================================
   Convictions démocratiques
   ================================================================= */
.convictions__body { max-width: 820px; }
.convictions__body p { color: var(--slate); }

/* =================================================================
   Moments — galerie + grande citation
   ================================================================= */
.section--ink { background: var(--blue-ink); color: #fff; position: relative; }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.gallery__item { margin: 0; overflow: hidden; border-radius: 16px; position: relative; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }

.big-quote { text-align: center; max-width: 800px; margin: 0 auto; }
.big-quote p { font-weight: 800; font-size: clamp(1.4rem, 1rem + 2vw, 2.3rem); letter-spacing: -.02em; line-height: 1.25; margin: 0 0 1rem; }
.big-quote cite { font-style: normal; font-weight: 600; color: var(--blue-200); letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.big-quote::before { content: ""; display: block; width: 54px; height: 4px; background: var(--red); border-radius: 3px; margin: 0 auto 1.6rem; }

/* =================================================================
   Contact
   ================================================================= */
.contact { background: var(--white); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__intro p { color: var(--slate); }
.contact__channels { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact__channels li { display: flex; flex-direction: column; gap: .15rem; padding-left: 1.1rem; border-left: 3px solid var(--blue-100); color: var(--slate); font-size: .95rem; }
.contact__channel-label { font-weight: 800; color: var(--blue-ink); }

/* Formulaire */
.contact__form-wrap {
  background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow); border-top: 5px solid var(--red);
}
.contact-form { display: grid; gap: 1.15rem; }
.turnstile-wrap { min-height: 65px; overflow: hidden; }
.header-actions--push { margin-left: auto; }
.site-footer__legal--plain { border-top: 0; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field label { font-weight: 700; font-size: .9rem; color: var(--blue-ink); }
.field .opt { font-weight: 500; color: var(--grey-400); }
.req { color: var(--red); }
.field input, .field textarea, .select-wrap select {
  font-family: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: .8rem .95rem; border: 1.5px solid var(--grey-200); border-radius: 11px; background: var(--paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .select-wrap select:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0,121,194,.13);
}
.field input.invalid, .field textarea.invalid, .select-wrap select.invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(235,31,47,.12); }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem; }
.select-wrap__chevron { position: absolute; right: 1rem; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: translateY(-65%) rotate(45deg); pointer-events: none; }

/* Honeypot caché */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Consentement Loi 25 */
.consent { background: var(--blue-050); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: .8rem; }
.consent__check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .9rem; color: var(--ink); font-weight: 500; cursor: pointer; }
.consent__check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); cursor: pointer; }
.loi25 { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--slate); margin: 0; line-height: 1.45; }
.loi25__icon { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.loi25 strong { color: var(--blue-deep); }

/* Bouton avec spinner */
#submitBtn { position: relative; }
.btn__spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-sending .btn__spinner { display: inline-block; }
.is-sending .btn__label { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin: 0; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form-status.is-error { color: var(--red-700); }
.form-status.is-success { color: #1a7a3c; }

.form-success {
  text-align: center; padding: 1.4rem .5rem;
}
.form-success svg { width: 60px; height: 60px; margin: 0 auto .8rem; display: block; }
.form-success h3 { color: var(--blue-ink); font-size: 1.4rem; font-weight: 800; margin-bottom: .4rem; }
.form-success p { color: var(--slate); margin: 0; }

/* =================================================================
   Pied de page
   ================================================================= */
.site-footer { background: var(--blue-ink); color: rgba(255,255,255,.82); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__brand img { height: 64px; width: auto; margin-bottom: 1rem; }
.site-footer__name { font-weight: 900; font-size: 1.35rem; color: #fff; margin: 0; letter-spacing: -.02em; }
.site-footer__role { margin: .2rem 0 0; font-size: .95rem; color: var(--blue-200); }
.site-footer__nav { display: flex; flex-direction: column; gap: .7rem; align-content: start; }
.site-footer__nav a { color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__legal { padding-block: 1.6rem 2.4rem; display: grid; gap: .5rem; }
.loi25-mini { font-size: .82rem; color: var(--blue-200); margin: 0; }
.legal-auth { font-size: .82rem; color: rgba(255,255,255,.6); margin: 0; font-style: italic; }
.copy { font-size: .82rem; color: rgba(255,255,255,.55); margin: .4rem 0 0; }

/* =================================================================
   Menu mobile + responsive
   ================================================================= */
@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: .5rem var(--pad) 1.5rem;
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .35s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav__link { color: var(--ink) !important; padding: 1rem .2rem; border-bottom: 1px solid var(--grey-200); }
  .main-nav__link::after { display: none; }
  body.nav-open { overflow: hidden; }
  /* 8px = hauteur d'une barre (3) + interligne (5) : les deux barres se
     rejoignent exactement au centre pour former la croix. */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  /* Menu ouvert : en-tête bleu plein, logo blanc, croix BLANCHE — partout, peu importe le défilement */
  body.nav-open .site-header { background: var(--blue); box-shadow: none; backdrop-filter: none; }
  body.nav-open .site-header .brand__logo--white { display: block; }
  body.nav-open .site-header .brand__logo--color { display: none; }
  body.nav-open .site-header .lang-switch { border-color: rgba(255, 255, 255, .45); }
  body.nav-open .site-header .lang-btn { color: rgba(255, 255, 255, .9); }
  body.nav-open .site-header .lang-btn.is-active { background: #fff; color: var(--blue-deep); }
  body.nav-open .site-header .nav-toggle span { background: #fff; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__portrait { order: -1; max-width: 300px; margin-bottom: 1rem; }
  .hero__lead { max-width: 46ch; }
  .social-follow__panel { grid-template-columns: 1fr; }
  .social-follow__title { max-width: 22ch; }
  .parcours__grid { grid-template-columns: 1fr; }
  .parcours__media { max-width: 460px; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .social-follow__panel { padding: 1.65rem 1.35rem 1.45rem; border-radius: 18px 42px 18px 42px; }
  .social-follow__links { grid-template-columns: 1fr; }
  .social-link {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: .85rem 1rem;
  }
  .social-link__arrow { position: static; margin-left: auto; }
  .lang-switch { padding: .15rem; }
}

/* =================================================================
   Animations au défilement
   ================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .1s; }
.cards .reveal:nth-child(3) { transition-delay: .2s; }
.cards .reveal:nth-child(4) { transition-delay: .3s; }
.cards .reveal:nth-child(5) { transition-delay: .4s; }
.cards .reveal:nth-child(6) { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .gallery__item img, .btn { transition: none !important; }
}

/* =================================================================
   Pages légales (politique de confidentialité)
   ================================================================= */
.site-header--solid { position: sticky; background: #fff; box-shadow: var(--shadow-sm); height: 68px; }
.site-header--solid .brand__logo--white { display: none; }
.site-header--solid .brand__logo--color { display: block; }
.site-header--solid .lang-switch { border-color: var(--grey-200); }
.site-header--solid .lang-btn { color: var(--slate); }
.site-header--solid .lang-btn.is-active { background: var(--blue); color: #fff; }
/* display: inline (pas inline-flex) : la flèche et le texte restent dans le même
   flux, donc le soulignement au survol est continu au lieu d'être coupé par le gap. */
.back-link { display: inline; color: var(--blue-600); font-weight: 700; font-size: .92rem; }
.back-link::before { content: "←"; font-size: 1.1em; margin-right: .4rem; }

.legal { background: var(--paper); padding-bottom: clamp(3rem, 7vw, 5rem); }
.legal__hero { background: linear-gradient(165deg, var(--blue-deep) 0%, var(--blue-ink) 100%); color: #fff; padding: clamp(2.4rem, 6vw, 4rem) 0 clamp(3.4rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.legal__hero .container { position: relative; z-index: 2; }
.legal__hero h1 { font-weight: 900; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); letter-spacing: -.025em; }
.legal__hero p { color: var(--blue-100); margin: .6rem 0 0; }
.legal__flame { position: absolute; right: clamp(.75rem, 2.5vw, 2.5rem); top: 50%; transform: translateY(-50%); width: min(220px, 26%); max-height: 72%; object-fit: contain; opacity: .07; filter: saturate(0); z-index: 1; }

.legal-content {
  max-width: 840px; margin: clamp(-2.6rem, -4vw, -3.4rem) auto 0; position: relative; z-index: 5;
  background: #fff; padding: clamp(1.6rem, 4vw, 3.2rem); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border-top: 5px solid var(--red);
}
.legal-content h2 { color: var(--blue-ink); font-weight: 800; font-size: 1.3rem; margin: 2.2rem 0 .6rem; }
.legal-content h2:first-of-type { margin-top: .5rem; }
.legal-content p, .legal-content li { color: var(--slate); }
.legal-content ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal-content strong { color: var(--blue-ink); }
.legal-callout { background: var(--blue-050); border-left: 4px solid var(--blue); padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.2rem 0; }
.legal-callout p { margin: 0; color: var(--blue-deep); font-size: .95rem; }
.legal-updated { font-size: .85rem; color: var(--grey-400); margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--grey-200); }
.legal-note { font-size: .82rem; background: var(--red-050); border: 1px dashed var(--red); color: var(--red-700); padding: .7rem .9rem; border-radius: 10px; }
.parcours-page__cta { max-width: 820px; margin: 2rem auto 0; }
