/* Lumographe — page d'accueil (octobre 2026).
   Deux températures de lumière : le néon froid de la marque et le tungstène des sources. */
:root {
  color-scheme: dark;
  /* Jetons de l'app (ParityTokens.swift, LumCharte.swift) */
  --nuit: #0b0e15;      /* LumColor.bg */
  --nuit-2: #10131c;    /* LumColor.panel */
  --surface: #151924;   /* LumColor.surface */
  --ardoise: #1d2230;   /* LumColor.surface2 */
  --surface3: #272e3e;  /* LumColor.surface3 */
  --trait: rgba(255, 255, 255, .06);  /* lineSoft */
  --trait-fort: #2e3648;              /* line */
  --neon: #5d83c4;        /* accent */
  --neon-fort: #4f72b0;   /* accentStrong */
  --neon-clair: #9bb6e4;  /* accent lisible sur fond nuit */
  --tungstene: #c9b27a;   /* faderDimmer */
  --ambre: #d99a4a;       /* amber */
  --ok: #4ec88f;
  --rouge: #e0676b;
  --papier: #e9edf3;      /* text */
  --gris: #9aa4b4;        /* muted */
  --gris-2: #6b7484;      /* muted2 */
  --max: 1220px;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --texte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--nuit); scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: var(--papier); font: 400 1.0625rem/1.65 var(--texte); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.022em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--neon-clair); outline-offset: 3px; border-radius: 4px; }
