/* ════════════════════════════════════════════════════════════
   MISSION COSMOS — feuille de style unique
   1. Polices   2. Tokens   3. Base   4. Utilitaires   5. Boutons
   6. En-tête   7. Ciel      8. Sections  9. Hero  10. Inventeurs
   11. COSMOS   12. Status   13. Modules  14. Formulaires
   15. Partenaires 16. Passerelle 17. Rêve 18. Constellation
   19. Médias   20. Vidéo    21. Pied de page 22. Mouvement réduit
   ════════════════════════════════════════════════════════════ */

/* 1. Polices (auto-hébergées, sous-ensemble latin) */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* 2. Tokens */
:root {
  --bg: #04060d;
  --bg-2: #070b18;
  --nuit: #0b1330;
  --surface: rgba(14, 22, 48, 0.55);
  --surface-2: rgba(20, 30, 62, 0.7);
  --ligne: rgba(170, 190, 240, 0.14);
  --ligne-forte: rgba(170, 190, 240, 0.28);

  --texte: #eef2fb;
  --texte-2: #b3bdd4;
  --texte-3: #8590ab;

  --accent: #9cc0ff;
  --accent-2: #b9a8ff;
  --ok: #62d6a0;
  --actif: #86b6ff;
  --encours: #f0c56e;

  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1200px;
  --section: clamp(5rem, 12vw, 9.5rem);
  --rayon: 14px;
  --rayon-s: 8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-lent: 900ms;
  --header-h: 64px;
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--texte);
  font-family: var(--f-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
main { position: relative; z-index: 1; outline: none; }
::selection { background: rgba(156, 192, 255, 0.35); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 4. Utilitaires */
[hidden] { display: none !important; }
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.container--etroit { max-width: 760px; }
.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: 0.75rem; left: 0.75rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--texte); color: var(--bg);
  border-radius: var(--rayon-s); transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }
.mono { font-family: var(--f-mono); letter-spacing: 0.04em; }
.small { font-size: 0.82rem; }
.muted, .attenue { color: var(--texte-2); }
.accent { color: var(--accent); }
.hp { position: absolute; left: -9999px; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7;
}
.titre-xl { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.8rem); }
.titre-l  { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
.titre-m  { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--texte-2); line-height: 1.55; max-width: 60ch; }

.tag-avenir {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--encours);
  border: 1px dashed rgba(240, 197, 110, 0.5);
  padding: 0.2em 0.6em; border-radius: 4px;
  vertical-align: middle; white-space: nowrap;
}

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 0.6em; vertical-align: 0.08em; flex: none;
  background: var(--texte-3);
}
.dot--ok { background: var(--ok); box-shadow: 0 0 0 0 rgba(98, 214, 160, 0.6); animation: pouls 3.2s var(--ease) infinite; }
.dot--actif { background: var(--actif); box-shadow: 0 0 10px rgba(134, 182, 255, 0.7); }
.dot--en-cours { background: var(--encours); animation: clignote 2.6s ease-in-out infinite; }
.dot--attente { background: var(--accent-2); animation: clignote 3.4s ease-in-out infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(98, 214, 160, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(98, 214, 160, 0); } }
@keyframes clignote { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Apparition douce au scroll (seulement si JS actif) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-lent) var(--ease), transform var(--t-lent) var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 5. Boutons */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: var(--h); padding: 0 1.6rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border-radius: 6px; border: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.4s var(--ease), transform 0.3s var(--ease);
}
.btn--primary { background: var(--texte); color: #050814; }
.btn--primary:hover { background: #fff; box-shadow: 0 0 0 6px rgba(156, 192, 255, 0.14), 0 10px 40px -10px rgba(156, 192, 255, 0.55); }
.btn--ghost { border-color: var(--ligne-forte); color: var(--texte); background: rgba(8, 12, 28, 0.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgba(220, 230, 255, 0.6); background: rgba(30, 44, 90, 0.4); }
.btn--sm { --h: 42px; padding: 0 1.1rem; font-size: 0.72rem; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }

.lien-discret {
  background: none; border: 0; padding: 0.4rem 0; cursor: pointer;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--texte-2); text-decoration: underline; text-decoration-color: var(--ligne-forte); text-underline-offset: 6px;
  transition: color 0.3s, text-decoration-color 0.3s;
}
.lien-discret:hover { color: var(--texte); text-decoration-color: var(--accent); }

/* 6. En-tête */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(4, 6, 13, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--ligne);
}
.site-header__inner {
  height: var(--header-h);
  width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.brand strong { font-weight: 700; letter-spacing: 0.14em; }
.brand__txt { font-weight: 400; }
.brand__star { color: var(--accent); font-size: 1rem; }
.brand__logo { width: 32px; height: 32px; flex: none; }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: clamp(0.9rem, 1.6vw, 1.7rem); }
.nav__link {
  text-decoration: none; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--texte-2); padding: 0.4rem 0; position: relative; transition: color 0.3s; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--texte); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--ligne-forte); border-radius: 8px; cursor: pointer; position: relative; }
.burger__bars, .burger__bars::before, .burger__bars::after {
  position: absolute; left: 50%; width: 18px; height: 1.5px; background: var(--texte); border-radius: 1px;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.burger__bars { top: 50%; transform: translate(-50%, -50%); }
.burger__bars::before, .burger__bars::after { content: ""; left: 0; }
.burger__bars::before { transform: translateY(-6px); }
.burger__bars::after { transform: translateY(6px); }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: rotate(45deg); background: var(--texte); }
.burger[aria-expanded="true"] .burger__bars::after { transform: rotate(-45deg); background: var(--texte); }

.menu-ouvert { overflow: hidden; }

@media (max-width: 1140px) {
  .nav, .nav__cta { display: none; }
  .burger { display: block; }
}

/* 7. Ciel étoilé (canvas fixe derrière tout le site) */
.sky {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.sky-halo {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 10%, rgba(93, 84, 200, 0.10), transparent 70%),
    radial-gradient(70vw 60vh at 0% 60%, rgba(40, 90, 200, 0.08), transparent 70%);
}

/* 8. Sections */
.section { position: relative; padding-block: var(--section); }
.section__entete { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 820px; }
.section__entete .lead { margin-top: 1.4rem; }
.section__entete--centre { margin-inline: auto; text-align: center; }
.section__entete--centre .eyebrow { justify-content: center; }
.section__entete--centre .lead { margin-inline: auto; }

.carte {
  background: var(--surface);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  position: relative;
  transition: border-color 0.5s var(--ease), box-shadow 0.6s var(--ease), background 0.5s;
}
.carte:hover { border-color: var(--ligne-forte); box-shadow: 0 0 0 1px rgba(156, 192, 255, 0.06), 0 20px 60px -30px rgba(120, 150, 255, 0.45); }

.verre {
  background: linear-gradient(160deg, rgba(30, 44, 92, 0.42), rgba(10, 16, 38, 0.55));
  border: 1px solid var(--ligne-forte);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

/* Visuels + placeholders */
.visuel { margin: 0; position: relative; aspect-ratio: var(--ratio, 4/3); border-radius: var(--rayon); overflow: hidden; background: var(--bg-2); border: 1px solid var(--ligne); }
.visuel img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.visuel__credit { position: absolute; right: 0.6rem; bottom: 0.5rem; font-family: var(--f-mono); font-size: 0.62rem; color: rgba(238, 242, 251, 0.6); letter-spacing: 0.04em; }
.visuel--vide {
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(60, 100, 220, 0.18), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(170, 190, 240, 0.05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(170, 190, 240, 0.05) 39px 40px),
    var(--bg-2);
}
.visuel--vide .visuel__vide-txt { position: relative; display: grid; gap: 0.6rem; justify-items: center; padding: 1rem; }
.visuel__legende { font-size: 0.85rem; color: var(--texte-2); }
.visuel__mire { position: absolute; inset: 18% ; border: 1px solid var(--ligne); border-radius: 50%; }
.visuel__mire::before, .visuel__mire::after { content: ""; position: absolute; background: var(--ligne); }
.visuel__mire::before { left: 50%; top: -12%; bottom: -12%; width: 1px; }
.visuel__mire::after { top: 50%; left: -12%; right: -12%; height: 1px; }

.liste-puces { list-style: none; display: grid; gap: 0.45rem; margin-top: 1rem; }
.liste-puces li { position: relative; padding-left: 1.3rem; color: var(--texte-2); font-size: 0.95rem; line-height: 1.45; }
.liste-puces li::before { content: "✦"; position: absolute; left: 0; top: 0.05em; font-size: 0.65rem; color: var(--accent); }

/* 9. Hero */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-h) + 2rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.8s var(--ease);
}
.hero__video.is-ready { opacity: 1; }
.hero__voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 13, 0.55) 0%, rgba(4, 6, 13, 0) 30%),
    linear-gradient(90deg, rgba(4, 6, 13, 0.75) 0%, rgba(4, 6, 13, 0.25) 55%, rgba(4, 6, 13, 0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(4, 6, 13, 0) 22%);
}

