/* ==========================================================================
   SAED-SARL — feuille de style
   Style éditorial « planche technique » : beige, bleu marine, vert citron
   ========================================================================== */

:root {
  --bg: #f7f4ee;
  --bg-2: #ebefff;
  --ink: #0b1b5c;
  --text: #2b3566;
  --muted: #5d6590;
  --line: #16256b;
  --blue: #1d2fbf;
  --blue-soft: #b5bbe0;
  --blue-faint: #e9edf9;
  --green: #70d800;
  --green-ink: #3d7d00;
  --rust: #a8491a;
  --navy: #0a1a5e;
  --on-navy: #ffffff;
  --grid: rgba(22, 37, 107, 0.07);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 57px);
  --header-h: 52px;
}

[data-theme="dark"] {
  --bg: #0a1130;
  --bg-2: #101a47;
  --ink: #f1f3ff;
  --text: #c9d0f2;
  --muted: #97a0cf;
  --line: #4a5aa8;
  --blue: #8d9bff;
  --blue-soft: #3a4690;
  --blue-faint: #16205a;
  --green-ink: #8fe63a;
  --rust: #ff9a6a;
  --navy: #060c26;
  --grid: rgba(160, 175, 255, 0.07);
}

*,
*::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;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
  transition: top 0.2s;
}
.skip:focus { top: 8px; }

/* ---------- Typographie éditoriale ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-ink);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.title {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 100%;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  text-wrap: balance;
}
.title em,
.hero h1 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--blue);
}

.lead {
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text);
}

.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Boutons & liens ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--navy);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -4px var(--green); }
.btn:hover svg { transform: translateX(4px); }
.btn--green { background: var(--green); border-color: var(--green); color: #0a1a5e; }
.btn--green:hover { box-shadow: 0 8px 0 -4px #fff; }
[data-theme="dark"] .btn { background: var(--blue); border-color: var(--blue); color: #0a1130; }
[data-theme="dark"] .btn--green { background: var(--green); border-color: var(--green); color: #0a1a5e; }

.link {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding-block: 12px 8px;
  border-bottom: 2px solid var(--green);
  transition: color 0.2s, border-color 0.2s;
}
.link:hover { color: var(--blue); }

/* ---------- Barre supérieure + en-tête ---------- */

.topbar {
  background: var(--navy);
  color: #cfd7ff;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 7px;
}
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand img { width: 40px; height: 35px; }
.brand span { display: grid; line-height: 1.1; }
.brand strong {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--navy);
  font-size: 1.05rem;
}
[data-theme="dark"] .brand strong { color: var(--ink); }
.brand em {
  font-family: var(--f-serif);
  font-size: 0.78rem;
  color: var(--blue);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; align-items: center; gap: 22px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 6px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.8125rem;
  text-decoration: none;
  color: var(--ink);
}
.nav a .n {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--green-ink);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .live .n { order: 1; }
.nav .live::before {
  content: "";
  order: 2;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
.nav .live > span:last-child { order: 3; }

.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--navy); color: #fff; }
.icon-btn svg { width: 14px; height: 14px; }

.menu-toggle { display: none; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(112, 216, 0, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(112, 216, 0, 0); }
}

/* ---------- Rail de progression ---------- */

