/* ==========================================================================
   CARSNICKEL — feuille de style
   Mobile d'abord. Couleurs relevées sur le logo fourni (bleu roi #0029C4,
   bleu électrique #0B6CF0) + bleu nuit pour les sections fortes.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #040b24;
  --navy-900: #061133;
  --navy-800: #0a1b4d;
  --navy-700: #102a6b;
  --blue-700: #0029c4;
  --blue-600: #0a4fe0;
  --blue-500: #0b6cf0;
  --blue-400: #2f8bff;
  --blue-300: #6cb4ff;
  --blue-100: #e3eeff;
  --blue-50: #f1f6ff;
  --gray-50: #f5f7fb;
  --gray-100: #e9edf5;
  --gray-300: #c9d2e3;
  --ink: #0b1433;
  --text: #2a3552;
  --muted: #56627f;
  --on-dark: rgba(255, 255, 255, 0.92);
  --on-dark-muted: rgba(255, 255, 255, 0.72);

  --header-h: 68px;
  --gutter: 20px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(11, 20, 51, 0.05), 0 18px 40px -22px rgba(11, 20, 51, 0.28);
  --shadow-card-hover: 0 2px 4px rgba(11, 20, 51, 0.06), 0 28px 56px -24px rgba(11, 20, 51, 0.38);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (min-width: 960px) {
  :root { --header-h: 76px; --gutter: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

img { height: auto; }

h1, h2, h3, h4, p, ul, figure { margin: 0; }

ul { padding: 0; list-style: none; }

a { color: inherit; }

button { font: inherit; color: inherit; cursor: pointer; }

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

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Lien d'évitement : hors écran tant qu'il n'a pas le focus clavier. */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.25s var(--ease-out); }

.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #0b66ec, var(--blue-600));
  box-shadow: 0 10px 24px -10px rgba(11, 108, 240, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.btn--light {
  color: var(--blue-700);
  background: #fff;
  box-shadow: 0 10px 24px -12px rgba(4, 11, 36, 0.5);
}

.btn--outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

@media (hover: hover) {
  .btn--primary:hover { box-shadow: 0 14px 30px -10px rgba(11, 108, 240, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
  .btn--primary:hover .icon[aria-hidden] { transform: translateX(3px); }
  .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); }
  .btn--light:hover { background: var(--blue-50); transform: translateY(-2px); }
  .btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
}

/* ---------- Typo de section ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow--dark { color: var(--blue-300); }

.section { padding-block: clamp(72px, 11vw, 128px); }

.section__head { max-width: 720px; margin-bottom: clamp(36px, 6vw, 60px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

.section__title {
  color: var(--ink);
  font-size: clamp(2rem, 1.35rem + 2.7vw, 3.2rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section__lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  text-wrap: pretty;
}

/* ==========================================================================
   A. En-tête
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.header.is-scrolled,
.header.is-open {
  background: rgba(6, 17, 51, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px -18px rgba(0, 0, 0, 0.6);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__logo { width: auto; height: 46px; }
.brand__tag {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--on-dark-muted);
  font-size: 0.62rem;
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: 0.26em;
  line-height: 1.3;
}
@media (max-width: 359px) { .brand__tag { display: none; } }
@media (min-width: 960px) { .brand__logo { height: 54px; } .brand__tag { font-size: 0.68rem; } }

.nav__list { display: flex; }
.nav__link {
  position: relative;
  display: block;
  color: var(--on-dark-muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.nav__link:hover,
.nav__link.is-active { color: #fff; }

/* Burger (mobile) */
.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  margin-right: -8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.burger__bar {
  position: absolute;
  left: 12px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.burger__bar:nth-child(1) { top: 16px; }
.burger__bar:nth-child(2) { top: 22px; }
.burger__bar:nth-child(3) { top: 28px; }
.is-open .burger__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-open .burger__bar:nth-child(2) { opacity: 0; }
.is-open .burger__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 959px) {
  /* Sans JavaScript : liens affichés en ligne défilante sous le logo. */
  html:not(.js) .header { position: absolute; height: auto; }
  html:not(.js) .header__inner { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .nav { width: 100%; overflow-x: auto; }
  html:not(.js) .nav__list { gap: 18px; white-space: nowrap; }
  html:not(.js) .nav__cta { display: none; }

  .js .burger { display: block; }
  .js .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 28px;
    background: var(--navy-900);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .js .header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--ease-out);
  }
  /* Voile derrière le menu ouvert (un clic dessus referme le menu).
     Le backdrop-filter de l'en-tête en fait le repère des éléments fixes :
     on donne donc une hauteur explicite plutôt que bottom: 0. */
  .js .header::after {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    height: 100dvh;
    z-index: -1;
    background: rgba(4, 11, 36, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0s 0.25s;
  }
  .js .header.is-open::after { opacity: 1; visibility: visible; transition: opacity 0.25s; }
  .js .nav__list { flex-direction: column; }
  .js .nav__link {
    padding: 15px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.15rem;
  }
  .js .nav__cta { width: 100%; margin-top: 22px; }
}

@media (min-width: 960px) {
  .nav { display: flex; align-items: center; gap: 34px; }
  .nav__list { gap: 28px; }
  .nav__link { padding-block: 8px; font-size: 0.95rem; }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--blue-400);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
  }
  .nav__link:hover::after,
  .nav__link.is-active::after { transform: scaleX(1); }
  .nav__cta { min-height: 44px; padding: 10px 20px; font-size: 0.95rem; }
}

