/* =========================================================================
   TOKENS
   ========================================================================= */
:root {
  --rouge: #e83d3f;
  --bleu: #4a66ae;
  --gris: #e2e2e1;
  --gris-fonce: #888;
  --encre: #1a1a1a;
  --encre-doux: #444;
  --blanc: #ffffff;

  --font-title: 'Hammersmith One', sans-serif;
  --font-body: 'Noto Serif', Georgia, serif;
  --font-tech: 'IBM Plex Mono', monospace;

  --max-width: 1180px;
  --max-text: 680px;

  --section-pad-y: clamp(80px, 12vw, 160px);
  --section-pad-x: clamp(24px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Espace de part et d'autre des traits fins autour du bloc actualités :
     mêmes valeurs utilisées avant ET après chaque trait, pour que les deux
     espaces (header ↔ actus, actus ↔ section suivante) soient identiques et
     que le trait tombe exactement à mi-chemin. */
  --actus-gap: clamp(56px, 6vw, 80px);
}

/* =========================================================================
   RESET
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--encre);
  background: var(--blanc);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* =========================================================================
   TYPOGRAPHIE
   ========================================================================= */
.title {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--encre);
}
.hero-title { font-size: clamp(48px, 6vw, 88px); }
.section-title { font-size: clamp(34px, 4.5vw, 56px); }
.sub-title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }

.eyebrow {
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 20px;
  display: inline-block;
}
.eyebrow.bleu { color: var(--bleu); }

p { font-family: var(--font-body); }
p.lead {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--encre-doux);
}

.tech {
  font-family: var(--font-tech);
  font-feature-settings: "tnum";
}

/* =========================================================================
   LAYOUT
   ========================================================================= */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}
.section.tight { padding-top: 80px; padding-bottom: 80px; }
.section.grey { background: var(--gris); }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.3s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: var(--gris);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 68px;
  width: auto;
  transition: height 0.3s var(--ease);
}
.nav.scrolled .nav-logo img { height: 52px; }
.nav-logo-text {
  font-family: var(--font-title);
  font-size: 15px;
  line-height: 1.2;
  color: var(--bleu);
  max-width: 180px;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre-doux);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--rouge);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover {
  color: var(--rouge);
}
.nav-links a:hover::after {
  width: 100%;
}
/* Scrollspy : section active sur fond rouge */
.nav-links a.active {
  color: var(--blanc);
  background: var(--rouge);
  padding: 6px 12px;
}
.nav-links a.active:hover {
  color: var(--blanc);
  background: #c52f31;
}
.nav-links a.active::after {
  display: none;
}
.nav-cta {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--rouge);
  color: var(--blanc) !important;
  padding: 10px 18px !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #c52f31; color: var(--blanc); }

@media (max-width: 880px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-logo-text { display: none; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: var(--actus-gap);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  width: 100%;
}
.hero-content { max-width: 620px; }
.hero-content .eyebrow { opacity: 0; transform: translateY(12px); animation: fadeUp 0.7s var(--ease) 0.2s forwards; }
.hero-content .hero-title { opacity: 0; transform: translateY(20px); animation: fadeUp 0.9s var(--ease) 0.4s forwards; }
.hero-content .hero-lead { opacity: 0; transform: translateY(20px); animation: fadeUp 0.9s var(--ease) 0.65s forwards; margin-top: 28px; }
.hero-content .hero-actions { opacity: 0; transform: translateY(20px); animation: fadeUp 0.9s var(--ease) 0.85s forwards; margin-top: 40px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: heroImg 1.2s var(--ease) 0.3s forwards;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 6s var(--ease);
}
.hero-image:hover img { transform: scale(1.04); }
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(26,26,26,0.08);
  pointer-events: none;
}
@keyframes heroImg {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-image { aspect-ratio: 1/1; max-height: 500px; }
  .hero { min-height: auto; padding-top: 120px; }
}

/* =========================================================================
   BOUTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--rouge);
  color: var(--blanc);
}
.btn-primary:hover {
  background: #c52f31;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--encre);
  border-color: var(--encre);
}
.btn-ghost:hover {
  background: var(--encre);
  color: var(--blanc);
}
.btn-link {
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre);
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--encre);
  transition: color 0.2s, border-color 0.2s;
}
.btn-link:hover { color: var(--rouge); border-color: var(--rouge); }

/* =========================================================================
   REVEAL ANIMATIONS
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.40s; }

/* =========================================================================
   SECTION : INTRO NARRATIVE
   ========================================================================= */
.intro-narrative {
  max-width: 820px;
  margin: 0 auto;
}
.intro-narrative .section-title { margin-bottom: 36px; }
.intro-narrative p {
  font-size: clamp(19px, 1.4vw, 22px);
  line-height: 1.6;
  color: var(--encre-doux);
}
.intro-narrative p + p { margin-top: 20px; }

