/* MyEasyDev — page d'accueil immersive. Aucun cookie, aucun traceur. */

:root {
  --ink: #0b0d13;
  --ink-2: #12151d;
  --ink-3: #1b1f2b;
  --line: rgba(236, 228, 212, 0.14);
  --line-strong: rgba(236, 228, 212, 0.32);
  --paper: #ece4d4;
  --paper-2: rgba(236, 228, 212, 0.68);
  --paper-3: rgba(236, 228, 212, 0.46);
  --blue: #5d6dff;
  --blue-soft: #8c97ff;
  --amber: #f2b45c;
  --amber-soft: #ffd79a;
  --display: "Epilogue", "Helvetica Neue", Arial, sans-serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 88px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; background: var(--ink); overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 2px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 2px solid var(--ink); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }
html { scrollbar-color: var(--ink-3) var(--ink); scrollbar-width: thin; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--amber); color: var(--ink); border-radius: 999px; }
.skip:focus { top: 16px; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.intro__word { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -0.04em; line-height: 1; overflow: hidden; }
.intro__word i, .brand i { font-style: normal; font-weight: 400; color: var(--amber-soft); }
.intro__word span { display: block; transform: translateY(110%); }
.intro__count { position: absolute; right: var(--gutter); bottom: 28px; font-variant-numeric: tabular-nums; color: var(--paper-3); font-size: 0.9rem; }
.intro.is-done { display: none; }
.intro__note { position: absolute; left: var(--gutter); bottom: 28px; margin: 0; color: var(--paper-3); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; overflow: hidden; }
.intro__note span { display: block; transform: translateY(120%); }
.flash { position: fixed; inset: 0; z-index: 81; pointer-events: none; background: #fff; opacity: 0; }
.beam { position: fixed; left: 50%; top: 58vh; z-index: 1; width: 160vw; height: 70vh; transform: translate(-50%, -50%); pointer-events: none; mix-blend-mode: screen; opacity: 0; background: radial-gradient(closest-side, rgba(242, 200, 140, 0.22), rgba(242, 200, 140, 0.06) 45%, transparent 75%); will-change: transform; }
html.low-power .beam, html.no-gsap .beam { display: none; }
/* Avant l'allumage : photo et lumières éteintes */
html.lights-off .photo.is-ready { opacity: 0; }

/* ---------- En-tête ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); mix-blend-mode: difference; color: #fff; transition: padding 0.5s var(--ease); }
.top.is-scrolled { padding-block: 12px; mix-blend-mode: normal; color: var(--paper); background: rgba(11, 13, 19, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.top { transition: padding 0.5s var(--ease), transform 0.5s var(--ease), background 0.4s; }
.top.is-scrolled .top__cta:hover { background: var(--paper); color: var(--ink); }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.03em; }
.top__nav { display: flex; gap: 34px; align-items: center; font-size: 0.95rem; }
.top__nav a { position: relative; padding: 4px 0; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.top__nav a:hover::after, .top__nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.top__nav .top__cta { padding: 10px 18px; border: 1px solid currentColor; border-radius: 999px; }
.top__nav .top__cta::after { display: none; }
.top__cta:hover { background: #fff; color: #000; }
.top__toggle { display: none; background: none; border: 1px solid currentColor; border-radius: 999px; padding: 8px 16px; }
@media (max-width: 860px) {
  .top__toggle { display: inline-block; }
  .top__nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 22px; background: var(--ink); color: var(--paper); font-family: var(--display); font-size: clamp(2rem, 9vw, 3.2rem); opacity: 0; pointer-events: none; transition: opacity 0.4s; mix-blend-mode: normal; }
  .top__nav.is-open { opacity: 1; pointer-events: auto; }
  .top__nav .top__cta { font-family: var(--sans); font-size: 1rem; margin-top: 20px; }
  .top { mix-blend-mode: normal; color: var(--paper); }
}

/* ---------- Fond WebGL ---------- */
.photo { position: fixed; inset: -6%; z-index: 0; pointer-events: none; background: var(--ink) center / cover no-repeat; filter: brightness(0.78) contrast(1.08) saturate(0.9); transform: scale(1.04); will-change: transform; opacity: 0; transition: opacity 1.4s ease; }
.photo.is-ready { opacity: 1; }
.sky { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; pointer-events: none; mix-blend-mode: screen; }
.studio { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(11, 13, 19, 0.35), rgba(11, 13, 19, 0.15) 30%, rgba(11, 13, 19, 0.3) 100%), radial-gradient(150% 100% at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.7) 100%); }
.grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.055; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: none; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -5%); } 75% { transform: translate(-2%, -2%); } 100% { transform: translate(4%, 4%); } }

