/* Cue — site public. Direction artistique « Verre nocturne », jetons repris de src/theme/index.ts.
   Police unique : Figtree (variable, auto-hébergée). Aucun traceur, aucun cookie. */

@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Fonds (aurora.base, colors.background, surface) */
  --night: #06070a;
  --background: #08090a;
  --surface: #141515;

  /* Or (colors.gold et dérivés, glass.goldLight, hero.inkDeep) */
  --gold: #e9bf63;
  --gold-light: #f4d592;
  --gold-deep: #c98a3a;
  --gold-pressed: #d2a94f;
  --gold-soft: rgba(233, 191, 99, 0.14);
  --gold-border: rgba(233, 191, 99, 0.45);
  --gold-glow: rgba(233, 191, 99, 0.35);
  --on-gold: #1a1406;
  --gold-cream: #f8ebcb;

  /* Textes */
  --text: #f4f1ea;
  --text-2: #a9a59c;
  --text-3: #8d8980; /* textMuted éclairci pour un contraste AA sur le verre */

  /* Aurore (aurora.hues) */
  --amber: #f2a93b;
  --copper: #e8734f;
  --plum: #b23a6e;
  --violet: #4b2a8c;

  /* Verre (glass.*) */
  --glass-fill: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --glass-pressed: rgba(255, 255, 255, 0.1);
  --glass-tint: rgba(20, 20, 28, 0.32);
  --glass-sheen: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.025) 45%,
    rgba(255, 255, 255, 0.04) 100%
  );
  --border: rgba(255, 255, 255, 0.08);

  /* Rayons (radius.*) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  /* Mouvement (motion.*) : ease-out long, sans rebond */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --fast: 180ms;
  --base: 320ms;
  --slow: 520ms;
  --slower: 760ms;
  --stagger: 120ms;
  --rise: 24px;

  /* Mise en page */
  --gutter: 20px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: transparent; /* l'aurore (z-index -1) se peint sur le fond de html */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

::selection {
  background: var(--gold);
  color: var(--on-gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 60; /* au-dessus de l'en-tête collant */
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ───────────── Aurore : cinq lueurs qui dérivent lentement sur la nuit ───────────── */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--night);
  pointer-events: none;
  contain: strict;
}

.aurora i {
  position: absolute;
  left: calc(var(--x) * 100% - var(--r) * 0.5);
  top: calc(var(--y) * 100% - var(--r) * 0.5);
  width: var(--r);
  height: var(--r);
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(var(--c) / var(--a)) 0%,
    rgb(var(--c) / calc(var(--a) * 0.55)) 35%,
    rgb(var(--c) / calc(var(--a) * 0.15)) 70%,
    rgb(var(--c) / 0) 100%
  );
  will-change: transform;
  animation: drift var(--d) var(--ease-in-out) infinite alternate;
}

/* Positions, rayons et intensités repris d'AuroraScene (rayon : part de la plus grande dimension). */
.aurora i:nth-child(1) { --c: 242 169 59; --x: 0.18; --y: 0.2; --r: 96vmax; --a: 0.5; --d: 34s; --dx: 18vw; --dy: 8vh; }
.aurora i:nth-child(2) { --c: 232 115 79; --x: 0.86; --y: 0.36; --r: 80vmax; --a: 0.4; --d: 28s; --dx: -14vw; --dy: 10vh; }
.aurora i:nth-child(3) { --c: 178 58 110; --x: 0.24; --y: 0.66; --r: 84vmax; --a: 0.36; --d: 38s; --dx: 16vw; --dy: -7vh; }
.aurora i:nth-child(4) { --c: 75 42 140; --x: 0.82; --y: 0.86; --r: 100vmax; --a: 0.5; --d: 31s; --dx: -12vw; --dy: -8vh; }
.aurora i:nth-child(5) { --c: 233 191 99; --x: 0.55; --y: 0.02; --r: 72vmax; --a: 0.34; --d: 26s; --dx: 20vw; --dy: 4vh; }