/* La Terre vue de l'espace — dessinée en CSS (remplacée par la vidéo si fournie) */
.earth {
  position: absolute;
  left: 50%; top: 66%;
  width: max(2400px, 210vw); aspect-ratio: 1;
  transform: translateX(-38%);
  animation: derive 60s ease-in-out infinite alternate;
}
.earth__globe, .earth__atmo { position: absolute; inset: 0; border-radius: 50%; }
.earth__globe {
  background:
    radial-gradient(48% 6% at 62% 0.6%, rgba(220, 238, 255, 0.55), transparent 70%),
    radial-gradient(60% 18% at 65% 2%, rgba(120, 180, 255, 0.55), transparent 70%),
    radial-gradient(90% 40% at 60% 3%, #1d4f9e 0%, #0d2756 35%, #061330 65%, #030812 100%);
  box-shadow: inset 0 2px 1px rgba(210, 232, 255, 0.85), inset 0 14px 40px rgba(110, 170, 255, 0.45);
}
.earth__atmo {
  inset: -1.2%;
  background: radial-gradient(closest-side, transparent 96.6%, rgba(110, 170, 255, 0.55) 98.2%, rgba(90, 150, 255, 0.15) 99.2%, transparent 100%);
  filter: blur(6px);
  -webkit-mask-image: linear-gradient(180deg, #000 0 20%, transparent 40%);
  mask-image: linear-gradient(180deg, #000 0 20%, transparent 40%);
}
.earth::after { /* lumière du soleil rasante */
  content: ""; position: absolute; left: 52%; top: -8%; width: 40%; height: 16%;
  background: radial-gradient(closest-side, rgba(170, 205, 255, 0.28), transparent);
  filter: blur(30px);
}
@keyframes derive { from { transform: translateX(-38%) translateY(0); } to { transform: translateX(-39.2%) translateY(-1.2%); } }

.hero__contenu { align-self: center; padding-block: 3rem 2rem; }
.hero__titre { display: grid; gap: 0.9rem; font-weight: 600; }
.hero__noms {
  font-size: clamp(1rem, 0.85rem + 0.8vw, 1.35rem);
  font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--texte);
}
.hero__meta { display: inline-flex; gap: 0.8rem; align-items: center; font-size: clamp(0.85rem, 0.8rem + 0.3vw, 1rem); font-weight: 400; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; }
.hero__meta .sep { color: var(--texte-3); }
.hero__mission {
  margin-top: 0.6rem;
  font-size: clamp(3.1rem, 1rem + 10vw, 9.6rem);
  line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 30%, #b8c8ec 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__accroche { margin-top: 1.6rem; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem); color: var(--texte-2); max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }

.hero__bas { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; padding-bottom: 2rem; }
.hero__coord { display: flex; align-items: center; gap: 0.9rem; font-size: 0.72rem; color: var(--texte-2); letter-spacing: 0.1em; }
.hero__traj { position: relative; width: clamp(50px, 10vw, 140px); height: 1px; background: linear-gradient(90deg, var(--ligne-forte), var(--accent)); overflow: visible; }
.hero__traj i { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--texte); box-shadow: 0 0 8px var(--accent); animation: traj 7s var(--ease) infinite; }
@keyframes traj { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0; } }
.hero__explorer { text-decoration: none; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--texte-2); display: inline-flex; gap: 0.6rem; align-items: center; transition: color 0.3s; }
.hero__explorer span { display: inline-block; animation: flotte 2.8s ease-in-out infinite; }
.hero__explorer:hover { color: var(--texte); }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

