/* ==========================================================================
   Levelus — feuille de style
   Direction : éditorial brutaliste sur gris chaud (canvas #e5e5e5)
   ========================================================================== */

:root {
  /* Couleurs */
  --black: #000000;
  --white: #ffffff;
  --canvas: #e5e5e5;
  --mist: #f3f3f3;
  --ash: #c6c6c6;
  --smoke: #979797;
  --slate: #444444;
  --graphite: #2f2f2f;
  --mint: #d1ffca;
  --volt: #fff100;
  --red: #ff1a05; /* rouge du logo, réservé aux micro-accents */

  /* Typographie */
  --font-display: "Anton", "Bebas Neue", "Barlow Condensed", Impact, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-display-xl: clamp(60px, 10.6vw, 136px);
  --text-display: clamp(48px, 7.2vw, 96px);

  /* Espacements & formes */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --section-gap: clamp(80px, 11vw, 144px);
  --radius-btn: 8px;
  --radius-card: 32px;
  --radius-arc: 64px;
  --radius-pill: 48px;

  /* Mouvement */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--volt); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
  border-radius: 4px;
}
[data-theme="dark"] :focus-visible { outline-color: var(--white); }

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 16px; border-radius: var(--radius-btn);
  background: var(--black); color: var(--white);
  transform: translateY(-200%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

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

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: -0.03em;
  font-weight: 400;
  text-transform: uppercase;
}

.display-xl,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -0.012em;
}
.display-xl { font-size: var(--text-display-xl); }
.display { font-size: var(--text-display); }

.red-dot { color: var(--red); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  margin-bottom: 24px;
}
.label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.label-light { color: var(--smoke); }

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 64px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-mint { background: var(--mint); color: var(--black); }

.pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1fa83a;
}
.pulse::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: .7; }
  to { transform: scale(3.2); opacity: 0; }
}

/* Lien texte */
.text-link {
  position: relative;
  display: inline-flex;
  gap: 8px;
  font-weight: 500;
  padding-bottom: 2px;
}
.text-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.text-link:hover::after { transform: scaleX(1); transform-origin: left; }
.text-link span { transition: transform .5s var(--ease-out); }
.text-link:hover span { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.011em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--graphite);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn-dark:hover::before { transform: none; }

.btn-ghost {
  padding-inline: 20px;
  border: 1.5px solid var(--slate);
  border-radius: 4px;
  color: var(--slate);
}
.btn-ghost:hover { background: var(--black); border-color: var(--black); color: var(--white); }

/* Texte qui « roule » au survol */
.btn-roll { display: inline-block; overflow: hidden; height: 1em; line-height: 1; }
.btn-roll > span {
  position: relative;
  display: block;
  transition: transform .5s var(--ease-out);
}
.btn-roll > span::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 100%;
}
.btn:hover .btn-roll > span,
.btn:focus-visible .btn-roll > span { transform: translateY(-100%); }