main { position: relative; z-index: 2; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; border: 1px solid var(--paper); background: var(--paper); color: var(--ink); font-weight: 500; line-height: 1; transition: transform 0.5s var(--ease), background 0.3s, color 0.3s, box-shadow 0.5s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(236, 228, 212, 0.45); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--paper); box-shadow: none; }
.btn--amber { background: var(--amber); border-color: var(--amber); }
.btn--amber:hover { box-shadow: 0 14px 34px -14px rgba(242, 180, 92, 0.6); }
.btn svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 0 var(--gutter) 40px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: end; padding-top: 13vh; }
.hero__title { font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 7.6vw, 7rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; transform: translateY(110%); }
.hero__title em { font-style: normal; font-weight: 400; color: var(--amber-soft); }
.hero__below { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: end; margin-top: clamp(22px, 4vh, 44px); }
.hero__lead { max-width: 56ch; color: var(--paper-2); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.hero__lead strong { color: var(--paper); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-self: end; text-align: right; color: var(--paper-3); font-size: 0.9rem; }
.hero__meta .cue { display: inline-flex; align-items: center; gap: 10px; color: var(--paper-2); }
.cue__bar { width: 1px; height: 44px; background: var(--line-strong); position: relative; overflow: hidden; }
.cue__bar::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: translateY(-100%); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60% { transform: translateY(100%); } 100% { transform: translateY(100%); } }