/* ==========================================================================
   B. Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(36px, 7vw, 72px)) 0 clamp(64px, 9vw, 112px);
  color: var(--on-dark);
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(11, 108, 240, 0.38), transparent 62%),
    radial-gradient(700px 480px at -5% 105%, rgba(0, 41, 196, 0.45), transparent 60%),
    var(--navy-900);
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
}

.hero__inner {
  display: grid;
  gap: clamp(48px, 8vw, 72px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero { min-height: min(100svh, 920px); display: flex; align-items: center; }
  .hero__inner { grid-template-columns: 1.08fr 0.92fr; }
}

.hero__title {
  color: #fff;
  font-size: clamp(2.45rem, 1.35rem + 4.6vw, 4.5rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.hero__kicker {
  display: block;
  margin-bottom: 0.55em;
  color: var(--blue-300);
  font-size: max(0.3em, 0.95rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.3em;
}
.hero__accent {
  display: block;
  color: var(--blue-300);
  background: linear-gradient(100deg, #8fc6ff 0%, var(--blue-400) 55%, #8fc6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  max-width: 34em;
  margin-top: 22px;
  color: var(--on-dark-muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}

.hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.hero__services a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 15px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--on-dark);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background-color 0.2s;
}
.hero__services .icon { color: var(--blue-300); }
.hero__services a:hover { border-color: rgba(108, 180, 255, 0.55); background: rgba(108, 180, 255, 0.08); }

/* Visuel */
.hero__visual {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(108, 180, 255, 0.35);
  border-radius: var(--radius-lg);
  transform: rotate(5deg) translate(14px, 10px);
}
.hero__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hero__card img { width: 100%; aspect-ratio: 740 / 973; object-fit: cover; }
.hero__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  background: rgba(4, 11, 36, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
/* Vignette secondaire du hero (canapé) */
.hero__mini {
  position: absolute;
  left: -28px;
  bottom: 64px;
  width: 46%;
  max-width: 210px;
  overflow: hidden;
  border: 4px solid var(--navy-900);
  border-radius: 18px;
  background: var(--navy-800);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.8);
}
.hero__mini img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__mini figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--blue-500);
}
@media (max-width: 479px) { .hero__mini { left: -8px; bottom: 92px; width: 42%; } }
@media (min-width: 960px) { .hero__mini { left: -64px; bottom: 80px; max-width: 220px; } }

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(47, 139, 255, 0.25);
}

.badge {
  position: absolute;
  top: -30px;
  right: -14px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}
/* Deux SVG superposés : seul l'anneau tourne. On fait tourner l'élément <svg>
   lui-même (boîte HTML, centre de rotation fiable sur Safari iOS) plutôt qu'un
   élément interne au SVG, dont le centre dérive sur Safari. */
