/* NexusPlayer : site public
 * Grammaire visuelle de l'app, rien d'autre : fond plat #050508, mur d'affiches du sélecteur de profils,
 * logo NEXUS terracotta, bouton principal blanc (« Lecture »), pastilles et boutons en verre, focus blanc
 * (TV), fenêtres #101016 de l'app, plaques dorées 4K/HDR. Pas de lueur, pas de carte en dégradé.
 * Valeurs reprises de src/utils/constants.js (COLORS) et des écrans transcrits dans storescreen 2.
 * Thème sombre unique ; prefers-reduced-motion coupe tout mouvement ; propriétés logiques (arabe RTL). */

:root {
  color-scheme: dark;
  --bg: #050508;               /* COLORS.background */
  --surface: #141419;          /* COLORS.surface */
  --sheet: #101016;            /* fenêtres de l'app (UpgradeModal mobile) */
  --sheet-tv: rgba(16, 16, 22, .98);
  --chip: rgba(255, 255, 255, .06);
  --chip-2: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .08);
  --text: #fff;
  --text-2: #9ca3af;           /* COLORS.textSecondary */
  --text-3: #6b7280;           /* COLORS.textMuted */
  --pill-text: #c9cdd4;        /* featurePillText */
  --ink: #0b0b0f;              /* texte sur blanc */
  --accent: #b85c38;           /* COLORS.primary */
  --accent-2: #d4714a;         /* COLORS.primaryLight */
  --gold-1: #ffd166;
  --gold-2: #ffb400;
  --gold-3: #e48a0a;
  --ok: #10b981;
  --err: #ef4444;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
  --shell: 1180px;
  --gutter: 20px;
  --nav-h: 60px;
  --device-shadow: drop-shadow(0 34px 50px rgba(0, 0, 0, .7));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }

/* Barre de défilement : la barre native est masquée (selon les réglages du système, elle réserve une colonne
 * noire permanente à droite) ; maquette.js dessine une poignée terracotta flottante, visible pendant le
 * défilement ou quand la souris approche du bord droit, et déplaçable. */
html { scrollbar-width: none; }
::-webkit-scrollbar { display: none; width: 0; height: 0; }
.scrollthumb {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 3px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  opacity: 0;
  cursor: grab;
  touch-action: none;
  transition: opacity .35s ease, width .15s ease;
}
.scrollthumb.is-on { opacity: .9; }
.scrollthumb:hover, .scrollthumb.is-drag { width: 9px; opacity: 1; }
.scrollthumb.is-drag { cursor: grabbing; }
@media (hover: none) { .scrollthumb { width: 4px; pointer-events: none; } }
}
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ic { width: 22px; height: 22px; flex: none; }
[dir="rtl"] .ic-flip { transform: scaleX(-1); }
.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* ---------- Typographie ---------- */
.display {
  margin: 0;
  font-weight: 800;
  font-size: clamp(46px, 7.2vw, 94px);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.03;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.45vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 44ch; text-wrap: pretty; }
/* Arabe : écriture liée, jamais d'interlettrage (il sépare ou fait chevaucher les lettres) ; signes au-dessus et
 * au-dessous des lettres : interligne plus grand pour les titres */
[lang="ar"] :is(.display, .h2, .whisper, h1, h2, h3, .spec b, .menu-links a) { letter-spacing: 0; }
[lang="ar"] .display { line-height: 1.22; }
[lang="ar"] .h2 { line-height: 1.25; }

/* Logo de l'app (sélecteur de profils) : NEXUS terracotta, PLAYER gris très espacé */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo .n { font-weight: 800; font-size: 1em; letter-spacing: .15em; margin-inline-end: -.15em; color: var(--accent); }
.logo .p { margin-top: .14em; font-weight: 300; font-size: .34em; letter-spacing: .72em; margin-inline-end: -.72em; color: var(--text-2); }
.logo-nav { font-size: 19px; }
.logo-xl { font-size: clamp(36px, 4.4vw, 54px); }