/* Scène : pile de fenêtres avec aperçus réels, rotation automatique */
.hero__stage { position: relative; }
.stage { position: relative; height: clamp(280px, 40vh, 460px); perspective: 1600px; }
.window { position: absolute; left: 0; right: 0; top: 0; height: 100%; border-radius: 12px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line-strong); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08); transform-origin: 50% 100%; transition: transform 1.1s var(--ease), opacity 0.9s var(--ease), filter 0.9s var(--ease); will-change: transform; display: flex; flex-direction: column; }
.window[data-pos="0"] { z-index: 3; transform: translate3d(0, 0, 0) scale(1); opacity: 1; filter: none; }
.window[data-pos="1"] { z-index: 2; transform: translate3d(0, -34px, -120px) scale(0.95); opacity: 0.9; filter: brightness(0.8); }
.window[data-pos="2"] { z-index: 1; transform: translate3d(0, -64px, -240px) scale(0.9); opacity: 0.7; filter: brightness(0.6); }
.window__bar { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: var(--ink-3); color: var(--paper-2); font-size: 0.74rem; letter-spacing: 0.02em; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.window__bar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 14px 0 0 var(--blue), 28px 0 0 var(--paper-3); margin-right: 26px; flex: 0 0 auto; }
.window__bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window__open { margin-left: auto; font-style: normal; color: var(--amber-soft); font-size: 0.72rem; opacity: 0; transform: translateX(6px); transition: opacity 0.4s, transform 0.5s var(--ease); flex: 0 0 auto; padding-left: 10px; }
.window[data-pos="0"] { cursor: pointer; }
.window[data-pos="0"]:hover .window__open, .window[data-pos="0"]:focus-visible .window__open { opacity: 1; transform: none; }
.window[data-pos="0"]:hover { border-color: rgba(236, 228, 212, 0.55); }
.window.is-zooming { position: fixed !important; z-index: 95 !important; transition: none !important; margin: 0; }
.zoom-veil { position: fixed; inset: 0; z-index: 94; background: var(--ink); opacity: 0; pointer-events: none; }
.work__frame.is-zooming { position: fixed !important; z-index: 95 !important; transition: none !important; aspect-ratio: auto; }
.preview { position: relative; width: 100%; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.shot-box { position: relative; width: 100%; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.shot { display: block; width: 100%; height: auto; }
.shot-box .shot--tall { position: absolute; left: 0; top: 0; will-change: transform; }
.preview iframe { position: absolute; top: 0; left: 0; width: 1280px; border: 0; transform-origin: 0 0; pointer-events: none; }
.stage__tabs { display: flex; gap: 8px; margin-top: 18px; }
.stage__tabs button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--paper-2); font-size: 0.88rem; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.stage__tabs button:hover { border-color: var(--paper); color: var(--paper); }
.stage__tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.promo { display: inline-flex; align-items: center; gap: 14px; padding: 8px 18px 8px 10px; border-radius: 999px; border: 1px solid rgba(242, 180, 92, 0.55); background: rgba(242, 180, 92, 0.08); color: var(--paper); line-height: 1.15; font-size: 0.82rem; transition: background 0.3s, border-color 0.3s; }
.promo strong { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.04em; color: var(--amber-soft); padding: 6px 10px; border-radius: 999px; background: rgba(242, 180, 92, 0.14); }
.promo span { color: var(--paper-2); }
.promo:hover { background: rgba(242, 180, 92, 0.16); border-color: var(--amber); }

@media (max-width: 1000px) {
  .hero__inner, .hero__below { grid-template-columns: 1fr; }
  .hero__inner { padding-top: 16vh; }
  .hero__stage { order: 2; margin-top: 10px; }
  .stage { height: clamp(220px, 48vw, 380px); }
  .hero__meta { display: none; }
}

/* ---------- Bandeau défilant ---------- */
.ticker { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(1.2rem, 2.2vw, 1.8rem); color: var(--paper-2); }
.ticker__track { display: flex; gap: 0; width: max-content; will-change: transform; }
.ticker__track span { padding: 0 1.1em; white-space: nowrap; }
.ticker__track span::after { content: "·"; padding-left: 1.1em; color: var(--amber); }

/* ---------- Sections ---------- */
.chapter { position: relative; padding: clamp(96px, 14vh, 180px) var(--gutter); }
.chapter__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 60px; align-items: end; margin-bottom: clamp(48px, 7vh, 96px); }
.chapter__title { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 5.4vw, 4.8rem); line-height: 1; letter-spacing: -0.035em; }
.chapter__title em { font-style: normal; font-weight: 400; color: var(--amber-soft); }
.chapter__lead { color: var(--paper-2); max-width: 52ch; font-size: clamp(1rem, 1.25vw, 1.15rem); }
.chapter__lead a { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.chapter__lead a:hover { text-decoration-color: var(--paper); }
@media (max-width: 860px) { .chapter__head { grid-template-columns: 1fr; } }

/* Manifeste : texte qui s'allume mot à mot */
.manifesto { padding: clamp(110px, 18vh, 220px) var(--gutter); }
.manifesto p { max-width: 26ch; font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.8vw, 3.6rem); line-height: 1.18; letter-spacing: -0.03em; }
.manifesto .w { color: rgba(236, 228, 212, 0.18); transition: color 0.3s; }
.manifesto .w.is-lit { color: var(--paper); }
.manifesto .w.is-lit.em { color: var(--amber-soft); }

