/* ============================================================
   SARGAWATT – Shared design system  (v2 – "bluetech de terrain")
   Nautical-chart palette · IBM Plex · editorial photo slots
   ============================================================ */

:root {
  /* ---- Brand & nautical palette ---- */
  --teal: #00979d;
  --teal-600: #07868b;
  --teal-700: #0a6c71;
  --teal-800: #0c5358;
  --teal-900: #0c3f44;
  --teal-tint: #e2efee;
  --teal-tint-2: #eef5f3;

  --marine: #0a2c31;      /* deep immersive sections */
  --marine-2: #0e3a40;

  --ink: #23282a;
  --ink-soft: #54595a;
  --gray: #8c8d84;

  --sand: #c8b48b;
  --sand-deep: #9c8657;
  --biomass: #5e6a43;

  --paper: #f1ede2;       /* warm paper */
  --paper-2: #e8e1d0;
  --bg: #f4f0e7;          /* warm off-white page bg */
  --surface: #ffffff;
  --surface-2: #faf8f1;

  --line: #e0dac9;        /* warm hairline */
  --line-2: #cec7b2;
  --rule: rgba(20, 40, 42, 0.12);

  /* ---- Type ---- */
  --font-display: "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  /* Ancien token mono conserve pour les micro-labels, desormais en IBM Plex Sans. */
  --font-mono: "IBM Plex Sans", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;

  /* ---- Metrics ---- */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 4px;
  --radius-sm: 3px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 0 rgba(20, 40, 42, 0.04);
  --shadow-md: 0 14px 40px rgba(12, 63, 68, 0.10);

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

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Garde les pages mobiles dans la largeur de l'ecran meme si un composant interne est scrollable. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Filet de securite mobile : les navigations horizontales gardent leur propre overflow. */
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--teal); color: #fff; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section.tight { padding-block: clamp(54px, 6vw, 82px); }
/* Les enfants de grilles/flex peuvent enfin retrecir au lieu de pousser la page en largeur. */
.wrap > *,
.header-inner > *,
.footer-top > *,
.footer-bottom > *,
[class*="-grid"] > *,
[class*="-layout"] > *,
[class*="-split"] > *,
[class*="-top"] > *,
[class*="-row"] > *,
.section-head,
.hero-ctas > *,
.form-grid > * {
  min-width: 0;
}

/* Eyebrow kickers removed site-wide per art direction – headings stand alone */
.eyebrow { display: none !important; }

/* Decorative chip / pill rows removed site-wide (folded into editorial layout) */
.proof-badges { display: none !important; }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 58px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 52px); margin-top: 0; }
.section-head p {
  margin-top: 20px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- Buttons (squared / industrial) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-700); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-700); }

.btn-light { background: #fff; color: var(--teal-800); }
.btn-light:hover { transform: translateY(-1px); }

/* text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--teal-700);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { border-color: var(--teal); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   HEADER  – full desktop menu, burger only on mobile
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  /* Fond quasi-opaque SANS backdrop-filter : eviter de re-flouter en direct evite que la barre
     soit repeinte a chaque image d'une video qui defile sous elle (cause de saccades). */
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom-color: var(--line);
}
.page-home .site-header {
  position: fixed;
  width: 100%;
}
.page-home .site-header:not(.scrolled) {
  /* Le header home initial flotte sur l'image avec un leger flou de lisibilite. */
  background: rgba(7, 35, 39, 0.18);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: rgba(255,255,255,0.12);
}
.page-home .site-header:not(.scrolled) .logo {
  --logo-ink: #fff;
  --logo-teal: #fff;
}
.page-home .site-header:not(.scrolled) .nav > a,
.page-home .site-header:not(.scrolled) .nav-item > .nav-top {
  color: rgba(255,255,255,0.9);
}
.page-home .site-header:not(.scrolled) .nav > a:hover,
.page-home .site-header:not(.scrolled) .nav > a.active,
.page-home .site-header:not(.scrolled) .nav-item:hover > .nav-top {
  color: #fff;
}
.page-home .site-header:not(.scrolled) .nav > a.active::after {
  background: #fff;
}
.page-home .site-header:not(.scrolled) .nav-caret,
.page-home .site-header:not(.scrolled) .lang-btn {
  color: rgba(255,255,255,0.86);
}
.page-home .site-header:not(.scrolled) .lang-btn {
  border-color: rgba(255,255,255,0.34);
}
.page-home .site-header:not(.scrolled) .lang-btn:hover {
  border-color: rgba(255,255,255,0.62);
  color: #fff;
}
.page-home .site-header:not(.scrolled) .burger span {
  background: #fff;
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 76px; }
.logo { height: 30px; width: auto; --logo-ink: var(--ink); --logo-teal: var(--teal); }
.logo .st2 { fill: var(--ink); }
.logo .st5 { fill: var(--teal); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav a {
  font-weight: 500; font-size: 15px; color: var(--ink-soft);
  padding: 8px 13px; border-radius: var(--radius-sm); white-space: nowrap;
  position: relative; transition: color 0.2s;
}
.nav > a::before,
.nav-item > .nav-top::before {
  content: "";
  position: absolute;
  inset: -18px -4px;
  /* Agrandit la zone cliquable sans modifier le rendu visuel du lien. */
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--teal-700); }
.nav a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 1px;
  height: 1.5px; background: var(--teal);
}