@media (max-width: 700px) {
  .earth { width: 420vw; top: 72%; transform: translateX(-42%); animation: none; }
  .hero__voile { background: linear-gradient(180deg, rgba(4, 6, 13, 0.4) 0%, rgba(4, 6, 13, 0) 30%), linear-gradient(0deg, var(--bg) 0%, rgba(4, 6, 13, 0) 30%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__bas { flex-direction: column; align-items: flex-start; }
  .hero__noms { letter-spacing: 0.18em; }
  .hero__coord { font-size: 0.62rem; gap: 0.6rem; }
  .hero__coord > span:not(.hero__traj) { white-space: nowrap; }
  .hero__traj { width: 36px; flex: none; }
}

/* 9b. COSMOS dans le hero : la coque facettée, sa lumière intérieure et ses halos géométriques */
:root { --co-bleu: #9cc0ff; --co-violet: #b9a3ff; --co-rose: #f1b3e3; }
:root { --obj-w: clamp(240px, 23vw, 380px); --obj-r: max(4vw, calc((100vw - var(--max)) / 2 - 8vw)); }
.cosmos-objet {
  position: absolute; z-index: 2;
  right: var(--obj-r); top: 44%;
  width: var(--obj-w); aspect-ratio: 1;
  transform: translateY(-50%);
  animation: flotte-objet 14s ease-in-out infinite, teinte 18s ease-in-out infinite alternate;
}
.cosmos-objet__coque { position: relative; width: 100%; height: 100%; overflow: visible; transform: rotate(-7deg); }
.cosmos-objet__coque .facettes polygon { mix-blend-mode: screen; }
.cosmos-objet__lueur {
  position: absolute; inset: -18%; border-radius: 50%;
  background:
    radial-gradient(closest-side at 55% 45%, rgba(241, 179, 227, 0.6), transparent 70%),
    radial-gradient(closest-side at 40% 55%, rgba(156, 192, 255, 0.6), transparent 75%),
    radial-gradient(closest-side, rgba(185, 163, 255, 0.45), transparent 80%);
  filter: blur(40px);
  animation: respire 7s ease-in-out infinite;
}
.cosmos-objet__halo { position: absolute; left: 50%; top: 50%; width: 260%; height: 260%; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; }
.cosmos-objet__halo polygon { stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.cosmos-objet__halo .halo-1 { stroke: rgba(205, 190, 255, 0.22); }
.cosmos-objet__halo .halo-2 { stroke: rgba(241, 179, 227, 0.12); stroke-dasharray: 2 7; }
.cosmos-objet__halo .halo-3 { stroke: rgba(156, 192, 255, 0.08); }
.cosmos-objet__halo g { transform-origin: 0 0; animation: tourne-halo 240s linear infinite; }
@keyframes flotte-objet { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 10px)); } }
@keyframes respire { 0%, 100% { opacity: 0.75; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes teinte { from { filter: hue-rotate(-14deg); } to { filter: hue-rotate(16deg); } }
@keyframes tourne-halo { to { transform: rotate(360deg); } }

/* L'écran : l'autre moitié de COSMOS, en retrait derrière le boîtier */
.cosmos-ecran {
  position: absolute; z-index: 1;
  right: calc(var(--obj-r) + var(--obj-w) * 0.5);
  top: calc(44% + var(--obj-w) * 0.26);
  width: calc(var(--obj-w) * 1.04);
  transform: translateY(-50%);
  perspective: 1400px;
}
.cosmos-ecran__corps { transform: rotateY(16deg) rotateX(3deg); transform-origin: 100% 50%; }
.cosmos-ecran__dalle {
  position: relative; aspect-ratio: 16 / 10; padding: 2.4%;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(160deg, #1a1d29, #0a0c13 60%);
  border: 1px solid rgba(220, 225, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 70px -10px rgba(150, 160, 255, 0.28);
}
.cosmos-ecran__dalle img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; filter: saturate(1.05) brightness(0.92); }
.cosmos-ecran__reflet { position: absolute; inset: 2.4%; border-radius: 3px; background: linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 28%, transparent 45%); pointer-events: none; }
.cosmos-ecran__base {
  position: relative; height: calc(var(--obj-w) * 0.035); width: 112%; margin-left: -6%;
  background: linear-gradient(180deg, #3a3f52 0%, #1b1e29 45%, #0c0e15 100%);
  border-radius: 1px 1px 12px 12px;
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.8);
}
.cosmos-ecran__base span { position: absolute; left: 50%; top: 0; width: 16%; height: 38%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.45); border-radius: 0 0 6px 6px; }
@media (max-width: 1100px) { .cosmos-ecran { display: none; } }

/* Le titre prend une touche des couleurs de COSMOS */
.hero__mission { background: linear-gradient(180deg, #ffffff 28%, #d3d0ff 72%, #f0cdea 100%); -webkit-background-clip: text; background-clip: text; }

/* Terre : atmosphère teintée aux couleurs de COSMOS, plus discrète */
.earth { top: 75%; opacity: 0.75; }
.earth__globe {
  background:
    radial-gradient(48% 6% at 62% 0.6%, rgba(236, 222, 255, 0.16), transparent 70%),
    radial-gradient(60% 18% at 65% 2%, rgba(150, 130, 255, 0.12), transparent 70%),
    radial-gradient(90% 40% at 60% 3%, #18245f 0%, #0d1540 35%, #060a22 65%, #03050f 100%);
  box-shadow: inset 0 2px 1px rgba(232, 214, 255, 0.7), inset 0 14px 40px rgba(170, 140, 255, 0.28);
}
.earth__atmo { background: radial-gradient(closest-side, transparent 96.6%, rgba(185, 160, 255, 0.5) 98.2%, rgba(241, 179, 227, 0.18) 99.2%, transparent 100%); }
.earth::after { background: radial-gradient(closest-side, rgba(241, 190, 235, 0.22), transparent); }

@media (max-width: 1100px) {
  .cosmos-objet { right: -4vw; width: clamp(220px, 34vw, 340px); opacity: 0.7; }
}
@media (max-width: 700px) {
  .cosmos-objet { top: 120px; right: -36px; width: 190px; opacity: 0.5; transform: none; animation: none; }
  .cosmos-objet__halo { width: 220%; height: 220%; }
  .earth { top: 76%; }
}
@media (prefers-reduced-motion: reduce) {
  .cosmos-objet { transform: translateY(-50%); }
}

/* Image de fond du hero */
.hero__fond { position: absolute; inset: 0; }
.hero__fond img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero:has(.hero__fond) .hero__voile {
  background:
    linear-gradient(180deg, rgba(4, 6, 13, 0.55) 0%, rgba(4, 6, 13, 0) 22%),
    linear-gradient(90deg, rgba(4, 6, 13, 0.82) 0%, rgba(4, 6, 13, 0.55) 38%, rgba(4, 6, 13, 0.05) 62%, rgba(4, 6, 13, 0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(4, 6, 13, 0) 20%);
}
@media (max-width: 700px) {
  .hero__fond img { object-position: 78% 50%; }
  .hero:has(.hero__fond) .hero__voile { background: linear-gradient(180deg, rgba(4, 6, 13, 0.65) 0%, rgba(4, 6, 13, 0.5) 40%, rgba(4, 6, 13, 0.62) 70%, var(--bg) 100%); }
}

/* Avec l'image de fond : le boîtier seul, plus petit, dans le ciel entre le titre et la Terre */
.hero:has(.hero__fond) { --obj-w: clamp(200px, 17vw, 300px); }
.hero:has(.hero__fond) .cosmos-objet { right: auto; left: calc(66% - var(--obj-w) / 2); top: 34%; }
.hero:has(.hero__fond) .cosmos-objet__halo .halo-3 { display: none; }
@media (max-width: 1100px) { .hero:has(.hero__fond) .cosmos-objet { left: auto; right: -2vw; top: 30%; } }
@media (max-width: 700px) { .hero:has(.hero__fond) .cosmos-objet { display: none; } }

/* 10. Inventeurs */
.inventeurs__grille { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.inventeurs__texte { display: grid; gap: 2.2rem; }
.cartes-inventeurs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.carte-inventeur { padding: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 1.1rem; align-items: start; }
.carte-inventeur__nom { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.5rem); margin: 0.35rem 0 0.1rem; }
.carte-inventeur__role { color: var(--accent); font-size: 0.9rem; margin-bottom: 0.9rem; }
.carte-inventeur__corps p:not(.mono):not(.carte-inventeur__role) { color: var(--texte-2); font-size: 0.97rem; margin-bottom: 0.8rem; }
.carte-inventeur--duo { grid-template-columns: minmax(0, 1fr) clamp(140px, 14vw, 180px); padding: clamp(1.4rem, 3vw, 2rem); gap: clamp(1.2rem, 3vw, 2rem); }
.carte-inventeur--duo .carte-inventeur__corps p:not(.mono):not(.carte-inventeur__role) { font-size: 1rem; }
@media (max-width: 520px) { .carte-inventeur.carte-inventeur--duo { grid-template-columns: 1fr; } .carte-inventeur--duo .vvideo { max-width: 260px; } }
.inventeurs__photo { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 960px) {
  .inventeurs__grille { grid-template-columns: 1fr; }
  .inventeurs__photo { position: static; max-width: 560px; }
  .inventeurs__photo .visuel--vide { --ratio: 4/3 !important; }
}
@media (max-width: 620px) {
  .cartes-inventeurs { grid-template-columns: 1fr; }
}

/* 11. COSMOS */
.cosmos__entete { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.2rem); margin-bottom: 2rem; }
.cosmos__patch { width: clamp(84px, 11vw, 140px); height: auto; filter: drop-shadow(0 10px 40px rgba(90, 140, 255, 0.35)); }
.cosmos__entete .titre-xl { font-size: clamp(3rem, 1.5rem + 7vw, 7rem); letter-spacing: -0.04em; }
.cosmos__accroche { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.9rem); font-weight: 500; line-height: 1.18; letter-spacing: -0.02em; max-width: 24ch; margin-bottom: clamp(3rem, 7vw, 5rem); }
.cosmos__accroche .accent { display: block; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cosmos__boucle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; margin-bottom: clamp(3rem, 7vw, 5rem); }

.orbite { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 1.8rem; align-items: center; padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--ligne); border-radius: 18px; background: rgba(8, 13, 30, 0.55); }
.orbite__titre { grid-column: 1 / -1; letter-spacing: 0.16em; text-transform: uppercase; }
.orbite__schema { position: relative; }
.orbite__schema svg { width: 100%; overflow: visible; }
.orbite__trace { fill: none; stroke: var(--ligne-forte); stroke-width: 1; stroke-dasharray: 2 4; }
.orbite__noeud { fill: var(--bg); stroke: var(--accent); stroke-width: 1.2; }
.orbite__centre { fill: rgba(156, 192, 255, 0.1); stroke: rgba(156, 192, 255, 0.4); }
.orbite__mobile { transform-origin: 100px 100px; animation: orbite 16s linear infinite; fill: var(--texte); }
.orbite__halo { fill: rgba(156, 192, 255, 0.18); }
.orbite__enfant { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-2); }
@keyframes orbite { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.orbite__etapes { list-style: none; display: grid; gap: 0.95rem; }
.orbite__etape { display: grid; grid-template-columns: 2rem 1fr; column-gap: 0.4rem; }
.orbite__etape .mono { grid-row: span 2; font-size: 0.72rem; color: var(--accent); padding-top: 0.2rem; }
.orbite__etape strong { font-weight: 600; }
.orbite__etape span:last-child { color: var(--texte-2); font-size: 0.92rem; }

.piliers { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ligne); margin-bottom: clamp(3rem, 7vw, 5rem); }
.pilier { padding: 1.8rem 1.4rem 0 0; }
.pilier + .pilier { padding-left: 1.4rem; border-left: 1px solid var(--ligne); }
.pilier__num { font-size: 0.72rem; color: var(--accent); }
.pilier h3 { font-size: 1.15rem; margin: 0.8rem 0 0.6rem; letter-spacing: -0.01em; }
.pilier p { color: var(--texte-2); font-size: 0.95rem; }

.cosmos__medias { display: block; }
.cosmos__galerie { display: grid; grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 1.25rem; }
.cosmos__galerie > :not(:first-child) .visuel { --ratio: 1.9 !important; }
.cosmos__galerie > :first-child { grid-row: span 2; }
.cosmos__galerie > :first-child .visuel { height: 100%; aspect-ratio: auto; min-height: 320px; }

.ambiance { position: relative; margin: clamp(4rem, 9vw, 7rem) 0 0; }
.ambiance img { width: 100%; height: clamp(320px, 56vw, 720px); object-fit: cover; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%); }
.ambiance figcaption { position: absolute; left: 0; right: 0; bottom: 14%; display: grid; gap: 0.3rem; }
.ambiance figcaption .mono { color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; }
.ambiance__lieu { font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7); }
.ambiance .visuel__credit { position: static; }

@media (max-width: 960px) {
  .cosmos__boucle { grid-template-columns: 1fr; }
  .piliers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilier:nth-child(3) { padding-left: 0; border-left: 0; }
  .pilier { padding-bottom: 1.6rem; }
}
@media (max-width: 560px) {
  .orbite { grid-template-columns: 1fr; }
  .orbite__schema { max-width: 190px; margin-inline: auto; }
  .piliers { grid-template-columns: 1fr; }
  .pilier, .pilier + .pilier { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--ligne); }
  .cosmos__galerie { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cosmos__galerie > :first-child { grid-row: auto; }
  .cosmos__galerie > :first-child .visuel { min-height: 0; aspect-ratio: 865 / 728; }
}

