/* ==========================================================================
   The Next Wave — feuille de style
   Basée sur la charte graphique V1.0 (octobre 2026)
   Palette « Océan profond » · Titres Sora · Texte DM Sans
   ========================================================================== */

:root {
  /* Couleurs de la charte */
  --abysse: #0B1F3A;      /* Principale · 50 % des surfaces */
  --profondeur: #134E6F;  /* Secondaire · 20 % */
  --lagon: #2EC4B6;       /* Accent · 10 % — jamais en texte sur blanc */
  --sable: #EFE6D2;       /* Fond chaleureux · 10 % */
  --ecume: #E8F6F5;       /* Fond clair · 10 % */
  --blanc: #FFFFFF;
  --gris: #4A5D72;        /* Gris secondaire pour le texte */

  /* Dérivés (teintes de la palette uniquement) */
  --lagon-hover: color-mix(in srgb, var(--lagon) 78%, var(--blanc));
  --line-light: rgba(11, 31, 58, .12);
  --line-dark: rgba(232, 246, 245, .14);
  --muted-dark: rgba(232, 246, 245, .76);
  --error: #B3261E;

  /* Typographie */
  --font-title: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-text: "DM Sans", ui-sans-serif, system-ui, sans-serif;

  /* Mise en page */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(80px, 10vw, 128px);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;
  --shadow: 0 24px 60px -28px rgba(11, 31, 58, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.125rem;  /* 18px */
  line-height: 1.556;   /* 28px */
  color: var(--abysse);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.5rem); line-height: 1.07; letter-spacing: -.025em; } /* 56/60 */
h2 { font-size: clamp(1.75rem, 1.5rem + 1vw, 2rem); line-height: 1.25; letter-spacing: -.015em; }     /* 32/40 */
h3 { font-size: 1.25rem; line-height: 1.4; letter-spacing: -.01em; }
h4 { font-size: 1.125rem; line-height: 1.45; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lagon); color: var(--abysse); font-weight: 700;
  padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--profondeur); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--lagon); }

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Sur-titre : DM Sans 700 · 13px · capitales +18 % ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-text); font-weight: 700; font-size: 13px; line-height: 1.2;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--profondeur);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--lagon); }
.on-dark .eyebrow { color: var(--lagon); }
.section--profondeur .eyebrow { color: var(--ecume); }

.lead { color: var(--gris); max-width: 62ch; margin-top: 16px; }
.on-dark .lead { color: var(--muted-dark); }

.accent { color: var(--lagon); } /* uniquement sur fond Abysse */

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-text); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 17px 26px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 12px 20px; font-size: .9375rem; }
.btn--block { width: 100%; }

/* Lagon : toujours avec un texte Abysse */
.btn--primary { background: var(--lagon); color: var(--abysse); }
.btn--primary:hover { background: var(--lagon-hover); }

.btn--ghost { color: var(--blanc); border-color: rgba(232, 246, 245, .35); }
.btn--ghost:hover { border-color: var(--lagon); background: rgba(46, 196, 182, .08); }

.btn--dark { background: var(--abysse); color: var(--blanc); }
.btn--dark:hover { background: var(--profondeur); }

.btn--outline { color: var(--abysse); border-color: rgba(11, 31, 58, .22); }
.btn--outline:hover { border-color: var(--abysse); background: var(--abysse); color: var(--blanc); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--blanc);
  border-bottom: 1.5px solid var(--lagon); padding-bottom: 4px;
}
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--blanc);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled, .header.is-open {
  background: rgba(11, 31, 58, .94);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-dark);
}
/* Menu ouvert : fond plein et pas de backdrop-filter (il ferait du header le
   bloc conteneur du menu en position fixe, qui s'écraserait à 0 px de haut) */