/* ---------- Réalisations : galerie horizontale (défilement natif) ---------- */
.gallery__wrap { position: relative; }
.gallery__track { display: flex; gap: clamp(18px, 2.4vw, 36px); padding: 12px var(--gutter) 24px; margin: 0 calc(-1 * var(--gutter)); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-left: var(--gutter); scrollbar-width: none; cursor: grab; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__track.is-dragging a { pointer-events: none; }
.gallery__nav { position: absolute; right: 0; top: -70px; display: flex; gap: 8px; }
.gallery__arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--paper); display: grid; place-items: center; transition: background 0.3s, border-color 0.3s, opacity 0.3s; }
.gallery__arrow svg { width: 18px; height: 18px; }
.gallery__arrow:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.gallery__arrow[disabled] { opacity: 0.3; pointer-events: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--paper-2); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.filters button:hover { border-color: var(--paper); color: var(--paper); }
.filters button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.work { flex: 0 0 auto; width: clamp(300px, 34vw, 520px); scroll-snap-align: start; }
.work--wide { width: clamp(320px, 44vw, 680px); }
.work[hidden] { display: none; }
.work > a { display: block; height: 100%; }
.work__frame { position: relative; aspect-ratio: 16 / 11; border-radius: 12px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line-strong); box-shadow: 0 40px 70px -34px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; transition: transform 0.7s var(--ease), border-color 0.4s, box-shadow 0.7s var(--ease); }
.work > a:hover .work__frame { transform: translateY(-6px); border-color: rgba(236, 228, 212, 0.5); box-shadow: 0 50px 80px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.work__frame img { flex: 1; width: 100%; min-height: 0; object-fit: cover; object-position: top; }
.work__tag { position: absolute; z-index: 2; left: 14px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 13, 19, 0.82); color: var(--paper); font-size: 0.78rem; letter-spacing: 0.02em; border: 1px solid var(--line); }
.work__tag--live { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.work__body { padding: 18px 4px 0; }
.work__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 1.8vw, 1.7rem); letter-spacing: -0.03em; line-height: 1.1; }
.work__desc { margin-top: 10px; color: var(--paper-3); font-size: 0.95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work__open { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.9rem; color: var(--paper-2); }
.work__open svg { width: 14px; height: 14px; transition: transform 0.5s var(--ease); }
.work > a:hover .work__open { color: var(--amber-soft); }
.work > a:hover .work__open svg { transform: translate(3px, -3px); }
.gallery__hint { padding: 10px 0 0; color: var(--paper-3); font-size: 0.9rem; display: flex; align-items: center; gap: 12px; }
.gallery__progress { flex: 1; height: 1px; background: var(--line); position: relative; max-width: 320px; }
.gallery__progress i { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); transition: transform 0.2s linear; }

@media (max-width: 860px) {
  .work { width: 82vw; }
  .work--wide { width: 86vw; }
  .gallery__nav { display: none; }
  .work__desc { -webkit-line-clamp: 4; line-clamp: 4; }
}

