/* ==========================================================================
   Qema Studio — site vitrine
   Le mouvement lié au défilement est piloté par une seule variable par
   section (--p, de 0 à 1) écrite par script.js ; chaque élément en déduit
   sa propre plage avec clamp(). Sans JavaScript, sur mobile ou avec
   « réduire les animations », rien n'est épinglé et chaque composition
   reste lisible.
   ========================================================================== */

:root {
  --bg: #F8F4EC;
  --bg2: #EFE8DA;
  --paper: #FFFDF8;
  --ink: #161A33;
  --ink2: #4B4F68;
  --royal: #203A96;
  --sky: #8FA6F5;
  --gold: #C5A052;
  --gold-d: #85661F;
  --tq: #0E6F6A;
  --line: rgba(22, 26, 51, .12);
  --line2: rgba(22, 26, 51, .22);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --logo: "Josefin Slab", Rockwell, Georgia, serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gut: clamp(20px, 4vw, 64px);
  --max: 1680px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ol, ul { list-style: none; padding: 0; }
em { font-style: normal; }
::selection { background: var(--royal); color: var(--bg); }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 4px; border-radius: 6px; }
.method :focus-visible, .contact-sec :focus-visible, .foot :focus-visible, .menu :focus-visible, .top.dark :focus-visible { outline-color: var(--gold); }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* Typographie --------------------------------------------------------------- */
.h2 { font-weight: 600; letter-spacing: -.04em; line-height: .98; font-size: clamp(40px, 5.6vw, 92px); }
.h2 em, .h-hero em, .h-contact em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--royal);
}
.label { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.label span { font-variant-numeric: tabular-nums; color: var(--gold-d); }
.label::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .5; }
.head { margin-bottom: clamp(40px, 6vw, 96px); }
.head .label { margin-bottom: 24px; }
.sub { margin-top: 24px; max-width: 460px; font-size: 19px; }

/* Boutons et liens --------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 28px; border-radius: 999px; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500; font-size: 16px;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform .5s var(--ease), color .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--royal); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn b { font-weight: 400; transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover b { transform: translateX(5px); }
.btn-sm { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-or { background: var(--gold); color: var(--ink); }
.btn-or::before { background: var(--bg); }

.link-u { text-decoration: none; font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; }
.link-u:hover, .link-u:focus-visible { animation: uline .7s var(--ease-io); }
@keyframes uline {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  50% { background-size: 0 1px; background-position: 100% 100%; }
  50.1% { background-size: 0 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}

/* Apparitions (déclenchées par script.js) ----------------------------------- */
.js [data-in] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-in].in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .split.in .w > span { transform: none; }

/* Barre de progression ---------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

/* En-tête ---------------------------------------------------------------- */
.top { --s: 0; position: fixed; inset: 0 0 auto; z-index: 60; padding: calc(18px - 8px * var(--s)) var(--gut) 0; }
.top-in {
  position: relative; max-width: calc(var(--max) - 2 * var(--gut) + 40px); margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  height: calc(68px - 12px * var(--s));
  padding: 0 8px 0 calc(6px + 14px * var(--s));
  border-radius: 999px;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), color .4s;
}
.top.scrolled .top-in {
  background: rgba(248, 244, 236, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 0 0 1px var(--line), 0 14px 34px -18px rgba(22, 26, 51, .3);
}
.top.dark .top-in { color: var(--bg); }
.top.dark.scrolled .top-in { background: rgba(22, 26, 51, .74); box-shadow: 0 0 0 1px rgba(248, 244, 236, .14); }
.top.dark .brand img, .top.menu-open .brand img { filter: brightness(0) invert(.95); }
.top.dark .btn-sm { background: var(--bg); color: var(--ink); }
.top.dark .btn-sm:hover { color: var(--bg); }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { width: 30px; height: auto; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), filter .4s; }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand span { font: 700 21px/1 var(--logo); letter-spacing: .01em; padding-top: 3px; }

.nav { position: relative; display: flex; gap: 2px; }
.nav a { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; opacity: .62; transition: opacity .3s; }
.nav a:hover, .nav a.on { opacity: 1; }
.nav-ind { position: absolute; top: 0; left: 0; height: 100%; width: var(--w, 0); border-radius: 999px; opacity: 0; transform: translateX(var(--x, 0)); transition: transform .6s var(--ease), width .6s var(--ease), opacity .3s; }
.nav-ind::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: .08; }
.nav-ind::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.nav.has-on .nav-ind { opacity: 1; }

