/* ==========================================================================
   Prisme — feuille de style du site
   Identité : le graphite de l'application, la lumière décomposée du prisme.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Graphite — repris de l'application */
  --bg: #07080b;
  --bg-2: #0b0d10;
  --panel: #0e1116;
  --surface: #131820;
  --surface-2: #1a1f27;
  --surface-3: #242a33;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #eef1f5;
  --text-2: #cdd5df;
  --muted: #9aa4b0;
  --dim: #6f7885;

  /* Le spectre du prisme */
  --red: #ef6a5b;
  --gold: #f5d04e;
  --amber: #f0843c;
  --blue: #4c8dff;
  --sky: #5aa9e2;
  --rose: #e26d8f;
  --green: #4fc28a;
  --spectrum: linear-gradient(90deg, #ef6a5b 0%, #f2c64b 45%, #5aa9e2 100%);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-xl: 0 40px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain photographique, très léger, sur toute la page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(76, 141, 255, 0.35); color: #fff; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }

.display {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.display em, .h2 em, .h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.display em {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.h2 em { color: var(--text-2); }

.h3 { font-size: 1.3rem; letter-spacing: -0.02em; }

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--spectrum);
}

.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

kbd, .kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9em;
  height: 1.9em;
  padding: 0 0.5em;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.78em;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(180deg, #262c35, #1b2028);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  vertical-align: 0.05em;
}

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

.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  color: #0a0b0e;
  background: #f4f6f9;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 10px 40px -10px rgba(255, 255, 255, 0.35);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: var(--spectrum);
  filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover::after { opacity: 0.7; }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-sm { --h: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-note {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   Contrôle d'âge
   -------------------------------------------------------------------------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 6, 8, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}
html.gate-open .gate { display: flex; }
html.gate-open body { overflow: hidden; }

.gate-card {
  width: 100%;
  max-width: 460px;
  padding: 40px 34px 30px;
  border-radius: 26px;
  text-align: center;
  background: linear-gradient(180deg, rgba(26, 31, 39, 0.96), rgba(14, 17, 22, 0.98));
  box-shadow: var(--shadow-xl);
  animation: rise 0.7s var(--ease) both;
}
.gate-card img { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 16px; }
.gate-card h2 { font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 12px; }
.gate-card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 26px; }
.gate-actions { display: grid; gap: 10px; }
.gate-legal { margin-top: 18px !important; margin-bottom: 0 !important; font-size: 0.78rem !important; color: var(--dim) !important; }
.gate-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--red);
  background: rgba(239, 106, 91, 0.1);
  box-shadow: inset 0 0 0 1px rgba(239, 106, 91, 0.3);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.4s, box-shadow 0.4s, -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(7, 8, 11, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 1.14rem;
  letter-spacing: -0.03em;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand img.brand-word { width: auto; height: 15px; border-radius: 0; }
.footer .brand img.brand-word { height: 14px; }
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 0.92rem; color: var(--muted); padding: 8px 10px; }
.nav-login:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta { display: none; }
  .nav.is-open { background: rgba(7, 8, 11, 0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  .nav.is-open .nav-inner { flex-wrap: wrap; height: auto; padding: 14px 0 22px; }
  .nav.is-open .brand { height: 44px; }
  .nav.is-open .nav-links {
    display: grid;
    order: 3;
    width: 100%;
    margin: 8px 0 0;
  }
  .nav.is-open .nav-links a { padding: 14px 4px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav.is-open .nav-cta { display: flex; order: 4; width: 100%; margin-top: 18px; }
  .nav.is-open .nav-cta .btn { flex: 1; }
}

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

.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.section-tight { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .lead { margin-top: 20px; }

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
html.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(130px, 18vw, 190px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 40% at 72% 30%, rgba(76, 141, 255, 0.16), transparent 70%),
    radial-gradient(30% 34% at 88% 52%, rgba(239, 106, 91, 0.12), transparent 70%),
    radial-gradient(34% 30% at 60% 60%, rgba(242, 198, 75, 0.07), transparent 70%),
    radial-gradient(60% 50% at 20% 0%, rgba(255, 255, 255, 0.04), transparent 70%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.hero-copy { max-width: 1010px; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.hero-pill b {
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #0a0b0e;
  background: var(--spectrum);
}
.hero .lead { margin-top: 28px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; margin-top: 40px; }
.hero-actions > div { display: flex; flex-direction: column; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}
.trust-row li { display: inline-flex; align-items: center; gap: 9px; }
.trust-row svg { width: 17px; height: 17px; color: var(--text-2); }

/* Le logo, en grand à droite du titre */
.hero-logo {
  position: absolute;
  top: 56px;
  right: max(12px, calc((100vw - var(--container)) / 2 - 110px));
  width: min(350px, 25vw);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  animation: logo-in 1.4s 0.15s var(--ease) forwards;
}
.hero-logo::before {
  content: "";
  position: absolute;
  inset: 12% 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 140, 255, 0.22), rgba(239, 106, 91, 0.1) 55%, transparent);
  filter: blur(30px);
}
.hero-logo img { position: relative; width: 100%; height: auto; animation: logo-float 9s 1.6s ease-in-out infinite; }
@keyframes logo-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1200px) { .hero-logo { top: 72px; width: 22vw; } }
.nav-links a, .nav-login { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1140px) { .nav-links { gap: 0; } .nav-links a { padding-inline: 7px; font-size: 0.84rem; } }
@media (max-width: 960px) {
  .hero-logo { display: none; }
}

/* --------------------------------------------------------------------------
   Fenêtre de l'application (maquettes)
   -------------------------------------------------------------------------- */

.showcase { position: relative; margin-top: clamp(56px, 8vw, 96px); perspective: 2000px; }
.showcase::before {
  content: "";
  position: absolute;
  inset: 8% 6% -6%;
  z-index: -1;
  border-radius: 40px;
  background: var(--spectrum);
  filter: blur(90px);
  opacity: 0.18;
}

.app {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0e1013;
  box-shadow: var(--shadow-xl);
  font-family: var(--sans);
  font-size: 12px;
  color: #cdd5df;
  -webkit-user-select: none;
  user-select: none;
}
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px;
  background: #0b0d10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #8b94a1;
  font-size: 11.5px;
}
.app-titlebar img { width: 16px; height: 16px; border-radius: 4px; }
.app-titlebar .win-ctrls { margin-left: auto; display: flex; gap: 18px; }
.app-titlebar .win-ctrls i { display: block; width: 10px; height: 10px; border: 1.3px solid #5a6474; border-radius: 2px; }
.app-titlebar .win-ctrls i:first-child { height: 0; border-width: 1.3px 0 0; margin-top: 5px; border-radius: 0; }

.app-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #16191e;
}
.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: #0e1116;
  box-shadow: inset 0 0 0 1px #262c35;
}
.seg span { padding: 5px 11px; border-radius: 6px; color: #8b94a1; white-space: nowrap; }
.seg span.on { background: #242a33; color: #fff; }
.app-icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: #1c222b;
  box-shadow: inset 0 0 0 1px #2b323d;
  color: #cdd5df;
}
.app-icon-btn svg { width: 15px; height: 15px; }
.app-icon-btn.share { background: #8c3b52; box-shadow: none; }
.crumbs { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; }
.crumbs span { color: #8b94a1; }
.crumbs b { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crumbs i { font-style: normal; color: #5a6474; }
.crumbs .meta { color: #b9c2cd; }
.app-header .spacer { flex: 1; }

.app-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 10px;
  background: #16191e;
  overflow: hidden;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  background: #1a1f27;
  box-shadow: inset 0 0 0 1px #2b323d;
  color: #b9c2cd;
  white-space: nowrap;
}
.chip.search { width: 150px; color: #6f7885; }
.chip.on { background: #1d2a40; color: #cfe0ff; box-shadow: inset 0 0 0 1px #2f6fed; }

/* Les images : de la lumière en mouvement, jamais d'image explicite */
.art {
  position: relative;
  overflow: hidden;
  background-color: #0b0c10;
  background-image:
    radial-gradient(var(--s1, 60%) var(--s1, 60%) at var(--x1, 30%) var(--y1, 40%), var(--c1, #e0452f) 0%, transparent 70%),
    radial-gradient(var(--s2, 50%) var(--s2, 50%) at var(--x2, 75%) var(--y2, 70%), var(--c2, #ffcf6b) 0%, transparent 70%),
    radial-gradient(90% 80% at 50% 120%, var(--c3, #2b0a1a) 0%, transparent 70%);
  background-size: 140% 140%;
  animation: drift var(--dur, 14s) ease-in-out infinite alternate;
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(0, 0, 0, 0.55));
}
@keyframes drift {
  0% { background-position: 0% 0%; }
  50% { background-position: 60% 40%; }
  100% { background-position: 100% 100%; }
}
.a1 { --c1: #e0452f; --c2: #ffcf6b; --c3: #3a0d10; --x1: 30%; --y1: 45%; }
.a2 { --c1: #7a3cff; --c2: #ff6ad5; --c3: #120a2b; --x1: 60%; --y1: 30%; --dur: 17s; }
.a3 { --c1: #2f6fed; --c2: #9fe3ff; --c3: #071a2b; --x1: 40%; --y1: 60%; --dur: 12s; }
.a4 { --c1: #c2703d; --c2: #ffd29a; --c3: #1a0f08; --x1: 50%; --y1: 50%; --dur: 16s; }
.a5 { --c1: #a23b8f; --c2: #ffb3c7; --c3: #1a0820; --x1: 20%; --y1: 30%; --dur: 19s; }
.a6 { --c1: #1fb5a8; --c2: #e9f7a1; --c3: #07131a; --x1: 70%; --y1: 55%; --dur: 13s; }
.a7 { --c1: #d9486a; --c2: #f2a65a; --c3: #2b0a1a; --x1: 35%; --y1: 35%; --dur: 15s; }
.a8 { --c1: #5b5f8a; --c2: #e6c9a8; --c3: #0e0e14; --x1: 65%; --y1: 45%; --dur: 18s; }
.a9 { --c1: #e26d8f; --c2: #ffd9b8; --c3: #200a14; --x1: 45%; --y1: 25%; --dur: 14s; }
.a10 { --c1: #b8483a; --c2: #f7b267; --c3: #1d0b07; --x1: 25%; --y1: 65%; --dur: 20s; }
.a11 { --c1: #4c8dff; --c2: #e26d8f; --c3: #0a0f22; --x1: 55%; --y1: 40%; --dur: 16s; }
.a12 { --c1: #f2c64b; --c2: #ef6a5b; --c3: #1f1206; --x1: 40%; --y1: 30%; --dur: 13s; }

.badge-time {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
}

/* La planche */
.board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 4px 12px 12px;
  background: #16191e;
}
.card {
  overflow: hidden;
  border-radius: 7px;
  background: #1a1f27;
  box-shadow: inset 0 0 0 1px #262c35;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.card .art { aspect-ratio: 16 / 10; }
.card-cap {
  display: flex;
  gap: 5px;
  padding: 5px 7px 6px;
  font-size: 10.5px;
  color: #8b94a1;
  white-space: nowrap;
  overflow: hidden;
}
.card-cap b { color: #cdd5df; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.card.hot { box-shadow: inset 0 0 0 1.5px #4c8dff, 0 10px 30px -8px rgba(76, 141, 255, 0.4); transform: translateY(-2px); }
.card .prog {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  height: 2.5px;
  background: #4c8dff;
  animation: prog 10s linear infinite;
}
@keyframes prog { from { width: 0; } to { width: 100%; } }

@media (max-width: 760px) {
  .board { grid-template-columns: repeat(3, 1fr); }
  .board .card:nth-child(n+10) { display: none; }
  .app-toolbar .chip:nth-child(n+5) { display: none; }
  .app-header .seg span:nth-child(n+4) { display: none; }
  .hide-sm { display: none !important; }
}

/* --------------------------------------------------------------------------
   Logos de confiance / bande de formats
   -------------------------------------------------------------------------- */

.formats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 40px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}
.formats b { color: var(--text-2); font-weight: 600; }
.formats-label { width: 100%; text-align: center; font-family: var(--sans); letter-spacing: 0; font-size: 0.9rem; color: var(--muted); margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   Le constat
   -------------------------------------------------------------------------- */

.pains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pain {
  position: relative;
  padding: 28px 24px 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--panel));
  box-shadow: inset 0 0 0 1px var(--line);
}
.pain-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-2);
}
.pain-ico svg { width: 20px; height: 20px; }
.pain h3 { font-size: 1.1rem; margin-bottom: 10px; }
.pain p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.pain code {
  font-family: var(--mono);
  font-size: 0.82em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
}
.answer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 56px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text);
  text-align: center;
  letter-spacing: -0.01em;
}
.answer img { width: 40px; height: 40px; border-radius: 11px; flex: none; }

@media (max-width: 1000px) { .pains { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pains { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Démo interactive
   -------------------------------------------------------------------------- */

.demo-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: stretch;
}
.demo-app { outline: none; }
.demo-app.is-live { box-shadow: var(--shadow-xl), 0 0 0 1.5px rgba(76, 141, 255, 0.45); }

.fiche {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
  padding: 0 12px 10px;
  background: #16191e;
}
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.player .art { position: absolute; inset: 0; transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), filter 0.6s; }
.player .remain {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  font-variant-numeric: tabular-nums;
}
.player .bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: rgba(255, 255, 255, 0.12); }
.player .bar i { display: block; height: 100%; width: 0; background: #4c8dff; }
.player .res {
  position: absolute;
  left: 10px;
  bottom: 12px;
  z-index: 3;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.player .fly-out { animation: flyout 0.55s var(--ease) forwards; }
.player .fly-trash { animation: flytrash 0.55s var(--ease) forwards; }
.player .fly-skip { animation: flyskip 0.5s var(--ease) forwards; }
.player .fly-in { animation: flyin 0.55s var(--ease) both; }
@keyframes flyout { to { opacity: 0; transform: translateY(40%) scale(0.4); filter: blur(4px); } }
@keyframes flytrash { to { opacity: 0; transform: translate(-30%, 30%) scale(0.3) rotate(-8deg); filter: grayscale(1) blur(3px); } }
@keyframes flyskip { to { opacity: 0; transform: translateX(-40%); } }
@keyframes flyin { from { opacity: 0; transform: translateX(30%) scale(0.96); } to { opacity: 1; transform: none; } }

.strip { display: grid; grid-template-rows: repeat(5, 1fr); gap: 6px; }
.strip .art { border-radius: 5px; min-height: 0; }
.strip .art span {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 9.5px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

.cmdbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 12px;
  background: #16191e;
  flex-wrap: wrap;
}
.cmd {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: #1a1f27;
  box-shadow: inset 0 0 0 1px #2b323d;
  color: #cdd5df;
  font-size: 11.5px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.cmd b { font-weight: 700; color: #f5c542; }
.cmd.del b { color: #ef6a5b; }
.cmd.skip b { color: #4c8dff; }
.cmd:hover { background: #242a33; }
.cmd.pressed { transform: scale(0.94); background: #2b323d; box-shadow: inset 0 0 0 1.5px #4c8dff; }

.demo-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--panel));
  box-shadow: inset 0 0 0 1px var(--line);
}
.demo-side h3 { font-size: 1rem; }
.demo-side .hint { font-size: 0.86rem; color: var(--muted); margin: 0; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--dim); font-family: var(--mono); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.demo-app.is-live ~ .demo-side .live-dot { color: var(--green); }
.demo-app.is-live ~ .demo-side .live-dot::before { background: var(--green); box-shadow: 0 0 0 4px rgba(79, 194, 138, 0.18); }

.dest-list { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.dest-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9rem;
  transition: background 0.3s, box-shadow 0.3s;
}
.dest-list li .kbd { font-size: 0.72rem; }
.dest-list li .count { margin-left: auto; font-family: var(--mono); font-size: 0.85rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dest-list li.bump { background: rgba(242, 198, 75, 0.08); box-shadow: inset 0 0 0 1px rgba(242, 198, 75, 0.4); }
.dest-list li.trash.bump { background: rgba(239, 106, 91, 0.08); box-shadow: inset 0 0 0 1px rgba(239, 106, 91, 0.45); }
.demo-stats { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; font-size: 0.82rem; color: var(--muted); }
.demo-stats b { display: block; font-size: 1.4rem; color: var(--text); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.demo-undo { font-size: 0.84rem; color: var(--muted); margin: 0; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 70px;
  z-index: 5;
  transform: translate(-50%, 10px);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 24, 31, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.25s, transform 0.35s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .demo-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .fiche { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-rows: none; grid-template-columns: repeat(5, 1fr); }
  .strip .art { aspect-ratio: 16 / 10; }
  .cmd span { display: none; }
  .cmd.del span, .cmd.skip span { display: none; }
}

/* --------------------------------------------------------------------------
   Grille de fonctionnalités (bento)
   -------------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface), var(--panel));
  box-shadow: inset 0 0 0 1px var(--line);
  isolation: isolate;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.06), transparent 60%);
  transition: opacity 0.4s;
}
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: 1.18rem; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 46ch; }
.tile .tile-visual { margin-top: auto; padding-top: 26px; }
.tile-kicker { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4, .span-6 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: span 1; }
  .tile { min-height: 0; padding: 24px; }
}

/* Visuels des tuiles */
.keys-demo { display: flex; flex-wrap: wrap; gap: 8px; }
.keys-demo .kbd { font-size: 0.95rem; height: 2.4em; min-width: 2.4em; }
.keys-demo .k-gold { color: var(--gold); }
.keys-demo .k-amber { color: var(--amber); }
.keys-demo .k-red { color: var(--red); }
.keys-demo .k-blue { color: var(--blue); }

.mini-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mini-strip .art { aspect-ratio: 16 / 11; border-radius: 6px; }
.mini-strip .art.hot { box-shadow: 0 0 0 1.5px var(--blue); }

.radial {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}
.radial .center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}
.radial .opt {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  white-space: nowrap;
  background: #1a1f27;
  box-shadow: inset 0 0 0 1px #39414d, 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-86px) rotate(calc(var(--a) * -1));
  transition: transform 0.6s var(--ease);
}
.radial .opt b { color: var(--amber); font-family: var(--mono); }
.radial .opt.sel { background: #3a2a14; box-shadow: inset 0 0 0 1.5px var(--amber), 0 8px 24px rgba(224, 146, 47, 0.3); }

.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 10px; background: #000; }
.mosaic .art { aspect-ratio: 16 / 10; border-radius: 4px; }
.mosaic .art:nth-child(5) { box-shadow: inset 0 0 0 1.5px #fff; }

.zoom-demo { position: relative; aspect-ratio: 2.2 / 1; border-radius: 10px; overflow: hidden; }
.zoom-demo .art { position: absolute; inset: 0; animation: drift 14s ease-in-out infinite alternate, zoomy 7s var(--ease) infinite; transform-origin: 68% 42%; }
.zoom-demo .zlabel { position: absolute; right: 10px; top: 10px; z-index: 3; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.6); font-family: var(--mono); font-size: 0.75rem; }
@keyframes zoomy { 0%, 15% { transform: scale(1); } 45%, 70% { transform: scale(2.6); } 100% { transform: scale(1); } }

.tags-demo { display: flex; flex-direction: column; gap: 12px; }
.fname {
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fname em { font-style: normal; color: var(--text); padding-bottom: 2px; border-bottom: 2px solid; margin-right: 2px; }
.fname em.w1 { border-color: rgba(239, 106, 91, 0.8); }
.fname em.w2 { border-color: rgba(245, 208, 78, 0.8); }
.fname em.w3 { border-color: rgba(90, 169, 226, 0.85); }
.fname s { color: #4b525d; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.tag i { font-style: normal; font-family: var(--mono); font-size: 0.75rem; color: var(--dim); }
.tag.t1 { box-shadow: inset 0 0 0 1px rgba(239, 106, 91, 0.45); }
.tag.t2 { box-shadow: inset 0 0 0 1px rgba(242, 198, 75, 0.45); }
.tag.t3 { box-shadow: inset 0 0 0 1px rgba(90, 169, 226, 0.5); }

.search-demo {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.84rem;
}
.search-demo div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 9px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1px var(--line); }
.search-demo span { color: var(--muted); font-family: var(--sans); font-size: 0.82rem; text-align: right; }

.stars-row { display: flex; gap: 6px; color: var(--gold); }
.stars-row svg { width: 26px; height: 26px; }
.stars-row svg.off { color: #3a404a; }

/* --------------------------------------------------------------------------
   Sections « feature » en deux colonnes
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas: "copy vis" "more vis";
  column-gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.feature.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-areas: "vis copy" "vis more"; }
/* Titre et texte, puis l'image, puis les points : sur téléphone, dans cet ordre-là. */
.feature > .feature-copy { grid-area: copy; align-self: end; }
.feature > :not(.feature-copy):not(.feature-more) { grid-area: vis; }
.feature > .feature-more { grid-area: more; align-self: start; }
.feature-copy .eyebrow { margin-bottom: 20px; }
.feature-copy .lead { margin-top: 20px; }
.checks { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); font-size: 0.98rem; }
.checks li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--blue); }
.checks li b { color: var(--text); font-weight: 600; }

@media (max-width: 960px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "vis" "more"; }
  .feature > :not(.feature-copy):not(.feature-more) { margin-top: 32px; }
}

/* Le mur */
.wall-app .wall {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  padding: 4px 12px 12px;
  background: #16191e;
}
.panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 7px;
  background: #000;
}
.panel .art { position: absolute; inset: 0; }
.panel-top, .panel-bot {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  font-size: 10.5px;
  color: #fff;
}
.panel-top { top: 0; background: linear-gradient(rgba(0, 0, 0, 0.6), transparent); }
.panel-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.panel-top b { padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, 0.6); font-variant-numeric: tabular-nums; }
.panel-bot { bottom: 0; justify-content: center; gap: 4px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); padding-bottom: 12px; }
.panel-bot i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-style: normal;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.panel .bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 2.5px; background: rgba(255, 255, 255, 0.12); }
.panel .bar i { display: block; height: 100%; background: #4c8dff; animation: prog var(--len, 18s) linear infinite; }

/* Téléphone (accès à distance) */
.remote-visual { position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 520px; }
.phone {
  position: relative;
  width: 260px;
  flex: none;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2f38, #0e1013);
  box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-screen {
  overflow: hidden;
  border-radius: 33px;
  background: #0e1116;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
}
.phone-notch { width: 90px; height: 24px; margin: 8px auto 6px; border-radius: 20px; background: #000; flex: none; }
.phone-head { display: flex; align-items: center; gap: 8px; padding: 6px 14px 10px; font-size: 12px; font-weight: 600; }
.phone-head img { width: 20px; height: 20px; border-radius: 6px; }
.phone-head span { margin-left: auto; font-size: 10px; font-weight: 500; color: var(--green); display: inline-flex; align-items: center; gap: 5px; }
.phone-head span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 10px; }
.phone-grid .art { aspect-ratio: 3 / 4; border-radius: 8px; }
.phone-grid .art:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }

.qr-card {
  width: 220px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--panel));
  box-shadow: var(--shadow-xl);
  font-size: 0.82rem;
}
.qr-card .qr { width: 100%; aspect-ratio: 1; border-radius: 12px; background: #f4f6f9; padding: 12px; margin-bottom: 14px; }
.qr-card .qr svg { width: 100%; height: 100%; }
.qr-card p { margin: 0 0 12px; color: var(--muted); }
.qr-card .lock { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(79, 194, 138, 0.08); color: #9fe0bf; font-size: 0.8rem; box-shadow: inset 0 0 0 1px rgba(79, 194, 138, 0.25); }
.qr-card .lock svg { width: 15px; height: 15px; flex: none; }
.access-log { margin-top: 12px; display: grid; gap: 6px; font-size: 0.76rem; color: var(--muted); }
.access-log div { display: flex; justify-content: space-between; gap: 8px; }
.access-log b { color: var(--text-2); font-weight: 500; }

@media (max-width: 640px) {
  .remote-visual { flex-direction: column; min-height: 0; }
  .qr-card { width: 100%; max-width: 300px; }
  /* Sur le téléphone, on y est déjà : pas de QR code à scanner. */
  .qr-card .qr, .qr-card .qr + p { display: none; }
}
/* La planche du hero, lisible sur téléphone : deux vignettes par ligne. */
@media (max-width: 560px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .board .card:nth-child(n+7) { display: none; }
  .board .card-cap { font-size: 0.72rem; }
}

/* --------------------------------------------------------------------------
   Discrétion
   -------------------------------------------------------------------------- */

.privacy {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(32px, 6vw, 80px);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(76, 141, 255, 0.12), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(239, 106, 91, 0.08), transparent 60%),
    linear-gradient(180deg, #10141a, #0b0d10);
  box-shadow: inset 0 0 0 1px var(--line);
}
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 960px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); } }

.quiet-demo {
  position: relative;
  aspect-ratio: 16 / 10.5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
}
.quiet-demo > div { position: absolute; inset: 0; transition: opacity 0.35s ease, transform 0.6s var(--ease); }
.quiet-demo .q-app { background: #16191e; padding: 10px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 6px; }
.quiet-demo .q-app .art { border-radius: 6px; }
.quiet-demo .q-neutral {
  background: #f4f5f7;
  color: #3b4350;
  padding: 18px 20px;
  font-size: 11px;
  opacity: 0;
  transform: scale(1.02);
}
.quiet-demo.is-quiet .q-app { opacity: 0; transform: scale(0.98); }
.quiet-demo.is-quiet .q-neutral { opacity: 1; transform: none; }
.q-neutral h4 { font-size: 14px; color: #1f2733; margin: 0 0 4px; letter-spacing: -0.01em; font-weight: 600; }
.q-neutral .q-sub { color: #6b7483; margin-bottom: 12px; }
.q-neutral .q-bar { height: 7px; border-radius: 4px; background: #dfe3e8; overflow: hidden; margin-bottom: 14px; }
.q-neutral .q-bar i { display: block; height: 100%; width: 62%; background: #9aa5b4; }
.q-neutral table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.q-neutral th { text-align: left; font-weight: 500; color: #8a93a1; padding: 3px 0; border-bottom: 1px solid #e3e6ea; }
.q-neutral td { padding: 4px 0; border-bottom: 1px solid #eef0f3; }
.q-neutral td:not(:first-child), .q-neutral th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.quiet-key {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-2);
  background: #1a1f27;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--line-2);
  white-space: nowrap;
}
.quiet-wrap { position: relative; padding-bottom: 20px; }

.privacy-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 30px; margin-top: 40px; }
.privacy-points div { display: grid; gap: 6px; }
.privacy-points h4 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.privacy-points h4 svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.privacy-points p { margin: 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 560px) { .privacy-points { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Chiffres
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.stat b small { font-size: 0.45em; letter-spacing: -0.01em; color: var(--muted); margin-left: 4px; font-weight: 500; }
.stat span { color: var(--muted); font-size: 0.93rem; display: block; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

.perf-compare { display: grid; gap: 18px; margin-top: 48px; max-width: 760px; }
.perf-row { display: grid; grid-template-columns: 170px 1fr 70px; gap: 16px; align-items: center; font-size: 0.92rem; color: var(--muted); }
.perf-row .track { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.perf-row .track i { display: block; height: 100%; border-radius: 6px; width: 0; transition: width 1.6s var(--ease); }
.perf-row.slow .track i { background: #3a404a; }
.perf-row.fast .track i { background: var(--spectrum); }
.perf-row b { text-align: right; color: var(--text); font-family: var(--mono); font-weight: 600; }
.is-in .perf-row.slow .track i { width: 100%; }
.is-in .perf-row.fast .track i { width: 1.5%; min-width: 8px; }
@media (max-width: 560px) { .perf-row { grid-template-columns: 1fr 60px; } .perf-row .track { grid-column: span 2; order: 3; } }

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

.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.safe {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--panel));
  box-shadow: inset 0 0 0 1px var(--line);
}
.safe-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-2);
}
.safe-ico svg { width: 19px; height: 19px; }
.safe h3 { font-size: 1.05rem; margin-bottom: 8px; }
.safe p { margin: 0; color: var(--muted); font-size: 0.93rem; }
@media (max-width: 900px) { .safety { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .safety { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Tarifs
   -------------------------------------------------------------------------- */

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 32px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.billing-toggle button {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.billing-toggle em { font-style: normal; font-size: 0.78rem; color: var(--green); margin-left: 6px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface), var(--panel));
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan.featured {
  background:
    linear-gradient(180deg, rgba(26, 31, 39, 1), rgba(14, 17, 22, 1)) padding-box,
    var(--spectrum) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(76, 141, 255, 0.35);
}
.plan-flag {
  position: absolute;
  top: -13px;
  left: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0b0e;
  background: var(--spectrum);
}
.plan-flag-launch { background: #f2c64b; }
.price s { align-self: baseline; color: var(--muted); font-size: 1.35rem; font-weight: 500; text-decoration-thickness: 2px; text-decoration-color: rgba(239, 106, 91, 0.85); }
.trial-note { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin: 0 auto 40px; padding: 18px 22px; border-radius: 18px; background: rgba(79, 194, 138, 0.07); box-shadow: inset 0 0 0 1px rgba(79, 194, 138, 0.28); }
.trial-note p { margin: 0; color: var(--text-2); font-size: 0.97rem; line-height: 1.6; }
.trial-note b { color: var(--text); }
.trial-note-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(79, 194, 138, 0.14); color: #4fc28a; }
.trial-note-ico svg { width: 20px; height: 20px; }
.plan h3 { font-size: 1.15rem; }
.plan .plan-desc { margin: 8px 0 26px; color: var(--muted); font-size: 0.93rem; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 3.2rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.price span { color: var(--muted); font-size: 0.95rem; }
.price-sub { margin: 10px 0 26px; font-size: 0.86rem; color: var(--dim); min-height: 1.4em; }
.plan ul { display: grid; gap: 12px; margin: 26px 0 30px; padding: 26px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 0.94rem; color: var(--text-2); }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--green); }
.plan .btn { margin-top: auto; }
.plans-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--muted);
}
.plans-foot span { display: inline-flex; align-items: center; gap: 9px; }
.plans-foot svg { width: 17px; height: 17px; color: var(--text-2); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .plan .plan-desc { min-height: 0; } }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-grid > .section-head { position: sticky; top: 110px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .faq-grid > .section-head { position: static; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: 1.06rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--text), var(--text)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 11px no-repeat,
    rgba(255, 255, 255, 0.05);
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer-body { padding: 0 50px 26px 0; color: var(--muted); font-size: 0.98rem; }
.faq .answer-body p { margin: 0 0 12px; }
.faq .answer-body p:last-child { margin: 0; }

/* --------------------------------------------------------------------------
   Appel final
   -------------------------------------------------------------------------- */

.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
  isolation: isolate;
}
.final::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(1100px, 120vw);
  height: 500px;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 180deg at 50% 50%, #ef6a5b, #f2c64b, #5aa9e2, #4c8dff, #e26d8f, #ef6a5b);
  filter: blur(120px);
  opacity: 0.18;
  border-radius: 50%;
}
.final img { width: 84px; height: 84px; margin: 0 auto 34px; border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.final .lead { margin: 22px auto 0; }
.final .hero-actions { justify-content: center; }

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

.footer { padding: 70px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: 0.82rem; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 16px; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: var(--text); }
.footer .brand { color: var(--text); margin-bottom: 16px; }
.footer p { margin: 0; max-width: 36ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--dim);
}
.age-badge {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  box-shadow: inset 0 0 0 1.5px var(--red);
  vertical-align: middle;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }

/* --------------------------------------------------------------------------
   Pages secondaires (légal, téléchargement)
   -------------------------------------------------------------------------- */

.page { padding: 150px 0 100px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.04em; margin-bottom: 16px; }
.prose h2 { font-size: 1.35rem; margin: 48px 0 14px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--text-2); }
.prose a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { color: var(--dim); font-size: 0.9rem; }
.todo {
  padding: 1px 6px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--gold);
  background: rgba(242, 198, 75, 0.1);
}
.note-box {
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(76, 141, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(76, 141, 255, 0.25);
  color: var(--text-2);
  font-size: 0.95rem;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  margin-top: 40px;
}
@media (max-width: 900px) { .download-card { grid-template-columns: 1fr; } }
.form {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface), var(--panel));
  box-shadow: inset 0 0 0 1px var(--line);
}
.form label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; }
.form input[type="email"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.2s;
}
.form input[type="email"]:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--blue); }
.form .consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 18px 0 22px; font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.form .consent input { margin-top: 3px; accent-color: var(--blue); }
.form .fine { margin: 14px 0 0; font-size: 0.8rem; color: var(--dim); }
.form-ok { display: none; text-align: center; padding: 20px 0; }
.form.is-done form { display: none; }
.form.is-done .form-ok { display: block; }

.req-list { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.req-list li { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.req-list li span { color: var(--muted); }

/* --------------------------------------------------------------------------
   Mouvement réduit
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-logo { opacity: 1; }
}

/* Doublons : les noms longs se coupent au lieu d'élargir la maquette */
.dupe-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 9px; }
.dupe-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .dupe-row { grid-template-columns: 72px minmax(0, 1fr) auto; } }

/* Ajustements petits écrans */
@media (max-width: 480px) {
  .showcase .app-header .seg span:nth-child(n+3) { display: none; }
  .phone { width: 220px; }
}
@media (hover: none) {
  .live-dot { display: none; }
}

/* Séparateur vidéos / photos dans la bande des formats */
.formats-sep { width: 1px; height: 16px; background: var(--line-2); }

/* Lecteur flottant : un bureau, une fenêtre, et la vidéo par-dessus */
.desk {
  position: relative;
  aspect-ratio: 16 / 8;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #1b2130, #0d1016);
  box-shadow: inset 0 0 0 1px var(--line);
}
.desk-win {
  position: absolute;
  left: 7%;
  top: 12%;
  width: 62%;
  height: 76%;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 26px 14px 14px;
  border-radius: 8px;
  background: #e9ecf1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.desk-win::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; border-radius: 8px 8px 0 0; background: #d5dae2; }
.desk-win i { display: block; height: 7px; border-radius: 4px; background: #c9cfd8; }
.desk-win i:nth-child(odd) { width: 70%; }
.desk-win i:nth-child(3n) { width: 45%; }
.desk-float {
  position: absolute;
  right: 5%;
  bottom: 9%;
  width: 40%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: floaty 6s ease-in-out infinite;
}
.desk-float .art { position: absolute; inset: 0; }
.desk-float .badge-time { font-size: 9.5px; top: 5px; right: 5px; }
.desk-float .bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 2.5px; background: rgba(255, 255, 255, 0.15); }
.desk-float .bar i { display: block; height: 100%; background: var(--blue); animation: prog 16s linear infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* À trier / Orphelins */
.pinned-demo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.fname-stack { display: grid; gap: 6px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.fname-stack span { padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinned-cards { display: grid; gap: 10px; }
.pinned {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1d2a40;
  box-shadow: inset 0 0 0 1px rgba(76, 141, 255, 0.45);
  color: #cfe0ff;
  font-size: 0.9rem;
}
.pinned i { font-style: normal; font-family: var(--mono); font-size: 0.8rem; padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); color: #fff; }
@media (max-width: 480px) { .pinned-demo { grid-template-columns: minmax(0, 1fr); } }

/* Le Mur en photos : chaque panneau a son diaporama */
.app-icon-btn.kind { color: var(--sky); }
.pwall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px 12px 12px;
  background: #16191e;
}
.ppanel { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 6px; background: #000; }
.ppanel .art { position: absolute; inset: 0; opacity: 0; animation: drift 14s ease-in-out infinite alternate, slide 12s linear infinite; }
.ppanel .art:nth-child(1) { animation-delay: 0s, var(--o, 0s); }
.ppanel .art:nth-child(2) { animation-delay: 0s, calc(var(--o, 0s) - 8s); }
.ppanel .art:nth-child(3) { animation-delay: 0s, calc(var(--o, 0s) - 4s); }
@keyframes slide { 0% { opacity: 0; } 4%, 33% { opacity: 1; } 37%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ppanel .art:first-child { opacity: 1; }
}

/* Favori dans la démo : une étoile, allumée ou non */
.fav {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: #1a1f27;
  box-shadow: inset 0 0 0 1px #2b323d;
  color: #8b94a1;
  font-size: 11.5px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.fav svg { width: 15px; height: 15px; color: #5a6474; transition: color 0.2s, transform 0.3s var(--ease); }
.fav:hover { background: #242a33; }
.fav.on { color: #f5c542; background: #2b2412; box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.5); }
.fav.on svg { color: #f5c542; transform: scale(1.15); }

.fav-visual { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fav-star { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #2b2412; box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.45); color: var(--gold); }
.fav-star svg { width: 24px; height: 24px; }
.fav-visual .seg { font-size: 0.82rem; }

/* Le Mur interactif */
.wall-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.8fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.wall-checks { margin-top: 0; }
@media (max-width: 960px) { .wall-layout { grid-template-columns: minmax(0, 1fr); } }
.wall-controls { flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 9px; background: #0e1116; box-shadow: inset 0 0 0 1px #262c35; }
.stepper button, .seg-btn button {
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #cdd5df;
  font-size: 12px;
  cursor: pointer;
}
.stepper button { width: 28px; font-size: 15px; line-height: 1; }
.stepper button:hover, .seg-btn button:hover { background: #242a33; }
.stepper b { min-width: 24px; text-align: center; color: #fff; font-variant-numeric: tabular-nums; }
.seg-btn { padding: 3px; }
.seg-btn button { padding: 0 11px; color: #8b94a1; }
.seg-btn button[aria-pressed="true"] { background: #1d2a40; color: #cfe0ff; box-shadow: inset 0 0 0 1px #2f6fed; }
#wallDemo .panel { animation: rise 0.5s var(--ease) both; }
#wallDemo.is-h .panel { aspect-ratio: 16 / 9; }
#wallDemo.is-dense .panel-bot { display: none; }
#wallDemo.is-dense .panel-top { font-size: 9px; padding: 5px; }
#wallDemo.is-dense .panel-top span { display: none; }
#wallDemo.is-dense .panel-top b { margin-left: auto; }
@media (max-width: 600px) {
  #wallDemo .panel-bot { display: none; }
  #wallDemo .panel-top span { display: none; }
  #wallDemo .panel-top b { margin-left: auto; font-size: 9px; }
}

/* Tuile pleine largeur : le texte à gauche, l'illustration à droite */
.tile-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: center; min-height: 0; }
.tile-wide .tile-visual { margin-top: 0; padding-top: 0; }
@media (max-width: 800px) { .tile-wide { grid-template-columns: minmax(0, 1fr); } .tile-wide .tile-visual { padding-top: 6px; } }


/* Paiement : message d'échec sous les tarifs, page de remerciement */
.checkout-error { max-width: 560px; margin: 20px auto 0; text-align: center; color: var(--red); font-size: 0.95rem; }
.checkout-error a { text-decoration: underline; }
[data-checkout][aria-busy="true"] { opacity: 0.7; cursor: progress; }
.thanks { max-width: 680px; margin: 0 auto; text-align: center; }
.thanks > img { margin: 0 auto 28px; border-radius: 18px; }
.thanks-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 16px; }
.thanks .lead { margin: 22px auto 0; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.thanks-note { margin: 28px auto 0; max-width: 520px; font-size: 0.92rem; }
.thanks-state { display: none; }
.thanks[data-state="loading"] [data-when="loading"],
.thanks[data-state="paid"] [data-when="paid"],
.thanks[data-state="pending"] [data-when="pending"],
.thanks[data-state="unknown"] [data-when="unknown"] { display: block; }
.licence-box { display: grid; gap: 12px; justify-items: center; margin: 28px auto 0; padding: 20px; max-width: 560px; border-radius: 14px; background: #11151b; box-shadow: inset 0 0 0 1px var(--line); }
.licence-box[hidden] { display: none; }
.licence-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.licence-box code { display: block; width: 100%; padding: 12px; border-radius: 9px; background: rgba(0, 0, 0, 0.35); color: #e9eef4; font-family: var(--mono); font-size: 0.78rem; line-height: 1.5; word-break: break-all; text-align: left; user-select: all; }
.licence-box p { margin: 0; font-size: 0.88rem; }

/* Recherche & téléchargement : la fenêtre de recherche, et ce qu'elle apporte */
.ws-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 48px; }
@media (max-width: 960px) { .ws-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.ws-app { font-size: 12px; }
.ws-body { display: grid; grid-template-columns: 170px minmax(0, 1fr); background: #0e1116; min-height: 360px; }
.ws-side { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; background: #11151b; border-right: 1px solid #1c222b; color: #b9c2cd; }
.ws-side b { margin-top: 6px; color: #e9eef4; font-size: 11.5px; font-weight: 600; }
.ws-site { display: flex; align-items: center; gap: 7px; color: #6f7885; }
.ws-site::before { content: ""; width: 11px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1px #39414d; }
.ws-site.on { color: #cdd5df; }
.ws-site.on::before { background: #2f6fed; box-shadow: none; }
.ws-query { padding: 7px 8px; border-radius: 6px; background: #151a21; box-shadow: inset 0 0 0 1px #262e39; color: #e9eef4; font-family: var(--mono); font-size: 11px; line-height: 1.5; }
.ws-filter { display: flex; justify-content: space-between; color: #8b94a1; font-size: 11px; }
.ws-filter i { font-style: normal; color: #e9eef4; }
.ws-go { margin-top: 6px; padding: 7px; border-radius: 6px; background: #2f6fed; color: #fff; text-align: center; font-weight: 600; }
.ws-results { padding: 12px; display: grid; gap: 10px; align-content: start; }
.ws-count { color: #8b94a1; font-size: 11px; }
.ws-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ws-card { display: grid; gap: 6px; padding: 6px; border-radius: 9px; background: #151a21; box-shadow: inset 0 0 0 1px #232a34; }
.ws-card .art { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; }
.ws-card em { font-style: normal; color: #8b94a1; font-size: 10.5px; }
.ws-dur, .ws-q { position: absolute; bottom: 5px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ws-dur { right: 5px; }
.ws-q { left: 5px; }
.ws-btn { position: relative; overflow: hidden; padding: 5px; border-radius: 6px; background: #1d2a40; color: #cfe0ff; box-shadow: inset 0 0 0 1px #2f6fed; text-align: center; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.ws-btn.prog { background: #1a1f27; color: #e9eef4; box-shadow: inset 0 0 0 1px #2b323d; }
.ws-btn.prog i { position: absolute; inset: 0 auto 0 0; background: rgba(47, 111, 237, 0.35); }
.ws-btn.done { background: #1a2a22; color: #4fc28a; box-shadow: inset 0 0 0 1px rgba(79, 194, 138, 0.4); }
@media (max-width: 560px) {
  .ws-body { grid-template-columns: minmax(0, 1fr); }
  .ws-side { display: none; }
  .ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.keys-demo .keys-more { flex-basis: 100%; margin-top: 4px; font-size: 0.82rem; color: var(--muted); }
.ws-checks { margin-top: 0; }

/* Prisme TV */
.tv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
@media (max-width: 900px) { .tv-grid { grid-template-columns: minmax(0, 1fr); } }
.tv-card, .tv-remote { padding: clamp(22px, 3vw, 34px); border-radius: 18px; background: #0f1217; box-shadow: inset 0 0 0 1px var(--line); }
.tv-card .checks { margin-top: 18px; }
.tv-note { margin-top: 18px; font-size: 0.92rem; }
.tv-steps { margin: 18px 0 0; padding-left: 22px; display: grid; gap: 14px; line-height: 1.55; color: var(--muted); }
.tv-steps b { color: var(--text, #e9eef4); }
.tv-steps .muted { display: block; margin-top: 4px; font-size: 0.9rem; }
.tv-address { display: block; margin-top: 10px; padding: 12px 16px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: 1.2rem; color: #fff; letter-spacing: 0.02em; }
.tv-download { margin-top: 22px; }
.tv-remote { margin-top: 24px; }
.tv-remote table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 0.95rem; }
.tv-remote th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.tv-remote td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.tv-remote td:first-child { color: #fff; white-space: nowrap; font-weight: 600; }
@media (max-width: 600px) { .tv-remote table, .tv-remote tbody, .tv-remote tr, .tv-remote td { display: block; } .tv-remote th { display: none; } .tv-remote td { border: 0; padding: 2px 0; } .tv-remote tr { padding: 10px 0; border-bottom: 1px solid var(--line); } }

/* --------------------------------------------------------------------------
   Tuiles ajoutées : plusieurs racines, annuler, réparer ; « Et aussi » ; Confiance
   -------------------------------------------------------------------------- */
.roots-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.roots-demo .root { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .88rem; color: var(--muted); }
.roots-demo .root i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; font-style: normal; font-size: 11px; box-shadow: inset 0 0 0 1px var(--line-2); }
.roots-demo .root.on { color: var(--text); }
.roots-demo .root.on i { background: var(--blue); color: #fff; box-shadow: none; }
.roots-demo .root-count { font: 600 .85rem var(--mono); color: var(--muted); margin-left: auto; }
.undo-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.undo-demo .trash-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(240,132,60,.12); color: var(--amber); font-size: .85rem; box-shadow: inset 0 0 0 1px rgba(240,132,60,.35); }
.undo-demo .trash-pill svg { width: 15px; height: 15px; }
.repair-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.repair-demo figure { margin: 0; display: grid; gap: 6px; }
.repair-demo .art { aspect-ratio: 16 / 10; border-radius: 10px; }
.repair-demo figcaption { font-size: .78rem; color: var(--muted); }
.repair-demo .art.broken::before { content: ""; position: absolute; inset: 0; z-index: 2; background:
  linear-gradient(90deg, transparent 12%, rgba(64,200,120,.55) 12% 30%, transparent 30% 55%, rgba(220,60,160,.5) 55% 70%, transparent 70%) 0 38% / 100% 14% no-repeat,
  linear-gradient(90deg, rgba(60,90,255,.45) 0 22%, transparent 22% 64%, rgba(240,200,40,.45) 64% 86%, transparent 86%) 0 62% / 100% 10% no-repeat,
  repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 6px, transparent 6px 14px) 0 40% / 100% 30% no-repeat; }
.repair-demo .art { position: relative; overflow: hidden; }

.also { margin-top: 28px; padding: 26px 28px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.also h3 { font-size: 1rem; margin-bottom: 14px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.also ul { list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 36px; }
.also li { break-inside: avoid; padding: 6px 0 6px 16px; position: relative; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.also li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.also li b { color: var(--text); font-weight: 600; }

.trust3 .trust-figure { margin: 2px 0 10px; color: var(--muted); font-size: .9rem; }
.trust3 .trust-figure b { font-size: 1.9rem; letter-spacing: -.02em; color: var(--text); margin-right: 6px; }
@media (max-width: 860px) { .safety.trust3 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Démo : les vrais gestes de la fiche
   -------------------------------------------------------------------------- */
.player { cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.demo-big { position: absolute; left: 50%; top: 50%; z-index: 6; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; opacity: 0; pointer-events: none; }
.demo-big svg { width: 30px; height: 30px; }
.demo-big.show { animation: demoflash .7s var(--ease) both; }
@keyframes demoflash { 0% { opacity: 0; transform: scale(.7); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
.demo-seek { position: absolute; left: 50%; top: 14px; z-index: 6; transform: translateX(-50%); padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; font: 600 12px var(--mono); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .2s; pointer-events: none; }
.demo-seek.show { opacity: 1; }

.demo-over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.78)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; cursor: default; }
.demo-over.show { opacity: 1; transform: none; pointer-events: auto; }
.player:has(.demo-over.show) .res { opacity: 0; }
.ob-rail { position: relative; height: 4px; margin: 0 2px 8px; border-radius: 2px; background: rgba(255,255,255,.18); cursor: pointer; }
.ob-rail::before { content: ""; position: absolute; inset: -6px 0; }
.ob-rail i { display: block; height: 100%; width: 0; border-radius: 2px; background: #4c8dff; }
.ob-row { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 11.5px; min-width: 0; }
.ob-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .9; }
.ob-pos { color: #f5c542; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ob-mid { display: flex; gap: 2px; margin: 0 auto; }
.ob-left { font-variant-numeric: tabular-nums; opacity: .85; white-space: nowrap; }
.ob-btn { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #fff; cursor: pointer; flex: none; }
.ob-btn:hover { background: rgba(255,255,255,.14); }
.ob-btn svg { width: 17px; height: 17px; }
.ob-btn.ob-fav { color: rgba(255,255,255,.85); }

.demo-radial { position: absolute; inset: 0; z-index: 7; background: rgba(0,0,0,.18); }
.dr-center { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.dr-opt { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 0; border-radius: 999px; background: rgba(20,24,31,.94); color: #e9eef4; font-size: 12px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.14); cursor: pointer; animation: dropin .22s var(--ease) both; }
.dr-opt b { color: #f5c542; }
.dr-opt:hover { box-shadow: 0 6px 18px rgba(0,0,0,.45), inset 0 0 0 1.5px #f0843c; }
@keyframes dropin { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%); } }

.demo-peek { position: absolute; inset: 0; z-index: 7; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; padding: 3px; background: #000; }
.demo-peek[hidden] { display: none; }
.dp-cell { position: relative; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer; background: #000; }
.dp-cell .art { position: absolute; inset: 0; }
.dp-cell:hover { box-shadow: inset 0 0 0 2px #4c8dff; }
.dp-t { position: absolute; left: 5px; top: 4px; z-index: 2; padding: 0 5px; border-radius: 3px; background: rgba(0,0,0,.7); color: #fff; font: 600 10px var(--mono); }

.strip .art { cursor: pointer; }
.strip .art:hover { box-shadow: inset 0 0 0 1.5px #4c8dff; }

/* Plein écran : la fiche couvre la fenêtre ; la pellicule glisse de la droite */
.demo-cinema, .demo-cinema body { overflow: hidden; }
.demo-app.cinema { position: fixed; inset: 0; z-index: 1000; border-radius: 0; display: flex; flex-direction: column; background: #000; }
.demo-app.cinema .app-titlebar, .demo-app.cinema .app-header, .demo-app.cinema .cmdbar { display: none; }
.demo-app.cinema .fiche { flex: 1; display: block; position: relative; padding: 0; background: #000; }
.demo-app.cinema .player { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.demo-app.cinema .strip { position: absolute; top: 12px; right: 12px; bottom: 70px; z-index: 8; width: min(180px, 22vw); display: grid; grid-template-columns: none; grid-template-rows: repeat(5, 1fr); transform: translateX(calc(100% + 20px)); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.demo-app.cinema .strip.show, .demo-app.cinema .strip:hover { transform: none; opacity: 1; }
.demo-app.cinema .strip .art { aspect-ratio: auto; }
.demo-app.cinema .toast { bottom: 90px; }

.gestures { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: .82rem; color: var(--muted); }
.gestures b { color: var(--text-2, var(--text)); font-weight: 600; }
.demo-note { margin: 14px 0 0; text-align: center; font-size: .82rem; color: var(--dim); }
@media (hover: none) { .demo-over { opacity: 1; transform: none; pointer-events: auto; } .player .res { display: none; } }
@media (max-width: 600px) { .ob-name { display: none; } }
@media (prefers-reduced-motion: reduce) { .demo-big.show { animation: none; } .dr-opt { animation: none; } }
.demo-wrap > .demo-app { align-self: start; }
