/* Self-hosted Google Fonts (woff2 latin subset)
 * Téléchargées depuis fonts.gstatic.com via scripts/fetch-fonts.py
 * Aucune requête externe au runtime, conforme Loi 25 Québec.
 */

/* Inter Tight 500 */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-500.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;
}

/* Inter Tight 600 */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-600.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;
}

/* Inter Tight 700 */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-700.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;
}

/* Inter Tight 800 */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-800.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;
}

/* Inter Tight 900 */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-900.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;
}

/* Inter 400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.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;
}

/* Inter 500 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.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;
}

/* Inter 600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.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;
}

/* JetBrains Mono 400 */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-400.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;
}

/* JetBrains Mono 500 */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-500.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;
}


/* ===================================================================
   ATELIER DRAVE — v3
   Direction : ahlum.ca — minimaliste, cinématographique, grotesque
   condensé, palette monochrome + accent cuivre, énormément d'espace.
   =================================================================== */

:root {
  /* Couleurs — palette logo (noir, navy, royal, cyan) sur fond neutre froid */
  --paper: #F4F6FB;
  --paper-2: #E8EBF2;
  --ink: #05060F;
  --ink-soft: #0E1020;
  --navy: #0B1B5C;
  --royal: #1E40FF;
  --cyan: #1FA9FF;
  --gray: #5C6275;
  --gray-soft: #B5BAC7;
  --rule: #D5DAE3;
  --rule-soft: rgba(5,6,15,0.08);
  /* Aliases — l'accent reste mappé à la même variable pour ne pas casser le CSS qui le réfère */
  --copper: #1E40FF;
  --copper-soft: #1FA9FF;

  /* Typo */
  --font-display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* Spacing */
  --gutter: clamp(1.4rem, 3.2vw, 2.8rem);
  --section: clamp(5rem, 10vw, 9rem);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-behavior: auto; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: none;
  color: var(--ink);
}

/* === Loader === */
.loader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 9000;
  display: grid;
  place-items: center;
  transition: opacity .8s var(--ease-out), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark { width: 64px; height: 64px; opacity: 0.95; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* === Layout === */
.container {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); position: relative; }

/* Mobile : sections paddings réduits pour ne pas créer d'espace mort */
@media (max-width: 760px) {
  :root { --section: 4rem; --gutter: 1.2rem; }
  .svc-page-section { padding-block: 3rem; }
  .cta-line { padding-block: 3.5rem; }
}

/* === Mono labels (style ahlum) === */
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 400;
}
.mono--ink { color: var(--ink); }
.mono--gray { color: var(--gray); }
.mono--white { color: rgba(255,255,255,0.85); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}
.kicker::before {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
}

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.4rem;
  /* Default = solid dark (état par défaut historique, conservé pour pages sans hero scrub) */
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: padding .3s var(--ease-out), background .4s ease, backdrop-filter .4s ease, border-color .35s ease;
  pointer-events: none;
}
/* ::after = fog extension sous le nav, activé en mode glass uniquement */
.nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 36px;
  background: linear-gradient(180deg, rgba(5,6,15,0.55) 0%, rgba(5,6,15,0) 100%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity .4s ease;
}
.nav .brand,
.nav .nav__cta,
.nav .nav__burger,
.nav .nav__panel,
.nav .nav__links a { pointer-events: auto; }
/* Couleurs light par défaut sur fond dark */
.nav .nav__links a,
.nav .brand,
.nav .nav__cta { color: #fff; }
.nav .brand__sep { color: rgba(255, 255, 255, 0.4); }
.nav .nav__cta { border-color: rgba(255, 255, 255, 0.3); }
.nav .nav__cta:hover { background: #fff; color: var(--ink); }

/* is-on-dark = full transparent (top du hero, hero sombre suffit, pas de glass) */
.nav.is-on-dark {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav.is-on-dark::after { opacity: 0; }

/* is-on-scrub = liquid glass pendant l'animation de scroll-scrub */
.nav.is-on-scrub {
  background: linear-gradient(180deg, rgba(5,6,15,0.88) 0%, rgba(5,6,15,0.68) 55%, rgba(5,6,15,0.18) 100%);
  border-bottom-color: transparent;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
.nav.is-on-scrub::after { opacity: 1; }

/* is-scrolled = solid dark (page content après le scrub, comportement historique) */
.nav.is-scrolled {
  background: var(--ink);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav.is-scrolled::after { opacity: 0; }

/* Fallback sans backdrop-filter : is-on-scrub redevient solid */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-on-scrub { background: var(--ink); }
  .nav::after { display: none; }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--ink);
}
.brand__b { font-weight: 800; }
.brand__sep {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--gray);
  font-weight: 400;
  text-transform: uppercase;
  margin-left: 0.5rem;
  position: relative;
  top: -0.1rem;
}

.nav__links { display: flex; gap: 2.2rem; align-items: center; font-size: 0.92rem; }
.nav__links a {
  position: relative;
  padding-block: 0.4rem;
  transition: color .25s;
}
.nav__links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
}
.nav__links a:hover { color: var(--copper); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--ink);
  touch-action: manipulation;
  min-height: 36px;
  font-size: 0.85rem;
  letter-spacing: -0.005em;
  font-weight: 500;
  transition: background .3s, color .3s;
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }
.nav__cta::after { content: '→'; }

.nav__burger { display: none; }
.nav__panel { display: none; }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__cta {
    display: inline-flex;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    min-height: 44px;
    align-items: center;
  }
  /* === Burger button === */
  .nav__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: 0.6rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: background .25s ease;
  }
  .nav__burger:hover,
  .nav__burger:focus-visible { background: rgba(255,255,255,0.06); }
  .nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform .35s var(--shrink-ease, cubic-bezier(.6,.05,.3,1)),
                opacity .25s ease;
  }
  /* Burger lines = white toujours (le nav est dark sur toutes les pages : default ink ou transparent par-dessus hero sombre). */
  .nav .nav__burger { color: #fff; }
  /* État ouvert : burger devient X */
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* === Mobile menu panel (overlay) === */
  .nav__panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 90;
    /* 2026-05-31 : fond 100% opaque — l'ancien 0.97 laissait transparaître le hero
       (logo + planètes en orbite) en fantôme derrière les liens du menu. */
    background: #05060F;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    padding: calc(5rem + env(safe-area-inset-top, 0px)) 1.4rem calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2%);
    transition:
      opacity .35s ease,
      transform .4s var(--shrink-ease, cubic-bezier(.6,.05,.3,1)),
      visibility 0s linear .4s;
  }
  .nav.is-open .nav__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      opacity .35s ease,
      transform .4s var(--shrink-ease, cubic-bezier(.6,.05,.3,1)),
      visibility 0s linear 0s;
  }
  .nav__panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem 0.4rem;
    min-height: 56px;
    color: rgba(255,255,255,0.92);
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: color .25s ease, padding .3s ease, background .25s ease;
  }
  .nav__panel a::after {
    content: '→';
    color: rgba(255,255,255,0.35);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    transition: transform .3s ease, color .25s ease;
  }
  .nav__panel a:hover,
  .nav__panel a:focus-visible {
    color: #fff;
    padding-left: 0.9rem;
  }
  .nav__panel a:hover::after { color: var(--cyan, #6aa3ff); transform: translateX(4px); }
  .nav__panel a[aria-current="page"] { color: var(--cyan, #6aa3ff); }
  .nav__panel a[aria-current="page"]::after { color: var(--cyan, #6aa3ff); }
  .nav__panel__group-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    padding: 1.6rem 0.4rem 0.4rem;
    border-bottom: 0;
  }
  .nav__panel__group-label:first-child { padding-top: 0.4rem; }
  .nav__panel__footer {
    margin-top: auto;
    padding-top: 2rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav__panel__footer a {
    border-bottom: 0;
    min-height: 44px;
    padding: 0.5rem 0.4rem;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
  }
  .nav__panel__footer a::after { display: none; }
  /* Lock body scroll quand le menu est ouvert */
  body.has-menu-open { overflow: hidden; touch-action: none; }
}

/* === HERO (vidéo plein écran cinématographique) === */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6rem 0 2.4rem;
}
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  min-width: 1600px;
  object-fit: cover;
  opacity: 0.55;
}
.hero__video::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.15) 35%, rgba(10,10,10,0.55) 80%, rgba(10,10,10,0.92) 100%),
    radial-gradient(80vmax 80vmax at center, transparent 0%, rgba(10,10,10,0.4) 75%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: calc(100vh - 8rem);
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 1rem;
  gap: 2rem;
}
.hero__top .mono { color: rgba(255,255,255,0.65); }
.hero__top-right { text-align: right; line-height: 1.7; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.hero__top-right span { display: block; }

.hero__title {
  font-size: clamp(4rem, 18vw, 18rem);
  letter-spacing: -0.06em;
  line-height: 0.88;
  font-weight: 800;
  color: #fff;
  margin-block: 2rem 1.5rem;
  text-shadow: 0 4px 60px rgba(0,0,0,0.4);
  text-transform: uppercase;
}

/* === Hero variant : solar system (home v5) === */
.hero--solar {
  padding: 6rem 0 3rem;
  min-height: 100vh;
}
.hero--solar .hero__video video {
  opacity: 0.5;
  width: 38vmin; height: 38vmin;
  min-width: 280px; min-height: 280px;
  object-fit: cover;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: contrast(1.08) saturate(1.15) blur(0.4px);
}
.hero--solar .hero__video::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(30vmax 30vmax at center, rgba(3,4,10,0.35) 0%, transparent 30%, transparent 55%, rgba(3,4,10,0.92) 80%);
  z-index: 1;
  pointer-events: none;
}
.hero--solar .hero__video::after {
  background:
    linear-gradient(180deg, rgba(3,4,10,0.55) 0%, transparent 18%, transparent 82%, rgba(3,4,10,0.85) 100%);
  z-index: 1;
}
.hero--solar .hero__video { background: var(--ink); }

/* --- Solar system --- */
.solar {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(540px, 88vmin, 1100px);
  aspect-ratio: 1 / 1;
  z-index: 3;
  /* none sur le wrapper : on ne veut pas que le :hover du grand cercle 88vmin déclenche la pause
     trop tôt. La pause se fait via :has() seulement quand une planète précise (ou son hitbox
     étendu de 14px via ::after) reçoit le pointeur. */
  pointer-events: none;
}
.solar__sun {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 28px var(--cyan), 0 0 80px rgba(31,169,255,0.5);
  pointer-events: none;
}
.solar__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.12);
  animation: solar-spin 80s linear infinite;
  pointer-events: none;
}
/* Pause l'orbite uniquement quand une planète précise reçoit le pointeur ou le focus. */
.solar:has(.solar__planet-inner:hover) .solar__orbit,
.solar:focus-within .solar__orbit { animation-play-state: paused; }