/* COSMOS : récit + parcours de mission */
.cosmos__accroche { margin-bottom: 1rem; max-width: 32ch; text-wrap: balance; }
.cosmos__sous-titre { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); font-weight: 500; background: linear-gradient(90deg, var(--accent), var(--accent-2), #f0b8e2); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: clamp(3rem, 7vw, 5rem); max-width: 40ch; }
.cosmos__recit { display: grid; gap: 1.2rem; align-content: start; }
.cosmos__idee { margin: 1rem 0 0; padding: 1.4rem 0 0 1.5rem; border-left: 2px solid; border-image: linear-gradient(180deg, var(--accent), #f0b8e2) 1; }
.cosmos__idee p { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.65rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; color: var(--texte); }
.parcours { padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--ligne); border-radius: 18px; background: rgba(8, 13, 30, 0.55); }
.parcours__titre { letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte); margin-bottom: 1.6rem; }
.parcours__etapes { list-style: none; display: grid; gap: 1.25rem; position: relative; }
.parcours__etapes::before { content: ""; position: absolute; left: 1.05rem; top: 0.8rem; bottom: 0.8rem; width: 1px; background: linear-gradient(180deg, var(--accent), var(--accent-2), #f0b8e2); opacity: 0.45; }
.parcours__etape { display: grid; grid-template-columns: 2.1rem 1fr; gap: 0.9rem; align-items: start; position: relative; }
.parcours__num { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; font-size: 0.68rem; color: var(--texte); background: var(--bg); border: 1px solid rgba(185, 168, 255, 0.5); box-shadow: 0 0 14px rgba(185, 168, 255, 0.25); position: relative; z-index: 1; }
.parcours__etape strong { display: block; font-weight: 600; margin-bottom: 0.15rem; padding-top: 0.25rem; }
.parcours__etape span:not(.parcours__num) { color: var(--texte-2); font-size: 0.93rem; line-height: 1.45; }
.cosmos__public { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texte-2); margin: -2.4rem 0 clamp(3rem, 6vw, 4rem); }
@media (max-width: 960px) { .cosmos__public { margin-top: 0; } }

/* 12. Mission status */
.status { border: 1px solid var(--ligne-forte); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, rgba(12, 20, 46, 0.7), rgba(6, 10, 24, 0.7)); position: relative; }
.status::before { /* lignes de balayage très discrètes */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 4px);
}
.status__tete { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem clamp(1.2rem, 3vw, 2rem); border-bottom: 1px solid var(--ligne); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--texte-2); }
.status__tete > span:first-child { color: var(--texte); }
.mission__cta { margin-top: 2rem; display: flex; justify-content: center; }
@media (max-width: 560px) { .mission__cta .btn { width: 100%; } }
.status__grille { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.status__cellule { padding: clamp(1.3rem, 3vw, 2rem); border-right: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.status__cellule:nth-child(3n) { border-right: 0; }
.status__cellule:nth-last-child(-n+3) { border-bottom: 0; }
.status__cellule dt { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--texte-3); margin-bottom: 0.7rem; }
.status__cellule dd { margin: 0; font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: center; text-transform: uppercase; }
@media (max-width: 760px) {
  .status__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status__cellule:nth-child(3n) { border-right: 1px solid var(--ligne); }
  .status__cellule:nth-child(2n) { border-right: 0; }
  .status__cellule:nth-last-child(-n+3) { border-bottom: 1px solid var(--ligne); }
  .status__cellule:nth-last-child(-n+2) { border-bottom: 0; }
}

/* 13. Modules « Rejoindre la mission » */
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: clamp(4rem, 9vw, 7rem); }
.module {
  display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px;
  transition: border-color 0.5s var(--ease), box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.module:hover { border-color: var(--ligne-forte); box-shadow: 0 30px 70px -40px rgba(110, 150, 255, 0.5); }
.module__corps { display: flex; flex-direction: column; }
.module__tete { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.module__tete .mono { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.7rem; }
.module__icone { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--ligne-forte); color: var(--accent); background: radial-gradient(circle at 50% 30%, rgba(156, 192, 255, 0.14), transparent 70%); flex: none; }
.module__icone .icone { width: 24px; height: 24px; }
.module__titre { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); margin-bottom: 0.8rem; }
.module p { color: var(--texte-2); font-size: 0.97rem; }
.module__btn { margin-top: auto; align-self: flex-start; }
.module .liste-puces { margin-bottom: 1.5rem; }
.module p + .module__btn { margin-top: 1.5rem; }
.module__video { align-self: start; }
@media (max-width: 960px) { .modules { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .module { grid-template-columns: 1fr; }
  .module__video { max-width: 220px; }
  .module__btn { margin-top: 1.4rem; }
}

/* 14. Formulaires */
.form-bloc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-top: clamp(3rem, 6vw, 4rem); border-top: 1px solid var(--ligne); }
.form-bloc__intro p:not(.eyebrow) { color: var(--texte-2); margin-top: 1.2rem; max-width: 42ch; }
@media (max-width: 900px) { .form-bloc { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.3rem; position: relative; }
.form__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; }
@media (max-width: 560px) { .form__grille { grid-template-columns: 1fr; } }
.champ { display: grid; gap: 0.45rem; }
.champ label, .choix legend { font-size: 0.85rem; font-weight: 500; color: var(--texte); }
.champ__facultatif { color: var(--texte-3); font-weight: 400; }
.champ__aide { font-size: 0.8rem; color: var(--texte-3); }
.champ input, .champ textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--texte);
  background: rgba(4, 7, 18, 0.6);
  border: 1px solid var(--ligne-forte); border-radius: 10px;
  padding: 0.85rem 1rem; min-height: 50px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.champ textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.champ input::placeholder, .champ textarea::placeholder { color: var(--texte-3); }
.champ input:hover, .champ textarea:hover { border-color: rgba(190, 205, 245, 0.45); }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(156, 192, 255, 0.16); background: rgba(8, 12, 28, 0.85); }
.champ input:user-invalid, .champ textarea:user-invalid { border-color: #ff8f8f; }

.choix { border: 0; padding: 0; margin: 0; }
.choix legend { margin-bottom: 0.8rem; padding: 0; }
.choix__grille { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pastille { position: relative; cursor: pointer; }
.pastille input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.pastille span {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 42px; padding: 0.5rem 0.95rem;
  border: 1px solid var(--ligne-forte); border-radius: 999px; font-size: 0.88rem; color: var(--texte-2);
  transition: all 0.25s var(--ease);
}
.pastille span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--texte-3); transition: all 0.25s; }
.pastille:hover span { border-color: rgba(190, 205, 245, 0.5); color: var(--texte); }
.pastille input:checked + span { color: var(--texte); border-color: var(--accent); background: rgba(156, 192, 255, 0.12); }
.pastille input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent); }
.pastille input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.consentement { display: grid; grid-template-columns: 22px 1fr; gap: 0.8rem; align-items: start; font-size: 0.92rem; color: var(--texte-2); cursor: pointer; }
.consentement input { width: 20px; height: 20px; margin: 0.1rem 0 0; accent-color: var(--accent); }

.mention-donnees { font-size: 0.78rem; color: var(--texte-3); line-height: 1.5; }
.mention-donnees a { color: var(--texte-2); }
.form .btn[type="submit"] { justify-self: start; }
@media (max-width: 560px) { .form .btn[type="submit"] { justify-self: stretch; } }
.form.is-envoi .btn[type="submit"] { opacity: 0.6; pointer-events: none; }

.form-succes {
  display: grid; justify-items: center; text-align: center; gap: 0.7rem;
  padding: clamp(2rem, 6vw, 3.5rem) 1rem; outline: none;
}
.form-succes p { color: var(--texte-2); max-width: 40ch; }
.form-succes__titre { font-size: 1.6rem; font-weight: 600; color: var(--texte) !important; letter-spacing: -0.02em; }
.form-succes__signal { width: 54px; height: 54px; border-radius: 50%; position: relative; margin-bottom: 0.6rem; background: radial-gradient(circle, #fff 0 3px, rgba(156, 192, 255, 0.4) 4px, transparent 9px); }
.form-succes__signal::before, .form-succes__signal::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--accent); border-radius: 50%; animation: onde 2.4s var(--ease) infinite; }
.form-succes__signal::after { animation-delay: 1.2s; }
@keyframes onde { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.form.is-envoye > :not([data-succes]) { display: none !important; }
.form-erreur { color: #ffb0b0; font-size: 0.9rem; }

/* Fenêtre (dialog) */
.fenetre {
  width: min(560px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: clamp(1.5rem, 4vw, 2.5rem); color: var(--texte);
  background: linear-gradient(160deg, rgba(22, 32, 70, 0.96), rgba(6, 10, 24, 0.98));
  border: 1px solid var(--ligne-forte); border-radius: 20px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9);
}
.fenetre::backdrop { background: rgba(2, 3, 8, 0.7); backdrop-filter: blur(6px); }
.fenetre[open] { animation: apparait 0.5s var(--ease); }
@keyframes apparait { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.fenetre__titre { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); margin: 0.6rem 2.5rem 1.5rem 0; }
.fenetre__fermer, .lecteur__fermer {
  position: absolute; top: 0.9rem; right: 0.9rem; width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ligne-forte); border-radius: 50%; cursor: pointer; color: var(--texte);
  transition: background 0.25s;
}
.fenetre__fermer:hover, .lecteur__fermer:hover { background: rgba(255, 255, 255, 0.1); }

/* 15. Partenaires */
.partenaires__niveau { text-align: center; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--texte-3); margin: 3rem 0 1.5rem; }
.logos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.logos li a { display: grid; place-items: center; min-height: 96px; padding: 1.2rem 2rem; border: 1px solid var(--ligne); border-radius: 14px; background: rgba(10, 16, 36, 0.4); transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease); }
.logos--principaux li a { min-height: 130px; padding: 1.6rem 2.6rem; }
.logos img { width: var(--w, 140px); max-height: 64px; object-fit: contain; filter: grayscale(1) brightness(1.8) contrast(0.9); opacity: 0.72; transition: filter 0.5s var(--ease), opacity 0.5s; }
.logos li a:hover { border-color: var(--ligne-forte); background: rgba(30, 44, 92, 0.35); transform: translateY(-2px); }
.logos li a:hover img, .logos li a:focus-visible img { filter: none; opacity: 1; }