/* Mise en page deux colonnes : texte + illustration */
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.intro-grid .intro-narrative { max-width: 620px; margin: 0; }
.intro-grid .section-title { font-size: clamp(28px, 3.2vw, 42px); }
.intro-grid p { font-size: clamp(17px, 1.2vw, 19px); }
.intro-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.intro-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}
.intro-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(26,26,26,0.08);
  pointer-events: none;
}
/* Bandeau « dans le cadre de » France 2030 */
.intro-france2030 {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--gris);
}
.intro-france2030 img {
  height: 64px;
  width: auto;
}
.intro-france2030 span {
  font-family: var(--font-tech);
  font-size: 13px;
  line-height: 1.5;
  color: var(--encre-doux);
  letter-spacing: 0.02em;
}
@media (max-width: 880px) {
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-media { aspect-ratio: 16/10; }
}

/* =========================================================================
   SECTION : 6 POINTS
   ========================================================================= */
.points-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 80px;
}
.points-header .section-title { max-width: 460px; }
.points-header p { color: var(--encre-doux); max-width: 420px; }
.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.point {
  background: var(--blanc);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.point::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  background: linear-gradient(to bottom, rgba(232,61,63,0.45), rgba(232,61,63,0));
  pointer-events: none;
}
.point:nth-child(3n+2)::before {
  background: linear-gradient(to bottom, rgba(74,102,174,0.45), rgba(74,102,174,0));
}
.point:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.18);
}
.point-num {
  font-family: var(--font-tech);
  font-size: 13px;
  color: var(--rouge);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.point:nth-child(3n+2) .point-num { color: var(--bleu); }
.point-title {
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--encre);
  max-width: 280px;
}
.point-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--encre-doux);
}

@media (max-width: 880px) {
  .points-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .points-grid { grid-template-columns: 1fr; gap: 16px; }
  .point { padding: 28px 24px; }
}

/* Séparateur ligne blanche fine entre 6 points et Panel */
.section-divider { background: var(--blanc); height: 1px; }
.section.grey:has(+ .section-divider) { padding-bottom: 56px; }
.section-divider + .panel-section { padding-top: 56px; }

/* =========================================================================
   SECTION : PANEL
   ========================================================================= */
.panel-section { background: var(--gris); }
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.panel-text .section-title { margin-bottom: 28px; }
.panel-text p { color: var(--encre-doux); max-width: 460px; }

.panel-numbers {
  display: grid;
  gap: 24px;
}
.panel-card {
  background: var(--blanc);
  padding: 36px 40px;
  display: grid;
  /* minmax(0,…) : sans ça le min-width:auto de la piste vaut la largeur du
     mot le plus long (« socio-démographiques. ») et élargit la carte. */
  grid-template-columns: clamp(96px, 11vw, 130px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.panel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.18);
}
.panel-card-num {
  font-family: var(--font-title);
  font-size: clamp(64px, 8vw, 96px);
  line-height: 0.9;
  color: var(--rouge);
  text-align: center;
}
.panel-card:nth-child(2) .panel-card-num { color: var(--bleu); }
.panel-card:nth-child(3) .panel-card-num { color: var(--encre); }

.panel-card-label {
  font-family: var(--font-title);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--encre);
}
.panel-card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--encre-doux);
}
.panel-card-label,
.panel-card-desc { overflow-wrap: break-word; }

/* CTA vers la page « Les citoyen.nes » (les pictogrammes sont ceux de cette
   page : ils apparaissent quand le bloc .reveal parent entre dans l'écran). */
.cta-citoyens {
  --accent: var(--rouge);
  margin-top: 36px;
  max-width: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: center;
  background: var(--blanc);
  padding: 24px 28px;
  border-left: 3px solid var(--rouge);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cta-citoyens:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.18);
}
.cta-citoyens .cit-glyphs { grid-column: 1 / -1; width: 180px; }
.cta-citoyens-text { display: block; }
.cta-citoyens-title {
  display: block;
  font-family: var(--font-title);
  font-size: 21px;
  line-height: 1.2;
  color: var(--encre);
  transition: color 0.2s var(--ease);
}
.cta-citoyens-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-doux);
}
.cta-citoyens-arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rouge);
  color: var(--blanc);
  font-family: var(--font-tech);
  font-size: 18px;
  transition: transform 0.3s var(--ease), background 0.2s var(--ease);
}
.cta-citoyens:hover .cta-citoyens-title { color: var(--rouge); }
.cta-citoyens:hover .cta-citoyens-arrow { transform: translateX(4px); background: #c52f31; }

@media (max-width: 880px) {
  .panel-grid { grid-template-columns: 1fr; gap: 48px; }
  .panel-card { padding: 28px 24px; gap: 20px; }
}
@media (max-width: 480px) {
  /* Sur très petits écrans, le chiffre passe au-dessus du texte :
     côte à côte il ne reste plus assez de place pour le libellé. */
  .panel-card { grid-template-columns: 1fr; gap: 12px; }
  .panel-card-num { text-align: left; }
}

/* =========================================================================
   SECTION : BANDEAU IMAGE PLEINE LARGEUR
   ========================================================================= */
.full-image {
  width: 100%;
  height: clamp(280px, 50vh, 520px);
  overflow: hidden;
  position: relative;
}
.full-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.8s var(--ease);
}
.full-image:hover img { transform: scale(1.03); }