.coque { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.saut { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--neon); color: #fff; font-weight: 600; border-radius: 8px; text-decoration: none; }
.saut:focus { top: 12px; }
.mono { font-family: var(--texte); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .06em; text-transform: uppercase; font-size: .78em; }

/* Navigation */
.barre { position: sticky; top: 0; z-index: 20; background: rgba(10, 12, 23, .9); border-bottom: 1px solid var(--trait); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.barre .coque { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.marque { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 750; font-size: 1.12rem; text-decoration: none; white-space: nowrap; }
.marque img { width: 34px; height: 34px; border-radius: 9px; }
.barre-liens { display: flex; gap: 20px; margin-left: auto; font-size: .95rem; color: var(--gris); }
.barre-liens a { text-decoration: none; padding: 8px 0; white-space: nowrap; }
.barre-liens a:hover { color: var(--papier); }
.barre-fin { display: flex; align-items: center; gap: 16px; font-size: .95rem; }
.barre-fin a.discret { color: var(--gris); text-decoration: none; padding: 8px 0; }
.barre-fin a.discret:hover { color: var(--papier); }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 8px; border: 1px solid rgba(93, 131, 196, .35); background: rgba(93, 131, 196, .1); color: var(--neon-clair); font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.bouton:hover { background: rgba(93, 131, 196, .22); border-color: rgba(93, 131, 196, .75); }
.bouton.plein { background: var(--neon); border-color: var(--neon); color: #fff; }
.bouton.plein:hover { background: var(--neon-fort); border-color: var(--neon-fort); }
.bouton.petit { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.bouton svg { width: 18px; height: 18px; flex: none; }

/* Héros */
.heros { padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px); }
.heros-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.surtitre { color: var(--neon-clair); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.heros h1 { font-size: clamp(3rem, 5.6vw, 4.8rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.heros h1 .suite { display: block; margin-top: 16px; font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.2; font-weight: 650; letter-spacing: -.01em; color: var(--gris); }
.heros .chapeau { margin-top: 24px; max-width: 34em; color: var(--gris); font-size: 1.12rem; }
.heros .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.heros .mention { margin-top: 16px; color: var(--gris-2); font-size: .88rem; }
.heros .mention strong { color: var(--papier); font-weight: 600; }

/* Le plan qui s'allume (démonstration Lumographer) */
.scene { position: relative; margin: 0; }
.scene-cadre { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--trait-fort); border-radius: 12px; overflow: hidden; background:
  linear-gradient(var(--trait) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, var(--trait) 1px, transparent 1px) 0 0 / 40px 40px,
  var(--nuit-2); touch-action: pan-x pan-y; cursor: crosshair; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-etiquette { position: absolute; left: 14px; top: 12px; display: flex; gap: 14px; color: var(--gris); font-size: .74rem; pointer-events: none; }
.scene-etiquette b { color: var(--tungstene); font-weight: 600; }
.scene-pied { position: absolute; right: 14px; bottom: 12px; color: var(--gris-2); font-size: .74rem; pointer-events: none; }
.scene figcaption { margin-top: 12px; color: var(--gris-2); font-size: .9rem; max-width: 40em; }

/* Bande de caractéristiques */
.fiche { border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); background: var(--nuit-2); }
.fiche ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.fiche li { padding: 22px 22px 22px 0; }
.fiche li + li { padding-left: 22px; border-left: 1px solid var(--trait); }
.fiche .valeur { display: block; font-family: var(--display); font-weight: 700; font-size: 1.28rem; }
.fiche .detail { display: block; margin-top: 4px; color: var(--gris); font-size: .9rem; line-height: 1.45; }

/* Sections */
.bloc { padding: clamp(64px, 9vw, 120px) 0; }
.bloc + .bloc { border-top: 1px solid var(--trait); }
.bloc-tete { max-width: 52rem; margin-bottom: clamp(32px, 5vw, 56px); }
.bloc-tete h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.05; }
.bloc-tete p { margin-top: 18px; color: var(--gris); font-size: 1.1rem; max-width: 40em; }

/* La conduite : Q1 → Q6 */
.pile { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(36px, 5vw, 60px); padding: 0; list-style: none; }
.pile a { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border: 1px solid var(--trait-fort); border-radius: 8px; text-decoration: none; font-size: .95rem; }
.pile a:hover { border-color: rgba(93, 131, 196, .75); background: rgba(93, 131, 196, .1); }
.pile .mono { color: var(--neon-clair); }
.top { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--trait); scroll-margin-top: 84px; }
.top:nth-of-type(even) .top-texte { order: 2; }
.top.sans-capture { grid-template-columns: minmax(0, 46rem); }
.top-num { display: flex; align-items: center; gap: 12px; color: var(--neon-clair); font-size: .9rem; margin-bottom: 14px; }
.top-num::after { content: ""; flex: 0 0 56px; height: 1px; background: var(--neon); opacity: .5; }
.top h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.06; }
.top-texte > p { margin-top: 16px; color: var(--gris); }
.top-outils { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.top-outils li { padding: 4px 10px; border-radius: 8px; background: var(--ardoise); color: var(--papier); font-size: .84rem; }
.capture { margin: 0; }
.capture a { display: block; border-radius: 12px; text-decoration: none; }
.capture img { width: 100%; border: 1px solid var(--trait-fort); border-radius: 12px; background: var(--nuit-2); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.capture figcaption { margin-top: 10px; color: var(--gris-2); font-size: .84rem; }
.capture.telephone { max-width: 300px; margin-inline: auto; }
.capture.telephone img { border-radius: 30px; }

/* Équipe */
.equipe { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.equipe-texte p + p { margin-top: 16px; }
.equipe-texte p { color: var(--gris); }
.reseau { display: grid; grid-template-columns: 1fr; gap: 10px; }
.reseau-hote, .reseau-invite { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--trait-fort); border-radius: 12px; background: var(--nuit-2); }
.reseau-hote { border-color: rgba(93, 131, 196, .75); background: rgba(93, 131, 196, .1); }
.reseau-hote strong, .reseau-invite strong { font-weight: 600; }
.reseau-hote .mono { color: var(--neon-clair); }
.reseau-invites { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.reseau-invite { flex-direction: column; align-items: flex-start; gap: 2px; font-size: .92rem; }
.reseau-invite .mono { color: var(--neon-clair); font-size: .76rem; }
.reseau-note { color: var(--gris-2); font-size: .86rem; margin-top: 6px; }

/* Pour qui */
.publics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--trait); }
.publics article { padding: 28px 28px 8px 0; }
.publics article + article { padding-left: 28px; border-left: 1px solid var(--trait); }
.publics h3 { font-size: 1.35rem; line-height: 1.15; }
.publics p { margin-top: 12px; color: var(--gris); }

/* Tournesol */
.tournesol { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--trait-fort); border-radius: 12px; background: var(--surface); }
.tournesol h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; }
.tournesol p { margin-top: 12px; color: var(--gris); max-width: 46em; }
.tournesol .actions { display: flex; flex-direction: column; gap: 10px; }

/* Offres */
.offres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.offre { display: flex; flex-direction: column; padding: clamp(24px, 3.5vw, 36px); border: 1px solid var(--trait-fort); border-radius: 12px; background: var(--nuit-2); }
.offre.vedette { border-color: rgba(93, 131, 196, .75); background: linear-gradient(180deg, rgba(93, 131, 196, .14), var(--surface) 60%); }
.offre-nom { color: var(--gris); font-size: .8rem; }
.offre-prix { margin-top: 10px; font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.offre > p { margin-top: 14px; color: var(--gris); }
.offre .offre-sous { margin-top: 6px; color: var(--papier); font-size: .95rem; }
.offre.vedette { box-shadow: 0 24px 60px rgba(93, 131, 196, .12); }
.offre li span:last-child:only-child { display: none; }
.etapes-lan { margin: 22px 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.etapes-lan li { display: flex; gap: 14px; align-items: baseline; }
.etapes-lan .mono { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(93, 131, 196, .75); border-radius: 8px; background: rgba(93, 131, 196, .1); color: var(--neon-clair); font-size: .85rem; letter-spacing: 0; }
.etapes-lan p { color: var(--gris); }
.etapes-lan strong { color: var(--papier); font-weight: 600; }
.heros .mention a { color: var(--neon-clair); }
.offre ul { margin: 18px 0 0; padding: 0; list-style: none; }
.offre li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--trait); font-size: .95rem; }
.offre li span:last-child { color: var(--papier); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.offre li span:first-child { color: var(--gris); }
.offre .bouton { margin-top: auto; align-self: flex-start; }
.offre .espace { flex: 1; min-height: 24px; }

/* Questions */
.questions { border-top: 1px solid var(--trait); max-width: 60rem; }
.questions details { border-bottom: 1px solid var(--trait); }
.questions summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 650; font-size: 1.15rem; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; flex: none; color: var(--neon-clair); font-size: 1.3rem; line-height: 1; }
.questions details[open] summary::after { content: "−"; }
.questions details p { padding: 0 0 22px; color: var(--gris); max-width: 46em; }

/* Appel final */
.final { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.final h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.02; }
.final p { margin-top: 16px; color: var(--gris); max-width: 32em; }
.final .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.final img { width: 100%; border-radius: 12px; }

/* Pied de page */
.pied { border-top: 1px solid var(--trait); padding: 40px 0 48px; color: var(--gris); font-size: .92rem; }
.pied-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.pied h2 { font-family: var(--texte); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-2); margin-bottom: 10px; }
.pied ul { margin: 0; padding: 0; list-style: none; }
.pied li a { display: inline-block; padding: 5px 0; text-decoration: none; }
.pied li a:hover { color: var(--papier); }
.pied .marque { color: var(--papier); }
.pied-texte { margin-top: 12px; max-width: 26em; }
.reseaux { display: flex; gap: 6px; margin-top: 14px; }
.reseaux a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--trait); border-radius: 10px; }
.reseaux a:hover { border-color: var(--neon-clair); color: var(--papier); }
.reseaux svg { width: 18px; height: 18px; fill: currentColor; }
.pied-bas { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--trait); color: var(--gris-2); font-size: .84rem; }

