/* ============================================================
   JASMORY — jasmory.tech
   Design system : dark aurora / Syne + Space Grotesk + Instrument Serif
   ============================================================ */

/* ---------- Fonts (auto-hébergées) ---------- */
@font-face {
  font-family: "Syne";
  src: url("/fonts/Syne-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("/fonts/Syne-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
/* Les accents sont des propriétés ENREGISTRÉES : le navigateur sait les
   interpoler -> le changement d'ambiance (data-theme) fond en douceur. */
@property --acc-1 { syntax: "<color>"; inherits: true; initial-value: #7c5cff; }
@property --acc-2 { syntax: "<color>"; inherits: true; initial-value: #00e5c3; }
@property --acc-3 { syntax: "<color>"; inherits: true; initial-value: #ff5ca8; }

:root {
  --bg: #07070b;
  --bg-2: #0c0c14;
  --ink: #f2f1ec;
  --muted: rgba(242, 241, 236, 0.55);
  --faint: rgba(242, 241, 236, 0.28);
  --line: rgba(242, 241, 236, 0.1);
  --acc-1: #7c5cff;   /* violet */
  --acc-2: #00e5c3;   /* teal   */
  --acc-3: #ff5ca8;   /* rose   */
  --grad: linear-gradient(100deg, var(--acc-1), var(--acc-2) 55%, var(--acc-3));
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  transition: --acc-1 0.9s ease, --acc-2 0.9s ease, --acc-3 0.9s ease;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --container: 1400px;
  /* padding qui centre le contenu au-delà de --container (header, full-bleed) */
  --pad-c: max(var(--pad), calc((100vw - var(--container)) / 2));
  --radius: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Ambiances colorées (bouton orbe du header) */
html[data-theme="braise"] {
  --acc-1: #ff7a3c;   /* orange braise */
  --acc-2: #ffd23c;   /* or            */
  --acc-3: #ff3c7a;   /* framboise     */
}
html[data-theme="glacier"] {
  --acc-1: #4c7dff;   /* bleu électrique */
  --acc-2: #6ff2e0;   /* menthe glacée   */
  --acc-3: #c04cff;   /* violet boréal   */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }

:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 4px; border-radius: 4px; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Préloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  pointer-events: none;
}
.preloader__curtain {
  position: absolute; left: 0; width: 100%; height: 50.5%;
  background: #0a0a10;
}
.preloader__curtain--a { top: 0; }
.preloader__curtain--b { bottom: 0; }
.preloader__inner {
  position: relative; z-index: 2; text-align: center;
}
.preloader__brand {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: -0.03em;
  display: flex; overflow: hidden;
}
.preloader__brand span { display: inline-block; transform: translateY(110%); }
.preloader__count {
  margin-top: 1rem;
  font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Curseur ---------- */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9500;
  pointer-events: none; border-radius: 50%;
  will-change: transform;
}
.cursor {
  width: 8px; height: 8px; background: #fff;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(242, 241, 236, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              border-color 0.35s, background-color 0.35s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: transparent;
  background: rgba(124, 92, 255, 0.18);
}
@media (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9600;
  width: 100%; height: 2px;
  background: var(--grad);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  display: flex; align-items: center; gap: 2.5rem;
  padding: 1.1rem var(--pad-c);
  transition: transform 0.5s var(--ease-out), background-color 0.4s, backdrop-filter 0.4s;
}
.header.is-hidden { transform: translateY(-100%); }
.header.is-scrolled {
  background: rgba(7, 7, 11, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header__logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.3rem; letter-spacing: -0.02em;
}
.header__logo sup { font-size: 0.55em; color: var(--acc-2); }
.header__nav { display: flex; gap: 1.8rem; margin-left: auto; }
.header__nav a {
  font-size: 0.92rem; color: var(--muted);
  transition: color 0.3s; position: relative;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--grad);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease-out);
}
.header__nav a:hover { color: var(--ink); }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.header__nav a.is-active { color: var(--ink); }
.header__nav a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- Orbe de changement d'ambiance ---------- */
.theme-orb {
  width: 30px; height: 30px; border-radius: 50%;
  border: 0; cursor: pointer; padding: 0;
  background: conic-gradient(from 40deg, var(--acc-1), var(--acc-2), var(--acc-3), var(--acc-1));
  box-shadow: 0 0 0 1px rgba(242, 241, 236, 0.18), 0 0 18px color-mix(in srgb, var(--acc-1) 45%, transparent);
  transition: box-shadow 0.4s, transform 0.4s var(--ease-out);
  flex: none;
}
.theme-orb:hover { transform: scale(1.15) rotate(40deg); }
.theme-orb:active { transform: scale(0.95); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.8rem; border-radius: 100px;
  font-family: var(--font-body); font-weight: 500; font-size: 0.95rem;
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  transition: color 0.35s, border-color 0.35s;
  cursor: pointer;
}
.btn__label { position: relative; z-index: 2; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--grad);
  transform: translateY(101%); border-radius: inherit;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; border-color: transparent; }
.btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--ghost { color: var(--ink); }
.btn--small { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.header .btn--small { display: inline-flex; }

/* ---------- Burger / menu ---------- */
.burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 8px;
  z-index: 8600;
}
.burger span {
  width: 26px; height: 2px; background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 8500;
  background: rgba(10, 10, 16, 0.98);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-out), visibility 0s 0.7s;
}
.menu.is-open { clip-path: inset(0 0 0% 0); visibility: visible; transition-delay: 0s; }
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__links a {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 4rem); letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu__links a:hover { color: var(--acc-2); }
.menu__links a em {
  font-size: 0.9rem; color: var(--faint); font-family: var(--font-body); font-style: normal;
}
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.15s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.22s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.29s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.36s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.43s; }
.menu__foot { margin-top: 3rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--pad) * 1.5) var(--pad-c) calc(var(--pad) * 1.2);
  overflow: clip;
}
#gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(7, 7, 11, 0.92) 30%, rgba(7, 7, 11, 0.35) 70%, transparent 100%),
    linear-gradient(180deg, rgba(7, 7, 11, 0.55), transparent 35%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; width: 100%; max-width: var(--container); }