/* =========================================================================
   SECTION : CALENDRIER
   ========================================================================= */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.session {
  padding: 32px 24px;
  border-top: 3px solid var(--rouge);
  background: var(--blanc);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.session:nth-child(2) { border-top-color: var(--bleu); }
.session:nth-child(3) { border-top-color: var(--rouge); }
.session:nth-child(4) { border-top-color: var(--bleu); }
.session:hover { transform: translateY(-6px); }
.session-num {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gris-fonce);
  margin-bottom: 16px;
}
.session-date {
  font-family: var(--font-title);
  font-size: 28px;
  line-height: 1.15;
  color: var(--encre);
  margin-bottom: 8px;
}
.session-month {
  font-family: var(--font-tech);
  font-size: 13px;
  color: var(--encre-doux);
}
.calendar-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--gris);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-tech);
  font-size: 14px;
  color: var(--encre-doux);
}

/* Photo du lieu (Atelier, Sciences Po Lille) */
.venue-figure {
  margin-top: 48px;
  position: relative;
}
.venue-figure img {
  width: 100%;
  height: clamp(260px, 42vh, 460px);
  object-fit: cover;
}
.venue-figure figcaption {
  margin-top: 12px;
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gris-fonce);
  text-transform: uppercase;
}

/* Jalons clés mis en avant : recrutement & propositions */
.calendar-milestones {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.milestone {
  background: var(--encre);
  color: var(--blanc);
  padding: 32px 36px;
}
.milestone:nth-child(2) { background: var(--rouge); }
.milestone-label {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.milestone-title {
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 8px;
}
.milestone-date {
  font-family: var(--font-tech);
  font-size: 15px;
  color: var(--blanc);
}
@media (max-width: 880px) {
  .calendar-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .calendar-milestones { grid-template-columns: 1fr; gap: 16px; }
}

/* =========================================================================
   SECTION : LIVRABLE
   ========================================================================= */
.livrable-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.livrable-img {
  aspect-ratio: 5/6;
  overflow: hidden;
  position: relative;
}
.livrable-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.livrable-text .section-title { margin-bottom: 32px; }
.livrable-text p { color: var(--encre-doux); max-width: 480px; margin-bottom: 16px; }
.livrable-quote {
  margin-top: 40px;
  padding-left: 24px;
  border-left: 3px solid var(--rouge);
  font-style: italic;
  font-size: 18px;
  color: var(--encre);
  max-width: 480px;
}
@media (max-width: 880px) {
  .livrable-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* =========================================================================
   SECTION : GOUVERNANCE
   ========================================================================= */
.gov-header {
  max-width: 720px;
  margin-bottom: 64px;
}
.gov-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.gov-col {
  padding-top: 24px;
  border-top: 1px solid var(--gris);
}
.gov-col-label {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 16px;
}
.gov-col h3 {
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--encre);
}
.gov-col p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--encre-doux);
}
.gov-partners {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--gris);
}
.gov-partners-label {
  font-family: var(--font-tech);
  font-size: 13px;
  color: var(--gris-fonce);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 32px;
}
.gov-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
}
.gov-logos img {
  height: 56px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.gov-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}
.gov-support {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--gris);
}
.gov-support p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--encre-doux);
  max-width: 620px;
  margin-top: 8px;
}
@media (max-width: 880px) {
  .gov-cols { grid-template-columns: 1fr; gap: 32px; }
  .gov-logos { gap: 28px; }
  .gov-logos img { height: 44px; }
}

/* =========================================================================
   SECTION : NEWSLETTER (BANDEAU DOMINANT)
   ========================================================================= */
