/* lumen-tv.app — les couleurs, le verre et les ressorts sont ceux des applis (Theme.kt, Glass.kt, Motion.kt). */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #141414;
  --surface: #232323;
  --text: #fff;
  --text-2: #bcbcbc;
  --text-3: #8a8a8a;
  --accent: #ff8a3d;
  --ember: #ff7a2f;
  --light: #ffb547;
  --flame: #fff6d6;
  --good: #30d158;
  --fair: #ff9f0a;
  --poor: #ff453a;

  --glass: linear-gradient(180deg, rgb(255 255 255 / .11), rgb(255 255 255 / .045));
  --glass-line: rgb(255 255 255 / .13);
  --glass-shine: inset 0 1px 0 rgb(255 255 255 / .16), inset 0 -1px 0 rgb(255 255 255 / .03);
  --glass-blur: blur(26px) saturate(170%);

  /* Les ressorts de Motion.kt (amortissement, raideur), échantillonnés pour CSS. */
  --spring-focus: linear(0, .0344, .122, .2421, .3775, .5151, .6454, .7618, .8608, .9408, 1.0019, 1.0456, 1.074, 1.0895, 1.0947, 1.0923, 1.0846, 1.0735, 1.0608, 1.0477, 1.0352, 1.024, 1.0144, 1.0065, 1.0005, .9961, .9933, .9917, .991, .9912, .9919, .9929, .9941, .9953, .9965, .9976, 1);
  --spring-settle: linear(0, .0187, .0662, .1319, .2079, .2883, .3689, .4468, .52, .5876, .6487, .7033, .7515, .7935, .8298, .8609, .8872, .9094, .9279, .9432, .9558, .966, .9743, .9809, .9862, .9903, .9935, .9959, .9977, .999, 1, 1.0007, 1.0011, 1.0014, 1.0015, 1.0015, 1);
  --spring-glide: linear(0, .0201, .0725, .1467, .2342, .328, .423, .5152, .6018, .681, .7516, .8132, .8658, .9098, .9457, .9742, .9963, 1.0127, 1.0243, 1.032, 1.0364, 1.0382, 1.0382, 1.0366, 1.0341, 1.0309, 1.0274, 1.0237, 1.0201, 1.0167, 1.0135, 1.0107, 1.0082, 1.006, 1.0042, 1.0026, 1);
  --spring-screen: linear(0, .0236, .0825, .1626, .2534, .3472, .4391, .5255, .6044, .6749, .7365, .7895, .8343, .8718, .9025, .9275, .9474, .9631, .9753, .9846, .9915, .9965, 1, 1.0023, 1.0038, 1.0046, 1.005, 1.005, 1.0048, 1.0044, 1.004, 1.0035, 1.0031, 1.0026, 1.0022, 1.0018, 1);
  --t-focus: 490ms;
  --t-settle: 420ms;
  --t-glide: 440ms;
  --t-screen: 520ms;
  --t-press: 220ms;

  --gutter: clamp(16px, 4.2vw, 56px);
  --wrap: min(1200px, 100% - 2 * var(--gutter));
  --radius-tv: clamp(10px, 1.3vw, 20px);
  --section-gap: clamp(112px, 15vw, 220px);

  --fs-body: clamp(1rem, .94rem + .25vw, 1.125rem);
  --fs-lead: clamp(1.15rem, 1rem + .62vw, 1.5rem);
  --fs-h3: clamp(1.45rem, 1.15rem + 1.05vw, 2.05rem);
  --fs-display: clamp(2.55rem, 1.35rem + 4.6vw, 5rem);
  --fs-display-sm: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
}

@supports not (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-focus: cubic-bezier(.34, 1.36, .5, 1);
    --spring-settle: cubic-bezier(.22, 1, .36, 1);
    --spring-glide: cubic-bezier(.3, 1.2, .45, 1);
    --spring-screen: cubic-bezier(.22, 1, .36, 1);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: var(--fs-body);
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
::selection { background: rgb(255 138 61 / .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 16px; top: -64px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--t-settle) var(--spring-settle);
}
.skip:focus { top: 16px; }

/* Le fond des applis : trois lueurs (indigo, cyan, braise) sur #141414. */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55vmax 55vmax at 12% 8%, rgb(61 90 254 / .30), transparent 70%),
    radial-gradient(45vmax 45vmax at 60% 45%, rgb(38 198 218 / .13), transparent 70%),
    radial-gradient(50vmax 50vmax at 92% 95%, rgb(255 122 47 / .22), transparent 70%),
    var(--bg);
}

/* ---------- Logo ---------- */

.wm {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -.04em;
}
.wm b { font-weight: 700; }
.wm span {
  font-weight: 300;
  letter-spacing: -.01em;
  color: rgb(255 255 255 / .74);
  margin-left: .02em;
}
.dot {
  display: inline-block;
  flex: none;
  width: .135em;
  height: .135em;
  margin-left: .05em;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, var(--flame), var(--light) 52%, var(--ember));
  box-shadow: 0 0 .3em .06em rgb(255 138 61 / .6);
}
.dot-lit { position: relative; }
.dot-lit::after {
  content: "";
  position: absolute;
  inset: -240%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 181 71 / .5), rgb(255 138 61 / .14) 55%, transparent);
  pointer-events: none;
}

.wm-xl { font-size: clamp(4.4rem, 1.6rem + 11.5vw, 11.25rem); }
.wm-lg { font-size: clamp(3.6rem, 1.4rem + 8.6vw, 8.5rem); }
.wm-md { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); }
.wm-sm { font-size: 1.6rem; }

/* ---------- Boutons ---------- */

