/* ============================================================================
   Curiositeam — feuille de style de la home (2026)
   Aucun framework : reset minimal, tokens, composants, motion.
   Ordre : polices → tokens → reset → base → utilitaires → chrome → sections.
   ========================================================================== */

/* ------------------------------------------------------------------ Polices */

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/InstrumentSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/InstrumentSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------- Tokens */

:root {
  /* Fonds — noir profond avec une pointe de vert, jamais du gris neutre */
  --bg: oklch(0.145 0.009 160);
  --bg-2: oklch(0.178 0.011 160);
  --surface: oklch(0.204 0.013 160);
  --surface-2: oklch(0.245 0.015 160);

  /* Texte */
  --text: oklch(0.975 0.004 160);
  --muted: oklch(0.735 0.014 160);
  /* 0.575 donnait 4.34:1 sur --bg-2 et 4.12:1 sur --surface : le pied de page
     (13 px), les intitulés de colonne (11 px) et les pastilles de prix des
     cartes échouaient au seuil AA de 4.5:1. 0.62 remonte à 5.46 / 5.19 / 4.93
     sur --bg / --bg-2 / --surface, et reste très en dessous de --muted (8.47)
     — la hiérarchie entre texte secondaire et tertiaire tient toujours. */
  --dim: oklch(0.62 0.016 160);

  /* Marque — #22a851 relevé en luminance pour tenir sur fond noir */
  --brand: #22a851;
  --accent: oklch(0.775 0.185 152);
  --accent-2: oklch(0.865 0.125 178);
  --accent-soft: oklch(0.775 0.185 152 / 0.14);
  --grad: linear-gradient(100deg, var(--accent), var(--accent-2));

  --line: oklch(1 0 0 / 0.085);
  --line-strong: oklch(1 0 0 / 0.16);

  /* Typo */
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  /* Rythme */
  --shell: 1320px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(6rem, 14vh, 11rem);
  --radius: 20px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* En rem, pas en px : l'en-tête suit le réglage de taille de texte du
     système. En px, un utilisateur qui grossit la police voyait le texte
     déborder d'une barre restée figée. */
  --header-h: 4.75rem;
}

/* -------------------------------------------------------------------- Reset */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  /* On coupe le voile gris que WebKit peint au doigt posé — mais seulement
     parce que la section « États pressés » plus bas fournit un retour à la
     place. Sans elle, ceci supprimerait le seul retour tactile du site. */
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.98rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  /* -0.011em descendait en cascade jusqu'au 13 px du pied de page et au 11 px
     des étiquettes — or le petit texte demande l'inverse, un léger desserrage.
     Le corps reste donc à zéro ; les titres se resserrent eux-mêmes, et les
     classes en mono portent déjà leur tracking positif. */
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Grain global — casse le côté « dégradé plastique » du fond sombre */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  /* Pas de mix-blend-mode : sur une couche fixe plein écran, il force le
     navigateur à re-mélanger tout le viewport dès que quoi que ce soit bouge
     dessous. Une simple opacité donne le même grain pour rien. */
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol,
dl {
  list-style: none;
  padding: 0;
}

