/* =========================================================
   ONSTILL — Studio d'animation
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --accent: #FF5A1F;
  --accent-2: #FFB46B;
  --accent-3: #E83A6B;
  --accent-grad: linear-gradient(120deg, var(--accent-2) 0%, var(--accent) 50%, var(--accent-3) 100%);

  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
}

/* Nuit par défaut (aussi dans l'éditeur, sans attribut data-theme) */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0A0B;
  --bg-2: #101012;
  --surface: #141416;
  --surface-2: #1B1B1E;
  --text: #F3F0EA;
  --text-2: #C9C5BD;
  --muted: #8E8A83;
  --line: rgba(243, 240, 234, .10);
  --line-2: rgba(243, 240, 234, .18);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --glass: rgba(10, 10, 11, .62);
  --logo-o: var(--accent);
  --grain-opacity: .07;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F1EC;
  --bg-2: #ECE8E1;
  --surface: #FFFFFF;
  --surface-2: #F8F6F2;
  --text: #0E0E10;
  --text-2: #3A3936;
  --muted: #6E6A63;
  --line: rgba(14, 14, 16, .10);
  --line-2: rgba(14, 14, 16, .18);
  --shadow: 0 30px 80px -40px rgba(40, 30, 20, .35);
  --glass: rgba(244, 241, 236, .7);
  --accent: #EF4A10;
  --logo-o: var(--accent);
  --grain-opacity: .05;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
em { font-style: italic; }

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 0;
}
.h2 em, .hero-title em {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 28px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .num { color: var(--accent); font-size: 12px; }
.eyebrow .num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 12px; }

.section { padding: clamp(100px, 14vw, 180px) 0; position: relative; }
.section-head { margin-bottom: clamp(48px, 7vw, 90px); }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.section-sub { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); max-width: 520px; margin: 24px 0 0; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .5s var(--ease), background-color .4s, color .4s, box-shadow .4s, border-color .4s;
  will-change: transform;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--text); color: var(--bg); overflow: hidden; isolation: isolate; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent-grad);
  transform: translateY(101%); transition: transform .6s var(--ease);
  border-radius: inherit;
}
.btn-primary:hover { color: #fff; box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover::before { transform: translateY(0); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.play-ico { width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; position: relative; }
.play-ico::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }

/* ---------- Grain & cursor ---------- */
body::after {
  content: "";
  position: fixed; inset: -50%; z-index: 100; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); }
  80% { transform: translate(3%, 4%); }
}

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 200; }
  .cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
  .cursor-ring {
    width: 36px; height: 36px; margin: -18px 0 0 -18px;
    border: 1px solid var(--line-2);
    transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .4s, border-color .4s;
  }
  .cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
  .cursor.is-drag .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; border-color: var(--accent); }
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .5s, border-color .5s, transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.brand-logo { height: 22px; width: auto; color: var(--text); }
.nav { display: flex; gap: 6px; }
.nav a { position: relative; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .3s; border-radius: 999px; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover, .nav a.is-current { color: var(--text); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; position: relative; }
.lang-btn { width: 38px; height: 32px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); transition: color .3s, background-color .3s; }
.lang-btn.is-active { background: var(--text); color: var(--bg); }

.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; transition: border-color .3s; }
.theme-toggle:hover { border-color: var(--line-2); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: transform .7s var(--ease), opacity .5s; }
.i-sun { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.i-sun circle { fill: currentColor; stroke: none; }
.i-moon { fill: currentColor; }
[data-theme="dark"] .i-sun { transform: rotate(-90deg) scale(.4); opacity: 0; }
[data-theme="light"] .i-moon { transform: rotate(90deg) scale(.4); opacity: 0; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; align-items: center; padding: var(--header-h) var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 38px);
  transition: clip-path .8s var(--ease-in-out);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(40px, 11vw, 64px); line-height: 1.1; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s var(--ease); }
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: .2s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-ring {
  position: absolute; z-index: -1;
  width: min(78vmin, 820px); aspect-ratio: 1;
  right: max(-8vmin, -80px); top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-ring svg { width: 100%; height: 100%; overflow: visible; animation: ringSpin 40s linear infinite; }
.hero-ring circle { fill: none; stroke-linecap: round; }
.ring-thin { stroke: var(--line-2); stroke-width: .25; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease-in-out) .3s forwards; }
.ring-thick {
  stroke: url(#ringGrad); stroke-width: 1.6;
  stroke-dasharray: .32 .68; stroke-dashoffset: .32;
  opacity: 0;
  animation: ringIn 1.8s var(--ease) 1.4s forwards, ringBreath 7s var(--ease-in-out) 3.2s infinite;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent));
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ringIn { from { opacity: 0; stroke-dashoffset: .32; } to { opacity: 1; stroke-dashoffset: -.08; } }
@keyframes ringBreath { 0%, 100% { stroke-dasharray: .32 .68; } 50% { stroke-dasharray: .48 .52; } }

.hero-line {
  position: absolute; z-index: -1; left: 0; top: 50%;
  width: calc(100% - min(39vmin, 410px) - max(-8vmin, -80px));
  height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 30%, var(--line-2));
  transform-origin: left; transform: scaleX(0);
  animation: lineIn 1.6s var(--ease) .6s forwards;
}
.hero-playhead { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 2px var(--accent); animation: playhead 6s var(--ease-in-out) 2.2s infinite; opacity: 0; }
@keyframes lineIn { to { transform: scaleX(1); } }
@keyframes playhead { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.hero-content { position: relative; }
.hero-eyebrow { opacity: 0; animation: fadeUp 1s var(--ease) .2s forwards; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); } }

.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(56px, 11.5vw, 184px);
  line-height: .9; letter-spacing: -.035em;
  margin: 0;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > * { display: inline-block; transform: translateY(105%); animation: lineUp 1.3s var(--ease) forwards; }