.hero__eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2rem;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--acc-2);
  box-shadow: 0 0 12px var(--acc-2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.hero__title {
  font-size: clamp(3rem, 9vw, 8.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: none;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line__inner {
  display: inline-block; transform: translateY(110%);
  will-change: transform;
}
/* lettres magnétiques (enveloppées en JS après l'intro) */
.hero__title .ch { display: inline-block; will-change: transform; }
.hero__title em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-right: 0.06em;
}
/* une fois le titre découpé en lettres, le dégradé est porté par chaque
   lettre (Chrome ne peint pas background-clip:text sur descendants transformés) */
.hero__title em .ch {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__title .accent { color: var(--acc-2); }

.hero__bottom {
  display: flex; align-items: flex-end;
  gap: clamp(2.5rem, 7vw, 7rem); margin-top: 2.6rem; flex-wrap: wrap;
}
.hero__sub { max-width: 30rem; color: var(--muted); }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Cartes de preuve flottantes ---------- */
.hero__cards { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hfloat { position: absolute; will-change: transform; }
.hfloat--a { top: 21%; right: 12%; }
.hfloat--b { top: 40%; right: 26%; }
.hfloat--c { top: 58%; right: 9%; }
.hcard {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.95rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(242, 241, 236, 0.14);
  background: linear-gradient(150deg, rgba(24, 24, 36, 0.82), rgba(14, 14, 22, 0.72));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  animation: floaty 6.5s ease-in-out infinite;
}
.hfloat--b .hcard { animation-duration: 7.8s; animation-delay: -2.2s; }
.hfloat--c .hcard { animation-duration: 5.8s; animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-13px); } }
.hcard__dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--acc-2); box-shadow: 0 0 12px var(--acc-2);
  animation: pulse 2.4s ease-in-out infinite;
}
.hcard__txt { display: flex; flex-direction: column; gap: 0.1rem; }
.hcard__txt strong { font-size: 0.95rem; font-weight: 500; }
.hcard__txt small { color: var(--muted); font-size: 0.78rem; }
.hcard__big {
  font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hcard--stat { gap: 0.8rem; }
.hcard--stat small { color: var(--muted); font-size: 0.78rem; }
.hcard__bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.hcard__bars i {
  width: 5px; border-radius: 2px; background: var(--acc-1); opacity: 0.85;
  animation: barpulse 2.6s ease-in-out infinite;
}
.hcard__bars i:nth-child(1) { height: 30%; animation-delay: 0s; }
.hcard__bars i:nth-child(2) { height: 55%; animation-delay: 0.15s; }
.hcard__bars i:nth-child(3) { height: 40%; animation-delay: 0.3s; }
.hcard__bars i:nth-child(4) { height: 75%; animation-delay: 0.45s; }
.hcard__bars i:nth-child(5) { height: 55%; animation-delay: 0.6s; }
.hcard__bars i:nth-child(6) { height: 90%; animation-delay: 0.75s; }
.hcard__bars i:nth-child(7) { height: 100%; animation-delay: 0.9s; background: var(--acc-2); }
@keyframes barpulse { 50% { transform: scaleY(0.75); } }
.hcard__spark { width: 74px; height: 24px; flex: none; }

/* ---------- Badge circulaire rotatif ---------- */
.hero__badge {
  position: absolute; right: var(--pad-c); bottom: calc(var(--pad) * 1.15);
  width: 120px; height: 120px; z-index: 3;
  background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--muted);
}
.hero__badge svg { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.hero__badge text {
  font-family: var(--font-body); font-size: 11.5px;
  letter-spacing: 0.34em; fill: currentColor; text-transform: uppercase;
}
.hero__badge-arrow {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.5rem; color: var(--ink);
  transition: transform 0.35s var(--ease-out);
}
.hero__badge:hover { color: var(--acc-2); }
.hero__badge:hover .hero__badge-arrow { transform: translateY(6px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: clip; padding: 1.1rem 0;
  background: var(--bg-2);
}
.marquee__track {
  display: flex; align-items: center; gap: 2.5rem;
  width: max-content;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted);
}
.marquee__track i { color: var(--acc-1); font-style: normal; font-size: 0.9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections communes ---------- */
.section {
  padding: clamp(5rem, 12vw, 9rem) var(--pad); position: relative;
  max-width: calc(var(--container) + 2 * var(--pad));
  margin-inline: auto;
}
.section__head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 1.2rem; margin-bottom: 3rem;
  position: relative;
}
/* trait dégradé qui se dessine à l'entrée de chaque section (classe posée en JS) */
.section__head::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 100%; height: 1px; background: var(--grad);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1.2s var(--ease-out);
}
.section__head.is-drawn::before { transform: scaleX(1); }
.section__label {
  font-size: 0.85rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted);
}
.section__num {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.4rem; color: var(--acc-1);
}
.section__title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  letter-spacing: -0.03em;
  max-width: 20ch; margin-bottom: clamp(3rem, 7vw, 5rem);
}
.section__title em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; }
[data-split] .wi { display: inline-block; transform: translateY(110%); will-change: transform; }
/* Chrome ne peint pas background-clip:text sur des descendants transformés :
   quand le titre est splitté, le dégradé est porté par chaque mot. */