/* Agrandissement des captures */
.visionneuse { width: min(96vw, 1800px); max-height: 94vh; padding: 0; border: 1px solid var(--trait-fort); border-radius: 14px; background: var(--nuit); color: var(--papier); }
.visionneuse::backdrop { background: rgba(4, 5, 10, .86); }
.visionneuse img { width: 100%; height: auto; max-height: calc(94vh - 56px); object-fit: contain; }
.visionneuse-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; font-size: .9rem; color: var(--gris); }
.visionneuse button { min-height: 40px; padding: 0 14px; border: 1px solid var(--trait-fort); border-radius: 8px; background: transparent; color: var(--papier); font: inherit; cursor: pointer; }

@media (max-width: 1080px) {
  .offres { grid-template-columns: 1fr; max-width: 560px; }
  .barre-liens { display: none; }
  .barre-fin { margin-left: auto; }
  .heros-grille, .equipe, .final { grid-template-columns: 1fr; }
  .fiche ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiche li:nth-child(3) { padding-left: 0; border-left: 0; }
  .fiche li:nth-child(n + 3) { border-top: 1px solid var(--trait); }
  .top { grid-template-columns: 1fr; }
  .top:nth-of-type(even) .top-texte { order: 0; }
  .publics { grid-template-columns: 1fr; }
  .publics article, .publics article + article { padding: 24px 0 4px; border-left: 0; }
  .publics article + article { border-top: 1px solid var(--trait); }
  .pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final img { max-width: 520px; }
}
@media (max-width: 680px) {
  .coque { width: calc(100% - 32px); }
  .barre .coque { gap: 12px; min-height: 60px; }
  .barre-fin { gap: 12px; }
  .barre-fin .discret.compte { display: none; }
  .heros h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .heros .actions .bouton { flex: 1 1 100%; }
  .scene-cadre { aspect-ratio: 4 / 3.4; }
  .fiche ul { grid-template-columns: 1fr; }
  .fiche li, .fiche li + li { padding: 16px 0; border-left: 0; }
  .fiche li + li { border-top: 1px solid var(--trait); }
  .offres { grid-template-columns: 1fr; }
  .tournesol { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}
.offre.vedette .offre-prix { color: var(--papier); }

/* Carrousel des effets */
.carrousel-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.carrousel-fleches { display: flex; gap: 8px; margin-bottom: clamp(32px, 5vw, 56px); }
.carrousel-fleches .bouton { min-width: 48px; font-size: 1.1rem; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 520px); gap: 16px; margin: 0; padding: 0 0 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--trait-fort); border-radius: 12px; background: var(--surface); overflow: hidden; }
.slide canvas { display: block; width: 100%; aspect-ratio: 16 / 10; background: var(--nuit-2); border-bottom: 1px solid var(--trait-fort); }
.slide-texte { padding: 18px 20px 22px; }
.slide-texte .mono { color: var(--neon-clair); }
.slide-texte h3 { margin-top: 8px; font-size: 1.25rem; line-height: 1.2; }
.slide-texte p:last-child { margin-top: 10px; color: var(--gris); font-size: .98rem; }
@media (max-width: 680px) { .carrousel-fleches { display: none; } .slides { grid-auto-columns: 86%; } }