.solar__planet {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform: rotate(var(--angle, 0deg)) translateY(calc(clamp(540px, 88vmin, 1100px) / -2));
  pointer-events: auto;
}
.solar__planet-inner {
  position: absolute;
  top: 50%; left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.1rem 1.4rem;
  border-radius: 18px;
  background: color-mix(in oklab, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  white-space: normal;
  transition: background .35s, border-color .35s, box-shadow .35s;
  will-change: transform;
  min-width: 9.5rem;
  max-width: 13rem;
  box-shadow: 0 8px 24px -8px rgba(3,4,10,0.6);
}
/* Counter-rotate : l'inner tourne de 0 à -360° pour annuler la rotation orbit (qui va de 0 à +360°) */
@keyframes solar-counter {
  from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle, 0deg))); }
  to   { transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle, 0deg) - 360deg)); }
}
.solar__planet-inner {
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle, 0deg)));
  animation: solar-counter 80s linear infinite;
}
.solar:has(.solar__planet-inner:hover) .solar__planet-inner,
.solar:focus-within .solar__planet-inner { animation-play-state: paused; }

/* Hitbox élargie autour de chaque planète pour faciliter le clic.
   Pseudo-element invisible (inset négatif) qui capture le pointeur. */
.solar__planet-inner::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  pointer-events: auto;
}

.solar__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}
.solar__name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  max-width: 18ch;
  text-align: center;
}
.solar__planet:hover .solar__planet-inner,
.solar__planet:focus-visible .solar__planet-inner {
  background: var(--royal);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(30,64,255,0.22), 0 14px 44px -10px rgba(30,64,255,0.7);
  animation-play-state: paused;
  z-index: 5;
}

@keyframes solar-spin {
  to { transform: rotate(360deg); }
}

/* Mobile : système solaire conservé en orbite, taille adaptée */
@media (max-width: 760px) {
  /* Solar reste en orbite centrée, juste plus petit */
  .solar {
    width: min(92vmin, 92vw);
    /* position absolute hérité du desktop, on garde */
  }
  /* Rayon orbite agrandi à 39vmin (2026-05-27 PM) pour que la corde entre 2 planètes
     adjacentes soit > largeur max d'une card → 0 chevauchement. */
  .solar__planet {
    transform: rotate(var(--angle, 0deg)) translateY(-39vmin);
  }
  /* Rotation ralentie sur mobile pour faciliter le tap (140s vs 80s) */
  .solar__orbit { animation-duration: 140s; }
  .solar__planet-inner { animation-duration: 140s; }

  /* Planètes plus compactes pour tenir dans le cercle réduit (2026-05-27 PM : encore
     plus serrées + radius poussé à 39vmin pour 0 chevauchement entre planètes adjacentes) */
  .solar__planet-inner {
    padding: 0.5rem 0.65rem;
    gap: 0.18rem;
    min-width: 4rem;
    max-width: 5.6rem;
    border-radius: 12px;
  }
  .solar__num { font-size: 0.55rem; letter-spacing: 0.16em; }
  .solar__name {
    font-size: 0.66rem;
    line-height: 1.12;
    letter-spacing: -0.005em;
    max-width: 5.2rem;
  }

  /* Hitbox étendu plus généreux sur mobile pour compenser la taille réduite */
  .solar__planet-inner::after { inset: -18px; }

  /* Hero solar mobile : on garde le min-height pour que le solar ait la place de tourner */
  .hero--solar { padding: 5rem 0 3rem; min-height: 100vh; }
  .hero--solar .hero__video video {
    opacity: 0.35;
    width: 55vmin; height: 55vmin;
    min-width: 280px; min-height: 280px;
    top: 50%;
  }
  .hero--solar .hero__video::before {
    background: radial-gradient(30vmax 30vmax at center, rgba(3,4,10,0.35) 0%, transparent 30%, transparent 55%, rgba(3,4,10,0.92) 80%);
  }
  /* Perf mobile : on retire le MP4 (LCP 5.4s → ~2s), on garde le poster + un dégradé radial subtil
     pour préserver l'ambiance sans coût CPU/réseau. */
  .hero--solar .hero__video video { display: none !important; }
  .hero--solar .hero__video {
    background: radial-gradient(ellipse 80% 60% at center, rgba(74,134,255,0.18) 0%, transparent 55%);
  }
  /* hero__inner--solar : reste en position absolute par-dessus le solar
     (comme desktop), pour que slogan + CTA soient au centre du système solaire. */
  .hero__inner--solar {
    padding: 5rem var(--gutter) 3rem;
  }
  .hero__inner--solar .hero__bottom-minimal {
    max-width: 100%;
    gap: 1.4rem;
  }
}

@media (max-width: 480px) {
  .hero--solar .hero__video video {
    width: 70vmin; height: 70vmin;
    opacity: 0.3;
  }
  /* Cards encore plus compactes + radius 37vmin (2026-05-27 PM) pour 0 chevauchement
     sur S25 FE / Pixel 7 / iPhone 13 Pro (~390-414px width). */
  .solar { width: min(88vmin, 88vw); }
  .solar__planet {
    transform: rotate(var(--angle, 0deg)) translateY(-37vmin);
  }
  .solar__planet-inner {
    padding: 0.4rem 0.55rem;
    min-width: 3.7rem;
    max-width: 4.9rem;
    gap: 0.15rem;
  }
  .solar__num { font-size: 0.5rem; }
  .solar__name {
    font-size: 0.6rem;
    line-height: 1.1;
    max-width: 4.6rem;
  }
}

