/* ---- base.css ---- */
/* Nuits d'orage · base : tokens, reset, typographie */

:root {
  --ink: #171717;
  --ink-deep: #0C0C0C;
  --line: #2A2A2A;
  --cream: #F0EEE9;
  --muted: #B9B6AF;
  --soft: #D8D5CE;
  --orange: #FF5500;
  --orange-dark: #C2410C;
  --violet: #685BC7;
  --lime: #DDFF00;
  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Petrona", Georgia, serif;
  --pad: clamp(16px, 4vw, 72px);
  --gutter: clamp(16px, 3vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, svg, picture { display: block; max-width: 100%; }
a { color: var(--orange); }
a:hover { color: var(--cream); }
h1, h2, h3, p { margin: 0; }
.serif { font-family: var(--serif); font-style: italic; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.label {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  font-stretch: 125%; color: var(--muted);
}
.label--dark { color: #4A4744; }

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

/* Lenis (repris de lenis.css, pour éviter une feuille externe) */
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; }

/* ---- components.css ---- */
/* Boutons et pastilles */

.pill, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border-radius: 999px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; font-stretch: 125%;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.pill:hover, .btn:hover { transform: translateY(-2px); }

.btn--dark { background: var(--ink); color: var(--cream); padding: 14px 22px; font-size: 14px; letter-spacing: .06em; text-transform: none; font-stretch: 100%; }
.btn--dark:hover { color: var(--orange); }
.btn--ghost { border: 1.5px solid var(--ink); padding: 13px 20px; font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; font-stretch: 100%; }
.btn--orange { background: var(--orange); color: var(--ink); padding: 20px 32px; font-size: 16px; }
.btn--orange:hover { color: var(--ink); }

/* ---- slots.css ---- */
/* Emplacements 3D nommés (data-slot). Voir src/data/slots.json.
   Placeholder : la forme colorée + un libellé [ ... ].
   Prêt : le rendu remplit le bloc, la forme et l'ombre disparaissent. */

.slot { position: relative; }
.slot__label {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  text-align: center; line-height: 1.3;
}
.slot > .slot__media,
.slot > .slot__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.slot > .slot__media img { position: static; }
.slot:has(> .slot__media) { background: transparent !important; box-shadow: none !important; border: 0 !important; }

/* Repère visuel en développement : ajoute ?slots à l'URL */
.show-slots [data-slot] { outline: 1px dashed var(--lime); outline-offset: 4px; }
.show-slots [data-slot]::after {
  content: attr(data-slot); position: absolute; left: 0; top: -22px; z-index: 5;
  font: 700 10px/1 var(--sans); letter-spacing: .06em; color: var(--ink);
  background: var(--lime); padding: 4px 6px; border-radius: 4px; white-space: nowrap; rotate: 0deg;
}

/* ---- sections/header.css ---- */
/* Header : trois pastilles fixes */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px var(--gutter); pointer-events: none;
}
.top > * { pointer-events: auto; }
.pill--logo { width: 58px; height: 58px; background: var(--ink); color: var(--cream); }
.pill--logo svg { width: 34px; height: 34px; }
.pill--logo:hover { color: var(--orange); }
.pill--menu { background: var(--cream); color: var(--ink); padding: 12px 20px; font-size: 13px; }
.pill--cta { background: var(--orange); color: var(--ink); padding: 14px 20px; font-size: 13px; }
.pill--menu:hover, .pill--cta:hover { color: var(--ink); }

@media (max-width: 760px) {
  .top { padding: 14px 16px; }
  .pill--logo { width: 50px; height: 50px; }
  .pill--logo svg { width: 28px; height: 28px; }
  .pill--menu { display: none; }
  .pill--cta { padding: 12px 16px; font-size: 12px; }
}

/* ---- sections/hero.css ---- */
/* Hero : objets 3D flottants, la nuit tombe au scroll */

.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px; max-height: 1100px; overflow: hidden;
  background: var(--cream); color: var(--ink);
}
.hero__objs { position: absolute; inset: 0; }

.obj {
  position: absolute; left: var(--l); top: var(--t); width: var(--w); aspect-ratio: var(--ar, 1);
  background: var(--bg); color: var(--fg); border-radius: var(--r);
  box-shadow: 0 30px 60px rgba(0,0,0,.22);
  display: flex; align-items: center; justify-content: center; padding: 12px;
  rotate: var(--rot, 0deg);
  will-change: transform;
}
.obj .slot__label { font-size: clamp(9px, .9vw, 12px); }

/* Desktop : positions de la V1 */
.obj--cd       { --l: 4%;  --t: 18%; --w: 15vw;   --bg: var(--orange); --fg: var(--ink);   --r: 24px; --rot: -10deg; }
.obj--camera   { --l: 17%; --t: 40%; --w: 18vw;   --ar: 18/14; --bg: var(--ink); --fg: var(--cream); --r: 28px; --rot: 6deg; }
.obj--tete     { --l: 38%; --t: 10%; --w: 16vw;   --bg: #F7F5F0;       --fg: var(--ink);   --r: 50%;  }
.obj--dossier  { --l: 56%; --t: 30%; --w: 14vw;   --ar: 14/18; --bg: var(--violet); --fg: #fff; --r: 22px; --rot: -6deg; }
.obj--eclair   { --l: 72%; --t: 8%;  --w: 12.5vw; --bg: var(--lime);   --fg: var(--ink);   --r: 30px; --rot: 14deg; }
.obj--branding { --l: 82%; --t: 38%; --w: 14.5vw; --bg: var(--orange); --fg: var(--ink);   --r: 50%;  }
.obj--objet    { --l: 5%;  --t: 64%; --w: 9vw;    --bg: var(--ink);    --fg: var(--cream); --r: 18px; --rot: 20deg; }

.hero__text {
  position: absolute; left: 50%; bottom: clamp(96px, 12vh, 130px); translate: -50% 0;
  width: min(980px, calc(100% - 2 * var(--gutter))); text-align: center;
  display: flex; flex-direction: column; gap: 14px; z-index: 2;
}
.hero h1 {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(38px, 5.3vw, 76px); line-height: .92; text-wrap: balance;
}
.hero__text p { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.45; font-weight: 500; text-wrap: balance; }
.hero__corners {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between; gap: 24px; align-items: end;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  font-stretch: 125%; line-height: 1.5;
}
.hero__corners p:last-child { text-align: right; }

/* Tablette : objets plus grands, recentrés vers le haut */
@media (max-width: 1024px) {
  .obj--cd       { --l: 3%;  --t: 14%; --w: 20vw; }
  .obj--camera   { --l: 14%; --t: 36%; --w: 22vw; }
  .obj--tete     { --l: 40%; --t: 9%;  --w: 21vw; }
  .obj--dossier  { --l: 60%; --t: 28%; --w: 18vw; }
  .obj--eclair   { --l: 76%; --t: 10%; --w: 16vw; }
  .obj--branding { --l: 80%; --t: 36%; --w: 17vw; }
  .obj--objet    { display: none; }
}

/* Mobile : 5 objets en grappe au-dessus du titre */
@media (max-width: 760px) {
  .obj { padding: 6px; box-shadow: 0 18px 36px rgba(0,0,0,.2); }
  .obj .slot__label { font-size: 8.5px; letter-spacing: .04em; }
  .obj--cd       { --l: -4%; --t: 14%; --w: 30vw; --r: 18px; }
  .obj--camera   { --l: 8%;  --t: 34%; --w: 32vw; --r: 20px; }
  .obj--tete     { --l: 36%; --t: 11%; --w: 30vw; }
  .obj--dossier  { --l: 52%; --t: 28%; --w: 26vw; --r: 16px; }
  .obj--eclair   { --l: 74%; --t: 12%; --w: 24vw; --r: 18px; }
  .obj--branding { display: none; }

  .hero__text { bottom: 108px; text-align: left; }
  .hero__corners { flex-direction: column; align-items: stretch; gap: 8px; bottom: 20px; font-size: 10px; }
  .hero__corners p:last-child { text-align: left; }
}

/* Écrans bas (paysage mobile, petits laptops) */
@media (max-height: 640px) and (min-width: 761px) {
  .hero__text { bottom: 80px; }
  .hero h1 { font-size: clamp(34px, 4.4vw, 60px); }
}

/* ---- sections/manifeste.css ---- */
/* Manifeste : le texte s'allume mot à mot */

.manifeste {
  position: relative; overflow: hidden;
  padding: clamp(110px, 14vw, 180px) var(--pad) clamp(130px, 16vw, 220px);
  display: flex; flex-direction: column; align-items: center; gap: 40px;
}
.deco { position: absolute; display: flex; align-items: center; justify-content: center; }
.deco .slot__label { font-size: 11px; }
.deco--a { left: -60px; top: 120px; width: 180px; height: 180px; border-radius: 40px; background: var(--orange); color: var(--ink); rotate: -14deg; }
.deco--b { right: -50px; bottom: 140px; width: 160px; height: 200px; border-radius: 28px; background: var(--violet); color: #fff; rotate: 12deg; }
.manifeste__text {
  position: relative; max-width: 1100px; text-align: center;
  font-size: clamp(28px, 3.9vw, 56px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em;
  text-wrap: balance;
}
.manifeste__text .w { opacity: .18; }

@media (max-width: 760px) {
  .deco--a { width: 110px; height: 110px; left: -50px; top: 40px; }
  .deco--b { width: 100px; height: 130px; right: -50px; bottom: 50px; }
  .deco .slot__label { font-size: 9px; }
  .manifeste__text { text-align: left; }
}

/* ---- sections/offres.css ---- */
/* Offres : cartes fendues en éclair */

.offres {
  padding: 40px var(--gutter) clamp(120px, 14vw, 200px);
  display: flex; flex-direction: column; align-items: center; overflow: hidden;
}
.offres .label { margin-bottom: clamp(40px, 5vw, 64px); }
.card { position: relative; width: min(1040px, 94%); perspective: 1400px; }
.card + .card { margin-top: -90px; }
.card:nth-of-type(odd) { align-self: flex-start; }
.card:nth-of-type(even) { align-self: flex-end; }
.card__inner {
  position: relative; border-radius: 32px; cursor: pointer;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}
.card__reveal {
  position: absolute; inset: 0; border-radius: 32px; background: var(--ink-deep); overflow: hidden;
  border: 2px dashed #555558; box-shadow: 0 40px 80px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px; color: var(--muted);
}
.card__half {
  position: relative; border-radius: 32px; overflow: hidden;
  background: var(--bg); color: var(--fg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
}
.card__half--l { clip-path: polygon(0 0, 56% 0, 46% 42%, 58% 47%, 44% 100%, 0 100%); }
.card__half--r { position: absolute; inset: 0; clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%, 58% 47%, 46% 42%); }
.card__body {
  padding: clamp(24px, 3.4vw, 36px); min-height: clamp(340px, 40vw, 412px); height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.card__kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-stretch: 125%;
}
.card__kicker span { border: 1.5px solid currentColor; border-radius: 999px; padding: 6px 12px; }
.card h3, .card .card__title {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(44px, 7.2vw, 104px); line-height: .88; max-width: 820px;
}
.card__text { max-width: 440px; font-size: clamp(16px, 1.3vw, 17px); line-height: 1.5; font-weight: 500; }
.card__glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.7), rgba(255,255,255,0) 55%);
  transition: opacity .3s;
}
.card.is-open .card__half--l { transform: translate3d(-22%, -5%, 40px) rotate(-6deg); box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.card.is-open .card__half--r { transform: translate3d(22%, 5%, 40px) rotate(6deg); }
.card.is-open .card__glare { opacity: 1; }

@media (max-width: 1024px) {
  .card { width: 100%; }
  .card + .card { margin-top: -50px; }
}

@media (max-width: 760px) {
  .card + .card { margin-top: 20px; }
  .card__inner, .card__reveal, .card__half { border-radius: 24px; }
  /* Sur mobile la fente s'ouvre moins, pour garder le titre lisible */
  .card.is-open .card__half--l { transform: translate3d(-14%, -3%, 30px) rotate(-4deg); }
  .card.is-open .card__half--r { transform: translate3d(14%, 3%, 30px) rotate(4deg); }
}

/* ---- sections/methode.css ---- */
/* Méthode : l'éclair pousse au scroll (section épinglée par ScrollTrigger) */

.methode { position: relative; border-top: 1px solid var(--line); }
.methode__pin {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; align-items: center; padding: 0 var(--pad);
}
.methode__flash { position: absolute; inset: 0; background: #F4F2EC; opacity: 0; pointer-events: none; }
.bolt { position: absolute; top: 0; right: -4vw; width: 62vw; height: 100%; overflow: visible; }
.bolt path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bolt .glow { stroke: var(--orange); filter: blur(10px); opacity: .85; }
.bolt .core { stroke: #FFF6E8; }
.methode__content { position: relative; z-index: 2; width: 100%; max-width: 1200px; display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.methode__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.methode__steps li {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(40px, 7vw, 112px); line-height: .9;
  opacity: .12; transform: translateY(14px);
  transition: opacity .35s ease, transform .35s ease;
}
.methode__steps li.on { opacity: 1; transform: none; }
.methode__steps u { text-decoration-color: var(--orange); text-decoration-thickness: 6px; text-underline-offset: 8px; }
.piliers {
  width: 100%; max-width: 1100px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  opacity: 0; transform: translateY(20px); transition: opacity .4s ease, transform .4s ease;
}
.piliers.on { opacity: 1; transform: none; }
.pilier { border-top: 2px solid var(--orange); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.pilier h3 { font-weight: 900; font-stretch: 62%; font-size: clamp(22px, 2.2vw, 30px); text-transform: uppercase; }
.pilier p { font-size: clamp(14px, 1.2vw, 16px); line-height: 1.5; color: var(--soft); }
.methode__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 32px; height: 2px; background: var(--line); z-index: 2; }
.methode__progress span { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }

@media (max-width: 1024px) {
  .bolt { right: -12vw; width: 80vw; opacity: .8; }
}

@media (max-width: 760px) {
  .methode__pin { align-items: flex-start; padding-top: 104px; }
  .bolt { right: -20vw; width: 120vw; opacity: .55; }
  .methode__steps u { text-decoration-thickness: 4px; text-underline-offset: 6px; }
  .piliers { grid-template-columns: 1fr; gap: 14px; }
  .methode__progress { bottom: 20px; }
}

/* Mobile bas : les piliers passent en ligne compacte */
@media (max-width: 760px) and (max-height: 700px) {
  .methode__steps li { font-size: 36px; }
  .pilier p { display: none; }
}

/* ---- sections/studio.css ---- */
/* Studio : la tête 3D suit le curseur (ou le scroll sur mobile) */

.studio {
  background: var(--cream); color: var(--ink); padding: clamp(90px, 11vw, 140px) var(--pad);
  display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 64px); align-items: center;
}
.head { flex: 1 1 320px; max-width: 480px; perspective: 900px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.head__face {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FF7A33, var(--orange) 55%, #D94600);
  box-shadow: 0 40px 80px rgba(0,0,0,.18);
  transform: rotateX(var(--hx, 0deg)) rotateY(var(--hy, 0deg));
  transform-style: preserve-3d;
}
.head__eye {
  position: absolute; top: 40%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center; transform: translateZ(30px);
}
.head__eye--l { left: 27%; }
.head__eye--r { right: 27%; }
.head__eye i { width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--cream); transform: translate(var(--ex, 0px), var(--ey, 0px)); }
.head__nose {
  position: absolute; left: 50%; top: 56%; width: 7%; height: 12%; margin-left: -3.5%;
  border-radius: 999px; background: rgba(23,23,23,.25); transform: translateZ(45px);
}
/* Libellé du slot posé sur la tête placeholder */
.head > .slot__label { position: absolute; left: 0; right: 0; top: 74%; font-size: 11px; letter-spacing: .1em; pointer-events: none; }
/* Séquence prête : l'image remplace la tête CSS */
.head > .slot__media { position: absolute; inset: 0 0 auto 0; aspect-ratio: 1; height: auto; }
.head:has(> .slot__media) .head__face { visibility: hidden; }
.head__shadow { width: 60%; height: 18px; border-radius: 50%; background: rgba(23,23,23,.14); filter: blur(6px); }

.studio__text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.studio h2 { font-weight: 900; font-stretch: 62%; font-size: clamp(60px, 8.3vw, 120px); line-height: .88; text-transform: uppercase; }
.studio h2 .serif { font-weight: 500; text-transform: none; font-stretch: 100%; color: var(--orange-dark); }
.studio__lead { max-width: 580px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; }
.studio__sub { max-width: 580px; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.55; color: #4A4744; }
.studio__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 760px) {
  .head { max-width: 260px; margin: 0 auto; }
  .head > .slot__label { font-size: 9px; }
  .studio__text { flex-basis: 100%; }
}

/* ---- sections/contact.css ---- */
/* Contact : le brief en une phrase, sous un orage discret */

.contact {
  position: relative; overflow: hidden; padding: clamp(110px, 12vw, 160px) var(--pad) clamp(90px, 10vw, 140px);
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
}
.contact__bolts { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact__bolts path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.contact .label, .brief { position: relative; }
.brief { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.brief__line {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(36px, 6.4vw, 96px); line-height: 1.1; max-width: 1300px;
}
.field { display: inline-block; max-width: 100%; }
.field input {
  font: inherit; text-transform: none; font-family: var(--serif); font-style: italic; font-weight: 500; font-stretch: 100%;
  color: var(--lime); background: transparent; border: 0; border-bottom: 4px solid var(--orange);
  padding: 0 4px; margin: 0 4px; max-width: 100%; border-radius: 0;
  field-sizing: content; min-width: 3ch;
}
.field input::placeholder { color: rgba(240,238,233,.28); }
.field input:focus { outline: none; border-bottom-color: var(--lime); }
.brief__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.brief__actions .btn { border: 0; cursor: pointer; font-family: inherit; }
.brief__mail { font-size: 15px; color: var(--muted); }
.brief__msg { font-size: 15px; color: var(--lime); min-height: 1.4em; }

@media (max-width: 760px) {
  .brief__line { line-height: 1.18; }
  .field { display: flex; align-items: baseline; margin: 4px 0; }
  .field input { flex: 1; min-width: 0; width: 100%; margin: 0; border-bottom-width: 3px; }
  .brief__actions .btn { width: 100%; }
}

/* ---- sections/footer.css ---- */
/* Footer */

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 24px var(--gutter); border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
}

/* ---- motion.css ---- */
/* Mouvement réduit : tout est affiché d'emblée, sans transitions */

@media (prefers-reduced-motion: reduce) {
  .card__half, .card__glare, .methode__steps li, .piliers, .pill, .btn { transition: none !important; }
  .manifeste__text .w, .methode__steps li { opacity: 1 !important; transform: none !important; }
  .piliers { opacity: 1 !important; transform: none !important; }
}
