/* ==========================================================================
   HC PROPULSION — Feuille de style principale
   Palette dérivée du logo : noir profond, blanc, bleu électrique.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink:        #06070A;
  --ink-2:      #0B0D13;
  --surface:    #11141C;
  --surface-2:  #171B25;
  --line:       rgba(255, 255, 255, 0.10);
  --line-soft:  rgba(255, 255, 255, 0.055);

  --white:      #FFFFFF;
  --text:       #E9ECF3;
  --muted:      #98A0B3;
  --muted-2:    #6D7688;

  --blue:       #1A5CFF;
  --blue-hi:    #4E86FF;
  --blue-deep:  #0B36A8;
  --glow:       rgba(26, 92, 255, 0.45);

  --radius:     18px;
  --radius-lg:  28px;
  --shell:      1200px;
  --gutter:     clamp(20px, 5vw, 64px);

  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:    cubic-bezier(0.65, 0, 0.35, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont,
          "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin: 0;
  color: var(--white);
}

h1 { font-size: clamp(2.7rem, 7.6vw, 6.1rem); }
h2 { font-size: clamp(2.05rem, 4.7vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); letter-spacing: -0.018em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Utilitaires de mise en page ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(84px, 12vw, 156px); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 104px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 4. Décor de fond ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-fx__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}
.bg-fx__orb--a {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: -14vw; left: -10vw;
  background: radial-gradient(circle, rgba(26,92,255,0.50), transparent 68%);
}
.bg-fx__orb--b {
  width: 40vw; height: 40vw; min-width: 320px; min-height: 320px;
  top: 42%; right: -14vw;
  background: radial-gradient(circle, rgba(11,54,168,0.46), transparent 68%);
}
.bg-fx__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}
.bg-fx__noise {
  position: absolute;
  inset: -200%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- 5. Logo ----------
   Le logo officiel de HC Propulsion, en version blanche sur fond transparent.
   Signature complète (sigle + PROPULSION + baseline) : on l'utilise telle
   quelle, sans la reconstruire. */
.logo { display: inline-block; line-height: 0; }
.logo img {
  height: 62px;
  width: auto;
  display: block;
}
.site-footer .logo img { height: 88px; }

/* ---------- 6. En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(6, 7, 10, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line-soft);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header { transition: transform 0.45s var(--ease), background 0.4s var(--ease),
                           border-color 0.4s var(--ease); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 94px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding-block: 6px;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1.5px; width: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--white);
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__phone:hover { border-color: var(--blue); background: rgba(26,92,255,0.10); }
.nav__phone svg { width: 15px; height: 15px; fill: var(--blue-hi); }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 12px;
  width: 18px; height: 1.6px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 23px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Barre de progression de lecture */
.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--blue-hi));
  box-shadow: 0 0 14px var(--glow);
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(6, 7, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  padding-block: 12px;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease);
}
.mobile-menu.is-open a { transform: translateY(0); }
.mobile-menu.is-open li:nth-child(1) a { transition-delay: 0.06s; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 0.12s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 0.18s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: 0.24s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: 0.30s; }
.mobile-menu__foot {
  margin-top: 44px;
  color: var(--muted);
  font-size: 0.95rem;
}
.mobile-menu__foot a { font-size: 1rem; color: var(--blue-hi); display: inline; transform: none; }

/* ---------- 7. Héros ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}
.hero__inner { width: 100%; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 30px;
}
.hero__badge b { color: var(--white); font-weight: 600; }
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2ee08a;
  box-shadow: 0 0 0 3px rgba(46,224,138,0.18);
  animation: pulse 2.4s var(--ease-io) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46,224,138,0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(46,224,138,0); }
}

.hero h1 { max-width: 15ch; }
.hero h1 .grad {
  background: linear-gradient(105deg, var(--blue-hi) 8%, var(--blue) 46%, #9dbaff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Révélation ligne par ligne */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}
.is-ready .reveal-line > span { transform: translateY(0); }
.is-ready .reveal-line:nth-child(1) > span { transition-delay: 0.10s; }
.is-ready .reveal-line:nth-child(2) > span { transition-delay: 0.20s; }
.is-ready .reveal-line:nth-child(3) > span { transition-delay: 0.30s; }

.hero__sub {
  margin-top: 30px;
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  color: var(--muted);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease) 0.5s, transform 0.9s var(--ease) 0.5s;
}
.is-ready .hero__sub { opacity: 1; transform: none; }