.badge__ring,
.badge__center {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.badge__ring { transform-origin: 50% 50%; will-change: transform; }
.badge__bg { fill: var(--blue-600); }
.badge__text {
  fill: #fff;
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.08em;
}
.badge__drop { fill: none; stroke: #fff; stroke-width: 2.4; }
@media (min-width: 960px) { .badge { width: 124px; height: 124px; top: -40px; right: -40px; } }

.hero__scroll {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  place-items: center;
}
@media (min-width: 960px) and (min-height: 760px) { .hero__scroll { display: grid; } }

/* ==========================================================================
   C. Prestations
   ========================================================================== */
.services__grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 640px) and (max-width: 959px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .service:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .service:last-child .service__body { justify-content: center; padding: 32px; }
  .service:last-child .link-arrow { margin-top: 4px; }
}
@media (min-width: 960px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.service__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-800);
}
.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transition: transform 0.6s var(--ease-out);
}
.service__media--art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 28% 18%, rgba(47, 139, 255, 0.5), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(0, 41, 196, 0.55), transparent 50%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
}
.art { width: 80%; height: auto; transition: transform 0.6s var(--ease-out); }
.art__line { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.art__bubbles { fill: none; stroke: var(--blue-300); stroke-width: 1.6; opacity: 0.75; }
.art__spark { fill: var(--blue-300); }

.service__num {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  font-stretch: 120%;
  letter-spacing: 0.08em;
  background: rgba(4, 11, 36, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.service__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(4, 11, 36, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.service__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 18px;
}
.service__body p { color: var(--muted); }
.service__title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.2;
}
.service__title .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  color: var(--blue-600);
  background: var(--blue-50);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding-block: 10px;
  color: var(--blue-600);
  font-weight: 700;
  text-decoration: none;
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease-out); }

@media (hover: hover) {
  .service:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
  .service:hover .service__media img { transform: scale(1.045); }
  .service:hover .art { transform: scale(1.04) rotate(-1deg); }
  .link-arrow:hover .icon { transform: translateX(4px); }
}

.services__note {
  margin-top: 36px;
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
}
.services__note a { color: var(--blue-600); font-weight: 700; text-underline-offset: 3px; }

/* ==========================================================================
   D. Qui sommes-nous
   ========================================================================== */
.about { background: var(--gray-50); }

.about__inner {
  display: grid;
  gap: clamp(48px, 7vw, 80px);
  align-items: center;
}
@media (min-width: 960px) {
  .about__inner { grid-template-columns: 0.92fr 1.08fr; }
}

.about__media {
  position: relative;
  width: min(100%, 460px);
  margin-inline: auto;
}
.about__photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.about__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.about__video {
  position: relative;
  width: 66%;
  margin: -30% 0 0 auto;
}
.about__video .video-frame {
  border: 5px solid var(--gray-50);
  border-radius: 22px;
  box-shadow: 0 24px 44px -20px rgba(11, 20, 51, 0.55);
}
.about__video figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}
@media (min-width: 1100px) { .about__video { margin-right: -12%; } }

.about__story {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  font-size: 1.0625rem;
}
.about__lead {
  padding-left: 20px;
  border-left: 3px solid var(--blue-500);
  color: var(--ink);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem);
  font-weight: 500;
  line-height: 1.5;
}
.about__story strong { color: var(--ink); font-weight: 700; }

.values {
  display: grid;
  gap: 18px;
  margin-top: clamp(56px, 8vw, 88px);
}
@media (min-width: 560px) and (max-width: 899px) {
  .value {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 22px;
    align-items: start;
  }
  .value__icon { grid-row: span 2; margin-bottom: 0; }
}
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.value {
  padding: 28px 26px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.value__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 10px 20px -10px rgba(0, 41, 196, 0.8);
}
.value__icon .icon { width: 24px; height: 24px; }
.value__title {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.value p { color: var(--muted); }

/* ==========================================================================
   Vidéos (composant partagé)
   ========================================================================== */
.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  background: var(--navy-800);
}
.video-frame--landscape { aspect-ratio: 4 / 3; }
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  background: rgba(4, 11, 36, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s, transform 0.2s;
}
.video-toggle .icon { width: 20px; height: 20px; }
.video-toggle .icon--pause { display: none; }
.is-playing .video-toggle .icon--play { display: none; }
.is-playing .video-toggle .icon--pause { display: block; }