/* Voile de nuit : l'aurore reste un fond, le texte garde son contraste. */
.aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 40%, rgb(6 7 10 / 0.1), rgb(6 7 10 / 0.55)),
    url('/assets/img/grain.webp');
  background-size: auto, 128px 128px;
  opacity: 0.9;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(var(--dx), var(--dy), 0) scale(1.06);
  }
}

/* ───────────── Verre ───────────── */

.glass {
  position: relative;
  background: var(--glass-sheen), var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 24px 60px -30px rgb(0 0 0 / 0.7);
}

/* ───────────── En-tête ───────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 50; /* au-dessus de tout le contenu, cartes des signes comprises */
  padding: 12px var(--gutter);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color var(--fast) var(--ease-out),
    background-color var(--fast) var(--ease-out);
}

.top-nav a:hover {
  color: var(--text);
  background: var(--glass-pressed);
}

.top-nav .lang {
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.top-nav .hide-sm {
  display: none;
}

@media (min-width: 720px) {
  .top-nav .hide-sm {
    display: inline-block;
  }
}

/* ───────────── Mise en page ───────────── */

main {
  display: block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: 72px 0;
  scroll-margin-top: 72px; /* sous l'en-tête collant */
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
}

h2 {
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lead {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 18px;
}

/* ───────────── Héros ───────────── */

.hero {
  padding: 24px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  text-align: center;
}

/* Logotype manuscrit : le SVG porte ses propres images clés (site/tools/wordmark.mjs). La boîte
   laisse une marge autour des lettres pour la lueur ; les marges négatives la compensent. */
.wordmark {
  width: min(290px, 74vw);
  height: auto;
  margin: -6px auto -12px;
  overflow: visible;
  filter: drop-shadow(0 0 6px var(--gold-glow));
}

.hero h1 {
  font-size: clamp(34px, 8.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  animation: unveil 1.1s var(--ease-out) 0.15s both;
}

.hero .accroche {
  max-width: 30ch;
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: clamp(18px, 2.4vw, 21px);
  animation: unveil 1.1s var(--ease-out) 0.35s both;
}

.hero .stores {
  animation: rise var(--slower) var(--ease-out) 0.55s both; /* verre : montée sans fondu */
}

@keyframes unveil {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 56px 0 96px;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero-copy {
    text-align: left;
  }
  .wordmark {
    margin-left: -24px;
  }
  .hero .accroche {
    margin-left: 0;
  }
}

/* Badges des stores, réunis dans un seul bloc de verre (pas encore publiés, donc pas de lien). */
.stores {
  display: inline-flex;
  flex-direction: column;
  margin-top: 32px;
  padding: 4px;
  border-radius: var(--r-lg);
  text-align: left;
}

.store {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
}

.store + .store {
  border-top: 1px solid var(--border);
}

@media (min-width: 375px) {
  .stores {
    flex-direction: row;
  }
  .store + .store {
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

.store svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--text);
}

.store small {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.store strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.note-age {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 14px;
  animation: unveil 1.1s var(--ease-out) 0.7s both;
}

/* Scène du haut de page : symbolique d'un signe envoyé (pas une capture de l'app, qui évoluera).
   Un portrait en arche, la personne qui envoie le signe, le trait doré, la carte du signe. */

.scene {
  position: relative;
  width: min(330px, 76vw);
  margin: 12px auto 0;
  aspect-ratio: 3 / 4;
}

.scene-portrait {
  position: absolute;
  inset: 0 0 0 12%;
  overflow: hidden;
  border-radius: 999px 999px var(--r-xl) var(--r-xl);
  border: 1px solid var(--gold-border);
  box-shadow:
    0 40px 90px -30px rgb(0 0 0 / 0.85),
    0 0 0 6px rgb(255 255 255 / 0.03);
  animation: rise var(--slower) var(--ease-out) 0.2s both;
}

.scene-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(6 7 10 / 0) 55%, rgb(6 7 10 / 0.55) 100%);
}

.scene-avatar {
  position: absolute;
  left: -2%;
  top: 4%;
  width: 22%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.9);
  animation: rise var(--slower) var(--ease-out) 0.5s both;
}

.scene-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-trail {
  position: absolute;
  left: 6%;
  top: 6%;
  width: 52%;
  overflow: visible;
}

.scene-trail path {
  stroke-dashoffset: 120;
  animation: trail 1.6s var(--ease-out) 0.9s both;
}

@keyframes trail {
  from {
    stroke-dashoffset: 120;
    opacity: 0;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.scene-card {
  position: absolute;
  left: -4%;
  bottom: 9%;
  display: grid;
  place-items: center;
  width: 58%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--gold);
  background: linear-gradient(160deg, #1d1c20, #121216);
  box-shadow:
    0 26px 50px -18px rgb(0 0 0 / 0.95),
    0 10px 30px -12px var(--gold-glow);
  transform: rotate(-6deg);
  animation: card-in var(--slower) var(--ease-out) 1.4s both;
}

.scene-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-card span {
  position: relative;
  color: var(--gold-light);
  font-size: clamp(17px, 4.4vw, 21px);
  font-weight: 600;
}

@keyframes card-in {
  from {
    transform: translate(-18px, 24px) rotate(-14deg);
  }
  to {
    transform: rotate(-6deg);
  }
}

/* ───────────── Étapes (stories) ───────────── */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  column-gap: 12px;
  padding: 22px;
  border-radius: var(--r-xl);
}

.step-visual {
  grid-column: 1 / -1;
  position: relative;
  height: 168px;
  margin-bottom: 22px;
  border-radius: var(--r-lg);
  background: rgb(6 7 10 / 0.4);
  border: 1px solid var(--border);
  overflow: hidden;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 600;
}

.step h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}

/* Visuel 1 : personnes autour de vous */
.people {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.people img {
  width: 64px;
  height: 84px;
  margin: 0 -8px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgb(6 7 10 / 0.9);
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.8);
}

.people img:nth-child(1) { transform: rotate(-8deg) translateY(8px); }
.people img:nth-child(2) { transform: translateY(-6px); z-index: 1; width: 74px; height: 96px; }
.people img:nth-child(3) { transform: rotate(7deg) translateY(10px); }

/* Visuel 2 : le signe */
.sign-card {
  position: absolute;
  inset: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: var(--r-lg);
  background: var(--glass-sheen), rgb(255 255 255 / 0.04);
  border: 1px solid var(--gold-border);
  text-align: center;
}

.sign-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.sign-card strong {
  position: relative;
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-light);
}