.header.is-open { background: var(--abysse); -webkit-backdrop-filter: none; backdrop-filter: none; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Lockup horizontal : symbole + nom. Logo complet ≥ 120 px à l'écran. */
.lockup { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; color: var(--blanc); padding: 6px 0; }
.lockup__symbol { width: 120px; height: 38.3px; --logo-main: var(--blanc); --logo-accent: var(--lagon); }
.lockup__divider { width: 1.5px; height: 34px; background: var(--lagon); opacity: .7; }
.lockup__name { font-family: var(--font-title); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.nav__list { display: flex; gap: 30px; }
.nav__list a {
  position: relative; text-decoration: none; font-weight: 500; font-size: 1rem;
  color: var(--muted-dark); transition: color .2s; padding: 6px 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--lagon); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--blanc); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 10px; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--blanc); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Bouton de changement de thème (soleil en sombre, lune en clair) */
.header__actions { display: flex; align-items: center; gap: 6px; }
.theme-toggle {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--blanc); border: 1px solid rgba(232, 246, 245, .25);
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.theme-toggle:hover { border-color: var(--lagon); color: var(--lagon); }
.theme-toggle svg {
  grid-area: 1 / 1; width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
.header :focus-visible { outline-color: var(--lagon); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section-y); position: relative; }
.section--sable { background: var(--sable); }
.section--ecume { background: var(--ecume); }
.section--profondeur { background: var(--profondeur); color: var(--blanc); }
.on-dark { color: var(--blanc); }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--abysse);
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  position: relative; overflow: hidden; isolation: isolate;
}

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero__content h1 { margin-bottom: 24px; }
.hero__lead { color: var(--muted-dark); max-width: 54ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__proof { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.hero__proof li { display: flex; flex-direction: column; gap: 2px; }
.hero__proof strong { font-family: var(--font-title); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--blanc); }
.hero__proof span { font-size: .9375rem; color: var(--muted-dark); }

/* --- Visuel : logo 3D en rotation (Three.js, voir assets/js/logo3d.js) --- */
.hero__visual { position: relative; }
.logo3d {
  position: relative; width: 100%; max-width: 600px; margin-inline: auto;
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  touch-action: pan-y; /* défilement vertical conservé sur mobile, glisser horizontal = rotation */
  -webkit-user-select: none; user-select: none;
}
.logo3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; opacity: 0; transition: opacity 1s var(--ease); outline: none; }
.logo3d.is-ready canvas { opacity: 1; }
.logo3d.is-dragging canvas { cursor: grabbing; }
/* Logo plat affiché tant que la 3D n'est pas prête (ou si WebGL est indisponible) */
.logo3d__fallback { position: relative; width: 74%; height: auto; --logo-main: var(--blanc); --logo-accent: var(--lagon); transition: opacity .6s var(--ease); }
.logo3d.is-ready .logo3d__fallback { opacity: 0; }
.logo3d__glow {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(19, 78, 111, .9), rgba(19, 78, 111, .4) 58%, rgba(19, 78, 111, 0));
}
/* Ondes à la surface de l'eau, sous le logo */
.logo3d__ripples { position: absolute; left: 10%; right: 10%; bottom: 13%; height: 17%; }
.logo3d__ripples i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--lagon); opacity: 0; animation: ripple 7.5s var(--ease) infinite; }
.logo3d__ripples i:nth-child(2) { animation-delay: -2.5s; }
.logo3d__ripples i:nth-child(3) { animation-delay: -5s; }

/* --- Ligne d'eau animée --- */
.wave-line { position: relative; height: 24px; margin-top: clamp(56px, 8vw, 96px); overflow: hidden; }
.wave-line svg { width: 200%; min-width: 2400px; height: 24px; animation: drift 28s linear infinite; }
.wave-line path { fill: none; stroke: var(--lagon); stroke-width: 2; opacity: .55; }

/* --- Bandeau clients --- */
.clients { padding-block: 28px 40px; }
.clients__inner { display: flex; align-items: center; gap: 40px; }
.clients__label { flex: none; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-dark); }
.marquee {
  flex: 1; display: flex; overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; flex: none; gap: 56px; padding-right: 56px; animation: marquee 32s linear infinite; }
