/* =========================================================================
   OPTIMEZIA v2 — feuille de style unique
   -------------------------------------------------------------------------
   Direction : « une constellation sur du velours noir ». La page est un vide
   où flottent une typographie monumentale et des particules triangulaires.
   Aucun panneau, aucune ombre : la hiérarchie vient de l'échelle, du
   contraste et de l'espace.

   Charte OPTIMEZIA appliquée au modèle :
   - noir / blanc / gris issus du logo + UN accent, l'indigo électrique
     #5b4bff, réservé aux boutons pleins et au logo ;
   - #9b93ff (indigo lumière) tient le rôle de l'ambre du modèle (libellés,
     mises en valeur) sans sortir de la charte. Il est lisible sur le noir
     (7,5:1), là où #5b4bff plafonne à 3,7:1 ;
   - Space Grotesk graisse 400 pour les titres, Inter graisse 200 pour le
     texte courant en 18 px : la hiérarchie vient de la taille, pas du gras.
   ========================================================================= */

/* ---------------------------------------------------------------- polices
   Auto-hébergées (woff2 variables) : aucune requête vers Google Fonts, donc
   aucune adresse IP de visiteur transmise à un tiers. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/SpaceGrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/SpaceGrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Polices de secours recalées sur les métriques des vraies : le texte ne
   saute presque pas quand Space Grotesk et Inter arrivent. */
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial");
  ascent-override: 89.71%;
  descent-override: 26.62%;
  line-gap-override: 0%;
  size-adjust: 109.69%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

/* ----------------------------------------------------------------- jetons */
:root {
  --void: #0a0a0c;          /* fond de page : l'encre de la marque */
  --surface: #141418;       /* seule surface : bandeau cookies */
  --line: #26262b;          /* filets décoratifs */
  --dim: #63636c;           /* filets de champ (3,3:1), mots pas encore « allumés » */
  --bone: #ffffff;          /* texte principal */
  --mist: #c4c4cc;          /* texte secondaire (11:1) */
  --ash: #9a9aa4;           /* navigation inactive, légendes (7:1) */
  --indigo: #5b4bff;        /* accent unique : boutons pleins, logo */
  --indigo-hover: #4436e6;
  --iris: #9b93ff;          /* indigo lumière : libellés, mises en valeur, focus */
  --danger: #ff8a8a;

  --font-display: "Space Grotesk", "Space Grotesk Fallback", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4.2vw, 48px);
  --nav-h: 76px;
  --radius: 24px;
  --section: clamp(104px, 12vw, 176px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
}

/* ------------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--void);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-text);
  font-size: 1.125rem;
  font-weight: 200;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a { color: inherit; }
p { margin: 0; }
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection {
  background: var(--indigo);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 4px;
  border-radius: 4px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

/* -------------------------------------------------------------- typographie
   Échelle du modèle : 113 / 78 / 48 / 42 / 27 / 18 / 14 / 12 px, ramenée
   proportionnellement sur mobile. Graisse 400 partout dans les titres et
   approche resserrée (-0.04em) à partir de 42 px. */
