/* ==========================================================================
   Baara Lab — feuille de style principale
   --------------------------------------------------------------------------
   1. Variables (couleurs, typo, espacements)
   2. Base (reset léger)
   3. Typographie
   4. Mise en page (conteneur, sections, grilles)
   5. Composants (boutons en relief, cartes 3D, icônes, puces)
   6. Carrelage (grille de fond + carreaux bogolan)
   7. En-tête et navigation
   8. Hero et scène 3D
   9. Le problème
   10. Démos
   11. Offres (mini-outils, logiciels)
   12. Comment ça marche
   13. Tarifs
   14. FAQ
   15. Contact
   16. Pied de page
   17. Utilitaires et mouvement réduit

   Tous les effets 3D sont en CSS pur (perspective, ombres empilées) :
   aucun moteur 3D à télécharger, la page reste légère.
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES
   ========================================================================== */

:root {
  /* --- Palette bogolan (valeurs brutes) --- */
  --c-ink: #17120e;            /* noir profond */
  --c-cream: #f7f0e4;          /* crème */
  --c-cream-2: #efe3cf;
  --c-paper: #fffbf4;
  --c-ochre: #c48a2c;          /* ocre */
  --c-ochre-light: #e3b35a;
  --c-ochre-soft: #f1dcae;
  --c-terracotta: #c2562f;     /* terre cuite */
  --c-terracotta-dark: #9c4424;
  --c-accent: #25d366;         /* vert vif : réservé aux boutons d'action */
  --c-accent-hover: #2ee072;
  --c-accent-edge: #129447;    /* tranche du bouton (effet relief) */
  --c-accent-ink: #08200f;

  /* --- Rôles (mode clair) : c'est ce que les composants utilisent --- */
  --bg: var(--c-cream);
  --bg-alt: var(--c-cream-2);
  --surface: var(--c-paper);
  --surface-2: #f9f3e8;
  --text: var(--c-ink);
  --text-muted: #5e4f42;
  --heading: var(--c-ink);
  --brand-text: var(--c-terracotta-dark);   /* texte terre cuite lisible */
  --border: rgba(23, 18, 14, 0.12);
  --border-strong: rgba(23, 18, 14, 0.26);
  --mark-color: var(--c-ochre-soft);
  --focus: var(--c-ink);
  --header-bg: rgba(247, 240, 228, 0.94);

  --card-edge: #e2d0b3;                     /* tranche des cartes (relief) */
  --card-sheen: rgba(255, 255, 255, 0.6);   /* reflet en haut des cartes */
  --glare: rgba(255, 255, 255, 0.55);       /* reflet qui suit la souris */

  --grid-line: rgba(23, 18, 14, 0.1);       /* lignes fines du carrelage */
  --grid-major: rgba(23, 18, 14, 0.17);     /* lignes fortes (tous les 4 carreaux) */
  --grid-dot: rgba(156, 68, 36, 0.6);       /* points aux croisements */
  --grid-hot: rgba(196, 138, 44, 0.75);     /* lignes éclairées sous la souris */
  --floor-line: rgba(194, 86, 47, 0.38);    /* sol en perspective du hero */
  --tile-lit: rgba(196, 138, 44, 0.24);     /* carreaux colorés */
  --tile-symbol: var(--c-terracotta);       /* symboles bogolan */

  /* Logo (cube) */
  --logo-top: #e3b35a;
  --logo-left: #c2562f;
  --logo-right: #17120e;

  --shadow-sm: 0 1px 2px rgba(60, 35, 15, 0.08);
  --shadow: 0 14px 32px -16px rgba(60, 35, 15, 0.3);
  --shadow-lg: 0 28px 56px -22px rgba(60, 35, 15, 0.4);

  /* --- Typographie --- */
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-led: "Orbitron", "Bricolage Grotesque", ui-monospace, sans-serif; /* démos uniquement, chargée à la demande */
  --font-bubble: "Fredoka", ui-rounded, "Bricolage Grotesque", system-ui, sans-serif; /* démos, chargée à la demande */

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.4vw, 2.875rem);
  --fs-h1: clamp(2.25rem, 1.35rem + 4.3vw, 4.25rem);

  /* --- Espacements et formes --- */
  --gutter: 1rem;
  --container: 74rem;
  --section-py: clamp(3.5rem, 2.25rem + 5.5vw, 7rem);
  --grid-gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  --header-h: 4rem;
  --tile: 3rem;

  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.375rem;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

/* Thème « encre » : sections sombres (démos, contact, pied de page)
   et mode sombre global. */
.theme-ink,
:root[data-theme="dark"] {
  --bg: var(--c-ink);
  --bg-alt: #1f1914;
  --surface: #261f19;
  --surface-2: #2e261f;
  --text: #f3eadb;
  --text-muted: #c2b29c;
  --heading: #fbf5ea;
  --brand-text: #e8946a;
  --border: rgba(243, 234, 219, 0.12);
  --border-strong: rgba(243, 234, 219, 0.28);
  --mark-color: rgba(196, 138, 44, 0.45);
  --focus: var(--c-ochre-soft);
  --header-bg: rgba(20, 16, 12, 0.94);

  --card-edge: #0b0907;
  --card-sheen: rgba(255, 255, 255, 0.04);
  --glare: rgba(255, 255, 255, 0.08);

  --grid-line: rgba(243, 234, 219, 0.085);
  --grid-major: rgba(243, 234, 219, 0.16);
  --grid-dot: rgba(227, 179, 90, 0.7);
  --grid-hot: rgba(227, 179, 90, 0.6);
  --floor-line: rgba(227, 179, 90, 0.32);
  --tile-lit: rgba(227, 179, 90, 0.14);
  --tile-symbol: var(--c-ochre-light);

  --logo-right: #6a2c16;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 14px 32px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 28px 56px -22px rgba(0, 0, 0, 0.8);

  color-scheme: dark;
}

:root[data-theme="dark"] {
  --bg: #14100c;
  --bg-alt: #1b1611;
}

/* En mode sombre, les sections « encre » restent plus foncées que le fond */
:root[data-theme="dark"] .theme-ink {
  --bg: #0d0a08;
  --surface: #1c1712;
}

.theme-ink {
  background-color: var(--bg);
  color: var(--text);
}

@media (min-width: 600px) {
  :root { --gutter: 1.5rem; }
}

@media (min-width: 960px) {
  :root {
    --gutter: 2rem;
    --header-h: 4.5rem;
    --fs-base: 1.0625rem;
    --tile: 3.5rem;
  }
}


/* ==========================================================================
   2. BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

img, picture, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

::selection {
  background: var(--c-ochre-soft);
  color: var(--c-ink);
}

[hidden] {
  display: none !important;
}

/* Lien d'évitement (clavier / lecteur d'écran) */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--c-ink);
  color: var(--c-cream);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}


/* ==========================================================================
   3. TYPOGRAPHIE
   ========================================================================== */

h1, h2, h3, h4,
.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--heading);
  text-wrap: balance;
}

h1, .h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2, .h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.03em;
}

h3, .h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-muted);
}

/* Petit sur-titre au-dessus des titres de section */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--c-ochre);
  transform: rotate(45deg);
}

/* Surlignage façon trait de pinceau, pour un mot clé dans un titre */
.mark {
  background-image: linear-gradient(transparent 58%, var(--mark-color) 58%, var(--mark-color) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.08em;
}


/* ==========================================================================
   4. MISE EN PAGE
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-py);
}

.section--alt {
  background-color: var(--bg-alt);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section__head > * + * {
  margin-top: 1rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

/* Grilles : 1 colonne sur mobile, puis plus selon la largeur */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
}

@media (min-width: 600px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 820px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Empile les enfants avec un espace régulier */
.stack > * + * {
  margin-top: var(--stack-gap, 1rem);
}

/* Aligne des éléments en ligne, avec retour à la ligne */
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, 0.75rem);
}


/* ==========================================================================
   5. COMPOSANTS
   ========================================================================== */

/* --- Icônes --- */
.icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

/* --- Boutons (en relief : une « tranche » sous le bouton) --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;              /* cible tactile confortable */
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

/* Action principale (vert vif) */
.btn--accent {
  background-color: var(--c-accent);
  color: var(--c-accent-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 0 var(--c-accent-edge),
    0 14px 24px -10px rgba(18, 140, 68, 0.65);
}

.btn--accent:hover {
  background-color: var(--c-accent-hover);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 5px 0 var(--c-accent-edge),
    0 18px 28px -10px rgba(18, 140, 68, 0.7);
}

.btn--accent:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 1px 0 var(--c-accent-edge),
    0 6px 12px -8px rgba(18, 140, 68, 0.6);
}

/* Action secondaire (contour, en relief léger) */
.btn--ghost {
  border-color: var(--border-strong);
  background-color: var(--surface);
  color: var(--heading);
  box-shadow: 0 3px 0 var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--heading);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--heading);
}

.btn--ghost:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--heading);
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.btn--lg {
  min-height: 3.5rem;
  padding: 0.9rem 1.75rem;
  font-size: 1.0625rem;
}

.btn--xl {
  min-height: 4rem;
  padding: 1rem 2.25rem;
  font-size: 1.1875rem;
}

.btn--block {
  width: 100%;
}

.btn .icon {
  width: 1.3em;
  height: 1.3em;
}

.btn .icon-arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

/* Rangée de boutons : pleine largeur sur petit écran */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-row > .btn {
  flex: 1 1 15rem;
}

@media (min-width: 600px) {
  .btn-row > .btn { flex: 0 0 auto; }
}

/* Bouton carré à icône (menu, thème) */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--heading);
  box-shadow: 0 2px 0 var(--border);
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}

.icon-btn:hover {
  border-color: var(--border-strong);
}

.icon-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* --- Cartes en relief --- */
.card {
  position: relative;
  padding: clamp(1.35rem, 1rem + 1.2vw, 1.85rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--card-sheen), transparent 38%),
    var(--surface);
  box-shadow: 0 5px 0 -1px var(--card-edge), var(--shadow);
}

.card h3 {
  margin-top: 1.25rem;
}

.card > p {
  margin-top: 0.6rem;
  color: var(--text-muted);
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border-strong);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-text);
  text-decoration: none;
}

.card__link:hover {
  text-decoration: underline;
}

.card__link .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s var(--ease);
}

.card__link:hover .icon {
  transform: translateX(3px);
}

/* Inclinaison 3D qui suit la souris (ordinateur uniquement, activée par JS) */
.tilt-ready [data-tilt] {
  transform: perspective(1000px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg)) translateY(var(--lift, 0px));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.3s;
}

.tilt-ready [data-tilt].is-tilting {
  --lift: -4px;
  transition: transform 0.12s linear, box-shadow 0.3s;
  box-shadow: 0 7px 0 -1px var(--card-edge), var(--shadow-lg);
}

/* Les icônes « sortent » de la carte */
.tilt-ready [data-tilt] .icon-tile {
  transform: translateZ(36px);
}

/* Reflet lumineux */
.tilt-ready [data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 0%), var(--glare), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.tilt-ready [data-tilt].is-tilting::after {
  opacity: 1;
}

/* --- Icônes « en pâte » (carré en relief) --- */
.icon-tile {
  --it-bg: var(--c-ochre-soft);
  --it-fg: var(--c-terracotta-dark);
  --it-edge: #d6b26c;
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.6), transparent 55%),
    var(--it-bg);
  color: var(--it-fg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 5px 0 var(--it-edge),
    0 14px 20px -10px rgba(80, 40, 10, 0.5);
  transition: transform 0.5s var(--ease);
}

.icon-tile .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.icon-tile--terra {
  --it-bg: #f4cdb8;
  --it-fg: #7f331a;
  --it-edge: #d9977a;
}

.icon-tile--ink {
  --it-bg: #2e241c;
  --it-fg: var(--c-ochre-light);
  --it-edge: #050403;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.14), transparent 55%),
    var(--it-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 5px 0 var(--it-edge),
    0 14px 20px -10px rgba(0, 0, 0, 0.6);
}

.icon-tile--sm {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
}

.icon-tile--sm .icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* --- Badges et puces --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background-color: var(--c-ochre-soft);
  color: var(--c-ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 2px 0 #d6b26c;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background-color: var(--surface-2);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.2;
}

.chip .icon {
  width: 1em;
  height: 1em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* --- Liste à coches --- */
.checklist {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.checklist .icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2em;
  color: var(--brand-text);
}

/* --- Bandeau d'appel à l'action --- */
.cta-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  padding: 1.25rem 1.4rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.cta-bar strong {
  color: var(--heading);
}

.cta-bar .cluster {
  flex-shrink: 0;
}

@media (min-width: 760px) {
  .cta-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1.25rem 1.75rem;
  }
}

/* --- Formulaires (démos, tarifs, questionnaire) --- */
.field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.field {
  display: block;
}

.field > label,
.field > legend {
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--heading);
}

