/* ==========================================================================
   ylaia studio — feuille de style
   Palette & typographies reprises de NIO Creative Studio
   ========================================================================== */

:root {
  --white: #ffffff;
  --off: #f2f2f2;
  --off2: #f5f5f7;
  --ink: #141414;
  --ink2: #1d1d1f;
  --ink3: #262626;
  --black: #000000;
  --sage: #8a9883;
  --sage-l: #c7ccb9;
  --olive: #76825a;
  --grey: #a3a3a3;
  --grey2: #b3b3b3;
  --grey-d: #616162;
  --line: #dcdcdc;
  --lime: #b1ff4a;

  --font-display: 'Covered By Your Grace', 'Comic Sans MS', cursive;
  --font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-grot: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-dm: 'DM Mono', 'Roboto Mono', monospace;

  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body { overscroll-behavior: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-mono);
  background: var(--white);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--sage); color: #fff; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.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; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 10000; background: var(--ink); color: #fff; padding: 12px 16px; font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; transition: top .3s; }
.skip-link:focus { top: 16px; }

/* Grain */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 9000;
  background: url(../assets/img/noise.png) repeat;
  opacity: .05;
  animation: grain 8s steps(10) infinite;
}
/* Le calque fait 200 % du viewport : chaque saut reste < 25 % de sa taille pour ne jamais découvrir un bord */
@keyframes grain {
  0%,100% { transform: translate(0,0) } 10% { transform: translate(-3%,-6%) } 20% { transform: translate(-8%,3%) }
  30% { transform: translate(4%,-12%) } 40% { transform: translate(-3%,12%) } 50% { transform: translate(-8%,5%) }
  60% { transform: translate(8%,0) } 70% { transform: translate(0,8%) } 80% { transform: translate(2%,16%) } 90% { transform: translate(-6%,5%) }
}

/* Lignes verticales (grille) */
.lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(to right, var(--lc) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  background-position: -1px 0;
}
[data-theme="dark"] { --lc: rgba(255,255,255,.07); }
[data-theme="light"] { --lc: rgba(0,0,0,.07); }

/* ---------- Typo utilitaires ---------- */
.label {
  display: inline-block;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase;
}
.label--sage { color: var(--sage); }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  padding-bottom: 5px;
}
.link span { transition: transform .4s var(--ease-out); display: inline-block; }
.link:hover span { transform: translate(3px,-3px); }
.link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Bouton Nio (coin coupé) */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px; background: var(--ink); color: #fff;
  font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); /* remplacé par le contour « papier déchiré » en JS */
  overflow: hidden; transition: color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--sage);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn > span { position: relative; z-index: 1; }
.btn--lg { padding: 20px 32px; font-size: 13px; }

.corners { position: relative; }
.corners::before, .corners::after {
  content: "+"; position: absolute; top: -.35em;
  font: 400 18px/1 var(--font-mono); color: var(--grey);
}
.corners::before { left: -.2em; }
.corners::after { right: -.2em; }

.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); margin-right: 10px; vertical-align: middle;
  box-shadow: 0 0 10px var(--lime);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Curseur ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; width: 0; height: 0; }