.t-display,
.t-xl,
.t-lg,
.t-md,
.t-sm {
  font-family: var(--font-display);
  font-weight: 400;
}
.t-display {
  font-size: clamp(2.875rem, 0.9rem + 7.9vw, 7.0625rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.t-xl {
  font-size: clamp(2.5rem, 1.05rem + 4.6vw, 4.875rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.t-lg {
  font-size: clamp(2rem, 1.3rem + 1.9vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.t-md {
  font-size: clamp(1.875rem, 1.25rem + 1.6vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.t-sm {
  font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.6875rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lead {
  max-width: 32em;
  color: var(--bone);
  font-size: 1.125rem;
  font-weight: 200;
  line-height: 1.5;
}
.label {
  display: block;
  margin-bottom: 20px;
  color: var(--iris);
  font: 600 0.75rem/1.5 var(--font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hl {
  font-style: normal;
  color: var(--iris);
}
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------- mise en page */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
main,
.footer {
  position: relative;
  z-index: 1;
}
.section {
  position: relative;
  padding-block: var(--section);
}

/* Bloc d'ouverture de section : grand titre à gauche, libellé + texte à
   droite, calés en bas pour une composition asymétrique. */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 36px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(72px, 10vw, 144px);
}
.intro__aside { padding-bottom: 0.4em; }
@media (max-width: 960px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------- boutons et liens
   Un seul bouton plein (pilule indigo) par écran ; les actions secondaires
   sont des liens nus en capitales. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font: 600 0.875rem/1 var(--font-text);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.6s var(--ease);
}
.btn:hover { background: var(--indigo-hover); }
.btn:active { transform: scale(0.97); }
.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.btn--sm {
  min-height: 40px;
  padding: 12px 18px;
  font-size: 0.8125rem;
}
.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border: 0;
  background: none;
  color: var(--bone);
  font: 600 0.875rem/1 var(--font-text);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-decoration: none;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.link svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.6s var(--ease);
}
.link:hover svg { transform: translateX(4px); }
.link--ext:hover svg { transform: translate(3px, -3px); }

.inline-link {
  color: var(--iris);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}
.inline-link:hover { color: var(--bone); }

/* ------------------------------------------------------------------- logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bone);
  text-decoration: none;
}
.logo__word {
  font: 700 1.25rem/1 var(--font-display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.logo__mark {
  width: 20px;
  height: 20px;
  flex: none;
}

/* --------------------------------------------------------------- en-tête
   Transparent sur le noir. Une fois la page défilée, il prend la couleur du
   fond : invisible en tant que bandeau, mais le contenu ne passe plus
   dessous de façon illisible. */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.5s ease;
}
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 32px;
  background: linear-gradient(var(--void), rgba(10, 10, 12, 0));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.nav.is-scrolled { background: var(--void); }
.nav.is-scrolled::after { opacity: 1; }
.menu-open .nav { background: var(--void); }
.menu-open .nav::after { opacity: 0; }
.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}
.nav__links {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  gap: clamp(24px, 3vw, 44px);
  transform: translate(-50%, -50%);
}
.nav__links a {
  position: relative;
  display: block;
  padding: 10px 0;
  color: var(--ash);
  font: 600 0.875rem/1 var(--font-text);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}
/* Point indigo sous la rubrique en cours (le point de carrousel du modèle) */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--indigo);
  transform: scale(0);
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current] { color: var(--bone); }
.nav__links a[aria-current]::after { transform: scale(1); }

/* Le bouton de l'en-tête attend que celui du hero soit sorti de l'écran :
   jamais deux pilules indigo dans la même vue. */
.nav__cta {
  transition: opacity 0.4s ease, transform 0.6s var(--ease), visibility 0s 0.4s, background-color 0.3s ease;
}
.js .nav__cta {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
}
.js.cta-out .nav__cta {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.nav__burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
}
.nav__burger i {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.nav__burger i:nth-of-type(1) { top: 17px; }
.nav__burger i:nth-of-type(2) { top: 26px; }
.menu-open .nav__burger i:nth-of-type(1) {
  top: 21.25px;
  transform: rotate(45deg);
}
.menu-open .nav__burger i:nth-of-type(2) {
  top: 21.25px;
  transform: rotate(-45deg);
}

/* Menu plein écran (mobile et tablette) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: calc(var(--nav-h) + 40px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--void);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s 0.45s;
}
.menu-open { overflow: hidden; }
.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.menu__links a {
  display: block;
  padding: 6px 0;
  color: var(--bone);
  font: 400 clamp(2.5rem, 11vw, 3.5rem)/1.08 var(--font-display);
  letter-spacing: -0.04em;
  text-decoration: none;
}
.menu__links a[aria-current] { color: var(--iris); }
.menu__links li {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
}
.menu-open .menu__links li {
  opacity: 1;
  transform: none;
}
.menu-open .menu__links li:nth-child(2) { transition-delay: 0.05s; }
.menu-open .menu__links li:nth-child(3) { transition-delay: 0.1s; }
.menu-open .menu__links li:nth-child(4) { transition-delay: 0.15s; }
.menu__foot {
  display: grid;
  gap: 28px;
  justify-items: start;
}
.menu__meta {
  color: var(--ash);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}
.menu__meta a { text-decoration: none; }

@media (max-width: 1080px) {
  .nav__links,
  .nav__cta { display: none; }
  .js .nav__burger { display: block; }
  .js .menu { display: flex; }
}

/* ------------------------------------------- champ de particules du fond */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 56px) 0 88px;
  overflow: hidden;
}
.hero__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
}
.hero__visual canvas {
  width: 100%;
  height: 100%;
}
.hero__inner {
  position: relative;
  z-index: 2;
}
/* Le titre français est plus long que celui du modèle : plafonné à 104 px
   pour tenir en trois lignes sans écraser la constellation. */
/* Le H1 regroupe le libellé (ville, métier) et le grand titre : le mot-clé
   « Saint-Étienne » fait partie du titre principal de la page. */
.hero__heading { font-size: 1rem; }
.hero__title {
  display: block;
  max-width: 8.4em;
  font-size: clamp(2.875rem, 0.9rem + 6.8vw, 6.5rem);
}
.hero__lead {
  max-width: 30em;
  margin-top: clamp(28px, 3vw, 40px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 36px;
  margin-top: clamp(36px, 4vw, 48px);
}
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-bottom: 8px;
  }
  .hero__visual {
    position: relative;
    order: 2;
    width: 100%;
    height: min(108vw, 620px);
    margin-top: 8px;
  }
}

/* --------------------------------------------------------------- services
   Vignette de particules épinglée à gauche, qui se recompose au fil des
   prestations listées à droite. */
.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}
.services__visual {
  position: sticky;
  top: calc(var(--nav-h) + 5vh);
  align-self: start;
  height: calc(100vh - var(--nav-h) - 10vh);
  max-height: 720px;
}
.services__visual canvas {
  width: 100%;
  height: 100%;
}
.service {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64vh;
  padding-block: 40px;
}
.service__num {
  color: var(--iris);
  font: 600 0.75rem/1.5 var(--font-text);
  letter-spacing: 0.08em;
}
.service__title {
  margin: 14px 0 20px;
  transition: color 0.6s var(--ease);
}
.service__text {
  max-width: 28em;
  color: var(--mist);
  transition: color 0.6s var(--ease);
}
.js .service:not(.is-active) .service__title,
.js .service:not(.is-active) .service__text { color: var(--ash); }
@media (max-width: 960px) {
  .services {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .services__visual {
    z-index: 2;
    top: var(--nav-h);
    height: 34vh;
    min-height: 220px;
    max-height: 360px;
    margin-inline: calc(var(--gutter) * -1);
    background: var(--void);
  }
  .service { min-height: 56vh; }
}

/* ------------------------------------------------------------- références */
.cases {
  display: grid;
  gap: clamp(88px, 11vw, 160px);
}
.case {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: center;
}
.case:nth-child(even) .case__media { order: 2; }
.case__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  background: var(--surface);
}
.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.case__media:hover img { transform: scale(1.04); }
.case__name {
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem);
}
.case__text {
  max-width: 24em;
  color: var(--mist);
}
.case__link { margin-top: 28px; }
@media (max-width: 860px) {
  .case { grid-template-columns: minmax(0, 1fr); }
  .case:nth-child(even) .case__media { order: 0; }
}