.marquee__track li { font-family: var(--font-title); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; color: rgba(232, 246, 245, .55); white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ==========================================================================
   Démarrer — « Par où commençons-nous ? »
   PC : pleine largeur, titre + bouton à gauche, choix 3 × 3 à droite
   Tablette : titre et bouton en ligne, choix 3 × 3 · Smartphone : grille 2 colonnes tactile
   ========================================================================== */
.starter { background: var(--profondeur); padding-block: clamp(32px, 5vw, 56px); }
.starter__card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto;
  align-items: center; column-gap: 16px; row-gap: 20px;
  background: var(--blanc); color: var(--abysse);
  border-radius: 20px; padding: 22px 28px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5);
}
.starter__head { min-width: 0; }
.starter__card h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.01em; }
.starter__card .btn { grid-column: 2; grid-row: 1; padding: 12px 20px; font-size: 1rem; }
/* Soulignement en vague Lagon (trait autorisé sur fond clair) */
.wave-underline {
  white-space: nowrap; padding-bottom: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='6' viewBox='0 0 18 6'%3E%3Cpath d='M0 3 Q4.5 0 9 3 T18 3' fill='none' stroke='%232EC4B6' stroke-width='2'/%3E%3C/svg%3E") repeat-x left bottom / 18px 6px;
}
.starter__lead { color: var(--gris); font-size: 1rem; line-height: 1.5; margin-top: 8px; }
.starter__error { color: var(--error); font-size: .8125rem; line-height: 1.3; margin-top: 4px; }

.choices {
  grid-column: 1 / -1; grid-row: 2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px;
  border: 0; padding: 0; margin: 0; min-width: 0;
}
.choice {
  position: relative; display: flex; align-items: center; gap: 9px; min-width: 0;
  padding: 7px 11px; border: 1.5px solid rgba(11, 31, 58, .14); border-radius: 10px;
  font-size: .875rem; font-weight: 500; line-height: 1.25; white-space: nowrap; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.choice > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.choice:hover { border-color: rgba(11, 31, 58, .4); }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice__box {
  flex: none; width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid rgba(11, 31, 58, .3); color: transparent;
  display: grid; place-items: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.choice__box .ico { width: 12px; height: 12px; stroke-width: 3; }
.choice:has(input:checked) { border-color: var(--abysse); background: var(--ecume); }
.choice input:checked + .choice__box { background: var(--abysse); border-color: var(--abysse); color: var(--lagon); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--profondeur); outline-offset: 2px; }

/* PC : la carte occupe toute la largeur du contenu, sans vide sur les côtés */
@media (min-width: 1081px) {
  .starter__card { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 56px; row-gap: 28px; padding: 44px 48px; }
  .starter__head { align-self: end; }
  .starter__card h2 { font-size: 2rem; }
  .starter__lead { margin-top: 14px; }
  .starter__card .btn { grid-column: 1; grid-row: 2; justify-self: start; align-self: start; padding: 15px 24px; }
  .choices { grid-column: 2; grid-row: 1 / span 2; align-self: center; gap: 12px; }
  .choice { min-height: 54px; padding: 12px 16px; gap: 12px; border-radius: 12px; font-size: .9375rem; }
  .choice__box { width: 18px; height: 18px; border-radius: 5px; }
  .choice__box .ico { width: 13px; height: 13px; }
}

/* Smartphone : hauteur libre, grille 2 colonnes, cibles tactiles ≥ 50 px, « Autre » en pleine largeur */
@media (max-width: 720px) {
  .starter__card { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 18px; padding: 22px 20px; }
  .starter__lead { display: none; }
  .starter__card h2 { font-size: 1.375rem; }
  .starter__card .btn { grid-column: 1; grid-row: 3; width: 100%; padding: 16px 20px; }
  .choices { grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .choice { min-height: 52px; padding: 10px 12px; gap: 10px; border-radius: 12px; font-size: .9375rem; line-height: 1.2; white-space: normal; }
  .choice:last-child { grid-column: 1 / -1; }
  .choice > span:last-child { overflow: visible; }
  .choice__box { width: 20px; height: 20px; border-radius: 5px; }
  .choice__box .ico { width: 14px; height: 14px; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--blanc); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 8px;
  display: grid; place-items: center;
  background: var(--ecume); color: var(--abysse);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .service__icon { background: var(--abysse); color: var(--lagon); }
.service p { color: var(--gris); font-size: 1.0625rem; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.tags li { font-size: .8125rem; font-weight: 500; color: var(--profondeur); background: var(--ecume); padding: 6px 12px; border-radius: 999px; }

/* ==========================================================================
   Méthode
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
/* Trait ondulé entre les étapes */
.step::before {
  content: ""; position: absolute; top: 12px; left: 32px; right: -32px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 6 Q12 0 24 6 T48 6' fill='none' stroke='%23134E6F' stroke-width='2'/%3E%3C/svg%3E") repeat-x left center / 48px 12px;
  opacity: .45;
}
.step:last-child::before { right: 0; -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); }
.step__dot {
  position: absolute; top: 4px; left: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sable); border: 2px solid var(--profondeur);
  display: grid; place-items: center;
}
.step__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lagon); }
.step__num { display: block; font-family: var(--font-title); font-weight: 300; font-size: 3rem; line-height: 1; color: var(--profondeur); letter-spacing: -.03em; margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--gris); font-size: 1.0625rem; line-height: 1.6; }
.step__meta { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--profondeur); }