.sign-card span {
  position: relative;
  color: var(--text-2);
  font-size: 13px;
}

/* Visuel 3 : discussion, bulles à queue comme dans l'app (reçue en verre, envoyée teintée d'or) */
.chat {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  line-height: 1.35;
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.msg img {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.msg + .msg:not(.out) img {
  visibility: hidden; /* un seul avatar par série de messages */
}

.msg.out {
  justify-content: flex-end;
}

.bubble {
  max-width: 82%;
  padding: 7px 12px;
  border-radius: 16px 16px 16px 5px;
  background: var(--glass-sheen), rgb(255 255 255 / 0.09);
  border: 1px solid var(--glass-border);
}

.msg.out .bubble {
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(180deg, rgb(244 213 146 / 0.3), rgb(233 191 99 / 0.18));
  border-color: rgb(233 191 99 / 0.45);
  color: var(--gold-cream);
}

/* Visuel 4 : visibilité (interrupteur œil) et sécurité (bouclier) */
.control {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.switch {
  position: relative;
  display: flex;
  align-items: center;
  width: 128px;
  height: 56px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass-sheen), rgb(255 255 255 / 0.06);
  border: 1px solid var(--glass-border);
}

.switch .eye-off {
  width: 22px;
  height: 22px;
  margin-left: 13px;
  color: var(--text-3);
}

.knob {
  position: absolute;
  left: 4px;
  top: 4px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--on-gold);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 6px 16px -6px var(--gold-glow);
  transition: transform var(--slower) var(--ease-out) 0.4s;
}

.knob svg {
  width: 22px;
  height: 22px;
}

/* L'interrupteur passe sur « visible » quand l'étape entre à l'écran (sans JS : déjà visible). */
.step .knob,
.js .step.in .knob {
  transform: translateX(72px);
}

.js .step:not(.in) .knob {
  transform: none;
}

.shield {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass-sheen), rgb(255 255 255 / 0.06);
  border: 1px solid var(--glass-border);
  color: var(--gold);
}