[data-split] em .wi {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Studio ---------- */
.studio__manifesto {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.8rem); line-height: 1.28; letter-spacing: -0.015em;
  max-width: 28ch;
}
.studio__manifesto .mw { opacity: 0.14; transition: none; }
.studio__aside {
  margin-top: 3.5rem; margin-left: auto; max-width: 26rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  color: var(--muted);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--acc-2); padding-bottom: 0.2rem;
  width: fit-content;
  transition: gap 0.3s var(--ease-out), color 0.3s;
}
.link-arrow::after { content: "→"; color: var(--acc-2); transition: transform 0.3s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------- Services ---------- */
.services__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem;
}
.card {
  position: relative; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  padding: clamp(1.6rem, 3vw, 2.6rem);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s;
}
/* accent propre à chaque carte */
.card:nth-child(1) { --card-acc: var(--acc-1); }
.card:nth-child(2) { --card-acc: var(--acc-2); }
.card:nth-child(3) { --card-acc: var(--acc-3); }
.card:nth-child(4) { --card-acc: #ffb85c; }
.card:hover { border-color: color-mix(in srgb, var(--card-acc) 45%, transparent); }
.card__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.9rem;
}
.card__icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  color: var(--card-acc);
  border: 1px solid color-mix(in srgb, var(--card-acc) 32%, transparent);
  background: color-mix(in srgb, var(--card-acc) 10%, transparent);
  transition: transform 0.4s var(--ease-out);
}
.card:hover .card__icon { transform: translateY(-3px) rotate(-4deg); }
.card__icon svg { width: 26px; height: 26px; }
.card__index {
  font-family: var(--font-serif); font-style: italic;
  color: var(--card-acc); font-size: 1.2rem;
}
.card h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.card p { color: var(--muted); max-width: 30rem; }
.card__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.6rem; list-style: none; }
.card__tags li {
  font-size: 0.78rem; letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem; border-radius: 100px;
  border: 1px solid var(--line); color: var(--muted);
}
.card__glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%),
              color-mix(in srgb, var(--card-acc, var(--acc-1)) 15%, transparent), transparent 65%);
  transition: opacity 0.4s;
}
.card:hover .card__glow { opacity: 1; }

