/* Dictax — site
   Même langage visuel que l'app : nappes de couleur douces derrière du verre (Liquid Glass),
   rouge = enregistrement, bleu = insertion, orange = remplacement.
   Aucune police, aucun script ni aucune mesure d'audience tiers : rien ne quitte ce site. */

:root {
  --red: #ff453b;
  --blue: #3885ff;
  --orange: #ff9e1a;
  --green: #30c45a;

  --bg: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #56565c;
  --text-3: #86868b;
  --line: rgba(29, 29, 31, 0.09);

  --glass-1: rgba(255, 255, 255, 0.66);
  --glass-2: rgba(255, 255, 255, 0.40);
  --edge-1: rgba(255, 255, 255, 0.98);
  --edge-2: rgba(255, 255, 255, 0.30);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 0 0 0.5px rgba(20, 22, 45, 0.07),
    0 24px 50px -28px rgba(28, 35, 72, 0.42);
  --glass-shadow-sm:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 0.5px rgba(20, 22, 45, 0.06),
    0 8px 18px -12px rgba(28, 35, 72, 0.35);

  --blob-red: 0.20;
  --blob-blue: 0.26;
  --blob-orange: 0.24;

  --r-xl: 36px;
  --r-l: 26px;
  --r-m: 18px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060608;
    --text: #f5f5f7;
    --text-2: #b4b4bb;
    --text-3: #86868d;
    --line: rgba(255, 255, 255, 0.1);

    --glass-1: rgba(48, 48, 56, 0.62);
    --glass-2: rgba(26, 26, 32, 0.46);
    --edge-1: rgba(255, 255, 255, 0.24);
    --edge-2: rgba(255, 255, 255, 0.04);
    --glass-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 0 0 0.5px rgba(255, 255, 255, 0.06),
      0 28px 60px -30px rgba(0, 0, 0, 0.85);
    --glass-shadow-sm:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 0.5px rgba(255, 255, 255, 0.05),
      0 10px 22px -14px rgba(0, 0, 0, 0.8);

    /* Comme dans l'app : les couleurs sont renforcées en mode sombre. */
    --blob-red: 0.30;
    --blob-blue: 0.38;
    --blob-orange: 0.30;
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 75%, transparent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 16px; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }

.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;
}

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-fill { fill: currentColor; stroke: none; }

/* ---------- Fond : les nappes de couleur de l'app ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.blob-red {
  width: 90vmax; height: 90vmax;
  left: 18vw; top: -58vmax;
  background: radial-gradient(closest-side, rgb(255 69 59 / var(--blob-red)), transparent);
  animation: drift-a 40s ease-in-out infinite alternate;
}
.blob-blue {
  width: 80vmax; height: 80vmax;
  left: -42vmax; top: 22vh;
  background: radial-gradient(closest-side, rgb(56 133 255 / var(--blob-blue)), transparent);
  animation: drift-b 46s ease-in-out infinite alternate;
}
.blob-orange {
  width: 76vmax; height: 76vmax;
  right: -40vmax; bottom: -42vmax;
  background: radial-gradient(closest-side, rgb(255 158 26 / var(--blob-orange)), transparent);
  animation: drift-c 52s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(-8vw, 6vh, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(9vw, -8vh, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(-7vw, -6vh, 0) scale(0.94); } }

/* Grain très léger : évite les dégradés en escalier. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Verre ---------- */

.glass {
  background:
    linear-gradient(180deg, var(--glass-1), var(--glass-2)) padding-box,
    linear-gradient(145deg, var(--edge-1), var(--edge-2) 42%, var(--edge-1)) border-box;
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: var(--glass-shadow);
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 0 16px;
  margin-top: 12px;
}
.nav {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 10px;
  border-radius: 999px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 550;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 18px -10px rgb(255 69 59 / 0.8);
  transition: transform 0.25s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 720px) {
  .nav-links .opt { display: none; }
}
@media (max-width: 460px) {
  .brand span { display: none; }
  .nav-links a { padding: 9px 11px; }
}