dd {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: oklch(0.16 0.02 160);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 500;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: oklch(0.16 0.02 160);
  border-radius: 999px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------------------------------------------------------------- Typo base */

/* Le tracking et l'interlignage suivent la taille — c'est la règle, pas une
   préférence. Une valeur unique est forcément fausse quelque part : -0.038em et
   `line-height: 1` sont justes pour le titre du hero rendu à 91 px, et beaucoup
   trop serrés pour un nom d'offre à 25 px, qui héritait pourtant des mêmes.
   La valeur de base est désormais celle des *petits* titres (20-30 px), les plus
   nombreux ; les titres d'affichage se resserrent explicitement ci-dessous.
   Un titre ajouté demain part donc d'un réglage sain. */

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Plus le texte grandit, plus les lettres se lisent écartées : on resserre. */

.hero__title,
.contact__title {
  line-height: 1;
  letter-spacing: -0.038em;
}

.section-title,
.page-title {
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.card__title {
  line-height: 1.08;
  letter-spacing: -0.028em;
}

/* Titres de texte long : interlignage plus aéré, on y lit des paragraphes. */

.prose > h2 {
  line-height: 1.2;
}

.prose h3,
.panel h3 {
  line-height: 1.3;
  letter-spacing: -0.012em;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-inline-end: 0.04em;
}

p {
  text-wrap: pretty;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  /* Un chapeau qui passe à la ligne pend sous sa pastille et casse l'entrée du
     hero. Il tient sur une ligne ou il perd un segment (voir --wide) ; il ne se
     replie jamais. */
  white-space: nowrap;
}

/* Chapeau segmenté. Les séparateurs sont dessinés par le CSS, jamais tapés dans
   le HTML : on peut donc retirer un segment sur écran étroit sans laisser un
   « · » orphelin. Les segments réapparaissent par paliers, dans l'ordre où la
   ligne rentre — 23 caractères tiennent partout, 32 à partir de 360 px, les 45
   du texte complet à partir de 540 px. */
.eyebrow__part + .eyebrow__part {
  display: none;
}

.eyebrow__part + .eyebrow__part::before {
  content: '·';
  margin-inline-end: 0.55em;
  color: var(--dim);
}

@media (min-width: 360px) {
  .eyebrow__part + .eyebrow__part {
    display: inline;
  }

  .eyebrow__part + .eyebrow__part--wide {
    display: none;
  }
}

@media (min-width: 540px) {
  .eyebrow__part + .eyebrow__part--wide {
    display: inline;
  }
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}

/* Le halo est un pseudo-élément qu'on met à l'échelle : transform et opacity
   sont composités par le GPU, alors qu'animer box-shadow repeint à chaque image. */
.eyebrow__dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: oklch(0.775 0.185 152 / 0.45);
  animation: pulse 2.8s var(--ease) infinite;
  will-change: transform, opacity;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

.section-title {
  font-size: clamp(2.1rem, 1.1rem + 4.4vw, 4.6rem);
  margin-top: 1.25rem;
  /* La limite doit vivre sur le titre, pas sur son conteneur : un `ch` posé sur
     .section-head se calcule à la taille du paragraphe (~17px) et écrasait les
     titres dans 518px alors qu'ils sont rendus à 73px. */
  max-width: 22ch;
}

.section-head {
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

/* ------------------------------------------------------------------ Boutons */

.btn {
  --btn-py: 0.85rem;
  --btn-px: 1.5rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  isolation: isolate;
  /* `scale` et non `transform` : plusieurs éléments qui portent cette classe
     reçoivent un `transform` en ligne écrit par GSAP (le bouton flottant à son
     apparition, les cartes tarifaires inclinées qui en contiennent). Une
     transition CSS sur `transform` viendrait s'y superposer. Les propriétés de
     transformation indépendantes (translate, rotate, scale) se composent avec
     `transform` sans se marcher dessus. */
  transition: scale 0.4s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}

.btn__icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

.btn--sm {
  /* 0.6rem plafonnait la hauteur à 42 px — c'est le bouton WhatsApp de
     l'en-tête, le CTA le plus haut de la page. 0.68rem le passe à 45 px. */
  --btn-py: 0.68rem;
  --btn-px: 1.1rem;
  font-size: 0.875rem;
}

.btn--lg {
  --btn-py: 1.05rem;
  --btn-px: 1.9rem;
  font-size: 1rem;
}

.btn--xl {
  --btn-py: 1.25rem;
  --btn-px: 2.4rem;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
}

/* Bouton WhatsApp — le CTA principal du site */
.btn--wa {
  color: oklch(0.16 0.03 160);
  background: var(--grad);
  font-weight: 600;
  box-shadow: 0 0 0 1px oklch(0.775 0.185 152 / 0.4), 0 8px 30px -8px oklch(0.775 0.185 152 / 0.55);
}

.btn--wa::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(100deg, var(--accent-2), var(--accent));
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.btn--wa:hover::before {
  opacity: 1;
}

.btn--wa:hover {
  box-shadow: 0 0 0 1px oklch(0.865 0.125 178 / 0.5), 0 14px 44px -10px oklch(0.775 0.185 152 / 0.7);
}

/* Bouton secondaire — contour discret */
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: oklch(1 0 0 / 0.02);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: oklch(0.775 0.185 152 / 0.55);
  background: var(--accent-soft);
  color: var(--text);
}

.btn--ghost .btn__icon {
  transition: transform 0.4s var(--ease);
}

.btn--ghost:hover .btn__icon {
  transform: translateX(4px);
}

/* ------------------------------------------------------------ États pressés */
/* Le retour arrive au doigt posé, pas au relâchement : c'est la fondation de
   la sensation de directness. Le site n'avait aucune règle `:active` — chaque
   contrôle ne réagissait qu'au `click`, donc après coup.
   Deux principes :
   1. Rapide à l'aller (90 ms), normal au retour — l'enfoncement doit être
      instantané, la détente peut être douce.
   2. On enfonce avec `scale`, jamais `transform` : GSAP écrit déjà un
      `transform` en ligne sur les boutons aimantés et le bouton flottant. */

.btn:active,
.wa-fab:active,
.burger:active,
.skip-link:active {
  scale: 0.97;
  transition-duration: 0.09s;
}

.btn--wa:active {
  /* Le halo se resserre : le bouton s'enfonce vers la surface au lieu de flotter. */
  box-shadow: 0 0 0 1px oklch(0.775 0.185 152 / 0.4), 0 4px 14px -8px oklch(0.775 0.185 152 / 0.5);
}

.btn--ghost:active {
  background: var(--accent-soft);
  border-color: oklch(0.775 0.185 152 / 0.55);
}

.wa-fab:active {
  box-shadow: 0 4px 16px -10px oklch(0.775 0.185 152 / 0.7);
}

.burger:active {
  background: oklch(1 0 0 / 0.06);
}

.brand:active {
  opacity: 0.6;
  transition-duration: 0.09s;
}

/* Liens : la couleur d'arrivée du survol, appliquée sans délai au doigt posé. */
.header__link:active,
.drawer__link:active,
.footer__col a:active,
.footer__legal a:active,
.contact__alt a:active,
.crumbs a:active,
.prose a:active,
.drawer__mail:active,
.faq__q:active {
  color: var(--accent);
  transition-duration: 0.09s;
}

/* Le soulignement du menu se pose d'un coup plutôt que de se dérouler. */
.header__link:active::after {
  transform: scaleX(1);
  transition-duration: 0.09s;
}

.card__link:active {
  opacity: 0.62;
  transition-duration: 0.09s;
}

.card__link:active .card__arrow {
  transform: translateX(5px);
  transition-duration: 0.09s;
}

/* ------------------------------------------------------ Cibles tactiles 44 px */
/* Mesuré avant correction : liens du pied de page 25 px, liens légaux 21 px,
   lien e-mail de la section contact 22 px. Très en dessous des 44 px attendus.
   On étend la zone cliquable avec un pseudo-élément plutôt qu'avec du padding :
   le rendu ne bouge pas d'un pixel, seule la cible grandit. `min-width` couvre
   les libellés d'un seul caractère (le lien « X » des réseaux fait 9 px). */

.footer__col a,
.footer__legal a,
.contact__alt a,
.crumbs a,
.drawer__mail {
  position: relative;
}

.footer__col a::after,
.footer__legal a::after,
.contact__alt a::after,
.crumbs a::after,
.drawer__mail::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: calc(100% + 0.5rem);
  min-width: 44px;
  height: 44px;
  /* Un lien qui passe à la ligne reste couvert sur toute sa hauteur. */
  min-height: 100%;
}

/* --------------------------------------------------------------- Préchargeur */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.preloader__inner {
  display: grid;
  place-items: center;
  gap: 1.75rem;
}

.preloader__mark {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 24px oklch(0.775 0.185 152 / 0.5));
}