.shield svg {
  width: 26px;
  height: 26px;
}

/* ───────────── Les signes : paquet de cartes en éventail ───────────── */

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Éventail : cartes en arc léger, assez écartées pour se lire ; la carte choisie sort du paquet et
   ses voisines s'empilent autour d'elle (--z, posé par site.js). */
.deck {
  --w: 40vw; /* largeur d'une carte */
  --step: 5.4vw; /* écart entre deux cartes : l'éventail tient dans un écran de téléphone */
  --tilt: 1deg; /* inclinaison entre deux cartes */
  --pivot: 600%;
}

@media (min-width: 720px) {
  .deck {
    --w: 220px;
    --step: min(100px, 8vw);
    --tilt: 2.6deg;
  }
}

.deck-fan {
  position: relative;
  height: calc(var(--w) * 0.67 + 80px);
  touch-action: pan-y; /* le doigt peut glisser sur le paquet sans faire défiler la page de côté */
  isolation: isolate; /* l'empilement des cartes (--z) reste interne au paquet */
  cursor: pointer;
}

.card {
  --o: calc(var(--k) - 3); /* position par rapport au centre du paquet */
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: var(--w);
  aspect-ratio: 3 / 2;
  z-index: var(--z, 1);
  margin: 0 0 0 calc(var(--w) / -2);
  padding: 0;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #1d1c20, #121216);
  color: var(--gold-light);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transform-origin: 50% var(--pivot);
  transform: translateX(calc(var(--o) * var(--step))) rotate(calc(var(--o) * var(--tilt)));
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.9);
  transition:
    transform var(--slow) var(--ease-out),
    box-shadow var(--slow) var(--ease-out),
    border-color var(--slow) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  pointer-events: none;
}

/* Voile sur les cartes en retrait : la carte survolée ressort. */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(6 7 10 / 0.3);
  transition: opacity var(--slow) var(--ease-out);
}

.card span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0 18%;
  font-size: clamp(16px, 4.4vw, 21px);
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  transition: opacity var(--base) var(--ease-out);
}

.card.is-active {
  z-index: var(--z, 10); /* sans JS aussi, la carte choisie reste devant */
  border-color: var(--gold);
  transform: translateX(calc(var(--o) * var(--step))) rotate(calc(var(--o) * var(--tilt))) translateY(-22px) scale(1.05);
  box-shadow:
    0 26px 50px -18px rgb(0 0 0 / 0.95),
    0 10px 30px -12px var(--gold-glow);
}

.card.is-active::after {
  opacity: 0;
}

.card.is-active span {
  opacity: 1;
}

.card:focus-visible {
  outline-offset: 4px;
}

.deck-caption {
  display: grid;
  gap: 6px;
  min-height: 84px; /* réserve la place : pas de saut quand la description change de longueur */
  max-width: 34ch;
  margin: 8px auto 0;
  text-align: center;
}

.deck-caption strong {
  color: var(--gold-light);
  font-size: 22px;
  font-weight: 600;
}