.hero__meta {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease) 0.66s, transform 0.9s var(--ease) 0.66s;
}
.is-ready .hero__meta { opacity: 1; transform: none; }
.hero__meta div { display: flex; align-items: baseline; gap: 9px; }
.hero__meta strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--white);
  font-weight: 700;
}
.hero__meta span { font-size: 0.82rem; color: var(--muted-2); }

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  opacity: 0;
  transition: opacity 0.8s var(--ease) 1s;
}
.is-ready .hero__scroll { opacity: 1; }
.hero__scroll i {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--blue), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--blue-hi);
  animation: trickle 2.1s var(--ease-io) infinite;
}
@keyframes trickle {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Flèche décorative du logo, animée */
.hero__arrow {
  position: absolute;
  right: -4vw;
  top: 50%;
  width: min(46vw, 620px);
  transform: translateY(-50%);
  opacity: 0.30;
  pointer-events: none;
}
.hero__arrow path {
  fill: none;
  stroke: url(#heroGrad);
  stroke-width: 2;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}
.is-ready .hero__arrow path { animation: draw 2.6s var(--ease) 0.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- 8. Bandeau défilant ---------- */
.marquee {
  border-block: 1px solid var(--line-soft);
  padding-block: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
}
.marquee__track {
  display: flex;
  gap: 54px;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue);
}

/* ---------- 9. Scène « photos → vidéo » ---------- */
.scene { height: 420vh; position: relative; }
.scene__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.scene__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  /* réserve le haut de la scène pour la légende : le cadre vidéo se centre
     dans l'espace restant, sans jamais chevaucher le texte */
  padding-top: clamp(190px, 27vh, 310px);
}

.scene__caption {
  position: absolute;
  top: clamp(76px, 10vh, 118px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: min(680px, calc(100% - 2 * var(--gutter)));
  z-index: 6;
  pointer-events: none;
}
.scene__caption h2 {
  font-size: clamp(1.65rem, 4vw, 2.9rem);
  text-shadow: 0 6px 30px rgba(6, 7, 10, 0.9), 0 2px 6px rgba(6, 7, 10, 0.85);
}
.scene__caption p {
  color: var(--text);
  margin-top: 12px;
  font-size: 0.98rem;
  text-shadow: 0 4px 20px rgba(6, 7, 10, 0.95), 0 1px 4px rgba(6, 7, 10, 0.9);
}
/* Voile sombre derrière le texte pour garantir la lisibilité sur les photos */
.scene__caption::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -70px;
  width: 150%;
  height: 330px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(6, 7, 10, 0.86) 34%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}
/* Les trois légendes se superposent : la sortante s'efface vite,
   l'entrante attend que la place soit libre avant d'apparaître. */
.scene__step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.scene__step.is-on {
  opacity: 1;
  transform: none;
  transition: opacity 0.42s var(--ease) 0.24s, transform 0.42s var(--ease) 0.24s;
}

/* Photos éparpillées */
.scene__photos { position: absolute; inset: 0; z-index: 2; }
.scene__photo {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(140px, 18vw, 240px);
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 26px 60px rgba(0,0,0,0.62);
  will-change: transform, opacity;
  background: var(--surface);
}
.scene__photo img { width: 100%; height: 100%; object-fit: cover; }
.scene__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.5));
}