/* ------------------------------------------------------------------- avis
   Invitation à laisser un avis Google : texte à gauche, bulle d'avis en
   particules à droite. */
.reviews {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 7vw, 112px);
  align-items: center;
}
.reviews__lead { margin-top: 32px; }
.reviews__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 36px;
  margin-top: 44px;
}
.reviews__note {
  margin-top: 16px;
  color: var(--ash);
  font-size: 0.875rem;
  font-weight: 400;
}
.reviews__qr {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
}
.reviews__qr img {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 14px;
}
.reviews__qr p {
  max-width: 17em;
  color: var(--ash);
  font-size: 0.9375rem;
  font-weight: 300;
}
.reviews__visual { height: clamp(340px, 36vw, 520px); }
.reviews__visual canvas {
  width: 100%;
  height: 100%;
}
/* Le code QR sert à passer de l'ordinateur au téléphone : inutile ailleurs */
@media (hover: none), (max-width: 960px) {
  .reviews__qr { display: none; }
}
@media (max-width: 960px) {
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .reviews__visual { height: min(84vw, 420px); }
}

/* --------------------------------------------------------------- à propos */
.about__title {
  max-width: 11.5em;
  margin-bottom: clamp(72px, 10vw, 136px);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 72px clamp(40px, 7vw, 112px);
  align-items: start;
}
.about__text p {
  max-width: 32em;
  color: var(--mist);
}
.about__text p:first-child { color: var(--bone); }
.about__text p + p { margin-top: 1.15em; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 32px;
}
.stat__value {
  display: block;
  color: var(--bone);
  font: 400 clamp(3rem, 1.7rem + 3.4vw, 4.875rem)/1 var(--font-display);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.stat__label {
  display: block;
  max-width: 15em;
  margin-top: 14px;
  color: var(--ash);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
}
@media (max-width: 960px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px clamp(40px, 7vw, 112px);
  align-items: start;
}
.contact__title { margin-bottom: 36px; }
.contact__list {
  display: grid;
  gap: 12px;
  margin-top: 48px;
}
.contact__list a,
.contact__list span {
  color: var(--bone);
  font: 400 clamp(1.25rem, 1rem + 0.8vw, 1.6875rem)/1.25 var(--font-display);
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}
.contact__list a:hover { color: var(--iris); }
.contact__list span { color: var(--ash); }
@media (max-width: 960px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
}

/* Formulaire : champs soulignés, sans boîte. */
.form {
  position: relative;
  display: grid;
  gap: 32px;
  padding-top: 8px;
}
.form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  color: var(--ash);
  font: 600 0.75rem/1.5 var(--font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--dim);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.5;
  box-shadow: 0 1px 0 0 transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field textarea {
  min-height: 132px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #73737c;
  opacity: 1;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--iris);
  box-shadow: 0 1px 0 0 var(--iris);
}
.field.is-invalid input,
.field.is-invalid textarea {
  border-bottom-color: var(--danger);
  box-shadow: 0 1px 0 0 var(--danger);
}
.field__error {
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 400;
}
/* Vide, il reste dans l'arbre d'accessibilité (sinon son apparition ne
   serait pas annoncée) : on annule seulement l'espacement de la grille. */
