/* =========================================================================
   Melodiza · présentation partenaires — v1
   Rose + noir uniquement. Deux modes :
   - par défaut (sans JS ou « réduire les animations ») : page statique lisible ;
   - html.motion : scène épinglée (plongée scrubée + cartes AR + particules).
   ========================================================================= */

:root {
  --bg: #050406;
  --bg-2: #0c0a0d;
  --ink: #f7f2f5;
  --ink-2: rgba(247, 242, 245, .72);
  --ink-3: rgba(247, 242, 245, .5);
  --rose: #ff1f8f;
  --rose-2: #e8559a;
  --rose-soft: #ff6fb3;
  --line: rgba(255, 255, 255, .08);
  --serif: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;   /* 19/10 : décision finale d'Arno (remplace Instrument Serif) */
  --sans: 'General Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --title-track: -.03em;
  --pulse: 0;
  --gutter: clamp(16px, 5vw, 72px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);        /* entrées, sorties, feedback */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);    /* déplacements à l'écran */
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 220ms;
}
html[data-font="inter"] { --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --title-track: -.03em; }
html[data-font="switzer"] { --sans: 'Switzer', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --title-track: -.025em; }
html[data-font="bricolage"] { --sans: 'Bricolage Grotesque', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --title-track: -.02em; }

*, *::before, *::after { box-sizing: border-box; }
:root { --build: "dev"; }   /* version livrée (horodatée par tools/livrer.py), lue par ?diag=1 : repère une feuille périmée */
html { background: var(--bg); overscroll-behavior-x: none; -webkit-text-size-adjust: 100%; }   /* pas overscroll-behavior(-y): none : WebKit (Safari) ne défile alors plus à la molette/trackpad (vérifié 18/10) */
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 400; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #b80d64; color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--rose-soft); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(255, 31, 143, .55); color: #fff; }
html { -webkit-tap-highlight-color: transparent; scrollbar-color: rgba(255, 111, 179, .55) #0b0a0d; scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: #0b0a0d; } ::-webkit-scrollbar-thumb { background: rgba(255, 111, 179, .45); border-radius: 8px; border: 2px solid #0b0a0d; }
@media (hover: hover) and (pointer: fine) { ::-webkit-scrollbar-thumb:hover { background: rgba(255, 111, 179, .8); } }
button, a, [role="button"] { touch-action: manipulation; }
button, [role="button"], .tag, .closex, .playbtn, .sound, .rail button { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar__brand { display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border-radius: 999px; background: rgba(10, 8, 12, .5); border: 1px solid rgba(255, 255, 255, .1); transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); }
.topbar__brand img { height: 18px; width: auto; }
.motion .topbar.is-end .topbar__brand, .motion .topbar.is-hero .topbar__brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.sound {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(10, 8, 12, .58); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out), opacity var(--t-ui) var(--ease-out);
}
.sound:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .sound:hover { background: rgba(255, 31, 143, .18); border-color: rgba(255, 111, 179, .55); } }
.sound[hidden] { display: none; }
.i-spk { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i-spk .spk { fill: currentColor; stroke: none; }
.i-spk .mute { display: none; }
.sound:not(.is-playing) .wave { display: none; }
.sound:not(.is-playing) .mute { display: inline; }

/* égaliseur (bouton + barre) */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 2.5px; height: 100%; border-radius: 2px; background: var(--rose); transform-origin: bottom; transform: scaleY(.25); transition: transform .3s; }
.is-playing .eq i { animation: eq 1s ease-in-out infinite; }
.is-playing .eq i:nth-child(2) { animation-delay: -.35s; animation-duration: .8s; }
.is-playing .eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.15s; }
.is-playing .eq i:nth-child(4) { animation-delay: -.15s; animation-duration: .9s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* ---------------------------------------------------------------- stage (statique par défaut) */
.exp { position: relative; }
.exp__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); }
.cam { position: absolute; inset: 0; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.poster--last, .tablet-cut, .screen, .notes, .dust, .layer, .scrim, .copylayer, .captions, .finale, .vignette { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; text-align: center; padding: 96px var(--gutter) 120px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% 47%, rgba(8, 4, 10, .52), rgba(8, 4, 10, 0) 72%),
    linear-gradient(180deg, rgba(5, 4, 6, .35), rgba(5, 4, 6, 0) 26%, rgba(5, 4, 6, 0) 70%, rgba(5, 4, 6, .5));
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; color: rgba(255, 255, 255, .86);
}
.hero__eyebrow span { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7)); }
.hero__eyebrow span:last-child { transform: scaleX(-1); }
.hero__word {
  position: relative; margin: .18em 0 .02em; font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 7.8vw, 118px); line-height: .9; letter-spacing: -.02em;
  text-shadow: 0 10px 60px rgba(20, 6, 16, .35);
  display: inline-flex; align-items: baseline;
}
.hero__icon { width: .86em; height: auto; align-self: center; margin-right: .2em; transform: translateY(.04em); border-radius: .2em; filter: drop-shadow(0 8px 26px rgba(255, 31, 143, .35)); }
.hero__melo { color: #fff; }
.hero__diza {
  color: var(--rose); padding-right: .04em;
  background: linear-gradient(180deg, #ff6fb3 0%, #ff1f8f 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 40px rgba(255, 31, 143, .28));
}
.hero__bars { display: inline-flex; align-items: flex-end; gap: .045em; height: .42em; margin-left: .1em; transform: translateY(-.02em); }
.hero__bars i { width: .055em; border-radius: .03em; background: linear-gradient(180deg, #ff9ccb, #ff1f8f); height: calc(var(--h, .5) * 100%); transform-origin: bottom; }
.hero__bars i:nth-child(1) { --h: .45; } .hero__bars i:nth-child(2) { --h: .8; } .hero__bars i:nth-child(3) { --h: 1; } .hero__bars i:nth-child(4) { --h: .62; }
.hero__lead { margin-top: 20px; max-width: none; white-space: nowrap; font-family: var(--serif); font-size: clamp(26px, 2.8vw, 42px); line-height: 1.1; letter-spacing: -.005em; color: rgba(255, 255, 255, .94); text-shadow: 0 2px 24px rgba(10, 4, 10, .45); }
.hero__lead em { color: var(--rose-soft); }
.hero__play { margin-top: clamp(26px, 4vh, 44px); }

.playbtn {
  position: relative; display: grid; place-items: center; cursor: pointer; padding: 0; border: 0; background: none;
  width: 76px; height: 76px; border-radius: 50%;
  transition: transform var(--t-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .playbtn:hover { transform: scale(1.06); } }
.playbtn:active { transform: scale(.96); transition-duration: var(--t-press); }
.playbtn__icon {
  position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ff6fb3, #ff1f8f 58%, #d70e76);
  box-shadow: 0 16px 40px -10px rgba(255, 31, 143, .75), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -8px 18px rgba(120, 0, 60, .25);
}
/* invitation au clic : un anneau très discret qui respire (s'arrête pendant la lecture) */
.playbtn__icon::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(255, 140, 196, .55);
  animation: halo 2.4s cubic-bezier(.2, .7, .3, 1) infinite;
}
@keyframes halo { 0% { transform: scale(.88); opacity: .85; } 70%, 100% { transform: scale(1.32); opacity: 0; } }
/* halo lumineux qui respire (couche dédiée, opacity + transform uniquement) */
.playbtn::before {
  content: ""; position: absolute; inset: -34px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 40, 150, .55) 0%, rgba(255, 31, 143, .22) 38%, rgba(255, 31, 143, 0) 68%);
  will-change: transform, opacity; animation: glow 2.4s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { transform: scale(.82); opacity: .55; } 50% { transform: scale(1.08); opacity: 1; } }
.playbtn.is-playing::before { animation: none; opacity: .25; transform: scale(.85); transition: opacity .6s, transform .6s; }
.i-play { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.i-pause { display: none; width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; }
.playbtn.is-playing .i-play { display: none; }
.playbtn.is-playing .i-pause { display: block; }
.playbtn.is-playing .playbtn__icon::after { animation: none; opacity: 0; }

.hero__hint {
  position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .82);
}
.hero__hint i { width: 1px; height: 40px; background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0)); position: relative; overflow: hidden; }
.hero__hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--rose-soft); animation: drip 2.2s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes drip { to { transform: translateY(375%); } }   /* 150 % du parent = 375 % de sa propre hauteur (40 %) : composé, plus de layout par image */