.btn {
  --pad-y: .82em;
  --pad-x: 1.45em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: var(--pad-y) var(--pad-x);
  border: 0;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    scale var(--t-press) var(--spring-settle),
    background-color .25s ease,
    box-shadow .3s ease;
}
.btn:active { scale: .965; }
.btn-light {
  background: #fff;
  color: #0b0b0c;
  box-shadow: 0 10px 30px -10px rgb(255 255 255 / .35);
}
.btn-light:hover { background: #f1efe9; }
.btn-glass {
  background: var(--glass);
  color: #fff;
  box-shadow: var(--glass-shine), 0 0 0 1px var(--glass-line);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.btn-glass:hover { background: linear-gradient(180deg, rgb(255 255 255 / .17), rgb(255 255 255 / .07)); }
.btn-small { min-height: 38px; --pad-y: .55em; --pad-x: 1.05em; font-size: .9375rem; }
.btn-wide { width: 100%; }
.btn.is-unavailable { opacity: .45; cursor: default; pointer-events: none; box-shadow: none; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: .32em .8em;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--light);
  background: rgb(255 138 61 / .12);
  box-shadow: inset 0 0 0 1px rgb(255 138 61 / .32);
}

.muted { color: var(--text-3); }

/* ---------- Barre du haut : la capsule d'onglets de LumenTV ---------- */

.bar {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}
.bar-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(40 40 44 / .62), rgb(24 24 27 / .5));
  box-shadow: var(--glass-shine), 0 0 0 1px var(--glass-line), 0 12px 40px -12px rgb(0 0 0 / .6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.bar-logo {
  display: flex;
  align-items: center;
  height: 38px;
  padding-right: 8px;
  font-size: 1.45rem;
  text-decoration: none;
  border-radius: 999px;
}
.bar-nav { position: relative; }
.tabs {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tabs a {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.tabs a:hover { color: #fff; background: rgb(255 255 255 / .07); }
.tabs a[aria-current="true"] { color: #fff; }
.tabs a:focus-visible { outline: none; background: #fff; color: #000; }
.tabs-dot, .pill-tabs-dot {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, var(--flame), var(--light) 55%, var(--ember));
  box-shadow: 0 0 8px 2px rgb(255 138 61 / .6);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--t-glide) var(--spring-glide),
    opacity .3s ease;
}
.tabs-dot.is-on, .pill-tabs-dot.is-on { opacity: 1; }
.tabs-dot.no-anim, .pill-tabs-dot.no-anim { transition: opacity .3s ease; }

@media (max-width: 560px) {
  .bar-cta { display: none; }
  .bar-inner { padding-right: 6px; }
}
@media (max-width: 470px) {
  .bar-logo { display: none; }
  .bar-inner { padding-left: 6px; }
  .tabs a { padding: 0 10px; font-size: .875rem; }
}

/* ---------- Ouverture ---------- */

.hero {
  width: var(--wrap);
  margin: 0 auto;
  padding-top: clamp(120px, 15vh, 168px);
  text-align: center;
}
.hero-title { display: flex; justify-content: center; margin-bottom: clamp(18px, 2.4vw, 30px); }
.hero-lead {
  max-width: 30em;
  margin: 0 auto;
  font-size: var(--fs-lead);
  line-height: 1.42;
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 36px);
}
.hero-note {
  margin-top: 16px;
  font-size: .9375rem;
  color: var(--text-3);
}

/* La TV : un cadre fin, et la lumière de l'écran qui déborde dans la pièce. */
.tv {
  position: relative;
  padding: clamp(3px, .45vw, 7px);
  border-radius: var(--radius-tv);
  background: linear-gradient(180deg, #1d1d20, #0b0b0c);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / .09),
    inset 0 1px 0 rgb(255 255 255 / .08),
    0 30px 80px -24px rgb(0 0 0 / .85);
}
.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius-tv) - clamp(3px, .45vw, 7px));
  background: #000;
}
.tv-screen > img { width: 100%; height: 100%; object-fit: cover; }

.stage {
  position: relative;
  margin-top: clamp(56px, 7vw, 92px);
}
.tv-stage { z-index: 1; }
.tv-ambient {
  position: absolute;
  inset: -3% -6% -10%;
  z-index: -1;
  pointer-events: none;
}
.tv-ambient img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(clamp(36px, 6vw, 90px)) saturate(1.5);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s ease;
}
.tv-ambient img.is-on { opacity: .62; }

.tv-stage .tv-screen { display: grid; }
.screen {
  grid-area: 1 / 1;
  transition:
    opacity .45s ease,
    transform var(--t-screen) var(--spring-screen);
}
.screen img { width: 100%; height: 100%; object-fit: cover; }
.js .screen:not(.is-on) { opacity: 0; transform: scale(1.025); }
.screen[hidden] { display: block; }
.no-js .screen[hidden] { display: none; }

