/* =============================================================================
   ComptaLT par YapSoft — page d'accueil commerciale
   Charte YapSoft v1.0 : Nuit / Papier / Violet Yap / Cyan Signal (signaux seulement)
   Space Grotesk (titres) · Inter (texte) · JetBrains Mono (données)
   Tout le mouvement est en CSS natif ; ~2 Ko de JavaScript pour la scène et les révélations.
   ============================================================================= */

:root {
  --nuit: #0a0a12;
  --papier: #f6f6fa;
  --ink-100: #ececf3;
  --ink-200: #d6d6e2;
  --ink-300: #b4b4c8;
  --ink-400: #8a8aa3;
  --ink-500: #5c5c74;
  --ink-800: #1b1b2a;
  --ink-900: #12121e;
  --violet-300: #b3a2ff;
  --violet-400: #9a83ff;
  --violet-500: #7c5cff;
  --violet-600: #6440f5;
  --violet-700: #4f2fd6;
  --cyan-400: #22d3ee;
  --cyan-600: #0891b2;
  --succes: #22c55e;
  --display: 'Space Grotesk Variable', 'Space Grotesk', 'Inter Variable', Inter, system-ui, sans-serif;
  --sans: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --radius: 16px;
  --pill: 999px;
  --largeur: 1180px;
  --ease-sortie: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--nuit);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--violet-500); color: var(--nuit); padding: 10px 14px; border-radius: var(--pill); font-weight: 600; text-decoration: none; }
.evitement:focus { top: 12px; }
.grain-def { position: absolute; }
.conteneur { width: min(var(--largeur), calc(100% - 3rem)); margin-inline: auto; }
.mono { font-family: var(--mono); }

/* ---------- Boutons : micro-interactions systématiques ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 2.7rem; padding: 0.65rem 1.25rem;
  border: 1px solid transparent; border-radius: var(--pill);
  font-weight: 600; font-size: 0.9rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease-sortie), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.bouton.grand { min-height: 3.1rem; padding: 0.9rem 1.6rem; font-size: 0.95rem; }
.bouton-plein { background: var(--violet-500); color: var(--nuit); box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35); }
.bouton-plein:hover { background: var(--violet-400); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(124, 92, 255, 0.45); }
.bouton-plein:active { transform: translateY(0); }
.bouton-contour { border-color: rgba(246, 246, 250, 0.22); color: var(--papier); background: transparent; }
.bouton-contour:hover { border-color: var(--violet-400); background: rgba(124, 92, 255, 0.12); }
.papier .bouton-contour, .papier-doux .bouton-contour { color: var(--nuit); border-color: rgba(10, 10, 18, 0.2); }
:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 18, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(246, 246, 250, 0.08); color: var(--papier);
}
.nav-com { width: min(var(--largeur), calc(100% - 3rem)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marque .logo { height: 30px; width: auto; display: block; }
.marque .produit { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; padding-left: 12px; border-left: 1px solid rgba(246, 246, 250, 0.2); }
.liens { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.liens .bouton { white-space: nowrap; }
.liens > a:not(.bouton) { text-decoration: none; color: var(--ink-300); position: relative; }
.liens > a:not(.bouton)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--violet-400); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-sortie); }
.liens > a:not(.bouton):hover { color: var(--papier); }
.liens > a:not(.bouton):hover::after { transform: scaleX(1); }

/* ---------- Chapitre 1 : la nuit ---------- */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  background: var(--nuit); color: var(--papier);
  padding: 5.5rem 0 9rem;
}
.hero::before {
  /* Matière : grain perceptible (10 %) sur la nuit */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  filter: url(#grain); opacity: 0.1; background: #fff;
}
.orbe { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; filter: blur(2px); }
.orbe-1 { top: -22rem; left: 38%; width: 60rem; height: 44rem; background: radial-gradient(ellipse, rgba(124, 92, 255, 0.28), transparent 68%); animation: derive 18s ease-in-out infinite alternate; }
.orbe-2 { bottom: -12rem; right: -10rem; width: 34rem; height: 30rem; background: radial-gradient(ellipse, rgba(34, 211, 238, 0.12), transparent 68%); animation: derive 24s ease-in-out infinite alternate-reverse; }
.orbe-3 { top: -10rem; right: 10%; width: 40rem; height: 30rem; background: radial-gradient(ellipse, rgba(124, 92, 255, 0.22), transparent 68%); }
@keyframes derive { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-4%, 6%, 0); } }