.hero-title .line:nth-child(1) > * { animation-delay: .35s; }
.hero-title .line:nth-child(2) > * { animation-delay: .5s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero-sub { max-width: 560px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); margin: 0 0 40px; opacity: 0; animation: fadeUp 1s var(--ease) .95s forwards; }
.hero-rotator {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .3em;
  margin: 30px 0 14px; font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.1;
  opacity: 0; animation: fadeUp 1s var(--ease) .8s forwards;
}
.hr-label { color: var(--muted); }
/* Mots qui défilent : tous empilés au même endroit, un seul visible ; la largeur suit le mot affiché. */
.hr-words {
  display: inline-grid; justify-items: start; align-items: end;
  overflow: hidden; padding: 0 .08em .14em 0; margin-bottom: -.14em;
  transition: width .8s var(--ease);
}
.hr-word {
  grid-area: 1 / 1; white-space: nowrap; font-style: italic; color: var(--accent); line-height: 1.1;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  opacity: 0; transform: translateY(100%);
  transition: transform .9s var(--ease), opacity .6s var(--ease);
}
.hr-word.is-active { opacity: 1; transform: none; }
.hr-word.is-leaving { opacity: 0; transform: translateY(-100%); }
.hr-word.no-anim { transition: none; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s var(--ease) 1.05s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero-foot {
  position: relative; margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 60px; padding-bottom: 32px;
  color: var(--muted);
  opacity: 0; animation: fadeUp 1s var(--ease) 1.4s forwards;
}
.timecode { display: flex; align-items: center; gap: 10px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #FF3B30; display: inline-block; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 44px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; width: max-content; gap: 40px; align-items: center; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 48px); white-space: nowrap; line-height: 1; }
.marquee span:nth-of-type(even) { font-style: italic; color: var(--muted); }
.marquee i { font-style: normal; color: var(--accent); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal ---------- */
/* Apparition au défilement (uniquement si JavaScript est actif : sans lui, tout reste visible). */
.has-js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.has-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.studio-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--text); margin: 0 0 22px; }
.studio-intro p:not(.lead) { color: var(--muted); margin: 0; }
.badges { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--text-2); }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service {
  position: relative; padding: 34px 30px 34px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transform-style: preserve-3d;
  transition: border-color .5s, transform .6s var(--ease), background-color .6s;
}
.service:nth-child(even) { margin-top: 56px; }
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.service:hover { border-color: var(--line-2); }
.service:hover::before { opacity: 1; }
.service-ico { width: 56px; height: 56px; margin-bottom: 60px; }
.service-ico svg { width: 100%; height: 100%; fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.service-ico svg * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.service:hover .service-ico svg * { animation: redraw 1.4s var(--ease) both; stroke: var(--accent); }
.service:hover .service-ico svg *:nth-child(2) { animation-delay: .25s; }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.service h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.05; margin: 0 0 12px; letter-spacing: -.01em; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Process (scroll) ---------- */
.process { position: relative; height: 340vh; }
.process-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.process-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.process .h2 { font-size: clamp(40px, 5vw, 74px); }
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 6px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); opacity: .32; transition: opacity .6s var(--ease); }
.step.is-active { opacity: 1; }
.step-num { color: var(--accent); padding-top: 6px; }
.step h3 { margin: 0 0 6px; font-family: var(--font-body); font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; max-height: 0; overflow: hidden; transition: max-height .8s var(--ease); }
.step.is-active p { max-height: 120px; }

.process-stage { display: grid; gap: 16px; }
.stage-frame {
  position: relative; aspect-ratio: 16 / 10;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.stage-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: calc(1 - var(--p, 0) * .9);
}
.corner { position: absolute; width: 18px; height: 18px; border-color: var(--muted); border-style: solid; border-width: 0; }
.corner.tl { top: 16px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 16px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 16px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 16px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }
.stage-label { position: absolute; top: 18px; left: 46px; right: 46px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.stage-state { color: var(--text); }
.stage-logo { width: 78%; position: relative; z-index: 1; overflow: visible; color: var(--text); }
.stage-logo .sp { fill: currentColor; transform-box: fill-box; transform-origin: center; will-change: transform; }
.stage-logo .sl-o .sp { fill: var(--sl-o, currentColor); }
.stage-logo .sp { stroke: currentColor; stroke-width: 0; transition: fill .5s, stroke-width .5s; }
.stage-logo.is-wire .sp { fill: transparent; stroke-width: .5; }
.stage-logo { transition: transform .3s; }
.stage-glow {
  position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%);
  filter: blur(40px); opacity: var(--glow, 0); pointer-events: none;
}

.timeline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px 16px; }
.tl-head { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 12px; }
.tl-tc { color: var(--text); }
.tl-track { position: relative; height: 4px; background: var(--line); border-radius: 4px; margin: 4px 0 16px; }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--accent-grad); border-radius: 4px; }
.kf { position: absolute; top: 50%; width: 8px; height: 8px; background: var(--bg); border: 1px solid var(--muted); transform: translate(-50%, -50%) rotate(45deg); }
.tl-playhead { position: absolute; top: -8px; bottom: -8px; width: 2px; left: calc(var(--p, 0) * 100%); background: var(--text); border-radius: 2px; }
.tl-layers { display: grid; gap: 6px; }
.tl-layer { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; color: var(--muted); }
.tl-layer .mono { font-size: 10px; }
.tl-layer i { height: 10px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.tl-layer i::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 100%); width: calc((var(--e) - var(--s)) * 100%); background: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); border-radius: 3px; }