/* Carrousel du héros : la démo Lumographer puis les effets */
.heros-carrousel { min-width: 0; }
.heros-slides { grid-auto-columns: 100%; gap: 16px; padding: 0; }
.heros-slide { scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.effet-cadre { cursor: default; }
.heros-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.heros-nav .bouton { min-width: 44px; padding: 0 12px; font-size: 1.05rem; }
.points { display: flex; align-items: center; gap: 2px; }
.point { position: relative; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.point::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--trait-fort); transition: background-color .15s, width .15s, margin .15s; }
.point[aria-current="true"]::before { width: 22px; margin-left: -11px; border-radius: 4px; background: var(--neon); }
.heros-slide figcaption { min-height: 3.2em; }

/* Démos interactives du héros (10/10) : contrôles à la charte de l'app. */
.demo-cadre { background: radial-gradient(120% 90% at 50% 0%, #141a28 0%, var(--nuit) 70%); }
.demo-cadre canvas { touch-action: none; cursor: pointer; }
.demo-cadre canvas.demo-source { position: absolute; inset: auto; right: 14px; top: 10px; width: 64px; height: 32px; border-radius: 4px; border: 1px solid var(--trait-fort); image-rendering: pixelated; opacity: .9; pointer-events: none; }
.demo-cadre[data-demo="chase"] canvas, .demo-cadre[data-demo="rec"] canvas { top: 0; bottom: auto; height: calc(100% - 58px); }
.demo-cadre[data-demo="isf"] canvas.demo-matrice { top: 0; bottom: auto; height: calc(100% - 104px); }
.demo-barre { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: rgba(16, 19, 28, .92); border: 1px solid var(--trait-fort); border-radius: 10px; touch-action: pan-x; }
.demo-defile { overflow-x: auto; scrollbar-width: none; }
.demo-defile::-webkit-scrollbar { display: none; }
.demo-reglages { position: absolute; left: 10px; right: 10px; bottom: 62px; display: flex; gap: 12px; padding: 4px 8px; touch-action: none; }
.demo-reglages .demo-curseur { flex: 1 1 0; min-width: 0; }
.demo-curseur { display: flex; align-items: center; gap: 8px; min-height: 40px; flex: 1 1 auto; font-size: .76rem; color: var(--gris); font-weight: 600; }
.demo-curseur span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 7.5em; }
.demo-curseur b { font: 600 .74rem var(--mono); color: var(--papier); min-width: 3.2em; text-align: right; }
.demo-curseur input { flex: 1 1 auto; min-width: 60px; -webkit-appearance: none; appearance: none; height: 28px; background: transparent; touch-action: none; }
.demo-curseur input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--surface3); }
.demo-curseur input::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface3); }
.demo-curseur input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--papier); border: 2px solid var(--neon); box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.demo-curseur input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--papier); border: 2px solid var(--neon); }
.demo-puce { flex: none; min-height: 36px; min-width: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--trait-fort); background: var(--ardoise); color: var(--gris); font: 600 .82rem var(--texte); cursor: pointer; white-space: nowrap; }
.demo-puce[aria-pressed="true"] { background: rgba(93, 131, 196, .2); border-color: rgba(93, 131, 196, .7); color: var(--neon-clair); }
.demo-puce.demo-rec { color: #f2a3a5; border-color: rgba(224, 103, 107, .55); background: rgba(224, 103, 107, .12); }
.demo-puce.demo-rec.enregistre { background: var(--rouge); color: #fff; border-color: var(--rouge); animation: demo-rec 1s ease-in-out infinite; }
@keyframes demo-rec { 50% { opacity: .65; } }
.demo-etat { color: var(--gris); font-size: .78rem; margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sans-webgl .demo-reglages, .sans-webgl .demo-barre { display: none; }
@media (max-width: 560px) {
  .demo-reglages { flex-direction: column; gap: 0; bottom: 58px; background: rgba(16, 19, 28, .85); border-radius: 10px; }
  .demo-cadre[data-demo="isf"] { aspect-ratio: 3 / 4.4; }
  .demo-cadre[data-demo="isf"] canvas.demo-matrice { height: calc(100% - 186px); }
  .demo-cadre[data-demo="chase"], .demo-cadre[data-demo="rec"] { aspect-ratio: 3 / 3.4; }
  .demo-curseur span { max-width: 5.5em; }
}

/* Vraies captures de l'app (10/10) : la vidéo entière, sur le fond nuit, lue seulement à l'écran. */
.media-cadre { background: var(--nuit); }
.media-cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-cadre video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--nuit); }
.media-cadre .scene-etiquette, .media-cadre .scene-pied { z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