/* ---------- Titres ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.028em;
}
h1 {
  font-size: clamp(2.8rem, 6.6vw, 5.3rem);
  font-weight: 750;
  letter-spacing: -0.048em;
  line-height: 0.98;
}
h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 720;
  letter-spacing: -0.038em;
}
h3 {
  font-size: 1.22rem;
  font-weight: 680;
  letter-spacing: -0.018em;
}
em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
}
h1 em, h2 em {
  background: linear-gradient(100deg, var(--blue) 0%, var(--red) 52%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

.kicker {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 30px -14px rgb(255 69 59 / 0.85);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-store {
  padding: 0 22px 0 18px;
  cursor: default;
  line-height: 1.1;
}
.btn-store .i { width: 1.5em; height: 1.5em; color: var(--text-2); }
.btn-store small {
  display: block;
  font-size: 0.72rem;
  font-weight: 550;
  color: var(--text-3);
}

/* ---------- Héros ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  padding: clamp(44px, 8vw, 104px) 0 clamp(56px, 8vw, 104px);
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  padding: 8px 15px 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 620;
  color: var(--text-2);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgb(255 69 59 / 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(255 69 59 / 0.06); } }

h1 .line { display: block; }

.lead {
  max-width: 34ch;
  margin: 26px 0 32px;
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  line-height: 1.5;
  color: var(--text-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note {
  margin: 20px 0 0;
  font-size: 0.93rem;
  color: var(--text-3);
}
.hero-note strong { color: var(--text-2); font-weight: 620; }

/* Apparition orchestrée au chargement */
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.3s; }
.hero-copy > :nth-child(4) { animation-delay: 0.4s; }
.hero-copy > :nth-child(5) { animation-delay: 0.5s; }
h1 .line { animation: rise 1s var(--ease) both; }
h1 .line:nth-child(2) { animation-delay: 0.1s; }
h1 .line:nth-child(3) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Démo : l'écran principal de l'app ---------- */

.hero-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: float-in 1.2s var(--ease) 0.25s both;
}
@keyframes float-in { from { opacity: 0; transform: translateY(34px) scale(0.97); } to { opacity: 1; transform: none; } }

.device {
  position: relative;
  width: min(396px, 100%);
  padding: 16px 16px 18px;
  border-radius: 46px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.device::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 28%);
  opacity: 0.6;
}
@media (prefers-color-scheme: dark) { .device::before { opacity: 0.12; } }

.dev-top {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
}
.dev-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  box-shadow: var(--glass-shadow-sm);
}
.dev-title {
  text-align: center;
  font-weight: 680;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dev-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 6px 4px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-2);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
  transition: background 0.3s;
}
.device[data-mode="rec"] .status-dot { background: var(--red); animation: blink 1s ease-in-out infinite; }
.device[data-mode="play"] .status-dot { background: var(--blue); }
@keyframes blink { 50% { opacity: 0.25; } }

.dev-wave {
  position: relative;
  height: 156px;
  margin: 0 -16px;
  touch-action: pan-y;
}
.wave {
  width: 100%;
  height: 100%;
  cursor: grab;
  border-radius: 0;
}
.wave:active { cursor: grabbing; }
.wave:focus-visible { outline-offset: -3px; }
.wave-hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--text-2);
  pointer-events: none;
  white-space: nowrap;
  animation: hint 2.6s ease-in-out infinite;
  transition: opacity 0.4s;
}
.wave-hint.is-hidden { opacity: 0; animation: none; }
@keyframes hint { 0%, 100% { transform: translateX(calc(-50% - 10px)); } 50% { transform: translateX(calc(-50% + 10px)); } }

.overview { width: 100%; height: 18px; margin: 2px 0 12px; }

.dev-timer { text-align: center; margin: 2px 0 14px; }
.dev-timer [data-time] {
  display: block;
  font: 600 clamp(2.5rem, 10vw, 3.15rem)/1 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}