/* ---------- Applications ---------- */
.apps { display: grid; gap: clamp(90px, 14vh, 180px); }
.app { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.app--flip .app__visual { order: 2; }
.app__visual { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); border: 1px solid var(--line); clip-path: inset(0 0 100% 0 round 12px); }
.app__visual img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.app__visual--phone { aspect-ratio: auto; background: none; border: 0; clip-path: none; overflow: visible; display: grid; place-items: center; padding: 30px 0 10px; }
.phone { position: relative; margin: 0; width: min(300px, 70%); aspect-ratio: 9 / 19; border-radius: 40px; padding: 10px; background: #0a0b10; border: 1px solid rgba(236, 228, 212, 0.28); box-shadow: 0 60px 110px -40px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06); clip-path: inset(0 0 100% 0 round 40px); }
.app__visual--phone .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; transform: none; }
html.no-gsap .phone, html.no-gsap .window--static { clip-path: none; }
.app__visual--site { aspect-ratio: auto; background: none; border: 0; clip-path: none; overflow: visible; padding: 10px 0 40px 0; }
.app__visual--site .window--static { position: relative; left: auto; right: auto; top: auto; height: auto; margin: 0; transform: none; opacity: 1; filter: none; transition: none; clip-path: inset(0 0 100% 0 round 12px); }
.app__visual--site .window--static img { width: 100%; height: auto; display: block; transform: none; object-fit: contain; }
.app__visual--site .mascot { position: absolute; left: -4%; bottom: -6%; width: clamp(120px, 17vw, 190px); height: auto; object-fit: contain; transform: rotate(-6deg); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55)); }
@media (max-width: 860px) { .app__visual--site .mascot { left: 0; width: 30vw; } }
.app__visual--phone .waty { position: absolute; left: 6%; bottom: 2%; width: clamp(130px, 22vw, 210px); height: auto; object-fit: contain; transform: rotate(-8deg); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55)); }
@media (max-width: 860px) { .app__visual--phone .waty { left: 2%; width: 34vw; } }
.app__kind { color: var(--amber-soft); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.app__title { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.8rem); letter-spacing: -0.035em; line-height: 1; margin-top: 14px; }
.app__lead { margin-top: 22px; color: var(--paper-2); font-size: 1.1rem; max-width: 50ch; }
.app__list { margin-top: 28px; border-top: 1px solid var(--line); }
.app__list li { display: grid; grid-template-columns: minmax(130px, 0.4fr) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.app__list b { font-weight: 500; color: var(--paper); }
.app__list span { color: var(--paper-3); }
.app__stack { margin-top: 18px; color: var(--paper-3); font-size: 0.92rem; }
.app__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; line-height: 1.1; transition: border-color 0.3s, background 0.3s; }
.store:hover { border-color: var(--paper); background: rgba(236, 228, 212, 0.05); }
.store svg { width: 22px; height: 22px; }
.store small { display: block; font-size: 0.66rem; color: var(--paper-3); }
.store b { font-weight: 500; font-size: 0.95rem; }
.app__note { margin-top: clamp(40px, 6vh, 70px); padding: 28px 32px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--paper-2); max-width: 70ch; }
.app__note a { color: var(--amber-soft); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } .app--flip .app__visual { order: 0; } .app__list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Tarifs ---------- */
.launch { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 22px 26px; border: 1px solid var(--amber); border-radius: 12px; margin-bottom: clamp(40px, 6vh, 72px); color: var(--paper-2); font-size: 0.95rem; }
.launch strong { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--amber-soft); font-weight: 500; letter-spacing: -0.04em; white-space: nowrap; }
.launch a { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) { .launch { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; }
.plan { position: relative; padding: 36px 30px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; transition: background 0.5s; }
.plan:last-child { border-right: 0; }
.plan:hover { background: rgba(236, 228, 212, 0.035); }
.plan--best { background: var(--paper); color: var(--ink); }
.plan--best:hover { background: #fff; }
.plan--best .plan__for, .plan--best .plan__list li, .plan--best .plan__month { color: rgba(7, 9, 14, 0.66); }
.plan--best .plan__list li::before { color: var(--blue); }
.plan--best .plan__price del { color: rgba(7, 9, 14, 0.4); }
.plan--best .plan__list { border-color: rgba(7, 9, 14, 0.14); }
.plan--best .plan__list li { border-color: rgba(7, 9, 14, 0.1); }
.plan__badge { display: inline-block; align-self: flex-start; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 0.74rem; letter-spacing: 0.04em; }
.plan__name { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 2.3vw, 2.2rem); letter-spacing: -0.03em; line-height: 1; }
.plan__for { margin-top: 14px; color: var(--paper-2); font-size: 0.95rem; min-height: 4.4em; }
.plan__price { margin-top: 26px; font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 3.2vw, 3.2rem); line-height: 1; letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.plan__price del { font-size: 0.42em; color: var(--paper-3); font-family: var(--sans); text-decoration-thickness: 1px; }
.plan__month { color: var(--paper-2); font-size: 0.92rem; margin-top: 8px; }
.plan__list { margin-top: 26px; border-top: 1px solid var(--line); flex: 1; }
.plan__list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; color: var(--paper-2); line-height: 1.45; }
.plan__list li::before { content: "—"; color: var(--amber); flex: 0 0 auto; }
.plan__pick { margin-top: 26px; justify-content: center; }
.plan--best .plan__pick { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan--best .plan__pick:hover { box-shadow: 0 14px 34px -14px rgba(7, 9, 14, 0.7); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } .plan { border-right: 0; border-bottom: 1px solid var(--line); } .plan:last-child { border-bottom: 0; } }

