/* ==========================================================================
   STAMIND — Think Big. Act Bold.
   Une seule couleur d’action, et des points qui deviennent tout.
   Deux thèmes : sombre (le vide noir) et clair (la carte de visite).
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --deep-black: #0A0A0A;    /* l’élégance, la force, le sérieux */
  --pure-white: #FFFFFF;    /* la clarté, la transparence, l’espoir */
  --signed-blue: #005DFF;   /* la confiance, la rigueur, le rêve */
  --spark: #FF8C00;         /* Azonché uniquement */

  /* Thème sombre (par défaut) */
  --bg: var(--deep-black);
  --fg: var(--pure-white);
  --fg-2: #C9C9C9;          /* textes courants */
  --fg-3: #9A9A9A;          /* textes secondaires */
  --accent: var(--signed-blue);
  --accent-hover: #1F70FF;
  --accent-text: #6E9EFF;   /* Signed Blue éclairci, lisible en petit sur le noir */
  --veil: 10, 10, 10;       /* fondu sous la navigation (RVB) */
  --hairline: rgba(255, 255, 255, .55);
  --dot-off: rgba(255, 255, 255, .2);
  --w-base: 300;            /* graisse du texte courant */
  --w-light: 200;           /* graisse des paragraphes d’accroche */

  /* Typographie */
  --font-sans: "Mona Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-display: clamp(3.4rem, 9.4vw, 9.75rem);
  --fs-h2: clamp(2.5rem, 5.4vw, 5.5rem);
  --fs-h3: clamp(1.75rem, 3vw, 3rem);
  --fs-lead: clamp(1.125rem, 1.35vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-label: 0.75rem;

  /* Mise en page */
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1360px;
  --radius: 24px;
  --nav-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Thème clair : fond blanc, encre noire, ondes bleues — comme la carte de visite */
html[data-theme="light"] {
  color-scheme: light;
  --bg: var(--pure-white);
  --fg: var(--deep-black);
  --fg-2: #3A3A3A;
  --fg-3: #6B6B6B;
  --accent-hover: #004BD6;
  --accent-text: var(--signed-blue);
  --veil: 255, 255, 255;
  --hairline: rgba(10, 10, 10, .4);
  --dot-off: rgba(10, 10, 10, .16);
  /* un texte foncé sur blanc paraît plus maigre : on lui rend un peu de graisse */
  --w-base: 360;
  --w-light: 300;
}

/* --- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--w-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
html[data-theme="light"] body {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 400; }

::selection { background: var(--accent); color: var(--pure-white); }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 4px;
  border-radius: 6px;
}
[tabindex="-1"]:focus { outline: none; }

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--pure-white);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform .4s var(--ease);
}
.skip-link:focus { transform: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* --- Champ de points ------------------------------------------------------ */

.field {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
}
.no-field .field { display: none; }

.field-fallback { display: none; }
.no-js:not(.has-field) .field-fallback,
.no-field .field-fallback {
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(78%, 420px);
}

main, .footer { position: relative; z-index: 1; }

/* --- Utilitaires ----------------------------------------------------------- */

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.mono {
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .02em;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.body {
  font-size: var(--fs-lead);
  font-weight: var(--w-light);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 32em;
  text-wrap: pretty;
}

.split-line { padding-bottom: .06em; margin-bottom: -.06em; }
.nobr { white-space: nowrap; }

/* Chaque logo existe en blanc (thème sombre) et en noir (thème clair) */
html[data-theme="light"] .on-dark,
html:not([data-theme="light"]) .on-light { display: none !important; }

/* --- Boutons et liens ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--pure-white);
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .3s ease;
  will-change: transform;
}
.btn:hover { background: var(--accent-hover); }
.btn--sm { padding: 12px 18px; font-size: .75rem; }
.btn__arrow { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

.link {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .3s ease, background-size .6s var(--ease);
}
.link:hover { color: var(--fg); background-size: 100% 1px; }

/* --- Navigation ------------------------------------------------------------ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding-inline: var(--gutter);
  transition: transform .7s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(var(--veil), .94), rgba(var(--veil), 0));
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden:not(:focus-within) { transform: translateY(-110%); }

.nav__logo img { height: 28px; width: auto; }

.nav__menu { margin-left: auto; }
.nav__menu ul { display: flex; gap: 30px; }
.nav__menu a {
  position: relative;
  display: block;
  padding-block: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
  transition: color .3s ease;
}
.nav__menu a::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform .5s var(--ease);
}
.nav__menu a:hover, .nav__menu a[aria-current="true"] { color: var(--fg); }
.nav__menu a[aria-current="true"]::before { transform: scale(1); }

/* Sélecteur de langue : la langue courante porte le point bleu de la marque */
.lang { display: flex; align-items: center; }
.lang a {
  position: relative;
  padding: 10px 7px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  color: var(--fg-3);
  transition: color .3s ease;
}
.lang a:hover, .lang a[aria-current="page"] { color: var(--fg); }
.lang a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}

/* Bouton de thème : un disque coupé par l’horizon du logo, qui pivote d’un thème à l’autre */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-inline: -8px;
  border-radius: 50%;
  color: var(--fg-3);
  transition: color .3s ease;
}
.theme-toggle:hover { color: var(--fg); }
.theme-toggle svg { width: 18px; height: 18px; transition: transform .8s var(--ease); }
html[data-theme="light"] .theme-toggle svg { transform: rotate(180deg); }