/* ---- Dropdown sub-menus (replaces sticky sub-nav) ---- */
.nav-item { position: relative; display: inline-flex; }
.nav .nav-top {
  display: inline-flex; align-items: center; gap: 5px;
}
.nav .nav-caret { width: 12px; height: 12px; color: var(--gray); transition: transform 0.25s var(--ease), color 0.2s; }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); color: var(--teal-700); }
.nav-item:hover .nav-top { color: var(--ink); }

.nav-menu {
  position: absolute; top: 100%; left: -6px;
  min-width: 232px; padding: 7px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 1px;
  opacity: 0; visibility: hidden; transform: translateY(-7px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 70;
}
/* invisible hover bridge so cursor can travel into the menu */
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav .nav-menu a {
  display: block; padding: 10px 13px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap; transition: background 0.18s, color 0.18s;
}
.nav .nav-menu a::after { display: none; }
.nav .nav-menu a:hover { background: var(--teal-tint-2); color: var(--teal-700); }

/* ============================================================
   STICKY TUNNEL SUB-NAV  – sibling-page navigation, under header
   ============================================================ */
.subnav {
  position: sticky; top: 76px; z-index: 55;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav-inner {
  display: flex; align-items: center; gap: 18px;
  height: 54px; overflow-x: auto; scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-label {
  flex: none; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal-700);
  padding-right: 18px; border-right: 1px solid var(--line-2); white-space: nowrap;
}
.subnav-links { display: flex; align-items: center; gap: 4px; }
.subnav-links a {
  position: relative; flex: none; white-space: nowrap;
  padding: 8px 13px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: background 0.18s, color 0.18s;
}
.subnav-links a:hover { background: var(--teal-tint-2); color: var(--teal-700); }
.subnav-links a.current { color: var(--teal-800); }
.subnav-links a.current::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px;
  height: 2px; background: var(--teal); border-radius: 2px;
}
.subnav-links a.subnav-cta {
  margin-left: 4px; color: var(--teal-700); font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.subnav-links a.subnav-cta svg { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .subnav { top: 66px; }
  .subnav-label { display: none; }
}

/* mobile-nav grouped sub-links */
.mobile-nav .m-group { border-bottom: 1px solid var(--line); padding: 8px 0 10px; }
.mobile-nav .m-group a {
  font-size: 17px; font-weight: 500; color: var(--ink-soft);
  padding: 9px 0 9px 16px; border-bottom: 0;
}

.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* Language selector */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 8px 11px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.04em; color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s;
}
.lang-btn:hover { border-color: var(--teal); color: var(--teal-700); }
.lang-btn svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.lang-btn svg:first-child { width: 14px; height: 14px; }
.lang.open .lang-btn svg:last-child { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 6px; min-width: 138px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.2s var(--ease); z-index: 70;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: 12px; background: none; border: 0; padding: 9px 11px;
  border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; color: var(--ink);
  transition: background 0.18s;
}
.lang-menu button span { font-family: var(--font-mono); font-size: 11px; color: var(--gray); }
.lang-menu button:hover { background: var(--teal-tint-2); }
.lang-menu button.active { color: var(--teal-700); }

.burger {
  display: none; background: none; border: 0; width: 42px; height: 42px;
  border-radius: var(--radius-sm); position: relative;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

/* ============================================================
   EDITORIAL PHOTO SLOTS  (replaces the teal-gradient boxes)
   Calm muted tone · fine grid · crop-mark corners · mono brief
   ============================================================ */
.ph {
  --ph-bg: #b7c3c1;
  --ph-fg: #2c3a3a;
  --ph-tick: rgba(255, 255, 255, 0.8);
  position: relative; overflow: hidden;
  /* Les slots image restent dans leur colonne meme avec aspect-ratio et min-height sur mobile. */
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  background-color: var(--ph-bg);
  background-image:
    linear-gradient(rgba(20, 40, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 40, 42, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  display: flex; align-items: flex-end;
  min-height: 340px; isolation: isolate;
}
/* Replace the PNG file behind each slot while keeping captions and labels stable. */
.ph-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Once a real image is plugged in, remove the placeholder framing from that slot. */
.ph:has(.ph-img)::before,
.ph:has(.ph-img) .ph-label {
  display: none;
}
/* crop-mark corners */
.ph::before {
  content: ""; position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--ph-tick) 0 0) 0 0 / 15px 1.5px no-repeat,
    linear-gradient(var(--ph-tick) 0 0) 0 0 / 1.5px 15px no-repeat,
    linear-gradient(var(--ph-tick) 0 0) 100% 0 / 15px 1.5px no-repeat,
    linear-gradient(var(--ph-tick) 0 0) 100% 0 / 1.5px 15px no-repeat,
    linear-gradient(var(--ph-tick) 0 0) 0 100% / 15px 1.5px no-repeat,
    linear-gradient(var(--ph-tick) 0 0) 0 100% / 1.5px 15px no-repeat,
    linear-gradient(var(--ph-tick) 0 0) 100% 100% / 15px 1.5px no-repeat,
    linear-gradient(var(--ph-tick) 0 0) 100% 100% / 1.5px 15px no-repeat;
}
/* neutralize old decorative layers */
.ph svg.contours, .ph .ph-glow { display: none; }

.ph .ph-label {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--ph-fg) 82%, transparent);
  color: #fff;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px;
}
.ph .ph-label svg { width: 12px; height: 12px; }
/* tone variants */
.ph.sand   { --ph-bg: #cdbd99; --ph-fg: #4a3f25; --ph-tick: rgba(255,255,255,0.85); }
.ph.marine { --ph-bg: #18454b; --ph-fg: #07232730; --ph-tick: rgba(255,255,255,0.55); }
.ph.biomass{ --ph-bg: #8b9468; --ph-fg: #353c22; }
.ph.slate  { --ph-bg: #a9b4b8; --ph-fg: #2a3438; }

/* figure container */
.figure { margin: 0; }

/* Visually hide helper text while keeping it available to assistive tech and i18n extraction. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   CREDIBILITY PROOF LINE  – single-line logo strip on dark band
   ============================================================ */
.proofline {
  /* Bande blanche pleine largeur pour fondre les logos non detoures dans la page. */
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.proofline .wrap {
  padding-block: clamp(22px, 2.7vw, 34px);
  max-width: none;
  padding-inline: clamp(18px, 3vw, 48px);
}
.logo-strip {
  /* Ligne pleine largeur : chaque reconnaissance occupe un cinquieme du bandeau. */
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.logo-slot {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  padding: 10px clamp(8px, 1.3vw, 18px) 8px;
  text-align: center;
}
.logo-slot.logo-link {
  /* Le lien de reconnaissance conserve le rendu du ruban sans apparence de bouton. */
  color: inherit;
  text-decoration: none;
}
.logo-slot.logo-link:hover .logo-cap,
.logo-slot.logo-link:focus-visible .logo-cap {
  color: var(--teal-700);
}
.logo-slot.logo-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.logo-slot + .logo-slot {
  /* Separateur discret : structure la ligne sans dessiner des cartes. */
  border-left: 1px solid rgba(18,44,45,0.08);
}
.logo-slot .logo-img {
  width: min(88%, 230px); max-width: none; height: 68px;
  background: transparent;
  border: 0;
  display: grid; place-items: center; color: rgba(255,255,255,0.5);
}
.logo-slot .logo-img svg { width: 18px; height: 18px; }
.logo-slot .logo-img.has-logo {
  /* Les logos vivent directement sur le blanc commun, y compris les JPG non detoures. */
  background: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.logo-slot .logo-img.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-slot .logo-img.logo-square img {
  /* Les logos carres gardent une taille contenue dans le ruban horizontal. */
  width: auto;
  max-width: 68px;
  max-height: 68px;
}
.logo-slot .solar-impulse-logo img {
  max-height: 60px;
}
.logo-slot .inpi-logo img {
  max-height: 68px;
}
.logo-slot .cluster-logo img {
  max-height: 68px;
}
.logo-slot .bpifrance-logo img {
  max-height: 58px;
}
.logo-slot .logo-cap {
  font-family: var(--font-mono); font-size: clamp(10px, 0.78vw, 11.2px); letter-spacing: 0.07em;
  text-transform: uppercase; color: rgba(18,44,45,0.50); line-height: 1.35;
}
@media (max-width: 860px) {
  .proofline .wrap {
    /* Sur mobile, le bandeau de reconnaissances devient un rail lateral fluide. */
    padding-inline: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .proofline .wrap::-webkit-scrollbar { display: none; }
  .logo-strip {
    display: flex;
    width: max-content;
    min-width: 100%;
    padding-inline: var(--gutter);
  }
  .logo-slot {
    flex: 0 0 clamp(148px, 42vw, 190px);
    min-height: 118px;
    scroll-snap-align: start;
  }
  .logo-slot + .logo-slot { border-left: 1px solid rgba(18,44,45,0.10); }
}

/* ============================================================
   STATS  (big typographic numbers, top rule – no chips)
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { border-top: 2px solid var(--teal); padding: 22px 24px 4px 0; position: relative; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 24px; }
.stat .num {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(40px, 5vw, 60px); line-height: 0.96; color: var(--ink);
}
.stat .num .u { font-size: 0.40em; color: var(--teal-700); letter-spacing: 0; font-weight: 600; }
.stat .desc { margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }
.sources {
  margin-top: 30px; font-family: var(--font-mono);
  font-size: 11.5px; color: var(--gray); line-height: 1.55;
  display: flex; gap: 9px; align-items: flex-start;
}
.sources svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--marine); color: rgba(255,255,255,0.66); }
/* Le padding du footer cible seulement son wrap direct pour accepter des sections integrees. */
.footer > .wrap { padding-block: clamp(56px, 7vw, 84px) 30px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 36px; }
.footer .logo-w { height: 28px; margin-bottom: 18px; --logo-ink: #fff; --logo-teal: #7fd0d4; }
.footer .logo-w .st2 { fill: #fff; }
.footer .logo-w .st5 { fill: #7fd0d4; }
.footer .baseline { font-size: 14.5px; line-height: 1.6; max-width: 300px; color: rgba(255,255,255,0.74); }
.footer h4 {
  /* Titres renforces pour rester lisibles sur le fond marine du footer. */
  color: #aee7ea; font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a { display: block; font-size: 14.5px; padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer address { font-style: normal; font-size: 14px; line-height: 1.7; }
.footer address a { color: var(--teal); }
.footer address a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 60px); padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.5);
}
.footer-bottom .legal { margin-left: auto; display: flex; gap: 22px; }
.footer-bottom .legal a:hover { color: #fff; }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav {
  position: fixed; inset: 0; z-index: 59;
  background: var(--surface);
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: all 0.3s var(--ease);
  padding: 96px var(--gutter) 34px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-nav { transform: none; opacity: 1; visibility: visible; }
body.menu-open .site-header {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
}
body.menu-open .site-header .logo {
  --logo-ink: var(--ink);
  --logo-teal: var(--teal);
}
body.menu-open .site-header .burger span { background: var(--ink); }
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav a {
  display: block;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.mobile-nav-kicker {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.mobile-nav-lang {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-kicker {
  display: block;
  color: var(--gray);
  margin-bottom: 10px;
}
.mobile-nav .lang-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.mobile-nav .lang-row button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 38px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-soft);
}
.mobile-nav .lang-row button span {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--gray);
}
.mobile-nav .lang-row button.active { border-color: var(--teal); color: var(--teal-700); background: var(--teal-tint-2); }
.mobile-nav .m-group { border-bottom: 1px solid var(--line); }
.mobile-nav .m-group-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn-primary { margin-top: 14px; justify-content: center; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }

/* ---------- Navigation de lecture injectee par assets/js/reading-nav.js ---------- */
.reading-nav {
  position: fixed;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(16px, 2vw, 24px);
  z-index: 58;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.reading-nav-btn {
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--teal-700);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.reading-nav-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.reading-nav-btn:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}
.reading-nav-btn:disabled {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}
.reading-nav.near-top .reading-nav-next {
  /* La premiere fleche vers le bas sert aussi d'indice discret qu'il reste du contenu a lire. */
  animation: reading-next-pulse 1.8s var(--ease) infinite;
}
@keyframes reading-next-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .reading-nav.near-top .reading-nav-next { animation: none; }
}

/* ============================================================
   RESPONSIVE  (shared)
   ============================================================ */
@media (max-width: 1080px) {
  .site-header .header-inner { gap: 14px; }
  .nav { margin-left: 2px; }
  .nav a { font-size: 14px; padding: 8px 9px; }
  .header-right { gap: 9px; }
  .header-right .btn-primary { padding: 11px 15px; font-size: 14px; }
  .header-right .btn-primary .arrow { display: none; }
}
@media (max-width: 980px) {
  .nav, .header-right .lang, .header-right .btn-primary { display: none; }
  .burger { display: block; }
}
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { border-top-width: 2px; }
}
@media (max-width: 760px) {
  :root {
    /* Gouttiere plus stable sur petits ecrans : assez d'air sans rogner les textes longs. */
    --gutter: clamp(20px, 5.2vw, 24px);
  }
  body { font-size: 16px; }
  .header-inner { height: 66px; }
  .logo { height: 26px; max-width: min(62vw, 230px); }
  .burger { width: 40px; height: 40px; }
  .burger span:nth-child(1) { top: 14px; }
  .burger span:nth-child(2) { top: 20px; }
  .burger span:nth-child(3) { top: 26px; }
  .mobile-nav {
    inset: 0;
    padding: 82px var(--gutter) 28px;
    gap: 0;
  }
  .mobile-nav a { font-size: 18px; padding: 12px 0; line-height: 1.25; }
  .mobile-nav .m-group {
    padding: 0 0 13px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav .m-group-label {
    display: block;
    padding: 12px 0;
    color: var(--ink);
  }
  .mobile-nav .m-group a {
    /* Les sous-liens mobile restent verticaux pour eviter les lignes compactees. */
    display: block;
    padding: 8px 0 8px 14px;
    border-bottom: 0;
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink-soft);
  }
  .mobile-nav .m-group a.m-group-label {
    /* Les titres de groupe sont cliquables mais gardent la presence visuelle des titres principaux. */
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.25;
    color: var(--ink);
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav .btn-primary {
    width: 100%;
    margin-top: 18px;
    padding-block: 15px;
    text-align: center;
    white-space: normal;
  }
  .subnav { top: 66px; }
  .subnav-inner {
    height: 48px;
    gap: 0;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .subnav-links {
    width: max-content;
    min-width: 100%;
    gap: 2px;
  }
  .subnav-links a {
    padding: 8px 10px;
    font-size: 13.5px;
  }
  .reading-nav {
    /* Le geste tactile remplace les fleches flottantes, qui recouvraient menu et visuels. */
    display: none;
  }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .footer-bottom .legal { margin-left: 0; width: 100%; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; }
}