.hero-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; align-items: center; }
.pastille {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.6rem; padding: 0.4rem 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.4); border-radius: var(--pill); background: rgba(34, 211, 238, 0.06);
  color: var(--cyan-400); font-size: 0.8rem; font-weight: 500;
}
.point { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--cyan-400); animation: pulsation 2.4s ease-in-out infinite; }
@keyframes pulsation { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4); } 50% { box-shadow: 0 0 0 0.35rem transparent; } }

/* Le titre est l'image : révélation masquée ligne par ligne, rem + vw */
h1 {
  margin: 0 0 1.4rem;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 1rem + 5.4vw, 5.6rem);
  line-height: 0.98; letter-spacing: -0.045em;
}
h1 .ligne { display: block; overflow: clip; }
h1 .ligne > span { display: inline-block; transform: translateY(110%); animation: monter 0.9s var(--ease-sortie) forwards; }
h1 .ligne:nth-child(2) > span { animation-delay: 0.12s; }
h1 .ligne:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes monter { to { transform: translateY(0); } }
/* Typographie active : la graisse du mot « compta » respire (≤ 20 glyphes) */
.mot-vivant { font-style: normal; color: var(--violet-400); font-variation-settings: 'wght' 700; animation: respirer 5s ease-in-out 1.2s infinite alternate; }
@keyframes respirer { from { font-variation-settings: 'wght' 700; } to { font-variation-settings: 'wght' 420; } }
.accroche { max-width: 34rem; margin: 0 0 2rem; color: var(--ink-300); font-size: 1.05rem; }
.actions-hero { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mention { margin-top: 1.2rem; font-size: 0.8rem; color: var(--ink-400); }
.code-ligne {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
  margin: 0; padding: 0.7rem 1.1rem; max-width: calc(100% - 3rem); overflow: auto;
  border: 1px solid rgba(246, 246, 250, 0.1); border-radius: 0.8rem; background: rgba(27, 27, 42, 0.7);
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-300); white-space: pre;
}
.code-ligne .mc { color: var(--violet-400); } .code-ligne .mf { color: var(--cyan-400); } .code-ligne .ms { color: var(--succes); }

