/* ════════════════════════════════════════════════════════════════════════
 * rz-anim.css — LES ANIMATIONS DES EN-TÊTES (ANIM-01)
 *
 * À droite de la bande d'ouverture des pages TOP TRANSLATE, TOP CALENDAR,
 * TOP MIGRATION & BACKUP et TOP SHIELD : on glisse l'extension dans WordPress,
 * on l'installe, on l'active, puis on voit ce qu'elle fait (le site traduit et
 * trouvé par un moteur de recherche ; une réservation payée en ligne ; une
 * sauvegarde, puis un site cassé ramené d'un clic ; trois attaques arrêtées
 * avant le site). Validées par le propriétaire le 14/10 (« C'est top,
 * intègre-les sur le site », puis « intègre-la aussi sur la page TOP
 * MIGRATION ») et le 15/10 (« intègre-la sur la page TOP SHIELD »).
 *
 * La scène est écrite par `rz-anim.js` (le texte en français sur les pages
 * françaises, en anglais sur toutes les autres : décision du propriétaire, 14/10).
 * Elle est dessinée à 480 × 380 et mise à l'échelle de sa colonne.
 *
 * ── LA SEULE EXCEPTION À LA CHARTE, NOMMÉE ───────────────────────────────
 *
 * La scène dépeint WordPress et le site d'un client : elle garde leurs couleurs
 * claires dans les deux thèmes, comme les vrais écrans. Ces couleurs sont des
 * jetons `--ra-*` déclarés UNE fois, dans la règle `.ra` ci-dessous ; le reste de
 * la feuille ne peint qu'avec eux et avec les jetons de la charte (la légende
 * sous l'animation, posée sur la bande sombre). Gardé par
 * `api/test/animations-entetes.test.js`.
 * ════════════════════════════════════════════════════════════════════════ */

.ra {
  --ra-bg: #F0F0F1; --ra-surface: #FFFFFF; --ra-surface-2: #F6F7F9;
  --ra-text: #1D2327; --ra-text-2: #50575E; --ra-text-3: #646970; --ra-line: #DCDCDE;
  --ra-side: #1D2327; --ra-side-text: #C3C4C7; --ra-side-on: #FFFFFF; --ra-side-new: #2C3338;
  --ra-blue: #2271B1; --ra-blue-2: #135E96; --ra-blue-text: #FFFFFF;
  --ra-green: #00A32A; --ra-green-text: #00752A; --ra-green-soft: #EDFAEF;
  --ra-bar: #E8EBF1; --ra-dot: #C6CBD4; --ra-cible: #E3EEF7; --ra-gris: #F6F7F7;
  --ra-dash: #8C8F94; --ra-tag: #E7EFFA; --ra-tag-text: #2C5FA8;
  --ra-ombre: rgba(0, 0, 0, .55); --ra-ombre-2: rgba(16, 24, 40, .12); --ra-voile: rgba(16, 24, 40, .38);
  --ra-link: #3445C8; --ra-muted: #4D5156; --ra-pill: #F1F3F4; --ra-sep: #ECEDEF; --ra-champ: #DADCE0;
  --ra-al-bg: #FBFAF7; --ra-al-line: #ECE8E1; --ra-al-ink: #3B4354; --ra-al-border: #C9C2B6;
  --ra-lt-line: #E3E6EC; --ra-lt-ink: #101828; --ra-lt-ok: #0F7C4C; --ra-lt-ok-soft: #E3F2EB;
  --ra-lt-off: #6B7280; --ra-lt-off-soft: #E9EDF5; --ra-lt-go: #C7CDD8; --ra-lt-go-text: #344054;
  --ra-lt-pret: #4F46E5; --ra-lt-appui: #4338CA; --ra-lt-card: #D0D5DD; --ra-lt-carte-a: #3B4354; --ra-lt-carte-b: #1D2327;
  --ra-metier-on: #0F7C4C; --ra-metier-on-soft: #F2FBF6;
  --ra-blanc: #FFFFFF; --ra-noir: #111111;
  --ra-warn: #B54708; --ra-warn-soft: #FFF6ED; --ra-cv-bg: #FBF8F2; --ra-cv-ink: #5A2230; --ra-cv-line: #EDE5D8;
  --ra-fa-bg: #FFF9F1; --ra-fa-ink: #6B3A12; --ra-fa-line: #F0E2CF;
  --ra-bloque: #B42318; --ra-bloque-soft: #FEF3F2; --ra-halo: rgba(239, 68, 68, .2); --ra-halo-fort: rgba(239, 68, 68, .36);
  margin: 0; display: grid; gap: 14px; min-width: 0;
}