.newsletter {
  background: var(--rouge);
  color: var(--blanc);
  padding: clamp(80px, 10vw, 140px) var(--section-pad-x);
  position: relative;
  overflow: hidden;
}
.newsletter-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.newsletter h2 {
  font-family: var(--font-title);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  color: var(--blanc);
  margin-bottom: 24px;
}
.newsletter p {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  max-width: 460px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.newsletter-formlabel {
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--blanc);
  margin-bottom: -4px;
}
.newsletter-input {
  display: flex;
  background: var(--blanc);
  padding: 6px;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.newsletter-input input {
  flex: 1;
  /* Sans min-width:0 l'input refuse de descendre sous sa taille intrinsèque :
     la ligne reste plus large que l'écran et le bouton sort du cadre. */
  min-width: 0;
  border: none;
  background: transparent;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--encre);
  outline: none;
}
.newsletter-input input::placeholder { color: var(--gris-fonce); }
.newsletter-input button {
  background: var(--encre);
  color: var(--blanc);
  padding: 18px 28px;
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.2s var(--ease);
}
.newsletter-input button:hover { background: #000; }
.newsletter small {
  display: block;
  font-family: var(--font-tech);
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.04em;
}
.newsletter-social {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.newsletter-social span {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.newsletter-social a {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blanc);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.newsletter-social a:hover { border-bottom-color: var(--blanc); opacity: 0.85; }
@media (max-width: 880px) {
  .newsletter-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  /* Sous ~432px le bouton sortait du cadre : champ et bouton sont empilés,
     côte à côte il ne reste plus assez de place pour saisir une adresse. */
  .newsletter-input { flex-direction: column; align-items: stretch; gap: 6px; }
  .newsletter-input button { width: 100%; }
}

.sib-form-message-panel {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font-tech);
  font-size: 13px;
}

.sib-form-message-panel.sib-form-message-panel--active {
  display: block;
}

.input--hidden {
  display: none !important;
}

/* =========================================================================
   SECTION : RESSOURCES
   ========================================================================= */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.resource {
  display: block;
  padding: 32px 28px 28px;
  border-top: 1px solid var(--gris);
  transition: border-color 0.3s var(--ease);
  cursor: pointer;
}
.resource:hover { border-top-color: var(--rouge); }
.resource-source {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris-fonce);
  margin-bottom: 16px;
  transition: color 0.3s var(--ease);
}
.resource:hover .resource-source { color: var(--rouge); }
.resource-title {
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 1.25;
  color: var(--encre);
  margin-bottom: 16px;
}
.resource-arrow {
  font-family: var(--font-tech);
  font-size: 13px;
  color: var(--encre-doux);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  display: inline-block;
}
.resource:hover .resource-arrow {
  color: var(--rouge);
  transform: translateX(6px);
}
@media (max-width: 880px) {
  .resources-grid { grid-template-columns: 1fr; gap: 0; }
  .resource { padding: 28px 0; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--encre);
  color: var(--blanc);
  padding: 80px var(--section-pad-x) 32px;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.footer-logo img {
  height: 64px;
  width: auto;
}
.footer-logo span {
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 1.2;
  color: var(--blanc);
  letter-spacing: 0.01em;
}
.footer-brand p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  max-width: 360px;
}
.footer-col h4 {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.92);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--rouge); }
/* Sous-titre « Contact presse » : même traitement que les h4 du footer,
   pour distinguer l'adresse presse de l'adresse de contact générale. */
.footer-contact-role { margin-top: 24px; }
.footer-contact-role > span {
  display: block;
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
/* Le <wbr> des adresses mail n'est utile qu'en mono-colonne : neutralisé ici,
   sinon il casse l'adresse en deux lignes alors qu'elle tient sur une. */
.footer-col ul li a wbr { display: none; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-tech);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.footer-bottom a {
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-bottom a:hover {
  color: var(--rouge);
  border-bottom-color: var(--rouge);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  /* Une seule colonne : sur deux colonnes il ne reste qu'environ 150px,
     trop peu pour afficher les adresses mail sans les hacher. */
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  /* Ces deux règles ne valent que sous 560px. Au-dessus, c'est la largeur
     min-content des adresses mail qui dimensionne la colonne Contact et les
     garde sur une seule ligne : y toucher décalerait le footer en desktop. */
  .footer-col { min-width: 0; }
  .footer-col ul li a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  /* Réactivé : la césure se fera après le @ plutôt qu'au milieu du domaine. */
  .footer-col ul li a wbr { display: inline; }
}

/* =========================================================================
   ACCESSIBILITÉ — focus
   ========================================================================= */
:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   SECTION : ACTUALITÉS (accueil)
   ========================================================================= */
.actus-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.actus-header .section-title { max-width: 560px; }

.actus-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Actu principale */
.actu-main {
  display: block;
  cursor: pointer;
  background: var(--blanc);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.actu-main:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,0.18); }
.actu-main-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.actu-main-img img { width: 100%; height: 100%; object-fit: cover; }
.actu-main-body { padding: 32px 36px 36px; }
.actu-date {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rouge);
  display: block;
  margin-bottom: 14px;
}
.actu-main-title {
  font-family: var(--font-title);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  color: var(--encre);
  margin-bottom: 14px;
}
.actu-main-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--encre-doux);
  max-width: 520px;
}