.btn-arrow {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

[data-magnetic] { will-change: translate; }

/* --------------------------------------------------------------------------
   Chargement
   -------------------------------------------------------------------------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--canvas);
  border-radius: 0 0 0 0;
  transition: transform 1s var(--ease-in-out), border-radius 1s var(--ease-in-out);
}
.loader.is-leaving { transform: translateY(-105%); border-radius: 0 0 var(--radius-arc) var(--radius-arc); }
.loader.is-gone { display: none; }

.loader-mark {
  position: relative;
  width: clamp(180px, min(24vw, 40vh), 320px);
  aspect-ratio: 188 / 241.23;
  transform: scale(.7);
  animation: mark-grow 1.6s var(--ease-out) forwards;
  transition: scale 1s var(--ease-in-out);
}
.loader.is-leaving .loader-mark { scale: 1.15; }
@keyframes mark-grow { to { transform: scale(1); } }
.loader-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-chev { fill: var(--black); clip-path: inset(100% 0 0 0); animation: wipe-up .8s var(--ease-out) .1s forwards; }
.loader-swoosh { fill: var(--red); clip-path: inset(100% 0 0 0); animation: wipe-up .7s var(--ease-out) .55s forwards; }
.loader-dot circle { fill: var(--red); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .5s var(--ease-out) 1.05s forwards; }
.loader-word path {
  fill: var(--black);
  opacity: 0;
  transform: translateY(8px);
  animation: letter-in .5s var(--ease-out) forwards;
  animation-delay: calc(.75s + var(--i) * 60ms);
}
.loader-word path.us { fill: var(--red); }
@keyframes letter-in { to { opacity: 1; transform: none; } }
@keyframes wipe-up { to { clip-path: inset(0 0 0 0); } }
@keyframes pop { 60% { transform: scale(1.6); } to { transform: scale(1); } }

.loader-meta {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; justify-content: space-between;
  color: var(--slate);
}
.loader-count { font-size: 14px; color: var(--black); }

/* --------------------------------------------------------------------------
   Barre de progression
   -------------------------------------------------------------------------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 120;
  height: 3px;
  pointer-events: none;
}
.progress span {
  display: block; height: 100%;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(0);
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: 8rem;
  display: flex; align-items: center;
  transition: height .5s var(--ease-out), transform .6s var(--ease-out);
}
.site-header.is-compact { height: 88px; }
.site-header.is-hidden { transform: translateY(-110%); }

.header-inner {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--white);
}
.emblem { width: 30px; height: auto; overflow: visible; }
.em-chev { fill: var(--black); }
.em-swoosh, .em-dot { fill: var(--red); }
.em-dot { transform-box: fill-box; transform-origin: center; }
.brand:hover .em-dot { animation: dot-hop .7s var(--ease-out); }
@keyframes dot-hop {
  35% { transform: translate(7px, -9px) scale(1.25); }
  100% { transform: none; }
}
.brand-name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand-name .us { color: var(--red); }

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--white);
}
.nav-pill a {
  position: relative;
  z-index: 1;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  transition: color .3s;
}
.nav-pill a:hover, .nav-pill a.is-active { color: var(--black); }
.nav-indicator {
  position: absolute;
  top: 6px; bottom: 6px; left: 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--canvas);
  opacity: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s;
}

.header-cta { justify-self: end; }
.site-header.on-dark .header-cta { background: var(--white); color: var(--black); }
.site-header.on-dark .header-cta::before { background: var(--mint); }

.menu-toggle {
  display: none;
  justify-self: end;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--black);
  position: relative;
}
.menu-toggle-bar {
  position: absolute; left: 16px; right: 16px;
  height: 2px;
  background: var(--white);
  transition: transform .5s var(--ease-out);
}
.menu-toggle-bar:nth-of-type(2) { transform: translateY(-4px); }
.menu-toggle-bar:nth-of-type(3) { transform: translateY(4px); }
.menu-open .menu-toggle-bar:nth-of-type(2) { transform: rotate(45deg); }
.menu-open .menu-toggle-bar:nth-of-type(3) { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 90;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 40px;
  padding: 120px var(--gutter) 40px;
  background: var(--black);
  color: var(--white);
  clip-path: circle(0 at calc(100% - 42px) 64px);
  transition: clip-path .8s var(--ease-in-out);
}
.mobile-menu[hidden] { display: flex; visibility: hidden; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 42px) 64px); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0; }
.mobile-menu nav a {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(48px, 13vw, 88px);
  line-height: 1.12;
  text-transform: uppercase;
  transform: translateY(40px);
  opacity: 0;
  transition: transform .7s var(--ease-out), opacity .7s var(--ease-out), color .3s;
}
.mobile-menu nav a .mono { color: var(--smoke); padding-top: .6em; }
.mobile-menu nav a:hover { color: var(--mint); }
.menu-open .mobile-menu nav a { transform: none; opacity: 1; }
.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: .25s; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .3s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .35s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .4s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .45s; }
.mobile-menu-mail { align-self: flex-start; background: var(--volt); color: var(--black); padding: 4px 8px; font-weight: 500; }
.menu-open .site-header .brand { background: var(--white); }
.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(8rem + 24px);
  display: flex;
  flex-direction: column;
}
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.hero-tag { margin-bottom: 32px; }
.hero-title { margin-bottom: 32px; }

.line {
  display: block;
  overflow: hidden;
  /* marge pour ne pas rogner les accents (É) */
  padding-top: .12em;
  margin-top: -.12em;
}
.line-inner { display: block; }