.rail {
  position: fixed;
  right: 12px;
  top: 22vh;
  height: 34vh;
  width: 3px;
  z-index: 20;
  background: repeating-linear-gradient(to bottom, var(--blue-soft) 0 6px, transparent 6px 12px);
  pointer-events: none;
}
.rail i {
  position: absolute;
  left: 0; top: 0;
  width: 3px;
  height: var(--p, 0%);
  background: repeating-linear-gradient(to bottom, var(--blue) 0 6px, transparent 6px 12px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.hero-copy { display: grid; gap: 28px; padding-bottom: 40px; }

.hero .eyebrow { position: relative; }
.crosshair {
  position: absolute;
  left: -24px; top: 50%;
  width: 24px; height: 24px;
  translate: 0 -50%;
  color: var(--rust);
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(2.6rem, 5.6vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.hero h1 em {
  display: block;
  margin-top: 0.06em;
  font-size: 1.02em;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero .lead { max-width: 34rem; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.hero-media { position: relative; margin-top: 8px; }
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 380px;
  overflow: visible;
  background:
    url("../assets/img/hero.jpg") center / cover no-repeat,
    linear-gradient(180deg, #6a7cc9 0%, #5163b8 38%, #3d4ea6 100%);
}
.hero-photo::after { /* teinte bleue éditoriale */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(36, 52, 170, 0.3);
  mix-blend-mode: multiply;
}
.hero-wave {
  position: absolute;
  left: -36px; bottom: 24%;
  width: 78%;
  z-index: 2;
  fill: none;
  stroke-linecap: round;
}
.hero-wave path { animation: drift 8s ease-in-out infinite alternate; }
.hero-wave path:nth-child(2) { animation-delay: -3s; }
@keyframes drift { to { transform: translateX(14px); } }

.spec {
  position: absolute;
  left: -42px; bottom: -34px;
  z-index: 3;
  width: min(330px, 92%);
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink);
  box-shadow: 8px 8px 0 -1px rgba(10, 26, 94, 0.18);
}
.spec div { display: grid; grid-template-columns: 62px 1fr; }
.spec div + div { border-top: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; padding: 7px 10px; }
.spec dt { border-right: 1px solid var(--line); letter-spacing: 0.08em; }
.spec dd { display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.spec .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }

.profile {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr auto 1fr;
  align-items: end;
  margin-top: 56px;
  padding-top: 26px;
}
.profile .cap {
  position: absolute;
  left: var(--gutter); top: 0;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.profile .ground { height: 3px; background: var(--green); align-self: start; margin-top: 1px; }
.profile svg { width: clamp(180px, 25vw, 260px); height: auto; overflow: visible; }
.water-wave { animation: slosh 5s ease-in-out infinite alternate; }
@keyframes slosh { to { transform: translateX(-12px); } }

/* ---------- Chiffres ---------- */

.stats { background: var(--navy); color: var(--on-navy); padding-block: clamp(40px, 6vw, 64px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: grid; gap: 4px; align-content: start; }
.stat::before {
  content: "";
  height: 9px;
  margin-bottom: 18px;
  border-inline: 1px solid var(--green);
  background: linear-gradient(var(--green), var(--green)) center / 100% 1px no-repeat;
}
.stat .num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat .lab {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #dfe5ff;
}
.stat .sub {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e9bd8;
  max-width: 18rem;
}

/* ---------- Expertises ---------- */

.expertises .lead { margin-top: 4px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--bg);
}
.card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 28px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s;
}
.card:nth-child(3n) { border-right: 0; }
.card:nth-last-child(-n + 3) { border-bottom: 0; }
.card:hover { background: var(--blue-faint); }
.card .idx {
  position: absolute;
  right: 22px; top: 22px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--green-ink);
}
.card .ico { width: 40px; height: 40px; color: var(--blue); margin-bottom: 18px; transition: transform 0.3s; }
.card:hover .ico { transform: translateY(-3px); }
.card h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 17rem;
}
.card p { font-size: 0.9375rem; line-height: 1.6; color: var(--text); }

/* ---------- Démarche ---------- */

.method .lead { max-width: 36rem; }
.route { position: relative; margin-top: 8px; }
.route-line { width: 100%; height: 26px; overflow: visible; }
.route-line path { fill: none; vector-effect: non-scaling-stroke; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step {
  position: relative;
  padding: 18px 24px 28px 20px;
  margin-right: 28px;
  border-left: 1px solid var(--line);
}
.step::before {
  content: "";
  position: absolute;
  left: -5px; top: -8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.step .pk {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--rust);
}
.step h3 {
  margin: 10px 0 16px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}
.step li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.step li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.5em;
  border: 4px solid transparent;
  border-left: 6px solid var(--green);
}

/* ---------- Carte ---------- */

.atlas { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.map-box { position: relative; }
.map-box svg { width: 100%; height: auto; overflow: hidden; }
.map-box .land {
  stroke: var(--bg);
  stroke-width: 1.2;
  stroke-linejoin: round;
  fill: var(--blue-faint);
  transition: fill 0.2s, stroke 0.2s;
}
[data-theme="dark"] .map-box .land { fill: #131c4f; }
.map-box .land.on { cursor: pointer; }
.map-box .land.on.hl { stroke: var(--ink); stroke-width: 2; filter: brightness(0.9); }
[data-theme="dark"] .map-box .land.on.hl { filter: brightness(1.25); }
.map-box .pin circle { fill: #0b1b5c; stroke: #fff; stroke-width: 1.5; }
[data-theme="dark"] .map-box .pin circle { fill: #fff; stroke: #0a1130; }
.map-box .pin text {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12.5px;
  fill: #0b1b5c;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3.5px;
  pointer-events: none;
}
[data-theme="dark"] .map-box .pin text { fill: #fff; stroke: rgba(10, 17, 48, 0.9); }
.map-box .pin { pointer-events: none; }

.tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  padding: 8px 12px;
  background: var(--navy);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  border-left: 3px solid var(--green);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity 0.15s;
  white-space: nowrap;
}
.tip.show { opacity: 1; }
.tip b { font-family: var(--f-display); font-size: 0.85rem; }

.ranking h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.rank { display: grid; gap: 2px; }
.rank li {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 1.6fr 36px;
  align-items: center;
  gap: 16px;
  padding: 8px 8px;
  margin-inline: -8px;
  font-size: 0.9375rem;
  color: var(--ink);
  cursor: default;
  transition: background-color 0.2s;
}
.rank li.hl { background: var(--blue-faint); }
.rank .bar { height: 7px; background: #d9d9d9; position: relative; overflow: hidden; }
[data-theme="dark"] .rank .bar { background: #26306b; }
.rank .bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--blue);
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rank.in .bar i { width: var(--w); }
.rank .val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.timeline { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.timeline > p {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.tl { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); }
.tl::before {
  content: "";
  position: absolute;
  left: 6px; right: 0; top: 6px;
  height: 1px;
  background: var(--line);
}
.tl li { position: relative; padding-top: 28px; }
.tl li::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue);
}
.tl li:first-child::before { background: var(--green); border-color: var(--green-ink); }
.tl .y {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.tl .k {
  display: block;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-ink);
}
.tl .c { display: block; margin-top: 4px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }

/* ---------- Bailleurs ---------- */

.donors .section-head { margin-bottom: 40px; }
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
  padding-right: clamp(28px, 4vw, 52px);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  color: #3b4676;
  white-space: nowrap;
}
[data-theme="dark"] .marquee-track span { color: #b5bdea; }
.marquee-track span::after {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Bureau ---------- */

.office-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; }
.portrait .ring { position: absolute; inset: -22px; width: calc(100% + 44px); height: calc(100% + 44px); overflow: visible; }
.portrait .ring circle { fill: none; }
.portrait .photo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    url("../assets/img/bureau.jpg") center / cover no-repeat,
    linear-gradient(180deg, #b9d3ec 0%, #c9ccb8 45%, #9d8a63 62%, #7b7550 100%);
}
.office blockquote {
  margin: 22px 0 28px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  color: var(--blue);
  text-wrap: balance;
}
.office .people {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-bottom: 26px;
}
.people strong { display: block; font-family: var(--f-display); font-weight: 700; color: var(--ink); }
.people small { color: var(--muted); font-size: 0.875rem; }

/* ---------- CTA contact ---------- */

.cta {
  position: relative;
  min-height: 340px;
  display: grid;
  align-items: center;
  padding-block: clamp(56px, 8vw, 96px);
  color: #fff;
  overflow: hidden;
  background:
    url("../assets/img/contact.jpg") center / cover no-repeat,
    linear-gradient(160deg, #2a3fd0 0%, #1d2fbf 55%, #1a2aa8 100%);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(29, 47, 191, 0.72);
  mix-blend-mode: multiply;
}
.cta .arc {
  position: absolute;
  right: -120px; top: -140px;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 12px solid var(--green);
  border-left-color: transparent;
  border-bottom-color: transparent;
  rotate: 20deg;
}
.cta .wrap { position: relative; display: grid; gap: 20px; }
.cta h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 34rem;
  text-wrap: balance;
}
.cta p { max-width: 30rem; color: #e1e6ff; }
.cta .btn { justify-self: start; margin-top: 6px; }

/* ---------- Pied de page ---------- */

.footer { background: var(--navy); color: #fff; padding-block: 44px 84px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-bottom: 32px; }
.footer-nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 5px; }
.plate {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1.1fr 0.6fr;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.plate > div { padding: 18px 20px; border-left: 1px solid rgba(255, 255, 255, 0.35); font-size: 0.875rem; line-height: 1.6; }
.plate > div:first-child { border-left: 0; display: flex; align-items: center; gap: 14px; }
.plate .logo { width: 62px; flex: none; }
.plate .logo img { width: 62px; height: auto; }
.plate .name { font-family: var(--f-display); font-weight: 800; }
.plate .name em { display: block; font-family: var(--f-serif); font-weight: 400; color: #9be85a; font-size: 0.85rem; margin-top: 4px; }
.plate h4 {
  margin: 0 0 8px;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8e9bd8;
}
.plate a { display: block; margin-bottom: 14px; }
.plate a:last-child { margin-bottom: 0; }
.plate .rev + h4 { margin-top: 10px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  color: #aab4e6;
}

/* ---------- Apparition au scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .rail { display: none; }
}

@media (max-width: 960px) {
  .hero h1 { font-size: clamp(2.2rem, 10.6vw, 4.6rem); }
  .menu-toggle { display: inline-grid; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li + li { border-top: 1px solid color-mix(in srgb, var(--line) 25%, transparent); }
  .nav a { padding-block: 14px; font-size: 1rem; }
  .brand em { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; margin-bottom: 40px; }
  .spec { left: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(3n) { border-right: 1px solid var(--line); }
  .card:nth-child(2n) { border-right: 0; }
  .card:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { margin-right: 0; }
  .atlas, .office-grid { grid-template-columns: 1fr; }
  .tl { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .tl::before { display: none; }
  .plate { grid-template-columns: 1fr 1fr; }
  .plate > div { border-top: 1px solid rgba(255, 255, 255, 0.35); }
  .plate > div:first-child { grid-column: 1 / -1; border-top: 0; }
  .plate > div:nth-child(2n) { border-left: 0; }
}

@media (max-width: 600px) {
  .topbar .wrap { justify-content: center; }
  .topbar .wrap span:first-child { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card, .card:nth-child(2n), .card:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .rank li { grid-template-columns: 1fr 1fr 32px; gap: 10px; }
  .tl { grid-template-columns: repeat(2, 1fr); }
  .spec { left: 0; width: 100%; position: relative; bottom: 0; margin-top: -30px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .plate { grid-template-columns: 1fr; }
  .plate > div { border-left: 0; }
  .brand strong { font-size: 0.95rem; }
}

@media (max-width: 1100px) {
  .crosshair { display: none; }
}

/* ==========================================================================
   Page Expertises
   ========================================================================== */

.nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }

.footer-base a { color: inherit; text-decoration: none; white-space: nowrap; }
.footer-base .by a { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }
.footer-base a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }

/* Bandeau de page (photo aérienne teintée) */
.page-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(300px, 34vw, 400px);
  padding-block: clamp(56px, 8vw, 88px);
  color: #fff;
  overflow: hidden;
  --hero-img: url("../assets/img/expertises.jpg");
  background:
    var(--hero-img) center / cover no-repeat,
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 46px),
    linear-gradient(120deg, #0b1a5e 0%, #12237a 55%, #0a1a5e 100%);
}
.page-hero--missions { --hero-img: url("../assets/img/missions.jpg"); }
.page-hero--missions::before {
  background: linear-gradient(180deg, rgba(8, 20, 84, 0.45) 0%, rgba(8, 20, 84, 0.86) 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 20, 84, 0.92) 0%, rgba(8, 20, 84, 0.62) 55%, rgba(8, 20, 84, 0.35) 100%);
}
.page-hero .wrap { position: relative; display: grid; gap: 16px; }
.page-hero .eyebrow { color: #9be85a; }
.page-hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.page-hero .lead { color: #e6eaff; max-width: 38rem; font-size: clamp(1.02rem, 1.5vw, 1.2rem); }

/* Cartes détaillées */
.cards--detail .card { display: flex; flex-direction: column; gap: 0; padding: 28px 28px 30px; }
.cards--detail .card .ico { margin-bottom: 20px; }
.cards--detail .card h3 {
  max-width: none;
  margin-bottom: 14px;
  font-size: 1.3rem;
  text-wrap: balance;
}
.cards--detail .card:hover { background: var(--bg); }
.cards--detail .sum {
  margin-bottom: 18px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
}
.bullets { display: grid; gap: 11px; margin-bottom: 26px; }
.bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 1px; top: 0.4em;
  border: 4px solid transparent;
  border-left: 6px solid var(--green);
}
.card-foot { margin-top: auto; }
.refs {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--line) 22%, transparent);
}
.refs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--ink);
}
.refs b {
  flex: none;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--green-ink);
  white-space: nowrap;
}
.refs i { font-style: normal; }

/* Évaluation des impacts */
.impact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.impact-grid > div { display: grid; gap: 22px; }
.impact .title { hyphens: auto; -webkit-hyphens: auto; font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
.impact .lead { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 28rem; }
.index-list { border-top: 1px solid var(--line); margin-top: 6px; }
.index-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 18%, transparent);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}
.index-list .k { font-family: var(--f-mono); font-size: 0.75rem; color: var(--rust); padding-top: 3px; }

@media (max-width: 960px) {
  .impact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Page Missions en cours
   ========================================================================== */

:root { --paper: #ffffff; }
[data-theme="dark"] { --paper: #0d1646; }

/* Filtres */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px 32px;
}
.f-label {
  display: block;
  margin-bottom: 9px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 13px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.chip:hover { background: var(--blue-faint); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--blue); color: #0a1130; border-color: var(--blue); }

.sel { position: relative; min-width: 170px; }
.sel::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  translate: 0 -75%;
  rotate: 45deg;
  pointer-events: none;
}
.sel select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
}
.count {
  margin-top: 22px;
  padding-bottom: 16px;
  text-align: right;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

/* Liste */
.m-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(300px, 340px);
  gap: 20px clamp(24px, 3.4vw, 40px);
  padding-block: 32px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 16%, transparent);
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.m-empty { padding-block: 48px; text-align: center; color: var(--muted); }

.m-date b {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.m-date .st {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-ink);
}
.m-date .st::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.5;
}
.tag--c { background: #e3e9ff; color: #2437c8; }
.tag--d { background: #dcf1c4; color: #2f6a00; }
[data-theme="dark"] .tag--c { background: #1b2670; color: #b3bdff; }
[data-theme="dark"] .tag--d { background: #1f3c12; color: #a5ec63; }
.m-title {
  margin-top: 13px;
  max-width: 44rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.m-info { margin: 0; align-self: start; border: 1px solid var(--line); background: var(--paper); }
.m-info > div { display: grid; grid-template-columns: 138px 1fr; }
.m-info > div + div { border-top: 1px solid var(--line); }
.m-info dt, .m-info dd { margin: 0; padding: 9px 12px; }
.m-info dt {
  border-right: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--ink);
}
.m-info dd { font-size: 0.8125rem; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }

/* Planning */
.gantt-scroll { overflow-x: auto; padding-bottom: 6px; }
.gantt {
  --lab: 27.5%;
  min-width: 800px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.g-head {
  display: grid;
  grid-template-columns: var(--lab) 1fr;
  border-bottom: 1px solid var(--line);
}
.g-corner {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.g-months { display: grid; grid-template-columns: repeat(19, 1fr); }
.mo {
  position: relative;
  display: grid;
  place-items: center;
  height: 46px;
  padding-top: 14px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--muted);
}
.mo.yr-start { border-left: 1px solid var(--line); }
.mo em {
  position: absolute;
  left: 6px; top: 6px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.64rem;
  color: var(--ink);
}
.mo.now { color: var(--rust); font-weight: 700; }

.g-body { position: relative; }
.g-row { display: grid; grid-template-columns: var(--lab) 1fr; border-top: 1px solid color-mix(in srgb, var(--line) 13%, transparent); }
.g-row:first-of-type { border-top: 0; }
.g-lab { padding: 14px 18px; border-right: 1px solid color-mix(in srgb, var(--line) 18%, transparent); }
.g-lab b {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.38;
  color: var(--ink);
}
.g-lab span {
  display: block;
  margin-top: 5px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  line-height: 1.45;
  color: var(--muted);
}
.g-bar { position: relative; min-height: 48px; }
.bar, .hatch {
  position: absolute;
  top: 50%;
  height: 14px;
  translate: 0 -50%;
}
.bar { background: var(--blue); color: #fff; font-style: normal; }
[data-theme="dark"] .bar { background: #3d4fe0; }
.bar--open {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px);
}
.bar span {
  display: block;
  padding-left: 12px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  line-height: 14px;
  white-space: nowrap;
}
.hatch {
  right: 0;
  background: repeating-linear-gradient(-45deg, var(--blue-soft) 0 1.5px, transparent 1.5px 6px);
}
.today {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--lab) + (100% - var(--lab)) * var(--tx));
  width: 0;
  border-left: 1.5px dotted var(--rust);
  z-index: 2;
  pointer-events: none;
}
.g-legend {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--rust);
}
.today-key { flex: none; width: 0; height: 15px; margin-top: 3px; border-left: 1.5px dotted var(--rust); }

/* Sur le terrain */
.shots { display: grid; grid-template-columns: repeat(14, 1fr); gap: 24px; }
.shot:nth-child(1), .shot:nth-child(4) { grid-column: span 9; }
.shot:nth-child(2), .shot:nth-child(3) { grid-column: span 5; }
.shot {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}
.shot:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(10, 26, 94, 0.45); }
.ph {
  height: 215px;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #8d99d9, #4f5fd0);
  border-bottom: 1px solid var(--line);
}
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.shot:hover .ph img { transform: scale(1.04); }
.shot-body { display: grid; gap: 8px; align-content: start; padding: 20px 22px 24px; flex: 1; }
.shot .meta {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-ink);
}
.shot h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}
.shot p:not(.meta) { font-size: 0.9375rem; line-height: 1.55; }
button.link {
  justify-self: start;
  margin-top: 10px;
  padding-inline: 0;
  background: none;
  border: 0;
  border-bottom: 2px solid var(--green);
  cursor: pointer;
  text-align: left;
}

/* Galerie */
.lightbox {
  width: 100vw; max-width: 100vw;
  height: 100vh; max-height: 100vh;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(6, 12, 38, 0.94);
  color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox::backdrop { background: rgba(6, 12, 38, 0.8); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.lb-miss { padding: 80px 24px; color: #c8d0ff; }
.lightbox figcaption { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: #c8d0ff; text-align: center; }
.lb-btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  justify-self: center;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lb-btn:hover { background: var(--green); color: #0a1a5e; border-color: var(--green); }
.lb-close { position: absolute; right: 20px; top: 20px; z-index: 2; }

@media (max-width: 960px) {
  .m-item { grid-template-columns: 1fr; gap: 14px; padding-block: 26px; }
  .m-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
  .m-date .st { margin-top: 0; }
  .m-info { max-width: 460px; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shot:nth-child(n) { grid-column: auto; }
  .lightbox[open] { grid-template-columns: 52px 1fr 52px; }
}
@media (max-width: 600px) {
  .shots { grid-template-columns: 1fr; }
  .chip { padding: 9px 12px; }
  .sel { min-width: 100%; }
  .filters > .f-group:last-child { width: 100%; }
  .lightbox[open] { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-prev, .lb-next { position: absolute; bottom: 20px; }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
}

/* ==========================================================================
   Page Contact
   ========================================================================== */

/* Bandeau clair : grille technique + courbes de niveau */
.page-hero--light {
  color: var(--ink);
  min-height: 0;
  padding-block: clamp(56px, 7vw, 84px);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
}
.page-hero--light::before { display: none; }
.page-hero--light .eyebrow { color: var(--green-ink); }
.page-hero--light h1 { color: var(--ink); }
.page-hero--light .lead { color: var(--text); }
.page-hero--light .contours {
  position: absolute;
  inset: 0;
  background: var(--blue-soft);
  opacity: 0.55;
  -webkit-mask: url("../assets/contours.svg") right center / cover no-repeat;
  mask: url("../assets/contours.svg") right center / cover no-repeat;
  pointer-events: none;
}

.c-section { padding-top: clamp(48px, 6vw, 80px); }
.c-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.c-info { display: grid; gap: 28px; justify-items: start; }
.c-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* Tableaux de coordonnées */
.c-table {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  background: transparent;
}
.c-table > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); }
.c-table > div + div { border-top: 1px solid var(--line); }
.c-table dt, .c-table dd { margin: 0; padding: 11px 12px; }
.c-table dt {
  border-right: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 13px;
}
.c-table dd {
  display: grid;
  gap: 14px;
  align-content: center;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.c-table dd a {
  justify-self: start;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(var(--green), var(--green)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 1px;
  transition: color 0.2s;
}
.c-table dd a:hover { color: var(--blue); }
.c-table--geo > div { grid-template-columns: 78px minmax(0, 1fr); }
.c-table--geo dt { padding-top: 11px; }

/* Formulaire */
.c-form {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 3vw, 24px);
  background: var(--paper);
  border: 1px solid var(--line);
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.f-field { display: grid; gap: 9px; align-content: start; min-width: 0; }
.f-field label {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.f-field input,
.f-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  line-height: 1.4;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.f-field input { height: 40px; }
.f-field textarea { min-height: 150px; resize: vertical; }
.f-field input:focus,
.f-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 45%, transparent);
}
.f-field input:user-invalid,
.f-field textarea:user-invalid { border-color: var(--rust); }

.f-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 4px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}
.f-check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px; height: 18px;
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.f-check input::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  rotate: -45deg;
  translate: 0 -1px;
  scale: 0;
  transition: scale 0.15s;
}
.f-check input:checked { background: var(--green); border-color: var(--green); }
.f-check input:checked::after { scale: 1; }
.f-check input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 4px; }
.f-actions .btn { cursor: pointer; }
.f-status { flex: 1 1 240px; margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--green-ink); }
.f-status:empty { display: none; }

.f-direct { margin: 4px 0 0; font-size: 0.78rem; }
.f-direct a { color: var(--ink); text-underline-offset: 3px; }
.f-direct a:hover { color: var(--blue); }

@media (max-width: 960px) {
  .c-grid { grid-template-columns: 1fr; }
  .c-info { justify-items: stretch; }
  .c-info .link { justify-self: start; }
}
@media (max-width: 600px) {
  .f-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Page Mentions légales
   ========================================================================== */

.legal { padding-top: clamp(48px, 6vw, 80px); }
.legal-list {
  list-style: none;
  margin: 0; padding: 0;
  max-width: 660px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 22%, transparent);
}
.legal-list > li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0 0;
  padding-block: 34px 36px;
  border-top: 1px solid color-mix(in srgb, var(--line) 22%, transparent);
}
.legal-list > li:first-child { border-top-color: var(--line); }
.legal-list .num {
  padding-top: 10px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--green-ink);
}
.legal-list .body { display: grid; gap: 14px; }
.legal-list h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 2px;
}
.legal-list p { margin: 0; max-width: 34rem; font-size: 0.95rem; line-height: 1.7; color: var(--text); }