.dev-timer small {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.dev-row { display: grid; gap: 8px; margin-bottom: 8px; }
.dev-row.three { grid-template-columns: 1fr 1.15fr 1fr; }
.dev-row.two { grid-template-columns: 1fr 1fr; }

.pill {
  --tint: var(--text);
  --mix: 0%;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 650 0.9rem/1 var(--font);
  color: var(--tint);
  white-space: nowrap;
  cursor: pointer;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--tint) var(--mix), var(--glass-1)),
      color-mix(in srgb, var(--tint) var(--mix), var(--glass-2))) padding-box,
    linear-gradient(145deg, var(--edge-1), var(--edge-2) 45%, var(--edge-1)) border-box;
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: var(--glass-shadow-sm);
  transition: transform 0.18s var(--ease), --mix 0.2s, opacity 0.2s;
}
.pill:hover { --mix: calc(var(--mix-hover, 6%)); }
.pill:active, .pill.is-pressed { transform: scale(0.94); }
.pill[disabled] { opacity: 0.4; cursor: default; }
.pill .i { width: 1.05em; height: 1.05em; }
.tint-blue { --tint: var(--blue); --mix: 12%; --mix-hover: 18%; }
.tint-orange { --tint: var(--orange); --mix: 14%; --mix-hover: 20%; }
.tint-red { --tint: var(--red); --mix: 7%; --mix-hover: 12%; }
.pill.is-active { --mix: 28%; }
.pill.chip { height: 32px; font-size: 0.76rem; padding: 0 10px; gap: 3px; }
.pill .chev { width: 0.95em; height: 0.95em; stroke-width: 2.6; }
.pill.ghost { cursor: default; }

.dev-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  margin-top: 12px;
}
.dev-bottom .left { display: flex; gap: 8px; padding-top: 12px; }
.dev-bottom .right { justify-self: end; padding-top: 12px; }
.pill.round { width: 46px; padding: 0; }
.record-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.record {
  appearance: none;
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 0 0 4px var(--glass-1),
    0 0 0 5px var(--edge-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 16px 30px -12px rgb(255 69 59 / 0.85);
  transition: transform 0.2s var(--ease);
}
.record:active, .record.is-pressed { transform: scale(0.92); }
.record span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  transition: all 0.25s var(--ease);
}
.device[data-mode="rec"][data-take="append"] .record span {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: #fff;
}
.record-label { font-size: 0.7rem; font-weight: 650; color: var(--text-2); white-space: nowrap; }

.demo-caption {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(396px, 100%);
  min-height: 3.4em;
  margin: 0;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-2);
}
.demo-caption::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--caption-dot, var(--blue));
}

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

.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:not(.kicker) {
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--text-2);
}

/* Les trois gestes */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step {
  position: relative;
  padding: 26px 26px 28px;
  border-radius: var(--r-l);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 750;
  font-size: 0.9rem;
  color: #fff;
  background: var(--c, var(--red));
  box-shadow: 0 8px 16px -8px var(--c, var(--red));
}
.strip { height: 72px; margin: 20px 0 18px; }
.strip svg { width: 100%; height: 100%; overflow: visible; }
.step p { margin: 10px 0 0; color: var(--text-2); font-size: 0.98rem; }
.bar-base { fill: color-mix(in srgb, var(--text) 52%, transparent); }
.bar-dim { fill: color-mix(in srgb, var(--text) 22%, transparent); }
.bar-insert { fill: var(--blue); }
.bar-replace { fill: var(--orange); }
.bar-red { fill: var(--red); }
.strip-label { font: 700 10.5px var(--font); fill: var(--text-2); }
.strip-arrow { stroke: var(--text-3); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.note-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin: 30px auto 0;
  color: var(--text-2);
  font-size: 0.97rem;
  text-align: center;
}
.note-line .pill { height: 38px; pointer-events: none; }