/* Composer */
.builder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: clamp(28px, 4vw, 60px); margin-top: clamp(56px, 9vh, 110px); align-items: start; }
.builder__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.035em; line-height: 1; }
.builder__hint { margin-top: 12px; color: var(--paper-2); }
.builder fieldset { border: 0; padding: 0; margin: 30px 0 0; }
.builder legend { padding: 0; margin-bottom: 14px; color: var(--paper-3); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; transition: border-color 0.3s, background 0.3s; }
.choice label:hover { border-color: var(--paper); }
.choice label:has(input:checked) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.choice input { appearance: none; width: 10px; height: 10px; border-radius: 50%; border: 1px solid currentColor; margin: 0; }
.choice input:checked { background: currentColor; }
.opts { width: 100%; border-collapse: collapse; margin-top: 8px; }
.opts caption { text-align: left; color: var(--paper-3); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 14px; }
.opts th { text-align: left; font-weight: 400; color: var(--paper-3); font-size: 0.82rem; padding: 0 0 10px; border-bottom: 1px solid var(--line-strong); }
.opts th:not(:first-child), .opts td:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.opts td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.opts td:not(:first-child) { padding-left: 18px; }
.opts del { color: var(--paper-3); }
.opts label { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.opts input { appearance: none; width: 20px; height: 20px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 5px; margin: 0; display: grid; place-items: center; transition: background 0.3s, border-color 0.3s; }
.opts input:checked { background: var(--amber); border-color: var(--amber); }
.opts input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-1px) rotate(-45deg); }
.opts label:hover input { border-color: var(--paper); }
.mails { margin-top: 26px; display: grid; gap: 10px; }
.mails label { color: var(--paper-2); font-size: 0.95rem; }
.mails input { width: 110px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--paper); }
.builder__more { margin-top: 26px; color: var(--paper-3); font-size: 0.92rem; }