/* Très petits écrans : encore plus compact pour les iPhone SE / Galaxy A */
@media (max-width: 380px) {
  .solar__planet {
    transform: rotate(var(--angle, 0deg)) translateY(-35vmin);
  }
  .solar__planet-inner {
    min-width: 3.4rem;
    max-width: 4.5rem;
  }
  .solar__name { font-size: 0.56rem; max-width: 4.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .solar__orbit, .solar__planet-inner { animation: none !important; }
}

.hero__inner--solar {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem var(--gutter) 3rem;
}
.hero__inner--solar .hero__bottom-minimal {
  pointer-events: auto;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  gap: 1.8rem;
}
@media (max-width: 760px) {
  /* Mobile (2026-05-27 fix) : on retire le H1 "Tout le web." du centre du hero — il
     chevauchait visuellement les planètes en orbite et la phrase est déjà dite par
     les 10 services visibles. Seul le CTA "Démarrer un projet" reste, plaqué en bas.
     2026-05-27 PM : orbit remonté à top:38% + CTA padding-bottom réduit à 1.5rem →
     CTA clairement EN DESSOUS des planètes (plus de chevauchement avec la pill).
     Logo Drave animé inséré au centre de l'orbit (override .solar__sun). */
  .hero--solar {
    min-height: 100svh;
    padding-top: 5rem;
    padding-bottom: 1.5rem;
  }
  .hero__inner--solar {
    align-items: flex-end !important;
    padding: 0 var(--gutter) 1.5rem !important;
  }
  .hero__inner--solar .hero__bottom-minimal {
    /* H1 masqué sur mobile, plus de plaque de fond inutile */
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    gap: 0;
  }
  .hero__inner--solar .hero__bottom-minimal .hero__one-line {
    display: none !important;
  }
  /* Solar orbit recadrée plus haut pour laisser de la place au CTA en bas */
  .hero--solar .solar {
    top: 38% !important;
  }
  /* Logo Drave animé au centre de l'orbit (remplace le mini-dot soleil sur mobile).
     Utilise l'image poster déjà chargée (assets/logo.webp) — pas de coût réseau supplémentaire.
     Pulse subtil pour "animer" sans MP4 (perf mobile préservée, le MP4 reste désactivé). */
  .hero--solar .solar__sun {
    width: 92px;
    height: 92px;
    background: #fff url('../assets/logo.webp') center / 70px 70px no-repeat;
    box-shadow:
      0 0 0 1px rgba(74,134,255,0.32),
      0 12px 36px -8px rgba(31,169,255,0.55),
      0 0 64px rgba(31,169,255,0.22);
    animation: drave-logo-breathe 3.6s ease-in-out infinite;
  }
  @keyframes drave-logo-breathe {
    0%, 100% {
      transform: translate(-50%, -50%) scale(1);
      box-shadow:
        0 0 0 1px rgba(74,134,255,0.32),
        0 12px 36px -8px rgba(31,169,255,0.55),
        0 0 64px rgba(31,169,255,0.22);
    }
    50% {
      transform: translate(-50%, -50%) scale(1.045);
      box-shadow:
        0 0 0 1px rgba(74,134,255,0.55),
        0 18px 50px -8px rgba(31,169,255,0.78),
        0 0 92px rgba(31,169,255,0.42);
    }
  }
  /* Cards shrunk grille verticale : padding-top généreux pour ne pas passer
     sous le header (qui devient solid via JS .is-shrunk + setNavScrolled) */
  .hero--solar.hero--shrunk .solar {
    top: 0 !important;
    padding-top: 5.5rem;
  }
}

/* ============================================================
   2026-05-31 — HERO MOBILE : GRILLE STATIQUE (remplace l'orbite)
   Une orbite rotative de 10 services ne tient pas dans 393px sans
   chevauchement ni clip (cf. tentatives 39→37→35vmin ci-dessus).
   Sur mobile : logo + grille 2 colonnes lisible des 10 services + CTA.
   Le pin ScrollTrigger est désactivé en mobile (js/main.js) → le hero
   scrolle normalement. Desktop conserve l'orbite intacte.
   Rollback : supprimer ce bloc + ré-activer le pin dans main.js.
   ============================================================ */
@media (max-width: 760px) {
  .hero--solar {
    min-height: 100svh;
    justify-content: flex-start;
    padding: calc(5.2rem + env(safe-area-inset-top, 0px)) var(--gutter) 2.4rem;
  }
  /* Conteneur solar : flux normal, colonne (logo puis grille) */
  .hero--solar .solar {
    position: static !important;
    top: auto !important;
    left: auto;
    transform: none !important;
    width: 100%;
    max-width: 30rem;
    margin-inline: auto;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    pointer-events: auto;
    z-index: 3;
  }
  /* Logo au sommet (statique, plus de centrage absolu) */
  .hero--solar .solar__sun {
    position: static;
    transform: none;
    margin: 0;
    width: 70px;
    height: 70px;
    background: #fff url('../assets/logo.webp') center / 52px 52px no-repeat;
    animation: drave-logo-breathe-static 3.6s ease-in-out infinite;
  }
  /* Orbite → grille 2 colonnes */
  .hero--solar .solar__orbit {
    position: static;
    inset: auto;
    width: 100%;
    border: none;
    border-radius: 0;
    animation: none !important;
    display: grid;
    /* minmax(0,1fr) (et pas 1fr = minmax(auto,1fr)) : sinon un mot long
       (« Développement ») élargit la colonne au-delà du conteneur → débordement. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .hero--solar .solar__planet {
    position: static;
    top: auto; left: auto;
    width: auto; height: auto;
    transform: none !important;
  }
  .hero--solar .solar__planet-inner {
    position: static;
    transform: none !important;
    animation: none !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    max-width: none;
    min-height: 60px;
    padding: 0.78rem 0.7rem;
    border-radius: 14px;
  }
  .hero--solar .solar__planet-inner::after { inset: 0; }
  .hero--solar .solar__num { font-size: 0.6rem; opacity: 0.85; flex: 0 0 auto; }
  /* Sélecteur volontairement spécifique (.solar__planet-inner ajouté) pour battre
     `.hero--solar[data-hero-shrink] .solar__name{white-space:nowrap!important}` (~l.2378)
     qui sinon coupe « Développement logiciel » au bord de la carte. */
  .hero--solar[data-hero-shrink] .solar__planet-inner .solar__name {
    font-size: 0.82rem;
    line-height: 1.1;
    text-align: left;
    max-width: none;
    letter-spacing: -0.005em;
    /* flex:1 + min-width:0 + normal → les noms longs wrappent sur 2 lignes. */
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: break-word;
  }
  /* CTA en flux normal sous la grille (plus d'absolute centré).
     min-height:0 annule le calc(100vh-8rem) hérité de .hero__inner qui
     poussait le CTA hors écran. */
  .hero--solar .hero__inner--solar {
    position: static !important;
    inset: auto !important;
    z-index: 3;
    min-height: 0 !important;
    flex: 0 0 auto;
    padding: 0 !important;
    margin-top: 1.4rem;
    align-items: center !important;
    display: flex;
    justify-content: center;
  }
  .hero--solar .hero__inner--solar .hero__bottom-minimal {
    width: auto;
    align-items: center;
    gap: 0;
  }
  /* indicateur scroll inutile en mode grille statique */
  .hero--solar .scroll-indicator { display: none; }
}
@keyframes drave-logo-breathe-static {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 1px rgba(74,134,255,0.32), 0 12px 36px -8px rgba(31,169,255,0.55), 0 0 64px rgba(31,169,255,0.22);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 1px rgba(74,134,255,0.55), 0 18px 50px -8px rgba(31,169,255,0.78), 0 0 92px rgba(31,169,255,0.42);
  }
}

/* === Hero variant : minimaliste (home v4) === */
.hero--minimal { padding-top: 6rem; padding-bottom: 3rem; }
.hero--minimal .hero__video video {
  opacity: 0.55;
  width: 80vmin; height: 80vmin;
  min-width: 620px; min-height: 620px;
  object-fit: cover;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: contrast(1.05) blur(0.5px);
}
.hero--minimal .hero__video::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(45vmax 45vmax at center, transparent 0%, transparent 22%, var(--ink) 65%);
  z-index: 1;
  pointer-events: none;
}
.hero--minimal .hero__video::after {
  background:
    linear-gradient(180deg, rgba(3,4,10,0.55) 0%, transparent 18%, transparent 82%, rgba(3,4,10,0.8) 100%);
  z-index: 1;
}
.hero--minimal .hero__video { background: var(--ink); }
.hero--minimal .hero__inner {
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 9rem);
}
.hero--minimal .hero__top { padding-top: 0.5rem; align-items: flex-start; }
.mono--right { text-align: right; }
.hero__bottom-minimal {
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero__one-line {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 0.94;
  color: #fff;
  font-weight: 800;
  text-transform: none;
  text-shadow: 0 4px 60px rgba(0,0,0,0.8), 0 2px 20px rgba(0,0,0,0.6);
  max-width: 14ch;
}
@media (max-width: 760px) {
  .hero__one-line { font-size: clamp(2.4rem, 11vw, 3.6rem); }
}
.hero__one-line .accent-royal {
  color: var(--cyan);
  font-weight: 800;
  font-style: normal;
  position: relative;
}
.btn--lg {
  padding: 1.3rem 2.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}
@media (max-width: 760px) {
  .hero__bottom-minimal { align-items: stretch; }
  .hero--minimal .hero__top { flex-direction: column; gap: 0.4rem; }
  .mono--right { text-align: left; }
}
.hero__title span.l1, .hero__title span.l2 { display: block; }
.hero__title .accent {
  color: var(--copper-soft);
  font-weight: 300;
  font-style: normal;
}
.hero__title .word { display: inline-block; overflow: hidden; padding-bottom: 0.05em; vertical-align: bottom; }
.hero__title .word > span { display: inline-block; will-change: transform; }

.hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: end;
  padding-top: 2rem;
}
@media (max-width: 760px) { .hero__bottom { grid-template-columns: 1fr; gap: 2rem; } }
.hero__lede {
  max-width: 38ch;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}
.hero__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 760px) { .hero__meta { grid-template-columns: 1fr; gap: 1.2rem; padding-top: 1.5rem; margin-top: 1.5rem; } }
.hero__meta dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.4rem; font-weight: 400; }
.hero__meta dd { font-family: var(--font-sans); font-size: 0.92rem; letter-spacing: 0; color: rgba(255,255,255,0.92); font-weight: 500; }
.hero__scroll {
  display: none;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.5rem;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid currentColor;
  background: transparent;
  color: #fff;
  transition: background .35s, color .35s, border-color .35s;
  touch-action: manipulation;
  min-height: 44px;
}
.btn::after { content: '→'; transition: transform .3s; }
.btn:hover::after { transform: translateX(4px); }
.btn--solid { background: #fff; color: var(--ink); border-color: #fff; }
.btn--solid:hover { background: var(--copper); color: #fff; border-color: var(--copper); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--dark:hover { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn--outline-ink { color: var(--ink); border-color: var(--ink); }
.btn--outline-ink:hover { background: var(--ink); color: var(--paper); }

/* === Section title (style ahlum : kicker mono + titre massif gauche + lede droite) === */
.h-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: end;
  padding-bottom: 3.5rem;
}
@media (max-width: 880px) { .h-row { grid-template-columns: 1fr; gap: 1.2rem; } }
.h-row__title {
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 0.88;
}
.h-row__title .accent { color: var(--copper); font-weight: 300; }
.h-row__title small { display: block; font-family: var(--font-mono); font-size: 0.18em; font-weight: 400; opacity: 0.5; margin-top: 1.2rem; letter-spacing: 0.18em; text-transform: uppercase; }
.h-row__lede {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  color: var(--gray);
  max-width: 50ch;
  line-height: 1.6;
}

/* === Grid 2x2 indexée (style ahlum) === */
.idx {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.idx > * {
  border-bottom: 1px solid var(--rule);
  padding: 3rem 0 3rem 0;
  padding-right: 2rem;
}
.idx > *:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 3rem; padding-left: 0; }
.idx > *:nth-child(even) { padding-left: 3rem; }
@media (max-width: 760px) {
  .idx { grid-template-columns: 1fr; }
  .idx > * { border-right: 0 !important; padding: 2.4rem 0 !important; }
}
.idx__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.4rem;
}
.idx__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  line-height: 0.94;
  margin-bottom: 1.2rem;
}
.idx__desc {
  color: var(--gray);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 46ch;
}
.idx__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .3s;
}
.idx__link::after { content: '→'; transition: transform .3s; }
.idx > a.idx__cell:hover .idx__link { color: var(--copper); }
.idx > a.idx__cell:hover .idx__link::after { transform: translateX(4px); }

a.idx__cell { color: inherit; transition: opacity .3s; }
a.idx__cell:hover { opacity: 0.92; }

/* === Marquee ticker noir (entre sections) === */
.ticker {
  background: var(--ink);
  color: var(--paper);
  padding-block: 1.6rem;
  overflow: hidden;
  border-block: 1px solid var(--ink);
}
.ticker__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 300;
  align-items: center;
}
.ticker__track > span { display: inline-flex; align-items: center; gap: 3rem; }
.ticker__track .ticker__sep { font-size: 0.7em; color: var(--copper); }
.ticker__track em { font-style: italic; font-weight: 300; opacity: 0.8; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* === Travaux : grille édito ahlum-style === */
.works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
@media (max-width: 760px) { .works { grid-template-columns: 1fr; } }
.work {
  display: block;
  color: var(--ink);
  position: relative;
}
.work__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 1.4rem;
  background: var(--ink);
}
.work__img-bg {
  position: absolute; inset: 0;
  transition: transform 1.2s var(--ease-out);
}
.work:hover .work__img-bg { transform: scale(1.04); }
.work__num {
  position: absolute;
  top: 1.4rem; left: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  z-index: 2;
}
.work__arrow {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  z-index: 2;
  transition: background .35s, color .35s, transform .4s var(--ease-out);
}
.work:hover .work__arrow { background: var(--copper); border-color: var(--copper); transform: rotate(45deg); }

.work__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.4rem;
}
.work__title {
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  letter-spacing: -0.005em;
  line-height: 1;
}
.work__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: right;
}
.work__meta span { display: block; }