.deck-caption span {
  color: var(--text-2);
}

/* ───────────── Principes ───────────── */

.principles {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.principle {
  padding: 26px;
  border-radius: var(--r-xl);
}

.principle svg {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--gold);
}

.principle h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.principle p {
  margin-top: 10px;
  color: var(--text-2);
}

/* ───────────── Ce que Cue ne fait pas ───────────── */

.nots {
  display: grid;
  gap: 0;
  padding: 8px 22px;
  border-radius: var(--r-xl);
  list-style: none;
  margin: 0;
}

@media (min-width: 720px) {
  .nots {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
  }
}

.nots li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.nots li:last-child {
  border-bottom: 0;
}

@media (min-width: 720px) {
  .nots li:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }
}

.nots svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.nots strong {
  display: block;
  font-weight: 600;
}

.nots span {
  color: var(--text-2);
  font-size: 15px;
}

/* ───────────── Appel final ───────────── */

.final {
  padding: 56px 24px;
  border-radius: 36px;
  text-align: center;
  overflow: hidden;
}

.final img {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 20px;
  box-shadow: 0 16px 40px -16px var(--gold-glow);
}

.final p.lead {
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

/* ───────────── Pages de contenu (assistance, légal) ───────────── */

.page {
  padding: 40px 0 80px;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px;
  border-radius: var(--r-xl);
}

@media (min-width: 720px) {
  .doc {
    padding: 48px;
  }
}

.doc h1 {
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.doc h2 {
  margin-top: 36px;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.doc p,
.doc li {
  color: var(--text-2);
}

.doc p + p {
  margin-top: 12px;
}

.doc .lead {
  margin-top: 14px;
}

.doc ul {
  padding-left: 20px;
}

.doc a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.notice {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
}

.notice svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--gold);
}

.notice p {
  color: var(--text);
}

.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  transition:
    transform var(--fast) var(--ease-out),
    background-color var(--fast) var(--ease-out);
}

a.channel:hover {
  background: var(--glass-pressed);
}

a.channel:active {
  transform: scale(0.98);
}

.channel svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.channel strong {
  display: block;
  font-weight: 600;
}

.channel span {
  color: var(--text-2);
  font-size: 15px;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform var(--fast) var(--ease-out),
    background-color var(--fast) var(--ease-out);
}

.btn-line:hover {
  background: var(--gold-soft);
}

.btn-line:active {
  transform: scale(0.97);
}

/* ───────────── Pied de page ───────────── */

.foot {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgb(6 7 10 / 0), rgb(6 7 10 / 0.7));
  color: var(--text-2);
  font-size: 15px;
}

.foot-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.foot h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.4;
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot li + li {
  margin-top: 6px;
}

.foot a {
  color: var(--text-2);
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot .brand {
  margin-bottom: 12px;
  color: var(--text);
}

.foot .fine {
  margin-top: 36px;
  color: var(--text-3);
  font-size: 14px;
}

/* ───────────── Apparitions au défilement ───────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(var(--rise));
  transition:
    opacity var(--slower) var(--ease-out),
    transform var(--slower) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}

/* Le verre monte sans fondu (jamais d'opacité au-dessus du verre) : seule la translation joue. */
.js .reveal.glass,
.js .reveal .glass {
  opacity: 1;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Filet de sécurité : si site.js ne s'exécute pas (réseau, erreur), les blocs apparaissent quand même. */
.js:not(.js-ok) .reveal {
  animation: reveal-fallback 1ms 2.5s forwards;
}

@keyframes reveal-fallback {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    transform: translateY(var(--rise));
  }
  to {
    transform: none;
  }
}

/* ───────────── Mouvement réduit ───────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .aurora i {
    animation: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Navigateurs sans flou d'arrière-plan : surface opaque (glass.solid). */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: #16171c;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #16171c;
  }
}