.hero-lead {
  max-width: 470px;
  font-size: 18px;
  line-height: 1.33;
  color: var(--slate);
  margin-bottom: 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 32px;
}
.hero-pillars { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--slate); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; color: var(--slate); }
.scroll-cue-line {
  position: relative;
  width: 1.5px; height: 40px;
  background: var(--ash);
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--black);
  animation: cue 1.8s var(--ease-in-out) infinite;
}
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(250%); } }

/* Entrée du hero (après chargement) */
.js .hero .line-inner { transform: translateY(105%); }
.js [data-hero-item] { opacity: 0; transform: translateY(24px); }
.js .scene { opacity: 0; transform: scale(.92); }

.is-loaded .hero .line-inner { transform: none; transition: transform 1.2s var(--ease-out); }
.is-loaded .hero .line:nth-child(2) .line-inner { transition-delay: .08s; }
.is-loaded .hero .line:nth-child(3) .line-inner { transition-delay: .16s; }
.is-loaded [data-hero-item] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) .35s, transform 1s var(--ease-out) .35s; }
.is-loaded .hero-tag[data-hero-item] { transition-delay: .1s; }
.is-loaded .hero-foot[data-hero-item] { transition-delay: .6s; }
.is-loaded .scene { opacity: 1; transform: none; transition: opacity 1.2s var(--ease-out) .2s, transform 1.6s var(--ease-out) .2s; }

/* --------------------------------------------------------------------------
   Rendu 3D : cubes « niveaux »
   -------------------------------------------------------------------------- */
.scene {
  --s: clamp(104px, 11.5vw, 156px);
  position: relative;
  height: clamp(380px, 46vw, 600px);
  perspective: 1600px;
  perspective-origin: 50% 40%;
}
.scene-shadow {
  position: absolute;
  left: 50%; top: 76%;
  width: 70%; height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0));
  filter: blur(6px);
  transform: translate(-50%, -50%);
}
.stack {
  --rx: -22deg;
  --ry: -34deg;
  --spread: 1;
  position: absolute;
  left: 50%; top: 48%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translate3d(0, var(--py, 0px), 0) rotateX(var(--rx)) rotateY(var(--ry));
}
.cube-pos {
  position: absolute;
  transform-style: preserve-3d;
  transform: translate3d(calc(var(--x) * var(--spread)), calc(var(--y) * var(--spread)), calc(var(--z) * var(--spread)));
}
.cube-a { --x: calc(var(--s) * -1.05); --y: calc(var(--s) * .62); --z: calc(var(--s) * .35); }
.cube-b { --x: 0px; --y: 0px; --z: 0px; }
.cube-c { --x: calc(var(--s) * 1.05); --y: calc(var(--s) * -.62); --z: calc(var(--s) * -.35); }