/* Cadre écran 16:9 */
.screen {
  position: relative;
  width: min(92vw, 880px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(160deg, #2b2f3c, #0d0f15 42%, #242834);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10),
    0 44px 90px rgba(0,0,0,0.72),
    0 0 90px -20px var(--glow);
}
.screen__inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.screen__inner video,
.screen__inner img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.scene__screen {
  position: relative;
  z-index: 4;
  will-change: transform, opacity;
}
/* Dans la scène, la largeur est plafonnée par la hauteur disponible
   pour que le cadre tienne toujours sous la légende. */
.scene__screen .screen {
  width: min(92vw, calc(44svh * 16 / 9), 880px);
}

.scene__glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 760px; max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  filter: blur(60px);
  z-index: 1;
  will-change: transform, opacity;
  pointer-events: none;
}

.scene__hint {
  position: absolute;
  bottom: clamp(26px, 6vh, 54px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  z-index: 6;
  text-shadow: 0 2px 14px rgba(6, 7, 10, 0.95);
}

/* ---------- 10. Cartes de service ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
  gap: 22px;
  margin-top: 58px;
}

.card {
  position: relative;
  padding: 34px 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
  transform-style: preserve-3d;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(26,92,255,0.20), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover { border-color: rgba(26,92,255,0.44); transform: translateY(-5px); }
.card:hover::before { opacity: 1; }

.card__num {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--blue-hi);
  margin-bottom: 22px;
  display: block;
}
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(26,92,255,0.13);
  border: 1px solid rgba(26,92,255,0.28);
  margin-bottom: 22px;
}
.card__icon svg { width: 21px; height: 21px; stroke: var(--blue-hi); fill: none;
                  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.card__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.89rem;
  color: var(--muted);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 11px; height: 2px;
  background: var(--blue);
}

/* ---------- 11. Réalisation en vedette ---------- */
.work { margin-top: 54px; }
.work__frame { position: relative; }
.work .screen { width: 100%; max-width: 980px; margin-inline: auto; }
.work__play {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 20px;
  transition: opacity 0.35s var(--ease);
}
.work__play span {
  width: 78px; height: 78px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(6,7,10,0.55);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border: 1px solid rgba(255,255,255,0.30);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.work__play:hover span { transform: scale(1.10); background: var(--blue); }
.work__play svg { width: 25px; height: 25px; fill: #fff; margin-left: 4px; }
.work__play.is-playing { opacity: 0; pointer-events: none; }

.work__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: 980px;
  margin: 26px auto 0;
}
.work__meta h3 { font-size: 1.2rem; }
.work__meta p { color: var(--muted-2); font-size: 0.88rem; margin-top: 5px; }
.work__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work__tags span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}

/* ---------- 12. Processus ---------- */
.steps { position: relative; margin-top: 62px; }
.steps__line {
  position: absolute;
  left: 23px; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--line);
  overflow: hidden;
}
.steps__line i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--blue-hi), var(--blue), var(--blue-deep));
  transform: scaleY(var(--p, 0));
  transform-origin: top;
  box-shadow: 0 0 16px var(--glow);
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 26px;
  padding-bottom: 46px;
}
.step:last-child { padding-bottom: 0; }
.step__dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink-2);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  position: relative;
  z-index: 2;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease),
              background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step.is-active .step__dot {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 6px rgba(26,92,255,0.16), 0 0 26px var(--glow);
}
.step h3 { margin-bottom: 9px; }
.step p { color: var(--muted); font-size: 0.95rem; max-width: 62ch; }