.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; position: relative; z-index: 2; }
.menu-btn i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn i:nth-of-type(1) { top: 20px; }
.menu-btn i:nth-of-type(2) { top: 27px; }
.menu-btn[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gut) 40px;
  clip-path: circle(0 at calc(100% - 50px) 44px); transition: clip-path .8s var(--ease-io);
}
.menu[hidden] { display: none; }
.menu.open { clip-path: circle(150% at calc(100% - 50px) 44px); }
.menu nav { display: grid; gap: 6px; }
.menu nav a {
  display: flex; align-items: baseline; gap: 18px; text-decoration: none;
  font-size: clamp(40px, 11vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1.12;
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.menu nav a small { font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--gold); }
.menu.open nav a { opacity: 1; transform: none; }
.menu.open nav a:nth-child(1) { transition-delay: .18s; }
.menu.open nav a:nth-child(2) { transition-delay: .24s; }
.menu.open nav a:nth-child(3) { transition-delay: .30s; }
.menu.open nav a:nth-child(4) { transition-delay: .36s; }
.menu.open nav a:nth-child(5) { transition-delay: .42s; }
.menu-foot { margin-top: 48px; color: rgba(248, 244, 236, .75); }
.top.menu-open .top-in { color: var(--bg); background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* Accueil ----------------------------------------------------------------- */
.hero { --hy: 0; position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 36px; overflow: hidden; }
.hero-geo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transform: translate3d(0, calc(var(--hy) * .25px), 0); }
.hero-geo > * { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .5; }
.hero-geo > circle:nth-child(2) { stroke-dasharray: .004 .006; opacity: .3; }
.js .hero-geo > :not(:nth-child(2)) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-io); }
.js .hero-geo > circle:nth-child(2) { opacity: 0; transition: opacity 2s 1s; }
.loaded .hero-geo > :not(:nth-child(2)) { stroke-dashoffset: 0; }
.loaded .hero-geo > circle:nth-child(2) { opacity: .3; }
.loaded .hero-geo > :nth-child(3) { transition-delay: .4s; }
.loaded .hero-geo > :nth-child(4) { transition-delay: .7s; }

.hero-grid { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 2vw; }
.hero-text { position: relative; z-index: 2; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--ink2); margin-bottom: clamp(24px, 3vw, 40px); }
.dot-or { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(197, 160, 82, .18); flex: none; }
.h-hero { font-size: clamp(50px, 7.3vw, 136px); line-height: .94; letter-spacing: -.05em; font-weight: 600; }
.h-hero em { font-size: 1.1em; line-height: .8; padding-right: .04em; }
.h-hero .line { display: block; overflow: hidden; padding: 0 .06em .08em 0; margin-bottom: -.08em; }
.h-hero .line > span { display: inline-block; }
.js .h-hero .line > span { transform: translate3d(0, 110%, 0) rotate(2.5deg); transform-origin: 0 100%; transition: transform 1.25s var(--ease); }
.js .h-hero .line:nth-child(2) > span { transition-delay: .09s; }
.js .h-hero .line:nth-child(3) > span { transition-delay: .18s; }
.loaded .h-hero .line > span { transform: none; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 56px; margin-top: clamp(32px, 4vw, 56px); --d: .45s; }
.lead { max-width: 400px; font-size: 18px; color: var(--ink2); }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero-mark { --mx: 0; --my: 0; position: relative; perspective: 1000px; }
.hero-mark-in {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; margin-left: auto; transform-style: preserve-3d;
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 14px + var(--hy) * -.12px), 0) rotateY(calc(var(--mx) * 7deg)) rotateX(calc(var(--my) * -7deg));
}
.hero-mark iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; animation: float 7s 3s ease-in-out infinite; }
.hero-mark iframe:not([src]) { display: none; }
/* version légère (mobile, mouvement réduit, sans JavaScript) : le logo fixe, aux mêmes proportions que l'animation */
.mark-static { position: absolute; left: 14.22%; top: 20.71%; width: 72.73%; height: auto; }
.js:not(.motion) .mark-static { opacity: 0; transform: scale(.9) rotate(-10deg); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); }
.js.loaded:not(.motion) .mark-static { opacity: 1; transform: none; animation: float 7s 2s ease-in-out infinite; }
.halo { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 253, 248, .95), rgba(239, 232, 218, .55) 60%, transparent); transform: translate3d(calc(var(--mx) * -18px), calc(var(--my) * -18px), -60px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-meta { position: relative; width: 100%; max-width: var(--max); margin: clamp(40px, 6vh, 72px) auto 0; padding: 0 var(--gut); display: flex; align-items: center; gap: 22px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); --d: .8s; }
.hero-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 22px; vertical-align: middle; border-radius: 50%; background: var(--gold); }
.scroll-cue { margin-left: auto; position: relative; width: 26px; height: 42px; border: 1px solid var(--line2); border-radius: 999px; }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* Bandeau ---------------------------------------------------------------- */
.marquee { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 44px) 0; border-block: 1px solid var(--line); background: var(--bg); }
.marquee-track { display: flex; width: max-content; transform: translate3d(var(--mx, 0px), 0, 0); will-change: transform; }
.mq-set { display: flex; align-items: center; flex: none; }
.mq-set span { font-size: clamp(54px, 9vw, 156px); font-weight: 600; letter-spacing: -.05em; line-height: 1.05; padding: 0 .3em; white-space: nowrap; }
.mq-set em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--royal); letter-spacing: -.01em; }
.shen { width: clamp(30px, 4.4vw, 76px); height: auto; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; flex: none; }