/* ---------- Avant / Après ---------- */
.ba-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -30px 0 34px; }
.ba-tab { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: all .4s var(--ease); }
.ba-tab .mono { font-size: 11px; color: var(--accent); margin-right: 4px; }
.ba-group { align-self: center; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); padding: 0 4px 0 12px; }
.ba-group:first-child { padding-left: 0; }
.ba-tab:hover { color: var(--text); border-color: var(--line-2); }
.ba-tab.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.ba {
  position: relative; aspect-ratio: 16 / 9; max-height: 78vh; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.ba-layer { position: absolute; inset: 0; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-before .demo { filter: saturate(.85); }
.ba-before::after { /* léger voile pour l'aspect "image plate" */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(127,127,127,.07) 39px 40px), repeating-linear-gradient(0deg, transparent 0 39px, rgba(127,127,127,.07) 39px 40px);
}
.ba-demos { position: absolute; inset: 0; }
.demo { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.demo.is-current { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.demo-svg { width: 100%; height: 100%; }

.ba-label {
  position: absolute; top: 20px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(10,10,11,.55); color: #F3F0EA; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  transition: opacity .4s;
}
.ba-label-l { left: 20px; }
.ba-label-r { right: 20px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; z-index: 3; pointer-events: none; box-shadow: 0 0 20px rgba(0,0,0,.25); }
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; color: #0A0A0B; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: transform .4s var(--ease);
}
.ba-knob::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); animation: knobPulse 2.4s var(--ease) infinite; }
@keyframes knobPulse { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.ba-knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ba.is-dragging .ba-knob { transform: translate(-50%, -50%) scale(1.12); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible ~ .ba-handle .ba-knob, .ba:has(.ba-range:focus-visible) .ba-knob { outline: 3px solid var(--accent); outline-offset: 3px; }

/* --- Demo: shared --- */
.demo text { font-family: var(--font-body); }
.shine { fill: transparent; }

/* MIRA */
.demo-mira { background: radial-gradient(ellipse at 50% 40%, #FBF0E0, #EBD7BC); }
.mira-rays line { stroke: #C7782E; stroke-width: 4; stroke-linecap: round; }
.mira-sun { fill: none; stroke: #3B2A1E; stroke-width: 3; }
.mira-wheat { fill: none; stroke: #3B2A1E; stroke-width: 2.4; stroke-linecap: round; }
.mira-name { font-family: var(--font-display) !important; font-size: 52px; fill: #3B2A1E; letter-spacing: .12em; }
.mira-tag { font-size: 9px; letter-spacing: .4em; fill: #8A6A4E; font-weight: 600; }

/* NORDA */
.demo-norda { background: linear-gradient(160deg, #1F2733, #121820); }
.nb { fill: #E9E4DA; }
.nb2 { fill: #C9A46A; }
.nl { stroke: #E9E4DA; stroke-width: 1.5; }
.norda-name { font-size: 34px; font-weight: 300; letter-spacing: .5em; fill: #E9E4DA; }
.norda-tag { font-size: 8.5px; letter-spacing: .6em; fill: #8D96A3; font-weight: 600; }

/* VELA */
.demo-vela { background: radial-gradient(ellipse at 50% 30%, #EAF0EB, #CFDCD3); }
.vela-ring { fill: #F6F3EC; stroke: #23413A; stroke-width: 2; }
.vela-wave.w1 { fill: #6E9C8C; }
.vela-wave.w2 { fill: #23413A; }
.vela-moon { fill: #E3B66F; }
.vela-name { font-family: var(--font-display) !important; font-style: italic; font-size: 50px; fill: #23413A; }
.vela-tag { font-size: 8.5px; letter-spacing: .5em; fill: #4F6D64; font-weight: 600; }

/* BRASA */
.demo-brasa { background: radial-gradient(ellipse at 50% 35%, #3A1F18, #1E0F0B); }
.cup { fill: #F2C9A0; }
.cup-handle { fill: none; stroke: #F2C9A0; stroke-width: 5; stroke-linecap: round; }
.cup-saucer { stroke: #F2C9A0; stroke-width: 4; stroke-linecap: round; }
.st { fill: none; stroke: #F2C9A0; stroke-width: 3; stroke-linecap: round; opacity: .75; }
.brasa-name { font-family: var(--font-display) !important; font-size: 50px; fill: #F2C9A0; letter-spacing: .02em; }
.brasa-tag { font-size: 8.5px; letter-spacing: .5em; fill: #B98966; font-weight: 600; }

/* --- Animations (côté "Après" uniquement) --- */
.is-animated .demo-svg * { transform-box: fill-box; }

/* MIRA : 6s */
.is-animated .demo-mira .demo-svg { animation: loopFade 6s infinite; }
.is-animated .mira-rays line { transform-origin: 50% 100%; animation: rayIn 6s var(--ease) infinite; }
.is-animated .mira-rays { animation: raysSpin 6s var(--ease) infinite; transform-origin: center; }
.is-animated .mira-sun { stroke-dasharray: 1; animation: sunDraw 6s var(--ease-in-out) infinite; }
.is-animated .mira-wheat { stroke-dasharray: 1; animation: wheatDraw 6s var(--ease-in-out) infinite; }
.is-animated .mira-name { animation: textRise 6s var(--ease) infinite; transform-origin: center; }
.is-animated .mira-tag { animation: tagIn 6s var(--ease) infinite; }
.is-animated .demo-mira .shine { fill: rgba(255,255,255,.35); animation: shine 6s var(--ease-in-out) infinite; }
@keyframes loopFade { 0% { opacity: 0; } 4% { opacity: 1; } 93% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sunDraw { 0%, 3% { stroke-dashoffset: 1; } 25%, 100% { stroke-dashoffset: 0; } }
@keyframes wheatDraw { 0%, 15% { stroke-dashoffset: 1; } 38%, 100% { stroke-dashoffset: 0; } }
@keyframes rayIn { 0%, 18% { transform: scaleY(0); opacity: 0; } 38%, 100% { transform: scaleY(1); opacity: 1; } }
@keyframes raysSpin { 0%, 18% { transform: rotate(-60deg) scale(.7); } 45%, 100% { transform: rotate(0) scale(1); } }
@keyframes textRise { 0%, 30% { opacity: 0; transform: translateY(18px); letter-spacing: .4em; } 52%, 100% { opacity: 1; transform: none; letter-spacing: .12em; } }
@keyframes tagIn { 0%, 45% { opacity: 0; } 62%, 100% { opacity: 1; } }
@keyframes shine { 0%, 62% { transform: translateX(0) skewX(-20deg); } 82%, 100% { transform: translateX(640px) skewX(-20deg); } }

/* NORDA : 6s */
.is-animated .demo-norda .demo-svg { animation: loopFade 6s infinite; }
.is-animated .nb { transform-origin: 50% 100%; animation: blockUp 6s var(--ease) infinite; }
.is-animated .nb2 { animation-name: blockUp2; }
.is-animated .nb3 { animation-delay: .25s; }
.is-animated .nl { stroke-dasharray: 1; animation: lineDraw 6s var(--ease-in-out) infinite; }
.is-animated .norda-name { animation: track 6s var(--ease) infinite; }
.is-animated .norda-tag { animation: tagIn 6s var(--ease) infinite; }
@keyframes lineDraw { 0%, 3% { stroke-dashoffset: 1; } 22%, 100% { stroke-dashoffset: 0; } }
@keyframes blockUp { 0%, 15% { transform: scaleY(0); } 38%, 100% { transform: scaleY(1); } }
@keyframes blockUp2 { 0%, 24% { transform: scaleY(0) translateY(-40px); opacity: 0; } 50%, 100% { transform: none; opacity: 1; } }
@keyframes track { 0%, 32% { opacity: 0; letter-spacing: 1.4em; } 58%, 100% { opacity: 1; letter-spacing: .5em; } }

/* VELA : 7s */
.is-animated .demo-vela .demo-svg { animation: loopFade 7s infinite; }
.is-animated .vela-ring { stroke-dasharray: 1; animation: lineDraw 7s var(--ease-in-out) infinite; transform-origin: center; }
.is-animated .vela-wave.w1 { animation: wave 3.5s linear infinite, waveRise 7s var(--ease) infinite; }
.is-animated .vela-wave.w2 { animation: wave 2.6s linear infinite reverse, waveRise 7s var(--ease) infinite; }
.is-animated .vela-moon { animation: moon 7s var(--ease) infinite; }
.is-animated .vela-name { animation: textRise2 7s var(--ease) infinite; }
.is-animated .vela-tag { animation: tagIn 7s var(--ease) infinite; }
@keyframes wave { from { translate: 0 0; } to { translate: -80px 0; } }
@keyframes waveRise { 0%, 12% { transform: translateY(50px); } 40%, 100% { transform: translateY(0); } }
@keyframes moon { 0%, 25% { transform: translateY(40px); opacity: 0; } 48%, 100% { transform: none; opacity: 1; } }
@keyframes textRise2 { 0%, 34% { opacity: 0; transform: translateY(14px); filter: blur(6px); } 56%, 100% { opacity: 1; transform: none; filter: blur(0); } }

/* BRASA : 6s */
.is-animated .demo-brasa .demo-svg { animation: loopFade 6s infinite; }
.is-animated .brasa-cup { animation: cupDrop 6s var(--ease) infinite; transform-origin: 50% 100%; }
.is-animated .cup-saucer { stroke-dasharray: 1; animation: lineDraw 6s var(--ease-in-out) infinite; }
.is-animated .st { stroke-dasharray: 1; animation: steam 2.4s var(--ease-in-out) infinite; }
.is-animated .s2 { animation-delay: .4s; }
.is-animated .s3 { animation-delay: .8s; }
.is-animated .brasa-name { animation: textRise2 6s var(--ease) infinite; }
.is-animated .brasa-tag { animation: tagIn 6s var(--ease) infinite; }
@keyframes cupDrop { 0%, 10% { transform: translateY(-60px); opacity: 0; } 24% { transform: translateY(4px) scaleY(.94); opacity: 1; } 30% { transform: translateY(0) scaleY(1.02); } 36%, 100% { transform: none; } }
@keyframes steam { 0% { stroke-dashoffset: 1; opacity: 0; transform: translateY(8px); } 40% { opacity: .8; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; opacity: 0; transform: translateY(-10px); } }

/* BURGER : 8s — les ingrédients tombent et s'emboîtent */
.demo-burger, .demo-cocktail { background: #140D0A; }
.demo-cocktail { background: #06201E; }
.is-animated .demo-burger .demo-svg { animation: loopFade 8s infinite; }
.is-animated .bl { animation: 8s var(--ease) infinite; }
.is-animated .bl-bun-b { animation-name: dropBunB; }
.is-animated .bl-patty { animation-name: dropPatty; }
.is-animated .bl-cheese { animation-name: dropCheese; }
.is-animated .bl-tomato { animation-name: dropTomato; }
.is-animated .bl-lettuce { animation-name: dropLettuce; }
.is-animated .bl-bun-t { animation-name: dropBunT; transform-origin: 50% 100%; }
.is-animated .cheese-slab { transform-origin: 50% 0; animation: cheeseMelt 8s var(--ease) infinite; }
.is-animated .seeds ellipse { animation: seedPop 8s var(--ease) infinite; transform-origin: center; }
.is-animated .bg-shadow { transform-origin: center; animation: shadowGrow 8s var(--ease) infinite; }
.is-animated .bg-steam { animation: steamShow 8s linear infinite; }
.is-animated .bs { stroke-dasharray: 1; animation: steam 2.4s var(--ease-in-out) infinite; }
.is-animated .bs2 { animation-delay: .5s; }
.is-animated .bs3 { animation-delay: 1s; }
.is-animated .bg-stack { transform-origin: 50% 100%; animation: stackSquash 8s var(--ease) infinite; }
@keyframes dropBunB    { 0%, 4%  { transform: translateY(-260px); opacity: 0; } 5% { opacity: 1; } 11% { transform: translateY(3px); } 14%, 100% { transform: none; opacity: 1; } }
@keyframes dropPatty   { 0%, 12% { transform: translateY(-260px); opacity: 0; } 13% { opacity: 1; } 19% { transform: translateY(4px); } 22%, 100% { transform: none; opacity: 1; } }
@keyframes dropCheese  { 0%, 20% { transform: translateY(-260px) rotate(-6deg); opacity: 0; } 21% { opacity: 1; } 27% { transform: translateY(2px) rotate(0); } 30%, 100% { transform: none; opacity: 1; } }
@keyframes dropTomato  { 0%, 28% { transform: translateY(-260px); opacity: 0; } 29% { opacity: 1; } 35% { transform: translateY(3px); } 38%, 100% { transform: none; opacity: 1; } }
@keyframes dropLettuce { 0%, 35% { transform: translateY(-260px) rotate(4deg); opacity: 0; } 36% { opacity: 1; } 42% { transform: translateY(2px) rotate(0); } 45%, 100% { transform: none; opacity: 1; } }
@keyframes dropBunT    { 0%, 43% { transform: translateY(-260px); opacity: 0; } 44% { opacity: 1; } 51% { transform: translateY(4px) scaleY(.9); } 55% { transform: translateY(-3px) scaleY(1.04); } 59%, 100% { transform: none; opacity: 1; } }
@keyframes cheeseMelt  { 0%, 28% { transform: scaleY(.55); } 40%, 100% { transform: scaleY(1); } }
@keyframes seedPop     { 0%, 56% { transform: scale(0); } 62% { transform: scale(1.5); } 66%, 100% { transform: scale(1); } }
@keyframes shadowGrow  { 0%, 4% { transform: scaleX(.3); opacity: 0; } 14% { transform: scaleX(.85); opacity: .35; } 59%, 100% { transform: scaleX(1); opacity: .45; } }
@keyframes steamShow   { 0%, 62% { opacity: 0; } 70%, 90% { opacity: .6; } 100% { opacity: 0; } }
@keyframes stackSquash { 0%, 50% { transform: none; } 52% { transform: scaleY(.97) scaleX(1.01); } 57%, 100% { transform: none; } }

/* COCKTAIL : 7s */
.ck-name { font-family: var(--font-body); font-size: 9px; letter-spacing: .5em; fill: #9FF0D8; font-weight: 600; }
.is-animated .demo-cocktail .demo-svg { animation: loopFade 7s infinite; }
.is-animated .ck-liquid { transform-origin: 50% 100%; animation: fillUp 7s var(--ease-in-out) infinite; }
.is-animated .ck-wave { animation: wave 1.6s linear infinite; }
.is-animated .ice { animation: 7s var(--ease) infinite; }
.is-animated .i1 { animation-name: iceDrop1; }
.is-animated .i2 { animation-name: iceDrop2; }
.is-animated .i3 { animation-name: iceDrop3; }
.is-animated .ck-straw { animation: strawIn 7s var(--ease) infinite; }
.is-animated .ck-lemon { transform-origin: center; animation: lemonIn 7s var(--ease) infinite; }
.is-animated .bb { animation: bubble 2.2s linear infinite; }
.is-animated .bb:nth-child(2) { animation-delay: .5s; animation-duration: 2.8s; }
.is-animated .bb:nth-child(3) { animation-delay: 1s; }
.is-animated .bb:nth-child(4) { animation-delay: 1.4s; animation-duration: 2.6s; }
.is-animated .bb:nth-child(5) { animation-delay: .8s; animation-duration: 3s; }
.is-animated .ck-name { animation: tagIn 7s var(--ease) infinite; }
@keyframes fillUp   { 0%, 4% { transform: translateY(110px); } 30%, 100% { transform: none; } }
@keyframes iceDrop1 { 0%, 28% { translate: 0 -170px; } 36% { translate: 0 8px; } 42% { translate: 0 -3px; } 48%, 100% { translate: 0 0; } }
@keyframes iceDrop2 { 0%, 32% { translate: 0 -180px; } 40% { translate: 0 9px; } 46% { translate: 0 -3px; } 52%, 100% { translate: 0 0; } }
@keyframes iceDrop3 { 0%, 36% { translate: 0 -190px; } 44% { translate: 0 7px; } 50% { translate: 0 -2px; } 56%, 100% { translate: 0 0; } }
@keyframes strawIn  { 0%, 50% { translate: 60px -200px; opacity: 0; } 51% { opacity: 1; } 62%, 100% { translate: 0 0; opacity: 1; } }
@keyframes lemonIn  { 0%, 60% { transform: scale(0) rotate(-120deg); } 70% { transform: scale(1.15) rotate(8deg); } 76%, 100% { transform: none; } }
@keyframes bubble   { 0% { translate: 0 0; opacity: 0; } 15% { opacity: 1; } 100% { translate: 0 -110px; opacity: 0; } }

/* ===== Démos photo réelles ===== */
.demo-restaurant { background: #0f0f11; }
.demo-cocktail { background: #b1b3b0; }
.demo-photo { display: block; }
.rb-plate, .pc-bubbles { opacity: 0; }
.is-animated .demo-photo * { transform-box: view-box; }

/* RESTAURANT : 8s — les vraies couches du burger tombent et s'emboîtent */
.is-animated .demo-restaurant .demo-svg { animation: loopFade 8s infinite; }
.is-animated .rb-scene { transform-origin: 800px 534px; animation: rbPush 8s var(--ease-in-out) infinite; }
.is-animated .rb-plate { animation: rbPlate 8s linear infinite; }
.is-animated .rb-layer { animation: 8s var(--ease) infinite; }
.is-animated .rb-l1 { animation-name: rbDrop1; }
.is-animated .rb-l2 { animation-name: rbDrop2; }
.is-animated .rb-l3 { animation-name: rbDrop3; }
.is-animated .rb-l4 { animation-name: rbDrop4; transform-origin: 722px 446px; }
.is-animated .rb-shine { animation: rbShine 8s var(--ease-in-out) infinite; }
.is-animated .rb-steam { animation: steamShow 8s linear infinite; }
@keyframes rbPlate { 0%, 48% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes rbDrop1 { 0%, 5%  { transform: translateY(-1100px); } 12% { transform: translateY(14px); } 15%, 100% { transform: none; } }
@keyframes rbDrop2 { 0%, 13% { transform: translateY(-1100px); } 20% { transform: translateY(12px); } 23%, 100% { transform: none; } }
@keyframes rbDrop3 { 0%, 21% { transform: translateY(-1100px) rotate(3deg); } 28% { transform: translateY(8px); } 31%, 100% { transform: none; } }
@keyframes rbDrop4 { 0%, 30% { transform: translateY(-1100px); } 38% { transform: translateY(16px) scaleY(.92); } 42% { transform: translateY(-8px) scaleY(1.03); } 46%, 100% { transform: none; } }
@keyframes rbShine { 0%, 52% { transform: translateX(0); } 70%, 100% { transform: translateX(760px); } }
@keyframes rbPush { 0%, 46% { transform: scale(1); } 100% { transform: scale(1.05); } }

/* COCKTAIL (photo) : 7s — le verre se remplit, vapeur, reflet */
.is-animated .demo-cocktail .demo-svg { animation: loopFade 7s infinite; }
.is-animated .pc-scene { transform-origin: 980px 450px; animation: rbPush 7s var(--ease-in-out) infinite; }
.pc-cover { transform: translateY(-420px); }
.is-animated .pc-cover { animation: pcFill 7s var(--ease-in-out) infinite; }
.is-animated .pc-wave { animation: pcWave 1.4s linear infinite; }
.is-animated .pc-bubbles { animation: pcBubblesShow 7s linear infinite; }
.is-animated .pb { animation: pbRise 2.4s linear infinite; }
.is-animated .pb:nth-child(2) { animation-delay: .5s; animation-duration: 2.9s; }
.is-animated .pb:nth-child(3) { animation-delay: 1s; }
.is-animated .pb:nth-child(4) { animation-delay: 1.5s; animation-duration: 2.6s; }
.is-animated .pb:nth-child(5) { animation-delay: .8s; animation-duration: 3.1s; }
.is-animated .pc-shine { animation: pcShine 7s var(--ease-in-out) infinite; }
.is-animated .pc-steam { animation: steamShow 7s linear infinite; }
@keyframes pcFill { 0%, 6% { transform: translateY(0); } 40%, 100% { transform: translateY(-420px); } }
@keyframes pcWave { to { translate: -100px 0; } }
@keyframes pcBubblesShow { 0%, 12% { opacity: 0; } 22%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pbRise { 0% { translate: 0 0; opacity: 0; } 15% { opacity: 1; } 100% { translate: 0 -260px; opacity: 0; } }
@keyframes pcShine { 0%, 48% { transform: translateX(0); } 64%, 100% { transform: translateX(480px); } }

/* ===== Démos supplémentaires ===== */
/* PARFUM : 7s */
.demo-parfum { background: #E6CBD3; }
.pf-label { font-family: var(--font-display); font-size: 12px; letter-spacing: .3em; fill: #8A4A5E; }
.pf-sub { font-family: var(--font-body); font-size: 4px; letter-spacing: .4em; fill: #8A4A5E; font-weight: 700; }
.is-animated .demo-parfum .demo-svg { animation: loopFade 7s infinite; }
.is-animated .pf-bottle { animation: pfRise 7s var(--ease) infinite; }
.is-animated .pf-shadow { transform-origin: center; animation: pfShadow 7s var(--ease) infinite; }
.is-animated .pf-liquid { animation: pfSlosh 3s linear infinite; }
.is-animated .pf-shine { animation: pfShine 7s var(--ease-in-out) infinite; }
.is-animated .sk { transform-origin: center; animation: twinkle 2.4s var(--ease-in-out) infinite; }
.is-animated .sk2 { animation-delay: .6s; }
.is-animated .sk3 { animation-delay: 1.2s; }
.is-animated .sk4 { animation-delay: 1.8s; }
@keyframes pfRise { 0%, 6% { transform: translateY(46px); opacity: 0; } 30%, 100% { transform: none; opacity: 1; } }
@keyframes pfShadow { 0%, 6% { transform: scaleX(.3); opacity: 0; } 30%, 100% { transform: none; opacity: .5; } }
@keyframes pfSlosh { from { translate: 0 0; } to { translate: -80px 0; } }
@keyframes pfShine { 0%, 40% { transform: translateX(0); } 58%, 100% { transform: translateX(180px); } }
@keyframes twinkle { 0%, 100% { transform: scale(0); opacity: 0; } 40% { transform: scale(1.2); opacity: 1; } 60% { transform: scale(1); opacity: .9; } }

/* MONTRE : 6s */
.demo-montre { background: #12171d; }
.mt-brand { font-family: var(--font-body); font-size: 7px; letter-spacing: .4em; fill: #E3C487; font-weight: 600; }
.is-animated .demo-montre .demo-svg { animation: loopFade 6s infinite; }
.is-animated .mt-watch { transform-origin: center; animation: mtIn 6s var(--ease) infinite; }
.mt-sec, .mt-min, .mt-hour { transform-box: view-box !important; transform-origin: 200px 120px; }
.mt-hour { rotate: -60deg; }
.mt-min { rotate: 60deg; }
.is-animated .mt-sec { animation: mtSec 6s linear infinite; }
.is-animated .mt-min { animation: mtMin 6s var(--ease-in-out) infinite; }
.is-animated .mt-glint { animation: mtGlint 6s var(--ease-in-out) infinite; }
@keyframes mtIn { 0%, 4% { transform: rotate(-14deg) scale(.86); opacity: 0; } 28%, 100% { transform: none; opacity: 1; } }
@keyframes mtSec { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes mtMin { 0%, 30% { rotate: 60deg; } 100% { rotate: 90deg; } }
@keyframes mtGlint { 0%, 34% { transform: translateX(0); } 56%, 100% { transform: translateX(160px); } }

/* PULSE (fitness) : 5s */
.demo-pulse { background: #0E0F10; }
.pl-name { font-family: var(--font-body); font-weight: 800; font-size: 40px; letter-spacing: .2em; fill: #F3F0EA; }
.pl-tag { font-family: var(--font-body); font-size: 9px; letter-spacing: .5em; fill: #8A8A8A; font-weight: 600; }
.is-animated .demo-pulse .demo-svg { animation: loopFade 5s infinite; }
.is-animated .pl-line { stroke-dasharray: 1; animation: plDraw 5s var(--ease-in-out) infinite; }
.is-animated .pl-dot { transform-origin: center; animation: plDot 5s var(--ease) infinite; }
.is-animated .pl-name { transform-origin: center; animation: plBeat 5s var(--ease) infinite; }
.is-animated .pl-tag { animation: tagIn 5s var(--ease) infinite; }
@keyframes plDraw { 0%, 4% { stroke-dashoffset: 1; } 40%, 100% { stroke-dashoffset: 0; } }
@keyframes plDot { 0%, 38% { transform: scale(0); } 44% { transform: scale(1.8); } 50%, 100% { transform: scale(1); } }
@keyframes plBeat { 0%, 20% { opacity: 0; transform: translateY(10px); } 34% { opacity: 1; transform: none; } 44% { transform: scale(1.08); } 50% { transform: scale(1); } 56% { transform: scale(1.06); } 62%, 100% { transform: scale(1); } }

/* HABITAT (immobilier) : 6s */
.demo-habitat { background: #EFE9E1; }
.hb-name { font-family: var(--font-body); font-weight: 300; font-size: 30px; letter-spacing: .45em; fill: #1F3A4A; }
.hb-tag { font-family: var(--font-body); font-size: 8.5px; letter-spacing: .45em; fill: #6B7C86; font-weight: 600; }
.is-animated .demo-habitat .demo-svg { animation: loopFade 6s infinite; }
.is-animated .hb-roof { stroke-dasharray: 1; animation: hbRoof 6s var(--ease-in-out) infinite; }
.is-animated .hb-walls { stroke-dasharray: 1; animation: hbWalls 6s var(--ease-in-out) infinite; }
.is-animated .hb-door { transform-origin: 50% 100%; animation: hbDoor 6s var(--ease) infinite; }
.is-animated .hb-chim { transform-origin: 50% 100%; animation: hbDoor 6s var(--ease) infinite; animation-delay: .3s; }
.is-animated .hb-win { animation: hbLight 6s var(--ease) infinite; }
.is-animated .hb-name { animation: textRise2 6s var(--ease) infinite; }
.is-animated .hb-tag { animation: tagIn 6s var(--ease) infinite; }
@keyframes hbRoof { 0%, 4% { stroke-dashoffset: 1; } 28%, 100% { stroke-dashoffset: 0; } }
@keyframes hbWalls { 0%, 14% { stroke-dashoffset: -1; } 38%, 100% { stroke-dashoffset: 0; } }
@keyframes hbDoor { 0%, 34% { transform: scaleY(0); } 44%, 100% { transform: scaleY(1); } }
@keyframes hbLight { 0%, 46% { fill: #1F3A4A; filter: none; } 52%, 100% { fill: #F5C451; filter: drop-shadow(0 0 6px #F5C451); } }

/* LUNE (joaillerie) : 7s */
.demo-lune { background: #0D0F1F; }
.ln-name { font-family: var(--font-display); font-size: 40px; letter-spacing: .5em; fill: #E9D8A6; }
.ln-tag { font-family: var(--font-body); font-size: 8.5px; letter-spacing: .5em; fill: #8F89A8; font-weight: 600; }
.is-animated .demo-lune .demo-svg { animation: loopFade 7s infinite; }
.is-animated .ln-moon { transform-origin: center; animation: lnMoon 7s var(--ease) infinite; }
.is-animated .ln-halo { transform-origin: center; animation: lnHalo 3.5s var(--ease-in-out) infinite; }
.is-animated .ln-st { transform-origin: center; animation: twinkle 2.2s var(--ease-in-out) infinite; }
.is-animated .ln-s2 { animation-delay: .5s; }
.is-animated .ln-s3 { animation-delay: 1s; }
.is-animated .ln-s4 { animation-delay: 1.5s; }
.is-animated .ln-name { animation: track 7s var(--ease) infinite; }
.is-animated .ln-tag { animation: tagIn 7s var(--ease) infinite; }
@keyframes lnMoon { 0%, 4% { transform: rotate(-120deg) scale(0); opacity: 0; } 30%, 100% { transform: none; opacity: 1; } }
@keyframes lnHalo { 0%, 100% { transform: scale(1); opacity: .1; } 50% { transform: scale(1.25); opacity: .22; } }

/* ---------- Work / showcase ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wcard { display: flex; flex-direction: column; gap: 14px; }
.wcard:nth-child(3n+2) { margin-top: 50px; }
.wstage {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.wcard:hover .wstage { transform: translateY(-6px); box-shadow: var(--shadow); }
.wstage svg { width: 100%; height: 100%; }
.wmeta { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 0; }
.wmeta h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; }
.wmeta p { margin: 0; color: var(--muted); }
.wdesc { margin: 0; padding: 0 4px; color: var(--muted); font-size: 15px; }

/* 1 Tracé */
.stage-trace { background: radial-gradient(ellipse at center, var(--surface-2), var(--surface)); }
.tr-hex, .tr-in { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; animation: trace 5s var(--ease-in-out) infinite; }
.tr-in { stroke: var(--accent); animation-delay: .4s; }
.tr-dot { fill: var(--accent); transform-box: fill-box; transform-origin: center; animation: dotPop 5s var(--ease) infinite; }
.tr-txt { font-family: var(--font-body); font-size: 11px; letter-spacing: .6em; fill: var(--text); font-weight: 600; animation: trTxt 5s var(--ease) infinite; }
@keyframes trace { 0% { stroke-dashoffset: 1; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes dotPop { 0%, 40% { transform: scale(0); } 50% { transform: scale(1.8); } 58%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes trTxt { 0%, 42% { opacity: 0; } 58%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* 2 Particules */
.stage-particles { background: radial-gradient(ellipse at center, #17131A, #0B0A0C); }
.particles-canvas { width: 100%; height: 100%; }

/* 3 Liquide */
.stage-liquid { background: radial-gradient(ellipse at 30% 30%, #13213A, #0A0E1A); }
.liq-txt { font-family: var(--font-display); font-style: italic; font-size: 72px; fill: url(#liqG); }

/* 4 Néon */
.stage-neon { background: radial-gradient(ellipse at center, #1A0B1E, #07050A); }
.neon-wrap { position: relative; display: grid; place-items: center; }
.neon-ring { position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 2px solid #FF3DBB; box-shadow: 0 0 12px #FF3DBB, 0 0 40px #FF3DBB, inset 0 0 12px #FF3DBB; animation: neonFlicker 4s infinite; }
.neon-txt { position: relative; font-family: var(--font-body); font-weight: 700; font-size: 30px; letter-spacing: .12em; color: #FDF0FF; text-shadow: 0 0 6px #fff, 0 0 18px #3DE0FF, 0 0 40px #3DE0FF; animation: neonFlicker 3s .3s infinite; }
.neon-txt b { font-weight: 300; color: #FFD6F3; text-shadow: 0 0 6px #fff, 0 0 18px #FF3DBB, 0 0 40px #FF3DBB; }
@keyframes neonFlicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .25; } }

/* 5 Typo cinétique */
.stage-kinetic { background: var(--accent-grad); }
.kin { display: flex; font-family: var(--font-body); font-weight: 800; font-size: clamp(36px, 4.2vw, 56px); color: #fff; letter-spacing: -.02em; }
.kin span { display: inline-block; animation: kin 2.8s var(--ease) infinite; }
.kin span:nth-child(2) { animation-delay: .08s; }
.kin span:nth-child(3) { animation-delay: .16s; }
.kin span:nth-child(4) { animation-delay: .24s; }
.kin span:nth-child(5) { animation-delay: .32s; }
.kin span:nth-child(6) { animation-delay: .40s; }
@keyframes kin { 0% { transform: translateY(0) rotate(0); } 15% { transform: translateY(-34px) rotate(-8deg) scale(1.1); } 30% { transform: translateY(6px) scaleY(.85); } 40%, 100% { transform: none; } }

/* 6 Profondeur 3D */
.stage-depth { background: linear-gradient(160deg, #E9E2D6, #CFC4B2); perspective: 700px; }
.depth { position: relative; width: 62%; aspect-ratio: 16/10; transform-style: preserve-3d; animation: depth 8s var(--ease-in-out) infinite; }
.dl { position: absolute; inset: 0; border-radius: 14px; }
.dl1 { background: #2E2A24; transform: translateZ(-40px); }
.dl2 { background: linear-gradient(135deg, #B9643A, #7E3A1E); inset: 14%; transform: translateZ(10px); border-radius: 10px; }
.dl3 { inset: 32%; background: #F3EEE5; border-radius: 50%; transform: translateZ(50px); width: auto; aspect-ratio: 1; left: 50%; right: auto; translate: -50% 0; }
.dl-logo { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font-family: var(--font-display); font-size: 22px; color: #F3EEE5; letter-spacing: .4em; transform: translateZ(70px); }
@keyframes depth { 0%, 100% { transform: rotateY(-22deg) rotateX(12deg); } 50% { transform: rotateY(22deg) rotateX(-6deg); } }

/* Stats */
.stats-wrap { padding: 0 0 clamp(100px, 12vw, 170px); }
.work { padding-bottom: clamp(70px, 9vw, 120px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 36px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-n { font-family: var(--font-display); font-size: clamp(56px, 6vw, 92px); line-height: 1; letter-spacing: -.03em; }
.stat-l { color: var(--muted); font-size: 14px; max-width: 200px; }
.stat-n small { font-size: .38em; letter-spacing: 0; color: var(--muted); font-family: var(--font-mono); margin-left: .15em; }

/* ---------- Avis — témoignages (un par un) ---------- */
.o-reviews { text-align: center; }
.o-reviews__head { display: grid; justify-items: center; margin-bottom: clamp(48px, 8vw, 90px); }
.o-reviews__head .section-sub { margin-left: auto; margin-right: auto; }
.o-reviews__stage { max-width: 960px; margin: 0 auto; touch-action: pan-y; }
.o-reviews__track { display: grid; }
.o-review {
  grid-area: 1 / 1; display: grid; justify-items: center; align-content: center; gap: 2rem; margin: 0;
  opacity: 0; visibility: hidden; transform: translate3d(0, 16px, 0);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), visibility 0s 1.1s;
}
.o-review.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 1.1s var(--ease) .15s, transform 1.3s var(--ease) .15s, visibility 0s; }
.o-review__stars { display: flex; gap: 6px; margin: 0; }
.o-review__stars span { display: inline-flex; width: 16px; height: 16px; color: var(--line-2); }
.o-review__stars span.is-on { color: var(--accent); }
.o-review__stars svg, .o-rating svg { width: 100%; height: 100%; fill: currentColor; }
.o-review__quote { margin: 0; padding: 0; border: 0; }
.o-review__quote p { margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 1rem + 2vw, 2.8rem); line-height: 1.25; letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
.o-review__quote p::before { content: "« "; color: var(--accent); }
.o-review__quote p::after { content: " »"; color: var(--accent); }
html[lang^="en"] .o-review__quote p::before { content: "“"; }
html[lang^="en"] .o-review__quote p::after { content: "”"; }
.o-review__author { display: grid; gap: .4rem; }
.o-review__name { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--text); }
.o-review__meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.o-reviews__nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: clamp(32px, 6vh, 56px); }
.o-reviews__arrow { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text); font-size: 1rem; transition: border-color .5s, color .5s, transform .8s var(--ease); }
.o-reviews__arrow:hover, .o-reviews__arrow:focus-visible { border-color: var(--accent); color: var(--accent); }
.o-reviews__arrow[data-prev]:hover { transform: translateX(-4px); }
.o-reviews__arrow[data-next]:hover { transform: translateX(4px); }
.o-reviews__count { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.o-reviews__count [data-current] { color: var(--accent); }
.o-reviews__count-sep { width: 24px; height: 1px; background: currentColor; opacity: .6; }
.o-reviews__empty { max-width: 44ch; margin: 0 auto; font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem); line-height: 1.2; color: var(--text-2); text-wrap: balance; }
.o-reviews__cta { display: flex; justify-content: center; margin-top: clamp(40px, 7vh, 72px); }
.o-reviews__toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.o-reviews__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 1s var(--ease); }
.o-reviews__panel.is-open { grid-template-rows: 1fr; }
.o-reviews__panel-inner { min-height: 0; overflow: hidden; max-width: 720px; margin: 0 auto; text-align: left; }
.o-reviews__panel.is-open .o-reviews__panel-inner { padding-top: clamp(32px, 6vh, 56px); }
.o-reviews__form { padding: 4px; }
.o-rating { margin: 4px 0; padding: 0; border: 0; }
.o-rating__legend { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.o-rating__stars { display: inline-flex; flex-direction: row-reverse; gap: 8px; }
.o-rating input { position: absolute; opacity: 0; pointer-events: none; }
.o-rating label { display: inline-flex; width: 28px; height: 28px; color: var(--line-2); cursor: pointer; transition: color .3s, transform .4s var(--ease); }
.o-rating label:hover, .o-rating label:hover ~ label, .o-rating input:checked ~ label { color: var(--accent); }
.o-rating label:hover { transform: scale(1.15); }
.o-rating input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.o-rating.is-invalid .o-rating__legend { color: #E5484D; }
.o-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 40px); }
.faq .h2 { font-size: clamp(42px, 5.2vw, 78px); }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; letter-spacing: -.01em;
  transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa summary i { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); flex-shrink: 0; transition: transform .6s var(--ease), background-color .4s, border-color .4s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .6s var(--ease); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] summary i { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(180deg); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.qa-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.qa-body > p { overflow: hidden; margin: 0; color: var(--muted); max-width: 620px; }
.qa.is-open .qa-body { grid-template-rows: 1fr; }
.qa.is-open .qa-body > p { padding-bottom: 28px; }

/* ---------- Contact ---------- */
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(32px, 6vw, 80px);
  border-radius: calc(var(--radius) + 10px);
  background: var(--surface); border: 1px solid var(--line);
}
.contact-glow {
  position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; left: -20%; top: -40%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  filter: blur(30px);
  animation: glowMove 14s var(--ease-in-out) infinite alternate;
}
@keyframes glowMove { to { transform: translate(40%, 30%) scale(1.2); } }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); }
.contact .h2 { font-size: clamp(40px, 5vw, 72px); }
.contact-links { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 12px; }
.clink { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); transition: border-color .4s, transform .5s var(--ease); }
.clink:hover { border-color: var(--accent); }
.clink-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); flex-shrink: 0; transition: background-color .4s, color .4s; }
.clink:hover .clink-ico { background: var(--accent); color: #fff; border-color: var(--accent); }
.clink-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.clink small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.clink strong { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: -.01em; }

.form { display: grid; gap: 14px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field textarea { min-height: 130px; }
.field label { position: absolute; left: 19px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transition: all .35s var(--ease); transform-origin: left top; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #E5484D; }

.chips { border: 0; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; transition: all .3s var(--ease); }
.chips label:hover span { border-color: var(--text); }
.chips input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; margin: 4px 0 8px; }
.consent input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 1px solid var(--line-2); border-radius: 6px; flex-shrink: 0; margin: 0; display: grid; place-items: center; cursor: pointer; transition: all .3s; }
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.consent.is-invalid input { border-color: #E5484D; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button[disabled] { opacity: .6; pointer-events: none; }
/* Barre d'admin WordPress (utilisateur connecté) */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.form-status { margin: 4px 0 0; font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: #2FB57C; }
.form-status.err { color: #E5484D; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 36px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-big { padding: clamp(30px, 6vw, 80px) 0 clamp(30px, 5vw, 60px); color: var(--text); }
.footer-big svg { width: 100%; height: auto; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--muted); }
.footer-row p { margin: 0; }
.footer-nav { display: flex; gap: 22px; font-size: 14px; }
.footer-nav a:hover, .to-top:hover { color: var(--text); }

.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-legal a:hover { color: var(--text); }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Formulaires : envoi et confirmation ---------- */
.form.is-sending { opacity: .7; pointer-events: none; }
.form-success { display: grid; justify-items: center; gap: 18px; padding: 48px 12px; text-align: center; }
.form-success[hidden] { display: none; }
.form-success p { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem); line-height: 1.2; max-width: 22ch; }
.form-success__mark { position: relative; width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--accent); animation: successIn .9s var(--ease) both; }
.form-success__mark::after { content: ""; position: absolute; left: 25px; top: 18px; width: 14px; height: 26px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes successIn { from { transform: scale(.4); opacity: 0; } }
.chips-legend { width: 100%; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.chip { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; }

/* ---------- Médias personnels (avant / après, cartes de style) ---------- */
.demo-own { background: #000; }
.demo-media, .stage-media .o-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-media { background: #000; }

/* ---------- En-tête : langues en liens, menu mobile ---------- */
.lang-btn { display: inline-grid; place-items: center; }
.mobile-menu__foot { position: absolute; left: var(--gutter); bottom: 40px; }
.brand-logo--img { height: 28px; width: auto; }

/* ---------- Éditeur WordPress ---------- */
.hero.is-editor { min-height: 0; padding: 90px 0 60px; }
.hero.is-editor .hero-title .line, .hero.is-editor .hero-sub, .hero.is-editor .hero-ctas, .hero.is-editor .hero-eyebrow, .hero.is-editor .hero-rotator { opacity: 1; animation: none; transform: none; }
.process.is-editor { height: auto; }
.process.is-editor .step p { max-height: none; }
.o-reviews.is-editor .o-reviews__head { margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-actions .btn-small { display: none; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .wcard:nth-child(3n+2) { margin-top: 0; }
  .wcard:nth-child(even) { margin-top: 50px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .section-head.split, .studio-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .studio-intro, .faq-head { position: static; }
  .process { height: auto; }
  .process-sticky { position: relative; height: auto; padding: 100px 0; }
  .process-inner { grid-template-columns: 1fr; }
  .step { opacity: 1; }
  .step p { max-height: none; }
  .hero-ring { right: -30vmin; width: 90vmin; opacity: .7; }
  .hero-line { width: 100%; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .service:nth-child(even) { margin-top: 0; }
  .service-ico { margin-bottom: 36px; }
  .work-grid { grid-template-columns: 1fr; }
  .wcard:nth-child(even) { margin-top: 0; }
  .field-row { grid-template-columns: 1fr; }
  .ba { aspect-ratio: 4 / 5; }
  .demo-svg { transform: scale(1.6); }
  .demo-svg.demo-photo { transform: none; }
  .ba-label { top: 12px; font-size: 10px; padding: 6px 10px; }
  .ba-label-l { left: 12px; }
  .ba-label-r { right: 12px; }
  .ba-knob { width: 48px; height: 48px; }
  .hero-meta { display: none; }
  .lang-btn { width: 34px; }
  .theme-toggle { width: 38px; height: 38px; }
  .brand-logo { height: 18px; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }
  .footer-nav { flex-wrap: wrap; gap: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  body::after { display: none; }
}