/* ---------- Boutons de l'app ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn .ic { width: 20px; height: 20px; }
.btn:active { transform: scale(.98); }
.btn-white { background: #fff; color: var(--ink); }                 /* « Lecture », « Reprendre » */
.btn-white:hover { background: #e7e7ec; }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; }   /* boutons secondaires */
.btn-glass:hover, .btn-glass:focus-visible { background: #fff; color: var(--ink); }   /* focus TV : blanc */
/* Un seul repère de focus : le remplissage blanc (verre), un liseré intérieur (bouton blanc), jamais un contour en plus */
.btn-glass:focus-visible { outline: none; }
.btn-white:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(11, 11, 15, .55); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { cursor: not-allowed; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .4); transform: none; }

/* Pastilles (featurePill de l'app) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 14px;
  font-weight: 600;
  color: var(--pill-text);
}
.pill .ic { width: 17px; height: 17px; color: #fff; }
/* Avantages Pro : grille droite de deux colonnes égales */
.pills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.pills-grid .pill { justify-content: center; text-align: center; }

/* ---------- Navigation : barre flottante en verre (logo · liens au centre exact · langue et Pro) ---------- */
.nav { position: fixed; inset-inline: 0; top: 14px; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav-bar {
  position: relative;
  z-index: 2;                  /* au-dessus du menu et du voile */
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(1120px, calc(100% - 28px));
  height: var(--nav-h);
  padding-inline: 26px 8px;
  border-radius: 999px;
  background: rgba(16, 16, 21, .78);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .07);
  transition: background-color .25s ease;
}
.nav-bar > .logo { justify-self: start; }
.nav.is-scrolled .nav-bar { background: rgba(16, 16, 21, .95); }
.nav-tabs { display: flex; align-items: center; gap: 4px; }
.nav-tabs .nav-cta { margin-inline: 8px; }
.tab {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.tab:hover { color: #fff; }
.tab.is-active { color: #fff; background: rgba(184, 92, 56, .30); }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 6px; }
.menu-btn, .menu, .menu-veil { display: none; }

/* Langues (drapeaux du site actuel) */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.lang-btn:hover, .lang.is-open .lang-btn { background: rgba(255, 255, 255, .08); color: #fff; }
.lang-btn .ic { width: 16px; height: 16px; transition: transform .2s; }
.lang.is-open .lang-btn .ic { transform: rotate(180deg); }
/* Drapeaux du site actuel, hébergés ici : couches corrigées (src/img/flags), largeur entière, hauteur naturelle */
.flag, .lang-menu .lang-flag { flex: none; width: 24px; height: auto; border-radius: 2px; }
.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 18px;
  background: var(--sheet-tv);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.lang-menu a.active { background: var(--chip); color: #fff; }   /* langue courante, menu reconstruit par le portail */
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 15px; color: var(--text-2); }
.lang-menu a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lang-menu a[aria-current] { color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--nav-h) + 50px); }
.hero-in, .stage { z-index: 1; }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hero-in .display { position: relative; z-index: 1; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
/* « Une app. » en blanc, « Tous vos écrans. » en gris. Gris opaques (= blanc à 40 % et 78 % sur --bg) : une
 * couleur translucide double d'opacité là où les lettres se chevauchent (raccords de l'arabe) */
.display .l2 { color: #69696b; }
.hero-in .lead { max-width: 46ch; color: #c9c9c9; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }

/* Disponible sur : logos du site actuel, cliquables, rangés en deux familles (mobiles / TV).
 * Chaque logo dans une pastille de même hauteur (filtres de l'app) ; au survol, le focus blanc de la TV. */
.stores { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 12px; }
.stores-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.store-groups { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 16px 0; }
.store-group { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-inline: 22px; }
.store-group + .store-group { border-inline-start: 1px solid var(--line); }
.store-group > small { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-3); }
.store-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.store-chip {
  --logo: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 62px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  transition: background-color .2s;
}
.store-chip img { width: auto; height: var(--logo); transition: filter .2s; }
.store-chip .mono { filter: brightness(0) invert(1); }                         /* robot Android, pomme */
.store-chip .wide { height: calc(var(--logo) * .82); filter: invert(1) grayscale(1) brightness(1.5); }   /* logos TV */
.store-chip:has(.wide) { min-width: calc(var(--logo) * 6.6); }           /* pastilles TV de même largeur */
.store-chip .wide.tall { height: calc(var(--logo) * 1.15); }             /* logo Fire TV, plus haut que large */
a.store-chip:hover, a.store-chip:focus-visible { background: #fff; outline: none; }
a.store-chip:hover img, a.store-chip:focus-visible img { filter: brightness(0); }
.store-chip.mac-chip { gap: 8px; }                                          /* pomme + « Mac » */
.mac-chip span { font-size: calc(var(--logo) * .8); font-weight: 600; line-height: 1; color: #fff; transition: color .2s; }
a.mac-chip:hover span, a.mac-chip:focus-visible span { color: #000; }

/* Appareils (captures avec leurs cadres, fond transparent) */
.stage { position: relative; width: min(1240px, calc(100% - 2 * var(--gutter))); aspect-ratio: 16 / 8.5; margin: 64px auto 0; }
.stage > * { position: absolute; }
.device { filter: var(--device-shadow); }
.stage .tv { left: 17%; top: 0; width: 66%; }
/* Mac (14/11) posé devant la TV à gauche, tablette et téléphone à droite, comme l'affiche « Tous vos écrans » */
.stage .mac { left: 0; bottom: 2%; width: 45%; }
.stage .tablet { right: 12%; bottom: 3%; width: 29%; transform: perspective(2400px) rotateY(-9deg); transform-origin: right center; }
.stage .phone { right: 1%; bottom: 2%; width: 14.5%; transform: perspective(2400px) rotateY(-9deg); transform-origin: right center; }
.stage .device { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.stage .mac { animation-delay: .12s; }
.stage .tablet { animation-delay: .18s; }
.stage .phone { animation-delay: .24s; }
@keyframes rise { from { translate: 0 26px; } }
.cycle { display: grid; }
.cycle > img { grid-area: 1 / 1; opacity: 0; transition: opacity 1.1s ease; }
.cycle > img.is-on { opacity: 1; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 8.5vw, 116px); }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.sec-head.center { align-items: center; margin-inline: auto; text-align: center; }
/* Titre en deux tailles : la petite ligne murmure, la grande s'affiche (« Lancez en petit. / Regardez en grand. ») */
.whisper { display: block; margin-bottom: .3em; font-size: .4em; letter-spacing: -.01em; color: var(--text-2); }

/* Bandes de couleur en biais (comme sanipsa.com) : bords haut et bas coupés sur 4vw, une bande sur deux
 * monte puis descend ; sur la bande terracotta, deux grands aplats coupés sur le même biais donnent la
 * profondeur (plus sombre en bas à gauche, plus clair en haut à droite). Les couleurs secondaires sont
 * redéfinies dans la bande : tout ce qui s'en sert suit. */
.band { isolation: isolate; padding-block: calc(clamp(72px, 8.5vw, 116px) + 4vw); }
.band-up { clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%); }
.band-down { clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 calc(100% - 4vw)); }
.band-ink { background: #101015; }
.band-accent {
  --text-2: rgba(255, 255, 255, .84);
  --text-3: rgba(255, 255, 255, .66);
  --chip: rgba(0, 0, 0, .16);
  --pill-text: #fff;
  background: var(--accent);
  color: #fff;
}
.band-accent::before, .band-accent::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.band-accent::before { background: linear-gradient(115deg, rgba(96, 36, 14, .6), rgba(96, 36, 14, 0) 55%); clip-path: polygon(0 30%, 34% 18%, 22% 100%, 0 100%); }
.band-accent::after { background: linear-gradient(295deg, rgba(240, 160, 112, .5), rgba(240, 160, 112, 0) 60%); clip-path: polygon(64% 0, 100% 0, 100% 74%, 80% 62%); }
/* Sur terracotta : étapes au trait blanc, pastilles d'icône blanches */
.band-accent .rail-line { background: rgba(255, 255, 255, .3); }
.band-accent .rail-dot { background: #fff; }
.band-accent .node { background: var(--accent); box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
.band-accent .step-tag .ic, .band-accent .pill .ic, .band-accent .note .ic { color: #fff; }
.band-accent .step-dots i { background: rgba(255, 255, 255, .35); }
.band-accent .step-dots i.is-on { background: #fff; }

/* Comment ça marche : le signal circule SOUS les pastilles */
.rail-wrap { position: relative; margin-top: 60px; }
.rail { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.rail-line { position: absolute; z-index: 0; top: 27px; height: 2px; inset-inline: calc(100% / 6); background: rgba(255, 255, 255, .1); }
.rail-dot {
  position: absolute;
  z-index: 1;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  inset-inline-start: calc(100% / 6);
  animation: travel 6s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes travel {
  0% { inset-inline-start: calc(100% / 6 - 4px); }
  100% { inset-inline-start: calc(500% / 6 - 4px); }
}
.rail li { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.node {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);              /* opaque : la ligne et le point passent dessous */
  box-shadow: inset 0 0 0 1.5px var(--accent);
  color: var(--accent-2);
}
.node .ic { width: 25px; height: 25px; }
.rail .n { font-size: 13px; font-weight: 600; color: var(--text-3); }
.rail h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.rail p { max-width: 30ch; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.step-tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--chip); font-size: 13.5px; font-weight: 600; color: var(--pill-text); }
.step-tag .ic { width: 16px; height: 16px; color: var(--accent-2); }
.note { display: flex; align-items: flex-start; justify-content: center; gap: 10px; max-width: 640px; margin: 52px auto 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); text-align: start; }
.note .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--text-2); }
.note strong { font-weight: 600; color: #fff; }

/* Fonctions : texte d'un côté, appareils de l'autre */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(40px, 6vw, 96px); }
.feature.flip .media { order: -1; }
.copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.media { position: relative; }
.combo { position: relative; }
.combo > * { position: absolute; }
.combo-phones { aspect-ratio: 1 / .94; }
.combo-phones .a { left: 8%; top: 0; width: 41%; z-index: 2; }
.combo-phones .b { right: 6%; top: 8%; width: 41%; }
.combo-tablet { aspect-ratio: 1 / .8; }
.combo-tablet .tablet { left: 0; top: 0; width: 88%; }
.combo-tablet .phone { right: 0; bottom: 0; width: 26%; z-index: 2; }
/* Mac (16/11) : fiche série du Mac, téléphone devant ; profils et Nexus Gate : TV des profils au fond, Mac du Gate
   devant, téléphone des profils à côté */
.combo-mac { aspect-ratio: 1 / .74; }
.combo-mac .mac { left: 0; top: 0; width: 94%; }
.combo-mac .phone { right: 0; bottom: 0; width: 24%; z-index: 2; }
.combo-profiles { aspect-ratio: 1 / .82; }
.combo-profiles .tv { right: 0; top: 0; width: 80%; }
.combo-profiles .mac { left: 0; bottom: 4%; width: 66%; z-index: 2; }
.combo-profiles .phone { right: 3%; bottom: 0; width: 20%; z-index: 3; }
/* Logo Nexus Gate dans la section des profils : « Nexus » en texte, puis le logo de l'app (G terracotta, « ATE » blanc) */
.gate-brand { display: flex; align-items: center; gap: 8px; margin: 26px 0 8px; font-weight: 800; font-size: 25px; line-height: 1; color: var(--text); }
[dir="rtl"] .gate-brand { justify-content: flex-end; }
.gate-brand img { height: 28px; width: auto; }
.gate-text { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.55; max-width: 34em; }
.combo-tv { aspect-ratio: 1 / .78; }
.combo-tv .tv { right: 0; top: 0; width: 92%; }
.combo-tv .phone { left: 2%; bottom: 0; width: 25%; z-index: 2; }

/* Lecteur : le téléphone en paysage, dans son cadre (comme l'affiche « Un lecteur. Sans compromis. ») */
.player-dev { width: min(900px, calc(100% - 2 * var(--gutter))); margin: 52px auto 0; }   /* lecteur du Mac (16/11) */
.player-dev img { width: 100%; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; margin-top: 64px; }
.spec { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; text-align: center; hyphens: auto; overflow-wrap: break-word; }   /* mots longs (russe) : césure */
.plate {
  display: grid;
  place-items: center;
  height: 60px;
  min-width: 104px;
  padding: 0 20px;
  border-radius: 17px;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: .04em;
  line-height: 1;
  color: #1a1000;
  background: linear-gradient(160deg, var(--gold-1), var(--gold-2) 48%, var(--gold-3));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(120, 60, 0, .25);
}
.plate.bare { background: none; box-shadow: none; color: #fff; }
.plate.bare .ic { width: 44px; height: 44px; }
.spec b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.spec > span:not(.plate) { max-width: 26ch; font-size: 15px; line-height: 1.5; color: var(--text-2); }

/* Plateformes : les mêmes familles, en grand */
.platforms-band { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.platforms-band .store-group { padding-inline: 36px; gap: 14px; }
.platforms-band .store-group > small { font-size: 13px; }
.platforms-band .store-chip { --logo: 30px; height: 68px; min-width: 84px; padding: 0 28px; }

/* NexusPlayer Pro : la fenêtre « Passez à NexusPlayer Pro » de l'app sur TV */
.pro-tv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
  align-items: center;
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  background: var(--sheet-tv);
}
.pro-badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.pro-tv h2 { margin: 16px 0 8px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.pro-tv .sub { font-size: 15px; color: var(--text-2); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; margin: 24px 0 0; padding: 0; list-style: none; }
.features li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.features .ic { width: 20px; height: 20px; color: #fff; }
.pro-side { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.pro-side .trial { display: block; line-height: 1.5; }
.pro-side .trial .ic { display: inline-block; margin-inline-end: 6px; vertical-align: -3px; }
.trial { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--pill-text); }
.trial .ic { width: 17px; height: 17px; }

/* ---------- Pied de page ---------- */
.footer { padding: 56px 0 calc(44px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
/* Logo centré au-dessus de la phrase ; le bloc reste calé à gauche de sa colonne */
.footer-brand { justify-self: start; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-brand p { font-size: 15px; color: var(--text-2); }
.footer h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.footer ul a { color: var(--text-2); }
.footer ul a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.footer-legal:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-legal a:hover { color: #fff; }

/* ---------- Fenêtres et formulaires (style des feuilles de l'app) ---------- */
.sheet { border-radius: 24px; background: var(--sheet); }
.label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
input.field {   /* champs du site (le portail revendeur a sa propre classe « field ») */
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  font-size: 16px;
  outline: none;
  transition: border-color .2s, background-color .2s;
}
input.field::placeholder { color: var(--text-3); }
input.field:focus { border-color: #fff; background: rgba(255, 255, 255, .09); outline: none; }   /* la bordure blanche suffit */
.field-code { font-size: 22px; font-weight: 700; letter-spacing: .14em; text-align: center; font-variant-numeric: tabular-nums; }
.form-error { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(239, 68, 68, .12); font-size: 14px; color: #fca5a5; }
.form-error.is-on { display: block; }
.form-ok { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(34, 197, 94, .12); font-size: 14px; color: #4ade80; }
.check { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: rgba(255, 255, 255, .08); transition: background-color .15s; }
.check .box .ic { width: 15px; height: 15px; opacity: 0; color: var(--ink); }
.check input:checked + .box { background: #fff; }
.check input:checked + .box .ic { opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid #fff; outline-offset: 2px; }
.check a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Page NexusPlayer Pro ---------- */
.page { position: relative; padding-top: calc(var(--nav-h) + 50px); padding-bottom: 100px; }
.pro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.pro-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 10px; }
.pro-intro .h2 { margin-top: 2px; }
.pro-intro .pills { max-width: 480px; }
.form-sheet { padding: clamp(24px, 3.4vw, 36px); }
.form-sheet h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.form-sheet > p { margin-bottom: 24px; font-size: 15px; color: var(--text-2); }
.form-sheet .btn-block { margin-top: 16px; }
.where { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.where summary { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.where summary::-webkit-details-marker { display: none; }
.where summary .ic { width: 20px; height: 20px; }
.where summary .chev { margin-inline-start: auto; width: 18px; height: 18px; color: var(--text-3); transition: transform .2s; }
.where[open] summary .chev { transform: rotate(180deg); }
.where-body { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 18px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
/* Colonne droite de la fenêtre Pro de l'app sur TV : QR code, adresse, ID de l'appareil */
.tv-mini { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 150px; padding: 14px 10px; border-radius: 14px; background: var(--sheet-tv); box-shadow: 0 0 0 1px var(--line); }
.tv-mini .qr { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 9px; background: #fff; color: #000; }
.tv-mini .qr .ic { width: 58px; height: 58px; }
.tv-mini small { font-size: 9.5px; line-height: 1.35; text-align: center; color: var(--text-2); }
.tv-mini b { padding: 3px 7px; border-radius: 6px; font-size: 11px; letter-spacing: .04em; box-shadow: 0 0 0 1.5px #fff; }
.aside-note { display: flex; align-items: center; gap: 10px; margin-top: 44px; font-size: 14.5px; color: var(--text-2); }
.aside-note .ic { width: 18px; height: 18px; }
.aside-note strong { color: #fff; font-weight: 600; }

/* ---------- Paiement ---------- */
.pay-wrap { width: min(580px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.pay-head { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 28px; text-align: center; }
.pay-head h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.device-chip { display: inline-flex; align-items: center; gap: 10px; height: 36px; max-width: 100%; padding: 0 16px; border-radius: 999px; background: var(--chip); font-size: 14px; color: var(--text-2); }
.device-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.device-chip b { flex-shrink: 0; font-weight: 700; color: #fff; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.device-chip .device-chip-name { min-width: 0; font-weight: 600; color: #fff; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-sheet { padding: clamp(18px, 3vw, 28px); }
/* Choix code / paiement : lignes de réglages de l'app */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 10px;
  border: 0;
  border-radius: 16px;
  background: none;
  text-align: start;
  cursor: pointer;
  transition: background-color .15s;
}
.row + .row { margin-top: 2px; }
.row:hover { background: rgba(255, 255, 255, .05); }
.row .ri { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--chip); }
.row .ri .ic { width: 21px; height: 21px; }
.row b { display: block; font-size: 16px; font-weight: 700; }
.row small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--text-2); }
.row .chev { width: 20px; height: 20px; color: var(--text-3); }
button.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; }
button.back-link .ic { width: 18px; height: 18px; }
[dir="rtl"] .back-link .ic { transform: scaleX(-1); }
/* Formules : cartes de l'écran Pro mobile de l'app */
.plans { display: grid; gap: 10px; margin-bottom: 22px; }
.plan {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) { border-color: #fff; background: rgba(255, 255, 255, .09); }
.plan-name b { display: block; font-size: 15px; font-weight: 600; }
.plan-name { min-width: 0; }
.plan-name small { font-size: 13px; color: var(--text-2); }
.plan-name .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }   /* la pastille passe à la ligne sur écran étroit */
.plan > span:last-child { flex: none; }
.save { display: inline-flex; align-items: center; gap: .3em; height: 20px; padding: 0 8px; border-radius: 999px; background: rgba(34, 197, 94, .14); color: #4ade80; font-size: 11.5px; font-weight: 700; white-space: nowrap; }   /* économie de l'annuelle, toujours sur une ligne */
@media (max-width: 400px) { .save-t { display: none; } }
.plan-price { display: flex; align-items: baseline; gap: 8px; text-align: end; font-variant-numeric: tabular-nums; }
.plan-price s { font-size: 13px; color: var(--text-3); }
.plan-price b { font-size: 17px; font-weight: 800; }
.plan-per { display: block; font-size: 12px; color: var(--text-3); text-align: end; }
.best { position: absolute; top: -9px; inset-inline-end: 12px; padding: 2.5px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 10.5px; font-weight: 800; }
.stripe-preview { margin-bottom: 20px; border-radius: 16px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.sp-row { display: flex; align-items: center; gap: 12px; padding: 15px 16px; font-size: 15px; font-weight: 600; }
.sp-row + .sp-row { border-top: 1px solid var(--line); }
.sp-row .ic { width: 20px; height: 20px; color: var(--text-2); }
.sp-radio { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.sp-row.is-open .sp-radio { box-shadow: inset 0 0 0 5px #fff; }
.sp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 16px; }
.sp-field { display: flex; align-items: center; height: 46px; padding: 0 14px; border-radius: 10px; background: rgba(0, 0, 0, .3); font-size: 14.5px; color: var(--text-3); }
.sp-field.wide { grid-column: 1 / -1; }
.sp-note { padding: 10px 16px; border-top: 1px dashed rgba(255, 255, 255, .12); font-size: 12.5px; color: var(--text-3); }
.checks { display: grid; gap: 14px; margin: 20px 0 22px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--text-3); text-align: center; }
.secure .ic { width: 16px; height: 16px; }
/* Module de paiement Stripe, puis vues d'état : appareil introuvable, déjà abonné, paiement refusé */
.pay-element { margin-bottom: 20px; }
.pay-element:empty { display: none; }   /* Stripe pas encore monté : aucune place réservée */
.status-page { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 24px 28px; text-align: center; }
.status-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 4px; border-radius: 50%; }
.status-icon svg { width: 30px; height: 30px; }
.status-icon-error { background: rgba(239, 68, 68, .14); color: #f87171; }
.status-icon-success { background: rgba(34, 197, 94, .14); color: #4ade80; }
.status-page h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.status-page p { max-width: 40ch; margin: 0 0 8px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }

/* ---------- Fenêtre « Avant de continuer » (feuille de l'app) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;                /* centré aussi quand un script l'affiche en style.display = "flex" (production) */
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .7);
  animation: fade .2s ease;
}
.modal > .modal-card { width: min(500px, 100%); padding: 26px 26px 22px; border-radius: 24px; background: var(--sheet); animation: pop .3s cubic-bezier(.2, .8, .2, 1); }
.modal h2 { margin: 0 0 12px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.modal p { margin-bottom: 12px; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.modal p strong { font-weight: 700; color: #fff; }
.modal .fine { font-size: 14px; color: var(--text-3); }
.modal .fine a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.modal .modal-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; margin-top: 20px; }
#cmTitle:focus { outline: none; }   /* focus posé sur le titre à l'ouverture, sans repère visuel */
@media (max-width: 400px) { .modal .modal-actions { grid-template-columns: 1fr; } .modal .modal-actions .btn-wait { order: -1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }
/* « Continuer » se remplit de blanc pendant 3 s avant d'être actif */
.btn-wait { overflow: hidden; isolation: isolate; }
.btn-wait .fill { position: absolute; inset: 0; z-index: -1; transform-origin: left center; transform: scaleX(0); background: rgba(255, 255, 255, .22); }
[dir="rtl"] .btn-wait .fill { transform-origin: right center; }
.btn-wait.is-waiting { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75); cursor: wait; }
.btn-wait.is-waiting .fill { animation: charge 3s linear forwards; }
@keyframes charge { to { transform: scaleX(1); } }
.btn-wait .count { font-variant-numeric: tabular-nums; opacity: .8; }

/* Illustration de l'avertissement : ce que NexusPlayer ne fournit pas (chaînes, films, séries), barré une à une.
 * Animée seulement fenêtre ouverte (classe « on » posée par pay.js), en boucle de 6 s. */
.warn-art { --t: 50px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 26px 12px; margin-bottom: 20px; border-radius: 16px; background: #0a0a0e; }
.wa-tile { position: relative; display: grid; place-items: center; width: var(--t); height: var(--t); border: 1.3px dashed rgba(255, 255, 255, .26); border-radius: 14px; }
.wa-tile .ic { width: 24px; height: 24px; color: #6b7280; }
.wa-tile::after { content: ""; position: absolute; width: calc(var(--t) * 1.2); height: 2px; border-radius: 1px; background: #9ca3af; transform: rotate(-45deg) scaleX(0); }
.warn-art.on .wa-tile::after { animation: wa-strike 6s infinite calc(.5s + var(--i) * .35s); }
@keyframes wa-strike { 0%, 3% { transform: rotate(-45deg) scaleX(0); } 10%, 88% { transform: rotate(-45deg) scaleX(1); } 95%, 100% { transform: rotate(-45deg) scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .warn-art .wa-tile::after { transform: rotate(-45deg) scaleX(1); animation: none !important; } }
/* Titre de l'avertissement : centré, icône « attention » dorée (badges qualité de l'app) */
/* Paiement réussi : même fenêtre d'état, étapes suivantes numérotées */
.status-page.done h1 { margin: 0; font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.status-page.done .device-chip { margin: 2px 0 6px; }

/* Page introuvable : le lecteur de l'app figé à 4:04 (temps en chiffres à chasse fixe, barre de lecture du lecteur de
   films : remplissage terracotta, piste blanche à 30 %, curseur rond). Aucun mouvement. */
.notfound h1 { margin: 0; font-size: clamp(26px, 4vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.nf-player { display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: min(320px, 100%); margin: 4px 0 14px; }
.nf-time { font-size: clamp(64px, 16vw, 104px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; text-align: center; }
.nf-bar { position: relative; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.nf-fill { position: absolute; inset-block: 0; left: 0; width: 40%; border-radius: 2px; background: var(--accent); }
.nf-thumb { position: absolute; top: 50%; left: 40%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 6px; }
.nf-links a { font-size: 14px; color: var(--text-2); text-decoration: none; }
.nf-links a:hover, .nf-links a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.next { width: 100%; max-width: 380px; margin: 8px 0 4px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .05); text-align: start; }
.next h2 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.next ol { display: grid; gap: 8px; margin: 0; padding-inline-start: 20px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.next li::marker { color: #fff; font-weight: 700; }
.status-page .enjoy { margin: 6px 0 4px; font-weight: 700; color: #fff; }
/* Le logo passe Pro : NEXUS PLAYER centré (groupe décalé de --s), puis le groupe se recentre pendant que PRO coulisse
 * hors d'une fente à droite du logo, de gauche à droite ; reflet terracotta, coche verte et gerbe. Transformations et
 * opacité seulement (aucune mise en page animée). Joué une fois (≈ 3,4 s), miroir en arabe. --s : success.js. */
.success-logo { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 380px; height: 150px; overflow: hidden; border-radius: 16px; background: #0a0a0e; }
.sl-group { --s: 35px; display: inline-flex; align-items: center; gap: 16px; transform: translateX(var(--s)); animation: sl-center 1.1s cubic-bezier(.45, 0, .2, 1) forwards 1s; will-change: transform; }
[dir="rtl"] .sl-group { --s: -35px; }
.success-logo .logo { font-size: 38px; opacity: 0; animation: sl-logo .8s ease-out forwards .15s; }
.sl-pw { position: relative; display: inline-flex; }
.sl-clip { display: inline-flex; overflow: hidden; border-radius: 999px; }
.sl-pro { position: relative; display: inline-flex; align-items: center; height: 28px; padding: 0 13px; overflow: hidden; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: .06em; transform: translateX(-105%); animation: sl-slide 1s cubic-bezier(.3, 0, .2, 1) forwards 1.1s; will-change: transform; }
[dir="rtl"] .sl-pro { transform: translateX(105%); }
.sl-pro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(184, 92, 56, .45) 50%, transparent 70%); transform: translateX(-120%); animation: sl-shine 1.2s ease forwards 2.15s; }
.sl-ok { position: absolute; top: -8px; inset-inline-end: -8px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #22c55e; opacity: 0; transform: scale(.3); animation: sl-pop .6s cubic-bezier(.2, 1.4, .4, 1) forwards 2.4s; }
.sl-ok .ic { width: 13px; height: 13px; color: #0b0b0f; }
.sl-burst { position: absolute; top: 2px; inset-inline-end: 2px; width: 0; height: 0; }
.sl-burst i { position: absolute; top: 0; left: 0; width: 2px; height: 7px; margin-left: -1px; border-radius: 1px; background: #4ade80; opacity: 0; transform-origin: 50% 0; transform: rotate(var(--a)) translateY(12px) scaleY(0); animation: sl-ray .8s ease-out forwards 2.5s; }
@keyframes sl-logo { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sl-center { to { transform: none; } }
@keyframes sl-slide { to { transform: none; } }
@keyframes sl-shine { to { transform: translateX(120%); } }
@keyframes sl-pop { 70% { opacity: 1; transform: scale(1.15); } to { opacity: 1; transform: none; } }
@keyframes sl-ray { 0% { opacity: 1; transform: rotate(var(--a)) translateY(12px) scaleY(0); } 55% { opacity: 1; transform: rotate(var(--a)) translateY(15px) scaleY(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(22px) scaleY(.4); } }
@media (max-width: 400px) { .success-logo .logo { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) {
  .sl-group, .sl-pro, .success-logo .logo, .sl-ok { opacity: 1; transform: none; animation: none; }
  .sl-pro::after, .sl-burst { display: none; }
}
#cmTitle { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
#cmTitle .ic { width: 24px; height: 24px; color: var(--gold-2); }

/* Composants propres au téléphone (affichés sous 760 px) */
.step-cards { display: none; }

/* ---------- Téléphone et petite tablette ---------- */
@media (max-width: 960px) {
  :root { --nav-h: 56px; }
  /* Barre flottante en verre, comme sur grand écran : logo, langue, menu (pastilles assorties) */
  .nav { top: 10px; }
  .nav-bar { grid-template-columns: 1fr auto; width: calc(100% - 20px); padding-inline: 18px 8px; }
  .nav.is-scrolled .nav-bar, .nav.is-open .nav-bar { background: rgba(16, 16, 21, .96); }
  .nav-tabs, .nav-cta, .nav-end .lang { display: none; }
  .menu-btn { display: grid; place-content: center; gap: 5px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); cursor: pointer; }
  .menu-btn span { display: block; width: 17px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s ease, width .25s ease; }
  .nav.is-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  /* Menu : panneau arrondi sous la barre, page assombrie derrière */
  .menu-veil { display: block; position: fixed; inset: 0; z-index: 0; background: rgba(0, 0, 0, .6); pointer-events: auto; animation: fade .2s ease; }
  .menu {
    pointer-events: auto;
    position: fixed;
    z-index: 1;
    top: calc(20px + var(--nav-h));
    inset-inline: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100dvh - var(--nav-h) - 40px);
    padding: 8px 20px 20px;
    overflow-y: auto;
    border-radius: 28px;
    background: var(--sheet-tv);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    animation: menu-in .26s cubic-bezier(.2, .8, .2, 1);
  }
  .menu-links { display: flex; flex-direction: column; }
  .menu-links a { position: relative; display: flex; align-items: center; justify-content: center; padding: 16px 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-align: center; }
  .menu-links a + a { border-top: 1px solid var(--line); }
  .menu-links a[aria-current]::after { content: ""; width: 7px; height: 7px; margin-inline-start: 12px; border-radius: 50%; background: var(--accent); }
  .menu-lang { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .menu-lang-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 2px; border: 0; background: none; cursor: pointer; }
  .menu-label { font-size: 14px; font-weight: 600; color: var(--text-3); }
  .menu-lang-cur { display: inline-flex; align-items: center; gap: 10px; margin-inline-start: auto; font-size: 15px; font-weight: 600; color: #fff; }
  .menu-lang-btn .ic { width: 16px; height: 16px; color: var(--text-2); transition: transform .2s; }
  .menu-lang-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .menu-lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; padding: 0 0 14px; list-style: none; }
  .menu-lang-list a { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--chip); font-size: 14.5px; font-weight: 600; color: var(--pill-text); }
  .menu-lang-list a[aria-current] { background: #fff; color: var(--ink); }
  .menu-cta { align-self: center; margin-top: 4px; }
  /* Boutons plus compacts sur petit écran */
  .btn { --h: 44px; padding: 0 20px; font-size: 14.5px; }
  .btn .ic { width: 18px; height: 18px; }
  html.menu-open { overflow: hidden; }
  .hero { padding-top: calc(var(--nav-h) + 34px); }
  .stage { aspect-ratio: 1 / .84; margin-top: 44px; }
  .stage .tv { left: 0; width: 100%; }
  .stage .mac { left: -2%; bottom: 0; width: 58%; }
  .stage .tablet { display: none; }   /* place au Mac : TV, Mac et téléphone */
  .stage .phone { right: 1%; bottom: 0; width: 25%; }
  .rail { grid-template-columns: 1fr; gap: 30px; }
  .rail-line { top: 28px; bottom: 28px; inset-inline: 27px auto; width: 2px; height: auto; }
  .rail-dot { display: none; }
  .rail li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; row-gap: 4px; align-items: start; text-align: start; }
  .rail li .node { grid-row: 1 / span 4; }
  .rail li .step-tag { justify-self: start; margin-top: 6px; }
  .rail li > :not(.node) { grid-column: 2; }
  .note { justify-content: flex-start; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature .media { order: 2; }
  .player { border-radius: 14px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-tv { grid-template-columns: 1fr; }
  .pro-side { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; justify-self: center; }
  .pro-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .store-group { padding-inline: 0; }
  .store-group + .store-group { border-inline-start: 0; }
  .store-groups { flex-direction: column; align-items: center; }
  .store-chip { --logo: 20px; height: 46px; padding: 0 16px; }
  .features { grid-template-columns: 1fr; width: fit-content; margin-inline: auto; }   /* liste centrée, icônes alignées */
  .pro-tv > div:first-child { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .platforms-band .store-group { padding-inline: 0; }
  .platforms-band .store-chip { --logo: 24px; height: 56px; padding: 0 20px; }
  .where-body { grid-template-columns: 1fr; justify-items: center; }
  .modal { place-items: end center; padding: 0; }
  .modal-card { width: 100%; border-radius: 24px 24px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* ---------- Téléphone : une vraie mise en page mobile ---------- */
@media (max-width: 760px) {
  .section { padding-block: 56px; }
  .band { padding-block: calc(56px + 4vw); }
  .feature, .feature.flip { gap: 30px; }

  /* Héros : texte, boutons et icônes de store ; pas d'appareils sur téléphone */
  .hero { padding-top: calc(var(--nav-h) + 30px); padding-bottom: 8px; }
  .hero .stage { display: none; }
  .hero-in { gap: 20px; }

  /* Étapes : cartes à faire défiler, chacune avec une mini-interface de l'app */
  .rail-wrap { display: none; }
  .step-cards { display: block; margin-top: 32px; }
  /* Cartes centrées dans l'écran : la voisine dépasse des deux côtés */
  .step-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 84vw; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 0 8vw; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .step-track::-webkit-scrollbar { display: none; }
  .step-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 22px; border-radius: 24px; background: var(--sheet); scroll-snap-align: center; }
  .step-card .n { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text-3); }
  .step-card h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
  .step-card p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
  .step-card .step-tag { align-self: flex-start; margin-top: 6px; }
  .sc-art { display: grid; place-items: center; height: 148px; border-radius: 18px; background: #0a0a0e; }
  /* Bouton « Installer » à la ligne quand le nom de l'app et lui ne tiennent plus côte à côte (écrans étroits) */
  .sc-store { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; width: 88%; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
  .sc-store img { width: 48px; height: 48px; border-radius: 12px; }
  .sc-store b { display: block; font-size: 14px; font-weight: 700; }
  .sc-store small { font-size: 12px; color: var(--text-2); }
  .sc-get { margin-inline-start: auto; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; }
  .sc-code { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .sc-code small { font-size: 12px; font-weight: 600; color: var(--text-2); }
  .sc-code span { display: flex; gap: 6px; direction: ltr; }
  .sc-code b { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: 17px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
  .sc-code b:last-child { box-shadow: inset 0 0 0 1.5px #fff; }        /* case en cours : focus blanc de la TV */
  .sc-play { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 80%; }
  .sc-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; }
  .sc-btn .ic { width: 16px; height: 16px; }
  .sc-bar { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); direction: ltr; }
  .sc-bar i { position: absolute; inset-block: 0; left: 0; width: 38%; border-radius: 2px; background: var(--accent-2); }
  .step-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
  .step-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .2); transition: width .25s, background-color .25s; }
  .step-dots i.is-on { width: 18px; background: var(--accent); }

  /* Fonctions : un seul appareil, en grand */
  .combo { aspect-ratio: auto; display: flex; justify-content: center; }
  .combo > * { position: static; }
  .combo-phones .a, .combo-tablet .phone, .combo-tv .phone, .combo-mac .phone, .combo-profiles .mac, .combo-profiles .phone { display: none; }
  .combo-phones .b { width: 64%; }
  .combo-tablet .tablet, .combo-tv .tv, .combo-mac .mac, .combo-profiles .tv { width: 100%; transform: none; }
  /* Chromecast : le téléphone et sa télécommande restent devant la TV (« Lancez en petit, regardez en grand ») */
  .combo.combo-cast { display: block; aspect-ratio: 1 / .8; }
  .combo-cast > * { position: absolute; }
  .combo-cast .tv { right: 0; top: 0; width: 92%; }
  .combo-cast .phone { display: block; left: 0; bottom: 0; width: 31%; z-index: 2; }

  /* Texte d'abord, image ensuite, y compris dans les sections inversées sur grand écran */
  .feature .media, .feature.flip .media { order: 2; }

  /* Plateformes (haut et bas de page) : grilles droites */
  .stores { align-self: stretch; }
  .store-groups { width: 100%; gap: 18px; }
  .store-group { width: 100%; }
  .store-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .store-group:first-child .store-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 68%; margin-inline: auto; }
  .store-group:has(.mac-chip) .store-chips { grid-template-columns: minmax(0, 1fr); width: 34%; margin-inline: auto; }
  .store-chip { min-width: 0; padding: 0 10px; }
  .store-chip:has(.wide) { min-width: 0; }
  .store-chip img { max-width: 100%; object-fit: contain; }   /* colonne trop étroite : le logo rétrécit sans s'écraser */
  .platforms-band .store-groups { gap: 22px; }
  .platforms-band .store-chip { --logo: 22px; height: 54px; }

  /* Accueil et page Pro : tous les textes centrés (demande du user, 23/10), sauf « Où trouver mon identifiant » ;
     le portail revendeur, qui emploie les mêmes blocs, garde son alignement */
  [data-page="home"] .copy, [data-page="pro"] .pro-intro { align-items: center; text-align: center; }
  [data-page="home"] .copy .pills { justify-content: center; }
  [data-page="home"] .step-card { align-items: center; text-align: center; }
  [data-page="home"] .step-card .step-tag { align-self: center; }
  /* Icône dans la ligne, au début du texte centré (sinon, sur deux lignes, elle reste collée au bord) */
  [data-page="home"] .note, [data-page="pro"] .aside-note, [data-page="pro"] .trial { display: block; text-align: center; }
  [data-page="home"] .note .ic, [data-page="pro"] .aside-note .ic, [data-page="pro"] .trial .ic { display: inline-block; margin-inline-end: 6px; vertical-align: -3px; }
  [data-page="pro"] .form-sheet { text-align: center; }
  [data-page="pro"] .form-sheet .where { text-align: start; }
}
@media (max-width: 380px) {
  .store-chip, .platforms-band .store-chip { padding: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rail-dot { display: none; }
}

/* ---------- Envoyer une playlist ---------- */
.link-wrap { width: min(620px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.link-wrap .pay-head .lead { max-width: 46ch; margin: 0; }
.tag-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 600; color: var(--text-2); }
/* Étapes : pastilles numérotées reliées par un trait */
.stepper { display: flex; align-items: center; gap: 10px; margin: 0 auto 22px; max-width: 460px; }
.step-indicator { display: flex; align-items: center; gap: 8px; flex: none; font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--chip); font-size: 13px; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.step-indicator.active { color: #fff; }
.step-indicator.active .step-number { background: #fff; color: var(--ink); }
.step-indicator.completed { color: var(--text-2); }
.step-indicator.completed .step-number { background: rgba(34, 197, 94, .16); color: #4ade80; }
.step-line { flex: 1; height: 2px; min-width: 12px; border-radius: 1px; background: rgba(255, 255, 255, .1); }
.step-line.completed { background: rgba(74, 222, 128, .55); }
/* Fenêtre et étapes */
.link-sheet { padding: clamp(20px, 3vw, 30px); }
.link-sheet h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.link-sheet .sub { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.step-device h2, .step-device .sub { text-align: center; }   /* « Connectez votre TV » centré */
.link-sheet .hint { margin: 10px 0 18px; font-size: 13px; text-align: center; color: var(--text-3); }
.step-content { display: none; }
.step-content.active { display: block; }
.form-error.show { display: block; }
.form-error { margin: 0 0 14px; }
.btn .spinner { width: 20px; height: 20px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Appareil connecté */
.dev-row { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 22px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.dev-row .ri, .pl-empty .ri, .upgrade .ri { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--chip); }
.dev-row .ri .ic, .pl-empty .ri .ic, .upgrade .ri .ic { width: 21px; height: 21px; }
.dev-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dev-info b { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }   /* nom long sans espace : coupé (plan 4b) */
.dev-info small { white-space: nowrap; font-size: 13px; color: var(--text-2); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.dev-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: #4ade80; }
.dev-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
/* Liste des playlists : lignes de réglages de l'app */
.pl-head { display: flex; align-items: center; gap: 10px; }
.link-sheet .pl-head { margin-bottom: 12px; font-size: 17px; }
.pl-head .count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--chip); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pl-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 14px; }   /* colonne bornée : les noms longs se terminent par « … » */
.pl-row { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.pl-type { display: grid; place-items: center; flex: none; min-width: 44px; padding: 0 6px; height: 30px; border-radius: 8px; background: var(--chip); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.pl-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pl-info b { overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pl-info small { overflow: hidden; font-size: 12.5px; color: var(--text-3); text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.pl-btn { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; transition: background-color .15s, color .15s; }
.pl-btn .ic { width: 19px; height: 19px; }
.pl-btn:hover, .pl-btn:focus-visible { background: #fff; color: var(--ink); outline: none; }
.pl-btn.danger:hover, .pl-btn.danger:focus-visible { background: #ef4444; color: #fff; }
.pl-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px; margin-bottom: 14px; border-radius: 16px; border: 1.3px dashed rgba(255, 255, 255, .16); text-align: center; }
.pl-empty b { margin-top: 6px; font-size: 16px; }
.pl-empty small { max-width: 34ch; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.upgrade { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.upgrade > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.upgrade b { font-size: 15px; }
.upgrade small { font-size: 13px; color: var(--text-2); }
/* Formulaire : types en pastilles, champs, mot de passe masqué */
.type-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.type-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border: 1.5px solid transparent; border-radius: 14px; background: rgba(255, 255, 255, .05); color: #fff; font: inherit; text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.type-card b { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }   /* « MAG/Stalker » sur deux lignes si la place manque */
.type-card small { font-size: 12px; color: var(--text-3); }
.type-card.selected { border-color: #fff; background: rgba(255, 255, 255, .09); }
.type-card:focus-visible { outline: none; border-color: #fff; }
.type-card:disabled { opacity: .35; cursor: not-allowed; }   /* modification : le type de la playlist ne change pas */
.form-grid { display: grid; gap: 14px; margin-bottom: 20px; }
.form-group.field-hidden { display: none; }
.field-error { display: none; margin-top: 6px; font-size: 13px; color: #f87171; }
.field-error.show { display: block; }
input.field.input-error { border-color: #ef4444; }
.pw { position: relative; }
.pw input.field { padding-inline-end: 96px; }
.pw-toggle { position: absolute; top: 50%; inset-inline-end: 8px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--chip); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; transform: translateY(-50%); cursor: pointer; }
.pw-toggle:focus-visible { outline: none; background: #fff; color: var(--ink); }
/* Confirmation de suppression, bouton rouge */
.confirm-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.confirm-card .status-icon { margin-bottom: 12px; }
.modal .confirm-card .modal-actions { width: 100%; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-danger:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
/* Notifications en bas d'écran */
.toast-container { position: fixed; inset-inline: 0; bottom: 20px; z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; pointer-events: none; }
.toast-container .toast { display: flex; align-items: center; gap: 12px; width: min(420px, 100%); padding: 12px 12px 12px 14px; border-radius: 16px; background: #1c1c24; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); pointer-events: auto; animation: toast-in .3s cubic-bezier(.2, .8, .2, 1); }
.toast-container .toast.toast-out { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.toast-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; }
.toast-icon .ic { width: 16px; height: 16px; }
.toast-icon.success { background: rgba(34, 197, 94, .16); color: #4ade80; }
.toast-icon.error { background: rgba(239, 68, 68, .16); color: #f87171; }
.toast-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.toast-body b { font-size: 14.5px; }
.toast-body span { font-size: 13px; color: var(--text-2); }
.toast-close { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); cursor: pointer; }
.toast-close .ic { width: 15px; height: 15px; }
/* Comment ça marche */
.how { margin-top: 90px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 40px 0 0; padding: 0; list-style: none; }
.how-grid li { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.how-grid .n { font-size: 13px; font-weight: 600; color: var(--text-3); }
.how-grid h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.how-grid p { max-width: 30ch; margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 760px) {
  .how-grid { grid-template-columns: 1fr; gap: 30px; }
  .step-label { display: none; }
  .step-indicator.active .step-label { display: inline; }
}
@media (max-width: 420px) { .type-card { padding: 10px 4px; } .type-card b { font-size: 13px; } }
@media (max-width: 380px) { .dev-row { gap: 10px; padding: 12px; } .dev-row .ri { width: 38px; height: 38px; } .dev-info small { font-size: 12.5px; letter-spacing: 0; } .type-card b { font-size: 12.5px; }
  .link-sheet { padding: 16px; } .pl-row { gap: 8px; padding: 10px; } .pl-type { min-width: 38px; padding: 0 4px; height: 28px; } .pl-btn { width: 32px; height: 32px; } .pl-btn .ic { width: 17px; height: 17px; } }

/* ---------- Pages légales : colonne de lecture, sommaire des articles ---------- */
/* Largeur du texte en px, pas en ch : en ch elle changeait quand Inter remplaçait la police de secours (728 → 578 px)
 * et la grille centrée sautait au chargement */
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 580px); justify-content: center; gap: 56px; width: min(1100px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; max-height: calc(100vh - var(--nav-h) - 60px); overflow: auto; font-size: 13.5px; }
.legal-toc b { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.legal-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.legal-toc a { display: block; padding: 6px 10px; border-radius: 8px; line-height: 1.35; color: var(--text-2); }
.legal-toc a:hover, .legal-toc a:focus-visible { background: var(--chip); color: #fff; outline: none; }
.legal { min-width: 0; font-size: 16px; line-height: 1.7; color: var(--text-2); overflow-wrap: break-word; }
.legal h1 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.legal h2 { margin: 44px 0 12px; scroll-margin-top: calc(var(--nav-h) + 30px); font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; color: #fff; }
.legal h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 700; color: #fff; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-inline-start: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: #fff; font-weight: 700; }
.legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 14.5px; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.legal th { color: #fff; }
.legal .legal-note, .legal .important-notice, .legal .highlight-box { margin: 32px 0 16px; padding: 18px 20px; border-radius: 16px; background: var(--sheet); }
@media (max-width: 960px) {
  .legal-wrap { grid-template-columns: minmax(0, 580px); }
  .legal-toc { display: none; }   /* téléphone et tablette : articles numérotés, pas de sommaire */
}

/* Portail revendeur : son balisage est en anglais et ses scripts le traduisent après le script Stripe (bloquant) ;
 * quand la langue choisie n'est pas l'anglais, la page reste masquée jusqu'à la traduction (site.js retire la classe),
 * et réapparaît de toute façon après 1,5 s si un script échoue */
html.i18n-wait body { visibility: hidden; animation: i18n-show 0s linear 1.5s forwards; }
@keyframes i18n-show { to { visibility: visible; } }