/* Actus secondaires */
.actus-secondary-list {
  display: grid;
  gap: 24px;
}
.actu-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  cursor: pointer;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gris);
}
.actu-card:last-child { border-bottom: none; padding-bottom: 0; }
/* Sans photo, le texte occupe toute la largeur au lieu de la colonne vignette. */
.actu-card > div:only-child { grid-column: 1 / -1; }
.actu-card-img {
  aspect-ratio: 1/1;
  overflow: hidden;
}
.actu-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.actu-card:hover .actu-card-img img { transform: scale(1.06); }
.actu-card-title {
  font-family: var(--font-title);
  font-size: 17px;
  line-height: 1.25;
  color: var(--encre);
  margin-top: 8px;
  transition: color 0.2s var(--ease);
}
.actu-card:hover .actu-card-title { color: var(--rouge); }

.actus-cta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.rss-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-doux);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.rss-link:hover { color: var(--rouge); border-bottom-color: var(--rouge); }
.page-header .rss-link { margin-top: 20px; }

/* Espace identique au-dessus et en dessous du bloc actualités, pour que les
   traits fins tombent exactement à mi-chemin entre chaque bloc (header ↔
   actus ↔ section « Pourquoi cette convention »). */
#actualites { padding-top: var(--actus-gap); padding-bottom: var(--actus-gap); }
#projet { padding-top: var(--actus-gap); }

/* Trait fin pleine largeur, au-dessus et en dessous du bloc actualités */
.full-hr {
  border: none;
  border-top: 1px solid #c7c7c5;
  margin: 0;
  width: 100%;
}

@media (max-width: 880px) {
  .actus-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================================
   PAGE : TOUTES LES ACTUALITÉS
   ========================================================================= */
.actus-list-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.actu-tile {
  display: block;
  cursor: pointer;
  background: var(--blanc);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.actu-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,0.18); }
.actu-tile-img { aspect-ratio: 4/3; overflow: hidden; }
.actu-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.actu-tile-body { padding: 20px 2px 2px; }
.actu-tile-title {
  font-family: var(--font-title);
  font-size: 19px;
  line-height: 1.25;
  color: var(--encre);
  margin-bottom: 8px;
}
.actu-tile-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--encre-doux);
}
.actus-empty {
  padding: 48px 0;
  color: var(--encre-doux);
  font-size: 17px;
}
@media (max-width: 880px) {
  .actus-list-page-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .actus-list-page-grid { grid-template-columns: 1fr; }
}

/* Petit fil d'ariane simple sur la page liste */
.page-header {
  padding-top: 160px;
  padding-bottom: 40px;
}
.page-header .eyebrow { margin-bottom: 16px; }

/* =========================================================================
   SECTION : ON EN PARLE (articles de presse, accueil)
   ========================================================================= */
/* Même respiration que le bloc actualités, entre les deux traits fins. */
#presse { padding-top: var(--actus-gap); padding-bottom: var(--actus-gap); }
.presse-header { margin-bottom: 40px; }
.presse-header .eyebrow { margin-bottom: 14px; }

/* Nombre de colonnes choisi selon le nombre d'articles (layout_presse_home) :
   --cols sur ordinateur, --cols-t sur tablette, 2 sur mobile. Une dernière
   ligne incomplète est centrée. Chaque case a sa propre bordure ; les marges
   négatives superposent celles des cases voisines en un trait unique. */
.presse-list {
  --n: var(--cols, 4);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 0 1px 1px;
}
.presse-list > li {
  display: flex;
  flex: 0 0 calc(100% / var(--n) + 1px);
  /* Sans min-width:0, un logo large élargit sa case au-delà de sa colonne. */
  min-width: 0;
  margin: 0 0 -1px -1px;
  border: 1px solid var(--gris);
}
@media (max-width: 1100px) {
  .presse-list { --n: var(--cols-t, 3); }
}
.presse-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  padding: 44px 24px 28px;
  background: var(--blanc);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.presse-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.18);
  position: relative;
  z-index: 1;
}
.presse-logo {
  height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Hauteur fixe, largeur plafonnée : les logos très allongés rapetissent,
   pour un poids visuel comparable d'un média à l'autre. */
.presse-logo img {
  height: 48px;
  max-width: min(190px, 100%);
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.presse-card:hover .presse-logo img { opacity: 1; transform: scale(1.05); }
.presse-logo-text {
  font-family: var(--font-title);
  font-size: 26px;
  color: var(--encre);
  text-align: center;
}
.presse-lire {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-doux);
  transition: color 0.2s var(--ease);
}
.presse-card:hover .presse-lire { color: var(--rouge); }
.presse-arrow { display: inline-block; transition: transform 0.2s var(--ease); }
.presse-card:hover .presse-arrow { transform: translate(2px, -2px); }

/* Mobile : deux médias par ligne. */
@media (max-width: 560px) {
  .presse-list { --n: var(--cols-m, 2); }
  .presse-card { padding: 28px 12px 20px; gap: 18px; }
  .presse-logo { height: 40px; }
  .presse-logo img { height: 34px; max-width: 100%; }
}

/* =========================================================================
   POP-IN ACTUALITÉ
   ========================================================================= */
.actu-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.72);
  z-index: 1000;
  padding: 40px 20px;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}