.nav__burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-left: auto;
  margin-right: -10px;
}
.nav__burger span:not(.sr-only) {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--fg);
  transition: transform .5s var(--ease);
}
.nav__burger span:nth-of-type(2) { top: 18px; }
.nav__burger span:nth-of-type(3) { top: 25px; }
.menu-open .nav__burger span:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger span:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }

.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 32px;
  background: var(--bg);
}
.menu-mobile[hidden] { display: none; }
.menu-mobile ul { display: grid; gap: 6px; }
.menu-mobile__link {
  display: block;
  overflow: clip;
  font-size: clamp(2.5rem, 11vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.menu-mobile__link > span { display: block; }
.menu-mobile__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.menu-mobile__foot .lang { margin-right: -7px; }
.menu-mobile__foot .lang a { padding: 12px 8px; font-size: .8125rem; }

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  padding-top: var(--nav-h);
}
.hero__content { position: relative; z-index: 1; padding-block: 48px; }
.hero__visual { position: relative; align-self: stretch; min-height: 420px; }

.hero__title {
  margin: 30px 0 36px;
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -0.05em;
}
.hero__line {
  display: block;
  overflow: clip;
  padding: 0 .04em .1em 0;
  margin-bottom: -.1em;
  white-space: nowrap;
}
.hero__big { display: inline-block; font-variation-settings: "wdth" 125; }
.hero__bold { display: inline-block; font-variation-settings: "wght" 760; }
.js .hero__big { font-variation-settings: "wdth" 100; }
.js .hero__bold { font-variation-settings: "wght" 400; }
.hero__title .char { display: inline-block; }

.hero__lead {
  max-width: 31em;
  font-size: var(--fs-lead);
  font-weight: var(--w-light);
  line-height: 1.55;
  color: var(--fg-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  margin-top: 40px;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 28px;
  color: var(--fg-3);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i {
  display: block;
  width: 1px; height: 30px;
  background: currentColor;
  transform-origin: top;
  animation: scroll-cue 2.4s var(--ease) infinite;
}
@keyframes scroll-cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Sections épinglées ------------------------------------------------------ */

.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* Manifeste */
.manifesto { position: relative; height: 340vh; }
.manifesto .sticky { display: flex; align-items: center; padding: var(--nav-h) 0 24px; }
.manifesto__text {
  max-width: 15em;
  margin-top: clamp(18px, 3svh, 30px);
  font-size: clamp(1.6rem, min(3.5vw, 5.6svh), 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.manifesto__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 64px;
  max-width: 860px;
  margin-top: clamp(28px, 5svh, 56px);
}
.manifesto__motto {
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.manifesto__pair p { margin-top: 10px; max-width: 24em; color: var(--fg-3); }

/* Afrique */
.africa { position: relative; height: 300vh; }
.africa__inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 48px;
  padding-top: var(--nav-h);
}
.africa__content .h2 { margin: 28px 0 28px; font-size: clamp(2.4rem, 4.5vw, 4.4rem); }
.africa__facts {
  margin-top: 36px;
  max-width: 22em;
  font-size: clamp(1.25rem, 1.75vw, 1.625rem);
  font-weight: var(--w-light);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg-3);
}
.africa__facts strong { font-weight: 400; color: var(--fg); white-space: nowrap; }
.africa__source { margin-top: 18px; color: var(--fg-3); font-size: .6875rem; }
.africa__map { position: relative; height: min(82svh, 780px); }
.africa__pin {
  position: absolute;
  left: -100px; top: -100px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(calc(-100% - 12px), 14px);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
  pointer-events: none;
}
.africa__pin::after {
  content: "";
  width: 22px; height: 1px;
  background: var(--hairline);
  transform: rotate(-30deg);
  transform-origin: right center;
}
.no-field .africa__pin { display: none; }

/* Approche : par défaut en colonne, en ligne horizontale sur grand écran */
.approach { position: relative; }
.approach .sticky {
  position: relative;
  height: auto;
  overflow: visible;
  padding-block: 18vh;
}
.approach__track {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding-inline: var(--gutter);
}
.approach__intro .h2 { margin: 28px 0 28px; }
.panel { max-width: 34em; }
.panel__label { display: flex; flex-direction: column; gap: 6px; color: var(--fg); }
.panel__label span { color: var(--accent-text); text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-label); }
.panel__title {
  margin: 26px 0 16px;
  font-size: var(--fs-h3);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.panel__body { font-size: var(--fs-lead); font-weight: var(--w-light); color: var(--fg-2); max-width: 24em; }
.approach__dots { display: none; }

@media (min-width: 901px) {
  .js .approach .sticky {
    position: sticky;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    padding-block: calc(var(--nav-h) + 6vh) 0;
  }
  .js .approach__track {
    flex-direction: row;
    align-items: flex-start;
    gap: 7vw;
    width: max-content;
    padding-inline: var(--gutter) 12vw;
    will-change: transform;
  }
  .js .approach__intro { width: min(44vw, 640px); flex: none; }
  .js .panel { width: min(30vw, 450px); flex: none; padding-top: 8px; }
  .js .approach__dots {
    position: absolute;
    left: var(--gutter);
    bottom: 32px;
    display: flex;
    gap: 10px;
  }
  .approach__dots i {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--dot-off);
    transition: background-color .4s ease, transform .5s var(--ease);
  }
  .approach__dots i.is-on { background: var(--accent); transform: scale(1.3); }
}

/* --- Azonché ---------------------------------------------------------------- */

.azonche { position: relative; padding-block: 12vh 16vh; }
.azonche__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
}
.azonche__visual {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}
.azonche__content { padding-block: 14vh 6vh; }
.azonche__logo { display: block; margin: 36px 0 44px; }
.azonche__logo img { height: clamp(36px, 3.4vw, 48px); width: auto; }
.azonche__content .h2 { font-size: clamp(2.25rem, 4.4vw, 4.5rem); }
.azonche__content .body { margin-top: 28px; }

.tabs { margin-top: 56px; }
.tabs__list {
  position: relative;
  display: inline-flex;
  gap: 32px;
}
.tabs__list [role="tab"] {
  padding: 10px 0 10px 16px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
  transition: color .3s ease;
}
.tabs__list [role="tab"]:hover, .tabs__list [role="tab"][aria-selected="true"] { color: var(--fg); }
.tabs__marker {
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--spark);
  pointer-events: none;
}