/* Galerie */
.gallery {
  display: flex;
  gap: clamp(16px, 2.2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 16px 48px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.phone { flex: 0 0 clamp(206px, 62vw, 246px); margin: 0; scroll-snap-align: center; }
@media (min-width: 1060px) {
  .gallery { overflow: visible; justify-content: center; padding-bottom: 20px; }
  .phone { flex-basis: 196px; }
  .phone:nth-child(even) { padding-top: 46px; }
}
.phone-frame {
  padding: 7px;
  border-radius: 40px;
  background: linear-gradient(155deg, #45454c, #0d0d10 55%, #2c2c33);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 34px 60px -34px rgba(18, 22, 50, 0.6);
  transition: transform 0.5s var(--ease);
}
.phone:hover .phone-frame { transform: translateY(-6px) rotate(-0.6deg); }
.phone img { width: 100%; aspect-ratio: 600 / 1304; border-radius: 33px; background: #eee; }
.phone figcaption { margin-top: 16px; text-align: center; font-weight: 650; font-size: 0.96rem; }
.phone figcaption span { display: block; margin-top: 2px; font-weight: 450; font-size: 0.86rem; color: var(--text-3); }

/* Grille de fonctions */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile-lock { grid-column: span 2; grid-row: span 2; }
  .tile-transcript { grid-column: span 2; }
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: var(--r-l);
  overflow: hidden;
}
.tile p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 14px;
  color: #fff;
  background: var(--c, var(--red));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 20px -12px var(--c, var(--red));
}
.tile-icon .i { width: 22px; height: 22px; }

/* Écran verrouillé simulé */
.lock-mock {
  position: relative;
  margin-top: auto;
  padding: 18px 16px 18px;
  border-radius: 30px;
  min-height: 300px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 10% 100%, rgb(56 133 255 / 0.85), transparent 60%),
    radial-gradient(100% 80% at 100% 90%, rgb(255 158 26 / 0.7), transparent 55%),
    radial-gradient(110% 70% at 60% 0%, rgb(255 69 59 / 0.75), transparent 60%),
    #17131c;
}
.island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 150px;
  height: 34px;
  margin: 0 auto;
  padding: 0 14px;
  border-radius: 999px;
  background: #000;
  font: 600 0.82rem var(--font);
  font-variant-numeric: tabular-nums;
}
.island-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1.2s ease-in-out infinite; }
.lock-clock {
  margin-top: 18px;
  text-align: center;
  font: 700 4.2rem/1 var(--font-display);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}
.lock-date { text-align: center; font-weight: 600; font-size: 0.95rem; opacity: 0.85; margin-top: 4px; }
.live-activity {
  margin-top: 22px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(20, 20, 26, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.la-head { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 0.86rem; }
.la-head img { width: 24px; height: 24px; border-radius: 7px; }
.la-time { margin-left: auto; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.8); }
.la-bars { height: 30px; margin: 10px 0 12px; }
.la-bars svg { width: 100%; height: 100%; }
.la-bars rect { fill: rgba(255, 255, 255, 0.85); }
.la-bars rect.on { fill: var(--red); }
.la-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.la-btn {
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.16);
}
.la-btn.red { background: var(--red); }