.summary { position: sticky; top: 90px; padding: 30px 30px 28px; border-radius: 14px; background: var(--paper); color: var(--ink); }
.summary__title { font-family: var(--display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1; }
.summary dl { margin: 22px 0 0; }
.summary dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(7, 9, 14, 0.12); font-size: 0.95rem; }
.summary dt { color: rgba(7, 9, 14, 0.66); }
.summary dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__off dd { color: #1f6a3a; }
.summary__total { font-weight: 500; }
.summary__total dd { font-family: var(--display); font-weight: 500; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1; }
.summary__legal { margin-top: 16px; font-size: 0.8rem; color: rgba(7, 9, 14, 0.6); }
.summary .btn { margin-top: 20px; width: 100%; justify-content: center; background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 600px) { .opts th:nth-child(2), .opts td:nth-child(2) { display: none; } }

/* ---------- Inclus ---------- */
.included { border-top: 1px solid var(--line-strong); }
.included li { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr); gap: 20px 50px; padding: clamp(26px, 4vh, 40px) 0; border-bottom: 1px solid var(--line); }
.included h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.1; }
.included p { color: var(--paper-2); max-width: 60ch; align-self: center; }
@media (max-width: 760px) { .included li { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 100px); }
.steps__left { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; align-self: start; }
.steps__counter { font-family: var(--display); font-weight: 600; font-size: clamp(6rem, 16vw, 14rem); line-height: 0.85; letter-spacing: -0.06em; color: var(--paper); }
.steps__counter small { font-size: 0.22em; font-style: normal; color: var(--paper-3); letter-spacing: 0; margin-left: 0.2em; }
.steps__right { display: grid; }
.step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; max-width: 54ch; }
.step h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 3rem); letter-spacing: -0.035em; line-height: 1.05; }
.step p { margin-top: 18px; color: var(--paper-2); font-size: 1.08rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps__left { position: static; transform: none; display: none; }
  .step { min-height: 0; padding: 30px 0; border-top: 1px solid var(--line); }
  .step::before { content: attr(data-n); font-family: var(--display); font-style: italic; color: var(--amber-soft); font-size: 2.4rem; line-height: 1; margin-bottom: 12px; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.contact__direct { margin-top: 24px; color: var(--paper-2); }
.contact__direct a { color: var(--paper); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--amber); }
.contact__big { font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 5.4vw, 5rem); letter-spacing: -0.035em; line-height: 1; }
.contact__big em { font-style: normal; font-weight: 400; color: var(--amber-soft); }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.85rem; color: var(--paper-2); letter-spacing: 0.02em; }
.field input, .field textarea { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--paper); border-radius: 0; transition: border-color 0.3s; caret-color: var(--amber); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--paper); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #ff8a7a; }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--paper-3); }
.form__check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--paper-2); }
.form__check input { appearance: none; width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; border: 1px solid var(--line-strong); border-radius: 5px; display: grid; place-items: center; }
.form__check input:checked { background: var(--amber); border-color: var(--amber); }
.form__check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-1px) rotate(-45deg); }
.form__check a { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.form__error { color: #ffb0a4; font-size: 0.95rem; }
.form__note { color: var(--paper-3); font-size: 0.85rem; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.foot { position: relative; z-index: 2; padding: clamp(60px, 10vh, 110px) var(--gutter) 40px; border-top: 1px solid var(--line-strong); }
.foot__giant { font-family: var(--display); font-weight: 600; font-size: clamp(4rem, 15.5vw, 16rem); line-height: 0.8; letter-spacing: -0.06em; color: rgba(236, 228, 212, 0.09); white-space: nowrap; overflow: hidden; margin-bottom: clamp(40px, 7vh, 80px); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 30px 60px; align-items: start; }
.foot__about { color: var(--paper-2); max-width: 48ch; font-size: 0.95rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 0.92rem; }
.foot__links a { color: var(--paper-2); }
.foot__links a:hover { color: var(--paper); }
.foot__small { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--paper-3); font-size: 0.82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 700px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- Page Réalisations ---------- */
.page-hero { padding: clamp(130px, 20vh, 200px) var(--gutter) clamp(40px, 6vh, 70px); }
.crumbs { display: flex; gap: 10px; color: var(--paper-3); font-size: 0.88rem; margin-bottom: 26px; }
.crumbs a { color: var(--paper-2); }
.crumbs a:hover { color: var(--paper); }
.page-hero__title { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -0.035em; max-width: 16ch; }
.page-hero__title em { font-style: normal; font-weight: 400; color: var(--amber-soft); }
.page-hero__lead { max-width: 64ch; margin-top: 30px; color: var(--paper-2); font-size: clamp(1.02rem, 1.3vw, 1.18rem); display: grid; gap: 16px; }
.chapter--tight { padding-top: clamp(60px, 9vh, 110px); padding-bottom: clamp(30px, 5vh, 60px); }
.cases { display: grid; gap: clamp(40px, 6vh, 72px); }
.case { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(22px, 3.5vw, 56px); align-items: center; }
.case:nth-child(even) .case__frame { order: 2; }
.case__frame { display: flex; flex-direction: column; position: relative; aspect-ratio: 16 / 10.5; border-radius: 12px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line-strong); box-shadow: 0 40px 70px -34px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: transform 0.7s var(--ease), border-color 0.4s; }
.case__frame:hover { transform: translateY(-6px); border-color: rgba(236, 228, 212, 0.5); }
.case__frame img { flex: 1; width: 100%; min-height: 0; object-fit: cover; object-position: top; }
.case__frame .preview { flex: 1; height: auto; }
.case__frame--phone { aspect-ratio: 16 / 10.5; align-items: center; justify-content: center; background: radial-gradient(60% 80% at 50% 50%, rgba(93, 109, 255, 0.18), transparent 70%), var(--ink-2); padding: 24px; }
.case__frame--phone img { flex: 0 0 auto; width: auto; height: 100%; border-radius: 18px; border: 1px solid var(--line-strong); object-position: top; }
.case__kind { color: var(--amber-soft); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.case__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.05; margin-top: 10px; }
.case__body > p:not(.case__kind) { margin-top: 14px; color: var(--paper-2); max-width: 56ch; }
.cases--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); }
.case--small { display: block; }
.case--small .case__frame { order: 0; aspect-ratio: 16 / 11; }
.case--small .case__title { font-size: clamp(1.25rem, 1.7vw, 1.55rem); margin-top: 16px; }
.case--small .case__body > p:not(.case__kind) { font-size: 0.95rem; color: var(--paper-3); margin-top: 8px; }
.cta { padding: clamp(36px, 5vw, 64px); border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(11, 13, 19, 0.55); display: grid; gap: 22px; max-width: 76ch; }
.cta .contact__big { font-size: clamp(2.2rem, 4.6vw, 4rem); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case:nth-child(even) .case__frame { order: 0; } }