/* ==========================================================================
   Résultats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0 0 clamp(64px, 9vw, 104px); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line-dark); position: relative; }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 3px; border-radius: 2px; background: var(--lagon); }
.stat dd { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.5rem); line-height: 1; letter-spacing: -.03em; color: var(--blanc); }
.stat dt { color: var(--muted-dark); font-size: 1rem; line-height: 1.5; max-width: 22ch; }

.cases-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.cases-head h3 { font-size: 1.5rem; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  background: var(--abysse); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-dark);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease);
}
.case:hover { transform: translateY(-6px); }
.case__visual { display: block; height: 200px; overflow: hidden; }
.case__visual svg, .case__visual img { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.case__visual img { object-fit: cover; object-position: center; }
.case:hover .case__visual svg, .case:hover .case__visual img { transform: scale(1.05); }
.case__visual--sable { background: var(--sable); }
.case__visual--lagon { background: var(--lagon); }
.case__visual--ecume { background: var(--ecume); }
.case__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case__client { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lagon); }
.case__client a {
  color: inherit; text-decoration: underline 1.5px transparent; text-underline-offset: 4px;
  transition: text-decoration-color .2s var(--ease);
}
.case__client a:hover { text-decoration-color: currentColor; }
.case__client .ico { display: inline-block; width: 14px; height: 14px; margin-left: 3px; vertical-align: -2px; transition: transform .25s var(--ease); }
.case__client a:hover .ico { transform: translate(2px, -2px); }
.case h4 { color: var(--blanc); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.chips li { font-size: .875rem; color: var(--muted-dark); border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 12px; }
.chips strong { color: var(--blanc); font-weight: 700; }

/* ==========================================================================
   Témoignages
   ========================================================================== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  margin: 0; background: var(--blanc); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 1px 0 var(--line-light);
}
.quote__mark { width: 32px; height: 24px; fill: var(--profondeur); }
.quote blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--abysse); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line-light); }
.quote figcaption strong { display: block; font-size: 1rem; }
.quote figcaption span:last-child { font-size: .9375rem; color: var(--gris); line-height: 1.4; }
.avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sable); color: var(--abysse);
  font-family: var(--font-title); font-weight: 600; font-size: .9375rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__intro .btn { margin-top: 32px; }
.faq__list details { border-bottom: 1px solid rgba(11, 31, 58, .16); }
.faq__list details:first-child { border-top: 1px solid rgba(11, 31, 58, .16); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-family: var(--font-title); font-weight: 600; font-size: 1.125rem; line-height: 1.4;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--abysse) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%232EC4B6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .35s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { color: var(--gris); padding: 0 56px 26px 0; max-width: 64ch; }
.faq__list details[open] p { animation: fadeDown .4s var(--ease); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--abysse); overflow: hidden; isolation: isolate; }
.contact__bg-logo {
  position: absolute; z-index: -1;
  width: clamp(700px, 70vw, 1100px); aspect-ratio: 165.4 / 71.5; height: auto;
  left: -12%; bottom: -14%;
  --logo-main: var(--profondeur); opacity: .28;
}
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }

.next { display: flex; flex-direction: column; gap: 16px; margin: 36px 0; }
.next li { display: flex; align-items: center; gap: 16px; font-weight: 500; }
.next span {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--lagon); color: var(--lagon);
  font-family: var(--font-title); font-weight: 600; font-size: .9375rem;
}
.contact__info { display: flex; flex-direction: column; gap: 14px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.contact__info li { display: flex; align-items: center; gap: 14px; color: var(--muted-dark); }
.contact__info svg { width: 22px; height: 22px; fill: none; stroke: var(--lagon); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact__info a { text-decoration: none; color: var(--blanc); }
.contact__info a:hover { text-decoration: underline; text-decoration-color: var(--lagon); text-underline-offset: 4px; }

/* --- Formulaire --- */
.form { background: var(--blanc); color: var(--abysse); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.form__body { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: .9375rem; font-weight: 500; padding: 0; }
.field legend { margin-bottom: 10px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; border: 1.5px solid rgba(11, 31, 58, .18); border-radius: var(--radius-sm);
  background: var(--blanc); padding: 13px 16px; font-size: 1rem; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%230B1F3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 16px no-repeat;
}
.field ::placeholder { color: rgba(74, 93, 114, .7); }
.field input:not([type="checkbox"]):hover, .field select:hover, .field textarea:hover { border-color: rgba(11, 31, 58, .35); }
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--profondeur); box-shadow: 0 0 0 4px rgba(46, 196, 182, .28);
}
.field__error { display: none; font-size: .875rem; color: var(--error); }
.field.has-error .field__error { display: block; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: .9375rem; font-weight: 500;
  border: 1.5px solid rgba(11, 31, 58, .18); transition: all .2s var(--ease);
}
.pill:hover span { border-color: var(--abysse); }
.pill input:checked + span { background: var(--abysse); border-color: var(--abysse); color: var(--blanc); }
.pill input:focus-visible + span { outline: 3px solid var(--profondeur); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.5; color: var(--gris); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--abysse); cursor: pointer; }