/* ---------- Réalisations (horizontal) ---------- */
.works { position: relative; background: var(--bg-2); border-block: 1px solid var(--line); }
.works__pin {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  overflow: clip; padding: clamp(4rem, 8vw, 6rem) 0;
}
.works__head {
  width: 100%; max-width: calc(var(--container) + 2 * var(--pad));
  margin: 0 auto 3rem; padding: 0 var(--pad);
}
.works__track {
  display: flex; gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: 0 var(--pad-c);
  width: max-content;
  will-change: transform;
}
.work {
  width: min(68vw, 780px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg);
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.work:hover { border-color: rgba(242, 241, 236, 0.3); transform: translateY(-6px); }
.work__visual {
  position: relative; min-height: clamp(260px, 46vh, 460px);
  display: grid; place-items: center;
  transition: transform 0.6s var(--ease-out);
}
.work:hover .work__visual { transform: scale(1.04); }
.work__visual span {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 7vw, 6rem); color: rgba(255, 255, 255, 0.92);
  mix-blend-mode: overlay;
}
.work--a .work__visual { background: radial-gradient(120% 120% at 20% 20%, #7c5cff 0%, #241a4d 55%, #0c0c14 100%); }
.work--b .work__visual { background: radial-gradient(120% 120% at 80% 15%, #00e5c3 0%, #0d4a41 55%, #0c0c14 100%); }
.work--c .work__visual { background: radial-gradient(120% 120% at 30% 80%, #ff5ca8 0%, #4d1a33 55%, #0c0c14 100%); }
.work--d .work__visual { background: radial-gradient(120% 120% at 70% 75%, #ffb85c 0%, #4d371a 55%, #0c0c14 100%); }
.work__meta { padding: clamp(1.4rem, 2.6vw, 2.4rem); display: flex; flex-direction: column; gap: 0.7rem; }
.work__chip {
  width: fit-content; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 100px; border: 1px solid var(--line); color: var(--muted);
}
.work__chip--live { color: var(--acc-2); border-color: rgba(0, 229, 195, 0.4); }
.work h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.work__cat { font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--acc-1); }
.work__desc { color: var(--muted); flex: 1; }

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.stat { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.stat__value {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 0.7rem; color: var(--muted); font-size: 0.92rem; }

/* ---------- Bento « la preuve » ---------- */
.bento__grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "tool tool phone s1"
    "term s2   phone s3";
  grid-auto-rows: minmax(215px, auto);
}
.tile {
  position: relative; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  padding: clamp(1.3rem, 2.2vw, 1.9rem);
  overflow: hidden; min-width: 0;
  transition: border-color 0.4s, transform 0.45s var(--ease-out);
}
.tile:hover { border-color: rgba(242, 241, 236, 0.26); transform: translateY(-4px); }
.tile--tool { grid-area: tool; }
.tile--phone { grid-area: phone; padding: 0; display: flex; flex-direction: column; align-items: center; }
.tile--term { grid-area: term; }
.tile--stat:nth-of-type(3) { grid-area: s1; }
.tile--stat:nth-of-type(5) { grid-area: s2; }
.tile--stat:nth-of-type(6) { grid-area: s3; }
.tile h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.tile > p, .tile--stat p { color: var(--muted); font-size: 0.92rem; }
.tile__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin-top: 1.4rem; }
.tile__chips li {
  font-size: 0.85rem; letter-spacing: 0.03em;
  padding: 0.45rem 1rem; border-radius: 100px;
  border: 1px solid var(--line); color: var(--muted);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.tile__chips li:hover {
  color: var(--ink); border-color: var(--acc-1); transform: translateY(-2px);
}
.tile__big {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-variant-numeric: tabular-nums;
}
.tile__tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  position: absolute; top: 1.1rem; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.78rem; letter-spacing: 0.08em;
  padding: 0.4rem 0.95rem; border-radius: 100px;
  border: 1px solid rgba(242, 241, 236, 0.16);
  background: rgba(10, 10, 16, 0.75);
  z-index: 2;
}

/* Mockup téléphone (vrai screenshot FamilyPet+) */
.phone {
  position: relative;
  width: min(74%, 240px);
  margin-top: 4.2rem; margin-bottom: -3.5rem; /* dépasse du bas de la tuile */
  border-radius: 34px;
  border: 6px solid #1b1b26;
  background: #1b1b26;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform 0.5s var(--ease-out);
}
.tile--phone:hover .phone { transform: rotate(0deg) translateY(-8px); }
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; }
.phone__notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 13px; border-radius: 100px; background: #1b1b26; z-index: 2;
}

/* Mini-terminal animé */
.tile--term { background: linear-gradient(160deg, rgba(12, 14, 20, 0.9), rgba(8, 8, 14, 0.9)); }
.term {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem; line-height: 1.75; color: var(--muted);
  height: 100%; overflow: hidden;
}
.term__line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term__line--ok { color: var(--acc-2); }
.term__line--cmd { color: var(--ink); }
.term__caret {
  display: inline-block; width: 8px; height: 1em; vertical-align: text-bottom;
  background: var(--acc-2); animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ---------- FAQ ---------- */
.faq__list { max-width: 54rem; }
.faq__item {
  border-top: 1px solid var(--line);
  interpolate-size: allow-keywords; /* animation du details natif (Chrome 131+) */
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0.4rem;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--acc-2); }
.faq__icon {
  position: relative; width: 34px; height: 34px; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, background-color 0.3s;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.6px; background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease-out); }
.faq__item[open] .faq__icon { transform: rotate(45deg); border-color: var(--acc-2); background: rgba(0, 229, 195, 0.08); }
.faq__item::details-content {
  height: 0; overflow: clip;
  transition: height 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
}
.faq__item[open]::details-content { height: auto; }
.faq__body { padding: 0 0.4rem 1.6rem; }
.faq__body p { color: var(--muted); max-width: 46rem; }

/* ---------- Méthode ---------- */
.method__list { list-style: none; }
.method__step {
  display: grid; grid-template-columns: 6rem 1fr; gap: 2rem;
  padding: 2.1rem 1rem; border-top: 1px solid var(--line);
  align-items: start;
  transition: background-color 0.35s;
  border-radius: 12px 12px 0 0;
}
.method__step:hover { background: rgba(255, 255, 255, 0.025); }
.method__step:last-child { border-bottom: 1px solid var(--line); }
.method__num {
  font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--acc-1);
  transition: transform 0.35s var(--ease-out);
}
.method__step:hover .method__num { transform: translateX(6px); }
/* titre à gauche, description à droite : la rangée respire sans s'étirer */
.method__step > div {
  display: grid; grid-template-columns: min(23.5rem, 42%) 1fr;
  gap: clamp(1.2rem, 3vw, 3rem); align-items: start;
  min-width: 0; /* autorise la rangée à rétrécir sous le min-content du titre */
}
.method__step > div > * { min-width: 0; }
.method__step h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -0.02em;
  hyphens: auto; overflow-wrap: break-word;
}
.method__step p { color: var(--muted); max-width: 38rem; }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(6rem, 14vw, 11rem) var(--pad);
  max-width: calc(var(--container) + 2 * var(--pad));
  margin-inline: auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
  position: relative; overflow: clip;
}
.contact::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(50% 50% at 50% 100%, rgba(124, 92, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.contact__title { font-size: clamp(2.8rem, 8vw, 6.75rem); letter-spacing: -0.035em; }
.contact__title em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.contact__sub { color: var(--muted); max-width: 34rem; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 2.4rem);
  padding: 1.2rem 2.4rem; margin-top: 1rem;
  border: 1px solid var(--line); border-radius: 100px;
  transition: border-color 0.35s, background-color 0.35s, color 0.35s;
}
.contact__mail svg { width: 1em; height: 1em; transition: transform 0.35s var(--ease-out); }
.contact__mail:hover { border-color: var(--acc-2); background: rgba(0, 229, 195, 0.07); }
.contact__mail:hover svg { transform: translateX(8px); color: var(--acc-2); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 1.5rem;
  background: var(--bg-2);
  overflow: clip;
}
.footer__grid {
  display: flex; gap: clamp(2.5rem, 8vw, 7rem); flex-wrap: wrap;
  max-width: var(--container); margin: 0 auto clamp(3rem, 6vw, 5rem);
}
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col span {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 0.4rem;
}
.footer__col a { color: var(--muted); transition: color 0.3s; width: fit-content; }
.footer__col a:hover { color: var(--ink); }
.footer__brand {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4rem, 17vw, 16rem); line-height: 0.9; letter-spacing: -0.04em;
  text-align: center;
  color: rgba(242, 241, 236, 0.1);
  user-select: none;
  transform: translateY(0.12em);
}
/* chaque lettre est enveloppée en JS pour la vague au survol */
.footer__brand .bl { display: inline-block; will-change: transform; transition: color 0.4s; }
.footer__brand:hover .bl { color: rgba(242, 241, 236, 0.22); }