.preloader__track {
  width: 140px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}

.preloader__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

html:not(.js) .preloader {
  display: none;
}

/* ------------------------------------------------------- Barre de progression */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 260;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

/* --------------------------------------------------------- Curseur sur mesure */

.cursor {
  position: fixed;
  inset: 0;
  z-index: 280;
  pointer-events: none;
  display: none;
  /* Invisible jusqu'au premier mouvement, sinon l'anneau se voit en haut à gauche */
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.cursor.is-live {
  opacity: 1;
}

.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  will-change: transform;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent);
}

.cursor__ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid oklch(0.775 0.185 152 / 0.5);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.cursor.is-hover .cursor__ring {
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  background: oklch(0.775 0.185 152 / 0.12);
  border-color: oklch(0.775 0.185 152 / 0.8);
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }

  html.has-cursor,
  html.has-cursor a,
  html.has-cursor button {
    cursor: none;
  }
}

/* ------------------------------------------------------------------ En-tête */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 250;
  transition: transform 0.5s var(--ease), background-color 0.4s linear, border-color 0.4s linear, backdrop-filter 0.4s linear;
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: oklch(0.145 0.009 160 / 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 1rem var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  flex: none;
  display: block;
  /* Le logo fait 26 px de haut : sans ces marges internes, la cible est deux
     fois trop petite. L'en-tête est en `align-items: center`, rien ne bouge. */
  padding-block: 0.6rem;
  transition: opacity 0.3s var(--ease);
}

.brand img {
  width: auto;
  height: 1.625rem;
}