.footer-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 6px; text-decoration-thickness: 2px; }

@media (max-width: 600px) {
  .legal-list > li { grid-template-columns: 1fr; gap: 6px; }
  .legal-list .num { padding-top: 0; }
}

.page-hero .updated {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8d0ff;
}
.legal-list p a { color: inherit; text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }

.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-turnstile:empty { display: none; }
.f-status.is-error { color: var(--rust); }
.f-status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.f-actions .btn:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

/* ==========================================================================
   Assistant (chatbot)
   ========================================================================== */

.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: var(--f-body); }
.chat-fab {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  background: var(--navy); color: #fff;
  border: 1px solid var(--navy); border-radius: 50%;
  box-shadow: 0 8px 24px rgba(10, 26, 94, 0.28);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-fab { position: relative; }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab::after {
  content: ""; position: absolute; right: 2px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--bg);
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 0 -6px var(--green), 0 8px 24px rgba(10, 26, 94, 0.28); }
.chat-fab:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[data-theme="dark"] .chat-fab { background: var(--blue); border-color: var(--blue); color: #0a1130; }
[data-theme="dark"] .chat-fab::after { border-color: #0a1130; }
.chat.is-open .chat-fab { display: none; }

.chat-panel {
  display: flex; flex-direction: column;
  width: min(380px, calc(100vw - 24px));
  height: min(540px, calc(100vh - 40px));
  height: min(540px, calc(100dvh - 40px));
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(10, 26, 94, 0.28);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  background: var(--navy); color: #fff;
}
.chat-head strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 0.98rem; }
.chat-sub { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: #aab4e6; }
.chat-sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat-x {
  width: 30px; height: 30px; flex: none;
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 2px;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.chat-x:hover { background: var(--green); color: #0a1a5e; border-color: var(--green); }

.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; background: var(--bg); }
.chat-msg { max-width: 88%; padding: 10px 13px; font-size: 0.88rem; line-height: 1.5; border: 1px solid var(--line); border-radius: 2px; }
.chat-msg p { margin: 0; white-space: pre-line; }
.chat-msg--bot { justify-self: start; background: var(--paper); color: var(--text); }
.chat-msg--user { justify-self: end; background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme="dark"] .chat-msg--user { background: var(--blue); border-color: var(--blue); color: #0a1130; }
.chat-typing { color: var(--muted); letter-spacing: 0.2em; }
.chat-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-links a {
  padding: 6px 10px;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none;
  background: var(--blue-faint); border: 1px solid var(--line); border-radius: 2px;
  border-bottom: 2px solid var(--green);
}
.chat-links a:hover { background: var(--bg-2); color: var(--blue); }

.chat-sugg { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; background: var(--paper); border-top: 1px solid color-mix(in srgb, var(--line) 25%, transparent); scrollbar-width: thin; }
.chat-chip {
  flex: none; padding: 7px 11px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.75rem; cursor: pointer;
}
.chat-chip:hover { background: var(--blue-faint); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; background: var(--paper); }
.chat-form input {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--f-body); font-size: 0.92rem;
}
.chat-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 45%, transparent); }
.chat-form button {
  height: 40px; padding: 0 14px;
  background: var(--navy); color: #fff;
  border: 1px solid var(--navy); border-radius: 2px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
[data-theme="dark"] .chat-form button { background: var(--blue); border-color: var(--blue); color: #0a1130; }
.chat-form button:hover { box-shadow: 0 4px 0 -2px var(--green); }

@media (max-width: 600px) {
  .chat { right: 12px; bottom: 12px; }
  .chat-panel { width: calc(100vw - 24px); }
}