/* Backgrounds gradient subtils (placeholders projets) — palette logo */
.bg-1 { background: linear-gradient(135deg, #05060F 0%, #0B1B5C 100%); }
.bg-2 { background: linear-gradient(160deg, #05060F 0%, #1E40FF 100%); }
.bg-3 { background: linear-gradient(135deg, #0B1B5C 0%, #1FA9FF 100%); }
.bg-4 { background: linear-gradient(135deg, #0B1B5C 0%, #1E40FF 60%, #1FA9FF 100%); }
.bg-5 { background: linear-gradient(160deg, #1FA9FF 0%, #1E40FF 100%); }
.bg-6 { background: linear-gradient(135deg, #05060F 0%, #1FA9FF 100%); }
.bg-7 { background: linear-gradient(160deg, #05060F 0%, #0B1B5C 60%, #5C6275 100%); }

/* === Big quote (sobriété ahlum) === */
.q {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 4rem);
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 22ch;
}
.q .accent { color: var(--copper); font-weight: 300; }
.q__src {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 2.5rem;
}
.q__src::before { content: ''; width: 28px; height: 1px; background: var(--gray); }

/* === CTA bandeau full-bleed === */
.cta-strip {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative;
  overflow: hidden;
}
.cta-strip__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
}
@media (max-width: 760px) { .cta-strip__inner { grid-template-columns: 1fr; gap: 2.5rem; } }
.cta-strip__title {
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  color: #fff;
}
.cta-strip__title .accent { color: var(--copper-soft); font-weight: 300; }
.cta-strip__sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 1.5rem;
  font-weight: 400;
}

/* === Footer === */
.footer {
  background: var(--paper);
  color: var(--ink);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--rule);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.footer__brand p { color: var(--gray); max-width: 30ch; font-size: 0.95rem; line-height: 1.55; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.3rem;
  font-weight: 400;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.92rem; }
.footer__col a { transition: color .3s; }
.footer__col a:hover { color: var(--copper); }

.footer__big {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 18rem);
  letter-spacing: -0.025em;
  line-height: 0.85;
  white-space: nowrap;
  margin: 4rem 0 2.5rem;
  color: var(--ink);
  font-weight: 300;
  pointer-events: none;
  user-select: none;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .footer__big { font-size: clamp(3.5rem, 22vw, 8rem); margin: 2rem 0 1.5rem; }
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gray);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 1rem;
}

/* === PAGE HEAD (sub-pages) === */
.page-head {
  padding-top: 8rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 760px) {
  /* padding-top: nav fixed = 90px ≈ 5.6rem. On garde 8rem pour de l'air. */
  .page-head { padding-top: 8rem; padding-bottom: 2.5rem; }
  .page-head__title { font-size: clamp(2.4rem, 11vw, 4.5rem); }
  .page-head__lede { margin-top: 1.5rem; font-size: 1rem; }
}
.page-head .kicker { margin-bottom: 1.5rem; }
.page-head__title {
  font-size: clamp(3rem, 9vw, 9rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
  font-weight: 800;
  text-transform: uppercase;
}
.page-head__title .accent { color: var(--copper); font-weight: 300; }
.page-head__lede {
  margin-top: 2.2rem;
  max-width: 60ch;
  color: var(--gray);
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.6;
}

/* === Service detail rows (style ahlum) === */
.svc {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  padding-block: 4rem;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (max-width: 880px) { .svc { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.5rem; } }
.svc__num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper); margin-bottom: 1rem; }
.svc__title { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.015em; line-height: 0.94; margin-bottom: 1.2rem; }
@media (max-width: 760px) {
  .svc__title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .svc__desc { font-size: 0.97rem; }
}
.svc__desc { color: var(--gray); margin-bottom: 1.5rem; max-width: 50ch; line-height: 1.6; }
.svc__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem 1.5rem; font-size: 0.94rem; padding-top: 0.5rem; }
@media (max-width: 560px) { .svc__list { grid-template-columns: 1fr; } }
.svc__list li {
  display: flex; align-items: baseline; gap: 0.7rem;
  color: var(--ink-soft);
}
.svc__list li::before {
  content: ''; width: 5px; height: 5px;
  background: var(--copper); border-radius: 50%; flex-shrink: 0;
  transform: translateY(-2px);
}
.svc__price {
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink); margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

/* === Steps (approche) === */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 2rem;
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: padding .4s var(--ease-out);
  position: relative;
}
@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.8rem 0; }
  .step__title { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }
  .step__desc { font-size: 0.95rem; }
  .step__plus { display: none; }
}
.step:first-child { border-top: 1px solid var(--rule); }
.step:hover { padding-left: 1.2rem; }
.step::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--copper);
  transition: width .55s var(--ease-out);
}
.step:hover::before { width: 0.8rem; }
.step__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--copper);
  padding-top: 0.4rem;
}
.step__title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -0.015em; line-height: 0.94; }
.step__desc { margin-top: 0.7rem; color: var(--gray); max-width: 58ch; font-size: 0.98rem; line-height: 1.6; }
.step__plus {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--rule);
  align-self: start;
  padding-top: 0.4rem;
  transition: color .35s, transform .35s var(--ease-out);
}
.step:hover .step__plus { color: var(--copper); transform: rotate(45deg); }
@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; gap: 0.6rem; }
  .step__plus { display: none; }
}

/* === Form === */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  min-width: 0;
}
/* Mobile : on bascule en flex column (plus robuste que @media + grid-template-columns).
   Voir bug agent-browser 2026-05-13 où @media grid-template-columns ne se ré-appliquait pas. */
@media (max-width: 660px) {
  .form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.3rem;
  }
  .form > * { width: 100%; }
}
.field { display: flex; flex-direction: column; gap: 0.45rem; position: relative; min-width: 0; }
.field--full { grid-column: span 2; }
.field input, .field textarea, .field select { max-width: 100%; }
.field label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper); }
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.95rem 0;
  font: inherit;
  font-size: 16px; /* prevent iOS zoom on focus */
  color: var(--ink);
  transition: border-color .3s;
  min-height: 44px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--copper);
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.field--check {
  flex-direction: row; align-items: center; gap: 0.7rem;
  grid-column: span 2;
}
.field--check input { width: 16px; height: 16px; accent-color: var(--copper); }
.field--check label {
  font-family: var(--font-sans); font-size: 0.86rem; letter-spacing: 0; text-transform: none; color: var(--gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr minmax(0, 1.6fr);
  gap: 4rem;
}
.contact-grid > * { min-width: 0; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info__block h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper); margin-bottom: 0.6rem; font-weight: 400; }
.contact-info__block p, .contact-info__block a { font-size: 1.1rem; font-family: var(--font-display); letter-spacing: -0.005em; text-transform: uppercase; display: block; transition: color .3s; min-height: 32px; }
.contact-info__block a { padding-block: 0.3rem; min-height: 44px; display: inline-flex; align-items: center; }
.contact-info__block a:hover { color: var(--copper); }

/* === Hero scroll-scrub (canvas + frames JPEG, pattern Apple) === */
.hero-scrub {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--ink);
  overflow: hidden;
}
.hero-scrub__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-scrub__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrub__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) 4rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3,4,10,0.35) 0%, transparent 25%, transparent 60%, rgba(3,4,10,0.55) 100%);
}
.hero-scrub__inner {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  pointer-events: auto;
}
.hero-scrub__kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.hero-scrub__kicker::before {
  content: '';
  width: 28px; height: 1px;
  background: rgba(255,255,255,0.7);
}
.hero-scrub__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 9rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  max-width: 14ch;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.hero-scrub__title .accent {
  background: linear-gradient(110deg, var(--cyan), var(--royal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 300;
}
.hero-scrub__sub {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  max-width: 50ch;
  line-height: 1.6;
}

/* === Mobile : hero-scrub simplifié — pas de canvas/JPEG bizarres ===
   Sur desktop, le canvas + frames JPEG montrent la transformation old→modern site
   en scroll-scrub. Sur mobile portrait c'est mal cadré (frames landscape) + montre
   des screenshots de sites "moches" comme premier frame. On remplace par un hero
   sombre minimal : titre + sous-titre + dégradé bleu profond. */
@media (max-width: 760px) {
  .hero-scrub {
    height: auto;
    min-height: 70svh;
    background: linear-gradient(165deg, #03040A 0%, #0a1230 55%, #1442a8 100%);
    overflow: hidden;
  }
  .hero-scrub::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 50% at 20% 20%, rgba(74,134,255,0.18), transparent 60%),
      radial-gradient(ellipse 60% 40% at 80% 80%, rgba(106,163,255,0.12), transparent 60%);
    pointer-events: none;
  }
  .hero-scrub__canvas,
  .hero-scrub__fallback { display: none !important; }
  .hero-scrub__overlay {
    position: relative;
    padding: 7rem var(--gutter) 4rem;
    background: transparent;
    min-height: inherit;
  }
  .hero-scrub__inner { padding-bottom: 1rem; }
  .hero-scrub__title {
    font-size: clamp(2.6rem, 12vw, 4.5rem);
    line-height: 0.95;
    max-width: 14ch;
  }
  .hero-scrub__sub {
    margin-top: 1.4rem;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.82);
  }
}

/* Service page body sections (sous le hero) */
.svc-page-section { padding-block: clamp(5rem, 10vw, 9rem); }
.svc-page-section .h-row__title { color: var(--ink); }


.section--list { padding-block: clamp(6rem, 14vw, 12rem); }
.svc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.svc-list li { border-bottom: 1px solid var(--rule); }
.svc-list__item {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: clamp(1.6rem, 3vw, 2.6rem) 0;
  color: var(--ink);
  transition: padding .5s var(--ease-out), color .35s;
  position: relative;
}
.svc-list__item:hover { padding-left: 1.4rem; color: var(--royal); }
.svc-list__item::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  height: 1px; width: 0;
  background: var(--royal);
  transition: width .55s var(--ease-out);
}
.svc-list__item:hover::before { width: 1rem; }
.svc-list__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gray);
  font-weight: 400;
}
.svc-list__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1;
  font-weight: 700;
  text-transform: none;
}
.svc-list__arrow {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--gray);
  transition: transform .35s var(--ease-out), color .35s;
}
.svc-list__item:hover .svc-list__arrow { transform: translateX(8px); color: var(--royal); }
@media (max-width: 660px) {
  .svc-list__item { grid-template-columns: 3rem 1fr auto; gap: 1rem; }
}