/* ---------- 13. Chiffres ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { background: var(--ink); padding: 36px 28px; text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.035em;
  line-height: 1;
  /* un intervalle comme « 25–55 s » ne doit jamais se couper en deux lignes */
  white-space: nowrap;
}
.stat span {
  display: block;
  margin-top: 11px;
  font-size: 0.79rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- 14. FAQ ---------- */
.faq { margin-top: 52px; border-top: 1px solid var(--line-soft); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
  transition: color 0.3s var(--ease);
}
.faq__q:hover { color: var(--blue-hi); }
.faq__q i {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.faq__q i::before, .faq__q i::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease);
}
.faq__q i::before { width: 10px; height: 1.5px; }
.faq__q i::after  { width: 1.5px; height: 10px; }
.faq__item.is-open .faq__q i { border-color: var(--blue); transform: rotate(180deg); }
.faq__item.is-open .faq__q i::after { opacity: 0; }
/* Ouverture par grid-template-rows : aucune mesure JS, aucun risque de
   texte tronqué, et le panneau s'adapte seul au redimensionnement. */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div {
  overflow: hidden;
  min-height: 0;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 72ch;
}
.faq__a > div > p { margin: 0 0 26px; }
.faq__a a {
  color: var(--blue-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 15. Contact ---------- */
.contact {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 480px at 50% 0%, rgba(26,92,255,0.13), transparent 70%);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.contact__aside p { color: var(--muted); }
.contact__direct { margin-top: 34px; display: grid; gap: 16px; }
.contact__direct a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.contact__direct a:hover {
  border-color: rgba(26,92,255,0.5);
  background: rgba(26,92,255,0.07);
  transform: translateX(4px);
}
.contact__direct svg { width: 18px; height: 18px; fill: var(--blue-hi); flex: none; }
.contact__direct b { display: block; font-size: 0.94rem; color: var(--white); font-weight: 600; }
.contact__direct small { display: block; color: var(--muted-2); font-size: 0.76rem; margin-top: 2px; }

/* Formulaire */
.form {
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field label .req { color: var(--blue-hi); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 122px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2398A0B3' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field select option { background: var(--surface); color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(26,92,255,0.07);
  box-shadow: 0 0 0 3px rgba(26,92,255,0.14);
}
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: #ff5f6d; }
.field__error {
  display: none;
  margin-top: 7px;
  font-size: 0.78rem;
  color: #ff8a94;
}
.field.has-error .field__error { display: block; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.check input {
  appearance: none;
  flex: none;
  width: 19px; height: 19px;
  margin-top: 1px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  position: relative;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2.5px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check.has-error input { border-color: #ff5f6d; }
.check a { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 3px; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: 17px 28px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--blue-deep), var(--blue) 45%, var(--blue-hi));
  color: #fff;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 14px 34px -12px var(--glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.32), transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.85s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px var(--glow); }
.btn:hover::after { transform: translateX(120%); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

.form__note {
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.55;
}
.form__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.form__status {
  display: none;
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 13px;
  font-size: 0.9rem;
}
.form__status.is-ok {
  display: block;
  background: rgba(46,224,138,0.10);
  border: 1px solid rgba(46,224,138,0.32);
  color: #a8f0cd;
}
.form__status.is-bad {
  display: block;
  background: rgba(255,95,109,0.10);
  border: 1px solid rgba(255,95,109,0.32);
  color: #ffb3ba;
}
.form__status a { color: inherit; text-decoration: underline; }

/* ---------- 15b. Boutons de réseaux sociaux ---------- */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
              background 0.3s var(--ease), transform 0.3s var(--ease);
}
.socials a:hover {
  color: var(--white);
  border-color: rgba(26, 92, 255, 0.5);
  background: rgba(26, 92, 255, 0.09);
  transform: translateY(-2px);
}
.socials svg {
  width: 17px;
  height: 17px;
  fill: var(--blue-hi);
  flex: none;
}

/* ---------- 16. Pied de page ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 54px 34px;
  background: var(--ink-2);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.footer__nav a { font-size: 0.87rem; color: var(--muted); transition: color 0.25s var(--ease); }
.footer__nav a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.78rem;
  color: var(--muted-2);
}
.footer__bottom a:hover { color: var(--white); }

/* ---------- 17. Révélation générique au défilement ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.09s; }
[data-reveal][data-delay="2"] { transition-delay: 0.18s; }
[data-reveal][data-delay="3"] { transition-delay: 0.27s; }
[data-reveal][data-delay="4"] { transition-delay: 0.36s; }

/* ---------- 18. Pages légales ---------- */
.legal { padding-top: 150px; padding-bottom: 96px; }
.legal__body { max-width: 76ch; }
.legal__body h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-top: 46px;
  margin-bottom: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.legal__body h3 { font-size: 1.03rem; margin-top: 26px; margin-bottom: 9px; }
.legal__body p, .legal__body li { color: var(--muted); font-size: 0.96rem; }
.legal__body ul, .legal__body ol { padding-left: 22px; margin: 0 0 1.1em; }
.legal__body li { margin-bottom: 7px; }
.legal__body a { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal__meta {
  color: var(--muted-2);
  font-size: 0.83rem;
  margin-top: 14px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.legal__back:hover { color: var(--white); }
.callout {
  margin: 22px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 14px 14px 0;
  background: rgba(26,92,255,0.06);
}
.callout p { color: var(--text); margin: 0; font-size: 0.92rem; }

/* ---------- 19. Page merci / 404 ---------- */
.center-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 130px var(--gutter) 80px;
}
.center-page .icon-ok {
  width: 76px; height: 76px;
  margin: 0 auto 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(46,224,138,0.12);
  border: 1px solid rgba(46,224,138,0.34);
}
.center-page .icon-ok svg { width: 32px; height: 32px; stroke: #2ee08a; fill: none;
                            stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.center-page p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 14px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-ghost:hover { border-color: var(--blue); background: rgba(26,92,255,0.10); }

/* ---------- 20. Points de rupture ---------- */
@media (max-width: 960px) {
  .contact__grid { grid-template-columns: 1fr; }
  .hero__arrow { opacity: 0.16; right: -18vw; width: 78vw; }
}

@media (max-width: 780px) {
  .nav__links, .nav__phone { display: none; }
  .nav__burger { display: block; }
  .nav { height: 78px; }
  .hero { padding-top: 106px; }
  .work__meta { justify-content: flex-start; }
  .hero__scroll { display: none; }
  .scene { height: 380vh; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .scene__photo { width: clamp(118px, 34vw, 160px); }
  .stat { padding: 28px 18px; }
  .logo img { height: 48px; }
  .site-footer .logo img { height: 72px; }
}

/* ---------- 21. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .reveal-line > span { transform: none !important; }
  .hero__sub, .hero__meta, .hero__scroll { opacity: 1 !important; transform: none !important; }
  .scene { height: auto; }
  .scene__sticky { position: static; height: auto; padding-block: 80px; }
  .scene__photos { display: none; }
  .scene__caption { position: static; transform: none; margin: 0 auto 40px; }
  .scene__step { position: static; opacity: 1; transform: none; }
  .scene__step + .scene__step { margin-top: 20px; }
  .scene__hint { display: none; }
}

/* ---------- 22. Impression ---------- */
@media print {
  .bg-fx, .site-header, .mobile-menu, .scene, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3 { color: #000; }
}