.brand:hover {
  opacity: 0.75;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.header__link {
  position: relative;
  /* 0.5rem donnait 41 px de haut : sous le minimum de 44 px. L'en-tête fait
     76 px, la place ne manquait pas. */
  padding: 0.625rem 0.9rem;
  font-size: 0.9375rem;
  color: var(--muted);
  overflow: hidden;
  transition: color 0.3s var(--ease);
}

.header__link::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.45rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.header__link:hover {
  color: var(--text);
}

.header__link:hover::after {
  transform: scaleX(1);
}

/* Section en cours de lecture. Le trait du survol reste simplement en place et
   le lien passe en pleine couleur : aucun vocabulaire visuel nouveau, et l'état
   reste lisible quand la souris est ailleurs — ce qui est tout l'objet. */
.header__link.is-current {
  color: var(--text);
}

.header__link.is-current::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Burger */

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: scale 0.3s var(--ease), background-color 0.3s var(--ease);
}

.burger span {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}

.burger span:first-child {
  transform: translate(-50%, -4px);
}

.burger span:last-child {
  transform: translate(-50%, 4px);
}

.burger[aria-expanded='true'] span:first-child {
  transform: translate(-50%, 0) rotate(45deg);
}

.burger[aria-expanded='true'] span:last-child {
  transform: translate(-50%, 0) rotate(-45deg);
}

/* --------------------------------------------------------------- Menu mobile */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* `safe` empêche le débordement d'être rogné en haut quand le contenu ne tient
     pas — cas du téléphone en paysage, maintenant que le panneau peut défiler. */
  justify-content: safe center;
  gap: 3rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  background: var(--bg-2);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  overflow-y: auto;
  /* Arrivé en bout de panneau, le geste ne se propage pas au document. */
  overscroll-behavior: contain;
}

.drawer.is-open {
  visibility: visible;
}

/* Le fond ne défile plus derrière le menu ouvert.
   `site.js` posait déjà cet attribut mais aucune règle ne le lisait : le seul
   verrou était `lenis.stop()`, or Lenis est désactivé sur pointeur grossier —
   c'est-à-dire exactement sur les appareils où le menu burger est la seule
   navigation. Le fond y défilait donc librement sous le panneau.
   `overflow` posé sur body se propage à la zone d'affichage tant que html est
   en `visible`, et la position de défilement est conservée. */
body[data-drawer-open] {
  overflow: hidden;
}

.drawer__nav {
  display: grid;
  gap: 0.5rem;
}

.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 500;
  /* Rendu entre 32 et 52 px : -0.04em était le réglage du hero à 91 px. */
  letter-spacing: -0.03em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.drawer__link:hover {
  color: var(--accent);
}

/* Dans le menu mobile, les intitulés sont déjà en pleine couleur : le repère
   passe par le filet qui les sépare, et par leur numéro. */
.drawer__link.is-current {
  border-bottom-color: var(--accent);
}

.drawer__link.is-current .drawer__index {
  color: var(--accent);
}

.drawer__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--dim);
  letter-spacing: 0.1em;
}

.drawer__foot {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.drawer__mail {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
}

/* ------------------------------------------------------- Bouton WhatsApp flottant */

.wa-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 230;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Aucun gap ici : replié, il s'ajouterait à la largeur et donnerait une
     ellipse (66×54) au lieu d'un cercle. L'écart vit dans le label, dont la
     max-width à 0 annule aussi le padding (box-sizing: border-box). */
  gap: 0;
  padding: 1rem;
  border-radius: 999px;
  background: var(--grad);
  color: oklch(0.16 0.03 160);
  font-weight: 600;
  font-size: 0.9375rem;
  /* Sans ça, la hauteur de ligne du label (25px) dépasse l'icône (24px) et
     le bouton replié fait 56×57 au lieu d'un cercle parfait. */
  line-height: 1;
  box-shadow: 0 10px 40px -10px oklch(0.775 0.185 152 / 0.7);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: box-shadow 0.4s var(--ease), scale 0.4s var(--ease);
}

.wa-fab.is-visible {
  pointer-events: auto;
}

.wa-fab__icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.wa-fab__label {
  max-width: 0;
  padding-left: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.55s var(--ease), opacity 0.35s var(--ease), padding-left 0.55s var(--ease);
}