.cursor__ring {
  position: absolute; left: -16px; top: -16px; width: 32px; height: 32px;
  border: 1px solid #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  mix-blend-mode: difference;
  transition: transform .4s var(--ease-out), background .3s, border-color .3s;
}
.cursor__label {
  font: 400 8px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase;
  color: #000; opacity: 0; transition: opacity .2s; white-space: nowrap; transform: translateY(.5px);
}
.cursor.is-hover .cursor__ring { transform: scale(1.8); }
.cursor.has-label .cursor__ring { transform: scale(2.3); background: #fff; }
.cursor.has-label .cursor__label { opacity: 1; transition-delay: .15s; }
.cursor.has-label + .cursor-dot { opacity: 0; }   /* le point ne barre pas le libellé */
.cursor-dot { transition: opacity .2s; }
.cursor-dot {
  position: fixed; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference; z-index: 9999; pointer-events: none;
}
@media (hover: none) { .cursor, .cursor-dot { display: none; } }
/* Avec une souris : seul le curseur personnalisé (anneau + point) est visible */
@media (hover: hover) and (pointer: fine) { html, body, a, button, input, select, textarea, label, [data-cursor], .physics, .physics:active { cursor: none !important; } }
@media (prefers-reduced-motion: reduce) { html, body, a, button, input, select, textarea, label, [data-cursor], .physics { cursor: auto !important; } .cursor, .cursor-dot { display: none; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 2000; color: #fff; pointer-events: none;
  padding: 28px var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
}
/* Deux rideaux : ils s'ouvrent du centre vers les bords */
/* Chaque rideau porte 3 des 6 colonnes de la grille (lignes 1 px, plus fines que le bord sauge de 2 px) */
.preloader__curtain {
  position: absolute; top: 0; bottom: 0; width: calc(50% + 1px); will-change: transform;
  background-color: var(--ink);
  background-image: linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: calc(100% / 3) 100%; background-position: -1px 0;
}
.preloader__curtain--l { left: 0; }
.preloader__curtain--r { right: 0; }
.preloader__curtain--l::after, .preloader__curtain--r::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--sage); opacity: .7; }
.preloader__curtain--l::after { right: 0; }
.preloader__curtain--r::after { left: 0; }
.preloader__brand {
  font-family: var(--font-display); font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: -.02em;
  position: relative; z-index: 1;
}
.preloader__brand span { color: var(--sage); }
.preloader__meta {
  position: absolute; left: var(--gutter); bottom: 36px;
  font: 400 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grey2);
}
.preloader__count {
  align-self: flex-end; position: relative; z-index: 1;
  font-family: var(--font-display); font-size: clamp(90px, 16vw, 240px); line-height: .85; letter-spacing: -.03em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter);
  pointer-events: none;
  transition: transform .6s var(--ease);
}
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-120%); }
body[data-nav="dark"] { --nav-c: #fff; --nav-c2: #b3b3b3; --nav-btn-bg: #f2f2f2; --nav-btn-c: #141414; }
body[data-nav="light"] { --nav-c: #141414; --nav-c2: #8d8d8d; --nav-btn-bg: #141414; --nav-btn-c: #fff; }
.nav__brand {
  font-family: var(--font-display); font-size: 32px; line-height: 1; text-transform: uppercase; letter-spacing: -.02em;
  color: var(--nav-c); transition: color .5s;
}
.nav__brand span { color: var(--sage); }
.nav__clock { font: 700 12px var(--font-mono); letter-spacing: .06em; color: var(--nav-c2); transition: color .5s; }
.nav__menu {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--nav-btn-bg); color: var(--nav-btn-c);
  font: 700 12px/1 var(--font-grot); letter-spacing: .06em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background .5s, color .5s;
}
.nav__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); transition: background .4s, transform .4s; }
body.menu-open .nav__menu { --nav-btn-bg: #141414; --nav-btn-c: #fff; }
body.menu-open .nav__dot { background: var(--lime); transform: scale(1.3); }
body.menu-open .nav__brand { color: #141414; }
body.menu-open .nav__clock { color: #8d8d8d; }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 800; background: var(--off); color: var(--ink);
  --lc: rgba(0,0,0,.07);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  display: flex; flex-direction: column;
  padding: 96px var(--gutter) 32px;
  overflow-y: auto; overscroll-behavior: contain;   /* secours : défile si l'écran est vraiment bas */
}
.menu { --menu-fs: clamp(40px, min(8.6vw, 11vh), 136px); }
.menu__list {
  flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid rgba(0,0,0,.15); position: relative; z-index: 1;
}
.menu__item { position: relative; border-bottom: 1px solid rgba(0,0,0,.15); overflow: hidden; }
.menu__link {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  padding: .06em 0;
  font-family: var(--font-display); font-size: var(--menu-fs); line-height: 1;
  text-transform: uppercase; letter-spacing: -.02em;
}
.menu__num { font: 400 12px var(--font-mono); color: var(--grey); letter-spacing: .1em; }
.menu__band {
  position: absolute; inset: 0; background: var(--sage); color: #f2f2f2;
  display: flex; align-items: center; overflow: hidden; pointer-events: none;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.menu__item:hover .menu__band, .menu__item:focus-within .menu__band { transform: translateY(0); }
.menu__band-track {
  display: flex; white-space: nowrap; will-change: transform;
  font-family: var(--font-display); font-size: var(--menu-fs); line-height: 1; text-transform: uppercase;
  animation: marq 14s linear infinite;
}
.menu__band-track span { padding-right: .3em; }
@keyframes marq { to { transform: translateX(-50%); } }
.menu__foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  padding-top: 28px; position: relative; z-index: 1;
}
.menu__statement { max-width: 380px; font: 400 12px/1.8 var(--font-mono); color: var(--grey-d); }
.planet { width: 96px; height: 96px; color: var(--ink); }
.planet svg { width: 100%; height: 100%; overflow: visible; }
.planet__spin { transform-origin: 50% 50%; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.menu__contact { justify-self: end; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font: 400 12px var(--font-mono); }
.menu__loc { color: var(--grey-d); letter-spacing: .04em; text-transform: uppercase; }
.menu__socials { display: flex; gap: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sage); }
.menu__socials a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  background: var(--ink); color: #fff; overflow: hidden;
  padding: 112px var(--gutter) 44px;
  display: flex;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg canvas { width: 100%; height: 100%; display: block; }
.hero__inner {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; gap: 24px;
}
.hero__center { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3vh; padding: 2vh 0 4vh; }
.hero__avail { font: 400 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--grey2); }
.hero__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 18.5vw, 340px); line-height: .9; letter-spacing: -.03em;
  margin: 0; width: 100%; text-align: center;
}
.hero__line { display: flex; justify-content: center; align-items: baseline; gap: .28em; overflow: hidden; padding: .04em 0 .1em; }
.hero__txt { display: inline-block; }
.hero__txt--sage { color: var(--sage); }
.hero__foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 32px; }
.hero__tag { display: flex; flex-direction: column; gap: 14px; color: var(--grey2); }
.hero__tag .label { color: #f2f2f2; letter-spacing: .1em; }
.hero__tag .label b { color: var(--sage); font-weight: 700; }
.hero__scroll { font: 400 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.hero__loc { font: 400 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--grey2); text-align: center; padding-bottom: 2px; }
.hero__about { justify-self: end; max-width: 440px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hero__about p { font: 400 13px/1.8 var(--font-mono); color: var(--grey); }
.hero__about-label { color: var(--grey2); }

/* ---------- Bandeau photo ---------- */
.band { position: relative; height: 100vh; background: var(--ink); overflow: hidden; }
.band__clip { position: absolute; inset: 0; clip-path: inset(0 8% 0 8%); will-change: clip-path; }
.band__img {
  position: absolute; inset: -14% 0;
  background: url(../assets/img/tokyo-crossing.jpg) center / cover no-repeat;
  will-change: transform;
}
.band__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,20,20,.55), rgba(20,20,20,.2) 45%, rgba(20,20,20,.75)); }
.band__title {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  color: #f2f2f2; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 8vw, 150px); line-height: .95; text-transform: uppercase; letter-spacing: -.02em;
  padding: 0 6vw;
}