/* À l'arrêt (lecture auto bloquée, mise en pause, animations réduites) :
   gros bouton de lecture centré sur l'image d'aperçu. */
.media-video:not(.is-playing) .video-toggle {
  right: auto;
  bottom: auto;
  top: 50%;
  left: 50%;
  width: 66px;
  height: 66px;
  border: 0;
  background: var(--blue-500);
  box-shadow: 0 0 0 8px rgba(11, 108, 240, 0.28), 0 14px 30px -10px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
}
.media-video:not(.is-playing) .video-toggle .icon { width: 26px; height: 26px; margin-left: 3px; }
.media-video.is-loading .video-toggle { opacity: 0.85; }
.media-video.is-error .video-toggle { display: none; }

@media (hover: hover) {
  .video-toggle:hover { background: rgba(4, 11, 36, 0.8); }
  .media-video:not(.is-playing) .video-toggle:hover { background: var(--blue-600); transform: translate(-50%, -50%) scale(1.06); }
}

/* ==========================================================================
   E. En immersion
   ========================================================================== */
.immersion {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--navy-950);
  isolation: isolate;
}
.immersion__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 500px at 10% 0%, rgba(11, 108, 240, 0.28), transparent 60%),
    radial-gradient(700px 520px at 100% 60%, rgba(0, 41, 196, 0.32), transparent 60%);
}
.immersion .section__title { color: #fff; }
.immersion .section__lead { color: var(--on-dark-muted); }

.gallery__heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: clamp(8px, 2vw, 16px) 0 24px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: 0.01em;
}
.gallery__heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
}
.pairs + .immersion__note,
.reels-dots + .gallery__heading { margin-top: clamp(48px, 8vw, 80px); }

/* Vidéos : carrousel horizontal sur mobile, grille sur grand écran */
.reels {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-inline: calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.reel {
  flex: 0 0 min(72%, 300px);
  scroll-snap-align: start;
}
.reel--wide { flex-basis: min(88%, 420px); }
.reel figcaption { display: grid; gap: 4px; padding: 14px 4px 0; }
.reel figcaption strong { color: #fff; font-size: 1.02rem; line-height: 1.3; }
.reel figcaption span { color: var(--on-dark-muted); font-size: 0.92rem; line-height: 1.45; }

.reel--panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 20% 0%, rgba(47, 139, 255, 0.35), transparent 60%),
    rgba(255, 255, 255, 0.04);
}
.reel__logo { width: 150px; margin-bottom: 6px; }
.reel__panel-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.2;
  text-wrap: balance;
}
.reel__panel-text { color: var(--on-dark-muted); font-size: 0.98rem; }
.reel__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}
.reel__snap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.reel__snap .icon { color: var(--blue-300); }
.reel__snap strong { color: #fff; }
.reel__snap:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* Indicateur de position du carrousel (mobile) */
.reels-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.reels-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.3s var(--ease-out), background-color 0.3s;
}
.reels-dots span.is-active { width: 22px; background: var(--blue-400); }
@media (min-width: 640px) { .reels-dots { display: none; } }

@media (min-width: 640px) {
  .reels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
  .reel--wide,
  .reel--panel { grid-column: 1 / -1; }
  .reel--panel { padding: 32px; }
  .reel--wide .video-frame { aspect-ratio: 16 / 9; }
}
@media (min-width: 1000px) {
  /* Deux vidéos verticales à gauche ; vidéo du canapé + panneau Instagram à droite. */
  .reels { grid-template-columns: repeat(2, minmax(0, 300px)) minmax(0, 1fr); align-items: start; }
  .reel:not(.reel--wide):not(.reel--panel) { grid-row: span 2; }
  .reel--wide,
  .reel--panel { grid-column: 3; }
  .reel--wide .video-frame { aspect-ratio: 16 / 10; }
  .reel--panel { padding: 26px 30px; gap: 10px; }
  .reel--panel .reel__logo { display: none; }
  .reel__panel-title { font-size: 1.35rem; }
}