/* === CTA line (single mega link) === */
.cta-line {
  padding-block: clamp(5rem, 12vw, 10rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cta-line__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  color: var(--ink);
  transition: color .35s;
  flex-wrap: wrap;
  min-height: 44px;
  touch-action: manipulation;
}
@media (max-width: 760px) {
  .cta-line__link { gap: 0.6rem; align-items: center; }
  .cta-line__text { font-size: clamp(1.7rem, 7.2vw, 2.8rem); line-height: 1.05; }
  .cta-line__arrow { font-size: clamp(1.5rem, 6vw, 2.4rem); }
}
.cta-line__link:hover { color: var(--royal); }
.cta-line__text {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-transform: none;
}
.cta-line__arrow {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1;
  transition: transform .5s var(--ease-out);
}
.cta-line__link:hover .cta-line__arrow { transform: translateX(20px); }

/* === Footer variant minimal (home) === */
.footer--minimal {
  padding: 4rem 0 1.5rem;
  border-top: 1px solid var(--rule);
}
.footer__nav {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
@media (max-width: 760px) {
  .footer__nav {
    gap: 0;
    font-size: 0.72rem;
    flex-direction: column;
    padding-bottom: 1rem;
  }
  .footer__nav a {
    padding: 0.85rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .footer__nav a:last-child { border-bottom: 0; }
  .footer--minimal .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.78rem;
  }
  .footer--minimal .footer__bottom a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
.footer__nav a {
  transition: color .3s;
  position: relative;
  padding-bottom: 2px;
}
.footer__nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--royal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.footer__nav a:hover { color: var(--royal); }
.footer__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer--minimal .footer__bottom {
  border-top: 0;
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer--minimal a { transition: color .3s; }
.footer--minimal a:hover { color: var(--royal); }

/* === Reveals === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

::selection { background: var(--royal); color: #fff; }
::-moz-selection { background: var(--royal); color: #fff; }

/* Accessibility — focus visible */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible, .nav__cta:focus-visible { outline-offset: 4px; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--royal));
  z-index: 200;
  transform-origin: left;
  will-change: transform;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  z-index: 9999;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   PAGE PROJETS — Project cards avec mockup CSS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
  margin-top: 2rem;
}
@media (max-width: 760px) {
  .projects-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
.project-card {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  text-decoration: none;
  color: inherit;
}
.project-mockup {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0c18;
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 16 / 10;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.project-card:hover .project-mockup {
  transform: translateY(-4px);
  border-color: rgba(80, 145, 255, 0.35);
}
.project-mockup__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.project-mockup__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.project-mockup__url {
  margin-left: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-mockup__canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.4rem 1.6rem;
  text-align: center;
  background: var(--mockup-bg, linear-gradient(135deg, #0a1230 0%, #0c1a4e 50%, #1a4ed8 100%));
  position: relative;
  min-height: calc(100% - 38px);
}
.project-mockup__canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(80,145,255,0.18), transparent 70%);
  pointer-events: none;
}
.project-mockup__name {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.project-mockup__tagline {
  margin-top: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  position: relative;
  z-index: 1;
}
.project-card__meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(3, 4, 10, 0.6);
}
.project-card__meta span {
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(3, 4, 10, 0.15);
  border-radius: 999px;
}
.project-card__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: #03040A;
  line-height: 1.2;
  margin: 0;
}
.project-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(3, 4, 10, 0.78);
  max-width: 52ch;
}
.project-card__results {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.project-card__results li {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: rgba(3, 4, 10, 0.82);
  padding-left: 1.2rem;
  position: relative;
}
.project-card__results li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #1442a8;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* Variations de mockup gradients (palette logo only) */
.project-mockup--auto    { --mockup-bg: linear-gradient(135deg, #050818 0%, #0c1a4e 50%, #1e58e8 100%); }
.project-mockup--galaxy  { --mockup-bg: linear-gradient(135deg, #03040a 0%, #1a1f5c 45%, #2b4be0 100%); }
.project-mockup--earth   { --mockup-bg: linear-gradient(135deg, #06080f 0%, #0a162e 50%, #1442a8 100%); }
.project-mockup--water   { --mockup-bg: linear-gradient(135deg, #04081a 0%, #062163 45%, #2877ff 100%); }
.project-mockup--steel   { --mockup-bg: linear-gradient(135deg, #0a0c12 0%, #131835 50%, #2a4dc0 100%); }
.project-mockup--air     { --mockup-bg: linear-gradient(135deg, #06080f 0%, #0e1a40 50%, #4a86ff 100%); }
.project-mockup--photo {
  padding: 0 !important;
  background: #03040A !important;
}
.project-mockup--photo::before { display: none; }
.project-mockup--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ============================================================
   A11Y — Focus states visibles (WCAG 2.4.7)
   ============================================================ */
:focus-visible {
  outline: 2px solid #4a86ff;
  outline-offset: 4px;
  border-radius: 4px;
}
.solar__planet:focus-visible {
  outline: 2px solid #4a86ff;
  outline-offset: 8px;
  border-radius: 50%;
}
.solar__planet:focus-visible .solar__planet-inner {
  background-color: rgba(74, 134, 255, 0.08);
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 0.8rem 1.4rem;
  background: #03040A;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 6px;
  transition: top 0.2s;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
}

/* ============================================================
   STICKY CTA MOBILE — Pages service
   ============================================================ */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 200;
    background: #03040A;
    color: #fff;
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(74, 134, 255, 0.25);
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    min-height: 48px;
  }
  .sticky-cta.is-visible { transform: translateY(0); opacity: 1; }
  .sticky-cta__text { letter-spacing: -0.01em; }
  .sticky-cta__arrow {
    font-family: 'JetBrains Mono', monospace;
    color: #4a86ff;
    font-size: 1.1rem;
    transition: transform 0.3s;
  }
  .sticky-cta:active .sticky-cta__arrow { transform: translateX(4px); }
  body.has-sticky-cta { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   FORM STATUS feedback (POST /api/contact)
   ============================================================ */
.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--success {
  background: rgba(34, 178, 110, 0.1);
  border: 1px solid rgba(34, 178, 110, 0.35);
  color: #0a6840;
}
.form-status--error {
  background: rgba(220, 60, 60, 0.08);
  border: 1px solid rgba(220, 60, 60, 0.3);
  color: #8a1a1a;
}

/* Honeypot — masqué visuellement et au screen reader */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   PHOTO Simon · a-propos.html
   ============================================================ */
.simon-portrait {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
  max-width: 320px;
}
.simon-portrait__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1230 0%, #1442a8 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.simon-portrait__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.simon-portrait__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}
.simon-portrait__monogram {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.simon-portrait__caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.8rem;
}
.simon-portrait__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(3, 4, 10, 0.5);
}

/* ============================================================
   HOME HERO SHRINK (test feature, contrôlé par data-hero-shrink)
   Transitions CSS smooth quand .hero--shrunk activé.
   Durée 1.4s avec easing Apple (out-expo) pour fluidité.
   ============================================================ */
:root {
  --shrink-ease: cubic-bezier(0.19, 1, 0.22, 1);
  --shrink-duration: 1.4s;
}

/* Transitions de base (appliquées dès que data-hero-shrink est présent) */
.hero--solar[data-hero-shrink] .hero__video video,
.hero--solar[data-hero-shrink] .solar,
.hero--solar[data-hero-shrink] .solar__orbit,
.hero--solar[data-hero-shrink] .solar__planet,
.hero--solar[data-hero-shrink] .solar__planet-inner,
.hero--solar[data-hero-shrink] .solar__sun,
.hero--solar[data-hero-shrink] .hero__bottom-minimal {
  transition:
    transform var(--shrink-duration) var(--shrink-ease),
    width var(--shrink-duration) var(--shrink-ease),
    height var(--shrink-duration) var(--shrink-ease),
    top var(--shrink-duration) var(--shrink-ease),
    left var(--shrink-duration) var(--shrink-ease),
    border-radius var(--shrink-duration) var(--shrink-ease),
    background var(--shrink-duration) var(--shrink-ease),
    padding var(--shrink-duration) var(--shrink-ease),
    font-size 0.7s var(--shrink-ease),
    opacity 0.9s ease;
}

/* IMPORTANT : forcer nowrap sur les noms des services pour éviter le rewrap saccadé
   pendant la transition orbit → grille. Augmenter max-width pour accommoder. */
.hero--solar[data-hero-shrink] .solar__name {
  white-space: nowrap !important;
  transition: font-size 0.7s var(--shrink-ease);
}
.hero--solar[data-hero-shrink] .solar__planet-inner {
  max-width: 15rem;
  min-width: 9rem;
}

/* État shrunk */
.hero.hero--shrunk {
  min-height: 100vh;
}

/* Logo vidéo (centre du hero, frame 0 du MP4) : fade out à l'état shrunk.
   Le logo qui reste visible dans le header est .brand__logo (plus robuste, attaché au nav fixed). */
.hero--shrunk .hero__video video {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0.3) !important;
}
/* Logo PNG dans le brand du header — visible par défaut sur toutes les pages.
   Sur la home (data-hero-shrink), il est caché à l'état initial et s'affiche au scroll. */
.brand {
  align-items: center;
  gap: 12px;
  transition: gap 0.7s var(--shrink-ease);
}
.brand__logo {
  width: 44px;
  height: 44px;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    width 0.7s var(--shrink-ease),
    opacity 0.6s var(--shrink-ease);
  flex-shrink: 0;
}
.brand__logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  object-fit: contain;
  display: block;
  /* Double shadow + ring subtle pour démarquer le cercle blanc du fond paper */
  box-shadow:
    0 0 0 1px rgba(3, 4, 10, 0.08),
    0 8px 22px -6px rgba(3, 4, 10, 0.35),
    0 2px 6px -2px rgba(3, 4, 10, 0.2);
}

/* Sur la HOME (avec data-hero-shrink) : logo caché à l'état initial, s'affiche au scroll */
body:has(.hero--solar[data-hero-shrink]) .brand {
  gap: 0;
}
body:has(.hero--solar[data-hero-shrink]) .brand__logo {
  width: 0;
  opacity: 0;
}
body:has(.hero--solar[data-hero-shrink]) .nav.is-shrunk .brand {
  gap: 12px;
}
body:has(.hero--solar[data-hero-shrink]) .nav.is-shrunk .brand__logo {
  width: 44px;
  opacity: 1;
}

/* Slogan + CTA d'origine : fade vers le haut */
.hero--solar[data-hero-shrink] .hero__bottom-minimal {
  transition: opacity 1.1s var(--shrink-ease), transform 1.4s var(--shrink-ease);
}
.hero--shrunk .hero__bottom-minimal {
  opacity: 0 !important;
  transform: translateY(-50px) !important;
  pointer-events: none;
}

/* Soleil disparait */
.hero--shrunk .solar__sun {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0) !important;
}

/* Orbite : on tue la rotation et la fait disparaître */
.hero--shrunk .solar__orbit {
  animation: none !important;
  transform: none !important;
  border-color: transparent !important;
  pointer-events: auto;
}

/* Solar wrapper : prend toute la moitié gauche du hero, padding généreux */
.hero--shrunk .solar {
  width: 50vw !important;
  height: 78vh !important;
  aspect-ratio: auto !important;
  top: 50% !important;
  left: 0 !important;
  transform: translateY(-50%) !important;
  padding: 0 2vw 0 4vw;
  pointer-events: auto;
  display: flex !important;
  align-items: center !important;
}

/* Planètes : grid 2 colonnes × 4 lignes, cards plus gros */
.hero--shrunk .solar__orbit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  position: relative;
  width: 100%;
  max-width: none;
  inset: auto;
  height: auto;
}
.hero--shrunk .solar__planet {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
}
.hero--shrunk .solar__planet-inner {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  animation: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  gap: 1rem !important;
  padding: 1.3rem 1.5rem !important;
  background: linear-gradient(135deg, rgba(5,6,15,0.62) 0%, rgba(11,27,92,0.45) 55%, rgba(30,64,255,0.28) 100%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.22) !important;
  border-radius: 14px !important;
  text-align: left !important;
  align-items: center !important;
  min-height: 70px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.38),
    inset 0 -1px 0 rgba(5,6,15,0.25),
    0 14px 36px -10px rgba(5,6,15,0.55),
    0 0 0 1px rgba(106,163,255,0.08) !important;
  isolation: isolate;
  overflow: hidden;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--shrink-ease), box-shadow 0.4s !important;
}
.hero--shrunk .solar__planet:hover .solar__planet-inner {
  background: linear-gradient(135deg, rgba(30,64,255,0.78) 0%, rgba(20,66,168,0.62) 55%, rgba(31,169,255,0.5) 100%) !important;
  border-color: rgba(106,163,255,0.55) !important;
  transform: translateX(8px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(5,6,15,0.2),
    0 22px 50px -10px rgba(30,64,255,0.65),
    0 0 0 1px rgba(106,163,255,0.4),
    0 0 32px rgba(30,64,255,0.32) !important;
}
.hero--shrunk .solar__planet-inner .solar__num {
  flex-shrink: 0;
  font-size: 0.78rem !important;
  letter-spacing: 0.22em !important;
}
.hero--shrunk .solar__planet-inner .solar__name {
  text-align: left !important;
  max-width: none !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.15 !important;
}
.hero--shrunk .solar__planet-inner::after { display: none; }

/* Indicateur "Scroll" : ligne verticale avec dot qui glisse + label */
.scroll-indicator {
  position: fixed;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  pointer-events: none;
  transition: opacity 0.8s var(--shrink-ease), transform 0.8s var(--shrink-ease);
}
.scroll-indicator__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.scroll-indicator__line {
  position: relative;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(74,134,255,0.6) 100%);
  overflow: hidden;
}
.scroll-indicator__dot {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-bright, #6aa3ff);
  box-shadow: 0 0 14px var(--cyan-bright, #6aa3ff);
  transform: translateX(-50%);
  animation: scroll-dot-pulse 1.8s ease-in-out infinite;
}
.scroll-indicator__line::before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 16px;
  background: linear-gradient(180deg, transparent 0%, var(--cyan-bright, #6aa3ff) 100%);
  animation: scroll-line-trail 1.8s ease-in-out infinite;
}
@keyframes scroll-dot-pulse {
  0% { top: 0; opacity: 0; transform: translateX(-50%) scale(0.6); }
  20% { opacity: 1; transform: translateX(-50%) scale(1); }
  80% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { top: calc(100% - 6px); opacity: 0; transform: translateX(-50%) scale(0.6); }
}
@keyframes scroll-line-trail {
  0% { top: -16px; opacity: 0; }
  20% { opacity: 0.7; }
  80% { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}
/* Caché : (1) dès qu'on entre dans l'état shrunk (home), (2) quand le hero a quitté l'écran (pages services) */
.hero--shrunk ~ .scroll-indicator,
body:has(.hero.hero--shrunk) .scroll-indicator,
body.is-past-hero .scroll-indicator {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator__dot,
  .scroll-indicator__line::before { animation: none; }
}
/* Mobile : scroll-indicator masqué sur les pages hero-scrub (chevauchait le texte hero) */
@media (max-width: 760px) {
  body:has(.hero-scrub) .scroll-indicator { display: none; }
}

/* GROS CTA dédié : prend toute la moitié droite du hero au shrunk état */
.hero-shrunk-cta {
  position: fixed;
  top: 50%;
  right: 2vw;
  z-index: 105;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  text-decoration: none;
  color: #fff;
  padding: 4rem 3.5rem;
  background: linear-gradient(135deg, #0a1230 0%, #1442a8 55%, #1e58e8 100%);
  border: 1px solid rgba(74, 134, 255, 0.5);
  border-radius: 22px;
  box-shadow:
    0 32px 80px -16px rgba(20, 66, 168, 0.7),
    0 0 0 1px rgba(74, 134, 255, 0.15);
  transform: translate(150%, -50%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 1.6s var(--shrink-ease) 0.2s,
    opacity 0.9s ease 0.2s,
    box-shadow 0.4s ease;
  font-family: var(--font-display);
  width: 44vw;
  max-width: 720px;
  height: 78vh;
  max-height: 720px;
}
.hero-shrunk-cta__label {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 1rem;
  margin-top: auto;
}
.hero-shrunk-cta__kicker {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.hero-shrunk-cta__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #fff;
}
.hero-shrunk-cta__arrow {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--cyan-bright, #6aa3ff);
  align-self: flex-end;
  margin-bottom: auto;
  transition: transform 0.3s ease;
  font-weight: 300;
}
.hero-shrunk-cta:hover {
  box-shadow:
    0 36px 96px -16px rgba(30, 88, 232, 0.85),
    0 0 0 1px rgba(74, 134, 255, 0.4);
}
.hero-shrunk-cta:hover .hero-shrunk-cta__arrow {
  transform: translateX(12px);
}

/* État shrunk : le CTA glisse en place */
.hero--shrunk ~ .hero-shrunk-cta,
.hero-shrunk-cta {
  /* default state above */
}
body:has(.hero.hero--shrunk) .hero-shrunk-cta {
  transform: translate(0, -50%);
  opacity: 1;
  pointer-events: auto;
}

/* Nav__cta reste à sa position d'origine — on ne le touche pas */

/* Mobile (< 760px) : layout adapté.
   En shrunk état : nav fixed top (~90px) + 10 planètes grille verticale + CTA pill fixée en bas.
   2026-05-27 PM fix : cards rétrécies (44px min-height, gap 0.4rem, font 0.92rem) pour que
   les 10 cards rentrent dans le viewport (S25 FE ~700-820svh) sans être masquées par le
   header (5rem padding-top) ni coupées par le CTA pill du bas. CTA pill aussi compressée
   (0.6rem padding, font 0.88rem) + bottom margin augmenté à 1.4rem pour visibilité totale
   au-dessus de la barre système Android/iOS. */
@media (max-width: 760px) {
  .hero--shrunk .solar {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    /* padding-top: clear header solid (.is-shrunk + .is-scrolled = ~88px).
       padding-bottom: tampon court (CTA pill fixed en dehors du flow). */
    padding: 5rem var(--gutter, 1.2rem) 0.5rem !important;
    transform: none !important;
    display: block !important;
  }
  .hero--shrunk .solar__orbit {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.4rem !important;
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }
  .hero--shrunk .solar__planet-inner {
    padding: 0.55rem 1rem !important;
    min-height: 44px !important;
    gap: 0.85rem !important;
  }
  .hero--shrunk .solar__planet-inner .solar__num {
    font-size: 0.7rem !important;
    letter-spacing: 0.18em !important;
  }
  .hero--shrunk .solar__planet-inner .solar__name {
    font-size: 0.92rem !important;
    line-height: 1.05 !important;
  }
  /* En shrunk state, on cache le mini-logo video — le DRAVE logo dans le nav suffit */
  .hero--shrunk .hero__video { display: none !important; }
  /* CTA fixé en bas, pill horizontale compacte (plus aplatie pour rentrer sous le viewport) */
  .hero-shrunk-cta {
    position: fixed;
    right: var(--gutter, 1.2rem);
    left: var(--gutter, 1.2rem);
    top: auto;
    bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    transform: translateY(140%);
    padding: 0.6rem 1.1rem;
    border-radius: 13px;
    gap: 0.8rem;
    box-shadow: 0 18px 40px -10px rgba(20, 66, 168, 0.7);
  }
  .hero-shrunk-cta__label {
    align-items: flex-start;
    text-align: left;
    gap: 0.05rem;
    margin: 0;
  }
  .hero-shrunk-cta__kicker { font-size: 0.55rem; letter-spacing: 0.16em; }
  .hero-shrunk-cta__title {
    font-size: 0.92rem;
    line-height: 1.05;
    letter-spacing: -0.01em;
  }
  .hero-shrunk-cta__title br { display: none; }
  .hero-shrunk-cta__arrow {
    font-size: 1.15rem;
    align-self: center;
    margin: 0;
  }
  body:has(.hero.hero--shrunk) .hero-shrunk-cta {
    transform: translateY(0);
  }
}

/* Pages services hero-scrub : garde les tailles définies plus haut dans le fichier.
   (Override retiré sur demande Simon — back to default clamp 3rem/9vw/9rem.) */

/* ============================================================
   TRUST BADGES (contact aside + footer)
   ============================================================ */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(3, 4, 10, 0.65);
  background: rgba(74, 134, 255, 0.06);
  border: 1px solid rgba(74, 134, 255, 0.18);
  border-radius: 999px;
  white-space: nowrap;
}
.trust-badge__dot {
  width: 6px;
  height: 6px;
  background: #4a86ff;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   TÉMOIGNAGES VERBATIM (home section)
   ============================================================ */
.quotes {
  padding: 6rem 0 5rem;
  background: var(--paper, #F4F6FB);
}
.quotes__header { margin-bottom: 3rem; max-width: 56ch; }
.quotes__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0.8rem 0 0;
}
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
@media (max-width: 780px) {
  .quotes__grid { grid-template-columns: 1fr; }
}
.quote {
  background: #fff;
  padding: 1.8rem 1.6rem;
  border-radius: 14px;
  border: 1px solid rgba(3, 4, 10, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote__body {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #03040A;
  margin: 0;
}
.quote__body::before {
  content: '« ';
  color: #4a86ff;
  font-weight: 700;
}
.quote__body::after {
  content: ' »';
  color: #4a86ff;
  font-weight: 700;
}
.quote__author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(3, 4, 10, 0.06);
}
.quote__name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #03040A;
}
.quote__role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(3, 4, 10, 0.55);
}
.quote__placeholder {
  font-style: italic;
  color: rgba(3, 4, 10, 0.55);
}

/* ============================================================
   HOME · Drave en chiffres
   ============================================================ */
.stats {
  background: #03040A;
  color: #fff;
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(74, 134, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.stats__header { margin-bottom: 3.5rem; position: relative; }
.stats__header .kicker { color: rgba(74, 134, 255, 0.7); }
.stats__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0.8rem 0 0;
}
.stats__title .accent-royal { color: #4a86ff; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
@media (max-width: 980px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.4rem; }
}
@media (max-width: 520px) {
  .stats__grid { grid-template-columns: 1fr; gap: 2rem; }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1rem 1.4rem 0;
  border-left: 2px solid rgba(74, 134, 255, 0.4);
  padding-left: 1.4rem;
}
.stat__num {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.stat__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   HOME · Comment ça se passe (process)
   ============================================================ */
.process {
  padding: 7rem 0 5rem;
  background: var(--paper, #F4F6FB);
}
.process__header { margin-bottom: 3rem; max-width: 56ch; }
.process__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0.8rem 0 1.2rem;
  color: #03040A;
}
.process__lede {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(3, 4, 10, 0.7);
  margin: 0;
}
.process__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}
@media (max-width: 880px) {
  .process__steps { grid-template-columns: 1fr; gap: 1.4rem; }
}
.process-step {
  background: #fff;
  border: 1px solid rgba(3, 4, 10, 0.06);
  border-radius: 14px;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  transition: border-color 0.3s, transform 0.4s;
}
.process-step:hover {
  border-color: rgba(74, 134, 255, 0.3);
  transform: translateY(-2px);
}
.process-step__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #1442a8;
  text-transform: uppercase;
}
.process-step__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  color: #03040A;
}
.process-step__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(3, 4, 10, 0.7);
  margin: 0;
}

/* ============================================================
   BREADCRUMBS — Navigation contextuelle sur sous-pages
   ============================================================ */
.breadcrumbs {
  padding: 1.5rem 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(3, 4, 10, 0.5);
}
.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
}
.breadcrumbs__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.breadcrumbs__list li + li::before {
  content: '/';
  color: rgba(3, 4, 10, 0.3);
  margin-right: 0.35rem;
}
.breadcrumbs a {
  color: rgba(3, 4, 10, 0.5);
  text-decoration: none;
  transition: color .25s;
  padding: 0.3rem 0;
}
.breadcrumbs a:hover { color: var(--royal, #1442a8); }
.breadcrumbs [aria-current="page"] {
  color: rgba(3, 4, 10, 0.85);
  font-weight: 500;
}
/* Variante sombre pour pages avec hero scrub/dark */
.breadcrumbs--on-dark { color: rgba(255,255,255,0.55); }
.breadcrumbs--on-dark a { color: rgba(255,255,255,0.55); }
.breadcrumbs--on-dark a:hover { color: var(--cyan, #6aa3ff); }
.breadcrumbs--on-dark [aria-current="page"] { color: rgba(255,255,255,0.92); }
.breadcrumbs--on-dark .breadcrumbs__list li + li::before { color: rgba(255,255,255,0.3); }

/* ============================================================
   TRUST STRIP — Bandeau social proof sous hero pages service
   ============================================================ */
.trust-strip {
  background: #03040A;
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1.4rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.trust-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.2rem;
  align-items: center;
}
.trust-strip__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}
.trust-strip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan, #6aa3ff);
  box-shadow: 0 0 12px rgba(106,163,255,0.7);
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .trust-strip {
    padding: 1rem 0;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }
  .trust-strip__list {
    gap: 0.5rem 1.2rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-inline: var(--gutter, 1.2rem);
    margin-inline: calc(var(--gutter, 1.2rem) * -1);
    scrollbar-width: none;
  }
  .trust-strip__list::-webkit-scrollbar { display: none; }
}

/* ============================================================
   RELATED SERVICES — Cards cross-link en bas des pages service
   ============================================================ */
.related-services {
  padding: 4rem 0 6rem;
  background: var(--paper, #F4F6FB);
  border-top: 1px solid rgba(3, 4, 10, 0.06);
}
.related-services__header {
  margin-bottom: 2.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.related-services__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink, #03040A);
}
.related-services__all {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(3, 4, 10, 0.55);
  text-decoration: none;
  transition: color .25s, gap .25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  min-height: 44px;
}
.related-services__all:hover { color: var(--royal, #1442a8); gap: 0.8rem; }
.related-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 880px) {
  .related-services__grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .related-services { padding: 3rem 0 4rem; }
}
.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem 1.5rem;
  min-height: 180px;
  background: #fff;
  border: 1px solid rgba(3, 4, 10, 0.06);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink, #03040A);
  transition: transform .35s var(--shrink-ease, cubic-bezier(.6,.05,.3,1)),
              border-color .25s,
              box-shadow .25s;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 134, 255, 0.35);
  box-shadow: 0 18px 40px -16px rgba(20, 66, 168, 0.25);
}
.related-card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--royal, #1442a8);
}
.related-card__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0.4rem 0 0.65rem;
}
.related-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(3, 4, 10, 0.65);
  margin: 0 0 1rem;
  flex-grow: 1;
}
.related-card__arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: rgba(3, 4, 10, 0.4);
  transition: transform .3s, color .3s;
  align-self: flex-end;
}
.related-card:hover .related-card__arrow {
  transform: translateX(4px);
  color: var(--royal, #1442a8);
}

/* ============================================================
   FOOTER ENRICHI — Bandeau réponse + meta
   ============================================================ */
.footer__meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(3, 4, 10, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 3rem;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(3, 4, 10, 0.5);
}
.footer__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.footer__meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22b26e;
  box-shadow: 0 0 10px rgba(34, 178, 110, 0.6);
  animation: pulse-soft 2.4s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.9); }
}
@media (max-width: 760px) {
  .footer__meta { gap: 0.8rem 1.6rem; padding-top: 1rem; margin-top: 1.5rem; }
}

/* ============================================================
   404 PAGE — Helpful suggestions
   ============================================================ */
.error-suggestions {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.error-suggestions__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
  display: block;
}
.error-suggestions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}
.error-suggestions__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background .25s, border-color .25s, transform .25s;
  min-height: 48px;
}
.error-suggestions__list a:hover {
  background: rgba(74, 134, 255, 0.1);
  border-color: rgba(74, 134, 255, 0.4);
  transform: translateX(2px);
}
.error-suggestions__list a::after {
  content: '→';
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
}

/* ============================================================
   VIEW TRANSITIONS API — transitions cross-page smooth (Chromium 126+)
   Fallback gracieux sur browsers non-supportés. Respecte prefers-reduced-motion.
   ============================================================ */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
::view-transition-old(root) { animation-name: fade-out; }
::view-transition-new(root) { animation-name: fade-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* Garder le header stable pendant la transition (pas de fade dessus) */
.nav { view-transition-name: nav; }
::view-transition-old(nav),
::view-transition-new(nav) {
  animation-duration: 0s;
}


/* ============================================================
   LIQUID GLASS — CTA & boutons (effet Apple-style)
   Layered backdrop blur + specular highlights + tinted gradient.
   Appliqué via cascade sur .nav__cta, .btn, .sticky-cta, .hero-shrunk-cta.
   Fallback opaque pour navigateurs sans backdrop-filter.
   ============================================================ */
:root {
  --glass-blur: 14px;
  --glass-saturate: 1.7;
  --glass-radius: 999px;
  --glass-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Utility standalone (à ajouter sur n'importe quel élément) === */
.liquid-glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.12) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--glass-radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.42),
    inset 0 -1px 0 rgba(255,255,255,0.06),
    0 14px 36px -12px rgba(5,6,15,0.55);
  color: #fff;
  overflow: hidden;
  transition: background .4s var(--glass-ease), border-color .35s ease, box-shadow .4s ease, transform .35s var(--glass-ease), color .3s ease;
  will-change: transform;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 42%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
  border-radius: inherit;
}
.liquid-glass > * { position: relative; z-index: 1; }
.liquid-glass:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.22) 100%);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 22px 52px -12px rgba(30,64,255,0.55),
    0 0 0 1px rgba(106,163,255,0.28);
}
.liquid-glass:active { transform: translateY(0); }