.features { display: grid; margin-top: 18px; }
.features li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 8px 40px;
  padding-block: 22px;
}
.features h3 {
  font-size: clamp(1.25rem, 1.65vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.features p { color: var(--fg-3); }
.azonche__cta { margin-top: 48px; }

/* --- Vision ----------------------------------------------------------------- */

.vision { position: relative; height: 240vh; }
.vision .sticky { display: flex; align-items: center; }
.vision__title {
  margin-top: 30px;
  max-width: 11em;
  font-size: clamp(3rem, 8.2vw, 8.5rem);
  line-height: .95;
  letter-spacing: -0.05em;
  transform-origin: 0 60%;
}
.vision__dot {
  display: inline-block;
  width: .17em; height: .17em;
  margin-left: .05em;
  border-radius: 50%;
  background: var(--accent);
}
.has-field .vision__dot { background: transparent; }
.vision__lead { margin-top: 40px; }

/* --- Contact ---------------------------------------------------------------- */

.contact {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 16vh 10vh;
}
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 48px;
}
.contact__content .h2 { margin: 28px 0 28px; }
.contact__mail {
  display: inline-flex;
  align-items: baseline;
  gap: .3em;
  margin-top: 52px;
  padding-bottom: 8px;
  font-size: clamp(1.6rem, 4vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat;
  transition: background-size .7s var(--ease);
}
.contact__mail:hover { background-size: 100% 3px; }
.contact__mail span { display: inline-block; color: var(--accent-text); transition: transform .6s var(--ease); }
.contact__mail:hover span { transform: translateX(10px); }
.contact__place { margin-top: 28px; color: var(--fg-3); }
.contact__visual { position: relative; height: min(64svh, 600px); }

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

.footer { padding-block: 80px 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}
.footer__logo img { height: 30px; width: auto; }
.footer__motto {
  margin-top: 28px;
  font-size: var(--fs-h3);
  letter-spacing: -0.04em;
  line-height: 1;
}
.footer__col .eyebrow { color: var(--fg-3); }
.footer__col .eyebrow::before { background: var(--fg-3); }
.footer__col ul { display: grid; gap: 10px; margin-top: 22px; }
.footer__col a { color: var(--fg-2); transition: color .3s ease; }
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 96px;
  color: var(--fg-3);
}
.footer__bottom a:hover { color: var(--fg); }

/* --- États initiaux (seulement si les scripts tournent) ------------------------ */

.js .nav,
.js .hero__eyebrow,
.js .hero__title,
.js .hero__lead,
.js .hero__actions,
.js .hero__meta > *,
.js [data-split],
.js [data-fade],
.js .manifesto__text,
.js .manifesto__pair > div { visibility: hidden; }

/* --- Tablettes et mobiles ------------------------------------------------------ */

@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .nav__menu ul { gap: 20px; }
}