.stage-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: clamp(26px, 3vw, 38px);
}
.no-js .pill-tabs { display: none; }
.pill-tabs {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  padding: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .04));
  box-shadow: var(--glass-shine), 0 0 0 1px var(--glass-line);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.pill-tabs button {
  position: relative;
  min-height: 44px;
  padding: 0 clamp(14px, 2.4vw, 24px);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: clamp(.9375rem, .88rem + .3vw, 1.0625rem);
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: color .2s ease, background-color .25s ease, scale var(--t-press) var(--spring-settle);
}
.pill-tabs button:hover { color: #fff; }
.pill-tabs button[aria-selected="true"] { color: #fff; background: rgb(255 255 255 / .13); }
.pill-tabs button:active { scale: .96; }
.pill-tabs button:focus-visible { outline: none; background: #fff; color: #000; }
.pill-tabs-dot { bottom: 6px; }
.stage-caption {
  min-height: 1.6em;
  max-width: 34em;
  color: var(--text-2);
  font-size: 1.0625rem;
  transition: opacity .25s ease;
}
.stage-caption.is-swapping { opacity: 0; }

/* Le moment d'ouverture : le point s'allume, le nom apparaît, puis la TV s'allume. */
@keyframes dot-ignite {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes halo-bloom {
  0% { transform: scale(.2); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(.35em); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes rise-px {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes tv-on {
  0% { opacity: 0; transform: translateY(26px) scale(.97); filter: brightness(.25); }
  55% { filter: brightness(1.05); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes glow-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes breathe {
  0%, 100% { opacity: .85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.js .hero .wm-xl .dot { animation: dot-ignite var(--t-focus) var(--spring-focus) .1s both; }
.js .hero .wm-xl .dot::after { animation: halo-bloom 1.2s cubic-bezier(.2, .8, .2, 1) .15s both, breathe 6s ease-in-out 1.6s infinite; }
.js .hero .wm-xl b { animation: rise .9s var(--spring-settle) .3s both; }
.js .hero .wm-xl span { animation: rise .9s var(--spring-settle) .4s both; }
.js .hero-lead { animation: rise-px .8s var(--spring-settle) .55s both; }
.js .hero-actions { animation: rise-px .8s var(--spring-settle) .63s both; }
.js .hero-note { animation: rise-px .8s var(--spring-settle) .7s both; }
.js .tv-stage { animation: tv-on 1.2s var(--spring-screen) .72s both; }
.js .tv-ambient { animation: glow-in 1.6s ease-out 1.05s both; }
.js .stage-controls { animation: rise-px .8s var(--spring-settle) 1s both; }

/* ---------- Sections ---------- */

.section {
  width: var(--wrap);
  margin: var(--section-gap) auto 0;
}
.section-head { max-width: 46rem; margin-bottom: clamp(56px, 7vw, 96px); }
.section-head-center { margin-inline: auto; text-align: center; }
.display {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 600;
}
.display-sm {
  font-size: var(--fs-display-sm);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 600;
}
.lead {
  margin-top: 20px;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--text-2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.12;
  letter-spacing: -.022em;
}
.feature-text p, .duo-item p, .setup-text p, .os-features p, .plus-points p {
  margin-top: 14px;
  color: var(--text-2);
  max-width: 34em;
}

/* Une idée par rangée : l'image d'un côté, le texte de l'autre. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.feature + .feature { margin-top: clamp(96px, 12vw, 168px); }
.feature-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature-flip .feature-visual { order: 2; }
.feature-text { max-width: 30rem; }

.version-visual { position: relative; padding-bottom: 8%; }
.poster-float {
  position: absolute;
  right: -3%;
  bottom: -4%;
  width: clamp(92px, 24%, 168px);
  margin: 0;
  border-radius: clamp(8px, 1vw, 14px);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 24px 60px -12px rgb(0 0 0 / .8);
  rotate: 4deg;
}

/* Le panneau réseau du lecteur, à l'identique (Signal.kt). */
.signal-scene {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-tv);
  overflow: hidden;
  background: #050506 url("/assets/img/shelf-tears.webp") center / cover;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .09), 0 30px 80px -24px rgb(0 0 0 / .85);
  container-type: inline-size;
}
.signal-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / .55), rgb(0 0 0 / .25) 50%, rgb(0 0 0 / .7));
}
.signal-scene::after {
  content: "";
  position: absolute;
  left: 6%; right: 6%; bottom: 7%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) 0 38%, rgb(255 255 255 / .22) 38%);
}
.signal {
  position: absolute;
  top: 6%;
  left: 5%;
  width: min(90%, 30rem);
  padding: clamp(12px, 3.4cqw, 20px) clamp(14px, 4cqw, 24px);
  border-radius: clamp(14px, 4cqw, 24px);
  background: linear-gradient(180deg, rgb(32 32 38 / .72), rgb(14 14 18 / .82));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 0 0 1px rgb(255 255 255 / .12);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  font-size: clamp(.78rem, 2.6cqw, 1rem);
}
.signal-row {
  display: grid;
  grid-template-columns: auto 5.6em 1fr;
  align-items: baseline;
  gap: .8em;
  padding: .28em 0;
}
.signal-row b { font-weight: 600; }
.signal-row span { color: var(--text-2); }
.signal hr {
  height: 1px;
  margin: .55em 0 .6em;
  border: 0;
  background: rgb(255 255 255 / .12);
}
.signal-verdict {
  display: flex;
  align-items: center;
  gap: .8em;
  font-weight: 600;
}
.signal-verdict strong { font-weight: 600; transition: color .4s ease; }
.lvl {
  display: inline-block;
  width: .62em;
  height: .62em;
  border-radius: 50%;
  translate: 0 -.05em;
  background: var(--good);
  transition: background-color .4s ease, box-shadow .4s ease;
}
.lvl[data-lvl="fair"] { background: var(--fair); }
.lvl[data-lvl="poor"] { background: var(--poor); }
.lvl[data-lvl="unknown"] { background: rgb(255 255 255 / .35); }
.signal-verdict .lvl { width: .72em; height: .72em; translate: 0; }
.signal-verdict[data-lvl="good"] strong { color: var(--good); }
.signal-verdict[data-lvl="fair"] strong { color: var(--fair); }
.signal-verdict[data-lvl="poor"] strong { color: var(--poor); }
.signal .swap { animation: swap-in .5s var(--spring-settle) both; }
@keyframes swap-in {
  from { opacity: 0; transform: translateY(.35em); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}
.signal-verdict.pop { animation: pop var(--t-focus) var(--spring-focus) both; }
@keyframes pop {
  from { transform: scale(.94); }
  to { transform: scale(1); }
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 22px auto 0;
  padding: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / .06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
}
.segmented button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s ease, color .2s ease, scale var(--t-press) var(--spring-settle);
}
.segmented button:hover { color: #fff; }
.segmented button[aria-pressed="true"] { background: #fff; color: #000; font-weight: 600; }
.segmented button:active { scale: .96; }

/* Deux idées côte à côte. */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 6vw, 88px) clamp(28px, 4vw, 64px);
  margin-top: clamp(112px, 13vw, 180px);
}
.duo-item > h3 { margin-top: clamp(26px, 3vw, 36px); }

.diagram {
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius-tv);
  background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
}
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram text { font: 500 15px "Outfit", sans-serif; fill: var(--text-3); }
.q-grid line { stroke: rgb(255 255 255 / .08); stroke-width: 1; }
.q-net { fill: none; stroke: rgb(255 255 255 / .38); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.q-steps { fill: none; stroke: url(#q-line); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.q-dot { fill: var(--light); filter: drop-shadow(0 0 6px rgb(255 138 61 / .9)); }
.q-legend, .c-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: .875rem;
  color: var(--text-3);
}
.q-legend span { display: inline-flex; align-items: center; gap: 8px; }
.q-legend span::before { content: ""; width: 18px; height: 0; border-top: 2px dotted rgb(255 255 255 / .5); }
.q-legend .q-legend-q::before { border-top: 3px solid var(--accent); border-radius: 2px; }
.c-judder rect { fill: rgb(255 255 255 / .1); stroke: rgb(255 255 255 / .22); }
.c-even rect { fill: rgb(255 138 61 / .7); stroke: rgb(255 181 71 / .9); }

/* Favoris et reprise. */
.resume-visual {
  position: relative;
  aspect-ratio: 16 / 9.6;
  border-radius: var(--radius-tv);
  background:
    radial-gradient(80% 90% at 15% 10%, rgb(61 90 254 / .28), transparent 70%),
    radial-gradient(70% 80% at 95% 100%, rgb(255 122 47 / .2), transparent 70%),
    #18181b;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
  overflow: hidden;
  container-type: inline-size;
}
.resume-card {
  position: absolute;
  left: 7%;
  top: 9%;
  width: 62%;
  aspect-ratio: 16 / 9;
  border-radius: 3.2cqw;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgb(255 255 255 / .9), 0 4cqw 8cqw -2cqw rgb(0 0 0 / .8);
}
.resume-card img { width: 100%; height: 100%; object-fit: cover; }
.resume-meta {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: .2em;
  padding: 3.5cqw 4cqw 3.6cqw;
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / .85));
  font-size: 3cqw;
  line-height: 1.2;
}
.resume-meta strong { font-size: 4.3cqw; font-weight: 600; }
.resume-meta > span:not(.tag):not(.progress) { color: var(--text-2); }
.tag {
  position: absolute;
  top: 3.2cqw;
  left: 3.6cqw;
  padding: .3em .7em;
  border-radius: 999px;
  background: rgb(0 0 0 / .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 2.2cqw;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.progress {
  position: relative;
  display: block;
  height: .9cqw;
  margin-top: 1.6cqw;
  border-radius: 1cqw;
  background: rgb(255 255 255 / .25);
  overflow: hidden;
}
.progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p) * 100%);
  background: var(--accent);
  border-radius: inherit;
}
.fav-chip {
  position: absolute;
  right: 6%;
  top: 14%;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .55em 1.1em;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 3.2cqw;
  font-weight: 600;
  box-shadow: 0 2cqw 5cqw -1cqw rgb(0 0 0 / .7);
}
.fav-row {
  position: absolute;
  right: 6%;
  bottom: 11%;
  width: 52%;
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  padding: 1.8cqw 2.6cqw;
  border-radius: 2.4cqw;
  background: linear-gradient(180deg, rgb(255 255 255 / .16), rgb(255 255 255 / .07));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 0 0 1px rgb(255 255 255 / .12), 0 3cqw 7cqw -2cqw rgb(0 0 0 / .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 3.2cqw;
  font-weight: 600;
}
.fav-row img { width: 12cqw; border-radius: 1cqw; background: #2b2b2e; }
.fav-row .fav-star { margin-left: auto; }
.fav-num { color: var(--text-3); font-weight: 500; }
.fav-star { color: var(--light); }

.tv-small .tv-screen > img { object-fit: cover; }

/* Configuration au téléphone. */
.setup {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  margin-top: clamp(112px, 13vw, 180px);
}
.setup-text p + p { margin-top: 14px; }
.setup-visual { position: relative; padding: 0 9% 12% 0; }
.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 31%;
  aspect-ratio: 9 / 19.2;
  padding: 2.4%;
  border-radius: 15% / 7.2%;
  background: linear-gradient(160deg, #3a3a3e, #121214 30%, #0b0b0c);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .16), inset 0 0 0 1px rgb(255 255 255 / .06), 0 40px 80px -20px rgb(0 0 0 / .9);
  container-type: inline-size;
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 13% / 6.2%;
  background: #141414;
  padding: 16cqw 6cqw 0;
}
.ph-island {
  position: absolute;
  top: 3.6cqw;
  left: 50%;
  width: 30cqw;
  height: 8.4cqw;
  translate: -50% 0;
  border-radius: 99px;
  background: #000;
}
.ph-logo { font-size: 9cqw; }
.ph-title { margin-top: 6cqw; font-size: 6.4cqw; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.ph-sub { margin-top: 2cqw; font-size: 4cqw; line-height: 1.35; color: #a8a8ad; }
.ph-card {
  margin-top: 5cqw;
  padding: 4.4cqw;
  border-radius: 5cqw;
  background: #1e1e21;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
}
.ph-profile { display: flex; align-items: center; gap: 3cqw; }
.ph-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 13cqw;
  height: 13cqw;
  border-radius: 3.6cqw;
  background: linear-gradient(180deg, #e0242c, #b0141c);
  font-size: 5.4cqw;
  font-weight: 700;
}
.ph-field {
  display: flex;
  align-items: center;
  height: 11cqw;
  padding: 0 3.6cqw;
  border-radius: 3cqw;
  background: #2a2a2e;
  color: #6e6e73;
  font-size: 4cqw;
  white-space: nowrap;
  overflow: hidden;
}
.ph-profile .ph-field { flex: 1; }
.ph-filled { color: #fff; }
.ph-seg {
  display: inline-flex;
  gap: 1cqw;
  margin: 4cqw 0 1cqw;
  padding: 1cqw;
  border-radius: 99px;
  background: #2a2a2e;
  font-size: 3.6cqw;
  font-weight: 600;
}
.ph-seg span { padding: 1.6cqw 3.4cqw; border-radius: 99px; color: #a8a8ad; }
.ph-seg .on { background: #fff; color: #000; }
.ph-label { margin: 2.6cqw 0 1.4cqw; font-size: 3.4cqw; color: #a8a8ad; }
.ph-button {
  position: absolute;
  left: 6cqw; right: 6cqw; bottom: 7cqw;
  display: grid;
  place-items: center;
  height: 13cqw;
  border-radius: 4.4cqw;
  background: #fff;
  color: #000;
  font-size: 4.4cqw;
  font-weight: 700;
}

/* Le point final. */
.private {
  margin-top: clamp(140px, 16vw, 240px);
  text-align: center;
}
.nowrap { white-space: nowrap; }
.private-title {
  font-size: clamp(2.7rem, 1.1rem + 6.6vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.private-title .dot { width: .15em; height: .15em; margin-left: .06em; }
.private-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(24px, 4vw, 56px);
  max-width: 1000px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  color: var(--text-2);
}
.private-list strong { display: block; margin-bottom: 6px; color: #fff; font-weight: 600; }

/* ---------- LumenOS ---------- */

.os .section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.os-title { display: flex; justify-content: center; }
.os-cta { margin-top: 28px; }

/* La démo : l'accueil LumenOS dessiné en unités de conteneur, pour garder ses proportions (1 cqw = 19,2 px sur la TV). */
.os-demo { max-width: 1160px; margin: 0 auto; }
.os-screen {
  container-type: inline-size;
  isolation: isolate;
  background-color: rgb(var(--tint) / .22);
  transition: background-color .45s ease;
}
.os-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 30%, transparent, rgb(10 10 12 / .55) 80%),
    linear-gradient(180deg, rgb(12 12 14 / .25), rgb(12 12 14 / .7));
}
.os-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7.4cqw;
  padding: 1.4cqw 5cqw 0;
}
.os-logo { font-size: 2.15cqw; }
.os-status { display: flex; align-items: center; gap: 1.1cqw; font-size: 1.9cqw; font-weight: 600; }
.os-ico { width: 1.5cqw; height: 1.5cqw; }
.os-round {
  display: grid;
  place-items: center;
  width: 2.6cqw;
  height: 2.6cqw;
  border-radius: 50%;
  background: rgb(255 255 255 / .12);
}
.os-time { margin-left: .5cqw; }

.os-shelf {
  position: relative;
  height: 21.8cqw;
  margin: 0 5cqw;
}
.shelf-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .35s ease, transform var(--t-screen) var(--spring-screen);
  pointer-events: none;
}
.shelf-pane.is-on { opacity: 1; transform: none; }
.shelf-pane[data-shelf="lumentv"] {
  display: flex;
  align-items: flex-end;
  gap: 1.6cqw;
  padding-bottom: .6cqw;
}
.shelf-card {
  position: relative;
  flex: none;
  width: 25cqw;
  aspect-ratio: 16 / 9;
  border-radius: 1cqw;
  overflow: hidden;
  background: #222;
  box-shadow: 0 1cqw 2.4cqw -.6cqw rgb(0 0 0 / .7);
  font-size: 1.15cqw;
}
.shelf-card img { width: 100%; height: 100%; object-fit: cover; }
.shelf-wide {
  width: 34cqw;
  box-shadow: 0 0 0 .18cqw rgb(255 255 255 / .92), 0 1.6cqw 3.4cqw -.6cqw rgb(0 0 0 / .8);
}
.shelf-logo { background: linear-gradient(160deg, #2a2a2e, #141416); }
.shelf-logo img { object-fit: contain; padding: 2.4cqw 4cqw 4.6cqw; }
.shelf-card .tag { top: 1cqw; left: 1.1cqw; font-size: .9cqw; padding: .35em .75em; }
.shelf-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  padding: 2.4cqw 1.3cqw 1.2cqw;
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / .85));
  line-height: 1.2;
}
.shelf-cap strong { font-size: 1.45cqw; font-weight: 600; }
.shelf-cap span { color: var(--text-2); }
.shelf-wide .shelf-cap { padding-bottom: 1.9cqw; }
.shelf-card .progress {
  position: absolute;
  left: 1.3cqw; right: 1.3cqw; bottom: .9cqw;
  height: .35cqw;
  margin: 0;
}
.shelf-banner {
  display: grid;
  place-items: center;
  border-radius: 1.7cqw;
  background:
    radial-gradient(40% 70% at 50% 45%, rgb(var(--tint) / .55), transparent 75%),
    linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .04));
  box-shadow: inset 0 0 0 .08cqw rgb(255 255 255 / .2), inset 0 .1cqw 0 rgb(255 255 255 / .25);
}
.banner-ico {
  display: grid;
  place-items: center;
  width: 9.4cqw;
  height: 9.4cqw;
  border-radius: 50%;
  background: #fff;
  color: rgb(var(--tint));
  box-shadow: 0 1.4cqw 3cqw -1cqw rgb(0 0 0 / .5);
}
.banner-ico svg { width: 4.6cqw; height: 4.6cqw; }
.banner-actions {
  position: absolute;
  left: 1.4cqw;
  bottom: 1.4cqw;
  display: flex;
  gap: .7cqw;
  font-size: 1.05cqw;
  font-weight: 600;
}
.banner-actions span {
  padding: .55em 1.2em;
  border-radius: 99px;
  background: rgb(0 0 0 / .55);
}
.banner-actions span:first-child { background: #fff; color: #000; }

.os-dock {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 2.3cqw 2.7cqw 0;
  padding: 1.25cqw 1.9cqw 3.3cqw;
  border-radius: 2.4cqw;
  background: linear-gradient(180deg, rgb(255 255 255 / .13), rgb(255 255 255 / .05));
  box-shadow: inset 0 .08cqw 0 rgb(255 255 255 / .25), inset 0 0 0 .08cqw rgb(255 255 255 / .16);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  perspective: 60cqw;
}
.tile {
  --c: 148 163 184;
  position: relative;
  display: grid;
  place-items: center;
  width: 15.8cqw;
  height: 9.4cqw;
  padding: 0;
  border: 0;
  border-radius: .9cqw;
  background: linear-gradient(150deg, rgb(var(--c) / .95), rgb(var(--c) / .6));
  color: rgb(var(--c));
  cursor: pointer;
  box-shadow: 0 .4cqw 1cqw -.4cqw rgb(0 0 0 / .5);
  transform-style: preserve-3d;
  transition:
    scale var(--t-focus) var(--spring-focus),
    translate var(--t-focus) var(--spring-focus),
    box-shadow .35s ease;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgb(255 255 255 / .28), transparent 38%, transparent 62%, rgb(255 255 255 / .08));
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.tile > svg {
  width: 5.6cqw;
  height: 5.6cqw;
  padding: 1.25cqw;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 .3cqw .8cqw -.2cqw rgb(0 0 0 / .3);
}
.tile-lumentv { background: linear-gradient(160deg, #2c2c30, #0f0f11); color: #fff; font-size: 2.35cqw; }
.tile-musique { --c: 236 72 153; }
.tile-photos { --c: 222 158 52; }
.tile-web { --c: 56 150 230; }
.tile-reglages { --c: 120 132 152; }
.tile.is-focus {
  z-index: 2;
  scale: 1.13;
  translate: 0 -.35cqw;
  box-shadow: 0 1.8cqw 3.2cqw -.8cqw rgb(0 0 0 / .75);
}
.tile.is-focus::after { opacity: 1; }
.tile:focus-visible { outline: none; }
.os-dock:focus-within .tile.is-focus { box-shadow: 0 0 0 .2cqw #fff, 0 1.8cqw 3.2cqw -.8cqw rgb(0 0 0 / .75); }
.tile-name {
  position: absolute;
  left: 0;
  bottom: .7cqw;
  font-size: 1.2cqw;
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--t-glide) var(--spring-glide), opacity .2s ease;
}
.tile-name.is-swapping { opacity: 0; }

.os-grid {
  display: flex;
  justify-content: space-between;
  margin: 2.2cqw 4.6cqw 0;
}
.os-grid span {
  width: 15.8cqw;
  height: 9.4cqw;
  border-radius: .9cqw;
  background: linear-gradient(150deg, rgb(var(--c) / .5), rgb(var(--c) / .26));
  opacity: .6;
}
.os-hint {
  margin-top: 18px;
  text-align: center;
  font-size: .9375rem;
  color: var(--text-3);
}

.os-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(24px, 3vw, 44px);
  margin-top: clamp(88px, 10vw, 140px);
}
.os-features article { padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .12); }
.os-features h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }

/* Les mesures : barres en plage (min à max), une ligne de budget, une frise. */
.perf { margin-top: clamp(104px, 12vw, 168px); }
.perf-head { max-width: 44rem; margin-bottom: clamp(36px, 4.5vw, 56px); }
.perf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.perf-card {
  margin: 0;
  padding: clamp(22px, 3vw, 38px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .025));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), inset 0 0 0 1px rgb(255 255 255 / .09);
}
.perf-wide { grid-column: 1 / -1; }
.perf-card figcaption h4 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.perf-card figcaption p { margin-top: 8px; color: var(--text-2); max-width: 40em; }
.perf-note { margin-top: 22px; color: var(--text-3); font-size: .875rem; max-width: 52em; }
.perf-method { margin-top: 24px; color: var(--text-3); font-size: .875rem; max-width: 60em; }

.chart {
  --label: 10.5rem;
  --value: 6.5rem;
  --gap: 16px;
  position: relative;
  margin-top: 30px;
  display: grid;
  gap: 18px;
}
.chart:has(.chart-budget) { padding-top: 30px; }
.chart-row {
  display: grid;
  grid-template-columns: var(--label) minmax(0, 1fr) var(--value);
  align-items: center;
  gap: var(--gap);
}
.chart-label { font-weight: 500; color: var(--text-2); font-size: .9375rem; }
.chart-value { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.chart-track { position: relative; height: 16px; border-radius: 99px; background: rgb(255 255 255 / .06); }
/* Plein jusqu'à la plus basse des mesures, plus clair jusqu'à la plus haute. */
.chart-bar {
  --c1: var(--ember);
  --c2: var(--light);
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--hi) * 100%);
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c1), var(--c2) calc(var(--lo) / var(--hi) * 100%), color-mix(in srgb, var(--c2) 38%, transparent) calc(var(--lo) / var(--hi) * 100%));
  transform-origin: left center;
  transition: transform .9s var(--spring-screen);
}
.chart-best { box-shadow: 0 0 16px rgb(255 138 61 / .45); }
.chart-bad { --c1: #8d8d93; --c2: #b8b8be; }
.chart-ref { --c1: #8d8d93; --c2: #b8b8be; }
.chart-budget {
  position: absolute;
  top: 22px;
  bottom: 26px;
  left: calc(var(--label) + var(--gap) + var(--at) * (100% - var(--label) - var(--value) - 2 * var(--gap)));
  border-left: 1.5px dashed rgb(255 255 255 / .5);
  pointer-events: none;
}
.chart-budget span {
  position: absolute;
  bottom: 100%;
  left: -1px;
  padding-bottom: 6px;
  white-space: nowrap;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-2);
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  margin: 0 calc(var(--value) + var(--gap)) 0 calc(var(--label) + var(--gap));
  color: var(--text-3);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}
.js .perf:not(.is-in) .chart-bar { transform: scaleX(0); }
.js .perf .perf-grid > :nth-child(2) .chart-bar { transition-delay: .08s; }
.js .perf .perf-grid > :nth-child(4) .vs-bars b { transition-delay: .1s; }

.timeline { margin-top: 30px; }
.timeline-track { position: relative; height: 16px; border-radius: 99px; background: rgb(255 255 255 / .06); }
.timeline-press {
  position: absolute;
  left: 0; top: 50%;
  width: 16px; height: 16px;
  translate: -2px -50%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(255 255 255 / .15);
}
.timeline-range {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--lo) * 100%);
  width: calc((var(--hi) - var(--lo)) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--light), var(--ember));
  box-shadow: 0 0 16px rgb(255 138 61 / .45);
  transform-origin: left center;
  transition: transform .9s var(--spring-screen) .1s;
}
.js .perf:not(.is-in) .timeline-range { transform: scaleX(0); }
.timeline-axis { display: flex; justify-content: space-between; margin-top: 10px; color: var(--text-3); font-size: .75rem; }
.timeline-value { margin-top: 18px; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }

.versus {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px clamp(20px, 3vw, 40px);
  margin-top: 30px;
}
.vs-label { color: var(--text-2); font-size: .9375rem; min-height: 2.6em; }
.vs-values { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.vs-before { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgb(255 255 255 / .35); font-variant-numeric: tabular-nums; }
.vs-after { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.vs-detail { margin-top: 6px; color: var(--text-3); font-size: .875rem; }
.vs-bars { display: grid; gap: 6px; margin-top: 14px; }
.vs-bars i, .vs-bars b {
  display: block;
  height: 6px;
  width: calc(var(--v) * 100%);
  min-width: 6px;
  border-radius: 6px;
  transform-origin: left center;
  transition: transform .9s var(--spring-screen);
}
.vs-bars i { background: rgb(255 255 255 / .22); }
.vs-bars b { background: linear-gradient(90deg, var(--ember), var(--light)); box-shadow: 0 0 12px rgb(255 138 61 / .4); }
.js .perf:not(.is-in) .vs-bars i, .js .perf:not(.is-in) .vs-bars b { transform: scaleX(0); }
.howto {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / .1);
  color: var(--text-2);
  max-width: 62em;
}
.howto strong { color: #fff; font-weight: 600; }

.captures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(80px, 9vw, 128px);
}
.captures figure { margin: 0; }
.captures figcaption { margin-top: 14px; color: var(--text-3); font-size: .9375rem; }

/* ---------- Lumen+ ---------- */

.plus-card {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5.5vw, 80px);
  border-radius: clamp(24px, 3vw, 40px);
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(255 138 61 / .16), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / .08), rgb(255 255 255 / .025));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 0 0 1px rgb(255 255 255 / .1), 0 40px 100px -40px rgb(0 0 0 / .8);
}
.plus-mark { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.plus-mark .wm span { color: var(--light); font-weight: 400; }
.plus-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px clamp(24px, 3vw, 40px);
  margin: clamp(32px, 4vw, 48px) 0 28px;
}
.plus-points h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); }
.plus-points p { margin-top: 10px; }
.plus-visual { margin: 0; }
.plus-visual svg { width: 100%; height: auto; overflow: visible; }
.p-tv { fill: rgb(255 255 255 / .04); stroke: rgb(255 255 255 / .4); stroke-width: 2; }
.p-link { fill: none; stroke: rgb(255 181 71 / .55); stroke-width: 2; stroke-dasharray: 3 8; stroke-linecap: round; }
.p-label { font: 500 15px "Outfit", sans-serif; fill: var(--text-3); }