.field > legend {
  margin-bottom: 0.55rem;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.input {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 0.85rem;
  background-color: var(--surface-2);
  color: var(--text);
  font-size: 1rem; /* 16 px : évite le zoom automatique sur téléphone */
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.input:focus {
  outline: none;
  border-color: var(--c-ochre);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(196, 138, 44, 0.35);
}

.input[aria-invalid="true"] {
  border-color: #e5674a;
}

.field__error {
  grid-column: 1 / -1;
  color: #e5674a;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.field__error:empty {
  display: none;
}

/* Choix en pastilles (un seul choix possible) */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background-color: var(--surface-2);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.seg label {
  position: relative;
  flex: 1 1 auto;
}

.seg input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.seg span {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 0.85rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.seg label:hover span {
  color: var(--heading);
}

.seg input:checked + span {
  background-color: var(--heading);
  color: var(--bg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.seg input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.seg--fill {
  display: flex;
}

.seg--wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
}

.seg--fill label {
  flex: 1 1 0;
}

.seg--fill span {
  padding-inline: 0.5rem;
}

/* Pastilles de couleur (en relief, comme des perles) */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.swatch {
  position: relative;
  display: block;
  width: 2.15rem;
  height: 2.15rem;
  cursor: pointer;
}

@media (min-width: 600px) {
  .swatch {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.swatch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.swatch__dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--sw);
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    0 3px 0 rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: transform 0.15s;
}

.swatch--custom .swatch__dot {
  background: var(--sw, conic-gradient(#e5484d, #f5a524, #30a46c, #0ea5e9, #8e4ec6, #e5484d));
}

.swatch input:checked + .swatch__dot,
.swatch.is-selected .swatch__dot {
  outline: 3px solid var(--heading);
  outline-offset: 3px;
  transform: translateY(-2px);
}

.swatch input:focus-visible + .swatch__dot {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* --- Bande décorative bogolan (séparateur) --- */
.band {
  height: 0.875rem;
  background-color: var(--c-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M1 12 L7 3 L13 12 Z' fill='rgb(196,138,44)'/%3E%3Ccircle cx='21' cy='7.5' r='2.2' fill='rgb(247,240,228)'/%3E%3C/svg%3E");
  background-size: 28px 14px;
  background-repeat: repeat-x;
}


/* ==========================================================================
   6. CARRELAGE
   --------------------------------------------------------------------------
   Une grille fine en fond de section, qui s'estompe sur les bords, avec
   quelques carreaux colorés ou peints de symboles bogolan.

   <section class="section has-tiles">
     <div class="tiles" aria-hidden="true">
       <span class="tile" style="--x:2;--y:1"></span>             carreau coloré
       <span class="tile tile--zigzag" style="--x:-3;--y:4"></span> carreau bogolan
     </div>
     ...
   --x : colonne à partir du centre (négatif = à gauche), --y : ligne.
   ========================================================================== */

.has-tiles {
  position: relative;
  isolation: isolate;
}

/* Deux niveaux de lignes (fines + fortes tous les 4 carreaux) et un point
   à chaque grand croisement. Toutes les lignes passent par le centre. */
.tiles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--grid-dot) 0 1.8px, transparent 2.4px),
    linear-gradient(to right, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size:
    calc(var(--tile) * 4) calc(var(--tile) * 4),
    calc(var(--tile) * 4) calc(var(--tile) * 4),
    calc(var(--tile) * 4) calc(var(--tile) * 4),
    var(--tile) var(--tile),
    var(--tile) var(--tile);
  background-position:
    50% calc(var(--tile) * -2),
    calc(50% + var(--tile) * 2) 0,
    calc(50% + var(--tile) * 2) 0,
    calc(50% + var(--tile) / 2) 0,
    calc(50% + var(--tile) / 2) 0;
  -webkit-mask-image: var(--tiles-mask, radial-gradient(ellipse 100% 85% at 50% 45%, #000 50%, transparent 100%));
  mask-image: var(--tiles-mask, radial-gradient(ellipse 100% 85% at 50% 45%, #000 50%, transparent 100%));
}

.tiles--top {
  --tiles-mask: radial-gradient(ellipse 110% 80% at 50% 0%, #000 45%, transparent 100%);
}

/* Lignes qui s'allument autour de la souris (ordinateur) */
.tiles::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-hot) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, var(--grid-hot) 1.5px, transparent 1.5px);
  background-size: var(--tile) var(--tile);
  background-position: calc(50% + var(--tile) / 2) 0;
  -webkit-mask-image: radial-gradient(circle 220px at var(--mx, -999px) var(--my, -999px), #000, transparent 75%);
  mask-image: radial-gradient(circle 220px at var(--mx, -999px) var(--my, -999px), #000, transparent 75%);
  opacity: 0;
  transition: opacity 0.4s;
}

.has-tiles.is-lit > .tiles::after {
  opacity: 1;
}

.tile {
  position: absolute;
  left: calc(50% + var(--x, 0) * var(--tile) + 1px);
  top: calc(var(--y, 0) * var(--tile) + 1px);
  width: calc(var(--tile) - 1px);
  height: calc(var(--tile) - 1px);
  background-color: var(--tile-lit);
  box-shadow: inset 0 0 0 1px var(--grid-major);
}

/* Symboles bogolan peints dans certains carreaux */
.tile[class*="tile--"] {
  background-color: transparent;
  box-shadow: none;
}

.tile[class*="tile--"]::before {
  content: "";
  position: absolute;
  inset: 20%;
  background-color: var(--tile-symbol);
  opacity: 0.7;
  -webkit-mask: var(--symbol) center / contain no-repeat;
  mask: var(--symbol) center / contain no-repeat;
}

.tile--zigzag {
  --symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 15 L6 9 L10 15 L14 9 L18 15 L22 9' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}

.tile--dots {
  --symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='5' r='2.4'/%3E%3Ccircle cx='19' cy='5' r='2.4'/%3E%3Ccircle cx='12' cy='12' r='2.4'/%3E%3Ccircle cx='5' cy='19' r='2.4'/%3E%3Ccircle cx='19' cy='19' r='2.4'/%3E%3C/svg%3E");
}

.tile--cross {
  --symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v20M2 12h20' stroke='black' stroke-width='2.2'/%3E%3Crect x='8.5' y='8.5' width='7' height='7' transform='rotate(45 12 12)'/%3E%3C/svg%3E");
}

.tile--diamond {
  --symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2 L22 12 L12 22 L2 12 Z'/%3E%3Cpath d='M12 7.5 L16.5 12 L12 16.5 L7.5 12 Z'/%3E%3C/svg%3E");
}

/* Carreaux qui s'allument doucement */
.tile--glow {
  animation: tile-glow 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes tile-glow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* --- Sol en carrelage, en perspective 3D (hero) --- */
.hero__floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 46%;
  overflow: hidden;
  pointer-events: none;
  perspective: 520px;
  perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
}

.hero__floor-plane {
  position: absolute;
  top: 0;
  left: -60%;
  right: -60%;
  height: 260%;
  background-image:
    linear-gradient(to right, var(--floor-line) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, var(--floor-line) 1.5px, transparent 1.5px);
  background-size: calc(var(--tile) * 1.4) calc(var(--tile) * 1.4);
  background-position: 50% 0;
  transform-origin: 50% 0;
  transform: rotateX(64deg) translateY(calc(var(--tile) * -1.4));
  animation: floor-scroll 5s linear infinite;
}

@keyframes floor-scroll {
  to { transform: rotateX(64deg) translateY(0); }
}


/* ==========================================================================
   7. EN-TÊTE ET NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.site-header[data-scrolled] {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -18px rgba(40, 22, 10, 0.55);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-height: var(--header-h);
}

/* --- Logo : cube isométrique + nom --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--heading);
  text-decoration: none;
  white-space: nowrap;
}

.logo__mark {
  width: 2.125rem;
  height: 2.125rem;
  filter: drop-shadow(0 4px 4px rgba(60, 30, 10, 0.25));
  transition: transform 0.5s var(--ease);
}

.logo:hover .logo__mark {
  transform: rotate(-12deg) translateY(-2px);
}

.logo__accent {
  font-weight: 600;
  color: var(--brand-text);
}

/* --- Navigation --- */
.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.nav__link:hover {
  background-color: var(--bg-alt);
  color: var(--heading);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Bouton menu (3 traits → croix) */
.nav-toggle__bars {
  position: relative;
  width: 1.25rem;
  height: 0.875rem;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Icône du mode sombre : lune en clair, soleil en sombre */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Liens seulement dans le menu déroulant (sur grand écran, les boutons suffisent) */
@media (min-width: 1180px) {
  .nav__extra { display: none; }
}

/* Mobile et petits ordinateurs : menu déroulant sous l'en-tête */
@media (max-width: 1179.98px) {
  /* Sans JavaScript, le menu reste visible sur une ligne à part */
  .no-js .nav {
    order: 3;
    flex-basis: 100%;
    padding-bottom: 0.5rem;
  }

  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.25rem var(--gutter) 1.25rem;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .js .site-header[data-menu-open] .nav {
    display: block;
  }

  .js .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .js .nav__link {
    padding: 0.95rem 0.25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.0625rem;
    font-weight: 600;
  }

  .js .nav__link:hover {
    background-color: transparent;
    color: var(--brand-text);
  }
}

@media (min-width: 1180px) {
  .nav-toggle {
    display: none;
  }
}

/* Téléphone : « Mon espace client » est dans le menu, pas besoin de l'icône */
@media (max-width: 599.98px) {
  .header__account { display: none; }
}

/* Très petits écrans : le bouton WhatsApp n'affiche que l'icône */
@media (max-width: 419.98px) {
  .header__wa .btn__label {
    display: none;
  }

  .header__wa {
    width: 2.75rem;
    padding: 0;
  }
}


/* ==========================================================================
   8. HERO ET SCÈNE 3D
   ========================================================================== */

.hero {
  overflow: hidden;
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 5.5rem) clamp(3.5rem, 2rem + 6vw, 6.5rem);
}

.hero .tiles {
  --tiles-mask: radial-gradient(ellipse 95% 55% at 50% 72%, #000 30%, transparent 85%);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .hero .tiles {
    --tiles-mask: radial-gradient(ellipse 60% 85% at 74% 45%, #000 30%, transparent 85%);
  }
}

.hero__title {
  margin-top: 1.25rem;
}

.hero__text {
  max-width: 36rem;
  margin-top: 1.5rem;
}

.hero__actions {
  margin-top: 2rem;
}

/* Petites garanties sous les boutons */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__proof .icon {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0.15rem;
  border-radius: 50%;
  background: var(--c-ochre-soft);
  color: var(--c-terracotta-dark);
}

/* --- Scène 3D : téléphone incliné + éléments flottants --- */
.scene {
  --phone-w: 13.25rem;
  --scene-rx: 8deg;
  --scene-ry: -20deg;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 31rem;
  padding-block: 1rem 2.5rem;
  perspective: 1400px;
}

@media (min-width: 600px) {
  .scene { --phone-w: 14.5rem; min-height: 35rem; }
}

/* Ombre portée au sol */
.scene::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.5rem;
  width: 18rem;
  height: 3rem;
  margin-left: -9rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 30, 10, 0.28), transparent);
  z-index: -1;
}

.scene__inner {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--scene-rx)) rotateY(var(--scene-ry)) rotateZ(1.5deg);
  transition: transform 0.7s var(--ease);
}

/* Anneaux au sol (socle) */
.scene__ring {
  position: absolute;
  left: 50%;
  bottom: -9rem;
  width: 18rem;
  height: 18rem;
  margin-left: -9rem;
  border: 1.5px solid rgba(196, 138, 44, 0.45);
  border-radius: 50%;
  transform: rotateX(80deg);
}

.scene__ring--inner {
  bottom: -6rem;
  width: 12rem;
  height: 12rem;
  margin-left: -6rem;
  border-style: dashed;
  border-color: rgba(194, 86, 47, 0.45);
}

/* Le téléphone (épaisseur simulée par des ombres empilées) */
.phone {
  position: relative;
  width: var(--phone-w);
  height: calc(var(--phone-w) * 2.06);
  padding: 0.45rem;
  border-radius: calc(var(--phone-w) * 0.16);
  background: linear-gradient(150deg, #3d3128, #110d0a 55%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    1px 1px 0 #2d241c, 2px 2px 0 #2a2119, 3px 3px 0 #261e17,
    4px 4px 0 #221b14, 5px 5px 0 #1e1812, 6px 6px 0 #1a1410,
    7px 7px 0 #16110d, 8px 8px 0 #120e0b,
    34px 44px 60px -18px rgba(50, 25, 5, 0.5);
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--phone-w) * 0.13);
  background: #f7f0e4;
}

/* Caméra */
.phone__screen::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  z-index: 2;
  width: 3.25rem;
  height: 0.85rem;
  margin-left: -1.625rem;
  border-radius: 1rem;
  background: #000;
}

/* --- Mini application dans le téléphone (couleurs fixes) --- */
.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #17120e;
  font-size: 0.6875rem;
  line-height: 1.3;
}

.app__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem 0.35rem;
  background: #17120e;
  color: #f3eadb;
  font-size: 0.625rem;
  font-weight: 600;
}

.app__battery {
  position: relative;
  width: 1.1rem;
  height: 0.55rem;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.app__battery::after {
  content: "";
  position: absolute;
  inset: 1px 30% 1px 1px;
  border-radius: 1px;
  background: currentColor;
}

.app__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem 2.1rem;
  background-color: #17120e;
  background-image:
    linear-gradient(to right, rgba(243, 234, 219, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243, 234, 219, 0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  color: #fbf5ea;
}

.app__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app__sub {
  font-size: 0.625rem;
  color: #c2b29c;
}

.app__tag {
  padding: 0.2rem 0.45rem;
  border-radius: 99px;
  background: rgba(227, 179, 90, 0.2);
  color: #e3b35a;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app__total {
  margin: -1.6rem 0.7rem 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  background: #fffbf4;
  box-shadow: 0 3px 0 -1px #e2d0b3, 0 10px 18px -10px rgba(50, 25, 5, 0.45);
}

.app__label {
  display: block;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5a4a;
}

.app__total strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #9c4424;
}

.app__total strong small {
  font-size: 0.65rem;
  color: #6b5a4a;
}

.app__meta {
  display: block;
  font-size: 0.5625rem;
  color: #6b5a4a;
}

.app__list {
  display: grid;
  gap: 0.35rem;
  margin: 0.55rem 0.7rem 0;
  padding: 0;
  list-style: none;
}

.app__list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(23, 18, 14, 0.06);
  border-radius: 0.65rem;
  background: #fffbf4;
}

.app__avatar {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #f1dcae;
  color: #9c4424;
  font-size: 0.5rem;
  font-weight: 700;
}

.app__avatar--2 { background: #f4cdb8; color: #7f331a; }
.app__avatar--3 { background: #e8dccb; color: #4a3b2e; }
.app__avatar--4 { background: #d9efe0; color: #1c6b3a; }

.app__who {
  flex: 1;
  min-width: 0;
}

.app__who b {
  display: block;
  font-size: 0.6875rem;
}

.app__who small {
  display: block;
  font-size: 0.5625rem;
  color: #6b5a4a;
}

.app__amount {
  font-size: 0.6875rem;
  font-weight: 700;
}

.app__paid {
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
  background: #d9efe0;
  color: #1c6b3a;
  font-size: 0.5625rem;
  font-weight: 700;
}

.app__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: auto 0.7rem 0.8rem;
  padding: 0.6rem;
  border-radius: 99px;
  background: #25d366;
  color: #08200f;
  font-size: 0.6875rem;
  font-weight: 700;
  box-shadow: 0 3px 0 #129447;
}

.app__btn .icon {
  width: 1rem;
  height: 1rem;
}

/* --- Cartes flottantes autour du téléphone --- */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border: 1px solid rgba(23, 18, 14, 0.08);
  border-radius: 1rem;
  background: #fffbf4;
  color: #17120e;
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 4px 0 -1px #e2d0b3, 0 20px 30px -12px rgba(50, 25, 5, 0.4);
}

.float-card b {
  display: block;
  font-size: 0.8125rem;
}

.float-card small {
  display: block;
  font-size: 0.6875rem;
  color: #6b5a4a;
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  background: #f1dcae;
  color: #9c4424;
  box-shadow: 0 3px 0 #d6b26c;
}

.float-card__icon--wa {
  background: #25d366;
  color: #08200f;
  box-shadow: 0 3px 0 #129447;
}

/* Placées sur les coins du téléphone pour ne pas cacher l'application */
.float-card--a {
  top: -4%;
  left: -30%;
  transform: translateZ(70px);
}

.float-card--b {
  bottom: -9%;
  right: -30%;
  transform: translateZ(100px);
}

@media (min-width: 600px) {
  .float-card--a { left: -44%; }
  .float-card--b { right: -46%; }
}

/* Cubes décoratifs */
.scene__cube {
  position: absolute;
  filter: drop-shadow(0 10px 10px rgba(60, 30, 10, 0.3));
}

.scene__cube--1 {
  top: -6%;
  right: -34%;
  width: 4.5rem;
  height: 4.5rem;
  transform: translateZ(-60px);
}

.scene__cube--2 {
  bottom: 38%;
  left: -34%;
  width: 2.25rem;
  height: 2.25rem;
  transform: translateZ(40px);
}

.scene__cube--3 {
  top: 1%;
  left: -18%;
  width: 1.5rem;
  height: 1.5rem;
  transform: translateZ(-30px);
}

/* Macaron tournant « démo gratuite » */
.seal {
  position: absolute;
  bottom: 6%;
  left: -18%;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  transform: translateZ(120px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 5px 0 -1px #000,
    0 18px 30px -12px rgba(0, 0, 0, 0.55);
}

.seal__text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: seal-spin 22s linear infinite;
}

.seal__text text {
  fill: var(--c-ochre-light);
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 700;
}

.seal__core {
  width: 2.1rem;
  height: 2.1rem;
}

@keyframes seal-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 600px) {
  .seal { left: -38%; width: 6.75rem; height: 6.75rem; }
  .seal__core { width: 2.5rem; height: 2.5rem; }
}

/* Flottement doux (propriété « translate », indépendante de la 3D) */
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.float-card--a { animation: float 6s ease-in-out infinite; }
.float-card--b { animation: float 7s ease-in-out -2.5s infinite; }
.scene__cube--1 { animation: float 8s ease-in-out -1s infinite; }
.scene__cube--2 { animation: float 6.5s ease-in-out -3s infinite; }
.seal { animation: float 9s ease-in-out -4s infinite; }


/* ==========================================================================
   9. LE PROBLÈME
   ========================================================================== */

/* Grand numéro en contour dans le coin des cartes */
.card__num {
  position: absolute;
  top: 1rem;
  right: 1.35rem;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.25px var(--border-strong);
}


/* ==========================================================================
   10. DÉMOS
   ========================================================================== */

/* --- Section : halos lumineux qui dérivent en fond --- */
.demos-section {
  overflow: hidden;
}

.demos-section__glow {
  position: absolute;
  z-index: -1;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.22;
}

.demos-section__glow--1 {
  top: -25vmax;
  left: -20vmax;
  background: radial-gradient(closest-side, var(--c-terracotta), transparent);
  animation: drift-a 24s ease-in-out infinite alternate;
}

.demos-section__glow--2 {
  bottom: -25vmax;
  right: -20vmax;
  background: radial-gradient(closest-side, var(--c-ochre), transparent);
  animation: drift-b 28s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate(14vmax, 10vmax) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-12vmax, -8vmax) scale(1.12); } }

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s, transform 0.15s;
}

.sound-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.sound-toggle:active { transform: translateY(2px); box-shadow: none; }
.sound-toggle .icon { color: var(--c-ochre-light); }
.sound-toggle[aria-pressed="true"] .icon-sound-off,
.sound-toggle[aria-pressed="false"] .icon-sound-on { display: none; }

/* --- Structure commune des démos --- */
.demos {
  display: grid;
  gap: clamp(1.75rem, 1.25rem + 2vw, 3rem);
}

.demo {
  display: flex;
  flex-direction: column;
}

.demo__panel {
  flex: 1;
  padding: clamp(1.15rem, 0.9rem + 1vw, 2rem);
  border: 1px solid var(--border);
  border-radius: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
    rgba(38, 31, 25, 0.82);
  box-shadow: 0 6px 0 -1px var(--card-edge), var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.demo__head {
  margin-bottom: 1.5rem;
}

.demo__head h3 {
  margin-top: 0.7rem;
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem);
}

.demo__head > p:last-child {
  max-width: 42rem;
  margin-top: 0.4rem;
  color: var(--text-muted);
}

.demo__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(227, 179, 90, 0.12);
  color: var(--c-ochre-light);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Point qui « respire » : la démo est vivante */
.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c-ochre-light);
  animation: live 2s ease-out infinite;
}

@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(227, 179, 90, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(227, 179, 90, 0); }
}

.demo__body {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 980px) {
  .demo__body {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    align-items: center;
    gap: 2.5rem;
  }

  .demo--reverse .demo__body {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }

  .demo--reverse .demo__stage {
    order: 2;
  }
}

.demo__stage {
  position: relative;
  min-width: 0;
}

.demo__controls {
  display: grid;
  gap: 1.15rem;
  align-content: start;
}

.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--heading);
}

.field__hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Bouton en verre posé sur une scène (plein écran…) */
.stage-btn {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.45);
  color: #fbf5ea;
  font-size: var(--fs-xs);
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0.85;
  transition: opacity 0.2s, background-color 0.2s;
}

.stage-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.65);
}

.stage-btn .icon {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 599.98px) {
  .stage-btn { padding: 0.45rem; }
  .stage-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* Bouton « effet » des démos (ocre lumineux, distinct du vert WhatsApp) */
.btn--glow {
  background: linear-gradient(135deg, #f2c86e, var(--c-terracotta));
  color: #1a0d06;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 0 #7f331a,
    0 14px 30px -10px rgba(227, 179, 90, 0.7);
}

.btn--glow:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn--glow:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 0 #7f331a;
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
  filter: grayscale(0.3);
}

/* Choix de style avec aperçu */
.skins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.1rem, 1fr));
  gap: 0.5rem;
}

.skin-opt {
  position: relative;
  display: block;
  cursor: pointer;
}

.skin-opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.skin-opt__card {
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem 0.35rem 0.45rem;
  border: 1.5px solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface-2);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
  pointer-events: none;
}

.skin-opt__thumb {
  position: relative;
  display: grid;
  place-items: center;
  height: 2.6rem;
  overflow: hidden;
  border-radius: 0.6rem;
  font-family: var(--font-led);
  font-size: 0.72rem;
  font-weight: 900;
}