/* ---------- La scène : l'écriture qui se merge ---------- */
.scene { position: relative; }
.scene-carte {
  background: rgba(27, 27, 42, 0.78); border: 1px solid rgba(246, 246, 250, 0.1); border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 92, 255, 0.12);
  transform: rotate(-1.2deg); transition: transform 0.6s var(--ease-sortie);
  animation: poser 1s var(--ease-sortie) 0.3s both;
}
.scene-carte:hover, .scene-carte:focus-within { transform: rotate(0deg); }
@keyframes poser { from { opacity: 0; transform: translateY(30px) rotate(-3deg); } to { opacity: 1; transform: translateY(0) rotate(-1.2deg); } }
.scene-tete { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(246, 246, 250, 0.1); }
.scene-etat .point { display: block; }
.scene-mode { margin-left: auto; font-family: var(--sans); font-weight: 500; font-size: 0.72rem; color: var(--violet-300); border: 1px solid rgba(154, 131, 255, 0.4); border-radius: var(--pill); padding: 2px 8px; }
.question { padding-top: 0.9rem; animation: apparaitre 0.4s var(--ease-sortie); }
@keyframes apparaitre { from { opacity: 0; transform: translateY(8px); } }
.question .q { margin: 0 0 0.5rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.choix { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: 0.82rem; font-weight: 500; cursor: pointer;
  padding: 0.45rem 0.8rem; border-radius: var(--pill);
  background: rgba(246, 246, 250, 0.06); color: var(--papier); border: 1px solid rgba(246, 246, 250, 0.14);
  transition: background 0.15s, border-color 0.15s, transform 0.15s var(--ease-sortie);
}
.chip:hover { border-color: var(--violet-400); transform: translateY(-1px); }
.chip.actif { background: var(--violet-500); color: var(--nuit); border-color: var(--violet-500); font-weight: 600; }
.ligne-montant { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.montant { display: inline-flex; align-items: center; gap: 6px; background: rgba(246, 246, 250, 0.06); border: 1px solid rgba(246, 246, 250, 0.14); border-radius: 10px; padding: 0 10px; }
.montant span { font-size: 0.8rem; color: var(--ink-300); }
.montant input { width: 7.5rem; background: transparent; border: 0; color: var(--papier); font-family: var(--mono); font-size: 1rem; padding: 0.45rem 0; text-align: right; outline: none; }

.merge { position: relative; margin-top: 1rem; display: grid; grid-template-columns: 1fr; gap: 6px; opacity: 0.35; transition: opacity 0.4s; }
.merge-fait .merge { opacity: 1; }
.merge-trace { width: 100%; height: 90px; display: block; }
.merge-trace path { fill: none; stroke-width: 3; stroke-linecap: round; }
.branche { stroke: var(--violet-400); stroke-dasharray: 300; stroke-dashoffset: 300; }
.tronc { stroke: var(--papier); stroke-dasharray: 200; stroke-dashoffset: 200; }
.noeud { fill: var(--cyan-400); opacity: 0; }
.merge-fait .branche { animation: tracer 0.7s var(--ease-sortie) forwards; }
.merge-fait .b2 { animation-delay: 0.1s; }
.merge-fait .tronc { animation: tracer 0.6s var(--ease-sortie) 0.6s forwards; }
.merge-fait .noeud { animation: noeud 0.5s var(--ease-sortie) 0.55s forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes noeud { from { opacity: 0; transform: scale(0.3); transform-origin: 160px 60px; } to { opacity: 1; transform: scale(1); } }
.branche-lib { position: absolute; left: 0; display: grid; font-size: 0.72rem; line-height: 1.25; max-width: 46%; }
.branche-lib small { color: var(--ink-400); }
.branche-lib b { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; color: var(--papier); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b1-lib { top: -2px; } .b2-lib { top: 58px; }
.ecriture { border: 1px solid rgba(124, 92, 255, 0.35); border-radius: 12px; padding: 0.7rem 0.9rem; background: rgba(124, 92, 255, 0.08); opacity: 0; transform: translateY(8px); transition: opacity 0.4s 1s, transform 0.4s 1s var(--ease-sortie); }
.merge-fait .ecriture { opacity: 1; transform: none; }
.ecriture small { color: var(--ink-400); font-size: 0.72rem; }
.ecriture-lignes div { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; padding: 3px 0; border-bottom: 1px dashed rgba(246, 246, 250, 0.12); }
.ecriture-lignes .mono { color: var(--cyan-400); }
.ecriture-fin { margin: 0.5rem 0 0; font-size: 0.78rem; color: var(--ink-300); }
.ecriture-fin a { color: var(--violet-300); }
.lien-reset { margin-top: 0.6rem; background: none; border: 0; color: var(--ink-400); font: inherit; font-size: 0.78rem; cursor: pointer; }
.lien-reset:hover { color: var(--papier); }
.scene-legende { margin: 0.8rem 0 0; text-align: center; font-size: 0.74rem; color: var(--ink-400); }

/* ---------- Bande de mots ---------- */
.bande { position: relative; overflow: clip; background: var(--violet-500); color: var(--nuit); font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 0.6rem + 2vw, 2rem); letter-spacing: -0.02em; padding: 0.9rem 0; transform: rotate(-1deg) scale(1.02); margin: -1.4rem 0 -0.6rem; z-index: 2; }
.bande-piste { display: flex; gap: 2.5rem; width: max-content; animation: defiler 40s linear infinite; }
.bande-piste span { white-space: nowrap; }
.bande-piste span::after { content: ' ·'; opacity: 0.5; }
.bande.en-pause .bande-piste { animation-play-state: paused; }
@keyframes defiler { to { transform: translateX(-50%); } }
.bande-pause { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 1; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(10, 10, 18, 0.3); background: rgba(10, 10, 18, 0.15); color: var(--nuit); font-size: 0.7rem; cursor: pointer; }

/* ---------- Chapitres papier ---------- */
.chapitre { padding: 6.5rem 0; position: relative; }
.papier { background: var(--papier); }
.papier-doux { background: var(--ink-100); }
.nuit { background: var(--nuit); color: var(--papier); overflow: clip; isolation: isolate; }
.nuit::before { content: ''; position: absolute; inset: 0; z-index: -1; filter: url(#grain); opacity: 0.09; background: #fff; }
.tete-section { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1.2rem; align-items: baseline; margin-bottom: 3rem; }
.numero { font-family: var(--mono); font-size: 0.85rem; color: var(--violet-600); border-top: 2px solid var(--violet-600); padding-top: 6px; }
.nuit .numero { color: var(--violet-400); border-color: var(--violet-400); }
h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1rem + 3.4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.035em; }
h3 { margin: 0.4rem 0 0.4rem; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
.sous-note { max-width: 44rem; color: var(--ink-500); margin-top: 2.5rem; }

/* Révélations : au repos = frame finale (reduced-motion) ; en mouvement = clip + montée */
.reveal { opacity: 0; transform: translateY(28px); clip-path: inset(0 0 30% 0); transition: opacity 0.7s var(--ease-sortie), transform 0.7s var(--ease-sortie), clip-path 0.7s var(--ease-sortie); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.vu { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* Étapes : grands numéros, filet, pas de grille répétée à l'infini */
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.etape { border-top: 1px solid var(--ink-200); padding-top: 1.2rem; position: relative; }
.etape-num { font-family: var(--display); font-weight: 700; font-size: clamp(3.5rem, 2rem + 4vw, 6rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--violet-600); display: block; }
.etape p { color: var(--ink-500); font-size: 0.95rem; }

/* Bento : deux blocs larges, quatre blocs simples, chacun avec sa matière */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.bloc { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 1.5rem; min-height: 15rem; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: clip; transition: transform 0.3s var(--ease-sortie), border-color 0.3s, box-shadow 0.3s; }
.bloc:hover { transform: translateY(-4px); border-color: var(--violet-400); box-shadow: 0 18px 40px rgba(100, 64, 245, 0.12); }
.bloc.large { grid-column: span 2; }
.bloc p { margin: 0; color: var(--ink-500); font-size: 0.92rem; }
.pictos { position: absolute; top: 1.2rem; right: 1.2rem; }
.pictos-bilan { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.pictos-bilan i { display: block; width: 12px; background: linear-gradient(180deg, var(--violet-400), var(--violet-600)); border-radius: 3px 3px 0 0; }
.pictos-bilan i:nth-child(1) { height: 30%; } .pictos-bilan i:nth-child(2) { height: 60%; } .pictos-bilan i:nth-child(3) { height: 45%; } .pictos-bilan i:nth-child(4) { height: 100%; }
.bloc:hover .pictos-bilan i { animation: pousser 0.6s var(--ease-sortie); }
@keyframes pousser { from { transform: scaleY(0.4); transform-origin: bottom; } }
.pictos-tva { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--violet-600); letter-spacing: -0.04em; }
.pictos-tva small { font-size: 1rem; margin-left: 2px; }
.pictos-qr { display: grid; grid-template-columns: repeat(3, 10px); gap: 3px; }
.pictos-qr i { display: block; width: 10px; height: 10px; background: var(--nuit); border-radius: 2px; }
.pictos-qr i:nth-child(5) { background: var(--cyan-600); }
.pictos-cycle { font-size: 2rem; color: var(--violet-600); line-height: 1; }
.bloc:hover .pictos-cycle { animation: tourner 0.8s var(--ease-sortie); }
@keyframes tourner { to { transform: rotate(360deg); } }
.pictos-kanban { display: flex; gap: 4px; }
.pictos-kanban i { display: block; width: 14px; height: 40px; border-radius: 3px; background: var(--ink-200); }
.pictos-kanban i:nth-child(2) { height: 28px; background: var(--violet-400); } .pictos-kanban i:nth-child(3) { height: 18px; background: var(--succes); }
.pictos-cadenas i { display: block; width: 26px; height: 20px; border-radius: 5px; background: var(--violet-600); position: relative; margin-top: 12px; }
.pictos-cadenas i::before { content: ''; position: absolute; left: 5px; top: -12px; width: 12px; height: 16px; border: 3px solid var(--violet-600); border-bottom: 0; border-radius: 8px 8px 0 0; }

/* Documents : la feuille se dévoile en rideau au défilement (scroll-driven), repli statique */
.documents-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.liste-coche { list-style: none; padding: 0; margin: 0; }
.liste-coche li { padding: 0.5rem 0 0.5rem 1.8rem; position: relative; border-bottom: 1px solid var(--ink-200); }
.liste-coche li::before { content: ''; position: absolute; left: 0; top: 0.95rem; width: 10px; height: 6px; border-left: 2px solid var(--violet-600); border-bottom: 2px solid var(--violet-600); transform: rotate(-45deg); }
.document-scene { perspective: 1200px; }
.feuille {
  background: #fff; color: var(--nuit); border-radius: 6px; padding: 1.6rem 1.7rem; aspect-ratio: 210 / 260;
  box-shadow: 0 40px 80px rgba(10, 10, 18, 0.25), 0 0 0 1px var(--ink-200);
  transform: rotate(2deg) rotateY(-8deg); font-size: 0.8rem;
  clip-path: inset(0 0 0 0);
  display: flex; flex-direction: column; gap: 1rem;
}
@supports (animation-timeline: view()) {
  .feuille {
    animation-name: rideau;
    animation-timing-function: var(--ease-sortie);
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 10% entry 70%;
  }
  @keyframes rideau { from { clip-path: inset(0 0 100% 0); transform: rotate(6deg) rotateY(-20deg) translateY(40px); } to { clip-path: inset(0 0 0 0); transform: rotate(2deg) rotateY(-8deg); } }
}
.feuille-tete { display: flex; justify-content: space-between; align-items: flex-start; }
.feuille-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.feuille-logo img { height: 34px; }
.feuille-titre { font-family: var(--display); font-weight: 700; font-size: 1.3rem; text-align: right; line-height: 1; }
.feuille-titre small { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.7rem; color: var(--ink-500); margin-top: 4px; }
.feuille-lignes .fl { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--ink-100); font-family: var(--mono); font-size: 0.74rem; }
.feuille-lignes .fl span:first-child { font-family: var(--sans); }
.feuille-lignes .total { border-bottom: 0; border-top: 2px solid var(--nuit); font-weight: 700; }
.feuille-qr { margin-top: auto; display: flex; gap: 14px; align-items: center; border-top: 1px dashed var(--ink-300); padding-top: 1rem; }
.qr { position: relative; display: grid; grid-template-columns: repeat(4, 9px); gap: 3px; padding: 4px; background: #fff; border: 1px solid var(--ink-200); }
.qr i { display: block; width: 9px; height: 9px; background: var(--nuit); }
.qr i:nth-child(3n) { background: transparent; }
.qr .croix { position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; background: var(--nuit); }
.qr .croix::before, .qr .croix::after { content: ''; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.qr .croix::before { width: 8px; height: 2px; } .qr .croix::after { width: 2px; height: 8px; }
.qr-texte { display: grid; gap: 2px; font-family: var(--mono); font-size: 0.66rem; color: var(--ink-500); }
.qr-texte b { font-family: var(--sans); color: var(--nuit); }

/* Tarif : retour à la nuit, la chute est le CTA */
.tarif-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; }
.nuit p { color: var(--ink-300); max-width: 34rem; }
.carte-tarif { background: rgba(27, 27, 42, 0.8); border: 1px solid rgba(124, 92, 255, 0.35); border-radius: var(--radius); padding: 2rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); transform: rotate(1deg); }
.prix { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 2rem + 6vw, 7rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--papier); }
.prix .devise { font-size: 1.2rem; vertical-align: top; margin-right: 6px; color: var(--violet-400); letter-spacing: 0; }
.prix .periode { font-size: 1.1rem; color: var(--ink-400); margin-left: 6px; letter-spacing: 0; }
.nom-offre { margin: 0.6rem 0 1rem; color: var(--cyan-400); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.carte-tarif ul { list-style: none; padding: 0; margin: 0; }
.carte-tarif li { padding: 0.5rem 0 0.5rem 1.6rem; position: relative; border-top: 1px solid rgba(246, 246, 250, 0.1); font-size: 0.92rem; }
.carte-tarif li::before { content: ''; position: absolute; left: 0; top: 1rem; width: 9px; height: 5px; border-left: 2px solid var(--cyan-400); border-bottom: 2px solid var(--cyan-400); transform: rotate(-45deg); }

/* Pied ---------- */
.pied-com { background: var(--nuit); color: var(--ink-400); border-top: 1px solid rgba(246, 246, 250, 0.08); padding: 2.5rem 0; font-size: 0.85rem; }
.pied-grille { display: grid; gap: 0.6rem; justify-items: start; }
.pied-com .signature { height: 34px; width: auto; }
.pied-com a { color: var(--ink-300); }
.copyright { margin: 0; font-size: 0.78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grille, .documents-grille, .tarif-grille { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes { grid-template-columns: 1fr; gap: 1.2rem; }
  .liens > a:not(.bouton) { display: none; }
  .document-scene { max-width: 420px; }
}
@media (max-width: 640px) {
  .hero { padding: 3rem 0 7rem; }
  .bento { grid-template-columns: 1fr; }
  .bloc.large { grid-column: span 1; }
  .bloc { min-height: 12rem; }
  .tete-section { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.8rem; margin-bottom: 2rem; }
  .chapitre { padding: 4.5rem 0; }
  .marque .produit { display: none; }
  .liens { gap: 10px; }
  .liens .bouton-contour { border: 0; padding: 0.5rem 0.2rem; }
  .bouton { padding: 0.55rem 0.9rem; font-size: 0.82rem; }
  .code-ligne { font-size: 0.68rem; bottom: 1.4rem; }
  .scene-carte { transform: none; }
  .branche-lib { max-width: 44%; }
}

/* ---------- Mouvement réduit : chaque animation tombe sur sa frame finale ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
  h1 .ligne > span { transform: none; animation: none; }
  .mot-vivant { animation: none; }
  .scene-carte { animation: none; opacity: 1; }
  .bande-piste { animation: none; }
  .reveal { opacity: 1; transform: none; clip-path: none; }
  .feuille { animation: none !important; clip-path: none; }
  .orbe { animation: none; }
  html { scroll-behavior: auto; }
}