/* Transcription simulée */
.transcript-mock {
  margin-top: auto;
  padding: 16px 18px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  display: grid;
  gap: 10px;
}
.transcript-mock p { margin: 0; display: grid; grid-template-columns: 40px 1fr; gap: 6px; color: var(--text); font-size: 0.97rem; line-height: 1.45; }
.transcript-mock time { color: var(--text-3); font-size: 0.8rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.transcript-mock .ins { color: var(--blue); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chips span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-2);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.chips span.on { color: #fff; background: var(--red); }

.meter { display: grid; gap: 6px; margin-top: auto; padding-top: 6px; }
.meter div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; color: var(--text-2); padding: 7px 0; border-bottom: 1px solid var(--line); }
.meter div:last-child { border-bottom: 0; }
.meter b { color: var(--text); font-weight: 650; }

.mini-list { margin-top: auto; display: grid; }
.mini-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.mini-list div:last-child { border-bottom: 0; }
.mini-list span { color: var(--text-3); font-variant-numeric: tabular-nums; }

.undo-big { display: flex; gap: 10px; margin-top: auto; }
.undo-big .pill { width: 56px; height: 56px; padding: 0; pointer-events: none; }
.undo-big .i { width: 24px; height: 24px; }

/* Bandeau confidentialité */
.band {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(34px, 6vw, 72px) clamp(22px, 5vw, 64px);
  border-radius: var(--r-xl);
  text-align: center;
}
.band-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(150deg, #48484f, #1d1d22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 30px -16px rgba(0, 0, 0, 0.6);
}
.band-icon .i { width: 28px; height: 28px; }
.band p { margin: 0; max-width: 56ch; color: var(--text-2); font-size: 1.08rem; }
.no-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.no-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
.no-list .i { color: var(--green); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--blue);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Tarifs */
.plans {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { position: relative; padding: 32px 30px 30px; border-radius: var(--r-xl); }
.plan-best { box-shadow: var(--glass-shadow), 0 0 0 2px rgb(255 69 59 / 0.55); }
.badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 750;
  font-size: 0.78rem;
}
.plan h3 { font-size: 1.05rem; color: var(--text-2); font-weight: 650; }
.price { margin: 16px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--text-2); }
.price strong {
  font: 750 3.3rem/1 var(--font-display);
  letter-spacing: -0.045em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.per { margin: 6px 0 0; font-size: 0.92rem; color: var(--text-3); }
.plan ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; align-items: center; gap: 10px; font-size: 0.98rem; }
.plan li .i { color: var(--red); }
.fineprint {
  max-width: 780px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-3);
}

/* Questions */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { padding: 0 24px; border-radius: 22px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  font-weight: 650;
  font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details > *:not(summary) { margin: 0 0 20px; color: var(--text-2); }
.faq details ol, .faq details ul { padding-left: 1.2em; }
.faq details li + li { margin-top: 6px; }
.faq a { color: var(--blue); }
.faq-group { margin: 44px auto 14px; max-width: 840px; font-size: 1.4rem; }
.faq-group:first-of-type { margin-top: 0; }

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

.site-footer { margin-top: 24px; padding: 56px 0 44px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 720; letter-spacing: -0.015em; }
.footer-brand img { width: 40px; height: 40px; border-radius: 11px; }
.footer-tag { margin: 12px 0 0; color: var(--text-2); font-size: 0.95rem; max-width: 30ch; }
.footer-title { margin: 0 0 12px; font-size: 0.8rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer ul a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ---------- Pages de texte (confidentialité, assistance, conditions) ---------- */

.doc-hero { max-width: 800px; margin: 0 auto; padding: clamp(44px, 8vw, 92px) 0 28px; }
.doc-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); }
.doc-hero p:not(.kicker) { margin: 16px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); }
.doc-hero .meta { font-size: 0.9rem; color: var(--text-3); }
.doc {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: clamp(26px, 5.5vw, 60px);
  border-radius: var(--r-xl);
}
.doc h2 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); letter-spacing: -0.022em; margin: 2.3em 0 0.6em; scroll-margin-top: 110px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.1rem; margin: 1.7em 0 0.4em; }
.doc p, .doc li { color: var(--text-2); line-height: 1.7; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); font-weight: 650; }
.doc a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc address { font-style: normal; color: var(--text-2); line-height: 1.7; }
.summary {
  margin: 0 0 8px;
  padding: 22px 24px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--blue) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 24%, transparent);
}
.summary h2 { margin: 0 0 6px; font-size: 1.15rem; }
.summary ul { margin: 8px 0 0; }
.summary li { color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.toc a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-2);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.toc a:hover { color: var(--text); }

.contact-card {
  display: grid;
  gap: 18px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 26px;
  padding: 26px 28px;
  border-radius: var(--r-l);
}
@media (min-width: 700px) { .contact-card { grid-template-columns: auto 1fr auto; } }
.contact-card .tile-icon { margin: 0; --c: var(--blue); }
.contact-card h2 { font-size: 1.25rem; }
.contact-card p { margin: 4px 0 0; color: var(--text-2); font-size: 0.95rem; }

.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound p { color: var(--text-2); margin: 16px 0 28px; }

/* ---------- Apparitions au défilement ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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