/* ==========================================================================
   LiveAI — séquence de motion design.

   Cinq actes enchaînés, joués en direct dans le navigateur. Pas une vidéo :
   nette à toute résolution, quelques kilo-octets au lieu de plusieurs
   mégaoctets, et la boucle est sans couture puisque la scène se remonte
   pendant la transition.

   Règle d'exécution : on n'anime QUE `transform`, `opacity` et `clip-path`.
   Tout le reste (largeur, hauteur, marges) force un recalcul de mise en page
   à chaque image et fait tomber la fluidité.

   Les états sont ici, la chronologie dans assets/demo.js.
   ========================================================================== */

.demo { padding: clamp(40px, 6vw, 84px) 0 clamp(52px, 7vw, 96px); }

/* --- le cadre ------------------------------------------------------------ */
.mo {
  position: relative; margin-top: clamp(24px, 4vw, 42px);
  border: 1px solid var(--bord); border-radius: 16px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #17131C 0%, var(--nuit) 62%);
  aspect-ratio: 16 / 9;
  box-shadow: 0 40px 90px -34px rgba(0, 0, 0, 0.92);
  contain: paint;
}

/* Grain discret : sans lui, les aplats sombres font « écran éteint ». */
.mo::after {
  content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 3px 3px;
}

.mo__acte {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(18px, 4vw, 54px);
  opacity: 0; visibility: hidden;
  transform: translateY(26px) scale(1.03);
  filter: blur(5px);
  transition: opacity 520ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 520ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 520ms;
}
.mo__acte[data-actif="oui"] {
  opacity: 1; visibility: visible; transform: none; filter: none;
  transition-delay: 0s, 0s, 0s, 0s;
}
/* L'acte qui sort part vers le HAUT, celui qui entre vient du bas : une
   direction constante fait avancer le récit, là où un fondu seul ne raconte
   rien. */
.mo__acte[data-sortie="oui"] { transform: translateY(-26px) scale(0.985); }

/* will-change seulement pendant la transition : le déclarer en permanence
   force le navigateur à garder une couche composite par acte, pour rien. */
.mo__acte[data-actif="oui"],
.mo__acte[data-sortie="oui"] { will-change: transform, opacity, filter; }

/* --- barre de progression ------------------------------------------------ */
/* Brève pulsation de la bordure à chaque changement d'acte : elle donne au
   montage une respiration, comme une frappe sur une table de montage. */