/* Ink variant (fond clair, glass sombre tinté navy/royal) */
.liquid-glass--ink {
  background: linear-gradient(135deg, rgba(5,6,15,0.78) 0%, rgba(11,27,92,0.55) 55%, rgba(30,64,255,0.4) 100%);
  border-color: rgba(5,6,15,0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.32),
    inset 0 -1px 0 rgba(5,6,15,0.25),
    0 18px 44px -12px rgba(20,66,168,0.4);
}
.liquid-glass--ink:hover {
  background: linear-gradient(135deg, rgba(30,64,255,0.85) 0%, rgba(20,66,168,0.7) 55%, rgba(31,169,255,0.55) 100%);
  border-color: rgba(106,163,255,0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 24px 56px -12px rgba(30,64,255,0.6);
}

/* Royal tint (CTA emphase) */
.liquid-glass--royal {
  background: linear-gradient(135deg, rgba(30,64,255,0.42) 0%, rgba(11,27,92,0.35) 55%, rgba(31,169,255,0.32) 100%);
  border-color: rgba(106,163,255,0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(5,6,15,0.18),
    0 20px 48px -10px rgba(30,64,255,0.6),
    0 0 0 1px rgba(106,163,255,0.22);
}
.liquid-glass--royal:hover {
  background: linear-gradient(135deg, rgba(30,64,255,0.62) 0%, rgba(20,66,168,0.5) 55%, rgba(31,169,255,0.48) 100%);
  border-color: rgba(106,163,255,0.65);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 26px 60px -10px rgba(30,64,255,0.75);
}

/* Square corner variants */
.liquid-glass--square { border-radius: 6px; }
.liquid-glass--lg { border-radius: 18px; }

/* ============================================================
   Application aux CTAs existants — surcharge ciblée
   Propagation à toutes les pages sans toucher au HTML.
   ============================================================ */

/* Nav CTA — pill liquid glass sur le nav dark */
.nav__cta {
  position: relative;
  isolation: isolate;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.10) 100%);
  border: 1px solid rgba(255,255,255,0.3);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.38),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 10px 26px -10px rgba(5,6,15,0.5);
  overflow: hidden;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, color .3s ease, transform .35s var(--glass-ease);
}
.nav__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 45%);
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: overlay;
}
.nav .nav__cta { color: #fff; border-color: rgba(255,255,255,0.32); }
.nav .nav__cta:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(244,246,251,0.78) 100%);
  border-color: rgba(255,255,255,0.65);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 16px 34px -10px rgba(30,64,255,0.4);
}