.actu-modal-overlay.open { display: flex; }
.actu-modal {
  background: var(--blanc);
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  animation: modalIn 0.3s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.actu-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--blanc);
  border: 1px solid var(--gris);
  font-family: var(--font-tech);
  font-size: 20px;
  line-height: 1;
  color: var(--encre);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}
.actu-modal-close:hover { background: var(--rouge); color: var(--blanc); border-color: var(--rouge); }
.actu-modal-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.actu-modal-img img { width: 100%; height: 100%; object-fit: cover; }
.actu-modal-video {
  background: var(--encre);
  display: flex;
  justify-content: center;
}
.actu-modal-video iframe {
  display: block;
  border: 0;
  width: 100%;
  aspect-ratio: 16/9;
}
/* Short (vertical) : hauteur limitée à l'écran. */
.actu-modal-video.is-short iframe {
  width: auto;
  height: min(78vh, 720px);
  aspect-ratio: 9/16;
  max-width: 100%;
}

/* Vignette en portrait (miniature de Short) : image entière sur fond flou. */
.actu-img-backdrop {
  position: absolute;
  inset: 0;
  filter: blur(24px) brightness(0.7);
  transform: scale(1.2);
}
.actu-card:hover .actu-card-img img.actu-img-backdrop { transform: scale(1.2); }
.actu-main-img img.actu-img-vertical,
.actu-card-img img.actu-img-vertical,
.actu-tile-img img.actu-img-vertical {
  position: relative;
  object-fit: contain;
}

/* Pastille « lecture » sur la vignette d'une actu vidéo. */
.actu-main-img, .actu-card-img, .actu-tile-img { position: relative; }
.actu-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--rouge);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.3s var(--ease);
}
.actu-play svg { width: 30px; height: 30px; fill: var(--blanc); margin-left: 3px; }
.actu-card-img .actu-play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.actu-card-img .actu-play svg { width: 20px; height: 20px; margin-left: 2px; }
a:hover .actu-play { transform: scale(1.1); }
.actu-modal-body { padding: 40px clamp(24px, 4vw, 56px) 56px; }
.actu-modal-date {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rouge);
  display: block;
  margin-bottom: 16px;
}
.actu-modal-title {
  font-family: var(--font-title);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  color: var(--encre);
  margin-bottom: 24px;
}
.actu-modal-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre-doux);
}
.actu-modal-text p { margin-bottom: 16px; }
.actu-modal-loading, .actu-modal-error {
  padding: 80px 40px;
  text-align: center;
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-doux);
}
body.modal-open { overflow: hidden; }

.actu-modal-share {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gris);
}
.actu-modal-share-label {
  display: block;
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre-doux);
  margin-bottom: 12px;
}
.actu-modal-share-links {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex-wrap: wrap;
}
.actu-share-link, .actu-share-copy {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--encre);
  padding-bottom: 3px;
  border: none;
  border-bottom: 1px solid var(--gris);
  background: none;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.actu-share-link:hover, .actu-share-copy:hover {
  color: var(--rouge);
  border-bottom-color: var(--rouge);
}
.actu-share-copy.copied {
  color: var(--bleu);
  border-bottom-color: var(--bleu);
}

/* =========================================================================
   PAGE : LES CITOYEN.NES (les-citoyens.php)
   Composition du panel tiré au sort. Les animations se déclenchent quand
   un élément .reveal reçoit .in-view (assets/site.js).
   ========================================================================= */
.page-citoyens { --accent: var(--rouge); }

/* Chiffre surligné au marqueur, dans la couleur d'accent de la section */
.cit-hl {
  padding: 0 0.06em;
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent) 30%, transparent));
  background-repeat: no-repeat;
  background-position: 0 74%;
  background-size: 100% 0.42em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
@keyframes citHl { from { background-size: 0% 0.42em; } }