/* ---------- Statut / horloge ---------- */
.footer__status {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--muted); font-size: 0.95rem;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--acc-2);
  box-shadow: 0 0 10px var(--acc-2);
  animation: pulse 2.4s ease-in-out infinite;
}
.footer__time { color: var(--faint); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.footer__legal {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid var(--line); padding-top: 1.3rem;
  max-width: var(--container); margin-inline: auto;
  color: var(--faint); font-size: 0.85rem;
}
.to-top {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: none; color: var(--ink);
  cursor: pointer; font-size: 1.1rem;
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.to-top:hover { background: var(--acc-1); border-color: var(--acc-1); transform: translateY(-4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .work { width: min(82vw, 720px); }
  .bento__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "tool  tool"
      "phone s1"
      "phone term"
      "s2    s3";
  }
}
@media (max-width: 640px) {
  .bento__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "tool" "phone" "s1" "term" "s2" "s3";
  }
  .tile--phone { min-height: 380px; }
}
@media (max-width: 900px) {
  .header__nav, .header .btn--small { display: none; }
  .burger { display: flex; margin-left: auto; }
  .services__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .method__step { grid-template-columns: 4rem 1fr; gap: 1.2rem; padding-inline: 0.4rem; }
  .method__step > div { grid-template-columns: 1fr; gap: 0.5rem; }
  .studio__aside { margin-left: 0; }
}
@media (max-width: 700px) {
  /* Réalisations : pile verticale, pas de scroll horizontal */
  .works__pin { min-height: 0; }
  .works__track { width: 100%; flex-direction: column; }
  .work { width: 100%; grid-template-columns: 1fr; }
  .work__visual { min-height: 200px; }
  .hero__badge { display: none; }
}
@media (max-width: 1180px) {
  .hero__cards { display: none; }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__title .line__inner, [data-split] .wi { transform: none !important; }
  .preloader { display: none; }
  body.is-loading { overflow: auto; }
  .cursor, .cursor-ring { display: none; }
  .studio__manifesto .mw { opacity: 1; }
}