.form__success { text-align: center; padding: 48px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.form__success[hidden], .form__body[hidden], .field[hidden] { display: none; }
.form__success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--lagon); color: var(--abysse); display: grid; place-items: center; margin-bottom: 8px; }
.form__success-icon .ico { width: 30px; height: 30px; stroke-width: 2.5; }
.form__success p { color: var(--gris); max-width: 36ch; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer { background: var(--abysse); border-top: 1px solid var(--line-dark); padding-top: clamp(56px, 8vw, 88px); }
.footer__top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding-bottom: 56px; }
.footer__logo { display: inline-block; padding: 8px 0; }
.footer__logo svg { width: 160px; height: 51px; --logo-main: var(--blanc); --logo-accent: var(--lagon); }
.footer__brand p { color: var(--muted-dark); margin-top: 20px; max-width: 34ch; font-size: 1rem; }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--blanc); transition: border-color .2s, background-color .2s, color .2s;
}
.socials a:hover { background: var(--lagon); border-color: var(--lagon); color: var(--abysse); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols h3 { font-family: var(--font-text); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lagon); margin-bottom: 18px; }
.footer__cols ul { display: flex; flex-direction: column; gap: 10px; }
.footer__cols a { text-decoration: none; color: var(--muted-dark); font-size: 1rem; transition: color .2s; overflow-wrap: anywhere; }
.footer__cols a:hover { color: var(--blanc); }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 0 32px; border-top: 1px solid var(--line-dark); font-size: .9375rem; color: rgba(232, 246, 245, .6); }
.footer__bottom ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__bottom a { text-decoration: none; color: inherit; }
.footer__bottom a:hover { color: var(--blanc); }