/* ---------------------------------------------------------------- contenu statique (sans JS / mouvement réduit) */
.exp__static { padding: clamp(64px, 10vw, 140px) var(--gutter) 40px; max-width: 1280px; margin: 0 auto; }
.exp__tablet { border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); margin-bottom: clamp(64px, 9vw, 120px); }
.steps { display: grid; gap: clamp(72px, 10vw, 140px); }
.step { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cards { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: flex-start; }
.step--group .cards .card { flex: 0 1 auto; }
.decor { display: none; }

/* ---------------------------------------------------------------- copy (textes) */
.copy__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.copy__eyebrow b { font-weight: 500; color: var(--rose-soft); letter-spacing: .1em; padding-right: 12px; border-right: 1px solid rgba(255, 255, 255, .2); }
.copy__title { margin-top: 18px; font-family: var(--sans); font-weight: 400; font-size: clamp(36px, 3.6vw, 56px); line-height: 1.0; letter-spacing: var(--title-track); color: #fff; text-wrap: balance; }
.copy__title em { display: block; margin-top: .12em; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .72em; line-height: 1.04; letter-spacing: -.01em; color: #ff6fb0; }   /* titre en deux parties : ligne rose en Bodoni Moda italique à .72em */
.motion .copy__eyebrow { display: block; margin: 0 0 18px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }   /* étiquette (.kick des maquettes) */
.motion .copy__title { margin-top: 0; }
.copy__text { margin-top: 30px; font-size: clamp(18px, 1.3vw, 19px); line-height: 1.62; color: #fff; max-width: 40ch; font-weight: 400; }
.copy__text p { margin: 0; } .copy__text p + p { margin-top: .9em; }   /* textes aérés (19/10) : 2-3 paragraphes courts, mêmes mots */
.copy__list { margin-top: 22px; display: grid; gap: 12px; max-width: 46ch; }
.copy__list li { position: relative; padding-left: 26px; font-size: clamp(18px, 1.3vw, 19px); line-height: 1.5; color: #fff; font-weight: 400; }
.copy__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 1px; background: var(--rose); box-shadow: 0 0 8px rgba(255, 31, 143, .8); }

/* ---------------------------------------------------------------- cartes (verre dépoli) */
.card { position: relative; width: var(--cw, 440px); max-width: 100%; color: var(--ink); font-size: 16px; }
.card--wide { --cw: 520px; }
.card--mid { --cw: 440px; }
.card--np { --cw: 520px; }
.card--phone { --cw: 340px; }
.card--device { --cw: 520px; }
html:not(.motion) .card--device { --cw: 300px; }
.card--bar { --cw: 640px; }
.card--menu { --cw: 250px; }
.card--pl { --cw: 520px; }

.card__glass {
  position: relative; border-radius: 30px; padding: 18px; overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .015) 38%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(24, 21, 27, .84), rgba(10, 9, 12, .9));
  border: 1px solid rgba(255, 255, 255, .075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 30px 50px -28px rgba(0, 0, 0, .8);
}
/* pas de backdrop-filter sur les cartes 3D : trop coûteux pendant le scrub ; le verre est rendu par les dégradés */
/* liseré rose diffus (opacité seule pilotée par le son) */
.card__glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 120, 190, .75), rgba(255, 255, 255, .08) 34%, rgba(255, 255, 255, .04) 62%, rgba(255, 31, 143, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .55;
}
.card__rim { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s linear;
  box-shadow: inset 0 0 0 1px rgba(255, 111, 179, .55), inset 0 0 30px rgba(255, 31, 143, .12), 0 0 34px rgba(255, 31, 143, .16); }
.card__rim { transition: none; }   /* will-change retiré : 10 couches de moins (le navigateur promeut à l'animation) */
.card__rim.is-glow { /* taste-skill-ignore : masque en anneau, pas une ombre ni un dégradé décoratif */ box-shadow: none; padding: 1.5px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card__veil { position: absolute; inset: 0; border-radius: inherit; background: #070609; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
/* halo extérieur (bloom), seule l'opacité varie */
.card::before {
  display: none; content: ""; position: absolute; inset: 6% 4%; border-radius: 40px; z-index: -1; pointer-events: none;
  box-shadow: 0 0 70px 6px rgba(255, 31, 143, .22);
  opacity: .45;
}
.card__lede { font-family: var(--serif); font-size: 34px; line-height: 1.04; letter-spacing: -.01em; padding: 2px 4px 16px; text-wrap: balance; }
.card__lede em { color: var(--rose-soft); }
.card__lede--sm { font-size: 30px; text-align: center; padding-top: 4px; }
.card__head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; font-size: .82rem; font-weight: 500; letter-spacing: .02em; color: rgba(255, 255, 255, .86); }
.card__head svg { width: 18px; height: 18px; fill: none; stroke: var(--rose-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card__head em { margin-left: auto; font-style: normal; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.card__head em.live { color: #ff9ccb; display: inline-flex; align-items: center; gap: 7px; }
.card__head em.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose); }
.card__logo { width: 20px; height: 20px; border-radius: 6px; background: url(../img/logo.png) 0 50% / auto 100% no-repeat; }
.card__shot { border-radius: 18px; overflow: hidden; background: #000; }
.card__shot img { width: 100%; height: auto; }

/* catalogue */
.cat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat img { aspect-ratio: 1; object-fit: cover; border-radius: 14px; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.chips li { font-size: .82rem; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .85); }

/* certificat */
.cert { position: relative; border-radius: 20px; padding: 26px 24px 20px; background: linear-gradient(170deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .08); }
.cert::after { content: ""; position: absolute; inset: 8px; border-radius: 14px; border: 1px solid rgba(255, 31, 143, .22); pointer-events: none; }
.cert__kicker { font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--rose-soft); }
.cert__title { font-family: var(--serif); font-size: 40px; line-height: 1; margin-top: 8px; }
.cert__title em { color: var(--rose-soft); }
.cert dl { margin-top: 18px; display: grid; gap: 10px; }
.cert dl div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 9px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: .88rem; }
.cert dt { color: var(--ink-3); }
.cert dd { text-align: right; }
.cert__foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.qr { width: 64px; height: 64px; border-radius: 8px; background: #fff; }
.cert__foot p { font-size: .82rem; line-height: 1.35; }
.cert__foot span { color: var(--ink-3); }

/* programmation / zones / sites / hors ligne : lignes */
.sched, .zones, .sites, .dl { display: grid; gap: 8px; }
.sched li, .zones li, .sites li, .dl li {
  display: grid; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 16px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .05);
}
.sched li { grid-template-columns: 64px 46px 1fr auto; }
.zones li, .dl li { grid-template-columns: 46px 1fr auto; }
.sites li { grid-template-columns: 12px 1fr auto; padding: 12px 14px; }
.sched img, .zones img, .dl img { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; }
.zones li { padding-top: 6px; padding-bottom: 6px; }
.zones img { width: 38px; height: 38px; border-radius: 10px; }
.zones li { grid-template-columns: 38px 1fr auto; }
.sched time { font-size: .84rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
li b { display: block; font-size: 1rem; font-weight: 500; }
li small { display: block; font-size: .82rem; color: var(--ink-3); margin-top: 1px; }
.sched li.is-now { background: linear-gradient(90deg, rgba(255, 31, 143, .2), rgba(255, 31, 143, .05)); border-color: rgba(255, 31, 143, .35); }
.sched li.is-now time { color: #ffb3d6; }
.sched i, .zones i, .sites i { font-style: normal; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sched li.is-now i { color: #fff; background: #b80d64; padding: 4px 9px; border-radius: 999px; letter-spacing: .08em; }
.zones i.st--on, .sites li .dot--on ~ i { color: #ff9ccb; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.dot--on { background: var(--rose); box-shadow: 0 0 0 4px rgba(255, 31, 143, .16), 0 0 12px rgba(255, 31, 143, .8); }
.policy { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); font-size: .78rem; text-align: center; }
.policy span { padding: 8px 0; border-radius: 10px; color: var(--ink-2); }
.policy span.is-on { background: #b80d64; color: #fff; box-shadow: 0 6px 18px -6px rgba(255, 31, 143, .8); }
.toggle { margin-left: auto; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .15); position: relative; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.toggle.is-on { background: var(--rose); }
.toggle.is-on i { left: 19px; }
.dl .ok { font-style: normal; color: #ff9ccb; font-size: .9rem; }
.dl .pc { font-style: normal; font-size: .72rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dl__bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.dl__bar span { display: block; height: 100%; width: 64%; background: var(--rose); }

/* lecture en cours */
.np { padding: 0 4px 4px; }
.np__art { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.np__title { font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.05; margin-top: 16px; text-align: center; }
.np__artist { text-align: center; color: var(--ink-3); font-size: .82rem; margin-top: 4px; }
.np__wave { display: block; width: 100%; height: 32px; margin-top: 10px; will-change: transform; }
.np__bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); margin-top: 8px; overflow: hidden; }
.np__bar span { display: block; height: 100%; width: 100%; background: var(--rose); transform-origin: left; transform: scaleX(.07); will-change: transform; }
.np__times { display: flex; justify-content: space-between; font-size: .68rem; color: var(--ink-3); margin-top: 6px; font-variant-numeric: tabular-nums; }
.np__ctrl { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 8px; }
.np__ctrl > svg, .mini__ctrl > svg { width: 22px; height: 22px; fill: rgba(255, 255, 255, .9); stroke: rgba(255, 255, 255, .9); stroke-width: 1.6; stroke-linejoin: round; }
.np__pause { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--rose); box-shadow: 0 10px 26px -8px rgba(255, 31, 143, .9); }
.np__pause svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.np__live { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 12px var(--rose); }

/* appareil */
.device { border-radius: 26px; overflow: hidden; border: 5px solid #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.stores { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.stores img { height: 36px; width: auto; }

/* partenariat */
.deal { display: grid; gap: 10px; }
.deal li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.deal__n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-family: var(--serif); font-size: 22px; color: #fff; background: linear-gradient(160deg, rgba(255, 31, 143, .9), rgba(200, 10, 110, .9)); box-shadow: 0 8px 20px -8px rgba(255, 31, 143, .9); }
.deal b { font-size: 1rem; }

/* mini lecteur (décor) */
.mini { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; position: relative; padding-bottom: 6px; }
.mini img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.mini__t b { display: block; font-size: .95rem; } .mini__t small { display: block; font-size: .78rem; color: var(--ink-3); }
.mini__ctrl { display: flex; align-items: center; gap: 18px; padding-right: 6px; }
.mini__ctrl .np__pause { width: 44px; height: 44px; }
.mini__bar { position: absolute; left: 66px; right: 6px; bottom: -6px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.mini__bar span { display: block; width: 7%; height: 100%; background: var(--rose); }

/* ---------------------------------------------------------------- partenariat */
.partner { position: relative; padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(80px, 10vw, 130px); background: var(--bg); }
.wrap { position: relative; max-width: 1180px; margin: 0 auto; }
.partner__title { text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 9vw, 150px); line-height: .95; letter-spacing: -.02em; }
.partner__title em { color: var(--rose-soft); }
.partner__lead { margin: 28px auto 0; max-width: 36ch; text-wrap: balance; text-align: center; font-family: var(--serif); font-size: clamp(22px, 2.3vw, 32px); line-height: 1.25; color: var(--ink-2); }
.contact {
  margin: clamp(44px, 6vw, 72px) auto 0; max-width: 560px; text-align: center; padding: clamp(28px, 4vw, 44px);
  border-radius: 32px; border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 90px -30px rgba(255, 31, 143, .35);
}
.contact__name { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 44px); line-height: 1; }
.contact__role { margin-top: 8px; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.contact__mail { display: inline-block; margin-top: 18px; font-size: clamp(18px, 1.6vw, 22px); color: #ffd2e7; text-decoration: none; border-bottom: 1px solid rgba(255, 111, 179, .45); padding-bottom: 2px; }
@media (hover: hover) and (pointer: fine) { .contact__mail:hover { color: #fff; border-color: var(--rose); } }
.contact__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; height: 50px; padding: 0 26px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, border-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } .btn--ghost:hover { border-color: rgba(255, 111, 179, .7); } }
.btn:active { transform: scale(.97); }
.btn--main { background: #b80d64; color: #fff; box-shadow: 0 14px 34px -12px rgba(255, 31, 143, .85); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .22); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 100px); border-top: 1px solid var(--line); }
.facts li { padding: 26px 18px 0; text-align: center; }
.facts li + li { border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.1; }
.facts span { display: block; margin-top: 6px; font-size: .82rem; color: var(--ink-3); }
.foot { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 16px calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: .8rem; }
.foot img { height: 22px; width: auto; opacity: .9; }

.reveal { opacity: 1; }

/* ---------------------------------------------------------------- rail + progression mobile */
.rail, .mprogress { display: none; }

/* =========================================================================
   MODE ANIMÉ
   ========================================================================= */
.motion .exp { height: calc(var(--len, 24) * 100vh); height: calc(var(--len, 24) * 100lvh); }
.motion .exp__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; min-height: 0; overflow: hidden; overflow: clip; contain: layout paint; background: #000; }
.motion .cam { background: #000; }
.motion .exp__static { display: none; }
.motion .cam > picture, .motion .cam > img, .motion .cam > video, .motion .cam > canvas, .motion .cam > .screen { position: absolute; left: 0; top: 0; }
.flame { display: none; }
.motion .cam canvas.flame { display: block; transform-origin: 0 0; max-width: none; pointer-events: none; opacity: 0; z-index: 9; }
.motion .cam canvas.spknotes { transition: opacity .6s ease; }
.motion .cam video.heroloop { opacity: 0; transition: opacity .6s ease; transform-origin: 0 0; max-width: none; }
.motion .cam video.heroloop.is-ready { opacity: 1; }
/* la séquence est au-dessus de la vidéo : invisible en haut de page, révélée en fondu de 0,35 s dès qu'on quitte le haut */
.motion .cam canvas.seq { opacity: 0; transition: opacity .35s ease; }
.motion .cam canvas.seq.is-painted { opacity: 1; }
.motion .cam canvas.seq.is-painted.hero-under { opacity: 0; }
.motion .cam picture { display: block; position: absolute; left: 0; top: 0; width: 0; height: 0; }
.motion .poster, .motion .cam video, .motion .cam canvas.seq {
  inset: auto; width: auto; height: auto; max-width: none; object-fit: fill;
  transform-origin: 0 0; transform: translateZ(0); backface-visibility: hidden;
}
.motion .cam video, .motion .cam canvas.seq { display: block; }
.motion .poster--last { display: none; opacity: 0; }   /* affiché par le script seulement si la séquence n'a pas peint */
.motion .tablet-cut { display: block; transform-origin: 0 0; max-width: none; opacity: 0; pointer-events: none; }
.motion .screen { display: block; transform-origin: 0 0; opacity: 0; width: 1240px; height: 836px; overflow: hidden; border-radius: 30px; background: #0b0a0c; backface-visibility: hidden; }
.screen > img { width: 1240px; height: 775px; max-width: none; opacity: 0; }
.screen__status { opacity: 0; }
.motion .screen { background: #000; }
.screen__status { height: 61px; display: flex; align-items: center; justify-content: space-between; padding: 14px 40px; color: #fff; font-weight: 600; font-size: 26px; letter-spacing: .02em; background: #000; }
.screen__icons { display: inline-flex; align-items: center; gap: 12px; }
.screen__icons i { width: 26px; height: 18px; border-radius: 3px 3px 9px 9px; border: 3px solid #fff; border-top-width: 0; }
.screen__icons b { width: 44px; height: 20px; border-radius: 5px; border: 2px solid rgba(255, 255, 255, .8); background: linear-gradient(90deg, #fff 70%, transparent 70%) 2px 2px / calc(100% - 4px) calc(100% - 4px) no-repeat; }

.motion .notes, .motion .dust { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.motion .notes { z-index: 5; }
.edgefade { display: none; }
.motion .edgefade { display: block; position: absolute; left: 0; right: 0; top: 0; height: 200vh; z-index: 6; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(5, 4, 6, 0) 0, var(--bg) 100px, var(--bg) 100%); }
.motion .vignette { display: block; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: radial-gradient(120% 90% at 50% 55%, transparent 55%, rgba(5, 4, 6, .55)); }
.motion .layer { display: block; position: absolute; inset: 0; pointer-events: none; perspective: 1400px; transform-style: flat; }   /* flat : Safari 17 clippe et décale les cartes 3D sous preserve-3d (vérifié) ; l'ordre en Z vient des deux couches, pas du tri 3D */
.motion .layer--back { z-index: 8; }
.motion .cam .tablet-cut, .motion .cam .screen { z-index: 9; }
.motion .cam { z-index: auto; }
.motion .scrim { display: block; position: absolute; inset: 0; z-index: 10; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(5, 4, 6, .985) 0%, rgba(5, 4, 6, .97) 40%, rgba(5, 4, 6, .8) 52%, rgba(5, 4, 6, .5) 64%, rgba(5, 4, 6, .55) 100%); }   /* ≥ 7:1 pour le blanc sur la colonne de texte */
.motion .layer--front { z-index: 11; }
.motion .exp__stage.is-clickstep { cursor: pointer; }
.motion .layer .card { contain: layout style; position: absolute; left: 0; top: 0; margin: 0; transform-origin: 50% 50%; backface-visibility: hidden; max-width: none; opacity: 0; }
html:not(.motion) .card::before { display: block; }
.motion .layer .card.is-dim .card__glass { opacity: .9; }
.motion .copylayer { display: block; position: absolute; inset: 0; z-index: 12; pointer-events: none; }
.motion .copylayer .copy { position: absolute; left: var(--gutter); top: 50%; width: min(37vw, 540px); opacity: 0; transform: translateY(-50%); }
.motion .copylayer .copy.is-on { pointer-events: auto; }
.motion .captions { display: block; position: absolute; inset: 0; z-index: 13; pointer-events: none; }
.caption { position: absolute; left: var(--gutter); bottom: clamp(24px, 3.5vh, 48px);   /* descendue (~8 % de la hauteur) : hors tablette, enceinte et notes */ max-width: min(760px, 70vw); opacity: 0; }
.caption--top { left: 50%; top: clamp(84px, 13vh, 130px); bottom: auto; transform: translateX(-50%); text-align: center; width: min(900px, 90vw); max-width: none; }
.caption__eyebrow { display: block; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .78); margin-bottom: 12px; }
.caption::before { content: ""; position: absolute; z-index: -1; inset: -70% -26% -90% -20%; background: radial-gradient(closest-side, rgba(5, 4, 6, .9), rgba(5, 4, 6, .7) 50%, rgba(5, 4, 6, 0)); pointer-events: none; }
.caption--top::before { inset: -50% -10%; }
.caption__line { display: block; font-family: var(--serif); font-size: clamp(34px, 4.2vw, 64px); line-height: 1.02; letter-spacing: -.01em; text-shadow: 0 4px 40px rgba(0, 0, 0, .55); text-wrap: balance; }
.caption__line em { color: #ffc2de; }
.motion .hero { z-index: 30; }
.motion .dust { z-index: 34; }
.motion .partner { position: relative; z-index: 3; padding-top: 0; background: transparent; }
.motion .partner .wrap { background: transparent; }
.motion .partner__lead { margin-top: 0; }
.motion .partner__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.motion .reveal { opacity: 0; transform: translateY(26px); }

.motion .rail {
  display: flex; flex-direction: column; gap: 4px; position: fixed; right: clamp(14px, 2vw, 28px); top: 50%; z-index: 55; pointer-events: none;
  transform: translateY(-50%); transition: opacity .6s ease;
}
.rail.is-off { opacity: 0; pointer-events: none; }
.rail button {
  position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 26px;
  padding: 0; border: 0; background: none; cursor: pointer; color: rgba(255, 255, 255, .62);
  pointer-events: none;                 /* seul le tiret est cliquable : le libellé invisible ne doit jamais capter un clic */
}
.rail button i { pointer-events: auto; position: relative; }
.rail button i::after { content: ""; position: absolute; inset: -9px -8px; }
.rail button span { pointer-events: none; font-size: .72rem; letter-spacing: .04em; opacity: 0; transform: translateX(6px); transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); white-space: nowrap; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.rail button i { width: 34px; height: 1px; background: rgba(255, 255, 255, .45); transform: scaleX(.53); transform-origin: right center; transition: transform var(--t-ui) var(--ease-out), background-color var(--t-hover) ease; }   /* largeur animée en transform, pas en width */
.rail button:focus-visible span { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .rail button:hover span { opacity: 1; transform: none; } .rail button:hover i { background: #fff; } }
.rail button.is-active { color: #fff; }
.rail button.is-active i { transform: scaleX(1); background: var(--rose); box-shadow: 0 0 10px rgba(255, 31, 143, .9); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 26px; }
}
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; }
  .motion .rail { display: none; }
  .motion .mprogress { display: block; position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 61; background: rgba(255, 255, 255, .08); }
  .mprogress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--rose); box-shadow: 0 0 8px rgba(255, 31, 143, .8); }
  .motion .scrim { background: linear-gradient(0deg, rgba(5, 4, 6, .985) 0%, rgba(5, 4, 6, .94) 36%, rgba(5, 4, 6, .45) 60%, rgba(5, 4, 6, .25) 100%); }
  .motion .copylayer .copy { left: 20px; right: 20px; top: auto; bottom: calc(26px + env(safe-area-inset-bottom)); width: auto; transform: none; }
  .copy__title { font-size: clamp(30px, 8.4vw, 40px); margin-top: 12px; }
  .copy__text { margin-top: 14px; font-size: 15px; line-height: 1.6; }
  .copy__list { margin-top: 14px; gap: 8px; }
  .copy__list li { font-size: 14.5px; }
  .caption { left: 20px; right: 20px; bottom: calc(26px + env(safe-area-inset-bottom)); max-width: none; }
  .caption__line { font-size: clamp(30px, 8.6vw, 42px); }
  .caption__eyebrow { font-size: .62rem; letter-spacing: .2em; line-height: 1.6; }
  .caption--top { left: 50%; right: auto; top: calc(78px + env(safe-area-inset-top)); bottom: auto; }
  .hero { padding-bottom: 140px; }
  .hero__eyebrow { font-size: .6rem; letter-spacing: .2em; gap: 10px; }
  .hero__eyebrow span { width: 18px; }
  .hero__word { font-size: clamp(40px, 11.5vw, 60px); }
  .hero__bars { margin-left: .18em; }
  .playbtn, .playbtn__icon { width: 68px; height: 68px; }
  .hero__lead { font-size: 28px; white-space: normal; width: auto; max-width: 88vw; }
  .topbar__brand { height: 30px; padding: 0 10px; } .topbar__brand img { height: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .contact { border-radius: 26px; }
}
@media (max-width: 520px) {
  .card { --cw: 100%; }
  /* scène animée mobile : cartes dessinées à leur taille d'affichage (texte lisible, pas de réduction) */
  .motion .card--wide { --cw: 340px; } .motion .card--mid { --cw: 330px; } .motion .card--np { --cw: 290px; }
  .motion .card--phone { --cw: 270px; } .motion .card--device { --cw: 240px; } .motion .card--bar { --cw: 380px; }
  .motion .card__glass { padding: 14px; border-radius: 24px; }
  .motion .card__lede { font-size: 27px; padding-bottom: 12px; }
  .motion .card__lede--sm { font-size: 24px; }
  .motion .cert { padding: 18px 16px 14px; } .motion .cert__title { font-size: 30px; }
  .motion .sched li { grid-template-columns: 52px 40px 1fr auto; gap: 9px; }
  .motion .sched img, .motion .zones img, .motion .dl img { width: 40px; height: 40px; }
  .motion .np__title { font-size: 26px; }
  .facts li { padding: 22px 10px 0; }
  .contact__btns .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .eq i, .playbtn__icon::after, .hero__hint i::after { animation: none !important; }
  .playbtn::before { animation: none !important; opacity: .7; transform: none; }
}
@media print {
  .topbar, .rail, .mprogress, .hero__hint, .playbtn { display: none !important; }
}

/* indicateur discret affiché à la fin de la descente automatique */
.autohint { display: none; }
.motion .autohint { display: flex; position: absolute; left: var(--gutter); bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 14;
  flex-direction: row; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .62);
  opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.autohint.is-on { opacity: 1; }
.autohint i { width: 28px; height: 1px; position: relative; overflow: hidden; background: rgba(255, 255, 255, .25); }
.autohint i::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 1px; background: var(--rose-soft); animation: slide 2.2s cubic-bezier(.6, 0, .3, 1) 3; }   /* trois passes puis arrêt : pas de boucle infinie */
@keyframes slide { to { transform: translateX(375%); } }   /* composé, pas de layout */

/* ---------------------------------------------------------------- fin (carte de fin sobre) */
.endcard { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(80px, 12vw, 150px) var(--gutter); }
.endcard__icon { width: clamp(72px, 7vw, 104px); height: auto; border-radius: 22%; }
.endcard__word { margin-top: 28px; font-family: var(--serif); font-size: clamp(52px, 6vw, 92px); line-height: 1; letter-spacing: -.02em; }
.motion .finale .endcard__word { margin-top: 18px; font-size: 5.6vh; }   /* ≈ 1,3 × la largeur de l'icône */
.endcard__word em { color: var(--rose-soft); }
.endcard__slogan { margin-top: 12px; font-family: var(--serif); font-size: clamp(24px, 2.5vw, 38px); line-height: 1.2; color: rgba(247, 242, 245, .82); }
.endcard__slogan em { color: var(--rose-soft); }
.endcard__contact { margin-top: clamp(40px, 6vh, 64px); }
.endcard__word + .endcard__links { margin-top: clamp(30px, 5vh, 52px); }
.motion .finale .endcard__word + .endcard__links { margin-top: 18px; }
.endcard__name { font-size: .82rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(247, 242, 245, .74); font-weight: 400; }
.motion .finale .endcard__name { font-size: 15px; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .8); }
.motion .finale .endcard__links { font: 400 15px/1.5 var(--sans); color: rgba(255, 255, 255, .8); gap: 6px 12px; }
.motion .finale .endcard__links a { color: rgba(255, 255, 255, .92); text-decoration-color: rgba(255, 255, 255, .4); }
.motion .finale .endcard__for { margin-top: 24px; font-size: 13px; letter-spacing: .02em; text-transform: none; color: rgba(255, 255, 255, .55); }
.endcard__links { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 10px 20px; font-size: clamp(17px, 1.4vw, 21px); font-weight: 300; }
.endcard__links span, .endcard__links i { color: rgba(247, 242, 245, .6); }
.endcard__links a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(255, 255, 255, .55); transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .endcard__links a:hover { color: var(--rose-soft); text-decoration-color: var(--rose-soft); } }
.endcard__links a:active { color: var(--rose); }
.endcard__facts { margin-top: clamp(36px, 5vh, 56px); font-size: .8rem; letter-spacing: .08em; color: rgba(247, 242, 245, .42); max-width: 60ch; line-height: 1.7; }
.foot { padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); }

/* écran de démarrage dans la tablette, voile de la scène, halo sur le comptoir */
.screen__boot { position: absolute; inset: 0; display: grid; place-items: center; background: #000; opacity: 0; }
.screen__boot img { width: 150px; height: auto; max-width: none; border-radius: 22%; }
.fader, .counterglow { display: none; }
.motion .fader { display: block; position: absolute; inset: 0; z-index: 8; background: #000; opacity: 0; pointer-events: none; }
.motion .counterglow { display: block; position: absolute; left: 0; top: 0; width: 1000px; height: 220px; z-index: 9; opacity: 0; pointer-events: none; transform-origin: 0 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 60, 160, .55), rgba(255, 31, 143, .18) 45%, rgba(255, 31, 143, 0) 72%); }
.motion .partner, .motion .foot { display: none; }
.motion .finale { display: grid; position: absolute; inset: 0; z-index: 35; place-items: center; pointer-events: none; padding: 0; }
.motion .finale .endcard { padding: 0 var(--gutter); }
.motion .finale .endcard > * { opacity: 0; will-change: opacity, transform; }
.motion .finale .endcard.is-live { pointer-events: auto; }

/* ---------------------------------------------------------------- constellation : étiquettes, clic, vue d'ensemble */
.tags, .closex { display: none; }
.motion .tags { display: block; position: absolute; inset: 0; z-index: 12; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  padding: 0; margin: 0; border: 0; background: none; color: #fff; cursor: pointer; opacity: 0; pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 14px rgba(0, 0, 0, .45);
}
.tag--right { align-items: flex-end; }
/* étiquettes de la constellation : la police du « Bonsoir, » de l'app (Instrument Serif italique), blanc pur, épaissie par un contour fin (une seule graisse disponible) */
.tag__text { display: block; white-space: normal; max-width: var(--tagw, 260px); text-wrap: balance; font: italic 400 21px/1.05 var(--serif); letter-spacing: 0; color: #fff; -webkit-text-stroke: .7px currentColor; paint-order: stroke fill; text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 2px 16px rgba(0, 0, 0, .5); transition: color var(--t-hover) ease, transform var(--t-press) var(--ease-out); transform-origin: left center; }
.tag--right .tag__text { transform-origin: right center; }
.tag__line { display: block; width: 1px; height: 10px; margin-top: 3px; background: rgba(255, 255, 255, .4); }
.tag.is-live { pointer-events: auto; }
.tag.is-hover .tag__text, .tag:focus-visible .tag__text { color: var(--rose-soft); }
@media (hover: hover) and (pointer: fine) { .tag:hover .tag__text { color: var(--rose-soft); } }
.tag:active .tag__text { transform: scale(.97); }
.tag:focus-visible { outline: none; } .tag:focus-visible .tag__text { text-decoration: underline; text-underline-offset: 4px; }
.motion .layer .card.is-clickable { pointer-events: auto; cursor: pointer; }
.motion .layer .card.is-clickable:active .card__glass { transform: scale(.985); }
.motion .layer .card .card__glass { transition: transform var(--t-press) var(--ease-out); }
@media (max-width: 860px) { .tag__text { font-size: 17.5px; -webkit-text-stroke-width: .55px; } }

/* ---------------------------------------------------------------- fléchage du bouton play */
.hero__play { display: flex; align-items: center; gap: 18px; }
.chev { display: inline-flex; align-items: center; gap: 0; transition: opacity .5s ease; }
.chev svg { width: 12px; height: 22px; fill: none; stroke: rgba(255, 255, 255, .72); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .15; animation: chev 2.4s ease-in-out infinite; }
.chev svg:nth-child(2) { stroke: rgba(255, 200, 228, .8); }
.chev svg:nth-child(3) { stroke: #ff8cc4; }
.chev--l svg:nth-child(1), .chev--r svg:nth-child(3) { animation-delay: 0s; }
.chev--l svg:nth-child(2), .chev--r svg:nth-child(2) { animation-delay: .25s; }
.chev--l svg:nth-child(3), .chev--r svg:nth-child(1) { animation-delay: .5s; }
@keyframes chev { 0%, 100% { opacity: .12; transform: translateX(0); } 45% { opacity: 1; } }
.chev--l svg { animation-name: chevL; } .chev--r svg { animation-name: chevR; }
@keyframes chevL { 0%, 100% { opacity: .3; transform: translateX(-2px); } 45% { opacity: 1; transform: translateX(2px); } }
@keyframes chevR { 0%, 100% { opacity: .3; transform: translateX(2px); } 45% { opacity: 1; transform: translateX(-2px); } }
.is-playing .chev { opacity: 0; }
@media (max-width: 860px) { .hero__play { gap: 10px; } .chev svg { width: 10px; height: 18px; } }
@media (prefers-reduced-motion: reduce) { .chev svg { animation: none !important; opacity: .7; } }

/* cartes au format paysage : la constellation garde des tailles homogènes */

/* cube Melodiza en verre (three.js), fin de la présentation */
.cubewrap, .flyers { display: none; }
.motion .flyers { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 33; pointer-events: none; opacity: 0; }
.motion .cubewrap { display: block; position: absolute; left: 0; top: 0; width: 520px; height: 520px; z-index: 34; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.cubecv { position: absolute; inset: 0; width: 100%; height: 100%; }
.cubehalo { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 31, 143, .26), rgba(255, 31, 143, .06) 60%, rgba(255, 31, 143, 0)); opacity: 0; will-change: opacity, transform; }
.motion .finale .endcard__icon { width: 14.5vh; }
.motion .finale .endcard { transform: translateY(-6vh); }   /* bloc centré optiquement un peu au-dessus du centre */
@media (max-width: 860px) { .motion .cubewrap { width: 400px; height: 400px; } .motion .finale .endcard__icon { width: 13vh; } }
@media (max-width: 520px) { .endcard__links .endcard__name { flex: 1 1 100%; } .endcard__links .endcard__name + i { display: none; } }

/* ---------------------------------------------------------------- tuiles de la constellation (6, identiques, 16:10)
   Tailles en cqw (1 cqw = 1 % de la largeur de la tuile) : la tuile est dessinée à 640×400 puis mise à l'échelle par
   transform dans la scène, et s'adapte seule en version statique. */
.tile { width: 640px; height: 400px; container-type: inline-size; }
html:not(.motion) .tile { width: 100%; max-width: 640px; height: auto; aspect-ratio: 16 / 10; }
.tile::before { display: none !important; }
.tile .card__glass {
  position: absolute; inset: 0; border-radius: 5cqw; padding: 4.5cqw; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .012) 40%, rgba(255, 255, 255, 0) 62%), linear-gradient(180deg, rgba(22, 19, 25, .9), rgba(9, 8, 11, .94));
  border: 0; box-shadow: inset 0 0 0 1px rgba(255, 31, 143, .35), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.tile .card__glass::before { display: none; }
.tile .card__veil, .tile .card__rim { border-radius: 5cqw; }
/* ombre portée : une seule couche, dégradé radial sous la tuile */
.tile__shadow { position: absolute; left: -6%; right: -6%; top: 62%; bottom: -26%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 34%, rgba(0, 0, 0, .62), rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 72%); }
html:not(.motion) .tile__shadow { display: none; }
/* 01 : quatre pochettes */
.tile__covers { position: absolute; inset: 4.5cqw; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4cqw; }
.tile__covers img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; border-radius: 2.6cqw; }
/* tuile 01 : photos de commerces (2×2 en constellation, 2×3 en carte ouverte), léger voile uniforme −8 % pour homogénéiser les expositions */
.tile__covers--commerces img { filter: brightness(.92); }
.tile__covers--commerces img:nth-child(n+5) { display: none; }
.card.is-open .tile__covers--commerces { grid-template-rows: repeat(3, minmax(0, 1fr)); }
.card.is-open .tile__covers--commerces img:nth-child(n+5) { display: block; }
/* 02 : certificat */
.tile__cert { position: absolute; inset: 4.5cqw; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4cqw; border-radius: 3.4cqw; padding: 5cqw 5.5cqw; background: linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 1.1cqw rgba(9, 8, 11, 0), inset 0 0 0 1.2cqw rgba(255, 31, 143, .0); }
.tile__cert::after { content: ""; position: absolute; inset: 1.3cqw; border-radius: 2.4cqw; border: 1px solid rgba(255, 31, 143, .28); pointer-events: none; }
.tile__kicker { font-size: 2cqw; letter-spacing: .32em; text-transform: uppercase; color: #ffb3d9; }   /* lisible sous le voile de profondeur (impeccable : 1,5:1 avant) */
.tile__big { font-family: var(--serif); font-size: 7.2cqw; line-height: 1; margin-top: 1.6cqw; text-wrap: balance; }
.tile__big em { color: var(--rose-soft); }
.tile__sub { margin-top: 2.6cqw; font-size: 2.4cqw; letter-spacing: .06em; color: rgba(247, 242, 245, .6); }
.tile__cert .qr { width: 21cqw; height: 21cqw; border-radius: 2cqw; background: #fff; }
/* tuile 02 : pochettes de playlists (2×2, 2×3 ouverte) + bloc certificat compact ; en carte ouverte le bloc s'agrandit */
.tile__cat2 { position: absolute; inset: 4.5cqw; display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.4cqw; }
.tile__cat2 .tile__covers { position: static; inset: auto; gap: 2cqw; }
.tile__cat2 .tile__cert { position: static; inset: auto; grid-template-columns: 1fr; justify-items: start; align-content: end; text-align: left; gap: 2cqw; padding: 0 0 1cqw 1cqw; background: none; box-shadow: none; border-radius: 0; }   /* pas de sous-carte : le certificat est un objet posé sur la surface */
.tile__cat2 .tile__cert::after { display: none; }
.tile__cat2 .tile__kicker { display: none; }
.tile__cat2 .tile__big { font-size: 5.6cqw; margin-top: 0; line-height: .98; }
.tile__cat2 .tile__sub { margin-top: 0; font-size: 2.2cqw; letter-spacing: .02em; color: rgba(247, 242, 245, .7); max-width: 24cqw; line-height: 1.35; }
.tile__cat2 .tile__sub-more { display: none; }
.tile__cat2 .tile__cert .qr { width: 14cqw; height: 14cqw; border-radius: 1.2cqw; padding: .9cqw; background: #fff; box-shadow: 0 1.2cqw 2.4cqw -1cqw rgba(0, 0, 0, .55); order: -1; margin-bottom: 1.4cqw; }   /* un petit badge imprimé, une ombre portée douce décalée */
.card.is-open .tile__cat2 { grid-template-columns: 2fr 1fr; gap: 4cqw; }
.card.is-open .tile__cat2 .tile__covers { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1.4cqw; }
.card.is-open .tile__cat2 .tile__kicker { display: none; }
.card.is-open .tile__cat2 .tile__big { font-size: 6cqw; }
.card.is-open .tile__cat2 .tile__sub-more { display: inline; }
.card.is-open .tile__cat2 .tile__cert .qr { width: 13cqw; height: 13cqw; }   /* ≈ 90 px à l'écran */
/* tuile 05 : références clients (logos blancs en constellation, couleur sur cases claires en carte ouverte) + badges stores en petit */
.tile__clients { position: absolute; inset: 4.5cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5cqw; }
.card.is-open .tile__clients { align-items: flex-start; justify-content: flex-start; gap: 3.2cqw; }
.tile__clients-cap { display: none; font-family: var(--serif); font-style: italic; font-size: 6.2cqw; line-height: 1; color: #fff; margin: .6cqw 0 .4cqw; }
.tile__clients-cap em { color: var(--rose-soft); }
.tile__logos { display: flex; align-items: center; justify-content: space-evenly; width: 100%; gap: 4cqw; margin: 0; padding: 0; list-style: none; }
.tile__logos li { display: flex; align-items: center; justify-content: center; }
.tile__logos img { display: block; width: auto; max-width: 100%; object-fit: contain; }   /* jamais étiré si la case rétrécit (ibis : 1,2 % mesuré) */
.tile__logos .logo--blanc { height: 12cqw; opacity: .9; }
.tile__logos .logo--couleur { display: none; height: 7.3cqw; }
/* hauteur optique homogène : Cyril Bazin porte une signature sous le bloc, Burger King est plus haut que large, ibis est très large */
.tile__logos li:nth-child(1) .logo--blanc { height: 15cqw; }
.tile__logos li:nth-child(2) .logo--blanc { height: 13.5cqw; }
.tile__logos li:nth-child(3) .logo--blanc { height: 11cqw; }
.card.is-open .tile__logos li:nth-child(1) .logo--couleur { height: 8.4cqw; }
.card.is-open .tile__logos li:nth-child(2) .logo--couleur { height: 8.2cqw; }
.card.is-open .tile__logos li:nth-child(3) .logo--couleur { height: 8.2cqw; }
.tile__clients .tile__stores--small { position: static; inset: auto; flex-direction: row; gap: 2.6cqw; }
.tile__clients .tile__stores--small img, .tile__clients .tile__stores--small .tile__web { height: 8cqw; }
.tile__clients .tile__stores--small .tile__web { font-size: 2.8cqw; padding: 0 3cqw; }
.tile__clients .tile__stores--small .tile__web svg { width: 3.4cqw; height: 3.4cqw; }
.card.is-open .tile__clients-cap { display: block; }
.card.is-open .tile__logos { gap: 0; justify-content: space-between; background: #f6f3ee; border-radius: 2cqw; padding: 3.2cqw 5cqw; }   /* un seul bandeau clair continu, les logos séparés par de l'espace */
.card.is-open .tile__logos li { background: none; border-radius: 0; padding: 0; flex: 0 0 auto; }
.card.is-open .tile__logos .logo--blanc { display: none; }
.card.is-open .tile__logos .logo--couleur { display: block; }
.card.is-open .tile__clients .tile__stores--small { margin-top: auto; justify-content: flex-start; width: 100%; opacity: .85; }   /* note de bas de carte, alignée à gauche */
.card.is-open .tile__clients .tile__stores--small img, .card.is-open .tile__clients .tile__stores--small .tile__web { height: 3.9cqw; }   /* ≈ 28 px à l'écran */
.card.is-open .tile__clients .tile__stores--small .tile__web { font-size: 1.5cqw; padding: 0 1.6cqw; }
.card.is-open .tile__clients .tile__stores--small .tile__web svg { width: 1.8cqw; height: 1.8cqw; }
/* 03 : programmation, 3 lignes */
.tile__sched { position: absolute; inset: 4.5cqw; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 2cqw; margin: 0; padding: 0; list-style: none; }
.tile__sched li { display: grid; grid-template-columns: 11cqw 12cqw 1fr auto; align-items: center; gap: 3cqw; padding: 0 3cqw 0 3.4cqw; border-radius: 3cqw; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.tile__sched time { font-size: 3cqw; color: rgba(247, 242, 245, .6); font-variant-numeric: tabular-nums; }
.tile__sched img { width: 12cqw; height: 12cqw; border-radius: 2.4cqw; object-fit: cover; }
.tile__sched span { font-size: 3.6cqw; font-weight: 500; letter-spacing: -.005em; }
.tile__sched i { font-style: normal; font-size: 2.1cqw; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #b80d64; padding: 1.1cqw 2.2cqw; border-radius: 999px; }
.tile__sched li.is-now { background: linear-gradient(90deg, rgba(255, 31, 143, .22), rgba(255, 31, 143, .06)); box-shadow: inset 0 0 0 1px rgba(255, 31, 143, .38); }
.tile__sched li.is-now time { color: #ffb3d6; }
/* 04 : lecteur */
.tile__np { position: absolute; inset: 4.5cqw; display: grid; grid-template-columns: 38% minmax(0, 1fr); column-gap: 4.5cqw; align-items: center; }
.tile__np .np__art { width: 100%; aspect-ratio: 1; border-radius: 3.4cqw; object-fit: cover; box-shadow: 0 3cqw 6cqw -3cqw rgba(0, 0, 0, .9); }
.tile__np .np__title { margin: 0; text-align: left; font-family: var(--serif); font-style: italic; font-size: 6.2cqw; line-height: 1.02; }
.tile__np .np__artist { margin-top: 1cqw; text-align: left; font-size: 2.6cqw; color: rgba(247, 242, 245, .55); }
.tile__np .np__wave { height: 6cqw; margin-top: 2.6cqw; }
.tile__np .np__bar { height: .6cqw; margin-top: 1.6cqw; border-radius: 1cqw; }
.tile__np .np__times { font-size: 2.1cqw; margin-top: 1.2cqw; }
.tile__np .np__ctrl { justify-content: flex-start; gap: 5cqw; margin-top: 2cqw; }
.tile__np .np__ctrl > svg { width: 4.2cqw; height: 4.2cqw; }
.tile__np .np__pause { width: 10cqw; height: 10cqw; }
.tile__np .np__pause svg { width: 4.2cqw; height: 4.2cqw; }
/* 05 : badges */
.tile__stores { position: absolute; inset: 4.5cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqw; }
.tile__stores img { height: 12.5cqw; width: auto; }
.tile__web { display: inline-flex; align-items: center; gap: 2.4cqw; height: 12.5cqw; padding: 0 4.6cqw; border-radius: 2.2cqw; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); font: 500 4.2cqw/1 var(--sans); letter-spacing: -.01em; color: #fff; }
.tile__web svg { width: 5cqw; height: 5cqw; fill: none; stroke: #fff; stroke-width: 1.4; }
/* 06 : trois points */
.tile__deal { position: absolute; inset: 4.5cqw; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 2cqw; margin: 0; padding: 0; list-style: none; }
.tile__deal li { display: grid; grid-template-columns: 11cqw 1fr; align-items: center; gap: 3.4cqw; padding: 0 3cqw 0 2.4cqw; border-radius: 3cqw; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.tile__deal i { display: grid; place-items: center; width: 11cqw; height: 11cqw; border-radius: 50%; font: 400 5.4cqw/1 var(--serif); font-style: normal; color: #fff; background: linear-gradient(160deg, rgba(255, 31, 143, .95), rgba(200, 10, 110, .95)); box-shadow: 0 2cqw 4cqw -2cqw rgba(255, 31, 143, .9); }
.tile__deal span { font-size: 3.5cqw; font-weight: 500; line-height: 1.25; letter-spacing: -.005em; }

/* ---------------------------------------------------------------- croix de fermeture d'un chapitre ouvert */
.motion .closex {
  display: grid; place-items: center; position: absolute; left: 0; top: 0; z-index: 14; width: 28px; height: 28px; padding: 0;
  border-radius: 50%; cursor: pointer; color: rgba(255, 255, 255, .8); background: rgba(10, 8, 12, .55); border: 1px solid rgba(255, 255, 255, .12);
  opacity: 0; pointer-events: none; transition: color var(--t-hover) ease, border-color var(--t-hover) ease, background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.closex:active { transform: scale(.92); }
.closex svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.closex:focus-visible { color: var(--rose-soft); border-color: rgba(255, 111, 179, .6); outline: none; }
@media (hover: hover) and (pointer: fine) { .closex:hover { color: var(--rose-soft); border-color: rgba(255, 111, 179, .6); } }
.closex.is-on { pointer-events: auto; }
@media (hover: none) and (pointer: coarse) { .motion .closex { width: 32px; height: 32px; } .closex svg { width: 15px; height: 15px; } }

/* ---------------------------------------------------------------- écran de l'app : personnalisation partenaire (coordonnées 1240×836) */
.sp, .pg { position: absolute; inset: 0; pointer-events: none; }
.sp[hidden] { display: none; }
.sp__art { position: absolute; left: 927px; top: 124px; width: 260px; height: 260px; border-radius: 25px; overflow: hidden; display: grid; place-items: center; background: #f6f3ee; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); }
.sp__art img { width: 72%; height: 72%; object-fit: contain; }
.sp--dark .sp__art { background: #17131a; }
.sp__title { position: absolute; left: 895px; width: 324px; top: 402px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1.05; color: #ffd6e8; background: #312217; box-shadow: 0 0 10px 8px #312217; }
.sp__artist { position: absolute; left: 895px; width: 324px; top: 441px; text-align: center; font: 400 12.5px/1.2 var(--sans); color: #e6ddd8; background: #2f2117; box-shadow: 0 0 8px 6px #2f2117; }
.sp__word { position: absolute; left: 905px; width: 304px; top: 598px; height: 48px; display: grid; place-items: center; text-align: center; padding: 0 10px; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.25; color: #f3ebe8; background: #120e0c; box-shadow: 0 0 10px 8px #120e0c; text-wrap: balance; }
.sp__mini { position: absolute; left: 13px; top: 759px; width: 58px; height: 58px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; background: #f6f3ee; }
.sp__mini img { width: 74%; height: 74%; object-fit: contain; }
.sp--dark .sp__mini { background: #17131a; }
.sp__mini-title { position: absolute; left: 80px; top: 766px; width: 150px; font: 600 12px/1.2 var(--sans); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #181818; box-shadow: 0 0 6px 5px #181818; }
.sp__mini-artist { position: absolute; left: 80px; top: 784px; width: 150px; font: 400 10px/1.2 var(--sans); color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #181818; box-shadow: 0 0 6px 5px #181818; }
/* barre de lecture pilotée par la progression de la présentation */
.pg__time { position: absolute; top: 804px; height: 15px; font: 400 9.5px/15px var(--sans); color: #bdbdbd; font-variant-numeric: tabular-nums; background: #181818; box-shadow: 0 0 6px 5px #181818; }
.pg__time--cur { left: 346px; width: 32px; text-align: right; }
.pg__track { position: absolute; left: 394px; top: 809px; width: 452px; height: 7px; border-radius: 4px; background: #181818; box-shadow: 0 0 4px 3px #181818; }
.pg__track::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 3px; border-radius: 2px; background: #3a3a3a; }
.pg__fill { position: absolute; left: 0; top: 2px; height: 3px; width: 100%; border-radius: 2px; background: var(--rose); transform-origin: 0 50%; transform: scaleX(0); }
.pg__knob { position: absolute; left: -5px; top: -1.5px; width: 10px; height: 10px; border-radius: 50%; background: #ff5aa9; box-shadow: 0 0 0 2px rgba(255, 31, 143, .25); transform: translateX(0); }
.pg__btn { position: absolute; left: 599px; top: 756px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ff5aa9, #ff1f8f 60%, #d90f78); }
.pg__btn svg { width: 18px; height: 18px; }
.pg__play { fill: #fff; margin-left: 2px; }
.pg__pause { display: none; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.pg--playing .pg__play { display: none; } .pg--playing .pg__pause { display: block; }
/* tuile 04 : boîte de pochette (logo partenaire possible) */
.np__artbox { width: 100%; aspect-ratio: 1; border-radius: 3.4cqw; overflow: hidden; display: grid; place-items: center; box-shadow: 0 3cqw 6cqw -3cqw rgba(0, 0, 0, .9); }
.np__artbox .np__art { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.np__artbox.is-logo { background: #f6f3ee; } .np__artbox.is-logo.is-dark { background: #17131a; }
.np__artbox.is-logo .np__art { width: 72%; height: 72%; object-fit: contain; }
/* fin : ligne partenaire */
.endcard__for { margin-top: clamp(24px, 4vh, 40px); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 242, 245, .66); }
.endcard__for[hidden] { display: none; }
/* état pause réel sur les boutons roses des lecteurs (tuile 04, mini) */
.np__pause.is-paused svg { display: none; }
.np__pause.is-paused::after { content: ""; width: 0; height: 0; margin-left: 15%; border-style: solid; border-width: 22% 0 22% 36%; border-color: transparent transparent transparent #fff; }

/* ---------------------------------------------------------------- bras de liaison (constellation -> éléments de l'app) */
.arms { display: none; }
.motion .arms { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 11; pointer-events: none; overflow: visible; }
.arm path { fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.arm path.beam { stroke: #ff8cc4; stroke-width: 1.6; opacity: 0; animation: beamflow 3.6s steps(72) infinite paused; }   /* 20 pas/s : 1 repeinture du calque SVG sur 3 au lieu de chaque image */   /* tracing beam : segment rose clair qui parcourt le bras tracé (animation CSS, 0 JS par image) */
.arm path.beam.is-on { opacity: .85; animation-play-state: running; }
@keyframes beamflow { from { stroke-dashoffset: var(--b0, 0); } to { stroke-dashoffset: var(--b1, 0); } }
.arm circle.dot { fill: var(--rose); stroke: #fff; stroke-width: 1; paint-order: stroke; }
.arm circle.halo { fill: none; stroke: var(--rose); stroke-width: 1; opacity: .35; }

/* ---------------------------------------------------------------- panneau de réglage (?tune=1) */
.tune { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 240px; padding: 12px 14px 10px; border-radius: 14px; color: #fff;
  background: rgba(10, 8, 12, .78); border: 1px solid rgba(255, 255, 255, .12); font: 400 11.5px/1.3 var(--sans); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tune h4 { margin: 0 0 6px; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rose-soft); }
.tune h4 + h4 { margin-top: 10px; }
.tune label { display: grid; grid-template-columns: 1fr 40px; align-items: center; gap: 6px; margin: 4px 0; color: rgba(255, 255, 255, .85); }
.tune label span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .6); }
.tune input[type=range] { grid-column: 1 / -1; width: 100%; height: 18px; margin: 0; accent-color: var(--rose); }
.tune button { margin-top: 8px; width: 100%; height: 28px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 31, 143, .22); color: #fff; font: 500 11.5px/1 var(--sans); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .tune button:hover { background: rgba(255, 31, 143, .4); } }

/* animations du hero gelées dès qu'il est invisible ; indicateur gelé tant qu'il n'est pas affiché (zéro layout pendant la plongée) */
.hero.is-off .chev svg, .hero.is-off .playbtn__icon::after, .hero.is-off .playbtn::before, .hero.is-off .hero__hint i::after { animation-play-state: paused; }
.autohint:not(.is-on) i::after { animation-play-state: paused; }

/* transition en petits cubes (WebGL) : couvre exactement l'écran de l'app, sous l'écran de démarrage */
.cubes { position: absolute; left: 0; top: 0; width: 1240px; height: 836px; opacity: 0; pointer-events: none; }

/* allumage : deux lueurs additives douces (comptoir, caméra) — opacité seule animée */
.lightglow { display: none; }
.motion .lightglow { display: block; position: absolute; left: 0; top: 0; z-index: 9; pointer-events: none; opacity: 0; transform-origin: 0 0; will-change: opacity; }
.motion .lightglow--counter { width: 900px; height: 360px; background: radial-gradient(50% 50% at 50% 30%, rgba(255, 170, 215, .55), rgba(255, 90, 170, .18) 45%, rgba(255, 31, 143, 0) 72%); }
.motion .lightglow--cam { width: 1400px; height: 1000px; background: radial-gradient(50% 50% at 50% 50%, rgba(255, 200, 230, .28), rgba(255, 120, 190, .10) 40%, rgba(255, 31, 143, 0) 70%); }

@media (prefers-reduced-motion: reduce) {
  .playbtn, .sound, .closex, .tag__text, .btn, .rail button span, .rail button i, .topbar__brand { transition-duration: 1ms; }
}


/* =====================================================================
   REFONTE DES CARTES — direction « keynote Apple » (18/10) : une seule surface sombre unie, un liseré fin,
   une ombre portée douce et décalée, aucun glow, aucune sous-carte ; General Sans 15/17/22 (à l'écran, carte ouverte),
   blanc 92 % / 60 % ; le serif italique seulement pour « Ils diffusent Melodiza » et le titre du certificat.
   Unités : cqw = % de la largeur de la tuile (240 px) ; la carte ouverte est agrandie ×3 → 2.1cqw ≈ 15 px, 2.4cqw ≈ 17 px, 3.05cqw ≈ 22 px.
   ===================================================================== */
.motion .layer .card .card__glass, .tile .card__glass {
  background: rgba(20, 18, 22, .92); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
  transition: transform 180ms var(--ease-out);
}
.motion .card__glass::before, .tile .card__glass::before { display: none; }
.card__rim { box-shadow: inset 0 0 0 1px rgba(255, 31, 143, .6); }                          /* liseré rose : survol / sélection seulement */
.motion .layer .card.is-open .card__rim { opacity: 0 !important; }                            /* la carte ouverte ne porte pas de liseré rose permanent */
@media (hover: hover) and (pointer: fine) { .motion .layer .card.is-clickable:hover .card__glass { transform: translateY(-4px); } }
.motion .layer .card.is-clickable:active .card__glass { transform: scale(.98); }
.tile, .tile .card__glass, .tile * { font-family: var(--sans); }
.tile .card__glass { color: rgba(255, 255, 255, .92); letter-spacing: -.01em; }
/* --- 02 : pochettes 3×2 (2×2 en constellation), le certificat = un petit ticket clair DANS la grille */
.tile__covers--cat2 { position: absolute; inset: 4.5cqw; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2cqw; }
.tile__covers--cat2 img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; border-radius: 2.6cqw; filter: brightness(.92); }
.tile__covers--cat2 img:nth-child(n+4) { display: none; }
.card.is-open .tile__covers--cat2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6cqw; }
.card.is-open .tile__covers--cat2 img:nth-child(n+4) { display: block; }
.tile__ticket { display: grid; align-content: center; justify-items: center; gap: .9cqw; padding: 1.6cqw; border-radius: 2.6cqw; background: #f6f3ee; color: #141216; text-align: center; }
.tile__ticket .qr { width: 10cqw; height: 10cqw; border-radius: .8cqw; background: #fff; }   /* ≈ 72 px dans la carte ouverte */
.tile__ticket-t { margin: .6cqw 0 0; font-family: var(--serif); font-style: italic; font-size: 2.4cqw; line-height: 1; letter-spacing: -.005em; }
.tile__ticket-t em { color: #d41277; font-style: italic; }
.tile__ticket-s { margin: 0; font-size: 1.5cqw; letter-spacing: .02em; color: rgba(20, 18, 22, .6); }
/* --- 03 : trois lignes épurées (heure, vignette, ambiance), filets 1 px blanc 8 % */
.tile__sched { gap: 0; }
.tile__sched li, .tile__sched li.is-now { grid-template-columns: 7cqw 5cqw 1fr auto; gap: 2.6cqw; padding: 0 .6cqw; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tile__sched li:last-child { border-bottom: 0; }
.tile__sched time, .tile__sched li.is-now time { font-size: 2.1cqw; color: rgba(255, 255, 255, .6); }
.tile__sched img { width: 5cqw; height: 5cqw; border-radius: 1.2cqw; }                        /* vignette ≈ 36 px */
.tile__sched span { font-size: 2.4cqw; font-weight: 500; letter-spacing: -.01em; color: rgba(255, 255, 255, .92); }
.tile__sched i { font-size: 2.1cqw; letter-spacing: 0; text-transform: none; color: var(--rose); background: none; padding: 0; }
/* --- 04 : le lecteur, centré, seul */
.tile__np { grid-template-columns: 1fr; justify-items: center; text-align: center; column-gap: 0; row-gap: 0; align-content: center; }
.tile__np .np__art { width: 30cqw; box-shadow: 0 3cqw 6cqw -3cqw rgba(0, 0, 0, .7); }
.tile__np .np__title { margin-top: 2.6cqw; text-align: center; font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 3.05cqw; letter-spacing: -.01em; }
.tile__np .np__artist { text-align: center; font-size: 2.1cqw; color: rgba(255, 255, 255, .6); }
.tile__np .np__wave { width: 60cqw; }
.tile__np .np__bar { width: 60cqw; }
.tile__np .np__ctrl { justify-content: center; }
/* --- 05 : badges stores à hauteur optique identique (34 px à l'écran), « Version web » dessiné comme les badges officiels */
.tile__clients .tile__stores--small { align-items: center; gap: 1.4cqw; }
.card.is-open .tile__clients .tile__stores--small img, .card.is-open .tile__clients .tile__stores--small .tile__web { height: 4.7cqw; }
.tile__web { gap: 1.2cqw; padding: 0 1.8cqw 0 1.5cqw; border-radius: .9cqw; background: #000; box-shadow: inset 0 0 0 .14cqw #a6a6a6; font: 500 1.6cqw/1 var(--sans); letter-spacing: 0; color: #fff; box-sizing: border-box; }
.tile__web svg { width: 2.4cqw; height: 2.4cqw; stroke-width: 1.5; }
.tile__web-t { display: grid; line-height: 1.05; text-align: left; }
.tile__web-t small { font-size: .95cqw; letter-spacing: .02em; font-weight: 400; color: rgba(255, 255, 255, .92); }
.tile__web-t b { font-size: 1.75cqw; font-weight: 500; letter-spacing: -.01em; }
.card.is-open .tile__clients .tile__stores--small .tile__web { font-size: 1.6cqw; padding: 0 1.8cqw 0 1.5cqw; }
.card.is-open .tile__clients .tile__stores--small .tile__web svg { width: 2.4cqw; height: 2.4cqw; }
.card.is-open .tile__logos { padding: 3cqw 5cqw; border-radius: 2.6cqw; }
.card.is-open .tile__clients-cap { font-size: 3.05cqw; margin: 0 0 .4cqw; }
/* --- 06 : trois puces sobres : numéro rose 15 px, texte 17 px, filets, sans pastilles */
.tile__deal { gap: 0; }
.tile__deal li { grid-template-columns: 4cqw 1fr; gap: 2cqw; padding: 0 .6cqw; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tile__deal li:last-child { border-bottom: 0; }
.tile__deal i { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; font: 500 2.1cqw/1 var(--sans); color: var(--rose); place-items: start; }
.tile__deal span { font-size: 2.4cqw; font-weight: 500; letter-spacing: -.01em; color: rgba(255, 255, 255, .92); }
/* --- mobile : marges 24 px (carte ouverte ×~1.5 : 4.5cqw ≈ 16 px → 6.5cqw ≈ 24 px) */
@media (max-width: 860px) { .card.is-open .tile__covers, .card.is-open .tile__sched, .card.is-open .tile__np, .card.is-open .tile__clients, .card.is-open .tile__deal, .card.is-open .tile__covers--cat2 { inset: 6.5cqw; } }

/* --- 03 / 06 : lignes de hauteur fixe, bloc centré (plus de rangées étirées sur toute la hauteur) */
.tile__sched, .tile__deal { grid-template-rows: none; grid-auto-rows: 11cqw; align-content: center; }
.card.is-open .tile__sched, .card.is-open .tile__deal { grid-auto-rows: 10.5cqw; }
/* --- 04 : la pochette (ou le logo partenaire) reste bornée, le lecteur en une colonne centrée */
.tile__np .np__artbox { width: 30cqw; height: 30cqw; flex: none; align-self: center; }
.tile__np .np__artbox .np__art { width: 100%; height: 100%; }
.tile__np .tile__np-body { width: 100%; display: grid; justify-items: center; }


/* =====================================================================
   VISUELS VIVANTS DES CARTES (direction validée 18/10) — tout en transform / opacité, animations CSS en pause
   hors carte ouverte (et figées en reduced-motion) ; un seul objet par carte.
   ===================================================================== */
@property --fan { syntax: '<number>'; inherits: true; initial-value: .45; }
/* --- 01 : une photo plein cadre, noir et blanc profond + lumière chaude ; 4 lieux en fondu croisé de 6 s quand la carte est ouverte */
.tile__photo { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.tile__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: photoCycle 24s linear infinite paused; animation-delay: calc(var(--i) * -6s); }
.tile__photo img:first-child { opacity: 1; }
.card.is-open .tile__photo img { animation-play-state: running; }
.card.is-open .tile__photo img:first-child { opacity: 0; }
@keyframes photoCycle { 0% { opacity: 1; } 21% { opacity: 1; } 25.5% { opacity: 0; } 95.5% { opacity: 0; } 100% { opacity: 1; } }
/* --- 02 : éventail de pochettes qui se déploie à l'ouverture et avance d'une pochette toutes les 3 s ; ticket en bas à droite */
.tile__fan { position: absolute; inset: 4.5cqw; --fan: .45; transition: --fan .6s var(--ease-out); }
.card.is-open .tile__fan { --fan: 1; }
.fan { position: absolute; left: 2cqw; top: 6cqw; width: 42cqw; height: 42cqw; perspective: 900px; transform-style: preserve-3d; }
.fan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2.6cqw; filter: brightness(.95); box-shadow: 0 2cqw 4cqw -2cqw rgba(0, 0, 0, .7); transform-origin: 20% 90%;
  animation: fanCycle 18s linear infinite paused; animation-delay: calc(((6 - var(--i)) * -3s)); transition: transform .6s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.card.is-open .fan img { animation-play-state: running; }
@keyframes fanCycle {
  0%    { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; }
  16.6% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; }
  17.6% { opacity: .2; }
  19.4% { transform: translate3d(calc(5 * 14px * var(--fan)), calc(5 * -4px * var(--fan)), -150px) rotate(calc(5 * 5deg * var(--fan))) scale(.825); opacity: .5; }
  33.3% { transform: translate3d(calc(5 * 14px * var(--fan)), calc(5 * -4px * var(--fan)), -150px) rotate(calc(5 * 5deg * var(--fan))) scale(.825); opacity: .5; }
  36.1% { transform: translate3d(calc(4 * 14px * var(--fan)), calc(4 * -4px * var(--fan)), -120px) rotate(calc(4 * 5deg * var(--fan))) scale(.86); opacity: .6; }
  50%   { transform: translate3d(calc(4 * 14px * var(--fan)), calc(4 * -4px * var(--fan)), -120px) rotate(calc(4 * 5deg * var(--fan))) scale(.86); opacity: .6; }
  52.8% { transform: translate3d(calc(3 * 14px * var(--fan)), calc(3 * -4px * var(--fan)), -90px) rotate(calc(3 * 5deg * var(--fan))) scale(.895); opacity: .7; }
  66.6% { transform: translate3d(calc(3 * 14px * var(--fan)), calc(3 * -4px * var(--fan)), -90px) rotate(calc(3 * 5deg * var(--fan))) scale(.895); opacity: .7; }
  69.4% { transform: translate3d(calc(2 * 14px * var(--fan)), calc(2 * -4px * var(--fan)), -60px) rotate(calc(2 * 5deg * var(--fan))) scale(.93); opacity: .8; }
  83.3% { transform: translate3d(calc(2 * 14px * var(--fan)), calc(2 * -4px * var(--fan)), -60px) rotate(calc(2 * 5deg * var(--fan))) scale(.93); opacity: .8; }
  86.1% { transform: translate3d(calc(1 * 14px * var(--fan)), calc(1 * -4px * var(--fan)), -30px) rotate(calc(1 * 5deg * var(--fan))) scale(.965); opacity: .9; }
  97.2% { transform: translate3d(calc(1 * 14px * var(--fan)), calc(1 * -4px * var(--fan)), -30px) rotate(calc(1 * 5deg * var(--fan))) scale(.965); opacity: .9; }
  100%  { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; }
}
.tile__fan .tile__ticket { position: absolute; right: 0; bottom: 0; width: 26cqw; padding: 1.8cqw; }
.tile__fan .tile__ticket .qr { width: 10cqw; height: 10cqw; }
/* --- 03 : frise de la journée (8 h → minuit), point rose qui avance lentement (24 s = la journée), étiquette qui suit ; constellation = point au milieu, figé */
.tile__day { position: absolute; inset: 4.5cqw; --track: calc(100cqw - 9cqw); }
.day__line { position: absolute; left: 0; right: 0; top: 56%; height: 1px; background: rgba(255, 255, 255, .25); }
.day__mark { position: absolute; top: 56%; left: calc(var(--p) * 100%); transform: translate(-50%, 0); width: 0; }
.day__mark::before { content: ""; position: absolute; left: 0; top: -1.6cqw; width: 1px; height: 3.2cqw; background: rgba(255, 255, 255, .6); transform: translateX(-.5px); }
.day__mark time { position: absolute; left: 0; top: -6.4cqw; transform: translateX(-50%); font-size: 2.1cqw; color: rgba(255, 255, 255, .6); white-space: nowrap; font-variant-numeric: tabular-nums; }
.day__mark b { position: absolute; left: 0; top: 3cqw; transform: translateX(-50%); font-size: 2.1cqw; font-weight: 500; color: rgba(255, 255, 255, .92); white-space: nowrap; }
.day__end { position: absolute; top: calc(56% + 3cqw); font-size: 2.1cqw; color: rgba(255, 255, 255, .6); }
.day__end--a { left: 0; } .day__end--b { right: 0; }
.day__dot { position: absolute; left: 0; top: 56%; width: 2.6cqw; height: 2.6cqw; margin: -1.3cqw 0 0 -1.3cqw; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 .8cqw rgba(255, 31, 143, .18);
  animation: dayRun 24s linear infinite paused; animation-delay: -12s; }
.card.is-open .day__dot { animation-play-state: running; }
@keyframes dayRun { from { transform: translateX(0); } to { transform: translateX(var(--track)); } }
.day__now { position: absolute; left: 50%; bottom: 3.4cqw; transform: translateX(-50%); white-space: nowrap; font-size: 2.1cqw; color: var(--rose); font-weight: 500; }
.day__now i { position: absolute; left: 50%; transform: translateX(-50%); font-style: normal; opacity: 0; animation: dayLabel 24s linear infinite paused; animation-delay: -12s; }
.card.is-open .day__now i { animation-play-state: running; }
.day__now i:nth-child(1) { animation-name: dayLabelA; } .day__now i:nth-child(2) { animation-name: dayLabelB; } .day__now i:nth-child(3) { animation-name: dayLabelC; }
@keyframes dayLabelA { 0% { opacity: 1; } 24% { opacity: 1; } 26% { opacity: 0; } 100% { opacity: 0; } }
@keyframes dayLabelB { 0% { opacity: 0; } 24% { opacity: 0; } 26% { opacity: 1; } 74% { opacity: 1; } 76% { opacity: 0; } 100% { opacity: 0; } }
@keyframes dayLabelC { 0% { opacity: 0; } 74% { opacity: 0; } 76% { opacity: 1; } 100% { opacity: 1; } }
.tile:not(.is-open) .day__mark b, .tile:not(.is-open) .day__end { opacity: 0; }   /* constellation : version réduite (ligne, repères, point au milieu) */
@media (prefers-reduced-motion: reduce) { .tile__photo img, .fan img, .day__dot, .day__now i { animation-play-state: paused !important; } }
/* --- 04 : le lecteur seul ; le bouton lecture/pause est vrai */
.tile__np .np__pause { cursor: pointer; pointer-events: auto; }

/* --- retouches (critique r2) : frise lisible, éventail sans raster par image, lecteur dans sa carte */
.day__mark time { top: 3cqw; transform: translateX(-50%); }
.day__end { top: calc(56% + 3cqw); }
.day__end--a { transform: translateX(0); } .day__end--b { transform: translateX(0); }
.day__now { bottom: 3.2cqw; font-size: 2.4cqw; }
.tile:not(.is-open) .day__end { opacity: 1; }
.fan img { filter: none; box-shadow: none; will-change: transform, opacity; }                  /* aucune repeinture : les couches sont composées et seulement transformées */
.fan img::after { display: none; }
.tile__np { inset: 5cqw 4.5cqw; }
.tile__np .np__pause { width: 8cqw; height: 8cqw; }
.tile__np .np__ctrl { margin-top: 1.4cqw; }

/* ===== Préchargement (18/10) : icône + halo rose qui respire + anneau fin de progression, sur le poster du ciel ===== */
.preload { display: none; }
.motion .preload { position: absolute; inset: 0; z-index: 45; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-out); }
.motion .preload.is-sky { opacity: 1; }   /* l'icône n'apparaît que sur le ciel déjà peint, jamais sur du noir */
.preload__fig { position: relative; display: grid; place-items: center; width: 168px; height: 168px; }
.preload__halo { position: absolute; inset: -46px; border-radius: 50%; opacity: .22;
  background: radial-gradient(circle, rgba(255, 40, 150, .62) 0%, rgba(255, 31, 143, .24) 36%, rgba(255, 31, 143, 0) 66%); }
.preload__halo i { position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: preBreath 2.6s ease-in-out infinite; will-change: transform, opacity; }
@keyframes preBreath { 0%, 100% { transform: scale(.86); opacity: .55; } 50% { transform: scale(1.06); opacity: 1; } }
.preload.is-done .preload__halo i { animation: none; transform: scale(1); opacity: .9; transition: transform .5s var(--ease-out), opacity .5s var(--ease-out); }
.preload__mark { position: relative; width: 84px; height: 84px; transform-origin: 50% 50%; }
.preload__icon { position: absolute; inset: 0; width: 84px; height: 84px; border-radius: 20px; filter: drop-shadow(0 8px 26px rgba(255, 31, 143, .35)); transition: opacity .35s var(--ease-out); }
.preload__3d { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; opacity: 0; transition: opacity .35s var(--ease-out); }
.preload__mark.is-3d .preload__3d { opacity: 1; }
.preload__mark.is-3d .preload__icon { opacity: 0; }
/* barre de progression : 2 px, rose, coins arrondis, fond blanc 10 % ; avance avec la progression réelle */
.preload__bar { position: absolute; left: 50%; top: calc(50% + 78px); width: 220px; height: 2px; margin-left: -110px; border-radius: 1px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.preload__bar i { display: block; width: 100%; height: 100%; border-radius: 1px; background: var(--rose); transform: scaleX(0); transform-origin: 0 50%; }
.preload__slow { position: absolute; left: 0; right: 0; top: calc(50% + 96px); margin: 0; text-align: center; font: 400 14px/1.4 var(--sans); letter-spacing: .01em; color: rgba(255, 255, 255, .72); opacity: 0; transition: opacity .8s var(--ease-out); }
.preload__slow.is-on { opacity: 1; }
.preload.is-done .preload__bar, .preload.is-done .preload__slow { opacity: 0; transition: opacity .6s var(--ease-out) .25s; }
.preload.is-done .preload__halo { opacity: 0 !important; transition: opacity .9s var(--ease-out) .35s; }
.motion .preload.is-gone { opacity: 0; }
@media (max-width: 600px) { .preload__fig { width: 136px; height: 136px; } .preload__mark { width: 68px; height: 68px; } .preload__icon { width: 68px; height: 68px; border-radius: 16px; } .preload__3d { width: 107px; height: 107px; margin: -53.5px 0 0 -53.5px; } .preload__bar { top: calc(50% + 66px); width: 180px; margin-left: -90px; } .preload__slow { top: calc(50% + 82px); } }
/* pendant le préchargement : seul le ciel et l'icône ; le play n'existe pas */
html.is-preloading .hero__word > *, html.is-preloading .hero__lead, html.is-preloading .hero__play, html.is-preloading .hero__hint,
html.is-preloading .topbar, html.is-preloading .rail, html.is-preloading .mprogress { opacity: 0; }
html.is-preloading .hero__play, html.is-preloading .topbar, html.is-preloading .rail { visibility: hidden; pointer-events: none; }
html.is-preloading .hero__word { text-shadow: none; }
/* révélation : mot-symbole, puis slogan, puis play (l'icône arrive par FLIP depuis l'écran de chargement) */
html.is-revealing .hero__icon { opacity: 0; }
html.is-revealing .hero__melo, html.is-revealing .hero__diza, html.is-revealing .hero__bars { transition: opacity .7s var(--ease-out) .45s; }
html.is-revealing .hero__lead { transition: opacity .8s var(--ease-out) .7s; }
html.is-revealing .hero__play { transition: opacity .8s var(--ease-out) 1s; }
html.is-revealing .hero__hint, html.is-revealing .topbar, html.is-revealing .rail, html.is-revealing .mprogress { transition: opacity .8s var(--ease-out) 1.2s; }
@media (prefers-reduced-motion: reduce) { .preload__halo i { animation: none; transform: scale(1); opacity: .8; } }

/* ===== Vignettes de la constellation (19/10, retour d'Arno « miniatures dégueulasses ») =====
   Une vignette n'est PAS la carte ouverte réduite : une composition pour ~230 px, UN élément fort, rien sous 11 px à l'écran.
   Tuile = 640 × 400 unités (1 cqw = 6,4 u) réduite ×0,36 en constellation : 11 px écran ≈ 4,7 cqw, 13 px ≈ 5,6 cqw.
   Fondu croisé avec le contenu complet quand la carte s'ouvre (classe .is-open posée par le script). */
.mini { display: none; }
.motion .tile .mini { display: block; position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; list-style: none; pointer-events: none; opacity: 1; transition: opacity .28s var(--ease-out); }
/* 01 : le lieu le plus chaud (restaurant) plein cadre, N&B + lumière chaude, contraste renforcé à la source (560 × 350 = ×2) */
.mini--cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 5cqw; }
/* 03 : la frise en grand — ligne 2 px, 3 repères (heures 12 px), point rose 10 px avec halo, une seule étiquette 12 px */
.mini--prog .mini__line { position: absolute; left: 8cqw; right: 8cqw; top: 58%; height: .9cqw; margin-top: -.45cqw; border-radius: .45cqw; background: rgba(255, 255, 255, .34); }
.mini__mark { position: absolute; top: 58%; left: calc(8cqw + var(--p) * (100% - 16cqw)); width: .9cqw; height: 5cqw; margin: -2.5cqw 0 0 -.45cqw; background: rgba(255, 255, 255, .55); border-radius: .45cqw; }
.mini__mark time { position: absolute; top: 7cqw; left: 50%; transform: translateX(-50%); font: 500 5.4cqw/1 var(--sans); color: rgba(255, 255, 255, .82); letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mini__dot { position: absolute; top: 58%; left: calc(8cqw + var(--p) * (100% - 16cqw)); width: 4.4cqw; height: 4.4cqw; margin: -2.2cqw 0 0 -2.2cqw; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 1.6cqw rgba(255, 31, 143, .28), 0 0 6cqw 1cqw rgba(255, 31, 143, .55); }
.mini__dot b { position: absolute; bottom: 6.4cqw; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 5.4cqw/1 var(--sans); color: #fff; padding: 1.4cqw 2.4cqw; border-radius: 3cqw; background: rgba(255, 31, 143, .22); border: 1px solid rgba(255, 31, 143, .5); }
/* 04 : la pochette du lecteur en grand (≈ 100 px) + barre de lecture + bouton 24 px, rien d'autre */
.mini--np .np__artbox { position: absolute; top: 6cqw; left: 50%; width: 43cqw; height: 43cqw; margin-left: -21.5cqw; aspect-ratio: auto; }
.mini__np-ctl { position: absolute; left: 50%; bottom: 5.4cqw; width: 70cqw; margin-left: -35cqw; display: flex; align-items: center; gap: 4cqw; }
.mini__bar { flex: 1; height: 1.2cqw; border-radius: .6cqw; background: rgba(255, 255, 255, .22); overflow: hidden; }
.mini__bar span { display: block; width: 38%; height: 100%; background: var(--rose); border-radius: inherit; }
.mini__play { flex: none; width: 10.6cqw; height: 10.6cqw; border-radius: 50%; background: var(--rose); display: grid; place-items: center; box-shadow: 0 2cqw 5cqw -1cqw rgba(255, 31, 143, .6); }
.mini__play svg { width: 5.4cqw; height: 5.4cqw; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
/* 05 : uniquement les 3 logos clients, plus grands (bloc ≈ 36 px), pas de badges */
.mini--device { display: flex !important; align-items: center; justify-content: space-evenly; padding: 0 6cqw !important; }
.mini--device img { display: block; width: auto; object-fit: contain; opacity: .95; }
.mini--device img:nth-child(1) { height: 19.5cqw; } .mini--device img:nth-child(2) { height: 17.5cqw; } .mini--device img:nth-child(3) { height: 14.5cqw; }
/* 06 : pas de phrase : trois puces roses empilées, un mot clé chacune (13-15 px) */
.mini--deal { display: flex !important; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4.2cqw; padding: 0 0 0 20cqw !important; text-align: left; }
.mini--deal li { display: flex; align-items: center; justify-content: flex-start; margin: 0; padding: 0; gap: 4cqw; font: 600 6.6cqw/1 var(--sans); color: #fff; letter-spacing: -.01em; }
.mini--deal li::before { content: ""; flex: none; width: 3.4cqw; height: 3.4cqw; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 1.2cqw rgba(255, 31, 143, .22); }
/* petites tuiles (téléphone, ~135 px : échelle ×0,21) : 11 px écran ≈ 8,2 cqw → heures retirées, étiquette et mots agrandis */
@media (max-width: 600px) {
  .mini__mark time { display: none; }
  .mini__dot b { font-size: 8.6cqw; bottom: 7.4cqw; padding: 1.6cqw 3cqw; }
  .mini--prog .mini__line { top: 66%; } .mini__mark, .mini__dot { top: 66%; }
  .mini--deal { gap: 5cqw; padding-left: 14cqw !important; } .mini--deal li { font-size: 9cqw; } .mini--deal li::before { width: 4.4cqw; height: 4.4cqw; }
}

/* ===== Cartes 03 et 04 : l'app en action (19/10) — composition « feature tour » Apple =====
   1 fenêtre principale (la tuile du chapitre, vidéo de l'app) + 2 secondaires à la même échelle (≈ 48 % de la principale),
   alignées sur les bords haut et bas de la principale, en retrait (Z) derrière elle, recouvrement 15 % de leur largeur.
   Même matériau partout : surface unie, coins 16 px à l'écran, liseré 1 px blanc 8 %, ombre douce. */
.tile__vid { position: absolute; inset: 0; border-radius: 5cqw; overflow: hidden; background: #0b0a0d; }
.tile__vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; transition: opacity .28s var(--ease-out); }
/* vignette (constellation) : variante 480 × 300 recadrée À LA SOURCE sur la zone utile ; carte ouverte : la fenêtre entière (1080p) */
.tile__vid .appvid--mini { z-index: 1; }
.card.is-open .tile__vid .appvid--mini, html:not(.motion) .tile__vid .appvid--mini { opacity: 0; }
.card--win { --cw: 440px; container-type: inline-size; }
.motion .layer .card--win .card__glass, .card--win .card__glass { position: relative; aspect-ratio: 1080 / 754; padding: 0; overflow: hidden; border-radius: 30px;
  background: #0d0b0f; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6); }
.card--win .card__glass::before { display: none; }
.card--win video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.card--player .card__glass { background: rgba(20, 18, 22, .96); }
.card--player .tile__np { inset: 6cqw 6cqw; }
html:not(.motion) .card--win { max-width: 100%; }

/* ===== Carte 02 « Le catalogue » (19/10, retour d'Arno : « on ne comprend pas ce que c'est ») =====
   Chaque pochette se lit comme une PLAYLIST Melodiza, comme la rangée « Playlists pour vous » de l'app : pochette + bouton
   lecture rose, titre (15 px) et ligne secondaire (13 px, 60 %). Carte ouverte ≈ 547 px à 1440 : 1 cqw ≈ 5,5 px. */
.tile__shelf { position: absolute; inset: 0; overflow: hidden; border-radius: 5cqw;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 6cqw, #000 calc(100% - 6cqw), transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 6cqw, #000 calc(100% - 6cqw), transparent 100%); }
.shelf__track { position: absolute; left: 6cqw; top: 50%; display: flex; width: max-content; transform: translate3d(0, -50%, 0);
  animation: shelf 30s linear infinite; animation-play-state: paused; will-change: transform; }
.card.is-open .shelf__track { animation-play-state: running; }
@keyframes shelf { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(-50%, -50%, 0); } }   /* 2 copies identiques : boucle sans couture */
.pl { flex: none; width: 27cqw; margin: 0 4cqw 0 0; }
.pl__art { position: relative; display: block; width: 27cqw; height: 27cqw; border-radius: 2.4cqw; overflow: hidden; box-shadow: 0 2.4cqw 5cqw -2cqw rgba(0, 0, 0, .7); }
.pl__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pl__play { position: absolute; right: 1.8cqw; bottom: 1.8cqw; width: 6.6cqw; height: 6.6cqw; border-radius: 50%; background: var(--rose); box-shadow: 0 1cqw 3cqw -.6cqw rgba(255, 31, 143, .7); }
.pl__play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -1.25cqw 0 0 -.7cqw; border-style: solid; border-width: 1.25cqw 0 1.25cqw 2cqw; border-color: transparent transparent transparent #fff; }
.pl figcaption b { display: block; margin-top: 2.2cqw; font: 600 2.75cqw/1.2 var(--sans); color: #fff; letter-spacing: -.01em; white-space: nowrap; }
.pl figcaption small { display: block; margin-top: .6cqw; font: 400 2.4cqw/1.3 var(--sans); color: rgba(255, 255, 255, .6); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .shelf__track { animation: none; } }
/* vignette 02 : 3 pochettes titrées, lisibles à 230 px (titres ≥ 11 px) */
.mini--cert { display: flex !important; justify-content: center; align-items: flex-start; gap: 4.5cqw; padding: 10cqw 4cqw 0 !important; }
.mini--cert figure { margin: 0; width: 27cqw; }
.mini--cert img { display: block; width: 27cqw; height: 27cqw; border-radius: 2.6cqw; object-fit: cover; box-shadow: 0 2cqw 4cqw -2cqw rgba(0, 0, 0, .7); }
.mini--cert figcaption { margin-top: 2.6cqw; font: 600 5cqw/1.12 var(--sans); color: #fff; text-align: center; letter-spacing: -.01em; }
@media (max-width: 600px) {
  .mini--cert { gap: 7cqw; padding-top: 4cqw !important; } .mini--cert figure { width: 32cqw; } .mini--cert figure:nth-child(3) { display: none; }
  .mini--cert img { width: 32cqw; height: 32cqw; } .mini--cert figcaption { margin-top: 2cqw; font-size: 8.4cqw; line-height: 1.05; }
}
/* fenêtres secondaires de la carte 02 : écran d'accueil de l'app ; certificat de droits (papier clair, QR) */
.win__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card--ticket .card__glass { background: #f6f3ee !important; }
.card--ticket .tile__ticket { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqw; padding: 6cqw; }
.card--ticket .tile__ticket .qr { width: 30cqw; height: 30cqw; border-radius: 2cqw; }
.card--ticket .tile__ticket-t { margin: 1cqw 0 0; font-size: 7.4cqw; color: #1a1418; }
.card--ticket .tile__ticket-s { font-size: 4.8cqw; }

/* ===== Chapitres en MOSAÏQUE (19/10, référence validée : presentation-melodiza-fx/mission-mock/chapitres.html) =====
   Une carte par chapitre = une boîte de mosaïque 460 × 368 (ratio 1,25) centrée dans la tuile 640 × 400 ; valeurs en px du repère
   de la tuile = référence (874 px à 1680) × 0,526. Constellation : la même carte réduite + dégradé bas + titre en gros.
   Carte ouverte : la même carte mise à l'échelle (boîte = 52 % de la largeur), fond transparent, fenêtres flottantes. */
.motion .layer .tile--mosaic .card__glass, .tile--mosaic .card__glass { padding: 0; background: #0b090c; border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.motion .layer .tile--mosaic.is-open .card__glass { background: transparent; box-shadow: none; }
.tile--mosaic .card__veil, .tile--mosaic .card__rim { border-radius: 5cqw; }
.mo { position: absolute; left: 90px; top: 16px; width: 460px; height: 368px; font-family: var(--sans); color: #fff; letter-spacing: 0; }
.mo-win { position: absolute; border-radius: 9.5px; overflow: hidden; background: #141216; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .75), inset 0 0 0 .6px rgba(255, 255, 255, .08); }
.mo-bar { position: absolute; top: 0; left: 0; right: 0; height: 13.7px; display: flex; align-items: center; gap: 3.2px; padding: 0 5.3px; background: rgba(255, 255, 255, .04); font-size: 5.8px; color: rgba(255, 255, 255, .6); z-index: 2; }
.mo-bar i { width: 3.7px; height: 3.7px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mo-media { position: absolute; left: 0; top: 13.7px; width: 100%; height: calc(100% - 13.7px); object-fit: cover; object-position: left top; display: block; }
.mo-pad { padding: 9.5px; }
.mo-h4 { font-size: 6.3px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.mo-num { font-weight: 600; font-size: 20px; letter-spacing: -.02em; line-height: 1.1; }
.mo-sub { font-size: 6.8px; color: rgba(255, 255, 255, .62); margin-top: 1px; line-height: 1.3; }
.mo-chip { display: inline-flex; align-items: center; gap: 3.2px; margin-top: 7.4px; padding: 3.2px 5.3px; border-radius: 999px; background: rgba(255, 31, 143, .14); color: #ff8cc4; font-size: 6.3px; font-weight: 500; }
.mo-chip::before { content: ""; width: 3.2px; height: 3.2px; border-radius: 50%; background: var(--rose); }
.mo-kind { font-size: 4.7px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.mo-phone { position: absolute; aspect-ratio: 9 / 19.5; border-radius: 15.8px; padding: 4.2px; background: #050406; box-shadow: 0 16px 37px -12px rgba(0, 0, 0, .85), inset 0 0 0 .8px rgba(255, 255, 255, .12); }
.mo-screen { position: relative; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 70% at 60% 35%, #2a0f1f 0%, #120a10 60%, #0b080c 100%); }
.mo-notch { position: absolute; top: 4.2px; left: 50%; width: 32%; height: 9.5px; transform: translateX(-50%); border-radius: 5px; background: #050406; z-index: 2; }
.mo-wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.mo-ptxt { position: absolute; left: 10%; right: 10%; bottom: 9%; }
.mo-lieu { font-family: var(--serif); font-style: italic; font-size: 12.6px; line-height: 1.05; margin-top: 1.6px; transition: opacity .45s, transform .55s cubic-bezier(.22, 1, .36, 1); }
.mo-lieu.is-out { opacity: 0; transform: translateY(2.6px); }
/* 02 : playlists titrées qui défilent, accueil, ticket */
.mo-rail { position: absolute; left: 0; top: 24px; display: flex; gap: 8.4px; padding: 0 9.5px; width: max-content; animation: morail 22s linear infinite; animation-play-state: paused; will-change: transform; }
.motion .tile--mosaic .mo-rail { animation-play-state: running; }
@keyframes morail { to { transform: translateX(-50%); } }
.mo-pl { flex: 0 0 79px; } .mo-plc { position: relative; width: 79px; height: 79px; border-radius: 6.3px; overflow: hidden; }
.mo-plc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-plc b { position: absolute; right: 4.2px; bottom: 4.2px; width: 15.8px; height: 15.8px; border-radius: 50%; background: var(--rose); }
.mo-plc b::before { content: ""; position: absolute; left: 6px; top: 4.6px; border-left: 4.7px solid #fff; border-top: 3.2px solid transparent; border-bottom: 3.2px solid transparent; }
.mo-plt { margin-top: 4.7px; font-size: 7.9px; font-weight: 600; white-space: nowrap; } .mo-pls { font-size: 6.3px; color: rgba(255, 255, 255, .55); margin-top: .5px; white-space: nowrap; }
.mo-ticket { background: #f6f3ee; color: #19151a; }
.mo-ti { font-family: var(--serif); font-style: italic; font-size: 12.6px; line-height: 1; margin-top: 3.2px; }
.mo-ts { font-size: 6.3px; color: #6b6168; margin-top: 2px; }
.mo-qr { width: 33.7px; height: 33.7px; margin-top: 6.3px; border-radius: 2px; opacity: .9; background: conic-gradient(from 90deg at 1.6px 1.6px, #19151a 25%, transparent 0) 0 0 / 4.2px 4.2px; }
/* 04 : lecteur dans le téléphone, badges */
.mo-np { position: absolute; inset: 21px 7.4px 9.5px; display: flex; flex-direction: column; align-items: center; }
.mo-np img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7.4px; display: block; }
.mo-npt { font-family: var(--serif); font-style: italic; font-size: 11.6px; margin-top: 7.4px; white-space: nowrap; }
.mo-npa { font-size: 6.3px; color: rgba(255, 255, 255, .6); }
.mo-pr { width: 100%; height: 1.6px; border-radius: 1px; background: rgba(255, 255, 255, .15); margin-top: 8.4px; overflow: hidden; }
.mo-pr i { display: block; height: 100%; width: 40%; background: var(--rose); animation: mopr 12s linear infinite; animation-play-state: paused; }
.motion .tile--mosaic .mo-pr i { animation-play-state: running; }
@keyframes mopr { from { width: 5%; } to { width: 95%; } }
.mo-ctl { display: flex; gap: 11.6px; align-items: center; margin-top: 8.4px; }
.mo-ctl b { position: relative; width: 23px; height: 23px; border-radius: 50%; background: var(--rose); }
.mo-ctl b::before, .mo-ctl b::after { content: ""; position: absolute; top: 7.8px; width: 2.1px; height: 7.4px; background: #fff; border-radius: 1px; }
.mo-ctl b::before { left: 8.4px; } .mo-ctl b::after { right: 8.4px; }
.mo-ctl s { width: 0; height: 0; border-top: 3.7px solid transparent; border-bottom: 3.7px solid transparent; }
.mo-ctl s.p { border-right: 5.3px solid #fff; } .mo-ctl s.n { border-left: 5.3px solid #fff; }
.mo-badges { display: flex; flex-wrap: wrap; gap: 5.3px; margin-top: 6.3px; }
.mo-badges img, .mo-web { height: 17.9px; width: auto; display: block; }
.mo-web { display: inline-flex; align-items: center; gap: 4.2px; padding: 0 6.3px; border-radius: 3.7px; border: .6px solid #8a8a8a; background: #000; font-size: 6.8px; font-weight: 500; }
.mo-web svg { width: 8px; height: 8px; fill: none; stroke: #fff; stroke-width: 1.6; }
/* 05 : logos clients, cartes métier */
.mo-logos { background: #0d0b0e; }
.mo-marq { position: absolute; inset: 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.mo-track { position: absolute; left: 0; top: 50%; display: flex; align-items: center; gap: 42px; padding-right: 42px; width: max-content; transform: translate3d(0, -50%, 0); animation: momarq 26s linear infinite; animation-play-state: paused; will-change: transform; }
.motion .tile--mosaic .mo-track { animation-play-state: running; }
@keyframes momarq { to { transform: translate3d(-50%, -50%, 0); } }   /* piste dupliquée : boucle continue */
.mo-track img { display: block; height: calc(39px * var(--h, 1)); width: auto; opacity: .92; }   /* ≈ 74 px dans la carte ouverte (×1,9) */
.nowrap { white-space: nowrap; }
.stage-open .tile--mosaic:not(.is-open) .mo-cap, .stage-open .tile--mosaic:not(.is-open) .mo-ttl { opacity: 0; }   /* pas de titre fantôme derrière le chapitre ouvert */
@media (prefers-reduced-motion: reduce) { .mo-track { animation: none; } }
.mo-stat .mo-num { font-size: 15.8px; margin-top: 6.3px; }
.mo-ico { width: 17.9px; height: 17.9px; border-radius: 5.3px; background: rgba(255, 31, 143, .14); display: grid; place-items: center; }
.mo-ico svg { width: 10px; height: 10px; fill: none; stroke: #ff8cc4; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 06 : melodiza × partenaire, trois engagements */
.mo-duo { display: flex; align-items: center; justify-content: center; gap: 9.5px; }
.mo-m { font-family: var(--serif); font-size: 28.4px; line-height: 1; } .mo-m em { color: #ff6fb0; font-style: italic; }
.mo-x { font-size: 11.6px; color: rgba(255, 255, 255, .5); }
.mo-adh { font-size: 13px; font-weight: 600; }
.mo-pl2 { display: none; background: #f6f3ee; border-radius: 6.3px; padding: 5.3px 7.4px; } .mo-pl2 img { height: 34.7px; display: block; }
.mo-duo.has-partner .mo-adh { display: none; } .mo-duo.has-partner .mo-pl2 { display: block; }
.mo-n { color: var(--rose); font-weight: 600; font-size: 6.8px; } .mo-tx { font-size: 9.5px; font-weight: 500; line-height: 1.3; margin-top: 3.2px; }
/* vignette : dégradé sombre en bas + titre du chapitre en gros (disparaît quand la carte s'ouvre) */
.mo-cap { position: absolute; inset: 0; border-radius: 5cqw; background: linear-gradient(0deg, rgba(8, 6, 9, .92) 0%, rgba(8, 6, 9, .32) 55%, rgba(8, 6, 9, 0) 100%); pointer-events: none; transition: opacity .3s var(--ease-out); }
.mo-ttl { position: absolute; left: 28px; right: 28px; bottom: 24px; margin: 0; font: 600 42px/1.04 var(--sans); letter-spacing: -.02em; color: #fff; pointer-events: none; transition: opacity .3s var(--ease-out); }
.mo-ttl em { font-family: var(--serif); font-weight: 400; font-style: italic; color: #ff6fb0; display: inline; }
.tile--mosaic.is-open .mo-cap, .tile--mosaic.is-open .mo-ttl { opacity: 0; }
html:not(.motion) .mo-cap, html:not(.motion) .mo-ttl { display: none; }
html:not(.motion) .tile--mosaic { width: 100%; max-width: 640px; height: auto; aspect-ratio: 16 / 10; }
html:not(.motion) .tile--mosaic .card__glass { position: relative; height: 100%; }
@media (max-width: 600px) { .motion .mo-hide-m { display: none; } .mo-ttl { font-size: 52px; left: 28px; right: 28px; bottom: 22px; } }
@media (prefers-reduced-motion: reduce) { .mo-rail, .mo-pr i { animation: none; } }

.tag__text { text-align: left; } .tag--right .tag__text { text-align: right; }   /* étiquette longue (03) : 2 lignes propres, jamais plus large que sa tuile */

/* barre lumineuse animée au-dessus de chaque titre de carte ouverte (maquette titre-onde.js : les ondes du téléphone « Identité sonore ») */
.onde { display: block; width: min(260px, 70%); height: 34px; margin: 0 0 22px -4px; -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
html:not(.motion) .onde { display: none; }
@media (max-width: 600px) { .onde { height: 26px; margin-bottom: 12px; } }

/* ===== Mosaïques 02-04 portées des maquettes validées (css/mosaiques.css) : boîte de référence 874 × 700 (= 1680 × 1000),
   réduite dans la tuile (×0,5263 = boîte 460 × 368) ; la carte ouverte agrandit l'ensemble : même rendu, mêmes proportions. ===== */
.motion .tile .mz, .tile .mz { position: absolute !important; left: 90px !important; top: 16px !important; right: auto !important; bottom: auto !important;
  width: 874px !important; height: 700px !important; transform: scale(.52632) !important; transform-origin: 0 0 !important; --win: #141216; color: #fff; font-family: var(--sans); letter-spacing: 0; text-align: left; }
.mz * { box-sizing: border-box; margin: 0; }
.mz p { margin: 0; }
.mz img { max-width: none; }   /* la page limite les images à leur conteneur ; les maquettes non (carreaux du 05 : morceaux de photo décalés) */

/* texte des chapitres (maquettes validées) : points avec intitulés, filets fins */
.copy__pts { margin-top: 38px; max-width: 420px; }
.copy__pts .pt { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.copy__pts .pt:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.copy__pts .pt__l { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #ff6fb0; }
.copy__pts .pt p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .78); max-width: 42ch; }
.copy__pts .pt p:first-child { margin-top: 0; }
@media (max-width: 600px) { .copy__pts { margin-top: 14px; } .copy__pts .pt { padding: 9px 0; } .copy__pts .pt p { font-size: 14px; line-height: 1.5; } .motion .copy__eyebrow { margin-bottom: 8px; } }
@media (max-width: 600px) { .motion .mz-02 .z-cert, .motion .mz-03 .z-w-sites, .motion .mz-04 .z-w-stores { display: none; } }   /* téléphone : 2 fenêtres au plus */

/* ===== 06 : la scène qui casse la règle (maquette partenariat.html, validée 19/10) : texte centré en haut et en bas,
   la carte au milieu = melodiza × logo de la fédération ; pas de mosaïque ===== */
.mz-06 { display: grid; place-items: center; }
.mz-06 .z6-duo { display: flex; align-items: center; justify-content: center; gap: 44px; }
.mz-06 .z6-wm { display: flex; align-items: center; gap: 20px; font: 400 66px/1 var(--sans); letter-spacing: -.035em; color: #fff; }
.mz-06 .z6-wm img { width: 76px; height: 76px; border-radius: 22%; }
.mz-06 .z6-wm em { font-family: var(--serif); font-style: italic; font-weight: 400; color: #ff6fb0; letter-spacing: -.01em; }
.mz-06 .z6-x { font: 300 32px/1 var(--sans); color: rgba(255, 255, 255, .4); }
.mz-06 .z6-fed { display: grid; place-items: center; width: 280px; height: 112px; border-radius: 20px; background: #ebe6de; }
.mz-06 .z6-fed img { width: 78%; height: 72%; object-fit: contain; }
@media (min-width: 601px) {
  .motion .copylayer .copy--fin { left: 0 !important; right: 0; top: 0 !important; bottom: 0; width: auto !important; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 12vh 5vw 9vh; }
  .copy--fin .fin__top { display: flex; flex-direction: column; align-items: center; }
  .copy--fin .onde { margin: 0 auto 20px; }
  .motion .copy--fin .copy__title { font-size: clamp(44px, 5vw, 84px); max-width: none; }
  .copy--fin .fin__pour { margin: 0; font: italic 400 clamp(18px, 1.4vw, 24px)/1.3 var(--serif); color: rgba(255, 255, 255, .72); }
  .copy--fin .fin__engs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); width: min(90vw, 980px); max-width: none; margin-top: clamp(28px, 5vh, 56px); text-align: left; }
  .copy--fin .fin__engs .pt, .copy--fin .fin__engs .pt:last-child { border: 0; padding: 0; }
}
@media (max-width: 600px) { .copy--fin .fin__pour { margin: 10px 0 0; font: italic 400 15px/1.3 var(--serif); color: rgba(255, 255, 255, .72); } }
.mo-ttl { font-weight: 400; letter-spacing: -.03em; }   /* titres des vignettes : même graisse que les titres des chapitres */
.motion .scrim::after { content: ""; position: absolute; inset: 0; background: rgba(5, 4, 6, .95); opacity: var(--fin, 0); }   /* 06 : rien ne concurrence la scène centrée */
@media (min-width: 601px) { .copy--fin .copy__title em { display: inline; } }

/* écran de fin : retour à la tablette (en haut à gauche) + halo rose qui respire autour de l'icône */
.endback { display: none; }
.motion .finale .endback { position: absolute; left: var(--gutter); top: 66px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .86); font: 500 14px/1 var(--sans); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .4s cubic-bezier(.23, 1, .32, 1), background-color .2s; }
.motion .finale .endback.is-on { opacity: 1; pointer-events: auto; }
.motion .finale .endback svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .motion .finale .endback:hover { background: rgba(255, 255, 255, .12); color: #fff; } }
.motion .finale .endback:focus-visible { outline: 2px solid #ff6fb0; outline-offset: 3px; }
.motion .finale .endcard__icon { animation: endGlow 3.2s ease-in-out infinite; }
@keyframes endGlow { 0%, 100% { filter: drop-shadow(0 0 16px rgba(255, 31, 143, .35)); } 50% { filter: drop-shadow(0 0 44px rgba(255, 31, 143, .8)); } }
@media (prefers-reduced-motion: reduce) { .motion .finale .endcard__icon { animation: none; filter: drop-shadow(0 0 28px rgba(255, 31, 143, .55)); } }

/* 01 : même principe que 02-04 (19/10) : téléphone à gauche + colonne (vidéo, puis petite carte calée à droite), écart fixe, rien ne flotte */
.mo[data-mo="01"] { display: flex; align-items: center; gap: 14px; padding: 0 4px; }
.mo[data-mo="01"] > .mo-phone { position: relative !important; left: auto !important; top: auto !important; width: auto !important; flex: 0 0 27%; }
.mo[data-mo="01"] .mo-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mo[data-mo="01"] .mo-col > .mo-win { position: relative !important; left: auto !important; top: auto !important; bottom: auto !important; width: 100% !important; }
.mo[data-mo="01"] .mo-col > .mo-pad { width: 58% !important; align-self: flex-end; }

/* 19/10 : étiquettes des vignettes sur des lignes fixes (le 03 passait de 2 à 3 lignes) */
.tag__text { white-space: nowrap; max-width: none; }
/* 19/10 : vignettes de la constellation en relief : tranche (ombres pleines décalées), arête haute éclairée, reflet en biais */
.motion .layer .tile--mosaic:not(.is-open) .card__glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .1),
  0 1.5px 0 #231b21, 0 3px 0 #18121a, 0 4.5px 0 #100c11, 0 28px 46px -14px rgba(0, 0, 0, .85); }
.motion .layer .tile--mosaic .card__glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .03) 32%, rgba(255, 255, 255, 0) 55%); transition: opacity .35s; }
.motion .layer .tile--mosaic.is-open .card__glass::after { opacity: 0; }
.motion .topbar.is-end.is-final .topbar__brand { opacity: 1; transform: none; pointer-events: auto; }   /* fin : logo = relancer la présentation, « Retour à l'accueil » juste dessous */
.tag__text em { font-style: italic; color: var(--rose-soft); }
.tag__text em { color: #ff4fa3; text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 18px rgba(20, 6, 14, .7); }   /* lisible même sur le ciel rose */
/* 19/10 : plongée en vidéo native (même comportement que le canvas de séquence) */
.motion .cam video.seq { opacity: 0; transition: opacity .35s ease; }
.motion .cam video.seq.is-painted { opacity: 1; }
.motion .cam video.seq.is-painted.hero-under { opacity: 0; }

/* 19/10 perf (mesuré : la carte graphique redessinait les vignettes en continu) : en vue d'ensemble, les animations des mosaïques sont à l'arrêt */
.motion .layer .tile--mosaic:not(.is-open) .mz *, .motion .layer .tile--mosaic:not(.is-open) .mo * { animation-play-state: paused !important; }
.mz-05 .z-vn .z-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); z-index: 0; }
.mz-05 .z-vn .z-tl { z-index: 1; }

/* 19/10 (Arno) : « melodiza » est la MARQUE → toujours la police du logo (Instrument Serif), jamais la police des titres */
:root { --brand: 'Instrument Serif', 'Times New Roman', serif; }
.hero__word, .endcard__word, .endcard__word em, .mz-06 .z6-wm, .mz-06 .z6-wm em, .mo-m, .mo-m em { font-family: var(--brand) !important; letter-spacing: -.01em; }
.mz-06 .z6-wm { font-size: 72px; }
.mz-06 .z6-wm span, .mz-06 .z6-wm span em { font-family: var(--brand) !important; }
/* 19/10 (Arno) : plus de titre DANS les vignettes (doublon avec l’étiquette au-dessus, illisible en petit) : aperçu net seul */
.mo-cap, .mo-ttl { display: none !important; }

/* 19/10 (Arno) : « Bienvenue chez melodiza ! » : texte dans la police des titres, « melodiza » écrit comme le logo */
.caption__line { font-family: var(--sans); font-weight: 400; letter-spacing: -.03em; }
.brandword { font-family: var(--brand); font-size: 1.14em; letter-spacing: -.01em; white-space: nowrap; }
.brandword em { font-style: italic; background: linear-gradient(180deg, #ff6fb3 0%, #ff1f8f 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .04em; }

/* 19/10 (Arno) : flèche rose « retour à la tablette » sous le logo, dans chaque chapitre ouvert */
.backx { display: none; }
.motion .backx { display: grid; place-items: center; position: absolute; left: var(--gutter); top: 66px; z-index: 30; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 31, 143, .16); box-shadow: inset 0 0 0 1px rgba(255, 111, 179, .55); color: #ff6fb0; opacity: 0; pointer-events: none; transition: background-color .2s, color .2s; }
.motion .backx.is-on { pointer-events: auto; }
.motion .backx svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .motion .backx:hover { background: #ff1f8f; color: #fff; } }
.motion .backx:focus-visible { outline: 2px solid #ff6fb0; outline-offset: 3px; }
.motion .finale .endback { color: #ff6fb0; box-shadow: inset 0 0 0 1px rgba(255, 111, 179, .55); background: rgba(255, 31, 143, .12); }   /* même langage que la flèche des chapitres */
/* 19/10 (Arno) : croix de fermeture en rose, même langage que la flèche de retour */
.motion .closex { color: #ff6fb0; background: rgba(255, 31, 143, .16); border-color: rgba(255, 111, 179, .55); }
.motion .closex svg { stroke-width: 2; }
@media (hover: hover) and (pointer: fine) { .motion .closex:hover { background: #ff1f8f; color: #fff; border-color: #ff1f8f; } }
.caption__line { font-family: var(--serif); font-style: italic; letter-spacing: -.01em; }   /* 19/10 (Arno) : « Bienvenue chez » en italique (Bodoni des titres) ; « melodiza » garde la police du logo */
.caption__line .brandword { font-style: normal; }
/* 19/10 (Arno) : fin = même flèche rose ronde que dans les chapitres */
.motion .finale .endback { width: 42px; height: 42px; padding: 0; gap: 0; justify-content: center; border-radius: 50%; color: #ff6fb0; background: rgba(255, 31, 143, .16); box-shadow: inset 0 0 0 1px rgba(255, 111, 179, .55); }
.motion .finale .endback svg { width: 20px; height: 20px; stroke-width: 2.2; }
@media (hover: hover) { .motion .finale .endback:hover { background: #ff1f8f; color: #fff; } }
/* 19/10 (Arno) : flèches de retour à la même taille que la croix de fermeture (28 px, 32 px au doigt) */
.motion .backx, .motion .finale .endback { width: 28px; height: 28px; }
.motion .backx svg, .motion .finale .endback svg { width: 14px; height: 14px; stroke-width: 2; }
@media (hover: none) and (pointer: coarse) { .motion .backx, .motion .finale .endback { width: 32px; height: 32px; } .motion .backx svg, .motion .finale .endback svg { width: 15px; height: 15px; } }
/* écran de fin : croix au même endroit que celle des chapitres (sous le bouton son, centrée sur lui) */
.motion .finale .endclose { left: auto; right: calc(var(--gutter) + 7px); top: 72px; transform: none; z-index: 5; transition: opacity .4s cubic-bezier(.23, 1, .32, 1), background-color .2s, color .2s; }

/* ===== 19/10 : vignettes en VERRE visionOS (maquette mission-mock/vignettes-plein.html, validée par Arno) =====
   vue d'ensemble : plaque translucide qui floute le décor + arête lumineuse + reflet ; l'aperçu est une fenêtre en retrait (×0,85).
   carte ouverte : le verre s'efface, la fenêtre reprend toute la place (même rendu qu'avant). */
.motion .layer .tile--mosaic .vscr { position: absolute; inset: 0; transform-origin: 50% 50%; border-radius: 5cqw;
  transition: transform .45s cubic-bezier(.23, 1, .32, 1), border-radius .45s, box-shadow .45s, background-color .45s; }
.motion .layer .tile--mosaic:not(.is-open) .vscr { transform: scale(.85); border-radius: 2.6cqw; overflow: hidden; background: #0b090c; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .7); }
.motion .layer .tile--mosaic.is-open .vscr { transform: none; overflow: visible; background: transparent; box-shadow: none; }
.motion .layer .tile--mosaic:not(.is-open) .card__glass { background: rgba(28, 22, 30, .42); -webkit-backdrop-filter: blur(8px) saturate(1.4); backdrop-filter: blur(8px) saturate(1.4);   /* 8 px : mesuré presque gratuit (20 px divisait la fluidité par 2 sur le Mac d'Arno) */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 34px 60px -26px rgba(0, 0, 0, .85); }
.motion .layer .tile--mosaic .card__glass::after { background: linear-gradient(120deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 42%); }

/* 05 allégé (19/10) : carrés en images de fond ; masqués tant que la carte n'est pas ouverte (aucune couche 3D en vue d'ensemble) */
.mz-05 .z-tl .z-f, .mz-05 .z-tl .z-b { background-repeat: no-repeat; }
.motion .layer .tile--mosaic:not(.is-open) .mz-05 .z-tl { display: none; }

/* ===== 19/10 PERF, appliqué à TOUTES les cartes (demande d'Arno) : aucune animation ne doit forcer la mise en page ni le redessin.
   Mesuré sur son Safari : les égaliseurs (height) et barres de progression (width) faisaient tomber un chapitre ouvert à ~35 i/s. ===== */
.mz .z-eq b, .mz .z-eq2 b, .mo .mo-eq b { height: 100% !important; transform-origin: 50% 100%; }
@keyframes z02-eq { 0%,100% { transform: scaleY(.3) } 50% { transform: scaleY(1) } }
@keyframes z03-eq { 0%,100% { transform: scaleY(.3) } 50% { transform: scaleY(1) } }
@keyframes z04-eq { 0%,100% { transform: scaleY(.3) } 50% { transform: scaleY(1) } }
@keyframes z05-eq { 0%,100% { transform: scaleY(.3) } 50% { transform: scaleY(1) } }
@keyframes eq { 0%,100% { transform: scaleY(.3) } 50% { transform: scaleY(1) } }
.mz .z-pr i, .mz .z-bar2 i, .mo .mo-pr i { width: 100% !important; transform-origin: 0 50%; }
@keyframes z02-pr { from { transform: scaleX(.05) } to { transform: scaleX(.95) } }
@keyframes z03-pr { from { transform: scaleX(.05) } to { transform: scaleX(.95) } }
@keyframes z04-pr { from { transform: scaleX(.05) } to { transform: scaleX(.95) } }
@keyframes z05-pr { from { transform: scaleX(.05) } to { transform: scaleX(.95) } }
@keyframes z04-prog { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes mopr { from { transform: scaleX(.05) } to { transform: scaleX(.95) } }
.mz-03 .z-track i { width: 100%; right: auto; transform-origin: 0 50%; transform: scaleX(0); }
.mz-03 .z-track s { left: 0 !important; }
/* écran de fin : halo du logo en opacité (plus de filtre animé) */
.motion .finale .endcard__icon { animation: none !important; filter: drop-shadow(0 0 30px rgba(255, 31, 143, .6)); }
.motion .finale .endcard { position: relative; }
@keyframes endHalo { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
.stage-open .layer .card:not(.is-open) { cursor: default; }   /* chapitre ouvert : les vignettes du fond ne sont plus des cibles */

/* 19/10 (Safari d'Arno : blocage à chaque ouverture de chapitre, au moment où le bloc noir doit disparaître) :
   le verre (flou + fond + ombres) est retiré INSTANTANÉMENT dès que la carte commence à s'ouvrir, sans transition ;
   Safari n'a jamais à recalculer un flou ni un fondu de fond sur une carte plein écran. */
.motion .layer .tile--mosaic.is-focusing .card__glass { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; transition: none !important; }
.motion .layer .tile--mosaic.is-focusing .card__glass::after { opacity: 0 !important; transition: none !important; }
.motion .layer .tile--mosaic.is-focusing .vscr { transform: none !important; overflow: visible !important; background: transparent !important; box-shadow: none !important; transition: none !important; }
.motion .layer .tile--mosaic .card__glass, .motion .layer .tile--mosaic .vscr { transition: none !important; }
/* 19/10 (vu par Arno sur Safari, chapitre 02) : dans le rail des genres, Safari rétrécissait les deux groupes de cartes
   (les cartes se chevauchaient). Les groupes et les cartes ne rétrécissent plus, sur tous les rails. */
.mz .z-trk { width: max-content; flex-wrap: nowrap; }
.mz .z-grp { flex: none !important; width: max-content; }
.mz .z-gn { flex: none !important; width: 148px; }

/* 05 : un canvas par carte (plus de carrés 3D) ; masqué hors carte ouverte (la photo seule s'affiche) */
.motion .layer .tile--mosaic:not(.is-open) .mz-05 .z-cv { display: none; }
.hero__hint { display: none !important; }   /* 19/10 (Arno) : plus de « Faites défiler », seul le play lance la présentation */
/* 19/10 (Arno) : le halo est sur le LOGO (centré sur l'icône), pas sous les coordonnées */
.endcard__iconwrap { position: relative; display: inline-grid; place-items: center; isolation: isolate; }
.endcard__glow { display: none; }
.motion .finale .endcard__glow { display: block; position: absolute; left: 50%; top: 50%; width: 260%; height: 260%; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 31, 143, .6), rgba(255, 31, 143, .18) 55%, rgba(255, 31, 143, 0)); animation: endHalo 3.2s ease-in-out infinite; }
@keyframes endHalo { 0%, 100% { opacity: .45; transform: translate(-50%, -50%) scale(.85); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
.motion .finale .endcard__glow { z-index: 0; }
.motion .finale .endcard__iconwrap .endcard__icon { position: relative; z-index: 1; }
/* 19/10 : le logo de fin est le cube 3D (#cubeWrap) : c'est LUI qui a le halo */
.motion .cubewrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: 62%; height: 62%; border-radius: 50%; pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 31, 143, .65), rgba(255, 31, 143, .2) 55%, rgba(255, 31, 143, 0)); transform: translate(-50%, -50%); transition: opacity .8s ease; }
.motion .cubewrap.is-final::before { opacity: 1; animation: cubeHalo 3.2s ease-in-out infinite; }
@keyframes cubeHalo { 0%, 100% { transform: translate(-50%, -50%) scale(.85); opacity: .55; } 50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } }
.motion .finale .endcard__glow { display: none; }

/* =====================================================================================================================
   AUDIT MOBILE 19/10 — seconde composition téléphone (rien ici ne touche l'ordinateur : tout est sous max-width 600/860
   ou sous (pointer: coarse)). Journal détaillé : qa/AUDIT_mobile.md, section « Corrections faites ».
   ===================================================================================================================== */
/* M1 · voile du texte : le fondu sombre monte jusqu'au haut du texte le plus haut (mesuré en JS → --mz-copytop),
   au lieu d'un pourcentage fixe qui laissait le titre sur l'interface de la tablette à 375 × 667 */
@media (max-width: 860px) {
  .motion .scrim { background: linear-gradient(0deg, rgba(5, 4, 6, .985) 0%, rgba(5, 4, 6, .94) calc(100% - var(--mz-copytop, 50%) + 28px), rgba(5, 4, 6, .5) calc(100% - var(--mz-copytop, 50%) + 120px), rgba(5, 4, 6, .25) 100%); }
}
/* M2 · petits écrans (iPhone SE / 8, 375 × 667) : texte de chapitre resserré verticalement (tailles de lecture inchangées :
   14 px pour les paragraphes), pour laisser à la mosaïque une vraie place au-dessus */
@media (max-width: 600px) and (max-height: 740px) {
  .motion .copylayer .copy { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .onde { height: 18px; margin-bottom: 6px; }
  .motion .copy__eyebrow { margin-bottom: 2px; }
  .copy__title { font-size: clamp(26px, 7.4vw, 32px); }
  .copy__pts { margin-top: 10px; }
  .copy__pts .pt { padding: 6px 0; }
  .copy__pts .pt p { line-height: 1.42; }
  .copy__pts .pt p { margin-top: 3px; }
  .copy--fin .fin__pour { margin-top: 6px; }
}
/* M3 · cibles tactiles ≥ 44 px SANS changer le dessin validé (boutons ronds de 32 px, logo de 30 px, étiquettes) :
   zone de toucher élargie par un pseudo-élément transparent (mobile-native §5, layout §8 « touch targets at least 44px ») */
@media (pointer: coarse) {
  .motion .backx::before, .motion .closex::before, .motion .finale .endback::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
  .topbar__brand { position: relative; }
  .topbar__brand::before { content: ""; position: absolute; inset: -8px -4px; }
  .tag::before { content: ""; position: absolute; inset: -8px -6px -4px; }
  .motion .finale .endcard__links a { padding: 11px 0; margin: -11px 0; }
}
/* M4 · téléphone en paysage : la scène est composée pour le portrait (vignettes, mosaïques et texte se chevauchaient,
   titres coupés en haut) — on demande de tourner le téléphone. À valider par Arno (texte nouveau). */
.mz-rotate { display: none; }
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .motion .mz-rotate { display: flex; position: fixed; inset: 0; z-index: 200; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    background: #050406; color: rgba(255, 255, 255, .86); font: 400 17px/1.4 var(--sans); text-align: center; padding: 24px; }
  .mz-rotate svg { width: 44px; height: 44px; fill: none; stroke: #ff6fb0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
}
/* M5 · textes des mosaïques lisibles au téléphone : 05 = les 6 cartes de commerces prennent toute la largeur de la boîte
   (cartes ×1,4) et leur intitulé passe à ≥ 11 px rendus ; 01 = nom du lieu sous « Identité sonore » à ≥ 11 px rendus */
@media (max-width: 600px) {
  .motion .mz-05 .z-venues { width: 850px; gap: 10px; }
  .motion .mz-05 .z-vn .z-k { font-size: 27px; left: 12px; bottom: 12px; }
  .motion .mo-lieu { font-size: 15px; }
}
