/* =========================================================
   Congrès des Pionniers — La Côte d'Ivoire Souveraine
   ========================================================= */

:root {
  --navy: #1b2566;
  --navy-deep: #111843;
  --navy-ink: #0b102e;
  --red: #e3251d;
  --red-dark: #b81a13;
  --paper: #f5f3ee;
  --white: #ffffff;
  --ink: #12162e;
  --muted: #555b74;
  --line: #dcdbe3;
  --line-dark: rgba(255, 255, 255, .16);

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .6em 1.25em;
  font-family: var(--f-display); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn-lg { min-height: 52px; padding: .75em 1.6em; font-size: 1rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.main-nav ul a {
  font-family: var(--f-display); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--navy);
  padding: 6px 0; background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat;
  transition: background-size .3s var(--ease-out);
}
.main-nav ul a:hover, .main-nav ul a.is-current { background-size: 100% 2px; }
.nav-ctas { display: flex; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; }
.burger span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .main-nav ul { gap: 16px; }
  .main-nav .btn-outline { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .brand img { height: 44px; }
  .burger { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px;
    padding: 24px var(--gutter) 32px; background: #fff;
    transform: translateX(100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s .45s;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; font-size: 1.5rem; font-weight: 800; padding: 14px 0; border-bottom: 1px solid var(--line); background: none; }
  .main-nav .btn-outline { display: inline-flex; }
  .nav-ctas { flex-direction: column; }
  .nav-ctas .btn { min-height: 52px; }
}

/* =========================================================
   SLIDER / HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.slides { position: relative; height: clamp(600px, calc(100svh - var(--header-h) - 84px), 780px); }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  visibility: hidden;
  background: var(--navy);
}
.slide:nth-child(2) { background: var(--navy-deep); }
.slide:nth-child(3) { background: #18205a; }
.slide:nth-child(4) { background: var(--navy-ink); }
.slide.is-active { visibility: visible; z-index: 2; }
.slide.is-leaving { visibility: visible; z-index: 1; }

.slide-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  padding-block: 48px 96px;
}

/* Mot géant en fond, défilement lent */
.slide-bgword {
  position: absolute; left: 0; bottom: -0.12em; z-index: 1;
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(7rem, 22vw, 20rem); line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09);
  white-space: nowrap; pointer-events: none; user-select: none;
  transform: translateX(4%);
}
.slide.is-active .slide-bgword { animation: drift 14s linear forwards; }
@keyframes drift { from { transform: translateX(4%); } to { transform: translateX(-18%); } }

/* Texte : révélation ligne par ligne */
.kicker {
  font-family: var(--f-display); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 32px; height: 3px; background: var(--red); flex: none; transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease-out) .15s; }
.slide.is-active .kicker::before { transform: scaleX(1); }

.slide-title {
  font-weight: 900; font-stretch: 112%;
  font-size: clamp(2.6rem, 7vw, 6rem); line-height: .95; letter-spacing: -.025em;
  text-transform: uppercase; margin-bottom: 24px;
}
.slide-title--md { font-size: clamp(1.9rem, 3.7vw, 3.4rem); line-height: 1.02; text-transform: none; font-stretch: 105%; }
.slide-title .accent, .slide-lead .accent { color: var(--red); }
.slide-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 34em; color: rgba(255,255,255,.86); margin-bottom: 32px; }

.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); }
.slide.is-active .line > span { transform: none; }
.slide.is-active .line:nth-child(1) > span { transition-delay: .25s; }
.slide.is-active .line:nth-child(2) > span { transition-delay: .33s; }
.slide.is-active .line:nth-child(3) > span { transition-delay: .41s; }
.slide.is-active .line:nth-child(4) > span { transition-delay: .49s; }
.slide.is-active .slide-lead .line > span { transition-delay: .55s; }
.slide.is-active .kicker .line > span { transition-delay: .15s; }

.slide-ctas { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .8s var(--ease-out); }
.slide.is-active .slide-ctas { opacity: 1; transform: none; transition-delay: .7s; }

/* Visuels animés */
.slide-visual { display: flex; justify-content: center; align-items: center; min-height: 0; }