/* ---------- À propos ---------- */
.section-pad { padding: clamp(96px, 13vw, 200px) var(--gutter); }
.about { position: relative; background: var(--off); color: var(--ink); padding: clamp(96px, 13vw, 200px) var(--gutter); }
.about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.about__big { font: 500 clamp(28px, 3.4vw, 54px)/1.12 var(--font-grot); letter-spacing: -.015em; margin-top: 22px; text-transform: uppercase; }
.about__p { font: 400 13px/1.85 var(--font-mono); color: var(--grey-d); margin-top: 18px; max-width: 520px; }
.about__img { margin-top: 56px; aspect-ratio: 4 / 3; overflow: hidden; }
.about__img img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
/* Bords irréguliers (papier déchiré) : polygone de découpe généré en JS */
.rough { position: relative; width: 100%; height: 100%; overflow: hidden; }
.about__side { padding-top: clamp(0px, 6vw, 96px); }
.about__facts { margin-top: 48px; border-top: 1px solid var(--line); }
.about__facts li {
  display: flex; gap: 20px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 700 clamp(16px, 1.5vw, 22px) var(--font-grot); text-transform: uppercase; letter-spacing: -.01em;
}
.about__facts li span { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--sage); }

/* ---------- Process (cartes empilées) ---------- */
.process { --pad: clamp(96px, 13vw, 200px); --title: clamp(44px, 6.5vw, 112px); position: relative; background: var(--ink); color: #fff; padding: var(--pad) var(--gutter) 14vh; }
.process__head { position: static; z-index: 1; display: block; max-width: 760px; margin-bottom: 12vh; }
.process__title { font-family: var(--font-display); font-weight: 400; font-size: var(--title); line-height: .95; text-transform: uppercase; letter-spacing: -.02em; margin-top: 18px; white-space: nowrap; }
.process__p { font: 400 13px/1.85 var(--font-mono); color: var(--grey); margin-top: 24px; max-width: 540px; }
/* Badge centré sur la 6e colonne de la grille (91,7 % de la largeur de la section) */
/* top = padding + label (15px) + marge du titre (18px) + demi-hauteur du titre (2 lignes × .95) − demi-badge */
.badge { position: absolute; z-index: 1; top: calc(var(--pad) + 33px + var(--title) * 0.95 - 90px); left: calc(100% / 12 * 11 - 90px); width: 180px; height: 180px; color: #f2f2f2; }
.badge svg { width: 100%; height: 100%; overflow: visible; }
.badge__spin { transform-origin: 100px 100px; animation: spin 18s linear infinite; }
.badge__text { font-family: var(--font-display); font-size: 25px; fill: currentColor; text-transform: uppercase; letter-spacing: .02em; }

.pcards { position: relative; z-index: 1; }
.pcard {
  position: sticky; top: 11vh;
  min-height: 66vh; margin-bottom: 9vh;
  background: var(--off); color: var(--ink);
  padding: clamp(24px, 4vw, 56px);
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto 1fr auto; gap: 24px;
  overflow: hidden; transform-origin: 50% 0; will-change: transform, filter;
}
.pcard:nth-child(2) { top: 13vh; }
.pcard:nth-child(3) { top: 15vh; }
.pcard:nth-child(4) { top: 17vh; }
.pcard--sage { background: var(--sage); color: var(--ink); }
.pcard__top { grid-column: 1; grid-row: 1; position: relative; z-index: 1; }
.pcard__step { display: block; font: 500 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.pcard--sage .pcard__step { color: var(--off); }
.pcard__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 7vw, 120px); line-height: .9; text-transform: uppercase; letter-spacing: -.02em; }
.pcard__text { grid-column: 2; grid-row: 1; justify-self: end; max-width: 420px; text-align: right; font: 400 13px/1.85 var(--font-mono); position: relative; z-index: 1; }
.pcard--sage .pcard__text { color: #1d1d1f; }
.pcard__tags { grid-column: 1; grid-row: 3; align-self: end; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 700 12px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; position: relative; z-index: 1; }
.pcard__tags li::before { content: "//"; color: var(--sage); margin-right: 6px; }
.pcard--sage .pcard__tags li::before { color: var(--off); }
.pcard__link { grid-column: 2; grid-row: 3; justify-self: end; align-self: end; position: relative; z-index: 1; }
.pcard__num {
  position: absolute; right: 1vw; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: clamp(160px, 24vw, 420px); line-height: 1;
  color: rgba(20,20,20,.1); pointer-events: none; z-index: 0;
}
.pcard--sage .pcard__num { color: rgba(242,242,242,.22); }

/* ---------- Marquee géant ---------- */
.marquee { position: relative; background: var(--black); color: #f2f2f2; padding: 3.5vh 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; white-space: nowrap; will-change: transform; width: max-content; }
.marquee__half { display: flex; font-family: var(--font-display); font-size: clamp(64px, 10vw, 170px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.marquee__half span { padding-right: .35em; }
.marquee i { color: var(--sage); font-style: normal; }

/* ---------- Services intro ---------- */
.sintro {
  position: relative; background: var(--white); color: var(--ink);
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 18vh var(--gutter) 16vh; gap: 28px;
}
.sintro > * { position: relative; z-index: 1; }
.sintro__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(46px, 7.6vw, 132px); line-height: .95; text-transform: uppercase; letter-spacing: -.02em; padding: 0 1em; }
.sintro__word { color: var(--sage); display: inline-block; text-align: left; }
.caret { display: inline-block; width: .05em; height: .8em; background: var(--ink); vertical-align: -.05em; margin-left: .06em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sintro__p { max-width: 520px; font: 400 13px/1.85 var(--font-mono); color: var(--grey-d); }

/* ---------- Panneaux services ---------- */
.panels { position: relative; overflow-x: clip; }
.panel {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  transform-origin: 50% 100%; will-change: transform;
}
.panel__inner {
  height: 100%; padding: clamp(24px, 5vh, 56px) var(--gutter) clamp(20px, 4vh, 40px);
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto 1fr auto auto; gap: 16px 32px;
  will-change: transform, opacity;
}
.panel--1 { background: var(--sage-l); color: var(--ink); }
.panel--2 { background: var(--sage); color: var(--ink); }
.panel--3 { background: var(--olive); color: #f2f2f2; }
.panel--4 { background: var(--ink); color: #f2f2f2; }
.panel__text { grid-column: 1; grid-row: 1; display: flex; gap: 18px; align-items: flex-start; max-width: 520px; font: 400 13px/1.8 var(--font-mono); }
.panel--3 .panel__text, .panel--4 .panel__text { color: rgba(242,242,242,.8); }
.panel__num { font-family: var(--font-display); font-size: 26px; line-height: 1; flex: 0 0 auto; }
.panel__media { grid-column: 2; grid-row: 1 / 3; justify-self: end; align-self: center; width: min(38vw, 560px); aspect-ratio: 4 / 3; overflow: hidden; }
.panel__media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.panel__title {
  grid-column: 1 / -1; grid-row: 3; align-self: end;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 10.5vw, 190px); line-height: .84; text-transform: uppercase; letter-spacing: -.03em;
}
.panel__title--long { font-size: clamp(44px, 9vw, 170px); }
.panel__foot { grid-column: 1 / -1; grid-row: 4; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.panel__cap { font: 400 12px var(--font-mono); letter-spacing: .02em; opacity: .8; }

/* ---------- Projets ---------- */
.projects { position: relative; background: var(--white); color: var(--ink); padding: clamp(96px, 13vw, 200px) 0 0; }
.projects__head { position: relative; z-index: 1; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 8vh; }
.projects__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 8vw, 140px); line-height: .9; text-transform: uppercase; letter-spacing: -.02em; margin-top: 18px; }
.projects__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.projects__intro .about__p { margin-top: 0; }
.projects__pin { position: relative; z-index: 1; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.ptrack { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); padding: 0 var(--gutter); will-change: transform; }
.proj {
  position: relative; flex: 0 0 auto; width: min(64vw, 920px); aspect-ratio: 2 / 1; overflow: hidden;
  background: var(--ink); color: #fff; display: block;
}
.proj img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1s var(--ease-out); }
.proj:hover img { transform: scale(1); }
.proj::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 45%); }
.proj__idx { position: absolute; right: 34px; top: 30px; z-index: 2; font: 400 12px var(--font-mono); letter-spacing: .1em; color: rgba(255,255,255,.8); }
.proj__meta { position: absolute; left: 34px; bottom: 32px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.proj__name { font: 600 clamp(18px, 1.8vw, 26px) var(--font-grot); text-transform: uppercase; letter-spacing: -.02em; }
.proj__tag { font: 400 12px var(--font-mono); text-transform: uppercase; color: rgba(242,242,242,.7); letter-spacing: .02em; }

/* ---------- Fondateur ---------- */
.founder { position: relative; background: var(--off); color: var(--ink); padding: clamp(96px, 13vw, 200px) var(--gutter); }
.founder__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.founder__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 6.5vw, 110px); line-height: .95; text-transform: uppercase; letter-spacing: -.02em; }
.founder__title span { color: var(--sage); }
.founder__photo { position: relative; width: min(100%, 380px); aspect-ratio: 3 / 4; overflow: hidden; margin-top: 36px; }
.founder__photo img { width: 100%; height: 118%; object-fit: cover; filter: grayscale(1); transition: filter .8s; will-change: transform; }
.founder__photo:hover img { filter: grayscale(0); }
.founder__hover { position: absolute; left: 22px; bottom: 20px; font: 400 10px var(--font-mono); letter-spacing: .1em; color: rgba(255,255,255,.75); text-transform: uppercase; }
.founder__statement { font: 500 clamp(26px, 3vw, 46px)/1.1 var(--font-grot); text-transform: uppercase; letter-spacing: -.015em; }
.founder__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }
.founder__cols h3 { font: 700 14px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.founder__cols p { font: 400 13px/1.85 var(--font-mono); color: var(--grey-d); }
.founder__cols p + p { margin-top: 10px; }

/* ---------- Barre « décodage » (scanner gauche → droite) ---------- */
.decode { margin-top: 48px; display: flex; justify-content: flex-start; }
.decode__bar {
  position: relative; width: min(560px, 100%); height: 58px; border-radius: 6px; overflow: hidden; /* contour « papier déchiré » appliqué en JS */
  background: var(--ink3); color: #b3b3b3;
  display: flex; align-items: center; justify-content: center;
  font: 500 15px var(--font-dm); letter-spacing: .16em; text-transform: none;
}
.decode__reveal {
  position: absolute; inset: 0; background: var(--sage-l); color: var(--olive);
  display: flex; align-items: center; justify-content: center; text-transform: uppercase;
  clip-path: inset(0 100% 0 0); will-change: clip-path, opacity;
}
.decode__edge {
  position: absolute; top: -4px; bottom: -4px; left: 0; width: 90px; margin-left: -90px; opacity: 0;
  background: linear-gradient(to right, rgba(177,255,74,0), rgba(177,255,74,.08) 45%, rgba(177,255,74,.55));
  border-right: 2px solid var(--lime); box-shadow: 6px 0 18px rgba(177,255,74,.45); will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .decode__reveal { clip-path: none; }
  .decode__edge { display: none; }
}

/* ---------- Offres ---------- */
.offers { position: relative; background: var(--white); color: var(--ink); padding: clamp(96px, 13vw, 200px) var(--gutter); }
.offers__title { position: relative; z-index: 1; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: clamp(46px, 7vw, 120px); line-height: .95; text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 28px; }
.offers__intro { position: relative; z-index: 1; text-align: center; max-width: 620px; margin: 0 auto 8vh; font: 400 13px/1.85 var(--font-mono); color: var(--grey-d); }
.offers__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1320px; margin: 0 auto; align-items: stretch; }
.offer {
  position: relative; display: flex; flex-direction: column;
  background: var(--off); color: var(--ink);
  padding: clamp(30px, 2.8vw, 44px);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); /* remplacé par le contour « papier déchiré » en JS */
  transition: transform .6s var(--ease-out), background .6s;
}
.offer:hover { transform: translateY(-6px); background: #eef0ea; }
.offer--featured { background: var(--ink); color: #f2f2f2; }
.offer--featured:hover { background: var(--ink2); }
.offer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; padding-right: 28px; }
.offer__num { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--sage); }
.offer__badge { font: 700 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--sage-l); padding: 7px 10px; }
.offer__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 2.9vw, 46px); line-height: .95; text-transform: uppercase; letter-spacing: -.01em; margin-top: 16px; }
.offer__for { margin-top: 14px; font: 400 12.5px/1.75 var(--font-mono); color: var(--grey-d); }
.offer--featured .offer__for { color: var(--grey2); }
.offer__list { margin-top: 24px; border-top: 1px solid var(--line); flex: 1; }
.offer__list li { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font: 400 12.5px/1.6 var(--font-mono); }
.offer__list li::before { content: "//"; color: var(--sage); font-weight: 700; flex: 0 0 auto; }
.offer--featured .offer__list, .offer--featured .offer__list li { border-color: rgba(255,255,255,.14); }
.offer__foot { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; }
.offer__price { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--sage); }
.offer__note { font: 400 11px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--grey); }
.offer__foot .btn { margin-top: 18px; align-self: flex-start; }
.btn--light { background: #f2f2f2; color: var(--ink); }
.btn--light:hover { color: #fff; }
.offers__trust {
  position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 44px;
  margin: 48px auto 0; font: 500 11px/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grey-d);
}
.offers__trust li::before { content: "✦"; color: var(--sage); margin-right: 8px; }

/* ---------- FAQ ---------- */
.faq { position: relative; background: var(--off); color: var(--ink); padding: clamp(96px, 13vw, 200px) var(--gutter); }
.faq__title { position: relative; z-index: 1; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: clamp(46px, 7vw, 120px); line-height: .95; text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 8vh; }
.faq__list { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; border: 1px solid var(--line); background: var(--white); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 24px; text-align: left;
  font: 500 15px/1.4 var(--font-grot); text-transform: uppercase; letter-spacing: -.01em;
  transition: color .3s;
}
.faq__q:hover, .faq__item.is-open .faq__q { color: var(--sage); }
.faq__icon { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: currentColor; transition: transform .5s var(--ease); }
.faq__icon::before { left: 0; top: 6px; width: 14px; height: 1.5px; }
.faq__icon::after { left: 6px; top: 0; width: 1.5px; height: 14px; }
.faq__item.is-open .faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::before { transform: rotate(180deg); }
.faq__a { height: 0; overflow: hidden; }
.faq__a p { padding: 0 24px 26px; font: 400 12px/1.95 var(--font-mono); color: var(--grey); text-transform: uppercase; letter-spacing: .04em; max-width: 820px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; background: var(--white); color: var(--ink);
  min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 16vh var(--gutter); gap: 36px;
}
.cta > * { position: relative; z-index: 1; }
.cta__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(60px, 11vw, 190px); line-height: .88; text-transform: uppercase; letter-spacing: -.03em; padding: 0 .4em; }
.cta__mail { margin-top: -12px; color: var(--grey-d); }
.cta__p { max-width: 760px; font: 700 13px/1.75 var(--font-grot); text-transform: uppercase; color: var(--grey); letter-spacing: .01em; }