@media (max-width: 1100px) {
  .africa__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__menu, .nav__cta, .nav > .lang { display: none; }
  .theme-toggle { margin-left: auto; margin-right: -4px; }
  .nav__burger { display: block; margin-left: 0; }
  .nav__logo img { height: 24px; }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: end;
  }
  .hero__visual { order: -1; min-height: 0; height: 36svh; }
  .hero__content { padding-block: 0 24px; }
  .hero__title { margin: 20px 0 22px; font-size: clamp(3.2rem, 15.5vw, 6.5rem); }
  .hero__lead { font-size: 1.0625rem; }
  .hero__actions { margin-top: 28px; gap: 14px 24px; }
  .hero__meta .hero__coords { display: none; }

  .manifesto { height: 300vh; }
  .manifesto__text { max-width: none; }
  .manifesto__pair { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 40px; }

  .africa { height: 260vh; }
  .africa__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding-top: calc(var(--nav-h) + 12px);
  }
  .africa__content .h2 { margin: 16px 0 16px; font-size: clamp(2rem, 8.6vw, 3.25rem); }
  .africa__content .body { display: none; }
  .africa__facts { margin-top: 0; font-size: 1.0625rem; }
  .africa__source { display: none; }
  .africa__map { height: 100%; min-height: 0; }

  .azonche { padding-block: 10vh; }
  .azonche__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .azonche__visual { position: relative; height: 56vw; max-height: 380px; }
  .azonche__content { padding-block: 0; }
  .features li { grid-template-columns: minmax(0, 1fr); padding-block: 16px; }

  .vision { height: 200vh; }

  .contact { padding-block: 12vh 6vh; }
  .contact__inner { grid-template-columns: minmax(0, 1fr); }
  .contact__visual { order: -1; height: 48vw; max-height: 340px; }

  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .hero__meta { font-size: .75rem; }
  .hide-sm { display: none; }
  .tabs__list { gap: 20px; }
  .btn { padding: 15px 20px; }
}

/* --- Changement de thème ---------------------------------------------------------- */

/* Avec les View Transitions, le nouveau thème s’ouvre en cercle depuis le bouton (main.js) */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* Sans elles, un simple fondu des couleurs */
html.theme-fade,
html.theme-fade *,
html.theme-fade *::before,
html.theme-fade *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease !important;
}

/* --- Mouvement réduit ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