.field__error:empty { margin-top: -8px; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__note {
  color: var(--ash);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
}
.form__note a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.form__status {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.55;
}
.form__status[hidden] { display: none; }
.form__status.is-ok { color: var(--iris); }
.form__status.is-error { color: var(--danger); }
.form__status a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----------------------------------------------------------------- pied */
.footer { padding: var(--section) 0 32px; }
.footer__cta { padding-bottom: clamp(88px, 11vw, 152px); }
.footer__mail {
  display: inline-block;
  color: var(--bone);
  font: 400 clamp(1.75rem, 0.4rem + 6.6vw, 4.875rem)/1.05 var(--font-display);
  letter-spacing: -0.04em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.4s ease;
}
.footer__mail:hover { color: var(--iris); }
.footer__meta {
  margin-top: 20px;
  color: var(--ash);
  font-size: 1rem;
  font-weight: 300;
}
.footer__meta a { text-decoration: none; }
.footer__meta a:hover { color: var(--bone); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
}
.footer__tagline {
  max-width: 26em;
  margin-top: 20px;
  color: var(--ash);
  font-size: 1rem;
  font-weight: 300;
}
.footer__nav-title {
  margin-bottom: 16px;
  color: var(--ash);
  font: 600 0.75rem/1.5 var(--font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer__nav ul {
  display: grid;
  gap: 4px;
}
.footer__nav a {
  display: inline-block;
  padding: 4px 0;
  color: var(--mist);
  font-size: 1rem;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer__nav a:hover { color: var(--bone); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(64px, 8vw, 104px);
  color: var(--ash);
  font-size: 0.875rem;
  font-weight: 400;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
}
/* Liens et bouton « Gérer les cookies » strictement identiques : même
   affichage en bloc, même police, même hauteur. Un lien en ligne et un
   bouton en inline-block ne placent pas leur texte à la même hauteur. */
.footer__legal a,
.footer__legal button {
  display: block;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ash);
  font: 400 0.875rem/1.5 var(--font-text);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer__legal a:hover,
.footer__legal button:hover { color: var(--bone); }
@media (max-width: 700px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------------------------------------- pages légales */
.legal { padding: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) 0 var(--section); }
.legal__back { margin-bottom: clamp(40px, 5vw, 64px); }
.legal__back svg { transform: rotate(180deg); }
.legal__back:hover svg { transform: rotate(180deg) translateX(4px); }
.legal__date {
  margin-top: 20px;
  color: var(--ash);
  font-size: 0.9375rem;
  font-weight: 400;
}
.prose {
  max-width: 44rem;
  margin-top: clamp(56px, 7vw, 88px);
}
.prose h2 {
  margin: 56px 0 16px;
  font-size: clamp(1.5rem, 1.25rem + 0.7vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.prose p,
.prose li {
  color: var(--mist);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
}
.prose p + p { margin-top: 1em; }
.prose ul {
  display: grid;
  gap: 0.5em;
  margin: 1em 0;
  padding-left: 1.25em;
  list-style: disc;
}
.prose li::marker { color: var(--iris); }
.prose strong {
  color: var(--bone);
  font-weight: 500;
}
.prose a {
  color: var(--iris);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--bone); }

/* -------------------------------------------------------------------- 404 */
.nf {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 72px;
  text-align: center;
}
.nf__code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.5vw, 20px);
  font: 400 clamp(7rem, 3rem + 17vw, 15rem)/1 var(--font-display);
  letter-spacing: -0.05em;
}
.nf__mark {
  flex: none;
  width: clamp(104px, 1rem + 19vw, 250px);
  height: clamp(130px, 1.5rem + 23vw, 300px);
}
.nf__mark canvas {
  width: 100%;
  height: 100%;
}
.nf__text {
  max-width: 34em;
  margin: 28px auto 0;
  color: var(--mist);
}
.nf__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 36px;
  margin-top: 44px;
}

/* --------------------------------------------------------- bandeau cookies
   « Tout accepter » et « Tout refuser » ont exactement le même style
   (recommandation CNIL : aucun choix mis en avant). */
.cc {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: min(26rem, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--bone);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.4s ease, transform 0.6s var(--ease), visibility 0s 0.6s;
}
.cc.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.cc__title {
  margin-bottom: 10px;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.cc__text {
  color: var(--ash);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
}
.cc__text a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc__panel {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.cc__panel[hidden] { display: none; }
.cc__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.cc__name {
  color: var(--bone);
  font-size: 0.875rem;
  font-weight: 500;
}
.cc__desc {
  margin-top: 2px;
  color: var(--ash);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
}
.cc__locked {
  flex: none;
  margin-top: 2px;
  color: var(--ash);
  font-size: 0.75rem;
  font-weight: 500;
}
.switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  background: #3a3a42;
  transition: background-color 0.3s ease;
}
.switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.35s var(--ease);
}
.switch[aria-checked="true"] { background: var(--indigo); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.cc__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.cc__btn {
  min-height: 44px;
  padding: 12px 10px;
  border: 1px solid #4a4a52;
  border-radius: 999px;
  background: transparent;
  color: var(--bone);
  font: 600 0.75rem/1.2 var(--font-text);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.cc__btn:hover {
  border-color: var(--bone);
  background: rgba(255, 255, 255, 0.04);
}
.cc__btn--save {
  border-color: var(--indigo);
  background: var(--indigo);
}
.cc__btn--save:hover {
  border-color: var(--indigo-hover);
  background: var(--indigo-hover);
}
.cc__more {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--ash);
  font-size: 0.8125rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}
.cc__more:hover { color: var(--bone); }
/* Mobile : bandeau compact (moins d'un quart de l'écran), il ne recouvre
   plus les boutons du hero. Le titre reste lu par les lecteurs d'écran. */
@media (max-width: 560px) {
  .cc {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 14px 16px 6px;
  }
  .cc__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .cc__text { font-size: 0.8125rem; line-height: 1.45; }
  .cc__actions { margin-top: 12px; gap: 8px; }
  .cc__more { margin-top: 0; padding: 10px 8px; }
}

/* ------------------------------------------------------ zones tactiles
   Sur écran tactile, les liens de texte atteignent 44 px de haut
   (recommandation WCAG 2.5.5) sans changer la mise en page sur ordinateur. */
@media (pointer: coarse) {
  .logo { min-height: 44px; }
  .link { padding: 15px 0; }
  .footer__nav ul { gap: 0; }
  .footer__nav a { padding: 12px 0; }
  .footer__legal a,
  .footer__legal button { padding: 13px 0; }
  .contact__list { gap: 4px; }
  .contact__list a,
  .menu__meta a,
  .footer__meta a {
    display: inline-block;
    padding: 10px 0;
  }
}

/* ------------------------------------------------------------- animations
   Les états « avant » ne s'appliquent qu'avec la classe .js (posée par
   boot.js) : sans JavaScript, tout est visible d'emblée. */

/* Hero : animé en CSS dès le premier rendu. Le titre (élément LCP) ne part
   jamais d'une opacité nulle, sinon Chrome ne le retient pas comme LCP. */
@keyframes rise {
  from { transform: translate3d(0, 40px, 0); }
  to { transform: none; }
}
@keyframes riseFade {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Durées courtes : le titre (élément LCP) et les boutons sont lisibles et
   cliquables presque immédiatement, en particulier sur mobile. */
.js .hero__label { animation: riseFade 0.7s var(--ease) both; }
.js .hero__title { animation: rise 0.7s var(--ease) both; }
.js .hero__lead { animation: riseFade 0.8s var(--ease) 0.1s both; }
.js .hero__actions { animation: riseFade 0.8s var(--ease) 0.12s both; }

/* Apparitions au défilement (IntersectionObserver dans main.js) */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.js .reveal.d1 { transition-delay: 0.1s; }
.js .reveal.d2 { transition-delay: 0.2s; }
.js .reveal.d3 { transition-delay: 0.3s; }

/* Images de références : dévoilées par le bas. Le masque est posé sur
   l'image et non sur le lien observé : IntersectionObserver tient compte du
   clip-path de l'élément observé, qui ne serait alors jamais « visible ». */
.js .reveal--clip {
  opacity: 1;
  transform: none;
  transition: background-color 0.6s ease;
}
/* Pas de cadre gris vide avant le dévoilement */
.js .reveal--clip:not(.is-in) { background-color: transparent; }
.js .reveal--clip > img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.5s var(--ease), transform 1.4s var(--ease);
}
.js .reveal--clip.is-in > img { clip-path: inset(0); }

/* Titres découpés en mots qui montent chacun de sous leur ligne */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0.03em 0.16em;
  margin: -0.12em -0.03em -0.16em;
}
.js [data-split] .w > span {
  display: inline-block;
  transform: translate3d(0, 112%, 0);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--wi, 0) * 45ms);
}
.js [data-split].is-in .w > span { transform: none; }

/* Titre « allumé » mot à mot au fil du défilement */
.js [data-light] .lw {
  color: #7a7a84; /* 4,7:1 : lisible même avant d'être « allumé » */
  transition: color 0.5s ease;
}
.js [data-light] .lw.is-lit { color: var(--bone); }

/* Filet de sécurité : si main.js ne s'exécute pas (erreur réseau), le
   contenu masqué réapparaît seul après 3 s. */
@keyframes failsafe {
  to {
    opacity: 1;
    visibility: visible;
    transform: none;
    clip-path: none;
  }
}
.js:not(.fx-ready) .reveal,
.js:not(.fx-ready) .reveal--clip > img,
.js:not(.fx-ready) .nav__cta { animation: failsafe 0s linear 3s forwards; }

/* Bouton magnétique : le déplacement est lissé par cette transition */
.magnetic { transition: background-color 0.3s ease, transform 0.6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal,
  .js .reveal--clip > img,
  .js [data-split] .w > span {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .js [data-light] .lw { color: var(--bone); }
}