/* ---------- En-tête ---------- */
.cit-hero { padding-bottom: 24px; }
.cit-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.cit-hero .section-title { margin-bottom: 24px; }
.cit-hero .cit-hl { animation: citHl 1s var(--ease) 0.5s both; }
.cit-hero .lead { max-width: 520px; }
.cit-hero-glyphs { display: flex; justify-content: flex-end; }
.cit-glyphs-hero { width: 100%; max-width: 480px; }

.cit-intro { padding-top: 48px; }

/* Photo de groupe, entre l'introduction et le sommaire */
.cit-photo { margin-top: 56px; }
.cit-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1696 / 1152;
  object-fit: cover;
}
.cit-photo figcaption {
  margin-top: 12px;
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris-fonce);
}

/* ---------- Pictogrammes « personne » ---------- */
.cit-glyphs {
  display: block;
  max-width: 100%;
  height: auto;
  color: var(--accent);
  overflow: visible;
}
.cit-glyph { transform-box: fill-box; transform-origin: center; }
.cit-glyph.c-rouge { color: var(--rouge); }
.cit-glyph.c-bleu { color: var(--bleu); }
.cit-glyph.c-encre { color: var(--encre); }
@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.in-view) .cit-glyph { opacity: 0; }
  .reveal.in-view .cit-glyph {
    animation: citGlyphIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0ms) both;
  }
  .reveal:not(.in-view) .cit-hl { background-size: 0% 0.42em; }
  .reveal.in-view .cit-hl { animation: citHl 0.9s var(--ease) 0.25s both; }
}
@keyframes citGlyphIn {
  from { opacity: 0; transform: scale(0.2); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Sommaire collant ---------- */
.cit-sommaire {
  position: sticky;
  top: 81px; /* hauteur de la nav dans son état « scrolled » */
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gris);
  border-bottom: 1px solid var(--gris);
  padding: 12px 0;
}
.cit-sommaire .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cit-sommaire-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris-fonce);
  white-space: nowrap;
}
.cit-sommaire ul {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Garde la place de l'outline de focus, rognée sinon par l'overflow. */
  padding: 4px;
  margin: -4px;
}
.cit-sommaire ul::-webkit-scrollbar { display: none; }
.cit-sommaire a {
  display: block;
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--encre-doux);
  padding: 7px 14px;
  border: 1px solid var(--gris);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.cit-sommaire a:hover { color: var(--rouge); border-color: var(--rouge); }
.cit-sommaire a.active { color: var(--blanc); background: var(--rouge); border-color: var(--rouge); }
@media (max-width: 880px) {
  .cit-sommaire-label { display: none; }
}

/* ---------- Sections de critère ---------- */
.cit-section {
  padding: var(--actus-gap) 0;
  scroll-margin-top: 140px;
}
.cit-section + .cit-section { border-top: 1px solid #c7c7c5; }
.cit-section-header { margin-bottom: 40px; max-width: 680px; }
.cit-section-num {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.cit-section-header .sub-title { font-size: clamp(28px, 3.4vw, 42px); }
.cit-section-intro {
  margin-top: 14px;
  color: var(--encre-doux);
  font-size: 17px;
}

/* ---------- Lignes « chiffre | pictogrammes » ---------- */
.cit-rows { border-bottom: 1px solid var(--gris); }
.cit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--gris);
}
.cit-row-text,
.cit-zones-item,
.cit-opinion-legend li {
  display: grid;
  grid-template-columns: clamp(64px, 7vw, 88px) minmax(0, 1fr);
  column-gap: 16px;
  align-items: baseline;
}
.cit-num {
  grid-row: span 2;
  font-family: var(--font-title);
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1;
  color: var(--encre);
  font-feature-settings: "tnum";
}
.cit-label {
  font-family: var(--font-title);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.25;
  color: var(--encre);
}
.cit-pct {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gris-fonce);
}
.cit-row .cit-glyphs { justify-self: end; }
@media (max-width: 720px) {
  .cit-row { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; }
  .cit-row .cit-glyphs { justify-self: start; }
}