/* ── Le cadre : la place est réservée avant que le script n'écrive la scène ── */
.ra-cadre {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 480 / 380;
  border-radius: 16px;
}
.ra:not(.ra-pret) .ra-cadre {
  background: linear-gradient(var(--ra-bar) 0 36px, var(--ra-surface) 36px);
  box-shadow: 0 0 0 1px var(--rz-ink-line);
}
.ra-scene {
  position: absolute; left: 0; top: 0; width: 480px; height: 380px; transform-origin: 0 0;
  font-family: var(--rz-font-sans); color: var(--ra-text); font-size: 11px; line-height: 1.35;
  text-align: start; transition: opacity .4s ease;
}
[dir="rtl"] .ra-scene { direction: ltr; }
.ra-scene.fondu { opacity: 0; }
.ra-scene.net, .ra-scene.net * { transition: none !important; }
.ra-scene.arret, .ra-scene.arret * { animation-play-state: paused !important; }
.ra-scene b { font-weight: 600; }

.ra .win { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: var(--ra-surface); box-shadow: 0 34px 70px -28px var(--ra-ombre), 0 0 0 1px var(--rz-ink-line); }
.ra .bar { height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--ra-bar); border-bottom: 1px solid var(--ra-line); }
.ra .pts { display: flex; gap: 5px; }
.ra .pts i { width: 9px; height: 9px; border-radius: 50%; background: var(--ra-dot); }
.ra .url { flex: 1; min-width: 0; height: 22px; border-radius: 7px; background: var(--ra-surface); border: 1px solid var(--ra-line); display: flex; align-items: center; gap: 6px; padding: 0 9px; font: 400 10px/1 var(--rz-font-mono); color: var(--ra-text-2); white-space: nowrap; overflow: hidden; }
.ra .url svg { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.ra .url b { color: var(--ra-text); font-weight: 500; }
.ra .logo { display: block; flex: none; width: 28px; height: 28px; }
.ra .rzml-flag { width: 16px; height: 11px; border-radius: 2px; }
.ra .tag { font: 500 9px/1 var(--rz-font-mono); padding: 5px 8px; border-radius: 999px; background: var(--ra-tag); color: var(--ra-tag-text); white-space: nowrap; opacity: 0; transition: opacity .3s; }
.ra .tag.vu { opacity: 1; }
.ra .corps { position: absolute; left: 0; right: 0; top: 36px; bottom: 0; overflow: hidden; background: var(--ra-bg); }

.ra .vue { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.ra .vue.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }

/* ── WordPress ── */
.ra .wp-cote { position: absolute; left: 0; top: 0; bottom: 0; width: 112px; background: var(--ra-side); padding: 10px 0; display: flex; flex-direction: column; gap: 1px; }
.ra .wp-cote span { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 9.5px; color: var(--ra-side-text); white-space: nowrap; overflow: hidden; }
.ra .wp-cote span.act { background: var(--ra-blue); color: var(--ra-side-on); }
.ra .wp-cote .nouveau { max-height: 0; padding-block: 0; opacity: 0; transition: max-height .4s, padding .4s, opacity .4s, background .6s; font-weight: 600; color: var(--ra-side-on); }
.ra .wp-cote .nouveau .logo { width: 14px; height: 14px; }
.ra .ra-scene.menu .wp-cote .nouveau { max-height: 30px; padding-block: 6px; opacity: 1; background: var(--ra-side-new); }
.ra .wp-main { position: absolute; left: 112px; right: 0; top: 0; bottom: 0; }
.ra .pan { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
.ra .pan.on { opacity: 1; visibility: visible; transition: opacity .35s; }
.ra .pan > * { position: absolute; left: 16px; right: 16px; }
.ra .p-titre { top: 14px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ra .btn-o { font-size: 9.5px; font-weight: 500; color: var(--ra-blue); border: 1px solid var(--ra-blue); border-radius: 3px; padding: 4px 7px; background: var(--ra-surface-2); }
.ra .consigne { top: 44px; font-size: 9.5px; color: var(--ra-text-2); }
.ra .depot { top: 66px; height: 136px; border: 2px dashed var(--ra-dash); border-radius: 10px; background: var(--ra-surface); display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; transition: border-color .25s, background .25s, transform .25s; }
.ra .depot svg { width: 26px; height: 26px; fill: none; stroke: var(--ra-text-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ra .depot b { font-size: 12px; }
.ra .depot small { font-size: 9.5px; color: var(--ra-text-3); }
.ra .ra-scene.survol .depot { border-color: var(--ra-blue); background: var(--ra-cible); transform: scale(1.015); }
.ra .depot .fichier { position: absolute; inset: 10px; border-radius: 8px; background: var(--ra-surface); display: flex; align-items: center; justify-content: center; gap: 10px; font: 500 11px/1 var(--rz-font-mono); opacity: 0; transform: scale(.94); transition: opacity .3s, transform .3s; }
.ra .depot .fichier .logo { width: 30px; height: 30px; }
.ra .depot .fichier .vf { width: 18px; height: 18px; border-radius: 50%; background: var(--ra-green); display: grid; place-items: center; }
.ra .depot .fichier .vf::after { content: ""; width: 7px; height: 4px; border: 2px solid var(--ra-blanc); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.ra .ra-scene.depose .depot .fichier { opacity: 1; transform: none; }
.ra .ra-scene.depose .depot { border-style: solid; border-color: var(--ra-green); background: var(--ra-surface); transform: none; }
.ra .wbtn { left: 16px; right: auto; display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 12px; border-radius: 3px; font-size: 10.5px; font-weight: 500; background: var(--ra-gris); color: var(--ra-text-2); border: 1px solid var(--ra-line); white-space: nowrap; transition: background .3s, color .3s, border-color .3s, transform .12s; }
.ra .wbtn.pret, .ra .wbtn.bleu { background: var(--ra-blue); color: var(--ra-blue-text); border-color: var(--ra-blue); }
.ra .wbtn.appui { transform: scale(.95); background: var(--ra-blue-2); }
.ra .installer { top: 214px; min-width: 128px; }

.ra .ligne { font-size: 10.5px; color: var(--ra-text); opacity: 0; transform: translateY(3px); transition: opacity .3s, transform .3s; }
.ra .ligne.vu { opacity: 1; transform: none; }
.ra .ligne.reussi { color: var(--ra-green-text); font-weight: 600; }
.ra .jauge { height: 6px; border-radius: 99px; background: var(--ra-line); overflow: hidden; opacity: 0; transition: opacity .3s; }
.ra .jauge.vu { opacity: 1; }
.ra .jauge i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ra-blue); transition: width 1.1s cubic-bezier(.4, 0, .2, 1); }
.ra .jauge.rempli i { width: 100%; }
.ra .activer { top: 166px; min-width: 132px; opacity: 0; transition: opacity .3s, background .3s, transform .12s; }
.ra .activer.vu { opacity: 1; }
.ra .avis { top: 208px; padding: 8px 10px; background: var(--ra-surface); border-left: 4px solid var(--ra-green); box-shadow: 0 1px 1px var(--ra-ombre-2); font-size: 10.5px; opacity: 0; transition: opacity .3s; }
.ra .avis.vu { opacity: 1; }

/* ── La console de l'extension (premier lancement) ── */
.ra .ext-tete { top: 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.ra .ext-tete .logo { width: 24px; height: 24px; }
.ra .pastille { font-size: 9px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--ra-green-soft); color: var(--ra-green-text); }
.ra .ext-q { top: 50px; font-family: var(--rz-font-display); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.ra .lg { height: 32px; border-radius: 8px; background: var(--ra-surface); border: 1px solid var(--ra-line); display: flex; align-items: center; gap: 9px; padding: 0 10px; font-size: 11px; transition: border-color .25s, box-shadow .25s; }
.ra .lg .case { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--ra-dash); display: grid; place-items: center; transition: background .2s, border-color .2s; flex: none; }
.ra .lg .case::after { content: ""; width: 7px; height: 4px; border: 2px solid var(--ra-blanc); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s; }
.ra .lg.coche { border-color: var(--ra-blue); box-shadow: 0 0 0 1px var(--ra-blue); }
.ra .lg.coche .case { background: var(--ra-blue); border-color: var(--ra-blue); }
.ra .lg.coche .case::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.ra .lg em { margin-left: auto; font: normal 400 9.5px/1 var(--rz-font-mono); color: var(--ra-text-3); }
.ra .lg1 { top: 82px; } .ra .lg2 { top: 120px; } .ra .lg3 { top: 158px; }
.ra .continuer { top: 204px; min-width: 104px; }
.ra .progres { top: 244px; display: grid; gap: 7px; opacity: 0; transition: opacity .3s; }
.ra .progres.vu { opacity: 1; }
.ra .progres > span { font-size: 10.5px; display: flex; justify-content: space-between; gap: 8px; }
.ra .progres .jauge { position: static; opacity: 1; }
.ra .progres .jauge i { background: linear-gradient(90deg, var(--rx-a), var(--rx-b)); transition-duration: 1.6s; }

.ra .metiers { top: 80px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ra .metier { height: 52px; border-radius: 10px; background: var(--ra-surface); border: 1px solid var(--ra-line); display: grid; align-content: center; gap: 2px; padding: 0 9px; min-width: 0; transition: border-color .25s, box-shadow .25s, background .25s; }
.ra .metier b { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra .metier small { font-size: 8.5px; color: var(--ra-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra .metier.choisi { border-color: var(--ra-metier-on); box-shadow: 0 0 0 1px var(--ra-metier-on); background: var(--ra-metier-on-soft); }
.ra .mots { top: 200px; font-size: 10px; color: var(--ra-text-2); opacity: 0; transition: opacity .3s; }
.ra .mots.vu { opacity: 1; }
.ra .mots b { color: var(--ra-metier-on); }
.ra .ra-tc .continuer { top: 226px; }

/* ── Le site du client : Atelier Lumen ── */
.ra .al { background: var(--ra-al-bg); }
.ra .al-h { position: absolute; left: 0; right: 0; top: 0; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--ra-al-line); background: var(--ra-surface); }
.ra .al-h > b { font-family: var(--rz-font-display); font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.ra .sel { display: flex; gap: 4px; }
.ra .sel span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 6px; font: 500 9px/1 var(--rz-font-mono); color: var(--ra-text-2); transition: background .25s, color .25s; }
.ra .sel span.on { background: var(--ra-side); color: var(--ra-side-on); }
.ra .al-c { position: absolute; left: 18px; right: 18px; top: 78px; display: grid; grid-template-columns: minmax(0, 1fr) 172px; gap: 16px; align-items: center; }
.ra .al-t { transition: opacity .2s, transform .2s; }
.ra .al-t.change { opacity: 0; transform: translateY(4px); }
.ra .al-t .t-h { display: block; font-family: var(--rz-font-display); font-size: 21px; font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.ra .al-t .t-p { display: block; margin-top: 8px; font-size: 10.5px; color: var(--ra-text-2); }
.ra .al-b { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ra .al-b span { font-size: 9.5px; font-weight: 600; padding: 7px 10px; border-radius: 7px; background: var(--ra-al-ink); color: var(--ra-blanc); }
.ra .al-b span + span { background: transparent; color: var(--ra-al-ink); box-shadow: inset 0 0 0 1px var(--ra-al-border); }
.ra .al-c svg { width: 172px; height: 168px; border-radius: 10px; display: block; }
.ra .al-f { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; gap: 14px; font-size: 9px; color: var(--ra-text-3); white-space: nowrap; overflow: hidden; transition: opacity .2s; }
.ra .al-f.change { opacity: 0; }

/* ── La recherche ── */
.ra .voile { position: absolute; inset: 0; background: var(--ra-voile); opacity: 0; transition: opacity .4s; pointer-events: none; }
.ra .ra-scene.cherche .voile, .ra .ra-scene.paiement .voile { opacity: 1; }
.ra .rech { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 196px; border-radius: 14px; background: var(--ra-surface); box-shadow: 0 20px 40px -18px var(--ra-ombre); padding: 14px 16px; transform: translateY(112%); transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.ra .ra-scene.cherche .rech { transform: none; }
.ra .r-champ { height: 32px; border-radius: 99px; border: 1px solid var(--ra-champ); display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 11.5px; box-shadow: 0 1px 4px var(--ra-ombre-2); }
.ra .r-champ svg { width: 13px; height: 13px; fill: none; stroke: var(--ra-muted); stroke-width: 2.2; stroke-linecap: round; }
.ra .r-car { width: 1px; height: 14px; background: var(--ra-text); animation: ra-car 1s steps(1) infinite; }
@keyframes ra-car { 50% { opacity: 0; } }
.ra .r-res { display: block; margin-top: 14px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.ra .r-res.vu { opacity: 1; transform: none; }
.ra .r-site { display: flex; align-items: center; gap: 8px; }
.ra .r-fav { width: 22px; height: 22px; border-radius: 50%; background: var(--ra-al-ink); color: var(--ra-blanc); display: grid; place-items: center; font: 700 8.5px/1 var(--rz-font-display); flex: none; }
.ra .r-site b { display: block; font-size: 10.5px; font-weight: 500; }
.ra .r-site small { display: block; font: 400 9px/1.3 var(--rz-font-mono); color: var(--ra-muted); }
.ra .r-titre { display: block; margin-top: 6px; font-size: 14px; color: var(--ra-link); font-weight: 500; }
.ra .r-ext { display: block; margin-top: 3px; font-size: 10px; color: var(--ra-muted); }
.ra .r-pied { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--ra-sep); display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--ra-text-2); opacity: 0; transition: opacity .35s; }
.ra .r-pied.vu { opacity: 1; }
.ra .r-pied > span:first-child { margin-right: 4px; }
.ra .pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 99px; background: var(--ra-pill); font: 500 9px/1 var(--rz-font-mono); color: var(--ra-text); }

/* ── Le site du client : Studio Lotus (réservation) ── */
.ra .lotus { background: var(--ra-surface); }
.ra .lt-h { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--ra-lt-line); }
.ra .lt-h b { font-family: var(--rz-font-display); font-size: 13px; font-weight: 700; }
.ra .lt-h span { font-size: 9.5px; color: var(--ra-text-3); }
.ra .lt > * { position: absolute; left: 40px; right: 40px; }
.ra .lt-o { top: 52px; font-family: var(--rz-font-display); font-weight: 700; font-size: 17px; letter-spacing: -.015em; }
.ra .lt-s { top: 76px; font-size: 10px; color: var(--ra-text-2); }
.ra .jours { top: 92px; display: flex; gap: 6px; }
.ra .jours > span { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ra-lt-line); display: grid; place-items: center; align-content: center; font: 700 12px/1 var(--rz-font-display); }
.ra .jours small { display: block; font: 400 8px/1 var(--rz-font-sans); color: var(--ra-text-3); margin-bottom: 2px; }
.ra .jours > span.on { background: var(--ra-lt-ink); border-color: var(--ra-lt-ink); color: var(--ra-blanc); }
.ra .jours > span.on small { color: var(--ra-blanc); }
.ra .jour { top: 142px; font: 500 8.5px/1 var(--rz-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ra-text-3); }
.ra .h { height: 30px; border: 1px solid var(--ra-lt-line); border-radius: 9px; display: flex; align-items: center; gap: 10px; padding: 0 12px; transition: border-color .2s, box-shadow .2s; }
.ra .h b { font: 500 11px/1 var(--rz-font-mono); }
.ra .h span { margin-left: auto; font-size: 9px; color: var(--ra-lt-ok); background: var(--ra-lt-ok-soft); padding: 2px 8px; border-radius: 99px; }
.ra .h.plein b { color: var(--ra-lt-off); text-decoration: line-through; }
.ra .h.plein span { color: var(--ra-text-2); background: var(--ra-lt-off-soft); }
.ra .h .ok { width: 16px; height: 16px; border-radius: 50%; background: var(--ra-lt-ink); display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .2s; }
.ra .h .ok::after { content: ""; width: 6px; height: 3px; border: 1.8px solid var(--ra-blanc); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.ra .h.choisi { border-color: var(--ra-lt-ink); box-shadow: 0 0 0 1px var(--ra-lt-ink); }
.ra .h.choisi .ok { opacity: 1; transform: none; }
.ra .h1 { top: 154px; } .ra .h2 { top: 188px; } .ra .h3 { top: 222px; } .ra .h4 { top: 256px; }
.ra .reserver { top: 292px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ra-lt-go); color: var(--ra-lt-go-text); font: 500 10px/1 var(--rz-font-mono); transition: background .3s, color .3s, transform .12s; }
.ra .reserver.pret { background: var(--ra-lt-pret); color: var(--ra-blanc); }
.ra .reserver.appui { transform: scale(.97); background: var(--ra-lt-appui); }

.ra .paie { position: absolute; left: 24px; right: 24px; bottom: 0; height: 232px; border-radius: 16px 16px 0 0; background: var(--ra-surface); box-shadow: 0 -18px 40px -16px var(--ra-ombre); transform: translateY(105%); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ra .ra-scene.paiement .paie { transform: none; }
.ra .paie > * { position: absolute; left: 22px; right: 22px; }
.ra .p-t { top: 18px; display: flex; align-items: center; justify-content: space-between; font-family: var(--rz-font-display); font-weight: 700; font-size: 14px; }
.ra .plus { white-space: nowrap; font: 600 8.5px/1 var(--rz-font-mono); letter-spacing: .06em; padding: 4px 8px; border-radius: 99px; background: var(--ra-lt-ok-soft); color: var(--ra-lt-ok); }
.ra .p-l { top: 44px; font-size: 10px; color: var(--ra-text-2); }
.ra .p-m { top: 62px; font-family: var(--rz-font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.ra .carte { top: 104px; height: 34px; border: 1px solid var(--ra-lt-card); border-radius: 9px; display: flex; align-items: center; gap: 10px; padding: 0 12px; font: 400 10.5px/1 var(--rz-font-mono); color: var(--ra-text); }
.ra .carte i { width: 24px; height: 16px; border-radius: 3px; background: linear-gradient(135deg, var(--ra-lt-carte-a), var(--ra-lt-carte-b)); flex: none; }
.ra .carte span:last-child { margin-left: auto; color: var(--ra-text-3); }
.ra .payer { top: 152px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--ra-lt-ink); color: var(--ra-blanc); font-weight: 600; font-size: 11.5px; transition: transform .12s, background .3s; }
.ra .payer.appui { transform: scale(.97); }
.ra .payer .roue { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ra-dash); border-top-color: var(--ra-blanc); animation: ra-roue .7s linear infinite; display: none; }
.ra .payer.attente span { display: none; }
.ra .payer.attente .roue { display: block; }
@keyframes ra-roue { to { transform: rotate(360deg); } }
.ra .p-sur { top: 198px; font-size: 8.5px; color: var(--ra-text-3); text-align: center; }
.ra .paie > .confirme { inset: 0; left: 0; right: 0; background: var(--ra-surface); border-radius: 16px 16px 0 0; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; opacity: 0; transition: opacity .35s; }
.ra .confirme.vu { opacity: 1; }
.ra .confirme .rond { width: 44px; height: 44px; border-radius: 50%; background: var(--ra-lt-ok); display: grid; place-items: center; transform: scale(.4); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.ra .confirme.vu .rond { transform: none; }
.ra .confirme .rond::after { content: ""; width: 16px; height: 8px; border: 3px solid var(--ra-blanc); border-top: 0; border-right: 0; transform: translateY(-2px) rotate(-45deg); }
.ra .confirme b { font-family: var(--rz-font-display); font-size: 16px; margin-top: 6px; }
.ra .confirme > span:last-child { font-size: 10px; color: var(--ra-text-2); }
.ra .notif { position: absolute; right: -10px; top: 6px; width: 256px; z-index: 7; display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ra-surface); box-shadow: 0 16px 32px -14px var(--ra-ombre), 0 0 0 1px var(--ra-ombre-2); transform: translateY(-140%); opacity: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.ra .ra-scene.notifie .notif { transform: none; opacity: 1; }
.ra .notif b { display: block; font-size: 10.5px; }
.ra .notif span { display: block; font-size: 9.5px; color: var(--ra-text-2); }
.ra .notif small { display: block; font: 500 8.5px/1.4 var(--rz-font-mono); letter-spacing: .04em; color: var(--ra-lt-ok); margin-bottom: 1px; }

/* ── TOP MIGRATION & BACKUP : sauvegarder, chaque nuit, revenir ── */
.ra .ra-tm .wp-cote .nouveau { white-space: normal; line-height: 1.15; }
.ra .ra-scene.ra-tm.menu .wp-cote .nouveau { max-height: 40px; }
.ra .ra-tm .sauver { top: 46px; left: auto; right: 16px; transition: background .3s, transform .12s; }
.ra .parts { top: 84px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ra .part { height: 26px; border-radius: 8px; background: var(--ra-surface); border: 1px solid var(--ra-line); display: flex; align-items: center; gap: 7px; padding: 0 9px; font-size: 10px; color: var(--ra-text-2); transition: border-color .25s, color .25s; }
.ra .vk { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--ra-line); display: grid; place-items: center; flex: none; transition: background .2s, border-color .2s; }
.ra .vk::after { content: ""; width: 5px; height: 3px; border: 1.6px solid var(--ra-blanc); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s; }
.ra .vu > .vk, .ra .vu .vk { background: var(--ra-green); border-color: var(--ra-green); }
.ra .vu > .vk::after, .ra .vu .vk::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.ra .part.vu { color: var(--ra-text); border-color: var(--ra-green); }
.ra .jb { top: 150px; }
.ra .jb i { background: linear-gradient(90deg, var(--rx-a), var(--rx-b)); transition-duration: 1.4s; }
.ra .relue { top: 163px; display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; opacity: 0; transition: opacity .3s; }
.ra .relue.vu { opacity: 1; }
.ra .relue b { color: var(--ra-green-text); }
.ra .relue span { font: 400 9.5px/1.35 var(--rz-font-mono); color: var(--ra-text-2); }
.ra .nuit { top: 188px; border-radius: 12px; background: var(--ra-surface); border: 1px solid var(--ra-line); padding: 10px 12px; display: grid; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.ra .nuit.vu { opacity: 1; transform: none; }
.ra .nuit-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ra .nuit-t b { font-family: var(--rz-font-display); font-size: 12.5px; font-weight: 700; }
.ra .nuit-v { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9.5px; color: var(--ra-text-2); }
.ra .nuits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ra .n { height: 50px; border-radius: 9px; border: 1px solid var(--ra-line); background: var(--ra-surface-2); display: grid; justify-items: center; align-content: center; gap: 3px; font: 500 8.5px/1.1 var(--rz-font-mono); color: var(--ra-text-2); text-align: center; transition: border-color .25s, color .25s; }
.ra .n svg { width: 12px; height: 12px; fill: var(--ra-text-3); }
.ra .n.vu { border-color: var(--ra-green); color: var(--ra-text); }
.ra .majrow { top: 70px; height: 36px; border-radius: 8px; background: var(--ra-surface); border: 1px solid var(--ra-line); display: flex; align-items: center; gap: 9px; padding: 0 10px; font-size: 11px; }
.ra .majrow .case { width: 14px; height: 14px; border-radius: 3px; background: var(--ra-blue); display: grid; place-items: center; flex: none; }
.ra .majrow .case::after { content: ""; width: 6px; height: 3px; border: 2px solid var(--ra-blanc); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.ra .majrow > span:last-child { margin-left: auto; font: 400 9.5px/1 var(--rz-font-mono); color: var(--ra-text-2); }
.ra .majbtn { top: 118px; }
.ra .point { top: 160px; display: flex; align-items: center; gap: 6px; color: var(--ra-green-text); font-weight: 600; }
.ra .fini { top: 182px; }
.ra .casse { top: 52px; border-radius: 12px; background: var(--ra-surface); border: 1px solid var(--ra-line); border-left: 4px solid var(--ra-warn); padding: 14px; display: grid; gap: 6px; justify-items: start; box-shadow: 0 10px 24px -16px var(--ra-ombre); }
.ra .casse-t { white-space: nowrap; }
.ra .casse-t b { font-family: var(--rz-font-display); font-size: 13px; font-weight: 700; color: var(--ra-warn); }
.ra .casse-l { font-size: 10px; color: var(--ra-text-2); }
.ra .casse-go { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ra .retour { display: grid; gap: 6px; width: 100%; font-size: 10px; color: var(--ra-text-2); opacity: 0; transition: opacity .3s; }
.ra .retour.vu { opacity: 1; }
.ra .retour .jauge { opacity: 1; }
.ra .retour .jauge i { background: linear-gradient(90deg, var(--rx-a), var(--rx-b)); transition-duration: 1.3s; }
.ra .cave { background: var(--ra-cv-bg); }
.ra .cv-h { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--ra-cv-line); background: var(--ra-surface); }
.ra .cv-h b { font-family: var(--rz-font-display); font-size: 13.5px; font-weight: 700; color: var(--ra-cv-ink); white-space: nowrap; }
.ra .cv-h span { font-size: 9px; color: var(--ra-text-3); white-space: nowrap; }
.ra .cv-c { position: absolute; left: 18px; right: 18px; top: 76px; display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 16px; align-items: center; }
.ra .cv-c .t-h { display: block; font-family: var(--rz-font-display); font-size: 20px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--ra-cv-ink); }
.ra .cv-c .t-p { display: block; margin-top: 8px; font-size: 10.5px; color: var(--ra-text-2); }
.ra .cv-c .al-b span { background: var(--ra-cv-ink); }
.ra .cv-c .al-b span + span { background: transparent; color: var(--ra-cv-ink); box-shadow: inset 0 0 0 1px var(--ra-cv-line); }
.ra .cv-c svg { width: 168px; height: 196px; border-radius: 10px; display: block; }
.ra .erreur { background: var(--ra-surface); display: grid; place-items: center; padding: 0 40px; text-align: center; }
.ra .erreur .e-t { display: block; font-size: 13px; color: var(--ra-text); }
.ra .erreur .e-l { display: block; margin-top: 10px; font-size: 10px; color: var(--ra-blue); text-decoration: underline; }

/* ── TOP SHIELD : actif dès l'activation, les attaques s'arrêtent avant le site ── */
.ra .garde { height: 32px; border-radius: 8px; background: var(--ra-surface); border: 1px solid var(--ra-line); display: flex; align-items: center; gap: 9px; padding: 0 10px; font-size: 11px; color: var(--ra-text-2); transition: border-color .25s, color .25s; }
.ra .g1 { top: 82px; } .ra .g2 { top: 120px; } .ra .g3 { top: 158px; }
.ra .bouclier { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ra-dash); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.ra .bouclier .ck { opacity: 0; transition: opacity .25s; }
.ra .garde .etat { margin-left: auto; font-size: 9px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--ra-green-soft); color: var(--ra-green-text); opacity: 0; transform: scale(.9); transition: opacity .25s, transform .25s; }
.ra .garde.vu { border-color: var(--ra-green); color: var(--ra-text); }
.ra .garde.vu .bouclier { stroke: var(--ra-green); }
.ra .garde.vu .bouclier .ck { opacity: 1; }
.ra .garde.vu .etat { opacity: 1; transform: none; }
.ra .rien { top: 204px; font-size: 10.5px; font-weight: 600; color: var(--ra-green-text); opacity: 0; transform: translateY(3px); transition: opacity .3s, transform .3s; }
.ra .rien.vu { opacity: 1; transform: none; }
.ra .fournil { background: var(--ra-fa-bg); }
.ra .fa-h { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--ra-fa-line); background: var(--ra-surface); }
.ra .fa-h b { font-family: var(--rz-font-display); font-size: 13.5px; font-weight: 700; color: var(--ra-fa-ink); white-space: nowrap; }
.ra .fa-h span { font-size: 9px; color: var(--ra-text-3); white-space: nowrap; }
.ra .fa-c { position: absolute; left: 18px; right: 18px; top: 76px; display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 16px; align-items: center; }
.ra .fa-c .t-h { display: block; font-family: var(--rz-font-display); font-size: 20px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--ra-fa-ink); }
.ra .fa-c .t-p { display: block; margin-top: 8px; font-size: 10.5px; color: var(--ra-text-2); }
.ra .fa-c .al-b span { background: var(--ra-fa-ink); }
.ra .fa-c .al-b span + span { background: transparent; color: var(--ra-fa-ink); box-shadow: inset 0 0 0 1px var(--ra-fa-line); }
.ra .fa-c svg { width: 168px; height: 196px; border-radius: 10px; display: block; }
.ra .couloir { position: absolute; left: 236px; right: 0; top: 44px; bottom: 0; background: linear-gradient(90deg, transparent, var(--ra-voile) 42%); opacity: 0; transition: opacity .5s; }
.ra .couloir.vu { opacity: 1; }
.ra .rempart { position: absolute; left: 285px; top: 58px; height: 236px; width: 5px; border-radius: 99px; background: linear-gradient(var(--rx-a), var(--rx-b)); box-shadow: 0 0 0 4px var(--ra-halo); opacity: 0; transform: scaleY(.2); transform-origin: 50% 100%; transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
.ra .rempart.vu { opacity: 1; transform: none; }
.ra .rempart.choc { box-shadow: 0 0 0 9px var(--ra-halo-fort); }
.ra .ecu { position: absolute; left: 270px; top: 288px; width: 35px; height: 35px; border-radius: 50%; background: var(--ra-surface); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--rx-a), 0 10px 20px -10px var(--ra-ombre); opacity: 0; transform: scale(.6); transition: opacity .35s, transform .35s; }
.ra .ecu.vu { opacity: 1; transform: none; }
.ra .ecu .logo { width: 23px; height: 23px; }
.ra .att { position: absolute; left: 304px; width: 164px; border-radius: 10px; background: var(--ra-surface); border: 1px solid var(--ra-line); box-shadow: 0 14px 26px -16px var(--ra-ombre); padding: 8px 10px 9px; display: grid; gap: 4px; opacity: 0; transform: translateX(190px); transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .25s, border-color .2s; }
.ra .a1 { top: 72px; } .ra .a2 { top: 144px; } .ra .a3 { top: 216px; }
.ra .att.vu { opacity: 1; transform: none; }
.ra .att small { font: 500 8.5px/1.2 var(--rz-font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ra-text-3); }
.ra .att code { font: 400 9.5px/1.3 var(--rz-font-mono); color: var(--ra-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra .att .stamp { position: absolute; right: 8px; top: 7px; font-size: 8.5px; font-weight: 700; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--ra-bloque); background: var(--ra-bloque-soft); border: 1px solid var(--ra-bloque); padding: 3px 6px; border-radius: 4px; opacity: 0; transform: rotate(-6deg) scale(1.4); transition: opacity .2s, transform .25s; }
.ra .att.bloque { border-color: var(--ra-bloque); animation: ra-recul .4s ease-out; }
.ra .att.bloque .stamp { opacity: 1; transform: rotate(-6deg) scale(1); }
@keyframes ra-recul { 0% { transform: none; } 35% { transform: translateX(10px); } 100% { transform: none; } }

/* ── Le fichier, le curseur, l'onde du clic ── */
.ra .zip { position: absolute; left: 0; top: 0; height: 46px; white-space: nowrap; border-radius: 12px; background: var(--ra-surface); box-shadow: 0 18px 30px -14px var(--ra-ombre), 0 0 0 1px var(--ra-ombre-2); display: flex; align-items: center; gap: 9px; padding: 0 10px; opacity: 0; transform: translate(290px, 296px) scale(.8); transition-property: transform, opacity; transition-duration: .35s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); z-index: 5; }
.ra .zip b { display: block; font: 500 10px/1.2 var(--rz-font-mono); color: var(--ra-text); }
.ra .zip small { display: block; font-size: 8.5px; color: var(--ra-text-3); }
.ra .curseur { position: absolute; left: 0; top: 0; width: 20px; height: 24px; z-index: 6; transform: translate(430px, 360px); transition-property: transform; transition-timing-function: cubic-bezier(.45, 0, .2, 1); opacity: 0; }
.ra .curseur.vu { opacity: 1; }
.ra .curseur svg { width: 20px; height: 24px; display: block; transition: transform .12s; transform-origin: 2px 2px; }
.ra .curseur svg path { fill: var(--ra-blanc); stroke: var(--ra-noir); }
.ra .curseur.appui svg { transform: scale(.86); }
.ra .onde { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--ra-blue); opacity: 0; z-index: 6; pointer-events: none; }
.ra .onde.go { animation: ra-onde .5s ease-out; }
@keyframes ra-onde { from { opacity: .6; transform: scale(.3); } to { opacity: 0; transform: scale(1.2); } }

/* ── Les trois étapes, sous l'animation, sur la bande sombre ── */
.ra-legende { display: flex; gap: 12px; align-items: flex-start; }
.ra-etapes { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ra-etapes li { position: relative; padding-top: 10px; font-size: .8rem; line-height: 1.35; color: var(--rz-ink-text-2); transition: color .3s; }
.ra-etapes li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 99px; background: var(--rz-ink-line); }
.ra-etapes li::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--rx-hi-a), var(--rx-hi-b)); transition: width .4s; }
[dir="rtl"] .ra-etapes li::after { left: auto; right: 0; }
.ra-etapes li.fait::after, .ra-etapes li.en-cours::after { width: 100%; }
.ra-etapes li.en-cours { color: var(--rz-ink-text); }
.ra-etapes li b { font-family: var(--rz-font-mono); font-weight: 500; font-size: .72rem; margin-inline-end: 4px; color: var(--rx-hi-b); }
.ra-lecture { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rz-ink-line-strong); color: var(--rz-ink-text); display: grid; place-items: center; }
.ra-lecture:hover { background: var(--rz-ink-surface); }
.ra-lecture:focus-visible { outline: 2px solid var(--rx-hi-b); outline-offset: 2px; }
.ra-lecture svg { width: 16px; height: 16px; fill: currentColor; }
.ra-lecture .ic-lire { display: none; }
.ra-lecture[aria-pressed="true"] .ic-lire { display: block; }
.ra-lecture[aria-pressed="true"] .ic-pause { display: none; }

@media (max-width: 480px) {
  .ra-etapes { gap: 6px; }
  .ra-etapes li { font-size: .74rem; }
}
