/* iBox — le site. Même identité que l'application : Cal Sans, crème et pastels (ciel, lavande, menthe,
   pêche), encre #344459, rayons généreux, ombres teintées d'encre, ressorts, et ses propres fonds
   d'accueil (src/services/homeBackgrounds.ts). Les variables --ibox-* portent les mêmes noms que dans
   l'application : choisir une palette (src/theme/appThemes.ts) les remplace et toute la page suit. */
@font-face { font-family: "Cal Sans"; src: url(fonts/cal-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: "Cal Sans"; src: url(fonts/cal-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; font-display: swap; }

@property --ibox-sky { syntax: "<color>"; inherits: true; initial-value: #8ccdf1; }
@property --ibox-lavender { syntax: "<color>"; inherits: true; initial-value: #b9a6e8; }
@property --ibox-mint { syntax: "<color>"; inherits: true; initial-value: #a9dfc8; }
@property --ibox-peach { syntax: "<color>"; inherits: true; initial-value: #f5c4ac; }

:root {
  color-scheme: only light;
  --ibox-cream: #f8f7f3;
  --ibox-cream-deep: #f1efe8;
  --ibox-sky: #8ccdf1;
  --ibox-lavender: #b9a6e8;
  --ibox-mint: #a9dfc8;
  --ibox-peach: #f5c4ac;
  --ibox-tint: var(--ibox-sky);
  --ibox-backdrop: radial-gradient(60% 55% at 0% 0%, color-mix(in srgb, var(--ibox-sky) 38%, transparent), transparent 70%),
    radial-gradient(55% 60% at 100% 10%, color-mix(in srgb, var(--ibox-lavender) 34%, transparent), transparent 70%),
    radial-gradient(60% 55% at 85% 100%, color-mix(in srgb, var(--ibox-peach) 34%, transparent), transparent 70%),
    radial-gradient(50% 50% at 10% 95%, color-mix(in srgb, var(--ibox-mint) 34%, transparent), transparent 70%);
  --ink: #344459;
  --ink-soft: #637184;
  --coral: #f2695d;
  --coral-press: #d2443a; /* blanc dessus : 4,5:1 */
  --night: #161a25;
  --white: color-mix(in srgb, var(--ibox-tint) 6%, #ffffff);
  --font: "Cal Sans", system-ui, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 80px);
  --sheet: 2.25rem;
  --blend: clamp(96px, 10vw, 170px); /* hauteur du fondu entre deux sections */
  --shadow-sm: 0 2px 6px rgba(52, 68, 89, 0.06), 0 8px 18px -6px rgba(52, 68, 89, 0.1);
  --shadow-md: 0 4px 10px rgba(52, 68, 89, 0.05), 0 18px 40px -12px rgba(52, 68, 89, 0.18);
  --shadow-lg: 0 8px 20px rgba(52, 68, 89, 0.06), 0 34px 70px -20px rgba(52, 68, 89, 0.26);
  /* les mouvements de l'application (src/styles/tokens.css) : un vrai ressort, un seul dépassement de 5 % */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: linear(0, 0.006 1.2%, 0.036 3.1%, 0.097 5.4%, 0.189 8%, 0.303 10.8%, 0.431 13.8%, 0.562 17%, 0.686 20.4%, 0.796 23.9%, 0.888 27.5%, 0.957 31.3%, 1.006 35.3%, 1.034 39.6%, 1.047 44.2%, 1.048 49.2%, 1.04 54.7%, 1.027 60.8%, 1.014 67.8%, 1.005 75.9%, 1 85.5%, 1);
  --fast: 160ms;
  --base: 240ms;
  transition: --ibox-sky 0.6s var(--ease-out), --ibox-lavender 0.6s var(--ease-out), --ibox-mint 0.6s var(--ease-out), --ibox-peach 0.6s var(--ease-out);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; -webkit-tap-highlight-color: transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--ibox-cream); color: var(--ink); font: 400 1.125rem/1.45 var(--font); letter-spacing: 0.012em; font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--ibox-sky) 80%, var(--ink)); outline-offset: 3px; border-radius: 999px; }
::selection { background: var(--ibox-sky); color: var(--ink); }
.fine { font-size: 0.92rem; line-height: 1.45; color: var(--ink-soft); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- titres : mots qui montent, ressort de l'application ---------- */
.js [data-split] .w { display: inline-block; overflow: clip; overflow-clip-margin: 0.1em; padding: 0.06em 0 0.1em; margin: -0.06em 0 -0.1em; vertical-align: top; }
.js [data-split] .w > span { display: inline-block; transform: translateY(112%); transition: transform 0.95s var(--ease-spring) calc(var(--i) * 55ms); }
.js [data-split].in .w > span { transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out) 0.18s, transform 0.9s var(--ease-spring) 0.18s; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- boutons : pastilles, comme dans l'application ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.55em; min-height: 3.5rem; padding: 0 1.7em; border-radius: 999px; font-size: 1.15rem; text-decoration: none; white-space: nowrap; transition: transform var(--base) var(--ease-spring), box-shadow var(--base) var(--ease-out), background-color var(--fast); }
.btn svg { width: 1.25em; height: 1.25em; }
.btn.coral { background: var(--coral-press); color: #fff; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.28), 0 10px 26px -10px rgba(210, 68, 58, 0.75); }
.btn.ghost { box-shadow: inset 0 0 0 2px currentColor; }
.btn.big { min-height: 4rem; font-size: 1.3rem; padding: 0 2em; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-3px); } .btn.coral:hover { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.28), 0 18px 34px -12px rgba(210, 68, 58, 0.8); } }
.btn:active, .pill:active, .cue:active { transform: scale(0.96); transition-duration: 90ms; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ---------- barre du haut : une pilule blanche flottante ---------- */
.top { position: fixed; z-index: 20; top: 14px; left: 50%; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--white) 92%, transparent); box-shadow: var(--shadow-md); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); transform: translateX(-50%); transition: transform 0.5s var(--ease-spring), opacity 0.3s; }
.top.away { transform: translate(-50%, calc(-100% - 24px)); }
.brand { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 8px; font-size: 1.35rem; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.top nav { display: flex; }
.top nav a, .pill { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: 1rem; text-decoration: none; color: var(--ink); transition: background-color var(--fast), transform var(--base) var(--ease-spring), color var(--fast); }
.top nav a:hover, .pill:hover { background: color-mix(in srgb, var(--ibox-sky) 22%, transparent); }
.pill.icon { width: 42px; padding: 0; }
.pill.icon svg { width: 22px; height: 22px; }
.pill.icon .on, .pill.icon[aria-pressed="true"] .off { display: none; }
.pill.icon[aria-pressed="true"] .on { display: inline; }
.pill.icon[aria-pressed="true"] { background: color-mix(in srgb, var(--ibox-mint) 55%, transparent); }
.pill.lang { font-size: 0.85rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.pill.go { background: var(--coral-press); color: #fff; padding: 0 18px; }
.pill.go:hover { background: #bf3a31; }

/* ---------- feuilles : chaque section glisse sur la précédente, coins arrondis ---------- */
main > section { position: relative; }
/* la section suivante remonte sous la précédente, qui s'efface par le bas : pas de bord net entre deux fonds,
   et la section du dessus garde les clics de son bas (boutons au pied de l'accueil) */
main > section:not(:last-child) { -webkit-mask-image: linear-gradient(0deg, transparent 0, rgba(0, 0, 0, 0.55) calc(var(--blend) * 0.5), #000 var(--blend)); mask-image: linear-gradient(0deg, transparent 0, rgba(0, 0, 0, 0.55) calc(var(--blend) * 0.5), #000 var(--blend)); }
main > section:nth-child(1) { z-index: 8; } main > section:nth-child(2) { z-index: 7; } main > section:nth-child(3) { z-index: 6; } main > section:nth-child(4) { z-index: 5; }
main > section:nth-child(5) { z-index: 4; } main > section:nth-child(6) { z-index: 3; } main > section:nth-child(7) { z-index: 2; } .foot { z-index: 1; }
main > section:last-child { -webkit-mask-image: linear-gradient(0deg, transparent 0, rgba(0, 0, 0, 0.55) calc(var(--blend) * 0.5), #000 var(--blend)); mask-image: linear-gradient(0deg, transparent 0, rgba(0, 0, 0, 0.55) calc(var(--blend) * 0.5), #000 var(--blend)); }
main > section + section, .foot { margin-top: calc(-1 * var(--blend)); border-radius: 0; --old-radius: var(--sheet) var(--sheet) 0 0; box-shadow: 0 -26px 50px -30px rgba(52, 68, 89, 0.32); }
.head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 6vw; align-items: end; padding: calc(var(--blend) + clamp(56px, 9vw, 130px)) var(--pad) clamp(28px, 4vw, 56px); max-width: 1680px; margin: 0 auto; }
h2 { font-size: clamp(2.6rem, 6vw, 6.2rem); line-height: 0.96; letter-spacing: -0.01em; }
.head p { font-size: clamp(1.1rem, 1.45vw, 1.4rem); line-height: 1.4; color: var(--ink-soft); max-width: 30ch; }

/* motifs des fonds d'accueil : ils glissent lentement, comme dans l'application */
.story, .colors, .features, .get { isolation: isolate; }
.story::before, .colors::before, .features::before, .get::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: var(--motif); background-size: var(--motif-size); animation: drift var(--drift, 60s) linear infinite; pointer-events: none; }
@keyframes drift { to { background-position: var(--dx, 440px) var(--dy, 0px); } }

/* ---------- fonds d'ambiance : la grande illustration d'un jeu, floutée sous un voile (comme dans iBox) ---------- */
.hero, .formats { isolation: isolate; }
.ambient { position: absolute; inset: 0; z-index: -1; overflow: hidden; overflow: clip; border-radius: inherit; pointer-events: none; }
.ambient i { position: absolute; inset: -6%; background: center / cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 1.6s var(--ease-out), transform 1.6s var(--ease-out); will-change: transform, opacity; }
.ambient i.on { opacity: 1; transform: none; animation: breathe 16s ease-in-out infinite alternate; }
/* l'illustration dérive lentement, comme une caméra qui flotte */
@keyframes breathe { from { transform: scale(1.06) translate(-2.6%, -1.6%) rotate(-0.6deg); } to { transform: scale(1.2) translate(2.6%, 1.8%) rotate(0.6deg); } }
/* passages de jeu floutés : une bobine à la taille de l'écran, collée pendant qu'on traverse la section */
.ambient .reel { position: sticky; top: 0; width: 100%; height: 100vh; height: 100lvh; overflow: hidden; }
.ambient video { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; object-fit: cover; opacity: 0; transition: opacity 1.6s var(--ease-out); pointer-events: none; }
.ambient video.on { opacity: 1; animation: breathe 16s ease-in-out infinite alternate; }
.ambient::after { content: ""; position: absolute; inset: 0; background: var(--veil); }
.hero { --veil: radial-gradient(75% 65% at 18% 18%, color-mix(in srgb, var(--ibox-cream) 82%, transparent) 0%, color-mix(in srgb, var(--ibox-cream) 40%, transparent) 55%, transparent 80%), linear-gradient(180deg, rgba(22, 26, 37, 0) 55%, rgba(22, 26, 37, 0.22) 100%); }
.story { --veil: linear-gradient(180deg, rgba(22, 26, 52, 0.66) 0%, rgba(22, 26, 52, 0.38) 50%, rgba(30, 28, 70, 0.6) 100%); }
.formats { --veil: linear-gradient(180deg, color-mix(in srgb, #fbf6ea 80%, transparent) 0%, color-mix(in srgb, #fbf6ea 30%, transparent) 45%, color-mix(in srgb, #fbf6ea 55%, transparent) 100%); }
.features { --veil: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04)); }
.get { --veil: radial-gradient(60% 70% at 50% 62%, rgba(255, 244, 230, 0.86) 0%, rgba(255, 240, 222, 0.55) 60%, rgba(255, 236, 216, 0.2) 100%); }

/* ---------- accueil : l'étagère ---------- */
.hero { height: 100svh; min-height: 640px; background: var(--ibox-cream); overflow: hidden; }

.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(52, 68, 89, 0.07) 1.5px, transparent 1.6px) 0 0 / 26px 26px; mask: linear-gradient(180deg, #000 0%, transparent 70%); pointer-events: none; }
.hero-stage { position: absolute; inset: 0; touch-action: pan-y; }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s var(--ease-out); }
.live > .gl { opacity: 1; }
.hero-stage > .gl, .colors-stage > .gl { mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%); }
.hero-stage::before, .hero-stage::after, .colors-stage::before, .colors-stage::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 16%; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); pointer-events: none; }
.hero-stage::before, .colors-stage::before { left: 0; mask-image: linear-gradient(90deg, #000, transparent); }
.hero-stage::after, .colors-stage::after { right: 0; mask-image: linear-gradient(270deg, #000, transparent); }
.inspecting .hero-stage::before, .inspecting .hero-stage::after { opacity: 0; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transition: opacity 0.6s; }
.live > .poster { opacity: 0; }
.hero-copy { position: relative; z-index: 2; padding: calc(96px + 3vh) var(--pad) 0; max-width: 1680px; margin: 0 auto; pointer-events: none; transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-spring); }
.hero-copy a { pointer-events: auto; }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 8.2rem); line-height: 0.92; letter-spacing: -0.012em; max-width: 13em; }
.hero-copy > p { margin-top: clamp(14px, 2vw, 26px); font-size: clamp(1.15rem, 1.5vw, 1.5rem); line-height: 1.35; max-width: 32ch; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(20px, 2.6vw, 34px); }
.actions .fine { max-width: 30ch; }
.inspecting .hero-copy { opacity: 0; transform: translateY(-18px); }
.inspecting .hero-copy a { pointer-events: none; }
.hero-caption { position: absolute; z-index: 3; left: 50%; bottom: calc(var(--blend) * 0.6 + 10px); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 22px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-lg); transform: translate(-50%, 140%); opacity: 0; transition: transform 0.55s var(--ease-spring), opacity 0.3s; pointer-events: none; max-width: calc(100vw - 40px); min-height: 56px; }
.hero-caption.on { transform: translate(-50%, 0); opacity: 1; }
.hero-caption b { font-weight: 400; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-caption span { color: var(--ink-soft); font-size: 0.95rem; white-space: nowrap; padding-right: 14px; }
.hero-close { display: none; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.95rem; }
.inspecting .hero-caption { pointer-events: auto; }
.inspecting .hero-caption span { padding-right: 0; }
.inspecting .hero-close { display: inline-flex; align-items: center; }
.hero-hint { position: absolute; z-index: 2; right: var(--pad); bottom: calc(var(--blend) * 0.6 + 12px); padding: 10px 18px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); font-size: 0.95rem; color: var(--ink-soft); transition: opacity 0.3s; }
.no-3d .hero-hint, .inspecting .hero-hint, .hero:has(.hero-caption.on) .hero-hint { opacity: 0; }

/* ---------- le boîtier, pas à pas (nuit étoilée) ---------- */
.story { color: #eef0fa; --ink-soft: #b9c0de; background: linear-gradient(180deg, #1c2350 0%, #2e3b7a 60%, #5b4c9a 100%); --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='rgba(255,240,180,0.9)'%3E%3Cpath d='M30 8l5 12 13 1-10 8 3 13-11-7-11 7 3-13-10-8 13-1z'/%3E%3Ccircle cx='90' cy='40' r='2.4'/%3E%3Ccircle cx='70' cy='95' r='1.8'/%3E%3Ccircle cx='15' cy='80' r='1.6'/%3E%3C/g%3E%3C/svg%3E"); --motif-size: 120px 120px; --dx: 120px; --dy: 120px; --drift: 90s; }
.story::before { display: none; }
.story-pin { display: none; }
.has-3d .story { height: 420vh; }
.has-3d .story-pin { display: block; position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story-stage { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; }
.story-stage:active { cursor: grabbing; }
.story-copy { position: relative; display: grid; grid-template-rows: auto 1fr auto auto; height: 100%; padding: calc(var(--sheet) + 54px) var(--pad) 40px; max-width: 1680px; margin: 0 auto; pointer-events: none; }
.story h2 { font-size: clamp(1.6rem, 2.4vw, 2.4rem); color: #fff; }
.steps { position: relative; align-self: center; width: min(46%, 38rem); min-height: 12rem; }
.steps li { position: absolute; inset: 0 auto auto 0; display: grid; gap: 14px; opacity: 0; transform: translateY(26px); transition: opacity 0.4s var(--ease-out), transform 0.7s var(--ease-spring); }
.steps li.on { opacity: 1; transform: none; }
.steps b { font-weight: 400; font-size: clamp(3.2rem, 8vw, 8.6rem); line-height: 0.9; letter-spacing: -0.012em; color: #fff; }
.steps span { font-size: clamp(1.15rem, 1.6vw, 1.55rem); color: var(--ink-soft); }
.rail { display: flex; gap: 8px; margin-bottom: 16px; }
.rail i { width: 40px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); transition: background-color 0.3s; }
.rail i.on { background: var(--ibox-sky); }
.stills { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 400px); gap: 20px; padding: calc(var(--blend) + 60px) var(--pad) 80px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.has-3d .story:not(.fallback) .stills { display: none; }
.stills li { scroll-snap-align: center; display: grid; gap: 6px; }
.stills img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.stills b { font-weight: 400; font-size: 2rem; }
.stills span { color: var(--ink-soft); }

/* ---------- un format par console (damier crème) ---------- */
.formats { background: conic-gradient(#f3e9d2 25%, #fbf6ea 0 50%, #f3e9d2 0 75%, #fbf6ea 0) 0 0 / 64px 64px; padding-bottom: clamp(60px, 8vw, 120px); }
.formats::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: radial-gradient(70% 60% at 50% 55%, rgba(251, 246, 234, 0.92), rgba(251, 246, 234, 0.35)); pointer-events: none; }
.formats > :not(.ambient) { position: relative; z-index: 1; }
.lineup { position: relative; width: 100%; height: clamp(320px, 38vw, 600px); }
.lineup-stage { position: absolute; inset: 0; touch-action: pan-y; }
.lineup-stage .poster { object-fit: contain; object-position: 50% 50%; }
.lineup-labels { position: absolute; inset: 0; pointer-events: none; }
.lineup-labels button { position: absolute; left: 0; top: 0; pointer-events: auto; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); font-size: 0.92rem; white-space: nowrap; opacity: 0; transition: opacity 0.4s, background-color var(--fast), color var(--fast); }
.formats.live .lineup-labels button { opacity: 1; }
.lineup-labels button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.no-3d .lineup-labels, .lineup-stage.fallback ~ .lineup-labels { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 var(--pad); pointer-events: auto; }
.no-3d .lineup-labels button, .lineup-stage.fallback ~ .lineup-labels button { position: static; opacity: 1; transform: none !important; }
.lineup-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; min-height: 2.6em; padding: 0 var(--pad); text-align: center; opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.5s var(--ease-spring); }
.lineup-info.on { opacity: 1; transform: none; }
.lineup-info b { font-weight: 400; font-size: 1.5rem; }
.lineup-info span { color: var(--ink-soft); align-self: center; }

/* ---------- un fond pour chaque humeur : l'illustration d'un jeu, en fondu ---------- */
.colors { isolation: isolate; padding-bottom: clamp(56px, 7vw, 110px); --veil: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04)); }
.colors .ambient i { transition: opacity 1.2s var(--ease-out), transform 1.6s var(--ease-out); }
.colors-stage { position: relative; height: clamp(240px, 28vw, 440px); }
.colors-stage .poster { object-fit: contain; }
/* la barre ne sert qu'au clavier : elle n'apparaît que quand on y entre avec Tab */
.backdrops:not(:focus-within) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
/* elle flotte au bas de la section : l'ouvrir ou la quitter ne déplace pas la page */
.colors { position: relative; }
.backdrops { position: absolute; z-index: 3; left: 50%; bottom: 18px; translate: -50% 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: max-content; max-width: calc(100% - 2 * var(--pad)); margin: 0; padding: 10px; border-radius: 1.75rem; background: color-mix(in srgb, #fff 72%, transparent); box-shadow: var(--shadow-md); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.backdrops button { width: 52px; height: 68px; border-radius: 10px; overflow: hidden; transition: transform var(--base) var(--ease-spring), box-shadow var(--fast); }
.backdrops img { width: 100%; height: 100%; object-fit: cover; }
.backdrops button[aria-checked="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink); transform: translateY(-4px); }
@media (hover: hover) and (pointer: fine) { .backdrops button:hover { transform: translateY(-4px) scale(1.06); } }
.colors-now { text-align: center; margin-top: 16px; font-size: 1.15rem; min-height: 1.5em; }

/* ---------- des collections à votre image : un avatar par exemple, son pseudo au survol ---------- */
.collections { isolation: isolate; padding-bottom: clamp(60px, 8vw, 120px); --veil: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04)); }
.col-tabs { display: flex; flex-wrap: wrap; gap: 14px; padding: 40px var(--pad) 0; max-width: 1680px; margin: 0 auto 26px; }
.col-tabs button { position: relative; width: 64px; height: 64px; border-radius: 50%; transition: transform var(--base) var(--ease-spring); }
.avatar { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: linear-gradient(140deg, var(--a), var(--b)); color: #fff; font-size: 1.9rem; box-shadow: 0 0 0 3px #fff, var(--shadow-md); transition: box-shadow var(--fast); }
.col-tabs button[aria-selected="true"] .avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink), var(--shadow-md); }
@media (hover: hover) and (pointer: fine) { .col-tabs button:hover { transform: translateY(-5px) scale(1.06); } }
/* le pseudo, dans la pastille et la police d'iBox */
.pseudo { position: absolute; left: 50%; bottom: calc(100% + 12px); padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 1rem; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, 8px) scale(0.92); transform-origin: 50% 100%; transition: opacity 0.18s var(--ease-out), transform 0.35s var(--ease-spring); }
.pseudo::after { content: ""; position: absolute; left: 50%; top: 100%; border: 6px solid transparent; border-top-color: var(--ink); transform: translateX(-50%); }
.col-tabs button:hover .pseudo, .col-tabs button:focus-visible .pseudo { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (hover: none) { .col-tabs button[aria-selected="true"] .pseudo { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.col-panel { padding: 0 var(--pad); max-width: 1680px; margin: 0 auto; }
.col-shot { position: relative; aspect-ratio: 1540 / 775; border-radius: clamp(14px, 2vw, 28px); overflow: hidden; box-shadow: var(--shadow-lg); background: rgba(52, 68, 89, 0.12); }
.col-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity 0.55s var(--ease-out), transform 0.9s var(--ease-out); }
.col-shot img.on { opacity: 1; transform: none; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--ibox-lavender) 45%, #fff); color: var(--ink); font-size: 0.85rem; letter-spacing: 0.02em; }

/* ---------- iBox s'occupe du reste (ciel du matin) ---------- */
.features::before, .get::before { display: none; }
.features { background: linear-gradient(180deg, #8ed2ff 0%, #cdebff 55%, #fff4e0 100%); --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160'%3E%3Cg fill='rgba(255,255,255,0.85)'%3E%3Cellipse cx='60' cy='70' rx='42' ry='20'/%3E%3Ccircle cx='42' cy='60' r='20'/%3E%3Ccircle cx='70' cy='50' r='26'/%3E%3Ccircle cx='95' cy='64' r='16'/%3E%3C/g%3E%3C/svg%3E"); --motif-size: 440px 320px; --dx: 440px; --dy: 0px; --drift: 70s; padding-bottom: clamp(70px, 9vw, 140px); }
.feature { padding: 0 var(--pad); max-width: 1680px; margin: 0 auto clamp(52px, 7vw, 110px); }
.features .head { padding-bottom: clamp(40px, 6vw, 90px); }
.feature h3 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -0.005em; }
.feature p { margin-top: 12px; font-size: clamp(1.08rem, 1.35vw, 1.3rem); line-height: 1.4; color: var(--ink-soft); max-width: 34ch; }
.feature-text { max-width: 640px; }
.emu { max-width: none; padding: 0; }
.emu .feature-text { padding: 0 var(--pad); max-width: 1680px; margin: 0 auto; }
/* place sous les consoles pour que leur ombre s'estompe au lieu d'être tranchée net par le bord de la frise */
.marquee { margin-top: clamp(18px, 3vw, 40px); padding-bottom: 48px; margin-bottom: -48px; overflow: hidden; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee > div { display: flex; align-items: flex-end; gap: clamp(24px, 4vw, 64px); width: max-content; animation: slide 70s linear infinite; }
.marquee img { height: clamp(90px, 11vw, 170px); width: auto; filter: drop-shadow(0 18px 18px rgba(52, 68, 89, 0.22)); }
@keyframes slide { to { transform: translateX(-50%); } }
.feature-pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 6vw; padding: 0 var(--pad); max-width: 1680px; margin: 0 auto clamp(44px, 6vw, 90px); }
.feature-pair .feature { padding: 0; margin: 0; }
.pad, .sounds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px 6vw; align-items: center; }
.pad-demo { display: grid; gap: 22px; justify-items: center; padding: 26px; border-radius: 2.25rem; background: color-mix(in srgb, #ffffff 70%, transparent); box-shadow: var(--shadow-md); }
.pad-covers { display: flex; gap: 12px; align-items: flex-end; perspective: 600px; }
.pad-covers img { width: clamp(52px, 5.4vw, 84px); height: auto; border-radius: 6px; box-shadow: 0 8px 18px -8px rgba(52, 68, 89, 0.5); transition: transform 0.45s var(--ease-spring), box-shadow 0.3s; }
.pad-covers img.focus { transform: translateY(-10px) scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ibox-sky), 0 18px 30px -12px rgba(52, 68, 89, 0.6); }
.pad-covers img.hop { animation: hop 0.6s var(--ease-out); }
.pad-covers img.star { animation: spin 0.8s var(--ease-out); }
@keyframes hop { 40% { transform: translateY(-30px) scale(1.15); } }
@keyframes spin { from { transform: translateY(-10px) scale(1.12) rotateY(0deg); } to { transform: translateY(-10px) scale(1.12) rotateY(360deg); } }
.pad-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; color: var(--ink-soft); font-size: 1rem; }
.pad-keys span { display: inline-flex; align-items: center; gap: 8px; }
kbd { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: #fff; box-shadow: 0 3px 0 rgba(52, 68, 89, 0.18), var(--shadow-sm); font: inherit; color: var(--ink); transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s; }
kbd.down { transform: translateY(3px); box-shadow: 0 0 0 rgba(52, 68, 89, 0.18), var(--shadow-sm); background: var(--ibox-sky); }
.cues { display: flex; flex-wrap: wrap; gap: 10px; }
.cue { position: relative; min-height: 52px; padding: 0 22px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-size: 1.05rem; transition: transform var(--base) var(--ease-spring), background-color var(--fast); }
.cue:hover { background: color-mix(in srgb, var(--ibox-mint) 40%, #fff); }
.cue::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; }
.cue.ring::after { animation: ring 0.7s var(--ease-out); }
@keyframes ring { from { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ibox-mint) 90%, transparent); } to { opacity: 0; box-shadow: 0 0 0 18px transparent; } }
.more { padding: 0 var(--pad); max-width: 1680px; margin: 0 auto; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- téléchargement (coucher de soleil) ---------- */
.get { background: linear-gradient(180deg, #ffb7a1 0%, #ffd7a8 45%, #fff0c9 100%); --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160'%3E%3Cg fill='rgba(255,236,224,0.7)'%3E%3Cellipse cx='60' cy='70' rx='42' ry='20'/%3E%3Ccircle cx='42' cy='60' r='20'/%3E%3Ccircle cx='70' cy='50' r='26'/%3E%3Ccircle cx='95' cy='64' r='16'/%3E%3C/g%3E%3C/svg%3E"); --motif-size: 520px 380px; --dx: -520px; --dy: 0px; --drift: 90s; padding: calc(var(--blend) + clamp(60px, 9vw, 130px)) var(--pad) calc(var(--blend) + clamp(60px, 8vw, 110px)); text-align: center; }
.box { position: relative; width: clamp(200px, 26vw, 360px); aspect-ratio: 1; margin: 0 auto clamp(18px, 3vw, 40px); }
.box-logo { position: relative; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 30px 30px rgba(178, 93, 58, 0.35)); }
.pop { position: absolute; z-index: 0; left: calc(26% + var(--i) * 12%); bottom: 40%; width: 20%; transform: translate(-50%, 40%) rotate(calc((var(--i) - 2) * 8deg)); animation: pop 3.6s var(--ease-out) calc(var(--i) * 0.5s) infinite; filter: drop-shadow(0 12px 14px rgba(52, 68, 89, 0.3)); }
@keyframes pop { 0%, 100% { transform: translate(-50%, 40%) rotate(calc((var(--i) - 2) * 8deg)); } 20% { transform: translate(-50%, -105%) rotate(calc((var(--i) - 2) * 16deg)); } 34% { transform: translate(-50%, -88%) rotate(calc((var(--i) - 2) * 12deg)); } 58% { transform: translate(-50%, 40%) rotate(calc((var(--i) - 2) * 8deg)); } }
.get h2 { font-size: clamp(2.8rem, 7.4vw, 8rem); }
.get-sub { margin-top: 14px; font-size: clamp(1.15rem, 1.6vw, 1.5rem); color: var(--ink-soft); }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); max-width: 1100px; margin: clamp(30px, 4vw, 52px) auto 26px; }
.platform { display: grid; justify-items: center; align-content: start; gap: 10px; padding: 30px 22px 26px; border-radius: 2rem; background: color-mix(in srgb, #fff 74%, transparent); box-shadow: var(--shadow-md); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-decoration: none; transition: transform var(--base) var(--ease-spring), box-shadow var(--base) var(--ease-out); }
.platform .pf { width: 56px; height: 56px; color: var(--ink); }
.platform b { font-weight: 400; font-size: 1.7rem; }
.platform .fine { color: var(--ink-soft); min-height: 2.9em; }
.platform .btn { margin-top: 6px; }
@media (hover: hover) and (pointer: fine) { a.platform:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); } }
.platform.soon { opacity: 0.85; }
.platform.soon .btn { color: var(--ink-soft); }
.platform[aria-disabled="true"] { pointer-events: none; opacity: 0.6; }
.get-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px clamp(20px, 3vw, 44px); margin: clamp(26px, 3.6vw, 48px) 0 22px; }
.get-actions .fine { margin-top: 10px; color: #7a5546; }
.get .btn.ghost { color: var(--ink); }
.get-free { font-size: 1.15rem; }
.get-note { margin: 14px auto 0; max-width: 46ch; color: #7a5546; }

.foot { position: relative; display: grid; gap: 20px; padding: calc(var(--blend) + 36px) var(--pad) 40px; background: var(--night); color: #dfe3f1; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot a { text-decoration: none; }
.foot li a { display: inline-flex; align-items: center; min-height: 36px; color: #aab2cc; transition: color var(--fast); }
.foot li a:hover { color: #fff; }
.foot .fine { color: #8a93ad; max-width: 70ch; }

/* ---------- écrans moyens et petits ---------- */
@media (max-width: 1080px) {
  .feature-pair { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: 1fr; max-width: 520px; }
  .head { grid-template-columns: 1fr; align-items: start; }
  .pad, .sounds { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* sur téléphone, la barre ne garde que l'onglet Plugins (Fonctions est à un défilement) */
  .top nav a:first-child { display: none; }
  .top nav a, .top .pill { padding: 0 12px; }
  .top > *, .top nav a { flex-shrink: 0; }
  :root { --sheet: 1.75rem; }
  .top { left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .top.away { transform: translateY(calc(-100% - 24px)); }
  .brand { padding-right: 6px; }
  .pill.go { margin-left: auto; }
  .hero { min-height: 620px; }
  .hero-copy { padding-top: 104px; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .actions .fine { max-width: none; }
  .hero-hint { display: none; }
  .has-3d .story { height: 340vh; }
  .story-copy { padding-top: calc(var(--sheet) + 30px); }
  .steps { align-self: end; width: 100%; min-height: 8.5rem; margin-bottom: 18px; }
  .steps b { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .lineup { height: auto; }
  .lineup-labels { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 var(--pad); pointer-events: auto; }
  .lineup-labels button { position: static; opacity: 1; transform: none !important; }
  .lineup { height: auto; }
  .lineup-stage { position: relative; height: 40vh; }
  .colors-controls { grid-template-columns: 1fr; }
  .palettes, .backdrops { border-radius: 1.5rem; justify-content: center; }
  .feature-pair { grid-template-columns: 1fr; }
  .col-tabs { gap: 10px; justify-content: center; }
  .col-tabs button { width: 52px; height: 52px; }
  .pad-demo { padding: 18px 12px; }
  .pad-covers { gap: 8px; }
  .pad-covers img { width: 40px; }
  .get-actions { flex-direction: column; align-items: center; }
}

/* mouvement réduit : les fondus restent, les déplacements et les défilements automatiques s'arrêtent */
@media (prefers-reduced-motion: reduce) {
  .story::before, .colors::before, .features::before, .get::before, .marquee > div, .pop, .ambient i.on, .ambient video { animation: none !important; }
  .js [data-split] .w > span, .js [data-reveal] { transform: none !important; }
  .js [data-split] .w > span { opacity: 0; transition: opacity 0.3s !important; }
  .js [data-split].in .w > span { opacity: 1; }
  *, *::before, *::after { transition-duration: 0.2s !important; }
}
.story.fallback { height: auto !important; }
.story.fallback .story-pin { display: none !important; }

/* bulles de verre dépoli, ajustées à chaque bloc de texte posé sur une vidéo */
:is(.features, .colors, .collections, .plugins, .mitb-demo) .head :is(h1, h2),
:is(.features, .colors, .collections, .plugins, .mitb-demo) .head p,
.features .feature-text, .features .feature-pair .feature {
  width: fit-content; max-width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.52));
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 36px -14px rgba(36, 48, 70, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
:is(.features, .colors, .collections, .plugins, .mitb-demo) .head :is(h1, h2) { padding: 0.16em 0.34em 0.2em; margin-left: -0.34em; border-radius: 0.42em; }
:is(.features, .colors, .collections, .plugins, .mitb-demo) .head p { padding: 0.8em 1em; border-radius: 1.25rem; color: var(--ink); }
.features .feature-text, .features .feature-pair .feature { padding: clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 30px); border-radius: 1.6rem; }
.features .emu .feature-text { margin: 0 var(--pad) 0 max(var(--pad), calc((100% - 1680px) / 2 + var(--pad))); max-width: min(640px, calc(100% - 2 * var(--pad))); }
.features .feature-text p, .features .feature-pair .feature p { color: var(--ink); }
@media (max-width: 760px) { .features, .colors, .collections { --veil: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08)); } :root { --blend: 84px; } :is(.features, .colors, .collections, .plugins, .mitb-demo) .head :is(h1, h2) { margin-left: 0; } }

/* le bas de chaque section s'efface sur la suivante : son contenu reste au-dessus du fondu */
.colors, .collections, .features { padding-bottom: calc(var(--blend) + clamp(20px, 3vw, 48px)); }

/* ---------- récit sans 3D : son titre ---------- */
.stills-h { max-width: 1680px; margin: 0 auto; padding: calc(var(--blend) + 30px) var(--pad) 0; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; color: #fff; }
.stills-h + .stills { padding-top: 28px; }
.has-3d .story:not(.fallback) .stills-h { display: none; }

/* ---------- étagère de l'accueil au clavier ---------- */
.hero-stage:focus-visible { outline: 3px solid var(--ink); outline-offset: -8px; border-radius: 24px; }

/* ---------- page introuvable ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; background: var(--ibox-cream); text-align: center; }
.lost main[hidden] { display: none; }
.lost main { display: grid; justify-items: center; gap: 18px; padding: 40px var(--pad); }
.lost h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; max-width: 16ch; }
.lost p { color: var(--ink-soft); font-size: 1.15rem; }

/* ---------- barre du haut : la page où l'on est ---------- */
.top nav a[aria-current="page"] { background: color-mix(in srgb, var(--ibox-sky) 26%, transparent); }

/* ---------- Plugins ---------- */
.plugins { isolation: isolate; min-height: 100svh; padding-bottom: calc(var(--blend) + clamp(40px, 6vw, 90px)); --veil: linear-gradient(180deg, color-mix(in srgb, var(--ibox-cream) 30%, transparent), color-mix(in srgb, var(--ibox-cream) 18%, transparent)); }
.plugins h1, .mitb-hero h1 { font-size: clamp(2.9rem, 6.6vw, 7.4rem); line-height: 0.94; letter-spacing: -0.012em; }
.plugin-list { list-style: none; max-width: 1100px; margin: 0 auto; padding: 0 var(--pad); }
.plugin { display: grid; overflow: hidden; border-radius: clamp(22px, 2.4vw, 34px); text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.56)); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 30px 70px -30px rgba(36, 48, 70, 0.45); transition: transform var(--base) var(--ease-spring), box-shadow var(--base); }
@media (hover: hover) and (pointer: fine) { .plugin:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -30px rgba(36, 48, 70, 0.55); } }
.plugin-shot { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.plugin-body { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(14px, 2vw, 26px); padding: clamp(18px, 2.4vw, 30px); }
.plugin-logo { width: clamp(56px, 6vw, 76px); height: auto; filter: drop-shadow(0 10px 18px rgba(52, 68, 89, 0.25)); }
.plugin b { display: block; font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.05; }
.plugin-tag { display: block; margin-top: 4px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.plugin .fine { display: block; margin-top: 6px; }
.plugins-soon { text-align: center; margin-top: 22px; }
@media (max-width: 760px) { .plugin-body { grid-template-columns: auto 1fr; } .plugin-body .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Music in the Box ---------- */
.mitb-hero { isolation: isolate; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 110px var(--pad) calc(var(--blend) + 40px);
  --veil: radial-gradient(60% 55% at 50% 48%, color-mix(in srgb, var(--ibox-cream) 82%, transparent) 0%, color-mix(in srgb, var(--ibox-cream) 50%, transparent) 55%, color-mix(in srgb, var(--ibox-cream) 26%, transparent) 100%); }
.mitb-copy { display: grid; justify-items: center; gap: clamp(12px, 1.6vw, 20px); max-width: 980px; }
.mitb-logo { width: clamp(96px, 10vw, 140px); height: auto; filter: drop-shadow(0 18px 30px rgba(52, 68, 89, 0.3)); animation: float 6s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(-4px) rotate(-2deg); } to { transform: translateY(6px) rotate(2deg); } }
.mitb-name { font-size: clamp(1.15rem, 1.6vw, 1.45rem); color: var(--ink-soft); }
.mitb-copy > p:not(.mitb-name):not(.fine) { max-width: 40ch; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.4; color: var(--ink-soft); }
.mitb-copy .actions { justify-content: center; margin-top: 6px; }
.mitb-demo { isolation: isolate; padding-bottom: calc(var(--blend) + clamp(30px, 4vw, 60px)); --veil: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06)); }
.screen { position: relative; max-width: 1440px; margin: 0 auto; overflow: hidden; border-radius: clamp(18px, 2.4vw, 34px);
  background: #10131c var(--poster) center / cover no-repeat; box-shadow: 0 40px 90px -36px rgba(10, 14, 28, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.4); }
.screen { width: calc(100% - 2 * var(--pad)); }
.screen iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; opacity: 0; transition: opacity 0.6s var(--ease-out); }
.screen.live iframe { opacity: 1; }
.screen:focus-within { box-shadow: 0 40px 90px -36px rgba(10, 14, 28, 0.7), 0 0 0 3px var(--ink); }
.screen-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; width: calc(100% - 2 * var(--pad)); max-width: 1440px; margin: 18px auto 0; }
.scenes { display: flex; flex-wrap: wrap; gap: 8px; }
.scenes button, .screen-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 1.02rem; color: var(--ink);
  background: rgba(255, 255, 255, 0.66); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 8px 24px -14px rgba(36, 48, 70, 0.35); transition: background var(--fast), color var(--fast), transform var(--base) var(--ease-spring); }
.scenes button[aria-checked="true"] { background: var(--ink); color: #fff; border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .scenes button:hover, .screen-toggle:hover { transform: translateY(-2px); } }
.screen-toggle kbd { min-width: 26px; padding: 4px 6px; border-radius: 7px; background: var(--ink); color: #fff; font: inherit; font-size: 0.85rem; text-align: center; }
.screen-note { width: calc(100% - 2 * var(--pad)); max-width: 1440px; margin: 12px auto 0; }
.mitb-points { isolation: isolate; padding: calc(var(--blend) + clamp(30px, 4vw, 60px)) var(--pad) calc(var(--blend) + clamp(40px, 6vw, 90px)); background: linear-gradient(180deg, #e9f1f8 0%, #fbf6ea 50%, var(--ibox-cream) 100%); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); max-width: 1440px; margin: 0 auto; }
.point { padding: clamp(20px, 2.4vw, 30px); border-radius: 1.75rem; background: color-mix(in srgb, #fff 80%, transparent); box-shadow: var(--shadow-md); }
.point h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; }
.point p { margin-top: 10px; line-height: 1.45; color: var(--ink-soft); }
.mitb-legal { max-width: 1440px; margin: 22px auto 0; text-align: center; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mitb-logo { animation: none; } }

/* très petits écrans : le logo suffit à la marque, la place va à Plugins */
@media (max-width: 400px) { .top .brand span { display: none; } .top nav a, .top .pill { padding: 0 11px; } }