/* ---------- Carte des zones ---------- */
.cit-carte {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.cit-carte-svg { width: 100%; height: auto; overflow: visible; }
.cit-zone {
  fill: color-mix(in srgb, var(--accent) 14%, var(--blanc));
  stroke: var(--blanc);
  stroke-width: 3;
  stroke-linejoin: round;
  transition: fill 0.3s var(--ease);
}
.cit-zone.is-hot { fill: color-mix(in srgb, var(--accent) 38%, var(--blanc)); }
.cit-pastille { pointer-events: none; transform-box: fill-box; transform-origin: center; }
.cit-pastille circle { fill: var(--accent); stroke: var(--blanc); stroke-width: 3; }
.cit-pastille text {
  font-family: var(--font-title);
  font-size: 26px;
  fill: var(--blanc);
}
.cit-pastille.is-hot circle { fill: var(--encre); }
@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.in-view) .cit-zone { opacity: 0; }
  .reveal.in-view .cit-zone { animation: citFadeIn 0.8s var(--ease) both; }
  .reveal:not(.in-view) .cit-pastille { opacity: 0; }
  .reveal.in-view .cit-pastille {
    animation: citGlyphIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--d) + 300ms) both;
  }
}
@keyframes citFadeIn { from { opacity: 0; } }
.cit-zones { border-bottom: 1px solid var(--gris); }
.cit-zones-item {
  padding: 16px 12px;
  border-top: 1px solid var(--gris);
  cursor: default;
  transition: background 0.2s var(--ease);
}
.cit-zones-item.is-hot { background: color-mix(in srgb, var(--accent) 10%, var(--blanc)); }
.cit-zones-item .cit-num { font-size: clamp(32px, 3.4vw, 44px); }
@media (max-width: 880px) {
  .cit-carte { grid-template-columns: 1fr; }
  .cit-carte-svg { max-width: 520px; margin: 0 auto; }
}

/* ---------- Encadré QPV ---------- */
.cit-callout {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  background: color-mix(in srgb, var(--accent) 7%, var(--blanc));
  border-left: 3px solid var(--accent);
  padding: 20px 28px;
}
.cit-callout-num {
  font-family: var(--font-title);
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1;
  color: var(--accent);
}
.cit-callout p {
  flex: 1 1 280px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--encre-doux);
  max-width: 560px;
}

/* ---------- Liste dépliable des situations professionnelles ---------- */
.cit-metiers { margin-top: 40px; }
.cit-metiers summary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  cursor: pointer;
  padding: 14px 22px;
  border: 1.5px solid var(--encre);
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--encre);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.cit-metiers summary::-webkit-details-marker { display: none; }
.cit-metiers summary:hover { background: var(--encre); color: var(--blanc); }
.cit-metiers-icon {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  transition: transform 0.3s var(--ease);
}
.cit-metiers-icon::before,
.cit-metiers-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  left: 0; right: 0; top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
}
.cit-metiers-icon::after { transform: rotate(90deg); }
.cit-metiers[open] .cit-metiers-icon { transform: rotate(45deg); }
.cit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.cit-chips li {
  font-size: 15px;
  line-height: 1.4;
  color: var(--encre);
  padding: 8px 14px;
  border: 1px solid var(--gris);
  background: var(--blanc);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cit-chips li:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .cit-metiers[open] .cit-chips li {
    animation: citChipIn 0.45s var(--ease) calc(var(--i) * 22ms) both;
  }
}
@keyframes citChipIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
}

/* ---------- Intérêt pour la politique : barre divergente ---------- */
.cit-opinion {
  --o1: var(--bleu);
  --o2: color-mix(in srgb, var(--bleu) 45%, var(--blanc));
  --o3: color-mix(in srgb, var(--rouge) 45%, var(--blanc));
  --o4: var(--rouge);
}
.cit-opinion-axis {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cit-opinion-axis span:first-child { color: var(--bleu); }
.cit-opinion-axis span:last-child { color: var(--rouge); }
.cit-opinion-bar {
  position: relative;
  display: flex;
  gap: 3px;
  height: clamp(44px, 6vw, 64px);
}
/* Repère central : la frontière entre « non » et « oui » */
.cit-opinion-bar::after {
  content: '';
  position: absolute;
  top: -10px; bottom: -10px;
  left: calc(var(--non) - 1px);
  width: 2px;
  background: var(--encre);
}
.cit-opinion-seg { flex-basis: 0; }
.cit-opinion-seg.non { transform-origin: right center; }
.cit-opinion-seg.oui { transform-origin: left center; }
.o1 { background: var(--o1); }
.o2 { background: var(--o2); }
.o3 { background: var(--o3); }
.o4 { background: var(--o4); }
@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.in-view) .cit-opinion-seg { transform: scaleX(0); }
  .reveal.in-view .cit-opinion-seg {
    animation: citBarIn 0.8s var(--ease) calc(var(--d) + 200ms) both;
  }
}
@keyframes citBarIn { from { transform: scaleX(0); } }
.cit-opinion-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.cit-opinion-legend li {
  grid-template-columns: minmax(0, 1fr);
  padding-top: 20px;
  border-top: 1px solid var(--gris);
}
.cit-opinion-legend .cit-swatch {
  width: 28px;
  height: 8px;
  margin-bottom: 14px;
}
.cit-opinion-legend .cit-num { grid-row: auto; margin-bottom: 6px; }
@media (max-width: 720px) {
  .cit-opinion-legend { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
  .cit-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cit-hero-glyphs { justify-content: flex-start; }
}