.skin-opt__name {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skin-opt:hover .skin-opt__card {
  border-color: var(--border-strong);
}

.skin-opt input:checked + .skin-opt__card {
  border-color: var(--c-ochre-light);
  box-shadow: 0 0 0 3px rgba(227, 179, 90, 0.25), 0 4px 0 rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.skin-opt input:checked + .skin-opt__card .skin-opt__name {
  color: var(--heading);
}

.skin-opt input:focus-visible + .skin-opt__card {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Miniatures */
.thumb--elegant {
  background:
    radial-gradient(circle, #120e0b 0 34%, transparent 36%),
    radial-gradient(circle, #e3b35a 0 41%, transparent 43%),
    radial-gradient(circle at 50% 30%, #3a2c22, #0b0806);
}

.thumb--bogolan,
.thumb--cd-bogolan {
  background:
    radial-gradient(circle, #f7efe1 0 26%, transparent 28%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M0 5 3 2 6 5 9 2 12 5' fill='none' stroke='%23c2562f' stroke-width='1.2'/%3E%3Ccircle cx='3' cy='9.5' r='1' fill='%23c48a2c'/%3E%3Ccircle cx='9' cy='9.5' r='1' fill='%23c48a2c'/%3E%3C/svg%3E"),
    #efe2c9;
}

.thumb--cd-bogolan {
  background:
    radial-gradient(circle, #17120e 0 30%, transparent 32%),
    radial-gradient(circle, #e3b35a 0 37%, transparent 39%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M0 5 3 2 6 5 9 2 12 5' fill='none' stroke='%23c2562f' stroke-width='1.2'/%3E%3C/svg%3E"),
    #2a1810;
}

.thumb--neon {
  background:
    repeating-linear-gradient(rgba(0, 0, 0, 0.25) 0 2px, transparent 2px 4px),
    linear-gradient(#1a0536, #0d0221);
  color: #fff;
  text-shadow: 0 0 4px #ff2ef2, 0 0 10px #ff2ef2;
}

.thumb--led,
.thumb--stade {
  background:
    radial-gradient(circle, transparent 0.6px, rgba(0, 0, 0, 0.6) 1.1px) 0 0 / 3px 3px,
    #070707;
  color: #ffcf3a;
  text-shadow: 0 0 4px #ff9d00, 0 0 10px rgba(255, 140, 0, 0.6);
}

.thumb--stade {
  background:
    radial-gradient(circle, transparent 0.6px, rgba(0, 0, 0, 0.55) 1.1px) 0 0 / 3px 3px,
    linear-gradient(#0b1a3a 55%, #0f5a2c 55%);
}

.thumb--mariage {
  background:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 80% 70%, #fff, transparent),
    radial-gradient(circle, transparent 0 30%, #f7d08a 32% 38%, transparent 40%),
    radial-gradient(120% 100% at 50% 0%, #8a2a5a, #22081a);
}

.thumb--cd-neon {
  background:
    radial-gradient(circle at 50% 70%, #ffd36e 0 18%, #ff2ef2 30%, transparent 34%),
    linear-gradient(to right, rgba(0, 240, 255, 0.5) 1px, transparent 1px) 0 100% / 8px 40% no-repeat,
    linear-gradient(#0d0221 60%, #2a0845);
}

/* Téléversement du logo */
.upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.upload__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.6rem 1rem;
  border: 1.5px dashed var(--border-strong);
  border-radius: 0.85rem;
  background: var(--surface-2);
  color: var(--heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload__btn:hover {
  border-color: var(--c-ochre-light);
}

.upload__btn:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.upload__btn .icon {
  color: var(--c-ochre-light);
}

.upload__remove {
  padding: 0.5rem 0.75rem;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: underline;
}

/* Montants rapides */
.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip-btn {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, transform 0.15s;
}

.chip-btn:hover { border-color: var(--c-ochre-light); }
.chip-btn:active { transform: translateY(2px); box-shadow: none; }

.demo__tips {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px dashed var(--border-strong);
  list-style: none;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.demo__tips li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.demo__tips .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2em;
  color: var(--c-ochre-light);
}

/* --- Effets partagés --- */

/* Chiffres qui roulent (rebond + légère rotation) */
.roll {
  display: inline-flex;
  line-height: 1;
  white-space: nowrap;
}

.roll__d {
  position: relative;
  display: inline-block;
  width: var(--roll-w, 0.62em);
  height: 1.15em;
  clip-path: inset(-0.15em -0.6em -0.4em); /* laisse dépasser le relief et la lueur */
}

.roll__d > span {
  position: absolute;
  inset: 0;
  display: block;
  line-height: 1.15em;
  text-align: center;
}

.roll__d > .is-in {
  animation: roll-in 0.55s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.roll__d > .is-out {
  animation: roll-out 0.4s cubic-bezier(0.5, 0, 0.7, 0.4) forwards;
}

@keyframes roll-in {
  0% { transform: translateY(-100%) rotate(-12deg); opacity: 0; }
  60% { transform: translateY(6%) scale(1.08, 0.9); opacity: 1; }
  80% { transform: translateY(-3%) scale(0.97, 1.04); }
  100% { transform: none; }
}

@keyframes roll-out {
  to { transform: translateY(100%) rotate(10deg); opacity: 0; }
}

.roll__sep {
  display: inline-block;
  width: calc(var(--roll-w, 0.62em) * 0.45);
  line-height: 1.15em;
  text-align: center;
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  50% { opacity: 0.25; }
}

/* Onde lumineuse */
.fx-ripple {
  position: absolute;
  inset: 0;
  border: 2px solid var(--ripple, var(--c-ochre-light));
  border-radius: 50%;
  pointer-events: none;
  animation: fx-ripple 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes fx-ripple {
  0% { transform: scale(0.92); opacity: var(--ro, 0.2); }
  100% { transform: scale(1.2); opacity: 0; }
}

.fx-confetti {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fx-shake {
  animation: fx-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes fx-shake {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-7px, 3px); }
  40%, 60% { transform: translate(7px, -3px); }
}


/* ==========================================================================
   10a. DÉMO HORLOGE — en 3D, dans l'esprit « Nuit étoilée »
   ========================================================================== */

/* --- Ciel étoilé (partagé avec le compte à rebours) --- */
.sky,
.blob,
.stars {
  position: absolute;
  display: none;
  pointer-events: none;
}

.sky {
  inset: 0;
  background: radial-gradient(120% 90% at 50% 110%, hsl(var(--h) 70% 18%), var(--night-bg, #0b0e1a) 70%);
}

.blob {
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.5;
  background: radial-gradient(closest-side, var(--blob-c), transparent);
}

.blob--1 {
  --blob-c: hsl(var(--h) 95% 66%);
  top: -35%;
  left: -25%;
  animation: drift-a 22s ease-in-out infinite alternate;
}

.blob--2 {
  --blob-c: hsl(calc(var(--h) + 40) 90% 62%);
  bottom: -40%;
  right: -25%;
  animation: drift-b 26s ease-in-out infinite alternate;
}

.blob--3 {
  --blob-c: hsl(calc(var(--h) - 40) 90% 60%);
  top: 30%;
  left: 35%;
  width: 50%;
  opacity: 0.28;
  animation: drift-a 30s ease-in-out infinite alternate-reverse;
}

.stars {
  inset: 0;
  opacity: 0.65;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 72% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 40%, #fff, transparent),
    radial-gradient(1px 1px at 30% 70%, #fff, transparent),
    radial-gradient(1px 1px at 55% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 20% 88%, #fff, transparent),
    radial-gradient(1px 1px at 90% 80%, #fff, transparent),
    radial-gradient(1px 1px at 45% 92%, #fff, transparent),
    radial-gradient(1px 1px at 6% 52%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 64% 58%, #fff, transparent),
    radial-gradient(1px 1px at 38% 8%, #fff, transparent),
    radial-gradient(1px 1px at 95% 6%, #fff, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}

/* --- La scène de l'horloge --- */
.clock3d {
  --h: 225;
  --acc: hsl(var(--h) 95% 66%);
  --acc2: hsl(calc(var(--h) + 40) 90% 62%);
  --night-bg: #0b0e1a;
  --rx: 5deg;
  --ry: -7deg;
  --s: 16rem;
  --s: min(78cqw, 23rem);
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 27rem;
  padding: 2rem 1rem 1.5rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--night-bg);
  color: #f4f6ff;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 7px 0 #050403,
    0 34px 60px -28px rgba(0, 0, 0, 0.85);
}

@media (min-width: 600px) {
  .clock3d {
    --s: min(64cqw, 23rem);
    min-height: 35rem;
  }
}

@supports not (width: 1cqw) {
  .clock3d { --s: 16rem; }
}

.clock3d__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.clock3d__bg > span {
  position: absolute;
  display: none;
}

/* Nom de la boutique, en lettres « bulles » */
.clock3d__name {
  max-width: 18ch;
  font-family: var(--font-bubble);
  font-size: clamp(1.3rem, 6.5cqw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 0.06em 0 rgba(0, 0, 0, 0.45), 0 2px 30px rgba(0, 0, 0, 0.6);
  overflow-wrap: anywhere;
}

/* Profondeur : la scène flotte et s'incline vers la souris */
.clock3d__scene {
  display: grid;
  place-items: center;
  width: 100%;
  padding-block: 0.5rem 1.5rem;
  perspective: 1100px;
}

.clock3d__float {
  transform-style: preserve-3d;
  animation: float3d 9s ease-in-out infinite;
}

@keyframes float3d {
  0%, 100% { transform: translateY(0) rotateY(-3deg); }
  50% { transform: translateY(-6px) rotateY(3deg); }
}

.clock3d__obj {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease);
}

.clock3d__obj > .ring3d,
.clock3d__obj > .wall3d {
  grid-area: 1 / 1;
}

/* Ombre posée « au sol » */
.clock3d__shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -18%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
  transform: translateZ(-90px);
}

/* --- Anneau lumineux, en couches 3D --- */
.ring3d {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.ring3d__disc {
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 55%, rgba(0, 0, 0, 0.25));
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35), 0 0 60px hsl(var(--h) 90% 60% / 0.18);
  transform: translateZ(-28px);
}

.ring3d__echo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: translateZ(-14px);
}

.ring3d__echo circle {
  fill: none;
  stroke: var(--acc2);
  stroke-width: 1.2;
  opacity: 0.35;
}

.ring3d__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.ring3d__stop1 { stop-color: var(--acc); }
.ring3d__stop2 { stop-color: var(--acc2); }

.ring3d__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2.2;
}

.ring3d__prog {
  fill: none;
  stroke: url(#clock-grad);
  stroke-width: 2.8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px var(--acc));
}

.ring3d.flash .ring3d__prog {
  animation: ring-flash 0.9s ease-out;
}

@keyframes ring-flash {
  0% { stroke-width: 6; filter: drop-shadow(0 0 14px var(--acc)); }
  100% { stroke-width: 2.8; }
}

.ring3d__dot {
  fill: #fff;
  filter: drop-shadow(0 0 4px var(--acc)) drop-shadow(0 0 8px var(--acc));
}

.ring3d__ticks line {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 0.35;
}

.ring3d__ticks line.big {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 0.6;
}

/* Les chiffres flottent devant l'anneau */
.ring3d__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--s) * 0.018);
  transform: translateZ(48px);
}

.ring3d__logo {
  width: calc(var(--s) * 0.16);
  height: calc(var(--s) * 0.16);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--acc), 0 8px 18px rgba(0, 0, 0, 0.5);
}

/* Chiffres « bulles » en relief coloré, comme dans le minuteur */
.ring3d__time {
  --roll-w: 0.6em;
  display: flex;
  align-items: flex-start;
  font-family: var(--font-bubble);
  font-size: calc(var(--s) * 0.25);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0.045em 0 hsl(var(--h) 85% 62%),
    0 0.09em 0 hsl(var(--h) 70% 38%),
    0 0.13em 0.22em rgba(0, 0, 0, 0.45);
}

.ring3d__sec {
  margin-top: 0.1em;
  margin-left: 0.12em;
  font-size: 0.36em;
}

.ring3d__date {
  font-size: calc(var(--s) * 0.042 + 2px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 246, 255, 0.68);
}

.ring3d__greet {
  font-family: var(--font-bubble);
  font-size: calc(var(--s) * 0.05 + 2px);
  font-weight: 500;
  color: var(--acc);
}

/* --- Horloge murale à aiguilles, en relief (style « Aiguilles 3D ») --- */
.wall3d {
  position: relative;
  display: none;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Le cadre doré : l'épaisseur vient des ombres empilées */
.wall3d__rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, hsl(var(--h) 80% 80%), hsl(var(--h) 70% 38%), hsl(var(--h) 85% 72%), hsl(var(--h) 60% 28%), hsl(var(--h) 80% 80%));
  box-shadow:
    0 2px 0 hsl(var(--h) 55% 30%),
    0 4px 0 hsl(var(--h) 55% 26%),
    0 6px 0 hsl(var(--h) 55% 22%),
    0 8px 0 hsl(var(--h) 55% 18%),
    0 10px 0 hsl(var(--h) 55% 14%),
    0 30px 50px -10px rgba(0, 0, 0, 0.7),
    0 0 60px hsl(var(--h) 90% 60% / 0.35);
}

.wall3d__dial,
.wall3d__hand,
.wall3d__glass {
  position: absolute;
  inset: 5.5%;
  width: 89%;
  height: 89%;
  border-radius: 50%;
}

.wall3d__dial {
  box-shadow: inset 0 6px 18px rgba(0, 0, 0, 0.7);
  transform: translateZ(2px);
}

.wall3d__stars circle {
  fill: #fff;
  opacity: 0.7;
}

.wall3d__tick {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.wall3d__marker {
  fill: #fff;
}

.wall3d__num {
  fill: #fff;
  font-family: var(--font-bubble);
  font-size: 18px;
  font-weight: 700;
}

.wall3d__num--accent {
  fill: var(--acc);
}

.wall3d__name {
  fill: #fff;
  font-family: var(--font-bubble);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wall3d__hand {
  overflow: visible;
  pointer-events: none;
}

.wall3d__hand line {
  stroke-linecap: round;
}

/* Chaque aiguille est à une hauteur différente : vraie profondeur, vraie ombre */
.wall3d__hand--hour {
  transform: translateZ(6px);
  filter: drop-shadow(3px 6px 3px rgba(0, 0, 0, 0.5));
}

.wall3d__hand--hour line {
  stroke: #fff;
  stroke-width: 7;
}

.wall3d__hand--min {
  transform: translateZ(9px);
  filter: drop-shadow(4px 8px 3px rgba(0, 0, 0, 0.45));
}

.wall3d__hand--min line {
  stroke: #fff;
  stroke-width: 4.5;
}

.wall3d__hand--sec {
  transform: translateZ(12px);
  filter: drop-shadow(5px 10px 3px rgba(0, 0, 0, 0.4));
}

.wall3d__hand--sec line {
  stroke: var(--acc);
  stroke-width: 1.8;
}

.wall3d__hand--sec g circle {
  fill: var(--acc);
}

.wall3d__cap {
  fill: #fff;
  stroke: var(--acc);
  stroke-width: 2;
}

/* Reflet du verre */
.wall3d__glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 38%, transparent 62%, rgba(255, 255, 255, 0.06));
  transform: translateZ(18px);
  pointer-events: none;
}

/* --- Message défilant (pastille en verre) --- */
.ticker3d {
  position: relative;
  z-index: 1;
  width: min(92%, 34rem);
  overflow: hidden;
  padding: 0.6rem 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 14, 28, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #f4f6ff;
  font-family: var(--font-bubble);
  font-size: clamp(0.85rem, 3cqw, 1.15rem);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 0 0 1px hsl(var(--h) 90% 60% / 0.15), 0 10px 30px -10px hsl(var(--h) 90% 60% / 0.5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker3d[hidden] {
  display: none !important;
}

.ticker3d__track {
  display: inline-flex;
  animation: ticker var(--ticker-dur, 16s) linear infinite;
}

.ticker3d__track > span {
  flex-shrink: 0;
  padding-right: 5em;
}

.ticker3d__track > span::before {
  content: "★";
  margin-right: 0.6em;
  color: var(--acc);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.clock3d__full {
  top: 1rem;
  right: 1rem;
}

/* Plein écran (écran de boutique) : l'horloge reste bien de face, sans bouger */
.clock3d:fullscreen {
  --s: min(60vmin, 40rem);
  --rx: 0deg !important;
  --ry: 0deg !important;
  border-radius: 0;
}

.clock3d:fullscreen .clock3d__float {
  animation: none;
}

.clock3d:fullscreen .clock3d__name {
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
}

.clock3d:fullscreen .ticker3d {
  font-size: clamp(1rem, 2.2vw, 1.6rem);
}

/* --- Les 4 styles --- */
.clock3d[data-skin="nuit"] .sky,
.clock3d[data-skin="nuit"] .blob,
.clock3d[data-skin="nuit"] .stars,
.clock3d[data-skin="classic"] .sky,
.clock3d[data-skin="classic"] .blob,
.clock3d[data-skin="classic"] .stars {
  display: block;
}

.clock3d[data-skin="classic"] .ring3d { display: none; }
.clock3d[data-skin="classic"] .wall3d { display: block; }

/* Bogolan : ciel chaud et motifs (dégradé ocre → terre cuite) */
.clock3d[data-skin="bogolan"] {
  --night-bg: #140c07;
  --acc2: hsl(calc(var(--h) - 25) 80% 55%);
}

.clock3d[data-skin="bogolan"] .sky {
  background: radial-gradient(120% 90% at 50% 110%, hsl(calc(var(--h) - 20) 65% 17%), var(--night-bg) 70%);
}

.clock3d[data-skin="bogolan"] .blob--2 {
  --blob-c: hsl(calc(var(--h) - 25) 85% 52%);
}

.clock3d[data-skin="bogolan"] .ring3d__echo circle {
  stroke: var(--acc2);
}

.clock3d[data-skin="bogolan"] .sky,
.clock3d[data-skin="bogolan"] .blob--1,
.clock3d[data-skin="bogolan"] .blob--2,
.clock3d[data-skin="bogolan"] .clock3d__pattern {
  display: block;
}

.clock3d__pattern {
  inset: 0;
  background-color: var(--acc);
  opacity: 0.2;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M0 14 L8 6 L16 14 L24 6 L32 14 L40 6 L48 14 L56 6 L64 14' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='8' cy='28' r='2.2'/%3E%3Ccircle cx='24' cy='28' r='2.2'/%3E%3Ccircle cx='40' cy='28' r='2.2'/%3E%3Ccircle cx='56' cy='28' r='2.2'/%3E%3Cpath d='M16 41 V55 M9 48 H23 M48 41 V55 M41 48 H55' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 56px 56px repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M0 14 L8 6 L16 14 L24 6 L32 14 L40 6 L48 14 L56 6 L64 14' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='8' cy='28' r='2.2'/%3E%3Ccircle cx='24' cy='28' r='2.2'/%3E%3Ccircle cx='40' cy='28' r='2.2'/%3E%3Ccircle cx='56' cy='28' r='2.2'/%3E%3Cpath d='M16 41 V55 M9 48 H23 M48 41 V55 M41 48 H55' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 56px 56px repeat;
}

.clock3d[data-skin="bogolan"] .ring3d__time {
  color: #fff3df;
}

/* Néon : soleil rétro, sol en grille, lignes d'écran */
.clock3d[data-skin="neon"] {
  --night-bg: #0d0221;
}

.clock3d[data-skin="neon"] .clock3d__sun,
.clock3d[data-skin="neon"] .clock3d__floor,
.clock3d[data-skin="neon"] .clock3d__scan {
  display: block;
}

.clock3d__sun {
  top: 10%;
  left: 50%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(#ffd36e, var(--acc) 70%);
  opacity: 0.3;
  transform: translateX(-50%);
  -webkit-mask: repeating-linear-gradient(#000 0 10px, transparent 10px 15px);
  mask: repeating-linear-gradient(#000 0 10px, transparent 10px 15px);
}

.clock3d__floor {
  left: -50%;
  right: -50%;
  bottom: 0;
  height: 42%;
  background-image:
    linear-gradient(to right, var(--acc2) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, var(--acc2) 1.5px, transparent 1.5px);
  background-size: 44px 44px;
  transform: perspective(260px) rotateX(72deg);
  transform-origin: 50% 100%;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(transparent, #000 60%);
  mask-image: linear-gradient(transparent, #000 60%);
  animation: cd-floor 1.4s linear infinite;
}

.clock3d__scan {
  inset: 0;
  background: repeating-linear-gradient(rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 4px);
}

.clock3d[data-skin="neon"] .ring3d__time {
  --roll-w: 0.8em;
  font-family: var(--font-led);
  font-size: calc(var(--s) * 0.19);
  font-weight: 900;
  text-shadow: 0 0 0.05em #fff, 0 0 0.2em var(--acc), 0 0 0.45em var(--acc);
}

.clock3d[data-skin="neon"] .clock3d__name {
  text-shadow: 0 0 14px var(--acc2), 0 0 2px #fff;
}

/* Miniatures des styles */
.thumb--nuit {
  background:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 75% 20%, #fff, transparent),
    radial-gradient(1px 1px at 60% 82%, #fff, transparent),
    radial-gradient(circle at 20% 15%, rgba(91, 140, 255, 0.75), transparent 50%),
    radial-gradient(circle at 85% 95%, rgba(176, 107, 255, 0.65), transparent 50%),
    #0b0e1a;
  color: #fff;
  font-family: var(--font-bubble);
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow: 0 1px 0 #5b8cff, 0 2px 0 #2f4fa8;
}

.thumb--classic {
  background:
    radial-gradient(circle, #1b2138 0 30%, #f2cf7f 32% 38%, transparent 40%),
    radial-gradient(circle at 30% 20%, rgba(91, 140, 255, 0.5), transparent 50%),
    #0b0e1a;
}

.swatch__dot--rainbow {
  background: conic-gradient(#ff5f5f, #ffd36e, #6be0b4, #5b8cff, #c58bff, #ff5fa2, #ff5f5f);
}


/* ==========================================================================
   10b. DÉMO CARNET DE CRÉDIT — l'application dans un téléphone
   ========================================================================== */

.demo__stage--phone {
  display: grid;
  place-items: center;
  padding-block: 0.5rem 1rem;
  perspective: 1400px;
}

.phone--live {
  --phone-w: 17.5rem;
  max-width: 100%;
  height: calc(var(--phone-w) * 2);
}

@media (min-width: 980px) {
  .phone--live {
    --phone-w: 19.5rem;
    transform: rotateY(-12deg) rotateX(4deg);
    transition: transform 0.6s var(--ease);
  }

  .phone--live:hover {
    transform: rotateY(-4deg) rotateX(2deg);
  }
}

.app--live {
  position: relative;
}

.app__summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: -1.6rem 0.7rem 0;
  padding: 0.65rem 0.8rem;
  border-radius: 0.9rem;
  background: #fffbf4;
  box-shadow: 0 3px 0 -1px #e2d0b3, 0 10px 18px -10px rgba(50, 25, 5, 0.45);
}

.donut {
  position: relative;
  flex-shrink: 0;
  width: 3.3rem;
  height: 3.3rem;
}

.donut svg {
  width: 100%;
  height: 100%;
}

.donut__track {
  fill: none;
  stroke: #efe3cf;
  stroke-width: 5;
}

.donut__value {
  fill: none;
  stroke: #1f9d55;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.7s var(--ease);
}

.donut__pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #1c6b3a;
  font-size: 0.6rem;
  font-weight: 800;
}

.app__sum-text {
  display: grid;
  min-width: 0;
}

.app__big {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #9c4424;
  font-variant-numeric: tabular-nums;
}

.app__big small {
  font-size: 0.6rem;
  color: #6b5a4a;
}

.app__list--live {
  flex: 1;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 3.5rem;
  scrollbar-width: none;
}

.live-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(23, 18, 14, 0.06);
  border-radius: 0.7rem;
  background: #fffbf4;
  transition: opacity 0.3s, background-color 0.3s;
}

.live-row.is-new {
  animation: row-in 0.5s var(--ease);
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); background-color: #fff3d6; }
}

.live-row.is-paid {
  opacity: 0.55;
}

.live-row__who {
  min-width: 0;
}

.live-row__who b {
  display: block;
  overflow: hidden;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-row__who small {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.56rem;
  color: #6b5a4a;
}

.badge-late {
  padding: 0.05rem 0.35rem;
  border-radius: 99px;
  background: #fde2dc;
  color: #b4271b;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-row__side {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
}

.live-row__amount {
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.live-row.is-paid .live-row__amount {
  text-decoration: line-through;
}

.live-row__actions {
  display: flex;
  gap: 0.25rem;
}

/* Petits boutons dans l'application */
.app-btn {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid rgba(23, 18, 14, 0.12);
  border-radius: 0.55rem;
  background: #fff;
  color: #6b5a4a;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(23, 18, 14, 0.12);
  transition: transform 0.15s, background-color 0.2s, color 0.2s;
}

.app-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.app-btn .icon {
  width: 0.85rem;
  height: 0.85rem;
}

.app-btn--pay[aria-pressed="true"] {
  border-color: #1f9d55;
  background: #1f9d55;
  color: #fff;
}

.app-btn--wa {
  border-color: transparent;
  background: #25d366;
  color: #08200f;
  box-shadow: 0 2px 0 #129447;
}

.app-btn:focus-visible {
  outline: 2px solid #17120e;
  outline-offset: 1px;
}

.app__empty {
  padding: 1rem 0.5rem;
  border: 1.5px dashed rgba(23, 18, 14, 0.2);
  border-radius: 0.7rem;
  color: #6b5a4a;
  font-size: 0.65rem;
  text-align: center;
}

/* Petite notification dans l'application */
.app__toast {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.8rem;
  z-index: 3;
  padding: 0.6rem 0.8rem;
  border-radius: 0.8rem;
  background: #17120e;
  color: #fbf5ea;
  font-size: 0.66rem;
  font-weight: 600;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(140%);
  transition: transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1), opacity 0.3s;
}

.app__toast.is-show {
  opacity: 1;
  transform: none;
}


/* ==========================================================================
   10c. DÉMO COMPTE À REBOURS — une scène par style
   ========================================================================== */

.cd {
  --cd-a: #f7d08a;
  --cd-b: #ff7aa8;
  --cd-fg: #fff;
  --cd-soft: rgba(255, 240, 245, 0.72);
  --cd-digit-font: var(--font-display);
  --cd-digit-weight: 800;
  --roll-w: 0.62em;
  --ripple: var(--cd-a);
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: grid;
  place-items: center;
  min-height: 27rem;
  padding: 2rem 1rem 2.25rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--cd-bg, #0e0b08);
  color: var(--cd-fg);
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 7px 0 #050403,
    0 34px 60px -28px rgba(0, 0, 0, 0.85);
  transition: background 0.5s;
}

@media (min-width: 600px) {
  .cd { min-height: 31rem; }
}

.cd__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.cd__bg > span {
  position: absolute;
  display: none;
}

.cd__content {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: 100%;
}

.cd__title {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 2vw, 2.1rem);
  font-size: clamp(1.3rem, 5.5cqw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 0.06em 0 rgba(0, 0, 0, 0.45), 0 2px 24px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.cd__ring {
  --s: 17rem;
  --s: min(80cqw, 22rem);
  position: relative;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
}

.cd__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.cd__stop1 { stop-color: var(--cd-a); }
.cd__stop2 { stop-color: var(--cd-b); }

.cd__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2.2;
}

.cd__prog {
  fill: none;
  stroke: url(#cd-grad);
  stroke-width: 2.8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px var(--cd-a));
}

.cd__dot {
  fill: #fff;
  filter: drop-shadow(0 0 4px var(--cd-a)) drop-shadow(0 0 8px var(--cd-a));
}

.cd__ticks line {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 0.35;
}

.cd__ticks line.big {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 0.6;
}

.cd__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--s) * 0.012);
}

.cd__days {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

/* Chiffres en relief (ombres empilées), comme sur une affiche */
.cd__daysnum {
  font-family: var(--cd-digit-font);
  font-size: calc(var(--s) * 0.27);
  font-weight: var(--cd-digit-weight);
  color: var(--cd-fg);
  text-shadow:
    0 0.045em 0 var(--cd-a),
    0 0.09em 0 var(--cd-b),
    0 0.13em 0.22em rgba(0, 0, 0, 0.45);
}

.cd__dayslabel {
  font-size: calc(var(--s) * 0.055);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cd-soft);
}

.cd__hms {
  font-family: var(--cd-digit-font);
  font-size: calc(var(--s) * 0.11);
  font-weight: var(--cd-digit-weight);
  color: var(--cd-fg);
}

.cd__at {
  margin-top: 0.35rem;
  font-size: calc(var(--s) * 0.04 + 2px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cd-soft);
}

.cd__done {
  display: none;
  max-width: 92%;
  margin: 0;
  padding: 0.1em;
  font-family: var(--font-display);
  font-size: calc(var(--s) * 0.12);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, #ffd36e, #ff8a5b, #ff5fa2, #8ab4ff, #ffd36e);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 2s linear infinite, wobble 0.5s ease-in-out infinite alternate;
}

@keyframes shine { to { background-position: 300% 0; } }
@keyframes wobble {
  from { transform: rotate(-4deg) scale(1); }
  to { transform: rotate(4deg) scale(1.08); }
}

.cd__full {
  top: 1rem;
  right: 1rem;
}

/* Dernières secondes : les chiffres battent comme un cœur */
.cd.is-final .cd__inner {
  animation: beat 1s ease-out infinite;
}

@keyframes beat {
  0% { transform: scale(1.12); }
  35% { transform: scale(1); }
}

.cd.is-done .cd__days,
.cd.is-done .cd__hms,
.cd.is-done .cd__at {
  display: none;
}

.cd.is-done .cd__done {
  display: block;
}

.cd:fullscreen {
  border-radius: 0;
}

.cd:fullscreen .cd__ring {
  --s: min(70vmin, 40rem);
}

.cd:fullscreen .cd__title {
  font-size: clamp(1.6rem, 4vw, 3.2rem);
}

/* Halos (communs à plusieurs styles) */
.cd__glow {
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.4;
}

.cd__glow--1 {
  top: -30%;
  left: -25%;
  background: radial-gradient(closest-side, var(--cd-a), transparent);
  animation: drift-a 16s ease-in-out infinite alternate;
}

.cd__glow--2 {
  bottom: -35%;
  right: -25%;
  background: radial-gradient(closest-side, var(--cd-b), transparent);
  animation: drift-b 19s ease-in-out infinite alternate;
}

/* Style « Mariage » : prune et or, étincelles */
.cd[data-skin="mariage"] {
  --cd-bg: radial-gradient(110% 90% at 50% 0%, #6b1d45, #22081a 70%);
  --cd-a: #f7d08a;
  --cd-b: #ff7aa8;
}

.cd[data-skin="mariage"] .cd__glow,
.cd[data-skin="mariage"] .cd__sparkles,
.cd[data-skin="bogolan"] .cd__glow,
.cd[data-skin="bogolan"] .cd__pattern,
.cd[data-skin="neon"] .cd__sun,
.cd[data-skin="neon"] .cd__floor,
.cd[data-skin="neon"] .cd__scan,
.cd[data-skin="stade"] .cd__beams,
.cd[data-skin="stade"] .cd__pitch {
  display: block;
}

.cd__sparkles {
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 72% 12%, #fff, transparent),
    radial-gradient(2px 2px at 85% 40%, #ffe7b0, transparent),
    radial-gradient(1px 1px at 30% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 30%, #fff, transparent),
    radial-gradient(2px 2px at 20% 88%, #ffe7b0, transparent),
    radial-gradient(1px 1px at 90% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 45% 92%, #fff, transparent),
    radial-gradient(1px 1px at 8% 50%, #fff, transparent),
    radial-gradient(2px 2px at 64% 64%, #ffe7b0, transparent);
  animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
  to { opacity: 0.25; }
}

/* Style « Nuit étoilée » : ciel, halos colorés, chiffres « bulles » en relief.
   La couleur passe du bleu au rouge pendant les 10 dernières secondes. */
.cd[data-skin="nuit"] {
  --h: 225;
  --night-bg: #0b0e1a;
  --cd-bg: #0b0e1a;
  --cd-a: hsl(var(--h) 95% 66%);
  --cd-b: hsl(calc(var(--h) + 40) 90% 62%);
  --cd-soft: rgba(244, 246, 255, 0.68);
  --cd-digit-font: var(--font-bubble);
  --cd-digit-weight: 700;
  --roll-w: 0.6em;
}

.cd[data-skin="nuit"] .sky,
.cd[data-skin="nuit"] .blob,
.cd[data-skin="nuit"] .stars {
  display: block;
}

.cd[data-skin="nuit"] .cd__daysnum {
  color: #fff;
  text-shadow:
    0 0.045em 0 hsl(var(--h) 85% 62%),
    0 0.09em 0 hsl(var(--h) 70% 38%),
    0 0.13em 0.22em rgba(0, 0, 0, 0.45);
}

.cd[data-skin="nuit"] .cd__title {
  font-family: var(--font-bubble);
  font-weight: 700;
}

/* Style « Bogolan » : encre, ocre et terre cuite */
.cd[data-skin="bogolan"] {
  --cd-bg: radial-gradient(120% 90% at 50% 110%, #4a1f10, #0e0b08 65%);
  --cd-a: #e3b35a;
  --cd-b: #c2562f;
  --cd-soft: rgba(251, 245, 234, 0.7);
}

.cd__pattern {
  inset: 0;
  background-color: var(--cd-a);
  opacity: 0.1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M0 14 L8 6 L16 14 L24 6 L32 14 L40 6 L48 14 L56 6 L64 14' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='8' cy='28' r='2.2'/%3E%3Ccircle cx='24' cy='28' r='2.2'/%3E%3Ccircle cx='40' cy='28' r='2.2'/%3E%3Ccircle cx='56' cy='28' r='2.2'/%3E%3Cpath d='M16 41 V55 M9 48 H23 M48 41 V55 M41 48 H55' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 56px 56px repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M0 14 L8 6 L16 14 L24 6 L32 14 L40 6 L48 14 L56 6 L64 14' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='8' cy='28' r='2.2'/%3E%3Ccircle cx='24' cy='28' r='2.2'/%3E%3Ccircle cx='40' cy='28' r='2.2'/%3E%3Ccircle cx='56' cy='28' r='2.2'/%3E%3Cpath d='M16 41 V55 M9 48 H23 M48 41 V55 M41 48 H55' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 56px 56px repeat;
}

/* Style « Stade » : tableau d'affichage sous les projecteurs */
.cd[data-skin="stade"] {
  --cd-bg: linear-gradient(#050816, #0b1a3a 58%, #0f5a2c 58%, #0a3f1f);
  --cd-a: #f3c613;
  --cd-b: #ff9d00;
  --cd-fg: #ffcf3a;
  --cd-soft: rgba(255, 255, 255, 0.75);
  --cd-digit-font: var(--font-led);
  --cd-digit-weight: 900;
  --roll-w: 0.8em;
}

.cd__beams {
  inset: 0 0 40%;
  background:
    conic-gradient(from 150deg at 8% -5%, transparent 0deg, rgba(255, 255, 220, 0.2) 12deg, transparent 26deg),
    conic-gradient(from 184deg at 92% -5%, transparent 0deg, rgba(255, 255, 220, 0.2) 12deg, transparent 26deg);
  animation: beams 6s ease-in-out infinite alternate;
}

@keyframes beams {
  to { opacity: 0.55; }
}

.cd__pitch {
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background:
    radial-gradient(ellipse 22% 30% at 50% 0%, transparent 92%, rgba(255, 255, 255, 0.4) 94%, transparent 97%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 48px, transparent 48px 96px);
  border-top: 2px solid rgba(255, 255, 255, 0.4);
}

.cd[data-skin="stade"] .cd__svg {
  display: none;
}

.cd[data-skin="stade"] .cd__ring {
  width: auto;
  height: auto;
  padding: 1rem clamp(1.25rem, 4cqw, 2.25rem) 0.9rem;
  border: 3px solid #2c2e38;
  border-radius: 1rem;
  background:
    radial-gradient(circle, transparent 1px, rgba(0, 0, 0, 0.45) 1.6px) 0 0 / 4px 4px,
    linear-gradient(#15161c, #050507);
  box-shadow: 0 0 0 5px #000, 0 18px 50px rgba(0, 0, 0, 0.7), inset 0 0 40px rgba(243, 198, 19, 0.08);
}

.cd[data-skin="stade"] .cd__daysnum,
.cd[data-skin="stade"] .cd__hms {
  color: #ffcf3a;
  text-shadow: 0 0 0.06em #ff9d00, 0 0 0.3em rgba(255, 140, 0, 0.55);
}

/* Style « Néon » : soleil rétro et sol en grille qui défile */
.cd[data-skin="neon"] {
  --cd-bg: linear-gradient(#0d0221 55%, #2a0845);
  --cd-a: #ff2ef2;
  --cd-b: #00f0ff;
  --cd-soft: rgba(220, 240, 255, 0.75);
  --cd-digit-font: var(--font-led);
  --cd-digit-weight: 900;
  --roll-w: 0.8em;
}

.cd__sun {
  top: 12%;
  left: 50%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(#ffd36e, #ff2ef2 70%);
  opacity: 0.32;
  transform: translateX(-50%);
  -webkit-mask: repeating-linear-gradient(#000 0 10px, transparent 10px 15px);
  mask: repeating-linear-gradient(#000 0 10px, transparent 10px 15px);
}

.cd__floor {
  left: -50%;
  right: -50%;
  bottom: 0;
  height: 44%;
  background-image:
    linear-gradient(to right, var(--cd-a) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, var(--cd-a) 1.5px, transparent 1.5px);
  background-size: 44px 44px;
  transform: perspective(260px) rotateX(72deg);
  transform-origin: 50% 100%;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(transparent, #000 60%);
  mask-image: linear-gradient(transparent, #000 60%);
  animation: cd-floor 1.4s linear infinite;
}

@keyframes cd-floor {
  to { background-position: 0 44px; }
}

.cd__scan {
  inset: 0;
  background: repeating-linear-gradient(rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 4px);
}

.cd[data-skin="neon"] .cd__daysnum {
  color: #fff;
  text-shadow: 0 0 0.05em #fff, 0 0 0.2em var(--cd-a), 0 0 0.45em var(--cd-a);
}

.cd[data-skin="neon"] .cd__hms {
  color: #fff;
  text-shadow: 0 0 0.2em var(--cd-b);
}

.cd[data-skin="neon"] .cd__title {
  text-shadow: 0 0 12px var(--cd-b);
}

/* ==========================================================================
   10d. FINALES DU COMPTE À REBOURS (une animation par scène)
   ========================================================================== */

.cd__content {
  position: relative;
  z-index: 2;
}

.cd__finale {
  --fall: 36rem;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  perspective: 700px;
}

.cd:fullscreen .cd__finale {
  --fall: 110vh;
}

.fx-fireworks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Message final : entrée en 3D, puis style propre à chaque scène */
.cd.is-done .cd__done {
  animation:
    done-in 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both,
    shine 2s linear infinite,
    wobble 0.5s ease-in-out infinite alternate;
}

@keyframes done-in {
  from { opacity: 0; scale: 0.4; rotate: x 80deg; }
}

.cd[data-skin="mariage"] .cd__done {
  background-image: linear-gradient(90deg, #f7d08a, #fff6e0, #ffb3c9, #f7d08a);
}

.cd[data-skin="nuit"] .cd__done {
  font-family: var(--font-bubble);
  font-weight: 700;
  background: none;
  color: #fff;
  text-shadow:
    0 0.045em 0 hsl(var(--h) 85% 62%),
    0 0.09em 0 hsl(var(--h) 70% 38%),
    0 0.13em 0.22em rgba(0, 0, 0, 0.45);
}

.cd[data-skin="bogolan"] .cd__done {
  background: none;
  color: var(--c-ochre-light);
  text-shadow:
    1px 1px 0 #d39e43, 2px 2px 0 #c48a2c, 3px 3px 0 #b5742a,
    4px 4px 0 #a85f27, 5px 5px 0 #9c4424, 8px 10px 14px rgba(0, 0, 0, 0.5);
}

.cd.is-done[data-skin="stade"] .cd__done {
  background: none;
  font-family: var(--font-led);
  font-size: calc(var(--s) * 0.085);
  font-weight: 900;
  text-transform: uppercase;
  color: #ffcf3a;
  text-shadow: 0 0 0.06em #ff9d00, 0 0 0.3em rgba(255, 140, 0, 0.6);
  animation: done-in 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both, led-flicker 1.2s steps(2) infinite;
}

.cd.is-done[data-skin="neon"] .cd__done {
  background: none;
  font-family: var(--font-led);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 0.05em #fff, 0 0 0.2em var(--cd-a), 0 0 0.5em var(--cd-a), 0 0 1em var(--cd-b);
  animation: done-in 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both, neon-flicker 3s linear infinite;
}

@keyframes led-flicker { 50% { opacity: 0.75; } }

@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.35; }
}

/* --- Mariage : alliances dorées en 3D, pétales, cœurs --- */
.fin-rings {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 6.5rem;
  height: 4rem;
  margin-left: -3.25rem;
  transform-style: preserve-3d;
  animation: rings-in 1s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.fin-rings span {
  position: absolute;
  top: 0;
  width: 4rem;
  height: 4rem;
  border: 0.42rem solid #f7d08a;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 0 10px rgba(160, 100, 20, 0.6),
    0 0 18px rgba(247, 208, 138, 0.65);
  animation: ring-spin 3s linear infinite;
}

.fin-rings span:first-child { left: 0; }

.fin-rings span:last-child {
  right: 0;
  border-color: #ffe2a8;
  animation-direction: reverse;
}

@keyframes ring-spin { to { transform: rotateY(360deg); } }
@keyframes rings-in { from { opacity: 0; transform: translateY(40px) scale(0.5); } }

.fin-petal {
  position: absolute;
  top: -8%;
  left: var(--x);
  width: calc(1rem * var(--s));
  height: calc(0.7rem * var(--s));
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, #ffd1dc, #ff7aa8);
  opacity: 0.9;
  animation: petal-fall var(--t) linear var(--d) infinite;
}

@keyframes petal-fall {
  from { transform: translate3d(0, 0, 0) rotate3d(1, 1, 0, 0deg); }
  to { transform: translate3d(3rem, var(--fall), 0) rotate3d(1, 1, 0, 720deg); }
}

.fin-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.6rem;
  height: 1.6rem;
  margin: -0.8rem;
  fill: #ff7aa8;
  filter: drop-shadow(0 0 6px rgba(255, 122, 168, 0.7));
  opacity: 0;
  animation: heart-burst 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d) infinite;
}

@keyframes heart-burst {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(0.3); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-11rem) scale(1.2); }
}

/* --- Nuit étoilée : rayons de boule à facettes, étoiles filantes --- */
.fin-rays {
  position: absolute;
  left: 50%;
  top: -60%;
  width: 220%;
  aspect-ratio: 1;
  margin-left: -110%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.1) 0 6deg, transparent 6deg 22deg);
  mix-blend-mode: screen;
  animation: fin-spin 9s linear infinite;
}

@keyframes fin-spin { to { transform: rotate(360deg); } }

.fin-shoot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 7rem;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #fff, transparent);
  opacity: 0;
  transform: rotate(-25deg);
  animation: shoot 2.2s ease-out var(--d) infinite;
}

@keyframes shoot {
  0% { opacity: 0; translate: 0 0; }
  10% { opacity: 1; }
  60%, 100% { opacity: 0; translate: -14rem 6.5rem; }
}

/* --- Bogolan : vague de carreaux qui se retournent en 3D --- */
.fin-tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(6, 1fr);
  perspective: 600px;
}

.fin-tile {
  position: relative;
  display: block;
  margin: 1px;
  border-radius: 4px;
  opacity: 0;
  backface-visibility: hidden;
  animation: tile-flip 2.6s cubic-bezier(0.3, 0.7, 0.3, 1) var(--d) 2 both;
}

.fin-tile--0 { background: rgba(196, 138, 44, 0.55); }
.fin-tile--1 { background: rgba(194, 86, 47, 0.55); }
.fin-tile--2 { background: rgba(23, 18, 14, 0.75); }

.fin-tile::before {
  content: "";
  position: absolute;
  inset: 24%;
  background: #fbf5ea;
  opacity: 0.8;
  -webkit-mask: var(--symbol) center / contain no-repeat;
  mask: var(--symbol) center / contain no-repeat;
}

@keyframes tile-flip {
  0% { opacity: 0; transform: rotateY(-180deg) scale(0.6); }
  25%, 60% { opacity: 1; transform: rotateY(0) scale(1); }
  100% { opacity: 0; transform: rotateY(180deg) scale(0.6); }
}

.fin-dust {
  position: absolute;
  bottom: -5%;
  left: var(--x);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e3b35a;
  box-shadow: 0 0 8px #e3b35a;
  animation: dust-rise var(--t) ease-out var(--d) infinite;
}

@keyframes dust-rise {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-28rem); }
}

/* --- Stade : flashs, projecteurs, ballon qui fonce vers vous --- */
.fin-strobe {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  animation: strobe 1.6s steps(1) 3;
}

@keyframes strobe {
  0%, 8% { opacity: 0.5; }
  4%, 12%, 100% { opacity: 0; }
}

.fin-flash {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: cam-flash 1.1s ease-out var(--d) infinite;
}

@keyframes cam-flash {
  0%, 100% { opacity: 0; scale: 0.5; }
  8% { opacity: 1; scale: 1.4; }
  30% { opacity: 0; }
}

.fin-ball-track {
  position: absolute;
  left: 0;
  bottom: 8%;
  width: 4rem;
  height: 4rem;
  animation: ball-path 3.2s cubic-bezier(0.4, 0, 0.6, 1) 0.3s infinite;
}

.fin-ball {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.45));
  animation: ball-spin 0.6s linear infinite;
}

@keyframes ball-spin { to { transform: rotate(360deg); } }

@keyframes ball-path {
  0% { transform: translate(-6rem, 0) scale(0.6); }
  25% { transform: translate(20cqw, -9rem) scale(0.8); }
  45% { transform: translate(40cqw, 0) scale(1); }
  65% { transform: translate(60cqw, -6rem) scale(1.3); }
  85% { transform: translate(78cqw, -1rem) scale(2.2); }
  100% { transform: translate(110cqw, -4rem) scale(3.5); opacity: 0; }
}

/* --- Néon : lasers, égaliseur, sol qui accélère --- */
.fin-laser {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 140%;
  height: 2px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255, 46, 242, 0.9), transparent 70%);
  box-shadow: 0 0 8px #ff2ef2;
  opacity: 0;
  animation: laser 2.4s ease-in-out var(--d) infinite;
}

.fin-laser:nth-child(even) {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.9), transparent 70%);
  box-shadow: 0 0 8px #00f0ff;
}

@keyframes laser {
  0%, 100% { opacity: 0; transform: rotate(calc(var(--a) - 18deg)); }
  30%, 70% { opacity: 0.9; }
  50% { transform: rotate(calc(var(--a) + 18deg)); }
}

.fin-eq {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22%;
  opacity: 0.85;
}

.fin-eq i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#00f0ff, #ff2ef2);
  box-shadow: 0 0 8px rgba(255, 46, 242, 0.6);
  transform-origin: bottom;
  animation: eq 0.5s ease-in-out var(--d) infinite alternate;
}

@keyframes eq {
  from { transform: scaleY(0.2); }
  to { transform: scaleY(1); }
}

.cd.is-celebrating[data-skin="neon"] .cd__floor {
  animation-duration: 0.35s;
}

.cd.is-celebrating[data-skin="neon"] .cd__sun {
  opacity: 0.55;
}


/* ==========================================================================
   10e. PROTECTION DES APERÇUS (badge, filigrane, fin d'aperçu)
   ========================================================================== */

.preview-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 4;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.preview-mark,
.preview-badge,
.preview-lock {
  display: none;
}

/* Filigrane sur tout l'écran (plein écran, ou démo laissée sans surveillance) */
:fullscreen > .preview-mark,
.is-preview-idle > .preview-mark {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.preview-mark__grid {
  position: absolute;
  inset: -50%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 3.5rem 4rem;
  transform: rotate(-24deg);
}

.preview-mark__grid span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.14);
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.35);
}

/* Rappel du prix qui glisse depuis le bas */
:fullscreen > .preview-badge,
.is-preview-idle > .preview-badge {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: min(92%, 40rem);
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.1rem;
  background: rgba(12, 14, 28, 0.85);
  color: #f4f6ff;
  text-align: left;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translate(-50%, 150%);
  transition: transform 0.6s cubic-bezier(0.2, 1.4, 0.4, 1), opacity 0.4s;
}

:fullscreen > .preview-badge.is-on,
.is-preview-idle > .preview-badge {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Sans surveillance, hors plein écran : rappel plus compact, collé en bas */
.is-preview-idle:not(:fullscreen) > .preview-badge {
  bottom: 0.75rem;
  width: max-content;
  padding: 0.6rem 0.8rem;
  gap: 0.6rem;
}

.is-preview-idle:not(:fullscreen) > .preview-badge b {
  font-size: 0.9rem;
}

.is-preview-idle:not(:fullscreen) > .preview-badge span {
  font-size: 0.75rem;
}

.is-preview-idle:not(:fullscreen) .preview-badge__logo {
  width: 2rem;
  height: 2rem;
}

.preview-badge__logo {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
}

.preview-badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.preview-badge span {
  font-size: 0.9rem;
  color: rgba(244, 246, 255, 0.8);
}

/* Fin de l'aperçu : la démo se floute, une carte invite à commander */
.is-preview-locked:fullscreen > .preview-lock {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(5, 6, 12, 0.55);
}

.is-preview-locked > .preview-badge {
  visibility: hidden;
}

.is-preview-locked > .clock3d__scene,
.is-preview-locked > .clock3d__name,
.is-preview-locked > .ticker3d,
.is-preview-locked > .cd__content,
.is-preview-locked > .cd__finale {
  filter: blur(16px);
}

.preview-lock__card {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  max-width: 30rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.5rem;
  background: #17120e;
  color: #f3eadb;
  text-align: center;
  box-shadow: 0 8px 0 -2px #000, 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  animation: done-in 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.preview-lock__logo {
  width: 3.5rem;
  height: 3.5rem;
}

.preview-lock__card h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fbf5ea;
}

.preview-lock__card p {
  color: #c2b29c;
}

.preview-lock__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.preview-lock__exit {
  padding: 0.4rem;
  border: 0;
  background: none;
  color: #c2b29c;
  font-size: 0.9rem;
  text-decoration: underline;
}


/* ==========================================================================
   10f. DÉMO STUDIO DE VIDÉOS ANIMÉES (motion design) — js/motion.js
   Toutes les tailles internes sont en « cqmin » : la vidéo garde ses
   proportions en format statut (vertical), écran (horizontal) et plein écran.
   ========================================================================== */

.mo {
  --mo-font: var(--font-bubble);
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: clamp(0.75rem, 0.5rem + 1.5vw, 1.25rem);
  overflow: hidden;
  isolation: isolate;
  border-radius: 1.5rem;
  background: #0b0a10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

/* Les 4 styles */
.mo[data-style="pop"] {
  --mo-bg1: #ff3d6e; --mo-bg2: #ff9a3c; --mo-a1: #ffe14d; --mo-a2: #2bd2ff; --mo-a3: #7c4dff;
  --mo-text: #fff; --mo-ink: #1a0b1e; --mo-shadow: rgba(90, 0, 40, 0.45);
  --mo-card: #fff; --mo-card-text: #2a0c24; --mo-line: rgba(255, 255, 255, 0.4); --mo-panel: #7c4dff;
}

.mo[data-style="neon"] {
  --mo-bg1: #0b0624; --mo-bg2: #1c0b3d; --mo-a1: #ff2bd6; --mo-a2: #00e5ff; --mo-a3: #7cff4f;
  --mo-text: #fff; --mo-ink: #0b0624; --mo-shadow: rgba(255, 43, 214, 0.35);
  --mo-card: rgba(255, 255, 255, 0.08); --mo-card-text: #fff; --mo-line: rgba(0, 229, 255, 0.5); --mo-panel: #12063a;
  --mo-font: var(--font-led);
}

.mo[data-style="bogolan"] {
  --mo-bg1: #3a2416; --mo-bg2: #17120e; --mo-a1: #e3b35a; --mo-a2: #c2562f; --mo-a3: #f7efe1;
  --mo-text: #f7efe1; --mo-ink: #17120e; --mo-shadow: rgba(0, 0, 0, 0.5);
  --mo-card: #f7efe1; --mo-card-text: #17120e; --mo-line: rgba(227, 179, 90, 0.45); --mo-panel: #c2562f;
  --mo-font: var(--font-display);
}

.mo[data-style="luxe"] {
  --mo-bg1: #141210; --mo-bg2: #050505; --mo-a1: #f5d68a; --mo-a2: #b8892e; --mo-a3: #fff4d6;
  --mo-text: #f8ecd0; --mo-ink: #111; --mo-shadow: rgba(0, 0, 0, 0.6);
  --mo-card: rgba(245, 214, 138, 0.1); --mo-card-text: #f8ecd0; --mo-line: rgba(245, 214, 138, 0.35); --mo-panel: #1f1a10;
  --mo-font: var(--font-display);
}

.mo__ambient {
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 30%, var(--mo-a1), transparent 50%),
    radial-gradient(circle at 70% 70%, var(--mo-bg1), transparent 55%);
  filter: blur(50px);
  opacity: 0.35;
  transition: background 0.6s;
}

.mo__viewport {
  display: grid;
  place-items: center;
  min-width: 0;
  perspective: 1400px;
}

.mo__frame {
  position: relative;
  container-type: size;
  overflow: hidden;
  border-radius: 1.1rem;
  background: var(--mo-bg1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 3px 0 rgba(255, 255, 255, 0.06),
    0 28px 50px -18px rgba(0, 0, 0, 0.85);
  transition: transform 0.8s var(--ease);
}

.mo[data-format="vertical"] .mo__frame {
  height: min(34rem, 70vh);
  aspect-ratio: 9 / 16;
}

.mo[data-format="horizontal"] .mo__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Légère 3D sur ordinateur, à plat dès qu'on la survole ou en plein écran */
@media (hover: hover) and (min-width: 980px) {
  .mo[data-format="vertical"] .mo__frame { transform: rotateY(-9deg) rotateX(3deg); }
  .mo[data-format="horizontal"] .mo__frame { transform: rotateX(4deg); }
  .mo:hover .mo__frame { transform: none; }
}

.mo__scenes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-family: var(--mo-font);
  color: var(--mo-text);
}

/* --- Fond --- */
.mo-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(160deg, var(--mo-bg1), var(--mo-bg2));
}

.mo-blob {
  position: absolute;
  width: 75cqmax;
  height: 75cqmax;
  border-radius: 50%;
  filter: blur(9cqmin);
  opacity: 0.55;
}

.mo-blob--0 { top: -30cqmax; left: -25cqmax; background: var(--mo-a1); }
.mo-blob--1 { bottom: -35cqmax; right: -30cqmax; background: var(--mo-a2); }
.mo-blob--2 { top: 35%; left: 35%; width: 45cqmax; height: 45cqmax; background: var(--mo-a3); opacity: 0.3; }

.mo-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.6px, transparent 0.8px);
  background-size: 4cqmin 4cqmin;
  pointer-events: none;
}

.mo[data-style="bogolan"] .mo-grain {
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 9 6 3 12 9 18 3 24 9' fill='none' stroke='%23e3b35a' stroke-width='1.4'/%3E%3Ccircle cx='6' cy='18' r='1.6' fill='%23f7efe1'/%3E%3Ccircle cx='18' cy='18' r='1.6' fill='%23f7efe1'/%3E%3C/svg%3E");
  background-size: 9cqmin 9cqmin;
}

.mo[data-style="neon"] .mo-grain {
  opacity: 0.3;
  background-image: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.35) 50%);
  background-size: 100% 0.8cqmin;
}

/* --- Scènes --- */
.mo-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.mo-cam {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.2cqmin;
  padding: 9cqmin 8cqmin;
  text-align: center;
}

.mo-title {
  position: relative;
  display: block;
  max-width: 100%;
  font-size: calc(var(--fs, 10cqmin) * var(--mo-scale, 1));
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--mo-text);
  text-shadow: 0 0.07em 0 var(--mo-shadow), 0 0.14em 0.35em rgba(0, 0, 0, 0.3);
  overflow-wrap: break-word;
}

/* Polices plus larges : texte un peu plus petit */
.mo[data-style="neon"] { --mo-scale: 0.66; }
.mo[data-style="luxe"] { --mo-scale: 0.78; }
.mo[data-style="bogolan"] { --mo-scale: 0.92; }

.mo-wordwrap {
  display: inline-block;
  white-space: nowrap;
}

.mo[data-style="neon"] .mo-title {
  text-shadow: 0 0 0.2em var(--mo-a1), 0 0 0.6em var(--mo-a1);
  text-transform: uppercase;
  font-weight: 900;
}

.mo[data-style="luxe"] .mo-title {
  color: var(--mo-a1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-shadow: 0 0.1em 0.4em rgba(0, 0, 0, 0.6);
}

.mo-title--name .mo-wordwrap { perspective: 60cqmin; }

.mo-ch {
  display: inline-block;
  transform-origin: 50% 100%;
  backface-visibility: hidden;
}

.mo-mask {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  vertical-align: bottom;
}

.mo-word { display: inline-block; }

.mo-underline {
  width: 32cqmin;
  height: 1.8cqmin;
  border-radius: 99px;
  background: var(--mo-a1);
  transform-origin: left;
  box-shadow: 0 0.8cqmin 0 var(--mo-shadow);
}

.mo-kicker {
  font-family: var(--font-body);
  font-size: 3.6cqmin;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mo-text);
  opacity: 0.9;
}

.mo-kicker--top {
  position: absolute;
  top: 8cqmin;
}

.mo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62cqmin;
  height: 62cqmin;
  border: 1.4cqmin solid var(--mo-a1);
  border-radius: 50%;
}

.mo-ring--1 { width: 88cqmin; height: 88cqmin; border-color: var(--mo-a2); }
.mo-ring--2 { width: 115cqmin; height: 115cqmin; border-color: var(--mo-a3); }

.mo-stripe {
  position: absolute;
  top: 13%;
  left: -10%;
  width: 120%;
  height: 7cqmin;
  background: var(--mo-a1);
}

.mo-stripe--1 {
  top: auto;
  bottom: 15%;
  height: 3.5cqmin;
  background: var(--mo-a2);
}

.mo-badge {
  display: grid;
  place-items: center;
  width: 19cqmin;
  height: 19cqmin;
  border-radius: 30%;
  background: var(--mo-text);
  color: var(--mo-bg1);
  box-shadow: 0 1.4cqmin 0 var(--mo-shadow), 0 3cqmin 6cqmin rgba(0, 0, 0, 0.25);
}

.mo[data-style="luxe"] .mo-badge,
.mo[data-style="neon"] .mo-badge { background: var(--mo-a1); color: var(--mo-ink); }

.mo-badge .icon { width: 58%; height: 58%; }

/* Message */
.mo-panel {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 110%, var(--mo-a2), transparent 65%),
    var(--mo-panel);
}

.mo-marker {
  width: 58cqmin;
  height: 2.4cqmin;
  border-radius: 99px;
  background: var(--mo-a1);
  transform-origin: left;
}

.mo-spark {
  position: absolute;
  width: 8cqmin;
  height: 8cqmin;
  color: var(--mo-a1);
  filter: drop-shadow(0 0 2cqmin var(--mo-a1));
}

/* Mots qui claquent (30 s) */
.mo-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.mo-flash--0 { background: var(--mo-a1); }
.mo-flash--1 { background: var(--mo-a2); }
.mo-flash--2 { background: var(--mo-ink); }

.mo-title--kinetic {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  translate: -50% -50%;
  text-transform: uppercase;
  font-weight: 800;
}

.mo-flash--0 + .mo-title--kinetic,
.mo-flash--1 + .mo-title--kinetic { color: var(--mo-ink); text-shadow: none; }

/* Liste */
.mo-eyebrow {
  padding: 1.4cqmin 4cqmin;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--mo-text);
  font-family: var(--font-body);
  font-size: 4.4cqmin;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mo-items {
  display: grid;
  gap: 3cqmin;
  width: 100%;
  perspective: 120cqmin;
}

.mo[data-format="horizontal"] .mo-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mo-item {
  display: flex;
  align-items: center;
  gap: 3cqmin;
  padding: 3.4cqmin 4cqmin;
  border-radius: 4cqmin;
  background: var(--mo-card);
  color: var(--mo-card-text);
  font-size: 5.4cqmin;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  box-shadow: 0 1.2cqmin 0 var(--mo-shadow), 0 3cqmin 6cqmin rgba(0, 0, 0, 0.2);
}

.mo[data-style="neon"] .mo-item { box-shadow: 0 0 0 0.4cqmin var(--mo-a2), 0 0 4cqmin rgba(0, 229, 255, 0.35); }

.mo-item__check {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 8.5cqmin;
  height: 8.5cqmin;
  border-radius: 50%;
  background: var(--mo-a1);
  color: var(--mo-ink);
}

.mo-item__check .icon { width: 60%; height: 60%; }

/* Gros chiffre */
.mo-shake {
  position: relative;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 1.4cqmin 0 var(--mo-shadow));
}

.mo-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92cqmin;
  height: 92cqmin;
  translate: -50% -50%;
  fill: var(--mo-a1);
  opacity: 0.95;
}

.mo[data-style="luxe"] .mo-burst { fill: none; stroke: var(--mo-a1); stroke-width: 0.8; }
.mo[data-style="neon"] .mo-burst { fill: none; stroke: var(--mo-a1); stroke-width: 1.2; filter: drop-shadow(0 0 2cqmin var(--mo-a1)); }

.mo-big {
  position: relative;
  font-size: calc(var(--fs, 24cqmin) * var(--mo-scale, 1));
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(100deg, var(--mo-ink) 42%, #fff 50%, var(--mo-ink) 58%);
  background-size: 260% 100%;
  background-position: -120% 0;
  -webkit-background-clip: text;
  background-clip: text;
}

.mo[data-style="neon"] .mo-big,
.mo[data-style="luxe"] .mo-big,
.mo[data-style="bogolan"] .mo-big {
  background-image: linear-gradient(100deg, var(--mo-text) 42%, var(--mo-a1) 50%, var(--mo-text) 58%);
}

.mo[data-style="bogolan"] .mo-big { background-image: linear-gradient(100deg, var(--mo-ink) 42%, #fff 50%, var(--mo-ink) 58%); }

.mo-sub {
  position: relative;
  padding: 1.8cqmin 4.5cqmin;
  border-radius: 99px;
  background: var(--mo-text);
  color: var(--mo-bg2);
  font-family: var(--font-body);
  font-size: 4.2cqmin;
  font-weight: 800;
  box-shadow: 0 1cqmin 0 var(--mo-shadow);
}

.mo-bit {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 3.2cqmin;
  height: 3.2cqmin;
  border-radius: 0.6cqmin;
  background: var(--mo-a2);
}

.mo-bit--1 { background: var(--mo-a3); border-radius: 50%; }
.mo-bit--2 { background: var(--mo-text); }

/* Adresse et horaires */
.mo-map {
  position: absolute;
  right: -40%;
  bottom: 0;
  left: -40%;
  height: 75%;
  background-image:
    linear-gradient(var(--mo-line) 0.35cqmin, transparent 0.35cqmin),
    linear-gradient(90deg, var(--mo-line) 0.35cqmin, transparent 0.35cqmin);
  background-size: 9cqmin 9cqmin;
  transform: perspective(70cqmin) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 25%, transparent 90%);
  mask-image: linear-gradient(to top, #000 25%, transparent 90%);
}

.mo-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 22cqmin;
  height: 26cqmin;
}

.mo-pin__icon {
  position: relative;
  z-index: 1;
  width: 15cqmin;
  height: 15cqmin;
  border-radius: 50% 50% 50% 0;
  background: var(--mo-a1);
  rotate: -45deg;
  box-shadow: -1cqmin 1cqmin 0 var(--mo-shadow);
}

.mo-pin__icon::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: var(--mo-ink);
}

.mo-pin__shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 13cqmin;
  height: 3.4cqmin;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
}

.mo-pin__ring {
  position: absolute;
  top: calc(100% - 1.7cqmin);
  left: 50%;
  width: 20cqmin;
  height: 7cqmin;
  border: 0.8cqmin solid var(--mo-a1);
  border-radius: 50%;
}

.mo-lines {
  position: relative;
  display: grid;
  gap: 2.4cqmin;
  justify-items: center;
}

.mo-line {
  display: flex;
  align-items: center;
  gap: 2.2cqmin;
  padding: 2.2cqmin 4cqmin;
  border-radius: 99px;
  background: var(--mo-card);
  color: var(--mo-card-text);
  font-family: var(--font-body);
  font-size: 4.1cqmin;
  font-weight: 700;
  box-shadow: 0 1cqmin 0 var(--mo-shadow);
}

.mo-line .icon { width: 5cqmin; height: 5cqmin; color: var(--mo-a2); }

/* Appel à l'action */
.mo-wa {
  position: relative;
  display: grid;
  place-items: center;
  width: 23cqmin;
  height: 23cqmin;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 1.4cqmin 0 #128c4a, 0 0 7cqmin rgba(37, 211, 102, 0.55);
}

.mo-wa .icon { width: 58%; height: 58%; }

.mo-wa__ring {
  position: absolute;
  inset: 0;
  border: 0.9cqmin solid #25d366;
  border-radius: 50%;
}

.mo-number {
  padding: 1.6cqmin 3.6cqmin;
  border-radius: 2.4cqmin;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: var(--font-body);
  font-size: 5.2cqmin;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.mo-btn {
  padding: 2.4cqmin 6.5cqmin;
  border-radius: 99px;
  background: var(--mo-a1);
  color: var(--mo-ink);
  font-family: var(--font-body);
  font-size: 4.8cqmin;
  font-weight: 800;
  box-shadow: 0 1.2cqmin 0 var(--mo-shadow);
}

/* Fin : signature */
.mo-plate {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, #2b2018, #0d0a08 70%);
}

.mo-logo {
  position: relative;
  width: 26cqmin;
  height: 26cqmin;
  filter: drop-shadow(0 2cqmin 3cqmin rgba(0, 0, 0, 0.6));
}

.mo-outro__brand {
  position: relative;
  color: #fbf5ea;
  font-family: var(--font-display);
  font-size: 5.6cqmin;
  font-weight: 800;
}

/* Volets de transition */
.mo-wipe {
  position: absolute;
  inset: -25%;
  z-index: 5;
  rotate: -12deg;
  pointer-events: none;
}

.mo-wipe--up { rotate: 10deg; }

.mo-wipe__a,
.mo-wipe__b {
  position: absolute;
  inset: 0;
  transform: translateX(-105%);
}

.mo-wipe__a { background: var(--mo-a1); }
.mo-wipe__b { background: var(--mo-a2); }

.mo-bug {
  position: absolute;
  top: 4cqmin;
  right: 4cqmin;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 10cqmin;
  height: 10cqmin;
  border-radius: 50%;
  background: var(--mo-text);
  color: var(--mo-bg1);
  font-family: var(--font-display);
  font-size: 5cqmin;
  font-weight: 800;
  opacity: 0;
  box-shadow: 0 0.8cqmin 0 var(--mo-shadow);
}

/* --- Commandes du lecteur --- */
.mo__controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(100%, 34rem);
  margin-inline: auto;
}

.mo__play {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2c86e, var(--c-terracotta));
  color: #1a0d06;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #7f331a;
  transition: transform 0.15s;
}

.mo__play:active { transform: translateY(2px); box-shadow: none; }
.mo__play .icon { width: 1.25rem; height: 1.25rem; }
.mo__play[aria-pressed="true"] .icon-play,
.mo__play[aria-pressed="false"] .icon-pause { display: none; }

.mo__bar {
  position: relative;
  flex: 1;
  height: 0.5rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  touch-action: none;
}

.mo__bar::before {
  content: "";
  position: absolute;
  inset: -0.9rem 0;
}

.mo__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c-ochre-light), var(--c-terracotta));
  transform: scaleX(0);
  transform-origin: left;
}

.mo__mark {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 160%;
  translate: -50% -50%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.mo__time {
  flex-shrink: 0;
  min-width: 5.6rem;
  color: #e9dfcf;
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.mo__full {
  top: 0.75rem;
  right: 0.75rem;
}

/* Plein écran : la vidéo occupe tout l'écran, à plat */
.mo:fullscreen {
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 2vmin;
  border-radius: 0;
  background: #000;
}

.mo:fullscreen .mo__frame { transform: none; }
.mo:fullscreen[data-format="vertical"] .mo__frame { height: calc(100vh - 6rem); }
.mo:fullscreen[data-format="horizontal"] .mo__frame { width: min(100%, calc((100vh - 6rem) * 16 / 9)); }

/* Logo du client (studio privé) */
.mo-badge--logo,
.mo-bug--logo {
  overflow: hidden;
  background: #fff;
}

.mo-badge--logo { padding: 2.4cqmin; }
.mo-bug--logo { padding: 1cqmin; }

.mo-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mo-badge__letter {
  font-family: var(--font-display);
  font-size: 9cqmin;
  font-weight: 800;
}

.mo-plate--client {
  background:
    radial-gradient(circle at 50% 35%, var(--mo-a2), transparent 60%),
    linear-gradient(160deg, var(--mo-bg1), var(--mo-bg2));
}

/* --- Studio privé (studio.html) : grande vidéo à gauche, réglages à droite --- */
.studio-page { min-height: 100vh; }

.studio-main { padding-block: 1rem 3rem; }

.studio-locked {
  width: min(100%, 28rem);
  margin: 3rem auto;
  justify-items: start;
}

.studio {
  display: grid;
  gap: 1.5rem;
  padding-inline: var(--gutter);
}

@media (min-width: 1000px) {
  .studio {
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
    align-items: start;
  }

  .studio__stage {
    position: sticky;
    top: calc(var(--header-h) + 0.75rem);
  }

  .studio__panel {
    max-height: calc(100vh - var(--header-h) - 1.5rem);
    overflow-y: auto;
    padding-right: 0.5rem;
  }
}

.mo--pro .mo__frame { transform: none !important; }

.mo--pro[data-format="vertical"] .mo__frame {
  height: min(calc(100vh - var(--header-h) - 7rem), 1920px);
}

.mo--pro[data-format="horizontal"] .mo__frame {
  width: min(100%, calc((100vh - var(--header-h) - 7rem) * 16 / 9));
}

.mo.is-recording .mo__controls {
  opacity: 0.4;
  pointer-events: none;
}

.mo.is-recording .mo__frame {
  box-shadow: 0 0 0 3px #e5484d, 0 28px 50px -18px rgba(0, 0, 0, 0.85);
}

.studio__record {
  display: grid;
  gap: 0.85rem;
}

.studio__status {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.studio__title {
  margin-top: 0.75rem;
  font-size: 1.15rem;
}

.studio__file { padding-block: 0.55rem; }
.studio__styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.studio__tips { font-size: var(--fs-xs); }

.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 599.98px) {
  .field-row--3 { grid-template-columns: minmax(0, 1fr); }
}

/* Miniatures des styles */
.thumb--mo-pop { background: linear-gradient(135deg, #ff3d6e, #ff9a3c); color: #fff; font-family: var(--font-bubble); font-size: 0.95rem; }
.thumb--mo-neon { background: #0b0624; color: #ff2bd6; text-shadow: 0 0 6px #ff2bd6; }
.thumb--mo-bogolan { background: #2a1a10; color: #e3b35a; font-family: var(--font-display); font-size: 0.95rem; box-shadow: inset 0 -6px 0 #c2562f; }
.thumb--mo-luxe { background: linear-gradient(135deg, #141210, #2a2418); color: #f5d68a; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.1em; }

.mo-price {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.mo-price b { color: var(--heading); font-size: 1.05rem; }

.mo-price small {
  display: block;
  margin-top: 0.3rem;
  font-size: var(--fs-xs);
}

/* --- Section « Vidéos animées » : prix en pellicule de film --- */
.motion-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  padding: 0;
  list-style: none;
}

.motion-strip li {
  display: grid;
  gap: 0.1rem;
  min-width: 8.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.9rem;
  background-color: var(--c-ink);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 2px, transparent 2.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 2px, transparent 2.6px);
  background-size: 13px 9px;
  background-position: 0 2px, 0 calc(100% - 2px);
  background-repeat: repeat-x;
  color: #fbf5ea;
  box-shadow: 0 5px 0 -1px #050403, var(--shadow);
  transition: transform 0.3s var(--ease);
}

.motion-strip li:nth-child(odd) { rotate: -1.5deg; }
.motion-strip li:nth-child(even) { rotate: 1.5deg; }
.motion-strip li:hover { transform: translateY(-4px) rotate(0deg); }

.motion-strip b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--c-ochre-light);
}

.motion-strip span {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.motion-strip small {
  margin-top: 0.15rem;
  color: #e8946a;
  font-size: var(--fs-xs);
  font-weight: 700;
}

/* Tarifs : 3 colonnes sur grand écran */
.pricing.grid--3 { max-width: var(--container); }

@media (min-width: 760px) and (max-width: 1079.98px) {
  .pricing.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing.grid--3 > :last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 30rem);
  }
}

@media (min-width: 1080px) {
  .pricing.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* --- Bandeau « Vous voulez la vôtre ? » --- */
.demo__cta {
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  box-shadow: 0 4px 0 -1px var(--card-edge);
}

.demo__cta > span {
  padding-left: 0.4rem;
}

.demo__cta > .demo__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0;
}

/* Sur petit écran, le bouton prend toute la largeur */
@media (max-width: 599.98px) {
  .demo__cta > .demo__cta-actions {
    flex: 1 1 100%;
  }

  .demo__cta .btn {
    flex: 1 1 auto;
  }
}

@media (min-width: 600px) {
  .demo__cta {
    padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  }

  .demo__cta > span {
    padding-left: 0;
  }
}


/* ==========================================================================
   11. OFFRES (mini-outils, logiciels)
   ========================================================================== */

.tool-card {
  display: flex;
  flex-direction: column;
}

.tool-card .card__foot {
  margin-top: auto;
}

.tool-card > p {
  margin-bottom: 1.4rem;
}

.soft-card {
  display: flex;
  flex-direction: column;
}

.soft-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.soft-card__head h3 {
  margin-top: 0;
}

.soft-card__for {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.soft-card .checklist {
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
}

.soft-card .card__foot {
  margin-top: auto;
}


/* ==========================================================================
   12. COMMENT ÇA MARCHE (escalier de 4 étapes)
   ========================================================================== */

.steps {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Fil pointillé qui relie les étapes (mobile) */
.steps::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  bottom: 2.5rem;
  left: 1.45rem;
  border-left: 2px dashed var(--border-strong);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

/* Chiffres en relief (ombres empilées) */
.step__num {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: var(--c-ochre-light);
  background: var(--bg);
  text-shadow:
    1px 1px 0 #d39e43, 2px 2px 0 #c48a2c, 3px 3px 0 #b5742a,
    4px 4px 0 #a85f27, 5px 5px 0 #9c4424, 6px 6px 0 #8a3b1f,
    10px 12px 16px rgba(60, 30, 10, 0.35);
}

.step__body h3 {
  margin-top: 0;
}

.step__body p {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps::before {
    display: none;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step__num {
    width: max-content;
    font-size: 4rem;
    text-align: left;
    background: none;
  }
}

/* Ordinateur : les étapes montent comme un escalier */
@media (min-width: 1080px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  .step:nth-child(1) { padding-top: 6rem; }
  .step:nth-child(2) { padding-top: 4rem; }
  .step:nth-child(3) { padding-top: 2rem; }

  .step .card {
    min-height: 13rem;
  }
}

/* Garantie sous les étapes */
.guarantee {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.guarantee p {
  color: var(--text-muted);
}

.guarantee strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--heading);
}

@media (min-width: 760px) {
  .guarantee {
    flex-direction: row;
    align-items: center;
  }

  .guarantee .btn {
    margin-left: auto;
  }
}


/* ==========================================================================
   13. TARIFS
   ========================================================================== */

.pricing {
  max-width: 62rem;
  margin-inline: auto;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.price-card__head h3 {
  margin-top: 0;
}

.price-card__desc {
  margin-top: 1rem;
  color: var(--text-muted);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.45rem;
  margin-top: 1.5rem;
}

.price__from {
  width: 100%;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* Choix du délai dans les cartes de prix */
.delay-picker {
  min-width: 0;
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
}

.delay-picker legend {
  margin-bottom: 0.5rem;
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--heading);
}

.price__amount.is-bump {
  animation: bump 0.4s var(--ease);
}

@keyframes bump {
  from { transform: translateY(6px) scale(0.96); opacity: 0.4; }
}

.price__amount {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2.2rem + 2vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--heading);
}

.price__currency {
  font-weight: 700;
  color: var(--heading);
}

.price__extra {
  margin-top: 0.4rem;
  color: var(--brand-text);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.price-card .checklist {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-strong);
}

.price-card__foot {
  margin-top: auto;
  padding-top: 1.75rem;
}

/* Carte mise en avant (logiciels) : sombre */
.price-card--featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 38%),
    var(--bg);
}

.price-card__badge {
  position: absolute;
  top: -0.85rem;
  right: 1.25rem;
}

.pricing__note {
  max-width: 44rem;
  margin: 2rem auto 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}


/* ==========================================================================
   13b. BOUTIQUE « LE SUGU » (outils prêts à l'emploi)
   ========================================================================== */

.shop {
  overflow: hidden;
}

.shop__sugu {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.shop__sugu b {
  color: var(--c-ochre-light);
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-card .chip {
  border-color: rgba(227, 179, 90, 0.3);
  background: rgba(227, 179, 90, 0.12);
  color: var(--c-ochre-light);
}

.product-card h3 {
  margin-top: 1.1rem;
}

.product-card > p {
  margin-bottom: 1.25rem;
}

.product-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border-strong);
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.product-card__price strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.product-card__price span {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.product-card__demo {
  margin-top: 0.9rem;
  color: var(--c-ochre-light);
}

.shop__note a {
  color: var(--c-ochre-light);
  font-weight: 600;
}

/* --- Illustrations des produits (en CSS, sans image) --- */
.product-card--art {
  --pad: clamp(1.35rem, 1rem + 1.2vw, 1.85rem);
  padding: var(--pad);
}

.art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 12rem;
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 1.1rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  perspective: 700px;
}

.product-card .art__kind {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(14, 11, 8, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@keyframes art-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.art-glow {
  position: absolute;
  top: -20%;
  right: -15%;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 220, 150, 0.45), transparent);
}

.art-glow--gold {
  top: -35%;
  right: auto;
  left: 15%;
  background: radial-gradient(closest-side, rgba(227, 179, 90, 0.4), transparent);
}

.art-chip {
  position: absolute;
  bottom: 1.3rem;
  left: 10%;
  padding: 0.35rem 0.65rem;
  border-radius: 99px;
  background: #fffbf4;
  color: #1c6b3a;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 3px 0 -1px #e2d0b3, 0 10px 18px -8px rgba(0, 0, 0, 0.5);
  animation: art-float 7s ease-in-out -3s infinite;
}

.art-chip--light {
  color: #9c4424;
}

.art-line {
  display: block;
  flex: 1;
  height: 0.25rem;
  border-radius: 99px;
  background: #e8dccb;
}

/* Carnet de crédit : téléphone en 3D */
.art--credit {
  place-items: start center;
  padding-top: 1.6rem;
  background: radial-gradient(120% 100% at 30% 0%, #c48a2c, #8e3d22 45%, #2a120a);
}

.art-phone {
  width: 7.4rem;
  height: 13.5rem;
  padding: 0.3rem;
  border-radius: 1.2rem;
  background: linear-gradient(150deg, #3d3128, #0c0907 60%);
  box-shadow:
    1px 1px 0 #2a2119, 2px 2px 0 #241c15, 3px 3px 0 #1e1712, 4px 4px 0 #18120e,
    18px 24px 30px -10px rgba(0, 0, 0, 0.6);
  transform: rotateY(-18deg) rotateX(10deg) rotateZ(2deg);
  animation: art-float 6s ease-in-out infinite;
}

.art-phone__screen {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  height: 100%;
  overflow: hidden;
  border-radius: 0.95rem;
  background: #f7f0e4;
}

.art-phone__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.55rem 1.1rem;
  background: #17120e;
  color: #fbf5ea;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
}

.art-phone__head i {
  width: 1rem;
  height: 0.35rem;
  border-radius: 99px;
  background: #e3b35a;
}

.art-phone__total {
  display: grid;
  margin: -0.85rem 0.4rem 0.1rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.5rem;
  background: #fffbf4;
  box-shadow: 0 2px 0 -1px #e2d0b3, 0 6px 10px -6px rgba(0, 0, 0, 0.4);
}

.art-phone__total small {
  color: #6b5a4a;
  font-size: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.art-phone__total b {
  color: #9c4424;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
}

.art-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0.4rem;
  padding: 0.3rem 0.35rem;
  border: 1px solid rgba(23, 18, 14, 0.06);
  border-radius: 0.45rem;
  background: #fffbf4;
}

.art-av {
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #f1dcae;
}

.art-av--2 { background: #f4cdb8; }
.art-av--3 { background: #d9efe0; }

.art-row b {
  color: #17120e;
  font-size: 0.45rem;
  font-weight: 800;
}

.art-row em {
  padding: 0.05rem 0.25rem;
  border-radius: 99px;
  background: #d9efe0;
  color: #1c6b3a;
  font-size: 0.4rem;
  font-style: normal;
  font-weight: 800;
}

.art-row--paid { opacity: 0.7; }

.art-bubble {
  position: absolute;
  top: 2.4rem;
  right: 20%;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #25d366;
  color: #08200f;
  box-shadow: 0 3px 0 #129447, 0 10px 18px -6px rgba(0, 0, 0, 0.5);
  animation: art-float 5s ease-in-out -1s infinite;
}

.art-bubble .icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* Horloge : anneau « Nuit étoilée » */
.art--clock {
  background: #0b0e1a;
}

.art-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1px 1px at 15% 20%, #fff, transparent),
    radial-gradient(1px 1px at 80% 15%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 78%, #fff, transparent),
    radial-gradient(1px 1px at 30% 82%, #fff, transparent),
    radial-gradient(1px 1px at 88% 52%, #fff, transparent),
    radial-gradient(120% 90% at 50% 110%, #1f2d6b, #0b0e1a 70%);
}

.art-blob {
  position: absolute;
  top: -25%;
  left: -15%;
  z-index: -1;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 140, 255, 0.55), transparent);
}

.art-blob--2 {
  top: auto;
  left: auto;
  right: -15%;
  bottom: -30%;
  background: radial-gradient(closest-side, rgba(176, 107, 255, 0.5), transparent);
}

.art-ring {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 8.5rem;
  height: 8.5rem;
  border: 3px solid transparent;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 60%) padding-box,
    linear-gradient(#0f1430, #0f1430) padding-box,
    conic-gradient(#5b8cff, #b06bff 70%, rgba(255, 255, 255, 0.12) 70%) border-box;
  box-shadow: 0 0 30px rgba(91, 140, 255, 0.35);
  transform: rotateX(14deg) rotateY(-14deg);
  animation: art-float 6s ease-in-out infinite;
}

.art-ring::after {
  content: "";
  position: absolute;
  top: calc(65% - 0.3rem);
  left: calc(2% - 0.3rem);
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #8ab4ff, 0 0 14px #8ab4ff;
}

.art-time {
  color: #fff;
  font-family: var(--font-bubble);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0.045em 0 #5b8cff, 0 0.09em 0 #2f4fa8, 0 0.13em 0.22em rgba(0, 0, 0, 0.45);
}

.art-ring small {
  margin-top: 0.35rem;
  color: rgba(244, 246, 255, 0.7);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Compte à rebours : chiffres à volets */
.art--countdown {
  align-content: center;
  gap: 0.6rem;
  background: radial-gradient(110% 90% at 50% 0%, #8a2a5a, #22081a 75%);
}

.art-sparkles {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, #fff, transparent),
    radial-gradient(1px 1px at 72% 14%, #fff, transparent),
    radial-gradient(2px 2px at 85% 45%, #ffe7b0, transparent),
    radial-gradient(1px 1px at 30% 74%, #fff, transparent),
    radial-gradient(2px 2px at 20% 90%, #ffe7b0, transparent),
    radial-gradient(1px 1px at 90% 82%, #fff, transparent);
  animation: twinkle 3s ease-in-out infinite alternate;
}

.art-cd-title {
  color: #fff3e0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.art-flip {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  transform: rotateX(16deg);
  transform-style: preserve-3d;
  animation: art-float 6s ease-in-out infinite;
}

.art-flip__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 3.6rem;
  border-radius: 0.5rem;
  background: linear-gradient(#352b23 50%, #2b231c 50%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -3px 0 #f7d08a, 0 4px 0 #050403, 0 12px 18px -8px rgba(0, 0, 0, 0.6);
}

.art-flip__tile::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.5);
}

/* Le deuxième chiffre bascule de temps en temps */
.art-flip__tile:last-of-type {
  animation: art-flip 3.2s ease-in-out infinite;
}

@keyframes art-flip {
  0%, 82%, 100% { transform: rotateX(0); }
  90% { transform: rotateX(-90deg); }
}

.art-flip small {
  margin-left: 0.25rem;
  padding-bottom: 0.3rem;
  color: rgba(255, 240, 245, 0.75);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.art-conf {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 0.45rem;
  height: 0.8rem;
  border-radius: 2px;
  background: var(--c);
  rotate: var(--r);
  animation: art-float 4s ease-in-out infinite;
}

/* Reçu : ticket de caisse et tampon « PAYÉ » */
.art--receipt {
  background: radial-gradient(120% 100% at 70% 0%, #f1dcae, #c48a2c 60%, #8e3d22);
}

.art-paper {
  display: grid;
  gap: 0.3rem;
  width: 8.6rem;
  padding: 0.7rem 0.7rem 1.1rem;
  background: #fffdf8;
  color: #17120e;
  filter: drop-shadow(0 18px 14px rgba(60, 25, 5, 0.45));
  transform: rotate(-6deg) rotateX(12deg) translateY(0.6rem);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 6px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 6px repeat-x;
  animation: art-float 6s ease-in-out infinite;
}

.art-paper__title {
  padding-bottom: 0.25rem;
  border-bottom: 1px dashed #c9b9a3;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

.art-paper .art-line { flex: none; height: 0.22rem; }
.art-paper .art-line--short { width: 60%; }

.art-paper__row {
  display: flex;
  justify-content: space-between;
  color: #5e4f42;
  font-size: 0.52rem;
}

.art-paper__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.2rem;
  padding-top: 0.3rem;
  border-top: 1.5px solid #17120e;
  font-size: 0.55rem;
  font-weight: 800;
}

.art-paper__total b {
  color: #9c4424;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.art-stamp {
  position: absolute;
  top: 2.2rem;
  right: 13%;
  padding: 0.2rem 0.55rem;
  border: 3px solid #c2562f;
  border-radius: 0.4rem;
  color: #c2562f;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  rotate: 14deg;
  background: rgba(255, 253, 248, 0.35);
  animation: stamp 4s ease-in-out infinite;
}

@keyframes stamp {
  0%, 70%, 100% { scale: 1; }
  75% { scale: 1.25; }
  82% { scale: 0.95; }
}

/* Calculateur : touches en relief */
.art--calculator {
  background: radial-gradient(120% 100% at 30% 0%, #e0653a, #8e3d22 55%, #2a120a);
}

.art-calc {
  width: 7.6rem;
  margin-top: 1.2rem;
  padding: 0.5rem;
  border-radius: 0.9rem;
  background: linear-gradient(160deg, #3d3128, #17120e);
  box-shadow:
    1px 1px 0 #2a2119, 2px 2px 0 #241c15, 3px 3px 0 #1e1712, 4px 4px 0 #18120e, 5px 5px 0 #120e0b,
    20px 24px 30px -12px rgba(0, 0, 0, 0.6);
  transform: rotateX(18deg) rotateY(14deg) rotateZ(-3deg);
  animation: art-float 6s ease-in-out infinite;
}

.art-calc__screen {
  display: grid;
  justify-items: end;
  padding: 0.35rem 0.45rem;
  border-radius: 0.45rem;
  background: linear-gradient(#cfe6c7, #a9cf9d);
  color: #173d1f;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

.art-calc__screen small {
  font-size: 0.45rem;
  font-weight: 700;
}

.art-calc__screen b {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.art-calc__keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.28rem;
  margin-top: 0.45rem;
}

.art-calc__keys i {
  display: grid;
  place-items: center;
  height: 1.15rem;
  border-radius: 0.35rem;
  background: #3a2e25;
  color: #f3eadb;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 0 #0c0907;
}

.art-calc__keys i.is-eq {
  background: #e3b35a;
  color: #17120e;
  box-shadow: 0 2px 0 #9c6a1e;
}

/* Une touche s'enfonce de temps en temps */
.art-calc__keys i:nth-child(6),
.art-calc__keys i.is-eq {
  animation: key-press 2.6s ease-in-out infinite;
}

.art-calc__keys i.is-eq {
  animation-delay: 0.6s;
}

@keyframes key-press {
  0%, 30%, 100% { translate: 0 0; }
  15% { translate: 0 2px; box-shadow: none; }
}

/* Carte de visite : deux cartes en 3D, recto et QR code */
.art--card {
  background: radial-gradient(120% 100% at 50% 0%, #2e241c, #0e0b08 70%);
}

.art-bcard {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  align-content: end;
  gap: 0.1rem;
  width: 9.8rem;
  height: 5.8rem;
  margin: -2.6rem 0 0 -5.4rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  background: linear-gradient(150deg, #fffbf4, #efe3cf);
  color: #17120e;
  box-shadow: 0 2px 0 #c9b9a3, 0 18px 28px -10px rgba(0, 0, 0, 0.6);
  transform: rotateX(18deg) rotateY(-16deg) rotateZ(-6deg);
  animation: art-float 6s ease-in-out infinite;
}

.art-bcard--back {
  display: grid;
  place-items: center;
  align-content: center;
  background: linear-gradient(150deg, #c2562f, #8e3d22);
  transform: rotateX(18deg) rotateY(-16deg) rotateZ(8deg) translate(1.8rem, -1.2rem);
  animation-delay: -2s;
}

.art-bcard b {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
}

.art-bcard small {
  color: #6b5a4a;
  font-size: 0.5rem;
}

.art-bcard__logo {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.2rem;
  background: linear-gradient(135deg, #e3b35a 50%, #c2562f 50%);
  rotate: 45deg;
}

.art-bcard__wa {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
  background: #25d366;
  color: #08200f;
  font-size: 0.45rem;
  font-weight: 800;
}

.art-bcard__wa .icon {
  width: 0.6rem;
  height: 0.6rem;
}

.art-qr {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.2rem;
  background:
    conic-gradient(#17120e 25%, transparent 0 50%, #17120e 0 75%, transparent 0) 0 0 / 0.45rem 0.45rem,
    #fffbf4;
  box-shadow: 0 0 0 0.25rem #fffbf4;
}


/* --- Réalisations (vrais clients) --- */
.work-card {
  display: flex;
  flex-direction: column;
}

.work-card h3 {
  margin-top: 1rem;
}

.work-card__place {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.work-card__result {
  margin-top: 0.9rem;
  color: var(--text);
}

.work-card__quote {
  position: relative;
  margin: 1.25rem 0 0;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.work-card__quote .icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--c-ochre);
}

.work-card__quote p {
  font-style: italic;
}

.work-card__quote cite {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 600;
}


/* ==========================================================================
   14. FAQ (questions dépliables, sans JavaScript)
   ========================================================================== */

.faq {
  display: grid;
  gap: 0.85rem;
  max-width: 50rem;
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 0 -1px var(--card-edge);
  transition: box-shadow 0.2s;
}

.faq__item[open] {
  box-shadow: 0 4px 0 -1px var(--card-edge), var(--shadow);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--c-ochre-soft);
  color: var(--c-terracotta-dark);
  box-shadow: 0 2px 0 #d6b26c;
  transition: transform 0.3s var(--ease);
}

.faq__icon .icon {
  width: 1rem;
  height: 1rem;
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
}


/* ==========================================================================
   15. CONTACT
   ========================================================================== */

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(1.25rem, 0.5rem + 4vw, 4rem);
  border-radius: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  text-align: center;
  box-shadow: 0 8px 0 -2px #000, var(--shadow-lg);
}

.contact-card .section__head {
  margin-bottom: 2rem;
}

.contact-card__phone {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  margin-top: 2.25rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.contact-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.contact-list .icon {
  color: var(--c-ochre-light);
}

.contact-list a {
  color: var(--text);
  font-weight: 500;
}


/* ==========================================================================
   16. PIED DE PAGE
   ========================================================================== */

.site-footer {
  font-size: var(--fs-sm);
}

.footer__inner {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2.5rem;
}

@media (min-width: 760px) {
  .footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer__brand p {
  max-width: 22rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

.footer__brand .footer__seo {
  margin-top: 0.75rem;
  font-size: var(--fs-xs);
  opacity: 0.8;
}

.footer__title {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ochre-light);
}

.footer__links {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  color: var(--text);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--c-ochre-light);
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}


/* ==========================================================================
   16b. QUESTIONNAIRE (questionnaire.html)
   ========================================================================== */

.q-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--border);
}

.q-back-link .icon {
  transform: rotate(180deg);
}

.q-back-link:hover {
  border-color: var(--border-strong);
}

@media (max-width: 419.98px) {
  .q-back-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

.q-main {
  min-height: calc(100vh - var(--header-h));
  padding-block: clamp(1.75rem, 1rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 6rem);
}

.q-layout {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 3.5rem);
  align-items: start;
}

@media (min-width: 980px) {
  .q-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .q-intro {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
  }
}

.q-intro h1 {
  margin-top: 0.75rem;
  font-size: clamp(1.6rem, 1.2rem + 3vw, 3.4rem);
}

.q-intro .lead {
  margin-top: 0.75rem;
}

/* Téléphone : intro compacte, pour voir vite la première question */
@media (max-width: 979.98px) {
  .q-intro .lead {
    font-size: var(--fs-sm);
  }

  .q-saved {
    margin-top: 0.75rem;
    font-size: var(--fs-xs);
  }
}

.q-promises {
  display: none;
  gap: 1rem;
  margin-top: 2rem;
}

.q-promises li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.q-promises b {
  display: block;
  color: var(--heading);
}

.q-promises small {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

@media (min-width: 980px) {
  .q-promises { display: grid; }
}

.q-saved {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.q-saved__reset {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-text);
  font-weight: 600;
  text-decoration: underline;
}

/* La carte du questionnaire */
.q-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 1rem + 2vw, 2.5rem);
  padding-top: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background:
    linear-gradient(180deg, var(--card-sheen), transparent 25%),
    var(--surface);
  box-shadow: 0 8px 0 -2px var(--card-edge), var(--shadow-lg);
}

/* Barre de progression lumineuse */
.q-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: var(--bg-alt);
}

.q-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(90deg, var(--c-ochre-light), var(--c-terracotta));
  box-shadow: 0 0 14px rgba(227, 179, 90, 0.8);
  transition: width 0.6s var(--ease);
}

.q-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.q-count {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.q-dots {
  display: flex;
  gap: 0.3rem;
}

.q-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 99px;
  background: var(--border-strong);
  transition: width 0.35s var(--ease), background-color 0.3s;
}

.q-dot.is-done {
  background: var(--c-ochre);
}

.q-dot.is-current {
  width: 1.4rem;
  background: var(--c-terracotta);
}

.q-noscript {
  margin-top: 1rem;
  color: var(--text-muted);
}

/* Une étape = une question */
.q-step {
  min-height: 19rem;
  margin-top: 1.25rem;
}

.q-step.is-entering {
  animation: q-in 0.5s var(--ease);
}

@keyframes q-in {
  from {
    opacity: 0;
    transform: perspective(900px) translateX(calc(var(--dir, 1) * 28px)) rotateY(calc(var(--dir, 1) * -8deg));
  }
}

.q-step__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.q-step__title {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  line-height: 1.15;
  outline: none;
}

.q-step__hint {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.opt {
  color: var(--text-muted);
  font-weight: 500;
}

.q-sublabel {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--heading);
}

.q-fields {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.input--lg {
  min-height: 3.4rem;
  font-size: 1.0625rem;
}

textarea.input {
  min-height: 7.5rem;
  line-height: 1.5;
  resize: vertical;
}

.suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.suggest .chip-btn {
  box-shadow: 0 2px 0 var(--border-strong);
}

.suggest .chip-btn.is-used {
  border-color: var(--c-ochre);
  background: rgba(227, 179, 90, 0.18);
}

/* Cartes de réponse (en relief) */
.choices {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.choices--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice__card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 1.1rem;
  background: var(--surface-2);
  box-shadow: 0 4px 0 -1px var(--card-edge);
  pointer-events: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease);
}

.choice:hover .choice__card {
  border-color: var(--c-ochre);
  transform: translateY(-2px);
}

.choice input:checked + .choice__card {
  border-color: var(--c-ochre);
  background:
    linear-gradient(180deg, rgba(227, 179, 90, 0.22), rgba(227, 179, 90, 0.06)),
    var(--surface);
  box-shadow: 0 0 0 3px rgba(196, 138, 44, 0.25), 0 6px 0 -1px #c48a2c;
  transform: translateY(-3px);
}

.choice input:focus-visible + .choice__card {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.choice__text {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 0.1rem;
}

.choice__text b {
  color: var(--heading);
  font-size: 1.02rem;
  line-height: 1.3;
}

.choice__text small {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.choice__text .choice__price {
  color: var(--brand-text);
  font-weight: 700;
}

.choice__check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  color: transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease);
}

.choice__check .icon {
  width: 1rem;
  height: 1rem;
}

.choice__check--box {
  border-radius: 0.45rem;
}

.choice input:checked + .choice__card .choice__check {
  border-color: var(--c-ochre);
  background: var(--c-ochre);
  color: #fff;
  transform: scale(1.12);
}

/* Variante haute (icône au-dessus) pour les choix en 3 colonnes */
@media (min-width: 600px) {
  .choice--tall .choice__card {
    flex-direction: column;
    justify-content: center;
    min-height: 9rem;
    padding: 1.25rem 0.75rem;
    text-align: center;
  }

  .choice--tall .choice__check {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
  }
}

.choice--chip .choice__card {
  padding: 0.6rem 1.1rem;
  border-radius: 99px;
}

.choice--chip .choice__text b {
  font-size: var(--fs-sm);
}

/* Boutons Retour / Continuer */
.q-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-strong);
}

.q-nav [data-q-next] {
  min-width: 0;
  margin-left: auto;
}

@media (max-width: 419.98px) {
  .q-nav .btn {
    padding-inline: 1rem;
  }
}

.q-nav .icon-back {
  transform: rotate(180deg);
}

/* Récapitulatif */
.q-recap__head {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
}

.q-recap__head p {
  max-width: 36rem;
  color: var(--text-muted);
}

.q-recap__badge {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(155deg, #f2c86e, var(--c-terracotta));
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 6px 0 #7f331a, 0 18px 30px -12px rgba(194, 86, 47, 0.7);
  animation: badge-pop 0.7s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.q-recap__badge .icon {
  width: 2rem;
  height: 2rem;
}

@keyframes badge-pop {
  from { transform: scale(0.4) rotate(-20deg); opacity: 0; }
}

.q-recap__list {
  display: grid;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
}

.q-recap__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.15rem 0.75rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface-2);
}

.q-recap__row dt {
  grid-column: 1;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.q-recap__row dd {
  grid-column: 1;
  margin: 0;
  color: var(--heading);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.q-recap__edit {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 0.45rem 0.6rem;
  border: 0;
  background: none;
  color: var(--brand-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: underline;
}

.q-preview {
  margin-top: 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: 0.9rem;
}

.q-preview summary {
  padding: 0.8rem 1rem;
  color: var(--heading);
  font-weight: 600;
  cursor: pointer;
}

.q-preview__text {
  max-height: 18rem;
  margin: 0;
  padding: 0 1rem 1rem;
  overflow: auto;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  white-space: pre-wrap;
}

.q-recap__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.q-recap__note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

.q-page .footer__bottom a {
  color: var(--text);
}


/* ==========================================================================
   16c. PAGE 404
   ========================================================================== */

.notfound {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  padding-block: 3rem;
  text-align: center;
}

.notfound__inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 44rem;
}

/* « 404 » en relief, comme les chiffres des étapes */
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 4rem + 12vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--c-ochre-light);
  text-shadow:
    2px 2px 0 #d39e43, 4px 4px 0 #c48a2c, 6px 6px 0 #b5742a,
    8px 8px 0 #a85f27, 10px 10px 0 #9c4424, 12px 12px 0 #8a3b1f,
    20px 24px 30px rgba(60, 30, 10, 0.35);
  animation: float 6s ease-in-out infinite;
}

.notfound h1 {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
}

.notfound__actions {
  justify-content: center;
  margin-top: 1rem;
}


/* ==========================================================================
   16d. ANIMATIONS D'APPARITION
   --------------------------------------------------------------------------
   Le hero apparaît en douceur au chargement ; les autres blocs glissent
   en place quand ils entrent à l'écran (activé par main.js).
   ========================================================================== */

.js .hero__content > * {
  animation: rise-in 0.8s var(--ease) both;
}

.js .hero__content > :nth-child(2) { animation-delay: 0.08s; }
.js .hero__content > :nth-child(3) { animation-delay: 0.16s; }
.js .hero__content > :nth-child(4) { animation-delay: 0.24s; }
.js .hero__content > :nth-child(5) { animation-delay: 0.32s; }

.js .scene {
  animation: rise-in 1s 0.2s var(--ease) both;
}

@keyframes rise-in {
  from { opacity: 0; translate: 0 26px; }
}

.reveal-ready .reveal {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.7s var(--ease) var(--reveal-delay, 0ms),
    translate 0.7s var(--ease) var(--reveal-delay, 0ms);
}

/* Les cartes qui s'inclinent gardent aussi leur propre transition */
.reveal-ready .reveal[data-tilt]:not(.is-tilting) {
  transition:
    opacity 0.7s var(--ease) var(--reveal-delay, 0ms),
    translate 0.7s var(--ease) var(--reveal-delay, 0ms),
    transform 0.5s var(--ease),
    box-shadow 0.3s;
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}


/* ==========================================================================
   16e. ESPACE CLIENT (compte.html) ET ADMIN (admin.html)
   ========================================================================== */

.acct-main {
  min-height: calc(100vh - var(--header-h));
  padding-block: clamp(1.75rem, 1rem + 4vw, 4rem) clamp(3rem, 2rem + 4vw, 6rem);
}

.acct-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-block: 4rem;
  color: var(--text-muted);
  font-weight: 600;
}

.spinner {
  width: 1.4rem;
  height: 1.4rem;
  border: 3px solid var(--border-strong);
  border-top-color: var(--c-ochre);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { rotate: 360deg; } }

.acct-layout {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 3.5rem);
  align-items: start;
}

@media (min-width: 980px) {
  .acct-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); }
}

.acct-intro h1 {
  margin-top: 0.75rem;
  font-size: clamp(1.6rem, 1.2rem + 3vw, 3.2rem);
}

.acct-intro .lead { margin-top: 0.75rem; }

.acct-card {
  display: grid;
  gap: 1.25rem;
}

/* Onglets (boutons posés dans une barre .seg) */
.acct-tab {
  flex: 1 1 0;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0.85rem;
  background: none;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.acct-tab:hover { color: var(--heading); }

.acct-tab[aria-selected="true"] {
  background-color: var(--heading);
  color: var(--bg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.acct-form {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.acct-form__title {
  margin: 0;
  font-size: var(--fs-h3);
}

.acct-form--inline {
  margin-top: 1rem;
}

@media (min-width: 760px) {
  .acct-form--inline {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
  }
  .acct-form--inline .field__error { grid-column: 1 / -1; }
}

.acct-help,
.acct-muted {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.acct-help a { color: var(--brand-text); font-weight: 600; }

.acct-ok {
  color: #1f9d55;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.acct-ok:empty { display: none; }

.acct-alert {
  padding: 1rem 1.25rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.acct-alert-card {
  margin-bottom: 2rem;
  border-color: var(--c-ochre);
}

.acct-alert-card > p { margin-top: 0.5rem; }

/* Numéro : indicatif + numéro */
.phone-field {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
  gap: 0.5rem;
}

.phone-field__code { padding-inline: 0.6rem; }

/* Mot de passe avec bouton « afficher » */
.pass-field { position: relative; }
.pass-field .input { padding-right: 3.25rem; }

.pass-field__toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.65rem;
  background: none;
  color: var(--text-muted);
  translate: 0 -50%;
}

.pass-field__toggle[aria-pressed="true"] { color: var(--brand-text); }

/* Case à cocher lisible */
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--fs-sm);
  cursor: pointer;
}

.check input {
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.1rem 0 0;
  accent-color: var(--c-terracotta);
}

.check--box {
  align-self: end;
  align-items: center;
  min-height: 3rem;
  padding: 0 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 0.85rem;
  font-weight: 600;
}

.btn.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.btn--danger:hover {
  border-color: #e5674a;
  color: #e5674a;
  box-shadow: 0 4px 0 #e5674a;
}

/* --- Espace client connecté --- */
.acct-hello {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.acct-hello__title {
  margin-top: 0.5rem;
  font-size: clamp(1.8rem, 1.3rem + 2.5vw, 3rem);
}

.acct-hello .lead { margin-top: 0.35rem; }

.acct-block + .acct-block { margin-top: 3rem; }

.acct-block__title {
  margin-bottom: 1.25rem;
  font-size: var(--fs-h3);
}

.acct-projects {
  display: grid;
  gap: var(--grid-gap);
}

.acct-empty {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
}

.acct-empty h3 { margin: 0.5rem 0 0; }
.acct-empty .cluster { margin-top: 0.5rem; }

.project__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.project__head h3 { margin-top: 0.6rem; }

.project__status,
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

[data-status="demo"],
[data-status="nouveau"],
[data-status="attente"] {
  background: var(--c-ochre-soft);
  color: var(--c-ink);
  box-shadow: 0 2px 0 #d6b26c;
}

[data-status="ajustements"],
[data-status="en_cours"] {
  background: #f4cdb8;
  color: #5a230f;
  box-shadow: 0 2px 0 #d9977a;
}

[data-status="livre"],
[data-status="publie"],
[data-status="traite"],
.status-chip.is-paid {
  background: #c9f2d8;
  color: #0b4d26;
  box-shadow: 0 2px 0 #7fd3a0;
}

[data-status="refuse"],
.status-chip.is-unpaid {
  background: #fbd5cc;
  color: #7a1f0c;
  box-shadow: 0 2px 0 #e9a291;
}

/* Frise des 4 étapes */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  right: 50%;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--border-strong);
  z-index: 0;
}

.timeline li:first-child::before { display: none; }

.timeline__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 3px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
}

.timeline li.is-done { color: var(--heading); }
.timeline li.is-done::before,
.timeline li.is-current::before { background: var(--c-ochre); }

.timeline li.is-done .timeline__dot {
  border-color: var(--c-ochre);
  background: var(--c-ochre);
  box-shadow: inset 0 0 0 3px var(--surface);
}

.timeline li.is-current { color: var(--heading); }

.timeline li.is-current .timeline__dot {
  border-color: var(--c-terracotta);
  background: var(--c-terracotta);
  box-shadow: 0 0 0 5px rgba(194, 86, 47, 0.22);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  50% { box-shadow: 0 0 0 9px rgba(194, 86, 47, 0); }
}

.project__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 1.5rem;
}

.project__facts dt {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project__facts dd {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
}

.project__paid {
  margin-left: 0.25rem;
  color: #c2562f;
  font-size: var(--fs-sm);
}

.project__paid.is-paid { color: #1f9d55; }

.project__note {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--c-ochre);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2);
}

.project__note p { white-space: pre-line; }

.project__note cite {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-style: normal;
  font-weight: 600;
}

.project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.project__review:not(:empty) {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-strong);
}

.review-form {
  display: grid;
  gap: 0.9rem;
}

.review-form h4 {
  font-size: 1.05rem;
}

.review-done {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--heading);
  font-weight: 600;
}

.review-done .icon { color: var(--c-ochre); }

/* Étoiles à toucher (« .rating » : « .stars » sert déjà au ciel des démos) */
.rating {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.rating__star {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--border-strong);
  cursor: pointer;
  transition: transform 0.15s var(--ease), color 0.15s;
}

.rating__star input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.rating__star .icon {
  width: 2.1rem;
  height: 2.1rem;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.2));
}

.rating__star.is-on { color: #f5b301; }
.rating__star:hover { transform: translateY(-2px) scale(1.08); }
.rating__star input:focus-visible + .icon { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.stars-view {
  display: inline-flex;
  gap: 0.1rem;
  color: var(--border-strong);
}

.stars-view .icon { width: 1.1rem; height: 1.1rem; }
.stars-view .icon.is-on { color: #f5b301; }

/* --- Avis clients sur l'accueil --- */
.reviews {
  columns: 19rem;
  column-gap: var(--grid-gap);
}

.reviews--few {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--grid-gap);
  columns: auto;
}

.review-card {
  display: grid;
  gap: 0.85rem;
  margin-bottom: var(--grid-gap);
  break-inside: avoid;
}

.reviews--few .review-card {
  flex: 0 1 26rem;
  margin-bottom: 0;
}

.review-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.review-card .stars-view .icon { width: 1.25rem; height: 1.25rem; }

.review-card blockquote {
  margin: 0;
  color: var(--heading);
  font-size: 1.05rem;
  line-height: 1.55;
}

.review-card blockquote p::before { content: "« "; color: var(--brand-text); font-weight: 700; }
.review-card blockquote p::after { content: " »"; color: var(--brand-text); font-weight: 700; }

.review-card__who {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.review-card__who b { color: var(--heading); }

.review-card small {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.reviews__score {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--heading);
  font-weight: 700;
  box-shadow: 0 3px 0 var(--card-edge);
}

.reviews__score:empty { display: none; }
.reviews__score .icon { width: 1.3rem; height: 1.3rem; }

/* --- Admin --- */
.admin-badge {
  margin-left: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--c-ink);
  color: var(--c-ochre-light);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Téléphone : le cube + « Admin » suffisent, pour garder les boutons sur la même ligne */
@media (max-width: 479.98px) {
  .admin-page .logo [data-logo] { display: none; }
  .admin-page .header__actions { gap: 0.35rem; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 0.8rem 0.9rem; }
  .stat b { font-size: 1.6rem; }
}

.admin-login {
  display: grid;
  justify-items: center;
}

.admin-login .acct-card {
  width: min(100%, 26rem);
  justify-items: start;
}

.admin-login .acct-card > .field,
.admin-login .acct-card > .btn { width: 100%; }

.admin__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.admin__head h1 { margin-top: 0.4rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.75rem;
  margin-block: 1.75rem;
}

.stat {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card-sheen), transparent 40%), var(--surface);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: left;
  box-shadow: 0 4px 0 -1px var(--card-edge), var(--shadow);
  transition: transform 0.15s var(--ease);
}

.stat:hover { transform: translateY(-2px); }

.stat b {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--heading);
}

.stat.is-hot {
  border-color: var(--c-ochre);
  box-shadow: 0 4px 0 -1px #d6b26c, 0 0 0 3px rgba(196, 138, 44, 0.18), var(--shadow);
}

.stat.is-hot b { color: var(--brand-text); }

.admin-tabs { width: 100%; }

.admin-error { margin-top: 1rem; }

.admin-panel { margin-top: 1.5rem; }

.admin-panel__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-panel__bar .acct-muted { max-width: 40rem; }

.admin-filter span { padding: 0.45rem 0.85rem; }

.admin-list {
  display: grid;
  gap: 1rem;
}

.admin-item {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
}

.admin-item.is-new { border-color: var(--c-ochre); }

.admin-item h3 { margin: 0.15rem 0 0; font-size: 1.1rem; }

.admin-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-item__head > div:first-child { min-width: 0; }

.admin-item__head .input { width: auto; }

.admin-item__meta {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}

.admin-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-item .card__link { overflow-wrap: anywhere; }

.admin-details summary {
  color: var(--brand-text);
  font-weight: 600;
  cursor: pointer;
}

.admin-pre,
.admin-note {
  margin-top: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.admin-quote {
  margin: 0;
  padding-left: 1rem;
  border-left: 4px solid var(--c-ochre);
}

.admin-quote p { white-space: pre-line; }

.admin-quote cite {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 600;
}

.admin-empty {
  padding: 2rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  text-align: center;
}

.input--sm {
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  font-size: var(--fs-sm);
}

textarea.input { resize: vertical; line-height: 1.5; }

/* Fenêtres (en bas d'écran sur téléphone) */
.sheet {
  width: min(100% - 1rem, 34rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.sheet::backdrop {
  background: rgba(10, 8, 6, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.sheet[open] { animation: sheet-in 0.35s var(--ease); }

@keyframes sheet-in {
  from { opacity: 0; translate: 0 2rem; }
}

.sheet__body {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sheet__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.temp-pass code {
  display: block;
  padding: 1rem;
  border: 2px dashed var(--c-ochre);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--heading);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  user-select: all;
}


/* ==========================================================================
   16f. MOTION DESIGN DU SITE (titres, rubans, progression, boutons)
   Tout est désactivé si le visiteur a demandé moins d'animations.
   ========================================================================== */

/* --- Titres : les mots montent un par un depuis une fente --- */
.kw {
  display: inline-block;
  overflow: hidden;
  padding-block: 0.14em 0.14em; /* place pour les accents (É) et les jambages (g, p) */
  margin-block: -0.14em;
  vertical-align: bottom;
}

.kw__in {
  display: inline-block;
}

/* Titre du hero : au chargement */
.kinetic-ready .hero__title .kw__in {
  animation: kw-rise 0.9s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms + 120ms);
}

@keyframes kw-rise {
  from {
    opacity: 0;
    transform: translateY(110%) rotate(5deg);
  }
}

/* Surlignage « pinceau » qui se pose après les mots */
.kinetic-ready .hero__title .mark {
  background-repeat: no-repeat;
  animation: mark-paint 0.8s 1.1s var(--ease) both;
}

@keyframes mark-paint {
  from { background-size: 0% 100%; }
  to { background-size: 100% 100%; }
}

/* Titres de section : quand la section arrive à l'écran */
.kinetic-ready.reveal-ready .section__head.reveal .kw__in {
  opacity: 0;
  transform: translateY(110%) rotate(4deg);
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
  transition-delay: calc(var(--i) * 45ms + 150ms);
}

.kinetic-ready.reveal-ready .section__head.reveal.is-visible .kw__in {
  opacity: 1;
  transform: none;
}

.reveal-ready .section__head.is-visible .eyebrow::before {
  animation: eyebrow-spin 0.9s var(--ease) both;
}

@keyframes eyebrow-spin {
  from { transform: rotate(-135deg) scale(0); }
}

/* --- Rubans qui défilent en biais, entre le hero et la suite --- */
.ribbons {
  position: relative;
  z-index: 2;
  height: clamp(5.5rem, 4rem + 4vw, 8rem);
  margin-block: -1rem;
  overflow: hidden;
  pointer-events: none;
}

.ribbon {
  position: absolute;
  left: -5%;
  width: 110%;
  padding-block: 0.7rem;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-transform: uppercase;
}

.ribbon--a {
  top: 18%;
  z-index: 1;
  background: var(--c-ink);
  color: var(--c-ochre-light);
  rotate: -2.2deg;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}

.ribbon--b {
  top: 30%;
  background: var(--c-terracotta);
  color: #fff3e3;
  rotate: 1.6deg;
}

.ribbon__track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  animation: ribbon-scroll 38s linear infinite;
  animation-play-state: paused;
}

.ribbon--b .ribbon__track {
  animation-duration: 46s;
  animation-direction: reverse;
}

.ribbons.is-on .ribbon__track { animation-play-state: running; }

.ribbon__track i {
  flex-shrink: 0;
  width: 0.55em;
  height: 0.55em;
  background: currentColor;
  transform: rotate(45deg);
  opacity: 0.85;
}

@keyframes ribbon-scroll {
  to { transform: translateX(-50%); }
}

/* --- Barre de progression de lecture (sous l'en-tête) --- */
.scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-ochre), var(--c-terracotta), var(--c-accent));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: scroll-grow linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes scroll-grow {
  to { transform: scaleX(1); }
}

/* --- Boutons aimantés (le déplacement est réglé par JavaScript) --- */
.btn--lg,
.btn--xl {
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s var(--ease), box-shadow 0.15s var(--ease), translate 0.35s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .ribbon__track { animation: none; }
  .scroll-progress { display: none; }
}


/* ==========================================================================
   17. UTILITAIRES ET MOUVEMENT RÉDUIT
   ========================================================================== */

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

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