/* 16. Passerelle vers la constellation */
.passerelle { padding-block: clamp(3rem, 7vw, 5rem); }
.passerelle__inner { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(1.8rem, 5vw, 3.5rem); border: 1px solid var(--ligne); border-radius: 22px; background: radial-gradient(80% 120% at 0% 50%, rgba(92, 80, 200, 0.16), transparent 70%), rgba(6, 10, 24, 0.5); }
.passerelle .titre-l { max-width: 22ch; margin-bottom: 1.8rem; }
.passerelle__dessin polyline { fill: none; stroke: rgba(185, 168, 255, 0.4); stroke-width: 0.8; }
.passerelle__dessin circle { fill: #fff; filter: drop-shadow(0 0 4px rgba(185, 168, 255, 0.9)); animation: clignote 4s ease-in-out infinite; }
.passerelle__dessin circle:nth-of-type(2) { animation-delay: -1.3s; }
.passerelle__dessin circle:nth-of-type(4) { animation-delay: -2.6s; }
@media (max-width: 640px) { .passerelle__inner { grid-template-columns: 1fr; } .passerelle__dessin { max-width: 200px; } }

/* 17. Le petit rêve */
.reve__inner { display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 620px); gap: clamp(2rem, 6vw, 5rem); align-items: center; justify-content: center; }
.reve__texte p { color: var(--texte-2); margin-top: 1rem; font-size: 1.05rem; }
.reve__texte p strong { color: var(--texte); font-weight: 600; }
.reve__texte .titre-l { margin-bottom: 1.6rem; }
.reve__signature { font-style: italic; color: var(--texte) !important; margin-top: 1.6rem !important; }
.reve__statut { display: flex; align-items: center; gap: 0.2rem; margin-top: 2.2rem !important; padding-top: 1.4rem; border-top: 1px solid var(--ligne); font-size: 0.78rem !important; letter-spacing: 0.1em; color: var(--texte-2); }
.reve .lien-discret { margin-top: 1rem; }

.radar { position: relative; aspect-ratio: 1; width: 100%; border-radius: 50%; }
.radar__cercle { position: absolute; inset: 0; border: 1px solid rgba(156, 192, 255, 0.18); border-radius: 50%; }
.radar__cercle:nth-child(2) { inset: 18%; }
.radar__cercle:nth-child(3) { inset: 36%; }
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(156, 192, 255, 0.1); }
.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.radar::after { top: 50%; left: 0; right: 0; height: 1px; }
.radar__balayage {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 75%, rgba(185, 168, 255, 0.04) 80%, rgba(185, 168, 255, 0.22) 99.4%, rgba(220, 210, 255, 0.75) 99.7%, transparent 100%);
  animation: balayage 8s linear infinite;
  -webkit-mask-image: radial-gradient(closest-side, #000 99%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 99%, transparent 100%);
}
/* Contacts radar : Sophie et Thomas s'allument quand le faisceau passe sur eux */
.radar__contact { position: absolute; left: var(--x); top: var(--y); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #d9cfff; box-shadow: 0 0 14px 2px rgba(185, 168, 255, 0.9); animation: contact 8s linear infinite; animation-delay: var(--delai); }
.radar__onde { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(200, 185, 255, 0.9); animation: onde 8s ease-out infinite; animation-delay: var(--delai); opacity: 0; }
.radar__nom { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: #e4dcff; white-space: nowrap; text-shadow: 0 0 10px rgba(185, 168, 255, 0.8); animation: contact-nom 8s linear infinite; animation-delay: var(--delai); }
.radar__contact--gauche .radar__nom { left: auto; right: 14px; }
@keyframes contact { 0% { opacity: 1; transform: scale(1.5); } 6% { transform: scale(1); } 45% { opacity: 0.45; } 100% { opacity: 0.18; transform: scale(1); } }
@keyframes onde { 0% { opacity: 0.9; transform: scale(1); } 22% { opacity: 0; transform: scale(6); } 100% { opacity: 0; transform: scale(6); } }
@keyframes contact-nom { 0% { opacity: 1; } 35% { opacity: 0.55; } 100% { opacity: 0.2; } }
/* Mouvement réduit (réglage du Mac/iPhone) : on garde le radar, mais plus lent et sans ondes */
@media (prefers-reduced-motion: reduce) {
  .radar__balayage { animation: balayage 16s linear infinite !important; }
  .radar__contact { animation: contact 16s linear infinite !important; animation-delay: calc(var(--delai) * 2) !important; }
  .radar__nom { animation: contact-nom 16s linear infinite !important; animation-delay: calc(var(--delai) * 2) !important; }
  .radar__onde { animation: none !important; }
}
@keyframes balayage { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .reve__inner { grid-template-columns: 1fr; } .radar { max-width: 170px; } }

/* 18. Constellation */
.page-constellation .sky { opacity: 0.55; }
.constel { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)); padding-bottom: var(--section); }
.constel__entete { text-align: center; }
.constel__entete .eyebrow { justify-content: center; }
.constel__entete .lead { margin: 1.4rem auto 0; }
.ciel {
  position: relative; margin: clamp(2rem, 5vw, 3.5rem) auto clamp(2rem, 5vw, 3rem);
  width: min(100% - 2 * var(--gutter), 1300px);
  aspect-ratio: 16 / 8;
  border-radius: 28px;
  background:
    radial-gradient(50% 60% at 50% 50%, rgba(80, 70, 190, 0.18), transparent 70%),
    radial-gradient(30% 40% at 20% 30%, rgba(40, 100, 220, 0.12), transparent 70%),
    #020309;
  border: 1px solid var(--ligne);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.9);
}
@media (max-width: 700px) { .ciel { aspect-ratio: 3 / 4; } }
.ciel__liens { position: absolute; inset: 0; width: 100%; height: 100%; }
.ciel__liens line { stroke: rgba(185, 168, 255, 0.28); stroke-width: 1; }
.ciel__etoiles { list-style: none; position: absolute; inset: 0; }
.etoile { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.etoile__btn {
  --s: calc(10px * var(--t));
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%;
}
.etoile__btn::before {
  content: ""; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, rgba(210, 220, 255, 0.85) 45%, rgba(170, 160, 255, 0) 72%);
  box-shadow: 0 0 calc(14px * var(--t)) rgba(190, 200, 255, 0.75);
  animation: scintille 5.5s ease-in-out infinite; animation-delay: calc(var(--delai) * -1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.etoile__btn:hover::before, .etoile__btn:focus-visible::before, .etoile.is-active .etoile__btn::before { transform: scale(1.7); box-shadow: 0 0 26px rgba(200, 210, 255, 1); }
.etoile__btn:focus-visible { outline-offset: 0; }
@keyframes scintille { 0%, 100% { opacity: 1; } 45% { opacity: 0.55; } 55% { opacity: 0.95; } }
.etoile__nom {
  position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translate(-50%, 6px);
  white-space: nowrap; pointer-events: none;
  padding: 0.45rem 0.8rem; border-radius: 10px;
  background: rgba(14, 20, 46, 0.92); border: 1px solid var(--ligne-forte);
  font-size: 0.85rem; font-weight: 500; text-align: center;
  opacity: 0; transition: opacity 0.3s, transform 0.4s var(--ease);
}
.etoile__nom small { display: block; font-size: 0.7rem; color: var(--texte-3); font-weight: 400; }
.etoile:hover .etoile__nom, .etoile:focus-within .etoile__nom, .etoile.is-active .etoile__nom { opacity: 1; transform: translate(-50%, 0); }
.etoile--droite .etoile__nom { left: auto; right: 50%; transform: translate(14px, 6px); }
.etoile--gauche .etoile__nom { left: 50%; transform: translate(-14px, 6px); }
.etoile--droite:hover .etoile__nom, .etoile--droite:focus-within .etoile__nom, .etoile--droite.is-active .etoile__nom { transform: translate(14px, 0); }
.etoile--gauche:hover .etoile__nom, .etoile--gauche:focus-within .etoile__nom, .etoile--gauche.is-active .etoile__nom { transform: translate(-14px, 0); }
.etoile--haut .etoile__nom { bottom: auto; top: calc(100% + 2px); }
.etoile--exemple .etoile__nom { color: var(--texte-2); font-style: italic; }
.etoile--nouvelle .etoile__btn::before { animation: allume 2.6s var(--ease) forwards, scintille 5.5s 2.6s ease-in-out infinite; }
@keyframes allume { 0% { transform: scale(0); opacity: 0; box-shadow: 0 0 0 rgba(255, 255, 255, 0); } 40% { transform: scale(3.2); opacity: 1; box-shadow: 0 0 60px rgba(220, 225, 255, 1); } 100% { transform: scale(1.4); opacity: 1; } }
.etoile--nouvelle .etoile__nom { opacity: 1; transform: translate(-50%, 0); color: var(--texte); border-color: var(--accent); }
.ciel__vide, .ciel__apercu { position: absolute; left: 0; right: 0; text-align: center; font-size: 0.75rem; color: var(--texte-3); letter-spacing: 0.08em; }
.ciel__vide { top: 50%; }
.ciel__apercu { bottom: 1rem; display: flex; justify-content: center; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding-inline: 1rem; }

.constel__liste { margin-bottom: 3rem; }
.constel__liste summary { cursor: pointer; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-2); text-align: center; padding: 0.6rem; }
.constel__liste ul { list-style: none; columns: 3 220px; column-gap: 2rem; margin-top: 1.4rem; }
.constel__liste li { padding: 0.35rem 0; break-inside: avoid; border-bottom: 1px solid var(--ligne); }

.ajout { max-width: 640px; margin-inline: auto; display: grid; gap: 1rem; }
.ajout > .attenue { margin-bottom: 0.8rem; }

/* 19. Médias + pages texte */
.medias { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)); }
.medias__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.medias__texte .lead { margin-top: 1.6rem; }
.medias__texte .titre-xl { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem); }
.encart { margin: 2.4rem 0; padding: 1.6rem 1.8rem; border-left: 2px solid var(--accent); background: rgba(14, 22, 48, 0.5); border-radius: 0 14px 14px 0; display: grid; gap: 0.8rem; }
.encart p { color: var(--texte-2); }
.encart__titre { color: var(--texte) !important; font-weight: 600; }
.medias__invite { font-size: 1.15rem; font-weight: 500; margin-bottom: 0.8rem; }
.medias .verre .titre-m { margin-bottom: 1.6rem; }
@media (max-width: 960px) { .medias__grille { grid-template-columns: 1fr; } }