@media (hover: hover) {
  .wa-fab:hover .wa-fab__label {
    max-width: 12rem;
    padding-left: 0.7rem;
    opacity: 1;
  }

  .wa-fab:hover {
    padding-right: 1.4rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════ HERO */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + clamp(2rem, 6vh, 4rem)) 0 clamp(3.5rem, 8vh, 5.5rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Aurores : halos verts qui dérivent lentement.
   PAS de filter: blur(). Un flou de 90px sur un élément de 780px force le
   navigateur à recalculer une convolution sur un tampon hors écran à chaque
   image de l'animation — c'est ce qui faisait chauffer les téléphones. Le
   dégradé radial multi-arrêts ci-dessous produit la même douceur, mais il est
   peint une fois et se contente ensuite d'être déplacé par le compositeur. */
.hero__aurora {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.hero__aurora--1 {
  width: min(72vw, 900px);
  aspect-ratio: 1.3;
  top: -26%;
  left: -16%;
  background: radial-gradient(closest-side circle,
      oklch(0.775 0.185 152 / 0.34) 0%,
      oklch(0.775 0.185 152 / 0.2) 30%,
      oklch(0.775 0.185 152 / 0.08) 52%,
      oklch(0.775 0.185 152 / 0.02) 72%,
      transparent 100%);
}

.hero__aurora--2 {
  width: min(60vw, 740px);
  aspect-ratio: 1;
  top: 18%;
  right: -18%;
  background: radial-gradient(closest-side circle,
      oklch(0.865 0.125 178 / 0.22) 0%,
      oklch(0.865 0.125 178 / 0.12) 32%,
      oklch(0.865 0.125 178 / 0.05) 55%,
      transparent 100%);
}

.hero__aurora--3 {
  width: min(88vw, 1040px);
  aspect-ratio: 1.6;
  left: 50%;
  top: 42%;
  translate: -50% -50%;
  background: radial-gradient(closest-side circle,
      oklch(0.775 0.185 152 / 0.26) 0%,
      oklch(0.775 0.185 152 / 0.15) 32%,
      oklch(0.775 0.185 152 / 0.06) 55%,
      transparent 100%);
}

/* Grille technique, estompée sur les bords */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse 80% 62% at 50% 42%, #000 20%, transparent 78%);
  opacity: 0.5;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.8rem);
  margin: clamp(1rem, 2.5vw, 1.75rem) 0 0;
  max-width: 20ch;
}

.hero__lede {
  margin-top: clamp(1.25rem, 2.5vw, 1.85rem);
  max-width: 56ch;
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3rem);
  color: var(--muted);
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.75rem, 5vw, 4.5rem);
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line);
}

.hero__stat dt {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__stat dd {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  translate: -50% 0;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero__scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scroll-cue 2.4s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scroll-cue {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  40% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1) translateY(46px);
    opacity: 0;
  }
}

/* ════════════════════════════════════════════════════════════════ MARQUEE */

.marquee {
  position: relative;
  padding: 1.5rem 0;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  will-change: transform;
}

.marquee__item {
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee__sep {
  color: var(--accent);
  font-size: 0.6875rem;
}

/* ═══════════════════════════════════════════════════════════════ SERVICES */

.services {
  position: relative;
  padding: var(--section-y) 0;
  background: var(--bg);
}

/* Grille libre : le scroll vertical n'est jamais détourné. Trois colonnes en
   grand écran, deux en tablette, une en mobile — sans point de rupture à
   maintenir, et sans rien à changer si on ajoute ou retire une offre. */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* Cartes de service */

.card--service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  overflow: hidden;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}

.card--service::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 50% 0%, var(--accent-soft), transparent 62%);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
}

.card--service:hover {
  border-color: oklch(0.775 0.185 152 / 0.35);
}

.card--service:hover::before {
  opacity: 1;
}

/* Carte pleine largeur pour l'offre mise en avant. Elle occupe toute la rangée,
   ce qui laisse un compte pair aux six cartes suivantes (deux rangées de trois)
   et donne à l'offre la plus différenciante la place qu'elle mérite. */
.card--feature {
  grid-column: 1 / -1;
  border-color: oklch(0.775 0.185 152 / 0.28);
}

.card--feature::before {
  opacity: 0.6;
}