/* Torche */
.torch { width: min(100%, 300px); height: auto; overflow: visible; }
.torch .cup path { fill: #fff; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .9s var(--ease-out); }
.slide.is-active .torch .cup path { opacity: 1; transform: none; }
.slide.is-active .torch .cup path:nth-child(1) { transition-delay: .3s; }
.slide.is-active .torch .cup path:nth-child(2) { transition-delay: .4s; }
.slide.is-active .torch .cup path:nth-child(3) { transition-delay: .5s; }
.slide.is-active .torch .cup path:nth-child(4) { transition-delay: .6s; }
.torch .flame { transform-origin: 120px 214px; transform: scale(0); transition: transform 1.1s var(--ease-out) .7s; }
.slide.is-active .torch .flame { transform: scale(1); }
.flame-outer { fill: var(--red); transform-origin: 120px 214px; animation: flicker 2.6s ease-in-out infinite; }
.flame-inner { fill: var(--navy); transform-origin: 120px 200px; animation: flicker2 1.9s ease-in-out infinite; }
@keyframes flicker { 0%,100% { transform: scale(1,1) skewX(0); } 30% { transform: scale(.97,1.04) skewX(-2deg); } 60% { transform: scale(1.02,.97) skewX(1.5deg); } }
@keyframes flicker2 { 0%,100% { transform: scale(1); } 50% { transform: scale(.92,1.08) skewX(3deg); } }

/* Orbites (monde multipolaire) */
.orbits { width: min(100%, 440px); height: auto; overflow: visible; }
.orbits .ring { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1; stroke-dasharray: 1010; stroke-dashoffset: 1010; transition: stroke-dashoffset 1.6s var(--ease-out); }
.slide.is-active .orbits .ring { stroke-dashoffset: 0; }
.slide.is-active .orbits .ring:nth-of-type(3) { transition-delay: .15s; }
.slide.is-active .orbits .ring:nth-of-type(4) { transition-delay: .3s; }
/* Carte d'Afrique */
.africa { transform-origin: 200px 200px; transform: scale(.9); opacity: 0; transition: opacity 1.2s var(--ease-out) .2s, transform 1.6s var(--ease-out) .2s; }
.slide.is-active .africa { opacity: 1; transform: none; }
.af-land { fill: rgba(255,255,255,.09); stroke: rgba(255,255,255,.32); stroke-width: .6; stroke-linejoin: round; }
.af-civ { fill: var(--red); stroke: var(--red); stroke-width: .6; opacity: 0; transition: opacity .6s 1.1s; }
.slide.is-active .af-civ { opacity: 1; }
.civ-pulse { fill: none; stroke: var(--red); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.slide.is-active .civ-pulse { animation: civpulse 2.4s ease-out 1.4s infinite; }
@keyframes civpulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }
.orbits .orbit { transform-origin: 200px 200px; fill: #fff; opacity: 0; transition: opacity .8s .8s; }
.slide.is-active .orbits .orbit { opacity: 1; }
.orbits .o1 { animation: spin 9s linear infinite; }
.orbits .o2 { animation: spin 16s linear infinite reverse; }
.orbits .o3 { animation: spin 26s linear infinite; }
.orbits .o3 circle:nth-child(2) { fill: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Foule (barres) */
.crowd { width: min(100%, 500px); }
.crowd-count { font-family: var(--f-display); font-weight: 900; font-stretch: 115%; font-size: clamp(3.2rem, 7vw, 5.6rem); line-height: 1; margin-bottom: 10px; }
.crowd-count small { display: block; font-size: .82rem; font-weight: 600; font-stretch: 100%; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: 8px; line-height: 1.4; }

/* Fondation Félix Houphouët-Boigny */
.fondation { width: 100%; height: auto; overflow: visible; }
.fondation * { transform-box: fill-box; }
.fh-sun { fill: var(--red); transform-origin: center; transform: translateY(60px); opacity: 0; transition: transform 1.6s var(--ease-out) .2s, opacity .8s .2s; }
.slide.is-active .fh-sun { transform: none; opacity: 1; }
.fh-roof rect, .fh-attic { fill: #fff; }
.fh-wins rect { fill: #18205a; }
.fh-roof { transform-origin: center; transform: scaleX(.2); opacity: 0; transition: transform 1s var(--ease-out) .5s, opacity .4s .5s; }
.slide.is-active .fh-roof { transform: none; opacity: 1; }
.fh-wins rect { opacity: 0; transition: opacity .3s; }
.slide.is-active .fh-wins rect { opacity: 1; }
.slide.is-active .fh-wins rect:nth-child(odd) { transition-delay: 1.4s; }
.slide.is-active .fh-wins rect:nth-child(even) { transition-delay: 1.6s; }
.fh-col { fill: #fff; transform-origin: bottom; transform: scaleY(0); transition: transform .8s var(--ease-out); transition-delay: calc(var(--i) * 45ms + .3s); }
.slide.is-active .fh-col { transform: none; }
.fh-bay rect { fill: #2a3483; }
.fh-bay path { stroke: rgba(255,255,255,.28); stroke-width: 1; fill: none; }
.fh-bay { opacity: 0; transition: opacity .6s; transition-delay: calc(var(--i) * 60ms + .9s); }
.slide.is-active .fh-bay { opacity: 1; }
.fh-steps rect { fill: #fff; }
.fh-steps rect:nth-child(2) { opacity: .7; } .fh-steps rect:nth-child(3) { opacity: .45; }
.fh-steps { transform-origin: center; transform: scaleX(0); transition: transform 1s var(--ease-out) .2s; }
.slide.is-active .fh-steps { transform: none; }
.fh-statue { fill: var(--red); opacity: 0; transition: opacity .6s 1.5s; }
.slide.is-active .fh-statue { opacity: 1; }
.fh-cone { fill: rgba(255,255,255,.85); transform-origin: bottom; transform: scale(0); transition: transform .7s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 1.1s); }
.slide.is-active .fh-cone { transform: none; }
.fh-caption { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 6px 0 0; text-align: center; opacity: 0; transition: opacity .6s 1.8s; }
.slide.is-active .fh-caption { opacity: 1; }
.fh-ground { stroke: rgba(255,255,255,.16); stroke-width: 1; fill: none; }
.fh-crowd circle { fill: #fff; opacity: 0; transform-origin: center; transform: translateY(6px); transition: opacity .5s, transform .6s var(--ease-out); transition-delay: var(--d); }
.fh-crowd circle.r { fill: var(--red); }
.slide.is-active .fh-crowd circle { opacity: var(--o, .85); transform: none; }

/* Grille 42 */
.grid42 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: min(100%, 380px); }
.grid42 i {
  aspect-ratio: 1; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: .78rem; font-style: normal;
  border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.75);
  opacity: 0; transform: scale(.6); transition: opacity .4s, transform .6s var(--ease-out), background-color .4s;
  transition-delay: calc(var(--i) * 28ms + .3s);
}
.grid42 i.c1 { background: var(--red); border-color: var(--red); color: #fff; }
.grid42 i.c2 { background: #fff; border-color: #fff; color: var(--navy); }
.grid42 i.c3 { background: rgba(255,255,255,.14); }
.grid42 i.c4 { background: transparent; }
.slide.is-active .grid42 i { opacity: 1; transform: none; }

/* Volet de transition */
.wipe { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.wipe span { position: absolute; inset: 0; transform: translateX(-101%); }
.wipe span:first-child { background: var(--red); }
.wipe span:last-child { background: #fff; }
.wipe.run span:first-child { animation: wipe 1s var(--ease) forwards; }
.wipe.run span:last-child { animation: wipe 1s var(--ease) .08s forwards; }
@keyframes wipe { 0% { transform: translateX(-101%); } 45%, 55% { transform: translateX(0); } 100% { transform: translateX(101%); } }

/* Contrôles */
.slider-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; }
.slider-ui-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; }
.slider-tabs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 170px)); gap: 16px; flex: 1; }
.slider-tabs button {
  width: 100%; text-align: left; background: none; border: 0; color: rgba(255,255,255,.6); padding: 12px 0 0;
  position: relative; display: flex; gap: 10px; align-items: baseline; font-size: .85rem;
}
.slider-tabs button b { font-family: var(--f-display); font-weight: 800; color: inherit; }
.slider-tabs button i { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.slider-tabs button i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.slider-tabs button[aria-selected="true"] { color: #fff; }
.slider-tabs button[aria-selected="true"] i::after { animation: progress var(--dur, 7s) linear forwards; }
.hero.is-paused .slider-tabs button[aria-selected="true"] i::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.slider-ctrl { display: flex; gap: 8px; }
.slider-ctrl button {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff;
  transition: background-color .2s, border-color .2s;
}
.slider-ctrl button:hover { background: #fff; color: var(--navy); border-color: #fff; }
.slider-ctrl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slider-ctrl .i-play { display: none; fill: currentColor; stroke: none; }
.hero.is-paused .i-play { display: block; } .hero.is-paused .i-pause { display: none; }

@media (max-width: 860px) {
  .slides { height: auto; min-height: calc(100svh - var(--header-h) - 120px); display: grid; }
  .slide { position: relative; grid-area: 1 / 1; }
  .slide-grid { grid-template-columns: 1fr; gap: 8px; padding-block: 32px 112px; }
  .slide-visual { order: -1; justify-content: flex-start; }
  .torch { width: 96px; }
  .orbits { width: 190px; }
  .crowd { width: 100%; }
  .crowd-count { font-size: 2.6rem; margin-bottom: 6px; }
  .crowd-count small { font-size: .72rem; }
  .fondation { max-width: 340px; }
  .fh-caption { text-align: left; font-size: .7rem; margin-bottom: 16px; }
  .grid42 { width: 200px; gap: 3px; }
  .grid42 i { font-size: 0; }
  .slider-tabs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .slider-tabs button span { display: none; }
  .slider-ctrl .sl-prev, .slider-ctrl .sl-next { display: none; }
}
@media (max-width: 480px) {
  .slide-ctas .btn { width: 100%; }
}

/* =========================================================
   BANDEAU ÉVÉNEMENT
   ========================================================= */
.eventbar { background: var(--red); color: #fff; }
.eventbar-inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px 40px; padding-block: 18px; }
.eb-item { display: flex; flex-direction: column; }
.eb-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; font-weight: 600; }
.eb-item strong { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.eb-countdown { display: flex; gap: 8px; }
.eb-countdown div { min-width: 64px; text-align: center; background: rgba(0,0,0,.14); padding: 6px 8px; border-radius: var(--radius); }
.eb-countdown b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.eb-countdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
@media (max-width: 960px) {
  .eventbar-inner { grid-template-columns: 1fr 1fr; }
  .eb-countdown { grid-column: 1; }
  .eb-ics { grid-column: 2; justify-self: end; }
}
@media (max-width: 560px) {
  .eventbar-inner { grid-template-columns: 1fr; gap: 14px; }
  .eb-countdown, .eb-ics { grid-column: 1; justify-self: stretch; }
  .eb-countdown div { flex: 1; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #fff; }
.sec-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow { font-family: var(--f-display); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.section--navy .eyebrow { color: #ff6a62; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; font-stretch: 106%; color: var(--navy); }
.section--navy .sec-head h2 { color: #fff; }
.sec-sub { margin: 16px 0 0; color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.prose .lead, .lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.prose p { max-width: 38em; }
.subhead { font-size: 1.5rem; color: var(--navy); margin: 64px 0 24px; }
.note { font-size: .92rem; color: var(--muted); margin-top: 16px; }

/* Apparitions au scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Le Congrès */
.congres-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.goal { border-left: 4px solid var(--red); padding: 4px 0 4px 20px; margin-top: 28px; }
.goal-label { font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.goal p { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.35; color: var(--navy); margin: 6px 0 0; }
.objectives { background: var(--navy); color: #fff; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); }
.objectives h3 { font-size: 1.35rem; margin-bottom: 20px; }
.obj-list { list-style: none; counter-reset: o; margin: 0; padding: 0; }
.obj-list li { counter-increment: o; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.obj-list li::before { content: counter(o, decimal-leading-zero); font-family: var(--f-display); font-weight: 800; color: #ff6a62; }
.figures { list-style: none; padding: 0; margin: clamp(48px, 7vw, 88px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--navy); }
.figures li { padding: 24px 20px 0 0; }
.figures li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.figures b { display: block; font-family: var(--f-display); font-weight: 900; font-stretch: 112%; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--navy); }
.figures span { display: block; margin-top: 8px; color: var(--muted); }
@media (max-width: 860px) {
  .congres-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures li:nth-child(3) { border-left: 0; padding-left: 0; }
  .figures li { padding-bottom: 24px; }
}

/* Programme de la journée */
.day { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.day-title { font-size: 1.35rem; color: var(--navy); padding-bottom: 14px; border-bottom: 2px solid var(--navy); margin-bottom: 4px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.day-title span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--f-display); font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; font-weight: 600; line-height: 1.4; }
.timeline small { display: block; color: var(--muted); font-size: .88rem; margin-top: 4px; }
.timeline li.is-break p { font-weight: 400; font-style: italic; color: var(--muted); }
.timeline li.is-key { background: #fff; border-left: 4px solid var(--red); padding-left: 14px; margin-left: -18px; }
@media (max-width: 860px) {
  .day { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .timeline li.is-key { margin-left: 0; }
}

/* Le Président */
.pres-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.pres-portrait { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.pres-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.portrait-placeholder {
  aspect-ratio: 4 / 5; background: var(--navy); border-radius: var(--radius); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff;
}
.portrait-ring { position: absolute; right: -24%; top: -15%; width: 90%; aspect-ratio: 1; border-radius: 50%; border: 32px solid var(--red); overflow: hidden; background: var(--navy-deep); }
/* Photo agrandie et décalée vers la gauche pour que le visage tombe dans la partie visible du cercle excentré */
.portrait-ring .portrait-photo { position: absolute; left: -18%; top: 9%; width: 128%; max-width: none; height: auto; aspect-ratio: 1; border-radius: 0; }
.portrait-placeholder .mono { position: relative; font-family: var(--f-display); font-weight: 900; font-stretch: 120%; font-size: clamp(4rem, 9vw, 6.5rem); line-height: .9; }
.portrait-placeholder .mono-sub { position: relative; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 8px; opacity: .85; }
.pres-portrait figcaption { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); margin-top: 16px; border-left: 3px solid var(--red); padding-left: 14px; }
.career { list-style: none; margin: 36px 0 0; padding: 0; position: relative; }
.career::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.career li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0 10px 32px; }
.career li::before { content: ""; position: absolute; left: 0; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.career li.is-now::before { background: var(--red); border-color: var(--red); }
.career time { font-family: var(--f-display); font-weight: 800; color: var(--navy); }
.career p { margin: 0; }
.books { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.books h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 12px; }
.books ul { list-style: none; margin: 0; padding: 0; }
.books li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.books cite { font-style: italic; }
.books span { font-family: var(--f-display); font-weight: 700; color: var(--muted); }
@media (max-width: 860px) {
  .pres-grid { grid-template-columns: 1fr; }
  .pres-portrait { position: static; max-width: 360px; }
  .career li { grid-template-columns: 1fr; gap: 0; }
}

/* Vision */
.vision-quote { margin: 0 0 48px; padding: 0 0 0 28px; border-left: 4px solid var(--red); max-width: 980px; }
.vision-quote p { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.35; margin: 0; }
.aims { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.aims li { background: var(--navy); padding: 20px; font-weight: 600; line-height: 1.4; }
.aims b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 2rem; color: #ff6a62; margin-bottom: 6px; }
.chantiers { border-top: 1px solid var(--line-dark); }
.chantier { border-bottom: 1px solid var(--line-dark); }
.chantier summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 130px 1fr auto 28px; gap: 20px; align-items: center;
  padding: 24px 0;
}
.chantier summary::-webkit-details-marker { display: none; }
.chantier summary::after { content: ""; width: 14px; height: 14px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform .3s; justify-self: center; margin-top: -6px; }
.chantier[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.ch-num { font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #ff6a62; }
.ch-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.25; }
.ch-count { font-size: .9rem; color: rgba(255,255,255,.65); white-space: nowrap; }
.props { margin: 0 0 32px; padding: 0 0 0 150px; columns: 2; column-gap: 48px; }
.props li { break-inside: avoid; padding: 8px 0 8px 6px; color: rgba(255,255,255,.9); }
.props li::marker { font-family: var(--f-display); font-weight: 800; color: #ff6a62; }
.vision-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 48px; }
.vision-foot p { margin: 0; max-width: 40em; }
@media (max-width: 960px) {
  .aims { grid-template-columns: 1fr 1fr; }
  .props { padding-left: 24px; columns: 1; }
  .chantier summary { grid-template-columns: 1fr 28px; gap: 6px 12px; }
  .ch-num { grid-column: 1; }
  .ch-title { grid-column: 1; }
  .ch-count { grid-column: 1; }
  .chantier summary::after { grid-column: 2; grid-row: 1 / span 3; }
}
@media (max-width: 520px) { .aims { grid-template-columns: 1fr; } }

/* Organisation */
.committees { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.committee { border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); }
.committee:nth-child(2) { border-top-color: var(--red); }
.committee h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.committee > p { color: var(--muted); }
.committee ul { margin: 0; padding-left: 1.1em; }
.committee li { padding: 4px 0; }
.committee li::marker { color: var(--red); }
.commissions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.commissions li { background: #fff; padding: 22px; transition: background-color .25s; }
.commissions li:hover { background: var(--paper); }
.commissions h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; line-height: 1.25; }
.commissions p { margin: 0; color: var(--muted); font-size: .95rem; }
.cta-band { margin-top: 56px; background: var(--paper); padding: clamp(24px, 4vw, 40px); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-left: 6px solid var(--red); }
.cta-band p { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--navy); margin: 0; }
@media (max-width: 760px) { .committees { grid-template-columns: 1fr; } .cta-band .btn { width: 100%; white-space: normal; } }

/* =========================================================
   FORMULAIRES
   ========================================================= */
.tabs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tablist { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tablist button {
  background: var(--paper); border: 0; border-right: 1px solid var(--line); padding: 20px 24px; text-align: left;
  display: flex; flex-direction: column; gap: 2px; position: relative; color: var(--muted); transition: background-color .2s;
}
.tablist button:last-child { border-right: 0; }
.tablist button b { font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.tablist button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.tablist button[aria-selected="true"] { background: #fff; color: var(--ink); }
.tablist button[aria-selected="true"]::after { transform: scaleX(1); }
.tablist button:hover { background: #fff; }
.tabpanel { padding: clamp(20px, 4vw, 48px); }
.tabpanel:not([hidden]) { animation: fadeUp .5s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.form { max-width: 860px; }
.form-intro { color: var(--muted); max-width: 46em; margin-bottom: 28px; }
fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
legend { font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; color: var(--navy); padding: 0 0 12px; width: 100%; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 20px; }
.field { margin-bottom: 18px; min-width: 0; }
.field label, .field .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .88em; }
input[type="text"], input:not([type]), input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #b9bacb; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 37, 102, .18); }
.is-invalid input, .is-invalid select, .is-invalid textarea, input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--red); }
.err { display: block; color: var(--red-dark); font-size: .88rem; margin-top: 6px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; margin: 6px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choices--grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.choice { position: relative; cursor: pointer; }
.choice input, .seg input, .amounts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; min-height: 52px; padding: 12px 16px 12px 44px; border: 1px solid #b9bacb; border-radius: var(--radius); line-height: 1.3; transition: border-color .2s, background-color .2s; position: relative; }
.choice span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid #8d8fa6; transition: border .2s; }
.choice input:checked + span { border-color: var(--navy); background: #eef0f8; }
.choice input:checked + span::before { border: 5px solid var(--navy); }
.choice input:focus-visible + span, .seg input:focus-visible + span, .amounts input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid #b9bacb; border-radius: var(--radius); overflow: hidden; }
.seg--wide { display: flex; margin-bottom: 20px; }
.seg--wide label { flex: 1; }
.seg label { cursor: pointer; position: relative; }
.seg span { display: block; padding: 12px 18px; min-height: 48px; text-align: center; transition: background-color .2s, color .2s; }
.seg label + label span { border-left: 1px solid #b9bacb; }
.seg input:checked + span { background: var(--navy); color: #fff; }

.amounts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.amounts label { cursor: pointer; position: relative; }
.amounts span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 72px; border: 1px solid #b9bacb; border-radius: var(--radius); font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: var(--navy); transition: all .2s; text-align: center; padding: 6px; }
.amounts small { font-family: var(--f-body); font-weight: 600; font-size: .72rem; color: var(--muted); }
.amounts input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.amounts input:checked + span small { color: rgba(255,255,255,.75); }
@media (max-width: 760px) { .amounts { grid-template-columns: repeat(3, 1fr); } }

.consent { background: var(--paper); padding: 16px 18px 4px; border-radius: var(--radius); margin-bottom: 24px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-foot .btn { white-space: normal; text-align: center; }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-error { color: var(--red-dark); }
.form-success { border: 1px solid var(--line); border-left: 6px solid var(--navy); padding: clamp(20px, 4vw, 36px); border-radius: var(--radius); animation: fadeUp .5s var(--ease-out); }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 1.6rem; color: var(--navy); margin-bottom: 10px; }
.form-success .ref { font-family: var(--f-display); font-weight: 700; background: var(--paper); display: inline-block; padding: 4px 10px; border-radius: var(--radius); }
@media (max-width: 760px) {
  .tablist { grid-template-columns: 1fr 1fr 1fr; }
  .tablist button { padding: 14px 10px; text-align: center; align-items: center; }
  .tablist button b { font-size: 1rem; }
  .tablist button span { font-size: .78rem; line-height: 1.2; }
  .form-foot .btn { width: 100%; }
  .seg { display: flex; } .seg label { flex: 1; }
}

/* Actualités / jalons */
.milestones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.milestones li { position: relative; padding: 40px 20px 0 0; }
.milestones li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--navy); }
.milestones li::after { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.milestones li.done::after { background: var(--navy); }
.milestones li.current::after { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px rgba(227, 37, 29, .18); animation: pulse 2s ease-in-out infinite; }
.milestones li.current::before, .milestones li.target::before { background: repeating-linear-gradient(90deg, var(--navy) 0 6px, transparent 6px 12px); }
.milestones li.target::after { border-color: var(--red); border-width: 3px; }
.milestones time { font-family: var(--f-display); font-weight: 800; color: var(--red); font-size: .95rem; }
.milestones h3 { font-size: 1.15rem; color: var(--navy); margin: 6px 0 8px; }
.milestones p { font-size: .95rem; color: var(--muted); margin: 0; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(227, 37, 29, 0); } }
@media (max-width: 960px) {
  .milestones { grid-template-columns: 1fr; }
  .milestones li { padding: 0 0 32px 40px; }
  .milestones li::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .milestones li.current::before, .milestones li.target::before { background: repeating-linear-gradient(180deg, var(--navy) 0 6px, transparent 6px 12px); }
  .milestones li:last-child::before { display: none; }
}

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: var(--red); transition: transform .3s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 44em; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* Pied de page */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,.8); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.f-logo { height: 96px; width: auto; }
.f-motto { font-family: var(--f-display); font-weight: 600; color: #fff; margin-top: 20px; max-width: 22em; line-height: 1.4; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #ff6a62; margin-bottom: 16px; }
.f-nav ul { list-style: none; margin: 0; padding: 0; }
.f-nav li { padding: 5px 0; }
.f-nav a { text-decoration: none; }
.f-nav a:hover { color: #fff; text-decoration: underline; }
.f-event strong { color: #fff; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line-dark); padding-block: 22px; font-size: .88rem; color: rgba(255,255,255,.55); }
.f-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* CTA collant (mobile) */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; min-height: 52px;
    background: var(--red); color: #fff; text-decoration: none; font-family: var(--f-display); font-weight: 800; border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(11, 16, 46, .28);
    transform: translateY(140%); transition: transform .4s var(--ease-out);
  }
  .sticky-cta.is-visible { transform: none; }
  body { padding-bottom: 0; }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Champ piège anti-robots, invisible pour les visiteurs */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