/* Buttons génériques — base translucide sur fond dark */
.btn {
  position: relative;
  isolation: isolate;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.10) 100%);
  border: 1px solid rgba(255,255,255,0.28);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(255,255,255,0.06),
    0 14px 34px -10px rgba(5,6,15,0.5);
  overflow: hidden;
  color: #fff;
  transition: background .35s ease, border-color .35s ease, box-shadow .4s ease, color .3s ease, transform .35s var(--glass-ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 45%);
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: overlay;
}
.btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(244,246,251,0.82) 100%);
  color: var(--ink);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 20px 44px -10px rgba(30,64,255,0.45);
}

/* Variant: solid (cream/white) */
.btn--solid {
  background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(232,235,242,0.88) 100%);
  color: var(--ink);
  border-color: rgba(255,255,255,0.7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(5,6,15,0.04),
    0 16px 36px -10px rgba(30,64,255,0.32);
}
.btn--solid:hover {
  background: linear-gradient(135deg, rgba(30,64,255,0.88) 0%, rgba(20,66,168,0.75) 55%, rgba(31,169,255,0.7) 100%);
  color: #fff;
  border-color: rgba(106,163,255,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 22px 50px -10px rgba(30,64,255,0.6),
    0 0 0 1px rgba(106,163,255,0.35);
}

/* Variant: dark — glass profond tinté navy */
.btn--dark {
  background: linear-gradient(135deg, rgba(5,6,15,0.82) 0%, rgba(11,27,92,0.62) 55%, rgba(30,64,255,0.42) 100%);
  color: var(--paper);
  border-color: rgba(5,6,15,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(5,6,15,0.28),
    0 18px 42px -10px rgba(20,66,168,0.5);
}
.btn--dark:hover {
  background: linear-gradient(135deg, rgba(30,64,255,0.88) 0%, rgba(20,66,168,0.72) 55%, rgba(31,169,255,0.6) 100%);
  border-color: rgba(106,163,255,0.55);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.42),
    0 24px 54px -10px rgba(30,64,255,0.65);
}

/* Variant: ghost (transparent mais glass léger) */
.btn--ghost {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.06) 100%);
  border-color: rgba(255,255,255,0.24);
}