/* ---------- Formulaire de contact (panneau coulissant) ---------- */
.form { position: fixed; inset: 0; z-index: 950; visibility: hidden; pointer-events: none; }
.form.is-open { visibility: visible; pointer-events: auto; }
.form__backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.55); opacity: 0; transition: opacity .6s; }
.form.is-open .form__backdrop { opacity: 1; }
.form__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  background: var(--ink); color: #f2f2f2; --lc: rgba(255,255,255,.07);
  padding: 72px clamp(24px, 4vw, 48px) 40px; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .75s var(--ease);
  display: flex; flex-direction: column;
}
.form.is-open .form__panel { transform: translateX(0); }
.form__panel > * { position: relative; z-index: 1; }
.form__close { position: absolute; top: 22px; right: clamp(24px, 4vw, 48px); font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grey2); }
.form__close:hover { color: #fff; }
.form__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 4vw, 56px); line-height: .95; text-transform: uppercase; letter-spacing: -.02em; margin-top: 14px; }
.form__intro { margin-top: 14px; font: 400 12.5px/1.75 var(--font-mono); color: var(--grey); }
.form__body { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.form__body[hidden] { display: none; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grey2); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.22); border-radius: 0;
  color: #f2f2f2; font: 400 14px/1.5 var(--font-mono); padding: 10px 0; outline: none; transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(242,242,242,.35); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a9883' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right center;
}
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.form__actions { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.form__status { font: 400 11px/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--grey2); }
.form__done { margin-top: 36px; }
.form__done-title { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; text-transform: uppercase; color: var(--sage); }
.form__done-text { margin-top: 14px; font: 400 13px/1.8 var(--font-mono); color: var(--grey2); }
.form__alt { margin-top: auto; padding-top: 32px; font: 400 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.form__alt a { color: var(--sage); }
.form__alt a:hover { color: #fff; }
body.form-open .nav { transform: translateY(-120%); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--ink); color: #f2f2f2; padding: 64px var(--gutter) 0; overflow: hidden; }
.footer__top {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.2fr; gap: 32px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.15);
  font: 400 12px/2 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--grey2);
}
.footer__top a { position: relative; }
.footer__top a::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.footer__top a:hover { color: #fff; }
.footer__top a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__brand { font-family: var(--font-display); font-size: 36px; line-height: 1; text-transform: uppercase; letter-spacing: -.02em; color: #fff; margin-bottom: 10px; }
.footer__brand span { color: var(--sage); }
.footer__right { text-align: right; }
.footer__big { position: relative; height: clamp(190px, 34vw, 640px); display: flex; align-items: flex-end; justify-content: center; }
.footer__word {
  font-family: var(--font-display); font-size: clamp(72px, 16.4vw, 330px); line-height: .8; text-transform: uppercase; letter-spacing: -.03em;
  white-space: nowrap; color: #f2f2f2; transform: translateY(.1em); user-select: none;
}
.physics { position: absolute; inset: 0; z-index: 2; cursor: grab; touch-action: pan-y; }
.physics:active { cursor: grabbing; }
.poly {
  position: absolute; left: 0; top: 0; will-change: transform;
  width: 150px; height: 178px; background: #fff; padding: 8px 8px 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.45); transform: translate(-999px,-999px);
}
.poly img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.poly--tall { width: 120px; height: 188px; }
.sticker {
  width: auto; height: auto; padding: 12px 22px; border-radius: 999px;
  background: var(--sage); color: #fff; font-family: var(--font-display); font-size: 30px; line-height: 1; text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
}
.sticker--light { background: #f2f2f2; color: var(--ink); }
.sticker--dark { background: var(--ink3); color: #f2f2f2; border: 1px solid rgba(255,255,255,.2); }

/* ---------- SplitText helpers ---------- */
.ln { display: block; }
/* Le masque de ligne (overflow: clip) laisse de la place aux accents au-dessus des capitales */
.ln-mask { padding: .16em 0 .06em; margin: -.16em 0 -.06em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__title { font-size: clamp(60px, 17.5vw, 300px); }
  .offers__grid { grid-template-columns: 1fr; max-width: 640px; }
  .pcard { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; }
  .pcard__text { grid-column: 1; grid-row: 2; justify-self: start; text-align: left; }
  .pcard__tags { grid-row: 3; }
  .pcard__link { grid-column: 1; grid-row: 4; justify-self: start; }
  .pcard__num { right: -2vw; top: auto; bottom: -4vw; transform: none; }
}

@media (max-width: 900px) {
  .nav { padding: 18px var(--gutter); }
  .nav__brand { font-size: 26px; }
  .menu { padding: 96px var(--gutter) 28px; }
  .menu { --menu-fs: clamp(36px, min(12vw, 9vh), 96px); }
  .menu__link { gap: 16px; justify-content: flex-start; }
  .menu__foot { grid-template-columns: 1fr; gap: 20px; }
  .planet { display: none; }
  .menu__contact { justify-self: start; align-items: flex-start; text-align: left; }

  .hero { padding: 96px var(--gutter) 32px; }
  .hero__title { font-size: clamp(52px, 13vw, 120px); }
  .hero__line { flex-wrap: wrap; row-gap: 0; }
  .hero__foot { grid-template-columns: 1fr; gap: 24px; }
  .hero__loc { text-align: left; }
  .hero__about { justify-self: start; text-align: left; align-items: flex-start; }

  .band { height: 70vh; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__side { padding-top: 0; }
  .badge { position: static; width: 140px; height: 140px; margin-top: 36px; }
  .pcard { min-height: auto; top: 10vh; padding: 28px 20px; }
  .pcard:nth-child(2) { top: 12vh; } .pcard:nth-child(3) { top: 14vh; } .pcard:nth-child(4) { top: 16vh; }
  .pcard__num { font-size: clamp(120px, 34vw, 240px); opacity: .9; }

  .panel__inner { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; gap: 18px; padding: 88px var(--gutter) 28px; }
  .panel__text { grid-column: 1; grid-row: 1; }
  .panel__media { grid-column: 1; grid-row: 2; justify-self: start; width: min(70vw, 420px); max-height: 30vh; aspect-ratio: 4 / 3; }
  .panel__title { grid-row: 3; font-size: clamp(56px, 17vw, 140px); }
  .panel__title--long { font-size: clamp(40px, 14.2vw, 120px); }
  .panel__foot { grid-row: 4; flex-direction: column; align-items: flex-start; gap: 10px; }

  .projects__head { grid-template-columns: 1fr; gap: 24px; }
  .projects__pin { height: auto; padding-bottom: clamp(64px, 10vw, 120px); display: block; }
  .ptrack { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: none; }
  .ptrack::-webkit-scrollbar { display: none; }
  .proj { width: 84vw; scroll-snap-align: start; }

  .founder__grid { grid-template-columns: 1fr; gap: 40px; }
  .founder__cols { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
  .offers__title br { display: none; }
  .faq__q { padding: 18px 16px; font-size: 13px; }
  .faq__a p { padding: 0 16px 20px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__right { text-align: left; grid-column: 1 / -1; }
  .footer__big { height: clamp(280px, 95vw, 460px); }
  .poly--tall, .sticker--light, .sticker--dark { display: none; }
  .footer__word { font-size: clamp(60px, 15.6vw, 200px); }
  .poly { width: 104px; height: 124px; padding: 6px 6px 16px; }
  .poly--tall { width: 86px; height: 134px; }
  .sticker { font-size: 22px; padding: 9px 16px; }
}

@media (max-width: 520px) {
  .hero__title { font-size: clamp(44px, 14.5vw, 90px); }
  .corners::before, .corners::after { display: none; }
  .sintro__title { padding: 0; }
  .cta__title { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .planet__spin, .badge__spin, .menu__band-track, .ticker__track, .dot { animation: none !important; }
}