/* ==========================================================================
   Animations
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes ripple { 0% { transform: scale(.3); opacity: 0; } 25% { opacity: .55; } 100% { transform: scale(1.12); opacity: 0; } }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__list { gap: 22px; }
  .lockup__divider, .lockup__name { display: none; }
  .services, .cases, .quotes { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .step:nth-child(2)::before { right: 0; -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px;
    background: var(--abysse); padding: 32px var(--gutter) 48px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; font-family: var(--font-title); font-weight: 600; font-size: 1.75rem; color: var(--blanc); padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
  .nav__list a::after { display: none; }
  .nav__cta { padding: 17px 26px; font-size: 1rem; }

  .hero__grid { grid-template-columns: 1fr; }
  /* Une colonne : le logo 3D passe en tête, avant le titre */
  .hero { padding-top: calc(var(--header-h) + 16px); }
  .hero__grid { gap: 8px; }
  .hero__visual { order: -1; --d: 0 !important; max-width: 560px; width: 100%; margin-inline: auto; }
  .clients__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .marquee { width: 100%; }

  .faq, .contact__grid { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .services, .cases, .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .step { padding-top: 0; padding-left: 56px; }
  .step::before { top: 36px; bottom: -40px; left: 13px; right: auto; width: 2px; height: auto; background: var(--profondeur); opacity: .25; -webkit-mask-image: none; mask-image: none; }
  .step:nth-child(2)::before { -webkit-mask-image: none; mask-image: none; }
  .step:last-child::before { display: none; }
  .step__dot { top: 6px; }
  .step__num { font-size: 2.25rem; margin-bottom: 12px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__proof { gap: 20px 28px; }
  .logo3d { aspect-ratio: 5 / 4; }
  .form__row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
  .faq__list details p { padding-right: 0; }
}

/* ==========================================================================
   Thème clair — activé par data-theme="light" sur <html>
   Le thème sombre reste la référence. Ici, les surfaces Abysse / Profondeur
   passent sur Écume, Blanc et Sable ; logo « Principal — Abysse sur blanc »
   et « Profondeur sur Sable » en pied de page. Lagon n'est jamais en texte
   sur fond clair : il reste réservé aux boutons (texte Abysse) et aux traits.
   ========================================================================== */

/* Transition douce des couleurs au moment du changement (classe posée 0,5 s) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), fill .45s var(--ease), stroke .45s var(--ease), box-shadow .45s var(--ease) !important;
  transition-delay: 0s !important;
}

/* --- Bouton de thème --- */
[data-theme="light"] .theme-toggle { color: var(--abysse); border-color: rgba(11, 31, 58, .2); }
[data-theme="light"] .theme-toggle:hover { border-color: var(--abysse); background: rgba(11, 31, 58, .05); }
[data-theme="light"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: none; }

/* --- En-tête --- */
[data-theme="light"] .header { color: var(--abysse); }
[data-theme="light"] .header.is-scrolled, [data-theme="light"] .header.is-open { background: rgba(255, 255, 255, .92); border-bottom-color: var(--line-light); }
[data-theme="light"] .header.is-open { background: var(--blanc); }
[data-theme="light"] .lockup { color: var(--abysse); }
[data-theme="light"] .lockup__symbol { --logo-main: var(--abysse); --logo-accent: var(--abysse); }
[data-theme="light"] .nav__list a { color: var(--gris); }
[data-theme="light"] .nav__list a:hover, [data-theme="light"] .nav__list a.is-active { color: var(--abysse); }
[data-theme="light"] .burger span { background: var(--abysse); }
[data-theme="light"] .header :focus-visible,
[data-theme="light"] .on-dark :focus-visible { outline-color: var(--profondeur); }

/* --- Hero --- */
[data-theme="light"] .hero { background: var(--ecume); color: var(--abysse); }
[data-theme="light"] .hero .eyebrow { color: var(--profondeur); }
[data-theme="light"] .hero .accent { color: var(--profondeur); }
[data-theme="light"] .hero__lead { color: var(--gris); }
[data-theme="light"] .hero__proof { border-top-color: var(--line-light); }
[data-theme="light"] .hero__proof strong { color: var(--abysse); }
[data-theme="light"] .hero__proof span { color: var(--gris); }
[data-theme="light"] .btn--ghost { color: var(--abysse); border-color: rgba(11, 31, 58, .25); }
[data-theme="light"] .btn--ghost:hover { border-color: var(--abysse); background: rgba(11, 31, 58, .04); }
[data-theme="light"] .logo3d__fallback { --logo-main: var(--abysse); --logo-accent: var(--abysse); }
[data-theme="light"] .logo3d__glow { background: radial-gradient(closest-side, var(--blanc), rgba(255, 255, 255, .55) 58%, rgba(255, 255, 255, 0)); }
[data-theme="light"] .logo3d__ripples i { border-color: var(--profondeur); }
[data-theme="light"] .wave-line path { stroke: var(--profondeur); opacity: .3; }
[data-theme="light"] .clients__label { color: var(--gris); }
[data-theme="light"] .marquee__track li { color: rgba(11, 31, 58, .42); }

/* --- Démarrer --- */
[data-theme="light"] .starter { background: var(--sable); }
[data-theme="light"] .starter__card { box-shadow: 0 30px 70px -36px rgba(11, 31, 58, .3); }

/* --- Résultats --- */
[data-theme="light"] .section--profondeur { background: var(--blanc); color: var(--abysse); }
[data-theme="light"] .section--profondeur .eyebrow { color: var(--profondeur); }
[data-theme="light"] .section--profondeur .lead { color: var(--gris); }
[data-theme="light"] .stat { border-top-color: var(--line-light); }
[data-theme="light"] .stat dd { color: var(--abysse); }
[data-theme="light"] .stat dt { color: var(--gris); }
[data-theme="light"] .link-arrow { color: var(--abysse); }
[data-theme="light"] .case { background: var(--blanc); border-color: var(--line-light); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
[data-theme="light"] .case:hover { box-shadow: var(--shadow); }
[data-theme="light"] .case__client { color: var(--profondeur); }
[data-theme="light"] .case h4 { color: var(--abysse); }
[data-theme="light"] .chips li { color: var(--gris); border-color: var(--line-light); }
[data-theme="light"] .chips strong { color: var(--abysse); }

/* --- Contact --- */
[data-theme="light"] .contact { background: var(--ecume); color: var(--abysse); }
[data-theme="light"] .contact .eyebrow { color: var(--profondeur); }
[data-theme="light"] .contact .lead { color: var(--gris); }
[data-theme="light"] .contact__bg-logo { opacity: .07; }
[data-theme="light"] .next span { border-color: var(--profondeur); color: var(--profondeur); }
[data-theme="light"] .contact__info { border-top-color: var(--line-light); }
[data-theme="light"] .contact__info li { color: var(--gris); }
[data-theme="light"] .contact__info svg { stroke: var(--profondeur); }
[data-theme="light"] .contact__info a { color: var(--abysse); }
[data-theme="light"] .form { box-shadow: 0 30px 70px -36px rgba(11, 31, 58, .3); }

/* --- Pied de page : Profondeur sur Sable --- */
[data-theme="light"] .footer { background: var(--sable); color: var(--abysse); border-top-color: rgba(11, 31, 58, .08); }
[data-theme="light"] .footer__logo svg { --logo-main: var(--profondeur); --logo-accent: var(--profondeur); }
[data-theme="light"] .footer__brand p { color: var(--gris); }
[data-theme="light"] .socials a { color: var(--abysse); border-color: rgba(11, 31, 58, .18); }
[data-theme="light"] .socials a:hover { color: var(--abysse); border-color: var(--lagon); }
[data-theme="light"] .footer__cols h3 { color: var(--profondeur); }
[data-theme="light"] .footer__cols a { color: var(--gris); }
[data-theme="light"] .footer__cols a:hover { color: var(--abysse); }
[data-theme="light"] .footer__bottom { color: var(--gris); border-top-color: rgba(11, 31, 58, .14); }
[data-theme="light"] .footer__bottom a:hover { color: var(--abysse); }

@media (max-width: 900px) {
  .header__actions { margin-left: auto; }
  [data-theme="light"] .nav { background: var(--blanc); }
  [data-theme="light"] .nav__list a { color: var(--abysse); border-bottom-color: var(--line-light); }
}