.texte-long { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)); }
.texte-long h2 { font-size: 1.25rem; margin: 2.4rem 0 0.7rem; letter-spacing: -0.01em; }
.texte-long p { color: var(--texte-2); }
.texte-long .titre-l { margin-bottom: 1rem; }
.merci .btn { margin-top: 2rem; }
.merci .lead { margin-top: 1.4rem; }

/* 20. Vignettes vidéo verticales 9:16 + lecteur */
.vvideo {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16;
  border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, #0e1736, #060a18);
  border: 1px solid var(--ligne-forte);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s;
}
button.vvideo:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(110, 150, 255, 0.6); border-color: rgba(200, 215, 255, 0.5); }
.vvideo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vvideo__voile { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(3, 5, 12, 0.85)); }
.vvideo__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff;
  transition: transform 0.4s var(--ease), background 0.4s;
}
.vvideo__play svg { margin-left: 3px; }
button.vvideo:hover .vvideo__play { transform: translate(-50%, -50%) scale(1.08); background: rgba(255, 255, 255, 0.22); }
.vvideo__titre { position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.9rem; font-size: 0.85rem; font-weight: 500; line-height: 1.3; }
.vvideo--vide { cursor: default; display: block; }
.vvideo--vide .vvideo__play { opacity: 0.45; }
.vvideo--vide .vvideo__titre { color: var(--texte-2); bottom: 2.6rem; }
.vvideo--vide .tag-avenir { position: absolute; left: 0.9rem; bottom: 0.9rem; font-size: 0.6rem; }
.vvideo__orbite { position: absolute; left: 50%; top: 50%; width: 150%; transform: translate(-50%, -50%); color: rgba(156, 192, 255, 0.35); }
.vvideo__sat { transform-origin: 50px 50px; animation: tourne 18s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
/* Variante mini (dans les cartes) */
.vvideo--mini { border-radius: 12px; }
.vvideo--mini .vvideo__play { width: 38px; height: 38px; }
.vvideo--mini .vvideo__play svg { width: 16px; height: 16px; }
.vvideo--mini .vvideo__titre { font-size: 0.68rem; left: 0.55rem; right: 0.55rem; }
.vvideo--mini.vvideo--vide .vvideo__titre { display: none; }
.vvideo--mini .tag-avenir { left: 50%; transform: translateX(-50%); bottom: 0.6rem; font-size: 0.52rem; padding: 0.15em 0.4em; letter-spacing: 0.08em; }
@media (max-width: 520px) {
  .vvideo--mini .vvideo__titre { font-size: 0.85rem; }
  .vvideo--mini.vvideo--vide .vvideo__titre { display: block; }
  .vvideo--mini .tag-avenir { left: 0.9rem; transform: none; bottom: 0.9rem; font-size: 0.6rem; }
  .vvideo--mini .vvideo__play { width: 52px; height: 52px; }
  .carte-inventeur { grid-template-columns: minmax(0, 1fr) 96px; }
  .carte-inventeur .vvideo--mini .vvideo__titre, .carte-inventeur .vvideo--mini .tag-avenir { display: none; }
  .carte-inventeur .vvideo--mini .vvideo__play { width: 38px; height: 38px; }
}

.lecteur { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.lecteur::backdrop { background: rgba(1, 2, 6, 0.92); backdrop-filter: blur(8px); }
.lecteur__cadre { position: relative; height: 100%; display: grid; place-items: center; padding: 3.5rem 1rem 1rem; }
.lecteur__ecran { height: min(84dvh, 900px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8); }
.lecteur__ecran iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 520px) { .lecteur__ecran { height: auto; width: 100%; } }

/* 21. Pied de page */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--ligne); background: linear-gradient(180deg, rgba(4, 6, 13, 0.2), rgba(4, 6, 13, 0.9)); padding-top: 3.5rem; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; padding-bottom: 2.5rem; }
.site-footer__id .muted { margin-top: 0.8rem; font-size: 0.92rem; }
.site-footer__nav ul { list-style: none; display: grid; gap: 0.6rem; }
.site-footer__nav a { text-decoration: none; color: var(--texte-2); font-size: 0.92rem; transition: color 0.3s; }
.site-footer__nav a:hover { color: var(--texte); }
.site-footer__base { border-top: 1px solid var(--ligne); padding-block: 1.4rem 2rem; }
.site-footer__base p { letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.68rem; }

/* 22. Mouvement réduit : tout s'arrête, rien n'est caché */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__video { display: none; }
}

.inventeurs .section__entete { max-width: none; }
#inventeurs-titre { text-wrap: wrap; }

.inventeurs__intro { display: grid; gap: 0.15rem; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.inventeurs__intro span:last-child { margin-top: 0.5rem; background: linear-gradient(90deg, var(--accent), var(--accent-2), #f0b8e2); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Photo des inventeurs : même hauteur que la colonne de droite (ordinateur) */
@media (min-width: 961px) {
  .inventeurs__grille { align-items: stretch; grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); }
  .inventeurs__photo { position: static; display: flex; }
  .inventeurs__photo .visuel { flex: 1; aspect-ratio: auto; height: 100%; min-height: 100%; }
}

/* Page mentions légales */
.texte-long h3 { font-size: 1.05rem; margin: 1.8rem 0 0.5rem; color: var(--texte); }
.texte-long h2 + p, .texte-long h3 + p { margin-top: 0; }
.texte-long p + p { margin-top: 0.8rem; }
.texte-long a { color: var(--accent); }
.tableau-rgpd { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--ligne); border-radius: 12px; }
.tableau-rgpd table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.86rem; }
.tableau-rgpd th, .tableau-rgpd td { padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ligne); color: var(--texte-2); }
.tableau-rgpd thead th { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texte-3); background: rgba(14, 22, 48, 0.5); }
.tableau-rgpd tbody th { color: var(--texte); font-weight: 600; }
.tableau-rgpd tr:last-child th, .tableau-rgpd tr:last-child td { border-bottom: 0; }
.texte-long .liste-puces { margin-bottom: 1rem; }