/* Variant: outline-ink (sur fond clair) */
.btn--outline-ink {
  background: linear-gradient(135deg, rgba(5,6,15,0.06) 0%, rgba(11,27,92,0.04) 50%, rgba(30,64,255,0.06) 100%);
  border: 1px solid rgba(5,6,15,0.42);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(5,6,15,0.06),
    0 12px 28px -10px rgba(30,64,255,0.2);
}
.btn--outline-ink::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 50%);
}
.btn--outline-ink:hover {
  background: linear-gradient(135deg, rgba(5,6,15,0.88) 0%, rgba(11,27,92,0.78) 55%, rgba(30,64,255,0.62) 100%);
  border-color: rgba(5,6,15,0.7);
  color: var(--paper);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 24px 52px -10px rgba(20,66,168,0.5);
}

/* Sticky CTA mobile — pill flottante avec glass deep navy */
@media (max-width: 760px) {
  .sticky-cta {
    background: linear-gradient(135deg, rgba(5,6,15,0.78) 0%, rgba(11,27,92,0.6) 55%, rgba(30,64,255,0.45) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.34),
      inset 0 -1px 0 rgba(5,6,15,0.25),
      0 20px 48px -12px rgba(20,66,168,0.55),
      0 0 0 1px rgba(106,163,255,0.18);
    color: #fff;
    isolation: isolate;
    overflow: hidden;
  }
  .sticky-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    border-radius: inherit;
    mix-blend-mode: overlay;
  }
  .sticky-cta__text,
  .sticky-cta__arrow { position: relative; z-index: 1; }
  .sticky-cta:active {
    background: linear-gradient(135deg, rgba(30,64,255,0.85) 0%, rgba(20,66,168,0.7) 100%);
  }
}

/* Hero shrunk CTA — accentue le glass déjà présent */
.hero-shrunk-cta {
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  background: linear-gradient(135deg, rgba(10,18,48,0.6) 0%, rgba(20,66,168,0.55) 55%, rgba(30,88,232,0.5) 100%);
  border: 1px solid rgba(106, 134, 255, 0.5);
  isolation: isolate;
  overflow: hidden;
}
.hero-shrunk-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 38%);
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: overlay;
  z-index: 0;
}
.hero-shrunk-cta__label,
.hero-shrunk-cta__arrow { position: relative; z-index: 1; }

/* Solar planet pills (home) — vrai liquid glass remplaçant l'ancien ink opaque */
.solar__planet-inner {
  position: absolute;
  background: linear-gradient(135deg, rgba(5,6,15,0.62) 0%, rgba(11,27,92,0.48) 55%, rgba(30,64,255,0.32) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.38),
    inset 0 -1px 0 rgba(5,6,15,0.25),
    0 14px 36px -10px rgba(5,6,15,0.65),
    0 0 0 1px rgba(106,163,255,0.08);
  isolation: isolate;
  overflow: hidden;
}
.solar__planet-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0) 45%);
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: overlay;
  z-index: 0;
}
.solar__planet-inner > * { position: relative; z-index: 1; }
.solar__planet:hover .solar__planet-inner,
.solar__planet:focus-visible .solar__planet-inner {
  background: linear-gradient(135deg, rgba(30,64,255,0.78) 0%, rgba(20,66,168,0.65) 55%, rgba(31,169,255,0.55) 100%);
  border-color: rgba(106,163,255,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    inset 0 -1px 0 rgba(5,6,15,0.2),
    0 20px 48px -10px rgba(30,64,255,0.65),
    0 0 0 1px rgba(106,163,255,0.4),
    0 0 32px rgba(30,64,255,0.35);
}

/* Cards related-services + process-step : touche glass discrète sur hover */
.related-card { isolation: isolate; }
.related-card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(244,246,251,0.85) 100%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
}
.process-step { isolation: isolate; }
.process-step:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(244,246,251,0.85) 100%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
}

/* Focus visible pour accessibilité — anneau bleu visible sur tous les variants */
.liquid-glass:focus-visible,
.btn:focus-visible,
.nav__cta:focus-visible,
.sticky-cta:focus-visible,
.hero-shrunk-cta:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .liquid-glass:hover,
  .btn:hover,
  .nav__cta:hover {
    transform: none;
  }
}

/* ============================================================
   HERO VIDEO — variante de .hero-scrub avec <video> au lieu de canvas
   Utilisée sur services/sites-web.html (et applicable aux autres pages).
   Garde la structure .hero-scrub__overlay/__inner pour rester compatible
   avec les overrides existants (mobile, breadcrumbs injection, etc.).
   ============================================================ */
.hero-scrub__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
/* Voile dégradé pour assurer la lisibilité du texte par-dessus la vidéo */
.hero-scrub__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,4,10,0.55) 0%, rgba(3,4,10,0.2) 30%, rgba(3,4,10,0.35) 75%, rgba(3,4,10,0.78) 100%),
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(30,64,255,0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(31,169,255,0.16), transparent 60%);
}
.hero-scrub--video .hero-scrub__overlay {
  z-index: 2;
  background: none;
}

/* Actions dans le hero (deux CTAs liquid-glass) */
.hero-video__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
  pointer-events: auto;
}
.hero-video__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  min-height: 52px;
  touch-action: manipulation;
}
.hero-video__btn .hero-video__arrow {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  transition: transform .35s var(--glass-ease);
}
.hero-video__btn:hover .hero-video__arrow { transform: translateX(6px); }

/* Mobile : vidéo conservée mais voile plus marqué + actions empilées */
@media (max-width: 760px) {
  .hero-scrub--video {
    height: auto;
    min-height: 88svh;
    background: var(--ink);
  }
  .hero-scrub--video .hero-scrub__video {
    /* Sur petit écran on garde la vidéo en fond (sera ~1-2 MB en 720p) */
    display: block;
  }
  .hero-scrub--video .hero-scrub__veil {
    background:
      linear-gradient(180deg, rgba(3,4,10,0.6) 0%, rgba(3,4,10,0.35) 25%, rgba(3,4,10,0.55) 70%, rgba(3,4,10,0.88) 100%),
      radial-gradient(ellipse 80% 60% at 20% 30%, rgba(30,64,255,0.22), transparent 60%);
  }
  .hero-video__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    margin-top: 1.8rem;
  }
  .hero-video__btn {
    justify-content: space-between;
    width: 100%;
  }
}

/* Fallback : pas de backdrop-filter (Firefox <103, anciens iOS Safari) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .liquid-glass {
    background: rgba(255,255,255,0.92);
    color: var(--ink);
  }
  .liquid-glass--ink {
    background: linear-gradient(135deg, var(--ink) 0%, var(--navy) 100%);
    color: var(--paper);
  }
  .liquid-glass--royal {
    background: linear-gradient(135deg, var(--royal) 0%, var(--navy) 100%);
    color: #fff;
  }
  .nav .nav__cta { background: rgba(255,255,255,0.08); }
  .btn { background: rgba(255,255,255,0.92); color: var(--ink); }
  .btn--dark { background: var(--ink); color: var(--paper); }
  .btn--solid { background: var(--paper); color: var(--ink); }
  .btn--outline-ink { background: transparent; color: var(--ink); }
  .sticky-cta { background: var(--ink); }
  .hero-shrunk-cta { background: linear-gradient(135deg, #0a1230 0%, #1442a8 55%, #1e58e8 100%); }
}

/* ====================================================================
   Mobile fixes 2026-05-27 — bugs Simon : header overlap, scrub visuel
   ==================================================================== */

/* P0-2 — Photos.html : "PROFESSIONNELLES" tronqué à 412px.
   Réduit la taille du H1 sur très petits écrans (< 480px). */
@media (max-width: 480px) {
  .hero-scrub__title {
    font-size: clamp(2rem, 9.5vw, 3.4rem);
    letter-spacing: -0.04em;
  }
}

/* P0/Simon — Pages services mobile : pas de scrub interactif (perf 4G), mais
   on injecte la frame finale (état "after") en background pour montrer le
   résultat visuel premium au lieu d'un gradient cobalt vide. (JS inject) */
@media (max-width: 760px) {
  .hero-scrub__mobile-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.65;
    z-index: 0;
    pointer-events: none;
  }
  /* Overlay sombre pour préserver lisibilité du H1/sub par-dessus l'image */
  .hero-scrub::before {
    background:
      radial-gradient(ellipse 70% 60% at 20% 20%, rgba(74,134,255,0.20), transparent 60%),
      radial-gradient(ellipse 60% 50% at 80% 80%, rgba(106,163,255,0.15), transparent 60%),
      linear-gradient(165deg, rgba(3,4,10,0.55) 0%, rgba(10,18,48,0.65) 55%, rgba(3,4,10,0.78) 100%);
    z-index: 1;
  }
  .hero-scrub__overlay {
    position: relative;
    z-index: 2;
  }
}

/* Simon : header chevauche cards mode shrunk sur mobile.
   Le JS bascule .is-scrolled sur le nav quand .is-shrunk → solid dark.
   Mais le pin garde le hero collé top → on s'assure que .is-shrunk + .is-scrolled
   rendent bien le nav opaque (déjà géré par .is-scrolled) — ici on s'assure que
   le z-index du nav reste au-dessus du contenu shrunk. */
@media (max-width: 760px) {
  .nav.is-shrunk.is-scrolled {
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.is-shrunk.is-scrolled::after {
    display: none;
  }
}