@media (min-width: 901px) {
  .card--feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }

  .card--feature .card__head {
    grid-column: 1 / -1;
  }

  .card--feature .card__title {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
  }

  .card--feature .card__link {
    grid-column: 1;
    grid-row: 3;
    padding-top: 1.75rem;
  }

  .card--feature .card__text {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0.4rem;
    font-size: 1.0625rem;
  }

  .card--feature .card__tags {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    padding-top: 1.75rem;
  }
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.card__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.card__price {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.card__title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.card__text {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.card__tags li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: oklch(1 0 0 / 0.04);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.3s var(--ease);
}

.card__arrow {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.4s var(--ease);
}

.card__link:hover .card__arrow {
  transform: translateX(5px);
}

/* ══════════════════════════════════════════════════════════════ MANIFESTO */

.manifesto {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}

.manifesto__text {
  font-size: clamp(1.6rem, 0.9rem + 3.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
  max-width: 30ch;
  color: var(--text);
}

/* Les mots naissent éteints puis s'allument au scroll (piloté en JS) */
.manifesto__text .word {
  opacity: 0.16;
}

/* ═══════════════════════════════════════════════════════════════ CHIFFRES */

.stats {
  padding-bottom: var(--section-y);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.stats__item {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--bg-2), transparent);
}

.stats__value {
  font-size: clamp(2.4rem, 1.4rem + 3vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats__label {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ════════════════════════════════════════════════════════════════ MÉTHODE */

.reasons {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}

.reasons__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.reason {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
}

.reason__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.reason__title {
  margin-top: 1.5rem;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
}

.reason__text {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ═════════════════════════════════════════════════════════════════ OFFRES */

.pricing {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  /* Hauteurs égales : les listes de garanties n'ont pas la même longueur, et
     des cartes décalées de 25px sur une grille tarifaire font négligé.
     Le bouton reste collé en bas via .plan .btn { margin-top: auto }. */
  align-items: stretch;
  perspective: 1400px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface), var(--bg-2));
  transform-style: preserve-3d;
  transition: border-color 0.5s var(--ease);
}

.plan:hover {
  border-color: var(--line-strong);
}

/* Carte mise en avant : bordure en dégradé conique qui tourne */
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(170deg, var(--surface-2), var(--bg-2)) padding-box,
    conic-gradient(from var(--angle, 0deg), var(--accent), var(--accent-2), var(--accent)) border-box;
  box-shadow: 0 30px 80px -40px oklch(0.775 0.185 152 / 0.5);
  animation: spin-border 6s linear infinite;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin-border {
  to {
    --angle: 360deg;
  }
}

.plan__badge {
  position: absolute;
  top: 0;
  left: clamp(1.75rem, 3vw, 2.5rem);
  translate: 0 -50%;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--grad);
  color: oklch(0.16 0.03 160);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan__name {
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
}

.plan__from {
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.plan__price {
  margin-top: 0.35rem;
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.plan--featured .plan__price {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan__period {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--dim);
}

.plan__text {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.plan__features {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 2rem;
}

.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.plan__check {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.28em;
  border-radius: 50%;
  background: var(--accent-soft);
  position: relative;
}

.plan__check::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

.pricing__note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: 0.875rem;
  color: var(--dim);
  text-align: center;
}

/* ════════════════════════════════════════════════════════════════════ FAQ */
/* <details>/<summary> natifs : le contenu des réponses est dans le DOM même
   replié, donc lisible par les moteurs et les modèles de langage. */

.faq {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}

.faq__list {
  max-width: 68rem;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  /* Sans ça, une question qui passe à la ligne héritait de l'interlignage du
     corps de texte (1.65) — trop lâche pour un intitulé rendu à 22 px. */
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--ease);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--accent);
}

/* Signe + qui bascule en − à l'ouverture */
.faq__sign {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.3em;
}

.faq__sign::before,
.faq__sign::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--accent);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.faq__sign::before {
  width: 100%;
  height: 1.5px;
}

.faq__sign::after {
  width: 1.5px;
  height: 100%;
}

.faq__item[open] .faq__sign::after {
  transform: scaleY(0);
  opacity: 0;
}

.faq__a {
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 76ch;
}

.faq__a p {
  color: var(--muted);
  font-size: clamp(0.95rem, 0.92rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════ CONTACT */

.contact {
  position: relative;
  padding: clamp(7rem, 18vh, 12rem) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}

.contact__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.contact__title {
  margin-top: 1.5rem;
  font-size: clamp(2.6rem, 1.1rem + 7vw, 6.4rem);
}

.contact__lede {
  margin-top: 1.75rem;
  max-width: 48ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted);
}

.contact__cta {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
}

.contact__alt {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--dim);
}

.contact__alt a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact__alt a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ═════════════════════════════════════════════════════════════════ FOOTER */

.footer {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.footer__brand img {
  width: auto;
  height: 24px;
  opacity: 0.9;
}

.footer__brand p {
  margin-top: 1.25rem;
  max-width: 34ch;
  font-size: 0.9375rem;
  color: var(--dim);
}

.footer__col {
  display: grid;
  /* 0.7rem donnait un pas de 36 px entre deux liens : des cibles de 44 px s'y
     recouvraient, ce qui produit des erreurs de frappe. 1.25rem porte le pas à
     45 px — les zones se touchent sans jamais se chevaucher. */
  gap: 1.25rem;
  align-content: start;
  font-size: 0.9375rem;
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.4rem;
}

.footer__col a {
  color: var(--muted);
  width: fit-content;
  transition: color 0.3s var(--ease);
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__address {
  color: var(--dim);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--dim);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  transition: color 0.3s var(--ease);
}

.footer__legal a:hover {
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════ PAGES DE CONTENU */
/* Mentions légales, confidentialité, paiement, 404, notes internes.
   Même chrome que la home, mise en page sobre : pas de motion lourde, on
   vient y lire. */

.page {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 9vh, 6rem)) 0 var(--section-y);
  overflow: hidden;
}

.page__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page__inner {
  position: relative;
  z-index: 1;
}

.page--center .page__inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.page-title {
  font-size: clamp(2.3rem, 1.3rem + 4vw, 4.4rem);
  margin-top: 1.25rem;
  max-width: 20ch;
}

.page-lede {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 62ch;
  font-size: clamp(1rem, 0.96rem + 0.35vw, 1.15rem);
  color: var(--muted);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.page--center .page-actions {
  justify-content: center;
}

/* Corps de texte long */

.prose {
  max-width: 74ch;
  margin-top: clamp(3rem, 7vw, 5rem);
}

.prose > h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem);
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}

.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

.prose p {
  margin-top: 1rem;
  color: var(--muted);
}

.prose ul {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.prose li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
}

.prose li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.prose a {
  color: var(--accent);
  border-bottom: 1px solid oklch(0.775 0.185 152 / 0.35);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.prose a:hover {
  border-bottom-color: var(--accent);
}

.prose strong {
  color: var(--text);
  font-weight: 500;
}

/* Fil d'Ariane */

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.crumbs a {
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.crumbs a:hover {
  color: var(--accent);
}

/* Panneau : encart de contenu dans une page de doc */

.panel {
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface), var(--bg-2));
}

.panel h3 {
  margin-top: 0;
  font-size: 1.0625rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.panel-grid .panel {
  margin-top: 0;
}

/* Tableaux : toujours défilables sur mobile, jamais de débordement de page */

.table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  background: oklch(1 0 0 / 0.02);
  white-space: nowrap;
}

.data-table td {
  color: var(--muted);
}

.data-table td:first-child {
  color: var(--text);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.tag--high {
  border-color: oklch(0.775 0.185 152 / 0.5);
  background: var(--accent-soft);
  color: var(--accent);
}

.tag--mid {
  border-color: oklch(0.865 0.125 178 / 0.35);
  color: var(--accent-2);
}

/* Carte de paiement */

.pay-card {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface), var(--bg-2));
  max-width: 34rem;
  width: 100%;
}