/* Avant / après */
.pairs {
  display: grid;
  gap: 20px;
}
@media (min-width: 700px) { .pairs { grid-template-columns: repeat(2, 1fr); } }
/* Paire en format paysage (canapé) : carte large. */
.pair--wide .shot { aspect-ratio: 4 / 3; }
@media (max-width: 699px) { .pair--wide .pair__shots { grid-template-columns: 1fr; } }
@media (min-width: 700px) { .pair--wide { grid-column: span 2; } }
@media (min-width: 700px) and (max-width: 1099px) {
  /* Carte seule sur sa ligne (calculé par main.js) : pleine largeur, horizontale. */
  .pair.is-lone {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px 24px;
  }
  .pair.is-lone .pair__body { padding: 8px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pair.is-shown { animation: rise 0.45s var(--ease-out) both; }
}
@media (min-width: 1100px) { .pairs { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

[hidden] { display: none !important; }

.filters {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.js .filters { display: flex; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--on-dark);
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.filter:hover { border-color: rgba(108, 180, 255, 0.6); }
.filter[aria-pressed="true"] { color: #fff; border-color: var(--blue-500); background: var(--blue-500); }
.filter__count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  background: rgba(255, 255, 255, 0.14);
}
.filter[aria-pressed="true"] .filter__count { background: rgba(255, 255, 255, 0.25); }

.pair {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}
.pair__shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: var(--navy-800);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.shot__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(4, 11, 36, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.shot__tag--after { background: var(--blue-500); }
@media (hover: hover) { .shot:hover img { transform: scale(1.05); } }

.pair__body { padding: 14px 8px 8px; }
.pair__body h4 { color: #fff; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.pair__body p { margin-top: 4px; color: var(--on-dark-muted); font-size: 0.92rem; line-height: 1.5; }

.immersion__note {
  color: var(--on-dark-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================================================
   F. Contact
   ========================================================================== */
.contact__panel {
  position: relative;
  display: grid;
  gap: 36px;
  overflow: hidden;
  padding: clamp(28px, 6vw, 64px);
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(600px 380px at 100% 0%, rgba(108, 180, 255, 0.3), transparent 60%),
    linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 60%, #0a58e4 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 41, 196, 0.8);
  isolation: isolate;
}
.contact__panel::before,
.contact__panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}
.contact__panel::before { width: 420px; height: 420px; right: -140px; bottom: -220px; }
.contact__panel::after { width: 260px; height: 260px; right: -60px; bottom: -140px; }
@media (min-width: 960px) {
  .contact__panel { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
}

.contact .eyebrow { color: #fff; }
.contact .section__title { color: #fff; }
.contact__lead { margin-top: 18px; color: rgba(255, 255, 255, 0.9); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem); }
.contact__tip { margin-top: 14px; color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; }

.contact__channels { display: grid; gap: 16px; }
.channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: rgba(4, 11, 36, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.channel__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  color: var(--blue-600);
  background: #fff;
}
.channel__icon .icon { width: 26px; height: 26px; }
.channel__info { display: grid; min-width: 0; }
.channel__label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.channel__handle {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.25;
}
.channel__copy {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.2s;
}
.channel__copy:hover { background: rgba(255, 255, 255, 0.12); }
.channel__copy .icon--check { display: none; }
.channel__copy.is-copied .icon--copy { display: none; }
.channel__copy.is-copied .icon--check { display: block; }
.channel__btn { grid-column: 1 / -1; width: 100%; border-radius: 16px; }
@media (max-width: 479px) {
  .contact__panel { padding: 28px 18px; border-radius: 26px; }
  .channel { padding: 14px; gap: 12px; }
  .channel__btn { padding-inline: 14px; font-size: 1rem; }
}

/* ==========================================================================
   G. Réseaux sociaux
   ========================================================================== */
.socials {
  padding-block: clamp(48px, 7vw, 72px);
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.socials__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.socials__title {
  color: var(--ink);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.2;
  text-wrap: balance;
}
.socials__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
}
.socials__snap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}
.socials__snap .icon { color: var(--blue-600); }
.socials__snap strong { color: var(--ink); }
.socials__snap:hover strong { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .socials__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ==========================================================================
   H. Pied de page
   ========================================================================== */
.footer {
  padding-top: clamp(56px, 8vw, 80px);
  color: var(--on-dark-muted);
  background: var(--navy-950);
  font-size: 0.95rem;
}
.footer__inner {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
}
@media (min-width: 760px) { .footer__inner { grid-template-columns: 1.5fr 1fr 1.2fr; } }

.footer__brand img { width: 160px; }
.footer__tag {
  margin-top: 12px;
  color: var(--blue-300);
  font-size: 0.72rem;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: 0.3em;
}
.footer__pitch { max-width: 30em; margin-top: 14px; }
.footer__heading {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer ul { display: grid; gap: 4px; }
.footer ul a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer ul a:hover { color: #fff; }
.footer ul .icon { color: var(--blue-300); }

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 14px;
  font-size: 0.85rem;
}
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__top .icon { color: var(--blue-300); transform: rotate(180deg); }
.footer__top:hover { color: #fff; }
.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Barre d'action mobile
   ========================================================================== */
.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 11, 36, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  visibility: hidden;
  transform: translateY(110%);
  transition: transform 0.35s var(--ease-out), visibility 0s 0.35s;
}
.action-bar.is-visible {
  visibility: visible;
  transform: none;
  transition: transform 0.35s var(--ease-out);
}
.action-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #0b66ec, var(--blue-600));
}
.action-bar__btn--snap { color: var(--ink); background: #fff; }
@media (min-width: 960px) { .action-bar { display: none; } }

/* ==========================================================================
   Visionneuse photo
   ========================================================================== */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(4, 11, 36, 0.98);
}
.lightbox::backdrop { background: rgba(4, 11, 36, 0.6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 72px 16px 96px;
}
.lightbox__img {
  width: auto;
  max-width: min(92vw, 760px);
  max-height: calc(100dvh - 190px);
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.lightbox__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  text-align: center;
}
.lightbox__count { color: var(--blue-300); font-weight: 700; font-variant-numeric: tabular-nums; }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { bottom: 24px; left: calc(50% - 60px); }
.lightbox__next { bottom: 24px; right: calc(50% - 60px); }
@media (min-width: 760px) {
  .lightbox__prev,
  .lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__prev { left: 24px; }
  .lightbox__next { right: 24px; }
}

/* ---------- Notification (copie du pseudo) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 150;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--ink);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s, transform 0.25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Animations (désactivées si l'utilisateur préfère réduire les animations)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .services__grid .reveal:nth-child(2),
  .values .reveal:nth-child(2),
  .reels .reveal:nth-child(2),
  .pairs .reveal:nth-child(2) { transition-delay: 0.1s; }
  .services__grid .reveal:nth-child(3),
  .values .reveal:nth-child(3),
  .reels .reveal:nth-child(3),
  .pairs .reveal:nth-child(3) { transition-delay: 0.2s; }

  /* Le hero s'anime au chargement, sans attendre le JavaScript. */
  .js .hero .reveal {
    opacity: 1;
    transform: none;
    animation: rise 0.9s var(--ease-out) both;
  }
  .js .hero .reveal:nth-child(2) { animation-delay: 0.08s; }
  .js .hero .reveal:nth-child(3) { animation-delay: 0.16s; }
  .js .hero .reveal:nth-child(4) { animation-delay: 0.24s; }
  .js .hero .reveal:nth-child(5) { animation-delay: 0.32s; }
  .js .hero__visual.reveal { animation-name: float-in; animation-delay: 0.15s; }

  .badge__ring { animation: spin 26s linear infinite; }
  .hero__scroll { animation: nudge 2.4s ease-in-out infinite; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
/* Sans fondu d'opacité : l'image du hero reste visible dès le premier
   affichage (meilleur LCP), seule sa position s'anime. */
@keyframes float-in {
  from { transform: translateY(30px) scale(0.97); }
  to { transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   Page 404
   ========================================================================== */
.page-404 {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: var(--on-dark);
  background:
    radial-gradient(800px 500px at 85% 0%, rgba(11, 108, 240, 0.35), transparent 60%),
    radial-gradient(700px 480px at 0% 100%, rgba(0, 41, 196, 0.4), transparent 60%),
    var(--navy-900);
}
.notfound {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 560px;
  padding: 48px var(--gutter);
  text-align: center;
}
.notfound__logo img { width: 200px; margin-bottom: 16px; }
.notfound .eyebrow { margin-bottom: 0; }
.notfound__title {
  color: #fff;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.1;
  text-wrap: balance;
}
.notfound__text { color: var(--on-dark-muted); margin-bottom: 10px; }