/* Réalisations ----------------------------------------------------------- */
.work {
  --wbg: var(--bg); --wink: var(--ink); --wacc: var(--royal);
  padding: clamp(96px, 12vw, 180px) 0 40px; background: var(--wbg); color: var(--wink);
  transition: background-color .9s var(--ease), color .9s var(--ease);
}
.work[data-active="sou"] { --wbg: #E4F5EE; --wink: #10201A; --wacc: #00855B; }
.work[data-active="claimshot"] { --wbg: #E7E9FB; --wink: #13163A; --wacc: #3446D0; }
.work[data-active="wagebeat"] { --wbg: #F1EEE8; --wink: #121212; --wacc: #C42A24; }
.work .head .label { color: inherit; }
.work .h2 em { color: var(--wacc); transition: color .9s; }
.proj { --pp: 0; position: relative; padding: clamp(40px, 7vw, 100px) 0; }
.proj[data-proj="sou"] { --acc: #00855B; }
.proj[data-proj="claimshot"] { --acc: #3446D0; }
.proj[data-proj="wagebeat"] { --acc: #C42A24; }
.proj-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.proj:nth-of-type(even) .proj-media { order: 2; }
.proj-media { --rx: 0; --ry: 0; position: relative; display: block; aspect-ratio: 1 / .92; perspective: 1400px; }
.proj-media::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 40px; background: var(--acc); opacity: .1; transform: scale(.92); transition: transform 1.4s var(--ease); }
.proj.in .proj-media::before { transform: none; }
.pm-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(var(--ry) * -6deg)) rotateY(calc(var(--rx) * 8deg)); transition: transform .9s var(--ease); }
.pm-tilt img {
  position: absolute; height: auto; border-radius: 9% / 4.2%;
  box-shadow: 0 0 0 5px #0E0F12, 0 50px 80px -40px rgba(0, 0, 0, .55);
  transform: translate3d(0, calc(var(--pp) * var(--dp, 40) * 1px), var(--z, 0px)) rotate(var(--rot, 0deg));
  transition: clip-path 1.3s var(--ease-io) var(--dl, 0s);
}
.js .pm-tilt img { clip-path: inset(100% 0 0 0); }
.js .proj.in .pm-tilt img { clip-path: inset(-20% -20% -20% -20%); }
.pm-a { --dp: 30; --rot: -3deg; left: 10%; top: 4%; width: 36%; }
.pm-b { --dp: -40; --z: 60px; --rot: 4deg; --dl: .15s; left: 50%; top: 14%; width: 36%; }
.pm-c { --dp: -90; --z: 120px; --dl: .3s; }
.pm-c.mascot { left: 66%; top: 60%; width: 30%; border-radius: 0; box-shadow: none; filter: drop-shadow(0 30px 30px rgba(0, 85, 55, .3)); }
.proj.in .pm-c.mascot { animation: bob 5s 1.4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }
.pm-a.laptop { left: 0; top: 18%; width: 88%; border-radius: 0; box-shadow: none; --rot: 0deg; filter: drop-shadow(0 40px 40px rgba(19, 22, 58, .25)); }
.pm-b.framed { left: 66%; top: 24%; width: 30%; border-radius: 0; box-shadow: none; --rot: 3deg; filter: drop-shadow(0 30px 30px rgba(19, 22, 58, .3)); }
.pm-c.icon { left: 4%; top: 3%; width: 15%; border-radius: 22%; box-shadow: 0 30px 40px -20px rgba(19, 22, 58, .5); }
.pm-c.watch { left: 72%; top: 60%; width: 22%; border-radius: 26%; box-shadow: 0 0 0 6px #1d1d1f, 0 40px 60px -30px rgba(0, 0, 0, .6); }

.js .proj-txt > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js .proj.in .proj-txt > * { opacity: 1; transform: none; }
.proj.in .proj-txt > :nth-child(2) { transition-delay: .08s; } .proj.in .proj-txt > :nth-child(3) { transition-delay: .16s; } .proj.in .proj-txt > :nth-child(4) { transition-delay: .24s; } .proj.in .proj-txt > :nth-child(5) { transition-delay: .32s; } .proj.in .proj-txt > :nth-child(6) { transition-delay: .4s; }
.p-idx { font-size: 13px; letter-spacing: .14em; color: var(--acc); font-weight: 600; margin-bottom: 18px; }
.p-name { font-size: clamp(56px, 7vw, 120px); font-weight: 600; letter-spacing: -.055em; line-height: .9; margin-bottom: 26px; }
.p-goal { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; max-width: 520px; margin-bottom: 28px; }
.p-feat { display: grid; margin-bottom: 28px; }
.p-feat li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid rgba(0, 0, 0, .1); font-size: 16px; }
.p-feat li::before { content: ""; width: 14px; height: 2px; background: var(--acc); flex: none; transform: translateY(-4px); }
.p-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 30px; font-size: 15px; }
.p-meta dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; }
.st { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: #E0A526; box-shadow: 0 0 0 4px rgba(224, 165, 38, .22); vertical-align: 1px; }

.cursor-tag {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: 108px; height: 108px; margin: -54px 0 0 -54px; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600;
  transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(var(--cs, 0));
  transition: scale .4s var(--ease);
}
.cursor-tag small { font-size: 9px; font-weight: 500; opacity: .75; }


/* Nom de l'app en filigrane, derrière les captures */
.p-bg {
  position: absolute; left: 50%; top: 9%; z-index: -1; pointer-events: none; white-space: nowrap;
  font-size: clamp(110px, 17vw, 300px); font-weight: 700; letter-spacing: -.07em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--acc); opacity: .16;
  transform: translate(-50%, calc(-50% + var(--pp) * 70px));
}
.proj-media { isolation: isolate; cursor: pointer; }

/* Mascottes ---------------------------------------------------------------- */
.mascot {
  position: absolute; z-index: 3; display: block; width: var(--mw, 28%); padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate3d(0, calc(var(--pp) * -60px), 0);
  -webkit-tap-highlight-color: transparent;
}
.mascot:focus-visible { outline-offset: 0; border-radius: 30px; }
.m-body { display: block; transform-origin: 50% 92%; }
.m-body img, .m-body svg { display: block; width: 100%; height: auto; overflow: visible; }
.js .mascot .m-body { opacity: 0; transform: translateY(40px) scale(.6); transition: opacity .6s var(--ease) .5s, transform .9s cubic-bezier(.34, 1.56, .64, 1) .5s; }
.js .proj.in .mascot .m-body { opacity: 1; transform: none; }
.m-body.hop { animation: m-hop .6s cubic-bezier(.3, .6, .4, 1); }
.m-body.jump { animation: m-jump .8s cubic-bezier(.3, .6, .4, 1); }
.m-body.wiggle { animation: m-wiggle 1.1s ease-in-out; }
@keyframes m-hop { 0% { transform: none; } 25% { transform: scale(1.08, .9); } 55% { transform: translateY(-14%) scale(.96, 1.05); } 85% { transform: scale(1.05, .95); } 100% { transform: none; } }
@keyframes m-jump { 0% { transform: none; } 20% { transform: scale(1.1, .86); } 50% { transform: translateY(-26%) rotate(-8deg) scale(.95, 1.06); } 75% { transform: translateY(0) scale(1.08, .92); } 100% { transform: none; } }
@keyframes m-wiggle { 0%, 100% { transform: none; } 20% { transform: rotate(-7deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(3deg); } }
.m-sou .m-body img { filter: drop-shadow(0 26px 22px rgba(0, 85, 55, .28)); }
.m-sou .m-body { animation: m-float 4s ease-in-out infinite; }
.m-sou .m-body.hop, .m-sou .m-body.jump, .m-sou .m-body.wiggle { animation-iteration-count: 1; }
@keyframes m-float { 50% { translate: 0 -6px; } }

.bubble {
  position: absolute; left: 50%; bottom: 96%; z-index: 2; width: max-content; max-width: 230px;
  padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: #161A33;
  font: 600 14px/1.35 var(--sans); text-align: left; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .05);
  opacity: 0; transform: translate(-20%, 8px) scale(.9); transform-origin: 0 100%; pointer-events: none;
  transition: opacity .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.bubble.on { opacity: 1; transform: translate(-20%, 0); }
.m-tick .bubble { left: 30%; }

.m-sou { --mw: 36%; left: 62%; top: 50%; }
.m-pruvi { --mw: 34%; left: -2%; top: 50%; }
.m-tick { --mw: 31%; left: -4%; top: 52%; }

/* Tick : dessin et gestes repris du site de Wagebeat */
.tick { --ink: #111; }
.tick .tk-limb { stroke: var(--ink); } .tick .tk-shoe { fill: var(--ink); } .tick .tk-glove { stroke: var(--ink); }
.tick .tk-body { transform-origin: 300px 300px; animation: tk-beat 1.6s linear infinite; }
.tick .tk-eyes { transform-origin: 300px 250px; animation: tk-blink 3.1s linear infinite; }
@keyframes tk-beat { 0%, 22%, 100% { transform: scale(1); } 3% { transform: scale(1.05, 1.03); } 9% { transform: scale(1); } 15% { transform: scale(1.03, 1.018); } }
@keyframes tk-blink { 0%, 95%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(.08); } }
.tick .tk-arm-up, .tick .tk-lid, .tick .tk-flat, .tick .tk-grin, .tick .tk-oh, .tick .tk-brow-up, .tick .tk-v, .tick .tk-prog { display: none; }
.tick .tk-look { transform: translate(calc(var(--lx, 0) * 1px), calc(var(--ly, 0) * 1px)); transition: transform .25s ease-out; }
.tick [class*="tk-arm-"] { transform-origin: 484px 320px; } .tick [class*="tk-larm-"] { transform-origin: 116px 320px; }
.tick .tk-arm-up, .tick .tk-arm-thumb { animation: tk-raise-r .28s cubic-bezier(.3, 1.4, .5, 1); }
.tick .tk-larm-up { animation: tk-raise-l .28s cubic-bezier(.3, 1.4, .5, 1); }
.tick .tk-arm-wave { animation: tk-raise-r .28s cubic-bezier(.3, 1.4, .5, 1), tk-wave .32s ease-in-out .28s 8 alternate; }
.tick .tk-larm-point { animation: tk-raise-l .28s cubic-bezier(.3, 1.4, .5, 1), tk-jab .3s ease-in-out .28s 6 alternate; }
@keyframes tk-raise-r { from { transform: rotate(50deg); } }
@keyframes tk-raise-l { from { transform: rotate(-50deg); } }
@keyframes tk-wave { to { transform: rotate(17deg); } }
@keyframes tk-pump-r { to { transform: rotate(-10deg); } }
@keyframes tk-pump-l { to { transform: rotate(10deg); } }
@keyframes tk-jab { to { transform: translate(-16px, -14px); } }
[data-mood="wave"] .tk-arm-wave, [data-mood="wave"] .tk-grin { display: inline; }
[data-mood="wave"] .tk-arm-down, [data-mood="wave"] .tk-smile { display: none; }
[data-mood="point"] .tk-larm-point { display: inline; }
[data-mood="point"] .tk-larm-down { display: none; }
[data-mood="thumb"] .tk-arm-thumb, [data-mood="thumb"] .tk-grin { display: inline; }
[data-mood="thumb"] .tk-arm-down, [data-mood="thumb"] .tk-smile { display: none; }
[data-mood="cheer"] .tk-arm-up, [data-mood="cheer"] .tk-larm-up, [data-mood="cheer"] .tk-grin { display: inline; }
[data-mood="cheer"] .tk-arm-down, [data-mood="cheer"] .tk-larm-down, [data-mood="cheer"] .tk-smile { display: none; }
[data-mood="cheer"] .tk-arm-up { animation: tk-raise-r .28s cubic-bezier(.3, 1.4, .5, 1), tk-pump-r .28s ease-in-out .28s 6 alternate; }
[data-mood="cheer"] .tk-larm-up { animation: tk-raise-l .28s cubic-bezier(.3, 1.4, .5, 1), tk-pump-l .28s ease-in-out .28s 6 alternate; }

/* Studio ----------------------------------------------------------------- */
.studio { padding: clamp(96px, 12vw, 160px) 0; }
.studio .label { margin-bottom: 30px; }
.words { display: grid; font-size: clamp(54px, 8.2vw, 148px); font-weight: 600; letter-spacing: -.055em; line-height: .98; }
.wd {
  display: block; width: fit-content; padding: 0 .04em .06em 0;
  color: transparent; -webkit-text-stroke: 1px var(--line2);
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%) no-repeat;
  background-size: 200% 100%; background-position: calc((1 - var(--t)) * 100%) 0;
  -webkit-background-clip: text; background-clip: text;
}
.wd1 { --t: clamp(0, (var(--p) - .04) / .2, 1); }
.wd2 { --t: clamp(0, (var(--p) - .32) / .2, 1); }
.wd3 { --t: clamp(0, (var(--p) - .6) / .2, 1); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; background-image: linear-gradient(90deg, var(--royal) 50%, transparent 50%); }
.studio-lead { margin-top: 40px; max-width: 560px; font-size: clamp(18px, 1.5vw, 21px); color: var(--ink2); }
.glyph { font-family: var(--serif); font-style: italic; font-size: 1.2em; color: var(--ink); }
.forme { width: 100%; max-width: 500px; justify-self: center; overflow: visible; }
.forme * { fill: none; vector-effect: non-scaling-stroke; }
.f-line { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--p) - .04) / .22, 1)); }
.f-ring { stroke: var(--royal); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--p) - .3) / .26, 1)); transform: rotate(90deg); transform-origin: 150px 142px; }
.f-ui { opacity: clamp(0, (var(--p) - .58) / .12, 1); transform: scale(calc(.8 + clamp(0, (var(--p) - .58) / .22, 1) * .2)); transform-origin: 150px 142px; }
.forme .f-frame { stroke: var(--ink); stroke-width: 2; fill: var(--paper); }
.f-ui path { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.forme .f-fill { fill: var(--royal); opacity: clamp(0, (var(--p) - .7) / .12, 1); }
.forme .f-btn { fill: var(--gold); opacity: clamp(0, (var(--p) - .78) / .12, 1); }
.pledges { margin-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pledges li { padding: 34px 32px 10px 0; }
.pledges li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.big-n { display: block; font: italic 400 64px/1 var(--serif); color: var(--gold-d); margin-bottom: 18px; }
.pledges h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.pledges p { color: var(--ink2); }

/* Contact ---------------------------------------------------------------- */
.contact-sec { --p: 0; position: relative; overflow: hidden; background: var(--ink); color: var(--bg); padding: clamp(110px, 14vw, 200px) 0 clamp(90px, 10vw, 140px); }
.contact-q { position: absolute; right: -8vw; top: 6%; width: min(62vw, 900px); height: auto; opacity: .07; pointer-events: none; transform: translate3d(0, calc((1 - var(--p)) * 120px), 0) rotate(calc((1 - var(--p)) * -14deg)); }
.contact { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact .label { color: rgba(248, 244, 236, .7); margin-bottom: 26px; } .contact .label span { color: var(--gold); }
.h-contact { font-size: clamp(50px, 6.6vw, 116px); font-weight: 600; letter-spacing: -.05em; line-height: .95; }
.h-contact em { color: var(--gold); }
.muted { margin-top: 30px; color: rgba(248, 244, 236, .75); font-size: 18px; }
.mail { margin-top: 20px; font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.02em; }
.mail a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat; padding-bottom: 4px; transition: background-size .6s var(--ease); }
.mail a:hover { background-size: 0 2px; background-position: 100% 100%; }

.form { display: grid; gap: 26px; }
.field { position: relative; }
.field input, .field textarea {
  display: block; width: 100%; border: 0; border-radius: 0; resize: vertical;
  padding: 26px 0 12px; font-size: 18px; color: var(--bg);
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat, linear-gradient(rgba(248, 244, 236, .28), rgba(248, 244, 236, .28)) 0 100% / 100% 1px no-repeat;
  transition: background-size .7s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; background-size: 100% 2px, 100% 1px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field label { position: absolute; left: 0; top: 26px; color: rgba(248, 244, 236, .65); pointer-events: none; transform-origin: 0 0; transition: transform .5s var(--ease), color .4s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(.78); color: var(--gold); }
.field .ln { display: none; }
.field [aria-invalid="true"] { background-image: linear-gradient(#FF9B8C, #FF9B8C), linear-gradient(#FF9B8C, #FF9B8C); background-size: 100% 2px, 100% 1px; }
.field [aria-invalid="false"]:not(:focus) { background-image: linear-gradient(#7FD8C0, #7FD8C0), linear-gradient(rgba(248, 244, 236, .28), rgba(248, 244, 236, .28)); background-size: 100% 1px, 100% 1px; }
.err { margin-top: 8px; font-size: 14px; color: #FFB4A8; }
.chips { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.chips legend { float: left; width: 100%; margin-bottom: 14px; color: rgba(248, 244, 236, .65); font-size: 15px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: block; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(248, 244, 236, .3); font-size: 15px; transition: background-color .4s var(--ease), color .4s, border-color .4s; }
.chips label:hover span { border-color: rgba(248, 244, 236, .7); }
.chips input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.send { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.send .btn { height: 60px; padding: 0 34px; font-size: 17px; }
.send .btn.is-loading { pointer-events: none; }
.send .btn.is-loading b { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; font-size: 0; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.form-note { color: rgba(248, 244, 236, .82); font-size: 15px; max-width: 340px; }
.form-note.ok { color: #9FE3CF; } .form-note.ko { color: #FFB4A8; }

/* Pied de page ------------------------------------------------------------ */
.foot { background: #0E1124; color: rgba(248, 244, 236, .75); padding: 64px 0 48px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.foot-brand img { width: 40px; height: auto; margin-bottom: 18px; }
.foot-name { font: 700 26px/1 var(--logo); color: var(--bg); margin-bottom: 8px; }
.foot-nav { display: grid; gap: 8px; justify-items: start; }
.foot-nav a, .foot-end a { text-decoration: none; }
.foot-nav a:hover, .foot-end > a:first-child:hover { color: var(--bg); }
.foot-end { display: grid; gap: 8px; justify-items: start; }
.foot-end .link-u { margin-top: 18px; color: var(--gold); }

.section { padding: clamp(96px, 12vw, 180px) 0; }
.studio { --p: 1; }
.studio-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 4vw; }

/* Accueil : les trois applications, chacune avec sa mascotte */
.app-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(36px, 4vw, 56px); max-width: 760px; }
.app-index a {
  position: relative; display: flex; align-items: flex-end; gap: 12px; padding: 14px 16px 14px 10px; border-radius: 20px;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line); text-decoration: none;
  transition: box-shadow .5s var(--ease), transform .6s var(--ease), background-color .5s;
}
.app-index a:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line2), 0 22px 34px -22px rgba(22, 26, 51, .45); }
.app-index .ai-sou:hover { background: #E4F5EE; } .app-index .ai-cs:hover { background: #E7E9FB; } .app-index .ai-wb:hover { background: #F6ECEA; }
.ai-m { flex: none; width: 58px; margin: -26px 0 -4px; }
.ai-m .m-body { transform-origin: 50% 95%; }
.ai-m img, .ai-m svg { display: block; width: 100%; height: auto; overflow: visible; }
.ai-sou .ai-m { width: 62px; }
.ai-t { display: grid; gap: 2px; min-width: 0; }
.ai-t b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.ai-t small { font-size: 12.5px; color: var(--ink2); line-height: 1.3; }
.js .app-index .ai-m .m-body { animation: ai-in .9s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(.9s + var(--k, 0) * .15s); }
.app-index a:nth-child(2) { --k: 1; } .app-index a:nth-child(3) { --k: 2; }
@keyframes ai-in { from { opacity: 0; transform: translateY(24px) scale(.5); } }
.js .app-index .ai-m .m-body.hop, .js .app-index .ai-m .m-body.jump, .js .app-index .ai-m .m-body.wiggle { animation-delay: 0s; }
.ai-m .m-body.hop { animation-name: m-hop; animation-duration: .6s; } .ai-m .m-body.jump { animation-name: m-jump; animation-duration: .8s; } .ai-m .m-body.wiggle { animation-name: m-wiggle; animation-duration: 1.1s; }

/* Fiches : chaque fonctionnalité montre son écran */
.p-feat li[tabindex] { cursor: pointer; position: relative; transition: color .3s, padding-left .5s var(--ease); }
.p-feat li[tabindex]::after { content: "→"; margin-left: auto; padding-left: 12px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease); color: var(--acc); }
.p-feat li[tabindex]:hover, .p-feat li[tabindex]:focus-visible, .p-feat li.on { padding-left: 6px; }
.p-feat li[tabindex]:hover::after, .p-feat li.on::after { opacity: 1; transform: none; }
.p-feat li.on { font-weight: 600; }
.p-feat li.on::before { width: 22px; }
.p-feat li::before { transition: width .5s var(--ease); }
.p-feat li[tabindex]:focus-visible { outline-offset: 2px; }
.pm-tilt img.focus { animation: shot-focus 1.4s var(--ease); }
@keyframes shot-focus { 30% { scale: 1.06; filter: drop-shadow(0 0 0 transparent) brightness(1.04); } }
.plats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.plats span { padding: 5px 11px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.plats .soon { background: transparent; box-shadow: none; border: 1px dashed rgba(0, 0, 0, .3); padding: 4px 10px; }
.p-meta { grid-template-columns: 1.6fr 1fr; align-items: start; }

/* Studio : comment naissent nos applications, en quatre chapitres */
.story-head .glyph { font-size: 1.25em; }
.story { display: grid; grid-template-columns: minmax(220px, .4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.story-nav { position: sticky; top: 16vh; padding-bottom: 20px; }
.sn-num { font: italic 400 clamp(120px, 13vw, 200px)/.85 var(--serif); color: var(--gold-d); height: 1em; overflow: hidden; }
.sn-num span { display: block; }
.sn-num span.swap { animation: sn-swap .7s var(--ease); }
@keyframes sn-swap { from { transform: translateY(60%); opacity: 0; } }
.sn-title { margin-top: 8px; font-size: clamp(28px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.035em; }
.sn-list { margin-top: 34px; display: grid; gap: 10px; }
.sn-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #676A80; transition: color .4s; }
.sn-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .4s, transform .4s var(--ease); }
.sn-list li.on { color: var(--ink); font-weight: 600; }
.sn-list li.on::before { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.sn-bar { display: block; margin-top: 28px; height: 2px; max-width: 220px; background: var(--line); }
.sn-bar i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--sb, .25)); transition: transform .8s var(--ease); }

.chapters { display: grid; gap: clamp(110px, 14vw, 200px); padding-bottom: 6vh; }
.chap-h { max-width: 560px; margin-bottom: clamp(28px, 3vw, 44px); }
.chap-n { font-size: 13px; letter-spacing: .14em; color: var(--gold-d); }
.chap-h h3 { margin: 6px 0 10px; font-size: clamp(30px, 3vw, 46px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.chap-h p { color: var(--ink2); font-size: 18px; }
.js .chap .chap-h { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js .chap.in .chap-h { opacity: 1; transform: none; }

/* 1 · l'idée : trois questions */
.ideas { display: grid; gap: 18px; }
.idea {
  display: flex; align-items: center; gap: 16px; width: fit-content; max-width: 100%; padding: 18px 26px 18px 16px;
  border-radius: 26px 26px 26px 6px; font-size: clamp(20px, 2.1vw, 30px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2;
  box-shadow: 0 24px 40px -30px rgba(22, 26, 51, .5);
}
.idea img { width: 52px; height: 52px; flex: none; border-radius: 14px; object-fit: cover; }
.idea small { align-self: flex-end; margin-left: 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--a); white-space: nowrap; }
.i-sou { --a: #00704C; background: #E4F5EE; }
.i-cs { --a: #2F40B8; background: #E7E9FB; margin-left: 10%; }
.i-wb { --a: #B0241E; background: #F7E9E6; margin-left: 4%; }
.js .idea { opacity: 0; transform: translateY(30px) scale(.94); transform-origin: 0 100%; transition: opacity .7s var(--ease), transform .9s cubic-bezier(.34, 1.56, .64, 1); }
.js .chap.in .idea { opacity: 1; transform: none; }
.js .chap.in .i-cs { transition-delay: .2s; } .js .chap.in .i-wb { transition-delay: .4s; }

/* 2 · le dessin : les planches posées comme sur une table */
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.board { margin: 0; padding: 10px 10px 12px; border-radius: 16px; background: #fff; box-shadow: 0 30px 50px -34px rgba(22, 26, 51, .55), 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .6s; }
.board img { width: 100%; height: auto; border-radius: 8px; }
.board figcaption { margin-top: 10px; font: italic 400 18px/1 var(--serif); color: var(--ink2); }
.b-sou { transform: rotate(-2deg); } .b-pruvi { transform: rotate(1.6deg) translateY(18px); }
.b-tick { grid-column: 1 / -1; transform: rotate(-.6deg); }
.board:hover { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 40px 60px -34px rgba(22, 26, 51, .6), 0 0 0 1px var(--line); z-index: 1; }
.js .board { clip-path: inset(0 0 100% 0 round 16px); transition: clip-path 1.2s var(--ease-io), transform .6s var(--ease), box-shadow .6s; }
.js .chap.in .board { clip-path: inset(-10% -10% -10% -10%); }
.js .chap.in .b-pruvi { transition-delay: .15s, 0s, 0s; } .js .chap.in .b-tick { transition-delay: .3s, 0s, 0s; }

/* 3 · les écrans */
.screens { position: relative; aspect-ratio: 16 / 10.5; }
.screens img { position: absolute; height: auto; }
.sc-mac { left: 12%; top: 6%; width: 76%; filter: drop-shadow(0 40px 40px rgba(22, 26, 51, .22)); }
.sc-ph { width: 23%; border-radius: 9% / 4.2%; box-shadow: 0 0 0 5px #0E0F12, 0 40px 60px -30px rgba(0, 0, 0, .55); }
.sc-1 { left: 0; top: 22%; rotate: -6deg; } .sc-2 { right: 0; top: 14%; rotate: 5deg; }
.js .screens img { opacity: 0; transform: translateY(60px); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.js .chap.in .screens img { opacity: 1; transform: none; }
.js .chap.in .sc-1 { transition-delay: .2s; } .js .chap.in .sc-2 { transition-delay: .35s; }

/* 4 · la sortie : les sites des apps */
.sites { position: relative; aspect-ratio: 16 / 11; }
.site { position: absolute; width: 66%; display: block; border-radius: 14px; overflow: hidden; background: #111; text-decoration: none; box-shadow: 0 0 0 1px var(--line), 0 40px 60px -34px rgba(22, 26, 51, .6); transition: transform .6s var(--ease), box-shadow .6s, opacity .9s var(--ease); }
.site .bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #F1EDE4; }
.site .bar i { width: 9px; height: 9px; border-radius: 50%; background: #D9D1C1; }
.site .bar .url { margin-left: 10px; padding: 2px 10px; border-radius: 6px; background: #fff; font-size: 11px; color: var(--ink2); }
.site img { display: block; width: 100%; height: auto; }
.st-chip { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5); }
.s-sou { left: 0; top: 0; } .s-cs { left: 17%; top: 17%; } .s-wb { left: 34%; top: 34%; }
.site:hover, .site:focus-visible { transform: translateY(-10px) scale(1.02); z-index: 3; box-shadow: 0 0 0 1px var(--line), 0 50px 70px -30px rgba(22, 26, 51, .7); }
.js .site { opacity: 0; transform: translate(-30px, 30px); }
.js .chap.in .site { opacity: 1; transform: none; }
.js .chap.in .s-cs { transition-delay: .15s; } .js .chap.in .s-wb { transition-delay: .3s; }
.js .chap.in .site:hover { transform: translateY(-10px) scale(1.02); transition-delay: 0s; }

/* Contact : une scène claire où les mascottes choisissent le sujet */
.c-scene { position: relative; margin-top: 96px; max-width: 470px; padding: 22px 22px 16px; border-radius: 28px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .8); }
.c-mascots { display: flex; justify-content: space-around; align-items: flex-end; padding-bottom: 6px; border-bottom: 2px solid rgba(22, 26, 51, .08); }
.c-m { position: relative; display: grid; justify-items: center; gap: 1px; padding: 6px 8px 8px; border: 0; border-radius: 18px; background: none; color: var(--ink); cursor: pointer; transition: transform .5s var(--ease); }
.c-m .ai-m { position: relative; z-index: 1; width: 92px; margin: 0 0 6px; }
.c-m .ai-m[data-mascot="sou"] { width: 100px; }
.c-m b { font-size: 15px; font-weight: 600; }
.c-m small { font-size: 12px; color: #676A80; }
.c-spot { position: absolute; left: 50%; top: 18px; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(197, 160, 82, .35), rgba(197, 160, 82, 0)); opacity: 0; transform: scale(.6); transition: opacity .5s, transform .6s var(--ease); }
.c-m:hover { transform: translateY(-3px); }
.c-m.on .c-spot { opacity: 1; transform: none; }
.c-m.on b { color: var(--royal); }
.c-hint { margin-top: 12px; font-size: 13px; color: #676A80; text-align: center; }
.c-bubble {
  position: absolute; bottom: calc(100% + 10px); left: var(--bx, 0px); width: max-content; max-width: min(280px, 100%);
  padding: 11px 15px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(6px) scale(.95); transform-origin: 0 100%; transition: opacity .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1), left .4s var(--ease); pointer-events: none;
}
.c-bubble.on { opacity: 1; transform: none; }
.c-card { padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: rgba(248, 244, 236, .035); box-shadow: inset 0 0 0 1px rgba(248, 244, 236, .12); }
.copy { margin-left: 14px; vertical-align: middle; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(248, 244, 236, .35); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--bg); transition: background-color .3s, color .3s, border-color .3s; }
.copy:hover { border-color: var(--gold); }
.copy.ok { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* Réactivité -------------------------------------------------------------- */
@media (max-width: 1100px) {
}
@media (max-width: 899px) {
  .nav, .top-cta { display: none; }
  .menu-btn { display: block; }
  .top-in { padding-left: 14px; }
  .hero { padding-top: 110px; padding-bottom: 40px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; width: min(58vw, 320px); margin-bottom: 4px; }
  .hero-mark-in { margin: 0; }
  .hero-meta { position: static; margin: 56px 0 0; width: 100%; flex-wrap: wrap; gap: 12px 18px; }
  .hero-meta span + span::before { margin-right: 18px; }
  .scroll-cue { display: none; }
  .proj-in { grid-template-columns: 1fr; }
  .proj:nth-of-type(even) .proj-media { order: 0; }
  .p-meta { grid-template-columns: 1fr; }
  .app-index { grid-template-columns: 1fr; max-width: 420px; gap: 10px; }
  .ai-m { width: 48px; margin-top: -14px; }
  .bubble { font-size: 12px; max-width: 170px; padding: 8px 11px; }
  .p-bg { font-size: 26vw; }
  .studio-in { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .story-nav { display: none; }
  .chapters { gap: 96px; }
  .i-cs { margin-left: 6%; } .i-wb { margin-left: 2%; }
  .idea img { width: 40px; height: 40px; }
  .boards { grid-template-columns: 1fr; }
  .b-pruvi { transform: rotate(1.6deg); }
  .screens { aspect-ratio: 4 / 3.4; }
  .sc-mac { left: 4%; width: 92%; top: 30%; } .sc-ph { width: 30%; } .sc-1 { top: 0; } .sc-2 { top: 4%; }
  .sites { aspect-ratio: 4 / 3.7; }
  .site { width: 78%; } .s-cs { left: 11%; top: 13%; } .s-wb { left: 22%; top: 26%; }
  .st-chip { font-size: 10px; padding: 4px 9px; }
  .c-scene { margin-top: 84px; }
  .c-m .ai-m { width: 72px; } .c-m .ai-m[data-mascot="sou"] { width: 78px; }
  .forme { max-width: 260px; order: -1; justify-self: start; }
  .pledges { grid-template-columns: 1fr; }
  .pledges li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact { grid-template-columns: 1fr; }
  .contact-q { width: 110vw; right: -40vw; top: 2%; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .actions { gap: 20px; }
  .btn { height: 52px; padding: 0 22px; }
}

/* Réduire les animations -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-in], .js .split .w > span, .js .h-hero .line > span, .js .proj-txt > * { opacity: 1 !important; transform: none !important; }
  .js .pm-tilt img { clip-path: none !important; }
  .js .mascot .m-body, .js .app-index .ai-m .m-body, .js .chap .chap-h, .js .idea, .js .screens img, .js .site { opacity: 1 !important; transform: none !important; }
  .js .board { clip-path: none !important; }
  .js .hero-geo > :not(:nth-child(2)) { stroke-dashoffset: 0; }
  .hero-mark-in, .contact-q, .btn { transform: none !important; }
  .cursor-tag { display: none; }
}
@media (hover: none), (pointer: coarse) { .cursor-tag { display: none; } }