.mo[data-battement="oui"] { animation: mo-battre 440ms cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes mo-battre {
  0%   { border-color: var(--bord); }
  34%  { border-color: var(--accent); }
  100% { border-color: var(--bord); }
}

/* Barre de progression.

   Collée au bord inférieur sur toute la largeur, ses extrémités plongeaient
   dans les angles arrondis du cadre (rayon 16 px) et s'y faisaient rogner :
   elle semblait commencer et finir hors champ. On la rentre donc dans le
   cadre, sur la MÊME gouttière que le repère d'acte — les deux partagent
   désormais le même alignement. */
.mo__progres {
  position: absolute; z-index: 8;
  left: clamp(14px, 3vw, 30px);
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(12px, 2.4vw, 22px);
  height: 3px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}
.mo__progres span {
  display: block; height: 100%; width: 100%; border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* --- repère d'acte ------------------------------------------------------- */
.mo__repere {
  position: absolute; left: clamp(14px, 3vw, 30px); top: clamp(12px, 2.6vw, 26px); z-index: 7;
  display: flex; align-items: center; gap: 10px;
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-faible);
}
.mo__repere b { color: var(--accent); font-weight: 500; }
/* Le chapitre precede le numero d acte : sans lui, on ne sait pas si l acte 07
   appartient au travail ou a l abonnement. */
.mo__repere em {
  font-style: normal; color: var(--encre-douce);
  border-right: 1px solid var(--bord); padding-right: 10px;
}
@media (max-width: 560px) { .mo__repere em { display: none; } }

/* ==========================================================================
   Acte 1 — typographie cinétique
   ========================================================================== */
.mo__mots { display: flex; flex-direction: column; gap: clamp(2px, 0.8vw, 8px); text-align: center; }
.mo__mot {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(30px, 6.4vw, 82px); font-weight: 800;
  letter-spacing: -0.045em; line-height: 1.0; color: var(--encre);
  clip-path: inset(0 100% 0 0);
  transform: translateY(0.14em);
  transition: clip-path 620ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mo__mot[data-vu="oui"] { clip-path: inset(0 0 0 0); transform: none; }
.mo__mot em { font-style: normal; color: var(--accent); }

.mo__trait {
  width: min(380px, 62%); height: 2px; background: var(--accent); margin-top: 18px;
  transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform 740ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mo__trait[data-vu="oui"] { transform: scaleX(1); }

/* ==========================================================================
   Acte 2 — la demande
   ========================================================================== */
.mo__demande { width: min(680px, 100%); }
.mo__saisie {
  border: 1px solid var(--bord); border-radius: 12px; background: var(--surface);
  padding: clamp(14px, 2.4vw, 22px) clamp(16px, 2.6vw, 24px);
  font-size: clamp(14px, 2vw, 19px); line-height: 1.5; color: var(--encre);
  box-shadow: 0 0 0 0 var(--accent-voile);
  transition: box-shadow 320ms, border-color 320ms, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mo__saisie[data-actif="oui"] { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-voile); }
.mo__saisie[data-envoi="oui"] { transform: scale(0.985); }
.mo__caret {
  display: inline-block; width: 2px; height: 1.05em; vertical-align: -0.18em;
  background: var(--accent); margin-left: 3px;
}
/* Un curseur réel ne clignote PAS pendant la frappe : il ne bat qu'à l'arrêt.
   Le détail est minuscule, et c'est lui qui sépare « une animation » de
   « quelqu'un en train de taper ». */
.mo__caret[data-frappe="non"] { animation: mo-clignote 1s steps(2) infinite; }
@keyframes mo-clignote { 50% { opacity: 0; } }

/* Onde d'envoi : elle matérialise le départ de la requête. */
.mo__onde {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  opacity: 0; transform: scale(0.4); pointer-events: none;
}
.mo__onde[data-vu="oui"] { animation: mo-onde 1100ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes mo-onde {
  0% { opacity: 0.85; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(18); }
}

/* ==========================================================================
   Acte 3 — l'agent travaille
   ========================================================================== */
.mo__travail { width: min(820px, 100%); display: block; }
.mo__etapes { display: flex; flex-direction: column; gap: 8px; }
.mo__etape {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--bord); border-radius: 9px; background: var(--surface);
  padding: clamp(9px, 1.5vw, 13px) clamp(12px, 2vw, 17px);
  font-family: "IBM Plex Mono", monospace; font-size: clamp(11px, 1.5vw, 14px);
  color: var(--encre-douce);
  opacity: 0; transform: translateX(-26px);
  transition: opacity 320ms, transform 560ms cubic-bezier(0.16, 1, 0.3, 1), border-color 320ms;
}
.mo__etape[data-vu="oui"] { opacity: 1; transform: none; }
.mo__etape[data-actif="oui"] { border-color: var(--accent); }
.mo__puce { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.mo__role { color: var(--encre-faible); min-width: 72px; }
.mo__duree { margin-left: auto; color: var(--encre-faible); font-size: 0.86em; font-variant-numeric: tabular-nums; }

/* Liseré de progression : l'étape ne se contente pas d'apparaître, elle
   s'exécute. C'est ce qui donne la sensation de temps réel plutôt que de
   diaporama. */
.mo__etape { position: relative; overflow: hidden; }
.mo__etape::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); opacity: 0.8;
  transform: scaleX(0); transform-origin: 0 50%;
}
.mo__etape[data-actif="oui"]::after { animation: mo-remplir 640ms cubic-bezier(0.33, 0, 0.2, 1) forwards; }
@keyframes mo-remplir { to { transform: scaleX(1); } }

/* ==========================================================================
   Acte 4 — le résultat
   ========================================================================== */
.mo__resultat { width: min(840px, 100%); display: flex; gap: clamp(12px, 2.4vw, 26px); align-items: stretch; }
.mo__colonne { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.mo__diff {
  border: 1px solid var(--bord); border-radius: 10px; overflow: hidden;
  font-family: "IBM Plex Mono", monospace; font-size: clamp(10px, 1.35vw, 12.5px);
  background: var(--nuit);
}
.mo__diff-tete {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--surface-2); border-bottom: 1px solid var(--bord); color: var(--encre-douce);
}
.mo__compte { margin-left: auto; display: flex; gap: 9px; font-variant-numeric: tabular-nums; }
.mo__plus { color: #7FD6A0; }
.mo__moins { color: #F2889E; }
.mo__ligne {
  padding: 2px 12px; line-height: 1.8; white-space: pre;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mo__ligne[data-vu="oui"] { clip-path: inset(0 0 0 0); }
.mo__ligne.ajout { color: #7FD6A0; background: rgba(95, 203, 139, 0.1); }
.mo__ligne.retrait { color: #F2889E; background: rgba(236, 95, 128, 0.1); }
.mo__ligne.contexte { color: var(--encre-faible); }

.mo__apercu {
  flex: 0 0 36%; border: 1px solid var(--bord); border-radius: 10px; overflow: hidden;
  background: var(--surface);
  transform: translateX(26px) scale(0.96); opacity: 0;
  transition: transform 680ms cubic-bezier(0.16, 1, 0.3, 1), opacity 420ms;
}
.mo__apercu[data-vu="oui"] { transform: none; opacity: 1; }
.mo__apercu-tete {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid var(--bord);
  font-family: "IBM Plex Mono", monospace; font-size: 10px; color: var(--encre-faible);
}
.mo__onglet {
  margin-left: auto; background: var(--accent); color: #17070D;
  border-radius: 4px; padding: 3px 9px; font-size: 10.5px; font-weight: 600;
}
.mo__faux { padding: 12px; }
.mo__bloc {
  border-radius: 4px; background: var(--bord-clair); margin-bottom: 6px;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mo__bloc[data-vu="oui"] { transform: scaleX(1); }
.mo__bloc.titre { height: 10px; width: 70%; background: var(--accent); }
.mo__bloc.l1 { height: 5px; width: 100%; }
.mo__bloc.l2 { height: 5px; width: 84%; }
.mo__bloc.l3 { height: 5px; width: 62%; }
.mo__bloc.carre { height: 34px; width: 100%; margin-top: 10px; }

/* ==========================================================================
   Acte 5 — signature
   ========================================================================== */
.mo__signature { text-align: center; position: relative; }

/* Convergence : les points du raisonnement rejoignent le logo. La séquence se
   referme sur son sujet au lieu de simplement s'arrêter. */
.mo__converge { position: absolute; inset: 0; pointer-events: none; }
.mo__grain {
  position: absolute; left: 50%; top: 38%; width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--accent-vif);
  opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.55);
}
.mo__converge[data-vu="oui"] .mo__grain {
  animation: mo-converger 1250ms cubic-bezier(0.3, 0, 0.2, 1) forwards;
  animation-delay: var(--retard);
}
@keyframes mo-converger {
  0%   { opacity: 0;    transform: translate(var(--dx), var(--dy)) scale(0.55); }
  20%  { opacity: 0.95; }
  100% { opacity: 0;    transform: translate(0, 0) scale(0.18); }
}
.mo__etoile {
  width: clamp(54px, 9vw, 92px); height: clamp(54px, 9vw, 92px);
  margin: 0 auto clamp(14px, 2.4vw, 24px);
  opacity: 0; transform: scale(0.3) rotate(-110deg);
  transition: opacity 520ms, transform 940ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mo__etoile[data-vu="oui"] { opacity: 1; transform: none; }
.mo__etoile svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 26px rgba(236, 95, 128, 0.55)); }

.mo__phrase {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(19px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.03em;
  color: var(--encre); margin: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 680ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mo__phrase[data-vu="oui"] { clip-path: inset(0 0 0 0); }
.mo__sous {
  margin: clamp(8px, 1.4vw, 14px) 0 0;
  font-family: "IBM Plex Mono", monospace; font-size: clamp(10px, 1.4vw, 12.5px);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--encre-faible);
  opacity: 0; transform: translateY(8px);
  transition: opacity 460ms, transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mo__sous[data-vu="oui"] { opacity: 1; transform: none; }

/* ==========================================================================
   Adaptation
   ========================================================================== */
@media (max-width: 880px) {
  /* En portrait, un cadre 16/9 ne laisse presque rien : on passe en 4/5, le
     format qui donne de la place à la typographie. */
  .mo { aspect-ratio: 4 / 5; }
  .mo__resultat { flex-direction: column; }
  .mo__apercu { flex: 0 0 auto; }
  .mo__role { min-width: 0; }
  .mo__duree { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* Mouvement refusé : les actes se succèdent sans transformation, et chaque
     élément est montré d'emblée. On perd l'animation, jamais l'information. */
  .mo__acte, .mo__mot, .mo__trait, .mo__etape, .mo__ligne,
  .mo__apercu, .mo__bloc, .mo__etoile, .mo__phrase, .mo__sous, .mo__saisie {
    transition-duration: 0.001ms !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
  .mo__caret, .mo__onde, .mo__grain { animation: none !important; }
  .mo__etape::after { animation: none !important; transform: scaleX(1); }
  .mo[data-battement="oui"] { animation: none !important; }
  .mo__acte[data-sortie="oui"] { transform: none !important; }
  .mo::after { display: none; }
}


/* ==========================================================================
   Seconde séquence — simulation d'un abonnement.

   Elle réutilise l'ossature de la première (cadre, actes, progression,
   repère) : seul le contenu diffère. Rien n'est interactif et rien n'est
   collecté — c'est une illustration animée, pas un formulaire. Le numéro
   affiché est le numéro de test universel, et l'écran le dit.
   ========================================================================== */

/* --- Acte 1 : le choix de la formule ------------------------------------ */
.pm__plans { display: flex; gap: clamp(10px, 2vw, 20px); width: min(680px, 100%); }
.pm__plan {
  flex: 1 1 0; min-width: 0; position: relative;
  border: 1px solid var(--bord); border-radius: 12px; background: var(--surface);
  padding: clamp(14px, 2.4vw, 22px);
  opacity: 0; transform: translateY(18px);
  transition: opacity 360ms, transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 380ms, box-shadow 380ms, scale 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pm__plan[data-vu="oui"] { opacity: 1; transform: none; }
/* La formule retenue ne change pas seulement de couleur : elle avance d'un
   cran. Le choix doit se voir au premier coup d'œil, pas se déduire. */
.pm__plan[data-choisi="oui"] {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-voile);
  scale: 1.045;
}
.pm__plan-nom {
  margin: 0 0 8px; font-family: "IBM Plex Mono", monospace;
  font-size: clamp(10px, 1.4vw, 11.5px); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--encre-faible);
}
.pm__plan-prix {
  margin: 0; font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(24px, 3.6vw, 38px); font-weight: 700; letter-spacing: -0.03em;
  color: var(--encre); font-variant-numeric: tabular-nums;
}
.pm__plan-prix span {
  font-family: "IBM Plex Sans", sans-serif; font-size: 0.38em;
  font-weight: 500; color: var(--encre-faible); margin-left: 3px;
}
.pm__plan-credits {
  margin: 6px 0 0; font-size: clamp(12px, 1.6vw, 13.5px); color: var(--encre-douce);
}
.pm__marque-choix {
  position: absolute; top: 10px; right: 10px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.4);
  transition: opacity 260ms, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pm__plan[data-choisi="oui"] .pm__marque-choix { opacity: 1; transform: none; }

/* --- Acte 2 : la carte --------------------------------------------------- */
.pm__paiement { width: min(560px, 100%); }
.pm__carte {
  border: 1px solid var(--bord); border-radius: 14px;
  background: linear-gradient(145deg, #1E1823 0%, #15111A 60%, #120F17 100%);
  padding: clamp(16px, 2.6vw, 24px);
  box-shadow: 0 20px 48px -22px rgba(0, 0, 0, 0.9);
  transition: border-color 320ms, box-shadow 320ms;
}
.pm__carte[data-actif="oui"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-voile), 0 20px 48px -22px rgba(0, 0, 0, 0.9); }
.pm__carte-haut { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(18px, 3vw, 30px); }
.pm__puce {
  width: 34px; height: 25px; border-radius: 5px;
  background: linear-gradient(135deg, #C9A227 0%, #F0D97B 45%, #B98F1E 100%);
  position: relative; flex: 0 0 auto;
}
.pm__puce::after {
  content: ""; position: absolute; inset: 5px 7px;
  border-left: 1px solid rgba(0, 0, 0, 0.3); border-right: 1px solid rgba(0, 0, 0, 0.3);
}
.pm__marque {
  margin-left: auto; font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(13px, 1.9vw, 17px); font-weight: 800; letter-spacing: 0.06em;
  color: var(--encre); opacity: 0; transform: translateX(10px);
  transition: opacity 320ms, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pm__marque[data-vu="oui"] { opacity: 1; transform: none; }
.pm__numero {
  margin: 0 0 clamp(14px, 2.4vw, 22px);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(14px, 2.5vw, 23px); letter-spacing: 0.08em; color: var(--encre);
  min-height: 1.3em;
}
.pm__carte-bas {
  display: flex; gap: clamp(18px, 3vw, 34px);
  font-family: "IBM Plex Mono", monospace; font-size: clamp(10px, 1.5vw, 13px);
}
.pm__carte-bas i { display: block; font-style: normal; color: var(--encre-faible); font-size: 0.82em; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
.pm__carte-bas b { font-weight: 400; color: var(--encre); letter-spacing: 0.06em; }
.pm__note {
  margin: clamp(10px, 1.8vw, 16px) 0 0; text-align: center;
  font-family: "IBM Plex Mono", monospace; font-size: clamp(9.5px, 1.3vw, 11.5px);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--encre-faible);
}

/* --- Acte 3 : l'autorisation --------------------------------------------- */
.pm__traitement { text-align: center; }
.pm__anneau {
  display: block; width: clamp(38px, 6vw, 54px); height: clamp(38px, 6vw, 54px);
  margin: 0 auto clamp(14px, 2.4vw, 22px);
  border: 2px solid var(--bord-clair); border-top-color: var(--accent);
  border-radius: 50%; animation: pm-tourner 820ms linear infinite;
}
@keyframes pm-tourner { to { transform: rotate(360deg); } }
.pm__etat-texte {
  margin: 0; font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(17px, 2.6vw, 26px); font-weight: 700; letter-spacing: -0.02em; color: var(--encre);
}
.pm__secure {
  margin: clamp(8px, 1.4vw, 13px) 0 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Mono", monospace; font-size: clamp(9.5px, 1.3vw, 11.5px);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--encre-faible);
  border: 1px solid var(--bord); border-radius: 999px; padding: 5px 13px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 380ms, transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pm__secure[data-vu="oui"] { opacity: 1; transform: none; }

/* --- Acte 4 : la confirmation -------------------------------------------- */
.pm__confirme { text-align: center; }
.pm__coche {
  width: clamp(54px, 8vw, 78px); height: clamp(54px, 8vw, 78px);
  margin: 0 auto clamp(14px, 2.4vw, 22px); display: block;
}
/* Le trait se dessine : une coche qui apparaît d'un bloc ne dit rien, une
   coche qui se trace dit « c'est fait, à l'instant ». */
.pm__coche circle, .pm__coche path {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--long); stroke-dashoffset: var(--long);
}
.pm__coche[data-vu="oui"] circle { animation: pm-tracer 680ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.pm__coche[data-vu="oui"] path { animation: pm-tracer 460ms cubic-bezier(0.4, 0, 0.2, 1) 420ms forwards; }
@keyframes pm-tracer { to { stroke-dashoffset: 0; } }

.pm__titre {
  margin: 0; font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(20px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.03em; color: var(--encre);
  clip-path: inset(0 0 100% 0); transition: clip-path 620ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pm__titre[data-vu="oui"] { clip-path: inset(0 0 0 0); }
.pm__credits {
  margin: clamp(8px, 1.4vw, 14px) 0 0;
  font-size: clamp(13px, 1.9vw, 17px); color: var(--encre-douce);
  opacity: 0; transition: opacity 420ms;
}
.pm__credits[data-vu="oui"] { opacity: 1; }
.pm__credits b {
  color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums;
}

/* --- Acte 5 : signature --------------------------------------------------- */
.pm__fin { text-align: center; }

@media (max-width: 880px) {
  /* En portrait les deux formules ne tiennent pas côte à côte sans devenir
     illisibles : on les empile. */
  .pm__plans { flex-direction: column; }
  .pm__plan[data-choisi="oui"] { scale: 1.02; }
}

@media (prefers-reduced-motion: reduce) {
  .pm__anneau { animation: none !important; border-top-color: var(--accent); }
  .pm__coche circle, .pm__coche path { stroke-dashoffset: 0 !important; animation: none !important; }
  .pm__plan, .pm__marque, .pm__secure, .pm__titre, .pm__credits {
    transition-duration: 0.001ms !important; transform: none !important; clip-path: none !important;
  }
}