/* ---------- Sécurité ---------- */

.glyphs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.sec-card {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 26px) clamp(24px, 2.8vw, 32px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .025));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), inset 0 0 0 1px rgb(255 255 255 / .09);
}
.sec-card.is-soon {
  background:
    radial-gradient(80% 60% at 100% 0%, rgb(255 138 61 / .1), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02));
}
.sec-figure {
  margin: 0 0 22px;
  padding: 6px 4px 0;
  border-radius: 20px;
  background: rgb(0 0 0 / .24);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .05);
}
.sec-figure svg { width: 100%; height: auto; overflow: visible; }
.sec-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-2);
}
.sec-now::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px rgb(48 209 88 / .6);
}
.sec-card h3 { font-size: clamp(1.3rem, 1.12rem + .55vw, 1.6rem); }
.sec-facts {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: .96875rem;
}
.sec-facts li { position: relative; padding-left: 20px; }
.sec-facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(48 209 88 / .85);
}
.is-soon .sec-facts li::before { background: rgb(255 181 71 / .8); }
.sec-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin-top: clamp(28px, 3.4vw, 40px);
  color: var(--text-2);
  text-align: center;
}

/* Les schémas : appareils au trait, lien pointillé, et le point lumineux qui fait le trajet. */
.sec-figure text { font: 500 12px "Outfit", sans-serif; }
.s-zone { fill: rgb(255 255 255 / .025); stroke: rgb(255 255 255 / .22); stroke-width: 1.4; stroke-dasharray: 4 5; }
.s-zone-label { fill: var(--text-2); font-weight: 600 !important; }
.s-dev { fill: rgb(255 255 255 / .05); stroke: rgb(255 255 255 / .55); stroke-width: 1.6; }
.s-stroke { fill: none; stroke: rgb(255 255 255 / .55); stroke-width: 1.6; stroke-linecap: round; }
.s-link { fill: none; stroke: rgb(255 181 71 / .6); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.s-cut { fill: none; stroke: rgb(255 255 255 / .28); stroke-width: 1.6; stroke-dasharray: 3 5; stroke-linecap: round; }
.s-x { fill: none; stroke: var(--poor); stroke-width: 2.4; stroke-linecap: round; }
.s-pill { fill: rgb(255 255 255 / .94); }
.sec-figure .s-pill-t { fill: #111; font-weight: 700; font-size: 11.5px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.s-label { fill: var(--text-2); }
.sec-figure .s-small { fill: var(--text-3); font-size: 10.5px; }
.s-ring { fill: #1d1712; stroke: rgb(255 138 61 / .65); stroke-width: 1.4; }
.s-icon { color: var(--light); }
.s-packet { fill: #2a1a0e; stroke: var(--accent); stroke-width: 1.4; }
.s-rack { fill: rgb(255 255 255 / .05); stroke: rgb(255 255 255 / .45); stroke-width: 1.4; }
.s-bits { fill: none; stroke: rgb(255 255 255 / .3); stroke-width: 3; stroke-linecap: round; }
.s-banner { fill: var(--accent); }
.sec-figure .s-banner-t { fill: #1b0d02; font-size: 9px; font-weight: 700; }
.s-ok { fill: #10261a; stroke: var(--good); stroke-width: 1.4; }
.s-ok-icon { color: var(--good); }
.s-banner { animation: banner-pulse 2.4s ease-in-out infinite; }
@keyframes banner-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }

/* ---------- Installation ---------- */

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(36px, 6vw, 96px);
}
.get-stack {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}
.get {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: 28px;
  background: var(--glass);
  box-shadow: var(--glass-shine), 0 0 0 1px var(--glass-line), 0 30px 80px -30px rgb(0 0 0 / .7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.get-head { display: flex; align-items: center; gap: 16px; }
.app-icon { flex: none; width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 0 0 1px rgb(255 255 255 / .1); }
.get-name { font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.get-version { color: var(--text-2); font-size: .9375rem; }
.get-address { margin: 20px 0 16px; color: var(--text-2); font-size: .9375rem; }
.get-address strong { color: #fff; font-weight: 600; white-space: nowrap; }
.get-small { padding: 0 8px; color: var(--text-3); font-size: .875rem; }
.notes { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .1); }
.notes-title { font-weight: 600; font-size: .9375rem; }
.notes-body { margin-top: 6px; color: var(--text-2); font-size: .9375rem; white-space: pre-line; }

.guide-part {
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem);
  margin: clamp(52px, 6vw, 72px) 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.guide-part:first-child { margin-top: 0; }
.guide-optional {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-3);
  padding: .2em .7em;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16);
}
.guide-note { color: var(--text-2); margin-bottom: 8px; max-width: 38em; }

/* Une vraie suite d'étapes : numérotées, reliées par un fil. */
.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 26px 0 8px 62px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / .14), rgb(255 255 255 / .05));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 0 0 1px rgb(255 255 255 / .14);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 19.5px;
  top: 70px;
  bottom: -18px;
  width: 1px;
  background: linear-gradient(180deg, rgb(255 255 255 / .16), rgb(255 255 255 / .04));
}
.steps > li:last-child::after { display: none; }
.steps h4 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; padding-top: 6px; }
.steps p { margin-top: 8px; color: var(--text-2); max-width: 36em; }
.steps p.muted { color: var(--text-3); font-size: .9375rem; }
.address { margin: 14px 0 6px !important; }
.address span {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 14px;
  background: #f4f4f5;
  color: #111;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -.01em;
  box-shadow: 0 16px 40px -18px rgb(255 255 255 / .35);
}
.branches { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.branches li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgb(255 255 255 / .05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
  color: var(--text-2);
}

.branches strong { color: #fff; font-weight: 600; }

.advanced {
  margin-top: 40px;
  border-radius: 20px;
  background: rgb(255 255 255 / .04);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09);
}
.advanced summary { padding: 18px 22px; }
.advanced-body { padding: 0 22px 22px; color: var(--text-2); }
.advanced-body p + pre, .advanced-body pre + p, .advanced-body p + p { margin-top: 12px; }
.advanced pre {
  margin: 12px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 12px;
  background: rgb(0 0 0 / .4);
  font: 500 .875rem/1.6 ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  color: #e9e9ea;
}

/* ---------- Questions ---------- */

.faq { max-width: 860px; }
.faq-list { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgb(255 255 255 / .1); }
.faq details { border-bottom: 1px solid rgb(255 255 255 / .1); }
summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(#fff, #fff) center / 14px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 14px no-repeat;
  opacity: .75;
  transition: rotate var(--t-focus) var(--spring-focus);
}
details[open] > summary::after { rotate: 45deg; }
.faq details > p { padding: 0 0 24px; color: var(--text-2); max-width: 44em; }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content {
    height: 0;
    overflow: clip;
    opacity: 0;
    transition: height var(--t-screen) var(--spring-screen), opacity .3s ease, content-visibility var(--t-screen) allow-discrete;
  }
  details[open]::details-content { height: auto; opacity: 1; }
}

/* ---------- Pied de page ---------- */

.foot {
  margin-top: var(--section-gap);
  padding: 48px 0 calc(48px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(255 255 255 / .08);
  background: rgb(0 0 0 / .25);
}
.foot-inner {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  gap: 12px;
  max-width: 60rem;
  color: var(--text-3);
  font-size: .875rem;
}
.foot-inner .wm { margin-bottom: 10px; color: #fff; }
.foot-inner strong { color: var(--text-2); font-weight: 600; }
.foot-copy { margin-top: 8px; }

/* ---------- Petits écrans ---------- */

@media (max-width: 980px) {
  .feature, .setup, .plus-card, .download-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .feature-flip .feature-visual { order: 0; }
  .feature-text, .setup-text { max-width: 36rem; }
  .os-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .get-stack { position: static; }
  .plus-visual { max-width: 440px; }
}

@media (max-width: 720px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .perf-grid { grid-template-columns: minmax(0, 1fr); }
  .private-list { grid-template-columns: minmax(0, 1fr); max-width: 30rem; }
  .captures { grid-template-columns: minmax(0, 1fr); }
  .plus-points { grid-template-columns: minmax(0, 1fr); }
  .setup-visual { padding: 0 12% 16% 0; }
  .phone { width: 38%; }
  .segmented button { padding: 0 12px; font-size: .875rem; }
  .steps li { padding-left: 54px; }
  .address span { padding: 0 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 640px) {
  .chart { --label: 0px; --value: 0px; --gap: 0px; }
  .chart-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "track track"; gap: 8px 12px; }
  .chart-label { grid-area: label; }
  .chart-value { grid-area: value; }
  .chart-track { grid-area: track; }
  .chart-budget { top: 52px; }
  .versus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .os-features { grid-template-columns: minmax(0, 1fr); }
  .signal-scene { aspect-ratio: 4 / 3.4; }
  .segmented { gap: 2px; }
  .segmented button { padding: 0 10px; font-size: .8125rem; }
  .signal { width: 90%; }
  .poster-float { right: -1%; }
}

/* ---------- Préférences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }
  .js .hero .wm-xl .dot::after { animation: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .bar-inner, .btn-glass, .pill-tabs, .get, .signal, .os-dock, .fav-row {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #232326;
  }
}

@media (forced-colors: active) {
  .dot, .tabs-dot, .pill-tabs-dot { forced-color-adjust: none; }
  .btn { border: 1px solid ButtonText; }
}