/* ---------- Projecteur : sortie de l'ombre ---------- */
.lit { position: relative; }
.lit::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: rgba(11, 13, 19, 0.6); opacity: 1; transition: opacity 1.1s var(--ease); will-change: opacity; }
.lit::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 200, 0.22) 50%, transparent 70%); background-size: 260% 100%; background-position: 120% 0; opacity: 0; }
.lit.is-lit::before { opacity: 0; }
.lit.is-lit::after { animation: sweep 1.3s var(--ease) forwards; }
@keyframes sweep { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 0; background-position: -60% 0; } }
html.no-gsap .lit::before, html.low-power .lit::before { display: none; }

/* ---------- Boutons magnétiques, compteur de prix ---------- */
.btn { will-change: transform; }
.summary dd.is-rolling { color: var(--blue); transition: color 0.3s; }

/* ---------- Écran → téléphone (My Twin App) ---------- */
.morph { position: relative; margin: 0; width: 100%; aspect-ratio: auto; border-radius: 12px; overflow: hidden; background: #0a0b10; border: 1px solid rgba(236, 228, 212, 0.28); box-shadow: 0 60px 110px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; will-change: width, height, border-radius; }
.morph__bar { flex: 0 0 auto; }
.morph img { position: absolute; left: 0; top: 32px; width: 100%; height: calc(100% - 32px); object-fit: cover; object-position: top; transform: none; }
.morph__mobile { opacity: 0; top: 0 !important; height: 100% !important; border-radius: inherit; }
.app__visual--phone { min-height: 560px; align-items: center; justify-items: center; }
html.no-gsap .morph, html.low-power .morph { width: min(300px, 70%); height: 600px; border-radius: 40px; padding: 10px; }
html.no-gsap .morph .morph__bar, html.low-power .morph .morph__bar, html.no-gsap .morph__desktop, html.low-power .morph__desktop { display: none; }
html.no-gsap .morph__mobile, html.low-power .morph__mobile { opacity: 1; position: static; border-radius: 31px; }

/* ---------- Contact dans un rond de lumière ---------- */
.chapter--spot { position: relative; }
.chapter--spot::before { content: ""; position: absolute; left: 50%; top: 40%; width: min(110vw, 1400px); height: 80%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(242, 200, 140, 0.13), rgba(93, 109, 255, 0.05) 55%, transparent 75%); pointer-events: none; }

/* ---------- Révélations génériques ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.lines .line { display: block; overflow: hidden; }
.lines .line > span { display: block; transform: translateY(110%); }
.rule { height: 1px; background: var(--line-strong); transform-origin: left; transform: scaleX(0); }

/* Mobile et tactile : on allège (une seule fenêtre d'aperçu, pas de grain animé, fond en dégradé) */
html.low-power .grain { animation: none; opacity: 0.04; }
html.low-power .window[data-pos="1"], html.low-power .window[data-pos="2"] { display: none; }
html.low-power .window { transition: none; }
html.low-power .photo { transform: none; filter: brightness(0.7) contrast(1.05); }
html.low-power .top.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 13, 19, 0.92); }

@media (prefers-reduced-motion: reduce) {
  .phone, .window--static { clip-path: none; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span, .lines .line > span, .intro__word span { transform: none; }
  .app__visual { clip-path: none; }
  .app__visual img { transform: none; }
  .rule { transform: none; }
  .manifesto .w { color: var(--paper); }
  .ticker__track,   .intro { display: none; }
}