/* Cartes photo des modules (à la place d'une vidéo) */
.vvideo--photo { aspect-ratio: 3 / 4; cursor: default; margin: 0; }
.vvideo--photo.vvideo--vide .tag-avenir { left: 50%; transform: translateX(-50%); bottom: 0.6rem; }

/* Lien discret dans le tableau Mission Status */
.status__cellule dd:has(.status__lien) { flex-wrap: wrap; row-gap: 0.4rem; }
.status__lien { display: inline-block; margin-left: 0.6em; letter-spacing: 0.08em; font-weight: 400; font-size: 0.55em; color: var(--accent, #9cc0ff); text-decoration: none; border-bottom: 1px solid currentColor; opacity: 0.85; white-space: nowrap; }
.status__lien:hover, .status__lien:focus-visible { opacity: 1; }

/* Photos protégées : pas de menu « enregistrer l'image » au toucher long */
[data-protege] img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; }
.site-footer__credit { opacity: 0.75; }

/* Petits écrans : « 10 ans » ne se coupe jamais, coordonnées toujours entières */
.hero__meta > span { white-space: nowrap; }
@media (max-width: 400px) {
  .hero__meta { gap: 0.55rem; letter-spacing: 0.1em; }
  .hero__coord { font-size: 0.56rem; gap: 0.45rem; letter-spacing: 0.06em; }
  .hero__coord .hero__traj { flex: 1 1 1.5rem; min-width: 1.5rem; }
}
@media (max-width: 340px) { .hero__coord .hero__traj { display: none; } }

/* Bouton « Faire passer le message » (section rêve) */
.partage { position: relative; margin-top: 1.8rem; }
.partage__btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.5rem 0.95rem 1.1rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, rgba(120, 140, 255, 0.30), rgba(200, 120, 255, 0.30)) padding-box,
              linear-gradient(#0b0f2a, #0b0f2a) padding-box,
              linear-gradient(135deg, #9cc0ff, #c9a8ff, #ff9ad5) border-box;
  border: 1px solid transparent; box-shadow: 0 10px 40px -12px rgba(170, 140, 255, 0.7);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.partage__btn::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 1px solid rgba(201, 168, 255, 0.5); opacity: 0; animation: partage-pulse 3.2s ease-out infinite; pointer-events: none; }
.partage__btn:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(170, 140, 255, 0.9); }
.partage__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.partage__icone { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
@keyframes partage-pulse { 0% { opacity: 0.8; transform: scale(0.96); } 70%, 100% { opacity: 0; transform: scale(1.12); } }
.partage__menu {
  margin-top: 1rem; padding: 1.1rem; max-width: 30rem; border-radius: 18px;
  background: rgba(14, 18, 40, 0.82); border: 1px solid var(--ligne-forte);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8); animation: partage-in 0.35s var(--ease);
}
@keyframes partage-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.partage__intro { font-size: 0.68rem !important; line-height: 1.5 !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-2); margin: 0 0 0.9rem !important; }
.partage__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.6rem, 1fr)); gap: 0.5rem; }
.partage__choix {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 44px; padding: 0.55rem 0.8rem;
  border-radius: 12px; border: 1px solid var(--ligne); background: rgba(255, 255, 255, 0.04);
  color: var(--texte); font: inherit; font-size: 0.9rem; white-space: nowrap; text-decoration: none; cursor: pointer; text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.partage__choix svg { width: 20px; height: 20px; flex: none; color: var(--accent-2); }
.partage__choix:hover, .partage__choix:focus-visible { background: rgba(185, 168, 255, 0.12); border-color: rgba(185, 168, 255, 0.5); transform: translateY(-1px); outline: none; }
.partage__retour { min-height: 1.2em; margin: 0.8rem 0 0 !important; font-size: 0.72rem !important; color: var(--accent) !important; }
.partage + .lien-discret { display: block; margin-top: 1.2rem; }
@media (prefers-reduced-motion: reduce) { .partage__btn::after, .partage__menu { animation: none; } }
@media (max-width: 520px) { .partage__btn { width: 100%; justify-content: center; } }

/* Prénoms toujours visibles sous chaque étoile ; la carte complète (avec la ville) reste au survol/toucher */
.etoile__etiquette {
  position: absolute; left: 50%; top: 50%; margin-top: 12px; transform: translateX(-50%);
  white-space: nowrap; pointer-events: none;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; color: rgba(228, 222, 255, 0.78);
  text-shadow: 0 0 8px rgba(4, 6, 13, 0.95), 0 0 2px rgba(4, 6, 13, 1);
  transition: opacity 0.3s;
}
.etoile--droite .etoile__etiquette { left: auto; right: -2px; transform: none; }
.etoile--gauche .etoile__etiquette { left: -2px; transform: none; }
.etoile:hover .etoile__etiquette, .etoile:focus-within .etoile__etiquette, .etoile.is-active .etoile__etiquette { opacity: 0; }
.etoile--exemple .etoile__etiquette { font-style: italic; color: var(--texte-3); }
@media (max-width: 600px) { .etoile__etiquette { font-size: 0.6rem; letter-spacing: 0.02em; margin-top: 10px; } }
/* Placements calculés par le script pour éviter les chevauchements */
.etoile__etiquette.pos-haut { margin-top: 0; top: auto; bottom: 50%; margin-bottom: 9px; }
.etoile__etiquette.pos-droite { left: 50%; top: 50%; margin: 0 0 0 10px; transform: translateY(-50%); }
.etoile__etiquette.pos-gauche { left: auto; right: 50%; top: 50%; margin: 0 10px 0 0; transform: translateY(-50%); }
.etoile__etiquette.pos-cache { visibility: hidden; }

/* Liste d'embarquement (carte d'embarquement) */
.embarq { margin-top: clamp(3rem, 7vw, 5rem); }
.embarq__billet {
  position: relative; display: grid; grid-template-columns: 200px 1fr; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, rgba(120, 140, 255, 0.10), rgba(200, 120, 255, 0.08)), rgba(10, 14, 34, 0.85);
  border: 1px solid var(--ligne-forte); box-shadow: 0 30px 80px -40px rgba(170, 140, 255, 0.55);
}
.embarq__talon {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem 1rem;
  background: radial-gradient(circle at 50% 40%, rgba(185, 168, 255, 0.22), transparent 70%);
  border-right: 2px dashed rgba(185, 168, 255, 0.35); text-align: center;
}
.embarq__talon::before, .embarq__talon::after { content: ""; position: absolute; right: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ligne-forte); }
.embarq__talon::before { top: -13px; } .embarq__talon::after { bottom: -13px; }
.embarq__talon img { width: 84px; height: 84px; filter: drop-shadow(0 0 18px rgba(185, 168, 255, 0.55)); }
.embarq__talon-txt { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--texte-2); line-height: 1.6; }
.embarq__code { font-size: 0.65rem; letter-spacing: 0.3em; color: var(--accent-2); }
.embarq__corps { padding: clamp(1.6rem, 4vw, 2.6rem); }
.embarq__titre { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0.4rem 0 0.9rem; }
.embarq__texte { color: var(--texte-2); margin: 0 0 0.8rem; }
.embarq__precision { font-size: 0.92rem; color: var(--texte-2); margin: 0 0 1.4rem; padding: 0.8rem 1rem; border-left: 2px solid var(--accent-2); background: rgba(185, 168, 255, 0.06); border-radius: 0 10px 10px 0; }
.embarq__precision strong { color: var(--texte); font-weight: 600; }
.embarq__compteur { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte); margin: -0.4rem 0 1.4rem; }
.embarq__pass { position: relative; padding: 1.4rem 1.4rem 1.2rem; border-radius: 16px; border: 1px dashed rgba(185, 168, 255, 0.5); background: rgba(185, 168, 255, 0.07); overflow: hidden; animation: embarq-in 0.7s var(--ease); }
.embarq__pass-titre { font-size: 1.25rem; font-weight: 600; margin: 0 0 1rem; color: var(--texte); }
.embarq__infos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1.2rem; margin: 0; }
.embarq__infos dt { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--texte-3); }
.embarq__infos dd { margin: 0.15rem 0 0; font-weight: 500; color: var(--texte); }
.embarq__pass-note { font-size: 0.85rem; color: var(--texte-2); margin: 1rem 0 0; }
.embarq__tampon { position: absolute; right: 1rem; top: 1rem; padding: 0.3rem 0.7rem; border: 2px solid #c9a8ff; border-radius: 8px; color: #c9a8ff; font: 700 0.75rem/1 var(--mono, monospace); letter-spacing: 0.24em; text-transform: uppercase; transform: rotate(-10deg); opacity: 0.9; animation: tampon 0.6s 0.25s var(--ease) both; }
.embarq__succes .lien-discret { margin-top: 1rem; }
@keyframes embarq-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes tampon { 0% { opacity: 0; transform: rotate(-10deg) scale(2.2); } 70% { opacity: 1; transform: rotate(-10deg) scale(0.92); } 100% { opacity: 0.9; transform: rotate(-10deg) scale(1); } }
@media (max-width: 760px) {
  .embarq__billet { grid-template-columns: 1fr; }
  .embarq__talon { flex-direction: row; padding: 1.1rem 1.4rem; border-right: 0; border-bottom: 2px dashed rgba(185, 168, 255, 0.35); justify-content: flex-start; text-align: left; }
  .embarq__talon::before, .embarq__talon::after { top: auto; right: auto; bottom: -13px; }
  .embarq__talon::before { left: -13px; } .embarq__talon::after { right: -13px; }
  .embarq__talon img { width: 52px; height: 52px; }
  .embarq__code { margin-left: auto; }
  .embarq__tampon { position: static; display: inline-block; margin-bottom: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { .embarq__pass, .embarq__tampon { animation: none; } }
.embarq__succes { text-align: left; }
.embarq__succes .embarq__pass-titre { color: #fff !important; padding-right: 8.5rem; }
.embarq__succes .embarq__infos dd { color: #fff; }
@media (max-width: 760px) { .embarq__succes .embarq__pass-titre { padding-right: 0; } }

/* ── Carte d'embarquement : version verre (glassmorphism) ── */
.embarq { position: relative; isolation: isolate; }
.embarq::before, .embarq::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: 0.75; pointer-events: none;
  animation: embarq-orbe 14s ease-in-out infinite alternate;
}
.embarq::before { width: 46%; aspect-ratio: 1; left: -6%; top: -10%; background: radial-gradient(circle, rgba(120, 110, 255, 0.55), transparent 65%); }
.embarq::after { width: 42%; aspect-ratio: 1; right: -4%; bottom: -14%; background: radial-gradient(circle, rgba(255, 120, 210, 0.42), transparent 65%); animation-delay: -7s; }
@keyframes embarq-orbe { from { transform: translate(0, 0) scale(1); } to { transform: translate(4%, 6%) scale(1.12); } }

.embarq__billet {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025) 45%, rgba(185, 168, 255, 0.06));
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 40px 90px -40px rgba(150, 120, 255, 0.7);
}
/* Liseré lumineux dégradé qui tourne doucement */
.embarq__billet::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg), rgba(156, 192, 255, 0.0), rgba(156, 192, 255, 0.85), rgba(201, 168, 255, 0.9), rgba(255, 154, 213, 0.8), rgba(156, 192, 255, 0.0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: embarq-lisere 9s linear infinite; opacity: 0.8;
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes embarq-lisere { to { --angle: 360deg; } }

/* Talon holographique */
.embarq__talon {
  background:
    radial-gradient(circle at 50% 38%, rgba(185, 168, 255, 0.35), transparent 62%),
    linear-gradient(160deg, rgba(156, 192, 255, 0.16), rgba(255, 154, 213, 0.10) 50%, rgba(120, 255, 230, 0.08));
  border-right-color: rgba(255, 255, 255, 0.22);
}
.embarq__talon img { animation: embarq-flotte 6s ease-in-out infinite; }
@keyframes embarq-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.embarq__talon::before, .embarq__talon::after { background: #05070f; border-color: rgba(255, 255, 255, 0.14); }
.embarq__code { padding: 0.3rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }

/* Titre en dégradé */
.embarq__titre { background: linear-gradient(90deg, #ffffff 0%, #dcd2ff 55%, #ffc4e8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Encadré prototype en verre */
.embarq__precision {
  border: 1px solid rgba(255, 255, 255, 0.12); border-left: 3px solid #c9a8ff; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* Champs en verre */
.embarq .champ input {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.embarq .champ input:focus { outline: none; border-color: rgba(201, 168, 255, 0.85); background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 0 4px rgba(201, 168, 255, 0.18), 0 0 30px -6px rgba(201, 168, 255, 0.7); }

/* Pastilles en verre */
.embarq .pastille span { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.embarq .pastille input:checked + span { background: linear-gradient(135deg, rgba(156, 192, 255, 0.28), rgba(201, 168, 255, 0.28)); border-color: rgba(201, 168, 255, 0.9); box-shadow: 0 0 22px -6px rgba(201, 168, 255, 0.9); }
.embarq .pastille input:checked + span::before { background: #fff; border-color: #fff; box-shadow: 0 0 8px #fff; }
.embarq .pastille input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Bouton Embarquer : pilule dégradée lumineuse */
.embarq .btn--primary {
  border-radius: 999px; padding-inline: 2rem; color: #fff; border: 1px solid transparent;
  background: linear-gradient(135deg, #7f8cff, #b48cff 50%, #ff8fd2) padding-box, linear-gradient(135deg, #cfd8ff, #ffd0ee) border-box;
  box-shadow: 0 14px 40px -12px rgba(190, 130, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 2px rgba(40, 20, 90, 0.35);
}
.embarq .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -12px rgba(190, 130, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

/* Carte « embarqué » en verre */
.embarq__pass { background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(201, 168, 255, 0.06)); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 50px -20px rgba(190, 130, 255, 0.7); }

@media (prefers-reduced-motion: reduce) { .embarq::before, .embarq::after, .embarq__billet::after, .embarq__talon img { animation: none; } }
.embarq .pastille input { z-index: 2; }
.embarq::before { background: radial-gradient(circle, rgba(110, 120, 255, 0.85), transparent 62%); opacity: 0.9; }
.embarq::after { background: radial-gradient(circle, rgba(255, 110, 200, 0.7), transparent 62%); opacity: 0.85; }
.embarq__corps { background: radial-gradient(120% 90% at 85% 0%, rgba(201, 168, 255, 0.12), transparent 55%); }
.embarq__billet { background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03) 45%, rgba(185, 168, 255, 0.08)); }
.embarq::before { left: 0; } .embarq::after { right: 0; }
.embarq__code { white-space: nowrap; }
@media (max-width: 760px) {
  .embarq::before, .embarq::after { width: 70%; }
  .embarq__talon::before { left: -13px; right: auto; }
  .embarq__talon::after { right: -13px; left: auto; }
}

/* ── Menu mobile plein écran (sorti de l'en-tête pour ne plus être rogné) ── */
.menu-mobile {
  position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(140, 120, 255, 0.28), transparent 70%),
    radial-gradient(50% 35% at 0% 100%, rgba(255, 120, 200, 0.18), transparent 70%),
    rgba(4, 6, 13, 0.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-mobile[hidden] { display: none !important; }
.menu-mobile__nav { display: flex; flex-direction: column; flex: 1; min-height: 100%; }
.menu-mobile__liste { list-style: none; margin: 0 0 2rem; padding: 0; }
.menu-mobile__liste li { border-bottom: 1px solid var(--ligne); opacity: 0; transform: translateY(14px); animation: menu-in 0.5s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 80ms); }
.menu-mobile__liste a { display: flex; align-items: baseline; gap: 1rem; padding: clamp(0.9rem, 2.6vh, 1.4rem) 0; text-decoration: none; }
.menu-mobile__num { font-size: 0.75rem; letter-spacing: 0.16em; color: var(--accent-2); min-width: 1.8rem; }
.menu-mobile__txt { font-size: clamp(1.9rem, 8.5vw, 2.8rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; color: var(--texte); }
.menu-mobile__liste a:active .menu-mobile__txt, .menu-mobile__liste a:hover .menu-mobile__txt { background: linear-gradient(90deg, #fff, #dcd2ff 55%, #ffc4e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu-mobile__cta { margin-top: auto; padding-block: 1.1rem; font-size: 0.85rem; opacity: 0; animation: menu-in 0.5s var(--ease) 0.45s forwards; }
@keyframes menu-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .menu-mobile__liste li, .menu-mobile__cta { animation: none; opacity: 1; transform: none; } }

/* Radar centré sur mobile */
@media (max-width: 760px) { .radar { margin-inline: auto; max-width: 220px; } }
.form-bloc__visibilite { margin-top: 1rem; padding: 0.9rem 1.1rem; border-left: 2px solid var(--accent-2); background: rgba(185, 168, 255, 0.06); border-radius: 0 12px 12px 0; font-size: 0.95rem; color: var(--texte-2); }

/* Bouton de langue FR / EN */
.lang-switch {
  display: inline-grid; place-items: center; min-width: 44px; height: 36px; padding: 0 0.7rem; border-radius: 999px;
  font: 600 0.72rem/1 var(--mono, monospace); letter-spacing: 0.18em; text-decoration: none; color: var(--texte);
  border: 1px solid var(--ligne-forte); background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.lang-switch:hover, .lang-switch:focus-visible { border-color: rgba(201, 168, 255, 0.8); background: rgba(201, 168, 255, 0.12); box-shadow: 0 0 18px -6px rgba(201, 168, 255, 0.9); outline: none; }
@media (max-width: 1140px) { .lang-switch { margin-left: auto; } .lang-switch + .burger { margin-left: -0.6rem; } }