.pay-card__amount {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.pay-card__note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--dim);
}

/* Code d'erreur du 404 */

.error-code {
  font-size: clamp(5rem, 3rem + 12vw, 12rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ══════════════════════════════════════════════════════════════ RESPONSIVE */

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .header__nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .header__actions .btn--wa span:not(.btn__icon) {
    display: none;
  }

  .header__actions .btn--wa {
    --btn-px: 0.7rem;
  }

  .header__inner {
    justify-content: space-between;
  }
}

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

  /* L'indicateur de scroll chevaucherait les chiffres du hero */
  .hero__scroll {
    display: none;
  }

  /* Les CTA empilés occupent toute la largeur. En ligne, ils se rangeaient à
     gauche avec deux longueurs différentes : le bord droit partait en escalier
     et le pouce devait viser. Pleine largeur, ils forment un bloc et chaque
     cible fait la largeur de l'écran. */
  .hero__cta,
  .contact__cta,
  .drawer__foot {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  /* .contact__inner centre ses enfants sur leur largeur de contenu : sans ça le
     bloc de CTA reste étroit et le bouton ne s'étire pas. */
  .contact__cta {
    width: 100%;
  }

  .hero__cta .btn,
  .contact__cta .btn,
  .drawer__foot .btn {
    width: 100%;
  }

  /* Trois chiffres en ligne, c'est 2 + 1 sur un téléphone : la dernière rangée
     reste orpheline et l'ensemble perd son alignement. En colonne, chaque
     chiffre a sa ligne, séparée d'un filet — symétrique à n'importe quelle
     largeur, et lisible d'un coup d'œil. */
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0.25rem;
  }

  .hero__stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.25rem;
    padding-block: 0.9rem;
  }

  .hero__stat + .hero__stat {
    border-top: 1px solid var(--line);
  }

  .hero__stat dd {
    margin-top: 0;
    text-align: end;
  }

  /* « Un message suffit. » laissait le point tout seul sur une troisième ligne. */
  .contact__title {
    font-size: clamp(2rem, 1rem + 4.6vw, 2.9rem);
  }

  /* L'adresse touchait le bord de l'écran au bout de la question. */
  .contact__alt a {
    display: block;
    width: fit-content;
    margin: 0.4rem auto 0;
  }

  .wa-fab__label {
    display: none;
  }
}

/* ═════════════════════════════════════ ÉTATS INITIAUX (motion piloté en JS) */

/* Masqués seulement si JS est là pour les révéler */
html.js:not(.no-motion) [data-reveal] {
  opacity: 0;
}