.cube-float {
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}
.cube-b .cube-float { animation-delay: -2s; }
.cube-c .cube-float { animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

.cube {
  position: absolute;
  left: calc(var(--s) / -2); top: calc(var(--s) / -2);
  width: var(--s); height: var(--s);
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
  cursor: pointer;
}
.cube-pos:hover .cube { transform: translate3d(0, -22px, 0); }

.face {
  --fs: var(--s);
  position: absolute;
  /* 0,5 px de débord de chaque côté : les faces se chevauchent aux arêtes,
     plus de fente claire entre deux faces */
  left: -.5px; top: -.5px;
  width: calc(var(--fs) + 1px); height: calc(var(--fs) + 1px);
  background-color: var(--face);
  background-image: var(--grain);
  background-size: 160px 160px;
  backface-visibility: hidden;
  /* Contour transparent : oblige le navigateur à lisser (anti-crénelage) les
     bords des éléments transformés en 3D, au lieu d'un bord « en escalier » */
  outline: 1px solid transparent;
}
/* Arête supérieure qui accroche la lumière */
.cube > .face.top { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.cube--graphite > .face.top { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cube > .face.front { transform: translateZ(calc(var(--s) / 2)); }
.cube > .face.right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube > .face.top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }

/* Grain « béton » (bruit SVG) */
.scene {
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .3 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.cube--concrete .top { --face: #d9d8d3; }
.cube--concrete .front { --face: #c4c3be; }
.cube--concrete .right { --face: #a9a8a3; }

.cube--graphite .top { --face: #3b3b3b; }
.cube--graphite .front { --face: #1d1d1d; }
.cube--graphite .right { --face: #0b0b0b; }
.cube--graphite .face { color: var(--white); }

.cube--paper .top { --face: #ffffff; }
.cube--paper .front { --face: #f1f1ef; }
.cube--paper .right { --face: #dcdcd8; }

.face.front, .face.right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--s) * .09);
}
.face-meta {
  font-family: var(--font-mono);
  font-size: clamp(8px, .75vw, 11px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  opacity: .75;
}
.face-label {
  font-family: var(--font-display);
  font-size: calc(var(--s) * .36);
  line-height: .85;
  text-transform: uppercase;
}
.face-emblem { width: 46%; margin: auto; }

/* Protubérances colorées */
.nub {
  --n: calc(var(--s) * .34);
  position: absolute;
  left: calc(50% - var(--n) / 2); top: calc(50% - var(--n) / 2);
  width: var(--n); height: var(--n);
  transform-style: preserve-3d;
  transform: translate3d(calc(var(--s) * .12), calc(var(--s) / -2 - var(--n) / 2), calc(var(--s) * -.08));
  transition: transform .8s var(--ease-out);
}
.nub .face { --fs: var(--n); background-image: none; }
.nub > .face.front { transform: translateZ(calc(var(--n) / 2)); }
.nub > .face.right { transform: rotateY(90deg) translateZ(calc(var(--n) / 2)); }
.nub > .face.top { transform: rotateX(90deg) translateZ(calc(var(--n) / 2)); }
.nub--mint .top { --face: #e6ffe1; }
.nub--mint .front { --face: #c4f7bb; }
.nub--mint .right { --face: #a3dd98; }
.nub--yellow .top { --face: #fff86a; }
.nub--yellow .front { --face: #f2e400; }
.nub--yellow .right { --face: #c9be00; }
.nub--yellow { transform: translate3d(calc(var(--s) * -.14), calc(var(--s) / -2 - var(--n) / 2), calc(var(--s) * .1)); }
.cube-pos:hover .nub { transform: translate3d(calc(var(--s) * .12), calc(var(--s) / -2 - var(--n) / 2 - 18px), calc(var(--s) * -.08)); }
.cube-pos:hover .nub--yellow { transform: translate3d(calc(var(--s) * -.14), calc(var(--s) / -2 - var(--n) / 2 - 18px), calc(var(--s) * .1)); }

/* Sphère rouge (le point du logo), toujours face à la caméra */
.sphere {
  --r: calc(var(--s) * .38);
  position: absolute;
  left: calc(50% - var(--r) / 2); top: calc(50% - var(--r) / 2);
  width: var(--r); height: var(--r);
  transform: translate3d(0, calc(var(--s) * -.86), 0) rotateY(calc(var(--ry) * -1)) rotateX(calc(var(--rx) * -1));
}
.sphere span {
  display: block; width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ff9a8a 0%, #ff1a05 34%, #c41200 68%, #6e0a00 100%);
  animation: bob 4s ease-in-out infinite;
  transition: transform .8s var(--ease-out);
}
.cube-pos:hover .sphere span { transform: translateY(-26px) scale(1.08); }
@keyframes bob { 50% { translate: 0 -10px; } }

/* --------------------------------------------------------------------------
   Bandeau défilant
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 2;
  margin: 24px -2vw 0;
  padding: 22px 0;
  background: var(--black);
  color: var(--white);
  transform: rotate(-2deg);
  overflow: hidden;
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  text-transform: uppercase;
  padding-inline: clamp(20px, 2.4vw, 36px);
  white-space: nowrap;
}
.marquee i {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-gap); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  grid-template-areas: "label label" "title intro";
  align-items: end;
  gap: 0 40px;
  margin-bottom: 64px;
}
.section-head .label { grid-area: label; }
.section-head .display { grid-area: title; }
.section-intro {
  grid-area: intro;
  font-size: 18px;
  line-height: 1.33;
  color: var(--slate);
  padding-bottom: 6px;
}
.count {
  font-size: 14px;
  vertical-align: top;
  position: relative;
  top: .4em;
  margin-left: 8px;
  color: var(--slate);
}

/* Mots découpés (titres) */
.w {
  display: inline-block;
  overflow: hidden;
  padding-top: .12em;
  margin-top: -.12em;
  vertical-align: top;
}
.w > span { display: inline-block; }
/* Dans Anton, l'accent du É monte à 1,11 em (capitales : 0,86 em) : une ligne qui
   contient une majuscule accentuée reçoit l'espace nécessaire pour ne pas toucher
   la ligne précédente. Préférez des titres sans accent après la première ligne. */
.display .w--acc, .display-xl .w--acc { margin-top: .1em; }
.js [data-split] .w > span { transform: translateY(105%); }
.js [data-split].is-in .w > span {
  transform: none;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 60ms);
}

/* Apparitions génériques */
.js [data-reveal] { opacity: 0; transform: translateY(32px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services { padding-top: calc(var(--section-gap) + 24px); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 380px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease-out);
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--black);
  clip-path: circle(0% at var(--mx) var(--my));
  transition: clip-path .7s var(--ease-out);
}
.service-card:hover { color: var(--white); }
.service-card:hover::before { clip-path: circle(150% at var(--mx) var(--my)); }
.js .service-card[data-reveal].is-in { transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), color .5s var(--ease-out); transition-delay: var(--d, 0s), var(--d, 0s), 0s; }

.service-top { display: flex; justify-content: space-between; align-items: flex-start; color: var(--smoke); margin-bottom: auto; }
.service-icon {
  width: 52px; height: 52px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  color: var(--black);
  transition: color .5s;
}
.service-card:hover .service-icon { color: var(--mint); }
.service-card:hover .service-icon > * { stroke-dasharray: 1; animation: draw 1s var(--ease-out) forwards; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.service-card h3 {
  margin-top: 56px;
  margin-bottom: 14px;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.1;
  font-weight: 450;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.service-card p { color: var(--slate); line-height: 1.33; transition: color .5s; }
.service-card:hover p { color: var(--ash); }

.service-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.arrow-circle {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--black);
  transition: transform .6s var(--ease-out), background-color .4s;
}
.arrow-circle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card:hover .arrow-circle { background: var(--white); transform: rotate(45deg); }

/* --------------------------------------------------------------------------
   Méthode — section inversée, défilement horizontal épinglé
   -------------------------------------------------------------------------- */
.method {
  position: relative;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-arc) var(--radius-arc) 0 0;
}
.method-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  gap: 48px;
  overflow: hidden;
  padding-block: 112px 88px;
}
.method-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.method-meter { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; color: var(--smoke); min-width: 200px; }
.method-meter b { color: var(--white); font-weight: 500; }
.method-bar { position: relative; width: 200px; height: 2px; background: var(--graphite); overflow: hidden; }
.method-bar span { position: absolute; inset: 0; background: var(--mint); transform-origin: left; transform: scaleX(.25); }

.method-viewport { width: 100%; }
.method-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  will-change: transform;
}
.step-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(300px, 34vw, 440px);
  height: clamp(380px, 52vh, 500px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--graphite);
  color: var(--white);
  overflow: hidden;
  transition: background-color .6s var(--ease-out), color .6s var(--ease-out);
}
.step-card.is-active { background: var(--white); color: var(--black); }
.step-top { display: flex; justify-content: space-between; align-items: center; color: var(--smoke); }
.step-num {
  position: absolute;
  right: 22px; top: 64px;
  font-family: var(--font-display);
  font-size: clamp(140px, 16vw, 220px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28);
  transition: -webkit-text-stroke-color .6s, color .6s, transform .8s var(--ease-out);
}
.step-card.is-active .step-num { -webkit-text-stroke-color: var(--black); }
.step-card:hover .step-num { transform: translateY(-8px) rotate(-4deg); }
.step-card h3 {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1;
  font-weight: 450;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step-card p { color: var(--ash); line-height: 1.33; transition: color .6s; }
.step-card.is-active p { color: var(--slate); }
.step-card .step-deliv { margin-top: 18px; color: var(--smoke); }

/* Sans épinglage (mobile, mouvement réduit) */
.method.no-pin .method-pin { position: relative; height: auto; overflow: visible; padding-block: 96px 128px; }
.method.no-pin .method-track { flex-direction: column; width: 100%; padding-inline: var(--gutter); transform: none !important; }
.method.no-pin .step-card { width: 100%; height: auto; min-height: 320px; gap: 40px; }

/* --------------------------------------------------------------------------
   Cartes à dôme (coins supérieurs arrondis)
   -------------------------------------------------------------------------- */
.arc-card {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--radius-arc) * -1);
  border-radius: var(--radius-arc) var(--radius-arc) 0 0;
  background: var(--canvas);
}

/* --------------------------------------------------------------------------
   Projets
   -------------------------------------------------------------------------- */
.project-list { border-top: 1px solid var(--ash); }
.project-list li { border-bottom: 1px solid var(--ash); }
.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 48px;
  align-items: center;
  gap: 24px;
  padding: 28px 24px;
  isolation: isolate;
  transition: color .5s var(--ease-out);
}
.project-row::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--black);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .6s var(--ease-out);
}
.project-row:hover, .project-row:focus-visible { color: var(--white); }
.project-row:hover::before, .project-row:focus-visible::before { transform: scaleY(1); }
.project-num { color: var(--smoke); }
.project-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.14; /* « ÉDUCATIVE » peut passer à la ligne sur mobile */
  text-transform: uppercase;
  transition: transform .7s var(--ease-out);
}
.project-row:hover .project-title { transform: translateX(16px); }
.project-tags { color: var(--smoke); text-align: right; }
.project-arrow {
  font-size: 28px;
  justify-self: end;
  transform: translateX(-12px) rotate(-45deg);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s;
}
.project-row:hover .project-arrow { transform: none; opacity: 1; color: var(--mint); }

/* Aperçu flottant */
.preview {
  position: fixed; left: 0; top: 0;
  z-index: 60;
  width: 320px; height: 220px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
}
.preview-inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 24px;
  overflow: hidden;
  transform: scale(.4);
  transition: transform .6s var(--ease-out);
}
.preview.is-on .preview-inner { transform: scale(1); }
.pv {
  position: absolute; inset: 0;
  padding: 16px;
  opacity: 0;
  transition: opacity .3s;
}
.pv.is-current { opacity: 1; }
.pv-bar { display: flex; gap: 5px; margin-bottom: 14px; }
.pv-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--ash); }

.pv-shop { background: var(--white); }
.pv-shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pv-shop-grid b { aspect-ratio: 3 / 4; border-radius: 10px; background: var(--canvas); }
.pv-shop-grid b:nth-child(2) { background: var(--mint); }
.pv-shop-grid b:nth-child(3) { background: var(--black); }
.pv-shop-grid b:nth-child(4) { background: var(--volt); }
.pv-shop-cta { margin-top: 14px; display: inline-block; padding: 10px 14px; border-radius: 6px; background: var(--black); color: var(--white); font-size: 12px; font-weight: 500; }

.pv-edu { background: var(--mint); display: grid; place-items: center; }
.pv-phone { width: 128px; height: 200px; margin-top: 40px; padding: 14px 12px; border-radius: 20px; background: var(--black); color: var(--white); }
.pv-phone p { font-family: var(--font-mono); font-size: 8px; color: var(--smoke); margin: 8px 0 6px; text-transform: uppercase; }
.pv-edu-progress { height: 4px; border-radius: 4px; background: var(--graphite); overflow: hidden; }
.pv-edu-progress span { display: block; width: 35%; height: 100%; background: var(--mint); }
.pv-edu-q { height: 22px; border-radius: 4px; background: var(--graphite); margin-bottom: 8px; }
.pv-edu-a { height: 18px; border-radius: 9px; background: var(--graphite); margin-bottom: 6px; font-size: 7px; line-height: 18px; padding-inline: 8px; }
.pv-edu-a.ok { background: var(--mint); color: var(--black); }

.pv-site { background: var(--canvas); }
.pv-site-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; height: 150px; }
.pv-site-hero span { font-family: var(--font-display); font-size: 40px; line-height: .9; text-transform: uppercase; }
.pv-site-img { height: 100%; border-radius: 14px; background: var(--black); position: relative; overflow: hidden; }
.pv-site-img::after { content: ""; position: absolute; width: 46px; height: 46px; border-radius: 50%; background: var(--red); right: 16px; top: 16px; }

.pv-dash { background: var(--black); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.pv-dash-kpi span { font-family: var(--font-display); font-size: 48px; line-height: 1; color: var(--mint); }
.pv-dash-kpi small { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--smoke); text-transform: uppercase; }
.pv-dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.pv-dash-bars b { flex: 1; height: calc(var(--h) * 100%); border-radius: 6px 6px 0 0; background: var(--graphite); }
.pv-dash-bars b:last-child { background: var(--mint); }

.pv-soft { background: var(--canvas); padding: 20px; }
.pv-soft-win { display: flex; flex-direction: column; height: 100%; border-radius: 12px; background: var(--white); overflow: hidden; }
.pv-soft-title { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--black); color: var(--white); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
.pv-soft-title i { width: 7px; height: 7px; border-radius: 50%; background: var(--graphite); }
.pv-soft-title i:first-child { background: var(--red); }
.pv-soft-title span { margin-left: 8px; }
.pv-soft-body { flex: 1; display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 10px; }
.pv-soft-side, .pv-soft-table { display: flex; flex-direction: column; gap: 6px; }
.pv-soft-side b { height: 10px; border-radius: 4px; background: var(--canvas); }
.pv-soft-side b.on { background: var(--black); }
.pv-soft-table b { height: 17px; border-radius: 4px; background: var(--mist); }
.pv-soft-table b.hl { background: var(--mint); }

/* --------------------------------------------------------------------------
   Pourquoi nous — bento
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
  perspective: 1200px;
}
.bento-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--white);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out);
}
.js .bento-card[data-reveal].is-in {
  transition: opacity 1s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--d, 0s), 0s;
}
.bento-card > .mono { color: var(--smoke); }
.bento-card p { color: var(--slate); line-height: 1.33; }
.bento-card h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  font-weight: 450;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.bento-dark { grid-column: span 2; grid-row: span 2; background: var(--black); color: var(--white); }
.bento-dark p { color: var(--smoke); }
.bento-dark h3 { font-size: clamp(32px, 3.6vw, 48px); max-width: 14ch; }
.bento-dark .em-chev { fill: var(--white); }
.bento-emblem { width: clamp(110px, 14vw, 170px); overflow: visible; }
.bento-dark:hover .em-dot { animation: dot-orbit 1.4s var(--ease-in-out); }
@keyframes dot-orbit {
  30% { transform: translate(18px, -26px) scale(1.4); }
  60% { transform: translate(-6px, 6px) scale(.9); }
  100% { transform: none; }
}
.bento-mist { background: var(--mist); }
.bento-perf h3 { font-size: clamp(22px, 2vw, 28px); margin-top: 16px; }

.bento-figure {
  font-family: var(--font-display);
  font-size: clamp(64px, 6.2vw, 92px);
  line-height: .9;
  color: var(--black) !important;
  display: flex; align-items: baseline;
}
.bento-figure small { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--slate); }

.bento-phones { display: flex; align-items: flex-end; gap: 10px; height: 96px; }
.bento-phones i { width: 40px; border-radius: 9px; background: var(--black); transition: transform .7s var(--ease-out); }
.bento-phones i:nth-child(1) { height: 60%; background: var(--ash); }
.bento-phones i:nth-child(2) { height: 80%; background: var(--smoke); }
.bento-phones i:nth-child(3) { height: 100%; position: relative; }
.bento-phones i:nth-child(3)::after { content: ""; position: absolute; left: 50%; top: 8px; width: 10px; height: 3px; border-radius: 2px; background: var(--mint); transform: translateX(-50%); }
.bento-mist:hover .bento-phones i:nth-child(1) { transform: translateY(-10px); }
.bento-mist:hover .bento-phones i:nth-child(2) { transform: translateY(-18px); }
.bento-mist:hover .bento-phones i:nth-child(3) { transform: translateY(-26px); }

.speed { display: flex; flex-direction: column; gap: 12px; }
.speed-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; color: var(--slate); }
.speed-bar { height: 10px; border-radius: 10px; background: var(--canvas); overflow: hidden; }
.speed-bar b { display: block; height: 100%; border-radius: inherit; background: var(--black); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease-out) .3s; }
.speed-row:nth-child(2) b { transition-delay: .45s; }
.speed-row:nth-child(3) b { transition-delay: .6s; background: var(--mint); }
.bento-perf.is-in .speed-bar b, .no-js .speed-bar b { transform: scaleX(var(--w)); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { padding-block: 96px var(--section-gap); }
.arc-white { background: var(--white); margin-top: 0; }
.contact-title { margin-bottom: 64px; max-width: 12ch; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) auto;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.contact-copy > p:first-child { font-size: 20px; line-height: 1.3; color: var(--slate); margin-bottom: 40px; }
.contact-mail { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-mail .mono { color: var(--smoke); }
.volt {
  position: relative;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 450;
  letter-spacing: -0.03em;
  background: linear-gradient(var(--volt), var(--volt)) no-repeat 0 100% / 100% 30%;
  padding: 0 4px;
  transition: background-size .5s var(--ease-out);
}
.volt:hover { background-size: 100% 100%; }

.orb {
  position: relative;
  display: grid; place-items: center;
  width: clamp(200px, 22vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
}
.orb-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  animation: spin 14s linear infinite;
}
.orb-ring text { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; fill: var(--black); }
.orb-core {
  display: grid; place-items: center; align-content: center; gap: 6px;
  width: 64%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-weight: 500;
  transition: transform .6s var(--ease-out), background-color .4s, color .4s;
}
.orb-core svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); }
.orb:hover .orb-core { transform: scale(1.1); background: var(--mint); color: var(--black); }
.orb:hover .orb-core svg { transform: rotate(45deg); }
.orb:hover .orb-ring { animation-duration: 5s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 3;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-arc) var(--radius-arc) 0 0;
  margin-top: calc(var(--radius-arc) * -1);
  padding-top: 72px;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand img { width: 110px; height: auto; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ash); }
.footer-col .mono { color: var(--smoke); margin-bottom: 6px; }
.footer-col a { position: relative; transition: color .3s; }
.footer-col a:hover { color: var(--mint); }

.footer-word {
  font-family: var(--font-display);
  font-size: clamp(96px, 25.5vw, 360px);
  line-height: .9;
  padding: .02em 0 .04em;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 48px 0 0;
  color: var(--white);
  white-space: nowrap;
}
.footer-word .ch { display: inline-block; }
.footer-word .ch.us { color: var(--red); }
.js .footer-word .ch { transform: translateY(var(--fy, 100%)); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 0 28px;
  border-top: 1px solid var(--graphite);
  color: var(--smoke);
}
.back-top { transition: color .3s; }
.back-top:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-pill, .header-cta { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-dark { grid-row: auto; }
}

@media (max-width: 900px) {
  :root { --radius-arc: 40px; }
  .site-header { height: 96px; }
  .hero { padding-top: 112px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .scene { height: clamp(320px, 80vw, 460px); --s: clamp(84px, 21vw, 130px); }
  .section-head { grid-template-columns: 1fr; grid-template-areas: "label" "title" "intro"; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; justify-items: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .project-row { grid-template-columns: 36px minmax(0, 1fr) 32px; padding: 22px 8px; }
  .project-tags { display: none; }
  .method-head { flex-direction: column; align-items: flex-start; }
  .method-meter { align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero-title { font-size: min(21vw, 120px); }
  .services-grid, .bento { grid-template-columns: 1fr; }
  .bento-dark { grid-column: auto; }
  .service-card { min-height: 340px; padding: 24px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
  .marquee { padding: 16px 0; }
  .marquee i { width: 10px; height: 10px; }
  .brand-name { font-size: 15px; }

  /* Pied de page centré */
  .footer-top { grid-template-columns: 1fr; justify-items: center; gap: 40px; text-align: center; }
  .footer-brand { grid-column: auto; }
  .footer-col { align-items: center; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
}

/* Écrans tactiles : pas d'effets réservés au survol */
@media (hover: none) {
  .preview { display: none; }
}

/* --------------------------------------------------------------------------
   Mouvement réduit
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .loader { display: none; }
  .js .hero .line-inner, .js [data-hero-item], .js .scene,
  .js [data-split] .w > span, .js [data-reveal] { transform: none; opacity: 1; }
  .js .footer-word .ch { transform: none; }
  .speed-bar b { transform: scaleX(var(--w)); }
}