html.js:not(.no-motion) [data-split] {
  visibility: hidden;
}

html.js:not(.no-motion) [data-reason] {
  opacity: 0;
}

html.js:not(.no-motion) [data-plan],
html.js:not(.no-motion) [data-service-card] {
  opacity: 0;
}

/* Lignes produites par SplitText : masque de révélation */
.split-line {
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

/* ══════════════════════════════════════════════════ ÉCONOMIE D'ÉNERGIE */
/* Marqué par site.js quand l'élément sort du viewport ou que l'onglet passe en
   arrière-plan. Sans ça, les animations infinies continuent de tourner à 60
   images par seconde sur du contenu invisible — c'est de la batterie et de la
   chaleur pour rien. */

[data-offscreen],
[data-offscreen] *,
[data-offscreen]::before,
[data-offscreen]::after {
  animation-play-state: paused !important;
}

/* Sur mobile, backdrop-filter est réévalué à chaque image de défilement.
   Un fond opaque coûte zéro et se voit à peine sur ce fond sombre. */
@media (hover: none) and (pointer: coarse) {
  .header.is-stuck {
    backdrop-filter: none;
    background: oklch(0.145 0.009 160 / 0.94);
  }

  .btn--ghost {
    backdrop-filter: none;
  }
}

/* ═══════════════════════════════════════════ ACCESSIBILITÉ / MOTION RÉDUITE */

/* Motion réduite ne veut pas dire absence de retour, mais un équivalent plus
   doux et non vestibulaire. La version précédente ramenait *toutes* les
   transitions à 0.01ms : les changements de couleur au survol, la bascule +/−
   de la FAQ et la morphologie burger → croix devenaient des coupures franches,
   alors que ce sont précisément les retours qui disent « ton geste a été reçu ».
   On garde donc les fondus d'opacité et de couleur, raccourcis à 120 ms ; on
   retire les boucles infinies, les déplacements et les dépassements. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
    transition-timing-function: ease-out !important;
  }

  /* Le press répond en luminosité plutôt qu'en enfoncement. */
  .btn:active,
  .wa-fab:active,
  .burger:active,
  .skip-link:active {
    scale: 1;
    filter: brightness(0.86);
  }

  /* Flèches et icônes qui glissent : la couleur suffit à dire l'état. */
  .btn--ghost:hover .btn__icon,
  .card__link:hover .card__arrow,
  .card__link:active .card__arrow {
    transform: none;
  }

  /* Une barre pleine largeur qui se rétracte est le pire déplacement de la
     page. L'en-tête reste simplement en place. */
  .header.is-hidden {
    transform: none;
  }

  .hero__scroll,
  .preloader {
    display: none;
  }

  html.js [data-reveal],
  html.js [data-reason],
  html.js [data-plan],
  html.js [data-service-card] {
    opacity: 1;
  }

  html.js [data-split] {
    visibility: visible;
  }

  .manifesto__text .word {
    opacity: 1;
  }

  .wa-fab {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* ─────────────────────────────────── TRANSPARENCE RÉDUITE */
/* Les surfaces translucides redeviennent opaques : on monte l'opacité du fond
   et on retire le flou, plutôt que de simplement l'atténuer. Même logique que
   l'override mobile plus haut, qui le faisait déjà pour des raisons de perf —
   ici c'est une demande explicite de l'utilisateur. */

@media (prefers-reduced-transparency: reduce) {
  .header.is-stuck {
    background: oklch(0.145 0.009 160 / 0.98);
    backdrop-filter: none;
  }

  .btn--ghost {
    background: var(--surface);
    backdrop-filter: none;
  }

  /* Le grain est une couche translucide plein écran : elle mange un peu de
     contraste sur tout le document. */
  body::after {
    display: none;
  }
}

/* ─────────────────────────────────────── CONTRASTE RENFORCÉ */
/* Fonds quasi opaques et bordures franches, comme le demande la HIG. On agit
   sur les tokens : tout ce qui en dérive suit sans règle supplémentaire. */

@media (prefers-contrast: more) {
  :root {
    --muted: oklch(0.88 0.012 160);
    --dim: oklch(0.78 0.014 160);
    --line: oklch(1 0 0 / 0.28);
    --line-strong: oklch(1 0 0 / 0.48);
  }

  .header.is-stuck {
    background: var(--bg);
    backdrop-filter: none;
  }

  .btn--ghost {
    background: var(--surface);
    backdrop-filter: none;
    border-color: var(--line-strong);
  }

  .card--service,
  .plan,
  .stats__item,
  .panel,
  .pay-card,
  .table-wrap {
    border-color: var(--line-strong);
  }

  body::after {
    display: none;
  }
}
