/* ═══════════════════════════════════════════════════════════════════════════
   Seqooia Campus — design system Seqooia
   Repris de l'Incubateur (preappel.seqooia.com) : fond clair à halos verts,
   cartes en verre, dégradé vert signature, badges pixel.
   Croisé avec My Seqooia : teals #0D9488/#0F766E et neutres slate.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Le campus dessine ses propres couleurs : un navigateur en « mode nuit » forcé (Brave, Chrome
   « Assombrir les sites »…) ne doit pas l'assombrir — il noircirait le fond sans éclaircir les titres
   en dégradé, devenus illisibles. La nuit de l'accueil (sur ordinateur) est déjà sombre. */
:root { color-scheme: only light; }
html:has(.ac[data-ambiance="nuit"]) { color-scheme: only dark; }
/* La nuit jusque sous la page : en tirant la page au-delà du bord (iPhone), pas de bande claire. */
html:has(.ac[data-ambiance="nuit"]), html:has(.ac[data-ambiance="nuit"]) body { background: #000; }
/* Le chargement d'une page à partager sur un appareil réglé en sombre (cf. index.html) : noir d'emblée. */
html.boot-nuit, html.boot-nuit body { color-scheme: only dark; background: #000; }
html.boot-nuit .boot__status { color: rgba(232, 242, 237, .6); }

:root {
  /* Verts signature (Incubateur) */
  --green:      #1D9E75;
  --green2:     #2BC48A;
  --green3:     #14755C;
  /* Teals (My Seqooia) */
  --teal:       #0F766E;
  --teal-br:    #0D9488;
  --teal-deep:  #325A5A;
  --gold:       #C9A84C;
  --red:        #E74C3C;

  /* Fonds et neutres */
  --bg:         #F2F6F4;
  --tint:       #F0FDFA;
  --text:       #152520;
  --muted:      #64748B;
  --muted-2:    #94A3B8;
  --card:       rgba(255, 255, 255, .78);
  --border:     rgba(21, 64, 50, .09);
  --border-2:   #E2E8F0;

  --grad:       linear-gradient(135deg, #2BC48A 0%, #1D9E75 55%, #14755C 100%);
  --gradTeal:   linear-gradient(135deg, #325A5A 0%, #1D9E75 100%);

  --shadow-sm:    0 2px 10px -4px rgba(21, 64, 50, .10);
  --shadow-md:    0 14px 34px -16px rgba(21, 64, 50, .22);
  --shadow-green: 0 10px 26px -10px rgba(29, 158, 117, .45);

  --font:  'Telegraf', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pixel: 'Press Start 2P', monospace;

  --radius:    18px;
  --radius-sm: 12px;
  --topbar-h:  58px;
  --tabbar-h:  66px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100dvh;
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(43, 196, 138, .14), transparent 60%),
    radial-gradient(900px 520px at -8% 34%, rgba(50, 90, 90, .11), transparent 55%),
    radial-gradient(700px 420px at 60% 108%, rgba(29, 158, 117, .08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Un seul décor à la fois : la page d'arrivée a son quadrillage animé, les
   autres ont la trame de points. Les deux superposés se brouillaient. */
body.onboarding::before { display: none; }

/* ── Trame de points ────────────────────────────────────────────────────────
   Équivalent CSS du composant DotPattern : même tuile de 16 px, point de
   rayon 1 posé en (1, 1). Teinte verte Seqooia plutôt que le gris d'origine.
   Un masque radial la fait respirer — dense en haut, effacée vers le bas —
   pour qu'elle reste un fond et ne concurrence pas le texte.
   ------------------------------------------------------------------------ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(29, 158, 117, .28) 1px, transparent 0);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(1200px 780px at 50% -5%, #000 10%, transparent 80%);
  mask-image: radial-gradient(1200px 780px at 50% -5%, #000 10%, transparent 80%);
}

/* ── Trame animée de l'atterrissage ─────────────────────────────────────────
   Deux quadrillages superposés qui défilent en boucle : le premier reste
   très pâle, le second, bien plus net, n'apparaît qu'autour du curseur grâce
   à un masque radial. Les couleurs sont celles de la marque — le composant
   d'origine posait des halos orange et bleus, hors identité.
   ------------------------------------------------------------------------ */
.grid-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  --gx: 0px; --gy: 0px;
}
.grid-fx__layer {
  position: absolute; inset: -40px;
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: var(--gx) var(--gy);
}
.grid-fx__layer--base { color: rgba(21, 64, 50, .5); opacity: .05; }
/* La couche vive est révélée par le halo, qui suit le curseur. */
.grid-fx__layer--live {
  color: var(--green); opacity: calc(.5 * var(--halo, 0));
  --mx: 50%; --my: 50%;
  transition: opacity .35s ease;
  -webkit-mask-image: radial-gradient(320px circle at var(--mx) var(--my), #000, transparent);
  mask-image: radial-gradient(320px circle at var(--mx) var(--my), #000, transparent);
}

/* Le contenu passe systématiquement au-dessus de la trame.
   (Le toast a déjà son propre z-index, plus haut.) */
.boot, .app { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ── Écran de démarrage ─────────────────────────────────────────────────────
   Le logo en haut de la fenêtre, et au centre un chargeur à anneaux : un
   halo qui respire, un anneau en pointillés très lent, un arc principal, un
   arc à contresens, un anneau intérieur rapide, un point en orbite et un
   cœur. Dessous, une ligne en petites capitales espacées qui change chaque
   seconde. Une erreur fige la ligne et arrête le chargeur (.is-fige). */
.boot { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.boot__inner { width: 100%; max-width: 460px; text-align: center; }
.boot__tagline { color: var(--muted); margin: 14px 0 28px; font-size: 15px; line-height: 1.55; }
.boot__auth { display: flex; justify-content: center; }
.boot__status { color: var(--muted); font-size: 13px; margin-top: 20px; }

/* L'écran de chargement de l'app (la page d'admin garde son écran simple). */
#boot { padding: 104px 24px 48px; }
/* Le logo « Seqooia Campus » en haut de l'écran de chargement et de connexion :
   plus grand que dans l'en-tête (#boot l'emporte sur .logo-img, déclaré plus bas). */
.boot__logo { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); background: var(--grad); -webkit-mask-position: center; mask-position: center; }
#boot .boot__logo { width: 150px; height: 44px; }
@media (max-width: 560px) { #boot .boot__logo { width: 130px; height: 38px; } }
#boot .boot__inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }
#boot .boot__auth:empty { display: none; }
.boot__status-line { height: 32px; margin: 0; display: flex; align-items: center; justify-content: center; }
#boot .boot__status {
  margin: 0; font-size: 10px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--green3); padding-left: .3em; /* l'espacement final, recentré */
}
#boot .boot__status.is-in { animation: ld-text .5s ease both; }
@keyframes ld-text { from { opacity: 0; transform: translateY(8px); } }
#boot.is-fige .boot__loader { display: none; }
#boot.is-fige .boot__status { letter-spacing: normal; text-transform: none; font-size: 13px; padding: 0; color: var(--muted); }
#boot.is-auth .boot__loader, #boot.is-auth .boot__status-line { display: none; }
/* Un membre bloqué depuis l'onglet Membres : « Accès suspendu », et de quoi se déconnecter. */
#boot.is-fige .boot__status:empty { display: none; }
.boot-suspendu {
  display: grid; justify-items: center; gap: 10px; max-width: 390px; padding: 26px 24px; text-align: center;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.boot-suspendu h1 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.boot-suspendu p { margin: 0 0 4px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ── Écran de connexion (mode 'wix') ──────────────────────────────────────────
   Un ruban de forêt (l'image des fonds Seqooia, tamisée) traverse l'écran en
   diagonale, du coin bas gauche — un peu au-dessus — jusqu'en haut à droite,
   et passe derrière la carte. Il se déroule à l'arrivée, dérive lentement et
   suit la souris de quelques pixels. La carte est en verre dépoli : la forêt
   se devine à travers. */
.boot__ruban { display: none; }
#boot.is-auth .boot__ruban {
  display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  --g1: 63%; --g2: 91%; --d1: 7%; --d2: 35%;
  filter: drop-shadow(0 26px 40px rgba(21, 64, 50, .2));
}
.boot__ruban > * {
  position: absolute; inset: -24px;
  clip-path: polygon(0 var(--g1), 100% var(--d1), 100% var(--d2), 0 var(--g2));
  animation: ruban-in 1.4s cubic-bezier(.22, 1, .36, 1) both;
}
.boot__ruban-image {
  background: url('/campus-foret.webp') center 62% / cover no-repeat;
  opacity: .72; filter: saturate(.92);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.04);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
/* Un voile clair aux deux bouts, et deux filets pour les bords du ruban. */
.boot__ruban-voile { background: linear-gradient(100deg, rgba(242, 246, 244, .45), transparent 26%, transparent 74%, rgba(242, 246, 244, .3)); }
.boot__ruban-bord {
  background: rgba(255, 255, 255, .85);
  clip-path: polygon(0 calc(var(--g1) - 1px), 100% calc(var(--d1) - 1px), 100% calc(var(--d1) + 1px), 0 calc(var(--g1) + 1px));
}
.boot__ruban-bord--bas {
  clip-path: polygon(0 calc(var(--g2) - 1px), 100% calc(var(--d2) - 1px), 100% calc(var(--d2) + 1px), 0 calc(var(--g2) + 1px));
}
@keyframes ruban-in {
  from { clip-path: polygon(0 var(--g1), 0 var(--g1), 0 var(--g2), 0 var(--g2)); }
}
.boot__ruban-bord { animation-name: ruban-bord-in; }
@keyframes ruban-bord-in { from { opacity: 0; } }
#boot .boot__logo, #boot .boot__inner { z-index: 1; }
#boot .boot__inner { position: relative; }

.cx-wrap { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cx {
  position: relative; width: 100%; padding: 38px 36px 30px; text-align: center;
  display: flex; flex-direction: column; align-items: stretch; gap: 20px;
  border-radius: 28px; border: 1px solid rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 34px 80px -30px rgba(21, 64, 50, .5), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.cx.is-in > * { animation: cx-in .5s cubic-bezier(.22, 1, .36, 1) both; }
.cx.is-in > :nth-child(2) { animation-delay: .04s; }
.cx.is-in > :nth-child(3) { animation-delay: .08s; }
.cx.is-in > :nth-child(4) { animation-delay: .12s; }
.cx.is-in > :nth-child(n+5) { animation-delay: .16s; }
@keyframes cx-in { from { opacity: 0; transform: translateY(8px); } }
.cx-wrap > .cx { animation: bulle-in .62s cubic-bezier(.2, 1.22, .36, 1) both; }

.cx-tete { display: flex; flex-direction: column; align-items: center; gap: 5px; }
/* Le logo Seqooia Campus, en haut au milieu de la carte — dans les fenêtres
   (accueil, verrou) ; l'écran de démarrage a déjà le sien, au-dessus. */
.cx-logo { display: none; }
/* À la taille de celui de l'en-tête de l'accueil, et un peu d'air avant ce qui suit. */
.ac-acces .cx-logo { display: block; align-self: center; width: 102px; height: 30px; margin: -6px 0 6px; background: var(--gradTeal); -webkit-mask-position: center; mask-position: center; }
.cx-title { margin: 0; font-size: 27px; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.cx-sub { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: balance; }
.cx-sub strong { color: var(--text); font-weight: 700; }
.cx-avis {
  margin: 0; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5;
  background: rgba(201, 168, 76, .1); border: 1px solid rgba(201, 168, 76, .32); color: #7A5F16;
}
/* « Un compte existe déjà avec ce mail » : en haut de la carte, sous le logo, en une ligne. */
.cx-existe {
  display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 14px; border-radius: 12px;
  background: rgba(43, 196, 138, .1); border: 1px solid rgba(29, 158, 117, .26);
}
.cx-existe .cm-ico { flex: none; width: 18px; height: 18px; color: var(--green3); }
.cx-existe p { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--text); }
.cx-existe strong { font-weight: 700; }
.cx-badge {
  align-self: center; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .2), rgba(29, 158, 117, .06)); border: 1px solid rgba(29, 158, 117, .22);
  margin-bottom: -6px;
}
.cx-badge .cm-ico { width: 28px; height: 28px; }

/* « Bon retour, Bel ! » (js/connexion.js, bonRetour) : le prénom en dégradé vert-bleu Seqooia ;
   au-dessus, sa photo ou son initiale dans l'anneau de son rang, à ses couleurs, et son grade et son
   niveau en une pastille posée en bas de la photo et de l'anneau (elle porte l'icône du rang :
   l'anneau n'a plus la sienne). */
.cx-bonretour { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 4px; }
.cx-bonretour__photo { position: relative; display: grid; place-items: center; margin: 6px 0 18px; }
.cx-bonretour__photo .ring__clasp { display: none; }
.cx-bonretour .cx-bonretour__grade {
  position: absolute; bottom: -12px; left: 50%; z-index: 1; transform: translateX(-50%);
  font-size: 11px; padding: 4px 10px 4px 7px; box-shadow: 0 0 0 2.5px #fff, 0 6px 14px -6px rgba(21, 64, 50, .55);
}
.cx-bonretour__prenom {
  background: linear-gradient(120deg, #2BC48A 0%, #1D9E75 45%, #17566E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* « Si tu es déjà élève de Seqooia… » : sous le bouton de « Se connecter », de la taille et de la
   couleur de la mention reCAPTCHA, avec une petite toque ; décollée du bouton, et aussi large que lui
   (pas resserrée au centre). */
.cx-astuce {
  margin: 6px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--muted-2); text-align: center; text-wrap: pretty;
}
.cx-astuce .cm-ico { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; color: currentColor; }
.cx-astuce strong { color: inherit; font-weight: 700; }

/* « 1 712 inscrits sur Seqooia Campus » (js/connexion.js, badgeInscrits) : une pastille discrète, sur
   fond blanc, sous le titre de « Accéder au Campus », juste avant le formulaire ; un point vert qui bat
   comme un direct. Un nouvel inscrit fait monter le chiffre, avec un « +1 » qui s'envole. */
.cx-inscrits {
  align-self: center; position: relative; display: inline-flex; align-items: center; gap: 7px; margin: -8px 0 0;
  padding: 6px 14px 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.2; color: var(--muted);
  background: #fff; border: 1px solid rgba(21, 37, 32, .09);
  box-shadow: 0 6px 16px -10px rgba(21, 37, 32, .3);
}
.cx-inscrits[hidden] { display: none; }
.cx-inscrits__nb { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.cx-inscrits__point { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2BC48A; }
.cx-inscrits__point::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #2BC48A;
  animation: cx-inscrits-onde 1.8s ease-out infinite;
}
@keyframes cx-inscrits-onde { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
/* Le « +1 », juste à droite de la pastille, qui monte et s'efface. */
.cx-inscrits__plus {
  position: absolute; left: calc(100% + 7px); top: 4px; font-size: 12px; font-weight: 800; color: var(--green3);
  opacity: 0; pointer-events: none; white-space: nowrap;
}
.cx-inscrits.is-nouveau .cx-inscrits__plus { animation: cx-inscrits-plus 2.4s ease-out; }
.cx-inscrits.is-nouveau .cx-inscrits__nb { animation: cx-inscrits-saut .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cx-inscrits-plus { 0% { opacity: 0; transform: translateY(6px); } 15%, 55% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes cx-inscrits-saut { 40% { transform: scale(1.18); } }
.cx-inscrits__nb { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  .cx-inscrits__point::after, .cx-inscrits.is-nouveau .cx-inscrits__plus, .cx-inscrits.is-nouveau .cx-inscrits__nb { animation: none; }
}
/* L'email et le mot de passe de « Se connecter » : un peu plus d'air entre les deux. */
.cx-form.cx-form--connexion { gap: 16px; }
.cx-form--connexion .cx-oubli { margin-top: -6px; }
/* Un autre email tapé (js/connexion.js) : l'en-tête se floute, une barre charge sous lui, puis le
   compte qui lui correspond apparaît (ou l'en-tête général). */
.cx-entete { position: relative; }
.cx-entete > * { transition: filter .3s ease, opacity .3s ease; animation: cx-in .45s cubic-bezier(.22, 1, .36, 1) both; }
.cx-entete.is-recherche > * { filter: blur(6px); opacity: .45; }
.cx-entete::after {
  content: ''; position: absolute; left: 50%; bottom: -8px; width: 44%; height: 3px; border-radius: 3px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(43, 196, 138, 0), #2BC48A, rgba(43, 196, 138, 0)) no-repeat, rgba(21, 64, 50, .08);
  background-size: 40% 100%, 100% 100%; opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.cx-entete.is-recherche::after { opacity: 1; animation: cx-charge .9s linear infinite; }
@keyframes cx-charge { from { background-position: -70% 0, 0 0; } to { background-position: 170% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .cx-entete > * { animation: none; transition: none; }
  .cx-entete.is-recherche::after { animation: none; }
}
.cx-bonretour__pastille {
  display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 6px; overflow: hidden; border-radius: 50%;
  background: var(--gradTeal); color: #fff; font-size: 26px; font-weight: 800; box-shadow: 0 0 0 3px #fff, 0 6px 16px -6px rgba(6, 40, 30, .4);
}
.cx-bonretour__pastille img { width: 100%; height: 100%; object-fit: cover; }

/* Les 3 vidéos de la formation, en éventail (js/connexion.js, pileVideos) :
   devant, la vidéo du moment, badge vert, bouton lecture et barres de
   chapitre — la sienne se remplit ; à droite, inclinée, la suivante, qui
   chevauche ; à gauche, plus loin derrière, la dernière. Toutes les 2,8 s,
   celle de devant part derrière et la suivante avance. Les tailles suivent
   la largeur de la carte (des pourcentages). */
.cx-pile { position: relative; aspect-ratio: 2.8 / 1; margin: -10px 0 -4px; pointer-events: none; }
.cx-pile__halo {
  position: absolute; left: 14%; right: 14%; top: 4%; bottom: -2%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43, 196, 138, .34), rgba(182, 255, 59, .12) 58%, transparent);
  filter: blur(8px); animation: cx-halo 3.2s ease-in-out infinite alternate;
}
@keyframes cx-halo { to { opacity: .55; transform: scale(.92); } }
.cx-pile__video {
  --x: 0%; --y: 0%; --r: 0deg; --s: 1; --z: 1;
  position: absolute; left: 50%; top: 50%; z-index: var(--z); width: 46%; aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: 12px; border: 2px solid #fff; background: #0B1A15;
  box-shadow: 0 16px 28px -16px rgba(6, 30, 22, .6), 0 1px 4px rgba(6, 30, 22, .12);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
  transition: transform .9s cubic-bezier(.34, 1.22, .5, 1), filter .6s ease, box-shadow .6s ease, z-index 0s linear .35s;
  animation: cx-flotte 3.4s ease-in-out calc(var(--i) * -1.1s) infinite alternate;
}
@keyframes cx-flotte { from { translate: 0 -2px; } to { translate: 0 3px; } }
/* Quand ça tourne, celle de devant s'efface le temps de passer derrière : les cartes changent
   d'ordre (à 0,35 s) pendant qu'elle est invisible, aucune ne saute par-dessus une autre. */
.cx-pile.is-tour .cx-pile__video[data-pos="2"] {
  animation: cx-flotte 3.4s ease-in-out calc(var(--i) * -1.1s) infinite alternate, cx-derriere .9s ease both;
}
@keyframes cx-derriere { 30%, 50% { opacity: 0; } }
.cx-pile__video[data-pos="0"] {
  --z: 3;
  box-shadow: 0 22px 36px -18px rgba(6, 30, 22, .72), 0 0 32px -6px rgba(43, 196, 138, .6);
}
.cx-pile__video[data-pos="1"] { --x: 56%; --y: 9%; --r: 8deg; --s: .84; --z: 2; filter: brightness(.95) saturate(.95); }
.cx-pile__video[data-pos="2"] { --x: -56%; --y: 12%; --r: -8deg; --s: .78; --z: 1; filter: brightness(.82) saturate(.9); }
/* À l'ouverture, les trois sortent du même tas. */
.cx-pile:not(.is-pret) .cx-pile__video { --x: 0%; --y: 0%; --r: 0deg; --s: .9; }
.cx-pile__image {
  position: absolute; inset: 0;
  background: url(/formation-apercu.webp) calc(var(--n) * 25%) 0 / 500% 100% no-repeat;
  transform: scale(1.02); transition: transform 2.8s ease-out;
}
.cx-pile__video[data-pos="0"] .cx-pile__image { transform: scale(1.1); }
.cx-pile__badge {
  position: absolute; left: 7px; top: 7px; z-index: 1; padding: 3px 7px; border-radius: 999px;
  background: rgba(4, 14, 10, .6); color: #fff; font-size: 9px; font-weight: 800; line-height: 1.25; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .4s ease, color .4s ease;
}
.cx-pile__video[data-pos="0"] .cx-pile__badge { background: #B6FF3B; color: #053B29; }
.cx-pile__commandes {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 7px; padding: 16px 9px 8px;
  background: linear-gradient(to top, rgba(4, 14, 10, .75), transparent); opacity: 0; transition: opacity .45s ease;
}
.cx-pile__video[data-pos="0"] .cx-pile__commandes { opacity: 1; }
.cx-pile__play { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.cx-pile__play svg { width: 10px; height: 10px; margin-left: 1.5px; fill: #0B5C45; }
.cx-pile__barres { flex: 1; display: flex; gap: 3px; }
.cx-pile__barres i { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .38); }
.cx-pile__barres b { position: absolute; inset: 0; border-radius: inherit; background: #B6FF3B; box-shadow: 0 0 6px rgba(182, 255, 59, .8); transform: scaleX(0); transform-origin: left; }
.cx-pile__barres i.is-vue b { transform: scaleX(1); }
.cx-pile__video[data-pos="0"] .cx-pile__barres i.is-en-cours b { animation: ac-barre 2.8s linear forwards; }
@media (prefers-reduced-motion: reduce) {
  .cx-pile__halo, .cx-pile__video { animation: none; }
  .cx-pile__video[data-pos="0"] .cx-pile__barres i.is-en-cours b { animation: none; transform: scaleX(.45); }
}

.cx-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 14px;
  background: #fff; border: 1px solid rgba(21, 64, 50, .14); box-shadow: 0 1px 2px rgba(21, 64, 50, .06);
  font: 700 14px var(--font); color: var(--text); transition: border-color .2s, box-shadow .2s, transform .15s;
}
.cx-google:hover { border-color: rgba(21, 64, 50, .28); box-shadow: 0 6px 16px -8px rgba(21, 64, 50, .3); }
.cx-google:active { transform: scale(.98); }
.cx-google svg { width: 18px; height: 18px; flex: none; }
.cx-google.is-busy { opacity: .7; pointer-events: none; }

.cx-ou { display: flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 600; color: var(--muted-2); }
.cx-ou::before, .cx-ou::after { content: ''; flex: 1; height: 1px; background: rgba(21, 64, 50, .12); }

.cx-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.cx-champ {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px 0 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .9); border: 1px solid rgba(21, 64, 50, .14);
  transition: border-color .2s, box-shadow .2s; cursor: text;
}
.cx-champ:focus-within { border-color: rgba(29, 158, 117, .6); box-shadow: 0 0 0 4px rgba(43, 196, 138, .14); }
.cx-champ > .cm-ico { width: 17px; height: 17px; flex: none; color: var(--muted-2); transition: color .2s; }
.cx-champ:focus-within > .cm-ico { color: var(--green); }
/* Le cadre est porté par le libellé : le champ lui-même n'en a aucun, même
   au focus (le style global des champs en dessinerait un second). */
.cx .cx-champ input, .cx .cx-champ input:focus, .idf .cx-champ input, .idf .cx-champ input:focus {
  flex: 1; width: auto; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; outline: 0;
  background: transparent; box-shadow: none; font: 500 14.5px var(--font); color: var(--text);
}
.cx-champ input::placeholder { color: var(--muted-2); font-weight: 400; }
.cx-voir { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--muted-2); cursor: pointer; }
.cx-voir:hover { background: rgba(21, 64, 50, .06); color: var(--text); }
.cx-voir .cm-ico { width: 17px; height: 17px; }
.cx-mdp { display: flex; flex-direction: column; gap: 6px; }
.cx-aide { padding-left: 4px; font-size: 11.5px; color: var(--muted-2); }
/* reCAPTCHA : l'invisible hors de l'écran, la case centrée dans le formulaire. */
.cx-recaptcha-invisible { position: fixed; left: -10000px; bottom: 0; width: 1px; height: 1px; overflow: hidden; visibility: hidden; }
.cx-captcha { display: flex; justify-content: center; min-height: 78px; }
.cx-recaptcha-mention { margin: -8px 0 0; font-size: 10.5px; color: var(--muted-2); text-align: center; }
.cx-recaptcha-mention a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* L'email, gardé dans le formulaire du mot de passe pour que le navigateur retienne le couple. */
.cx-identifiant { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.cx-accord { display: flex; align-items: flex-start; gap: 10px; padding: 2px 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.cx-accord input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }
.cx-oubli { align-self: flex-end; margin-top: -4px; font-size: 12.5px; }
.cx-erreur { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; background: rgba(231, 76, 60, .07); border: 1px solid rgba(231, 76, 60, .28); color: #A93226; }
.cx-go { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; margin-top: 4px; border-radius: 14px; font-size: 15px; }
.cx-go .cm-ico { width: 16px; height: 16px; transition: transform .2s ease; }
.cx-go:hover .cm-ico { transform: translateX(3px); }
.cx-go.is-busy { opacity: .75; pointer-events: none; }

.cx-lien { padding: 0; border: 0; background: transparent; font: 700 13px var(--font); color: var(--green3); cursor: pointer; }
.cx-lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.cx-lien:disabled { color: var(--muted-2); text-decoration: none; cursor: default; }
.cx-bascule { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.cx-secours { align-self: center; margin-top: -6px; font-size: 11.5px; color: var(--muted-2); text-decoration: underline; text-decoration-color: rgba(21, 64, 50, .2); text-underline-offset: 3px; }
.cx-secours:hover { color: var(--muted); }
.cx-retour { display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: center; font-size: 12.5px; color: var(--muted); }
.cx-retour .cm-ico { width: 14px; height: 14px; }

.cx-otp { display: flex; justify-content: center; gap: 8px; }
.cx-otp__case {
  width: 46px; height: 54px; border-radius: 13px; border: 1px solid rgba(21, 64, 50, .16); background: rgba(255, 255, 255, .92);
  text-align: center; font: 700 22px var(--font); color: var(--text); outline: 0; transition: border-color .2s, box-shadow .2s;
}
.cx .cx-otp__case:focus { border-color: rgba(29, 158, 117, .6); box-shadow: 0 0 0 4px rgba(43, 196, 138, .14); }

.cx-atouts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cx-atouts li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 600; color: var(--text); box-shadow: 0 4px 12px -8px rgba(21, 64, 50, .3);
}
.cx-atouts .cm-ico { width: 14px; height: 14px; color: var(--green); }
.cx-foot { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }

@media (max-width: 480px) {
  .cx { padding: 30px 20px 24px; gap: 18px; border-radius: 24px; }
  .cx-title { font-size: 25px; }
  .cx-otp { gap: 6px; }
  .cx-otp__case { width: 42px; height: 50px; }
  /* En portrait, la carte prend le milieu : un ruban plus large, qu'on voie
     au-dessus d'elle à droite et en dessous à gauche. */
  #boot.is-auth .boot__ruban { --g1: 60%; --g2: 96%; --d1: 2%; --d2: 38%; }
  .cx { background: rgba(255, 255, 255, .76); }
  .cx-atouts { gap: 6px; }
  .cx-atouts li { padding: 5px 10px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .boot__ruban > *, .cx.is-in > *, .cx-wrap > .cx { animation: none; }
  .boot__ruban-image { transition: none; }
}

/* ── Page d'accueil (avant la connexion) ───────────────────────────────────
   Courte, un seul bouton, deux ambiances au choix du visiteur : le jour, au
   beige du campus (par défaut), et la nuit, en noir et blanc. Toutes les
   couleurs passent par les variables de .ac ; [data-ambiance="nuit"] les
   remplace. En haut, le titre sur un quadrillage, l'arc de la planète en bas
   de l'écran ; puis la forêt en parallaxe, ce qu'il y a dans le campus en
   cinq colonnes, un dernier appel et le pied de page légal. Le bouton ouvre
   la carte de connexion dans une fenêtre (.ac-acces). */
html:has(body.accueil) { background: #F2F6F4; scrollbar-gutter: stable; }
html:has(.ac[data-ambiance="nuit"]) { background: #000; }
body.accueil { background: transparent; }
body.accueil::before { display: none; }
/* `place-items: normal` : l'alignement centré de l'écran de démarrage
   s'appliquerait aussi en mise en page bloc et rétrécirait la page. */
#boot.is-accueil { display: block; min-height: 0; padding: 0; place-items: normal; }
#boot.is-accueil > .boot__logo, #boot.is-accueil > .boot__inner, #boot.is-accueil > .boot__ruban { display: none; }

/* La courbure de la planète, lue en pixels par js/accueil.js (déclarée, elle s'y calcule). */
@property --ac-arc { syntax: '<length>'; inherits: true; initial-value: 135px; }

.ac {
  --ac-barre: 64px;                     /* la rangée du haut : le logo, le jour ou la nuit, « Se connecter » */
  --ac-arc: clamp(100px, 15vh, 170px); /* la courbure : l'arc descend d'autant, du sommet aux bords de l'écran */
  --ac-plafond: 2.35;                   /* sur un grand écran, la planète monte jusqu'à ce multiple de l'arc (plus bas : moins massive sous le texte) */
  --ac-cime: 40px;                      /* la place des plus grands arbres, au-dessus de l'arc */
  --ac-halo: 56px;                      /* l'atmosphère déborde encore au-dessus */
  --ac-px-haut: clamp(76px, 14vh, 168px);    /* l'air entre la planète, au-dessus, et le badge du ciel */
  /* La forêt, sous le ciel et ses blocs : la hauteur d'un écran. Son haut, du
     ciel transparent, passe sur le bas des blocs (--px-mord) : les crêtes de
     la 3D (--px-crete, au quart de sa hauteur) arrivent au ras des blocs, qui
     se posent sur les arbres. Le ciel dessiné monte un peu plus haut qu'elle
     (--px-ciel-plus). Les blocs suivent la page tant que leur bas n'a pas
     passé --px-debut de l'écran (un peu plus haut que les trois quarts),
     puis descendent en douceur, jusqu'à --px-plonge fois le défilement
     (js/accueil.js, animer) : on les voit passer derrière les arbres. */
  --px-foret-h: clamp(560px, min(100vh, 112vw), 1080px);
  --px-crete: .25;
  --px-mord: calc(var(--px-foret-h) * var(--px-crete) - 28px);
  --px-ciel-plus: clamp(110px, 22vh, 240px);
  --px-debut: .78;
  --px-plonge: .76;
  /* Le jour : le beige du campus. */
  --ac-fond: #F2F6F4;
  --ac-fond-rgb: 242, 246, 244;
  --ac-txt: #152520;
  --ac-mute: #4E5F58;
  --ac-dim: #5F6E68;
  --ac-ligne: rgba(21, 64, 50, .1);
  --ac-grille: rgba(21, 64, 50, .07);
  --ac-vif: #1D9E75;
  --ac-vif-halo: rgba(29, 158, 117, .16);
  --ac-titre: linear-gradient(to bottom right, #152520 35%, rgba(21, 37, 32, .6));
  --ac-accent: linear-gradient(96deg, #34CC92 0%, #1D9E75 46%, #0F5F4A 100%);
  /* Les promesses (lettres et icônes) : le vert de la fin du titre, un peu plus soutenu pour les petits mots. */
  --ac-promesse: linear-gradient(96deg, #1DB37C 0%, #158E66 50%, #0D5E47 100%);
  /* La tranche des cartes de la formation (pages à partager) : un carton clair, ombré vers le bas. */
  --ac-tranche: 0 1px 0 #FFFFFF, 0 2px 0 #EEF3F0, 0 3px 0 #DFE7E3, 0 4px 0 #CEDAD4, 0 5px 0 #BCCBC4, 0 6px 0 #A9BBB2;
  --ac-carte-ombre: 0 7px 3px -2px rgba(6, 30, 23, .16), 0 26px 28px -16px rgba(6, 30, 23, .46);
  --ac-hero:
    radial-gradient(1100px 560px at 88% -8%, rgba(43, 196, 138, .14), transparent 60%),
    radial-gradient(900px 520px at -8% 34%, rgba(50, 90, 90, .11), transparent 55%),
    radial-gradient(ellipse 70% 38% at 50% 100%, rgba(43, 196, 138, .16), transparent 70%), #F2F6F4;
  --ac-pastille: rgba(255, 255, 255, .7);
  --ac-pastille-bord: rgba(21, 64, 50, .11);
  --ac-cta-ombre: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 32px -14px rgba(29, 158, 117, .75);
  --ac-cta-ombre-survol: inset 0 1px 0 rgba(255, 255, 255, .34), 0 20px 40px -14px rgba(29, 158, 117, .85);
  --ac-carte: rgba(255, 255, 255, .82);
  --ac-carte-bord: rgba(21, 64, 50, .09);
  --ac-carte-ombre: 0 22px 44px -30px rgba(21, 64, 50, .4);
  --ac-carte-survol: rgba(29, 158, 117, .45);
  --ac-visuel: #E3EEE8;
  --ac-visuel-fondu: rgba(255, 255, 255, .97);
  --ac-image: brightness(1) saturate(1.05);
  --ac-ico-fond: linear-gradient(145deg, rgba(43, 196, 138, .16), rgba(29, 158, 117, .05)), #fff;
  --ac-ico-bord: rgba(29, 158, 117, .28);
  --ac-ico: #1D9E75;
  --ac-mini: rgba(255, 255, 255, .88);
  --ac-mini-bord: rgba(21, 64, 50, .1);
  --ac-mini-txt: #152520;
  --ac-route: rgba(21, 64, 50, .45);
  --ac-halo-carte:
    radial-gradient(55% 65% at 28% 72%, rgba(43, 196, 138, .32), transparent 70%),
    radial-gradient(45% 55% at 80% 22%, rgba(182, 255, 59, .28), transparent 70%), #E7F3ED;
  /* L'horizon (#EDF0E6) est la couleur de la brume de la forêt en 3D : le lointain s'y fond. */
  /* Le ciel garde la couleur de la page tant qu'il porte les blocs, puis se dore jusqu'à l'horizon, au-dessus de la forêt. */
  --ac-px-fond:
    radial-gradient(circle clamp(560px, 96vw, 1500px) at 85% calc(100% - var(--px-foret-h) * .71), rgba(255, 248, 225, .95) 0, rgba(255, 240, 205, .55) 7%, rgba(255, 236, 190, .14) 20%, transparent 36%),
    linear-gradient(180deg, #F2F6F4 0%, #F2F6F4 calc(100% - var(--px-foret-h) - 140px), #F3F2E9 calc(100% - var(--px-foret-h) * .72), #EDF0E6 calc(100% - var(--px-foret-h) * .5), #EDF0E6 100%);
  --ac-fin-lueur: rgba(43, 196, 138, .15);
  position: relative; color: var(--ac-txt); background: var(--ac-fond); overflow-x: clip;
  animation: ac-in .6s ease both;
}
/* La nuit : noir et blanc, accents vert fluo. */
.ac[data-ambiance="nuit"] {
  --ac-fond: #000;
  --ac-fond-rgb: 0, 0, 0;
  --ac-txt: #F3F7F5;
  --ac-mute: rgba(232, 242, 237, .66);
  --ac-dim: rgba(232, 242, 237, .56);
  --ac-ligne: rgba(255, 255, 255, .09);
  --ac-grille: rgba(255, 255, 255, .075);
  --ac-vif: #B6FF3B;
  --ac-vif-halo: rgba(182, 255, 59, .14);
  --ac-titre: linear-gradient(to bottom right, #fff 30%, rgba(255, 255, 255, .42));
  --ac-accent: linear-gradient(96deg, #F1FFE3 0%, #B6FF3B 36%, #2BC48A 78%, #1D9E75 100%);
  --ac-promesse: linear-gradient(96deg, #F1FFE3 0%, #C8FF6E 30%, #7DEBB4 72%, #3FD49A 100%);
  --ac-tranche: 0 1px 0 #5C6E67, 0 2px 0 #485853, 0 3px 0 #3A4844, 0 4px 0 #2F3B37, 0 5px 0 #26302D, 0 6px 0 #1D2523;
  --ac-carte-ombre: 0 7px 3px -2px rgba(0, 0, 0, .4), 0 26px 30px -16px rgba(0, 0, 0, .8), 0 0 40px -18px rgba(43, 196, 138, .35);
  --ac-hero: radial-gradient(ellipse 70% 38% at 50% 100%, rgba(43, 196, 138, .16), transparent 70%), #000;
  --ac-pastille: rgba(255, 255, 255, .04);
  --ac-pastille-bord: rgba(255, 255, 255, .14);
  --ac-cta-ombre: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(182, 255, 59, .2), 0 18px 46px -14px rgba(43, 196, 138, .75), 0 0 60px -18px rgba(182, 255, 59, .55);
  --ac-cta-ombre-survol: inset 0 1px 0 rgba(255, 255, 255, .34), 0 0 0 1px rgba(182, 255, 59, .4), 0 22px 54px -14px rgba(43, 196, 138, .9), 0 0 80px -14px rgba(182, 255, 59, .7);
  --ac-carte: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  --ac-carte-bord: rgba(255, 255, 255, .09);
  --ac-carte-ombre: inset 0 1px 0 rgba(255, 255, 255, .06);
  --ac-carte-survol: rgba(182, 255, 59, .32);
  --ac-visuel: #06110E;
  --ac-visuel-fondu: rgba(5, 11, 9, .94);
  --ac-image: brightness(.92) saturate(1.1);
  --ac-ico-fond: linear-gradient(145deg, rgba(182, 255, 59, .22), rgba(43, 196, 138, .1)), #07140F;
  --ac-ico-bord: rgba(182, 255, 59, .32);
  --ac-ico: #B6FF3B;
  --ac-mini: rgba(255, 255, 255, .12);
  --ac-mini-bord: rgba(255, 255, 255, .18);
  --ac-mini-txt: #fff;
  --ac-route: rgba(255, 255, 255, .6);
  --ac-halo-carte:
    radial-gradient(55% 65% at 28% 72%, rgba(43, 196, 138, .5), transparent 70%),
    radial-gradient(45% 55% at 80% 22%, rgba(182, 255, 59, .26), transparent 70%), #04110D;
  --ac-px-fond: radial-gradient(ellipse 65% calc(var(--px-foret-h) * .5) at 50% calc(100% - var(--px-foret-h) * .36), rgba(43, 196, 138, .2), rgba(43, 196, 138, .05) 50%, transparent 75%), #000;
  --ac-fin-lueur: rgba(43, 196, 138, .22);
}
@supports (height: 100svh) { .ac { --px-foret-h: clamp(560px, min(100svh, 112vw), 1080px); } }
@keyframes ac-in { from { opacity: 0; } }
/* Le passage jour ↔ nuit : un fondu enchaîné de toute la page (js/accueil.js). */
html.ac-bascule::view-transition-old(root),
html.ac-bascule::view-transition-new(root) { animation-duration: .55s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
@keyframes ac-monte { from { opacity: 0; transform: translateY(16px); } }
.ac ::selection { background: rgba(43, 196, 138, .28); }
.ac :focus-visible { outline: 2px solid var(--ac-vif); outline-offset: 3px; }
.ac-page { display: block; }

/* Le haut de la page, sans barre : le logo à gauche, le jour ou la nuit et
   « Se connecter » à droite, posés sur la page (ils partent avec elle). */
.ac-barre {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--ac-barre); padding: 0 clamp(16px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between;
}
.ac .ac-logo { width: 102px; height: 30px; background: var(--gradTeal); }
.ac[data-ambiance="nuit"] .ac-logo { background: linear-gradient(120deg, #fff 0%, #E2FFE9 55%, #B6FF3B 100%); }
.ac-barre__droite { display: flex; align-items: center; gap: 10px; }
/* Le jour ou la nuit : deux petits boutons dans une pilule. */
.ac-ambiance { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--ac-pastille); border: 1px solid var(--ac-pastille-bord); }
.ac-ambiance__choix {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ac-dim); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s;
}
.ac-ambiance__choix svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ac-ambiance__choix:hover { color: var(--ac-txt); }
.ac-ambiance__choix[aria-checked="true"] { color: #152520; background: #fff; box-shadow: 0 2px 8px -3px rgba(21, 64, 50, .45); }
.ac[data-ambiance="nuit"] .ac-ambiance__choix[aria-checked="true"] { color: #0B1F19; background: #B6FF3B; box-shadow: 0 0 14px -2px rgba(182, 255, 59, .65); }
/* « Se connecter » : discret, en verre dépoli — un voile clair à peine teinté, un reflet en haut,
   pas de bord marqué ni d'ombre, une écriture fine. Il se devine sur la page sans crier. */
.ac-connexion {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 14px; border-radius: 999px; cursor: pointer;
  border: 0; color: #24463B;
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .26));
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(21, 64, 50, .07);
  font: 500 14px var(--font); letter-spacing: 0;
  transition: background-color .25s, box-shadow .25s, color .25s, transform .15s;
}
.ac-connexion .cm-ico { width: 17px; height: 17px; color: var(--green); }
.ac-connexion .cm-ico svg { stroke-width: 1.8; }
.ac-connexion:hover { color: #0F3D30; background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .5)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(29, 158, 117, .22); }
.ac-connexion:active { transform: scale(.97); }
.ac[data-ambiance="nuit"] .ac-connexion {
  color: rgba(255, 255, 255, .88);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.ac[data-ambiance="nuit"] .ac-connexion .cm-ico { color: #B6FF3B; }
.ac[data-ambiance="nuit"] .ac-connexion:hover { color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(182, 255, 59, .25); }

/* Le haut de page : le texte en haut, la planète juste dessous, jusqu'en bas de l'écran. */
.ac-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(var(--ac-barre) + clamp(2px, 1.4vh, 20px));
  background: var(--ac-hero);
}
.ac-hero__grille {
  position: absolute; inset: 0 0 auto; height: min(700px, 82%); z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--ac-grille) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ac-grille) 1px, transparent 1px);
  background-size: 6rem 5rem; background-position: center -1px;
  /* Elle s'efface aussi tout en haut : aucune ligne ne souligne le logo et les boutons, comme une barre. */
  -webkit-mask-image: linear-gradient(transparent 40px, #000 170px), radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(transparent 40px, #000 170px), radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
  mask-composite: intersect;
}
/* La place libre fait monter la planète (voir .ac-sol) ; passé son plafond,
   sur un très grand écran, le reste va au-dessus du texte. Sur une tablette
   en hauteur, la planète peut monter plus haut : le texte reste en haut. */
.ac-hero::before { content: ''; flex: 1 1 0; }
@media (min-width: 761px) and (max-aspect-ratio: 4/5) { .ac { --ac-plafond: 3.1; } }
.ac-hero__contenu {
  position: relative; z-index: 3; width: 100%; max-width: 1200px; padding: 0 20px; margin: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  /* Le badge et le titre, un peu plus haut : un simple décalage, la planète garde sa place. */
  top: calc(-1 * clamp(10px, 2.4vh, 26px));
}
/* Un simple badge : un point vert et « Formation 100 % offerte », bien au centre. */
/* Le badge (« Formation 100 % offerte ») : un miroir de verre teinté de vert — un voile clair qui
   tire vers le vert d'eau, un reflet en haut, un fin liseré vert, et un éclat qui le traverse de
   temps en temps. Pas d'ombre portée. */
.ac-oeil {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 15px 7px 12px; border-radius: 999px;
  border: 0; color: #14755C;
  background: linear-gradient(135deg, rgba(255, 255, 255, .82) 0%, rgba(214, 244, 229, .66) 55%, rgba(178, 234, 207, .52) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(29, 158, 117, .12), inset 0 0 0 1px rgba(29, 158, 117, .2);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
  animation: ac-monte .8s cubic-bezier(.22, 1, .36, 1) .05s both;
}
.ac-oeil::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  /* L'éclat glisse à l'intérieur du badge (un fond qui se déplace), jamais à côté (cf. .ac-cta::after). */
  background-image: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .9) 50%, transparent 60%);
  background-repeat: no-repeat; background-size: 300% 100%; background-position: 100% 0;
  animation: ac-miroir 6.5s ease-in-out 2.2s infinite;
}
@keyframes ac-miroir { 0%, 72% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.ac[data-ambiance="nuit"] .ac-oeil {
  color: #C8FF6E;
  background: linear-gradient(135deg, rgba(182, 255, 59, .17) 0%, rgba(43, 196, 138, .09) 60%, rgba(43, 196, 138, .04) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(182, 255, 59, .24);
}
.ac[data-ambiance="nuit"] .ac-oeil::after { background-image: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); }
@media (prefers-reduced-motion: reduce) { .ac-oeil::after { animation: none; } }
.ac-oeil__point { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ac-vif); box-shadow: 0 0 0 4px var(--ac-vif-halo), 0 0 10px var(--ac-vif); }
.ac-titre {
  margin: 24px 0 0; font-size: clamp(34px, min(4.1vw, 7vh), 62px); line-height: 1.1;
  font-weight: 700; letter-spacing: -.025em;
  animation: ac-monte .9s cubic-bezier(.22, 1, .36, 1) .12s both;
}
/* Chaque ligne se resserre sur son texte : le dégradé suit les lettres. */
.ac-titre__ligne {
  display: table; margin: 0 auto; padding-bottom: .07em; text-wrap: balance;
  background: var(--ac-titre); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ac-titre__accent { background-image: var(--ac-accent); }
.ac-sous {
  margin: 12px auto 0; max-width: 660px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6;
  color: var(--ac-mute); text-wrap: balance;
  animation: ac-monte .9s cubic-bezier(.22, 1, .36, 1) .2s both;
}
.ac-action { margin-top: 30px; animation: ac-monte .9s cubic-bezier(.22, 1, .36, 1) .28s both; }
.ac-cta {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px;
  height: 58px; padding: 0 14px 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #3BD496 0%, #1D9E75 55%, #14755C 100%);
  color: #fff; font: 700 16.5px var(--font); letter-spacing: -.01em;
  box-shadow: var(--ac-cta-ombre);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, filter .25s;
}
.ac-cta:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: var(--ac-cta-ombre-survol); }
.ac-cta:active { transform: translateY(0) scale(.98); }
/* Un reflet passe sur le bouton de temps en temps. La bande de lumière est un fond qui glisse
   (background-position) dans un calque posé exactement sur le bouton, aux mêmes arrondis : elle ne peut
   jamais en sortir. (Avant, une bande qui se déplaçait attendait à gauche du bouton : Safari, sur
   iPhone, ne la cachait pas pendant que le bouton battait — un reflet blanc à gauche, puis à droite.)
   Le fond fait 2,5 fois la largeur du bouton : à 100 %, la bande est hors du bouton à gauche ; à 0,
   hors du bouton à droite. */
.ac-cta::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .34) 50%, transparent 58%);
  background-repeat: no-repeat; background-size: 250% 100%; background-position: 100% 0;
  animation: ac-reflet 5.5s ease-in-out 2.2s infinite;
}
@keyframes ac-reflet {
  0%, 72% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.ac-cta__fleche { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.ac-cta__fleche svg {
  display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .25s;
}
.ac-cta:hover .ac-cta__fleche svg { transform: translateX(2px); }
.ac-preuve {
  margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px;
  font-size: 13.5px; color: var(--ac-dim);
  animation: ac-monte .9s cubic-bezier(.22, 1, .36, 1) .36s both;
}
.ac-preuve__etoiles { display: inline-flex; gap: 2px; }
.ac-preuve__etoiles svg { width: 14px; height: 14px; fill: #F2B83A; }
.ac-preuve__note { color: var(--ac-mute); font-weight: 600; }
.ac-promesses {
  margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font-size: 14.5px; font-weight: 700; letter-spacing: -.012em; line-height: 1.3; color: var(--ac-vif);
  animation: ac-monte .9s cubic-bezier(.22, 1, .36, 1) .24s both;
}
.ac-promesses li { display: inline-flex; align-items: center; gap: 7px; }
/* Les lettres et l'icône dans le même dégradé : l'icône est un masque posé sur lui (js : iconeDegradee). */
.ac-promesses__texte { padding-bottom: .06em; background: var(--ac-promesse); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ac-promesses__ico {
  flex: none; width: 1.18em; height: 1.18em; background: var(--ac-promesse);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}

/* La planète : un arc bien rond, juste sous les promesses. Sa zone prend la
   place libre jusqu'au bas de l'écran (au moins l'arc, au plus son plafond) :
   plus elle est haute, plus la planète monte, sa courbure restant la même.
   Elle garde la place des arbres au-dessus de l'arc ; l'atmosphère déborde encore. */
.ac-sol {
  position: relative; z-index: 1; width: 100%; flex: 1000 1 auto;
  min-height: calc(var(--ac-arc) + var(--ac-cime));
  max-height: calc(var(--ac-arc) * var(--ac-plafond) + var(--ac-cime));
  /* De l'air entre les promesses et la cime des arbres : la planète reste basse (+ 8 px : le
     sous-titre s'est rapproché du titre, la planète ne monte pas pour autant). */
  margin-top: calc(clamp(40px, 8vh, 84px) + 8px);
}
.ac-planete { position: absolute; left: 0; right: 0; bottom: 0; top: calc(-1 * var(--ac-halo)); overflow: hidden; pointer-events: none; }
.ac-planete__toile { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.ac-planete.is-3d .ac-planete__toile { opacity: 1; }
/* Sans 3D : un grand ovale dessiné, dont on ne voit que le haut (la même
   courbure que la planète) : bleu océan bordé d'air clair le jour, sombre
   bordé de lumière la nuit. */
.ac-planete__repli {
  position: absolute; left: -38.5%; right: -38.5%; top: calc(var(--ac-halo) + var(--ac-cime)); height: calc(var(--ac-arc) * 10); border-radius: 50%;
  background: radial-gradient(closest-side, #1E6A8A 88%, #2C8FA6 94.4%, #A6DCEE 98.4%, #F2F6F4);
  box-shadow: 0 -10px 46px -14px rgba(120, 200, 235, .65);
  transition: opacity 1s ease;
}
.ac[data-ambiance="nuit"] .ac-planete__repli {
  background: radial-gradient(closest-side, #02080C 94.4%, #0A2A33 97.2%, #46C2FF 99.2%, #E6FAFF);
  box-shadow: 0 -16px 60px -16px rgba(70, 194, 255, .5), 0 -2px 22px rgba(43, 196, 138, .45);
}
.ac-planete.is-3d .ac-planete__repli { opacity: 0; }
/* Le bas de la planète se fond dans la page, en douceur : la suite commence sans couture. */
.ac-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--ac-arc) * .8); z-index: 2; pointer-events: none;
  background: linear-gradient(to top,
    rgb(var(--ac-fond-rgb)) 0%, rgba(var(--ac-fond-rgb), .92) 16%, rgba(var(--ac-fond-rgb), .7) 36%,
    rgba(var(--ac-fond-rgb), .4) 60%, rgba(var(--ac-fond-rgb), .14) 84%, rgba(var(--ac-fond-rgb), 0) 100%);
}

/* La forêt en parallaxe, et son ciel (js/accueil.js). En haut, dans le ciel
   (.ac-px__haut) : le nombre d'inscrits, « Pourquoi rejoindre le Seqooia
   Campus ? », sa phrase et les blocs de ce qui bloque. En bas, la forêt, de
   la hauteur d'un écran (--px-foret-h) : la 3D ou ses plans dessinés, posés
   devant les blocs. Son haut, du ciel transparent, passe sur leur bas
   (--px-mord) ; en défilant, les blocs descendent derrière les crêtes, les
   arbres et le campus (js : animer). */
.ac-px {
  position: relative; overflow: hidden; isolation: isolate;
  padding-bottom: calc(var(--px-foret-h) - var(--px-mord));
  background: var(--ac-px-fond);
}
.ac-px__couche { position: absolute; left: 0; right: 0; bottom: 0; height: var(--px-foret-h); z-index: 3; pointer-events: none; will-change: transform; }
/* Le ciel dessiné (les oiseaux ; la nuit, la lune et les étoiles) : derrière les blocs, un peu plus haut que la forêt. */
.ac-px__couche.ac-px__ciel { z-index: 0; height: calc(var(--px-foret-h) + var(--px-ciel-plus)); }
/* La forêt en 3D (js/foret3d.js), devant les blocs ; dès qu'elle est là, les
   plans dessinés qu'elle remplace s'effacent. */
.ac-px__3d { position: absolute; left: 0; right: 0; bottom: 0; height: var(--px-foret-h); z-index: 3; pointer-events: none; }
.ac-px__toile { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.ac-px__3d.is-3d .ac-px__toile { opacity: 1; }
.ac-px__3d.is-3d ~ :is(.ac-px__loin, .ac-px__brume, .ac-px__milieu, .ac-px__campus, .ac-px__lucioles, .ac-px__pres) {
  opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s;
}
.ac-px__couche svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Le ciel : le badge, la question — la typographie du grand titre (une ligne
   sombre, une verte), à la taille des titres de section —, sa phrase, puis
   les blocs. */
.ac-px__haut {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--ac-px-haut) var(--pq-pad) 0;
}
.ac-h2.ac-px__titre { margin-top: 18px; background: none; }
.ac-px__devise {
  margin: 14px 0 0; max-width: 40em;
  font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; font-weight: 500; color: var(--ac-mute); text-wrap: balance;
}
/* « Déjà 1 712 inscrits » (js/connexion.js, badgeInscrits) : le badge de « Formation 100 % offerte »,
   au-dessus de la question. Son point vert bat comme un direct ; le chiffre monte quand le badge
   arrive à l'écran, et un nouvel inscrit le fait passer au suivant, avec un « +1 ». Sa place est
   gardée en attendant le chiffre. */
.ac-inscrits {
  position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px 6px 12px; border-radius: 999px;
  border: 1px solid var(--ac-pastille-bord); background: var(--ac-pastille);
  color: var(--ac-mute); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
}
.ac-inscrits[hidden] { display: inline-flex !important; visibility: hidden; }
.ac-inscrits__nb { display: inline-block; font-weight: 800; color: var(--ac-txt); font-variant-numeric: tabular-nums; }
.ac-inscrits__point { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ac-vif); box-shadow: 0 0 0 4px var(--ac-vif-halo); }
.ac-inscrits__point::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--ac-vif); animation: cx-inscrits-onde 1.8s ease-out infinite; }
.ac-inscrits__plus {
  position: absolute; left: calc(100% + 8px); top: 5px; font-size: 12px; font-weight: 800; letter-spacing: 0; color: var(--ac-vif);
  opacity: 0; pointer-events: none; white-space: nowrap;
}
.ac-inscrits.is-nouveau .ac-inscrits__plus { animation: cx-inscrits-plus 2.4s ease-out; }
.ac-inscrits.is-nouveau .ac-inscrits__nb { animation: cx-inscrits-saut .6s cubic-bezier(.3, 1.6, .5, 1); }
.ac-luciole { animation: ac-luciole var(--d, 2s) ease-in-out var(--r, 0s) infinite alternate; }
@keyframes ac-luciole { from { opacity: .08; } to { opacity: .95; } }
/* Le bas de la scène se fond dans la page, très progressivement (une courbe douce, pas une ligne). */
.ac-px__fondu {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--px-foret-h) * .38); z-index: 7; pointer-events: none;
  background: linear-gradient(to top,
    rgb(var(--ac-fond-rgb)) 0%, rgba(var(--ac-fond-rgb), .96) 10%, rgba(var(--ac-fond-rgb), .86) 22%,
    rgba(var(--ac-fond-rgb), .68) 36%, rgba(var(--ac-fond-rgb), .46) 52%, rgba(var(--ac-fond-rgb), .25) 68%,
    rgba(var(--ac-fond-rgb), .09) 84%, rgba(var(--ac-fond-rgb), 0) 100%);
}

/* ── Pourquoi rejoindre le campus (js/accueil.js) ──────────────────────────────────
   Dans le ciel de la forêt, sous la question : les blocs de ce qui bloque, de
   tailles différentes, chacun avec sa petite scène ; la forêt passe devant
   eux en défilant. Après la forêt, la réponse monte de son bas (.ac-pq). */
.ac {
  --pq-max: 1080px;                    /* la largeur de la grille */
  --pq-pad: clamp(16px, 4vw, 48px);    /* la marge de la page */
  --pq-carte: #fff;                    /* opaques : le ciel (ses oiseaux) ne se voit pas au travers */
  --pq-pont: linear-gradient(120deg, rgba(255, 255, 255, .94), rgba(236, 248, 241, .94));
  --pq-alerte: #C2410C;
  --pq-alerte-fond: rgba(234, 88, 12, .1);
  --pq-perte: #E5484D;                 /* la chute, sans plan */
  /* Le portefeuille : son cuir, ses coutures, son bouton, et le relevé qui en sort. */
  --pq-cuir-dos: #0F5F4A; --pq-cuir-1: #23A97D; --pq-cuir-2: #13715A;
  --pq-couture: rgba(255, 255, 255, .62); --pq-bouton: #F2B83A;
  /* Le relevé « Mon PEA » : une petite carte blanche, sa grille, sa ligne de départ ; la courbe est rouge. */
  --pq-releve: #fff; --pq-releve-bord: rgba(15, 95, 74, .14); --pq-releve-txt: #12261F;
  --pq-grille: rgba(18, 38, 31, .08); --pq-depart: rgba(18, 38, 31, .32); --pq-perte-fond: rgba(229, 72, 77, .12);
}
.ac[data-ambiance="nuit"] {
  --pq-carte: linear-gradient(180deg, #111F1A, #060E0B);
  --pq-pont: linear-gradient(120deg, rgba(14, 34, 27, .96), rgba(5, 16, 12, .97));
  --pq-alerte: #FDBA74;
  --pq-alerte-fond: rgba(251, 146, 60, .14);
  --pq-perte: #FF6B6E;
  --pq-cuir-dos: #0A2A20; --pq-cuir-1: #17503E; --pq-cuir-2: #0C3127;
  --pq-couture: rgba(182, 255, 59, .5); --pq-bouton: #B6FF3B;
  --pq-releve: #10241D; --pq-releve-bord: rgba(182, 255, 59, .16); --pq-releve-txt: #E8F2ED;
  --pq-grille: rgba(255, 255, 255, .07); --pq-depart: rgba(232, 242, 237, .34); --pq-perte-fond: rgba(255, 107, 110, .16);
}
/* La grille : trois petits blocs, puis deux larges. Elle descend et recule un peu une fois arrivée (js). */
.ac-pq__grille {
  width: 100%; max-width: var(--pq-max); margin-top: clamp(30px, 5vh, 52px); text-align: left;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px;
  transform-origin: 50% 100%; will-change: transform;
}
/* Chaque bloc s'estompe à mesure qu'il passe sous les crêtes (js) : sur sa propre couche. */
.ac-pq__grille > .ac-pq__carte { will-change: opacity; }
.ac-pq__carte {
  grid-column: span 2; position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: 24px; background: var(--pq-carte); border: 1px solid var(--ac-carte-bord); box-shadow: var(--ac-carte-ombre);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .3s;
}
.ac-pq__carte:hover { transform: translateY(-4px); box-shadow: var(--ac-carte-ombre), 0 26px 60px -30px rgba(43, 196, 138, .5); }
/* Ils montent un peu en arrivant à l'écran, l'un après l'autre dans leur rangée. */
.ac-pq__carte:not(.is-vu) { opacity: 0; }
.ac-pq__carte.is-vu { animation: ac-pq-in .9s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 110ms) backwards; }
@keyframes ac-pq-in { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.ac-pq__carte--large { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }

/* La scène, au-dessus du texte (à droite pour les blocs larges). */
.ac-pq__visuel { position: relative; height: 190px; display: grid; place-items: center; overflow: hidden; }
.ac-pq__halo {
  position: absolute; inset: 8% 14%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--ac-vif-halo), transparent); filter: blur(4px);
}
.ac-pq__corps { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 2px 24px 26px; text-align: center; }
.ac-pq__titre { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--ac-txt); text-wrap: balance; }
.ac-pq__entier { white-space: nowrap; }
.ac-pq__texte { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ac-mute); text-wrap: pretty; }
.ac-pq__carte--large .ac-pq__corps { align-items: flex-start; justify-content: center; text-align: left; gap: 10px; padding: 28px 8px 28px 30px; }
.ac-pq__carte--large .ac-pq__visuel { height: auto; min-height: 262px; padding: 18px 22px 18px 6px; }
/* L'icône des blocs larges, dans un double anneau. */
.ac-pq__ico {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; margin: 0 0 8px 7px; border-radius: 50%;
  color: var(--ac-ico); background: var(--ac-ico-fond); border: 1px solid var(--ac-ico-bord);
}
.ac-pq__ico::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--ac-carte-bord); }
.ac-pq__ico .cm-ico { width: 20px; height: 20px; }

/* « Aucun plan de A à Z » : A … ? … Z, entouré d'un trait à la main qui se dessine. */
.ac-pq__az { position: relative; display: flex; align-items: center; gap: 4px; padding: 16px 30px; }
.ac-pq__lettre {
  font-size: 50px; font-weight: 800; line-height: 1; letter-spacing: -.04em;
  background: var(--ac-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ac-pq__chemin svg { display: block; width: 112px; height: 34px; overflow: visible; }
.ac-pq__pointilles { fill: none; stroke: var(--ac-route); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1.5 7; }
.ac-pq__pointe { fill: none; stroke: var(--ac-route); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ac-pq__doute { fill: var(--ac-mini); stroke: var(--ac-mini-bord); stroke-width: 1.4; }
.ac-pq__chemin text {
  font-size: 17px; font-weight: 800; fill: var(--ac-vif);
  transform-box: fill-box; transform-origin: center; animation: ac-pq-doute 2.6s ease-in-out infinite;
}
@keyframes ac-pq-doute { 0%, 100% { transform: none; } 45% { transform: scale(1.2) rotate(-10deg); } 60% { transform: scale(1.1) rotate(6deg); } }
.ac-pq__ovale { position: absolute; inset: -4px -12px; pointer-events: none; }
.ac-pq__ovale svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ac-pq__ovale path {
  fill: none; stroke: var(--ac-vif); stroke-width: 3; stroke-linecap: round; opacity: .85;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.ac-pq__carte.is-vu .ac-pq__ovale path { animation: ac-pq-trace 1.5s cubic-bezier(.45, 0, .2, 1) .55s forwards; }
@keyframes ac-pq-trace { to { stroke-dashoffset: 0; } }

/* « Perdu dès le départ » : une boussole dont l'aiguille ne sait pas où aller, et les questions autour. */
.ac-pq__anneaux {
  position: relative; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%;
  background: var(--ac-mini); border: 1px solid var(--ac-mini-bord); box-shadow: 0 18px 36px -24px rgba(21, 64, 50, .5);
}
.ac-pq__anneaux::before, .ac-pq__anneaux::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid var(--ac-carte-bord); pointer-events: none; }
.ac-pq__anneaux::before { inset: -12px; }
.ac-pq__anneaux::after { inset: -12px; border-color: var(--ac-vif); opacity: 0; animation: ac-pq-onde 3.2s ease-out infinite; }
@keyframes ac-pq-onde { from { opacity: .45; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
.ac-pq__boussole svg { display: block; width: 88px; height: 88px; }
.ac-pq__cadran { fill: none; stroke: var(--ac-ligne); stroke-width: 1.6; }
.ac-pq__trait { stroke: var(--ac-route); stroke-width: 2; stroke-linecap: round; opacity: .7; }
.ac-pq__nord { font-size: 11px; font-weight: 800; fill: var(--ac-vif); }
.ac-pq__aiguille { transform-box: fill-box; transform-origin: 50% 50%; animation: ac-pq-perdu 7s cubic-bezier(.45, .05, .3, 1) infinite; }
@keyframes ac-pq-perdu {
  0%, 100% { transform: rotate(-24deg); } 12% { transform: rotate(140deg); } 22% { transform: rotate(98deg); }
  38% { transform: rotate(252deg); } 50% { transform: rotate(214deg); } 64% { transform: rotate(18deg); }
  76% { transform: rotate(62deg); } 88% { transform: rotate(-72deg); }
}
.ac-pq__aiguille-n { fill: #E5484D; }
.ac-pq__aiguille-s { fill: var(--ac-route); }
.ac-pq__aiguille circle { fill: var(--ac-txt); }
.ac-pq__question {
  position: absolute; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 700; color: var(--ac-mini-txt); background: var(--ac-mini); border: 1px solid var(--ac-mini-bord);
  box-shadow: 0 8px 18px -12px rgba(21, 64, 50, .5);
  opacity: 0; animation: ac-pq-question 6s ease-in-out calc(var(--q) * -1.5s) infinite;
}
.ac-pq__question--0 { top: 16px; left: 9%; }
.ac-pq__question--1 { top: 30px; right: 8%; }
.ac-pq__question--2 { bottom: 22px; left: 12%; }
.ac-pq__question--3 { bottom: 14px; right: 11%; }
@keyframes ac-pq-question {
  0%, 100% { opacity: 0; transform: translateY(6px) scale(.9); }
  12%, 40% { opacity: 1; transform: none; }
  52% { opacity: 0; transform: translateY(-6px) scale(.95); }
}

/* « Un PEA qui fait du surplace » : un portefeuille à l'ombre légère ; dedans, le relevé « Mon PEA »,
   une petite carte blanche avec son graphique — une grille légère, la ligne du départ en pointillés, et
   la courbe rouge, comme « Sans plan », qui monte, redescend… et finit au même niveau. Le relevé sort du
   portefeuille quand le bloc arrive, et sa courbe se trace ; au survol, il se soulève un peu, sans jamais
   sortir du bloc (sur un écran tactile : de temps en temps, tout seul). Le S&P 500 est à cheval sur le
   bas du portefeuille, au milieu (un peu en dessous, il le chevauche légèrement) ; les autres lignes,
   achetées au fil des vidéos, flottent autour, loin des bords du bloc. */
.ac-pq__pf { position: relative; z-index: 1; width: min(48%, 172px); }
.ac-pq__pf svg { display: block; width: 100%; height: auto; overflow: visible; }
.ac-pq__pf-dos, .ac-pq__pf-languette { fill: var(--pq-cuir-dos); }
.ac-pq__pf-g1 { stop-color: var(--pq-cuir-1); }
.ac-pq__pf-g2 { stop-color: var(--pq-cuir-2); }
.ac-pq__pf-poche { fill: url(#ac-g-pf-cuir); }
.ac-pq__pf-couture { fill: none; stroke: var(--pq-couture); stroke-width: 1.2; stroke-dasharray: 3 3.4; stroke-linecap: round; }
.ac-pq__pf-bouton { fill: var(--pq-bouton); stroke: rgba(0, 0, 0, .16); stroke-width: 1; }
.ac-pq__rl { fill: var(--pq-releve); stroke: var(--pq-releve-bord); stroke-width: 1; }
.ac-pq__rl-nom { font-size: 10.5px; font-weight: 800; letter-spacing: -.01em; fill: var(--pq-releve-txt); }
.ac-pq__rl-tendance rect { fill: var(--pq-perte-fond); }
.ac-pq__rl-tendance path { fill: none; stroke: var(--pq-perte); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ac-pq__rl-grille { fill: none; stroke: var(--pq-grille); stroke-width: 1; }
.ac-pq__rl-depart { fill: none; stroke: var(--pq-depart); stroke-width: 1; stroke-dasharray: 2.5 3; }
.ac-pq__rl-aire-g { stop-color: var(--pq-perte); }
.ac-pq__rl-aire { opacity: 0; transition: opacity .8s ease 2.2s; }
.ac-pq__rl-courbe {
  fill: none; stroke: var(--pq-perte); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.ac-pq__rl-point { fill: var(--pq-perte); stroke: var(--pq-releve); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ac-pq__carte.is-vu .ac-pq__rl-courbe { animation: ac-pq-trace 1.6s cubic-bezier(.45, 0, .2, 1) 1s forwards; }
.ac-pq__carte.is-vu .ac-pq__rl-aire { opacity: 1; }
.ac-pq__carte.is-vu .ac-pq__rl-point { animation: ac-pq-point 1.8s ease-in-out 2.6s infinite; }
@keyframes ac-pq-point { 0%, 100% { opacity: 1; transform: none; } 50% { opacity: 1; transform: scale(1.45); } }
.ac-pq__releve {
  transform: translateY(36px); transform-box: fill-box; transform-origin: 50% 100%;
  transition: transform .9s cubic-bezier(.22, 1, .36, 1) .3s;
}
.ac-pq__carte.is-vu .ac-pq__releve { transform: none; }
@media (hover: hover) {
  .ac-pq__carte--pea.is-vu:hover .ac-pq__releve { transform: translateY(-9px) rotate(-2deg); transition: transform .6s cubic-bezier(.34, 1.4, .64, 1) 0s; }
}
@media (hover: none) {
  .ac-pq__carte--pea.is-vu .ac-pq__releve { animation: ac-pq-releve 6.5s cubic-bezier(.34, 1.3, .64, 1) 3s infinite; }
}
@keyframes ac-pq-releve { 0%, 60%, 100% { transform: none; } 70%, 86% { transform: translateY(-8px) rotate(-2deg); } }
.ac-pq__puce {
  position: absolute; z-index: 2; padding: 4px 8px; border-radius: 8px; white-space: nowrap;
  font-size: 10px; font-weight: 700; color: var(--ac-mini-txt); background: var(--pq-carte); border: 1px solid var(--ac-mini-bord);
  box-shadow: 0 8px 16px -12px rgba(21, 64, 50, .5);
  transform: translateX(var(--tx, 0)) rotate(var(--r, 0deg)); animation: ac-pq-flotte 4.6s ease-in-out calc(var(--p) * -.9s) infinite;
}
.ac-pq__puce--0 { --r: -7deg; top: 42%; left: 5%; }
.ac-pq__puce--1 { --r: 6deg; top: 38%; right: 6%; }
.ac-pq__puce--2 { --r: 5deg; top: 68%; left: 7%; }
.ac-pq__puce--3 { --r: -4deg; top: 82%; right: 5%; }
/* Le S&P 500, à cheval sur le bas du portefeuille, au milieu : un peu en dessous, il le chevauche
   légèrement (sa position est celle du portefeuille). */
.ac-pq__puce--4 { --r: -2deg; --tx: -50%; left: 50%; top: 87%; }
/* Le doublon : le même ETF, deux fois. */
.ac-pq__puce.is-double { color: var(--pq-alerte); border-color: var(--pq-alerte-fond); }
.ac-pq__puce.is-double::after { content: '×2'; margin-left: 5px; padding: 0 4px; border-radius: 4px; font-size: 9.5px; background: var(--pq-alerte-fond); }
@keyframes ac-pq-flotte { 50% { transform: translate(var(--tx, 0), -5px) rotate(var(--r, 0deg)); } }
/* Un bloc étroit (tablette, petit ordinateur) : le portefeuille un peu plus grand, et seulement deux lignes
   autour — l'ETF Monde et son doublon —, chacune dans un coin libre ; rien ne se chevauche. */
.ac-pq__carte--pea { container-type: inline-size; }
@container (max-width: 330px) {
  .ac-pq__pf { width: min(58%, 172px); }
  .ac-pq__puce { font-size: 9.5px; padding: 3px 7px; }
  .ac-pq__puce--1, .ac-pq__puce--2 { display: none; }
  .ac-pq__puce--0 { --r: -5deg; top: 9%; left: 7%; }
  .ac-pq__puce--3 { top: 86%; right: 6%; }
}

/* « Noyé sous les infos » : toujours trois conseils qui se contredisent. Le suivant arrive en bas, les
   autres glissent d'un cran, le plus ancien s'efface (js : filDuBruit). Le fil est posé sur la scène, à
   hauteur fixe : le bloc ne bouge pas. Fondus en haut et en bas, larges : les ombres s'y perdent. */
.ac-pq__carte--infos .ac-pq__visuel { padding: 0; }
.ac-pq__fil {
  position: absolute; inset: 0 18px 0 2px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden;
  padding: 22px 6px 28px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 30px), transparent 100%);
}
.ac-pq__bulle {
  flex: none; align-self: flex-start; max-width: 92%;
  display: flex; flex-direction: column; gap: 3px; padding: 9px 12px;
  border-radius: 14px 14px 14px 4px; background: var(--ac-mini); border: 1px solid var(--ac-mini-bord);
  box-shadow: 0 10px 22px -16px rgba(21, 64, 50, .55);
}
.ac-pq__bulle.is-droite { align-self: flex-end; border-radius: 14px 14px 4px 14px; }
.ac-pq__bulle.is-partante { opacity: 0; transition: opacity .5s ease; }
.ac-pq__source { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ac-pq__source::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ac-pq__source--yt { color: #E5484D; }
.ac-pq__source--tk { color: #0E7C86; }
.ac-pq__source--fo { color: #3B6FD8; }
.ac-pq__source--co { color: #C77A0A; }
.ac-pq__source--nl { color: #7C4DDB; }
.ac-pq__source--ig { color: #D6337A; }
.ac[data-ambiance="nuit"] :is(.ac-pq__source--tk, .ac-pq__source--fo, .ac-pq__source--nl) { filter: brightness(1.6); }
.ac-pq__conseil { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ac-mini-txt); }

/* « À la traîne, sans le savoir » : comme la roadmap du campus. Un point monte la courbe « avec un
   plan » d'étape en étape jusqu'au drapeau ; au même rythme se découvre « sans plan », qui hésite
   puis chute sous la ligne du départ, en rouge (js : courseTraine). */
.ac-pq__graphe { position: relative; width: 100%; padding-bottom: 26px; }
.ac-pq__graphe-svg, .ac-pq__graphe-svg svg { display: block; width: 100%; height: auto; overflow: visible; }
.ac-pq__grille-g { fill: none; stroke: var(--ac-ligne); stroke-dasharray: 2 6; }
.ac-pq__ligne-depart { fill: none; stroke: var(--ac-route); stroke-width: 1.2; stroke-dasharray: 3 5; opacity: .5; }
.ac-pq__perte-g { stop-color: var(--pq-perte); }
.ac-pq__perte { fill: url(#ac-g-perte); }
.ac-pq__sans { fill: none; stroke: var(--ac-route); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 5 6; }
.ac-pq__chute { fill: none; stroke: var(--pq-perte); stroke-width: 2.8; stroke-linecap: round; }
.ac-pq__avec-route { fill: none; stroke: var(--ac-route); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 6; opacity: .75; }
.ac-pq__avec { fill: none; stroke: var(--ac-vif); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(43, 196, 138, .55)); }
.ac-pq__depart { fill: var(--ac-txt); }
.ac-pq__etape { fill: var(--ac-mini); stroke: var(--ac-route); stroke-width: 2; transform-box: fill-box; transform-origin: center; transition: fill .3s ease, stroke .3s ease; }
.ac-pq__etape.is-allume { fill: var(--ac-vif); stroke: #CFFFE4; animation: ac-etape .6s ease-out; }
.ac-pq__drapeau { fill: #F2B83A; stroke: #E0A320; stroke-width: 1.6; stroke-linejoin: round; transition: filter .4s ease; }
.ac-pq__drapeau.is-atteint { filter: drop-shadow(0 0 7px rgba(242, 184, 58, .95)); animation: ac-drapeau .7s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 100%; }
.ac-pq__point circle { fill: #B6FF3B; stroke: #fff; stroke-width: 1.6; }
.ac-pq__point .ac-pq__lueur { fill: rgba(182, 255, 59, .35); stroke: none; animation: ac-lueur 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ac-pq__bout-sans circle { fill: var(--pq-perte); stroke: var(--ac-mini); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .3s ease; }
.ac-pq__bout-sans.is-vu circle { opacity: 1; animation: ac-pq-pouls 1.6s ease-in-out infinite; }
@keyframes ac-pq-pouls { 50% { transform: scale(1.3); } }
.ac-pq__etiq {
  position: absolute; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 700; background: var(--ac-mini); border: 1px solid var(--ac-mini-bord);
}
.ac-pq__etiq--avec { right: 13%; top: 0; color: var(--ac-vif); }
.ac-pq__etiq--sans { right: 0; bottom: 0; color: var(--pq-perte); }
.ac-pq__etiq--depart { left: 0; bottom: 0; color: var(--ac-dim); }

/* La réponse, après la forêt : elle monte de son bas, devant elle (marge négative). */
.ac-pq {
  position: relative; z-index: 9;
  margin-top: calc(-1 * clamp(120px, 24vh, 260px));
  padding: 0 var(--pq-pad) clamp(24px, 5vh, 56px);
}
.ac-pq__pont {
  max-width: var(--pq-max); margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr); align-items: center; gap: 30px clamp(40px, 5vw, 72px);
  padding: clamp(40px, 4.4vw, 56px) clamp(40px, 5vw, 72px); background: var(--pq-pont);
}
.ac-pq__pont > .ac-pq__parcours { grid-row: 1 / span 2; }
/* Le plan : juste le chemin, sans décor — du départ aux étapes 1, 2, 3, 4, jusqu'au drapeau de ton
   objectif. Il s'anime comme la roadmap du campus (js : cheminRoadmap) : les étapes s'allument une à
   une, le drapeau s'éclaire et flotte à l'arrivée. */
.ac-pq__parcours { position: relative; z-index: 1; }
.ac-pq__parcours svg { display: block; width: 100%; height: auto; overflow: visible; }
.ac-pq__parcours .ac-route { stroke-width: 2.4; }
.ac-pq__parcours .ac-route__etape { stroke-width: 2; }
.ac-pc__depart { fill: var(--ac-txt); }
.ac-pc__num { font-size: 11px; font-weight: 800; fill: var(--ac-mute); pointer-events: none; transition: fill .35s ease; }
.ac-route__etape.is-allume + .ac-pc__num { fill: #fff; }
.ac-pc__legende { font-size: 10px; font-weight: 700; letter-spacing: .02em; fill: var(--ac-mute); }
.ac-pc__legende--fin { font-size: 10.5px; font-weight: 800; fill: #B7791F; }
.ac[data-ambiance="nuit"] .ac-pc__legende--fin { fill: #F6D365; }
.ac-pc__mat { fill: none; stroke: #C99A2E; stroke-width: 2; stroke-linecap: round; }
.ac-pc__fanion { fill: #F2B83A; stroke: #E0A320; stroke-width: 1.4; stroke-linejoin: round; transform-box: fill-box; transform-origin: 0 50%; }
.ac-pc__socle { fill: #F2B83A; stroke: var(--ac-mini); stroke-width: 1.6; }
.ac-pc__halo { opacity: .3; transition: opacity .4s ease; }
.ac-pq__parcours svg:has(.is-atteint) .ac-pc__halo { opacity: 1; }
.ac-pc__objectif.ac-route__drapeau { fill: none; stroke: none; }
.ac-pc__objectif.ac-route__drapeau.is-atteint { animation: none; filter: drop-shadow(0 0 6px rgba(242, 184, 58, .9)); }
.ac-pc__objectif.is-atteint .ac-pc__fanion { animation: ac-pc-fanion .7s ease-in-out infinite alternate; }
@keyframes ac-pc-fanion { to { transform: skewY(-8deg) scaleX(.92); } }
.ac-pq__pont-lueur {
  position: absolute; right: -8%; top: -60%; width: 60%; height: 220%; pointer-events: none;
  background: radial-gradient(closest-side, var(--ac-fin-lueur), transparent);
}
.ac-pq__pont-texte, .ac-pq__pont-actions { position: relative; z-index: 1; }
.ac-pq__pont-sur { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--ac-vif); }
.ac-pq__pont-titre { margin: 8px 0 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; color: var(--ac-txt); text-wrap: balance; }
.ac-pq__accent { background: var(--ac-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ac-pq__pont-phrase { margin: 10px 0 0; max-width: 640px; font-size: 15.5px; line-height: 1.6; color: var(--ac-mute); text-wrap: pretty; }
.ac-pq__pont-actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ac-pq__dedans {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: none; color: var(--ac-mute); font: inherit; font-size: 14px; font-weight: 600; transition: color .2s;
}
.ac-pq__dedans:hover { color: var(--ac-vif); }
.ac-pq__dedans-fleche svg {
  display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transition: transform .25s;
}
.ac-pq__dedans:hover .ac-pq__dedans-fleche svg { transform: rotate(90deg) translateX(2px); }

/* Tablette : trois petits blocs par rangée (le « A … Z » se resserre), les blocs larges sur toute la largeur.
   La réponse : le chemin à gauche, le texte puis les boutons à sa droite. */
@media (max-width: 1023px) {
  .ac-pq__az { padding: 14px 20px; }
  .ac-pq__lettre { font-size: 40px; }
  .ac-pq__chemin svg { width: 84px; }
  .ac-pq__carte--large { grid-column: 1 / -1; }
  .ac-pq__corps { padding: 2px 18px 22px; }
  .ac-pq__pont { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 26px 40px; padding: 40px 40px 42px; }
}
/* Téléphone : une colonne. */
@media (max-width: 760px) {
  .ac-pq { margin-top: calc(-1 * clamp(70px, 14vh, 140px)); }
  .ac-pq__grille { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ac-pq__carte, .ac-pq__carte--large { grid-column: 1 / -1; }
  .ac-pq__carte--large { grid-template-columns: minmax(0, 1fr); }
  .ac-pq__carte--large .ac-pq__corps { padding: 24px 22px 6px; }
  .ac-pq__carte--large .ac-pq__visuel { min-height: 0; padding: 10px 18px 20px; }
  .ac-pq__carte--infos .ac-pq__visuel { height: 252px; padding: 0; }
  .ac-pq__fil { inset: 0 12px; padding: 16px 4px 26px; }
  .ac-pq__visuel { height: 180px; }
  .ac-pq__puce--3 { top: 84%; }
  .ac-pq__az { padding: 16px 30px; }
  .ac-pq__lettre { font-size: 50px; }
  .ac-pq__chemin svg { width: 112px; }
  .ac-pq__titre { font-size: 18px; }
  .ac-pq__texte { font-size: 14px; }
  .ac-pq__carte.is-vu { animation-delay: 0s; }
  .ac-pq__pont { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 24px; padding: 34px 24px 36px; }
  .ac-pq__pont > .ac-pq__parcours { grid-row: auto; width: min(100%, 280px); }
  .ac-pq__pont-actions { grid-column: auto; flex-direction: column; gap: 10px; }
  .ac-pq__pont-phrase { font-size: 15px; }
}
/* Très petit écran : « Pourquoi rejoindre le » tient encore sur une ligne. */
@media (max-width: 340px) { .ac-h2.ac-px__titre { font-size: 27px; } }
@media (max-width: 360px) {
  .ac-pq__lettre { font-size: 42px; }
  .ac-pq__chemin svg { width: 92px; }
}
/* Avec « moins d'animations » : tout est déjà dessiné, rien ne bouge. */
@media (prefers-reduced-motion: reduce) {
  .ac-pq__ovale path { stroke-dashoffset: 0; }
  .ac-pq__question { opacity: 1; }
  .ac-pq__releve { transform: none; }
  .ac-pq__rl-courbe { stroke-dashoffset: 0; }
  .ac-pq__rl-aire, .ac-pq__rl-point { opacity: 1; }
}

/* Ce qu'il y a dans le campus : cinq colonnes, une image derrière chacune. */
.ac-campus { position: relative; padding: clamp(40px, 9vh, 112px) clamp(16px, 4vw, 48px) clamp(40px, 8vh, 96px); }
.ac-campus__tete { max-width: 760px; margin: 0 auto; text-align: center; }
.ac-sur { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ac-vif); }
.ac-h2 {
  margin: 14px 0 0; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.06; font-weight: 700; letter-spacing: -.035em;
  text-wrap: balance;
  background: var(--ac-titre); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Un titre à mot vert (« bien démarrer », « là où tu es ») : chaque morceau
   peint son propre texte. Le dégradé du titre ne passe plus sous le vert,
   où il dessinait un liseré gris au bord des lettres. */
.ac-h2--accent { background: none; }
.ac-h2__texte {
  background: var(--ac-titre); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* « bien démarrer » : le vert du grand titre. */
.ac-h2__accent {
  background-image: var(--ac-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ac-campus__sous { margin: 16px auto 0; max-width: 560px; color: var(--ac-mute); font-size: 16.5px; line-height: 1.6; text-wrap: balance; }
.ac-cartes {
  list-style: none; margin: clamp(32px, 6vh, 60px) auto 0; padding: 0; max-width: 1280px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
}
.ac-carte {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: var(--ac-carte); border: 1px solid var(--ac-carte-bord); box-shadow: var(--ac-carte-ombre);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .3s;
}
/* Au survol, la carte se soulève et son ombre s'allonge — sans trait autour. */
.ac-carte:hover { transform: translateY(-4px); box-shadow: var(--ac-carte-ombre), 0 26px 60px -30px rgba(43, 196, 138, .55); }
.ac-carte:not(.is-vu), .ac-campus__tete:not(.is-vu), .ac-avis__tete:not(.is-vu) { opacity: 0; }
.ac-carte.is-vu { animation: ac-carte-in .8s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 90ms) backwards; }
.ac-campus__tete.is-vu, .ac-avis__tete.is-vu { animation: ac-carte-in .8s cubic-bezier(.22, 1, .36, 1) backwards; }
@keyframes ac-carte-in { from { opacity: 0; transform: translateY(22px); } }
/* L'illustration s'efface vers le bas dans la carte elle-même (un masque, pas un voile
   de couleur) : aucune couture entre l'image et le texte, de jour comme de nuit. */
.ac-carte__visuel {
  position: relative; height: 168px; overflow: hidden; background: var(--ac-visuel);
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent);
  mask-image: linear-gradient(to bottom, #000 66%, transparent);
}
/* Les images restent en retrait : à peine floues et transparentes, plus nettes au survol. */
.ac-carte__fond {
  position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); object-fit: cover;
  filter: blur(2px) var(--ac-image); transform: scale(1.02); opacity: .5;
  transition: filter .5s ease, transform .6s cubic-bezier(.22, 1, .36, 1), opacity .5s ease;
}
.ac-carte:hover .ac-carte__fond { filter: blur(0) var(--ac-image); transform: scale(1.06); opacity: .66; }
.ac-carte__fond--portrait { object-position: 50% 18%; opacity: .3; }
.ac-carte:hover .ac-carte__fond--portrait { opacity: .42; }
/* La nuit, les images claires sont teintées de vert profond. */
.ac[data-ambiance="nuit"] .ac-carte--formation .ac-carte__visuel::before,
.ac[data-ambiance="nuit"] .ac-carte--lives .ac-carte__visuel::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(150deg, #2E9C7A, #0E3A2C 75%, #071812); mix-blend-mode: multiply; opacity: .6;
}
.ac-carte__halo { position: absolute; inset: -10px; filter: blur(8px); background: var(--ac-halo-carte); }
.ac-mini { position: absolute; z-index: 3; }
/* La formation : un petit lecteur où défilent des images des vidéos (js/accueil.js,
   apercuFormation) — une par vidéo, sa barre qui se remplit, puis la suivante. */
.ac-mini--lecteur {
  left: 50%; top: 14px; transform: translateX(-50%); width: 78%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: #0B1A15; border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 16px 30px -16px rgba(6, 30, 22, .7);
}
.ac-mini__ecran i {
  position: absolute; inset: 0; opacity: 0;
  background: url(/formation-apercu.webp) calc(var(--n) * 25%) 0 / 500% 100% no-repeat;
  transform: scale(1.04); transition: opacity .9s ease, transform 3.4s ease-out;
}
.ac-mini__ecran i.is-on { opacity: 1; transform: scale(1.1); }
.ac-mini__commandes {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 7px; padding: 14px 9px 7px;
  background: linear-gradient(to top, rgba(4, 14, 10, .72), transparent);
}
.ac-mini__play { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .95); }
.ac-mini__play svg { width: 9px; height: 9px; margin-left: 1.5px; fill: #0B5C45; }
.ac-mini__barres { flex: 1; display: flex; gap: 3px; }
.ac-mini__barres i { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .38); }
.ac-mini__barres b { position: absolute; inset: 0; border-radius: inherit; background: #B6FF3B; box-shadow: 0 0 6px rgba(182, 255, 59, .8); transform: scaleX(0); transform-origin: left; }
.ac-mini__barres i:first-child b { transform: scaleX(.35); }
.ac-mini--lecteur.is-lecture .ac-mini__barres i b { transform: scaleX(0); }
.ac-mini--lecteur.is-lecture .ac-mini__barres i.is-vue b { transform: scaleX(1); }
.ac-mini--lecteur.is-lecture .ac-mini__barres i.is-en-cours b { animation: ac-barre 2.6s linear forwards; }
@keyframes ac-barre { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ac-mini--carte { inset: 16px 16px 34px; }
.ac-mini--carte svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* La roadmap : un point vert suit les pointillés (js/accueil.js, cheminRoadmap) ; le chemin
   s'allume derrière lui, chaque étape s'éclaire à son passage, le drapeau brille à l'arrivée. */
.ac-route { fill: none; stroke: var(--ac-route); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.ac-route__trace { fill: none; stroke: #2BC48A; stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(43, 196, 138, .7)); stroke-dasharray: 0 1000; }
.ac-route__etape { fill: var(--ac-mini); stroke: var(--ac-route); stroke-width: 2; transition: fill .35s ease, stroke .35s ease; }
.ac-route__etape.is-allume { fill: #2BC48A; stroke: #CFFFE4; animation: ac-etape .6s ease-out; }
@keyframes ac-etape { 40% { transform: scale(1.35); } }
.ac-route__etape { transform-box: fill-box; transform-origin: center; }
.ac-route__point circle { fill: #B6FF3B; stroke: #fff; stroke-width: 1.6; }
.ac-route__point .ac-route__lueur { fill: rgba(182, 255, 59, .35); stroke: none; animation: ac-lueur 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ac-lueur { 50% { transform: scale(1.35); opacity: .45; } }
.ac-route__drapeau { fill: #F2B83A; stroke: #E0A320; stroke-width: 1.6; stroke-linejoin: round; transition: filter .4s ease; }
.ac-route__drapeau.is-atteint { filter: drop-shadow(0 0 7px rgba(242, 184, 58, .95)); animation: ac-drapeau .7s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 100%; }
@keyframes ac-drapeau { to { transform: skewY(-6deg) scaleX(.94); } }
/* Le live : une petite pastille « En direct » dans le coin, qui laisse voir le visage ;
   deux messages du chat en bas. */
.ac-mini--direct {
  left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px 4px 7px; border-radius: 999px; white-space: nowrap;
  background: rgba(229, 57, 53, .94); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .16), 0 6px 14px -6px rgba(229, 57, 53, .8);
}
.ac-mini--direct i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: ac-pouls 1.6s ease-in-out infinite; }
@keyframes ac-pouls { 50% { opacity: .35; } }
.ac-mini--bulles { right: 12px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.ac-mini--bulles span {
  padding: 5px 10px; border-radius: 12px 12px 4px 12px; white-space: nowrap;
  background: var(--ac-mini); border: 1px solid var(--ac-mini-bord); color: var(--ac-mini-txt);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 11px; font-weight: 600;
}
.ac-mini--bulles span + span { background: #DFFFB0; border-color: rgba(120, 200, 40, .4); color: #1B3A10; }
/* La communauté : deux messages en miniature, les visages des membres. */
.ac-mini--fil { left: 14px; right: 14px; top: 46px; display: flex; flex-direction: column; gap: 7px; }
.ac-mini__post {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 12px;
  background: var(--ac-mini); border: 1px solid var(--ac-mini-bord); color: var(--ac-mini-txt);
  font-size: 11px; font-weight: 600; box-shadow: 0 8px 18px -14px rgba(6, 40, 30, .6);
}
.ac-mini__post:nth-child(2) { margin-left: 18px; opacity: .85; }
.ac-mini__post i {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
  font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2BC48A, #14755C);
}
.ac-mini__post:nth-child(2) i { background: linear-gradient(135deg, #5EC8F2, #2A7FB8); }
.ac-mini__post span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-mini__post small { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; opacity: .75; }
.ac-mini__post small .cm-ico { width: 11px; height: 11px; color: #F0607A; }
.ac-mini__avatars { left: 14px; top: 12px; display: flex; }
.ac-mini__avatars i {
  display: grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--ac-visuel);
  font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2BC48A, #14755C);
}
.ac-mini__avatars i:first-child { margin-left: 0; }
.ac-mini__avatars i:nth-child(2) { background: linear-gradient(135deg, #F5C451, #B8902F); }
.ac-mini__avatars i:nth-child(3) { background: linear-gradient(135deg, #5EC8F2, #2A7FB8); }
.ac-mini__avatars i:nth-child(4) { background: linear-gradient(135deg, #D9FF9A, #7BC63A); color: #07130F; }
/* L'école : les 7 formations en petites cartes qui défilent (js/accueil.js, carrousel) —
   celle du milieu avec son nom, ses voisines de chaque côté — et la note des élèves dessous. */
.ac-mini--ecole { left: 0; right: 0; top: 20px; display: flex; flex-direction: column; align-items: center; }
.ac-mini__pile { position: relative; align-self: stretch; height: 72px; }
.ac-mini__formation {
  position: absolute; left: 50%; top: 0; width: 72px; height: 70px; margin-left: -36px; padding: 10px 6px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 4px; text-align: center;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .78); background: var(--fond); color: var(--encre);
  box-shadow: 0 12px 22px -16px rgba(6, 40, 30, .6), inset 0 1px 0 rgba(255, 255, 255, .7);
  transform: translateX(var(--x, 0)) scale(var(--s, 1)); transform-origin: 50% 70%;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .5s ease, filter .5s ease;
}
.ac-mini__formation .cm-ico { display: block; flex: none; width: 20px; height: 20px; color: var(--accent); }
.ac-mini__formation-nom { font-size: 9px; font-weight: 700; line-height: 1.18; letter-spacing: -.01em; transition: opacity .4s ease; }
/* Les voisines ne montrent que leur icône, un peu en retrait. */
.ac-mini__formation:not(.is-centre) { filter: saturate(.85) brightness(.97); justify-content: center; }
.ac-mini__formation:not(.is-centre) .ac-mini__formation-nom { opacity: 0; position: absolute; }
.ac-mini__avis {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 9px; border-radius: 999px;
  background: var(--ac-mini); border: 1px solid var(--ac-mini-bord); color: var(--ac-mini-txt);
  font-size: 10px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.ac-mini__etoiles { display: inline-flex; gap: 1px; }
.ac-mini__etoiles svg { width: 10px; height: 10px; fill: #F2B83A; }
.ac-carte__halo--chaud {
  background:
    radial-gradient(55% 60% at 25% 35%, rgba(43, 196, 138, .3), transparent 70%),
    radial-gradient(45% 55% at 78% 72%, rgba(245, 196, 81, .24), transparent 70%), var(--ac-visuel);
}
.ac-carte__halo--ecole {
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(43, 196, 138, .3), transparent 70%),
    radial-gradient(40% 50% at 15% 20%, rgba(120, 96, 210, .16), transparent 70%),
    radial-gradient(40% 50% at 85% 20%, rgba(204, 102, 60, .14), transparent 70%), var(--ac-visuel);
}
.ac-carte__corps { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: -24px; padding: 0 20px 22px; }
.ac-carte__ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--ac-ico);
  background: var(--ac-ico-fond); border: 1px solid var(--ac-ico-bord); box-shadow: 0 10px 24px -14px var(--ac-ico);
}
.ac-carte__ico .cm-ico { width: 21px; height: 21px; }
.ac-carte__titre { margin: 4px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--ac-txt); }
.ac-carte__texte { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ac-mute); }
/* Le bas de la carte : l'étiquette, et la flèche qui dit que la carte s'ouvre. */
.ac-carte__pied { margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ac-carte__etiquette {
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--ac-pastille-bord); background: var(--ac-pastille);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ac-mute);
}
.ac-carte__aller {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--ac-pastille-bord); background: var(--ac-pastille); color: var(--ac-mute);
  transition: background .3s, color .3s, border-color .3s, transform .3s cubic-bezier(.22, 1, .36, 1);
}
.ac-carte__aller svg { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.ac-carte:hover .ac-carte__aller, .ac-carte:has(.ac-carte__lien:focus-visible) .ac-carte__aller { background: var(--ac-vif); border-color: var(--ac-vif); color: #fff; transform: translateX(2px); }
.ac[data-ambiance="nuit"] .ac-carte:hover .ac-carte__aller,
.ac[data-ambiance="nuit"] .ac-carte:has(.ac-carte__lien:focus-visible) .ac-carte__aller { color: #0B1F19; }
/* Toute la carte est un bouton (posé dessus, invisible) ; au clavier, son contour s'allume. */
.ac-carte__lien {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; padding: 0; margin: 0;
  border: 0; border-radius: inherit; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ac .ac-carte__lien:focus-visible { outline: 2px solid var(--ac-vif); outline-offset: -2px; }
.ac-carte:has(.ac-carte__lien:focus-visible) { transform: translateY(-4px); border-color: var(--ac-carte-survol); }

/* L'avis des Seqooiens : le mur d'avis de L'école (js/mur-avis.js), aux
   couleurs de la page, de jour comme de nuit. Sa place est gardée tant que
   les avis ne sont pas arrivés : rien ne saute au-dessus de lui. */
.ac-avis { position: relative; padding: clamp(16px, 4vh, 48px) clamp(16px, 4vw, 48px) 0; }
.ac-avis__tete { max-width: 760px; margin: 0 auto; text-align: center; }
.ac-avis__note { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14px; font-weight: 600; color: var(--ac-mute); }
.ac-avis__note .av5 svg { width: 16px; height: 16px; }
.ac-avis__mur { max-width: 1180px; margin: clamp(22px, 4.5vh, 44px) auto 0; min-height: 720px; }
.ac-avis__mur.is-plein { min-height: 0; }
.ac .avis-card {
  background:
    radial-gradient(240px circle at var(--mx) var(--my), hsl(158 72% 42% / .05), transparent 70%),
    var(--ac-carte);
  border-color: var(--ac-carte-bord); box-shadow: var(--ac-carte-ombre);
}
.ac .avis-t, .ac .avis-n { color: var(--ac-txt); }
.ac .avis-q { color: var(--ac-mute); }
.ac .avis-d { color: var(--ac-dim); }
.ac .avis-plus { color: var(--ac-vif); }
.ac .ac-avis__source { margin: 16px 0 0; color: var(--ac-dim); }
.ac .ac-avis__source a { color: var(--ac-vif); }
@media (max-width: 700px) { .ac-avis__mur { min-height: 600px; } }

/* Le dernier appel. */
.ac-fin { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(48px, 9vh, 112px) 20px clamp(64px, 12vh, 136px); }
.ac-fin::before {
  content: ''; position: absolute; left: 50%; top: 60%; width: min(1100px, 150vw); height: 560px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--ac-fin-lueur), transparent); pointer-events: none;
}
.ac-fin > * { position: relative; }
.ac-fin__badge {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: var(--ac-ico);
  background: var(--ac-ico-fond); border: 1px solid var(--ac-ico-bord); box-shadow: 0 14px 34px -16px var(--ac-ico);
}
.ac-fin__badge .cm-ico { width: 28px; height: 28px; }
.ac-fin__titre { margin-top: 22px; max-width: 780px; }
.ac-fin__sous { margin: 16px auto 30px; max-width: 560px; color: var(--ac-mute); font-size: 16.5px; line-height: 1.6; text-wrap: balance; }
.ac-fin__note { margin: 18px 0 0; font-size: 12.5px; color: var(--ac-dim); }

/* Le pied de page légal : celui du campus, et sa version sombre la nuit. */
.seq-legal.ac-legal { margin: 0; border-top: 1px solid var(--ac-ligne); background: transparent; }
.ac[data-ambiance="nuit"] .ac-legal { color: var(--ac-dim); }
.ac[data-ambiance="nuit"] .ac-legal .seq-legal-links a { color: rgba(232, 242, 237, .62); }
.ac[data-ambiance="nuit"] .ac-legal .seq-legal-links a:hover, .ac[data-ambiance="nuit"] .ac-legal .seq-legal-links a:focus-visible { color: #B6FF3B; }
.ac[data-ambiance="nuit"] .ac-legal .seq-legal-sep { color: rgba(255, 255, 255, .2); }
.ac[data-ambiance="nuit"] .ac-legal .seq-legal-copy { color: var(--ac-dim); }
.ac[data-ambiance="nuit"] .ac-legal .seq-legal-disc { color: rgba(232, 242, 237, .38); }

/* La fenêtre d'accès : la carte de connexion sur la page assombrie. */
.modal.ac-acces { display: flex; flex-direction: column; align-items: center; padding: 20px 14px; }
.modal.ac-acces[data-ambiance="nuit"] {
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15);
}
.ac-acces:focus { outline: none; }
/* Un peu plus large que l'écran de démarrage : de la place pour les 3 vidéos. */
.ac-acces .cx-wrap { position: relative; margin: auto 0; max-width: 476px; }
.ac-acces .cx {
  gap: 16px; padding-top: 30px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 40px 100px -30px rgba(6, 30, 22, .65), 0 0 0 1px rgba(255, 255, 255, .45), 0 0 90px -30px rgba(43, 196, 138, .55);
}
/* Un peu d'air entre la phrase et le premier champ. */
.ac-acces .cx-tete { margin-bottom: 6px; }
.ac-acces .cx-atouts { display: none; }
.ac-acces .cx-foot { color: #fff; text-shadow: 0 1px 2px rgba(6, 30, 22, .45); }
.ac-acces .cx-recaptcha-mention { color: rgba(255, 255, 255, .78); }
.ac-acces[data-ambiance="nuit"] .cx-foot { color: rgba(232, 242, 237, .74); text-shadow: none; }
.ac-acces[data-ambiance="nuit"] .cx-recaptcha-mention { color: rgba(232, 242, 237, .46); }
/* La mention reCAPTCHA de l'écran du mot de passe est dans la carte, sur blanc. */
.ac-acces .cx .cx-recaptcha-mention { margin: 4px 0 0; color: var(--muted-2); }
.ac-acces__fermer {
  position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: rgba(21, 64, 50, .06); color: var(--muted); cursor: pointer;
  transition: background .2s, color .2s, transform .3s;
  animation: cx-in .4s ease .25s both;
}
.ac-acces__fermer:hover { background: rgba(21, 64, 50, .12); color: var(--text); transform: rotate(90deg); }
.ac-acces__fermer .cm-ico { width: 18px; height: 18px; }
.ac-acces.is-closing .cx-wrap { animation: bulle-out .22s ease forwards; }

/* Tablette : trois cartes, puis deux au centre. */
@media (max-width: 1180px) {
  .ac-cartes { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 900px; }
  .ac-carte { grid-column: span 2; }
  .ac-carte:nth-child(4) { grid-column: 2 / span 2; }
}
/* Téléphone : les cartes en lignes compactes, l'image derrière tout le texte. */
@media (max-width: 760px) {
  .ac {
    --ac-barre: 56px; --ac-arc: clamp(80px, 11vh, 112px); --ac-plafond: 3.1; --ac-cime: 26px; --ac-halo: 30px;
    --ac-px-haut: clamp(56px, 9vh, 96px);
    /* La forêt : un peu moins haute qu'un écran ; en portrait, ses crêtes sont plus haut. */
    --px-foret-h: max(480px, min(82vh, 150vw));
    --px-crete: .24;
    --px-mord: calc(var(--px-foret-h) * var(--px-crete) - 24px);
    --px-ciel-plus: 90px;
    --px-debut: .82;
    --px-plonge: .64;
  }
  .ac .ac-logo { width: 86px; height: 26px; }
  .ac-barre__droite { gap: 8px; }
  /* Sur téléphone, pas de choix Jour / Nuit : la page reste au jour (cf. accueil.js). */
  .ac-ambiance { display: none; }
  .ac-connexion { gap: 6px; height: 34px; padding: 0 13px 0 11px; font-size: 13px; }
  .ac-connexion .cm-ico { width: 15px; height: 15px; }
  /* De l'air entre la barre du haut et le badge « Formation 100 % offerte ». */
  .ac-hero { padding-top: calc(var(--ac-barre) + 20px); }
  /* Sur téléphone, le badge reste décollé de la barre du haut ; le sous-titre se rapproche du titre. */
  .ac-hero__contenu { top: 0; }
  .ac-sol { margin-top: calc(clamp(32px, 6vh, 56px) + 6px); }
  .ac-oeil { gap: 7px; padding: 6px 12px 6px 10px; font-size: 9.5px; letter-spacing: .12em; }
  .ac-oeil__point { width: 6px; height: 6px; box-shadow: 0 0 0 3px var(--ac-vif-halo), 0 0 8px var(--ac-vif); }
  /* « grandir financièrement. » tient sur une ligne : la taille suit la largeur du texte disponible. */
  .ac-hero__contenu { container-type: inline-size; }
  .ac-titre { margin-top: 20px; font-size: clamp(25px, 7.4vw, 36px); font-size: clamp(25px, 8.5cqi, 36px); letter-spacing: -.025em; }
  .ac-sous { margin-top: 10px; font-size: 13.5px; line-height: 1.55; }
  .ac-action { margin-top: 26px; }
  .ac-cta { height: 54px; padding: 0 12px 0 26px; font-size: 16px; }
  .ac-preuve { margin-top: 18px; font-size: 12.5px; }
  .ac-preuve__sep { display: none; }
  /* Les promesses, sous le sous-titre, sur une seule ligne : le texte rapetisse un peu sur un petit
     écran (js : surUneLigne). */
  .ac-promesses {
    flex-wrap: nowrap; justify-content: center; gap: 0 11px; max-width: 100%; margin-top: 12px; white-space: nowrap;
    font-size: 12.5px; letter-spacing: -.015em;
  }
  .ac-promesses li { gap: 4px; }
  .ac-promesses__ico { width: 1.12em; height: 1.12em; }
  .ac-hero__contenu { padding-left: 14px; padding-right: 14px; }
  .ac-px__devise { margin-top: 10px; font-size: 15px; max-width: 30ch; }
  .ac-h2.ac-px__titre { margin-top: 16px; }
  .ac-inscrits { gap: 7px; padding: 5px 11px 5px 10px; font-size: 9.5px; letter-spacing: .12em; }
  .ac-inscrits__point { width: 6px; height: 6px; box-shadow: 0 0 0 3px var(--ac-vif-halo); }
  .ac-cartes { grid-template-columns: 1fr; gap: 12px; max-width: 520px; }
  .ac-carte, .ac-carte:nth-child(4) { grid-column: auto; }
  .ac-carte.is-vu { animation-delay: 0s; }
  .ac-carte__visuel { position: absolute; inset: 0; height: auto; opacity: .55; }
  .ac-carte__visuel { -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000); mask-image: linear-gradient(90deg, transparent 38%, #000); }
  .ac-carte .ac-mini { display: none; }
  .ac-carte__corps {
    display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start;
    margin-top: 0; padding: 18px 18px 18px 16px;
  }
  .ac-carte__ico { grid-row: 1 / span 3; }
  .ac-carte__titre { margin: 0; font-size: 17px; }
  .ac-carte__texte { font-size: 13.5px; }
  .ac-carte__pied { margin-top: 8px; }
  .ac-carte__aller { width: 28px; height: 28px; }
  .ac-fin__sous { font-size: 15.5px; }
}
@supports (height: 100svh) {
  @media (max-width: 760px) { .ac { --px-foret-h: max(480px, min(82svh, 150vw)); } }
}
@media (prefers-reduced-motion: reduce) {
  .ac, .ac-oeil, .ac-titre, .ac-sous, .ac-action, .ac-preuve, .ac-promesses, .ac-carte.is-vu, .ac-campus__tete.is-vu, .ac-avis__tete.is-vu { animation: none; }
  .ac-carte:not(.is-vu), .ac-campus__tete:not(.is-vu), .ac-avis__tete:not(.is-vu) { opacity: 1; }
  .ac-cta::after, .ac-mini--direct i, .ac-luciole { animation: none; }
  .ac-cta::after { display: none; }
  .ac-planete__toile, .ac-planete__repli { transition: none; }
}

.boot__loader { position: relative; width: 80px; height: 80px; display: grid; place-items: center; }
.ld { position: absolute; border-radius: 50%; }
.ld--glow { inset: 0; background: rgba(43, 196, 138, .15); filter: blur(24px); animation: ld-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.ld--dash { inset: 0; border: 1px dashed rgba(29, 158, 117, .4); animation: ld-spin 10s linear infinite; }
.ld--arc {
  inset: 4px; border: 2px solid transparent; border-top-color: #1D9E75;
  box-shadow: 0 0 6px rgba(29, 158, 117, .5); animation: ld-spin 2s linear infinite;
}
.ld--rev {
  inset: 12px; border: 2px solid transparent; border-bottom-color: #14755C;
  box-shadow: 0 0 6px rgba(20, 117, 92, .4); animation: ld-spin 3s linear infinite reverse;
}
.ld--fast { inset: 20px; border: 1px solid transparent; border-left-color: rgba(14, 94, 74, .6); animation: ld-spin 1s ease-in-out infinite; }
.ld--orbit { inset: 0; animation: ld-spin 4s linear infinite; }
.ld--orbit i {
  position: absolute; top: 0; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: #1D9E75; box-shadow: 0 0 4px rgba(29, 158, 117, .9);
}
.ld--core { position: relative; width: 8px; height: 8px; background: #0E5E4A; box-shadow: 0 0 6px rgba(29, 158, 117, .6); animation: ld-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
@keyframes ld-pulse { 50% { opacity: .5; } }

/* ── Marque ─────────────────────────────────────────────────────────────── */
/* Le logo « Seqooia Campus » (l'arbre, SEQOOIA, et CAMPUS dessous) est un PNG
   sur fond transparent : on s'en sert comme masque pour le teinter avec le
   dégradé de marque, exactement comme sur preappel.seqooia.com. Proportions
   598 × 176 : 28 px de haut font 96 px de large. (logo.png, sans « Campus »,
   reste pour l'affiche du live et l'arbre des lignes de « Mes lives ».) */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo-img {
  display: inline-block;
  width: 96px; height: 28px; flex-shrink: 0;
  background: var(--gradTeal);
  -webkit-mask: url('/logo-campus.png') no-repeat left center / contain;
  mask: url('/logo-campus.png') no-repeat left center / contain;
}
.brand__tag {
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  color: var(--green); white-space: nowrap;
  padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .15), rgba(29, 158, 117, .07));
  border: 1px solid rgba(29, 158, 117, .22);
}
.brand--lg { flex-direction: column; gap: 12px; }
.brand--lg .logo-img { width: 170px; height: 50px; background: var(--grad); }
.brand--lg .brand__tag { font-size: 12px; }

/* ── Barre supérieure ───────────────────────────────────────────────────── */
/* Le fond pleine largeur de la vidéo phare (100vw) ne crée pas de défilement horizontal. */
.app { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  min-height: var(--topbar-h);
  /* Colonnes de côté en `1fr` (minimum : leur contenu) : le menu reste au
     centre de la page tant que la place le permet, et ne se décale vers la
     gauche que si le groupe de droite a besoin de plus — jamais de
     chevauchement. */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 28px;
  padding: 12px 32px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.topbar > .brand { justify-self: start; }
/* À gauche : le bouton de test (provisoire), puis le logo. */
.topbar__left { justify-self: start; display: flex; align-items: center; gap: 12px; min-width: max-content; }
/* ── Menu principal ─────────────────────────────────────────────────────────
   Une nacelle en verre ; dedans, une seule pastille pleine qui glisse sous
   l'entrée en cours (cf. js/pastille.js) — le sélecteur Mois / Année de
   Hubooia. Au survol, rien ne s'allume : le texte fonce légèrement, et
   l'icône s'anime selon sa forme. L'appel n'est plus dans le menu : il a son
   propre bouton, à droite.
   ------------------------------------------------------------------------ */
.nav {
  position: relative; justify-self: center;
  display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .45));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* La pastille : posée en absolu, déplacée en transform. Le léger dépassement
   de la courbe fait l'effet « bulle » à l'arrivée. */
.pastille {
  position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0;
  border-radius: 12px; pointer-events: none;
  background: var(--grad);
  box-shadow: 0 4px 12px -4px rgba(29, 158, 117, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}
/* Les onglets passent devant la pastille, qui est en position absolue. */
.has-pastille > :not(.pastille) { position: relative; z-index: 1; }
.pastille.is-ready {
  transition: transform .5s cubic-bezier(.34, 1.3, .5, 1),
              width .5s cubic-bezier(.34, 1.3, .5, 1),
              height .3s ease, opacity .2s ease;
}

.nav__item {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 0; border-radius: 12px; background: transparent;
  font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; cursor: pointer;
  transition: color .25s ease;
}
/* Un onglet ouvert s'écrit en noir et passe au vert au survol ; fermé, il reste gris clair (cf. .is-locked). */
.nav__item:hover { color: var(--green); }
/* Sur la pastille, l'entrée passe en blanc — un rien après le départ de la
   pastille, pour ne pas écrire blanc sur blanc pendant qu'elle arrive. */
.nav__item.is-active { color: #fff; transition: color .25s ease .12s; }

.nav__icon { width: 19px; height: 19px; flex: none; display: block; overflow: visible; }
.nav__icon * { transform-box: fill-box; transform-origin: center; }

/* Une animation par icône, au survol, selon sa forme. */
.nav__item:hover .nav__icon--play { animation: nav-play .6s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes nav-play { 40% { transform: translateX(3px) scale(.92); } }

.nav__item:hover .nav__p1 { animation: nav-hop .7s cubic-bezier(.3, 1.5, .5, 1); }
.nav__item:hover .nav__p2 { animation: nav-hop .7s cubic-bezier(.3, 1.5, .5, 1) .14s; }
@keyframes nav-hop { 35% { transform: translateY(-3px); } 65% { transform: translateY(.5px); } }


/* L'Atelier : la poignée de la caisse à outils se lève, la caisse sautille un rien après. */
.nav__item:hover .nav__poignee { animation: nav-poignee .7s cubic-bezier(.3, 1.4, .5, 1); }
.nav__item:hover .nav__caisse { animation: nav-hop .7s cubic-bezier(.3, 1.5, .5, 1) .08s; }
@keyframes nav-poignee { 35% { transform: translateY(-3px); } 65% { transform: translateY(.5px); } }

/* La toque de L'école se lance en l'air, le gland suit un rien après. */
.nav__item:hover .nav__toque { animation: nav-toque .8s cubic-bezier(.3, 1.4, .5, 1); }
.nav__item:hover .nav__gland { animation: nav-gland .8s cubic-bezier(.3, 1.4, .5, 1) .05s; }
@keyframes nav-toque { 40% { transform: translateY(-3.5px) rotate(-10deg); } 70% { transform: translateY(.5px) rotate(2deg); } }
@keyframes nav-gland { 40% { transform: translateY(-2.5px) rotate(12deg); } }

@media (prefers-reduced-motion: reduce) {
  .nav__icon, .nav__icon * { animation: none !important; }
  .pastille.is-ready { transition-duration: .01ms; }
}


/* Toujours dans la troisième colonne : sur téléphone, le menu disparaît et le
   compte glissait au milieu de la barre. */
.topbar__right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; position: relative; }

.chip {
  font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 9px;
  border: 1px solid rgba(29, 158, 117, .22);
  background: linear-gradient(135deg, rgba(43, 196, 138, .15), rgba(29, 158, 117, .07));
  color: var(--green);
}
.chip--staff { color: var(--teal-br); border-color: rgba(13, 148, 136, .28); background: var(--tint); }

/* ── Coin du compte ─────────────────────────────────────────────────────────
   Une seule bulle : la photo cerclée de l'anneau du rang, puis le prénom et,
   dessous, le rang et le niveau. Mêmes marges des deux côtés (la photo est à
   4 px du bord comme le texte l'est de l'autre), tout centré sur la même
   ligne. La série de connexion n'y est plus : elle est dans la fiche du
   compte, qui s'ouvre au survol. Sous 1280 px le texte se replie et ne laisse
   que la photo.
   ------------------------------------------------------------------------ */
.uc {
  display: flex; align-items: center; flex: none;
  border: 1px solid rgba(21, 64, 50, .12); border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(21, 64, 50, .05), 0 6px 16px -10px rgba(21, 64, 50, .22);
  transition: border-color .24s ease, box-shadow .24s ease, background-color .24s ease;
}
.uc:hover, .uc.is-open { border-color: rgba(29, 158, 117, .32); background: #fff; box-shadow: 0 1px 2px rgba(21, 64, 50, .05), 0 10px 22px -12px rgba(21, 64, 50, .32); }

.userbtn {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 2px 18px 2px 2px;
  border: 0; background: transparent; color: var(--text);
  border-radius: 999px; cursor: pointer;
  font-family: var(--font); line-height: 1.2; text-align: left;
}
.userbtn:focus-visible { outline: 2px solid rgba(29, 158, 117, .45); outline-offset: 3px; }
/* L'anneau du rang autour de la photo : 38 px, la photo à 28 px au centre,
   un liseré blanc régulier entre les deux. Le dessin de l'anneau est carré
   et centré sur la photo : plus d'ombre décalée qui le faisait paraître de
   travers. */
.userbtn__ring { position: relative; flex: none; width: 38px; height: 38px; display: grid; place-items: center; }
.userbtn__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.userbtn__track { fill: none; stroke: rgba(21, 64, 50, .09); stroke-width: 2.8; transition: stroke .24s ease; }
.userbtn__fill { fill: none; stroke-width: 2.8; stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.22, 1, .36, 1); }
.uc:hover .userbtn__track, .uc.is-open .userbtn__track,
.userbtn:focus-visible .userbtn__track { stroke: rgba(43, 196, 138, .28); }
@media (prefers-reduced-motion: reduce) { .userbtn__fill { transition: none; } }
.userbtn__avatar {
  width: 28px; height: 28px; flex: none; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--gradTeal); color: #fff; font-weight: 700; font-size: 12px; line-height: 1;
}
.userbtn__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.userbtn__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.userbtn__name {
  font-size: 13px; font-weight: 700; letter-spacing: -.1px; white-space: nowrap;
  max-width: 112px; overflow: hidden; text-overflow: ellipsis;
}
/* « Légende · N100 » aux couleurs du rang (posées par app.js). */
.userbtn__level {
  font-size: 10.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  color: var(--rang-txt, var(--green3)); font-variant-numeric: tabular-nums;
}

/* Étiquette de survol, pour les boutons repliés sur leur icône. Hors flux :
   elle ne déplace rien. Calée sur le bord du bouton, jamais centrée : ces
   boutons touchent le bord de la fenêtre, une étiquette centrée en sortirait. */
.topbar__right [data-tip]::after,
.topbar__left [data-tip]::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 11px); right: 0; z-index: 70;
  transform: translateY(-5px);
  padding: 7px 11px; border-radius: 10px;
  background: rgba(17, 40, 33, .95); color: #fff;
  font-family: var(--font); font-size: 11.5px; font-weight: 600;
  white-space: nowrap; pointer-events: none; opacity: 0;
  box-shadow: 0 14px 28px -14px rgba(10, 30, 24, .7);
  transition: opacity .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1);
}

/* ── Fiche du compte ────────────────────────────────────────────────────────
   Elle s'ouvre au survol de la bulle, sans clic, dans l'esprit des fiches de
   trophées : un bandeau teinté aux couleurs du rang avec la photo dans son
   anneau, puis trois lignes fines (rang, niveau, série) et « Voir mon
   profil ». Elle grandit depuis le coin de la bulle et se referme en fondu.
   Un pont invisible au-dessus d'elle la garde ouverte pendant que la souris
   descend de la bulle.
   ------------------------------------------------------------------------ */
.ucard {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 80;
  width: 304px; max-width: calc(100vw - 24px);
  border-radius: 20px; background: #fff;
  border: 1px solid rgba(21, 64, 50, .1);
  box-shadow: 0 24px 54px -18px rgba(15, 40, 32, .42), 0 2px 6px rgba(15, 40, 32, .06);
  transform-origin: calc(100% - 24px) -8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px) scale(.94);
  transition: opacity .16s ease, transform .2s ease, visibility 0s linear .2s;
}
.ucard.is-open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity .2s ease, transform .34s cubic-bezier(.2, 1.25, .36, 1), visibility 0s;
}
.ucard::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
/* Épinglée d'un clic : un liseré vert discret dit qu'elle restera ouverte. */
.ucard.is-epinglee { border-color: rgba(29, 158, 117, .32); box-shadow: 0 24px 54px -18px rgba(15, 40, 32, .42), 0 2px 6px rgba(15, 40, 32, .06), 0 0 0 3px rgba(43, 196, 138, .12); }
.ucard__in { overflow: hidden; border-radius: inherit; }
.ucard.is-open .ucard__tete > *, .ucard.is-open .ucard__lignes > li, .ucard.is-open .ucard__pied {
  animation: ucard-ligne .42s cubic-bezier(.22, 1, .36, 1) both;
}
.ucard.is-open .ucard__lignes > li:nth-child(1) { animation-delay: .04s; }
.ucard.is-open .ucard__lignes > li:nth-child(2) { animation-delay: .08s; }
.ucard.is-open .ucard__lignes > li:nth-child(3) { animation-delay: .12s; }
.ucard.is-open .ucard__pied { animation-delay: .16s; }
@keyframes ucard-ligne { from { opacity: 0; transform: translateY(5px); } }
/* Mise à jour pendant que la fiche est ouverte : rien ne rejoue. */
.ucard.is-figee * { animation: none !important; }
.ucard__photo { width: 52px; height: 52px; font-size: 20px; }

.ucard__tete {
  display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px;
  background: linear-gradient(135deg, var(--ucard-teinte, rgba(43, 196, 138, .22)), transparent 72%);
}
.ucard__tete .ring { flex: none; }
.ucard__id { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ucard__id strong { max-width: 100%; font-size: 15.5px; letter-spacing: -.2px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ucard__lignes { list-style: none; margin: 0; padding: 6px 10px; border-top: 1px solid rgba(21, 64, 50, .07); }
.ucard__ligne {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 8px; border: 0; border-radius: 12px; background: transparent;
  font: inherit; color: var(--text); text-align: left;
}
button.ucard__ligne { cursor: pointer; transition: background-color .18s ease; }
button.ucard__ligne:hover, button.ucard__ligne:focus-visible { background: rgba(29, 158, 117, .07); outline: none; }
.ucard__pastille {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: #fff; background: var(--grad); box-shadow: 0 3px 8px -4px rgba(21, 64, 50, .5);
}
.ucard__pastille .cm-ico { width: 15px; height: 15px; }
.ucard__pastille .cm-ico svg { stroke-width: 2.3; }
.ucard__pastille--serie { color: var(--green3); background: linear-gradient(135deg, rgba(43, 196, 138, .22), rgba(29, 158, 117, .08)); box-shadow: inset 0 0 0 1px rgba(29, 158, 117, .2); }
button.ucard__ligne:hover .ucard__pastille--serie .cm-ico { transform-origin: 50% 90%; animation: serie-pousse .9s cubic-bezier(.3, 1.4, .5, 1); }
.ucard__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ucard__etiquette { font-size: 9.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.ucard__valeur { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; }
.ucard__valeur small { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ucard__valeur .rang-pill { font-size: 10.5px; padding: 2px 8px 2px 5px; }
.ucard__barre { display: block; height: 5px; margin-top: 3px; border-radius: 999px; background: rgba(21, 64, 50, .08); overflow: hidden; }
.ucard__barre span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.1s cubic-bezier(.22, 1, .36, 1) .12s; }
.ucard__chevron { flex: none; color: var(--muted-2); }
.ucard__chevron .cm-ico { width: 14px; height: 14px; }

.ucard__pied { display: flex; flex-direction: column; gap: 4px; padding: 6px 18px 16px; }
.ucard__profil { width: 100%; justify-content: center; gap: 8px; padding: 11px 16px; font-size: 13.5px; border-radius: 13px; }
.ucard__profil:hover:not(:disabled) { transform: translateY(-1px); }
.ucard__profil .cm-ico { width: 15px; height: 15px; transition: transform .2s ease; }
.ucard__profil:hover .cm-ico { transform: translateX(3px); }
.ucard__sortie {
  align-self: center; display: inline-flex; align-items: center; gap: 6px;
  margin-top: 2px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent;
  font: 600 12px var(--font); color: var(--muted); cursor: pointer;
}
.ucard__sortie:hover { color: var(--text); background: rgba(21, 64, 50, .05); }
.ucard__sortie .cm-ico { width: 13px; height: 13px; }
@media (prefers-reduced-motion: reduce) {
  .ucard, .ucard.is-open { transition: opacity .01ms, visibility 0s; transform: none; }
  .ucard.is-open * { animation: none !important; }
}

.tabbar { display: none; }

/* ── Contenu ────────────────────────────────────────────────────────────── */
.view { flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: 30px 24px 80px; outline: none; }
/* Lu par les lecteurs d'écran, invisible à l'écran. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* En-tête de page, le même partout : le badge, le titre et le sous-titre
   centrés, comme sur « L'école Seqooia ». */
.page-head { margin: 0 auto 24px; max-width: 680px; text-align: center; }
.page-head h1 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.7px; text-wrap: balance; }
.page-head p { margin: 0 auto; color: var(--muted); font-size: 14.5px; line-height: 1.6; text-wrap: pretty; }
.eyebrow {
  display: inline-block; margin-bottom: 11px; padding: 4px 10px; border-radius: 8px;
  font-family: var(--pixel); font-size: 8px; letter-spacing: .3px; text-transform: uppercase;
  background: linear-gradient(135deg, rgba(43, 196, 138, .15), rgba(29, 158, 117, .07));
  border: 1px solid rgba(29, 158, 117, .22);
  color: var(--green);
}

/* ── Cartes en verre ────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .65);
  outline: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ── Boutons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px;
  border: 1px solid rgba(21, 64, 50, .12);
  background: rgba(255, 255, 255, .75); color: var(--text);
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--font);
  transition: all .25s cubic-bezier(.2, .8, .2, 1);
}
.btn:hover:not(:disabled) { border-color: rgba(29, 158, 117, .45); color: var(--green); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px -8px rgba(29, 158, 117, .55);
}
.btn--primary:hover:not(:disabled) {
  color: #fff; transform: translateY(-2px); filter: brightness(1.07);
  box-shadow: 0 14px 28px -10px rgba(29, 158, 117, .6);
}
.btn--ghost { background: transparent; border-color: transparent; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 12.5px; border-radius: 11px; }

/* Bouton « flow » : la pastille s'ouvre depuis le centre, le texte glisse et
   les deux flèches se relaient de gauche à droite. Les couleurs passent par
   des variables pour pouvoir reposer le bouton sur n'importe quel fond. */
.btn-flow {
  --flow-fg: var(--green3);
  --flow-bd: rgba(21, 64, 50, .28);
  --flow-fill: var(--green3);
  --flow-fg-on: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 13px 32px; overflow: hidden;
  border: 1.5px solid var(--flow-bd); border-radius: 100px;
  background: transparent; color: var(--flow-fg);
  /* Un fond en dégradé (variantes pleines) part du bord extérieur : sinon il se répète sous la bordure
     transparente et laisse un fin liseré sombre sur le bord gauche de la gélule. « !important » : les
     variantes posent leur fond avec le raccourci « background », qui remettrait l'origine à zéro. */
  background-origin: border-box !important;
  font-family: var(--font); font-size: 14px; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: color .6s cubic-bezier(.23, 1, .32, 1),
              border-color .6s cubic-bezier(.23, 1, .32, 1),
              transform .18s ease;
}
/* Au survol, la forme ne change pas : la gélule reste une gélule (comme le bouton de l'en-tête). */
.btn-flow:hover { color: var(--flow-fg-on); border-color: transparent; }
.btn-flow:active { transform: scale(.95); }
.btn-flow:focus-visible { outline: 2px solid var(--flow-fg); outline-offset: 3px; }

.btn-flow__arr {
  position: absolute; z-index: 9; width: 16px; height: 16px;
  fill: none; stroke: var(--flow-fg); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: left .8s cubic-bezier(.34, 1.56, .64, 1),
              right .8s cubic-bezier(.34, 1.56, .64, 1),
              stroke .6s cubic-bezier(.23, 1, .32, 1);
}
.btn-flow__arr--left { left: -25%; }
.btn-flow__arr--right { right: 16px; }
.btn-flow:hover .btn-flow__arr { stroke: var(--flow-fg-on); }
.btn-flow:hover .btn-flow__arr--left { left: 16px; }
.btn-flow:hover .btn-flow__arr--right { right: -25%; }

.btn-flow__label {
  position: relative; z-index: 1; transform: translateX(-12px);
  transition: transform .8s ease;
}
.btn-flow:hover .btn-flow__label { transform: translateX(12px); }

/* La pastille reste centrée quelle que soit sa taille grâce au translate. */
.btn-flow__circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--flow-fill); opacity: 0;
  transition: width .8s cubic-bezier(.19, 1, .22, 1),
              height .8s cubic-bezier(.19, 1, .22, 1),
              opacity .8s cubic-bezier(.19, 1, .22, 1);
}
.btn-flow:hover .btn-flow__circle { width: 260px; height: 260px; opacity: 1; }

/* ── Le petit téléphone des boutons d'appel (ui.js, flowButton ; l'en-tête dans index.html) ──
   Devant « Réserver un appel », partout : il sonne (quelques allers-retours, puis un silence) et se tient
   tranquille au survol. Dans l'en-tête, qu'on a sous les yeux sur toutes les pages, il sonne plus rarement. */
.btn-flow--tel .btn-flow__label { display: inline-flex; align-items: center; gap: .62em; }
.btn-tel { flex: none; display: grid; place-items: center; width: 1.2em; height: 1.2em; transform-origin: 50% 55%; animation: tel-sonne 2.6s ease-in-out infinite; }
.btn-tel svg { display: block; width: 100%; height: 100%; }
.btn-flow--tel:hover .btn-tel, .btn-flow--tel:focus-visible .btn-tel { animation-play-state: paused; }
@keyframes tel-sonne {
  0%, 30%, 100% { rotate: 0deg; }
  4% { rotate: -18deg; } 8% { rotate: 16deg; } 12% { rotate: -14deg; } 16% { rotate: 12deg; } 20% { rotate: -8deg; } 25% { rotate: 4deg; }
}
.topcta .btn-tel { animation: tel-sonne-calme 7s ease-in-out infinite; }
@keyframes tel-sonne-calme {
  0%, 11%, 100% { rotate: 0deg; }
  1.5% { rotate: -18deg; } 3% { rotate: 16deg; } 4.5% { rotate: -14deg; } 6% { rotate: 12deg; } 7.5% { rotate: -8deg; } 9.3% { rotate: 4deg; }
}
@media (prefers-reduced-motion: reduce) { .btn-tel, .topcta .btn-tel { animation: none; } }

/* Variante remplie : le vert de l'en-tête au repos ; au survol, le même geste
   que le bouton « Réserver un appel » de l'en-tête — la pastille vert profond
   s'ouvre, le texte reste blanc, la forme ne bouge pas. */
.btn-flow--filled {
  --flow-fg: #fff;
  --flow-bd: transparent;
  --flow-fill: #0E5E4A;
  --flow-fg-on: #fff;
  background: var(--grad); box-shadow: var(--shadow-green);
}
.btn-flow--filled:hover { box-shadow: 0 14px 28px -10px rgba(29, 158, 117, .6); }

/* Le bouton d'appel de l'en-tête : le vert dégradé de l'onglet actif, le
   texte à la taille des onglets (13 px), et exactement la largeur du bouton
   « Réserver un appel » du bloc de bas de page. Celui-ci écrit en 14 px avec
   32 px de marge ; à 13 px le texte perd 8,7 px, rendus par la marge
   (32 + 4,35 de chaque côté). Un peu moins haut seulement, pour tenir dans la
   barre. Au survol, la pastille du bouton « flow » s'ouvre en vert profond et
   la forme reste une gélule. Depuis le petit téléphone devant son nom (15,6 px
   et son écart, 8 px), les marges en rendent la moitié de chaque côté. */
.topcta {
  --flow-fg: #fff;
  --flow-bd: transparent;
  --flow-fill: #0E5E4A;
  --flow-fg-on: #fff;
  height: 40px; padding: 0 25.5px; justify-content: center;
  background: var(--grad);
  box-shadow: 0 4px 12px -5px rgba(29, 158, 117, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.topcta:hover { border-radius: 999px; box-shadow: 0 8px 18px -8px rgba(20, 117, 92, .65); }
.tb-duo { display: flex; align-items: center; gap: 10px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .btn-flow, .btn-flow__arr, .btn-flow__label, .btn-flow__circle { transition-duration: .01ms; }
}

/* ── La liste des vidéos ─────────────────────────────────────────────────
   Les cartes, l'une sous l'autre, sur toute la largeur de la colonne : plus
   de pastilles à gauche, qui prenaient de la place (surtout au téléphone).
   Une vidéo vue porte « Déjà vu » en haut à droite de sa carte (cf.
   .videocard__vu).
   ------------------------------------------------------------------------ */
/* Une seule colonne, jamais plus large que la liste (une carte ne la pousse plus de quelques pixels, sur tablette). */
.pv { --pv-gap: 12px; list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pv-gap); }
@media (max-width: 760px) { .pv { --pv-gap: 10px; } }

/* ── La colonne de la Formation ─────────────────────────────────────────
   La vidéo phare, la liste des vidéos et le bloc d'appel ont la même
   largeur et les mêmes bords, centrés (.fo-col, et la vidéo elle-même). Celle
   de la vidéo (--fo-w) : toute la colonne, sur un portable comme sur un grand
   écran. La liste et le bloc d'appel (--fo-l)
   gardent toute la largeur, quel que soit l'écran : mêmes bords l'un et
   l'autre.
   ------------------------------------------------------------------------ */
.view {
  --fo-l: min(calc(100% - 48px), 940px);
  /* La vidéo prend toute la colonne, sur un portable comme sur un grand écran. Elle suivait la hauteur
     de l'écran, pour tenir dans le premier écran : sur un portable, elle tombait à moitié (480 px de
     large sur un écran de 768 px de haut). Sur un écran bas, c'est le haut qui se resserre (plus bas). */
  --fo-w: var(--fo-l);
}
.fo-col { width: var(--fo-w); margin-left: auto; margin-right: auto; }
/* Un écran d'ordinateur bas (un portable) : le haut de la Formation se resserre — moins d'espace autour du
   titre, des onglets et de la vidéo —, pour que son bouton lecture reste dans le premier écran. */
@media (min-width: 761px) and (max-height: 820px) {
  .view .fo-une { margin-top: 12px; }
  .view .fo-une__titre { margin-top: 8px; font-size: clamp(24px, 2.4vw, 30px); }
  .view .fo-une__sous { margin-top: 6px; font-size: 15px; }
  .view .fo-pas { margin-top: 14px; }
  .view .fo-diaporama { margin-top: 20px; }
}
/* Un écran très bas (un portable de 768 px de haut) : la vidéo garde au moins 760 px de large — elle en
   faisait 480 —, sans pousser le bouton lecture hors du premier écran. */
@media (min-width: 761px) and (max-height: 700px) {
  .view { --fo-w: min(var(--fo-l), max(760px, calc((100vh - 300px) * 16 / 9))); }
}
@media (max-width: 760px) { .view { --fo-l: 100%; --fo-w: 100%; } }

/* ── La vidéo phare ─────────────────────────────────────────────────────
   La vidéo 1 du parcours du membre, la première chose qu'on voit. Tout est
   centré : le badge, le titre, le sous-titre, puis la vidéo en grand — sa
   miniature, un bouton lecture au milieu qui la lance sur place. Son
   contour : une fine ligne vert Seqooia qu'une lumière fluo longe sans fin
   (un dégradé conique qui tourne, masqué en anneau). Derrière, la miniature
   reprend tout le haut de la page, transparente et floutée sous un voile
   blanc, depuis le bas de l'en-tête, et s'efface à partir du milieu de la
   vidéo (repères mesurés dans formation.js : --fo-fond-haut, --fo-fond-milieu),
   en douceur et jusque sous le titre de la liste : aucune limite ne se voit
   derrière « Réserver un appel ».
   ------------------------------------------------------------------------ */
@property --fo-tour { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes fo-tour { to { --fo-tour: 360deg; } }
.fo-une { position: relative; display: flex; flex-direction: column; align-items: center; margin: 30px auto 54px; text-align: center; }
/* Le fond pleine largeur : sous le contenu, au-dessus du fond de page ; le
   sélecteur reste devant (z-index de .fo-onglets). Le flou et la transparence
   gomment le grain d'une miniature agrandie à toute la largeur. */
.fo-une__fond {
  position: absolute; z-index: -1; pointer-events: none; overflow: hidden;
  --m: var(--fo-fond-milieu, 60%); --r: calc(100% - var(--m));
  /* Une courbe adoucie aux deux bouts (pas une rampe droite, dont on verrait le début et la fin). */
  --fo-fondu: linear-gradient(180deg, #000 0, #000 var(--m),
    rgba(0, 0, 0, .94) calc(var(--m) + var(--r) * .1), rgba(0, 0, 0, .8) calc(var(--m) + var(--r) * .22),
    rgba(0, 0, 0, .6) calc(var(--m) + var(--r) * .36), rgba(0, 0, 0, .4) calc(var(--m) + var(--r) * .5),
    rgba(0, 0, 0, .22) calc(var(--m) + var(--r) * .64), rgba(0, 0, 0, .1) calc(var(--m) + var(--r) * .78),
    rgba(0, 0, 0, .03) calc(var(--m) + var(--r) * .9), transparent 100%);
  top: calc(-1 * var(--fo-fond-haut, 0px)); left: calc(50% - 50vw); width: 100vw;
  height: calc(var(--fo-fond-haut, 0px) + 100% + 130px);
  -webkit-mask-image: var(--fo-fondu); mask-image: var(--fo-fondu);
}
.fo-une__fond img {
  position: absolute; top: -30px; left: -30px; width: calc(100% + 60px); height: calc(100% + 60px);
  object-fit: cover; object-position: center 35%;
  opacity: .3; filter: blur(4px) saturate(1.05);
}
/* Le voile blanc : la photo se devine, plus claire — et plus encore derrière le
   badge, le titre et le sous-titre, qui se lisent d'un coup d'œil. */
.fo-une__fond::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(min(780px, 85vw) 200px at 50% calc(var(--fo-fond-haut, 0px) + 92px), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, .26);
}
.fo-une__tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #0B5C45; background: rgba(182, 255, 59, .7);
}
/* Le point du badge clignote, avant comme après la vidéo vue. */
.fo-une__tag i { width: 6px; height: 6px; border-radius: 50%; background: #14755C; animation: fo-clignote 1.1s ease-in-out infinite; }
@keyframes fo-clignote { 0%, 100% { opacity: 1; } 50% { opacity: .12; } }
/* Le titre prend la largeur de la colonne (pas celle de la vidéo, plus étroite sur un écran bas) : une ligne, deux au plus, équilibrées. */
/* Les mots forts d'un titre de vidéo (cf. motsForts) : le vert dégradé des titres de l'accueil. */
.titre-fort {
  background-image: linear-gradient(100deg, #2BC48A 0%, #1D9E75 55%, #14755C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.fo-une__titre { max-width: var(--fo-l); margin: 14px 0 0; font-size: clamp(27px, 3vw, 36px); line-height: 1.12; font-weight: 800; letter-spacing: -.8px; color: var(--text); text-wrap: balance; }
.fo-une__sous { max-width: 640px; margin: 9px 0 0; font-size: 16px; line-height: 1.55; color: #4C5D57; }
/* La vidéo, en grand : toute la largeur, sans dépasser le premier écran. */
.fo-une__ecran {
  --fo-bord: 1.5px;
  --fo-r: 24px;
  --fo-lumiere: conic-gradient(from var(--fo-tour), transparent 0deg 250deg, rgba(182, 255, 59, .15) 275deg, #B6FF3B 318deg, #39FF14 334deg, #2BC48A 346deg, transparent 360deg);
  position: relative; isolation: isolate;
  /* La largeur de la colonne (cf. --fo-w). */
  width: var(--fo-w);
  margin-top: 26px; padding: var(--fo-bord); border-radius: var(--fo-r);
  background: rgba(43, 196, 138, .35);
  box-shadow: 0 44px 80px -44px rgba(10, 52, 40, .6), 0 14px 32px -20px rgba(10, 52, 40, .35);
}
.fo-une__ecran::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  padding: var(--fo-bord); border-radius: inherit; background: var(--fo-lumiere);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: fo-tour 4.8s linear infinite;
}
.fo-une__cadre { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--fo-r) - var(--fo-bord)); background: #0B1512; }
.fo-une__miniature { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.fo-une__ecran:hover .fo-une__miniature { transform: scale(1.03); }
/* Un voile léger, plus sombre sur les bords, pour que le bouton ressorte. */
.fo-une__voile { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, rgba(8, 24, 19, 0) 35%, rgba(8, 24, 19, .38) 100%); }
/* Sans miniature : la forêt Seqooia, teintée de vert. */
.fo-une__ecran.is-foret .fo-une__voile { background: linear-gradient(150deg, rgba(43, 196, 138, .5), rgba(15, 95, 74, .78)); }
.fo-une__lancer { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; transition: opacity .25s ease; }
/* Le temps de savoir si la vidéo se lance seule (Vidalytics), pas de bouton lecture : il n'apparaît que pour une vidéo Tella. */
.fo-une__ecran.is-attente .fo-une__lancer { opacity: 0; pointer-events: none; }
.fo-une__lancer:focus-visible { outline: 3px solid #B6FF3B; outline-offset: -8px; border-radius: calc(var(--fo-r) - 4px); }
/* Le bouton lecture, au milieu : deux ondes vert fluo l'appellent. */
.fo-une__play {
  position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  color: var(--green3); background: rgba(255, 255, 255, .94);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .2), 0 18px 40px -12px rgba(8, 24, 19, .55);
  transition: transform .35s cubic-bezier(.34, 1.4, .5, 1), box-shadow .3s ease;
}
.fo-une__play svg { position: relative; z-index: 1; width: 34px; height: 34px; margin-left: 5px; }
.fo-une__play::before,
.fo-une__play::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(182, 255, 59, .8);
  animation: fo-onde 2.6s cubic-bezier(.2, .7, .3, 1) infinite;
}
.fo-une__play::after { animation-delay: 1.3s; }
@keyframes fo-onde { from { transform: scale(1); opacity: .9; } to { transform: scale(1.85); opacity: 0; } }
.fo-une__lancer:hover .fo-une__play,
.fo-une__lancer:focus-visible .fo-une__play { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(182, 255, 59, .3), 0 20px 44px -12px rgba(8, 24, 19, .6); }
/* Le temps de charger la vidéo, le triangle respire. */
.fo-une__ecran.is-charge .fo-une__play svg { animation: fo-respire .8s ease-in-out infinite; }
@keyframes fo-respire { 50% { opacity: .35; } }
/* La vidéo lancée prend toute la place de la miniature. */
.fo-une__lecteur { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
/* En lecture automatique (Vidalytics), le lecteur arrive par-dessus la miniature : transparent le temps
   qu'il se charge, on voit la miniature, jamais un cadre noir. */
.fo-une__ecran.is-auto .fo-une__lecteur { background: transparent; }
.fo-une__ecran.is-auto:hover .fo-une__miniature { transform: none; }
/* Juste sous la vidéo phare : « Réserver un appel », au centre, un peu plus grand que celui des pages
   vidéo ; au survol, la pastille vert profond l'emplit tout entier. */
.fo-une__actions { display: flex; justify-content: center; margin-top: 46px; }
.fo-une__appel { padding: 17px 46px; font-size: 16px; }
.fo-une__appel:hover .btn-flow__circle { width: 380px; height: 380px; }
/* Sous la vidéo phare : la liste, avec son petit titre. */
.fo-liste__titre { margin-top: 0; margin-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
/* La liste et le bloc d'appel : la même largeur, les mêmes bords. */
.fo-liste__titre, .pv.fo-col, .pitch.fo-col { width: var(--fo-l); }

/* ── Le diaporama des vidéos ────────────────────────────────────────────
   La vidéo du centre ; ses voisines de chaque côté, à la même taille, en
   fondu jusqu'au bord de l'écran (le masque de .fo-scene), seulement leur
   miniature. Le diaporama prend toute la largeur de l'écran ; ses vidéos,
   celle de la colonne (--fo-dw, mesurée sur .fo-sonde dans formation.js). ── */
.fo-sonde { height: 0; margin: 0; pointer-events: none; }
/* Le haut garde la hauteur du plus long titre (cf. formation.js) : la vidéo ne saute pas d'une diapositive à l'autre. */
.fo-une__tete { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .2s ease, transform .2s ease; }
.fo-une__tete.is-change { opacity: 0; transform: translateY(6px); }
.fo-une__tag.is-ferme { color: #4B5B56; background: rgba(21, 64, 50, .1); }
.fo-une__tag.is-ferme i { background: #7A8A85; }
.fo-diaporama {
  --fo-ecart: 80px; position: relative; width: 100vw; margin-top: 40px; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  /* Le compte à rebours du coffre (--mn-p, de 0 à 1) glisse d'un tic à l'autre : l'anneau des flèches avance sans à-coups. */
  transition: --mn-p .3s linear;
}
.fo-pas ~ .fo-diaporama { margin-top: 22px; }
/* De la place sous les vidéos : leur ombre s'éteint toute seule, sans être coupée par le bord de la scène
   (son masque s'arrête à son cadre). La scène ne prend aucun clic : seules les vidéos en prennent. */
.fo-scene {
  display: grid; padding: 30px 0 150px; margin: -30px 0 -150px; touch-action: pan-y; pointer-events: none;
  overflow: hidden; overflow-x: clip; overflow-y: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 calc(50% - var(--fo-dw, 940px) / 2 - 8px), #000 calc(50% + var(--fo-dw, 940px) / 2 + 8px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 calc(50% - var(--fo-dw, 940px) / 2 - 8px), #000 calc(50% + var(--fo-dw, 940px) / 2 + 8px), transparent 100%);
}
.fo-une__ecran.fo-diapo { grid-area: 1 / 1; justify-self: center; width: var(--fo-dw, 940px); margin-top: 0; will-change: transform; pointer-events: auto; }
.fo-diaporama.is-pret .fo-diapo { transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .5s ease, filter .5s ease, box-shadow .5s ease; }
.fo-diapo[data-pos="-1"] { transform: translateX(calc(-1 * (var(--fo-dw, 940px) + var(--fo-ecart)))); }
.fo-diapo[data-pos="1"] { transform: translateX(calc(var(--fo-dw, 940px) + var(--fo-ecart))); }
.fo-diapo[data-pos="-2"] { transform: translateX(calc(-2 * (var(--fo-dw, 940px) + var(--fo-ecart)))); }
.fo-diapo[data-pos="2"] { transform: translateX(calc(2 * (var(--fo-dw, 940px) + var(--fo-ecart)))); }
/* Les voisines : la miniature seule, en fondu ; ni contour lumineux, ni bouton, ni ombre. */
.fo-diapo:not([data-pos="0"]) { opacity: .56; filter: saturate(.85); box-shadow: 0 30px 60px -48px rgba(10, 52, 40, .5); }
.fo-diapo[data-pos="-2"], .fo-diapo[data-pos="2"] { opacity: 0; }
.fo-diapo:not([data-pos="0"])::before { opacity: 0; }
.fo-diapo::before { transition: opacity .4s ease; }
.fo-diapo:not([data-pos="0"]) .fo-une__lancer { opacity: 0; pointer-events: none; }
.fo-diapo[data-pos="-1"]:hover, .fo-diapo[data-pos="1"]:hover { opacity: .78; }
.fo-diapo__aller { position: absolute; inset: 0; z-index: 3; display: none; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.fo-diapo:not([data-pos="0"]) .fo-diapo__aller { display: block; }
/* Une vidéo encore dans le coffre : grisée, son cadenas au milieu. */
.fo-diapo.is-ferme .fo-une__miniature { filter: grayscale(1) brightness(.8); }
.fo-diapo.is-ferme .fo-une__voile { background: rgba(8, 24, 19, .35); }
.fo-une__cadenas {
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .38);
  backdrop-filter: blur(8px) saturate(1.3); -webkit-backdrop-filter: blur(8px) saturate(1.3);
  box-shadow: 0 18px 40px -16px rgba(8, 24, 19, .6);
}
.fo-une__cadenas svg { width: 30px; height: 30px; }
/* Les flèches, dans l'espace entre la vidéo du centre et ses voisines : petites et discrètes, de l'air de
   chaque côté (20 px entre la flèche et chaque vidéo). */
.fo-fleche {
  position: absolute; top: 50%; z-index: 4; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(21, 64, 50, .09); background: rgba(255, 255, 255, .8); color: var(--teal-deep, #0E5E4A);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 5px 16px rgba(6, 40, 30, .1);
  cursor: pointer; transform: translateY(-50%);
  transition: border-color .3s, color .3s, background-color .45s ease, box-shadow .45s ease, transform .2s, opacity .3s;
}
.fo-fleche__chevron, .fo-fleche__cadenas {
  grid-area: 1 / 1; display: grid; place-items: center;
  transition: opacity .3s ease, transform .45s cubic-bezier(.34, 1.5, .5, 1);
}
.fo-fleche__chevron svg { display: block; width: 16px; height: 16px; }
.fo-fleche:hover { border-color: rgba(29, 158, 117, .45); color: var(--green3); transform: translateY(-50%) scale(1.06); }
.fo-fleche:active { transform: translateY(-50%) scale(.94); }
.fo-fleche:focus-visible { outline: 3px solid rgba(29, 158, 117, .4); outline-offset: 6px; }
.fo-fleche:disabled { opacity: 0; pointer-events: none; }
.fo-fleche--g { left: calc(50% - var(--fo-dw, 940px) / 2 - var(--fo-ecart) / 2 - 20px); }
.fo-fleche--d { left: calc(50% + var(--fo-dw, 940px) / 2 + var(--fo-ecart) / 2 - 20px); }
/* ── Une flèche fermée : la vidéo d'après attend la fin du compte à rebours ──
   À la place du chevron, un cadenas blanc sur un disque vert profond (celui du minuteur du coffre) ; autour,
   un anneau qui se remplit avec le temps (--mn-p). Les dix dernières secondes, le cadenas frissonne. À
   l'ouverture (.is-ouvre, un instant) : l'anneau plein s'illumine, le disque passe au vert fluo, l'anse se
   lève — puis la flèche revient. */
.fo-fleche__cadenas { opacity: 0; transform: scale(.4); color: #fff; }
.fo-fleche__cadenas svg { display: block; width: 16px; height: 16px; overflow: visible; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .28)); }
.fo-fleche__cadenas .lk-anse { transform-origin: 15.5px 11px; }
.fo-fleche__anneau { position: absolute; inset: -6px; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.fo-fleche__anneau svg { display: block; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.fa-fond, .fa-plein { fill: none; stroke-width: 3; }
.fa-fond { stroke: rgba(21, 64, 50, .14); }
.fa-plein {
  stroke: #1FB07F; stroke-linecap: round; stroke-dasharray: 100px; stroke-dashoffset: calc((1 - var(--mn-p)) * 100px);
  filter: drop-shadow(0 0 3px rgba(43, 196, 138, .6)); transition: stroke .3s ease, filter .3s ease;
}
.fo-fleche.is-ferme, .fo-fleche.is-ouvre {
  border-color: transparent; color: #fff;
  background: radial-gradient(circle at 32% 26%, #2CB487, #11684F 56%, #0B3D30);
  box-shadow: 0 10px 22px -10px rgba(11, 61, 48, .8), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -5px 10px rgba(0, 0, 0, .16);
}
.fo-fleche.is-ferme .fo-fleche__chevron, .fo-fleche.is-ouvre .fo-fleche__chevron { opacity: 0; transform: scale(.4); }
.fo-fleche.is-ferme .fo-fleche__cadenas, .fo-fleche.is-ouvre .fo-fleche__cadenas { opacity: 1; transform: none; }
.fo-fleche.is-ferme .fo-fleche__anneau, .fo-fleche.is-ouvre .fo-fleche__anneau { opacity: 1; }
/* La vidéo d'après attend que celle-ci ait été vue (la 3 après la 2) : un cadenas, sans l'anneau du compte à rebours. */
.fo-fleche.is-ferme.is-ordre .fo-fleche__anneau { opacity: 0; }
.fo-fleche.is-ferme:hover { color: #fff; }
.fo-diaporama.is-bientot .fo-fleche.is-ferme .fo-fleche__cadenas svg { animation: mn-frisson 1s ease-in-out infinite; }
/* Un clic tant qu'elle est fermée : elle fait non. */
.fo-fleche.is-refus, .fo-pas__onglet.is-refus { animation: fo-refus .45s ease; }
@keyframes fo-refus { 20% { translate: -4px 0; } 40% { translate: 4px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
.fo-fleche.is-ouvre {
  color: #0B4D3B; background: radial-gradient(circle at 34% 28%, #F1FFC9, #B6FF3B 46%, #3FCB86 100%);
  box-shadow: 0 0 0 0 rgba(182, 255, 59, .6), 0 10px 24px -8px rgba(63, 203, 134, .8);
  animation: fo-fleche-ouvre .95s cubic-bezier(.3, 1.5, .5, 1);
}
.fo-fleche.is-ouvre .fo-fleche__cadenas { color: #0B4D3B; }
.fo-fleche.is-ouvre .fo-fleche__cadenas svg { filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .5)); }
.fo-fleche.is-ouvre .fa-plein { stroke: #B6FF3B; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(182, 255, 59, 1)); }
.fo-fleche.is-ouvre .lk-anse { animation: mn-anse .7s cubic-bezier(.3, 1.4, .5, 1) .08s forwards; }
@keyframes fo-fleche-ouvre {
  0% { scale: 1; box-shadow: 0 0 0 0 rgba(182, 255, 59, .65), 0 10px 24px -8px rgba(63, 203, 134, .8); }
  35% { scale: 1.2; }
  100% { scale: 1; box-shadow: 0 0 0 22px rgba(182, 255, 59, 0), 0 10px 24px -8px rgba(63, 203, 134, .8); }
}
/* Au téléphone, la vidéo prend toute la largeur : les flèches se posent sur ses bords. */
.fo-diaporama.is-etroit { --fo-ecart: 16px; }
.fo-diaporama.is-etroit .fo-fleche { width: 34px; height: 34px; }
.fo-diaporama.is-etroit .fo-fleche__chevron svg { width: 14px; height: 14px; }
.fo-diaporama.is-etroit .fo-fleche__cadenas svg { width: 14px; height: 14px; }
.fo-diaporama.is-etroit .fo-fleche__anneau { inset: -5px; }
.fo-diaporama.is-etroit .fa-fond { stroke: rgba(255, 255, 255, .5); }
.fo-diaporama.is-etroit .fo-fleche--g { left: calc(50% - var(--fo-dw, 940px) / 2 + 10px); }
.fo-diaporama.is-etroit .fo-fleche--d { left: calc(50% + var(--fo-dw, 940px) / 2 - 44px); }

/* ── Les onglets des vidéos : « Vidéo 1 · Vidéo 2 · Vidéo 3 » ──
   Comme ceux des dépenses de la Forge : une piste claire, une pastille blanche qui glisse sous la vidéo
   choisie (--actif, posée par formation.js), un point devant chaque nom — un cadenas à sa place tant que la
   vidéo est fermée. */
.fo-pas {
  position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 2px;
  width: min(calc(var(--n, 3) * 140px), 100%); margin-top: 22px; padding: 4px; border-radius: 15px;
  background: rgba(232, 239, 236, .82); box-shadow: inset 0 1px 2px rgba(21, 64, 50, .08), 0 0 0 1px rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.fo-pas__pastille {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px - (var(--n, 3) - 1) * 2px) / var(--n, 3)); border-radius: 11px; background: #fff;
  box-shadow: 0 4px 14px -6px rgba(21, 64, 50, .35), 0 0 0 1px rgba(21, 64, 50, .05);
  transform: translateX(calc(var(--actif, 0) * (100% + 2px)));
  transition: transform .5s cubic-bezier(.34, 1.3, .5, 1);
}
.fo-pas__onglet {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 38px; padding: 0 10px;
  border: 0; border-radius: 11px; background: none; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  font: 700 13px var(--font); color: var(--muted); transition: color .2s ease;
}
.fo-pas__onglet:hover, .fo-pas__onglet.is-on { color: var(--text); }
.fo-pas__onglet:focus-visible { outline: 2px solid rgba(29, 158, 117, .45); outline-offset: 1px; }
/* Le point, ou le cadenas : l'un s'efface quand l'autre arrive. */
.fo-pas__marque { position: relative; flex: none; display: grid; place-items: center; width: 14px; height: 14px; }
.fo-pas__marque > * { grid-area: 1 / 1; transition: opacity .3s ease, transform .45s cubic-bezier(.34, 1.6, .5, 1); }
.fo-pas__marque i { width: 8px; height: 8px; border-radius: 50%; background: #9FB3AC; box-shadow: 0 0 0 3px rgba(21, 64, 50, .07); transition: opacity .3s ease, transform .45s cubic-bezier(.34, 1.6, .5, 1), background-color .3s ease, box-shadow .3s ease; }
.fo-pas__onglet.is-on .fo-pas__marque i { background: #1D9E75; box-shadow: 0 0 0 3px rgba(29, 158, 117, .18); }
.fo-pas__marque span { display: grid; place-items: center; opacity: 0; transform: scale(.4); color: var(--muted-2); }
.fo-pas__marque svg { display: block; width: 13px; height: 13px; }
.fo-pas__onglet.is-ferme { color: var(--muted-2); }
.fo-pas__onglet.is-ferme:hover { color: var(--muted); }
.fo-pas__onglet.is-ferme .fo-pas__marque i { opacity: 0; transform: scale(.4); }
.fo-pas__onglet.is-ferme .fo-pas__marque span { opacity: 1; transform: none; }

/* « Réserver un appel », sous la vidéo : il bat doucement — deux petits coups, puis une onde verte. */
.fo-une__appel { animation: fo-battement 2.6s ease-in-out infinite; }
.fo-une__appel:hover, .fo-une__appel:focus-visible { animation-play-state: paused; }
@keyframes fo-battement {
  0%, 30%, 100% { scale: 1; box-shadow: var(--shadow-green), 0 0 0 0 rgba(43, 196, 138, .5); }
  7% { scale: 1.045; }
  14% { scale: 1; }
  21% { scale: 1.045; }
  60% { box-shadow: var(--shadow-green), 0 0 0 16px rgba(43, 196, 138, 0); }
}
@media (max-width: 760px) {
  .fo-une { margin-top: 18px; margin-bottom: 30px; }
  .fo-diaporama { margin-top: 24px; }
  .fo-pas { margin-top: 16px; }
  .fo-pas ~ .fo-diaporama { margin-top: 16px; }
  .fo-pas__onglet { height: 36px; gap: 6px; font-size: 12.5px; }
  .fo-une__titre { margin-top: 12px; font-size: 25px; }
  .fo-une__sous { font-size: 14.5px; }
  .fo-une__ecran { --fo-r: 18px; width: 100%; margin-top: 20px; }
  .fo-une__actions { margin-top: 20px; }
  .fo-une__appel { padding: 16px 36px; font-size: 15.5px; }
  .fo-une__play { width: 64px; height: 64px; box-shadow: 0 0 0 7px rgba(255, 255, 255, .2), 0 14px 30px -10px rgba(8, 24, 19, .55); }
  .fo-une__play svg { width: 26px; height: 26px; margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .fo-une__ecran::before, .fo-une__tag i, .fo-une__play::before, .fo-une__play::after, .fo-une__appel { animation: none; }
  .fo-diaporama, .fo-diaporama.is-pret .fo-diapo, .fo-une__tete, .fo-pas__pastille, .fo-pas__marque > *, .fo-fleche__chevron, .fo-fleche__cadenas { transition: none; }
  .fo-fleche.is-refus, .fo-pas__onglet.is-refus, .fo-fleche.is-ouvre, .fo-fleche.is-ouvre .lk-anse, .fo-diaporama.is-bientot .fo-fleche.is-ferme .fo-fleche__cadenas svg { animation: none; }
  .fo-une__play::before, .fo-une__play::after { opacity: 0; }
}

/* ── Liste des vidéos ────────────────────────────────────────────────────
   Image calée à gauche, titre et preuve sociale au centre, cœur à droite. Au
   survol, le sous-titre se déplie vers la droite : la carte garde sa hauteur
   au lieu de pousser les suivantes vers le bas.
   ------------------------------------------------------------------------ */
/* Gabarit de la carte : l'image occupe toute la hauteur, d'où une hauteur
   fixe. Ces deux mesures sont aussi celles annoncées dans l'admin. */
/* 220 × 132 : même rapport 5:3 qu'avant (160 × 96), en plus grand, pour
   qu'on voie vraiment l'image. */
:root { --card-h: 132px; --card-img-w: 220px; --card-main-w: 350px; }
.videocard {
  position: relative;
  display: flex; align-items: stretch;
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .65);
  outline: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, outline-color .28s;
}
.videocard:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 20px 42px -18px rgba(29, 158, 117, .38);
  outline-color: rgba(29, 158, 117, .5);
}
.videocard__link {
  flex: 1; min-width: 0; display: flex; align-items: center;
  height: var(--card-h); cursor: pointer; color: inherit;
}

/* L'image touche le bord gauche, le haut et le bas de la carte. Son bord
   droit s'efface en fondu — un masque plutôt qu'un voile blanc, pour que le
   fond de la carte se voie réellement à travers, quel que soit le décor. */
.videocard__img {
  position: relative; flex: none; align-self: stretch;
  width: var(--card-img-w);
  display: grid; place-items: center;
  background: rgba(21, 64, 50, .06);
  /* Rampe longue et progressive : l'image s'efface sur près de la moitié de
     sa largeur, au lieu de s'arrêter net. */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 34%, rgba(0, 0, 0, .55) 62%, rgba(0, 0, 0, .18) 82%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 34%, rgba(0, 0, 0, .55) 62%, rgba(0, 0, 0, .18) 82%, transparent 100%);
}
.videocard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.videocard__num { color: var(--muted); font-weight: 800; font-size: 19px; margin-right: 28%; }
.videocard.is-current .videocard__img {
  background: linear-gradient(135deg, rgba(43, 196, 138, .18), rgba(29, 158, 117, .09));
}
.videocard.is-current .videocard__num { color: var(--green); }
/* La vidéo en cours (la première pas encore vue) se voit d'un coup d'œil : un
   contour en dégradé, du vert-jaune Seqooia vers un vert clair qui s'efface à
   droite, et « En cours » à côté de son numéro, avec le point qui clignote du
   badge de la vidéo phare. Le contour est le bord même de la carte : son
   filet blanc et son trait gris s'effacent (le filet devient une marge
   intérieure d'un pixel, la carte garde sa taille), aucun halo autour. */
.videocard.is-current {
  border-width: 0; padding: 1px;
  outline-color: transparent;
  box-shadow: 0 16px 34px -22px rgba(29, 158, 117, .5);
}
.videocard.is-current::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  padding: 2px; border-radius: inherit;
  background: linear-gradient(110deg, #B6FF3B 0%, #7CEB9C 36%, rgba(43, 196, 138, .5) 70%, rgba(43, 196, 138, .22) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.videocard__encours { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: var(--green3); }
.videocard__encours i { width: 6px; height: 6px; border-radius: 50%; background: #2BC48A; animation: fo-clignote 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .videocard__encours i { animation: none; } }
/* « Déjà vu » : en haut à droite de la carte d'une vidéo vue, une coche blanche
   dans un rond vert, puis les deux mots, sur une pastille vert pâle. Une vidéo
   vue depuis la dernière visite voit le sien se poser (.is-neuf, posée par
   formation.js), l'un après l'autre. */
.videocard__vu {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 5px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; line-height: 1.2; letter-spacing: .02em; white-space: nowrap;
  color: var(--green3); background: rgba(43, 196, 138, .12);
  box-shadow: inset 0 0 0 1px rgba(43, 196, 138, .26);
}
.videocard__vu-ico { flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); color: #fff; }
.videocard__vu-ico svg { width: 10px; height: 10px; display: block; }
.videocard.is-neuf .videocard__vu {
  animation: vu-pose .6s cubic-bezier(.3, 1.5, .5, 1) backwards;
  animation-delay: calc(var(--neuf, 0) * 180ms + 350ms);
}
@keyframes vu-pose { from { opacity: 0; transform: scale(.45); } }
@media (prefers-reduced-motion: reduce) { .videocard.is-neuf .videocard__vu { animation: none; } }

.videocard__main { min-width: 0; flex: 0 0 var(--card-main-w); padding-left: 22px; }

/* Étape verrouillée : l'image passe en gris, assombrie et floutée, et porte
   un cadenas plein dans une pastille blanche — impossible à confondre avec
   une vidéo ouverte. Au survol, l'anse se soulève et retombe, et une
   étiquette dit quoi faire pour l'ouvrir. */
.videocard.is-locked .videocard__link { cursor: not-allowed; }
.videocard.is-locked .videocard__img img { filter: grayscale(1) blur(2.5px) brightness(.8); transform: scale(1.06); }
.videocard.is-locked .videocard__img { background: #E3E8E6; }
.videocard.is-locked .videocard__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14, 32, 27, .55), rgba(14, 32, 27, .3));
}
.videocard.is-locked .videocard__num { visibility: hidden; }
.videocard.is-locked .videocard__title { color: var(--muted); }
.videocard.is-locked:hover { transform: none; }
.videocard__lock {
  /* Exactement au centre de l'image (et non de sa partie pleine). */
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--card-img-w); z-index: 2;
  display: grid; place-items: center; pointer-events: none; perspective: 420px;
}
/* Pastille de verre presque transparente ; elle s'incline vers la souris
   (variables posées par formation.js) et un reflet la suit. */
.videocard__lockbadge {
  position: relative; overflow: hidden;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .32);
  backdrop-filter: blur(6px) saturate(1.3); -webkit-backdrop-filter: blur(6px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 26px -12px rgba(0, 0, 0, .7);
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .3s, border-color .3s;
}
.videocard__lockbadge::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .5), transparent 55%);
  opacity: .35; transition: opacity .3s;
}
.videocard.is-locked:hover .videocard__lockbadge { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); transition-duration: .12s; }
.videocard.is-locked:hover .videocard__lockbadge::after { opacity: 1; }
.videocard__lockbadge svg { position: relative; z-index: 1; width: 24px; height: 24px; display: block; overflow: visible; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.videocard__lockbadge .lk-anse { transform-origin: 15.5px 11px; }
.videocard.is-locked:hover .lk-anse { animation: lk-anse .9s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes lk-anse { 30% { transform: translateY(-3.5px) rotate(-14deg); } 60% { transform: translateY(-3.5px) rotate(-14deg); } }
/* L'étiquette : sur l'image, sous le cadenas, au survol seulement. */
.videocard__locktip {
  /* Centrée sous le cadenas, en bas de l'image. */
  position: absolute; left: calc(var(--card-img-w) / 2); bottom: 10px; z-index: 3;
  padding: 4px 10px; border-radius: 999px; background: rgba(10, 26, 22, .82); color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-size: 10.5px; font-weight: 700; line-height: 1.3; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 4px); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.4, .5, 1);
  pointer-events: none;
}
.videocard.is-locked:hover .videocard__locktip { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  .videocard.is-locked:hover .lk-anse { animation: none; }
  .videocard__lockbadge { transition: none; }
}
/* Le numéro de la vidéo dans un badge, comme celui de la vidéo phare. */
.videocard__meta { display: flex; align-items: center; margin-bottom: 6px; }
.videocard__badge {
  display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 999px;
  font-size: 8.5px; font-weight: 800; line-height: 1.2; letter-spacing: .07em; text-transform: uppercase;
  color: #0B5C45; background: rgba(182, 255, 59, .55);
}
/* Fermée : le même badge, sur fond gris. */
.videocard__badge.is-ferme { color: var(--muted); background: rgba(21, 64, 50, .08); }
/* Le titre passe à la ligne plutôt que de finir en « … » : on le lit en
   entier. Il remplit d'abord toute sa colonne (`pretty` évite seulement le
   mot orphelin) : pas de grand vide entre le titre et le filet du survol. */
.videocard__title {
  font-weight: 700; font-size: 15px; line-height: 1.3; letter-spacing: -.2px;
  text-wrap: pretty;
}

/* Pied de carte, en bas à droite : les visages, le décompte, puis le cœur,
   alignés sur une même ligne. Hors du lien : un clic n'ouvre pas la vidéo. */
.videocard__foot {
  position: absolute; right: 14px; bottom: 11px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
}
/* Preuve sociale : trois visages qui se chevauchent, puis le décompte. */
.videocard__social { display: flex; align-items: center; gap: 8px; }
.faces { display: inline-flex; }
.faces__one {
  width: 24px; height: 24px; flex: none; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center;
  background: var(--gradTeal); color: #fff; font-size: 10px; font-weight: 800;
  border: 2px solid #fff; margin-left: -7px;
}
.faces__one:first-child { margin-left: 0; }
.videocard__count { font-size: 11.5px; color: var(--muted); }
.videocard__count-court { display: none; }

/* Le sous-titre se déplie au survol, à gauche, juste à côté du titre : un
   filet vertical se dessine d'abord, puis le texte se dévoile vers la droite.
   Le bloc du titre a une largeur fixe, assez large pour qu'un long titre
   tienne sur deux lignes, si bien que le sous-titre démarre au même endroit
   sur toutes les cartes. Peu d'écart autour du filet : le titre garde la place. */
.videocard__more {
  flex: 1; min-width: 0; align-self: stretch;
  display: flex; align-items: center;
  padding: 0 26px 0 0;
}
.videocard__moreIn {
  position: relative; min-width: 0; max-width: 340px;
  margin-left: 4px; padding-left: 14px;
}
.videocard__moreIn::before {
  content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px;
  background: var(--border); transform: scaleY(0); transform-origin: top;
  transition: transform .3s cubic-bezier(.22, .85, .25, 1);
}
.videocard__moreIn p {
  margin: 0; text-align: left;
  font-size: 12.5px; line-height: 1.5; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  clip-path: inset(0 100% 0 0); opacity: 0;
  transition: clip-path .45s cubic-bezier(.22, .85, .25, 1) .08s, opacity .25s ease .08s;
}
.videocard:hover .videocard__moreIn::before { transform: scaleY(1); }
.videocard:hover .videocard__moreIn p { clip-path: inset(0 0 0 0); opacity: 1; }

/* Le cœur, à la taille du texte à côté de lui. */
.like {
  flex: none;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(21, 64, 50, .05); border: 1px solid transparent;
  color: var(--muted); font-size: 11.5px; font-weight: 700; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.like:hover { background: rgba(231, 76, 60, .09); color: var(--red); transform: scale(1.05); }
.like__heart svg { width: 11px; height: 11px; display: block; fill: currentColor; }
.like.is-on { background: rgba(231, 76, 60, .11); border-color: rgba(231, 76, 60, .25); color: var(--red); }
.like.is-beating .like__heart { animation: like-beat .5s cubic-bezier(.34, 1.5, .5, 1); }
@keyframes like-beat {
  0%, 100% { transform: scale(1); }
  35%      { transform: scale(1.4); }
  60%      { transform: scale(.92); }
}

@media (max-width: 760px) {
  /* Pas de survol au doigt : le sous-titre reste sur la page de la vidéo. Le
     titre prend toute la place, en gardant dessous celle du pied de carte.
     Un titre long agrandit la carte au lieu de buter sur le pied. */
  :root { --card-img-w: 118px; --card-h: 124px; }
  .videocard__link { height: auto; min-height: var(--card-h); }
  .videocard__main { max-width: none; flex: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 12px 12px 46px 14px; }
  .videocard__title { font-size: 14px; }
  .videocard__more { display: none; }
  /* Le pied de carte reste dans la colonne du texte, sous le titre : les
     visages et le décompte à gauche, le cœur à droite, jamais sur l'image. */
  .videocard__foot { left: calc(var(--card-img-w) + 14px); right: 10px; bottom: 9px; gap: 8px; justify-content: space-between; }
  .videocard__vu { position: static; margin-left: auto; padding: 3px 9px 3px 4px; gap: 5px; font-size: 10px; }
  .videocard__vu-ico { width: 15px; height: 15px; }
  .videocard__vu-ico svg { width: 9px; height: 9px; }
  .videocard__social { min-width: 0; gap: 6px; }
  .videocard__count { font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 520px) {
  .videocard__count-long { display: none; }
  .videocard__count-court { display: inline; }
}
/* Petits téléphones : l'image cède un peu de place au texte, puis les visages
   s'effacent (le décompte et le cœur restent). */
@media (max-width: 380px) {
  .videocard { --card-img-w: 96px; }
}
@media (max-width: 340px) {
  .videocard__social .faces { display: none; }
}

/* ── Le minuteur du coffre ───────────────────────────────────────────────
   Le cadenas au milieu d'un cadran gradué, comme un minuteur de cuisine :
   soixante traits, un plus long toutes les cinq, qui s'allument en vert à
   mesure que le temps passe, un point lumineux en tête ; le temps qui reste
   en deux tuiles, minutes et secondes (js/minuteur.js). --mn-p, de 0 à 1 (le
   temps écoulé), est posée sur le porteur — le coffre, l'écran d'une vidéo
   fermée — qui la fait glisser d'un tic à l'autre (sa transition). Les dix
   dernières secondes (.is-bientot), le cadenas frissonne ; à l'ouverture
   (.is-ouvre), le cadran s'illumine, l'anse se lève, une onde et des éclats
   partent du cadenas, et les tuiles laissent place à « Ouvert ».
   ------------------------------------------------------------------------ */
@property --mn-p { syntax: '<number>'; inherits: true; initial-value: 0; }
.mn { --mn-t: 76px; position: relative; flex: none; display: block; width: var(--mn-t); height: var(--mn-t); }
.mn__graduations { position: absolute; inset: 0; }
.mn__graduations svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mn__petites, .mn__grandes { fill: none; stroke: rgba(21, 64, 50, .22); }
.mn__petites { stroke-width: 4.6; stroke-dasharray: .32 .68; stroke-dashoffset: .16; }
.mn__grandes { stroke-width: 8; stroke-dasharray: .08 .92; stroke-dashoffset: .04; stroke: rgba(21, 64, 50, .32); }
/* Les traits déjà passés : les mêmes, en vert, découverts par un secteur qui tourne avec le temps. */
.mn__graduations--faites {
  -webkit-mask: conic-gradient(#000 calc(var(--mn-p) * 360deg), transparent 0);
  mask: conic-gradient(#000 calc(var(--mn-p) * 360deg), transparent 0);
  filter: drop-shadow(0 0 2px rgba(43, 196, 138, .5));
}
.mn__graduations--faites .mn__petites, .mn__graduations--faites .mn__grandes { stroke: #17A673; transition: stroke .4s ease; }
/* La tête : un point lumineux sur le cadran, là où en est le temps. */
.mn__aiguille { position: absolute; inset: 0; pointer-events: none; transform: rotate(calc(var(--mn-p) * 360deg)); }
.mn__aiguille::before {
  content: ''; position: absolute; left: 50%; top: 4.4%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #DDFF96 45%, #A4EE34);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 0 10px 3px rgba(182, 255, 59, .75);
  animation: mn-pouls 1.8s ease-in-out infinite;
  transition: opacity .4s ease, transform .5s ease;
}
@keyframes mn-pouls { 50% { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 0 16px 5px rgba(182, 255, 59, .55); } }
/* Le disque, vert profond, et le cadenas blanc au milieu. */
.mn__disque {
  position: absolute; inset: 17%; display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 32% 26%, #2CB487, #11684F 56%, #0B3D30);
  box-shadow: 0 10px 22px -10px rgba(11, 61, 48, .8), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -5px 10px rgba(0, 0, 0, .16);
}
/* La lumière de l'ouverture : un vert fluo qui monte dans le disque. */
.mn__disque::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(circle at 34% 28%, #F1FFC9, #B6FF3B 46%, #3FCB86 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: opacity .45s ease;
}
.mn__cadenas { position: relative; z-index: 1; transition: color .35s ease .1s; }
.mn__cadenas svg { display: block; width: calc(var(--mn-t) * .3); height: calc(var(--mn-t) * .3); overflow: visible; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.mn__cadenas .lk-anse { transform-origin: 15.5px 11px; }
/* Les dix dernières secondes : le cadenas frissonne, chaque seconde. */
.is-bientot .mn__cadenas svg { animation: mn-frisson 1s ease-in-out infinite; }
@keyframes mn-frisson { 0%, 55%, 100% { transform: none; } 65% { transform: rotate(-10deg); } 75% { transform: rotate(9deg); } 85% { transform: rotate(-5deg); } 93% { transform: rotate(2deg); } }
/* L'ouverture. */
.is-ouvre .mn__graduations--faites .mn__petites, .is-ouvre .mn__graduations--faites .mn__grandes { stroke: #8DE33A; }
.is-ouvre .mn__graduations--faites { animation: mn-eclair 1.3s ease-out both; }
@keyframes mn-eclair {
  0% { filter: drop-shadow(0 0 2px rgba(43, 196, 138, .5)); }
  25% { filter: drop-shadow(0 0 8px rgba(182, 255, 59, 1)) brightness(1.25); }
  100% { filter: drop-shadow(0 0 4px rgba(182, 255, 59, .7)); }
}
.is-ouvre .mn__aiguille::before { opacity: 0; transform: scale(2.4); animation: none; }
.is-ouvre .mn__disque { animation: mn-pop .75s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes mn-pop { 35% { transform: scale(1.17); } }
.is-ouvre .mn__disque::after { opacity: 1; }
.is-ouvre .mn__cadenas { color: #0B4D3B; }
.is-ouvre .mn__cadenas svg { filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .5)); }
.is-ouvre .mn__cadenas .lk-anse { animation: mn-anse .8s cubic-bezier(.3, 1.4, .5, 1) .05s forwards; }
@keyframes mn-anse { 40% { transform: translateY(-5px); } 100% { transform: translateY(-4.5px) rotate(-32deg); } }
/* L'onde, deux fois, et les éclats : ils partent du bord du disque. */
.mn__onde {
  position: absolute; inset: 17%; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(182, 255, 59, .95); box-shadow: 0 0 14px rgba(182, 255, 59, .6), inset 0 0 10px rgba(182, 255, 59, .4);
  animation: mn-onde 1s cubic-bezier(.2, .7, .3, 1) var(--r, 0ms) both;
}
@keyframes mn-onde { from { transform: scale(1); opacity: 1; } to { transform: scale(2.8); opacity: 0; } }
.mn__eclats { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.mn__eclat {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: #C6FF5E; box-shadow: 0 0 8px rgba(182, 255, 59, .95);
  animation: mn-eclat 1s cubic-bezier(.15, .7, .3, 1) var(--r, 0ms) both;
}
.mn__eclat--1 { left: -2px; top: -2px; width: 4px; height: 4px; background: #fff; box-shadow: 0 0 7px rgba(255, 255, 255, .95); }
.mn__eclat--2 { left: -2.5px; top: -4px; width: 5px; height: 8px; border-radius: 2px; background: #2BC48A; box-shadow: 0 0 8px rgba(43, 196, 138, .85); }
@keyframes mn-eclat {
  0% { transform: rotate(var(--a)) translateY(calc(var(--mn-t) * -.3)) scale(.3); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: rotate(var(--a)) translateY(calc(var(--mn-t) * -.34 - var(--d))) scale(.9); opacity: 0; }
}

/* Les tuiles : minutes et secondes, en vert profond, fendues au milieu
   comme un minuteur à volets ; un chiffre qui change glisse d'en haut. */
.mn-chiffres {
  position: relative; flex: none; display: grid; grid-template-columns: auto auto auto;
  grid-template-areas: 'min sep sec' 'umin . usec';
  align-items: center; justify-items: center; column-gap: 5px; row-gap: 6px;
}
.mn-chiffres__tuile--min { grid-area: min; }
.mn-chiffres__tuile--sec { grid-area: sec; }
.mn-chiffres__sep { grid-area: sep; }
.mn-chiffres__unite--min { grid-area: umin; }
.mn-chiffres__unite--sec { grid-area: usec; }
.mn-chiffres__tuile {
  --mn-tuile: 30px;
  position: relative; display: block; overflow: hidden; min-width: calc(var(--mn-tuile) * 1.68); padding: .3em .26em .27em; border-radius: calc(var(--mn-tuile) * .4);
  font-size: var(--mn-tuile); font-weight: 800; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #1C8064 0%, #126449 50%, #0E5541 50%, #0B3F31 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 12px 20px -14px rgba(11, 61, 48, .9);
  transition: box-shadow .4s ease, opacity .3s ease .15s, transform .35s ease .15s;
}
.mn-chiffres__tuile::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px;
  background: rgba(0, 0, 0, .3); box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
}
.mn-chiffres__tuile b { display: block; font-weight: inherit; }
.mn-chiffres__tuile b.is-tic { animation: mn-tic .26s cubic-bezier(.2, .8, .3, 1); }
@keyframes mn-tic { from { transform: translateY(-22%); opacity: .25; } }
.mn-chiffres__sep {
  font-size: calc(var(--mn-sep, 24px)); font-weight: 800; line-height: 1; color: #1D9E75;
  transform: translateY(-1px); animation: mn-sep 1s steps(1, end) infinite;
  transition: opacity .3s ease .15s;
}
@keyframes mn-sep { 50% { opacity: .38; } }
.mn-chiffres__unite { font-size: 9.5px; font-weight: 800; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: opacity .3s ease .15s; }
.is-bientot .mn-chiffres__tuile { animation: mn-appel 1s ease-in-out infinite; }
@keyframes mn-appel { 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 0 0 3px rgba(182, 255, 59, .45), 0 10px 22px -10px rgba(120, 220, 40, .8); } }
/* Ouvert : les tuiles s'effacent, la pastille fluo prend leur place. */
.mn-chiffres__ouvert {
  grid-area: 1 / 1 / 3 / 4; place-self: center; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 17px 10px 13px; border-radius: 999px;
  font-size: 15px; font-weight: 800; line-height: 1; color: #0B4D3B; white-space: nowrap;
  background: linear-gradient(135deg, #E2FFA6, #B6FF3B 55%, #8DEB6A);
  box-shadow: 0 10px 24px -10px rgba(110, 190, 30, .9), inset 0 1px 0 rgba(255, 255, 255, .65);
  opacity: 0; transform: scale(.4); pointer-events: none;
}
.mn-chiffres__ouvert svg { display: block; width: 17px; height: 17px; }
.is-ouvre .mn-chiffres__tuile { opacity: 0; transform: scale(.7); animation: none; }
.is-ouvre .mn-chiffres__sep { opacity: 0; animation: none; }
.is-ouvre .mn-chiffres__unite { opacity: 0; }
.is-ouvre .mn-chiffres__ouvert { opacity: 1; transform: none; transition: opacity .25s ease .3s, transform .6s cubic-bezier(.3, 1.6, .5, 1) .3s; }

@media (prefers-reduced-motion: reduce) {
  .mn__aiguille::before, .is-bientot .mn__cadenas svg, .is-bientot .mn-chiffres__tuile, .mn-chiffres__sep,
  .is-ouvre .mn__graduations--faites, .is-ouvre .mn__disque, .mn__onde, .mn__eclat { animation: none; }
  .is-ouvre .mn__cadenas .lk-anse { animation: none; transform: translateY(-4.5px) rotate(-32deg); }
  .mn-chiffres__tuile b.is-tic { animation: none; }
  .mn__disque::after, .mn__cadenas, .mn-chiffres__tuile, .mn-chiffres__sep, .mn-chiffres__unite, .is-ouvre .mn-chiffres__ouvert { transition: none; }
}

/* ── Le coffre ──────────────────────────────────────────────────────────
   Les vidéos 2 et 3, grisées, dans un bloc à part sous la vidéo 1 ; en tête,
   le minuteur (formation.js, blocCoffre). Une ligne longe le bord du haut,
   d'un coin arrondi à l'autre : elle se remplit avec le temps, une pointe
   lumineuse en tête. Les cadenas des cartes ont chacun leur anneau, qui se
   remplit avec. Le cadre déborde de chaque côté de la colonne : les cartes
   gardent exactement leur largeur, et rien ne bouge quand il s'ouvre. À
   l'ouverture : le minuteur s'ouvre (cf. plus haut), la ligne s'embrase, un
   reflet traverse le coffre, et carte après carte l'anneau s'illumine,
   l'anse se lève, la carte reprend ses couleurs ; puis le cadre s'efface et
   l'en-tête se replie.
   ------------------------------------------------------------------------ */
.pv__coffre { --cf-deb: 14px; list-style: none; margin: 8px calc(-1 * var(--cf-deb)) 0; transition: margin .5s cubic-bezier(.3, .7, .3, 1); }
.pv__coffre.is-fondu { margin-top: 0; }
.coffre {
  position: relative; padding: 0 var(--cf-deb) var(--cf-deb); border-radius: calc(var(--radius) + 10px);
  transition: padding .5s cubic-bezier(.3, .7, .3, 1), --mn-p .3s linear;
}
/* À l'arrivée, la ligne, le cadran et les anneaux rattrapent le temps déjà écoulé d'un seul geste. */
.coffre.is-intro { transition: padding .5s cubic-bezier(.3, .7, .3, 1), --mn-p 1.2s cubic-bezier(.3, .7, .2, 1); }
/* Le cadre, à part : il s'efface en fondu. Un vert très pâle, comme un tiroir en retrait, plus clair en haut. */
.coffre::before {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(110% 80px at 50% 0, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #EEF5F2, #E4EEEA);
  box-shadow: inset 0 0 0 1px rgba(21, 64, 50, .08), inset 0 -14px 26px -22px rgba(21, 64, 50, .3), 0 22px 44px -30px rgba(11, 61, 48, .5);
  transition: opacity .5s ease;
}
/* La ligne du bord : le haut du cadre et ses deux coins, puis elle s'efface le long des côtés. Verte
   jusqu'au temps écoulé, fluo à sa pointe ; la lueur vient de son conteneur (le masque la couperait). */
.coffre__fil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  filter: drop-shadow(0 0 3px rgba(182, 255, 59, .55));
  transition: opacity .5s ease;
}
.coffre__fil i {
  --cf-fondu: calc(var(--radius) + 34px);
  position: absolute; inset: 0; border-radius: inherit; padding: 2.5px 2.5px 0;
  background: linear-gradient(90deg, #1FA77C 0, #2BC48A calc(var(--mn-p) * 100% - 120px), #B6FF3B calc(var(--mn-p) * 100% - 1px), rgba(21, 64, 50, .13) calc(var(--mn-p) * 100%));
  -webkit-mask: linear-gradient(#000 calc(var(--radius) + 6px), transparent var(--cf-fondu)), linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: source-in, xor;
  mask: linear-gradient(#000 calc(var(--radius) + 6px), transparent var(--cf-fondu)), linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: intersect, exclude;
}
/* Sa pointe : sur la partie rectiligne du bord seulement, entre les deux coins (formation.js la montre et la cache). */
.coffre__pointe {
  position: absolute; top: 1.25px; left: calc(var(--mn-p) * 100%); width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 28%, #DDFF96 58%, #B6FF3B);
  box-shadow: 0 0 9px 3px rgba(182, 255, 59, .75);
  opacity: 0; transition: opacity .45s ease;
}
.coffre__pointe.is-visible { opacity: 1; }
/* Le reflet de l'ouverture : une bande de lumière qui traverse le coffre. */
.coffre__lueur { position: absolute; inset: 0; z-index: 3; overflow: hidden; border-radius: inherit; pointer-events: none; }
.coffre__lueur i {
  position: absolute; inset: 0; opacity: 0; border-radius: inherit;
  /* La bande glisse à l'intérieur du coffre (un fond qui se déplace), jamais à côté (cf. .ac-cta::after). */
  background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 39%, rgba(255, 255, 255, .5) 47%, rgba(220, 255, 150, .38) 53%, rgba(255, 255, 255, 0) 61%);
  background-repeat: no-repeat; background-size: 300% 100%; background-position: 100% 0;
}
.coffre.is-ouvre .coffre__lueur i { animation: cf-lueur 1.2s cubic-bezier(.45, 0, .25, 1) .25s both; }
@keyframes cf-lueur {
  0% { background-position: 100% 0; opacity: 0; }
  15% { opacity: 1; }
  100% { background-position: 0 0; opacity: 0; }
}
.coffre.is-ouvre .coffre__fil { animation: cf-fil 1.3s ease-out both; }
@keyframes cf-fil {
  30% { filter: drop-shadow(0 0 10px rgba(182, 255, 59, 1)) brightness(1.25); }
  100% { filter: drop-shadow(0 0 4px rgba(182, 255, 59, .7)); }
}

.coffre__tete, .coffre__cartes { position: relative; z-index: 1; }
.coffre__tete { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s cubic-bezier(.3, .7, .3, 1), opacity .3s ease; }
.coffre__tete-in { min-height: 0; display: flex; align-items: center; gap: 18px; padding: 18px 6px 16px; }
.coffre__texte { flex: 1; min-width: 0; }
.coffre__titre { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.25px; color: var(--text); text-wrap: balance; transition: color .4s ease; }
.coffre__sous { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.coffre__titre.is-neuf, .coffre__sous.is-neuf { animation: cf-neuf .5s cubic-bezier(.2, .8, .3, 1) both; }
.coffre__sous.is-neuf { animation-delay: .08s; }
@keyframes cf-neuf { from { opacity: 0; transform: translateY(6px); } }
.coffre.is-appel .mn-chiffres { animation: cf-appel .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cf-appel { 40% { transform: scale(1.1); } }

/* Les cartes du coffre : grisées, un clic dit ce qui reste. --cf-t : le tour de chaque carte, à l'ouverture. */
.coffre__cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--pv-gap); }
.coffre__cartes > li { --cf-t: calc(var(--k, 0) * 170ms); }
.coffre .videocard { transition: filter .6s ease, opacity .6s ease, transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, outline-color .28s; transition-delay: calc(var(--cf-t) + 300ms), calc(var(--cf-t) + 300ms), 0s, 0s, 0s; }
.coffre:not(.is-ouvre) .videocard { filter: grayscale(.8); opacity: .8; }
.coffre .videocard.is-locked .videocard__link { cursor: pointer; }
.coffre .videocard__img img { transition: filter .7s ease, transform .7s ease; transition-delay: calc(var(--cf-t) + 300ms); }
.coffre .videocard__img::after {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, rgba(14, 32, 27, .55), rgba(14, 32, 27, .3));
  transition: opacity .6s ease calc(var(--cf-t) + 300ms);
}
.coffre .videocard.is-locked .videocard__img::after { opacity: 1; }
.coffre .videocard__lock { transition: opacity .45s ease, transform .45s cubic-bezier(.3, 1.4, .5, 1); transition-delay: calc(var(--cf-t) + 520ms); }
.coffre .videocard:not(.is-locked) .videocard__lock { opacity: 0; transform: scale(1.4); }
.coffre .videocard__title { transition: color .6s ease calc(var(--cf-t) + 300ms); }
.coffre .videocard__badge { transition: background .5s ease, color .5s ease; }
/* L'anneau du cadenas d'une carte : il se remplit avec le minuteur. */
.videocard__lock > * { grid-area: 1 / 1; }
.videocard__minuteur { width: 68px; height: 68px; pointer-events: none; }
.videocard__anneau { display: block; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.va-fond, .va-plein { fill: none; stroke-width: 2.4; }
.va-fond { stroke: rgba(255, 255, 255, .22); }
.va-plein {
  stroke: #D2FF80; stroke-linecap: round; stroke-dasharray: 100px; stroke-dashoffset: calc((1 - var(--mn-p)) * 100px);
  filter: drop-shadow(0 0 3px rgba(182, 255, 59, .75));
  transition: stroke .3s ease, filter .3s ease;
}
/* Carte après carte, à l'ouverture : l'anneau s'embrase, l'anse se lève, la carte reprend ses couleurs et s'illumine. */
.coffre.is-ouvre .va-plein { stroke: #fff; filter: drop-shadow(0 0 7px rgba(182, 255, 59, 1)); transition-delay: calc(var(--cf-t) + 60ms); }
.coffre.is-ouvre .videocard__lockbadge .lk-anse { animation: mn-anse .7s cubic-bezier(.3, 1.4, .5, 1) calc(var(--cf-t) + 80ms) forwards; }
.coffre.is-ouvre .videocard { animation: cf-carte 1s ease-out calc(var(--cf-t) + 300ms) both; }
@keyframes cf-carte {
  0% { box-shadow: var(--shadow-sm), 0 0 0 0 rgba(182, 255, 59, 0); }
  35% { box-shadow: var(--shadow-sm), 0 0 0 3px rgba(182, 255, 59, .55), 0 0 28px rgba(182, 255, 59, .45); }
  100% { box-shadow: var(--shadow-sm), 0 0 0 0 rgba(182, 255, 59, 0); }
}
.coffre.is-ouvre .coffre__titre { color: var(--green3); }
/* Puis le cadre s'efface et l'en-tête se replie : les cartes rejoignent le parcours. */
.coffre.is-fondu { padding-bottom: 0; }
.coffre.is-fondu::before, .coffre.is-fondu .coffre__fil { opacity: 0; }
.coffre.is-fondu .coffre__tete { grid-template-rows: 0fr; opacity: 0; }
.coffre.is-fondu .coffre__tete-in { overflow: hidden; }

@media (max-width: 760px) {
  /* Sur téléphone : le cadran à gauche, le titre et les tuiles à sa droite, la phrase dessous. */
  .pv__coffre { --cf-deb: 10px; }
  .coffre__tete-in {
    display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'mn titre' 'mn chiffres' 'sous sous';
    column-gap: 14px; row-gap: 8px; align-items: center; padding: 16px 2px 13px;
  }
  .coffre__texte { display: contents; }
  .coffre .mn { --mn-t: 66px; grid-area: mn; }
  .coffre__titre { grid-area: titre; align-self: end; font-size: 14.5px; }
  .coffre .mn-chiffres { grid-area: chiffres; justify-self: start; align-self: start; }
  .coffre .mn-chiffres__tuile { --mn-tuile: 21px; }
  .coffre .mn-chiffres { --mn-sep: 18px; column-gap: 4px; row-gap: 4px; }
  .coffre .mn-chiffres__unite { font-size: 8.5px; }
  .coffre .mn-chiffres__ouvert { font-size: 13px; padding: 8px 14px 8px 11px; }
  .coffre__sous { grid-area: sous; margin: 2px 0 0; font-size: 12.5px; }
  .videocard__minuteur { width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .coffre, .coffre.is-intro, .coffre::before, .coffre__fil, .coffre__pointe, .coffre__tete, .pv__coffre, .coffre .videocard, .coffre .videocard__img img, .coffre .videocard__lock, .va-plein { transition: none; }
  .coffre.is-appel .mn-chiffres, .coffre.is-ouvre .coffre__lueur i, .coffre.is-ouvre .coffre__fil, .coffre.is-ouvre .videocard,
  .coffre__titre.is-neuf, .coffre__sous.is-neuf { animation: none; }
  .coffre.is-ouvre .videocard__lockbadge .lk-anse { animation: none; }
}

/* ── Écran vidéo ────────────────────────────────────────────────────────── */
.player {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  background: #0B1512;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Vidalytics pose son lecteur dans cet hôte ; le cadre 16/9 vient du parent. */
.player__vidalytics { position: absolute; inset: 0; }
.player--soon { display: grid; place-items: center; color: rgba(255, 255, 255, .7); font-size: 13.5px; }
.player--apercu p { max-width: 460px; margin: 0; padding: 0 24px; text-align: center; line-height: 1.6; }
.player__error { margin: 0; padding: 18px; text-align: center; color: var(--muted); font-size: 13.5px; }
.videohead { margin-bottom: 18px; text-align: center; }
.videohead h1 { margin: 4px 0 4px; font-size: 24px; letter-spacing: -.6px; }
.videohead__sub { color: var(--muted); font-size: 14px; }
/* Pastille « VIDÉO x SUR y » au-dessus du titre de la vidéo. */
.stepper {
  display: inline-block; margin-bottom: 7px; padding: 4px 10px; border-radius: 8px;
  font-family: var(--pixel); font-size: 8px; letter-spacing: .3px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .15), rgba(29, 158, 117, .07));
  border: 1px solid rgba(29, 158, 117, .22);
  color: var(--green);
}
.videodesc { margin: 18px 0 0; color: #3F5049; line-height: 1.7; font-size: 15px; }
.videonav { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Sous le lecteur : flèche, appel, flèche. Les flèches gardent leur place même
   éteintes pour que le bouton central ne bouge jamais d'une vidéo à l'autre. */
.videobar {
  display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 16px;
  margin-top: 16px;
}
.videobar__arrow {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--border);
  color: var(--green3); box-shadow: var(--shadow-sm);
  transition: all .22s cubic-bezier(.2, .8, .2, 1);
}
.videobar__arrow svg { width: 26px; height: 26px; }
.videobar__arrow:hover { border-color: var(--green); background: #fff; transform: scale(1.06); box-shadow: var(--shadow-green); }
.videobar__arrow--prev:hover { transform: scale(1.06) translateX(-2px); }
.videobar__arrow--next:hover { transform: scale(1.06) translateX(2px); }
.videobar__arrow.is-off { opacity: .28; pointer-events: none; box-shadow: none; }
.videobar__cta { justify-self: center; padding: 15px 40px; font-size: 15px; }
/* La suivante encore fermée : flèche grisée, petit cadenas dessus. Ouverte, elle bondit. */
.videobar__arrow.is-verrou { position: relative; padding: 0; cursor: pointer; color: var(--muted-2); background: rgba(255, 255, 255, .6); box-shadow: none; }
.videobar__arrow.is-verrou:hover { transform: none; border-color: var(--border); box-shadow: none; color: var(--muted); }
.videobar__cadenas {
  position: absolute; right: -3px; top: -3px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  color: #fff; background: var(--teal-deep); box-shadow: 0 0 0 2px #fff;
}
.videobar__cadenas svg { width: 12px; height: 12px; }
.videobar__arrow.is-neuve { animation: vb-neuve .9s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes vb-neuve {
  0% { transform: scale(.7); box-shadow: 0 0 0 0 rgba(43, 196, 138, .6); }
  60% { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(43, 196, 138, 0); }
  100% { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .videobar__arrow.is-neuve { animation: none; }
}
@media (max-width: 600px) {
  .videobar { grid-template-columns: 46px 1fr 46px; gap: 10px; }
  .videobar__arrow { width: 46px; height: 46px; }
  .videobar__cta { padding: 13px 24px; font-size: 14px; }
}

/* ── Bloc de conversion ─────────────────────────────────────────────────── */
/* Le portrait est détouré : on l'ancre en bas du bloc et on le laisse dépasser
   par le haut. La marge supérieure réserve la place de ce débordement. */
.pitch {
  position: relative;
  display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 30px; align-items: center;
  /* Hauteur plancher inférieure à celle du portrait : la tête dépasse donc
     toujours du même nombre de pixels, quel que soit le texte. */
  min-height: 252px;
  margin-top: 78px; padding: 28px 34px;
  border-radius: var(--radius);
  background:
    radial-gradient(closest-side at 85% -20%, rgba(255, 255, 255, .18), transparent),
    var(--gradTeal);
  color: #fff; box-shadow: var(--shadow-md);
  overflow: visible;
}
.pitch__photo {
  position: absolute; left: 22px; bottom: 0;
  height: 306px; width: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
}
/* Sans photo disponible, le bloc reprend toute la largeur. */
.pitch--nophoto { grid-template-columns: 1fr; margin-top: 28px; }
.pitch--nophoto .pitch__photo { display: none; }

/* La photo étant en position absolue, elle sort du flux de la grille : le
   texte doit donc être placé explicitement dans la seconde colonne. */
.pitch__body { grid-column: 2; }
.pitch--nophoto .pitch__body { grid-column: 1; }
/* Le titre : sur une ligne quand le bloc est large ; sinon coupé en deux lignes égales, jamais un mot seul à la ligne. */
.pitch__body h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.4px; line-height: 1.3; text-wrap: balance; }
.pitch__body p { margin: 0 0 18px; color: rgba(255, 255, 255, .88); font-size: 14.5px; line-height: 1.65; }
/* Sur le dégradé teal, la pastille est blanche et le texte repasse en vert. */
.pitch .btn-flow {
  --flow-fg: #fff;
  --flow-bd: rgba(255, 255, 255, .55);
  --flow-fill: #fff;
  --flow-fg-on: var(--green3);
}
.pitch__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* Le bouton d'appel, plein, dans un vert fluo qui se détache du dégradé :
   texte vert profond au repos ; au survol, le geste de l'en-tête — la
   pastille vert profond s'ouvre, le texte passe en blanc, la gélule reste. */
.pitch .btn-flow--fluo {
  --flow-fg: #053B29;
  --flow-bd: transparent;
  --flow-fill: #0E5E4A;
  --flow-fg-on: #fff;
  background: linear-gradient(135deg, #7DFFC0 0%, #3BF59B 50%, #1EDB80 100%);
  box-shadow: 0 10px 26px -10px rgba(59, 245, 155, .85), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.pitch .btn-flow--fluo:hover { box-shadow: 0 14px 30px -10px rgba(59, 245, 155, .9); }

@media (max-width: 700px) {
  /* En colonne, la photo reprend le flux et se centre au-dessus du texte. */
  .pitch { grid-template-columns: 1fr; justify-items: center; text-align: center; margin-top: 60px; padding-top: 0; gap: 14px; }
  /* Le portrait garde ses proportions (il était forcé à 150 × 306 et paraissait étiré), et
     ne s'arrête plus net au milieu du bloc : son bas se fond dans le vert, juste au-dessus du titre. */
  .pitch__photo {
    position: static; width: min(232px, 72%); height: auto; margin-top: -52px;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 99%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 99%);
    /* Le masque couperait l'ombre portée au bord de l'image : un cadre sombre apparaissait autour du portrait. */
    filter: none;
  }
  .pitch__body { grid-column: 1; }
  .pitch__actions { justify-content: center; }
}

/* La pousse de la série se balance un peu (fenêtre de bravo, fiche du compte). */
@keyframes serie-pousse { 30% { transform: rotate(-9deg) scale(1.08); } 65% { transform: rotate(6deg); } }

/* ── Fenêtre « Ma série » ─────────────────────────────────────────────────
   La pousse vivante et le compteur, la semaine en cours, le prochain trophée
   et sa barre, puis les douze paliers (Régulier, Persévérant, Séquoia). */
.modal__card--streak { max-width: 460px; gap: 16px; padding: 22px 24px 20px; }
.modal__card--streak .modal__head { margin-bottom: -6px; }
.sk-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.sk-flamme { position: relative; width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 2px; }
.sk-flamme__disque {
  position: relative; z-index: 2; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  color: #fff; background: radial-gradient(circle at 32% 26%, #5BE0AE, #1D9E75 58%, #0F6B53);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .45), inset 0 -6px 12px rgba(0, 0, 0, .14), 0 12px 26px -8px rgba(29, 158, 117, .7);
}
.sk-flamme__disque .cm-ico { width: 38px; height: 38px; transform-origin: 50% 92%; }
.sk-flamme__disque .cm-ico svg { stroke-width: 2.1; }
.sk-flamme__onde { position: absolute; inset: 15px; border-radius: 50%; border: 2px solid rgba(43, 196, 138, .55); opacity: 0; }
.sk-flamme__eclat { position: absolute; z-index: 3; left: 50%; bottom: 22px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #FDE68A; box-shadow: 0 0 6px rgba(253, 230, 138, .9); opacity: 0; }
.sk-flamme__eclat:nth-child(even) { width: 4px; height: 4px; margin-left: -2px; background: #A7F3D0; box-shadow: 0 0 6px rgba(167, 243, 208, .9); }
.sk-flamme.is-vivante .sk-flamme__disque { animation: sk-respire 2.6s ease-in-out infinite; }
.sk-flamme.is-vivante .sk-flamme__disque .cm-ico { animation: sk-balance 3.2s ease-in-out infinite; }
.sk-flamme.is-vivante .sk-flamme__onde { animation: sk-onde 2.6s cubic-bezier(.2, .7, .3, 1) infinite; }
.sk-flamme.is-vivante .sk-flamme__onde--2 { animation-delay: 1.3s; }
.sk-flamme.is-vivante .sk-flamme__eclat { animation: sk-eclat 2.4s ease-out infinite; animation-delay: calc(var(--i) * .4s); }
.sk-flamme:not(.is-vivante) .sk-flamme__disque { background: radial-gradient(circle at 32% 26%, #e2e8f0, #94a3b8 70%); box-shadow: inset 0 2px 2px rgba(255, 255, 255, .6), 0 10px 22px -10px rgba(100, 116, 139, .6); }
@keyframes sk-respire { 50% { transform: scale(1.06); } }
@keyframes sk-balance { 25% { transform: rotate(-7deg); } 60% { transform: rotate(5deg); } }
@keyframes sk-onde { 0% { opacity: .75; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes sk-eclat {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc((var(--i) - 2.5) * 13px), -64px) scale(1); }
}
.sk-hero__chiffre { display: flex; align-items: baseline; gap: 8px; }
.sk-hero__count { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sk-hero__unit { font-size: 14px; font-weight: 700; color: var(--muted); }
.sk-record { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #92600E; background: linear-gradient(135deg, rgba(253, 230, 138, .55), rgba(253, 230, 138, .2)); box-shadow: inset 0 0 0 1px rgba(217, 154, 30, .28); }
.sk-record .cm-ico { width: 12px; height: 12px; }
.sk-record.is-record { animation: sk-record 1.2s ease .9s both; }
@keyframes sk-record { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
.sk-msg { margin: -4px auto 0; max-width: 360px; text-align: center; font-size: 13.5px; color: var(--muted); line-height: 1.55; text-wrap: balance; }

.sk-semaine { padding: 12px 12px 10px; border-radius: 16px; background: linear-gradient(180deg, rgba(240, 253, 250, .9), rgba(255, 255, 255, .6)); box-shadow: inset 0 0 0 1px var(--border); }
.sk-semaine__titre { display: flex; justify-content: space-between; margin: 0 2px 8px; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.sk-semaine__jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.sk-jour { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sk-jour__lettre { font-size: 10.5px; font-weight: 800; color: var(--muted-2); }
.sk-jour__rond { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--muted-2); background: #fff; box-shadow: inset 0 0 0 1.5px var(--border-2); }
.sk-jour.is-on .sk-jour__rond { color: #fff; background: radial-gradient(circle at 32% 28%, #4ADE9F, #1D9E75 70%); box-shadow: 0 6px 14px -6px rgba(29, 158, 117, .7); animation: sk-jour .5s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(.25s + var(--i) * .07s); }
.sk-jour.is-on .sk-jour__rond .cm-ico { width: 15px; height: 15px; }
.sk-jour.is-on .sk-jour__rond .cm-ico svg { stroke-width: 3; }
.sk-jour.is-today .sk-jour__lettre { color: var(--green3); }
.sk-jour.is-today .sk-jour__rond { outline: 2px solid rgba(29, 158, 117, .35); outline-offset: 2px; }
.sk-jour.is-future .sk-jour__rond { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-2); border: 1.5px dashed #cbd5e1; box-shadow: none; }
@keyframes sk-jour { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

.sk-prochain { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--border), 0 10px 24px -18px rgba(21, 64, 50, .45); }
.sk-prochain__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sk-prochain__kicker { font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.sk-prochain__txt strong { font-size: 14px; line-height: 1.3; }
.sk-prochain__tier { font-weight: 800; }
.sk-prochain__barre { display: block; height: 8px; margin-top: 4px; border-radius: 999px; background: rgba(21, 64, 50, .08); overflow: hidden; }
.sk-prochain__plein { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.2s cubic-bezier(.22, 1, .36, 1) .3s; box-shadow: 0 0 10px var(--sk-teinte, transparent); }
.sk-prochain__reste { font-size: 11.5px; color: var(--muted); }
.sk-prochain__reste b { color: var(--text); font-variant-numeric: tabular-nums; }

.sk-paliers { display: flex; flex-direction: column; gap: 8px; }
.sk-paliers__titre { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.sk-paliers__compte { font-size: 11px; letter-spacing: 0; color: var(--green3); font-variant-numeric: tabular-nums; }
.sk-trophee { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(240, 253, 250, .55); box-shadow: inset 0 0 0 1px var(--border); }
.sk-trophee__nom { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sk-trophee__nom strong { font-size: 13px; }
.sk-trophee__nom span { font-size: 10.5px; color: var(--muted-2); }
.sk-trophee__paliers { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
/* Le fil qui relie les quatre médailles, rempli jusqu'au dernier palier décroché. */
.sk-trophee__paliers::after { content: ''; position: absolute; top: 19px; left: 12.5%; height: 3px; border-radius: 3px; }
.sk-trophee__paliers::after { width: calc(75% * var(--rempli)); background: linear-gradient(90deg, #2BC48A, #1D9E75); transform-origin: left; animation: sk-fil .9s cubic-bezier(.22, 1, .36, 1) .4s both; }
@keyframes sk-fil { from { transform: scaleX(0); } }
.sk-palier { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.sk-palier .md { transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), filter .2s ease, opacity .2s ease; }
.sk-palier__med { position: relative; display: block; }
.sk-palier:not(.is-eu) .md { filter: saturate(.3) brightness(1.06); opacity: .5; }
.sk-palier.is-suivant .md { filter: saturate(.75); opacity: .92; }
.sk-palier:not(.is-eu):hover .md { filter: none; opacity: 1; }
.sk-palier__cadenas { position: absolute; right: -3px; bottom: 7px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; color: var(--muted); background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .22); }
.sk-palier__cadenas .cm-ico { width: 9px; height: 9px; }
.sk-palier__cadenas .cm-ico svg { stroke-width: 2.6; }
.sk-palier:hover .md { transform: translateY(-2px) scale(1.08); }
.sk-palier__jours { font-size: 10.5px; font-weight: 800; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.sk-palier.is-eu .sk-palier__jours { color: var(--green3); }
.sk-palier.is-suivant .sk-palier__jours { color: var(--text); }
.sk-palier.is-suivant .md { animation: sk-suivant 2s ease-in-out infinite; }
@keyframes sk-suivant { 50% { transform: translateY(-2px); } }
.sk-note { margin: 0; text-align: center; font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }
@media (max-width: 420px) {
  .modal__card--streak { padding: 18px 14px 16px; }
  .sk-jour__rond { width: 30px; height: 30px; }
  .sk-trophee { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-flamme *, .sk-jour.is-on .sk-jour__rond, .sk-trophee__paliers::after, .sk-palier.is-suivant .md, .sk-record.is-record { animation: none !important; }
}

/* ── Révélation au défilement ───────────────────────────────────────────────
   Les blocs montent et s'éclaircissent en entrant dans le champ. Discret
   par construction : 10 px de course et un tiers de seconde.
   ------------------------------------------------------------------------ */
.reveal {
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s cubic-bezier(.2, .8, .2, 1), transform .45s cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Mon profil ─────────────────────────────────────────────────────────
   Une carte d'identité (photo, nom modifiable, statut), quatre compteurs de
   même gabarit, la formation et le rang côte à côte, les trophées, puis —
   pour le super admin — la liste des membres inscrits.
   ------------------------------------------------------------------------ */
.me { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.me .card + .card, .me-cols > .card + .card, .me-stats > .card + .card { margin-top: 0; }
.me .card { margin-bottom: 0; }

.me-hero { display: flex; align-items: center; gap: 26px; padding: 26px 28px; }
.me-hero__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.me-hero__name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.me-hero__name h1 { margin: 0; font-size: 28px; letter-spacing: -.7px; line-height: 1.15; }
.me-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.me-edit {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .7);
  font: 700 11.5px var(--font); color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.me-edit .cm-ico { width: 13px; height: 13px; }
.me-edit:hover { color: var(--green3); border-color: rgba(29, 158, 117, .4); background: rgba(29, 158, 117, .06); }
.me-nameform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.me-nameform input { width: 180px; padding: 9px 12px; font-size: 14px; }
/* Mon mot de passe : le texte à gauche, le bouton (ou le petit formulaire) à droite. */
.me-card.me-mdp { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.me-mdp__texte h3 { margin: 0 0 4px; font-size: 16px; }
.me-mdp__texte p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.me-mdp__zone .cm-ico { width: 15px; height: 15px; }
.me-mdp__form input[type="password"] { width: 220px; }
/* « Refaire mon profil » (le super admin seul) : une carte discrète, tout en bas — l'icône dans sa
   pastille ambrée (un outil de test, pas une action de membre), le texte, le bouton à droite. */
.me-refaire { display: flex; flex-direction: row; align-items: center; gap: 14px 18px; flex-wrap: wrap; padding: 16px 20px; }
.me-refaire__ico {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  color: #8A6A12; background: linear-gradient(135deg, rgba(201, 168, 76, .2), rgba(201, 168, 76, .08));
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, .32);
}
.me-refaire__ico svg { width: 19px; height: 19px; }
.me-refaire__texte { flex: 1 1 260px; min-width: 0; }
.me-refaire__texte strong { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 15.5px; }
.me-refaire__pour {
  padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  color: #8A6A12; background: rgba(201, 168, 76, .14);
}
.me-refaire__texte p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.me-refaire__btn { flex: none; display: inline-flex; align-items: center; gap: 7px; }
.me-refaire__btn .cm-ico { width: 15px; height: 15px; }
.me-refaire__btn:disabled { opacity: .55; cursor: progress; }

.me-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  background: rgba(29, 158, 117, .09); border: 1px solid rgba(29, 158, 117, .22);
  font-size: 11.5px; font-weight: 700; color: var(--green3); white-space: nowrap;
}
.me-chip .cm-ico { width: 13px; height: 13px; }
.me-chip--ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.me-chip--super {
  background: linear-gradient(135deg, #E9CF7E, #C9A84C 60%, #A8862F); border-color: transparent; color: #fff;
  box-shadow: 0 4px 10px -5px rgba(168, 134, 47, .8);
}

/* Photo : un rond, l'appareil photo posé en bas à droite. */
.me-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.me-photo__btn { position: relative; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 50%; }
.me-photo__img {
  width: 112px; height: 112px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--gradTeal); color: #fff;
  font-size: 40px; font-weight: 800;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(29, 158, 117, .25), 0 14px 30px -14px rgba(21, 64, 50, .6);
  transition: box-shadow .25s;
}
.me-photo__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-photo__btn:hover .me-photo__img { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--green), 0 14px 30px -14px rgba(21, 64, 50, .6); }
.me-photo__cam {
  position: absolute; right: 0; bottom: 2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 6px 12px -5px rgba(21, 64, 50, .6);
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.me-photo__cam .cm-ico { width: 16px; height: 16px; }
.me-photo__btn:hover .me-photo__cam { transform: scale(1.1); }

/* Quatre compteurs de même taille, alignés sur une ligne. */
.me-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.me-stat { display: flex; align-items: center; gap: 13px; padding: 16px 18px; min-height: 92px; }
.me-stat .cm-tile { width: 44px; height: 44px; border-radius: 13px; }
.me-stat .cm-tile .cm-ico { width: 21px; height: 21px; }
.me-stat__txt { display: flex; flex-direction: column; min-width: 0; }
.me-stat__val { font-size: 24px; font-weight: 800; letter-spacing: -.8px; line-height: 1.1; color: var(--text); }
.me-stat__label { font-size: 12.5px; font-weight: 700; color: var(--text); }
.me-stat__detail { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.me-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.me-card { padding: 18px 20px; display: flex; flex-direction: column; }
.me-card__cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.me-card__cta .cm-ico { width: 15px; height: 15px; }
.me-card__done { margin: auto 0 0; font-size: 13px; font-weight: 700; color: var(--green3); }

.me-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.me-step { display: flex; align-items: center; gap: 11px; padding: 7px 8px; border-radius: 10px; font-size: 13px; }
.me-step__dot {
  width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(21, 64, 50, .18); background: #fff;
  font-family: var(--pixel); font-size: 7px; color: var(--muted-2);
}
.me-step__dot .cm-ico { width: 14px; height: 14px; }
.me-step__title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.me-step__state { font-size: 11px; font-weight: 700; color: var(--muted-2); white-space: nowrap; }
.me-step.is-done .me-step__dot { background: var(--grad); border-color: transparent; color: #fff; }
.me-step.is-done .me-step__title { color: var(--text); }
.me-step.is-done .me-step__state { color: var(--green); }
.me-step.is-next { background: rgba(29, 158, 117, .07); }
.me-step.is-next .me-step__dot { border-color: var(--green); color: var(--green3); }
.me-step.is-next .me-step__title { color: var(--text); }
.me-step.is-next .me-step__state { color: var(--green3); }

.me-rank__top { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.me-rank__ring { display: flex; align-items: center; gap: 18px; margin: 6px 0 4px; }
.me-rank__label { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.me-rank__lvl { font-size: 12.5px; color: var(--muted); }
.me-facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.me-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.me-facts strong { color: var(--text); text-align: right; }
.me-link {
  margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--green3);
}
.me-link .cm-ico { width: 14px; height: 14px; transition: transform .2s; }
.me-link:hover .cm-ico { transform: translateX(3px); }

.me-trophies + .me-trophies { margin-top: 16px; }
.me-trophies__title { display: block; margin-bottom: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.me-trophies__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }

@media (max-width: 900px) {
  .me-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .me-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .me-hero { flex-direction: column; text-align: center; padding: 22px 18px; gap: 16px; }
  .me-hero__id { align-items: center; }
  .me-hero__name, .me-hero__chips { justify-content: center; }
  .me-hero__name h1 { font-size: 23px; }
  .me-nameform { justify-content: center; }
  .me-nameform input { width: 100%; }
  .me-stat { padding: 13px; gap: 10px; min-height: 0; }
  .me-stat .cm-tile { width: 36px; height: 36px; }
  .me-stat__val { font-size: 20px; }
  .me-stat__detail { white-space: normal; }
}
@media (max-width: 360px) {
  .me-stat { padding: 12px 10px; gap: 8px; }
  .me-stat .cm-tile { width: 30px; height: 30px; border-radius: 10px; }
  .me-stat .cm-tile .cm-ico { width: 17px; height: 17px; }
  .me-stat__label { font-size: 11.5px; overflow-wrap: anywhere; }
}

.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; }
.stat__icon { font-size: 18px; line-height: 1; }
.stat__value { font-size: 24px; font-weight: 800; letter-spacing: -.8px; color: var(--green3); }
.stat__label { font-size: 13px; font-weight: 700; }
.stat__sub { font-size: 11.5px; color: var(--muted-2); }


.modal__card--welcome { max-width: 400px; text-align: center; }
.welcome__mark { font-size: 40px; line-height: 1; }
.modal__card--welcome h2 { margin: 0; font-size: 20px; letter-spacing: -.4px; }


@media (max-width: 760px) {
  .catsbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .search { width: 100%; }
  .search__input { width: 100%; }
  .sk-strip { grid-template-columns: repeat(8, 1fr); }
}

/* ── Verrou de la Communauté ────────────────────────────────────────────────
   L'onglet reste cliquable mais s'affiche grisé, cadenas à l'appui. Derrière
   la fenêtre d'entrée, la page est remplacée par des blocs neutres et floutés :
   on suggère la structure sans inventer de fausses discussions.
   ------------------------------------------------------------------------ */
.nav__item.is-locked { opacity: .55; }
.nav__item.is-locked:not(.is-active) { color: var(--muted); }
.nav__item.is-locked:not(.is-active):hover { color: var(--text); }
.nav__item.is-locked .nav__label::after {
  /* Un petit cadenas dessiné (pas d'émoji), à la couleur du texte. */
  content: ''; display: inline-block; width: 10px; height: 10px; margin-left: 5px; vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tabbar__item.is-locked { opacity: .55; }
.tabbar__item.is-locked:not(.is-active) { color: var(--teal-deep); }
/* Sur le menu du bas, le cadenas se pose en pastille sur l'icône. */
.tabbar__item.is-locked::before {
  content: ''; position: absolute; top: 9px; left: calc(50% + 5px); width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / 8px 8px no-repeat;
  box-shadow: 0 0 0 2px #fff;
}

.locked { filter: blur(7px); opacity: .5; pointer-events: none; user-select: none; }
.locked__cats { display: flex; gap: 10px; margin-bottom: 26px; }
.locked__cat { height: 30px; width: 96px; border-radius: 999px; background: rgba(21, 64, 50, .12); }
.locked__head { max-width: 520px; margin-bottom: 26px; }
.locked__line { height: 14px; border-radius: 7px; background: rgba(21, 64, 50, .12); margin-bottom: 12px; }
.locked__line--sm { width: 110px; height: 20px; }
.locked__line--lg { width: 320px; height: 34px; }
.locked__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.locked__main { display: flex; flex-direction: column; gap: 14px; }
.locked__card { height: 96px; border-radius: var(--radius); background: rgba(255, 255, 255, .7); border: 1px solid var(--border); }
.locked__card--tall { height: 430px; }
.locked__live { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.locked__banniere { height: 220px; margin-bottom: 18px; }
.locked__trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* La Forge du Budget verrouillée : deux tuiles, puis deux grandes cartes, côte à côte. */
.locked__duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.locked__duo .locked__card--tall { height: 380px; }
@media (max-width: 640px) { .locked__duo { grid-template-columns: minmax(0, 1fr); } }
.locked__card--carte { height: 260px; }
/* Les lignes du tableau du Coffre, sous cadenas. */
.locked__card--ligne { height: 64px; }
/* La roadmap : un grand paysage, ciel et prairie, flouté. */
.locked__carte { height: min(560px, 62vh); background: linear-gradient(180deg, #BFE7F2 0%, #DDF3E4 52%, #A6D99A 100%); border: 0; }
.locked__ecran { height: auto; aspect-ratio: 16 / 9; }
.locked__chat { height: auto; }
@media (max-width: 760px) {
  .locked__live { grid-template-columns: minmax(0, 1fr); }
  .locked__chat { height: 260px; }
}

/* Fenêtre d'entrée : le fond est assombri ET flouté, l'app reste devinable. */
body.has-modal { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background: rgba(21, 37, 32, .38);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: modal-in .45s ease both;
  overflow: auto;
}
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
/* Fermeture : un fondu court, la carte se rétracte un peu. */
.modal.is-closing { animation: modal-out .22s ease forwards; }
.modal.is-closing .modal__card { animation: bulle-out .22s ease forwards; }
@keyframes modal-out { to { opacity: 0; } }
@keyframes bulle-out { to { opacity: 0; transform: scale(.94); } }
.modal__card {
  width: 100%; max-width: 470px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 30px 70px -30px rgba(21, 64, 50, .5);
  /* Apparition en bulle : la carte part petite, gonfle doucement, dépasse à
     peine sa taille, puis se pose. */
  transform-origin: 50% 60%;
  animation: bulle-in .62s cubic-bezier(.2, 1.22, .36, 1) both;
}
@keyframes bulle-in {
  0%   { opacity: 0; transform: translateY(12px) scale(.84); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .modal, .modal__card, .modal.is-closing, .modal.is-closing .modal__card { animation-duration: .01ms; }
}
.modal__card h2 { margin: 0; font-size: 21px; letter-spacing: -.5px; }
.modal__lead { margin: -6px 0 4px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal__card--wide { max-width: 620px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal__close {
  border: 0; background: transparent; cursor: pointer; font-size: 16px;
  color: var(--muted); padding: 4px 6px; line-height: 1;
}
.modal__close:hover { color: var(--text); }
/* Les volets gardent une hauteur plancher : le bouton ne saute pas d'un
   volet à l'autre. */
.modal__stage { min-height: 208px; }
.modal__dots { display: flex; gap: 6px; }
.modal__dot {
  width: 22px; height: 4px; border-radius: 2px;
  background: rgba(21, 64, 50, .13); transition: background .3s ease;
}
.modal__dot.is-done { background: var(--green2); }
.modal__dot.is-active { background: var(--green); }
.modal__nav { display: flex; align-items: center; gap: 10px; }
.modal__note { margin: 0; font-size: 11.5px; color: var(--muted-2); }
.req { color: var(--green); font-weight: 800; }

@media (max-width: 480px) {
  .modal__grid { grid-template-columns: 1fr; }
  .modal__card { padding: 22px; }
}

/* ── Débloque l'intégralité du campus ───────────────────────────────────────
   À gauche, sur le vert Seqooia, le logo en blanc et tout ce que l'accès
   débloque (un titre, une phrase d'une ligne) ; à droite, le titre et sa
   phrase alignés, l'email en gris et sans cadre (il ne se change pas), puis
   le numéro dans un cadre qui pulse doucement, le mot de passe, le bouton, et
   l'appel bienveillant en une note. Les champs ont la taille du texte de gauche.
   ------------------------------------------------------------------------ */
.db {
  position: relative; width: 100%; max-width: 940px;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  border-radius: 26px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 90px -36px rgba(10, 40, 30, .65), 0 0 0 1px rgba(255, 255, 255, .6);
  transform-origin: 50% 60%;
  animation: bulle-in .62s cubic-bezier(.2, 1.22, .36, 1) both;
}
.modal.is-closing .db { animation: bulle-out .22s ease forwards; }
.db__valeur {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 26px;
  color: #fff;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .22), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(182, 255, 59, .18), transparent 60%),
    linear-gradient(150deg, #2BC48A 0%, #1D9E75 48%, #0F5F4A 100%);
}
/* Le logo Seqooia Campus, en blanc (le même que l'en-tête). */
.db__logo { width: 120px; height: 35px; background: #fff; }
.db__valeur-titre { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.db__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.db__espace {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .3s cubic-bezier(.3, 1.3, .5, 1);
}
/* Rien n'est éclairé d'avance : seul l'espace sous la souris prend la lumière. */
@media (hover: hover) {
  .db__espace:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45); transform: translateX(3px); }
}
.db__ico {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  color: #0F5F4A; background: #fff; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5);
}
.db__ico .cm-ico { width: 19px; height: 19px; }
.db__espace-txt { display: grid; gap: 1px; min-width: 0; }
.db__espace-txt strong { font-size: 14.5px; line-height: 1.25; }
.db__espace-txt span { font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Les trois promesses : plus bas, réparties sur toute la largeur de la liste,
   alignées sur ses bords. */
.db__atouts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; margin-top: auto; padding-top: 16px; }
/* L'icône seule, sans pastille, dans le vert clair du coin haut gauche du panneau, à plat. */
.db__atout { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .95); }
.db__atout-ico { flex: none; display: grid; place-items: center; color: #5CE0B0; }
.db__atout-ico .cm-ico { width: 16px; height: 16px; }

/* Centré en hauteur : la colonne de gauche, plus longue, donne la hauteur de la fenêtre. */
.db__form { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 28px 30px 22px; }
.db__fermer {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 0; cursor: pointer; color: var(--muted); background: rgba(21, 64, 50, .05);
  transition: background-color .2s ease, color .2s ease, transform .3s cubic-bezier(.3, 1.4, .5, 1);
}
.db__fermer:hover { color: var(--text); background: rgba(21, 64, 50, .1); transform: rotate(90deg); }
.db__fermer:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.db__fermer .cm-ico { width: 16px; height: 16px; }
/* Le titre et sa phrase, alignés à gauche, sur le même bord que les champs (la croix reste à droite). */
.db__titre { margin: 0; padding-right: 38px; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -.5px; color: var(--text); text-wrap: balance; }
.db__sous { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
/* Chaque champ : son intitulé puis son cadre ; le même écart entre tous. */
/* Une seule colonne, jamais plus large que la fenêtre : sur un petit iPhone, le numéro se resserre au lieu de déborder. */
.db__groupe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.db__groupe + .db__groupe { margin-top: 12px; }
.db__label { font-size: 12.5px; font-weight: 800; color: var(--text); }

/* Le numéro, d'un seul tenant : le drapeau et l'indicatif, un filet, le numéro.
   Le cadre pulse doucement pour attirer l'œil ; au clavier, il se fige en vert. */
.db-tel {
  display: flex; align-items: stretch; height: 44px; border-radius: 12px; background: #fff;
  border: 2px solid rgba(43, 196, 138, .55);
  animation: db-pulse 1.8s ease-in-out infinite;
  transition: border-color .2s ease, box-shadow .2s ease;
}
@keyframes db-pulse {
  0%, 100% { border-color: rgba(43, 196, 138, .45); box-shadow: 0 0 0 0 rgba(43, 196, 138, 0); }
  50% { border-color: #2BC48A; box-shadow: 0 0 0 5px rgba(43, 196, 138, .16); }
}
.db-tel:focus-within { animation: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(43, 196, 138, .2); }
.db:focus { outline: none; }
.db-tel__pays {
  position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 9px 0 12px;
  border-right: 1px solid rgba(21, 64, 50, .12); cursor: pointer;
}
.db-tel__drapeau { display: grid; place-items: center; }
.db-tel__svg { display: block; width: 21px; height: 14px; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgba(21, 64, 50, .14); }
.db-tel__svg svg { display: block; width: 100%; height: 100%; }
.db-tel__emoji { font-size: 17px; line-height: 1; }
.db-tel__indicatif { font-size: 14.5px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.db-tel__chevron { display: grid; color: var(--muted-2); }
.db-tel__chevron svg { width: 13px; height: 13px; }
/* Le vrai menu des pays, invisible, posé sur toute la zone : un clic l'ouvre. */
.db-tel__select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
/* Le style commun des champs (input[type=tel]) pèse plus lourd qu'une seule classe :
   sans « .db-tel » devant, il redessinait un cadre arrondi dans le cadre, et son halo au focus. */
.db-tel .db-tel__numero,
.db-tel .db-tel__numero:focus {
  flex: 1; min-width: 0; width: auto; height: 100%; padding: 0 12px;
  border: 0; border-radius: 0; outline: 0; box-shadow: none; background: transparent;
  font-family: var(--font); font-size: 14.5px; font-weight: 600; letter-spacing: .3px; color: var(--text);
}
.db-tel__numero::placeholder { color: #A9B6B1; font-weight: 500; }
/* Le mot de passe : le même cadre que le numéro, sans son battement. */
.db-champ {
  display: flex; align-items: center; height: 44px; border-radius: 12px; background: #fff;
  border: 2px solid rgba(21, 64, 50, .14); transition: border-color .2s ease, box-shadow .2s ease;
}
.db-champ:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(43, 196, 138, .2); }
.db-champ .db-champ__input,
.db-champ .db-champ__input:focus {
  flex: 1; min-width: 0; width: auto; height: 100%; padding: 0 12px;
  border: 0; border-radius: 0; outline: 0; box-shadow: none; background: transparent;
  font-family: var(--font); font-size: 14.5px; font-weight: 600; color: var(--text);
}
.db-champ__input::placeholder { color: #A9B6B1; font-weight: 500; }
/* L'email du compte : une ligne grise sous la phrase, sans cadre ; il ne se change pas.
   Le champ (lecture seule) ne prend pas le doigt : pas de zoom de l'iPhone dessus. */
.db-email { display: flex; align-items: center; gap: 8px; margin: 12px 0 16px; color: var(--muted-2); cursor: default; }
.db-email .cm-ico { flex: none; width: 15px; height: 15px; }
.db-email .db-email__input,
.db-email .db-email__input:focus {
  flex: 1; min-width: 0; width: auto; height: 20px; padding: 0; pointer-events: none;
  border: 0; border-radius: 0; outline: 0; box-shadow: none; background: transparent;
  font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--muted); text-overflow: ellipsis;
}
/* Sans la ligne de l'email (rare), les champs gardent leur écart sous la phrase. */
.db__sous + .db__groupe { margin-top: 16px; }
.db-champ__voir { flex: none; display: grid; place-items: center; width: 42px; height: 100%; border: 0; background: none; cursor: pointer; color: var(--muted); }
.db-champ__voir:hover { color: var(--text); }
.db-champ__voir:focus-visible { outline: 2px solid var(--green); outline-offset: -6px; border-radius: 12px; }
.db-champ__voir .cm-ico { width: 18px; height: 18px; }
.db__erreur { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--red); }
.db__bouton {
  display: flex; align-items: center; justify-content: center; gap: 9px; height: 46px; margin-top: 16px;
  border: 0; border-radius: 12px; cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 800; color: #fff;
  background: var(--grad); box-shadow: 0 14px 28px -14px rgba(29, 158, 117, .9);
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s ease, opacity .2s ease;
}
.db__bouton:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(29, 158, 117, .95); }
.db__bouton:not(:disabled):hover .db__fleche svg { transform: translateX(4px); }
.db__bouton:disabled { cursor: default; opacity: .55; box-shadow: none; }
.db.is-debloque .db__bouton { opacity: 1; background: linear-gradient(135deg, #3BF59B, #1D9E75); }
.db__bouton .cm-ico { width: 17px; height: 17px; }
.db__fleche svg { display: block; width: 17px; height: 17px; transition: transform .3s cubic-bezier(.34, 1.4, .5, 1); }
.db__bouton:focus-visible { outline: 3px solid #B6FF3B; outline-offset: 3px; }
/* L'appel, en une note légère sous le bouton. */
.db__appel { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 9px 12px; border-radius: 12px; background: rgba(43, 196, 138, .07); border: 1px solid rgba(29, 158, 117, .13); }
.db__appel-ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--green3); background: rgba(43, 196, 138, .16); }
.db__appel-ico .cm-ico { width: 13px; height: 13px; }
.db__appel p { margin: 0; font-size: 12px; line-height: 1.5; color: #3F5049; }
@media (prefers-reduced-motion: reduce) {
  .db-tel { animation: none; }
  .db, .modal.is-closing .db { animation-duration: .01ms; }
}
/* Sur une tablette, la colonne de gauche est trop étroite pour une ligne : la phrase passe à la suivante plutôt que d'être coupée. */
@media (max-width: 1000px) { .db__espace-txt span { white-space: normal; } }
/* Tablette, téléphone : la fenêtre s'empile — ce qu'on débloque en pastilles, puis le numéro. */
@media (max-width: 760px) {
  .modal--deblocage { padding: 14px; place-items: start center; }
  .db { grid-template-columns: minmax(0, 1fr); max-width: 460px; border-radius: 22px; }
  .db__valeur { gap: 10px; padding: 18px 18px 16px; }
  .db__valeur-titre { font-size: 17px; }
  .db__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .db__espace { gap: 8px; padding: 7px 9px; border-radius: 12px; }
  .db__espace:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .db__ico { width: 28px; height: 28px; border-radius: 9px; }
  .db__ico .cm-ico { width: 15px; height: 15px; }
  .db__espace-txt strong { font-size: 12.5px; }
  .db__espace-txt span, .db__atouts { display: none; }
  .db__form { padding: 20px 18px 18px; }
  .db__logo { width: 104px; height: 30px; }
  .db__titre { padding-right: 34px; font-size: 19px; }
  .db__sous { margin-top: 6px; font-size: 13px; }
  .db-email { margin: 10px 0 14px; }
  .db-tel, .db-champ { height: 46px; }
  /* 16 px au doigt : en dessous, l'iPhone zoome sur le champ. */
  .db-tel .db-tel__numero, .db-tel .db-tel__numero:focus,
  .db-champ .db-champ__input, .db-champ .db-champ__input:focus { font-size: 16px; }
  .db__appel { margin-top: 12px; }
}
/* Petits téléphones (iPhone SE) : les pastilles se resserrent un peu, « La communauté » tient dans la sienne. */
@media (max-width: 360px) {
  .db__espace { gap: 7px; padding: 7px 8px; }
  .db__ico { width: 24px; height: 24px; border-radius: 8px; }
  .db__ico .cm-ico { width: 13px; height: 13px; }
  .db__espace-txt strong { font-size: 12px; }
}

/* ── Communauté ─────────────────────────────────────────────────────────── */
/* Sous-onglets : ils filtrent tout l'écran, donc ils se lisent avant le titre.
   Défilement horizontal en petit écran plutôt qu'un retour à la ligne. */
/* Thématiques et recherche sur une même ligne : la liste défile si elle
   déborde, la recherche garde sa place à droite. */
.catsbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cats {
  display: flex; gap: 4px; padding-bottom: 2px;
  flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none;
  /* Un dégradé de fin signale que la liste défile, plutôt que de donner
     l'impression que la dernière thématique est coupée. */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  padding: 8px 11px; border-radius: 999px; white-space: nowrap; flex: none;
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--teal-deep);
  border: 1px solid transparent; background: transparent;
  transition: all .2s cubic-bezier(.2, .8, .2, 1);
}
.cat:hover { background: rgba(29, 158, 117, .08); color: var(--green); }
.cat.is-active {
  background: linear-gradient(135deg, rgba(43, 196, 138, .16), rgba(29, 158, 117, .08));
  border-color: rgba(29, 158, 117, .28);
  color: var(--green3); font-weight: 700;
}
.cat__count { opacity: .5; margin-left: 5px; font-weight: 500; }

.thread {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 17px 19px;
  background: var(--card); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .65);
  outline: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, outline-color .28s;
}
.thread:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -18px rgba(29, 158, 117, .35);
  outline-color: rgba(29, 158, 117, .5);
}
.thread__title { font-weight: 700; font-size: 15.5px; margin: 8px 0 6px; line-height: 1.45; letter-spacing: -.2px; }
.thread__excerpt { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-bottom: 10px; }
.thread__meta { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted-2); flex-wrap: wrap; }

.author { display: inline-flex; align-items: center; gap: 7px; }
.author__pseudo { font-weight: 700; color: var(--text); font-size: 13px; }
.grade {
  font-family: var(--pixel); font-size: 7.5px; padding: 4px 8px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .15), rgba(29, 158, 117, .08));
  border: 1px solid rgba(29, 158, 117, .25); color: var(--green);
  white-space: nowrap;
}
.grade--team { background: var(--tint); border-color: rgba(13, 148, 136, .3); color: var(--teal-br); }

.badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 8px; }
.badge--pending { background: rgba(201, 168, 76, .14); color: #8A6D1F; border: 1px solid rgba(201, 168, 76, .3); }
.badge--hidden  { background: rgba(231, 76, 60, .1); color: #A93226; border: 1px solid rgba(231, 76, 60, .25); }
.badge--helpful { background: linear-gradient(135deg, rgba(43, 196, 138, .16), rgba(29, 158, 117, .08)); color: var(--green); border: 1px solid rgba(29, 158, 117, .28); }

.message {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 17px 19px; margin-bottom: 10px;
  background: var(--card); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .65);
  outline: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.message--auto {
  background: linear-gradient(135deg, rgba(43, 196, 138, .10), rgba(255, 255, 255, .8));
  outline-color: rgba(29, 158, 117, .3);
}
.message__body { margin-top: 8px; white-space: pre-wrap; line-height: 1.7; font-size: 14.5px; color: #3F5049; }
.message__body a { color: var(--green); text-decoration: underline; font-weight: 600; }
.message__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ── Communauté : deux colonnes + podium ────────────────────────────────── */
.comm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.comm-main { min-width: 0; }

.lb__title { font-weight: 700; font-size: 14.5px; letter-spacing: -.2px; }

/* Podium — transposition du composant LeaderboardPodium. */
.lp-podium { display: grid; gap: 10px; align-items: end; margin-top: 18px; }
.lp-col { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }

.lp-figure { position: relative; margin-bottom: 8px; }
.lp-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm);
}
.lp-avatar--initial {
  display: grid; place-items: center;
  background: var(--gradTeal); color: #fff; font-weight: 700; font-size: 20px;
}
.lp-col--1 .lp-avatar { width: 62px; height: 62px; font-size: 24px; }
.lp-col--1 .lp-avatar--initial { background: var(--grad); }

.lp-crown {
  position: absolute; right: -4px; bottom: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-sm);
}
.lp-crown svg { width: 13px; height: 13px; }
.lp-col--1 .lp-crown { color: #C9A84C; }
.lp-col--2 .lp-crown { color: #A8B4BC; }
.lp-col--3 .lp-crown { color: #C08552; }

.lp-name {
  margin-top: 2px; font-size: 12.5px; font-weight: 700; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lp-value { font-family: var(--pixel); font-size: 7px; color: var(--green); margin-top: 4px; }

.lp-block {
  width: 100%; margin-top: 10px; border-radius: 10px 10px 0 0;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 7px;
  font-weight: 800; font-size: 14px;
}
.lp-col--1 .lp-block { height: 76px; background: rgba(201, 168, 76, .30); color: #8A6D1F; }
.lp-col--2 .lp-block { height: 56px; background: rgba(168, 180, 188, .32); color: #5A6B75; }
.lp-col--3 .lp-block { height: 44px; background: rgba(192, 133, 82, .28); color: #8A5A33; }

.lb__avatar {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none;
}
.lb__avatar--initial {
  display: grid; place-items: center;
  background: var(--gradTeal); color: #fff; font-size: 10px; font-weight: 700;
}

.lb__list { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.lb__row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12.5px; }
.lb__rank { width: 18px; color: var(--muted-2); font-weight: 700; font-size: 11.5px; }
.lb__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.lb__pts { color: var(--muted); font-size: 11.5px; white-space: nowrap; }

@media (max-width: 980px) {
  .comm-layout { grid-template-columns: 1fr; }
  .comm-side { position: static; top: auto !important; }
}

/* ── Formulaires ────────────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
input[type=text], input[type=tel], input[type=search], textarea, select {
  width: 100%; padding: 12px 15px;
  background: rgba(255, 255, 255, .9); color: var(--text);
  border: 1px solid rgba(21, 64, 50, .13); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
/* Le halo de focus ne concerne que les champs encadrés : sur un input[range],
   il dessinerait un second rectangle par-dessus la barre. */
input:not([type=range]):focus, textarea:focus, select:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(43, 196, 138, .18);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.65; }

.notice { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 13.5px; line-height: 1.6; border: 1px solid var(--border); background: rgba(255, 255, 255, .8); }
.notice--warn { border-color: rgba(201, 168, 76, .35); background: rgba(201, 168, 76, .08); color: #7A5F16; }
.notice--error { border-color: rgba(231, 76, 60, .35); background: rgba(231, 76, 60, .07); color: #A93226; }

/* ── Espace équipe ──────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
.table tbody tr:hover { background: rgba(29, 158, 117, .04); }
.table__scroll { overflow-x: auto; }
.tier { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 8px; }
.tier--chaud { background: rgba(231, 76, 60, .1); color: #A93226; border: 1px solid rgba(231, 76, 60, .25); }
.tier--tiède { background: rgba(201, 168, 76, .14); color: #8A6D1F; border: 1px solid rgba(201, 168, 76, .3); }
.tier--froid { background: rgba(100, 116, 139, .1); color: var(--muted); border: 1px solid rgba(100, 116, 139, .2); }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat {
  padding: 17px; background: var(--card); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .65); outline: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.stat__value { font-size: 25px; font-weight: 800; letter-spacing: -.7px; color: var(--teal-deep); }
.stat__label { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ── Profil d'investisseur (page d'atterrissage) ────────────────────────── */
/* Écran d'immersion : aucun en-tête, aucun onglet, aucun bouton d'appel.
   Rien qui détourne de la première étape. */
.onboarding .topbar,
.onboarding .tabbar { display: none; }
.onboarding .view { max-width: 1240px; padding-top: 40px; padding-bottom: 60px; }

/* Le parcours occupe l'écran entier et se centre verticalement, logo compris :
   sur un portable comme sur un grand écran, le bloc est posé au milieu. */
.pf-page {
  min-height: calc(100dvh - 60px);
  display: flex; flex-direction: column; justify-content: center;
}
/* Une marge horizontale « auto » sur un enfant flex annule son étirement :
   sans cette largeur explicite, l'en-tête et la jauge se réduiraient à leur
   contenu au lieu de tenir les 660 px. */
.pf-page > * { width: 100%; }
/* Le parcours se centre sur la hauteur utile : mêmes marges haut et bas. */
body.onboarding .view { padding-top: 30px; padding-bottom: 30px; }
/* La trame animée passe derrière le pied de page, jamais devant. */
body.onboarding .seq-legal-in { position: relative; }
.pf-brand { display: flex; justify-content: center; margin-bottom: 26px; }
.pf-brand .logo-img { width: 130px; height: 38px; background: var(--gradTeal); }

.pf-head { text-align: center; max-width: 660px; margin: 0 auto 22px; }
.pf-head h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.8px; }
.pf-head p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.pf-gauge { max-width: 660px; margin: 0 auto 24px; }
.pf-gauge__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pf-gauge__step {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted-2);
}
.pf-gauge__tag { font-size: 12px; font-weight: 700; color: var(--green); }
.pf-gauge__bar { height: 7px; border-radius: 4px; background: rgba(21, 64, 50, .1); overflow: hidden; }
.pf-gauge__fill {
  height: 100%; width: 0; border-radius: 4px; background: var(--grad);
  box-shadow: 0 0 8px rgba(43, 196, 138, .6);
  transition: width .55s cubic-bezier(.22, .85, .25, 1);
}

/* La question, large, et à sa droite le récapitulatif du profil. La carte
   garde la même hauteur d'une question à l'autre (celle de la plus haute,
   sans vide en dessous) : rien ne saute. Le récapitulatif prend exactement
   sa hauteur — les deux boîtes finissent ensemble. */
.pf-layout {
  display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 320px);
  gap: 26px; align-items: stretch; justify-content: center;
}
.pf-form { display: flex; flex-direction: column; min-height: 400px; padding: 0; overflow: hidden; container: pf / inline-size; }
/* L'en-tête de la question, comme celui des fiches de trophées et de la carte
   de Sonny : un dégradé Seqooia — vert, vert-jaune, bleu-vert — sous
   l'icône, l'énoncé et sa précision. */
.pf-qhead {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 26px 20px;
  background:
    radial-gradient(70% 120% at 12% 0%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(112deg, rgba(43, 196, 138, .34) 0%, rgba(178, 222, 86, .3) 50%, rgba(30, 168, 182, .3) 100%);
  border-bottom: 1px solid rgba(21, 64, 50, .07);
}
.pf-qhead__icon { flex: none; width: 50px; height: 50px; border-radius: 15px; background: #fff; box-shadow: 0 10px 22px -12px rgba(15, 60, 45, .55), 0 0 0 1px rgba(255, 255, 255, .9); }
.pf-qhead__icon .cm-ico { width: 23px; height: 23px; }
.pf-qhead__txt { min-width: 0; }
.pf-question { margin: 0; font-size: 19px; letter-spacing: -.35px; line-height: 1.3; }
.pf-hint { margin: 4px 0 0; color: #4E6560; font-size: 13px; line-height: 1.5; }
/* Sous l'en-tête : la réponse, puis Retour / Continuer, comme avant. */
.pf-corps { flex: 1; display: flex; flex-direction: column; padding: 22px 26px 20px; }
.pf-stage { flex: 1; }
.pf-nav { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
/* Une nouvelle question arrive en glissant, du côté où l'on va. */
.pf-qhead.is-avant > *, .pf-stage.is-avant > * { animation: pf-avant .42s cubic-bezier(.2, .9, .3, 1) backwards; }
.pf-qhead.is-arriere > *, .pf-stage.is-arriere > * { animation: pf-arriere .42s cubic-bezier(.2, .9, .3, 1) backwards; }
.pf-qhead > :nth-child(2), .pf-stage > * { animation-delay: .04s; }
@keyframes pf-avant { from { opacity: 0; transform: translateX(14px); } }
@keyframes pf-arriere { from { opacity: 0; transform: translateX(-14px); } }

/* ── Le récapitulatif : une boîte par réponse, une petite coche au trait
   quand elle est donnée, et une jauge qui descend le long des coches. ── */
.pf-recap {
  display: flex; flex-direction: column;
  padding: 20px 20px 18px; border-radius: 20px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(21, 64, 50, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pf-recap__tete { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.pf-recap__tete > span:first-child { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.pf-recap__compte { font-size: 11.5px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
/* Les boîtes se suivent en haut du récapitulatif ; tout en bas, la durée (sur ordinateur, où il a la hauteur de la question). */
.pf-recap__liste { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pf-recap__note { display: flex; align-items: center; gap: 8px; margin: auto 0 0; padding-top: 18px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pf-recap__note .cm-ico { width: 15px; height: 15px; flex: none; color: var(--green); }
/* Le rail passe derrière les coches ; la jauge le remplit de haut en bas. */
.pf-recap__rail { position: absolute; left: 9.5px; top: 12px; bottom: 12px; width: 2px; margin-left: -1px; border-radius: 2px; background: rgba(21, 64, 50, .08); }
.pf-recap__rempli {
  position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: inherit;
  background: linear-gradient(180deg, #2BC48A, #9BD456 55%, #20A8B2);
  transition: height .7s cubic-bezier(.22, .9, .3, 1);
}
.pf-recap__item { position: relative; display: flex; align-items: center; gap: 11px; }
.pf-recap__coche {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%;
  background: #fff; border: 1.5px solid rgba(21, 64, 50, .16); color: var(--green);
  transition: border-color .35s ease, transform .35s cubic-bezier(.3, 1.5, .5, 1);
}
.pf-recap__coche svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s ease .1s; }
/* La boîte est un bouton : celle d'une étape déjà vue y ramène. Au survol,
   elle s'éclaire, glisse d'un cheveu et montre un petit crayon. */
.pf-recap__boite {
  position: relative; flex: 1; min-width: 0; display: grid; gap: 2px; padding: 10px 30px 11px 13px; border-radius: 12px;
  border: 1px solid rgba(21, 64, 50, .07); background: rgba(255, 255, 255, .55);
  font: inherit; color: inherit; text-align: left; cursor: default;
  transition: border-color .35s ease, background-color .35s ease, box-shadow .35s ease, transform .35s cubic-bezier(.22, .9, .3, 1);
}
.pf-recap__boite:not(:disabled) { cursor: pointer; }
.pf-recap__boite:not(:disabled):hover { border-color: rgba(29, 158, 117, .3); background: #fff; box-shadow: 0 8px 18px -14px rgba(15, 60, 45, .55); transform: translateX(3px); }
.pf-recap__boite:not(:disabled):active { transform: translateX(3px) scale(.985); }
.pf-recap__boite:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.pf-recap__modif { position: absolute; right: 10px; top: 50%; display: grid; color: var(--green); opacity: 0; transform: translate(-4px, -50%); transition: opacity .25s ease, transform .35s cubic-bezier(.22, .9, .3, 1); }
.pf-recap__modif .cm-ico { width: 13px; height: 13px; }
.pf-recap__boite:not(:disabled):hover .pf-recap__modif, .pf-recap__boite:not(:disabled):focus-visible .pf-recap__modif { opacity: .9; transform: translate(0, -50%); }
/* L'étiquette en petit, la réponse dessous en écriture fine : pas de gras sur gras. */
.pf-recap__label { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--muted-2); }
.pf-recap__valeur { font-size: 13.5px; font-weight: 400; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-recap__valeur.is-vide { color: rgba(21, 64, 50, .22); }
.pf-recap__valeur.is-neuf { animation: pf-neuf .45s ease; }
@keyframes pf-neuf { from { opacity: 0; transform: translateY(3px); } }
/* La question en cours : sa boîte s'éclaire, sa coche attend. */
.pf-recap__item.is-ici .pf-recap__boite { border-color: rgba(29, 158, 117, .32); background: #fff; box-shadow: 0 6px 16px -12px rgba(15, 60, 45, .5); }
.pf-recap__item.is-ici .pf-recap__coche { border-color: var(--green2); animation: pf-attend 1.8s ease-in-out infinite; }
@keyframes pf-attend { 50% { box-shadow: 0 0 0 4px rgba(43, 196, 138, .14); } }
/* Répondu : la coche se dessine au trait — jamais pleine. */
.pf-recap__item.is-fait .pf-recap__coche { border-color: rgba(29, 158, 117, .55); animation: none; }
.pf-recap__item.is-fait .pf-recap__coche svg { stroke-dashoffset: 0; }
.pf-recap__item.is-fait .pf-recap__label { color: var(--green3); }
.pf-pseudo { display: flex; align-items: center; gap: 10px; }
.pf-pseudo__state { font-size: 12px; font-weight: 700; color: var(--muted-2); white-space: nowrap; }
.pf-pseudo__state.is-ok { color: var(--green); }
.pf-pseudo__state.is-ko { color: var(--red); }

/* Cartes à choisir : une icône, la réponse, une phrase. Pas de fond coloré,
   juste un cadre net ; la carte choisie prend le vert et sa coche. */
.pf-cards { display: flex; flex-direction: column; gap: 9px; }
.pf-card {
  position: relative; display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1px solid rgba(21, 64, 50, .13); background: rgba(255, 255, 255, .85);
  font-family: var(--font); color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .2s cubic-bezier(.3, 1.4, .5, 1), background .2s;
}
.pf-card:hover { border-color: rgba(29, 158, 117, .5); box-shadow: 0 8px 20px -12px rgba(21, 64, 50, .45); transform: translateY(-2px); }
.pf-card:active { transform: translateY(0) scale(.99); }
.pf-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.pf-card__icon {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .15), rgba(29, 158, 117, .05));
  border: 1px solid rgba(29, 158, 117, .18);
  transition: background .2s, border-color .2s, transform .3s cubic-bezier(.3, 1.4, .5, 1);
}
.pf-card__icon .cm-ico { width: 20px; height: 20px; }
.pf-card:hover .pf-card__icon { transform: rotate(-6deg) scale(1.06); }
.pf-card__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-card__txt strong { font-size: 14px; line-height: 1.3; }
.pf-card__txt span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.pf-card__check {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 1.5px solid rgba(21, 64, 50, .18); color: transparent; transition: all .2s;
}
.pf-card__check .cm-ico { width: 22px; height: 22px; }
.pf-card.is-picked { border-color: var(--green); background: linear-gradient(135deg, rgba(43, 196, 138, .1), rgba(29, 158, 117, .04)); }
.pf-card.is-picked .pf-card__icon { background: var(--grad); border-color: transparent; color: #fff; }
.pf-card.is-picked .pf-card__check { border-color: transparent; color: var(--green); }
.pf-card.is-picked .pf-card__check .cm-ico svg { fill: rgba(43, 196, 138, .15); }

/* Curseurs : la valeur en grand, modifiable directement ; la règle ; puis
   quelques montants tout prêts. */
/* Les deux objectifs côte à côte : tout se voit, rien ne défile. */
.pf-duals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@container pf (max-width: 560px) { .pf-duals { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.pf-slider--sub { padding: 10px 13px 12px; border-radius: 14px; border: 1px solid rgba(21, 64, 50, .1); background: rgba(255, 255, 255, .6); }
.pf-slider__label { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.pf-slider__value {
  display: inline-flex; align-items: baseline; gap: 6px; margin-bottom: 8px;
  padding: 2px 10px 2px 2px; border-radius: 10px; cursor: text;
  border-bottom: 2px dashed rgba(29, 158, 117, .3); transition: border-color .2s;
}
.pf-slider__value:hover, .pf-slider__value:focus-within { border-bottom-color: var(--green); }
.pf-slider input.pf-slider__input {
  border: 0; background: transparent; padding: 0; margin: 0; min-width: 2ch;
  font: 800 28px var(--font); letter-spacing: -.8px; color: var(--green3); text-align: left;
}
.pf-slider__input:focus { outline: none; box-shadow: none !important; }
.pf-slider--sub input.pf-slider__input { font-size: 22px; }
.pf-slider--sub .pf-slider__value { margin-bottom: 4px; }
.pf-slider__unit { font-size: 14px; font-weight: 700; color: var(--muted); }
.pf-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pf-preset {
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(21, 64, 50, .13); background: rgba(255, 255, 255, .85);
  font: 700 11.5px var(--font); color: var(--muted); transition: all .2s;
}
.pf-preset:hover { border-color: rgba(29, 158, 117, .5); color: var(--green3); }
.pf-preset.is-on { background: var(--grad); border-color: transparent; color: #fff; }
/* Piste dessinée à la main : le rendu natif sortait noir, et WebKit ne sait pas
   colorer la portion parcourue. On peint donc la piste avec un dégradé arrêté
   à `--fill`, que le JS met à jour à chaque déplacement. */
.pf-slider input[type=range] {
  width: 100%; height: 22px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
  --fill: 0%;
}
.pf-slider input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, #1D9E75 0 var(--fill), rgba(21, 64, 50, .12) var(--fill) 100%);
}
.pf-slider input[type=range]::-moz-range-track {
  height: 6px; border-radius: 4px; background: rgba(21, 64, 50, .12);
}
.pf-slider input[type=range]::-moz-range-progress {
  height: 6px; border-radius: 4px; background: #1D9E75;
}
.pf-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin-top: -7px; border-radius: 50%;
  background: var(--grad); border: 2px solid #fff;
  box-shadow: 0 3px 10px -2px rgba(29, 158, 117, .6);
}
.pf-slider input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); border: 2px solid #fff;
  box-shadow: 0 3px 10px -2px rgba(29, 158, 117, .6);
}
/* Pas de contour de focus : décalé, il était rogné par le cadre du formulaire.
   La poignée s'éclaire à la place. */
.pf-slider input[type=range]:focus { outline: none; }
.pf-slider input[type=range]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(43, 196, 138, .28), 0 3px 10px -2px rgba(29, 158, 117, .6);
}
.pf-slider input[type=range]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 5px rgba(43, 196, 138, .28), 0 3px 10px -2px rgba(29, 158, 117, .6);
}
.pf-slider__bounds {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--muted-2); white-space: nowrap;
}

.pf-answer { padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .6); border: 1px solid var(--border); }
.pf-answer__q { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.pf-answer__a { font-size: 14.5px; font-weight: 700; color: var(--teal-deep); }

/* Écran peu haut (portable) : l'en-tête de page se resserre pour que la
   question tienne en entier, sans défiler. */
@media (min-width: 1001px) and (max-height: 860px) {
  body.onboarding .view { padding-top: 18px; padding-bottom: 18px; }
  .pf-brand { margin-bottom: 14px; }
  .pf-brand .logo-img { width: 112px; height: 33px; }
  .pf-head { margin-bottom: 14px; }
  .pf-head h1 { font-size: 26px; margin-bottom: 4px; }
  .pf-gauge { margin-bottom: 16px; }
  .pf-form { min-height: 384px; }
  .pf-qhead { padding: 18px 24px 16px; }
  .pf-corps { padding: 18px 24px 16px; }
}
@media (min-width: 1001px) and (max-height: 720px) {
  .pf-head p { display: none; }
  .pf-recap__liste { gap: 4px; }
  .pf-recap__boite { padding: 4px 10px 5px; }
}
/* Tablette, téléphone : la question, puis le récapitulatif dessous, en deux colonnes de boîtes. */
@media (max-width: 1000px) {
  .pf-layout { grid-template-columns: minmax(0, 680px); }
  .pf-form { min-height: 0; }
  .pf-recap__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
  .pf-recap__rail { display: none; }
  .pf-recap__note { display: none; }
}
@media (max-width: 560px) {
  .pf-qhead { gap: 12px; padding: 16px 16px 14px; }
  .pf-qhead__icon { width: 42px; height: 42px; border-radius: 13px; }
  .pf-question { font-size: 17px; }
  .pf-corps { padding: 16px 16px 14px; }
  .pf-recap__liste { grid-template-columns: minmax(0, 1fr); }
  .pf-recap__rail { display: block; }
}

/* ── Espace admin ───────────────────────────────────────────────────────── */
.admin-sub { font-size: 15px; margin: 22px 0 12px; letter-spacing: -.2px; }

.admin-video { padding: 0; overflow: hidden; }
.admin-video__head {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  cursor: pointer; list-style: none; font-weight: 700;
}
.admin-video__head::-webkit-details-marker { display: none; }
.admin-video__num {
  width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 13px; font-weight: 800;
}
.admin-video__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* La vidéo d'un parcours (la Formule 4D) : sa pastille en bleu canard, pour la distinguer des cinq vidéos. */
.admin-video--parcours .admin-video__num { width: auto; padding: 0 8px; background: var(--gradTeal); }
.admin-parcours__aide { margin: -4px 0 12px; line-height: 1.55; }
/* Le parcours d'un prospect, à côté de « Rempli » : la Formule 4D en bleu canard, le parcours débutant en vert. */
.admin-parcours { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; color: var(--green3); background: rgba(43, 196, 138, .12); }
.admin-parcours--4d { color: #0F5F59; background: rgba(15, 118, 110, .12); }
.admin-video__body { padding: 0 20px 20px; border-top: 1px solid var(--border); padding-top: 16px; }

.admin-question {
  padding: 16px; margin-bottom: 12px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .6); border: 1px solid var(--border);
}
/* Un bloc d'intégration tient sur plusieurs lignes : on le laisse respirer
   sans qu'il mange l'écran. */
.admin-option { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.admin-option input[type=radio] { accent-color: var(--green); flex: none; width: 16px; height: 16px; }

.admin-imgrow { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.admin-imgrow__side { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.admin-img {
  /* L'aperçu reprend le gabarit réel de la carte : ce qu'on voit ici est ce
     que voit le membre. */
  width: var(--card-img-w); height: var(--card-h); flex: none; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  background: rgba(21, 64, 50, .05); border: 1px solid var(--border);
}
.admin-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.admin-embed {
  min-height: 84px; max-height: 180px; resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.5; white-space: pre; overflow-wrap: normal; overflow-x: auto;
}

.pf-answer { padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .6); border: 1px solid var(--border); }
.pf-answer__q { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.pf-answer__a { font-size: 14.5px; font-weight: 700; color: var(--teal-deep); }

.admin-cat { display: grid; grid-template-columns: 1fr 1.4fr auto auto auto; gap: 10px; align-items: center; }
.admin-cat__active { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.admin-cat input[type=checkbox] { accent-color: var(--green); width: 16px; height: 16px; }

/* Les onglets de l'admin sont des boutons sans les deux faces du site : ils
   portent donc eux-mêmes leur espacement, sans quoi ils se collent les uns
   aux autres dans la nacelle. */
.nav__item[data-tab] {
  cursor: pointer; font-family: var(--font);
  padding: 9px 20px; border-radius: 12px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  white-space: nowrap;
  transition: color .25s ease;
}
.nav__item[data-tab]:hover { color: var(--text); }
.nav__item[data-tab].is-active { color: #fff; }

/* Tableaux de l'admin : une ligne par membre, dépliable sur ses réponses. */
/* Recherche et filtre des profils : sur une seule ligne. */
.admin-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 12px; }
.admin-filters input[type=text] { flex: 1; min-width: 220px; width: auto; }
.admin-filters select { width: auto; min-width: 160px; }
.answers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }

.table--rows tbody tr.row--head { cursor: pointer; }
.table--rows tbody tr.row--head > td { border-bottom: 1px solid var(--border); }
.table--rows tbody tr.row--head.is-open > td { border-bottom-color: transparent; }
.table--rows td { vertical-align: middle; }
.table__name { font-weight: 700; }
.arrivees {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  background: rgba(201, 168, 76, .16); border: 1px solid rgba(201, 168, 76, .3);
  font-size: 10px; font-weight: 700; color: #8A6D1F;
}
.table__chevron {
  display: inline-block; width: 18px; text-align: center; color: var(--muted-2);
  transition: transform .3s cubic-bezier(.34, 1.4, .5, 1);
}
tr.is-open .table__chevron { transform: rotate(90deg); color: var(--green); }
/* Fiche dépliée : compacte, et bien détachée de la ligne au-dessus. */
.row--detail > td { padding: 0; background: rgba(29, 158, 117, .035); }
.fiche { padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 10px; }
.fiche__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11.5px; color: var(--muted); }
.row--detail .pf-answer { margin-bottom: 0; padding: 8px 10px; }
.row--detail .pf-answer__q { font-size: 11px; margin-bottom: 1px; }
.row--detail .pf-answer__a { font-size: 13px; }
.table__num { font-variant-numeric: tabular-nums; }
/* En-têtes triables : le sens du tri se lit sur la flèche. */
.th--sort { cursor: pointer; user-select: none; white-space: nowrap; }
.th--sort:hover { color: var(--green3); }
.th--sort.is-sorted { color: var(--green3); }
.th__arrow { display: inline-block; width: 12px; font-size: 9px; }
.dot-row { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 7px; }
.dot-row i { width: 7px; height: 7px; border-radius: 50%; background: rgba(21, 64, 50, .13); }
.dot-row i.is-on { background: var(--green); }

@media (max-width: 860px) {
  .admin-cat { grid-template-columns: 1fr; }
  #admin .topbar .nav { display: flex; overflow-x: auto; max-width: 100%; }
  .nav__item[data-tab] { padding: 9px 14px; }
}

/* ── Divers ─────────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.skeleton {
  height: 84px; border-radius: var(--radius); margin-bottom: 10px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .65);
  outline: 1px solid var(--border);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90;
  max-width: 90vw; padding: 13px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px);
  border: 1px solid rgba(29, 158, 117, .3);
  box-shadow: var(--shadow-md); font-size: 14px; font-weight: 600; color: var(--green3);
}
.toast--error { border-color: rgba(231, 76, 60, .4); color: #A93226; }

/* Une vidéo du coffre encore fermé, atteinte par son adresse : le minuteur en grand (js/minuteur.js). */
.lockscreen {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; padding: 46px 24px 50px;
  background: var(--card); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .65); outline: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: --mn-p .3s linear;
}
.lockscreen.is-intro { transition: --mn-p 1.2s cubic-bezier(.3, .7, .2, 1); }
.lockscreen .mn { --mn-t: 104px; margin-bottom: 6px; }
/* La vidéo qui attend la précédente : un cadenas simple, sans minuteur. */
.lockscreen__cadenas {
  display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 6px; border-radius: 50%;
  background: rgba(29, 158, 117, .1); color: var(--green3);
}
.lockscreen__cadenas svg { display: block; width: 30px; height: 30px; }
.lockscreen h2 { margin: 0; font-size: 19px; letter-spacing: -.3px; }
.lockscreen .mn-chiffres { --mn-sep: 32px; margin: 2px 0 6px; }
.lockscreen .mn-chiffres__tuile { --mn-tuile: 42px; }
.lockscreen .mn-chiffres__ouvert { font-size: 18px; padding: 13px 22px 13px 17px; }
.lockscreen .mn-chiffres__ouvert svg { width: 20px; height: 20px; }
.lockscreen p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 420px; }
.lockscreen .btn { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .lockscreen, .lockscreen.is-intro { transition: none; } }

/* ── Prise de rendez-vous ────────────────────────────────────────────────
   Le calendrier s'ouvre par-dessus la page. Aucun écouteur de clic sur le
   fond : la fenêtre ne se ferme que par sa croix (ou Échap au clavier).
   ------------------------------------------------------------------------ */
.booking {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 32px;
  background: rgba(10, 26, 21, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: booking-in .25s ease;
}
@keyframes booking-in { from { opacity: 0; } to { opacity: 1; } }
/* La carte porte le décor de l'application — le même dégradé et la même
   trame de points de seize pixels — et le calendrier s'y pose en retrait :
   la trame fait la marge, au lieu d'un simple vide blanc. */
.booking__card {
  /* La largeur décide du gabarit servi par iClosed : trop étroite, leur
     calendrier bascule en version téléphone et renvoie les créneaux sous le
     mois. Assez large donc, mais pas plus — leur formulaire porte déjà sa
     propre carte blanche, et tout l'espace en trop deviendrait du vide.
     De l'air en haut pour la croix, presque rien ailleurs. */
  /* Marges égales tout autour, et le calendrier centré : il annonce sa
     propre hauteur, on la lui donne, et la place qui reste se partage à
     parts égales au-dessus et au-dessous. */
  position: relative; width: min(1080px, 100%); height: min(860px, 100%);
  border-radius: var(--radius); overflow: hidden;
  padding: 26px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(700px 380px at 85% -10%, rgba(43, 196, 138, .16), transparent 62%),
    radial-gradient(560px 320px at -10% 40%, rgba(50, 90, 90, .12), transparent 58%),
    var(--bg);
  box-shadow: 0 30px 70px -20px rgba(10, 26, 21, .6);
  animation: booking-rise .32s cubic-bezier(.22, .9, .3, 1);
}
.booking__card::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(29, 158, 117, .28) 1px, transparent 0);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(760px 520px at 50% -8%, #000 8%, transparent 78%);
  mask-image: radial-gradient(760px 520px at 50% -8%, #000 8%, transparent 78%);
}
@keyframes booking-rise { from { transform: translateY(14px) scale(.985); } to { transform: none; } }
.booking__close {
  position: absolute; top: 8px; right: 12px; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--border-2);
  color: var(--text); box-shadow: var(--shadow-sm);
  transition: background .2s, transform .2s, color .2s;
}
.booking__close:hover { background: var(--text); color: #fff; transform: rotate(90deg); }
.booking__close svg { width: 17px; height: 17px; display: block; }
/* Aucun fond ici : le seul blanc doit être celui du formulaire d'iClosed,
   posé sur la trame. Un panneau blanc de notre côté doublait le sien et
   laissait une grande plage vide sous le widget. */
.booking__frame { position: relative; z-index: 1; width: 100%; height: 100%; background: transparent; }
.booking__loading { position: absolute; inset: 0; }
.booking__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.booking__loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: 13.5px;
}
/* Tablette : la fenêtre garde des marges, mais prend tout ce qu'elle peut. */
@media (max-width: 1100px) {
  .booking { padding: 24px 16px; }
  .booking__card { padding: 18px; }
}
/* Téléphone : plein écran, la moindre marge est prise sur le calendrier. */
@media (max-width: 700px) {
  .booking { padding: 0; }
  .booking__card { width: 100%; height: 100%; border-radius: 0; padding: 44px 6px 6px; }
}

.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 16px; font-weight: 600; }
.backlink:hover { color: var(--green); }

/* ── Repli de l'en-tête ─────────────────────────────────────────────────────
   Entre la bascule mobile et le grand écran, il n'y a pas la place pour le
   logo, six entrées de menu, le bouton d'appel et le compte écrit. Plutôt que
   de laisser les marges se manger, on retire le texte par paliers.
   ------------------------------------------------------------------------ */

/* Les marges de la barre se resserrent un peu avant le grand écran. */
@media (max-width: 1459px) {
  .topbar { padding: 12px 24px; gap: 12px 24px; }
}
/* La bulle du compte se replie sur la photo quand le menu entier, le bouton
   d'appel et la bulle écrite ne tiennent plus ensemble avec 20 px d'air
   (mesuré : sous 1300 px, cadenas du menu compris). La fiche du compte, au
   survol, dit le reste. */
@media (max-width: 1299px) {
  .userbtn__meta { display: none; }
  .userbtn { padding: 2px; }
}
/* Les entrées du menu : la même marge de part et d'autre de chaque libellé
   (l'espace est homogène d'un bout à l'autre du menu), et une largeur
   minimale pour que « Live », court, ne fasse pas une pastille riquiqui. */
@media (min-width: 1221px) {
  .nav__item[data-nav] { justify-content: center; min-width: 104px; padding: 9px 16px; }
}
/* Encore plus étroit : le menu lui-même n'a plus la place de s'écrire en
   entier. Seule l'entrée en cours garde son mot — on voit toujours où l'on
   est — les autres se réduisent à leur icône et disent leur nom au survol.
   Le bouton d'appel garde le sien : c'est le seul qu'on vient chercher. */
@media (max-width: 1220px) {
  .nav__item[data-nav]:not(.is-active) .nav__label { display: none; }
  .nav__item[data-nav]:not(.is-active) { padding: 9px 11px; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  /* Sans le menu du milieu, deux groupes seulement : le logo à gauche, l'appel et le compte à droite
     (une grille à trois colonnes gardait deux écarts vides et poussait le compte contre le bord). */
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
  .topbar .nav { display: none; }
  /* Le bouton d'appel reste dans l'en-tête, à gauche du compte, comme sur
     ordinateur : une gélule verte plus compacte (son téléphone, son nom), à la
     hauteur de la photo du compte. Les flèches du survol n'ont pas lieu d'être
     au doigt. */
  .topbar__right { gap: 8px; }
  .tb-duo { gap: 8px; }
  .topcta { height: 38px; padding: 0 15px; gap: 0; font-size: 13px; }
  .topcta .btn-flow__arr, .topcta .btn-flow__circle { display: none; }
  .topcta .btn-flow__label, .topcta:hover .btn-flow__label { display: inline-flex; align-items: center; transform: none; }
  .brand__tag { display: none; }
  .logo-img { width: 89px; height: 26px; }
  .view { padding: 22px 16px calc(var(--tabbar-h) + 30px); }

  :root {
    --tabbar-bas: max(10px, calc(env(safe-area-inset-bottom, 0px) - 4px));
    --tabbar-h: calc(64px + var(--tabbar-bas));
  }
  /* La barre du bas, détachée du bord : une pilule de verre qui flotte au-dessus de la page (et du trait
     de l'iPhone) — flou et translucide, un reflet clair sur son bord haut, une ombre douce. Cinq icônes, sans
     texte (leur nom reste lu par les lecteurs d'écran), à parts égales. Une zone grisée se pose sous
     l'onglet ouvert et, au toucher, glisse vers le suivant, comme sur Instagram (public/js/barre-bas.js) ;
     le doigt peut aussi la faire glisser le long de la barre. Elle reste dans la barre, qui la coupe à ses bords. */
  .tabbar {
    position: fixed; left: 10px; right: 10px; bottom: var(--tabbar-bas); z-index: 50;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 440px; margin: 0 auto; padding: 6px; border-radius: 28px; overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .58));
    backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow:
      0 14px 34px -12px rgba(16, 42, 33, .38), 0 3px 10px -5px rgba(16, 42, 33, .2),
      inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(21, 64, 50, .06);
    /* Le doigt glisse le long de la barre sans faire défiler la page. */
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  }
  /* La zone grisée : un simple décalage d'un onglet à l'autre, comme sur Instagram — sa forme ne change
     jamais (ni zoom, ni étirement, ni rebond). Elle n'est déplacée que par `transform`, que le téléphone
     anime à part, sur sa carte graphique : la page qui se construit en même temps ne la fait pas
     hoqueter ; touchée en plein mouvement, la transition repart de là où elle est. Posée sans glisser
     (première apparition, changement de taille) : `.sans-glisse`. */
  .tabbar__bulle {
    position: absolute; z-index: 0; top: 9px; bottom: 9px; left: 0; width: 0; border-radius: 22px;
    pointer-events: none; opacity: 0; will-change: transform; transform: translate3d(0, 0, 0);
    background: rgba(16, 42, 33, .075);
    transition: transform .3s cubic-bezier(.25, .8, .25, 1), opacity .2s ease;
  }
  .tabbar__bulle.is-visible { opacity: 1; }
  .tabbar__bulle.sans-glisse { transition: opacity .2s ease; }
  .tabbar__item {
    position: relative; z-index: 1; min-width: 0; height: 50px;
    display: grid; place-items: center; padding: 0; color: var(--text);
    transition: color .15s ease;
    -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none;
  }
  /* Le nom de l'onglet : invisible, mais lu par les lecteurs d'écran. */
  .tabbar__item span {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .tabbar__item svg { width: 24px; height: 24px; flex: none; }
  /* L'onglet touché passe au vert à l'instant même (seule sa couleur change, l'icône ne grossit pas) ;
     l'ancien repasse en noir : une seule icône verte à la fois. */
  .tabbar__item.is-active, .tabbar__item.is-vise { color: var(--green3); }
  .tabbar:has(.is-vise) .tabbar__item.is-active:not(.is-vise) { color: var(--text); }
  /* Le point rouge de la Communauté bat doucement, sans halo (un halo se repeint à chaque image et
     ralentirait la barre en verre). */
  .tabbar .tabbar__item[data-nav="communaute"].has-news::after { box-shadow: 0 0 0 1.5px #fff; animation: tb-point 2s ease-in-out infinite; }
  @media (prefers-reduced-motion: reduce) {
    .tabbar__bulle, .tabbar__item { transition: none; }
    .tabbar .tabbar__item[data-nav="communaute"].has-news::after { animation: none; }
  }
  .videohead h1 { font-size: 21px; }
  .page-head h1 { font-size: 23px; }
}
@keyframes tb-point { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.28); } }
@media (max-width: 350px) {
  .tabbar { left: 8px; right: 8px; }
  .tabbar__item svg { width: 22px; height: 22px; }
}
/* Élève reconnu : « Mon parcours » au téléphone, la phrase entière ne tient pas entre le logo et le compte. */
#cta-top .cta-court { display: none; }
@media (max-width: 520px) {
  #cta-top .cta-long { display: none; }
  #cta-top .cta-court { display: inline; }
}
/* Petit téléphone : l'en-tête se serre (logo, « Réserver un appel », photo) sans rien couper. */
@media (max-width: 380px) {
  .topbar { padding-left: 12px; padding-right: 12px; }
  .topcta { padding: 0 12px; font-size: 12.5px; }
}
@media (max-width: 345px) {
  .logo-img { width: 76px; height: 22px; }
  .topcta { height: 34px; padding: 0 10px; font-size: 12px; }
  .topcta .btn-tel { display: none; }
}

/* L'encadré de secours : une page qui n'a pas pu s'afficher (cf. app.js, pageEnPanne). */
.panne {
  max-width: 520px; margin: 32px auto; padding: 28px 22px 22px; border-radius: 22px; text-align: center;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 20px 40px -28px rgba(21, 64, 50, .45);
}
.panne__titre { margin: 0; font-size: 20px; letter-spacing: -.3px; }
.panne__texte { margin: 8px 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.panne__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.panne__detail { margin: 18px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted-2); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── Pied de page légal ─────────────────────────────────────────────────────
   Repris tel quel de My Seqooia (public/static/style.css) : mêmes couleurs
   slate et teal, qui sont déjà celles de ce design. Deux formes : discrète en
   bas de l'application, et encadrée en verre sur l'accueil, où il n'y a ni
   barre ni onglets pour l'ancrer.
   ------------------------------------------------------------------------ */
/* Pied de page légal : un trait de séparation, du vide au-dessus, et rien
   d'autre. Ces liens doivent être trouvables, pas mis en avant. */
.seq-legal{margin-top:auto;padding:2rem 1rem 1.6rem;border-top:1px solid var(--border);color:var(--muted-2);position:relative;z-index:1}
.seq-legal-in{max-width:1080px;margin:0 auto;text-align:center}
.seq-legal-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.3rem .55rem;font-size:11.5px;font-weight:500;line-height:1.4}
.seq-legal-links a{display:inline-block;min-height:0!important;color:var(--muted-2);text-decoration:none;text-underline-offset:3px;transition:color .15s}
.seq-legal-links a:hover,.seq-legal-links a:focus-visible{color:#0d9488;text-decoration:underline;outline:none}
.seq-legal-sep{color:#cbd5e1;font-weight:500}
.seq-legal-copy{margin:.55rem 0 0;font-size:11px;color:var(--muted-2)}
.seq-legal-disc{margin:.55rem auto 0;max-width:1040px;padding:0 .5rem;font-size:10.5px;line-height:1.6;color:#a3aebb}
.seq-legal-flag{display:inline-block;font-size:.85em;margin-right:.3em;vertical-align:-1px;line-height:1}

/* Le parcours d'arrivée avait droit à une carte blanche : elle mettait en
   avant ce qui doit rester en retrait. Le pied de page est le même partout,
   posé plus bas et détaché par son seul trait. */
body.onboarding .seq-legal{margin-top:56px;z-index:2}

@media (max-width:640px){
  .seq-legal-links{flex-direction:column;gap:.15rem}
  .seq-legal-links a{padding:.3rem .6rem}
  .seq-legal-sep{display:none}
  /* Les onglets ancrés en bas ne doivent pas recouvrir le pied de page. */
  .seq-legal-app{padding-bottom:calc(var(--tabbar-h) + 1.3rem)}
}

/* ── Simulateurs ────────────────────────────────────────────────────────────
   Posés dans les îles de Ma roadmap (l'inflation, les frais) : curseurs,
   graphique, deux cartes, puis le chiffre qui compte en grand.
   ------------------------------------------------------------------------ */
/* Hypothèses à gauche, courbe à droite, résultats en dessous. */
.sim-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 12px; margin-bottom: 12px; align-items: stretch; }
/* Les deux cartes partent du même bord : pas de marge héritée de `.card + .card`. */
.sim-layout > .card + .card { margin-top: 0; }
.sim-controls { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
/* Les curseurs se répartissent sur la hauteur disponible, alignée sur la courbe. */
.sim-controls .sim-slider { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.sim-controls__title { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.2px; }
.sim-controls__hint { margin: -8px 0 2px; font-size: 11.5px; color: var(--muted-2); line-height: 1.45; }
.sim-slider__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.sim-slider__label { font-size: 12px; font-weight: 500; color: var(--muted); }
.sim-slider__value {
  display: inline-flex; align-items: baseline; gap: 3px;
  padding: 2px 7px; border-radius: 7px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 700; letter-spacing: -.2px; color: var(--text); white-space: nowrap;
  cursor: text; transition: border-color .15s ease, background .15s ease;
}
.sim-slider__value:hover { background: rgba(21, 64, 50, .05); }
.sim-slider__value:focus-within { background: #fff; border-color: rgba(29, 158, 117, .45); box-shadow: 0 0 0 3px rgba(43, 196, 138, .16); }
.sim-slider input.sim-slider__num, .sim-slider input.sim-slider__num:focus {
  width: 4ch; min-width: 1.5ch; height: auto; padding: 0; margin: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; font: inherit; color: inherit; text-align: right; outline: none;
}
.sim-slider__unit { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.sim-slider input[type=range] {
  width: 100%; height: 16px; margin: 0; --fill: 0%;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.sim-slider input[type=range]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--green) 0 var(--fill), rgba(21, 64, 50, .1) var(--fill) 100%);
}
.sim-slider input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(21, 64, 50, .1); }
.sim-slider input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--green); }
.sim-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; margin-top: -5.5px; border-radius: 50%;
  background: var(--green); border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(21, 64, 50, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sim-slider input[type=range]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(43, 196, 138, .18), 0 1px 4px rgba(21, 64, 50, .3); }
.sim-slider input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.sim-slider input[type=range]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(21, 64, 50, .3);
}
.sim-slider input[type=range]:focus { outline: none; }
.sim-slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(43, 196, 138, .25); }

/* Graphique : titre et légende en tête, courbes lissées, grille en pointillés. */
.sim-chart { padding: 16px 18px 14px; display: flex; flex-direction: column; min-width: 0; }
.sim-chart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sim-chart__title { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.2px; }
.sim-chart__plot { position: relative; flex: 1; display: flex; align-items: center; }
.sim-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.sim-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.sim-legend__swatch { display: inline-block; width: 10px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.sim-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.sim-grid { stroke: rgba(21, 64, 50, .11); stroke-width: 1; stroke-dasharray: 4 4; transition: stroke-opacity .32s ease; }
.sim-tick { font-size: 11px; fill: var(--muted); transition: opacity .18s linear, fill-opacity .32s ease; }
/* Une graduation ou une année qui arrive (ou s'en va) : en fondu, pendant que l'échelle glisse. */
.sim-grid.is-sortant { stroke-opacity: 0; }
.sim-tick.is-sortant { fill-opacity: 0; }
.sim-cursor { stroke: var(--green); stroke-width: 1.2; stroke-dasharray: 4 4; }
/* Anneaux posés sur chaque année : coeur blanc, bord de la série. */
.sim-marker { stroke-width: 1.6; }
.sim-dot { filter: drop-shadow(0 2px 4px rgba(21, 64, 50, .25)); }
/* Pastille de repère, sur l'axe des années. */
.sim-pill rect { fill: var(--text); }
.sim-pill text { fill: #fff; font-size: 10px; font-weight: 700; letter-spacing: .1px; }
.sim-hover { transition: opacity .15s ease; }
/* Le repère d'un objectif (les 100 000 € de la roadmap) : un trait doré en
   pointillés, un point sur la courbe, un badge à trophée au-dessus. */
.sim-repere__ligne { stroke: #D9A520; stroke-width: 1.8; stroke-dasharray: 5 5; }
.sim-repere__point { fill: #FFD43B; stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 2px 5px rgba(150, 105, 0, .45)); }
.sim-repere__badge rect { fill: #FFD43B; stroke: #E0A800; stroke-width: 1; filter: drop-shadow(0 4px 8px rgba(150, 105, 0, .3)); }
.sim-repere__badge text { font-size: 11px; font-weight: 800; fill: #5A4300; letter-spacing: -.1px; }
.sim-repere__trophee path { fill: none; stroke: #5A4300; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* La bulle de survol : en verre (son fond, son liseré et son ombre viennent de la règle commune, plus bas). */
.sim-tip {
  position: absolute; z-index: 2; pointer-events: none;
  min-width: 180px; padding: 10px 13px; border-radius: 14px;
  font-size: 12px; line-height: 1.4; color: var(--text);
}
.sim-tip__when {
  margin: 0 0 5px; padding-bottom: 5px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase; color: #64748B;
  border-bottom: 1px solid rgba(21, 37, 32, .1);
}
.sim-tip__row { margin: 3px 0; display: flex; align-items: center; gap: 7px; color: #475569; }
.sim-tip__row strong { margin-left: auto; padding-left: 12px; color: var(--text); font-variant-numeric: tabular-nums; font-weight: 700; }

/* Résultats : deux repères et le chiffre à retenir, sur une seule ligne. */
.sim-results { display: grid; grid-template-columns: 1fr 1fr 1.25fr; grid-auto-rows: 1fr; gap: 12px; margin-bottom: 12px; }
.sim-results > .card + .card { margin-top: 0; }
.sim-card { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 16px; min-height: 100%; }
.sim-card__label { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.sim-card__value { font-size: 21px; font-weight: 800; letter-spacing: -.6px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.sim-card__sub { font-size: 11.5px; color: var(--muted-2); }
.sim-card--neutral .sim-card__label { color: var(--muted); }
.sim-card--neutral .sim-card__value { color: var(--text); }
.sim-card--good .sim-card__label, .sim-card--good .sim-card__value { color: var(--green3); }
.sim-card--bad .sim-card__label, .sim-card--bad .sim-card__value { color: var(--red); }

.sim-big {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 14px 18px; border-radius: var(--radius); border: 1px solid transparent; min-height: 100%;
}
.sim-big__label { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.sim-big__value { font-size: 28px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sim-big--bad { background: rgba(231, 76, 60, .07); border-color: rgba(231, 76, 60, .18); }
.sim-big--bad .sim-big__label, .sim-big--bad .sim-big__value { color: var(--red); }
.sim-big--good { background: rgba(43, 196, 138, .09); border-color: rgba(29, 158, 117, .2); }
.sim-big--good .sim-big__label, .sim-big--good .sim-big__value { color: var(--green3); }

@media (max-width: 860px) {
  .sim-layout { grid-template-columns: 1fr; }
  .sim-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
  .sim-controls__title, .sim-controls__hint { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* Le SVG est mis à l'échelle : on grossit ses étiquettes pour qu'elles restent lisibles. */
  .sim-tick { font-size: 17px; }
  .sim-controls { grid-template-columns: 1fr; }
  .sim-results { grid-template-columns: 1fr 1fr; }
  .sim-results .sim-big { grid-column: 1 / -1; }
  .sim-big__value { font-size: 26px; }
}

/* ── FAQ — accordéon repris du pré-appel ────────────────────────────────── */
#faq-list .faq-card{margin-bottom:16px}
.faq-card{cursor:pointer}
.faq-q{display:flex;align-items:center;gap:16px;justify-content:space-between}
.faq-q strong{font-size:15px;line-height:1.4}
.faq-plus{width:28px;height:28px;border-radius:50%;background:rgba(29,158,117,.1);color:var(--green);display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:600;flex-shrink:0;transition:transform .35s cubic-bezier(.34,1.56,.64,1),background .3s,color .3s;line-height:1}
.faq-card.open .faq-plus{transform:rotate(45deg);background:var(--grad);color:#fff}
.faq-a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s cubic-bezier(.22,.85,.25,1)}
.faq-card.open .faq-a{grid-template-rows:1fr}
.faq-a-inner{overflow:hidden;font-size:13px;color:#4d5f58;line-height:1.65;white-space:pre-line;opacity:0;transition:opacity .35s ease .1s,padding-top .45s cubic-bezier(.22,.85,.25,1)}
.faq-card.open .faq-a-inner{opacity:1;padding-top:12px}
.faq-video{position:relative;border-radius:13px;overflow:hidden;margin-bottom:12px;background:rgba(21,64,50,.05);aspect-ratio:16/9}
.faq-video iframe{display:block;width:100%;height:100%;border:0}
.faq-video .faq-player{position:absolute;inset:0}
.faq-txt{white-space:pre-line}

/* ══ Les avis des membres (en bas de L'école Seqooia) ════════════════════
   Repris de la plateforme pré-appel : les deux projets partagent les mêmes
   variables de couleur, d'ombre et de rayon. Le reste de la page est plus
   bas, sous « L'école Seqooia ».
   ---------------------------------------------------------------------- */

/* ── Le mur d'avis ─────────────────────────────────────────────────────────── */
.av5 { display: inline-flex; gap: 2px; }
.av5 svg { width: 15px; height: 15px; fill: #F5B544; flex: none; }

/* Le mur d'avis : des colonnes qui remontent en continu, chacune à son
   rythme, et s'effacent en fondu en haut et en bas du cadre.
   Le cadre occupe toute la largeur de la fenêtre, alors que les colonnes
   restent dans la largeur de la page : le halo d'une carte du bord n'est
   plus coupé net au ras de la colonne, il s'éteint dans la marge. La marge
   intérieure vaut exactement ce qui dépasse de part et d'autre (50vw moins
   la moitié de la largeur de la page), d'où des colonnes pas plus écartées. */
.avis-wall {
  display: flex; gap: 18px;
  width: 100vw; margin-left: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  box-sizing: border-box;
  max-height: 720px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}
.avis-col { flex: 1; min-width: 0; }
/* La liste est posée deux fois : on la remonte de la moitié exacte, puis on
   repart. Le padding du bas vaut l'écart entre cartes, sinon la boucle
   sauterait d'autant à chaque tour. */
.avis-col__track {
  display: flex; flex-direction: column; gap: 18px; padding: 12px 0 18px;
  animation: avis-defile var(--duree, 50s) linear infinite;
}
@keyframes avis-defile { to { transform: translateY(-50%); } }
/* Le défilement continue sous la souris. Il ne s'arrête que pour qui
   navigue au clavier : on ne peut pas viser un bouton qui s'enfuit. */
.avis-wall:has(:focus-visible) .avis-col__track { animation-play-state: paused; }
@media (max-width: 700px) { .avis-wall { max-height: 600px; } }
@media (prefers-reduced-motion: reduce) {
  .avis-col__track { animation: none; }
  .avis-wall { overflow-y: auto; }
  .avis-card[aria-hidden="true"] { display: none; }
}

/* ── La carte d'avis, avec son halo ────────────────────────────────────────
   Toutes à la même hauteur, quel que soit le texte. Le halo reprend le
   composant « spotlight card » en vert Seqooia, en trois couches :
     - un voile vert très léger sur le fond, centré sur la souris ;
     - un liseré vert vif sur la bordure (::before), et son cœur blanc (::after) ;
     - une lueur floue qui déborde autour de la carte (.avis-card__glow).
   `--mx` / `--my` sont posés par le script, dans le repère de la carte. */
.avis-card {
  --mx: -400px; --my: -400px;
  position: relative; flex: none;
  height: 300px; display: flex; flex-direction: column; gap: 9px;
  padding: 20px; border-radius: 18px;
  background:
    radial-gradient(240px circle at var(--mx) var(--my), hsl(158 72% 42% / .045), transparent 70%),
    rgba(255, 255, 255, .86);
  border: 1px solid rgba(21, 64, 50, .09);
  box-shadow: 0 16px 32px -22px rgba(21, 64, 50, .45);
}
.avis-card::before,
.avis-card::after,
.avis-card__glow::before {
  content: ''; position: absolute; pointer-events: none; border-radius: inherit;
  /* Ne garder que l'anneau : la zone de contenu est retirée du masque. */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.avis-card::before,
.avis-card::after { inset: -1px; padding: 2px; opacity: 0; transition: opacity .35s ease; }
.avis-card::before {
  background: radial-gradient(160px circle at var(--mx) var(--my), hsl(158 70% 42% / .42), transparent 100%);
}
.avis-card::after {
  background: radial-gradient(80px circle at var(--mx) var(--my), hsl(150 80% 94% / .5), transparent 100%);
}
.avis-card__glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  filter: blur(12px); opacity: 0; transition: opacity .35s ease;
}
.avis-card__glow::before {
  inset: -10px; padding: 10px;
  background: radial-gradient(190px circle at var(--mx) var(--my), hsl(158 70% 45% / .35), transparent 100%);
}
.avis-card.is-lit::before,
.avis-card.is-lit::after { opacity: 1; }
.avis-card.is-lit .avis-card__glow { opacity: .55; }

.avis-t {
  margin: 0; font-size: 14.5px; font-weight: 800; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.avis-q {
  margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5;
  -webkit-box-orient: vertical; overflow: hidden;
}
.avis-plus {
  align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--green);
}
.avis-plus:hover { text-decoration: underline; }
.avis-plus[hidden] { display: none; }
/* L'auteur se cale toujours en bas : c'est ce qui aligne les cartes entre
   elles, qu'elles aient un titre sur une ligne ou sur deux. */
.avis-who { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; }
.avis-av {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradTeal); color: #fff; font-weight: 700; font-size: 13px;
}
.avis-n { display: block; font-size: 13px; font-weight: 700; }
.avis-d { display: block; font-size: 11px; color: var(--muted-2); }

/* L'avis en entier, dans sa fenêtre. */
.avis-full { max-width: 540px; }
.avis-full h2 { font-size: 19px; }
.avis-full__q { margin: 0; font-size: 14px; line-height: 1.75; color: var(--text); white-space: pre-line; }
.avis-source { margin: 16px 0 0; text-align: center; font-size: 11.5px; color: var(--muted-2); }
.avis-source a { color: var(--green); font-weight: 600; }

/* ══ L'école Seqooia ═══════════════════════════════════════════════════════
   Une seule page, épurée et plus large que les autres : le titre et son
   sommaire (de vrais boutons), puis cinq parties numérotées — les formations
   en éventail, les outils, les 90 premiers jours, l'avis des membres, et
   « Qui suis-je ». Beaucoup d'air, peu de cadres : les parties se
   distinguent par leur repère (« 01 — Les formations ») et leur titre, qui
   tient sur une ligne dès que l'écran le permet.
   ---------------------------------------------------------------------- */
.view:has(> .ec-tete) { max-width: 1240px; }
/* Large, pour le grand titre ; la phrase, elle, reste lisible. */
.page-head.ec-tete { max-width: 1180px; margin-bottom: 4px; }
.page-head.ec-tete > p { max-width: 900px; text-wrap: balance; }

/* Sous la phrase, comme une page de vente qu'on lit d'un trait : un seul bouton,
   « Réserver un appel » (le parcours pour un élève, cf. eleve.js), qui bat
   doucement — deux petits coups, puis une onde verte (comme sous la vidéo de
   la Formation) ; dessous, l'invitation à faire défiler, une flèche qui descend. */
.ec-tete__actions { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 30px; }
.ec-tete__appel {
  padding: 17px 46px; font-size: 16px;
  animation: ec-bouton-in .55s cubic-bezier(.3, 1.4, .5, 1) backwards, fo-battement 2.6s ease-in-out .9s infinite;
}
.ec-tete__appel:hover, .ec-tete__appel:focus-visible { animation-play-state: paused; }
.ec-tete__appel:hover .btn-flow__circle { width: 380px; height: 380px; }
@keyframes ec-bouton-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.ec-tete__defiler {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.ec-tete__chevron {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(43, 196, 138, .13); color: var(--green); animation: ec-descend 1.6s ease-in-out infinite;
}
.ec-tete__chevron svg { width: 16px; height: 16px; }
@keyframes ec-descend { 50% { transform: translateY(5px); } }

/* Beaucoup d'air entre les parties, et un filet discret au milieu pour les séparer. */
.ec-sec { position: relative; padding: 108px 0 12px; scroll-margin-top: 78px; }
.ec-sec + .ec-sec::before {
  content: ''; position: absolute; top: 48px; left: 50%; width: 140px; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(29, 158, 117, .38), transparent);
}
.ec-sec__tete { max-width: 1000px; margin: 0 auto 40px; text-align: center; }
.ec-sec__repere {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green);
}
.ec-sec__repere b { padding: 5px 6px 4px; border-radius: 7px; font-family: var(--pixel); font-size: 7.5px; font-weight: 400; letter-spacing: 0; color: #fff; background: var(--grad); }
.ec-sec__tete h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.22; letter-spacing: -.3px; text-wrap: balance; }
.ec-sec__tete p { max-width: 780px; margin: 0 auto; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ── Les formations : l'éventail de cartes ─────────────────────────────────
   Chaque carte est posée au centre de la scène ; le script la place et
   l'anime image par image (translation, inclinaison, taille, flou). Les
   couleurs viennent de sa teinte : un dégradé doux, une encre, un accent. */
.ec-teinte--menthe { --fond: linear-gradient(155deg, #F3FCF8 0%, #D2F1E2 100%); --encre: #0E5A44; --accent: #1D9E75; }
.ec-teinte--ciel   { --fond: linear-gradient(155deg, #F2F9FD 0%, #CDE6F3 100%); --encre: #154B64; --accent: #2A84AE; }
.ec-teinte--sable  { --fond: linear-gradient(155deg, #FEF9EE 0%, #F3E1B8 100%); --encre: #684A0D; --accent: #B9841C; }
.ec-teinte--lilas  { --fond: linear-gradient(155deg, #F7F5FE 0%, #DDD5F7 100%); --encre: #46358E; --accent: #7660D2; }
.ec-teinte--peche  { --fond: linear-gradient(155deg, #FEF6F1 0%, #F6D7C8 100%); --encre: #7C3A1E; --accent: #CC663C; }
.ec-teinte--azur   { --fond: linear-gradient(155deg, #F4F7FE 0%, #D2DEF7 100%); --encre: #243D82; --accent: #4A6CCB; }
.ec-teinte--nuit {
  --fond: radial-gradient(120% 90% at 88% 0%, rgba(43, 196, 138, .3), transparent 60%), linear-gradient(160deg, #193D33 0%, #0B1F19 100%);
  --encre: #EAF7F1; --accent: #5BE3AC;
}

.ec-fan { --cw: 286px; --ch: 376px; position: relative; }
/* On prend les cartes à la main : la souris devient une main ouverte, puis fermée pendant le glissé. */
.ec-fan__scene { position: relative; height: calc(var(--ch) + 104px); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ec-carte {
  position: absolute; left: 50%; top: 30px; width: var(--cw); height: var(--ch);
  display: flex; flex-direction: column; padding: 22px 22px 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .75); border-radius: 26px;
  background: var(--fond); color: var(--encre); font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 30px 60px -34px rgba(6, 40, 30, .45), 0 2px 6px rgba(6, 40, 30, .05), inset 0 1px 0 rgba(255, 255, 255, .7);
  transform: translate(-50%, 90px) scale(.55); opacity: 0;
  transform-origin: 50% 60%;
  transition: box-shadow .3s ease;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent; -webkit-user-drag: none;
}
.ec-carte.is-centre { box-shadow: 0 42px 70px -32px rgba(6, 40, 30, .55), 0 2px 8px rgba(6, 40, 30, .07), inset 0 1px 0 rgba(255, 255, 255, .75); }
/* La carte tenue : soulevée, son ombre s'allonge. */
.ec-teinte--nuit.ec-carte { border-color: rgba(91, 227, 172, .18); }
.ec-carte:focus-visible { outline: 3px solid rgba(43, 196, 138, .55); outline-offset: 4px; }

.ec-carte__filigrane {
  position: absolute; right: -36px; bottom: -34px; width: 196px; height: 196px;
  color: var(--accent); opacity: .1; pointer-events: none; transform: rotate(-12deg);
}
.ec-carte__filigrane .cm-ico { display: block; width: 100%; height: 100%; }
.ec-carte__filigrane svg { width: 100%; height: 100%; stroke-width: 1.3; }
.ec-teinte--nuit .ec-carte__filigrane { opacity: .14; }
.ec-carte__haut { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ec-carte__n { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; white-space: pre; opacity: .55; }
.ec-carte__lecons { padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .6); }
.ec-teinte--nuit .ec-carte__lecons { background: rgba(255, 255, 255, .1); }
.ec-carte__ico {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin-top: 28px; border-radius: 18px;
  background: rgba(255, 255, 255, .72); color: var(--accent); box-shadow: 0 12px 26px -16px rgba(6, 40, 30, .55);
}
.ec-teinte--nuit .ec-carte__ico { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.ec-carte__ico .cm-ico { width: 28px; height: 28px; }
.ec-carte__bas { position: relative; display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.ec-carte__bonus {
  align-self: flex-start; padding: 4px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #0B1F19; background: var(--accent);
}
.ec-carte__t { font-size: 15.5px; font-weight: 800; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; text-wrap: balance; }
.ec-carte__d { font-size: 13.5px; line-height: 1.5; opacity: .8; text-wrap: pretty; }
.ec-carte__voir {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 12.5px; font-weight: 800; color: var(--accent);
  opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease;
}
.ec-carte__voir svg { width: 14px; height: 14px; }
.ec-carte.is-centre .ec-carte__voir { opacity: 1; transform: none; }
.ec-carte.is-centre:hover .ec-carte__voir svg { animation: ec-voir .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes ec-voir { 45% { transform: translateX(4px); } }

/* Les flèches et les points, sous l'éventail. */
.ec-fan__nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ec-fan__fleche {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1.5px solid rgba(21, 64, 50, .1); background: rgba(255, 255, 255, .72); color: var(--teal-deep);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 4px 20px rgba(6, 40, 30, .09);
  cursor: pointer; transition: border-color .3s, color .3s, transform .2s;
}
.ec-fan__fleche::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid rgba(21, 64, 50, .04); pointer-events: none; }
.ec-fan__fleche:hover { border-color: rgba(29, 158, 117, .45); color: var(--green3); }
.ec-fan__fleche:active { transform: scale(.93); }
.ec-fan__fleche svg { width: 18px; height: 18px; }
.ec-fan__points { display: flex; align-items: center; gap: 4px; }
.ec-fan__point { position: relative; width: 16px; height: 16px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .3s ease; }
.ec-fan__point::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 999px;
  transform: translate(-50%, -50%); background: rgba(21, 64, 50, .17); transition: width .3s ease, background .3s ease;
}
.ec-fan__point:hover::after { background: rgba(29, 158, 117, .45); }
.ec-fan__point.is-on { width: 26px; }
.ec-fan__point.is-on::after { width: 20px; background: var(--grad); }
.ec-fan__legende { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Le programme d'une formation, dans sa fenêtre ── */
.modal__card.ec-fiche { max-width: 600px; padding: 0; gap: 0; overflow: hidden; }
.ec-fiche__in { display: flex; flex-direction: column; }
.ec-fiche__tete {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 24px 26px 24px; background: var(--fond); color: var(--encre);
}
.ec-fiche__x {
  position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .62); color: var(--encre); cursor: pointer; transition: background .2s;
}
.ec-fiche__x:hover { background: #fff; }
.ec-teinte--nuit .ec-fiche__x { background: rgba(255, 255, 255, .12); }
.ec-fiche__x .cm-ico { width: 16px; height: 16px; }
.ec-fiche__tete .ec-carte__filigrane { width: 220px; height: 220px; right: -30px; bottom: -60px; }
.ec-fiche__ico {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin: 14px 0 6px; border-radius: 17px;
  background: rgba(255, 255, 255, .72); color: var(--accent); box-shadow: 0 12px 26px -16px rgba(6, 40, 30, .55);
}
.ec-teinte--nuit .ec-fiche__ico { background: rgba(255, 255, 255, .08); }
.ec-fiche__ico .cm-ico { width: 26px; height: 26px; }
.ec-fiche__t { position: relative; margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.3px; }
.ec-fiche__d { position: relative; margin: 0; max-width: 450px; font-size: 14.5px; line-height: 1.55; opacity: .82; }
.ec-fiche__prog { padding: 20px 26px 4px; }
.ec-fiche__label { display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.ec-fiche__lecons { list-style: none; margin: 0; padding: 0; }
.ec-fiche__lecons li { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.5; }
.ec-fiche__lecons li:last-child { border-bottom: 0; }
.ec-fiche__num { flex: none; min-width: 20px; font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--green); }
.ec-fiche__note { margin: 10px 0 0; padding: 10px 12px; border-radius: 11px; background: rgba(21, 64, 50, .04); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ec-fiche__pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px 22px; }
.ec-fiche__nav {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px; border: 0; border-radius: 10px; background: none;
  font: 700 13px var(--font); color: var(--muted); cursor: pointer; transition: background .2s, color .2s;
}
.ec-fiche__nav:hover { background: rgba(21, 64, 50, .05); color: var(--text); }
.ec-fiche__nav span { display: grid; }
.ec-fiche__nav svg { width: 15px; height: 15px; }

/* ── La vidéo des témoignages : le lecteur Vidalytics tel quel, dans sa boîte 16:9 ── */
.ec-video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  background: #0B1F19; box-shadow: 0 26px 50px -30px rgba(6, 40, 30, .6);
}
.ec-video .player { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }

/* ── Les outils : la démonstration à gauche, en grand ; la liste à droite,
   chaque outil sur deux lignes (son nom, puis ce qu'il fait), pas une de plus.
   La vidéo a exactement la hauteur de la liste : chaque outil occupe une
   rangée de hauteur fixe (--rang), la liste en fait --n, et la colonne de la
   vidéo est assez large pour qu'en 16:9 elle tombe pile à cette hauteur. */
.ec-outils {
  --rang: 56px; --haut: calc(var(--n, 7) * var(--rang));
  display: grid; grid-template-columns: minmax(0, calc(var(--haut) * 16 / 9)) minmax(0, 1fr); gap: 34px; align-items: start;
}
.ec-outils.is-seuls { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin: 0 auto; }
.ec-demo { margin: 0; }
.ec-demo .player { height: var(--haut); aspect-ratio: auto; border-radius: 22px; box-shadow: 0 26px 50px -30px rgba(6, 40, 30, .55); }
.ec-outils__liste { list-style: none; margin: 0; padding: 0; }
.ec-outil { display: flex; align-items: center; gap: 14px; height: var(--rang); padding: 0 2px; border-bottom: 1px solid var(--border); }
.ec-outil:last-child { border-bottom: 0; }
.ec-outil__ico {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .16), rgba(29, 158, 117, .05)); border: 1px solid rgba(29, 158, 117, .16);
}
.ec-outil__ico .cm-ico { width: 18px; height: 18px; }
.ec-outil__txt { display: grid; gap: 2px; min-width: 0; }
.ec-outil__txt strong, .ec-outil__txt span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ec-outil__txt strong { font-size: 14.5px; }
.ec-outil__txt span { font-size: 13px; color: var(--muted); }
/* Les outils arrivent l'un après l'autre. */
.ec-outils__liste.ec-cascade > li { opacity: 0; transform: translateX(14px); transition: opacity .5s ease, transform .55s cubic-bezier(.2, .9, .3, 1); transition-delay: calc(var(--i) * 70ms); }
.ec-outils__liste.ec-cascade.is-vue > li { opacity: 1; transform: none; }

/* ── L'accompagnement : quatre cartes en mosaïque (cf. views/ecole-plus.js) ──
   À gauche, le CGP partenaire (Adrien posé sur le bord bas de sa carte) puis
   les lives du mois ; à droite, le coaching avec Sonny en grande colonne (son
   titre en haut, la visio sur tout le bas) ; dessous, sur toute la largeur,
   les cinq coachs experts. Des cartes claires, beaucoup d'air dedans ; elles
   arrivent l'une après l'autre. Ce qui bouge reste dans sa carte. */
.ec-acc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; max-width: 1080px; margin: 0 auto; }
.ec-acc__carte {
  --px: 30px; --py: 30px;
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 24px; min-width: 0;
  padding: var(--py) var(--px); border-radius: 26px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(21, 64, 50, .08);
  box-shadow: 0 26px 52px -38px rgba(6, 40, 30, .5);
}
.ec-acc__carte--cgp { grid-column: 1 / span 7; grid-row: 1; }
.ec-acc__carte--coaching { grid-column: 8 / span 5; grid-row: 1 / span 2; }
.ec-acc__carte--lives { grid-column: 1 / span 7; grid-row: 2; }
.ec-acc__carte--coachs { grid-column: 1 / -1; grid-row: 3; }
.ec-acc.ec-cascade > .ec-acc__carte { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .6s cubic-bezier(.2, .9, .3, 1); transition-delay: calc(var(--i, 0) * 110ms); }
.ec-acc.ec-cascade.is-vue > .ec-acc__carte { opacity: 1; transform: none; }
.ec-acc__txt { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ec-acc__txt--centre { justify-items: center; text-align: center; }
.ec-acc__txt--centre p { max-width: 520px; }
.ec-acc__tag {
  display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 5px 11px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green3); background: rgba(43, 196, 138, .12);
}
.ec-acc__txt--centre .ec-acc__tag { justify-self: center; }
.ec-acc__tag .cm-ico { width: 13px; height: 13px; }
.ec-acc__txt h3 { margin: 2px 0 0; font-size: 21px; line-height: 1.25; letter-spacing: -.3px; text-wrap: balance; }
.ec-acc__txt p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.ec-acc__txt p strong { color: var(--text); }

/* Des ondes qui parlent (la visio, les lives, le lecteur de la plateforme). */
.ec-ondes { display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.ec-ondes i { width: 3px; height: 100%; border-radius: 2px; background: #5BE3AC; transform: scaleY(.35); animation: ec-onde 1s ease-in-out infinite; }
.ec-ondes i:nth-child(2) { animation-delay: -.35s; }
.ec-ondes i:nth-child(3) { animation-delay: -.7s; }
.ec-ondes i:nth-child(4) { animation-delay: -.2s; }
.ec-ondes i:nth-child(5) { animation-delay: -.55s; }
@keyframes ec-onde { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* Le CGP : le texte à gauche ; à droite, Adrien posé sur le bord bas de la carte, qui sort de son fond
   vers le haut (son ombre gardée), la pastille ORIAS sur sa chemise. */
.ec-acc__carte--cgp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); column-gap: 20px; align-items: center; min-height: 312px; padding-bottom: 0; }
.ec-acc__carte--cgp .ec-acc__txt { padding-bottom: var(--py); }
.ec-cgp { position: relative; align-self: stretch; min-height: 280px; margin: 0 calc(-1 * var(--px)) 0 0; }
.ec-cgp__fond {
  position: absolute; left: 4%; right: calc(var(--px) - 4px); bottom: 0; height: 64%; border-radius: 26px 26px 0 0;
  background: radial-gradient(90% 85% at 50% 100%, rgba(43, 196, 138, .35), transparent 70%), linear-gradient(180deg, #EAF8F1, #C8ECDB);
}
.ec-cgp__photo {
  position: absolute; left: calc(50% - var(--px) / 2 + 4px); bottom: 0; width: auto; height: calc(100% - 26px); max-height: 286px; max-width: none;
  transform: translateX(-50%); -webkit-user-drag: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%); mask-image: linear-gradient(90deg, transparent, #000 13%);
}
.ec-cgp__badge {
  position: absolute; left: calc(50% - var(--px) / 2 + 4px); bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 9px; border-radius: 999px; white-space: nowrap; background: #fff;
  font-size: 11.5px; font-weight: 800; color: var(--green3); box-shadow: 0 10px 22px -12px rgba(6, 40, 30, .5), 0 0 0 1px rgba(29, 158, 117, .16);
}
.ec-cgp__badge .cm-ico { width: 14px; height: 14px; color: var(--green); }
/* Quand la carte arrive, Adrien monte de son fond. */
.ec-acc.ec-cascade .ec-cgp__photo { opacity: 0; translate: 0 22%; transition: opacity .6s ease, translate 1s cubic-bezier(.2, .9, .3, 1); transition-delay: .3s; }
.ec-acc.ec-cascade.is-vue .ec-cgp__photo { opacity: 1; translate: 0 0; }

/* Le coaching : le titre en haut, la visio sur tout le bas de la carte (bord à bord). */
.ec-acc__carte--coaching { padding-bottom: 0; }
.ec-acc__carte--coaching .ec-visio { flex: 1 1 auto; min-height: 320px; margin: 0 calc(-1 * var(--px)); }
.ec-visio {
  position: relative; overflow: hidden; container: visio / inline-size;
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(43, 196, 138, .35), transparent 70%),
    radial-gradient(120% 100% at 25% 10%, #2D6B58 0%, #123F33 55%, #0B2A22 100%);
}
.ec-visio__halo {
  position: absolute; left: 50%; bottom: 6%; width: min(78%, 360px); aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(91, 227, 172, .32), transparent); animation: ec-parle 2.6s ease-in-out infinite;
}
@keyframes ec-parle { 50% { transform: translateX(-50%) scale(1.09); opacity: .7; } }
.ec-visio__sonny {
  position: absolute; left: 50%; bottom: 0; height: 90%; max-height: 440px; width: auto; max-width: none; transform: translateX(-50%);
  transform-origin: 50% 100%; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35)); -webkit-user-drag: none; pointer-events: none;
  animation: ec-respire 6s ease-in-out infinite;
}
@keyframes ec-respire { 50% { transform: translateX(-50%) scale(1.015); } }
.ec-visio__etat, .ec-visio__nom {
  position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(4, 20, 15, .5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ec-visio__etat { top: 16px; left: 16px; }
.ec-visio__etat i { width: 7px; height: 7px; border-radius: 50%; background: #F0524B; box-shadow: 0 0 0 3px rgba(240, 82, 75, .3); animation: fo-clignote 1.6s ease-in-out infinite; }
.ec-visio__etat b { padding-left: 7px; border-left: 1px solid rgba(255, 255, 255, .25); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ec-visio__nom { left: 16px; bottom: 16px; }
.ec-visio__toi {
  position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: clamp(62px, 22cqi, 96px); height: auto; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 12px; color: rgba(255, 255, 255, .78); background: linear-gradient(160deg, #3F8A74, #1B5C49); border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .55);
}
.ec-visio__silhouette { display: block; width: 52%; margin-top: 18%; }
.ec-visio__silhouette svg { display: block; width: 100%; height: auto; }
.ec-visio__sous-titres { position: absolute; left: 50%; bottom: calc(30px + .75 * clamp(62px, 22cqi, 96px)); width: max-content; max-width: calc(100% - 40px); transform: translateX(-50%); text-align: center; }
.ec-visio__parole { display: inline-block; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; line-height: 1.4; color: #fff; background: rgba(4, 16, 12, .66); }
.ec-visio__parole.is-dite { animation: ec-sous-titre .5s ease both; }
@keyframes ec-sous-titre { from { opacity: 0; transform: translateY(6px); } }
.ec-visio__barre { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; }
.ec-visio__bouton {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ec-visio__bouton .cm-ico { width: 15px; height: 15px; }
.ec-visio__bouton.is-fin { background: #E5484D; }
.ec-visio__bouton.is-fin .cm-ico { transform: rotate(135deg); }
/* Trop étroite pour tout : la barre d'appel s'efface (le nom, « Toi » et les sous-titres restent). */
@container visio (max-width: 380px) {
  .ec-visio__barre { display: none; }
  .ec-visio__parole { font-size: 12px; }
}

/* Les lives du mois : trois affiches, une « en direct » à la fois (pastille rouge qui palpite, ondes). */
.ec-lives { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ec-live { display: grid; justify-items: center; gap: 12px; min-width: 0; text-align: center; }
.ec-live__affiche {
  position: relative; width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-radius: 18px;
  background: var(--fond); box-shadow: inset 0 0 0 1px rgba(21, 64, 50, .07);
  transition: transform .45s cubic-bezier(.2, .9, .3, 1), box-shadow .45s ease;
}
.ec-live__ico {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; color: var(--accent);
  background: rgba(255, 255, 255, .78); box-shadow: 0 12px 24px -14px rgba(6, 40, 30, .5); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}
.ec-live__ico .cm-ico { width: 24px; height: 24px; }
.ec-live__pastille {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--encre); background: rgba(255, 255, 255, .72);
  transition: color .3s ease, background-color .3s ease;
}
.ec-live__pastille i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; }
.ec-live__ondes { position: absolute; right: 12px; bottom: 12px; height: 14px; opacity: 0; transition: opacity .3s ease; }
.ec-live__ondes i { background: var(--accent); }
.ec-live__titre { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; }
.ec-live.is-direct .ec-live__affiche { transform: translateY(-3px); box-shadow: 0 18px 30px -20px rgba(6, 40, 30, .6), inset 0 0 0 2px rgba(240, 82, 75, .5); }
.ec-live.is-direct .ec-live__ico { transform: scale(1.06); }
.ec-live.is-direct .ec-live__pastille { color: #fff; background: linear-gradient(135deg, #F0524B, #D63A33); }
.ec-live.is-direct .ec-live__pastille i { opacity: 1; background: #fff; animation: fo-clignote 1.2s ease-in-out infinite; }
.ec-live.is-direct .ec-live__ondes { opacity: 1; }

/* Les coachs experts : cinq personnages posés sur le bas de la carte, leur compétence au-dessus. */
.ec-acc__carte--coachs { gap: 28px; padding-bottom: 0; }
.ec-coachs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.ec-coach { display: grid; justify-items: center; gap: 16px; min-width: 0; }
.ec-coach__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff;
  box-shadow: 0 12px 24px -16px rgba(6, 40, 30, .55), inset 0 0 0 1px rgba(21, 64, 50, .07);
  animation: ec-flotte-badge 4.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.85s);
}
@keyframes ec-flotte-badge { 50% { transform: translateY(-4px); } }
.ec-coach__ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--accent); background: var(--fond); }
.ec-coach__ico .cm-ico { width: 16px; height: 16px; }
.ec-coach__competence { display: grid; text-align: left; line-height: 1.15; }
.ec-coach__competence small { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.ec-coach__competence b { font-size: 14.5px; color: var(--encre); white-space: nowrap; }
.ec-coach__scene {
  position: relative; width: 100%; aspect-ratio: 1 / 1.04; overflow: hidden; border-radius: 24px 24px 0 0; background: var(--fond);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
/* La lumière tombe sur le personnage, comme sur une scène. */
.ec-coach__scene::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(56% 46% at 50% 22%, rgba(255, 255, 255, .9), transparent 72%);
}
/* Le personnage en pixel art : net à toutes les tailles, qui « respire » à la façon d'un jeu (deux images). */
.ec-coach__perso {
  position: absolute; left: 0; right: 0; bottom: 4%; width: 64%; height: auto; margin: 0 auto; image-rendering: pixelated;
  transform-origin: 50% 100%; animation: ec-sprite 1.3s steps(1) infinite; animation-delay: calc(var(--i, 0) * -.26s);
  -webkit-user-drag: none; pointer-events: none;
}
@keyframes ec-sprite { 50% { scale: 1 1.025; } }
/* L'arrivée : les personnages montent l'un après l'autre, leur compétence se pose ensuite. */
.ec-coachs.ec-cascade .ec-coach__perso { opacity: 0; translate: 0 26%; transition: opacity .5s ease, translate .9s cubic-bezier(.2, .9, .3, 1.12); transition-delay: calc(var(--i, 0) * 130ms + 120ms); }
.ec-coachs.ec-cascade.is-vue .ec-coach__perso { opacity: 1; translate: 0 0; }
.ec-coachs.ec-cascade .ec-coach__badge { opacity: 0; scale: .7; transition: opacity .4s ease, scale .55s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * 130ms + 520ms); }
.ec-coachs.ec-cascade.is-vue .ec-coach__badge { opacity: 1; scale: 1; }

/* ── La communauté privée : les points à gauche, le téléphone incliné à droite, au centre de la page ── */
.ec-wa { display: grid; grid-template-columns: minmax(0, 360px) auto; justify-content: center; align-items: center; gap: 88px; max-width: 980px; margin: 0 auto; }
.ec-wa__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.ec-wa__points li { display: flex; align-items: flex-start; gap: 16px; }
.ec-wa__point-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.ec-wa__point-ico .cm-ico { width: 21px; height: 21px; }
.ec-wa__point-txt { display: grid; gap: 4px; padding-top: 3px; min-width: 0; }
.ec-wa__point-txt strong { font-size: 16.5px; line-height: 1.3; }
.ec-wa__point-txt span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.ec-wa__points.ec-cascade > li { opacity: 0; transform: translateX(-14px); transition: opacity .5s ease, transform .55s cubic-bezier(.2, .9, .3, 1); transition-delay: calc(var(--i, 0) * 110ms); }
.ec-wa__points.ec-cascade.is-vue > li { opacity: 1; transform: none; }

/* Le téléphone en 3D, immobile : bien incliné, l'écran vers le haut ; sa tranche derrière, son ombre au sol.
   L'écran et le fil gardent la 3D (rien ne les aplatit) : les bulles sortent de l'écran et passent par-dessus
   ses bords (voulu : la conversation sort du téléphone), sans jamais sortir de la partie. */
.ec-tel { margin: 0; display: grid; justify-items: center; gap: 26px; }
.ec-tel__scene { --tel-l: 300px; --tel-h: 600px; position: relative; width: var(--tel-l); height: var(--tel-h); perspective: 1500px; perspective-origin: 50% 30%; }
.ec-tel__scene::after {
  content: ''; position: absolute; left: 4%; right: -2%; bottom: -30px; height: 50px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 40, 30, .34), transparent); filter: blur(4px); transform: rotate(-5deg);
}
.ec-tel__corps { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(27deg) rotateY(-22deg) rotateZ(6deg); }
.ec-tel__tranche { position: absolute; inset: 0; border-radius: 50px; background: linear-gradient(150deg, #44524D, #0B1210 70%); transform: translateZ(-14px); }
.ec-tel__coque {
  position: absolute; inset: 0; padding: 11px; border-radius: 50px; transform-style: preserve-3d;
  background: linear-gradient(145deg, #25312D, #0B1210 60%, #1A2420);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08), inset 0 0 0 4px rgba(0, 0, 0, .35);
}
.ec-tel__ecran { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 40px; background: #EFEAE2; transform-style: preserve-3d; }
.ec-tel__ilot { position: absolute; z-index: 2; top: 10px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%); border-radius: 999px; background: #0B1210; }
.ec-wa__tete { display: flex; align-items: center; gap: 10px; padding: 46px 16px 13px; border-radius: 40px 40px 0 0; color: #fff; background: linear-gradient(135deg, #14755C, #1D9E75); }
.ec-wa__avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.ec-wa__avatar .cm-ico { width: 18px; height: 18px; }
.ec-wa__nom { display: grid; gap: 1px; min-width: 0; }
.ec-wa__nom strong, .ec-wa__nom span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ec-wa__nom strong { font-size: 14.5px; }
.ec-wa__nom span { font-size: 11px; opacity: .82; }
.ec-wa__bande { flex: none; background: #fff; border-bottom: 1px solid rgba(21, 64, 50, .08); }
.ec-wa__onglets { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; pointer-events: none; }
.ec-wa__onglets::-webkit-scrollbar { display: none; }
.ec-wa__onglet {
  flex: none; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(21, 64, 50, .12); background: #fff;
  font-size: 11.5px; font-weight: 700; color: var(--muted); transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}
.ec-wa__onglet.is-on { color: #fff; background: var(--grad); border-color: transparent; }
.ec-wa__fil {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 9px; padding: 14px 12px; transform-style: preserve-3d;
  background-color: #EFEAE2; background-image: radial-gradient(rgba(21, 64, 50, .07) 1px, transparent 1.3px); background-size: 14px 14px;
}
.ec-wa__jour { align-self: center; margin-bottom: var(--sous-le-jour, 34px); padding: 4px 10px; border-radius: 8px; font-size: 10.5px; font-weight: 700; color: #5B6B66; background: rgba(255, 255, 255, .88); }
/* Les bulles sortent de l'écran (plus loin pour ta question) et débordent sur le bord du téléphone, de leur
   côté (à gauche les réponses, à droite ta question), avec leur ombre portée sur l'écran. */
.ec-wa__msg {
  --z: 46px; --deborde: 30px;
  align-self: flex-start; max-width: 86%; display: grid; gap: 3px; margin-left: calc(-1 * var(--deborde)); padding: 7px 10px 6px;
  border-radius: 12px 12px 12px 4px; font-size: 12.5px; line-height: 1.45; color: #1D2A26; background: #fff; transform: translateZ(var(--z));
  box-shadow: 0 24px 30px -16px rgba(6, 40, 30, .55), 0 2px 4px rgba(6, 40, 30, .08);
}
.ec-wa__msg.is-toi { --z: 72px; align-self: flex-end; margin-left: 0; margin-right: calc(-1 * var(--deborde)); border-radius: 12px 12px 4px 12px; background: #D9FDD3; }
.ec-wa__qui { font-size: 11px; font-weight: 800; }
.ec-wa__heure { justify-self: end; display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; color: #7A8A85; }
.ec-wa__vu { display: inline-flex; color: #34B7F1; }
.ec-wa__vu svg { width: 13px; height: 13px; display: block; }
/* Les messages s'écrivent l'un après l'autre, une fois le téléphone à l'écran (et à chaque groupe). */
.ec-tel:not(.is-vu) .ec-wa__msg { opacity: 0; }
.ec-tel.is-vu .ec-wa__msg { animation: ec-msg-3d .8s cubic-bezier(.2, .9, .3, 1.15) backwards; animation-delay: calc(var(--k, 0) * var(--pas, 1100ms) + 200ms); }
@keyframes ec-msg-3d { from { opacity: 0; transform: translateZ(0) translateY(10px) scale(.94); } }
.ec-wa__saisie { flex: none; display: flex; align-items: center; gap: 8px; margin: 0 10px 14px; padding: 8px 8px 8px 14px; border-radius: 999px; background: #fff; font-size: 12px; color: #8B9893; }
.ec-wa__saisie > span:first-child { flex: 1; min-width: 0; }
.ec-wa__envoyer { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--grad); }
.ec-wa__envoyer svg { width: 14px; height: 14px; }
.ec-tel figcaption { font-size: 11.5px; color: var(--muted-2); }

/* ── L'espace de formation : une grande fenêtre d'ordinateur, ses trois points ─────
   Les formations à gauche (les leçons s'ouvrent sous la formation choisie), à
   droite le lecteur — Sonny devant la diapo de la leçon — puis la formation.
   Une souris y clique les formations l'une après l'autre. */
.ec-mac {
  position: relative; max-width: 1180px; margin: 0 auto; overflow: hidden; border-radius: 18px; background: #fff;
  border: 1px solid rgba(21, 64, 50, .1); box-shadow: 0 44px 84px -48px rgba(6, 40, 30, .62), 0 2px 6px rgba(6, 40, 30, .05);
}
.ec-mac__barre {
  position: relative; display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px;
  background: linear-gradient(180deg, #F8FAF9, #EEF2F0); border-bottom: 1px solid rgba(21, 64, 50, .08);
}
.ec-mac__points { position: absolute; left: 16px; top: 50%; display: flex; gap: 8px; transform: translateY(-50%); }
.ec-mac__points i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14); }
.ec-mac__points i:nth-child(2) { background: #FEBC2E; }
.ec-mac__points i:nth-child(3) { background: #28C840; }
.ec-mac__adresse {
  display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 150px); padding: 5px 16px; border-radius: 9px; overflow: hidden;
  font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; background: rgba(21, 64, 50, .06);
}
.ec-mac__adresse > span { display: inline-flex; flex: none; }
.ec-mac__adresse svg { width: 12px; height: 12px; }
.ec-mac__corps { position: relative; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.ec-mac__menu {
  position: absolute; inset: 0 auto 0 0; width: 268px; display: flex; flex-direction: column; gap: 12px; padding: 20px 12px;
  border-right: 1px solid rgba(21, 64, 50, .08); background: #FAFCFB;
}
.ec-mac__rubrique { padding: 0 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.ec-mac__modules { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 3px; }
.ec-mac__modules > li { display: flex; flex-direction: column; min-height: 0; }
.ec-mac__modules > li:has(.ec-mac__lecons) { flex: 1 1 0; }
.ec-mac__onglet {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; text-align: left; color: var(--text); background: transparent; transition: background-color .45s ease, box-shadow .45s ease, transform .2s ease;
}
.ec-mac__onglet:hover { background: rgba(21, 64, 50, .05); }
.ec-mac__onglet.is-on { background: #fff; box-shadow: 0 8px 18px -12px rgba(6, 40, 30, .45), inset 0 0 0 1px rgba(29, 158, 117, .22); }
.ec-mac__onglet.is-presse { transform: scale(.97); background: rgba(21, 64, 50, .07); }
.ec-mac__ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--accent); background: var(--fond); }
.ec-mac__ico .cm-ico { width: 16px; height: 16px; }
.ec-mac__onglet-txt { display: grid; gap: 1px; min-width: 0; }
.ec-mac__onglet-txt strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.3; }
.ec-mac__titre-court { display: none; }
.ec-mac__onglet-txt > span { font-size: 11px; color: var(--muted); }
/* Les leçons, sous la formation choisie : un filet vert à gauche, la leçon montrée en vert pâle. */
.ec-mac__lecons {
  position: relative; list-style: none; flex: 1 1 0; min-height: 56px; margin: 4px 2px 6px 26px; padding: 0 2px 0 12px; display: grid; align-content: start; gap: 1px;
  overflow-y: auto; scrollbar-width: none; border-left: 2px solid rgba(29, 158, 117, .22);
}
.ec-mac__lecons::-webkit-scrollbar { display: none; }
.ec-mac__lecon {
  width: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border: 0; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 12px; line-height: 1.38; text-align: left; color: var(--muted); background: transparent; transition: background-color .2s ease, color .2s ease;
}
.ec-mac__lecon:hover { color: var(--text); background: rgba(21, 64, 50, .04); }
.ec-mac__lecon.is-on { color: var(--text); font-weight: 600; background: rgba(43, 196, 138, .1); }
.ec-mac__num { flex: none; padding-top: 3px; font-family: var(--pixel); font-size: 7.5px; color: var(--green); }
.ec-mac__lecon-t { min-width: 0; }
.ec-mac__contenu { grid-column: 2; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 22px 24px 24px; }
/* Le lecteur : la diapo de la leçon (son titre, son visuel) et Sonny qui la présente. */
.ec-mac__lecteur {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; cursor: pointer; background: #EEF3F1;
  box-shadow: inset 0 0 0 1px rgba(21, 64, 50, .06); container: lecteur / inline-size; -webkit-tap-highlight-color: transparent;
}
/* Une diapo, avec sa couleur : la nouvelle arrive en fondu par-dessus l'ancienne (cf. peindreLecteur). */
.ec-mac__scene { position: absolute; inset: 0; color: var(--encre); background: var(--fond); }
.ec-mac__lecteur:focus-visible { outline: 3px solid rgba(43, 196, 138, .55); outline-offset: 3px; }
/* La diapo s'arrête au-dessus des commandes (le bas des commandes + le bouton lecture), avec de l'air. */
.ec-mac__diapo {
  position: absolute; left: 6.5%; top: 9%; bottom: calc(6% + clamp(26px, 4.6cqi, 38px) + max(8px, 2.4cqi)); width: 54%;
  display: flex; flex-direction: column; gap: 3cqi; min-width: 0;
}
.ec-mac__chapitre {
  display: inline-flex; align-items: center; gap: 1.4cqi; font-size: clamp(9px, 1.45cqi, 12.5px); font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.ec-mac__chapitre .cm-ico { width: clamp(12px, 2.2cqi, 18px); height: clamp(12px, 2.2cqi, 18px); }
.ec-mac__titre-lecon {
  flex: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: clamp(15px, 4.1cqi, 33px); line-height: 1.16; letter-spacing: -.02em; text-wrap: balance;
}
/* Le graphique prend la place que le titre laisse au-dessus des commandes (petit lecteur : petit graphique),
   posé en bas à gauche (preserveAspectRatio="xMinYMax meet") : il ne touche jamais le bouton lecture. */
.ec-mac__visuel { flex: 1 1 0; min-height: 0; display: block; width: 66%; color: var(--accent); }
.ec-mac__visuel--anneau { width: 30%; }
.ec-mac__visuel svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Le plus petit lecteur (iPhone SE) : le titre en entier sur quatre lignes au plus, sans le graphique. */
@container lecteur (max-width: 300px) {
  .ec-mac__titre-lecon { font-size: 12.5px; -webkit-line-clamp: 4; }
  .ec-mac__visuel { display: none; }
}
.ec-diapo__aire { fill: currentColor; opacity: .14; }
.ec-diapo__trait { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ec-trace 1.3s .25s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes ec-trace { to { stroke-dashoffset: 0; } }
.ec-diapo__barre { fill: currentColor; transform-box: fill-box; transform-origin: 50% 100%; animation: ec-pousse .75s cubic-bezier(.2, .9, .3, 1.15) both; animation-delay: calc(var(--k, 0) * 90ms + 250ms); }
.ec-diapo__barre:nth-child(-n+4) { opacity: .55; }
@keyframes ec-pousse { from { transform: scaleY(0); } }
.ec-diapo__anneau { fill: none; stroke: currentColor; stroke-width: 15; opacity: .14; }
.ec-diapo__part { fill: none; stroke: currentColor; stroke-width: 15; stroke-dasharray: var(--part) 100; stroke-dashoffset: calc(-1 * var(--debut)); transform: rotate(-90deg); transform-origin: 50% 50%; animation: ec-part .9s .25s ease both; }
.ec-diapo__part.is-2 { opacity: .62; }
.ec-diapo__part.is-3 { opacity: .34; }
@keyframes ec-part { from { stroke-dasharray: 0 100; } }
.ec-mac__sonny {
  position: absolute; right: 3%; bottom: 0; height: 93%; width: auto; max-width: none; transform-origin: 50% 100%;
  filter: drop-shadow(0 18px 26px rgba(6, 40, 30, .28)); -webkit-user-drag: none; pointer-events: none;
}
.ec-mac__parle {
  position: absolute; right: 3.5%; top: 6.5%; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px;
  font-size: clamp(9.5px, 1.5cqi, 12px); font-weight: 700; color: #fff; background: rgba(4, 20, 15, .55);
}
.ec-mac__controles { position: absolute; left: 6.5%; right: 6.5%; bottom: 6%; display: flex; align-items: center; gap: 12px; }
.ec-mac__lire {
  flex: none; display: grid; place-items: center; width: clamp(26px, 4.6cqi, 38px); aspect-ratio: 1; border-radius: 50%; color: #fff;
  background: var(--accent); box-shadow: 0 8px 18px -8px rgba(6, 40, 30, .55);
}
.ec-mac__lire svg { width: 44%; height: 44%; margin-left: 8%; }
.ec-mac__progression { flex: 1; height: 5px; overflow: hidden; border-radius: 5px; background: rgba(21, 64, 50, .12); }
.ec-teinte--nuit .ec-mac__progression { background: rgba(255, 255, 255, .16); }
.ec-mac__progression i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); animation: ec-progression 9s linear forwards; }
@keyframes ec-progression { to { width: 62%; } }
/* La diapo arrive : le titre et le visuel glissent de côté, Sonny monte. */
.ec-mac__scene.is-neuf .ec-mac__diapo { animation: ec-diapo .8s .12s cubic-bezier(.2, .9, .3, 1) both; }
.ec-mac__scene.is-neuf .ec-mac__sonny { animation: ec-sonny-monte .9s .08s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes ec-diapo { from { opacity: 0; transform: translateX(-20px); } }
@keyframes ec-sonny-monte { from { opacity: 0; transform: translateY(9%); } }
.ec-mac__note {
  position: absolute; z-index: 3; left: 14px; right: 14px; top: 14px; padding: 10px 13px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.45; color: #fff; background: rgba(7, 24, 19, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ec-mac__note.is-neuf { animation: ec-note .35s ease; }
@keyframes ec-note { from { opacity: 0; transform: translateY(-6px); } }
.ec-mac__infos { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ec-mac__rang { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.ec-mac__infos h3 { margin: 3px 0 4px; font-size: 19px; letter-spacing: -.2px; }
.ec-mac__infos p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ec-mac__compte { flex: none; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: var(--green3); background: rgba(43, 196, 138, .12); }
/* La souris de la démonstration : elle glisse d'une formation à l'autre et clique (un rond qui s'ouvre). */
.ec-mac__souris {
  position: absolute; z-index: 4; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; pointer-events: none; opacity: 0;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); transition: transform .95s cubic-bezier(.45, .05, .2, 1), opacity .4s ease;
}
.ec-mac__souris svg { display: block; width: 100%; height: 100%; transition: transform .15s ease; transform-origin: 20% 10%; }
.ec-mac__souris::before {
  content: ''; position: absolute; left: -7px; top: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(43, 196, 138, .45); opacity: 0; transform: scale(.3);
}
.ec-mac.a-la-souris .ec-mac__souris.is-placee { opacity: 1; }
.ec-mac__souris.sans-glisser { transition: none; }
.ec-mac__souris.is-clic svg { transform: scale(.84); }
.ec-mac__souris.is-clic::before { animation: ec-clic .5s ease-out; }
@keyframes ec-clic { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }

/* Une bande ou une liste qui défile (cf. ecole-plus.js, fondus) : un fondu du côté où il reste à
   voir, jamais un onglet ou une leçon coupés net au bord. Rien de caché : pas de masque du tout. */
.ec-defile-x.a-debut, .ec-defile-y.a-debut { --debut: 28px; }
.ec-defile-x.a-fin, .ec-defile-y.a-fin { --fin: 28px; }
.ec-defile-x:is(.a-debut, .a-fin) {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--debut, 0px), #000 calc(100% - var(--fin, 0px)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--debut, 0px), #000 calc(100% - var(--fin, 0px)), transparent);
}
.ec-defile-y:is(.a-debut, .a-fin) {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 var(--debut, 0px), #000 calc(100% - var(--fin, 0px)), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 var(--debut, 0px), #000 calc(100% - var(--fin, 0px)), transparent);
}

/* Tablette : les cartes de l'accompagnement passent pleine largeur (la visio sous son titre, moins haute),
   le téléphone sous ses points, la fenêtre de formation avec ses formations en bande au-dessus. */
@media (max-width: 1000px) {
  .ec-acc__carte--cgp, .ec-acc__carte--coaching, .ec-acc__carte--lives, .ec-acc__carte--coachs { grid-column: 1 / -1; grid-row: auto; }
  .ec-acc__carte--coaching .ec-visio { flex: none; min-height: 0; height: auto; aspect-ratio: 16 / 8.5; }
  .ec-wa { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 56px; }
  .ec-wa__points { max-width: 520px; }
  .ec-mac__corps { grid-template-columns: minmax(0, 1fr); }
  .ec-mac__menu { position: static; width: auto; gap: 0; padding: 12px 0 12px 12px; border-right: 0; border-bottom: 1px solid rgba(21, 64, 50, .08); }
  .ec-mac__rubrique, .ec-mac__lecons { display: none; }
  .ec-mac__modules { flex-direction: row; gap: 6px; padding-right: 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .ec-mac__modules::-webkit-scrollbar { display: none; }
  .ec-mac__modules > li, .ec-mac__modules > li:has(.ec-mac__lecons) { flex: none; }
  .ec-mac__onglet { width: auto; padding: 6px 12px 6px 6px; }
  .ec-mac__onglet-txt strong { display: block; white-space: nowrap; text-overflow: ellipsis; }
  .ec-mac__titre-long { display: none; }
  .ec-mac__titre-court { display: inline; }
  .ec-mac__contenu { grid-column: 1; }
}
/* Téléphone : tout s'empile, les marges se resserrent un peu. */
@media (max-width: 760px) {
  .ec-acc { gap: 16px; }
  .ec-acc__carte { --px: 20px; --py: 24px; gap: 20px; border-radius: 22px; }
  .ec-acc__txt h3 { font-size: 18.5px; }
  .ec-acc__carte--cgp { grid-template-columns: minmax(0, 1fr); row-gap: 8px; min-height: 0; }
  .ec-acc__carte--cgp .ec-acc__txt { padding-bottom: 0; }
  .ec-cgp { height: 260px; min-height: 0; margin: 0 calc(-1 * var(--px)); }
  .ec-cgp__fond { left: var(--px); right: var(--px); height: 62%; }
  .ec-cgp__photo, .ec-cgp__badge { left: 50%; }
  .ec-cgp__photo { height: calc(100% - 12px); }
  .ec-acc__carte--coaching .ec-visio { aspect-ratio: 4 / 3.4; }
  .ec-visio__etat { top: 12px; left: 12px; }
  .ec-visio__nom { left: 12px; bottom: 12px; }
  .ec-visio__toi { right: 12px; bottom: 12px; }
  .ec-lives { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ec-live { grid-template-columns: 104px minmax(0, 1fr); align-items: center; justify-items: start; gap: 16px; text-align: left; }
  .ec-live__affiche { border-radius: 14px; }
  .ec-live__ico { width: 40px; height: 40px; border-radius: 12px; }
  .ec-live__ico .cm-ico { width: 19px; height: 19px; }
  .ec-live__pastille { left: 6px; top: 6px; padding: 3px 6px; font-size: 8.5px; }
  .ec-live__ondes { right: 8px; bottom: 8px; height: 11px; }
  .ec-acc__carte--coachs { padding-bottom: var(--py); }
  .ec-coachs { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 12px; }
  .ec-coach { flex: 0 0 calc((100% - 24px) / 3); gap: 12px; }
  .ec-coach__scene { border-radius: 18px; }
  .ec-coach__badge { gap: 6px; padding: 4px 10px 4px 4px; }
  .ec-coach__ico { width: 26px; height: 26px; }
  .ec-coach__ico .cm-ico { width: 14px; height: 14px; }
  .ec-coach__competence small { font-size: 8px; }
  .ec-coach__competence b { font-size: 12.5px; }
  .ec-wa__point-txt strong { font-size: 15.5px; }
  .ec-tel__corps { transform: rotateX(22deg) rotateY(-15deg) rotateZ(4deg); }
  .ec-wa__msg { --deborde: 22px; }
  .ec-wa__fil { --sous-le-jour: 28px; }
  .ec-mac { border-radius: 16px; }
  .ec-mac__barre { height: 40px; }
  .ec-mac__adresse { max-width: calc(100% - 112px); padding: 4px 10px; font-size: 11px; }
  .ec-mac__ico { width: 30px; height: 30px; border-radius: 9px; }
  .ec-mac__onglet-txt > span { display: none; }
  .ec-mac__onglet-txt strong { max-width: 170px; }
  .ec-mac__contenu { gap: 14px; padding: 14px; }
  .ec-mac__lecteur { border-radius: 12px; }
  .ec-mac__diapo { left: 6%; width: 56%; }
  .ec-mac__infos h3 { font-size: 16px; }
}
@media (max-width: 380px) {
  /* Un peu plus haut qu'un iPhone : chaque conversation tient jusqu'à sa dernière bulle, même incliné. */
  .ec-tel__scene { --tel-l: 268px; --tel-h: 598px; }
  .ec-wa__msg { --deborde: 14px; }
  .ec-tel__coque, .ec-tel__tranche { border-radius: 44px; }
  .ec-tel__ecran { border-radius: 34px; }
  .ec-wa__tete { border-radius: 34px 34px 0 0; }
  .ec-coach { flex-basis: calc((100% - 24px) / 3); }
  .ec-coach__badge { padding-right: 8px; }
  .ec-coach__competence small { display: none; }
}
/* Moins d'animations demandées : tout est posé, rien ne flotte ni ne palpite. */
@media (prefers-reduced-motion: reduce) {
  .ec-ondes i, .ec-visio__halo, .ec-visio__sonny, .ec-coach__badge, .ec-coach__perso, .ec-visio__etat i, .ec-live.is-direct .ec-live__pastille i { animation: none; }
  .ec-tel.is-vu .ec-wa__msg { animation: none; }
  .ec-tel:not(.is-vu) .ec-wa__msg { opacity: 1; }
  .ec-mac__scene.is-neuf .ec-mac__diapo, .ec-mac__scene.is-neuf .ec-mac__sonny, .ec-mac__progression i { animation: none; }
  .ec-diapo__barre, .ec-diapo__part { animation: none; }
  .ec-diapo__trait { animation: none; stroke-dashoffset: 0; }
}

/* ── Les 90 premiers jours : la frise ──────────────────────────────────────
   Une sous-grille : le point, le repère de temps, le titre (une ligne), le
   sous-titre (deux lignes au plus) puis chaque point débloqué occupent la
   même rangée d'une étape à l'autre — tout s'aligne. Quand la frise arrive à
   l'écran, la ligne se dessine et les étapes apparaissent une à une. */
/* Les points et leurs repères (Jour 1, Semaine 1…) sont centrés dans leur
   colonne : la frise est centrée sur l'écran. Le texte dessous se lit de
   gauche à droite. Un large espace sépare les colonnes. */
.ec-tl {
  --ecart: 64px;
  position: relative; list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(var(--etapes), minmax(0, 1fr)); grid-template-rows: repeat(var(--rangs), auto); column-gap: var(--ecart);
}
.ec-tl::before {
  /* Du centre du premier point au centre du dernier. */
  content: ''; position: absolute; top: 17px; height: 2px;
  left: calc((100% - (var(--etapes) - 1) * var(--ecart)) / var(--etapes) / 2);
  right: calc((100% - (var(--etapes) - 1) * var(--ecart)) / var(--etapes) / 2);
  background: repeating-linear-gradient(90deg, rgba(29, 158, 117, .42) 0 6px, transparent 6px 12px);
  transform: scaleX(0); transform-origin: left center; transition: transform 1.3s cubic-bezier(.45, 0, .2, 1) .1s;
}
.ec-tl.is-vue::before { transform: none; }
.ec-tl__etape { position: relative; display: grid; grid-row: span var(--rangs); grid-template-rows: subgrid; align-content: start; justify-items: start; }
.ec-tl__point {
  position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%;
  font-family: var(--pixel); font-size: 8px; color: #fff; background: var(--grad);
  box-shadow: 0 0 0 6px var(--bg), 0 8px 18px -8px rgba(29, 158, 117, .8);
}
.ec-tl__etape.is-final .ec-tl__point {
  background: linear-gradient(135deg, #EBC86E, #C9A84C 60%, #A07F2C);
  box-shadow: 0 0 0 6px var(--bg), 0 8px 18px -8px rgba(201, 168, 76, .9);
}
.ec-tl__quand { justify-self: center; align-self: start; margin-bottom: 10px; padding: 4px 9px; border-radius: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--green3); background: rgba(43, 196, 138, .12); }
.ec-tl__quand:empty { visibility: hidden; }
.ec-tl__etape.is-final .ec-tl__quand { color: #8A6D1F; background: rgba(201, 168, 76, .16); }
.ec-tl__titre { max-width: 100%; margin: 0 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 17px; line-height: 1.35; letter-spacing: -.2px; }
.ec-tl__titre .cm-ico { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; color: var(--gold); }
.ec-tl__s {
  margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Un point débloqué : son icône, puis le titre et le détail. */
.ec-tl__item { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; }
.ec-tl__ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .92); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.ec-tl__ico .cm-ico { width: 15px; height: 15px; }
.ec-tl__txt { display: grid; gap: 4px; min-width: 0; }
.ec-tl__txt strong { font-size: 14px; line-height: 1.35; }
.ec-tl__txt span { font-size: 13px; line-height: 1.55; color: var(--muted); }
/* Le Jour 90 : son texte occupe la place du sous-titre et des points. */
.ec-tl__long { grid-row: 4 / span var(--long); margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
/* L'apparition, étape par étape : le point surgit, puis le texte, puis les points un à un. */
.ec-tl__point { opacity: 0; transform: scale(.3); transition: transform .55s cubic-bezier(.3, 1.5, .5, 1), opacity .3s ease; transition-delay: calc(var(--i) * 230ms); }
.ec-tl__etape > :not(.ec-tl__point) {
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .55s cubic-bezier(.2, .9, .3, 1); transition-delay: calc(var(--i) * 230ms + 120ms);
}
.ec-tl__etape > .ec-tl__item { transition-delay: calc(var(--i) * 230ms + 280ms + var(--j) * 100ms); }
.ec-tl.is-vue .ec-tl__point, .ec-tl.is-vue .ec-tl__etape > :not(.ec-tl__point) { opacity: 1; transform: none; }
/* L'accompagnement à vie ferme la partie ; la note « parcours indicatif » vient dessous. */
.ec-vie {
  display: flex; align-items: flex-start; gap: 18px; margin-top: 30px; padding: 22px 24px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .11), rgba(255, 255, 255, .72)); border: 1px solid rgba(29, 158, 117, .18);
}
.ec-vie__ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.ec-vie__ico .cm-ico { width: 24px; height: 24px; }
.ec-vie__quand { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--green); }
.ec-vie h3 { margin: 4px 0 6px; font-size: 17px; }
.ec-vie p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.ec-note { max-width: 680px; margin: 14px auto 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted-2); }

/* ── L'avis des membres : la vidéo et la carte de Sonny, à la même hauteur ── */
.ec-preuves { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 22px; margin-bottom: 30px; }
.ec-preuves.is-seul { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
/* Sans vidéo à côté, la carte prend la hauteur de son contenu. */
.ec-preuves.is-seul .ec-sonny-carte { container-type: inline-size; }
/* La carte de Sonny, comme la fiche du compte : un en-tête en dégradé
   (photo, nom, « Fondateur », élèves formés) ; juste dessous, ses titres ;
   en bas, bloquées contre les bords, la vitre Trustpilot et la vitre
   Google. Sa hauteur est celle de la vidéo : elle ne la pousse jamais.
   Quand la vidéo est moins haute (écran moyen), la carte se resserre
   d'elle-même (requêtes sur sa hauteur). */
.ec-sonny-carte {
  --rayon: 22px; --ecart-vitres: 7px;
  container: sonny-carte / size; overflow: hidden;
  display: flex; flex-direction: column; border-radius: var(--rayon); background: #fff;
  border: 1px solid rgba(21, 64, 50, .1);
  box-shadow: 0 24px 54px -26px rgba(15, 40, 32, .42), 0 2px 6px rgba(15, 40, 32, .05);
}
.ec-sonny-carte__tete {
  flex: none; display: flex; align-items: center; gap: 15px; padding: 16px 20px 14px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .3), rgba(43, 196, 138, .08) 55%, transparent 85%);
}
.ec-sonny-carte__photo {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  background: url('/coach.png') 47% 4% / 170% auto no-repeat, linear-gradient(160deg, #E8F7F0, #BFE9D6);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--green2), 0 10px 22px -10px rgba(29, 158, 117, .8);
}
.ec-sonny-carte__id { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* Le nom, et « Fondateur » à sa droite. */
.ec-sonny-carte__nom { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; }
.ec-sonny-carte__nom strong { font-size: 17px; letter-spacing: -.3px; line-height: 1.2; }
/* Dessous, en petit : les élèves formés. Le nombre et le texte partagent
   la même ligne de base, comme une phrase. */
.ec-sonny-carte__eleves { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.ec-rouleaux { font-size: 15px; font-weight: 800; color: var(--teal-deep); white-space: nowrap; }
/* Un chiffre : une case de la largeur exacte de son chiffre final (gardé,
   invisible, dans le flux) et, par-dessus, la bande 0-9 répétée qui tourne
   puis s'arrête pile sur lui. La case s'élargit un peu de chaque côté sans
   rien pousser (marges négatives) : un chiffre plus large qui passe n'est
   pas rogné. Pas d'overflow ici — il décalerait la ligne de base. */
.ec-rouleau {
  position: relative; display: inline-block; padding: 0 .3em; margin: 0 -.3em; line-height: 1.15;
  -webkit-clip-path: inset(0); clip-path: inset(0);
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
}
.ec-rouleau__fixe { visibility: hidden; }
.ec-rouleau__bande {
  position: absolute; top: 0; left: 0; right: 0; display: flex; flex-direction: column; align-items: center;
  transition: transform var(--duree, 1.2s) cubic-bezier(.17, .84, .26, 1.04); will-change: transform;
}
.ec-rouleau__bande > span { height: 1.15em; line-height: 1.15; }
.ec-rouleaux.is-pose .ec-rouleau__bande { transition: none; will-change: auto; }

/* Juste sous l'en-tête : ses titres et l'interview du Figaro, en petit,
   sans gras, une icône au trait, chacun sur une seule ligne — la taille
   suit la largeur de la carte pour que rien ne passe à la ligne. */
.ec-sonny-carte__titres {
  container: titres / inline-size;
  flex: none; list-style: none; margin: 0; padding: 17px 20px 14px; display: grid; gap: 10px;
}
.ec-sonny-carte__titres li {
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: clamp(10.5px, calc(3.7cqi - 1px), 12.5px); font-weight: 500; line-height: 1.4; color: var(--muted);
}
/* Si la police du site manque (police de secours plus large), on coupe proprement plutôt que de déborder. */
.ec-sonny-carte__titres li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ec-sonny-carte__titres .cm-ico { flex: none; width: 14px; height: 14px; color: var(--green); opacity: .75; }
/* Carte très étroite (petit téléphone) : on préfère passer à la ligne que couper. */
@container titres (max-width: 330px) { .ec-sonny-carte__titres li { white-space: normal; align-items: flex-start; } }
/* « Le Figaro » : un lien bleu, souligné au survol, qui ouvre l'article. */
.ec-sonny-carte__titres a.ec-sonny-carte__presse {
  display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: #2F6FD6; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease, color .2s ease;
}
.ec-sonny-carte__titres a.ec-sonny-carte__presse:hover, .ec-sonny-carte__titres a.ec-sonny-carte__presse:focus-visible { color: #1F56B3; background-size: 100% 1px; }
.ec-sonny-carte__sortie { display: inline-flex; transition: transform .35s cubic-bezier(.22, .9, .3, 1); }
.ec-sonny-carte__sortie svg { width: 11px; height: 11px; }
.ec-sonny-carte__presse:hover .ec-sonny-carte__sortie { transform: translate(1.5px, -1.5px); }

/* En bas, bloquées contre les bords : la vitre Trustpilot et la vitre
   Google. Le même petit écart les sépare l'une de l'autre et du cadre, et
   leurs coins suivent l'arrondi de la carte (son rayon moins l'écart) :
   deux carreaux posés dans le cadre. Au survol, elles s'éclairent sans
   bouger — elles restent collées au bord. */
.ec-sonny-carte__preuves { flex: none; margin-top: auto; padding: var(--ecart-vitres); }
.ec-sonny-carte__notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ecart-vitres); }
.ec-note-avis {
  display: grid; justify-items: start; align-content: start; gap: 8px; padding: 16px 17px 17px;
  border-radius: calc(var(--rayon, 22px) - 1px - var(--ecart-vitres, 7px));
  background: rgba(43, 196, 138, .075); border: 1px solid rgba(21, 64, 50, .075); color: inherit; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
a.ec-note-avis:hover { border-color: rgba(29, 158, 117, .32); background-color: rgba(43, 196, 138, .13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(29, 158, 117, .08); }
a.ec-note-avis:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
.ec-note-avis__note { font-size: 31px; font-weight: 800; line-height: 1; letter-spacing: -.8px; color: var(--teal-deep); }
.ec-note-avis__note small { font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.ec-note-avis .av5 svg { width: 14px; height: 14px; }
.ec-note-avis__total { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.ec-note-avis__total b { font-weight: 700; color: var(--text); }
/* Vidéo bien moins haute (écrans d'environ 1100 à 1150 px) : la carte se resserre. */
@container sonny-carte (max-height: 385px) {
  .ec-sonny-carte__tete { gap: 13px; padding: 12px 18px 11px; }
  .ec-sonny-carte__photo { width: 44px; height: 44px; box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--green2), 0 8px 18px -10px rgba(29, 158, 117, .8); }
  .ec-sonny-carte__id { gap: 4px; }
  .ec-sonny-carte__nom strong { font-size: 16px; }
  .ec-sonny-carte__titres { gap: 7px; padding: 13px 18px 12px; }
  .ec-sonny-carte__titres li { gap: 8px; }
  .ec-sonny-carte__titres .cm-ico { width: 13px; height: 13px; }
  .ec-note-avis { gap: 7px; padding: 14px 15px 15px; }
}
/* Carte en largeur (sous la vidéo, sur tablette) : dans chaque vitre, la
   note à gauche et les étoiles à droite ; plus large encore, les titres
   sur deux colonnes. */
@container sonny-carte (min-width: 560px) {
  .ec-note-avis { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 18px; row-gap: 5px; padding: 16px 20px; }
  .ec-note-avis__note { grid-row: 1 / 3; }
}
@container sonny-carte (min-width: 740px) {
  .ec-sonny-carte__titres { grid-template-columns: repeat(2, max-content); column-gap: 48px; padding: 16px 24px 16px; }
}

/* ── Qui suis-je : l'histoire à gauche, la photo et ses badges à droite,
   puis la bande verte des quatre points. ── */
.ec-sonny__corps { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ec-sonny__nom { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.ec-sonny__nom .cm-ico { width: 17px; height: 17px; }
.ec-sonny__texte p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.8; color: #2F4642; text-wrap: pretty; }
.ec-sonny__texte p:last-child { margin-bottom: 0; }
.ec-sonny__photo { position: relative; justify-self: center; width: min(440px, 100%); margin: 0; }
.ec-sonny__photo picture, .ec-sonny__photo img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
.ec-badge {
  position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); border: 1px solid rgba(29, 158, 117, .2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 32px -16px rgba(6, 40, 30, .5);
  font-size: 12.5px; font-weight: 800; color: var(--teal-deep); white-space: nowrap;
  animation: ec-flotte 5.5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s);
}
.ec-badge__ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; }
.ec-badge__ico .cm-ico { width: 14px; height: 14px; }
.ec-badge--1 { top: 12%; left: -9%; }
.ec-badge--2 { top: 32%; right: -6%; }
.ec-badge--3 { top: 60%; left: -13%; }
.ec-badge--4 { bottom: 7%; right: -3%; }
.ec-badge--5 { top: -1%; right: 8%; }
.ec-badge--6 { bottom: -2%; left: 6%; }
@keyframes ec-flotte { 50% { transform: translateY(-7px); } }
/* Les badges se posent un à un autour de la photo. */
.ec-sonny__photo.ec-cascade .ec-badge { opacity: 0; scale: .6; transition: opacity .4s ease, scale .55s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * 150ms + 250ms); }
.ec-sonny__photo.ec-cascade.is-vue .ec-badge { opacity: 1; scale: 1; }
.ec-sonny__points {
  list-style: none; margin: 48px 0 0; padding: 30px 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 24px; color: #fff;
  background: radial-gradient(closest-side at 12% -30%, rgba(255, 255, 255, .22), transparent), linear-gradient(135deg, #22A07A 0%, #177A60 55%, #125E4C 100%);
  box-shadow: 0 30px 60px -36px rgba(18, 94, 76, .9);
}
.ec-sonny__points li { display: grid; justify-items: center; align-content: start; gap: 12px; padding: 4px 14px; text-align: center; }
.ec-sonny__points li + li { border-left: 1px solid rgba(255, 255, 255, .18); }
.ec-sonny__pico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.ec-sonny__pico .cm-ico { width: 26px; height: 26px; color: #fff; }
.ec-sonny__ptxt { display: grid; gap: 3px; font-size: 13.5px; line-height: 1.45; }
.ec-sonny__ptxt strong { font-size: 14.5px; }
.ec-sonny__pdetail { opacity: .85; }
/* Une ligne choisie (« / » dans l'admin) : chaque point a le même nombre de lignes. */
.ec-sonny__ligne { display: block; }
.ec-sonny__points.ec-cascade > li { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .55s cubic-bezier(.2, .9, .3, 1); transition-delay: calc(var(--i) * 110ms); }
.ec-sonny__points.ec-cascade.is-vue > li { opacity: 1; transform: none; }

/* L'appel, pour finir : centré, sans photo (Sonny vient d'être présenté). */
.view:has(> .ec-tete) .pitch--nophoto { margin-top: 70px; min-height: 0; padding: 38px 34px; text-align: center; justify-items: center; }
.view:has(> .ec-tete) .pitch--nophoto .pitch__body p { max-width: 660px; margin-left: auto; margin-right: auto; }
.view:has(> .ec-tete) .pitch--nophoto .pitch__actions { justify-content: center; }

/* ── Écrans moyens : la vidéo des outils au-dessus de leur liste ── */
@media (max-width: 1199px) {
  .ec-outils { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ec-demo { width: min(100%, 820px); justify-self: center; }
  .ec-demo .player { height: auto; aspect-ratio: 16 / 9; }
  .ec-outils__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .ec-outil:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
@media (max-width: 700px) {
  .ec-outils__liste { grid-template-columns: minmax(0, 1fr); }
  .ec-outil:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--border); }
  /* La vidéo est au-dessus : les rangées n'ont plus à tenir une hauteur fixe, la phrase se lit en entier. */
  .ec-outil { height: auto; min-height: var(--rang); padding: 10px 2px; }
  .ec-outil__txt span { white-space: normal; text-wrap: pretty; }
}
/* ── Écrans moyens : la frise sur deux colonnes, la vidéo des avis au-dessus de la carte verte ── */
@media (max-width: 1100px) {
  .ec-tl { --ecart: 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-tl::before { display: none; }
  .ec-tl__etape:nth-child(n+3) .ec-tl__point { margin-top: 30px; }
  /* La vidéo des avis, puis la carte de Sonny dessous, à la même largeur. */
  .ec-preuves { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ec-preuves > * { width: min(100%, 860px); }
  .ec-sonny-carte { container-type: inline-size; }
}
@media (max-width: 1000px) {
  .ec-sonny__corps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ec-sonny__photo { order: -1; }
}
/* La bande verte de « Qui suis-je » : quatre colonnes seulement quand chaque ligne choisie y tient
   (la plus longue fait 250 px) ; en dessous, deux colonnes. */
@media (max-width: 1239px) {
  .ec-sonny__points { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .ec-sonny__points li:nth-child(odd) { border-left: 0; }
}
@media (max-width: 900px) {
}
/* ── Téléphone ── */
@media (max-width: 700px) {
  /* La frise passe à la verticale : la ligne à gauche, les étapes à droite. */
  .ec-tl { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 28px; }
  .ec-tl::before {
    display: block; left: 17px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(29, 158, 117, .42) 0 6px, transparent 6px 12px);
    transform: scaleY(0); transform-origin: top center;
  }
  .ec-tl__etape { grid-row: auto; grid-template-rows: none; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; }
  .ec-tl__quand { justify-self: start; }
  .ec-tl__item { margin-bottom: 16px; }
  .ec-tl__etape > * { grid-column: 2; }
  .ec-tl__etape > .ec-tl__point { grid-column: 1; grid-row: 1 / span 9; margin: 0; }
  .ec-tl__etape:nth-child(n+3) .ec-tl__point { margin-top: 0; }
  .ec-tl__titre { white-space: normal; }
  .ec-tl__long { grid-row: auto; }
  /* Les badges se rangent sous la photo. */
  .ec-sonny__photo { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .ec-sonny__photo picture { flex-basis: 100%; margin-bottom: 6px; }
  .ec-badge { position: static; animation: none; }
}
@media (max-width: 640px) {
  .ec-sec { padding-top: 76px; }
  .ec-sec + .ec-sec::before { top: 34px; width: 100px; }
  .ec-sec__tete h2 { font-size: 22px; }
  .ec-sec__tete p { font-size: 14px; }
  .ec-tete__actions { gap: 18px; margin-top: 24px; }
  .ec-tete__appel { padding: 16px 36px; font-size: 15.5px; }
  .ec-fan { --cw: min(262px, 72vw); --ch: 338px; }
  .ec-fan__scene { height: calc(var(--ch) + 84px); }
  .ec-carte { top: 16px; padding: 18px 18px 16px; border-radius: 22px; }
  .ec-carte__t { font-size: 14.5px; }
  .ec-carte__ico { margin-top: 20px; }
  .ec-fiche__tete { padding: 22px 20px 20px; }
  .ec-fiche__prog { padding: 18px 20px 4px; }
  .ec-fiche__pied { flex-wrap: wrap; padding: 14px 16px 20px; }
  .ec-fiche__cta { order: -1; width: 100%; }
  /* Toute la largeur : la pastille du survol, plus grande, l'emplit jusqu'aux bords. */
  .ec-fiche__cta:hover .btn-flow__circle { width: 720px; height: 720px; }
  .ec-vie { flex-direction: column; gap: 12px; padding: 20px; }
  .ec-sonny__texte p { font-size: 15px; }
  .ec-sonny__points { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; }
  .ec-sonny__points li { border-left: 0 !important; }
  .ec-sonny__points li + li { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); }
}
/* Très petit téléphone : la bande verte de « Qui suis-je » garde ses lignes choisies, chacune sur une ligne. */
@media (max-width: 380px) {
  .ec-sonny__points li { padding-left: 4px; padding-right: 4px; }
  .ec-sonny__ptxt { font-size: 13px; }
  .ec-sonny__ptxt strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-carte__voir { transition: none !important; animation: none !important; }
  .ec-tete__appel { animation: none !important; }
  .ec-carte.is-centre:hover .ec-carte__voir svg, .ec-tete__chevron, .ec-badge { animation: none; }
}

/* ── L'Atelier : le sélecteur en tête de Ma Roadmap, de la Forge et du Coffre ──
   Comme la barre du bas : trois cases égales, et une zone grisée sous la page
   affichée, qui glisse d'une case à l'autre sans changer de forme. Les onglets
   non choisis montrent leur seule icône, au centre de leur case ; l'onglet
   choisi montre aussi son titre — l'icône se décale pour lui faire place, le
   titre apparaît en fondu. Rien que `transform` et `opacity` : le téléphone
   l'anime à part, même pendant que la page suivante se construit. ── */
.fo-onglets {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px;
  width: min(460px, 100%); margin: -6px auto 22px; padding: 4px; border-radius: 16px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .82); box-shadow: var(--shadow-sm);
}
/* Trois cases égales (padding 4 px de chaque côté, 2 px entre les cases). */
.fo-onglets__pastille {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 12px) / 3); border-radius: 12px;
  background: rgba(16, 42, 33, .075); will-change: transform;
  transition: transform .3s cubic-bezier(.25, .8, .25, 1);
}
.fo-onglets[data-actif="forge"] .fo-onglets__pastille { transform: translateX(calc(100% + 2px)); }
.fo-onglets[data-actif="coffre"] .fo-onglets__pastille { transform: translateX(calc(200% + 4px)); }
.fo-onglet {
  position: relative; z-index: 1; display: grid; place-items: center; min-width: 0; height: 40px; padding: 0 8px; border-radius: 12px;
  overflow: hidden; font-size: 13.5px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap;
  transition: color .15s ease; -webkit-tap-highlight-color: transparent;
}
.fo-onglet:not(.is-active):hover { color: var(--green); }
.fo-onglet.is-active { color: var(--green3); }
/* L'icône et le titre, côte à côte. Non choisi, le titre (invisible) garde sa place et le tout est décalé
   de la moitié de sa largeur (--l, mesurée par onglets-atelier.js) : l'icône est au centre de la case. */
.fo-onglet__corps {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  transition: transform .3s cubic-bezier(.25, .8, .25, 1);
}
.fo-onglet:not(.is-active) .fo-onglet__corps { transform: translateX(calc((var(--l, 0px) + 8px) / 2)); }
.fo-onglet__titre { min-width: 0; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .15s ease; }
.fo-onglet.is-active .fo-onglet__titre { opacity: 1; transition: opacity .25s ease .08s; }
.fo-onglet__ico { position: relative; display: grid; place-items: center; flex: none; }
/* Comme les icônes du menu du haut : 19 px, et une animation par icône au survol, selon sa forme. */
.fo-onglet__ico svg { width: 19px; height: 19px; overflow: visible; }
.fo-onglet__ico svg * { transform-box: fill-box; transform-origin: center; }
/* Le bouton lecture avance d'un pas, comme pour démarrer. */
.fo-onglet:hover .fo-ico-lecture, .fo-onglet:focus-visible .fo-ico-lecture { animation: fo-lecture .65s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes fo-lecture { 35% { transform: translateX(3px) scale(.9); } 65% { transform: translateX(-1px) scale(1.06); } }
/* Le coffre : son couvercle s'entrouvre (il pivote sur sa charnière, à gauche) puis se referme. */
.fo-onglet__ico .fo-ico-couvercle { transform-box: view-box; transform-origin: 3.5px 10.5px; }
.fo-onglet:hover .fo-ico-couvercle, .fo-onglet:focus-visible .fo-ico-couvercle { animation: fo-couvercle .85s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes fo-couvercle { 35% { transform: rotate(-20deg); } 70% { transform: rotate(3deg); } }
/* La carte se replie puis se déplie, ses plis battent un instant après. */
.fo-onglet:hover .fo-ico-carte, .fo-onglet:focus-visible .fo-ico-carte { animation: fo-carte .8s cubic-bezier(.3, 1.4, .5, 1); }
.fo-onglet:hover .fo-ico-plis, .fo-onglet:focus-visible .fo-ico-plis { animation: fo-plis .8s ease .08s; }
@keyframes fo-carte { 30% { transform: scaleX(.7) rotate(-7deg); } 62% { transform: scaleX(1.08) rotate(2deg); } }
@keyframes fo-plis { 35% { opacity: .25; } }
/* La Forge : le marteau, levé au repos (il pivote autour du bout de son manche),
   frappe deux fois l'enclume au survol ; l'enclume encaisse, une étincelle jaillit. */
.fo-ico-marteau, .fo-onglet__ico .fo-ico-marteau { transform-box: view-box; transform-origin: 21.4px 9px; transform: rotate(30deg); }
.fo-ico-enclume, .fo-onglet__ico .fo-ico-enclume { transform-box: fill-box; transform-origin: 50% 100%; }
.fo-ico-etincelle { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0); }
.fo-onglet:hover .fo-ico-marteau, .fo-onglet:focus-visible .fo-ico-marteau { animation: fo-marteau 1s; }
.fo-onglet:hover .fo-ico-enclume, .fo-onglet:focus-visible .fo-ico-enclume { animation: fo-enclume 1s; }
.fo-onglet:hover .fo-ico-etincelle, .fo-onglet:focus-visible .fo-ico-etincelle { animation: fo-etincelle 1s; }
/* Il descend en accélérant, remonte en ralentissant. */
@keyframes fo-marteau {
  0% { transform: rotate(30deg); animation-timing-function: cubic-bezier(.6, 0, 1, .5); }
  20% { transform: rotate(0deg); animation-timing-function: cubic-bezier(0, .5, .4, 1); }
  36% { transform: rotate(17deg); animation-timing-function: cubic-bezier(.6, 0, 1, .5); }
  52% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.25, 0, .3, 1); }
  100% { transform: rotate(30deg); }
}
@keyframes fo-enclume {
  0%, 19%, 30%, 51%, 62%, 100% { transform: none; }
  22%, 54% { transform: translateY(.6px) scaleY(.92); }
}
@keyframes fo-etincelle {
  0%, 19% { opacity: 0; transform: scale(0); }
  23% { opacity: 1; transform: scale(1) rotate(15deg); }
  34% { opacity: 0; transform: scale(.5) rotate(45deg); }
  51% { opacity: 0; transform: scale(0); }
  55% { opacity: 1; transform: scale(1.2) rotate(15deg); }
  72%, 100% { opacity: 0; transform: scale(.4) rotate(60deg); }
}
@media (prefers-reduced-motion: reduce) { .fo-onglet__ico svg, .fo-onglet__ico svg * { animation: none !important; } }
/* Au doigt, les icônes ne s'animent pas (le toucher vaut un survol) : seule la zone grisée glisse. */
@media (hover: none) { .fo-onglet__ico svg, .fo-onglet__ico svg * { animation: none !important; } }
/* Fermées (l'accès complet manque) : grisées, un petit cadenas posé en haut à droite de l'icône. */
.fo-onglet.is-verrou:not(.is-active) { color: var(--muted); }
.fo-onglet.is-verrou:not(.is-active):hover { color: var(--text); }
.fo-onglet__cadenas {
  position: absolute; top: -5px; right: -8px; display: grid; place-items: center; width: 13px; height: 13px;
  border-radius: 50%; background: #fff; color: var(--muted-2); box-shadow: 0 1px 3px rgba(16, 42, 33, .18);
}
.fo-onglet__cadenas svg { width: 9px; height: 9px; }
/* Sur téléphone : tout se resserre un peu (ces règles viennent APRÈS celles du dessus). */
@media (max-width: 560px) {
  .fo-onglet { padding: 0 6px; font-size: 12.5px; }
  .fo-onglet__corps { gap: 6px; }
  .fo-onglet:not(.is-active) .fo-onglet__corps { transform: translateX(calc((var(--l, 0px) + 6px) / 2)); }
  .fo-onglet__ico svg { width: 18px; height: 18px; }
}
@media (max-width: 370px) {
  .fo-onglet { padding: 0 4px; font-size: 12px; }
  .fo-onglet__ico svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .fo-onglet__corps, .fo-onglet__titre { transition: none !important; }
}

/* Le passage de l'une à l'autre, sans attente : au clic, la pastille glisse
   et la page s'efface aussitôt (#view.fo-part) ; dès que la suivante est
   prête, elle arrive en fondu du côté de sa moitié (#view.fo-arrive) — par
   la droite vers Ma roadmap, par la gauche en revenant (.is-retour).
   Le sélecteur, lui, ne bouge pas. */
#view.fo-part > :not(.fo-onglets) {
  opacity: 0; transform: translateX(-22px); pointer-events: none;
  transition: opacity .17s ease, transform .2s ease;
}
#view.fo-part.is-retour > :not(.fo-onglets) { transform: translateX(22px); }
#view.fo-arrive > :not(.fo-onglets) { animation: fo-entre-par-la-droite .42s cubic-bezier(.2, .9, .3, 1) backwards; }
#view.fo-arrive.is-retour > :not(.fo-onglets) { animation-name: fo-entre-par-la-gauche; }
@keyframes fo-entre-par-la-droite { from { opacity: 0; transform: translateX(26px); } }
@keyframes fo-entre-par-la-gauche { from { opacity: 0; transform: translateX(-26px); } }
@media (prefers-reduced-motion: reduce) {
  .fo-onglets__pastille, #view.fo-part > :not(.fo-onglets) { transition: none; }
  #view.fo-arrive > :not(.fo-onglets) { animation: none; }
}

/* ── Ma Roadmap : toute la route en un seul plan, en pixel art ──
   L'univers prend toute la page, sous l'en-tête du campus : le sélecteur et
   l'étape en cours flottent dessus, en verre (le jour ou la nuit : ceux de
   l'appareil, sans bouton). Les
   dessins sont à la taille réelle de leurs pixels et agrandis sans flou ;
   --p est la taille d'un pixel du dessin à l'écran (choisie pour que tout
   tienne). Les noms des étapes sont dans la police du site, sur des
   panneaux à bord pixel ; les numéros et le repère « tu es ici », en police
   pixel. Les petites animations (étoiles, drapeaux, respiration, nuages)
   avancent pixel par pixel, et s'arrêtent si le système demande moins de
   mouvement. ── */
.view:has(> .rm-jeu) { position: relative; max-width: none; padding: 0; }
/* Le sélecteur flotte sur le ciel, à la place exacte qu'il a sur les autres pages. */
.view:has(> .rm-jeu) > .fo-onglets {
  position: absolute; top: 24px; left: 50%; z-index: 13; margin: 0; transform: translateX(-50%);
  background: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .6);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 14px 34px -16px rgba(4, 30, 32, .55);
}
.rm-jeu {
  --p: 2px;
  position: relative; isolation: isolate; overflow: hidden; height: calc(100dvh - var(--topbar-h) - var(--bandeaux-h, 0px));
  background: var(--ciel-haut, #08707C);
}
.rm-monde { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; background: var(--ciel-haut, #08707C); }
.rm-scene { position: relative; flex: none; overflow: hidden; }
.rm-scene > * { animation: rm-apparait .4s ease backwards; }
@keyframes rm-apparait { from { opacity: 0; } }
.rm-px { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.rm-scene .rm-px { position: absolute; }
.rm-fond { z-index: 0; }
.rm-scene > .rm-etoiles { z-index: 0; pointer-events: none; animation: rm-scintille 3.4s steps(1) infinite; }
.rm-scene > .rm-etoiles--1 { animation-duration: 4.6s; animation-delay: -2.1s; }
@keyframes rm-scintille { 0%, 100% { opacity: 1; } 35% { opacity: .2; } 60% { opacity: .75; } }

/* Le chemin passe derrière les îles : posé avant elles, au même plan. */
.rm-scene > .rm-route { z-index: 0; pointer-events: none; }

/* Une île : son dessin, son drapeau ; et la zone qu'on touche. Seule cette
   zone répond à la souris : les dessins (et leurs coins transparents)
   laissent passer les clics vers l'île d'à côté. Ni l'île ni sa zone ne
   forment de plan à part : la bulle passe au-dessus de tout le paysage,
   sans que l'île survolée ne recouvre le personnage. */
.rm-ile { position: absolute; pointer-events: none; }
.rm-ile .rm-px { position: absolute; }
.rm-drapeau { position: absolute; overflow: hidden; }
.rm-drapeau__images { animation: rm-vent 1.6s steps(3) infinite; }
.rm-drapeau.is-ici .rm-drapeau__images { animation-duration: .75s; }
@keyframes rm-vent { to { transform: translateX(-100%); } }
.rm-perso { position: absolute; z-index: 4; pointer-events: none; }
.rm-perso__cadre { position: relative; display: block; overflow: hidden; }
.rm-perso.is-gauche .rm-perso__cadre { transform: scaleX(-1); }
/* Quatre images côte à côte : repos, respiration, pas, saut. */
.rm-perso__images { animation: rm-souffle 1.5s steps(2) infinite; }
@keyframes rm-souffle { to { transform: translateX(-50%); } }
.rm-perso.is-marche .rm-perso__images { animation: rm-pas .32s steps(1) infinite; }
@keyframes rm-pas { 0% { transform: translateX(-50%); } 50% { transform: translateX(0); } }
.rm-perso.is-saut .rm-perso__images { animation: none; transform: translateX(-75%); }
.rm-scene > .rm-devant { z-index: 5; pointer-events: none; opacity: .88; animation: rm-derive 36s steps(10) infinite alternate; }
@keyframes rm-derive { from { transform: translateX(calc(var(--p) * -5)); } to { transform: translateX(calc(var(--p) * 5)); } }

/* L'île en cours flotte doucement, pixel par pixel : son dessin et son
   drapeau (au premier plan, devant le chemin et les autres îles), son
   étiquette, et le personnage qui s'y tient — tous au même rythme (--phase,
   calé sur l'horloge). La zone qu'on touche et sa bulle ne bougent pas. */
@keyframes rm-flotte {
  0%, 100% { translate: 0 0; }
  16.66%, 83.33% { translate: 0 calc(var(--p) * -1); }
  33.33%, 66.66% { translate: 0 calc(var(--p) * -2); }
  50% { translate: 0 calc(var(--p) * -3); }
}
.rm-ile.is-flotte > .rm-ile__dessin, .rm-ile.is-flotte > .rm-drapeau { z-index: 3; animation: rm-flotte 2.6s steps(1, end) var(--phase, 0s) infinite; }
.rm-scene > .rm-etiquette.is-flotte, .rm-scene > .rm-perso.is-flotte { animation: rm-apparait .4s ease backwards, rm-flotte 2.6s steps(1, end) var(--phase, 0s) infinite; }

/* Le nom de chaque étape, sur un panneau à bord pixel : au-dessus des îles
   du haut, sous celles du bas. Le numéro en police pixel, l'état en couleur. */
.rm-etiquette {
  position: absolute; z-index: 6; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 9px 4px 4px; white-space: nowrap; pointer-events: auto; cursor: pointer;
  font: 650 13px/1.1 var(--font); letter-spacing: -.1px; color: #EEF3FF; background: #0D1730;
  box-shadow:
    0 calc(var(--p) * -1) 0 #2A3B60, 0 var(--p) 0 #2A3B60, calc(var(--p) * -1) 0 0 #2A3B60, var(--p) 0 0 #2A3B60,
    0 calc(var(--p) * 2.5) 0 rgba(3, 6, 18, .5);
}
.rm-etiquette.is-dessus { transform: translate(-50%, -100%); }
/* Plan compact (téléphone) : le nom ne tient pas sous l'île sans tomber sur celle du dessous. Une pastille,
   posée sur le côté extérieur de l'île à hauteur de son herbe : le numéro, coché ou sous cadenas. Le nom
   reste dans la bulle de l'île, dans la feuille de route et, pour l'île à faire, sur le bouton « Continuer ». */
.rm-etiquette.is-cote { gap: 3px; padding: 3px 5px 3px 3px; }
.rm-etiquette.is-cote.is-gauche { transform: translate(-100%, -50%); }
.rm-etiquette.is-cote.is-droite { transform: translate(0, -50%); }
.rm-etiquette.is-cote .rm-etiquette__nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rm-etiquette.is-cote .rm-etiquette__cadenas { margin: 0; }
.rm-etiquette:hover .rm-etiquette__nom { text-decoration: underline; text-underline-offset: 3px; }
.rm-etiquette__num {
  display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 3px;
  font: 400 9px/1 'Press Start 2P', monospace; color: #FFFFFF; background: #56627A;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .28), inset 0 2px 0 rgba(255, 255, 255, .18);
}
.rm-etiquette .rm-px { position: static; }
.rm-etiquette__coche { font-weight: 800; color: #43D69B; }
/* L'île en cours : ses objectifs faits (« 1/3 »), dès le premier. */
.rm-etiquette__avance { padding: 2px 5px 1px; font: 400 8px/1 'Press Start 2P', monospace; color: #3A0F22; background: #FFE14D; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.rm-etiquette__avance[hidden] { display: none; }
.rm-etiquette__cadenas { width: 10px; height: 16px; margin: -1px 0 0 -2px; }
/* Une île encore dans la brume : la carte ne bouge pas, seul le cadenas de son nom tressaille. */
.rm-etiquette.is-refus .rm-etiquette__cadenas { animation: rm-cadenas .5s steps(6); }
@keyframes rm-cadenas { 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
.rm-etiquette__piece { width: 13px; height: 13px; }
.rm-etiquette.is-fait .rm-etiquette__num { background: #1D9E75; }
.rm-etiquette.is-ici { color: #FFFFFF; background: #3A0F22; box-shadow:
  0 calc(var(--p) * -1) 0 #E8305C, 0 var(--p) 0 #E8305C, calc(var(--p) * -1) 0 0 #E8305C, var(--p) 0 0 #E8305C,
  0 calc(var(--p) * 2.5) 0 rgba(3, 6, 18, .5), 0 0 22px rgba(232, 48, 92, .45); }
.rm-etiquette.is-ici .rm-etiquette__num { background: #E8305C; }
.rm-etiquette.is-verrou { color: #A7B3CB; }
.rm-etiquette--sommet { color: #FFD866; background: #2A1A06; box-shadow:
  0 calc(var(--p) * -1) 0 #C98A22, 0 var(--p) 0 #C98A22, calc(var(--p) * -1) 0 0 #C98A22, var(--p) 0 0 #C98A22,
  0 calc(var(--p) * 2.5) 0 rgba(3, 6, 18, .5), 0 0 24px rgba(255, 201, 74, .35); }
.rm-etiquette--sommet .rm-etiquette__num { padding: 0; background: #5A3A0C; }
.rm-etiquette--sommet.is-verrou { color: #A7B3CB; background: #0D1730; box-shadow:
  0 calc(var(--p) * -1) 0 #2A3B60, 0 var(--p) 0 #2A3B60, calc(var(--p) * -1) 0 0 #2A3B60, var(--p) 0 0 #2A3B60,
  0 calc(var(--p) * 2.5) 0 rgba(3, 6, 18, .5); }
.rm-etiquette--sommet.is-verrou .rm-etiquette__num { background: #56627A; }
.rm-etiquette--sommet.is-verrou .rm-etiquette__piece { filter: grayscale(1) brightness(.85); }

/* « TU ES ICI » : une étiquette rouge qui sautille au-dessus du personnage. */
.rm-repere { position: absolute; bottom: calc(100% + 4px); z-index: 7; transform: translateX(-50%); pointer-events: none; animation: rm-rebond 1s steps(2) infinite; }
.rm-repere__texte {
  position: relative; display: block; padding: 5px 7px 4px; font: 400 8px/1 'Press Start 2P', monospace; white-space: nowrap; color: #FFFFFF; background: #E8305C;
  box-shadow: 0 -2px 0 #7A1230, 0 2px 0 #7A1230, -2px 0 0 #7A1230, 2px 0 0 #7A1230, 0 5px 0 rgba(3, 6, 18, .4);
}
.rm-repere__texte::after {
  content: ''; position: absolute; left: 50%; top: calc(100% + 2px); width: 8px; height: 5px; transform: translateX(-50%);
  background: #7A1230; clip-path: polygon(0 0, 100% 0, 100% 40%, 75% 40%, 75% 70%, 50% 100%, 25% 70%, 25% 40%, 0 40%);
}
@keyframes rm-rebond { 50% { transform: translate(-50%, -3px); } }
.rm-repere.is-court { bottom: calc(100% + 2px); }
.rm-repere.is-court .rm-repere__texte { width: 10px; height: 6px; padding: 0; }

/* Une île qu'on peut ouvrir s'éclaire sous la souris : elle invite au clic. */
.rm-ile > .rm-ile__dessin { transition: filter .25s ease; }
.rm-ile:has(> .rm-point:not(.is-verrou):hover) > .rm-ile__dessin,
.rm-ile:has(> .rm-point:not(.is-verrou):focus-visible) > .rm-ile__dessin { filter: brightness(1.12) saturate(1.1); }

/* La zone qu'on touche, et sa bulle : le titre complet de l'étape. */
.rm-point {
  position: absolute; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; pointer-events: auto;
  border-radius: 6px; -webkit-tap-highlight-color: transparent;
}
.rm-point:focus-visible { outline: 3px solid #FFD34E; outline-offset: 3px; }
.rm-bulle {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 10; display: grid; gap: 3px; width: max-content; max-width: 250px;
  padding: 10px 12px 11px; text-align: left; color: #2A1B15; background: #FFF8EC; border-radius: 2px;
  box-shadow: 0 -3px 0 #2A1B15, 0 3px 0 #2A1B15, -3px 0 0 #2A1B15, 3px 0 0 #2A1B15, 0 12px 24px -10px rgba(0, 0, 0, .55);
  font: 500 12.5px/1.35 var(--font); opacity: 0; transform: translate(-50%, 6px); pointer-events: none;
  transition: opacity .18s ease, transform .25s cubic-bezier(.2, .9, .3, 1);
}
.rm-point.is-gauche .rm-bulle { left: 0; transform: translate(0, 6px); }
.rm-point.is-droite .rm-bulle { left: auto; right: 0; transform: translate(0, 6px); }
.rm-point.is-dessous .rm-bulle { bottom: auto; top: calc(100% + 10px); }
.rm-point:hover .rm-bulle, .rm-point:focus-visible .rm-bulle { opacity: 1; transform: translate(-50%, 0); }
.rm-point.is-gauche:hover .rm-bulle, .rm-point.is-gauche:focus-visible .rm-bulle,
.rm-point.is-droite:hover .rm-bulle, .rm-point.is-droite:focus-visible .rm-bulle { transform: none; }
.rm-bulle__num { font: 400 8px/1.4 'Press Start 2P', monospace; color: #9A6A2C; }
.rm-point.is-ici .rm-bulle__num { color: #C2244F; }
.rm-point.is-fait .rm-bulle__num { color: #1A8A5E; }
.rm-bulle strong { font-size: 13.5px; font-weight: 700; color: #1F1510; }
.rm-bulle__sous { color: #6E5A4A; }
.rm-bulle__clic { margin-top: 2px; font: 400 7px/1.4 'Press Start 2P', monospace; color: #1A8A5E; }
.rm-point.is-verrou .rm-bulle__clic { color: #8A93A3; }

/* À gauche, l'une sous l'autre et de la même largeur : l'étape en cours et
   la feuille de route. Sur un écran large, la feuille reste ouverte ; plus
   étroit, elle s'ouvre d'un bouton. */
.rm-gauche {
  position: absolute; top: 24px; left: 24px; bottom: 24px; z-index: 12; width: 272px;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px; pointer-events: none;
}
.rm-gauche > * { pointer-events: auto; }
/* L'étape en cours : une pastille de verre, épurée — l'étape, son nom, une case par île. */
.rm-hud {
  position: relative; flex: none; display: grid; gap: 8px; padding: 11px 15px 12px;
  color: #fff; background: rgba(6, 34, 42, .34); border: 1px solid rgba(255, 255, 255, .26); border-radius: 16px;
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .55);
}
.rm-jeu[data-moment="nuit"] .rm-hud { background: rgba(10, 16, 40, .5); }
.rm-hud__haut { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.rm-hud__etape { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.rm-hud__titre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; }
.rm-hud__jauge { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.rm-hud__case { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .24); }
.rm-hud__case.is-fait { background: linear-gradient(90deg, #B6FF3B, #39FF14); box-shadow: 0 0 8px rgba(120, 255, 60, .55); }
.rm-hud__case.is-ici { background: #FFE14D; box-shadow: 0 0 8px rgba(255, 225, 77, .6); }
.rm-hud.is-gain { animation: rm-gain-hud .7s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes rm-gain-hud { 35% { transform: scale(1.05); } }

/* La feuille de route : du verre, comme l'étape en cours, mais plus dense —
   le personnage de sa classe, puis chaque île : son nom, la décision prise,
   et ses actions à cocher. */
.rm-feuille {
  flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; color: #fff;
  background: rgba(6, 34, 42, .5); border: 1px solid rgba(255, 255, 255, .24); border-radius: 18px;
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
}
.rm-jeu[data-moment="nuit"] .rm-feuille { background: rgba(10, 16, 40, .64); }
.rm-feuille__tete {
  flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px;
  padding: 13px 14px 12px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.rm-feuille__perso {
  display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border-radius: 14px;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.rm-feuille__perso.is-mage { background: linear-gradient(135deg, #7AA6FF, #2A47B0); }
.rm-feuille__perso.is-archer { background: linear-gradient(135deg, #39E39C, #0F6B54); }
.rm-feuille__perso.is-guerrier { background: linear-gradient(135deg, #FF5A7A, #E3007D); }
.rm-feuille__perso .rm-v-sprite { width: 50px; height: 50px; margin-top: 6px; }
.rm-feuille__photo { width: 100%; height: 100%; object-fit: cover; }
.rm-feuille__initiale { font-size: 19px; font-weight: 800; }
.rm-feuille__qui { display: grid; min-width: 0; }
.rm-feuille__sur { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.rm-feuille__qui strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.rm-feuille__classe { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: rgba(255, 255, 255, .78); }
.rm-feuille__score { display: grid; justify-items: end; gap: 5px; }
.rm-feuille__score strong { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: #B6FF3B; }
.rm-feuille__jauge { display: block; width: 44px; height: 5px; overflow: hidden; border-radius: 5px; background: rgba(255, 255, 255, .22); }
.rm-feuille__jauge i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #B6FF3B, #39FF14); transition: width .4s ease; }
.rm-feuille__corps { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 6px 8px 10px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.rm-feuille__iles { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rm-feuille__ile { padding: 6px 6px 7px; border-radius: 12px; transition: background .25s ease, box-shadow .25s ease; }
.rm-feuille__ile.is-ici { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 225, 77, .4); }
/* L'île du moment (où se tient le personnage, ou celle qu'on vient d'ouvrir) : encadrée, en avant. */
.rm-feuille__ile.is-focus { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px #B6FF3B, 0 0 0 3px rgba(182, 255, 59, .14), 0 10px 22px -14px rgba(0, 0, 0, .6); }
.rm-feuille__ligne { display: flex; align-items: center; gap: 6px; }
.rm-feuille__nom {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 2px; border: 0; border-radius: 8px; cursor: pointer;
  text-align: left; font: 750 13.5px/1.25 var(--font); color: #fff; background: transparent;
}
.rm-feuille__compte { flex: none; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .14); }
.rm-feuille__compte.is-complet { color: #053B29; background: linear-gradient(135deg, #B6FF3B, #39FF14); }
.rm-feuille__fleche {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; cursor: pointer;
  color: rgba(255, 255, 255, .78); background: transparent; transition: background .2s ease, color .2s ease;
}
.rm-feuille__fleche:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.rm-feuille__fleche:focus-visible { outline: 2px solid #FFE14D; outline-offset: 1px; }
.rm-feuille__fleche svg { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.rm-feuille__ile.is-deplie .rm-feuille__fleche svg { transform: rotate(-90deg); }
.rm-feuille__detail.is-entree { animation: rm-deplie .3s cubic-bezier(.2, .8, .2, 1) var(--decale, 0s) both; }
@keyframes rm-deplie { from { opacity: 0; transform: translateY(-4px); } }
.rm-feuille__nom:hover .rm-feuille__titre { text-decoration: underline; text-underline-offset: 3px; }
.rm-feuille__nom:focus-visible { outline: 2px solid #FFE14D; outline-offset: 2px; }
.rm-feuille__num {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, .18);
}
.rm-feuille__num svg { width: 12px; height: 12px; }
.rm-feuille__ile.is-fait .rm-feuille__num { color: #053B29; background: linear-gradient(135deg, #B6FF3B, #39FF14); }
.rm-feuille__ile.is-ici .rm-feuille__num { color: #5A4300; background: #FFE14D; }
.rm-feuille__ile.is-sommet .rm-feuille__num { color: #5A4300; background: linear-gradient(135deg, #FFE98A, #FFD03A); }
.rm-feuille__titre { flex: 1; min-width: 0; }
.rm-feuille__etat { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: #5A4300; background: #FFE14D; }
.rm-feuille__cadenas { flex: none; display: grid; color: rgba(255, 255, 255, .55); }
.rm-feuille__cadenas svg { width: 14px; height: 14px; }
.rm-feuille__ile.is-verrou .rm-feuille__titre { color: rgba(255, 255, 255, .62); }
.rm-feuille__resume { margin: 4px 0 0 33px; font-size: 12px; line-height: 1.4; font-weight: 600; color: #C9FF7A; }
.rm-feuille__ile .rm-v-faits { margin: 6px 0 0 27px; }
.rm-feuille__note { margin: 8px 6px 0; font-size: 10.5px; line-height: 1.45; color: rgba(255, 255, 255, .55); }
/* La croix de la feuille : seulement quand elle s'ouvre par-dessus la carte (écran moins large). */
.rm-feuille__fermer {
  display: none; flex: none; place-items: center; width: 32px; height: 32px; margin: -4px -6px -4px 2px; padding: 0; cursor: pointer;
  color: rgba(255, 255, 255, .86); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
}
.rm-feuille__fermer svg { width: 14px; height: 14px; }
.rm-feuille__fermer:hover { color: #fff; background: rgba(255, 255, 255, .22); }
.rm-feuille__fermer:focus-visible { outline: 2px solid #FFE14D; outline-offset: 2px; }
.rm-gauche:not(.is-docke) .rm-feuille__fermer { display: grid; }
.rm-gauche:not(.is-docke) .rm-feuille__tete { grid-template-columns: auto minmax(0, 1fr) auto auto; }
/* Le bouton qui ouvre la feuille de route, quand elle n'a pas sa place à gauche. */
.rm-feuille-bouton {
  flex: none; display: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px; cursor: pointer;
  font: 750 13px/1 var(--font); color: #fff; background: rgba(6, 34, 42, .4); border: 1px solid rgba(255, 255, 255, .26); border-radius: 14px;
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .55);
}
.rm-feuille-bouton__ico { display: grid; }
.rm-feuille-bouton__ico svg { width: 16px; height: 16px; }
.rm-feuille-bouton__compte { margin-left: auto; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; color: #053B29; background: linear-gradient(135deg, #B6FF3B, #39FF14); }
.rm-feuille-bouton:focus-visible { outline: 2px solid #FFE14D; outline-offset: 2px; }
.rm-gauche:not(.is-docke) .rm-feuille-bouton { display: flex; }
.rm-gauche:not(.is-docke):not(.is-feuille) .rm-feuille { display: none; }
.rm-gauche:not(.is-docke):not(.is-feuille) { bottom: auto; }
.rm-gauche.is-feuille .rm-feuille { animation: rm-contenu .3s cubic-bezier(.2, .8, .2, 1) both; }

/* Les actions à cocher : une case, un texte ; cochée, la case passe au vert fluo. */
.rm-v-faits { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.rm-v-fait {
  display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 5px 6px; border: 0; border-radius: 9px; cursor: pointer;
  text-align: left; font: 500 12.5px/1.4 var(--font); color: inherit; background: transparent; transition: background .2s ease;
}
.rm-v-fait:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.rm-v-fait:disabled { cursor: default; }
.rm-v-fait:focus-visible { outline: 2px solid #FFE14D; outline-offset: 1px; }
.rm-v-fait__case {
  flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 6px;
  color: transparent; border: 2px solid rgba(255, 255, 255, .55); transition: all .2s ease;
}
.rm-v-fait__case svg { width: 11px; height: 11px; }
.rm-v-fait.is-coche .rm-v-fait__case { color: #053B29; background: linear-gradient(135deg, #B6FF3B, #39FF14); border-color: transparent; }
.rm-v-fait.is-neuf .rm-v-fait__case { animation: rm-coche .35s cubic-bezier(.2, 1.5, .4, 1) var(--decale, 0s); }
.rm-v-fait.is-coche .rm-v-fait__texte { opacity: .72; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.rm-v-faits.is-verrou { opacity: .5; }
.rm-feuille .rm-v-fait__texte { color: rgba(255, 255, 255, .92); }


/* La fête d'une île terminée : « +50 XP » qui monte, des pièces qui jaillissent. */
.rm-gain {
  position: absolute; z-index: 9; transform: translate(-50%, -100%); pointer-events: none;
  font: 400 14px/1 'Press Start 2P', monospace; color: #FFE27A;
  text-shadow: 2px 0 0 #3A2205, -2px 0 0 #3A2205, 0 2px 0 #3A2205, 0 -2px 0 #3A2205, 2px 2px 0 #3A2205, -2px 2px 0 #3A2205, 0 4px 0 #3A2205, 0 0 14px rgba(255, 210, 90, .7);
  animation: rm-monte 1.4s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes rm-monte { from { opacity: 0; transform: translate(-50%, -60%); } 15% { opacity: 1; } 80% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -260%); } }
.rm-scene > .rm-pluie {
  position: absolute; z-index: 9; width: calc(var(--p) * 9); height: calc(var(--p) * 9); pointer-events: none;
  animation: rm-jaillit 1.1s cubic-bezier(.2, .7, .4, 1) both;
}
@keyframes rm-jaillit {
  from { transform: translate(-50%, 0) scale(.6); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(var(--dy) + 30px)) scale(1); opacity: 0; }
}

/* ── « Continuer » : le prochain pas, en un seul bouton ─────────────────────
   En bas de la carte, centré dans ce qui reste à droite de la feuille de route (--rm-colonne). Du verre
   sombre, comme l'étape en cours ; une pastille vert fluo qui pulse doucement ; le pas à faire en gras.
   Au sommet, il passe à l'or du coffre. */
.rm-cta {
  position: absolute; z-index: 12; left: calc(var(--rm-colonne, 0px) + (100% - var(--rm-colonne, 0px)) / 2); bottom: 26px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 14px; max-width: calc(100% - var(--rm-colonne, 0px) - 48px); min-height: 60px; padding: 8px 20px 8px 9px;
  cursor: pointer; text-align: left; color: #fff; background: rgba(6, 34, 42, .56); border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .7), 0 0 0 0 rgba(182, 255, 59, .5);
  font-family: var(--font); transition: transform .25s cubic-bezier(.2, .9, .3, 1), background-color .25s, border-color .25s, box-shadow .25s;
  animation: rm-cta-entre .5s cubic-bezier(.2, .9, .3, 1) .35s backwards, rm-cta-appel 2.6s ease-out 1.6s infinite;
}
@keyframes rm-cta-entre { from { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes rm-cta-appel { 0% { box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .7), 0 0 0 0 rgba(182, 255, 59, .5); } 70%, 100% { box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .7), 0 0 0 14px rgba(182, 255, 59, 0); } }
.rm-jeu[data-moment="nuit"] .rm-cta { background: rgba(10, 16, 40, .66); }
.rm-cta:hover { transform: translate(-50%, -2px); background: rgba(6, 34, 42, .72); border-color: rgba(182, 255, 59, .7); }
.rm-cta:active { transform: translate(-50%, 0) scale(.985); }
.rm-cta:focus-visible { outline: 3px solid #FFE14D; outline-offset: 3px; }
.rm-cta__ico {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #053B29;
  background: linear-gradient(135deg, #C8FF5A, #39FF14); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16), 0 6px 16px -6px rgba(90, 255, 40, .8);
}
.rm-cta__ico svg { width: 20px; height: 20px; margin-left: 2px; }
.rm-cta__txt { display: grid; gap: 2px; min-width: 0; }
.rm-cta__sur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.rm-cta__titre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; }
.rm-cta__court { display: none; }
.rm-cta__fleche { flex: none; display: grid; color: #C8FF5A; transition: transform .25s cubic-bezier(.2, .9, .3, 1); }
.rm-cta__fleche svg { width: 18px; height: 18px; }
.rm-cta:hover .rm-cta__fleche { transform: translateX(4px); }
.rm-cta.is-sommet .rm-cta__ico, .rm-cta.is-fini .rm-cta__ico { color: #4A2E05; background: linear-gradient(135deg, #FFE27A, #F2B53C); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16), 0 6px 16px -6px rgba(255, 201, 74, .85); }
.rm-cta.is-sommet .rm-cta__fleche, .rm-cta.is-fini .rm-cta__fleche { color: #FFD866; }
.rm-cta.is-sommet:hover, .rm-cta.is-fini:hover { border-color: rgba(255, 216, 102, .8); }
.rm-cta.is-fini { animation: rm-cta-entre .5s cubic-bezier(.2, .9, .3, 1) .35s backwards; }

/* ── La vie de la carte (roadmap/vie.js) ────────────────────────────────────
   Des oiseaux le jour, des lucioles et une étoile filante la nuit, des éclats d'or au sommet, une lueur
   sous l'île en cours. Dessinés en pixels, animés pixel par pixel — et figés quand une île est ouverte. */
.rm-scene > .rm-vie { position: absolute; pointer-events: none; }
.rm-vie .rm-px { position: absolute; left: 0; top: 0; }
/* Autour de l'île en cours, un anneau de lumière : c'est là qu'on joue. Il flotte avec elle (--phase, posée
   par la vue) et pulse en quatre paliers. */
.rm-scene > .rm-vie__balise { z-index: 0; animation: rm-apparait .4s ease backwards, rm-vie-balise 1.3s steps(4) infinite alternate, rm-flotte 2.6s steps(1, end) var(--phase, 0s) infinite; }
@keyframes rm-vie-balise { from { opacity: .35; } to { opacity: 1; } }
/* Un oiseau : il traverse (rm-vie-vol, un pas par pixel du dessin), ses ailes battent. */
.rm-scene > .rm-vie__oiseau { z-index: 0; }
@keyframes rm-vie-vol { to { transform: translateX(var(--vol)); } }
.rm-vie__ailes { position: relative; display: block; overflow: hidden; }
.rm-vie__ailes-images { animation: rm-vie-bat .56s steps(2) infinite; }
@keyframes rm-vie-bat { to { transform: translateX(-100%); } }
/* Une luciole : un pixel vert-jaune qui s'allume, dérive de quelques pixels, s'éteint. */
.rm-scene > .rm-vie__luciole {
  z-index: 4; width: var(--p); height: var(--p); background: #E4FF8A; opacity: 0;
  box-shadow: 0 0 calc(var(--p) * 2.5) calc(var(--p) * .6) rgba(214, 255, 120, .8);
  animation: rm-vie-luciole 5s steps(1) infinite;
}
@keyframes rm-vie-luciole {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  8% { opacity: 1; transform: translate(0, 0); }
  24% { opacity: 1; transform: translate(calc(var(--p) * 2), calc(var(--p) * -1)); }
  40% { opacity: .45; transform: translate(calc(var(--p) * 3), calc(var(--p) * -3)); }
  56% { opacity: 1; transform: translate(calc(var(--p) * 1), calc(var(--p) * -4)); }
  72% { opacity: 1; transform: translate(calc(var(--p) * -1), calc(var(--p) * -5)); }
  84% { opacity: 0; transform: translate(calc(var(--p) * -1), calc(var(--p) * -6)); }
}
/* Une étoile filante, de temps en temps : elle traverse le haut du ciel en une demi-seconde. */
.rm-scene > .rm-vie__filante { z-index: 0; opacity: 0; animation: rm-vie-filante 14s linear 3s infinite; }
@keyframes rm-vie-filante {
  0%, 92% { opacity: 0; transform: translate(0, 0); }
  93% { opacity: 1; transform: translate(0, 0); }
  98% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--p) * 96), calc(var(--p) * 48)); }
}
/* Les éclats d'or du sommet : chacun naît, brille en croix, s'éteint — à son tour. */
.rm-scene > .rm-vie__eclat { z-index: 4; overflow: hidden; }
.rm-vie__eclat.is-brume { opacity: .6; }
.rm-vie__eclat-images { opacity: 0; animation: rm-vie-eclat 3.2s steps(1) infinite; }
@keyframes rm-vie-eclat {
  0%, 52%, 100% { opacity: 0; transform: translateX(0); }
  56% { opacity: 1; transform: translateX(0); }
  64% { opacity: 1; transform: translateX(-33.334%); }
  74% { opacity: 1; transform: translateX(-66.667%); }
  86% { opacity: 1; transform: translateX(-33.334%); }
  93% { opacity: 1; transform: translateX(0); }
}

/* Moins large : l'étape en cours et la feuille de route descendent sous le sélecteur. */
@media (max-width: 1179px) {
  .rm-gauche { top: 80px; }
}

/* ── La fenêtre d'une île : le design du campus, plus de pixel art ──────────
   Le jeu s'arrête à la porte. Une fois l'île ouverte : une grande fenêtre
   claire, l'en-tête en dégradé teal, Sonny avec la photo de son profil, les
   objectifs en liste, et des schémas — tuiles, flux, courbes et curseurs
   des simulateurs — qui se comprennent d'un coup d'œil. */
.rm-dlg-fond {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px;
  background: rgba(21, 37, 32, .38);
  overscroll-behavior: contain; animation: modal-in .3s ease both;
}
.rm-dlg-fond.is-sortie { animation: modal-out .2s ease forwards; }
/* Le flou de la carte, sous le voile : un calque à part, que ce qui bouge dans la fenêtre ne touche pas. */
.rm-dlg-flou {
  position: fixed; inset: 0; z-index: 79; pointer-events: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: modal-in .3s ease both;
}
.rm-dlg-flou.is-sortie { animation: modal-out .2s ease forwards; }
/* Une île ouverte : la carte se fige derrière le voile (cf. dialogue.js) — le flou n'est plus recalculé à chaque image. */
body.rm-dlg-ouvert .rm-jeu, body.rm-dlg-ouvert .rm-jeu * { animation-play-state: paused !important; }
.rm-dlg-fond.is-sortie .rm-dlg { animation: bulle-out .2s ease forwards; }
.rm-dlg {
  display: flex; flex-direction: column; width: min(1320px, 100%); height: min(960px, 100%); min-height: 0; overflow: hidden;
  color: var(--text); background: #F6FAF8; border: 1px solid var(--border); border-radius: 24px;
  box-shadow: 0 30px 70px -30px rgba(21, 64, 50, .5);
  transform-origin: 50% 60%; animation: bulle-in .55s cubic-bezier(.2, 1.22, .36, 1) both;
}
.rm-ico { display: inline-grid; place-items: center; }
.rm-ico svg { display: block; }

/* L'en-tête : le dégradé teal du campus, le numéro de l'île, son avancement. */
.rm-dlg__tete {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px 18px 24px; color: #fff;
  background: radial-gradient(closest-side at 85% -30%, rgba(255, 255, 255, .2), transparent), var(--gradTeal);
}
.rm-dlg__num {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-size: 19px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .45);
}
.rm-dlg__num svg { width: 22px; height: 22px; }
.rm-dlg__num.is-fait { color: var(--green3); background: #fff; border-color: #fff; }
.rm-dlg__num.is-sommet { color: #5A4300; background: linear-gradient(135deg, #FFE98A, #FFD03A); border-color: #FFE98A; }
.rm-dlg__titres { flex: 1; min-width: 0; }
.rm-dlg__sur {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 3px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8);
}
.rm-dlg__apercu { padding: 2px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .02em; text-transform: none; color: #fff; background: rgba(255, 255, 255, .16); }
.rm-dlg__titres h2 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.4px; font-weight: 800; }
.rm-dlg__avance { flex: none; display: grid; gap: 7px; justify-items: end; }
.rm-dlg__avance-txt { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .92); }
.rm-dlg__avance-barre { display: block; width: 150px; height: 6px; overflow: hidden; border-radius: 6px; background: rgba(255, 255, 255, .22); }
.rm-dlg__avance-barre i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #B6FF3B, #39FF14); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.rm-dlg__fermer {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, .14); transition: background .2s ease, transform .25s ease;
}
.rm-dlg__fermer svg { width: 18px; height: 18px; }
.rm-dlg__fermer:hover { background: rgba(255, 255, 255, .26); transform: rotate(90deg); }
.rm-dlg__fermer:focus-visible, .rm-dlg__quete:focus-visible { outline: 2px solid var(--green2); outline-offset: 2px; }

/* Le corps : les objectifs à gauche, l'objectif en cours à droite. */
.rm-dlg__corps { flex: 1; min-height: 0; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.rm-dlg__cote { display: flex; flex-direction: column; gap: 10px; padding: 22px 14px; overflow: auto; background: #fff; border-right: 1px solid var(--border); }
.rm-dlg__sous { margin: 0 8px 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.rm-dlg__quetes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rm-dlg__quetes li { position: relative; }
/* Le fil qui relie les objectifs, vert une fois passé. */
.rm-dlg__quetes li:not(:last-child)::after {
  content: ''; position: absolute; left: 22px; top: 38px; bottom: -10px; width: 2px; border-radius: 2px; background: var(--border-2);
}
.rm-dlg__quetes li.is-fait:not(:last-child)::after { background: var(--green2); }
.rm-dlg__quete {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px;
  text-align: left; cursor: pointer; font: 600 13.5px/1.35 var(--font); color: var(--text); background: transparent; transition: background .2s ease, color .2s ease;
}
.rm-dlg__quete:hover:not(:disabled) { background: rgba(43, 196, 138, .07); }
.rm-dlg__quete:disabled { cursor: default; color: var(--muted-2); }
.rm-dlg__quete.is-courante { color: var(--green3); background: rgba(43, 196, 138, .12); }
.rm-dlg__case {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 12px; font-weight: 800; color: var(--muted); background: #fff; border: 2px solid var(--border-2);
}
.rm-dlg__case svg { width: 14px; height: 14px; }
.rm-dlg__quete.is-courante .rm-dlg__case { color: var(--green3); border-color: var(--green); }
.rm-dlg__quete.is-fait .rm-dlg__case { color: #fff; background: var(--grad); border-color: transparent; }
.rm-dlg__faits:empty { display: none; }
.rm-dlg__faits { display: grid; gap: 6px; margin-top: 8px; padding: 12px 10px 10px; border-radius: 16px; background: #F4FAF7; border: 1px solid rgba(29, 158, 117, .18); }
.rm-dlg__faits .rm-dlg__sous { margin: 0 4px 2px; }
.rm-dlg__faits .rm-v-fait { font-size: 13px; color: var(--text); }
.rm-dlg__faits .rm-v-fait:hover:not(:disabled) { background: rgba(43, 196, 138, .1); }
.rm-dlg__faits .rm-v-fait:focus-visible { outline-color: var(--green2); }
.rm-dlg__faits .rm-v-fait__case { border-color: rgba(21, 64, 50, .3); background: #fff; }
.rm-dlg__faits .rm-v-fait.is-coche .rm-v-fait__case { color: #fff; background: var(--grad); }
.rm-dlg__faits-note { margin: 2px 4px 0; font-size: 11.5px; line-height: 1.45; color: var(--muted-2); }
.rm-dlg__faits--bas { display: none; }
.rm-dlg__xp {
  display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(201, 168, 76, .15), rgba(201, 168, 76, .05)); border: 1px solid rgba(201, 168, 76, .28);
}
.rm-dlg__xp-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; color: #A0812C; background: #fff; }
.rm-dlg__xp-ico svg { width: 18px; height: 18px; }
.rm-dlg__xp p { margin: 0; display: grid; font-size: 12px; color: var(--muted); }
.rm-dlg__xp strong { font-size: 15px; color: #8A6D1F; }

/* L'objectif en cours : Sonny guide d'une phrase, puis ce qu'il y a à voir. */
.rm-dlg__scene { min-width: 0; overflow: auto; overscroll-behavior: contain; padding: 26px clamp(20px, 3.4vw, 44px) 36px; }
.rm-dlg__guide { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.rm-dlg__visage {
  flex: none; display: block; width: 60px; height: 60px; overflow: hidden; border-radius: 50%; background: #E3F4EC;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(29, 158, 117, .45), var(--shadow-sm);
}
.rm-dlg__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.rm-dlg__bulle {
  position: relative; flex: 1; min-width: 0; padding: 12px 18px 13px; border-radius: 18px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.rm-dlg__bulle::before {
  content: ''; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; transform: rotate(45deg);
  background: #fff; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.rm-dlg__qui { display: flex; align-items: baseline; gap: 8px; margin: 0 0 2px; font-size: 13px; }
.rm-dlg__qui span { font-size: 12px; color: var(--muted-2); }
.rm-dlg__dit { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.rm-dlg__dit.is-neuf { animation: rm-dit .45s ease both; }
@keyframes rm-dit { from { opacity: 0; transform: translateY(4px); } }
.rm-dlg__contenu.is-neuf { animation: rm-contenu .42s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rm-contenu { from { opacity: 0; transform: translateY(10px); } }
.rm-dlg__qtete { margin-bottom: 18px; }
.rm-dlg__qsur { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.rm-dlg__qtitre { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.6px; font-weight: 800; color: var(--text); }
.rm-dlg__blocs { display: grid; gap: 20px; }

/* Le pied : précédent, l'avancement, « Objectif suivant » — et « Terminé » sur le dernier. */
.rm-dlg__pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; background: #fff; border-top: 1px solid var(--border); }
.rm-dlg__pied .btn { gap: 8px; }
.rm-dlg__pied .rm-ico svg { width: 17px; height: 17px; }
.rm-ico--retour svg { transform: rotate(180deg); }
.rm-dlg__suivant, .rm-dlg__fin { padding-left: 22px; padding-right: 20px; box-shadow: var(--shadow-green); }
.rm-dlg__fin { padding-left: 18px; padding-right: 24px; }
.rm-dlg__pips { display: flex; gap: 6px; }
.rm-dlg__pips i { width: 26px; height: 5px; border-radius: 3px; background: rgba(21, 64, 50, .13); transition: background .3s ease; }
.rm-dlg__pips i.is-fait { background: var(--green2); }
.rm-dlg__pips i.is-ici { background: var(--green); box-shadow: 0 0 0 2px rgba(43, 196, 138, .25); }

/* Le contenu : des paragraphes courts, parfois avec un petit titre. */
.rm-c-texte { margin: 0; font-size: 15px; line-height: 1.65; color: #24332E; }
.rm-c-para { display: grid; gap: 6px; }
.rm-c-para__titre { margin: 4px 0 0; font-size: 16.5px; line-height: 1.3; font-weight: 800; letter-spacing: -.3px; color: var(--text); }
.rm-c-texte strong, .rm-c-encart strong { color: var(--text); }
.rm-c-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.rm-c-chiffre { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); }
.rm-c-chiffre strong { font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.rm-c-chiffre span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.rm-c-chiffre.is-or { background: rgba(43, 196, 138, .08); border-color: rgba(29, 158, 117, .3); }
.rm-c-chiffre.is-or strong, .rm-c-chiffre.is-vert strong { color: var(--green3); }
.rm-c-chiffre.is-vert { border-color: rgba(29, 158, 117, .3); }
.rm-c-compare { overflow: hidden; border-radius: 16px; font-size: 14px; background: #fff; border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); }
/* Le tableau PEA / CTO : chaque case centrée dans sa ligne, en deux temps — l'essentiel, puis le détail. */
.rm-c-compare__ligne { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); }
.rm-c-compare__ligne > span {
  display: grid; align-content: center; justify-items: center; gap: 2px; padding: 12px 16px;
  text-align: center; line-height: 1.4; color: #2B3A35; border-top: 1px solid var(--border-2);
}
.rm-c-compare__ligne > span + span { border-left: 1px solid var(--border-2); }
.rm-c-compare__ligne > span:first-child { font-weight: 700; color: var(--text); background: #FAFCFB; }
.rm-c-compare__ligne > span strong { font-size: 14.5px; font-weight: 700; color: var(--text); }
.rm-c-compare__ligne > span small { font-size: 12.5px; color: var(--muted); }
.rm-c-compare__ligne.is-tete > span {
  border-top: 0; padding: 11px 16px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green3); background: rgba(43, 196, 138, .09);
}
/* « En savoir plus » : ce qui approfondit un objectif, replié sous une ligne discrète — à ouvrir si l'on veut.
   Le contenu se construit à l'ouverture (cf. dialogue.js) : rien ne pèse tant que c'est fermé. */
.rm-c-replis { display: grid; gap: 10px; }
.rm-c-plus { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fff; transition: border-color .25s, box-shadow .25s; }
.rm-c-plus[open] { border-color: rgba(29, 158, 117, .35); box-shadow: var(--shadow-sm); }
.rm-c-plus__tete { display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 12px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.rm-c-plus__tete::-webkit-details-marker { display: none; }
.rm-c-plus__ico {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; color: var(--teal); background: rgba(15, 118, 110, .1);
  transition: transform .35s cubic-bezier(.34, 1.4, .5, 1), background-color .25s, color .25s;
}
.rm-c-plus__ico svg { width: 15px; height: 15px; }
.rm-c-plus__txt { display: grid; gap: 1px; min-width: 0; }
.rm-c-plus__txt small { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.rm-c-plus__txt strong { font-size: 14.5px; line-height: 1.3; color: var(--text); transition: color .2s; }
.rm-c-plus__fleche { display: grid; margin-left: auto; color: var(--muted-2); transform: rotate(90deg); transition: transform .3s ease; }
.rm-c-plus__fleche svg { width: 16px; height: 16px; }
.rm-c-plus__tete:hover .rm-c-plus__txt strong { color: var(--green); }
.rm-c-plus__tete:focus-visible { outline: 3px solid rgba(29, 158, 117, .4); outline-offset: -3px; border-radius: 16px; }
.rm-c-plus[open] .rm-c-plus__ico { transform: rotate(45deg); color: #fff; background: var(--grad); }
.rm-c-plus[open] .rm-c-plus__fleche { transform: rotate(-90deg); }
.rm-c-plus__corps { display: grid; gap: 18px; padding: 6px 16px 18px; }
.rm-c-plus[open] .rm-c-plus__corps { animation: rm-contenu .32s cubic-bezier(.2, .8, .2, 1) both; }
.rm-c-encart { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.rm-c-encart p { margin: 0; color: #2B3A35; }
.rm-c-encart__ico { flex: none; width: 32px; height: 32px; border-radius: 10px; }
.rm-c-encart__ico svg { width: 17px; height: 17px; }
.rm-c-encart.is-astuce { background: linear-gradient(135deg, rgba(255, 225, 77, .2), rgba(255, 225, 77, .06)); border: 1px solid rgba(232, 190, 40, .35); }
.rm-c-encart.is-astuce .rm-c-encart__ico { color: #7A5A00; background: #FFE14D; }
.rm-c-encart.is-info { background: linear-gradient(135deg, rgba(43, 196, 138, .13), rgba(43, 196, 138, .04)); border: 1px solid rgba(29, 158, 117, .3); }
.rm-c-encart.is-info .rm-c-encart__ico { color: #fff; background: var(--grad); }
.rm-c-note { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted-2); }
/* L'avertissement des projections : une ligne discrète en petit gris, comme les notes, sous le graphique. */
.rm-c-avertissement { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted-2); }
.rm-c-avertissement strong { font-weight: 700; color: var(--muted); }
.rm-c-feuille { margin: 0; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); }
.rm-c-feuille__ligne { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 12px 16px; }
.rm-c-feuille__ligne + .rm-c-feuille__ligne { border-top: 1px solid var(--border-2); }
.rm-c-feuille dt { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.rm-c-feuille dd { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text); }
/* Le déroulé de l'appel, en trois temps. */
.rm-c-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rm-c-etapes li {
  display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 16px; font-size: 13.5px; line-height: 1.5;
  color: var(--muted); background: #fff; border: 1px solid var(--border-2); box-shadow: var(--shadow-sm);
}
.rm-c-etapes strong { font-size: 15px; line-height: 1.3; color: var(--text); }
.rm-c-etapes__num {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 50%;
  font-size: 12.5px; font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 0 0 4px rgba(43, 196, 138, .15);
}
/* La vidéo de Sonny sur l'appel. */
.rm-c-video { display: grid; gap: 10px; width: 100%; max-width: 820px; margin: 0 auto; }
.rm-c-video__lecteur { border-radius: 16px; box-shadow: var(--shadow-md); }
.rm-c-video figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.rm-c-video figcaption .rm-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--grad); }
.rm-c-video figcaption .rm-ico svg { width: 12px; height: 12px; }
.rm-c-video figcaption strong { color: var(--text); }
/* La carte de l'appel : ma photo, le titre, une phrase, le grand bouton au milieu, et ce que l'appel n'est pas. */
.rm-c-rdv {
  display: grid; justify-items: center; width: 100%; max-width: 620px; margin: 4px auto 0; padding: 34px 32px 26px;
  text-align: center; border-radius: 22px; border: 1px solid var(--border-2); box-shadow: var(--shadow-md);
  background: radial-gradient(120% 70% at 50% 0%, rgba(43, 196, 138, .13), transparent 62%), #fff;
}
.rm-c-rdv__visage { display: block; width: 96px; height: 96px; padding: 3px; border-radius: 50%; background: var(--grad); box-shadow: 0 14px 28px -14px rgba(29, 158, 117, .8); }
.rm-c-rdv__photo { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #E6F6EF; }
.rm-c-rdv__qui { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.rm-c-rdv__qui strong { color: var(--text); }
.rm-c-rdv__titre { margin: 16px 0 0; font-size: 23px; line-height: 1.25; font-weight: 800; letter-spacing: -.5px; color: var(--text); }
.rm-c-rdv__texte { margin: 8px 0 0; max-width: 46ch; font-size: 15px; line-height: 1.6; color: #3F5049; }
/* Le bouton, plus grand que partout ailleurs : au survol, la pastille vert profond l'emplit tout entier. */
.rm-c-rdv__btn.btn-flow {
  --flow-fill: #0E5E4A; --flow-fg-on: #fff;
  margin-top: 24px; padding: 18px 50px; font-size: 16px;
  box-shadow: 0 16px 32px -14px rgba(29, 158, 117, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.rm-c-rdv__btn.btn-flow:hover { box-shadow: 0 18px 34px -14px rgba(20, 117, 92, .85); }
.rm-c-rdv__btn:hover .btn-flow__circle { width: 440px; height: 440px; }
.rm-c-rdv__atouts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 20px 0 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.rm-c-rdv__atouts li { display: inline-flex; align-items: center; gap: 6px; }
.rm-c-rdv__coche { color: var(--green); }
.rm-c-rdv__coche svg { width: 15px; height: 15px; stroke-width: 2.6; }
/* Le simulateur des frais, repris tel quel de l'onglet Simulateurs. */
.rm-c-simulateur { display: grid; gap: 16px; }
.rm-c-simulateur .sim-layout { margin: 0; }
.rm-c-simulateur .sim-results { margin: 0; }

/* Ce qu'on règle ou choisit dans un objectif : facultatif, retenu aussitôt. */
.rm-act { display: grid; gap: 16px; }
.rm-act > * { min-width: 0; }
.rm-act__apercu { display: grid; gap: 16px; }
.rm-act__reglages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 26px; margin: 0; padding: 20px 22px; }
/* Le sommet : le pied de la fenêtre devient le bandeau vert Seqooia de l'appel —
   le message à gauche, le bouton vert fluo du campus à droite (le même que le
   bloc « Réservez un appel » : pastille blanche et flèches qui se relaient au survol). */
.rm-dlg--sommet .rm-dlg__pied {
  flex-wrap: wrap; gap: 14px 24px; padding: 18px 28px; color: #fff; border-top: 0;
  background: radial-gradient(closest-side at 92% -30%, rgba(255, 255, 255, .2), transparent), var(--gradTeal);
}
.rm-dlg__appel { display: grid; gap: 3px; min-width: 0; }
.rm-dlg__appel strong { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.rm-dlg__appel span { font-size: 13.5px; color: rgba(255, 255, 255, .86); }
.rm-dlg--sommet .rm-dlg__pied .btn-flow--fluo {
  --flow-fg: #053B29; --flow-bd: transparent; --flow-fill: #0E5E4A; --flow-fg-on: #fff;
  flex: none;
  background: linear-gradient(135deg, #7DFFC0 0%, #3BF59B 50%, #1EDB80 100%);
  box-shadow: 0 10px 26px -10px rgba(59, 245, 155, .85), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.rm-dlg--sommet .rm-dlg__pied .btn-flow--fluo:hover { box-shadow: 0 14px 30px -10px rgba(59, 245, 155, .9); }

/* Les graphiques du cours : ceux des simulateurs, et quelques compagnons. */
.rm-gr { display: grid; gap: 14px; }
.rm-gr > .card + .card { margin-top: 0; }
.rm-gr__reglages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; margin: 0; padding: 20px 22px; }
.rm-gr__raccourcis { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.rm-gr__puces { display: flex; gap: 6px; }
.rm-gr__puce { padding: 5px 12px; border-radius: 999px; cursor: pointer; font: 700 12px var(--font); color: var(--muted); background: #F1F5F3; border: 1px solid transparent; transition: all .2s ease; }
.rm-gr__puce:hover { color: var(--green3); border-color: rgba(29, 158, 117, .35); }
.rm-gr__puce.is-actif { color: #fff; background: var(--grad); }
.rm-gr__graphe { margin: 0; }
.rm-gr__resultats { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 12px; }
.rm-gr__resultats > .card + .card { margin-top: 0; }
.sim-legend__swatch.rm-gr__pointille { width: 16px; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px); }
/* Sur grand écran, les curseurs à gauche et la courbe à droite : tout tient sans défiler. */
@media (min-width: 1000px) {
  .rm-gr--boule, .rm-gr--formule { grid-template-columns: minmax(250px, .78fr) minmax(0, 1.75fr); align-items: start; }
  .rm-gr--boule .rm-gr__reglages { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rm-gr--boule .rm-gr__resultats { grid-column: 1 / -1; }
  .rm-gr--boule .rm-gr__raccourcis { flex-wrap: wrap; }
}
/* La jauge du taux d'épargne. */
.rm-jauge { padding: 34px 8px 0; }
.rm-jauge__piste { position: relative; height: 14px; border-radius: 14px; background: rgba(21, 64, 50, .08); }
.rm-jauge__rempli { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 14px; background: var(--grad); transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.rm-jauge__rempli.is-faible { background: linear-gradient(135deg, #FFE14D, #E8B820); }
.rm-jauge__repere { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: rgba(21, 64, 50, .28); }
.rm-jauge__valeur {
  position: absolute; bottom: calc(100% + 9px); transform: translateX(-50%); padding: 3px 8px; border-radius: 8px; white-space: nowrap;
  font-size: 12.5px; font-weight: 800; color: #fff; background: var(--text); transition: left .4s cubic-bezier(.2, .8, .2, 1);
}
.rm-jauge__valeur::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--text); }
.rm-jauge__reperes { position: relative; height: 38px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.rm-jauge__reperes span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.rm-jauge__reperes span.is-bas { top: 18px; font-weight: 700; color: var(--text); }
/* Le match fiscal : le même gain, deux enveloppes côte à côte, en barres qui suivent le curseur. */
.rm-fisc { display: grid; gap: 18px; margin: 0; padding: 20px 22px 22px; }
.rm-fisc__curseur { display: grid; gap: 8px; padding: 14px 18px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(43, 196, 138, .12), rgba(43, 196, 138, .04)); border: 1px solid rgba(29, 158, 117, .25); }
.rm-fisc__curseur .sim-slider__label { font-size: 14px; font-weight: 800; color: var(--text); }
.rm-fisc__curseur .sim-slider__value { font-size: 20px; }
.rm-fisc__estime { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.rm-fisc__duo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 14px; }
.rm-fisc__vs { align-self: center; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 13px; font-weight: 800; color: #fff; background: var(--text); box-shadow: 0 0 0 5px #fff, var(--shadow-md); }
.rm-fisc__col { display: grid; gap: 12px; align-content: start; padding: 16px 16px 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--border-2); }
.rm-fisc__col.is-pea { border-color: rgba(29, 158, 117, .4); background: linear-gradient(180deg, rgba(43, 196, 138, .08), #fff 40%); }
.rm-fisc__col.is-cto { border-color: rgba(15, 118, 110, .3); background: linear-gradient(180deg, rgba(15, 118, 110, .06), #fff 40%); }
.rm-fisc__tete { display: grid; gap: 8px; }
.rm-fisc__nom { display: flex; align-items: baseline; gap: 8px; }
.rm-fisc__nom strong { font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: var(--text); }
.rm-fisc__nom span { font-size: 12.5px; color: var(--muted-2); }
.rm-fisc__puces { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-fisc__puces em { padding: 3px 9px; border-radius: 8px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--teal-deep); background: rgba(50, 90, 90, .08); }
/* Deux barres verticales, à la même échelle : ce qui reste pour toi, l'impôt. */
.rm-fisc__plot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; height: 230px; padding: 30px 10px 0; align-items: end;
  background: repeating-linear-gradient(0deg, transparent 0 45px, rgba(21, 64, 50, .07) 45px 46px);
  border-bottom: 2px solid rgba(21, 64, 50, .14);
}
.rm-fisc__piste { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.rm-fisc__barre {
  position: relative; display: block; width: min(76px, 100%); min-height: 4px; border-radius: 12px 12px 4px 4px;
  transition: height .45s cubic-bezier(.2, .8, .2, 1);
}
.rm-fisc__barre.is-net { background: var(--grad); box-shadow: 0 10px 22px -12px rgba(29, 158, 117, .9); }
.rm-fisc__barre.is-impot { background: linear-gradient(180deg, #FF7A6E, #E74C3C); box-shadow: 0 10px 22px -12px rgba(231, 76, 60, .9); }
.rm-fisc__valeur { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rm-fisc__valeur.is-net { color: var(--green3); }
.rm-fisc__valeur.is-impot { color: #C0392B; }
.rm-fisc__legende { position: absolute; top: calc(100% + 6px); font-size: 12px; font-weight: 700; color: var(--muted); }
.rm-fisc__taux { margin-top: 22px; font-size: 12.5px; color: var(--muted-2); text-align: center; }
/* Ce que tu gardes, sous chaque enveloppe : les mêmes colonnes que le duel (le VS au milieu), le texte centré. */
.rm-fisc__gardes { display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.rm-fisc__garde { display: grid; justify-items: center; align-content: center; gap: 3px; padding: 14px 14px 15px; border-radius: 16px; text-align: center; }
.rm-fisc__garde span { font-size: 14px; font-weight: 700; line-height: 1.3; }
.rm-fisc__garde strong { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.rm-fisc__garde em { margin-top: 4px; padding: 4px 11px; border-radius: 999px; font-style: normal; font-size: 12.5px; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; }
.rm-fisc__garde.is-pea { color: #fff; background: radial-gradient(closest-side at 90% -20%, rgba(255, 255, 255, .18), transparent), var(--grad); box-shadow: var(--shadow-green); }
.rm-fisc__garde.is-pea em { background: rgba(255, 255, 255, .2); }
.rm-fisc__garde.is-cto { color: var(--text); background: #fff; border: 1.5px solid rgba(15, 118, 110, .3); }
.rm-fisc__garde.is-cto span { color: var(--muted); }
.rm-fisc__garde.is-cto strong { color: var(--teal-deep); }
.rm-fisc__garde.is-cto em { color: #C0392B; background: rgba(231, 76, 60, .08); }


/* Ton temps pour 100 000 € : le curseur et le résultat à gauche, la courbe à droite. */
.rm-gr--formule { align-items: stretch; }
.rm-gr--formule .rm-gr__reglages { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; }
.rm-formule__resultat {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(135deg, #FFF7D1, #FFFDF2); border: 1px solid rgba(232, 190, 40, .45);
}
.rm-formule__ico { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #6B4A00; background: linear-gradient(135deg, #FFE98A, #FFD03A); box-shadow: 0 10px 22px -12px rgba(232, 180, 20, .9); }
.rm-formule__ico svg { width: 26px; height: 26px; }
.rm-formule__resultat > div { display: grid; gap: 2px; }
.rm-gr--formule .rm-formule__resultat { flex-direction: column; align-items: flex-start; gap: 10px; }
.rm-formule__resultat > div > span { font-size: 13px; line-height: 1.4; color: #6E5A2A; }
.rm-formule__resultat strong { font-size: 25px; line-height: 1.15; font-weight: 800; letter-spacing: -.6px; color: #4A3700; }
/* Ton cap : la somme de départ, la roue des années — l'effort du mois juste dessous — à gauche ;
   la courbe vers les 100 000 €, année par année, et le détail de l'arrivée à droite. */
.rm-cap { display: grid; grid-template-columns: 248px minmax(0, 1fr); margin: 0; padding: 0; overflow: hidden; }
.rm-cap__reglage {
  display: grid; justify-items: center; align-content: center; gap: 14px; padding: 22px 16px; text-align: center;
  background: #FAFCFB; border-right: 1px solid var(--border-2);
}
.rm-cap__question { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.2px; color: var(--text); }
.rm-cap__reglage > .roue { width: 136px; height: 204px; }
.rm-cap__effort { display: grid; gap: 3px; }
.rm-cap__effort strong { font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -.6px; color: var(--green3); font-variant-numeric: tabular-nums; }
.rm-cap__effort span { font-size: 12px; line-height: 1.45; color: var(--muted); }
.rm-cap__graphe { min-width: 0; }
/* La somme de départ : la question, le montant (à taper ou à faire glisser), le curseur. */
.rm-cap__depart { justify-self: stretch; padding-bottom: 18px; border-bottom: 1px solid var(--border-2); }
.rm-cap__depart .sim-slider__head { flex-direction: column; gap: 8px; margin-bottom: 10px; }
.rm-cap__depart .sim-slider__label { font-size: 14px; font-weight: 800; letter-spacing: -.2px; color: var(--text); }
.rm-cap__depart .sim-slider__value { padding: 4px 12px; font-size: 19px; font-weight: 800; border-color: var(--border-2); background: #fff; }
.rm-cap__depart .sim-slider__unit { font-size: 15px; font-weight: 700; }
/* L'arrivée, sous la courbe : le capital, ce que tu as versé, ce que les intérêts ont ajouté. */
.rm-cap__bilan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; border-top: 1px solid var(--border-2); }
.rm-cap__chiffre { display: grid; align-content: start; gap: 2px; padding: 12px 14px 0; }
.rm-cap__chiffre:first-child { padding-left: 4px; }
.rm-cap__chiffre + .rm-cap__chiffre { border-left: 1px solid var(--border-2); }
.rm-cap__chiffre span { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.rm-cap__chiffre strong { font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: -.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.rm-cap__chiffre small { font-size: 11.5px; line-height: 1.35; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.rm-cap__chiffre.is-vert span, .rm-cap__chiffre.is-vert strong { color: var(--green3); }

/* Le trophée de la boule de neige : atteint, ou ce qu'il faut pour le voir. */
.rm-gr__palier { grid-column: 1 / -1; margin: 0; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45; font-weight: 650; color: #6B4A00; background: rgba(255, 212, 59, .18); border: 1px solid rgba(224, 168, 0, .3); }

/* ── Les schémas du cours (roadmap/visuels.js) ── */
.rm-v-ico { display: inline-grid; place-items: center; }
.rm-v-ico svg, .rm-v-tuile__ico svg, .rm-v-flux__ico svg, .rm-v-route__ico svg, .rm-v-choix__ico svg { display: block; width: 22px; height: 22px; }
/* Les tuiles : une icône, un chiffre, trois mots. */
.rm-v-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.rm-v-tuile {
  display: grid; justify-items: start; align-content: start; gap: 5px; padding: 18px 18px 17px; border-radius: 18px;
  background: #fff; border: 1px solid var(--border-2); box-shadow: var(--shadow-sm);
}
.rm-v-tuile__ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px; color: #fff; background: var(--gradTeal); box-shadow: 0 8px 18px -10px rgba(15, 118, 110, .7); }
.rm-v-tuile__valeur { font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; color: var(--text); }
.rm-v-tuile__titre { font-size: 13.5px; line-height: 1.4; font-weight: 600; color: var(--muted); }
.rm-v-tuile__texte { font-size: 12.5px; line-height: 1.4; color: var(--muted-2); }
.rm-v-tuile.is-vert .rm-v-tuile__ico { background: var(--grad); box-shadow: var(--shadow-green); }
.rm-v-tuile.is-vert .rm-v-tuile__valeur { color: var(--green3); }
.rm-v-tuile.is-rouge .rm-v-tuile__ico { background: linear-gradient(135deg, #FF7A6E, #E74C3C); box-shadow: 0 8px 18px -10px rgba(231, 76, 60, .7); }
.rm-v-tuile.is-rouge .rm-v-tuile__valeur { color: #C0392B; }
.rm-v-tuile.is-or .rm-v-tuile__ico { color: #6B4A00; background: linear-gradient(135deg, #FFE98A, #FFD03A); }
/* La route du départ : les sept îles, puis le coffre. */
.rm-v-route { position: relative; list-style: none; margin: 0; padding: 6px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 8px; }
.rm-v-route::before {
  content: ''; position: absolute; left: 6%; right: 6%; top: 34px; height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, rgba(29, 158, 117, .45) 0 7px, transparent 7px 13px);
}
.rm-v-route__pt { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; }
.rm-v-route__rond {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 6px; border-radius: 50%;
  color: var(--green3); background: #fff; border: 2px solid rgba(29, 158, 117, .35); box-shadow: var(--shadow-sm);
}
.rm-v-route__rond em {
  position: absolute; top: -4px; right: -4px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--teal-deep); border: 2px solid #fff;
}
.rm-v-route__pt strong { font-size: 13.5px; line-height: 1.25; color: var(--text); }
.rm-v-route__pt > span:not(.rm-v-route__rond) { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.rm-v-route__pt.is-ici .rm-v-route__rond { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 0 0 6px rgba(43, 196, 138, .18), var(--shadow-green); animation: rm-ici 2.4s ease-in-out infinite; }
.rm-v-route__pt.is-ici .rm-v-route__rond em { color: #5A4300; background: #FFE14D; }
@keyframes rm-ici { 50% { box-shadow: 0 0 0 11px rgba(43, 196, 138, .08), var(--shadow-green); } }
.rm-v-route__pt.is-sommet .rm-v-route__rond { color: #6B4A00; background: linear-gradient(135deg, #FFE98A, #FFD03A); border-color: transparent; box-shadow: 0 10px 24px -12px rgba(232, 180, 20, .8); }
.rm-v-route__pt.is-sommet strong { color: #8A6400; }
/* Les flux : une étape, une flèche, la suivante. */
.rm-v-flux { display: flex; align-items: stretch; gap: 10px; }
.rm-v-flux__pas {
  flex: 1 1 0; min-width: 0; display: grid; justify-items: center; align-content: start; gap: 5px; padding: 20px 14px 18px; text-align: center;
  border-radius: 18px; background: #fff; border: 1px solid var(--border-2); box-shadow: var(--shadow-sm);
}
.rm-v-flux__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; color: var(--teal); background: rgba(15, 118, 110, .1); }
.rm-v-flux__ico svg { width: 24px; height: 24px; }
.rm-v-flux__pas strong { font-size: 15px; line-height: 1.3; color: var(--text); }
.rm-v-flux__pas > span:not(.rm-v-flux__ico) { font-size: 13px; line-height: 1.4; color: var(--muted); }
.rm-v-flux__pas.is-vert { background: linear-gradient(135deg, rgba(43, 196, 138, .12), #fff 70%); border-color: rgba(29, 158, 117, .3); }
.rm-v-flux__pas.is-vert .rm-v-flux__ico { color: #fff; background: var(--grad); box-shadow: var(--shadow-green); }
.rm-v-flux__fleche { flex: none; align-self: center; display: grid; place-items: center; color: var(--green); }
.rm-v-flux__fleche svg { width: 24px; height: 24px; }

/* Le pilote automatique : le petit calendrier du mois à gauche (la paie, puis le jour où l'épargne part
   toute seule), la ligne des versements à droite — un point par mois, chacun marqué « +100 € ».
   Mêmes tailles de texte des deux côtés : 14 px pour les titres, 12 px pour le reste. */
.rm-v-pilote { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.rm-v-pilote__cal, .rm-v-pilote__ligne { min-width: 0; border-radius: 18px; background: #fff; border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); }
.rm-v-pilote__cal { overflow: hidden; }
.rm-v-pilote__cal-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; color: #fff; background: var(--gradTeal); }
.rm-v-pilote__cal-tete strong { font-size: 14px; font-weight: 800; letter-spacing: -.2px; }
.rm-v-pilote__chaque {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
}
.rm-v-pilote__chaque-ico svg { display: block; width: 12px; height: 12px; }
.rm-v-pilote__grille { display: grid; grid-template-columns: repeat(7, 28px); justify-content: space-between; row-gap: 2px; padding: 10px 14px 2px; }
.rm-v-pilote__js { display: grid; place-items: center; height: 22px; font-size: 11px; font-weight: 800; color: var(--muted-2); }
.rm-v-pilote__j {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 12px; font-weight: 600; color: #3F5049; font-variant-numeric: tabular-nums;
}
.rm-v-pilote__j.is-paie { color: var(--teal); background: rgba(15, 118, 110, .1); box-shadow: inset 0 0 0 1.5px rgba(15, 118, 110, .4); }
.rm-v-pilote__j.is-invest { color: #fff; font-weight: 800; background: var(--grad); box-shadow: 0 6px 14px -6px rgba(29, 158, 117, .85); }
.rm-v-pilote__legende { list-style: none; display: grid; gap: 5px; margin: 0; padding: 8px 14px 13px; font-size: 12px; color: var(--muted); }
.rm-v-pilote__legende li { display: flex; align-items: center; gap: 8px; }
.rm-v-pilote__legende i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.rm-v-pilote__legende i.is-paie { background: rgba(15, 118, 110, .14); box-shadow: inset 0 0 0 1.5px rgba(15, 118, 110, .45); }
.rm-v-pilote__legende i.is-invest { background: var(--grad); }
.rm-v-pilote__ligne { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 4px; padding: 14px 18px 8px; }
.rm-v-pilote__ligne-tete { display: grid; gap: 2px; }
.rm-v-pilote__ligne-tete strong { font-size: 14px; font-weight: 800; letter-spacing: -.2px; color: var(--text); }
.rm-v-pilote__ligne-tete span { font-size: 12px; color: var(--muted); }
.rm-v-pilote__courbe { display: grid; grid-template-rows: minmax(150px, 1fr) auto; }
/* Le dessin s'étire à la carte ; les points et leurs « +100 € » sont posés par-dessus, aux mêmes positions. */
.rm-v-pilote__trace { position: relative; margin-top: 8px; }
.rm-v-pilote__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rm-v-pilote__trait { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rm-v-pilote__pt {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; box-sizing: border-box; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--green); box-shadow: 0 2px 6px rgba(21, 64, 50, .2);
}
.rm-v-pilote__pt em {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 2px 6px; border-radius: 6px;
  font-style: normal; font-size: 11px; font-weight: 800; white-space: nowrap; color: var(--green3); background: rgba(43, 196, 138, .12);
}
.rm-v-pilote__pt.is-dernier { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--green); border-color: #fff; box-shadow: 0 0 0 3px rgba(43, 196, 138, .28), 0 4px 10px rgba(21, 64, 50, .25); }
.rm-v-pilote__pt.is-dernier em { color: #053B29; background: #B6FF3B; }
.rm-v-pilote__mois { position: relative; height: 24px; border-top: 1.5px solid var(--border-2); }
.rm-v-pilote__mois small { position: absolute; top: 5px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--muted-2); }
@media (prefers-reduced-motion: no-preference) {
  .rm-v-pilote__svg { animation: rm-pilote-trace 1.1s cubic-bezier(.4, 0, .2, 1) .15s both; }
  .rm-v-pilote__pt { animation: rm-pilote-point .38s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(.15s + (var(--i, 0) + 1) * .17s); }
}
@keyframes rm-pilote-trace { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rm-pilote-point { from { opacity: 0; transform: scale(.3); } }
/* Le face-à-face : l'ETF contre l'action. */
.rm-v-duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.rm-v-duel__carte { display: grid; justify-items: center; gap: 4px; padding: 20px 20px 22px; text-align: center; border-radius: 20px; background: #fff; border: 1.5px solid var(--border-2); box-shadow: var(--shadow-sm); }
.rm-v-duel__carte.is-vert { border-color: rgba(29, 158, 117, .4); background: linear-gradient(180deg, rgba(43, 196, 138, .1), #fff 55%); }
.rm-v-duel__carte.is-rouge { border-color: rgba(231, 76, 60, .3); background: linear-gradient(180deg, rgba(231, 76, 60, .07), #fff 55%); }
.rm-v-duel__illus { width: 150px; margin-bottom: 4px; }
.rm-v-duel__illus svg { display: block; width: 100%; height: auto; }
.rm-v-duel__fond { fill: #fff; stroke: currentColor; stroke-width: 2.5; }
.rm-v-duel__bord { stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.rm-v-duel__carte.is-vert .rm-v-duel__illus { color: var(--green); }
.rm-v-duel__carte.is-rouge .rm-v-duel__illus { color: #E74C3C; }
.rm-v-duel__points circle { fill: var(--green2); }
.rm-v-duel__points circle:nth-child(3n) { fill: #FFD03A; }
.rm-v-duel__points circle:nth-child(4n) { fill: var(--teal); }
.rm-v-duel__fenetres rect { fill: rgba(231, 76, 60, .25); }
.rm-v-duel__titre { font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--text); }
.rm-v-duel__sous { margin-bottom: 8px; font-size: 13.5px; color: var(--muted); }
.rm-v-duel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; justify-items: start; text-align: left; }
.rm-v-duel li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: #2B3A35; }
.rm-v-duel__puce { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.rm-v-duel__puce svg { width: 13px; height: 13px; }
.rm-v-duel__carte.is-vert .rm-v-duel__puce { color: #fff; background: var(--grad); }
.rm-v-duel__carte.is-rouge .rm-v-duel__puce { color: #C0392B; background: rgba(231, 76, 60, .12); }
.rm-v-duel__vs { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-size: 14px; font-weight: 800; color: #fff; background: var(--text); box-shadow: 0 0 0 5px #F6FAF8, var(--shadow-md); }
/* Le matelas de sécurité : trois niveaux, trois compteurs (l'aiguille monte jusqu'à son niveau). */
.rm-matelas { display: grid; gap: 10px; }
.rm-matelas__niveaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rm-matelas__niveau {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 16px 16px 18px; text-align: center;
  border-radius: 20px; background: #fff; border: 1.5px solid var(--border-2); box-shadow: var(--shadow-sm);
}
.rm-matelas__niveau.is-objectif { border-color: rgba(29, 158, 117, .55); background: linear-gradient(180deg, rgba(43, 196, 138, .1), #fff 55%); box-shadow: 0 0 0 4px rgba(43, 196, 138, .12), var(--shadow-md); }
.rm-matelas__ruban { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--grad); box-shadow: var(--shadow-green); }
.rm-matelas__badge { padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rm-matelas__niveau.is-n1 .rm-matelas__badge { color: #6B4A00; background: rgba(245, 180, 0, .2); }
.rm-matelas__niveau.is-n2 .rm-matelas__badge { color: var(--green3); background: rgba(43, 196, 138, .16); }
.rm-matelas__niveau.is-n3 .rm-matelas__badge { color: #0B5C4B; background: rgba(15, 118, 110, .16); }
.rm-matelas__mois { margin-top: 2px; font-size: 16px; line-height: 1.3; font-weight: 800; letter-spacing: -.3px; color: var(--text); }
.rm-matelas__montant { font-size: 14px; font-weight: 700; color: var(--green3); font-variant-numeric: tabular-nums; }
.rm-matelas__texte { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rm-matelas__texte b { color: var(--text); }
.rm-matelas__base { margin: 0; font-size: 12px; color: var(--muted-2); text-align: center; }
.rm-compteur { display: block; width: 100%; max-width: 210px; height: auto; overflow: visible; }
.rm-compteur__zone { fill: none; stroke-width: 15; stroke-linecap: butt; }
.rm-compteur__zone.is-z1 { stroke: rgba(245, 180, 0, .2); }
.rm-compteur__zone.is-z2 { stroke: rgba(43, 196, 138, .2); }
.rm-compteur__zone.is-z3 { stroke: rgba(15, 118, 110, .2); }
.rm-compteur__valeur { fill: none; stroke-width: 15; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: rm-compteur-arc 1.1s cubic-bezier(.2, .8, .2, 1) .15s forwards; }
@keyframes rm-compteur-arc { to { stroke-dashoffset: 0; } }
.rm-compteur.is-n1 .rm-compteur__valeur { stroke: #F5B400; }
.rm-compteur.is-n2 .rm-compteur__valeur { stroke: #1DB97E; }
.rm-compteur.is-n3 .rm-compteur__valeur { stroke: #0F8F74; filter: drop-shadow(0 0 6px rgba(57, 255, 20, .45)); }
.rm-compteur__grad { stroke: rgba(21, 64, 50, .22); stroke-width: 1.5; stroke-linecap: round; }
.rm-compteur__grad.is-forte { stroke: rgba(21, 64, 50, .45); stroke-width: 2.2; }
.rm-compteur__aiguille { fill: var(--text); transform-box: view-box; transform-origin: 100px 100px; transform: rotate(var(--angle)); animation: rm-aiguille 1.3s cubic-bezier(.3, 1.4, .4, 1) .15s backwards; }
@keyframes rm-aiguille { from { transform: rotate(0deg); } }
.rm-compteur__moyeu { fill: #fff; stroke: var(--text); stroke-width: 4; }

/* Les cartes à choisir : une icône, un mot, et une coche bien visible. */
.rm-v-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.rm-v-choix__carte {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 22px 16px 18px; text-align: center; cursor: pointer;
  font: 500 13.5px/1.45 var(--font); color: var(--muted); background: #fff; border: 2px solid var(--border-2); border-radius: 20px; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .25s cubic-bezier(.2, 1.3, .4, 1), box-shadow .2s ease, background .2s ease;
}
.rm-v-choix__carte:hover { border-color: rgba(29, 158, 117, .55); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rm-v-choix__carte:focus-visible { outline: 3px solid rgba(43, 196, 138, .45); outline-offset: 2px; }
.rm-v-choix__ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px; border-radius: 18px; color: var(--teal); background: rgba(15, 118, 110, .09); transition: all .25s ease; }
.rm-v-choix__ico svg { width: 27px; height: 27px; }
.rm-v-choix__carte strong { font-size: 16px; line-height: 1.25; color: var(--text); }
.rm-v-choix__desc { font-size: 13px; color: var(--muted); }
.rm-v-choix__case {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  color: transparent; background: #fff; border: 2px solid var(--border-2); transition: all .2s ease;
}
.rm-v-choix__case svg { width: 14px; height: 14px; }
.rm-v-choix.is-multi .rm-v-choix__case { border-radius: 8px; }
.rm-v-choix__carte.is-choisi { background: linear-gradient(180deg, rgba(43, 196, 138, .12), #fff 75%); border-color: var(--green); box-shadow: 0 0 0 4px rgba(43, 196, 138, .14), var(--shadow-md); }
.rm-v-choix__carte.is-choisi .rm-v-choix__ico { color: #fff; background: var(--grad); box-shadow: var(--shadow-green); }
.rm-v-choix__carte.is-choisi .rm-v-choix__case { color: #fff; background: var(--grad); border-color: transparent; }
.rm-v-choix__carte.is-neuf .rm-v-choix__case { animation: rm-coche .35s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes rm-coche { from { transform: scale(.5); } }
.rm-v-choix__suggere { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #8A6400; background: rgba(255, 225, 77, .3); }
/* Le classement des courtiers : le logo, le nom, ce qui le distingue. */
.rm-v-courtiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rm-v-courtier {
  position: relative; display: grid; grid-template-columns: 34px 52px minmax(0, 1fr) 28px; align-items: center; gap: 14px; width: 100%;
  padding: 12px 16px 12px 12px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: #fff; border: 2px solid var(--border-2); border-radius: 18px; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .25s cubic-bezier(.2, 1.3, .4, 1), box-shadow .2s ease, background .2s ease;
}
.rm-v-courtier:hover { border-color: rgba(29, 158, 117, .5); transform: translateX(3px); box-shadow: var(--shadow-md); }
.rm-v-courtier:focus-visible { outline: 3px solid rgba(43, 196, 138, .45); outline-offset: 2px; }
.rm-v-courtier__rang { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; font-weight: 800; color: var(--muted); background: #F1F5F3; }
.rm-v-courtier__rang.is-vide { background: transparent; }
.rm-v-courtier.is-premier { border-color: rgba(232, 190, 40, .55); background: linear-gradient(90deg, rgba(255, 225, 77, .16), #fff 45%); }
.rm-v-courtier.is-premier .rm-v-courtier__rang { color: #5A4300; background: linear-gradient(135deg, #FFE98A, #FFD03A); box-shadow: 0 6px 14px -6px rgba(232, 180, 20, .8); }
.rm-v-courtier__logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 1px rgba(21, 64, 50, .08), var(--shadow-sm); }
.rm-v-courtier__logo.is-icone { display: grid; place-items: center; color: var(--muted); background: #F1F5F3; box-shadow: none; }
.rm-v-courtier__logo.is-icone svg { width: 24px; height: 24px; }
.rm-v-courtier__corps { display: grid; gap: 3px; min-width: 0; }
.rm-v-courtier__haut { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.rm-v-courtier__haut strong { font-size: 16px; font-weight: 800; }
.rm-v-courtier__badge { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: var(--green3); background: rgba(43, 196, 138, .13); }
.rm-v-courtier.is-premier .rm-v-courtier__badge { color: #5A4300; background: #FFE14D; }
.rm-v-courtier__texte { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.rm-v-courtier__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.rm-v-courtier__tags em { padding: 2px 8px; border-radius: 7px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--teal-deep); background: rgba(50, 90, 90, .08); }
.rm-v-courtier__case { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: transparent; border: 2px solid var(--border-2); transition: all .2s ease; }
.rm-v-courtier__case svg { width: 14px; height: 14px; }
.rm-v-courtier.is-choisi { border-color: var(--green); box-shadow: 0 0 0 4px rgba(43, 196, 138, .14), var(--shadow-md); }
.rm-v-courtier.is-choisi .rm-v-courtier__case { color: #fff; background: var(--grad); border-color: transparent; animation: rm-coche .35s cubic-bezier(.2, 1.5, .4, 1); }
/* Les personnages des classes (Premier portefeuille) : du pixel art, agrandi sans flou. */
.rm-v-sprite { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
/* Le PEA et le CTO, en deux colonnes : un paragraphe, puis chaque force expliquée. */
.rm-v-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rm-v-colonne { display: grid; align-content: start; gap: 12px; padding: 20px 20px 18px; border-radius: 20px; background: #fff; border: 1.5px solid var(--border-2); box-shadow: var(--shadow-sm); }
.rm-v-colonne.is-vert { border-color: rgba(29, 158, 117, .4); background: linear-gradient(180deg, rgba(43, 196, 138, .09), #fff 38%); }
.rm-v-colonne.is-bleu { border-color: rgba(15, 118, 110, .35); background: linear-gradient(180deg, rgba(15, 118, 110, .08), #fff 38%); }
.rm-v-colonne__tete { display: flex; align-items: center; gap: 12px; }
.rm-v-colonne__ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff; }
.rm-v-colonne__ico svg { width: 24px; height: 24px; }
.rm-v-colonne.is-vert .rm-v-colonne__ico { background: var(--grad); box-shadow: var(--shadow-green); }
.rm-v-colonne.is-bleu .rm-v-colonne__ico { background: var(--gradTeal); box-shadow: 0 8px 18px -10px rgba(15, 118, 110, .7); }
.rm-v-colonne__tete div { display: grid; gap: 1px; }
.rm-v-colonne__tete strong { font-size: 22px; line-height: 1.1; font-weight: 800; letter-spacing: -.5px; color: var(--text); }
.rm-v-colonne__tete div span { font-size: 13px; color: var(--muted); }
.rm-v-colonne__texte { margin: 0; font-size: 14px; line-height: 1.6; color: #2B3A35; }
.rm-v-colonne__forces { list-style: none; margin: 0; padding: 12px 0 0; display: grid; gap: 11px; border-top: 1px dashed var(--border-2); }
.rm-v-colonne__forces li { display: flex; gap: 10px; align-items: flex-start; }
.rm-v-colonne__forces li > div { display: grid; gap: 1px; }
.rm-v-colonne__forces strong { font-size: 14.5px; line-height: 1.35; color: var(--text); }
/* Le texte sous chaque force (pas la pastille, dont la coche reste blanche). */
.rm-v-colonne__forces li > div span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.rm-v-colonne__puce { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; color: #fff; }
.rm-v-colonne__puce svg { width: 12px; height: 12px; }
.rm-v-colonne.is-vert .rm-v-colonne__puce { background: var(--grad); }
.rm-v-colonne.is-bleu .rm-v-colonne__puce { background: var(--gradTeal); }
/* Les trois règles d'or : une carte chacune, son paragraphe, son exemple chiffré. */
.rm-v-regles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
/* Chaque carte occupe trois rangées partagées avec ses voisines (subgrid) : en-têtes, puces et exemples alignés. */
.rm-v-regle {
  display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 14px;
  padding: 18px 18px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--border-2); box-shadow: var(--shadow-sm);
}
@supports not (grid-template-rows: subgrid) { .rm-v-regle { grid-template-rows: auto 1fr auto; } }
.rm-v-regle__tete { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border-2); }
.rm-v-regle__tete > div { display: grid; gap: 2px; min-width: 0; }
.rm-v-regle__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #F6CB55, #CF961C); box-shadow: 0 8px 18px -10px rgba(176, 125, 18, .85); }
.rm-v-regle__ico svg { width: 22px; height: 22px; }
.rm-v-regle__num { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #B07D12; }
.rm-v-regle__tete strong { font-size: 18px; line-height: 1.2; font-weight: 800; letter-spacing: -.3px; color: var(--text); }
.rm-v-regle__points { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 10px; }
.rm-v-regle__points li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: #2B3A35; }
.rm-v-regle__puce { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; color: #fff; background: var(--grad); }
.rm-v-regle__puce svg { width: 10px; height: 10px; }
.rm-v-regle__exemple { margin: 0; display: grid; align-content: start; gap: 4px; padding: 11px 13px; border-radius: 12px; font-size: 13px; line-height: 1.45; color: #5A4300; background: rgba(255, 225, 77, .16); border: 1px solid rgba(232, 190, 40, .32); }
.rm-v-regle__exemple span { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8A6400; }
/* La stratégie de la classe : le personnage, la répartition, le socle, les actions, la routine. */
.rm-v-strategie { --c1: #39E39C; --c2: #0F6B54; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); }
.rm-v-strategie[data-classe="mage"] { --c1: #7AA6FF; --c2: #2A47B0; }
.rm-v-strategie[data-classe="guerrier"] { --c1: #FF5A7A; --c2: #E3007D; }
.rm-v-strategie__tete { display: flex; align-items: center; gap: 18px; padding: 18px 22px 18px 16px; color: #fff; background: radial-gradient(closest-side at 10% 50%, rgba(255, 255, 255, .2), transparent 70%), linear-gradient(135deg, var(--c1), var(--c2)); }
/* Le personnage au centre de son médaillon, à mi-hauteur de l'en-tête : il ne frôle plus le bas. */
.rm-v-strategie__scene {
  flex: none; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .34), rgba(255, 255, 255, .1) 64%, rgba(255, 255, 255, .05));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}
.rm-v-strategie__perso { width: 84px; height: 84px; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .25)); }
.rm-v-strategie__txt { display: grid; gap: 4px; }
.rm-v-strategie__sur { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.rm-v-strategie__ligne { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.rm-v-strategie__ligne strong { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.7px; }
.rm-v-strategie__badge { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45); }
.rm-v-strategie__txt em { font-style: normal; font-size: 14.5px; font-weight: 800; color: #FFF6B8; }
.rm-v-strategie__puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rm-v-strategie__puce { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .18); }
.rm-v-strategie__puce-ico { display: grid; }
.rm-v-strategie__puce-ico svg { width: 14px; height: 14px; }
.rm-v-strategie__corps { display: grid; gap: 16px; padding: 18px 22px 20px; }
.rm-v-strategie__split { display: flex; gap: 4px; height: 48px; }
.rm-v-strategie__part { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; overflow: hidden; white-space: nowrap; border-radius: 14px; color: #fff; }
.rm-v-strategie__part strong { font-size: 17px; font-weight: 800; }
.rm-v-strategie__part span { font-size: 13px; font-weight: 700; opacity: .9; }
.rm-v-strategie__part em { margin-left: auto; font-style: normal; font-size: 12.5px; opacity: .9; }
.rm-v-strategie__part.is-etf { background: var(--grad); }
.rm-v-strategie__part.is-actions { background: linear-gradient(135deg, #FF7A6E, #E74C3C); }
/* Sous la carte de la classe et son curseur (« Ta classe, ta stratégie ») : seulement les repères et les lignes. */
.rm-v-strategie--lignes { display: grid; gap: 14px; padding: 16px 20px 18px; }
.rm-v-strategie--lignes .rm-v-strategie__puces { margin-top: 0; }
.rm-v-strategie--lignes .rm-v-strategie__puce { color: var(--c2); background: rgba(15, 118, 110, .08); background: color-mix(in srgb, var(--c1) 18%, #fff); }
.rm-v-strategie__lignes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rm-v-strategie__lignes li { display: flex; gap: 12px; align-items: flex-start; }
.rm-v-strategie__lignes li > div { display: grid; gap: 2px; }
.rm-v-strategie__lignes strong { font-size: 15px; color: var(--text); }
.rm-v-strategie__lignes li > div span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.rm-v-strategie__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--teal); background: rgba(15, 118, 110, .1); }
.rm-v-strategie__ico svg { width: 19px; height: 19px; }
.rm-v-strategie__lignes li.is-etf .rm-v-strategie__ico { color: #fff; background: var(--grad); }
.rm-v-strategie__lignes li.is-actions .rm-v-strategie__ico { color: #fff; background: linear-gradient(135deg, #FF7A6E, #E74C3C); }
/* Le profil d'investisseur : une question à la fois à gauche, la classe suggérée à droite. */
.rm-v-profil { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); gap: 16px; align-items: stretch; }
.rm-v-profil__questions { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 20px 22px; }
.rm-v-profil__questions.is-neuf { animation: rm-contenu .35s cubic-bezier(.2, .8, .2, 1) both; }
.rm-v-profil__haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rm-v-profil__qsur { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.rm-v-profil__pas { display: flex; gap: 6px; }
.rm-v-profil__pas i { width: 28px; height: 5px; border-radius: 3px; background: rgba(21, 64, 50, .12); transition: background .3s ease; }
.rm-v-profil__pas i.is-fait { background: var(--green2); }
.rm-v-profil__pas i.is-ici { box-shadow: 0 0 0 2px rgba(43, 196, 138, .3); }
.rm-v-profil__qtexte { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 800; letter-spacing: -.4px; color: var(--text); }
.rm-v-profil__options { display: grid; gap: 10px; }
.rm-v-profil__option {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; cursor: pointer;
  text-align: left; font: inherit; color: var(--text); background: #fff; border: 2px solid var(--border-2); border-radius: 16px;
  transition: border-color .2s ease, transform .25s cubic-bezier(.2, 1.3, .4, 1), box-shadow .2s ease, background .2s ease;
}
.rm-v-profil__option:hover { border-color: rgba(29, 158, 117, .5); transform: translateX(3px); box-shadow: var(--shadow-md); }
.rm-v-profil__option:focus-visible { outline: 3px solid rgba(43, 196, 138, .45); outline-offset: 2px; }
.rm-v-profil__option-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--teal); background: rgba(15, 118, 110, .09); }
.rm-v-profil__option-ico svg { width: 22px; height: 22px; }
.rm-v-profil__option-txt { display: grid; gap: 2px; }
.rm-v-profil__option-txt strong { font-size: 15.5px; }
.rm-v-profil__option-txt span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.rm-v-profil__option-case { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: transparent; border: 2px solid var(--border-2); transition: all .2s ease; }
.rm-v-profil__option-case svg { width: 14px; height: 14px; }
.rm-v-profil__option.is-choisi { border-color: var(--green); background: linear-gradient(90deg, rgba(43, 196, 138, .1), #fff 70%); box-shadow: 0 0 0 4px rgba(43, 196, 138, .12); }
.rm-v-profil__option.is-choisi .rm-v-profil__option-ico { color: #fff; background: var(--grad); }
.rm-v-profil__option.is-choisi .rm-v-profil__option-case { color: #fff; background: var(--grad); border-color: transparent; animation: rm-coche .35s cubic-bezier(.2, 1.5, .4, 1); }
.rm-v-profil__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.rm-v-profil__nav .btn { gap: 8px; }
.rm-v-profil__nav .rm-ico svg { width: 16px; height: 16px; }
.rm-v-profil__suivante { color: #fff; background: var(--grad); border-color: transparent; box-shadow: var(--shadow-green); }
.rm-v-profil__suivante:disabled { box-shadow: none; opacity: .45; }
.rm-v-profil__fin { font-size: 13.5px; font-weight: 700; color: var(--green3); }
/* La classe suggérée : une carte en hauteur, le personnage centré. */
.rm-v-profil__resultat {
  --c1: #39E39C; --c2: #0F6B54;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 18px 20px; border-radius: 22px; color: #fff;
  background: radial-gradient(closest-side at 50% 30%, rgba(255, 255, 255, .28), transparent 75%), linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: var(--shadow-md);
}
.rm-v-profil__resultat.is-change { animation: rm-contenu .4s ease both; }
.rm-v-profil__resultat[data-classe="mage"] { --c1: #7AA6FF; --c2: #2A47B0; }
.rm-v-profil__resultat[data-classe="guerrier"] { --c1: #FF5A7A; --c2: #E3007D; }
.rm-v-profil__sur { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }
.rm-v-profil__scene { position: relative; display: grid; place-items: center; width: 100%; height: 132px; }
.rm-v-profil__halo { position: absolute; left: 50%; bottom: 8px; width: 96px; height: 16px; transform: translateX(-50%); border-radius: 50%; background: rgba(0, 0, 0, .22); filter: blur(4px); }
.rm-v-profil__perso { position: relative; width: 120px; height: 120px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25)); }
.rm-v-profil__nom { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.7px; }
.rm-v-profil__badge { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45); }
.rm-v-profil__devise { font-style: normal; font-size: 14.5px; font-weight: 800; color: #FFF6B8; }
.rm-v-profil__texte { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.rm-v-profil__confirme { margin: 4px 0 0; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .16); }
.rm-v-profil__resultat.is-vide { justify-content: center; gap: 14px; color: var(--muted); background: #F4F7F6; border: 1.5px dashed var(--border-2); box-shadow: none; }
.rm-v-profil__resultat.is-vide .rm-v-profil__sur { color: var(--muted-2); }
.rm-v-profil__resultat.is-vide p { margin: 0; font-size: 14px; font-weight: 600; }
.rm-v-profil__trio { display: flex; gap: 2px; opacity: .5; filter: grayscale(1); }
.rm-v-profil__mini { width: 56px; height: 56px; }

/* La classe d'investisseur, qui se dessine en direct au-dessus du curseur :
   les personnages de My Seqooia, le Mage en bleu, l'Archer en vert, le
   Guerrier en rouge fuchsia fluo. Les couleurs glissent d'une classe à
   l'autre. */
@property --rmc1 { syntax: '<color>'; inherits: true; initial-value: #2BC48A; }
@property --rmc2 { syntax: '<color>'; inherits: true; initial-value: #1D9E75; }
@property --rmc3 { syntax: '<color>'; inherits: true; initial-value: #14755C; }
@property --rmglow { syntax: '<color>'; inherits: true; initial-value: rgba(43, 196, 138, .55); }
.rm-v-classe-zone { display: grid; gap: 14px; }
.rm-v-classe {
  --rmc1: #2BC48A; --rmc2: #1D9E75; --rmc3: #14755C; --rmglow: rgba(43, 196, 138, .55);
  position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 10px 22px; overflow: hidden;
  min-height: 190px; padding: 18px 28px 0 18px; border-radius: 24px; color: #fff;
  background: radial-gradient(closest-side at 22% 70%, rgba(255, 255, 255, .26), transparent 70%), linear-gradient(135deg, var(--rmc1) 0%, var(--rmc2) 52%, var(--rmc3) 100%);
  box-shadow: 0 24px 50px -24px var(--rmglow);
  transition: --rmc1 .55s ease, --rmc2 .55s ease, --rmc3 .55s ease, --rmglow .55s ease;
}
.rm-v-classe[data-classe="mage"] { --rmc1: #7AA6FF; --rmc2: #4A7DE2; --rmc3: #2A47B0; --rmglow: rgba(74, 125, 226, .7); }
.rm-v-classe[data-classe="archer"] { --rmc1: #39E39C; --rmc2: #1D9E75; --rmc3: #0F6B54; --rmglow: rgba(43, 196, 138, .65); }
.rm-v-classe[data-classe="guerrier"] { --rmc1: #FF5A7A; --rmc2: #FF1F5A; --rmc3: #E3007D; --rmglow: rgba(255, 31, 90, .75); }
.rm-v-classe__scene { position: relative; align-self: end; display: grid; justify-items: center; height: 168px; }
.rm-v-classe__halo { position: absolute; left: 50%; bottom: 10px; width: 110px; height: 18px; transform: translateX(-50%); border-radius: 50%; background: rgba(0, 0, 0, .22); filter: blur(4px); }
.rm-v-classe__perso { position: relative; align-self: end; width: 150px; height: 150px; margin-bottom: 6px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25)); }
.rm-v-classe.is-change .rm-v-classe__perso { animation: rm-perso-entre .55s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes rm-perso-entre { from { opacity: 0; transform: translateY(16px) scale(.92); } }
.rm-v-classe.is-change .rm-v-classe__txt { animation: rm-contenu .45s ease; }
.rm-v-classe__txt { display: grid; gap: 6px; padding-bottom: 22px; }
.rm-v-classe__sur { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.rm-v-classe__ligne { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.rm-v-classe__nom { font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -1px; text-shadow: 0 2px 14px rgba(0, 0, 0, .18); }
.rm-v-classe__badge { padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45); }
.rm-v-classe__devise { font-style: normal; font-size: 16px; font-weight: 800; color: #FFF6B8; }
.rm-v-classe__texte { margin: 0; max-width: 460px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.rm-v-classe__reglage { display: grid; gap: 16px; margin: 0; padding: 20px 22px; }
.rm-v-classe__reglage .sim-slider__label { font-size: 14px; font-weight: 800; color: var(--text); }
.rm-v-classe__split { display: flex; gap: 4px; height: 52px; }
.rm-v-classe__part {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; overflow: hidden; white-space: nowrap; border-radius: 14px; color: #fff;
  transition: flex-grow .35s cubic-bezier(.2, .8, .2, 1);
}
.rm-v-classe__part strong { font-size: 17px; font-weight: 800; }
.rm-v-classe__part span { font-size: 13px; font-weight: 700; opacity: .9; }
.rm-v-classe__part em { margin-left: auto; font-style: normal; font-size: 12.5px; opacity: .9; }
.rm-v-classe__part.is-etf { background: var(--grad); }
.rm-v-classe__part.is-actions { background: linear-gradient(135deg, #FF7A6E, #E74C3C); }
.rm-v-classe__puces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rm-v-classe__puce { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 8px; padding: 9px 12px; border-radius: 14px; background: #F4F7F6; border: 1.5px solid transparent; transition: all .3s ease; }
.rm-v-classe__suggere { position: absolute; top: -9px; right: 8px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: #5A4300; background: #FFE14D; box-shadow: 0 4px 10px -4px rgba(232, 180, 20, .8); }
.rm-v-classe__puce i { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; }
.rm-v-classe__puce span { font-size: 13.5px; font-weight: 800; color: var(--text); }
.rm-v-classe__puce em { font-style: normal; font-size: 12px; color: var(--muted); }
.rm-v-classe__puce.is-mage i { background: #4A7DE2; }
.rm-v-classe__puce.is-archer i { background: #1D9E75; }
.rm-v-classe__puce.is-guerrier i { background: #FF1F5A; }
.rm-v-classe__puce.is-active { background: #fff; box-shadow: var(--shadow-md); }
.rm-v-classe__puce.is-mage.is-active { border-color: #4A7DE2; }
.rm-v-classe__puce.is-archer.is-active { border-color: #1D9E75; }
.rm-v-classe__puce.is-guerrier.is-active { border-color: #FF1F5A; }

@media (max-width: 1000px) {
  .rm-v-route { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rm-v-route::before { display: none; }
}
@media (max-width: 760px) {
  .rm-dlg-fond { padding: 0; }
  /* La fenêtre prend tout l'écran : le flou derrière ne se verrait pas, on ne le calcule pas. */
  .rm-dlg-flou { display: none; }
  .rm-dlg { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .rm-dlg__tete { gap: 12px; padding: 14px 14px 14px 16px; }
  .rm-dlg__num { width: 38px; height: 38px; font-size: 16px; }
  .rm-dlg__titres h2 { font-size: 17px; }
  .rm-dlg__avance { display: none; }
  .rm-dlg__corps { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .rm-dlg__cote { flex-direction: row; align-items: center; padding: 10px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .rm-dlg__sous, .rm-dlg__xp, .rm-dlg__qnom { display: none; }
  .rm-dlg__quetes { display: flex; gap: 8px; }
  .rm-dlg__quetes li::after { display: none; }
  .rm-dlg__quete { padding: 5px; }
  .rm-dlg__scene { padding: 16px 14px 24px; }
  .rm-dlg__guide { gap: 12px; margin-bottom: 18px; }
  .rm-dlg__visage { width: 46px; height: 46px; }
  .rm-dlg__dit { font-size: 14px; }
  .rm-dlg__qtitre { font-size: 21px; }
  .rm-dlg__pied { padding: 10px 12px; }
  .rm-dlg__pips { display: none; }
  .rm-gr__reglages, .rm-gr__resultats { grid-template-columns: minmax(0, 1fr); }
  .rm-c-etapes { grid-template-columns: minmax(0, 1fr); }
  .rm-c-feuille__ligne { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rm-c-compare { font-size: 12px; }
  .rm-c-compare__ligne { grid-template-columns: minmax(0, .78fr) minmax(0, 1fr) minmax(0, 1fr); }
  .rm-c-compare__ligne > span { padding: 9px 6px; }
  .rm-c-compare__ligne > span strong { font-size: 12.5px; }
  .rm-c-compare__ligne > span small { font-size: 11px; }
  .rm-dlg--sommet .rm-dlg__pied { flex-direction: column; align-items: stretch; text-align: center; padding: 14px 16px; }
  .rm-dlg--sommet .rm-dlg__pied .btn-flow { justify-content: center; }
  .rm-v-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm-v-flux { flex-direction: column; }
  .rm-v-flux__fleche svg { transform: rotate(90deg); }
  .rm-v-pilote { grid-template-columns: minmax(0, 1fr); }
  .rm-v-pilote__pt em { padding: 2px 4px; font-size: 10px; }
  .rm-cap { grid-template-columns: minmax(0, 1fr); }
  .rm-cap__reglage {
    grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'depart depart' 'question question' 'roue effort';
    justify-items: start; align-items: center; column-gap: 18px; padding: 16px; text-align: left;
    border-right: 0; border-bottom: 1px solid var(--border-2);
  }
  .rm-cap__question { grid-area: question; }
  .rm-cap__reglage > .roue { grid-area: roue; width: 118px; height: 170px; }
  .rm-cap__effort { grid-area: effort; }
  .rm-cap__depart { grid-area: depart; }
  .rm-cap__depart .sim-slider__head { flex-direction: row; }
  .rm-cap__bilan { grid-template-columns: minmax(0, 1fr); }
  .rm-cap__chiffre { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 9px 2px; }
  .rm-cap__chiffre:first-child { padding-left: 2px; }
  .rm-cap__chiffre + .rm-cap__chiffre { border-left: 0; border-top: 1px solid var(--border-2); }
  .rm-cap__chiffre strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 18px; }
  .rm-c-rdv { padding: 26px 18px 20px; }
  .rm-c-rdv__titre { font-size: 20px; }
  .rm-c-rdv__btn.btn-flow { width: 100%; justify-content: center; padding: 17px 24px; }
  .rm-formule__resultat strong { font-size: 21px; }
  .rm-dlg__faits--bas { display: grid; }
  .rm-v-duel { grid-template-columns: minmax(0, 1fr); }
  .rm-v-duel__vs { justify-self: center; }
  .rm-matelas__niveaux { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rm-matelas__niveau { grid-template-columns: 120px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 14px; padding: 14px; }
  .rm-matelas__niveau .rm-compteur { grid-row: span 4; align-self: center; }
  .rm-v-courtier { grid-template-columns: 26px 44px minmax(0, 1fr) 24px; gap: 10px; padding: 10px 12px 10px 10px; }
  .rm-v-courtier__logo { width: 44px; height: 44px; }
  .rm-v-courtier__rang { width: 26px; height: 26px; font-size: 13px; }
  .rm-v-classe { grid-template-columns: 104px minmax(0, 1fr); min-height: 0; padding: 14px 14px 0 8px; gap: 6px 12px; }
  .rm-v-classe__scene { height: 112px; }
  .rm-v-classe__perso { width: 100px; height: 100px; margin-bottom: 4px; }
  .rm-v-colonnes, .rm-v-regles { grid-template-columns: minmax(0, 1fr); }
  .rm-v-profil { grid-template-columns: minmax(0, 1fr); }
  .rm-v-profil__questions { padding: 16px 14px; }
  .rm-v-profil__qtexte { font-size: 17px; }
  .rm-v-profil__nav .btn span { font-size: 12.5px; }
  .rm-v-profil__scene { height: 100px; }
  .rm-v-profil__perso { width: 90px; height: 90px; }
  .rm-v-strategie__tete { gap: 12px; padding: 14px 14px 14px 12px; }
  .rm-v-strategie__scene { width: 78px; height: 78px; }
  .rm-v-strategie__perso { width: 64px; height: 64px; }
  .rm-v-strategie__ligne strong { font-size: 21px; }
  .rm-v-strategie__corps { padding: 14px; }
  .rm-v-strategie__part em { display: none; }
  .rm-dlg__cote .rm-dlg__faits { display: none; }
  .rm-dlg__faits--bas .rm-dlg__sous { display: block; }
  .rm-v-classe__nom { font-size: 25px; }
  .rm-v-classe__texte { font-size: 13px; }
  .rm-v-classe__part { padding: 0 10px; }
  .rm-v-classe__part em { display: none; }
}
@media (max-width: 520px) {
  /* Le match fiscal reste côte à côte sur un téléphone : plus serré, rien ne déborde. */
  .rm-fisc { gap: 14px; padding: 14px 12px 16px; }
  .rm-fisc__curseur { padding: 12px 14px; }
  .rm-fisc__duo { gap: 6px; }
  .rm-fisc__vs { width: 30px; height: 30px; font-size: 10.5px; box-shadow: 0 0 0 3px #fff, var(--shadow-md); }
  .rm-fisc__col { gap: 10px; padding: 12px 8px 10px; border-radius: 14px; }
  .rm-fisc__nom { display: grid; gap: 1px; }
  .rm-fisc__nom strong { font-size: 18px; }
  .rm-fisc__nom span { font-size: 11px; line-height: 1.3; }
  .rm-fisc__puces { gap: 4px; }
  .rm-fisc__puces em { padding: 2px 6px; font-size: 10.5px; white-space: nowrap; }
  .rm-fisc__plot { gap: 8px; height: 190px; padding: 26px 2px 0; }
  .rm-fisc__barre { width: min(48px, 100%); }
  .rm-fisc__valeur { font-size: 12.5px; }
  .rm-fisc__legende { font-size: 10.5px; white-space: nowrap; }
  .rm-fisc__taux { margin-top: 20px; font-size: 11px; line-height: 1.35; }
  .rm-fisc__gardes { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); gap: 6px; }
  .rm-fisc__garde { gap: 2px; padding: 10px 6px 11px; border-radius: 14px; }
  .rm-fisc__garde span { font-size: 11.5px; }
  .rm-fisc__garde strong { font-size: 19px; letter-spacing: -.4px; }
  .rm-fisc__garde em { margin-top: 3px; padding: 3px 7px; font-size: 10.5px; }
}

@media (max-width: 760px) {
  /* Sur téléphone : le sélecteur en haut ; la feuille de route et « Continuer » en bas. */
  .view:has(> .rm-jeu) > .fo-onglets { top: 16px; width: calc(100% - 32px); }
  .rm-jeu { height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - var(--bandeaux-h, 0px)); }
  /* Sous la carte, la place de la barre du bas reste vide : le pied de page commence sous l'écran, au lieu
     de transparaître à travers le verre de la barre (« Politique de confidentialité » dedans). */
  .view:has(> .rm-jeu) { padding-bottom: var(--tabbar-h); }
  /* En haut : le sélecteur. En bas, sur une ligne : la feuille de
     route (un bouton carré, son compte en pastille) et « Continuer », qui prend le reste de la largeur.
     La feuille s'ouvre au-dessus de cette ligne, par-dessus la carte ; un toucher sur la carte la referme. */
  .rm-gauche, .rm-gauche:not(.is-docke):not(.is-feuille) { top: 68px; left: 16px; right: 16px; bottom: 12px; width: auto; gap: 8px; }
  /* « Continuer » dit déjà l'étape en cours : la pastille « Étape 3 sur 6 » laisse sa place aux îles. */
  .rm-gauche > .rm-hud { display: none; }
  .rm-gauche:not(.is-docke) .rm-feuille-bouton {
    position: absolute; left: 0; bottom: 0; width: 54px; height: 54px; padding: 0; justify-content: center; border-radius: 18px;
    background: rgba(6, 34, 42, .56); border-color: rgba(255, 255, 255, .34);
  }
  .rm-feuille-bouton > span:not([class]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rm-feuille-bouton__ico svg { width: 21px; height: 21px; }
  .rm-feuille-bouton__compte { position: absolute; top: -7px; right: -7px; margin: 0; padding: 3px 6px; font-size: 10.5px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6); }
  .rm-gauche.is-feuille .rm-feuille-bouton { background: #fff; color: #08707C; border-color: #fff; }
  .rm-gauche:not(.is-docke) .rm-feuille { position: absolute; left: 0; right: 0; bottom: 64px; max-height: calc(100% - 64px); border-radius: 18px; background: rgba(6, 34, 42, .86); }
  .rm-jeu[data-moment="nuit"] .rm-gauche:not(.is-docke) .rm-feuille { background: rgba(10, 16, 40, .9); }
  .rm-cta {
    left: 78px; right: 16px; bottom: 12px; max-width: none; min-height: 54px; gap: 10px; padding: 6px 14px 6px 7px; border-radius: 18px; transform: none;
    animation: rm-cta-entre-bas .45s cubic-bezier(.2, .9, .3, 1) .3s backwards, rm-cta-appel 2.6s ease-out 1.6s infinite;
  }
  @keyframes rm-cta-entre-bas { from { opacity: 0; transform: translateY(12px); } }
  .rm-cta:hover { transform: none; }
  .rm-cta:active { transform: scale(.985); }
  .rm-cta.is-fini { animation: rm-cta-entre-bas .45s cubic-bezier(.2, .9, .3, 1) .3s backwards; }
  .rm-cta__ico { width: 40px; height: 40px; border-radius: 13px; }
  .rm-cta__txt { flex: 1; }
  .rm-cta__long { display: none; }
  .rm-cta__court { display: inline; }
  .rm-cta__sur { font-size: 10px; letter-spacing: .04em; }
  .rm-cta__titre { font-size: 15px; }
  .rm-etiquette__avance { font-size: 7px; }
  .rm-bulle { max-width: 200px; font-size: 12px; }
  .rm-etiquette { gap: 5px; padding: 3px 7px 3px 3px; font-size: 11.5px; }
  .rm-etiquette__num { min-width: 16px; height: 16px; font-size: 8px; }
  .rm-repere__texte { font-size: 7px; padding: 4px 5px 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-scene > *, .rm-drapeau__images, .rm-perso__images, .rm-repere, .rm-dlg, .rm-dlg-fond, .rm-dlg__dit, .rm-dlg__contenu,
  .rm-gauche.is-feuille .rm-feuille, .rm-v-profil__resultat, .rm-v-fait__case, .rm-v-choix__case, .rm-v-courtier__case, .rm-v-profil__option-case,
  .rm-v-route__pt.is-ici .rm-v-route__rond, .rm-v-classe__perso, .rm-v-classe__txt, .rm-compteur__valeur, .rm-compteur__aiguille,
  .rm-ile.is-flotte > *, .rm-scene > .is-flotte, .rm-feuille__detail, .rm-v-profil__questions, .rm-c-plus[open] .rm-c-plus__corps { animation: none !important; }
  .rm-c-plus__ico, .rm-c-plus__fleche { transition: none; }
  .rm-cta, .rm-vie, .rm-vie * { animation: none !important; }
  .rm-cta, .rm-cta__fleche, .rm-ile > .rm-ile__dessin { transition: none; }
  .rm-compteur__valeur { stroke-dashoffset: 0; }
  .rm-fisc__barre { transition: none; }
  .rm-v-classe, .rm-fisc__plein { transition: none; }
}

/* ── Éditeurs de l'admin ─────────────────────────────────────────────────────
   Deux champs par ligne quand ils vont par paire (un nom et une date, une
   note et un total) : sur une seule colonne, ces formulaires deviennent des
   kilomètres de défilement. */
.admin-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 720px) { .admin-duo { grid-template-columns: 1fr; } }
.admin-sec { margin: 34px 0 14px; font-size: 17px; letter-spacing: -.3px; }
/* Un point de phase, imbriqué dans la carte de sa phase : fond légèrement
   creusé pour qu'on voie tout de suite qu'il lui appartient. */
.admin-point { background: rgba(29, 158, 117, .05); box-shadow: none; }

/* ── En-tête de l'admin ──────────────────────────────────────────────────────
   Sept onglets au lieu de quatre : sous 1440 px le menu centré vient buter
   contre l'email et les boutons. Plutôt que de rogner les libellés — ici on
   travaille, on ne vend rien — la barre passe sur deux rangées : la marque et
   les boutons en haut, les onglets dessous sur toute la largeur.
   ---------------------------------------------------------------------- */
@media (max-width: 1440px) {
  #admin .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'marque actions' 'onglets onglets';
    row-gap: 10px;
  }
  #admin .topbar > .brand { grid-area: marque; }
  #admin .topbar__right { grid-area: actions; }
  #admin .topbar .nav {
    grid-area: onglets; justify-self: stretch;
    /* Si même là ça ne tient pas, on fait défiler plutôt que de déborder. */
    overflow-x: auto; scrollbar-width: none;
  }
  #admin .topbar .nav::-webkit-scrollbar { display: none; }
  #admin .topbar .nav__item { flex: none; }
}
@media (max-width: 620px) {
  #admin #admin-email { display: none; }
}

/* En-tête centré (L'école Seqooia). */
.page-head--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Les éléments à pleine largeur (le mur d'avis) comptent la barre de
   défilement dans 100vw : on coupe ce qui dépasse horizontalement. `clip`,
   contrairement à `hidden`, ne crée pas de conteneur de défilement — l'en-tête
   collant reste collant. */
#app { overflow-x: clip; }

/* ══ Communauté ════════════════════════════════════════════════════════════
   Deux colonnes dès le haut : le titre et le mur à gauche, et à droite — à
   la hauteur du titre — le rang, le classement, le barème et les trophées.
   Façon Skool, aux couleurs Seqooia. Aucune icône n'est un émoji : ce sont
   des tracés au trait vert dégradé, souvent posés dans une pastille.
   ---------------------------------------------------------------------- */
/* Sur grand écran, la page s'élargit un peu : tout ce qu'elle gagne va au
   mur, la colonne de droite (rang, classement, trophées) garde ses 320 px. */
.view:has(> .cm-head) { max-width: 1200px; }
.cm { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.cm-wall { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cm-head { margin-bottom: 26px; }
.cm-bande { display: contents; }
/* Pas de colonne collante : elle est plus haute que l'écran, et sa fin (les
   trophées) resterait hors de vue tant qu'on n'a pas atteint le bas du mur. */
.cm-side { display: flex; flex-direction: column; gap: 10px; }
/* L'espacement vient du `gap` : pas de marge héritée de `.card + .card`, qui
   doublait l'écart entre les cartes de droite et entre les posts. */
.cm-side > .card + .card,
.cm-feed > .card + .card { margin-top: 0; }
@media (max-width: 980px) {
  .cm { grid-template-columns: 1fr; }
}

/* Les trophées : repliés, ceux qu'on a débloqués ; dépliés, tout le mur.
   Les deux volets glissent l'un dans l'autre (hauteur 0fr ↔ 1fr). */
.cm-pli {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .5s cubic-bezier(.22, .9, .3, 1), opacity .3s ease;
}
.cm-pli > * { min-height: 0; overflow: hidden; }
.cm-pli.is-ouvert { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .5s cubic-bezier(.22, .9, .3, 1), opacity .4s ease .1s; }
.cm-trophees__gagnes { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px 0 6px; }
.cm-trophees__vide { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
/* Le bouton occupe tout le bas de la carte, d'un bord à l'autre. */
.cm-trophees__bascule {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: calc(100% + 32px); margin: 8px -16px -15px; padding: 11px 10px 12px;
  border: 0; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); background: none; cursor: pointer;
  font-family: var(--font); font-size: 12.5px; font-weight: 700; color: var(--green);
  transition: color .25s ease, background-color .25s ease;
}
.cm-trophees__bascule:hover { color: var(--teal-deep); background: rgba(43, 196, 138, .06); }
.cm-trophees__bascule:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.cm-trophees__chevron { display: inline-flex; transform: rotate(90deg); transition: transform .45s cubic-bezier(.22, .9, .3, 1); }
.cm-trophees__chevron .cm-ico { width: 14px; height: 14px; }
.cm-trophees__bascule.is-ouvert .cm-trophees__chevron { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) {
  .cm-pli, .cm-pli.is-ouvert, .cm-trophees__chevron { transition: none; }
}

/* ── Icônes ── */
.cm-ico { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; }
.cm-ico svg { display: block; width: 100%; height: 100%; }
.cm-tile {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .16), rgba(29, 158, 117, .06));
  border: 1px solid rgba(29, 158, 117, .18);
}
.cm-tile .cm-ico { width: 15px; height: 15px; }
.cm-tile--sm { width: 26px; height: 26px; border-radius: 8px; }
.cm-tile--sm .cm-ico { width: 13px; height: 13px; }
.cm-tile--lg { width: 52px; height: 52px; border-radius: 15px; }
.cm-tile--lg .cm-ico { width: 24px; height: 24px; }

/* Rappel du rang en tête du mur, seulement quand la colonne passe dessous. */
.cm-strip {
  display: none; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border); font-size: 13px; color: var(--text);
}
.cm-strip span { color: var(--muted); }
.cm-strip strong { color: var(--text); }
.cm-strip__go { margin-left: auto; color: var(--green); font-weight: 800; }
@media (max-width: 980px) { .cm-strip { display: flex; } }

/* ── Badge de rang (TierBadge de closers-tracking), icône seule ── */
.rk {
  position: relative; flex: none; display: inline-grid; place-items: center;
  border-radius: 28%; color: #fff;
  background: linear-gradient(135deg, #CBD5E1, #64748B);
  box-shadow: 0 3px 8px -3px rgba(21, 64, 50, .45);
}
/* Investisseur : bleu nuit tirant sur le bleu canard — se distingue d'un
   coup d'œil du vert de Stratège. */
.rk--investisseur { background: linear-gradient(135deg, #2F7F9E, #17566E 55%, #0C3346); }
.rk--stratege { background: linear-gradient(135deg, #14755C, #0F766E); }
.rk--maitre { background: linear-gradient(135deg, #E9CF7E, #C9A84C 55%, #A8862F); }
.rk--legende {
  background: linear-gradient(135deg, #E9CF7E, #1D9E75 55%, #E9CF7E);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, .4), 0 4px 12px -3px rgba(201, 168, 76, .7);
}
.rk--xs { width: 20px; height: 20px; }
.rk--xs .rk__icon { width: 11px; height: 11px; }
.rk--sm { width: 28px; height: 28px; }
.rk--sm .rk__icon { width: 14px; height: 14px; }
.rk--md { width: 48px; height: 48px; }
.rk--md .rk__icon { width: 22px; height: 22px; }
.rk .rk__icon svg { stroke-width: 2.3; }

/* ── Avatars ── */
.cm-av {
  width: var(--av, 36px); height: var(--av, 36px); flex: none; border-radius: 50%;
  display: inline-grid; place-items: center; object-fit: cover;
  background: var(--gradTeal); color: #fff; font-weight: 800; font-size: calc(var(--av, 36px) * .4);
}
img.cm-av--team { object-position: 50% 12%; background: linear-gradient(135deg, #E8F5EF, #CFEADF); }
.cm-team {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--grad);
}
.cm-team::before { content: '✓'; font-size: 9px; }
.cm-team--plain::before { content: none; }
/* Fondateur : la couronne remplace la coche. */
.cm-team--fondateur { gap: 4px; padding: 2px 8px 2px 6px; }
.cm-team--fondateur::before { content: none; }
.cm-team--fondateur .cm-team__ico { display: inline-grid; width: 11px; height: 11px; }
.cm-team--fondateur .cm-team__ico svg { width: 100%; height: 100%; stroke-width: 2.4; fill: rgba(255, 236, 170, .55); }

/* ── Éditeur de post (admin) ────────────────────────────────────────────────
   Épuré : qui publie et, à droite, la rubrique (un menu déroulant). Puis la
   zone d'écriture — titre, texte qui grandit, et deux zones côte à côte :
   « Ajouter une photo » | « Ajouter une vidéo ». Une photo glissée, collée ou
   choisie s'affiche dans la zone, à gauche, et le texte s'écrit à côté ; la
   zone s'allume quand un fichier la survole. Enfin « Publier », au centre.
   ------------------------------------------------------------------------ */
.cm-ed { display: flex; flex-direction: column; gap: 12px; }
.cm-ed.card { padding: 16px 18px; margin-bottom: 0; border: 1px solid rgba(29, 158, 117, .26); container: editeur / inline-size; }
.cm-ed:not(.card) { container: editeur / inline-size; }
.cm-ed__head { display: flex; align-items: center; gap: 11px; }
/* Au-dessus des posts qui suivent : la liste des rubriques passe devant eux. */
.cm-ed.card { position: relative; z-index: 3; }
.cm-ed__qui { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cm-ed__nom { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.cm-ed__pour { font-size: 12px; color: var(--muted); }

.cm-ed__zone {
  position: relative; display: flex; flex-direction: column; border-radius: 16px;
  background: rgba(21, 64, 50, .028); border: 1px solid rgba(21, 64, 50, .1);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.cm-ed__zone:focus-within { border-color: rgba(29, 158, 117, .45); background: #fff; box-shadow: 0 0 0 3px rgba(43, 196, 138, .14); }
/* Sous la barre, dans l'ordre du mur : le titre et le texte sur toute la
   largeur, puis les photos (comme elles paraîtront), puis le sondage. */
.cm-ed__ecrire { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 16px 0; }
.cm-ed__ecrire .rt-zone { min-height: 130px; }
.cm-ed__corps { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 14px 16px 16px; }
.cm-ed__corps:not(:has(> :not([hidden]))) { padding-top: 0; }

/* Les photos : une seule en grand ; deux ou trois côte à côte, à la même
   hauteur — la première porte l'étoile « Mise en avant ». */
.cm-ed__photos {
  --ph-h: 200px;
  display: flex; gap: 8px; min-width: 0; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: thin; animation: ed-photo-in .32s cubic-bezier(.2, 1.1, .3, 1);
}
.cm-ed__photos[hidden] { display: none; }
.cm-ed__ph {
  position: relative; flex: none; height: var(--ph-h); min-width: 130px; max-width: 76%; margin: 0;
  border-radius: 13px; overflow: hidden; background: linear-gradient(135deg, #12352B, #0B241D);
  box-shadow: 0 10px 24px -18px rgba(6, 40, 30, .8);
}
.cm-ed__ph[draggable="true"] { cursor: grab; }
.cm-ed__ph img { display: block; height: 100%; width: auto; min-width: 100%; max-width: 100%; object-fit: cover; }
/* Une seule photo : en grand, sur toute la largeur, comme sur le mur. */
.cm-ed__photos.is-une-seule .cm-ed__ph { flex: 1 1 auto; height: auto; max-width: none; min-height: 160px; }
.cm-ed__photos.is-une-seule .cm-ed__ph img { width: 100%; height: auto; max-height: 360px; }
.cm-ed__ph.is-charge { display: grid; place-items: center; width: 160px; }
.cm-ed__ph.is-tenue { opacity: .4; }
.cm-ed__ph.is-cible { box-shadow: 0 0 0 3px var(--green2), 0 10px 24px -18px rgba(6, 40, 30, .8); }
.cm-ed__une {
  position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px;
  border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff; pointer-events: none;
  background: linear-gradient(135deg, #2BC48A, #14755C); border: 1.5px solid rgba(255, 255, 255, .75);
  box-shadow: 0 6px 14px -6px rgba(6, 40, 30, .9);
}
.cm-ed__une .cm-ico { width: 12px; height: 12px; }
.cm-ed__une .cm-ico svg { fill: currentColor; }
.cm-ed__ph-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.cm-ed__ph-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px;
  background: rgba(6, 23, 18, .62); color: #fff; font: 700 12px var(--font); white-space: nowrap; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .2s ease;
}
.cm-ed__ph-btn:hover { background: rgba(6, 23, 18, .85); }
.cm-ed__ph-btn .cm-ico { width: 13px; height: 13px; }
.cm-ed__ph-btn--x { width: 30px; padding: 0; justify-content: center; }
.cm-ed__ph.is-etroite .cm-ed__ph-btn > span:not(.cm-ico), .cm-ed__ph.is-tres-etroite .cm-ed__une-txt { display: none; }
.cm-ed__ph.is-etroite .cm-ed__ph-btn { width: 30px; padding: 0; justify-content: center; }
.cm-ed__ph.is-tres-etroite .cm-ed__une { padding: 5px; }
.cm-ed__ph-ajout {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 110px; min-height: var(--ph-h); padding: 10px; border: 1.5px dashed rgba(29, 158, 117, .45); border-radius: 13px;
  background: rgba(43, 196, 138, .05); color: var(--green3); font: 700 12.5px/1.25 var(--font); text-align: center; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.cm-ed__ph-ajout:hover { background: rgba(43, 196, 138, .11); border-color: var(--green); }
.cm-ed__ph-ajout .cm-ico { width: 20px; height: 20px; }
.cm-ed__ph-ajout small { font-size: 11px; font-weight: 600; color: var(--muted); }
.cm-ed__photos.is-une-seule .cm-ed__ph-ajout { min-height: 0; }

/* Le sondage en cours d'écriture : la question, puis les réponses, comme sur le mur. */
.cm-ed__sondage {
  display: grid; gap: 8px; padding: 12px; border-radius: 14px;
  border: 1px solid rgba(29, 158, 117, .22); background: linear-gradient(180deg, rgba(43, 196, 138, .08), rgba(43, 196, 138, .02));
  animation: ed-photo-in .32s cubic-bezier(.2, 1.1, .3, 1);
}
.cm-ed__sondage[hidden] { display: none; }
.cm-ed__sondage-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-ed__sondage-titre {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--green3);
}
.cm-ed__sondage-titre .cm-ico { width: 14px; height: 14px; }
.cm-ed__sondage-x {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 0; border-radius: 8px; background: none;
  font: 600 12px var(--font); color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s;
}
.cm-ed__sondage-x:hover { background: rgba(180, 50, 28, .08); color: #B4321C; }
.cm-ed__sondage-x .cm-ico { width: 12px; height: 12px; }
.cm-ed__zone .cm-ed__sondage input {
  width: 100%; height: 42px; padding: 0 12px; border: 1.5px solid rgba(29, 158, 117, .28); border-radius: 11px;
  background: #fff; box-shadow: none; font: 600 14px var(--font); color: var(--text);
}
.cm-ed__zone .cm-ed__sondage input.cm-ed__sondage-q { font-weight: 800; font-size: 15px; }
.cm-ed__zone .cm-ed__sondage input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(43, 196, 138, .14); }
.cm-ed__sondage-opts { display: grid; gap: 7px; }
.cm-ed__sondage-opt { position: relative; display: flex; align-items: center; }
.cm-ed__zone .cm-ed__sondage .cm-ed__sondage-opt input { padding-left: 38px; padding-right: 40px; }
.cm-ed__sondage-rond {
  position: absolute; left: 13px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(29, 158, 117, .4); pointer-events: none;
}
.cm-ed__sondage-moins {
  position: absolute; right: 7px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0;
  border-radius: 50%; background: none; color: var(--muted-2); cursor: pointer; transition: background-color .2s, color .2s;
}
.cm-ed__sondage-moins:hover { background: rgba(180, 50, 28, .08); color: #B4321C; }
.cm-ed__sondage-moins .cm-ico { width: 12px; height: 12px; }
.cm-ed__sondage-plus {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px;
  border: 1.5px dashed rgba(29, 158, 117, .45); border-radius: 10px; background: rgba(255, 255, 255, .6);
  font: 700 13px var(--font); color: var(--green3); cursor: pointer; transition: background-color .2s, border-color .2s;
}
.cm-ed__sondage-plus:hover { background: rgba(43, 196, 138, .1); border-color: var(--green); }
.cm-ed__sondage-plus .cm-ico { width: 14px; height: 14px; }
.cm-ed__sondage-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
/* Le titre sans cadre : c'est la zone qui encadre. */
.cm-ed__zone input.cm-ed__titre {
  width: 100%; padding: 4px 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font-size: 16px; font-weight: 800; letter-spacing: -.2px;
}
.cm-ed__zone input.cm-ed__titre:focus { border: 0; box-shadow: none; }
.cm-ed__zone input.cm-ed__titre::placeholder { color: var(--muted-2); font-weight: 700; }

/* Sous le cadre, une seule ligne : « Photo », « Vidéo » et « Sondage », trois
   petits boutons serrés à gauche (leur icône, leur nom) ; « Aperçu » et
   « Publier » à droite. */
.cm-ed__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cm-ed__ajouts { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.cm-ed__envoi { flex: none; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cm-ed__voir { gap: 7px; height: 40px; padding: 0 16px; }
.cm-ed__voir .cm-ico { width: 16px; height: 16px; }
.cm-ed__ajout-compte:empty { display: none; }
.cm-ed__ajout-compte {
  flex: none; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--green3);
  background: rgba(43, 196, 138, .16); font-variant-numeric: tabular-nums;
}
.cm-ed__ajout-corps:disabled { cursor: not-allowed; opacity: .55; }
.cm-ed__ajout.is-ok:not(.cm-ed__ajout--video) { max-width: none; }
.cm-ed__ajout {
  position: relative; flex: 0 1 auto; min-width: 0; display: flex; align-items: center; height: 40px;
  border: 1.5px dashed rgba(29, 158, 117, .35); border-radius: 12px; background: rgba(255, 255, 255, .6);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cm-ed__ajout[hidden] { display: none; }
.cm-ed__ajout:hover { background: rgba(43, 196, 138, .08); border-color: rgba(29, 158, 117, .6); }
.cm-ed__ajout-corps {
  flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 0 13px 0 5px;
  border: 0; border-radius: inherit; background: none; font: inherit; color: var(--muted); text-align: left; cursor: pointer;
}
.cm-ed__ajout-corps:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(43, 196, 138, .25); }
.cm-ed__ajout-ico {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .2), rgba(29, 158, 117, .07)); color: var(--green);
  transition: background .2s ease, color .2s ease;
}
.cm-ed__ajout-ico .cm-ico { width: 15px; height: 15px; }
.cm-ed__ajout:hover .cm-ed__ajout-ico .cm-ico { animation: ed-photo .6s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes ed-photo { 40% { transform: translateY(-3px) rotate(-6deg); } }
.cm-ed__ajout-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.cm-ed__ajout-txt strong { font-size: 13px; color: var(--green3); white-space: nowrap; }
.cm-ed__ajout-txt span { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-ed__ajout-x {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(21, 64, 50, .06); color: var(--muted); cursor: pointer; transition: background .2s, color .2s;
}
.cm-ed__ajout-x:hover { background: rgba(180, 50, 28, .1); color: #B4321C; }
.cm-ed__ajout-x .cm-ico { width: 12px; height: 12px; }
/* La vidéo ajoutée : sa zone passe au vert, le lien s'y lit. */
.cm-ed__ajout.is-ok { max-width: 300px; border-style: solid; border-color: rgba(29, 158, 117, .38); background: rgba(43, 196, 138, .07); }
.cm-ed__ajout.is-ok .cm-ed__ajout-ico { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -8px rgba(29, 158, 117, .8); }
/* Le lien se colle dans la zone même. */
.cm-ed__ajout.is-saisie { flex: 1 1 300px; gap: 8px; padding: 0 0 0 5px; border-style: solid; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(43, 196, 138, .14); }
.cm-ed__ajout.is-saisie .cm-ed__ajout-x { margin-right: 6px; }
.cm-ed__ajout input.cm-ed__lien {
  flex: 1; min-width: 0; height: auto; padding: 8px 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font-size: 13.5px;
}
.cm-ed__ajout input.cm-ed__lien:focus { border: 0; box-shadow: none; }
.cm-ed__lien-ok {
  flex: none; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--grad); color: #fff;
  font: 700 12.5px var(--font); cursor: pointer; box-shadow: 0 6px 14px -8px rgba(29, 158, 117, .8);
}
.cm-ed__ajout.is-erreur { border-color: #D2553F; box-shadow: 0 0 0 3px rgba(210, 85, 63, .14); animation: ed-non .35s ease; }
@keyframes ed-non { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

@keyframes ed-photo-in { from { opacity: 0; transform: scale(.96); } }
.cm-ed__roue { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: ed-roue .8s linear infinite; }
@keyframes ed-roue { to { transform: rotate(360deg); } }

/* Un fichier survole la zone : elle s'allume, « Dépose ta photo ici ». */
.cm-ed__survol {
  position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border-radius: inherit; border: 2px dashed var(--green); background: rgba(232, 248, 240, .92); color: var(--green3); pointer-events: none;
}
.cm-ed__survol .cm-ico { width: 30px; height: 30px; }
.cm-ed__survol strong { font-size: 14px; }
.cm-ed__zone.is-survol .cm-ed__survol { display: flex; animation: ed-photo-in .2s ease; }

/* La rubrique : un bouton en haut à droite, la liste se déroule dessous. */
.cm-rub-wrap { position: relative; flex: none; margin-left: auto; }
.cm-rub {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px 0 13px; border-radius: 999px;
  border: 1px solid rgba(29, 158, 117, .32); background: rgba(43, 196, 138, .08);
  font: 700 12.5px var(--font); color: var(--green3); cursor: pointer; white-space: nowrap;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.cm-rub .cm-ico { width: 14px; height: 14px; }
.cm-rub.is-vide { border-style: dashed; background: rgba(255, 255, 255, .8); color: var(--muted); }
.cm-rub:hover, .cm-rub.is-ouvert { border-color: var(--green); box-shadow: 0 0 0 3px rgba(43, 196, 138, .14); }
.cm-rub .cm-rub__chevron { width: 13px; height: 13px; transform: rotate(90deg); transition: transform .2s ease; }
.cm-rub.is-ouvert .cm-rub__chevron { transform: rotate(-90deg); }
.cm-rub__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 232px; padding: 6px; display: grid; gap: 1px;
  background: #fff; border: 1px solid var(--border); border-radius: 15px;
  box-shadow: 0 24px 50px -22px rgba(6, 40, 30, .45), 0 2px 8px rgba(6, 40, 30, .05);
  transform-origin: top right; animation: rub-in .18s ease;
}
.cm-rub__menu[hidden] { display: none; }
@keyframes rub-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
.cm-rub__titre { padding: 6px 10px 5px; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.cm-rub__opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px;
  background: none; font: 600 13px var(--font); color: var(--text); text-align: left; cursor: pointer;
}
.cm-rub__opt:hover, .cm-rub__opt:focus-visible { background: rgba(29, 158, 117, .08); outline: none; }
.cm-rub__opt-ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(43, 196, 138, .12); color: var(--green); }
.cm-rub__opt-ico .cm-ico { width: 14px; height: 14px; }
.cm-rub__opt-nom { flex: 1; }
.cm-rub__opt .cm-rub__coche { width: 15px; height: 15px; color: var(--green); opacity: 0; }
.cm-rub__opt.is-on { color: var(--green3); }
.cm-rub__opt.is-on .cm-rub__coche { opacity: 1; }
.cm-rub__opt.is-on .cm-rub__opt-ico { background: var(--grad); color: #fff; }
/* ── Le texte mis en forme ─────────────────────────────────────────────────
   La barre de l'éditeur (cf. js/redaction.js) : des groupes d'outils
   séparés d'un trait, l'outil actif en vert. Elle reste en haut de l'écran
   quand le texte s'allonge. Au survol, une étiquette dit l'outil et son
   raccourci. */
.rt-barre {
  position: sticky; top: calc(var(--topbar-h, 64px) + 6px); z-index: 4;
  border-bottom: 1px solid rgba(21, 64, 50, .08); border-radius: 15px 15px 0 0;
  background: rgba(250, 252, 251, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.rt-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; padding: 6px 8px; }
/* Dans la fenêtre « Modifier le post », la barre colle au haut de la fenêtre. */
.modal__card .rt-barre { top: 0; }
.rt-groupe { display: flex; align-items: center; gap: 2px; }
.rt-groupe + .rt-groupe { margin-left: 4px; padding-left: 6px; border-left: 1px solid rgba(21, 64, 50, .1); }
.rt-btn {
  position: relative; display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 9px; background: transparent; color: #45605A; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.rt-btn svg { width: 17px; height: 17px; }
.rt-btn:hover:not(:disabled) { background: rgba(21, 64, 50, .07); color: var(--text); }
.rt-btn:active:not(:disabled) { transform: scale(.92); }
.rt-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.rt-btn.is-on, .rt-btn.is-ouvert { background: rgba(43, 196, 138, .16); color: var(--green3); }
.rt-btn:disabled { opacity: .35; cursor: default; }
.rt-btn[data-tip]::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 7px); left: 50%; z-index: 6;
  transform: translate(-50%, -3px); padding: 5px 9px; border-radius: 8px;
  background: rgba(17, 40, 33, .94); color: #fff; font: 600 11px var(--font); white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .15s ease, transform .15s ease; transition-delay: 0s;
}
.rt-btn[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .35s; }
/* La fenêtre des émojis ouverte : l'infobulle de son bouton ne passe pas dessus. */
.rt-btn.is-ouvert[data-tip]::after { opacity: 0; transition-delay: 0s; }
.rt-groupe:first-child .rt-btn:first-child[data-tip]::after { left: 0; transform: translateY(-3px); }
.rt-groupe:first-child .rt-btn:first-child[data-tip]:hover::after { transform: none; }

/* « Ajouter un lien » : une petite fenêtre sous la barre. */
.rt-lien {
  position: absolute; top: calc(100% + 6px); right: 8px; z-index: 7; width: min(430px, calc(100% - 16px));
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px;
  background: #fff; border: 1px solid rgba(29, 158, 117, .35); border-radius: 13px;
  box-shadow: 0 22px 44px -22px rgba(6, 40, 30, .5), 0 0 0 3px rgba(43, 196, 138, .12);
  animation: rub-in .16s ease;
}
.rt-lien[hidden] { display: none; }
.rt-lien__ico { display: grid; place-items: center; color: var(--green); }
.rt-lien__ico svg { width: 16px; height: 16px; }
.rt-lien input.rt-lien__champ {
  flex: 1; min-width: 0; height: 34px; padding: 0 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font-size: 13.5px;
}
.rt-lien input.rt-lien__champ:focus { border: 0; box-shadow: none; }
.rt-lien input.rt-lien__champ.is-erreur { animation: ed-non .35s ease; color: #B4321C; }
.rt-lien__ok {
  flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--grad); color: #fff;
  font: 700 12.5px var(--font); cursor: pointer; box-shadow: 0 6px 14px -8px rgba(29, 158, 117, .8);
}
.rt-lien__voir, .rt-lien__x {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(21, 64, 50, .06); color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s;
}
.rt-lien__voir:hover { background: rgba(43, 196, 138, .14); color: var(--green3); }
.rt-lien__x:hover { background: rgba(180, 50, 28, .1); color: #B4321C; }
.rt-lien__voir svg, .rt-lien__x svg { width: 15px; height: 15px; }

/* La zone où l'on écrit, et le texte publié : mêmes paragraphes, mêmes listes. */
.rt-zone {
  position: relative; min-height: 110px; padding: 4px 2px 6px; outline: none; cursor: text;
  font-size: 14.5px; line-height: 1.65; color: var(--text); overflow-wrap: anywhere;
}
.rt-zone.is-vide::before {
  content: attr(data-placeholder); position: absolute; top: 4px; left: 2px; right: 2px;
  color: var(--muted-2); pointer-events: none;
}
.rt-zone p, .rt-texte p { margin: 0 0 .55em; }
.rt-zone > :last-child, .rt-texte > :last-child { margin-bottom: 0; }
.rt-zone ul, .rt-zone ol, .rt-texte ul, .rt-texte ol { margin: 0 0 .55em; padding-left: 1.45em; }
.rt-zone li, .rt-texte li { margin: .15em 0; padding-left: .2em; }
.rt-zone ul li::marker, .rt-texte ul li::marker { color: var(--green); }
.rt-zone ol li::marker, .rt-texte ol li::marker { color: var(--green3); font-weight: 700; }
.rt-zone a, .rt-texte a { color: var(--green3); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(29, 158, 117, .4); text-underline-offset: 2px; }
.rt-texte a:hover { text-decoration-color: currentColor; }
.rt-texte mark { padding: .05em .15em; border-radius: 3px; background: #FFF0A1; color: inherit; }
.rt-texte strong { font-weight: 800; }
.rt-compteur { align-self: flex-end; font-size: 11px; font-weight: 600; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.rt-compteur.is-trop { color: #B4321C; }
.rt-compteur[hidden] { display: none; }

/* Moins de place (la fenêtre « Modifier le post ») : des outils un peu plus
   serrés, pour tenir sur une ligne. Téléphone : une seule ligne qui défile. */
@container editeur (max-width: 700px) {
  .rt-btn { width: 30px; height: 30px; }
  .rt-btn svg { width: 16px; height: 16px; }
  .rt-groupe + .rt-groupe { margin-left: 3px; padding-left: 4px; }
}
@container editeur (max-width: 520px) {
  .rt-outils { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 5px 6px; }
  .rt-outils::-webkit-scrollbar { display: none; }
  .rt-outils.is-suite { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .rt-btn { flex: none; width: 34px; height: 34px; }
  .rt-btn[data-tip]::after { display: none; }
}

/* « Publier », au bout de la même ligne, à droite. */
.cm-ed__publier { flex: none; gap: 8px; height: 40px; margin-left: auto; justify-content: center; padding: 0 24px; }
.cm-ed__publier .cm-ico { width: 15px; height: 15px; }
/* Étroit (téléphone) : les trois boutons ne gardent que leur icône, pour
   tenir sur la ligne de « Publier » ; le lien de la vidéo se colle sur toute
   la largeur ; les photos sont moins hautes, « Mettre en avant » se réduit à
   son étoile. */
@container editeur (max-width: 520px) {
  .cm-ed__ecrire { padding: 10px 12px 0; }
  .cm-ed__corps { padding: 12px 12px 12px; }
  .cm-ed__photos { --ph-h: 160px; }
  .cm-ed__une { padding: 5px; }
  .cm-ed__une-txt { display: none; }
  .cm-ed__photos.is-une-seule .cm-ed__ph img { max-height: 260px; }
  .cm-ed__ph-btn > span:not(.cm-ico) { display: none; }
  .cm-ed__ph-btn { width: 30px; padding: 0; justify-content: center; }
  .cm-ed__ph-ajout { width: 92px; }
  .cm-ed__voir { padding: 0 12px; }
  .cm-ed__pour { display: none; }
  /* La rubrique passe sous le nom, comme un champ de formulaire. */
  .cm-ed__head { flex-wrap: wrap; row-gap: 12px; }
  .cm-ed__head .cm-rub-wrap { flex: 1 1 100%; }
  .cm-ed__head .cm-rub { width: 100%; }
  .cm-ed__head .cm-rub .cm-rub__chevron { margin-left: auto; }
  .cm-ed__ajout:not(.is-saisie) .cm-ed__ajout-corps { padding: 0 5px; }
  .cm-ed__ajout:not(.is-saisie) .cm-ed__ajout-txt { display: none; }
  .cm-ed__ajout.is-ok { max-width: none; }
  .cm-ed__ajout.is-ok .cm-ed__ajout-x { margin-right: 6px; }
  .cm-ed__ajout.is-saisie { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .cm-ed__photos, .cm-ed__sondage, .cm-ed__survol, .cm-ed__ajout-ico .cm-ico, .cm-ed__ajout.is-erreur, .cm-rub__menu { animation: none !important; } }

/* ── Filtres ── */
.cm-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-filter {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .8);
  font: 600 12.5px var(--font); color: var(--muted); cursor: pointer; transition: all .2s;
}
.cm-filter .cm-ico { width: 14px; height: 14px; color: var(--green); }
.cm-filter:hover { color: var(--text); }
.cm-filter.is-active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -8px rgba(29, 158, 117, .7); }
.cm-filter.is-active .cm-ico { color: #fff; }
.cm-feed { display: flex; flex-direction: column; gap: 14px; transition: opacity .2s; }
.cm-feed.is-loading { opacity: .45; pointer-events: none; }
.cm-more { align-self: center; }
.cm-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 38px 20px;
  border-radius: var(--radius); background: var(--card); border: 1px dashed var(--border-2);
}
.cm-empty p { margin: 0 auto; max-width: 380px; font-size: 13px; color: var(--muted); }

/* ── Un post ── */
.cm-post { padding: 20px 22px 16px; margin-bottom: 0; }
.cm-post.is-pinned { border-color: rgba(201, 168, 76, .45); box-shadow: 0 0 0 1px rgba(201, 168, 76, .18), var(--shadow-sm); }
/* Rubrique « Annonces » : le post qui se voit. Un contour en dégradé Seqooia
   (vert, vert-jaune, bleu-vert), un fond teinté qui s'éclaircit vers le
   bas, une ombre verte, et en tête le bandeau « Annonce · Seqooia ». Les
   autres posts gardent leur cadre blanc. */
.cm-post.is-annonce {
  position: relative; outline: 0; border: 2px solid transparent;
  background:
    linear-gradient(180deg, rgba(232, 248, 240, .97), rgba(255, 255, 255, .98) 180px) padding-box,
    linear-gradient(125deg, #2BC48A, #B2DE56 48%, #1EA8B6) border-box;
  box-shadow: 0 24px 50px -28px rgba(29, 158, 117, .7), 0 0 0 5px rgba(43, 196, 138, .07);
}
.cm-post__bandeau {
  display: inline-flex; align-items: center; gap: 7px; margin: -4px 0 14px; padding: 5px 13px 5px 5px; border-radius: 999px;
  background: var(--grad); color: #fff; box-shadow: 0 10px 20px -12px rgba(29, 158, 117, .9);
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.cm-post__bandeau-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.cm-post__bandeau-ico .cm-ico { width: 12px; height: 12px; color: #fff; }
.cm-post__bandeau .cm-post__bandeau-ico .cm-ico { animation: cm-porte-voix 2.8s ease-in-out infinite; transform-origin: 30% 60%; }
.cm-post__bandeau-de { font-weight: 600; letter-spacing: .02em; text-transform: none; opacity: .85; }
.cm-post__bandeau-de::before { content: '·'; margin-right: 7px; opacity: .7; }
@keyframes cm-porte-voix { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-12deg) scale(1.08); } 86% { transform: rotate(8deg); } 93% { transform: rotate(-4deg); } }
.cm-post.is-annonce .cm-post__title { font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .cm-post__bandeau .cm-post__bandeau-ico .cm-ico { animation: none; } }
.cm-post__head { display: flex; align-items: center; gap: 11px; }
.cm-post__who { min-width: 0; flex: 1; }
/* Le nom ne se coupe jamais en deux (« Sonny / Piwnica ») : s'il manque de place, c'est le badge qui passe dessous. */
.cm-post__name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; font-size: 14px; }
.cm-post__name strong { white-space: nowrap; }
.cm-post__meta { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12px; color: var(--muted-2); }
.cm-post__cat { display: inline-flex; align-items: center; gap: 4px; }
.cm-post__cat .cm-ico { width: 12px; height: 12px; color: var(--green); }
.cm-pin {
  flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #8A6D1F; background: rgba(201, 168, 76, .14);
}
.cm-pin .cm-ico { width: 12px; height: 12px; }
.cm-pin--btn { border: 0; font-family: var(--font); cursor: pointer; transition: background-color .2s, color .2s; }
.cm-pin--btn:hover { background: rgba(201, 168, 76, .26); }
.cm-pin--btn:disabled { opacity: .5; cursor: default; }
/* Pas encore épinglé : une punaise discrète, dorée au survol. */
.cm-pin--btn.is-off { width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 50%; background: transparent; color: var(--muted-2); }
.cm-pin--btn.is-off:hover { background: rgba(201, 168, 76, .14); color: #8A6D1F; }
.cm-pin--btn.is-off .cm-ico { width: 16px; height: 16px; }
/* Au téléphone, « Épinglé » se réduit à sa punaise : le nom et le badge du fondateur tiennent sur une ligne. */
@media (max-width: 480px) {
  .cm-post__head .cm-pin:not(.is-off) { flex: none; width: 30px; height: 30px; padding: 0; gap: 0; justify-content: center; border-radius: 50%; font-size: 0; }
  .cm-post__head .cm-pin:not(.is-off) .cm-ico { width: 14px; height: 14px; }
}
.cm-post__title { margin: 14px 0 0; font-size: 19px; letter-spacing: -.3px; line-height: 1.3; }
.cm-post__body { margin-top: 8px; font-size: 14.5px; line-height: 1.7; overflow-wrap: anywhere; }
/* Les espaces voulues (plusieurs d'affilée) se gardent ; les retours à la ligne sont des <br>. */
.cm-post__body.rt-texte { white-space: pre-wrap; }
/* Un long texte replié après trois lignes, qui s'efface en bas ; « Voir plus » / « Voir moins » dessous. */
.cm-post__body.is-replie {
  max-height: calc(1.7em * 3); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent);
}
.cm-plus {
  display: inline-flex; margin-top: 6px; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--green3);
}
.cm-plus:hover { text-decoration: underline; text-underline-offset: 3px; }
.cm-plus[hidden] { display: none; }
.cm-post__body a, .cm-c__body a { color: var(--green); font-weight: 600; }
.cm-post__img { display: flex; justify-content: center; width: 100%; margin-top: 14px; padding: 0; border: 0; border-radius: 14px; cursor: zoom-in; background: transparent; }
/* La photo entière, jamais rognée, et à taille raisonnable : au plus 400 px de haut (une photo en
   largeur ou carrée garde sa forme ; une capture de téléphone, en hauteur, se centre, plus étroite).
   L'espace autour reste celui de la carte, sans bandes ; un liseré très fin garde le bord d'une photo
   blanche sur la carte blanche. */
.cm-post__img img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: min(400px, 56vh); object-fit: contain;
  border-radius: 14px; box-shadow: 0 0 0 1px rgba(21, 64, 50, .08);
}
.cm-post__video { margin-top: 14px; }
.cm-post__video--avenir {
  display: flex; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 16 / 9; border-radius: 14px;
  background: #0B1512; color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 600; text-align: center;
}
.cm-post__video--avenir .cm-ico { width: 22px; height: 22px; }

/* Deux ou trois photos : côte à côte, à la même hauteur, chacune à sa largeur ;
   la piste glisse du doigt, à la souris ou avec les flèches. */
.cm-car { --cm-car-h: clamp(200px, 46vw, 290px); position: relative; margin-top: 14px; }
.cm-car__piste {
  position: relative; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; border-radius: 14px; outline: none;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  user-select: none; -webkit-user-select: none;
}
.cm-car__piste::-webkit-scrollbar { display: none; }
.cm-car.is-defile .cm-car__piste { cursor: grab; }
.cm-car__piste:focus-visible { box-shadow: 0 0 0 3px rgba(43, 196, 138, .35); }
.cm-car__piste.is-glisse { scroll-snap-type: none; cursor: grabbing; }
.cm-car__photo {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center;
  height: var(--cm-car-h); min-width: 34%; max-width: 86%;
  padding: 0; border: 0; border-radius: 14px; cursor: zoom-in; scroll-snap-align: start;
  background: transparent;
}
.cm-car.is-defile .cm-car__photo { cursor: inherit; }
.cm-car__photo img {
  display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; pointer-events: none;
  border-radius: 14px;
}
.cm-car__fl {
  position: absolute; top: calc(var(--cm-car-h) / 2); z-index: 2; display: grid; place-items: center;
  width: 38px; height: 38px; margin-top: -19px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--text); box-shadow: 0 8px 20px -8px rgba(6, 23, 18, .55);
  cursor: pointer; opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.cm-car__fl[hidden] { display: none; }
.cm-car__fl--g { left: 10px; }
.cm-car__fl--g .cm-ico { transform: rotate(180deg); }
.cm-car__fl--d { right: 10px; }
.cm-car__fl .cm-ico { width: 18px; height: 18px; }
.cm-car:hover .cm-car__fl, .cm-car__fl:focus-visible { opacity: 1; }
.cm-car__fl:hover { transform: scale(1.07); }
.cm-car__points { display: none; justify-content: center; gap: 6px; margin-top: 10px; }
.cm-car.is-defile .cm-car__points { display: flex; }
.cm-car__point {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(21, 64, 50, .2); cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}
.cm-car__point.is-on { width: 20px; background: var(--green); }
@media (hover: none) { .cm-car__fl { display: none; } }

/* Le sondage, sous les photos : la question, les réponses ; après le vote,
   les résultats en barres (la réponse en tête plus foncée, la sienne cochée). */
.cm-sondage {
  margin-top: 14px; padding: 14px 14px 12px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(43, 196, 138, .08), rgba(43, 196, 138, .02));
  border: 1px solid rgba(29, 158, 117, .2);
}
.cm-sondage__tete { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-bottom: 12px; }
.cm-sondage__etiquette {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--green3); background: rgba(43, 196, 138, .15);
}
.cm-sondage__etiquette .cm-ico { width: 13px; height: 13px; }
.cm-sondage__question { font-size: 16px; line-height: 1.35; letter-spacing: -.2px; color: var(--text); overflow-wrap: anywhere; }
.cm-sondage__liste { display: grid; gap: 8px; }
.cm-sondage__opt {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1.5px solid rgba(29, 158, 117, .35); border-radius: 12px; background: #fff; overflow: hidden;
  font: 600 14px/1.35 var(--font); color: var(--text); text-align: left; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.cm-sondage__opt:hover:not(:disabled) { border-color: var(--green); box-shadow: 0 8px 18px -12px rgba(29, 158, 117, .8); }
.cm-sondage__opt:active:not(:disabled) { transform: scale(.993); }
.cm-sondage__opt:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(43, 196, 138, .3); }
.cm-sondage__opt:disabled { cursor: default; opacity: 1; }
.cm-sondage__barre {
  position: absolute; inset: 0 auto 0 0; width: var(--part, 0%); background: rgba(43, 196, 138, .15);
  transition: width .8s cubic-bezier(.3, .8, .3, 1);
}
.cm-sondage__opt.is-tete .cm-sondage__barre { background: rgba(43, 196, 138, .28); }
.cm-sondage__rond {
  position: relative; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(29, 158, 117, .45); color: #fff; transition: background-color .2s ease, border-color .2s ease;
}
.cm-sondage__rond .cm-ico { width: 12px; height: 12px; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.cm-sondage__opt.is-mien .cm-sondage__rond { background: var(--green); border-color: var(--green); }
.cm-sondage__opt.is-mien .cm-sondage__rond .cm-ico { opacity: 1; transform: none; }
.cm-sondage.is-resultats .cm-sondage__opt { border-color: rgba(29, 158, 117, .16); }
.cm-sondage.is-resultats .cm-sondage__opt.is-mien { border-color: rgba(29, 158, 117, .6); }
.cm-sondage.is-resultats .cm-sondage__opt:not(.is-mien) .cm-sondage__rond { border-color: rgba(29, 158, 117, .2); }
.cm-sondage__texte { position: relative; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cm-sondage__opt.is-tete .cm-sondage__texte { font-weight: 800; }
.cm-sondage__part { position: relative; flex: none; font-size: 13.5px; font-weight: 800; color: var(--green3); font-variant-numeric: tabular-nums; }
.cm-sondage__part:empty { display: none; }
.cm-sondage__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.cm-sondage__sep { color: var(--muted-2); }
.cm-sondage__retirer {
  padding: 0; border: 0; background: none; font: 700 12.5px var(--font); color: var(--green3); cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(20, 117, 92, .35); text-underline-offset: 3px;
}
.cm-sondage__retirer:hover { text-decoration-color: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .cm-sondage__barre, .cm-sondage__rond .cm-ico { transition: none; }
}

/* « Aperçu » : le post en cours d'écriture, sur un bout de mur. */
.modal__card.cm-apercu { max-width: 720px; gap: 16px; padding: 22px 24px 20px; }
.cm-apercu__titres p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.cm-apercu__mur { margin: 0 -8px; padding: 14px; border-radius: 18px; background: var(--bg, #F6F8F7); }
.cm-apercu__mur .cm-post { margin: 0; }
.cm-apercu__vide { margin: 0; padding: 26px 18px; border-radius: 14px; text-align: center; font-size: 14px; color: var(--muted); background: rgba(21, 64, 50, .04); }
.cm-apercu__pied { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cm-apercu__pied .btn { gap: 7px; }
.cm-apercu__pied .cm-ico { width: 15px; height: 15px; }
@media (max-width: 560px) {
  .modal__card.cm-apercu { padding: 16px 14px 14px; }
  .cm-apercu__mur { margin: 0 -6px; padding: 8px; }
  .cm-apercu__pied .btn { flex: 1 1 auto; justify-content: center; }
}
.cm-post__actions {
  display: flex; align-items: center; gap: 4px; margin-top: 14px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.cm-act {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px;
  border: 0; background: transparent; font: 600 13px var(--font); color: var(--muted); cursor: pointer;
  transition: background .2s, color .2s;
}
.cm-act .cm-ico { width: 17px; height: 17px; }
.cm-act:hover { background: rgba(21, 64, 50, .05); color: var(--text); }
.cm-heart.is-on { color: var(--red); }
.cm-heart.is-on svg { fill: currentColor; }
.cm-heart.is-beating .cm-ico { animation: like-beat .5s cubic-bezier(.34, 1.5, .5, 1); }
.cm-heart--sm { padding: 3px 7px; font-size: 11.5px; }
.cm-heart--sm .cm-ico { width: 13px; height: 13px; }

/* Menu ⋯ de l'admin */
.cm-menuwrap { position: relative; flex: none; }
.cm-dots { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; font-size: 18px; color: var(--muted); cursor: pointer; }
.cm-dots:hover { background: rgba(21, 64, 50, .06); }
.cm-menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 190px; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md);
}
.cm-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 9px 10px;
  border: 0; border-radius: 8px; background: none; font: 500 13px var(--font); color: var(--text); cursor: pointer;
}
.cm-menu button .cm-ico { width: 15px; height: 15px; color: var(--green); }
.cm-menu button:hover { background: rgba(29, 158, 117, .08); }
.cm-menu .is-danger, .cm-menu .is-danger .cm-ico { color: var(--red); }
.cm-menu[hidden] { display: none; }

/* ── Commentaires ── */
.cm-comments { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.cm-comments__list { display: flex; flex-direction: column; gap: 10px; }
.cm-showall { align-self: flex-start; padding: 0; border: 0; background: none; font: 600 12.5px var(--font); color: var(--muted); cursor: pointer; }
.cm-showall:hover { color: var(--green); }
.cm-c { display: flex; gap: 9px; align-items: flex-start; }
.cm-c__main { min-width: 0; flex: 1; }
.cm-c__bubble { display: inline-block; max-width: 100%; padding: 9px 13px; border-radius: 4px 16px 16px 16px; background: rgba(21, 64, 50, .05); }
/* Les réponses de Sonny ressortent : bulle verte bordée, nom en vert, photo cerclée de vert. */
.cm-c--team .cm-c__bubble {
  background: linear-gradient(135deg, rgba(43, 196, 138, .2), rgba(29, 158, 117, .09));
  box-shadow: inset 0 0 0 1px rgba(29, 158, 117, .34);
}
.cm-c--team .cm-c__head strong { color: var(--green3); }
.cm-c--team > .cm-av { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2BC48A; }
/* Le niveau d'un membre, à côté de son statut (sans le grade). */
.cm-c__niveau { font-size: 11px; font-weight: 700; color: var(--muted); }
.cm-c__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.cm-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.cm-chip .rk--xs { width: 17px; height: 17px; border-radius: 5px; }
.cm-chip .rk--xs .rk__icon { width: 10px; height: 10px; }
.cm-c__body { margin-top: 3px; font-size: 13.5px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.cm-c__actions { display: flex; align-items: center; gap: 6px; margin: 3px 0 0 4px; font-size: 11.5px; color: var(--muted-2); }
.cm-c__del { padding: 0; border: 0; background: none; font: 600 11.5px var(--font); color: var(--muted-2); cursor: pointer; }
.cm-c__del:hover { color: var(--red); }
/* Les fils : sous un commentaire, ses réponses en retrait, reliées à lui par un trait qui descend
   de sa photo et se courbe vers chaque réponse (et vers la zone de réponse ouverte). */
.cm-fil { --fil: rgba(21, 64, 50, .16); display: flex; flex-direction: column; gap: 8px; }
.cm-fil > .cm-c { position: relative; }
.cm-fil.has-reponses > .cm-c::after {
  content: ''; position: absolute; left: 15px; top: 38px; bottom: -8px; border-left: 2px solid var(--fil); pointer-events: none;
}
.cm-fil__reponses { display: flex; flex-direction: column; gap: 8px; margin-left: 41px; }
.cm-fil__reponses > * { position: relative; }
.cm-fil__reponses > *::before {
  content: ''; position: absolute; left: -26px; top: -8px; width: 20px; height: 22px; pointer-events: none;
  border: solid var(--fil); border-width: 0 0 2px 2px; border-bottom-left-radius: 12px;
}
.cm-fil__reponses > :not(:last-child)::after {
  content: ''; position: absolute; left: -26px; top: 0; bottom: -8px; border-left: 2px solid var(--fil); pointer-events: none;
}
/* « Voir 1 réponse » : les réponses restent repliées tant qu'on ne les ouvre pas ; les photos de qui
   a répondu, puis le nombre. Ouvertes, le même bouton (en bas du fil) les replie. */
.cm-voir-rep {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 28px;
  padding: 3px 12px 3px 5px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 12.5px var(--font); color: var(--green3); transition: background-color .2s, color .2s;
}
.cm-voir-rep:hover { background: rgba(29, 158, 117, .08); }
.cm-voir-rep:focus-visible { outline: 2px solid rgba(29, 158, 117, .5); outline-offset: 2px; }
.cm-voir-rep__visages { display: inline-flex; }
.cm-voir-rep__visages .cm-av { box-shadow: 0 0 0 2px #fff; }
.cm-voir-rep__visages .cm-av + .cm-av { margin-left: -6px; }
.cm-voir-rep.is-ouvert { padding-left: 12px; color: var(--muted); }
.cm-voir-rep.is-ouvert:hover { color: var(--green3); }
.cm-fil__reponses > .cm-voir-rep::before { height: 22px; }
.cm-c--rep .cm-c__bubble { padding: 8px 12px; }
.cm-compose--rep { animation: cm-rep-ouvre .25s cubic-bezier(.2, .8, .2, 1) both; }
.cm-compose.cm-compose--rep > .cm-av { margin-bottom: 5px; }
.cm-compose--rep .cm-compose__box { padding: 3px 4px 3px 12px; }
.cm-compose--rep textarea { padding: 5px 0; font-size: 13px; }
.cm-compose--rep .cm-send, .cm-compose--rep .cm-emoji-btn { width: 28px; height: 28px; }
@keyframes cm-rep-ouvre { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .cm-compose--rep { animation: none; } }
.cm-compose { display: flex; gap: 9px; align-items: flex-end; }
.cm-compose__box {
  flex: 1; display: flex; align-items: flex-end; gap: 6px; padding: 5px 5px 5px 13px;
  border-radius: 20px; border: 1px solid var(--border-2); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.cm-compose__box:focus-within { border-color: rgba(29, 158, 117, .5); box-shadow: 0 0 0 3px rgba(29, 158, 117, .12); }
.cm-compose textarea {
  flex: 1; min-height: 0; padding: 6px 0; border: 0; outline: none; resize: none; background: transparent;
  font: 13.5px/1.5 var(--font); box-shadow: none;
}
.cm-compose textarea:focus { box-shadow: none; }
.cm-send {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--grad); color: #fff; cursor: pointer; transition: opacity .2s, transform .2s;
}
.cm-send .cm-ico { width: 15px; height: 15px; }
.cm-send:disabled { opacity: .35; cursor: default; }
.cm-send:not(:disabled):hover { transform: scale(1.06); }

/* ── Cartes de la colonne de droite : serrées, une seule respiration ── */
.cm-card { padding: 15px 16px; margin-bottom: 0; }
.cm-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cm-card__head h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 14.5px; }
.cm-card__count { font-family: var(--pixel); font-size: 8px; color: var(--muted); }
.cm-card__foot { margin: 10px 0 0; font-size: 11.5px; color: var(--muted-2); text-align: center; }
.cm-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green);
}
.cm-kicker .cm-ico { width: 12px; height: 12px; }

.cm-me__top { display: flex; align-items: center; gap: 12px; }
.cm-me__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-me__ring { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding-bottom: 4px; }
.cm-me__ring .ring-txt { min-width: 0; }
.cm-me__id { flex: 1; min-width: 0; }
/* « En savoir plus » : en haut à droite, son bord droit tombe sur celui de la barre. */
.cm-me__more {
  align-self: flex-start; flex: none;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(29, 158, 117, .32); background: rgba(29, 158, 117, .07);
  font: 700 11px var(--font); color: var(--green3); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
/* Au survol, il se remplit du vert de l'onglet actif : impossible à rater. */
.cm-me__more:hover, .cm-me__more:focus-visible {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 6px 14px -6px rgba(29, 158, 117, .7); transform: translateY(-1px);
}
.cm-me__rank { margin-top: 2px; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.cm-me__lvl { font-size: 12.5px; color: var(--muted); }
.cm-bar { height: 7px; margin-top: 12px; border-radius: 999px; background: rgba(21, 64, 50, .08); overflow: hidden; }
.cm-bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.cm-me__next { margin: 7px 0 0; font-size: 12px; color: var(--muted); }

/* Même pastille glissante que l'en-tête (js/pastille.js). */
.cm-seg { position: relative; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(21, 64, 50, .06); margin-bottom: 4px; }
.cm-seg .pastille { border-radius: 9px; }
.cm-seg__b { flex: 1; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; font: 600 11.5px var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .25s ease; }
.cm-seg__b:hover { color: var(--text); }
.cm-seg__b.is-active { color: #fff; transition: color .25s ease .12s; }

/* Le podium : 2e, 1er, 3e — la marche du milieu est la plus haute. */
.cm-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; padding-top: 24px; }
.cm-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; text-align: center; }
.cm-step__av { position: relative; }
.cm-step__av .cm-av { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ring, #CBD5E1); }
.cm-step--1 { --ring: #D9BC66; }
.cm-step--2 { --ring: #B8C2CC; }
.cm-step--3 { --ring: #CD8B5A; }
.cm-medal {
  position: absolute; right: -6px; bottom: -4px; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ring); color: #fff;
  font-family: var(--pixel); font-size: 7px; box-shadow: 0 0 0 2px #fff;
}
.cm-crown { position: absolute; top: -21px; width: 18px; height: 18px; color: #C9A84C; animation: cm-crown 2.6s ease-in-out infinite; }
.cm-crown svg { fill: rgba(233, 207, 126, .55); }
@keyframes cm-crown { 50% { transform: translateY(-2px) rotate(-6deg); } }
.cm-step__name { margin-top: 5px; max-width: 100%; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-step__xp { font-size: 11px; font-weight: 700; color: var(--green); }
.cm-step__block {
  width: 100%; margin-top: 3px; display: grid; place-items: center; border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, rgba(29, 158, 117, .14), rgba(29, 158, 117, .04));
  border: 1px solid rgba(29, 158, 117, .16);
}
.cm-step--1 .cm-step__block { height: 56px; background: linear-gradient(180deg, rgba(217, 188, 102, .3), rgba(217, 188, 102, .06)); border-color: rgba(201, 168, 76, .35); }
.cm-step--2 .cm-step__block { height: 40px; }
.cm-step--3 .cm-step__block { height: 30px; }
.cm-step.is-me .cm-step__name { color: var(--green3); }
.cm-empty-small { margin: 0; padding: 16px 6px 6px; text-align: center; font-size: 12.5px; color: var(--muted); }

.cm-rows { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.cm-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 10px; font-size: 13px; }
.cm-row:hover { background: rgba(21, 64, 50, .04); }
.cm-row.is-me { background: rgba(29, 158, 117, .09); }
.cm-row__pos { width: 18px; text-align: center; font-family: var(--pixel); font-size: 8px; color: var(--muted); }
.cm-row__name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-row__xp { font-size: 11.5px; font-weight: 700; color: var(--green); white-space: nowrap; }
.cm-rows__sep { margin: 4px 0 -6px; text-align: center; color: var(--muted-2); letter-spacing: 3px; }

/* ── « En savoir plus » : rangs et XP ──
   Une fenêtre large : comment on gagne de l'XP, puis les cinq rangs l'un
   sous l'autre, reliés par un fil, le rang du membre en évidence. */
.cm-guide { max-width: 780px; gap: 18px; }
/* Les deux grandes parties respirent : un vrai écart entre les gains et les rangs. */
.cm-guide__sec + .cm-guide__sec { margin-top: 18px; padding-top: 26px; border-top: 1px solid var(--border); }
.cm-guide__head { display: flex; align-items: flex-start; gap: 14px; }
.cm-guide__head > div { flex: 1; min-width: 0; }
.cm-guide__head h2 { margin: 2px 0 4px; }
.cm-guide__head p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.cm-guide__me {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: rgba(29, 158, 117, .07); border: 1px solid rgba(29, 158, 117, .2);
  font-size: 13px; color: var(--muted);
}
.cm-guide__me strong { color: var(--text); }
.cm-guide__sec h3 {
  margin: 0 0 14px; text-align: center;
  font-size: 18px; font-weight: 800; letter-spacing: -.3px; color: var(--text);
}
.cm-guide__gains { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.cm-guide__gain {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px;
  border: 1px solid var(--border); background: rgba(21, 64, 50, .02);
}
.cm-guide__gain > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-guide__gain strong { font-size: 13.5px; }
.cm-guide__gain span { font-size: 12px; line-height: 1.45; color: var(--muted); }
.cm-guide__xp { flex: none; font-size: 16px !important; font-weight: 800; color: var(--green) !important; letter-spacing: -.3px; }
.cm-guide__note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted-2); }

.cm-guide__ranks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cm-guide__rank {
  position: relative; display: grid; grid-template-columns: 18px 48px minmax(0, 1fr) auto; align-items: start; gap: 12px;
  padding: 12px 14px; border-radius: 14px; border: 1px solid transparent;
}
/* Le fil qui relie un rang au suivant, sous les badges. */
.cm-guide__rank:not(:last-child)::after {
  content: ''; position: absolute; left: calc(14px + 18px + 12px + 23px); top: 60px; bottom: -18px; width: 2px;
  border-radius: 2px; background: rgba(21, 64, 50, .1);
}
.cm-guide__rank.is-past:not(:last-child)::after { background: rgba(29, 158, 117, .45); }
.cm-guide__rank.is-here { background: rgba(29, 158, 117, .07); border-color: rgba(29, 158, 117, .25); }
.cm-guide__step { padding-top: 20px; font-family: var(--pixel); font-size: 8px; color: var(--muted-2); text-align: center; }
.cm-guide__txt { padding-top: 3px; }
.cm-guide__rank.is-here .cm-guide__step { color: var(--green); }
.cm-guide__rank .rk { position: relative; z-index: 1; }
.cm-guide__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-guide__name strong { font-size: 14.5px; }
.cm-guide__here {
  padding: 2px 8px; border-radius: 999px; background: var(--grad); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
}
.cm-guide__ok { width: 15px; height: 15px; color: var(--green); }
.cm-guide__txt p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.cm-guide__subs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.cm-guide__sub {
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-size: 10.5px; font-weight: 700; color: var(--muted);
}
.cm-guide__meta { align-self: center; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.cm-guide__meta strong { font-size: 13px; white-space: nowrap; }
.cm-guide__meta span { font-size: 11.5px; color: var(--muted-2); max-width: 190px; }

@media (max-width: 640px) {
  .cm-guide { padding: 22px 18px; }
  .cm-guide__gains { grid-template-columns: 1fr; }
  .cm-guide__rank { grid-template-columns: 48px minmax(0, 1fr); padding: 12px; }
  .cm-guide__step { display: none; }
  .cm-guide__meta { grid-column: 2; align-items: flex-start; text-align: left; }
  .cm-guide__meta span { max-width: none; }
  .cm-guide__rank:not(:last-child)::after { left: calc(12px + 23px); }
  .cm-guide__head .cm-tile--lg { width: 40px; height: 40px; border-radius: 12px; }
  .cm-guide__head .cm-tile--lg .cm-ico { width: 19px; height: 19px; }
}

/* ── Fenêtres ── */
.cm-win { max-width: 360px; text-align: center; align-items: center; }
.cm-win h2 { margin: 0; }
.cm-win p { margin: 0; }
/* Fenêtre de bravo de la série : la pousse, le cap suivant en barre. */
/* De l'air entre chaque étage : l'icône, le titre, la phrase (plus petite),
   la barre et ses bornes, puis le bouton. */
.bv-serie { max-width: 400px; gap: 0; padding: 34px 32px 28px; }
.bv-serie .bv-serie__icon { margin-bottom: 18px; }
.bv-serie .cm-kicker { margin-bottom: 10px; }
.bv-serie h2 { margin-bottom: 12px !important; }
.bv-serie p.muted { max-width: 310px; font-size: 13.5px; line-height: 1.65; text-wrap: balance; }
.bv-serie .bv-serie__cap { margin-top: 26px; }
.bv-serie > .btn { margin-top: 28px; }
@media (max-width: 560px) { .bv-serie { padding: 30px 22px 22px; } }
.bv-serie__icon {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .22), rgba(29, 158, 117, .07));
  border: 1px solid rgba(29, 158, 117, .22); animation: cm-pop .6s cubic-bezier(.3, 1.5, .5, 1);
}
.bv-serie__icon .cm-ico { width: 36px; height: 36px; animation: serie-pousse 1.2s cubic-bezier(.3, 1.4, .5, 1) .35s; transform-origin: 50% 90%; }
.bv-serie h2 { font-size: 20px; line-height: 1.3; text-wrap: balance; }
/* « Bravo, 7ᵉ jour d'affilée ! » : le nombre en chiffres, en grand et en dégradé, il saute en arrivant. */
.bv-serie__nb {
  display: inline-block; margin: 0 .06em; font-size: 2.1em; font-weight: 800; line-height: 1; letter-spacing: -.03em; vertical-align: -.1em;
  background: linear-gradient(120deg, #2BC48A 0%, #1D9E75 45%, #17566E 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bv-serie-nb .7s cubic-bezier(.3, 1.5, .5, 1) .25s backwards;
}
.bv-serie__nb sup { position: relative; top: -.05em; margin-left: .03em; font-size: .42em; letter-spacing: 0; vertical-align: top; }
@keyframes bv-serie-nb { from { opacity: 0; transform: scale(.5); } }
@media (prefers-reduced-motion: reduce) { .bv-serie__nb { animation: none; } }
.bv-serie__cap { width: 100%; }
.bv-serie__cap .cm-bar { margin-top: 2px; }
.bv-serie__bornes { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; font-weight: 700; color: var(--muted-2); }
@keyframes cm-pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
.cm-zoom { max-width: min(1100px, 96vw); padding: 0; overflow: hidden; position: relative; background: #0B1512; }
.cm-zoom__img { display: block; max-width: 100%; max-height: 86vh; margin: 0 auto; }
.cm-zoom__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; }
/* Plusieurs photos en grand : les flèches de chaque côté, « 2 / 3 » en bas. */
.cm-zoom--plusieurs .cm-zoom__img { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.cm-zoom__fl {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px;
  padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease;
}
.cm-zoom__fl:hover { background: rgba(0, 0, 0, .75); }
.cm-zoom__fl:disabled { opacity: 0; pointer-events: none; }
.cm-zoom__fl--g { left: 12px; }
.cm-zoom__fl--g .cm-ico { transform: rotate(180deg); }
.cm-zoom__fl--d { right: 12px; }
.cm-zoom__fl .cm-ico { width: 20px; height: 20px; }
.cm-zoom__compte {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 4px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); font-variant-numeric: tabular-nums;
}

/* Du nouveau dans la Communauté : un tout petit point rouge, en haut à droite de l'icône de l'onglet, qui bat
   (une onde s'en échappe) — une notification. L'icône fait 19 px, à 12 px du bord gauche de l'onglet et à 9 px
   du haut ; sur le menu du bas (téléphone), elle est centrée au-dessus du nom. Il s'éteint en ouvrant la page. */
.nav__item[data-nav="communaute"].has-news::after,
.tabbar__item[data-nav="communaute"].has-news::after {
  content: ''; position: absolute; top: 5px; left: 30px; z-index: 3; width: 7px; height: 7px; border-radius: 50%;
  background: #EF3B2D; pointer-events: none;
  box-shadow: 0 0 0 1.5px #fff, 0 0 0 1.5px rgba(239, 59, 45, .6);
  animation: nav-point 1.7s ease-out infinite;
}
.tabbar__item[data-nav="communaute"].has-news::after { top: 11px; left: calc(50% + 6px); }
@keyframes nav-point {
  0% { transform: scale(.88); box-shadow: 0 0 0 1.5px #fff, 0 0 0 1.5px rgba(239, 59, 45, .65); }
  55% { transform: scale(1.14); box-shadow: 0 0 0 1.5px #fff, 0 0 0 7px rgba(239, 59, 45, 0); }
  100% { transform: scale(.88); box-shadow: 0 0 0 1.5px #fff, 0 0 0 7px rgba(239, 59, 45, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__item[data-nav="communaute"].has-news::after, .tabbar__item[data-nav="communaute"].has-news::after { animation: none; }
}
.tabbar__item { position: relative; }

@media (max-width: 560px) {
  .cm-post { padding: 16px 14px 12px; }
  .cm-post__title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-crown, }

/* ── Trophées à paliers (dessin de Hubooia) ───────────────────────────────
   Médaille : disque en dégradé du palier, ruban, icône blanche. Pas encore
   de palier : disque gris, cadenas, anneau de progression. Cf. js/medailles.js.
   ------------------------------------------------------------------------ */
.md { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; }
.md__rib { position: absolute; bottom: 0; left: 50%; border-radius: 0 0 2px 2px; }
.md__ring { position: absolute; left: 0; top: 0; transform: rotate(-90deg); }
.md__disc { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.md__inner { position: absolute; border-radius: 50%; border-style: solid; border-color: rgba(255, 255, 255, .45); }
.md__disc.is-off .md__inner { border-color: rgba(255, 255, 255, .7); }
.md__icon { color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.md__icon svg { stroke-width: 2.2; }
.md__disc.is-off .md__icon { color: #a8a29e; filter: none; }
.md__lock {
  position: absolute; right: 0; display: grid; place-items: center; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--muted);
}
.md__lock .cm-ico { width: 55%; height: 55%; }

/* Mur : en-tête, puis un encadré par famille. */
.md-wall__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.md-wall__head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; }
.md-wall__head h3 .cm-ico { width: 16px; height: 16px; color: #C9A84C; }
.md-wall__head h3 span { font-size: 12px; font-weight: 500; color: var(--muted); }
.md-wall__tiers { display: flex; flex-wrap: wrap; gap: 6px; }
.md-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .5); font-size: 11px; color: var(--muted);
}
.md-chip.is-on { background: #fff; color: var(--text); }
.md-chip i { width: 10px; height: 10px; border-radius: 50%; }
.md-chip b { font-weight: 700; }
.md-wall__grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .md-wall__grid--2, .md-wall__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .md-wall__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.md-box { padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(21, 64, 50, .1); background: rgba(246, 250, 248, .7); }
.md-box__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.md-box__title {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 9px;
  border: 1px solid var(--border); background: #fff; font-size: 11.5px; font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.md-box__title .cm-ico { width: 13px; height: 13px; color: var(--green); }
.md-box__count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.md-box__medals { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 8px; }
.md-cell {
  display: flex; flex-direction: column; align-items: center; padding: 4px 4px 4px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer; transition: background .2s, transform .2s;
}
.md-cell:hover, .md-cell:focus-visible { background: #fff; transform: translateY(-2px); outline: none; }
.md-cell:focus-visible { box-shadow: 0 0 0 2px rgba(29, 158, 117, .4); }
.md-cell.is-glow { background: #fff; animation: md-glow 1.8s ease-in-out infinite; }
@keyframes md-glow { 50% { box-shadow: 0 0 0 6px transparent, 0 0 18px 2px rgba(217, 154, 30, .45); } }
.md-pips { display: flex; gap: 3px; margin-top: 4px; }
.md-pips span { width: 5px; height: 5px; border-radius: 50%; }

/* Fiche des paliers, au survol ou épinglée. */
.md-card {
  position: fixed; z-index: 260; width: 320px; max-width: calc(100vw - 16px); overflow: hidden; border-radius: 18px;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .35);
  pointer-events: none; animation: md-card-in .18s ease-out;
}
.md-card.is-pinned { pointer-events: auto; }
@keyframes md-card-in { from { opacity: 0; transform: translateY(4px); } }
.md-card__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; }
.md-card__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.md-card__id strong { font-size: 14px; }
.md-card__id span { font-size: 11px; color: var(--muted); }
.md-card__close { align-self: flex-start; border: 0; background: transparent; padding: 4px; border-radius: 6px; color: var(--muted); cursor: pointer; }
.md-card__close:hover { background: var(--bg); color: var(--text); }
.md-card__close .cm-ico { width: 14px; height: 14px; }
.md-steps { list-style: none; margin: 0; padding: 12px 16px; border-top: 1px solid rgba(21, 64, 50, .08); }
.md-steps li { position: relative; display: flex; gap: 12px; padding-bottom: 12px; }
.md-steps li:last-child { padding-bottom: 0; }
.md-steps__line { position: absolute; left: 11px; top: 26px; bottom: 0; width: 1px; }
.md-steps__dot {
  position: relative; display: grid; place-items: center; width: 23px; height: 23px; flex: none; border-radius: 50%;
  background: var(--bg); color: var(--muted);
}
.md-steps__dot .cm-ico { width: 11px; height: 11px; }
.md-steps__dot[style*="radial"] { color: #fff; }
.md-steps__dot[style*="radial"] .cm-ico svg { stroke-width: 3.2; }
.md-steps__txt { flex: 1; min-width: 0; }
.md-steps__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.md-steps__tier { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.md-steps__date { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.md-steps__txt p { margin: 1px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.md-steps__txt p.is-on { color: var(--text); }
.md-steps__txt p.is-next { color: var(--text); font-weight: 600; }
.md-steps__bar { margin-top: 6px; }
.md-steps__bar > div { height: 6px; border-radius: 999px; background: rgba(21, 64, 50, .08); overflow: hidden; }
.md-steps__bar > div span { display: block; height: 100%; border-radius: inherit; }
.md-steps__bar small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.md-card__done { margin: 0; padding: 9px 16px; border-top: 1px solid rgba(21, 64, 50, .08); font-size: 11px; font-weight: 600; color: #5b4fd6; }

/* Notification « palier débloqué », en bas à droite. */
.md-toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 240; width: min(360px, calc(100vw - 40px)); overflow: hidden;
  border-radius: 18px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, .35);
  animation: md-toast-in .5s cubic-bezier(.22, 1, .36, 1) both;
}
.md-toast.is-out { animation: md-toast-out .26s ease forwards; }
@keyframes md-toast-in { from { transform: translateY(28px) scale(.96); opacity: 0; } }
@keyframes md-toast-out { to { transform: translateY(16px) scale(.97); opacity: 0; } }
.md-toast__veil { position: absolute; inset: 0; pointer-events: none; }
.md-toast__body { position: relative; display: flex; gap: 16px; padding: 16px; }
.md-toast__medal { position: relative; flex: none; display: flex; align-items: flex-start; justify-content: center; }
.md-toast__burst { position: absolute; top: 4px; border-radius: 50%; border: 2px solid; animation: md-burst .9s cubic-bezier(.22, 1, .36, 1) .45s both; }
@keyframes md-burst { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.md-toast__spark {
  position: absolute; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%;
  animation: md-spark .8s cubic-bezier(.22, 1, .36, 1) .45s both;
}
@keyframes md-spark {
  0% { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: rotate(var(--a)) translateY(-40px) scale(.3); opacity: 0; }
}
.md-toast__pop { position: relative; animation: md-pop .75s cubic-bezier(.22, 1, .36, 1) .2s both; }
@keyframes md-pop {
  0% { transform: scale(.2) rotate(-35deg); opacity: 0; }
  55% { transform: scale(1.18) rotate(6deg); opacity: 1; }
  75% { transform: scale(.95) rotate(-2deg); }
  100% { transform: none; opacity: 1; }
}
.md-toast__shineWrap { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); overflow: hidden; border-radius: 50%; pointer-events: none; }
.md-toast__shine {
  position: absolute; top: -25%; left: 0; width: 33%; height: 150%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: md-shine 1.6s ease-in-out .9s 2 both;
}
@keyframes md-shine { 0%, 100% { transform: translateX(-130%) rotate(20deg); } 45% { transform: translateX(130%) rotate(20deg); } }
.md-toast__txt { flex: 1; min-width: 0; padding-right: 18px; }
.md-toast__txt p { margin: 0; }
.md-toast__kicker { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.md-toast__name { margin-top: 2px !important; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-toast__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px !important; font-size: 11px; color: var(--muted); }
.md-toast__tier { padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.md-toast__obj { margin-top: 6px !important; font-size: 12px; line-height: 1.4; }
.md-toast__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.md-toast__voir { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; font: 700 12px var(--font); color: var(--green3); white-space: nowrap; cursor: pointer; }
.md-toast__voir:hover { text-decoration: underline; }
.md-toast__voir .cm-ico { width: 13px; height: 13px; }
.md-toast__close { position: absolute; top: 10px; right: 10px; padding: 4px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.md-toast__close:hover { background: var(--bg); color: var(--text); }
.md-toast__close .cm-ico { width: 14px; height: 14px; }
.md-toast__count { height: 3px; background: rgba(21, 64, 50, .06); }
.md-toast__count span { display: block; height: 100%; transform-origin: left; animation: md-count 9s linear .6s both; }
.md-toast:hover .md-toast__count span { animation-play-state: paused; }
@keyframes md-count { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 860px) {
  /* Au-dessus de la barre d'onglets du bas. */
  .md-toast { right: 12px; left: 12px; bottom: calc(var(--tabbar-h) + 12px); width: auto; }
  .md-toast__body { gap: 12px; padding: 14px; }
  .md-wall__tiers { gap: 4px; }
  .md-chip { gap: 4px; padding: 2px 7px; font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .md-toast, .md-toast__pop, .md-toast__burst, .md-toast__spark, .md-toast__shine, .md-cell.is-glow { animation: none; }
  .md-toast__burst, .md-toast__spark, .md-toast__shine { opacity: 0; }
}

/* Jauge de niveau en anneau (dessin du niveau de coaching de Hubooia). */
.ring { position: relative; flex: none; }
.ring__svg { transform: rotate(-90deg); overflow: visible; }
.ring__fill { transition: stroke-dashoffset 1.6s cubic-bezier(.22, 1, .36, 1); }
.ring__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring__label { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1; color: var(--muted); max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring__num { margin-top: 2px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ring__clasp {
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; border-radius: 50%; color: #fff; box-shadow: 0 0 0 2px #fff;
}
.ring__clasp svg { stroke-width: 2.5; }
.ring__photo {
  display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: var(--gradTeal); color: #fff; font-weight: 800;
  box-shadow: 0 0 0 2px #fff, 0 4px 12px -4px rgba(6, 40, 30, .35);
}
.ring__photo img { width: 100%; height: 100%; object-fit: cover; }
.ring-txt p { margin: 0; }
.ring-txt__lvl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.ring-txt__niveau { font-size: 16px; font-weight: 800; letter-spacing: -.3px; color: var(--text); }
.ring-txt__niveau--investisseur { color: #17566E; }
.ring-txt__niveau--stratege { color: #14755C; }
/* Maître et Légende : le niveau s'écrit en or. */
.ring-txt__niveau--maitre, .ring-txt__niveau--legende {
  background: linear-gradient(135deg, #E9B949 0%, #C9A84C 45%, #8F6A1C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Le badge du rang, à côté du niveau : ses couleurs, son icône. */
.rang-pill {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px 3px 6px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, #CBD5E1, #64748B); box-shadow: 0 3px 8px -4px rgba(21, 64, 50, .45);
}
.rang-pill__ico { display: inline-grid; width: 12px; height: 12px; }
.rang-pill__ico svg { width: 100%; height: 100%; stroke-width: 2.4; }
.rang-pill--investisseur { background: linear-gradient(135deg, #2F7F9E, #0C3346); }
.rang-pill--stratege { background: linear-gradient(135deg, #2BC48A, #0F766E); }
.rang-pill--maitre { background: linear-gradient(135deg, #E9CF7E, #C9A84C 55%, #A8862F); color: #3A2A05; }
.rang-pill--legende {
  background: linear-gradient(135deg, #F7DD8A, #D9B24C 50%, #A8862F); color: #3A2A05;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, .5), 0 4px 12px -4px rgba(201, 168, 76, .85);
}
.rang-pill--legende::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background-image: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .65) 50%, transparent 60%);
  background-repeat: no-repeat; background-size: 250% 100%; background-position: 100% 0;
  animation: lv-reflet 3.6s ease-in-out infinite;
}
.ring-txt__xp { margin-top: 4px !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: var(--muted); }
.ring-txt__xp span { opacity: .75; }

/* ── Live ────────────────────────────────────────────────────────────────────
   La vidéo d'OBS à gauche, posée sur une scène sombre avec ce que la régie y
   fait apparaître (bandeau, appel à réserver, réactions qui s'envolent) ; le
   chat à droite, collé en haut de l'écran. Cf. js/views/live.js.
   ------------------------------------------------------------------------ */
.view.view--live { max-width: 1340px; }
.lv { display: grid; grid-template-columns: minmax(0, 1fr) 372px; grid-template-rows: auto 1fr; gap: 18px 20px; align-items: start; }
/* La régie : le chat tient la colonne de droite, collé en haut de l'écran. */
.lv > .lv-chat { grid-column: 2; grid-row: 1 / span 2; }
.lv-col { min-width: 0; }
.lv-i { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; }
.lv-i svg { width: 100%; height: 100%; }

/* La scène et la vidéo. */
.lv-scene {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  background: #061712;
  box-shadow: 0 24px 60px -28px rgba(6, 40, 30, .55), 0 0 0 1px rgba(21, 64, 50, .1);
}
.lv-scene.is-plein { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
/* iPhone : le plein écran maison (l'iPhone ne met en plein écran que la vidéo
   seule, et son lecteur natif cacherait la bannière, les cartes et le
   sondage). La scène couvre la fenêtre, au-dessus des barres du haut et du
   bas, sous les fenêtres du campus (200) ; la page ne défile plus derrière.
   Les commandes s'écartent des bords arrondis et de l'encoche. */
.lv-scene.is-pseudo {
  position: fixed; inset: 0; z-index: 150; margin: 0;
  width: 100vw; height: 100vh; height: 100dvh; max-height: none;
}
html.lv-pseudo-plein, html.lv-pseudo-plein body { overflow: hidden; overscroll-behavior: none; }
.lv-scene.is-pseudo .lv-haut {
  top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right));
}
.lv-scene.is-pseudo { --haut-top: max(10px, env(safe-area-inset-top)); }
.lv-scene.is-pseudo .lv-banniere { bottom: calc(50px + env(safe-area-inset-bottom)); }
.lv-scene.is-pseudo .lv-cartes { right: max(18px, env(safe-area-inset-right)); bottom: calc(58px + env(safe-area-inset-bottom)); }
.lv-scene.is-pseudo:has(.lv-banniere:not([hidden])) .lv-cartes { bottom: calc(104px + env(safe-area-inset-bottom)); }
.lv-ecran, .lv-ecran iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lv-haut {
  position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3;
  display: flex; align-items: center; gap: 8px; pointer-events: none;
}
.lv-haut > * { pointer-events: auto; }
.lv-direct {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 8px;
  background: #E5273E; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(229, 39, 62, .7);
}
.lv-direct__point { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: lv-pouls 1.6s ease-in-out infinite; }
@keyframes lv-pouls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.lv-compteur, .lv-plein {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px;
  background: rgba(6, 23, 18, .55); color: #fff; font-size: 12px; font-weight: 700;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lv-compteur .lv-i { width: 15px; height: 15px; }
/* Pendant le direct, le titre du live à côté de « En direct » : sur une ligne, coupé s'il est long. */
.lv-haut__titre {
  min-width: 0; max-width: min(48%, 560px); height: 28px; padding: 0 11px; border-radius: 8px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 28px;
  background: rgba(6, 23, 18, .55); color: #fff; font-size: 12.5px; font-weight: 700;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lv-plein { width: 32px; padding: 0; justify-content: center; border: 0; cursor: pointer; opacity: .8; transition: opacity .2s; }
.lv-plein:hover { opacity: 1; }
.lv-plein .lv-i { width: 16px; height: 16px; }

/* L'affiche : prochain live et compte à rebours. */
.lv-affiche {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: 24px; text-align: center; color: #fff; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 23, 18, .55), rgba(6, 23, 18, .82)),
    url('/campus-foret.webp') center / cover;
}
.lv-affiche__halo {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; top: -30%; left: 15%;
  background: radial-gradient(circle, rgba(43, 196, 138, .35), transparent 65%); filter: blur(10px); pointer-events: none;
}
/* Le logo Seqooia Campus, en blanc, au milieu, un peu sous la ligne du bouton
   plein écran : la barre du haut commence à --haut-top et mesure --haut-h
   (36 px quand la régie y a son interrupteur « Mon aperçu / Vue membres »,
   28 px sinon). */
.lv-scene { --haut-top: 14px; --haut-h: 28px; }
.lv-scene:has(.lv-vues:not([hidden])) { --haut-h: 36px; }
.lv-affiche__logo {
  position: absolute; top: calc(var(--haut-top, 14px) + var(--haut-h, 28px) / 2 + 8px); left: 50%; transform: translate(-50%, -50%);
  width: 104px; height: auto; filter: brightness(0) invert(1); opacity: .9;
}
.lv-affiche__txt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 520px; }
.lv-affiche__txt > strong { font-size: clamp(19px, 2.6vw, 30px); letter-spacing: -.6px; line-height: 1.15; text-wrap: balance; }
.lv-affiche__txt > span:not(.lv-affiche__eyebrow) { color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.55; }
.lv-affiche__eyebrow {
  padding: 4px 10px; border-radius: 8px; font-family: var(--pixel); font-size: 8px; letter-spacing: .3px; text-transform: uppercase;
  background: rgba(43, 196, 138, .2); border: 1px solid rgba(43, 196, 138, .45); color: #9FF0CC;
}
.lv-rebours { display: flex; gap: 8px; }
.lv-rebours__bloc {
  display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 9px 8px 7px; border-radius: 12px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lv-rebours__bloc b { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; line-height: 1; }
.lv-rebours__bloc small { margin-top: 4px; font-size: 10.5px; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .06em; }

/* « Prochain live » et sa date : deux badges pareils, côte à côte — l'icône du Live et celle de
   l'agenda en vert fluo, le texte en blanc, sur du verre. */
.lv-affiche__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lv-affiche__badge {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 15px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .7);
  font-family: var(--font); font-size: 14px; font-weight: 800; line-height: 1; letter-spacing: -.005em; color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.lv-affiche__badge .lv-i { width: 16px; height: 16px; color: #B6FF3B; }
.lv-affiche__badge--live { background: rgba(43, 196, 138, .28); border-color: rgba(182, 255, 59, .42); }
.lv-affiche__badge--live .lv-i { animation: lv-badge-onde 1.8s ease-in-out infinite; }
@keyframes lv-badge-onde { 50% { opacity: .45; } }

/* L'affiche du prochain live, comme une salle d'attente (js/views/live.js, afficheProchain), tout au
   milieu : les deux badges, le titre en grand — large, deux lignes au plus, une ombre derrière les
   lettres —, sa phrase, Sonny qui l'anime, le compte à rebours et « Ajouter à mon agenda pour
   m'inscrire ». Les tailles et les écarts suivent la largeur de la vidéo (cqi). */
.lv-affiche--prochain {
  justify-content: center; gap: 0;
  padding: calc(var(--haut-top, 14px) + var(--haut-h, 28px) + 26px) 5% max(18px, 2.4cqi);
  background:
    radial-gradient(ellipse 72% 58% at 50% 50%, rgba(3, 12, 9, .5), transparent 78%),
    linear-gradient(180deg, rgba(6, 23, 18, .58), rgba(6, 23, 18, .86)),
    url('/campus-foret.webp') center / cover;
}
.lv-affiche--prochain .lv-affiche__txt { max-width: 90%; gap: 0; }
.lv-affiche--prochain .lv-affiche__badge { height: clamp(30px, 3.3cqi, 36px); font-size: clamp(12.5px, 1.4cqi, 15px); }
.lv-affiche--prochain .lv-affiche__titre {
  max-width: 100%; margin-top: max(16px, 2.4cqi); font-size: clamp(20px, 3.5cqi, 42px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .5);
}
.lv-affiche--prochain .lv-affiche__txt > .lv-affiche__desc {
  max-width: 100%; margin-top: max(6px, 1cqi); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: clamp(13px, 1.5cqi, 16px); line-height: 1.4; color: rgba(255, 255, 255, .84); text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}
.lv-affiche--prochain .lv-affiche__txt > .lv-affiche__hote {
  display: inline-flex; align-items: center; gap: 8px; margin-top: max(10px, 1.5cqi);
  font-size: 13px; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.lv-affiche__hote img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #E6F6EF; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.lv-affiche--prochain .lv-rebours { margin-top: max(16px, 2.4cqi); }
.lv-affiche--prochain .lv-agenda__bloc { margin-top: max(16px, 2.4cqi); }
/* Une vidéo moyenne : la phrase et Sonny laissent la place au titre, au compte à rebours et à l'agenda. */
@container scene (max-width: 760px) {
  .lv-affiche--prochain .lv-affiche__txt > .lv-affiche__desc,
  .lv-affiche--prochain .lv-affiche__txt > .lv-affiche__hote { display: none; }
}

/* Le lecteur du campus (js/lecteur-live.js) : la vidéo, nos commandes, l'attente. */
.lv-lecteur-video { position: absolute; inset: 0; background: #061712; }
.lv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lv-video-voile { position: absolute; inset: 0; z-index: 1; }
.lv-video-voile[hidden] { display: none; }
.lv-commandes {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 6px;
  padding: 28px 14px 10px; background: linear-gradient(180deg, rgba(4, 16, 12, 0), rgba(4, 16, 12, .72));
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.lv-lecteur-video.is-actif .lv-commandes, .lv-lecteur-video.is-pause .lv-commandes, .lv-commandes:focus-within {
  opacity: 1; transform: none; pointer-events: auto;
}
.lv-lecteur-video:not([data-etat="lecture"]) .lv-commandes { display: none; }
.lv-cmd {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .13); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s;
}
.lv-cmd:hover { background: rgba(255, 255, 255, .24); }
.lv-cmd svg { width: 18px; height: 18px; }
.lv-cmd-volume { width: 92px; accent-color: #2BC48A; cursor: pointer; }
@media (hover: none) { .lv-cmd-volume { display: none; } }
.lv-cmd-direct {
  margin-left: 6px; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border: 0; border-radius: 8px;
  background: #E5273E; color: #fff; font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.lv-cmd-direct:disabled { cursor: default; }
.lv-cmd-direct__point { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: lv-pouls 1.6s ease-in-out infinite; }
.lv-cmd-direct.is-retard { background: rgba(255, 255, 255, .16); cursor: pointer; }
.lv-cmd-direct.is-retard .lv-cmd-direct__point { animation: none; background: #FF8A9A; }
.lv-cmd-direct.is-retard:hover { background: #E5273E; }
.lv-activer-son {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border: 0; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .95); color: var(--teal-deep); font-family: var(--font); font-size: 14px; font-weight: 800;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
}
.lv-activer-son[hidden] { display: none; }
.lv-activer-son:hover { color: var(--green); }
.lv-activer-son__ico { width: 20px; height: 20px; color: var(--green); }
.lv-activer-son__ico svg { width: 100%; height: 100%; }
.lv-affiche__roue {
  width: 22px; height: 22px; margin-top: 4px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: lv-tourne .9s linear infinite;
}
/* L'aperçu privé de la régie : un liseré pointillé, et la pastille en haut à gauche. */
.lv-prive {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px;
  background: rgba(6, 23, 18, .72); color: #9FF0CC; border: 1px solid rgba(43, 196, 138, .55);
  font-size: 11.5px; font-weight: 800; white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lv-prive[hidden] { display: none; }
.lv-prive .lv-i { width: 14px; height: 14px; }
.lv-scene.is-prive::after {
  content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  border: 2px dashed rgba(43, 196, 138, .65); border-radius: inherit;
}

/* La bannière : une bande fixe en bas de l'image, au-dessus des commandes du
   lecteur ; son texte défile de droite à gauche, en boucle. Les clics la
   traversent : les commandes de la vidéo restent accessibles. */
.lv-banniere {
  position: absolute; left: 0; right: 0; bottom: 50px; z-index: 3; height: 42px;
  display: flex; align-items: stretch; pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 92, 72, .96), rgba(29, 158, 117, .95) 55%, rgba(43, 196, 138, .95));
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
  transform: translateY(14px); opacity: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s;
}
.lv-banniere[hidden] { display: none; }
.lv-banniere.is-in { transform: none; opacity: 1; }
.lv-banniere__ico {
  flex: none; width: 50px; padding-right: 8px; display: grid; place-items: center;
  background: #fff; color: var(--green3); clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}
.lv-banniere__ico .lv-i { width: 19px; height: 19px; }
.lv-banniere__fenetre {
  flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.lv-banniere__piste { display: flex; width: max-content; animation: lv-defile var(--duree, 20s) linear infinite; will-change: transform; }
@keyframes lv-defile { to { transform: translateX(-50%); } }
.lv-banniere__item {
  display: inline-flex; align-items: center; white-space: nowrap;
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .01em; text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.lv-banniere__sep { width: 7px; height: 7px; margin: 0 26px; border-radius: 2px; background: #FCE7A4; transform: rotate(45deg); box-shadow: 0 0 8px rgba(252, 231, 164, .8); }

/* Le bouton et l'appel à réserver : des cartes en bas à droite, au-dessus de la bannière. */
.lv-cartes {
  position: absolute; right: 18px; bottom: 58px; z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.lv-cartes > * { pointer-events: auto; }
.lv-scene:has(.lv-banniere:not([hidden])) .lv-cartes { bottom: 104px; }
.lv-appel { animation: lv-surgit .6s cubic-bezier(.2, 1.3, .4, 1); }
.lv-appel[hidden] { display: none; }
.lv-bouton__ico {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(29, 158, 117, .7);
}
.lv-bouton__ico .lv-i { width: 21px; height: 21px; }
@keyframes lv-surgit { from { opacity: 0; transform: translateY(18px) scale(.94); } }
.lv-appel__carte {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px;
  width: min(340px, calc(100vw - 72px)); padding: 14px 14px 16px;
  border-radius: 16px; background: rgba(255, 255, 255, .96);
  box-shadow: 0 26px 50px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(29, 158, 117, .18);
}
.lv-appel__photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: linear-gradient(135deg, #E8F5EF, #CFEADF); box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(43, 196, 138, .55); }
.lv-appel__txt { display: flex; flex-direction: column; gap: 3px; padding-right: 22px; }
.lv-appel__txt strong { font-size: 14.5px; line-height: 1.3; letter-spacing: -.2px; }
.lv-appel__eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.lv-appel .lv-cta { grid-column: 1 / -1; }
.lv-appel__x {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(21, 64, 50, .06); color: var(--muted);
}
.lv-appel__x .lv-i { width: 14px; height: 14px; }
.lv-appel__jauge { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: left; transition: transform 1s linear; }

/* Le bouton « Réserver un appel » : dégradé, reflet qui passe, halo. */
.lv-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 18px; border-radius: 13px;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.1px;
  box-shadow: 0 12px 26px -10px rgba(29, 158, 117, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, filter .25s;
}
.lv-cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  /* Le reflet glisse à l'intérieur du bouton (un fond qui se déplace), jamais à côté (cf. .ac-cta::after). */
  background-image: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%);
  background-repeat: no-repeat; background-size: 250% 100%; background-position: 100% 0;
  animation: lv-reflet 3.6s ease-in-out infinite;
}
@keyframes lv-reflet { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
.lv-cta:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 32px -12px rgba(29, 158, 117, .8); }
.lv-cta .lv-i { width: 17px; height: 17px; }
.lv-cta--plein { width: 100%; }

/* Les réactions qui s'envolent. */
.lv-envolees { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.lv-rx { display: inline-grid; width: 26px; height: 26px; }
.lv-rx svg { width: 100%; height: 100%; overflow: visible; }
.lv-envolee {
  position: absolute; bottom: 60px; width: 38px; height: 38px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
  animation: lv-envol var(--d, 2.6s) cubic-bezier(.25, .7, .4, 1) forwards;
}
@keyframes lv-envol {
  0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0); }
  12% { opacity: 1; transform: translate(calc(var(--x) * .2), -30px) scale(1.15) rotate(calc(var(--r) * .3)); }
  100% { opacity: 0; transform: translate(var(--x), -260px) scale(.9) rotate(var(--r)); }
}

/* Les réactions, dans le chat, juste au-dessus du champ : on réagit là où l'on écrit. */
.lv-reactions { display: flex; gap: 6px; margin-bottom: 8px; }
.lv-react {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  background: var(--card); border: 1px solid rgba(21, 64, 50, .1); color: var(--text);
  font-family: var(--font); font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), border-color .2s, background .2s;
}
.lv-react .lv-rx { width: 20px; height: 20px; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.lv-react:hover { transform: translateY(-2px); border-color: rgba(29, 158, 117, .35); }
.lv-react:hover .lv-rx { transform: scale(1.12) rotate(-6deg); }
.lv-react:active .lv-rx { transform: scale(.88); }
.lv-react.is-on { background: linear-gradient(135deg, rgba(43, 196, 138, .16), rgba(29, 158, 117, .07)); border-color: rgba(29, 158, 117, .5); color: var(--green3); }
.lv-react[data-cle="pouce"].is-on { border-color: rgba(244, 162, 27, .55); background: rgba(255, 214, 92, .18); color: #9A5B06; }
.lv-react[data-cle="flamme"].is-on { border-color: rgba(240, 68, 43, .5); background: rgba(255, 140, 70, .14); color: #B4321C; }
.lv-react[data-cle="coeur"].is-on { border-color: rgba(229, 39, 74, .5); background: rgba(255, 122, 156, .14); color: #B51D3A; }

/* Le chat. */
.lv-chat {
  position: sticky; top: calc(var(--topbar-h) + 18px);
  display: flex; flex-direction: column; min-height: 520px; height: calc(100vh - var(--topbar-h) - 40px - var(--bandeaux-h, 0px)); max-height: 820px;
  background: var(--card); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .65); outline: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.lv-chat__tete { display: flex; align-items: center; gap: 8px; padding: 14px 16px 12px; border-bottom: 1px solid var(--border); }
.lv-chat__tete strong { font-size: 15px; letter-spacing: -.2px; }
.lv-chat__etat { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.lv-chat__etat.is-perdue { color: #B4321C; }
.lv-chat__etat.is-ferme { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.lv-chat__etat.is-ferme::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.lv-ferme { gap: 6px; }
.lv-ferme__ico {
  width: 84px; height: 84px; margin-bottom: 10px; display: grid; place-items: center; border-radius: 28px;
  background: linear-gradient(145deg, rgba(21, 64, 50, .09), rgba(21, 64, 50, .03)); color: #A3B1AC;
  box-shadow: inset 0 0 0 1px rgba(21, 64, 50, .06), 0 14px 30px -22px rgba(6, 40, 30, .5);
}
.lv-ferme__ico .lv-i { width: 38px; height: 38px; }
.lv-ferme__ico .lv-i svg { stroke-width: 1.8; }
.lv-vide.lv-ferme strong { font-size: 17px; color: #6E7F79; letter-spacing: -.2px; }
.lv-vide.lv-ferme > span:last-child { font-size: 13px; color: var(--muted-2); }
.lv-chat.is-ferme .lv-saisie input[type=text] { background: rgba(21, 64, 50, .04); }
/* Hors live, les réactions et l'aide du chat n'ont rien à faire là. */
.lv-reactions.is-ferme, .lv-chat.is-ferme .lv-bas__aide { display: none; }

.lv-epingle {
  margin: 12px 12px 0; padding: 12px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .14), rgba(29, 158, 117, .05));
  border: 1px solid rgba(29, 158, 117, .28);
}
.lv-epingle__tete { display: flex; align-items: center; gap: 5px; margin-bottom: 9px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.lv-epingle__tete .lv-i { width: 13px; height: 13px; }
.lv-epingle__corps { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.lv-epingle__corps strong { font-size: 14px; line-height: 1.35; letter-spacing: -.2px; }
.lv-epingle__photo { width: 38px; height: 38px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: linear-gradient(135deg, #E8F5EF, #CFEADF); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(43, 196, 138, .55); }

.lv-sondage { margin: 12px 12px 0; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .85); border: 1px solid var(--border); box-shadow: var(--shadow-sm); animation: lv-surgit .45s cubic-bezier(.2, 1.3, .4, 1); }
.lv-sondage__tete { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-br); }
.lv-sondage__tete .lv-i { width: 13px; height: 13px; }
.lv-sondage__q { display: block; margin-bottom: 10px; font-size: 14px; line-height: 1.35; }
.lv-sondage__opts { display: grid; gap: 6px; }
.lv-sondage__pied { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.lv-opt {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border-radius: 11px; cursor: pointer; text-align: left;
  background: #fff; border: 1px solid rgba(21, 64, 50, .13); font-family: var(--font); font-size: 13.5px; font-weight: 700; color: var(--text);
  transition: border-color .2s, transform .2s;
}
.lv-opt:hover { border-color: var(--green); transform: translateX(2px); }
.lv-opt__rond { width: 15px; height: 15px; flex: none; border-radius: 50%; border: 2px solid rgba(21, 64, 50, .25); }
.lv-res {
  position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 8px 11px; border-radius: 10px; overflow: hidden;
  background: rgba(21, 64, 50, .05); font-size: 13px; font-weight: 700; isolation: isolate;
}
.lv-res::before {
  content: ''; position: absolute; inset: 0; z-index: -1; width: var(--p); border-radius: inherit;
  background: linear-gradient(90deg, rgba(43, 196, 138, .28), rgba(29, 158, 117, .18)); transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
.lv-res.is-mien { box-shadow: inset 0 0 0 1.5px rgba(29, 158, 117, .6); }
.lv-res.is-mien .lv-res__txt::after { content: ' ✓'; color: var(--green); }
.lv-res__p { color: var(--green3); font-variant-numeric: tabular-nums; white-space: nowrap; }

.lv-fil-zone { position: relative; flex: 1; min-height: 0; }
.lv-fil { list-style: none; margin: 0; padding: 10px 6px 10px 12px; height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lv-msg { display: flex; gap: 9px; padding: 7px 8px; border-radius: 12px; animation: lv-msg .3s ease-out; }
@keyframes lv-msg { from { opacity: 0; transform: translateY(6px); } }
.lv-msg + .lv-msg { margin-top: 2px; }
.lv-msg--equipe { background: linear-gradient(135deg, rgba(43, 196, 138, .12), rgba(29, 158, 117, .04)); box-shadow: inset 3px 0 0 var(--green); }
.lv-msg__corps { min-width: 0; flex: 1; }
.lv-msg__tete { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lv-msg__nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 800; color: var(--teal-deep); }
.lv-msg__nom.is-action { padding: 0; border: 0; background: none; font-family: var(--font); cursor: pointer; text-decoration: underline dotted rgba(21, 64, 50, .3); text-underline-offset: 3px; }
.lv-msg__nom.is-action:hover { color: var(--green); }
.lv-msg--moi .lv-msg__nom { color: var(--green3); }
.lv-msg__heure { margin-left: auto; flex: none; font-size: 10.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.lv-msg__texte { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; color: var(--text); }
.lv-msg__texte a { color: var(--green); font-weight: 700; text-decoration: underline; }
.lv-msg .rk--xs { width: 17px; height: 17px; }
.lv-msg .rk--xs .rk__icon { width: 10px; height: 10px; }
.lv-msg .cm-team { padding: 1px 6px; font-size: 9.5px; }
.lv-vide { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; height: 100%; padding: 20px; text-align: center; }
.lv-vide strong { font-size: 14px; }
.lv-vide > span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.lv-nouveaux {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--teal-deep); color: #fff; font-family: var(--font); font-size: 12px; font-weight: 700; box-shadow: var(--shadow-md);
}
.lv-nouveaux .lv-i { width: 14px; height: 14px; }

.lv-bas { padding: 10px 12px 12px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, .55); }
.lv-saisie { position: relative; display: flex; gap: 8px; }
.lv-saisie input[type=text] { flex: 1; min-width: 0; padding: 11px 14px; font-size: 14px; border-radius: 12px; }
.lv-envoi {
  flex: none; width: 44px; border: 0; border-radius: 12px; cursor: pointer; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(29, 158, 117, .7); transition: transform .2s, filter .2s;
}
.lv-envoi:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.lv-envoi:disabled { opacity: .45; cursor: not-allowed; }
.lv-bas__aide { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.lv-xp {
  flex: none; padding: 2px 7px; border-radius: 7px; font-size: 10.5px; font-weight: 800;
  color: var(--green3); background: rgba(43, 196, 138, .14); border: 1px solid rgba(29, 158, 117, .25);
}
.lv-gain {
  position: absolute; right: 0; bottom: 100%; z-index: 4; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(29, 158, 117, .85); animation: lv-gain 2s cubic-bezier(.2, .8, .2, 1) forwards;
}
.lv-gain__eclat { width: 8px; height: 8px; border-radius: 2px; background: #FCE7A4; transform: rotate(45deg); box-shadow: 0 0 8px rgba(252, 231, 164, .9); }
@keyframes lv-gain {
  0% { opacity: 0; transform: translateY(12px) scale(.7); }
  14% { opacity: 1; transform: translateY(-6px) scale(1.08); }
  70% { opacity: 1; transform: translateY(-48px) scale(1); }
  100% { opacity: 0; transform: translateY(-74px) scale(.94); }
}
/* Entre deux messages : le bouton se remplit pendant les 20 secondes. */
@property --fait { syntax: '<number>'; inherits: false; initial-value: 1; }
.lv-envoi { position: relative; transition: transform .2s, filter .2s, --fait 1s linear; }
.lv-envoi.is-attente {
  color: var(--teal-deep); box-shadow: none; cursor: default;
  background: linear-gradient(to top, rgba(43, 196, 138, .45) calc(var(--fait) * 100%), rgba(21, 64, 50, .07) 0);
}
.lv-envoi.is-attente .lv-i { display: none; }
.lv-envoi__reste { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lv-envoi.is-secoue { animation: lv-secoue .4s; }
@keyframes lv-secoue { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.lv-note { display: flex; flex-direction: column; gap: 4px; margin-bottom: 9px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; }
.lv-note--refus { background: rgba(231, 76, 60, .07); border: 1px solid rgba(231, 76, 60, .25); color: #A93226; }
.lv-note--prix { gap: 6px; background: linear-gradient(135deg, rgba(43, 196, 138, .12), rgba(29, 158, 117, .04)); border: 1px solid rgba(29, 158, 117, .28); color: var(--text); }
.lv-note--prix > span { color: var(--muted); }
.lv-note__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-weight: 800; color: var(--green); }
.lv-note__cta .lv-i { width: 15px; height: 15px; }

/* La fiche de modération, au clic sur un nom. */
.lv-menu {
  position: fixed; z-index: 120; width: 248px; padding: 6px; border-radius: 14px;
  background: #fff; box-shadow: 0 24px 50px -18px rgba(6, 40, 30, .45), 0 0 0 1px var(--border);
  animation: lv-surgit .25s cubic-bezier(.2, 1.3, .4, 1);
}
.lv-menu__tete { display: flex; align-items: center; gap: 9px; padding: 8px 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.lv-menu__tete div { display: flex; flex-direction: column; min-width: 0; }
.lv-menu__tete strong { font-size: 13.5px; }
.lv-menu__tete span { font-size: 11.5px; color: var(--muted); }
.lv-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; cursor: pointer;
  background: none; font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--text); text-align: left;
}
.lv-menu button:hover { background: rgba(21, 64, 50, .05); }
.lv-menu button.is-danger { color: #B4321C; }
.lv-menu button.is-danger:hover { background: rgba(231, 76, 60, .08); }
.lv-menu .lv-i { width: 16px; height: 16px; }

/* Exclu du live. */
.lv-exclu { max-width: 520px; margin: 40px auto; padding: 34px 28px; text-align: center; border-radius: var(--radius); background: var(--card); border: 1px solid rgba(255, 255, 255, .65); outline: 1px solid var(--border); box-shadow: var(--shadow-md); }
.lv-exclu__ico { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg, #3D4F4A, #1F2B28); color: #fff; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }
.lv-exclu__ico .lv-i { width: 28px; height: 28px; }
.lv-exclu h1 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.5px; }
.lv-exclu p { margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 420px; }
.lv-exclu__compte { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 22px 0; }
.lv-exclu__compte span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.lv-exclu__reste { font-size: 36px; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.lv-exclu__liens { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* L'onglet Live, quand Sonny est à l'antenne : tout rouge, et ses ondes battent. */
.nav__item[data-nav="live"], .tabbar__item[data-nav="live"] { position: relative; }
.nav__item[data-nav="live"].is-live,
.tabbar__item[data-nav="live"].is-live {
  color: #fff;
  background: linear-gradient(135deg, #FF5A6B, #E5273E 55%, #C41230);
  animation: nav-live-halo 2s ease-out infinite;
}
.nav__item[data-nav="live"].is-live .nav__w1,
.nav__item[data-nav="live"].is-live .nav__w2,
.tabbar__item[data-nav="live"].is-live .nav__w1,
.tabbar__item[data-nav="live"].is-live .nav__w2 { transform-box: view-box; transform-origin: 12px 12px; animation: nav-live-onde 1.6s ease-out infinite; }
.nav__item[data-nav="live"].is-live .nav__w2,
.tabbar__item[data-nav="live"].is-live .nav__w2 { animation-delay: .3s; }
.nav__item[data-nav="live"].is-live circle,
.tabbar__item[data-nav="live"].is-live circle { animation: lv-pouls 1.6s ease-in-out infinite; }
@keyframes nav-live-onde { 0% { opacity: .2; transform: scale(.8); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: .15; transform: scale(1.14); } }
@keyframes nav-live-halo {
  0% { box-shadow: inset 0 0 0 1px rgba(255, 150, 190, .7), 0 0 0 0 rgba(236, 72, 120, .5), 0 6px 18px -6px rgba(229, 39, 62, .8); }
  70%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 150, 190, .7), 0 0 0 10px rgba(236, 72, 120, 0), 0 6px 18px -6px rgba(229, 39, 62, .8); }
}
/* La pastille verte qui suit l'onglet actif ne déborde plus en vert autour de l'onglet Live rouge. */
.nav:has(.nav__item[data-nav="live"].is-live.is-active) .pastille {
  background: linear-gradient(135deg, #FF5A6B, #E5273E 55%, #C41230);
  box-shadow: 0 4px 14px -4px rgba(229, 39, 62, .6);
}
.nav__icon--radio .nav__w1, .nav__icon--radio .nav__w2 { transform-origin: 12px 12px; }
.nav__item:hover .nav__icon--radio .nav__w1 { animation: nav-onde .9s ease-out; }
.nav__item:hover .nav__icon--radio .nav__w2 { animation: nav-onde .9s ease-out .12s; }
@keyframes nav-onde { 0% { opacity: 1; } 40% { opacity: .2; transform: scale(.85); } 100% { opacity: 1; transform: scale(1); } }

/* ── Régie du live (super admin) ─────────────────────────────────────────────
   Une barre au-dessus de la vidéo (antenne, état, quatre outils), les outils
   ouverts dans la colonne de droite, et l'onglet Participants à côté du chat.
   ------------------------------------------------------------------------ */
.lv-barre {
  display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 10px 10px 10px 12px; border-radius: 18px;
  background: var(--card); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .65); outline: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.lv-barre__statut { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 14px; border-right: 1px solid var(--border); }
.lv-barre__point { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted-2); box-shadow: 0 0 0 4px rgba(148, 163, 184, .18); }
.lv-barre.is-direct .lv-barre__point { background: #E5273E; box-shadow: 0 0 0 4px rgba(229, 39, 62, .16); animation: lv-pouls 1.6s ease-in-out infinite; }
.lv-barre__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lv-barre__txt strong { font-size: 13.5px; }
.lv-barre.is-direct .lv-barre__txt strong { color: #C81E33; }
.lv-barre__sous { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Direct terminé, OBS envoie encore : l'arrêter d'un clic. */
.lv-barre__obs {
  flex: none; height: 30px; padding: 0 11px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(229, 39, 62, .3); background: rgba(229, 39, 62, .07); color: #C41230;
  font-family: var(--font); font-size: 12px; font-weight: 800; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.lv-barre__obs:hover { background: rgba(229, 39, 62, .13); border-color: rgba(229, 39, 62, .5); }
.lv-barre__obs:active { transform: scale(.96); }
.lv-question__option { margin: 2px 0 6px; font-size: 13.5px; }
.lv-barre__outils { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; flex-wrap: wrap; }
.lv-outilbtn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(21, 64, 50, .1); background: rgba(255, 255, 255, .85); color: var(--teal-deep);
  font-family: var(--font); font-size: 13px; font-weight: 700; white-space: nowrap;
  transition: border-color .2s, background .2s, transform .2s;
}
.lv-outilbtn:hover { border-color: rgba(29, 158, 117, .4); transform: translateY(-1px); }
.lv-outilbtn .lv-i { width: 16px; height: 16px; color: var(--green); }
.lv-outilbtn.is-ouvert {
  background: linear-gradient(135deg, rgba(43, 196, 138, .16), rgba(29, 158, 117, .07));
  border-color: rgba(29, 158, 117, .55); color: var(--green3);
}
.lv-outilbtn__etat { padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lv-outilbtn__etat[hidden] { display: none; }
.lv-outilbtn__etat.is-on { color: #fff; background: var(--grad); }
.lv-outilbtn__etat.is-off { color: var(--muted); background: rgba(21, 64, 50, .07); }
.lv-outilbtn__etat.is-alerte { color: #8A5A06; background: rgba(244, 162, 27, .18); }
.lv-outilbtn__etat.is-direct { color: #fff; background: #E5273E; }
.lv-antennebtn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px;
  border: 0; border-radius: 13px; cursor: pointer; white-space: nowrap;
  background: var(--grad); color: #fff; font-family: var(--font); font-size: 14px; font-weight: 800;
  box-shadow: 0 10px 22px -10px rgba(29, 158, 117, .7); transition: transform .2s, filter .2s;
}
.lv-antennebtn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.lv-antennebtn__point { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.lv-antennebtn.is-stop { background: #E5273E; box-shadow: 0 10px 22px -10px rgba(229, 39, 62, .7); }
.lv-antennebtn:disabled { cursor: progress; opacity: .85; transform: none; filter: none; }
/* L'image d'OBS, dans la barre de la régie. */
.lv-signal {
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(21, 64, 50, .06); color: var(--muted); font-size: 11px; font-weight: 800;
}
.lv-signal__point { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lv-signal.is-ok { background: rgba(43, 196, 138, .13); color: var(--green3); }
.lv-signal.is-ok .lv-signal__point { animation: lv-pouls 1.6s ease-in-out infinite; }
.lv-signal.is-alerte { background: rgba(229, 39, 62, .1); color: #C41230; }
.lv-signal.is-alerte .lv-signal__point { animation: lv-pouls 1s ease-in-out infinite; }
.lv-antennebtn__roue { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: lv-tourne .8s linear infinite; }
@keyframes lv-tourne { to { transform: rotate(360deg); } }
.lv-antennebtn .lv-i { width: 15px; height: 15px; }
.lv-antennebtn .lv-i svg { fill: currentColor; }

/* La colonne de droite de la régie : onglets Chat, Participants, et l'outil ouvert. */
.lv-chat__tete--onglets { padding: 6px 10px 0; gap: 6px; align-items: flex-end; }
.lv-onglets { display: flex; align-items: flex-end; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.lv-onglet {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 10px 12px; border: 0; background: none;
  font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.lv-onglet[hidden] { display: none; }
.lv-onglet::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2.5px; border-radius: 2px; }
.lv-onglet:hover { color: var(--text); }
.lv-onglet.is-actif { color: var(--text); }
.lv-onglet.is-actif::after { background: var(--grad); }
.lv-onglet__n { padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: rgba(21, 64, 50, .07); color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.lv-onglet--outil { color: var(--green3); padding-right: 4px; cursor: default; }
.lv-onglet__x { width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 7px; background: rgba(21, 64, 50, .06); color: var(--muted); cursor: pointer; }
.lv-onglet__x:hover { background: rgba(21, 64, 50, .12); color: var(--text); }
.lv-onglet__x .lv-i { width: 13px; height: 13px; }
.lv-chat__tete--onglets .lv-chat__etat { padding-bottom: 12px; }
.lv-chat__etat[hidden] { display: none; }
.lv-vue { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.lv-vue[hidden] { display: none; }

/* Un outil : son contenu défile, ses boutons restent en bas. */
.lv-outil { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.lv-outil__corps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.lv-outil__pied { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, .7); }
.lv-outil__etat { display: inline-flex; align-items: center; min-height: 30px; font-size: 11.5px; color: var(--muted); line-height: 1.3; max-width: 160px; }
.lv-outil__etat.is-sale { color: #8A5A06; font-weight: 700; }
.lv-outil__note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.lv-outil input[type=text], .lv-vue--part input[type=search] { padding: 10px 12px; font-size: 13.5px; border-radius: 11px; }
.lv-sec { display: flex; flex-direction: column; gap: 11px; }
.lv-sec + .lv-sec { padding-top: 14px; border-top: 1px solid var(--border); }
.lv-sec h4 { margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.lv-champ { display: flex; flex-direction: column; gap: 6px; }
.lv-champ > span { font-size: 12.5px; font-weight: 800; color: var(--teal-deep); }
.lv-champ small { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.lv-lien { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--green); font-family: var(--font); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.lv-lien:hover { text-decoration: underline; }
.lv-lien[hidden] { display: none; }
.lv-duo { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.lv-duo[hidden] { display: none; }

/* Une ligne d'état : allumé (vert) ou rien. */
.lv-statut { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 11px; background: rgba(21, 64, 50, .04); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lv-statut__point { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.lv-statut.is-on { color: var(--green3); background: rgba(43, 196, 138, .1); }
.lv-statut.is-on .lv-statut__point { background: var(--green2); box-shadow: 0 0 0 3px rgba(43, 196, 138, .22); }
.lv-statut__retirer {
  margin-left: auto; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(29, 158, 117, .35); background: #fff; cursor: pointer;
  font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--teal-deep);
}
.lv-statut__retirer:hover { border-color: #E5273E; color: #B4321C; }

/* Les cartes de l'appel à réserver : épinglé dans le chat, sur la vidéo. */
.lv-carte {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px;
  padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, .75);
  transition: border-color .2s, background .2s;
}
.lv-carte.is-on { border-color: rgba(29, 158, 117, .4); background: linear-gradient(135deg, rgba(43, 196, 138, .1), rgba(29, 158, 117, .03)); }
.lv-carte.is-direct { border-color: rgba(229, 39, 62, .35); background: rgba(229, 39, 62, .04); }
.lv-carte__ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(21, 64, 50, .05); color: var(--teal-deep); }
.lv-carte.is-on .lv-carte__ico { background: var(--grad); color: #fff; }
.lv-carte.is-direct .lv-carte__ico { background: #E5273E; color: #fff; }
.lv-carte__ico .lv-i { width: 16px; height: 16px; }
.lv-carte__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-carte__txt strong { font-size: 13.5px; }
.lv-carte__txt span { font-size: 12px; color: var(--muted); line-height: 1.4; font-variant-numeric: tabular-nums; }
.lv-carte.is-direct .lv-carte__txt span { color: #B4321C; font-weight: 700; }
.lv-switch { position: relative; flex: none; width: 44px; height: 26px; border: 0; border-radius: 999px; background: rgba(21, 64, 50, .15); cursor: pointer; transition: background .25s; }
.lv-switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.lv-switch.is-on { background: var(--grad); }
.lv-switch.is-on span { transform: translateX(18px); }

/* Les modèles de la régie : des boîtes, un clic et c'est sur la vidéo. */
.lv-modeles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.lv-modeles__titre { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
/* Une colonne qui ne s'élargit jamais : une longue liste de réponses se coupe d'une ellipse. */
.lv-boites { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.lv-boite {
  position: relative; border-radius: 13px; background: #fff; border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.lv-boite:hover { border-color: rgba(29, 158, 117, .45); box-shadow: 0 10px 22px -16px rgba(6, 40, 30, .5); }
.lv-boite.is-actif { border-color: rgba(29, 158, 117, .6); background: linear-gradient(135deg, rgba(43, 196, 138, .13), rgba(29, 158, 117, .04)); }
.lv-boite__corps {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 40px 10px 10px; border: 0; border-radius: inherit;
  background: none; cursor: pointer; text-align: left; font-family: var(--font); color: var(--text);
}
.lv-boite.is-actif .lv-boite__corps { cursor: default; }
.lv-boite__ico { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(43, 196, 138, .13); color: var(--green3); }
.lv-boite__ico .lv-i { width: 16px; height: 16px; }
.lv-boite__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lv-boite__txt strong { font-size: 13px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.lv-boite__txt small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-boite__etat {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--green);
}
.lv-boite__point { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: lv-pouls 1.6s ease-in-out infinite; }
.lv-boite__x {
  position: absolute; top: 50%; right: 7px; transform: translateY(-50%); width: 27px; height: 27px; border: 0; border-radius: 8px;
  display: grid; place-items: center; background: none; color: var(--muted-2); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s;
}
.lv-boite:hover .lv-boite__x, .lv-boite__x:focus-visible { opacity: 1; }
.lv-boite__x:hover { color: #B4321C; background: rgba(231, 76, 60, .08); }
.lv-boite__x .lv-i { width: 13px; height: 13px; }
@media (hover: none) { .lv-boite__x { opacity: 1; } }
.lv-boite.is-actif .lv-boite__x { top: 26px; }
.lv-boite__direct {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 10px 10px 52px;
  padding-top: 8px; border-top: 1px dashed rgba(29, 158, 117, .3);
}
.lv-boite__retirer {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(229, 39, 62, .3); background: #fff; color: #B4321C;
  font-family: var(--font); font-size: 12px; font-weight: 700; transition: background .2s, border-color .2s;
}
.lv-boite__retirer:hover { background: rgba(229, 39, 62, .07); border-color: rgba(229, 39, 62, .55); }
.lv-boite__retirer .lv-i { width: 11px; height: 11px; }
.lv-boite__retirer .lv-i svg { fill: currentColor; }
.lv-boite__question {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 6px;
  padding: 0 8px 0 34px; border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 26px);
  font-size: 12.5px; font-weight: 800; color: #B4321C; animation: lv-question .2s ease-out;
}
@keyframes lv-question { from { opacity: 0; transform: translateX(8px); } }
.lv-boite.is-actif .lv-boite__question { bottom: auto; top: 6px; height: 40px; background: linear-gradient(90deg, rgba(240, 251, 246, 0), #F0FBF6 26px); }
.lv-boite__oui, .lv-boite__non {
  padding: 6px 11px; border-radius: 8px; cursor: pointer; font-family: var(--font); font-size: 12px; font-weight: 800;
}
.lv-boite__oui { border: 0; background: #E5273E; color: #fff; box-shadow: 0 6px 14px -8px rgba(229, 39, 62, .8); }
.lv-boite__oui:hover { filter: brightness(1.08); }
.lv-boite__non { border: 1px solid var(--border); background: #fff; color: var(--teal-deep); }
.lv-boite__non:hover { border-color: rgba(29, 158, 117, .45); }
.lv-boite.is-question { border-color: rgba(229, 39, 62, .4); }
.lv-boite--ajout {
  display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px; cursor: pointer;
  border: 1.5px dashed rgba(29, 158, 117, .42); background: rgba(43, 196, 138, .05);
  font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--green3);
}
.lv-boite--ajout:hover { background: rgba(43, 196, 138, .1); border-color: var(--green); }
.lv-boite__plus { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: var(--grad); color: #fff; box-shadow: 0 5px 12px -6px rgba(29, 158, 117, .8); }
.lv-boite__plus .lv-i { width: 13px; height: 13px; }
.lv-boite--form { display: grid; gap: 10px; padding: 12px; border-color: rgba(29, 158, 117, .45); box-shadow: 0 12px 28px -18px rgba(6, 40, 30, .45); }
.lv-boite__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lv-sondage.lv-sondage--regie { margin: 0; animation: none; box-shadow: none; }

/* Les questions de la régie (lancer, terminer, exclure…) et le bilan du live. */
.modal__card.lv-question { max-width: 420px; text-align: center; align-items: center; }
.lv-question .modal__lead { margin: -4px 0 2px; }
.lv-question__ico {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px;
  color: var(--green3); background: rgba(43, 196, 138, .13);
}
.lv-question__ico.is-rouge { color: #D61F3A; background: rgba(229, 39, 62, .1); }
.lv-question__ico .lv-i { width: 24px; height: 24px; }
.lv-question__ico.is-rouge .lv-i svg { fill: none; }
.lv-question__actions { display: flex; justify-content: center; gap: 10px; width: 100%; margin-top: 4px; }
.lv-question__actions .btn { flex: 1; max-width: 190px; }
.lv-question__actions.is-trois { flex-wrap: wrap; }
.lv-question__actions.is-trois .btn { flex: 1 1 30%; max-width: none; padding-left: 10px; padding-right: 10px; }
@media (max-width: 480px) { .lv-question__actions.is-trois { flex-direction: column-reverse; } }
.lv-question__oui.is-rouge { background: linear-gradient(135deg, #FF5A6B, #E5273E 55%, #C41230); box-shadow: 0 10px 22px -10px rgba(229, 39, 62, .75); }
.lv-bilan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.lv-bilan__case { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 13px; background: rgba(43, 196, 138, .08); border: 1px solid rgba(29, 158, 117, .16); }
.lv-bilan__case strong { font-size: 22px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; color: var(--teal-deep); }
.lv-bilan__case span { font-size: 11.5px; color: var(--muted); }
.lv-affiche__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 11px 18px; border-radius: 13px;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 12px 26px -12px rgba(43, 196, 138, .9);
  transition: transform .2s, filter .2s;
}
.lv-affiche__cta:hover { transform: translateY(-1px); filter: brightness(1.06); }
.lv-affiche__cta .lv-i { width: 16px; height: 16px; }

/* Sondage : les réponses, retirables au-delà de deux. */
.lv-reponses { display: grid; gap: 6px; }
.lv-reponse { position: relative; }
.lv-reponse input[type=text] { padding-right: 40px; }
.lv-reponse__x {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted-2); cursor: pointer;
}
.lv-reponse__x[hidden] { display: none; }
.lv-reponse__x:hover { background: rgba(231, 76, 60, .08); color: #B4321C; }
.lv-reponse__x .lv-i { width: 14px; height: 14px; }

/* Réglages : le lecteur reconnu, le guide OBS. */
.lv-lecteur { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; line-height: 1.45; color: #8A5A06; }
.lv-etapes { margin: 0; padding: 10px 12px 10px 30px; display: grid; gap: 5px; border-radius: 11px; background: rgba(43, 196, 138, .08); border: 1px solid rgba(29, 158, 117, .2); }
.lv-etapes li { font-size: 12px; line-height: 1.45; color: var(--muted); }
.lv-etapes li::marker { color: var(--green); font-weight: 800; }
.lv-etapes strong { color: var(--text); font-weight: 700; }
.lv-lecteur.is-ok { color: var(--green3); font-weight: 700; }
.lv-lecteur .lv-i { width: 15px; height: 15px; margin-top: 1px; }
.lv-obs { border-radius: 12px; background: rgba(21, 64, 50, .035); border: 1px solid var(--border); }
.lv-obs summary { display: flex; align-items: center; gap: 8px; padding: 11px 12px; cursor: pointer; font-size: 13px; font-weight: 800; color: var(--teal-deep); list-style: none; }
.lv-obs summary::-webkit-details-marker { display: none; }
.lv-obs summary .lv-i { width: 16px; height: 16px; color: var(--green); }
.lv-obs ol { margin: 0; padding: 0 14px 14px 32px; display: grid; gap: 9px; }
.lv-obs li { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.lv-obs li strong { display: block; color: var(--text); font-size: 12.5px; }

/* L'aperçu des réglages, posé sur l'image tant qu'ils ne sont pas publiés. */
.lv-apercu {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px;
  background: rgba(255, 196, 77, .95); color: #3A2600; font-size: 11.5px; font-weight: 800; white-space: nowrap;
}
.lv-apercu[hidden] { display: none; }
.lv-apercu .lv-i { width: 14px; height: 14px; }

/* Onglet Participants. */
.lv-part__tete { padding: 12px 12px 10px; display: grid; gap: 8px; border-bottom: 1px solid var(--border); }
.lv-part__tete p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.lv-part__liste { list-style: none; margin: 0; padding: 6px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.lv-part { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; }
.lv-part:hover { background: rgba(21, 64, 50, .04); }
.lv-part__qui { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lv-part__qui strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-part__qui span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.lv-part__qui .rk--xs { width: 16px; height: 16px; }
.lv-part__qui .rk--xs .rk__icon { width: 9px; height: 9px; }
.lv-part__exclure {
  flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(231, 76, 60, .28); background: #fff; color: #B4321C;
  font-family: var(--font); font-size: 12px; font-weight: 600; opacity: .8; transition: opacity .2s, background .2s;
}
.lv-part:hover .lv-part__exclure { opacity: 1; }
.lv-part__exclure:hover { background: rgba(231, 76, 60, .08); }
.lv-part__exclure .lv-i { width: 13px; height: 13px; }
.lv-part__rien { padding: 26px 12px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* Réactions sur un message : au survol, au coin du message ; puis en pastilles dessous. */
.lv-msg { position: relative; }
.lv-msg__actions {
  position: absolute; top: -9px; right: 8px; z-index: 2; display: flex; gap: 1px; padding: 3px; border-radius: 999px;
  background: #fff; box-shadow: 0 8px 20px -8px rgba(6, 40, 30, .35), 0 0 0 1px var(--border);
  opacity: 0; transform: translateY(4px) scale(.96); pointer-events: none; transition: opacity .15s, transform .15s;
}
.lv-msg:hover .lv-msg__actions, .lv-msg.is-actif .lv-msg__actions, .lv-msg__actions:focus-within { opacity: 1; transform: none; pointer-events: auto; }
.lv-msg.is-choisi .lv-msg__actions { opacity: 0; transform: translateY(4px) scale(.96); pointer-events: none; }
.lv-msg__react {
  width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s;
}
.lv-msg__react:hover { background: rgba(21, 64, 50, .06); transform: scale(1.18); }
.lv-msg__react .lv-rx { width: 20px; height: 20px; }
.lv-msg__rx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.lv-msg__rx[hidden] { display: none; }
.lv-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px 0 5px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(21, 64, 50, .12); background: #fff; color: var(--teal-deep);
  font-family: var(--font); font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: border-color .2s, background .2s;
}
.lv-chip:hover:not(:disabled) { border-color: rgba(29, 158, 117, .45); }
.lv-chip .lv-rx { width: 15px; height: 15px; }
.lv-chip.is-mien { border-color: rgba(29, 158, 117, .55); background: rgba(43, 196, 138, .12); color: var(--green3); }
.lv-chip:disabled { cursor: default; }
.lv-chip.is-pop { animation: lv-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes lv-pop { 40% { transform: scale(1.2); } }
.lv-msg .cm-team--fondateur { padding: 1px 7px 1px 5px; font-size: 9.5px; }

/* Le statut, le même partout (chat du live, Communauté, fiches, menu du compte) : « Membre » en
   bleu nuit, avec une pousse ; « Élève » (de L'école) en vert Seqooia, avec un chapeau d'étudiant. */
.cm-team--membre, .cm-team--eleve { gap: 4px; padding: 2px 8px 2px 6px; }
.cm-team--membre { color: #1E3366; background: rgba(30, 51, 102, .09); box-shadow: inset 0 0 0 1px rgba(30, 51, 102, .24); }
.cm-team--eleve {
  /* Le vert du Fondateur, rempli, en plus transparent : on ne le confond pas avec Sonny. */
  color: #0A4A36;
  background: linear-gradient(135deg, rgba(43, 196, 138, .52) 0%, rgba(29, 158, 117, .46) 55%, rgba(20, 117, 92, .42) 100%);
}
.cm-team--membre::before, .cm-team--eleve::before { content: none; }
.cm-team--membre .cm-team__ico, .cm-team--eleve .cm-team__ico { display: inline-grid; width: 11px; height: 11px; }
.cm-team--membre .cm-team__ico svg, .cm-team--eleve .cm-team__ico svg { width: 100%; height: 100%; stroke-width: 2.4; }
.lv-msg .cm-team--membre, .lv-msg .cm-team--eleve { padding: 1px 7px 1px 5px; font-size: 9.5px; }

/* La photo cerclée aux couleurs du rang. */
.lv-av {
  --anneau: linear-gradient(135deg, #CBD5E1, #64748B);
  flex: none; display: inline-grid; place-items: center; align-self: flex-start;
  width: calc(var(--av, 30px) + 6px); height: calc(var(--av, 30px) + 6px); border-radius: 50%;
  background: var(--anneau); cursor: pointer;
}
.lv-av > .cm-av { box-shadow: 0 0 0 2px #fff; }
.lv-av--investisseur { --anneau: linear-gradient(135deg, #3B9BC0, #17566E 55%, #0C3346); }
.lv-av--stratege { --anneau: linear-gradient(135deg, #2BC48A, #14755C 55%, #0F766E); }
.lv-av--maitre { --anneau: linear-gradient(135deg, #F3DC93, #C9A84C 55%, #A8862F); }
.lv-av--legende, .lv-av--fondateur {
  --anneau: conic-gradient(from 200deg, #F3DC93, #1D9E75, #E9CF7E, #C9A84C, #2BC48A, #F3DC93);
  box-shadow: 0 0 12px -3px rgba(201, 168, 76, .75);
}
.lv-part .lv-av, .lv-menu__tete .lv-av { align-self: center; cursor: default; }

/* La fiche d'un membre, au survol de sa photo ou de son nom. */
.lv-fiche {
  position: fixed; z-index: 130; width: 272px; padding: 14px; border-radius: 16px; display: grid; gap: 12px;
  background: #fff; box-shadow: 0 26px 54px -20px rgba(6, 40, 30, .5), 0 0 0 1px var(--border);
  animation: lv-surgit .24s cubic-bezier(.2, 1.3, .4, 1);
}
.lv-fiche__tete { display: flex; align-items: center; gap: 12px; }
.lv-fiche__tete .lv-av { align-self: center; cursor: default; }
.lv-fiche__qui { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.lv-fiche__qui strong { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; letter-spacing: -.2px; }
.lv-fiche__rang { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: rgba(21, 64, 50, .045); }
.lv-fiche__rang div { display: flex; flex-direction: column; gap: 1px; }
.lv-fiche__rang strong { font-size: 13.5px; }
.lv-fiche__rang span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lv-fiche__rang--investisseur { background: linear-gradient(135deg, rgba(47, 127, 158, .14), rgba(12, 51, 70, .05)); }
.lv-fiche__rang--stratege { background: linear-gradient(135deg, rgba(43, 196, 138, .14), rgba(15, 118, 110, .05)); }
.lv-fiche__rang--maitre, .lv-fiche__rang--legende { background: linear-gradient(135deg, rgba(233, 207, 126, .26), rgba(201, 168, 76, .08)); }
.lv-fiche__rang--maitre strong, .lv-fiche__rang--legende strong { color: #8A6A1F; }
.lv-fiche__trophees { display: grid; gap: 8px; }
.lv-fiche__titre { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lv-fiche__titre .lv-i { width: 13px; height: 13px; color: #C9A84C; }
.lv-fiche__titre--charge { opacity: .55; }
.lv-fiche__medailles { display: flex; flex-wrap: wrap; gap: 2px 3px; }
.lv-fiche__md { display: inline-grid; }

/* Le sondage, au milieu de l'image : les barres bougent à chaque voix. */
.lv-scene { container: scene / inline-size; }
.lv-sondage-ecran {
  position: absolute; z-index: 5; left: 50%; top: 50%; width: min(460px, calc(100% - 36px));
  padding: 15px 17px 13px; border-radius: 18px; opacity: 0; transform: translate(-50%, -44%) scale(.95);
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .7);
  transition: opacity .3s, transform .45s cubic-bezier(.2, 1.3, .4, 1);
}
.lv-sondage-ecran[hidden] { display: none; }
.lv-sondage-ecran.is-in { opacity: 1; transform: translate(-50%, -50%); }
.lv-sondage-ecran .lv-sondage__q { font-size: clamp(15px, 2.2vw, 19px); letter-spacing: -.3px; margin-bottom: 12px; }
.lv-sondage-ecran .lv-sondage__opts { gap: 8px; }
.lv-sondage__reduire {
  margin-left: auto; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 8px;
  background: rgba(21, 64, 50, .06); color: var(--teal-deep); cursor: pointer;
}
.lv-sondage__reduire:hover { background: rgba(21, 64, 50, .12); }
.lv-sondage__reduire .lv-i { width: 14px; height: 14px; }
.lv-barre-opt {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 10px 13px; border-radius: 12px; text-align: left;
  background: rgba(21, 64, 50, .06); border: 1px solid rgba(21, 64, 50, .08);
  font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--text);
}
.lv-barre-opt::before {
  content: ''; position: absolute; inset: 0; z-index: -1; width: var(--p); border-radius: inherit;
  background: linear-gradient(90deg, rgba(43, 196, 138, .42), rgba(29, 158, 117, .26));
  transition: width .8s cubic-bezier(.2, .8, .2, 1);
}
.lv-barre-opt.is-vote { cursor: pointer; transition: border-color .2s, transform .2s; }
.lv-barre-opt.is-vote:hover { border-color: var(--green); transform: translateY(-1px); }
.lv-barre-opt.is-mien { border-color: rgba(29, 158, 117, .6); box-shadow: inset 0 0 0 1px rgba(29, 158, 117, .35); }
.lv-barre-opt.is-mien .lv-barre-opt__txt::after { content: ' ✓'; color: var(--green); }
.lv-barre-opt__txt { min-width: 0; overflow-wrap: anywhere; }
.lv-barre-opt__p { flex: none; color: var(--green3); font-variant-numeric: tabular-nums; }
.lv-barre-opt.is-bouge .lv-barre-opt__p { animation: lv-bouge .5s ease; }
@keyframes lv-bouge { 40% { transform: scale(1.2); color: var(--green); } }
/* Un sondage ouvert au milieu de l'image : le texte de l'affiche (avant que
   l'image n'arrive) ne dépasse plus de part et d'autre de la carte. */
.lv-scene:has(.lv-sondage-ecran:not([hidden])) .lv-affiche__txt { visibility: hidden; }
.lv-sondage-pastille {
  position: absolute; z-index: 5; top: 52px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .95); color: var(--teal-deep); font-family: var(--font); font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55);
}
.lv-sondage-pastille[hidden] { display: none; }
.lv-sondage-pastille .lv-i { width: 14px; height: 14px; color: var(--green); }
.lv-sondage-pastille strong { color: var(--green); }
/* Un sondage au milieu de l'image : les cartes du bas se font discrètes (photo
   et bouton), calées à droite, même sur téléphone. */
.lv-scene:has(.lv-sondage-ecran.is-in:not([hidden])) .lv-cartes { align-items: flex-end; }
.lv-scene:has(.lv-sondage-ecran.is-in:not([hidden])) .lv-appel__carte { width: auto; grid-template-columns: auto auto; gap: 8px; padding: 8px; }
.lv-scene:has(.lv-sondage-ecran.is-in:not([hidden])) .lv-appel__txt,
.lv-scene:has(.lv-sondage-ecran.is-in:not([hidden])) .lv-appel__x { display: none; }
.lv-scene:has(.lv-sondage-ecran.is-in:not([hidden])) .lv-appel .lv-cta { grid-column: auto; padding: 9px 13px; font-size: 13px; }
.lv-scene:has(.lv-sondage-ecran.is-in:not([hidden])) .lv-appel__photo,
.lv-scene:has(.lv-sondage-ecran.is-in:not([hidden])) .lv-bouton__ico { width: 36px; height: 36px; }

/* Dans le chat, le sondage ne revient que là où la vidéo n'est plus à côté. */
.lv-vue > .lv-sondage { display: none; }
@media (max-width: 1080px) { .lv-vue > .lv-sondage:not([hidden]) { display: block; } }

/* Une petite image (téléphone) : l'affiche et le sondage se resserrent. */
@container scene (max-width: 560px) {
  .lv-affiche { gap: 8px; padding: 12px; }
  .lv-affiche__logo { width: 60px; }
  /* La régie sur téléphone (l'interrupteur « Mon aperçu / Vue membres »), ou
     le direct (« En direct » et le compteur) : ils prennent la place du logo,
     qui s'efface plutôt que de les toucher. */
  .lv-scene:has(.lv-vues:not([hidden])) .lv-affiche__logo,
  .lv-scene:has(.lv-direct:not([hidden])) .lv-affiche__logo { display: none; }
  .lv-affiche__txt { gap: 6px; }
  .lv-affiche__eyebrow { display: none; }
  .lv-affiche__txt > strong { font-size: 15px; letter-spacing: -.3px; }
  .lv-rebours { gap: 5px; }
  .lv-rebours__bloc { min-width: 42px; padding: 5px 4px 4px; border-radius: 9px; }
  .lv-rebours__bloc b { font-size: 16px; }
  .lv-rebours__bloc small { margin-top: 2px; font-size: 8.5px; }
  .lv-affiche__logo { width: 76px; }
  .lv-affiche--prochain { padding: calc(var(--haut-top, 10px) + var(--haut-h, 28px) + 12px) 12px 10px; }
  .lv-affiche--prochain .lv-affiche__txt { max-width: 100%; }
  .lv-affiche--prochain .lv-affiche__badges { gap: 5px; }
  .lv-affiche--prochain .lv-affiche__badge { height: 22px; padding: 0 9px; gap: 5px; font-size: 10.5px; }
  .lv-affiche--prochain .lv-affiche__badge .lv-i { width: 12px; height: 12px; }
  .lv-affiche--prochain .lv-affiche__titre { margin-top: 7px; font-size: 15px; letter-spacing: -.2px; }
  .lv-affiche--prochain .lv-rebours { margin-top: 7px; }
  .lv-affiche--prochain .lv-agenda__bloc { margin-top: 8px; gap: 4px; }
  .lv-affiche--prochain .lv-agenda { padding: 7px 12px; gap: 6px; border-radius: 10px; font-size: 11.5px; }
  .lv-affiche--prochain .lv-agenda .lv-i { width: 14px; height: 14px; }
  .lv-affiche--prochain .lv-agenda__inscrit { font-size: 11px; }
  .lv-affiche .lv-agenda__bloc { margin-top: 2px; gap: 5px; }
  .lv-affiche .lv-agenda { padding: 8px 13px; font-size: 12px; gap: 7px; border-radius: 11px; }
  .lv-affiche .lv-agenda .lv-i { width: 14px; height: 14px; }
  .lv-affiche .lv-agenda__inscrit { font-size: 11px; }
  .lv-sondage-ecran {
    width: calc(100% - 20px); padding: 10px 12px 9px; border-radius: 14px;
    top: calc(var(--haut-top) + var(--haut-h) + 6px); max-height: calc(100% - var(--haut-top) - var(--haut-h) - 12px);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    transform: translate(-50%, 8px) scale(.97);
  }
  .lv-sondage-ecran.is-in { transform: translate(-50%, 0); }
  .lv-sondage-ecran .lv-sondage__tete { margin-bottom: 3px; }
  .lv-sondage-ecran .lv-sondage__reduire { width: 22px; height: 22px; border-radius: 7px; }
  .lv-sondage-ecran .lv-sondage__q { font-size: 14px; margin-bottom: 7px; }
  .lv-sondage-ecran .lv-sondage__opts { gap: 5px; }
  .lv-sondage-ecran .lv-barre-opt { padding: 6px 10px; font-size: 12.5px; border-radius: 10px; }
  .lv-sondage-ecran .lv-sondage__pied { display: none; }
  .lv-sondage-pastille { top: 44px; }
}

/* ── Calendrier (js/calendrier.js) ──────────────────────────────────────── */
.cal-bloc { display: flex; flex-direction: column; gap: 8px; }
.cal-champ {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 8px; border-radius: 11px; cursor: pointer;
  border: 1px solid rgba(21, 64, 50, .13); background: rgba(255, 255, 255, .9); text-align: left;
  font-family: var(--font); font-size: 13.5px; font-weight: 700; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.cal-champ:hover { border-color: rgba(29, 158, 117, .4); }
.cal-champ.is-ouvert { border-color: var(--green); box-shadow: 0 0 0 3px rgba(43, 196, 138, .18); }
.cal-champ.is-vide { color: var(--muted); font-weight: 500; }
.cal-champ__ico { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, rgba(43, 196, 138, .18), rgba(29, 158, 117, .08)); color: var(--green); }
.cal-champ__ico svg { width: 15px; height: 15px; }
/* La fenêtre du calendrier flotte au-dessus de tout (même d'une fenêtre
   ouverte) : rien ne bouge dessous. Le mois à gauche, les roues à droite. */
.cal-pop { position: fixed; inset: 0; z-index: 260; }
.cal {
  position: absolute; display: grid; grid-template-columns: 272px auto; grid-template-areas: 'mois heure' 'pied pied'; column-gap: 18px;
  padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 30px 70px -28px rgba(6, 40, 30, .5), 0 2px 10px rgba(6, 40, 30, .06);
  animation: lv-surgit .3s cubic-bezier(.2, 1.2, .4, 1);
}
.cal__zone-mois { grid-area: mois; }
.cal__tete { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cal__mois { flex: 1; text-align: center; font-size: 14px; letter-spacing: -.2px; }
.cal__nav { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: #fff; color: var(--teal-deep); cursor: pointer; }
.cal__nav:hover:not(:disabled) { border-color: rgba(29, 158, 117, .45); color: var(--green); }
.cal__nav:disabled { opacity: .35; cursor: default; }
.cal__nav svg { width: 15px; height: 15px; }
.cal__semaine, .cal__grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal__semaine span { padding: 4px 0 6px; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.cal__jour {
  aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums;
  transition: background .15s, color .15s;
}
.cal__jour:hover:not(:disabled):not(.is-choisi) { background: rgba(43, 196, 138, .12); color: var(--green3); }
.cal__jour.is-hors { color: var(--muted-2); font-weight: 500; }
.cal__jour:disabled { color: rgba(100, 116, 139, .35); cursor: default; font-weight: 500; }
.cal__jour.is-auj { box-shadow: inset 0 0 0 1.5px var(--green2); color: var(--green3); }
.cal__jour.is-choisi { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(29, 158, 117, .75); }
.cal__heure { grid-area: heure; padding-left: 18px; border-left: 1px solid var(--border); display: grid; align-content: center; justify-items: center; gap: 8px; }
.cal__etiquette { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.cal__heure.is-inactif .cal__roues { opacity: .35; pointer-events: none; filter: grayscale(1); }
.cal__roues { display: flex; align-items: center; gap: 8px; }
.cal__sep { font-size: 15px; font-weight: 800; color: var(--muted); }
/* Une roue : un tambour (calendrier.js, roue) ; la valeur au centre, sur la bande verte, est celle choisie.
   Hors de la bande, les valeurs s'estompent vers le haut et le bas ; sur la bande, la loupe les montre en blanc,
   au fil de leur passage. */
.roue {
  position: relative; width: 76px; height: 170px; border-radius: 14px; background: rgba(21, 64, 50, .035);
  overflow: hidden; overflow: clip; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
}
.roue.is-prise { cursor: grabbing; }
.roue__bande {
  position: absolute; left: 4px; right: 4px; top: calc(50% - 17px); height: 34px; border-radius: 11px;
  background: var(--grad); box-shadow: 0 8px 18px -10px rgba(29, 158, 117, .85); pointer-events: none;
}
/* La roue se pose sur une autre valeur : la bande marque le cran, d'une petite impulsion. */
.roue__bande.is-cran { animation: roue-cran .36s cubic-bezier(.3, .7, .35, 1); }
@keyframes roue-cran { 38% { transform: scale(1.045); box-shadow: 0 10px 22px -8px rgba(29, 158, 117, .95); } }
.roue__liste, .roue__loupe { position: absolute; inset: 0; outline: none; }
.roue__liste {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 calc(50% - 17px), transparent calc(50% - 17px), transparent calc(50% + 17px), #000 calc(50% + 17px), #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 calc(50% - 17px), transparent calc(50% - 17px), transparent calc(50% + 17px), #000 calc(50% + 17px), #000 70%, transparent);
}
.roue__loupe { pointer-events: none; clip-path: inset(calc(50% - 17px) 4px calc(50% - 17px) 4px round 11px); }
.roue__tambour { position: absolute; inset: 0; pointer-events: none; }
.roue__item {
  position: absolute; left: 0; right: 0; top: calc(50% - 17px); height: 34px; display: grid; place-items: center;
  font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--teal-deep);
}
.roue__loupe .roue__item { color: #fff; }
.roue__item.is-off { color: var(--muted-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.roue__loupe .roue__item.is-off { color: rgba(255, 255, 255, .55); }
.roue:has(.roue__liste:focus-visible) { box-shadow: 0 0 0 3px rgba(43, 196, 138, .22); }
.cal__pied { grid-area: pied; display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.cal__effacer { padding: 0; border: 0; background: none; font-family: var(--font); font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.cal__effacer:hover:not(:disabled) { color: #B4321C; }
.cal__effacer:disabled { opacity: .4; cursor: default; }
/* Téléphone : au milieu de l'écran, sur un voile, le mois au-dessus des roues. */
.cal-pop.is-etroit { display: grid; place-items: center; padding: 16px; background: rgba(21, 37, 32, .34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.cal-pop.is-etroit .cal {
  position: relative; width: 100%; max-width: 360px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  grid-template-columns: minmax(0, 1fr); grid-template-areas: 'mois' 'heure' 'pied';
}
.cal-pop.is-etroit .cal__heure { margin-top: 12px; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--border); }
.cal-pop.is-etroit .roue { height: 136px; }


/* ---------------------------------------------------------------------------
   Live : la page plus large (la vidéo grandit, le chat garde sa largeur), la
   flèche d'envoi centrée, les vues de la régie, son statut qui change seul,
   le bouton « Ajouter à mon agenda », et « Mes lives » avec leurs statistiques.
   ------------------------------------------------------------------------ */
@media (min-width: 1081px) {
  .view.view--live { max-width: 1840px; padding-left: 20px; padding-right: 20px; }
}
/* L'icône et le compte à rebours partagent la même case : la flèche reste au centre. */
.lv-envoi > * { grid-area: 1 / 1; }
.lv-envoi .lv-i svg { transform: translate(-1px, 1px); }

/* Hors direct, en haut à gauche de la vidéo : « Mon aperçu » ou « Vue membres ». */
.lv-vues {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px;
  background: rgba(6, 23, 18, .62); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lv-vues[hidden] { display: none; }
.lv-vues__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, .74); font-family: var(--font); font-size: 11.5px; font-weight: 800; white-space: nowrap;
  transition: background .2s, color .2s;
}
.lv-vues__btn:hover { color: #fff; }
.lv-vues__btn.is-on { background: rgba(255, 255, 255, .96); color: var(--green3); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .45); }
.lv-vues__btn .lv-i { width: 14px; height: 14px; }

/* Le statut de la régie : hors direct (gris), prêt (vert, OBS envoie l'image), en direct (rouge). */
.lv-barre.is-pret .lv-barre__point { background: var(--green2); box-shadow: 0 0 0 4px rgba(43, 196, 138, .22); animation: lv-pouls 1.6s ease-in-out infinite; }
.lv-barre.is-pret .lv-barre__txt strong { color: var(--green3); }
.lv-barre__sous.is-alerte { color: #C41230; font-weight: 700; }
.lv-antennebtn.is-pret { animation: lv-pret 2.2s ease-out infinite; }
@keyframes lv-pret {
  0% { box-shadow: 0 10px 22px -10px rgba(29, 158, 117, .7), 0 0 0 0 rgba(43, 196, 138, .5); }
  70%, 100% { box-shadow: 0 10px 22px -10px rgba(29, 158, 117, .7), 0 0 0 10px rgba(43, 196, 138, 0); }
}

/* Chat fermé, côté régie : un rappel au-dessus de ce qu'elle a écrit. */
.lv-ferme-bandeau {
  display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 8px; padding: 10px 12px; border-radius: 12px; list-style: none;
  background: rgba(21, 64, 50, .045); border: 1px dashed rgba(21, 64, 50, .18); font-size: 12px; line-height: 1.5; color: var(--muted);
}
.lv-ferme-bandeau strong { color: var(--teal-deep); }
.lv-ferme-bandeau .lv-i { width: 16px; height: 16px; margin-top: 1px; color: #93A49E; }

/* « Ajouter à mon agenda pour m'inscrire » : le vert de « Réserver un appel »,
   des ondes qui partent doucement du bouton, et au survol un contour de
   lumière qui en fait le tour. */
@property --lv-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.lv-agenda__bloc { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 8px; }
.lv-agenda {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 14px; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.1px;
  background: var(--grad); box-shadow: 0 10px 22px -14px rgba(43, 196, 138, .7), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.lv-agenda .lv-i { width: 17px; height: 17px; }
.lv-agenda::before {
  content: ''; position: absolute; inset: -2px; z-index: -1; padding: 2px; border-radius: 16px; pointer-events: none;
  background: conic-gradient(from var(--lv-angle), rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0) 190deg,
    rgba(175, 255, 220, .9) 270deg, #fff 318deg, rgba(255, 255, 255, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s; animation: lv-tour 2.4s linear infinite;
}
.lv-agenda:hover::before { opacity: 1; }
.lv-agenda:active { transform: scale(.98); }
@keyframes lv-tour { to { --lv-angle: 360deg; } }
.lv-agenda__onde {
  position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none;
  animation: lv-onde 3.4s ease-out infinite; transition: opacity .25s;
}
@keyframes lv-onde {
  0% { box-shadow: 0 0 0 0 rgba(43, 196, 138, .34); }
  70%, 100% { box-shadow: 0 0 0 11px rgba(43, 196, 138, 0); }
}
/* Au survol, l'onde s'efface : il ne reste que le contour de lumière. */
.lv-agenda:hover .lv-agenda__onde { opacity: 0; animation-play-state: paused; }
.lv-agenda__inscrit { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #9FF0CC; }
.lv-agenda__inscrit[hidden] { display: none; }
.lv-agenda__inscrit .lv-i { width: 15px; height: 15px; }
.lv-affiche__txt > .lv-agenda.lv-agenda--mini {
  margin-top: 2px; padding: 6px 11px; gap: 6px; border-radius: 9px; font-size: 10.5px; color: #fff; pointer-events: none;
}
.lv-agenda--mini .lv-i { width: 12px; height: 12px; }
@media (prefers-reduced-motion: reduce) {
  .lv-agenda::before, .lv-agenda__onde, .lv-antennebtn.is-pret { animation: none; }
}

/* Mes lives : sous la vidéo, pour la régie seule. Ses tableaux se replient
   d'après la largeur de l'encadré (pas de la fenêtre) : la colonne de la vidéo
   change de taille avec le chat. */
/* ── Tes scènes OBS (régie) : une icône par scène, sous la vidéo ──────────────
   La régie pilote OBS sur le Mac de Sonny (cf. views/live-obs.js) : la scène
   à l'écran sous une pastille verte qui glisse ; une scène de partage demande
   d'abord la fenêtre à partager.
   ------------------------------------------------------------------------ */
.lv-sc {
  display: grid; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 18px;
  background: var(--card); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .65); outline: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.lv-sc__tete { display: flex; align-items: center; gap: 8px 10px; min-width: 0; flex-wrap: wrap; }
.lv-sc__logo {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .18), rgba(29, 158, 117, .07)); color: var(--green);
}
.lv-sc__logo .lv-i { width: 18px; height: 18px; }
.lv-sc.is-erreur .lv-sc__logo { background: rgba(244, 162, 27, .16); color: #B4540A; }
.lv-sc__titre { font-size: 14px; letter-spacing: -.2px; }
.lv-sc__txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 260px; line-height: 1.35; }
.lv-sc__txt strong { font-size: 13.5px; }
.lv-sc__sous { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.lv-sc__etat {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  background: rgba(43, 196, 138, .13); color: var(--green3); font-size: 11px; font-weight: 800;
}
.lv-sc__point { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lv-sc__roue { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(29, 158, 117, .25); border-top-color: var(--green); animation: lv-tourne .8s linear infinite; }
.lv-sc__brancher .lv-i, .lv-sc .btn .lv-i { width: 15px; height: 15px; }
.lv-sc .btn { display: inline-flex; align-items: center; gap: 7px; }
.lv-sc__outil {
  flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; cursor: pointer;
  border: 1px solid rgba(21, 64, 50, .1); background: rgba(255, 255, 255, .85); color: var(--muted); transition: color .2s, border-color .2s;
}
.lv-sc__outil:hover { color: var(--green3); border-color: rgba(29, 158, 117, .45); }
.lv-sc__outil .lv-i { width: 17px; height: 17px; }
/* Les scènes : une piste claire, et la pastille verte qui glisse jusqu'à la
   scène à l'écran (cf. placerPastille). Survol : la scène se pose sur un fond
   blanc, son icône s'anime ; clic : une onde, la pastille part tout de suite. */
.lv-sc__liste {
  position: relative; isolation: isolate; display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 17px;
  background: rgba(21, 64, 50, .045); box-shadow: inset 0 0 0 1px rgba(21, 64, 50, .055), inset 0 1px 2px rgba(21, 64, 50, .05);
}
.lv-sc__glisse {
  position: absolute; top: 0; left: 0; z-index: 0; width: 0; height: 0; border-radius: 13px; pointer-events: none;
  background: var(--grad); opacity: 0; will-change: transform, width;
  box-shadow: 0 12px 24px -14px rgba(29, 158, 117, .95), 0 2px 6px -2px rgba(20, 117, 92, .35), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition:
    transform .55s cubic-bezier(.32, .72, 0, 1), width .55s cubic-bezier(.32, .72, 0, 1), height .55s cubic-bezier(.32, .72, 0, 1),
    opacity .3s ease, box-shadow .3s ease, filter .3s ease;
}
.lv-sc__liste.has-glisse .lv-sc__glisse { opacity: 1; }
.lv-sc__liste.is-fige .lv-sc__glisse { transition: none; }
/* À la connexion, la pastille apparaît en douceur, avec les scènes. */
.lv-sc__liste.is-entree.is-fige .lv-sc__glisse { transition: opacity .45s ease .15s; }
.lv-sc__liste:has(.lv-sc__scene.is-active:hover) .lv-sc__glisse {
  filter: brightness(1.06) saturate(1.06);
  box-shadow: 0 16px 30px -14px rgba(29, 158, 117, 1), 0 2px 6px -2px rgba(20, 117, 92, .4), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.lv-sc__scene {
  position: relative; z-index: 1; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px; height: 46px; max-width: 240px; padding: 0 14px 0 7px;
  border: 0; border-radius: 13px; cursor: pointer; background-color: transparent;
  color: var(--teal-deep); font-family: var(--font); font-size: 13.5px; font-weight: 700; letter-spacing: -.1px;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .3s ease, color .4s ease, box-shadow .3s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.lv-sc__scene:not(.is-active):hover { background-color: rgba(255, 255, 255, .96); box-shadow: 0 8px 18px -12px rgba(6, 40, 30, .45), 0 0 0 1px rgba(21, 64, 50, .05); }
.lv-sc__scene:active { transform: scale(.96); transition-duration: .3s, .4s, .3s, .1s; }
.lv-sc__scene:focus-visible { outline: 2px solid rgba(29, 158, 117, .6); outline-offset: 2px; }
.lv-sc__ico {
  position: relative; flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: rgba(29, 158, 117, .1); color: var(--green);
  transition: background-color .35s ease, color .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.lv-sc__ico .lv-i { width: 17px; height: 17px; transition: opacity .2s ease, transform .3s ease; }
.lv-sc__scene:not(.is-active):hover .lv-sc__ico { background: rgba(29, 158, 117, .17); transform: scale(1.08) rotate(-4deg); }
.lv-sc__nom { position: relative; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* À l'écran : blanc sur la pastille (avant sa première place, sur un fond vert). */
.lv-sc__scene.is-active { color: #fff; }
.lv-sc__scene.is-active:not(.is-partage) { cursor: default; }
.lv-sc__liste:not(.has-glisse) .lv-sc__scene.is-active { background: var(--grad); }
.lv-sc__scene.is-active .lv-sc__ico { background: rgba(255, 255, 255, .2); color: #fff; }
/* Le point rouge « à l'antenne », sur l'icône de la scène à l'écran. */
.lv-sc__direct {
  position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%;
  background: #E5273E; box-shadow: 0 0 0 2px #fff; opacity: 0; transform: scale(0);
  transition: opacity .2s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.lv-sc__direct::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #E5273E; opacity: 0; }
.lv-sc__scene.is-active .lv-sc__direct { opacity: 1; transform: scale(1); transition-delay: .25s; }
.lv-sc__scene.is-active .lv-sc__direct::after { animation: lv-sc-antenne 1.8s ease-out .5s infinite; }
@keyframes lv-sc-antenne { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.3); opacity: 0; } }
/* Le passage en cours : l'icône laisse place à un petit cercle qui tourne (s'il dure). */
.lv-sc__tourne {
  position: absolute; inset: 8px; border-radius: 50%; border: 2px solid currentColor;
  border-right-color: transparent; border-bottom-color: transparent; opacity: 0; transition: opacity .2s ease;
}
.lv-sc__scene.is-envoi { cursor: progress; }
.lv-sc__scene.is-envoi .lv-sc__tourne { opacity: 1; transition-delay: .15s; animation: lv-tourne .7s linear infinite; }
.lv-sc__scene.is-envoi .lv-sc__ico .lv-i { opacity: 0; transform: scale(.6); transition-delay: .15s; }
/* Un onglet partagé dans la scène : un petit onglet sur son bouton. */
.lv-sc__badge { display: none; flex: none; place-items: center; width: 20px; height: 20px; margin-right: -3px; border-radius: 6px; background: rgba(29, 158, 117, .14); color: var(--green); }
.lv-sc__badge .lv-i { width: 13px; height: 13px; }
.lv-sc__scene.is-onglet .lv-sc__badge { display: inline-grid; }
.lv-sc__scene.is-active .lv-sc__badge { background: rgba(255, 255, 255, .22); color: #fff; }
/* L'onde du clic, sous le texte. */
.lv-sc__onde {
  position: absolute; z-index: -1; border-radius: 50%; background: currentColor; opacity: .16; transform: scale(0); pointer-events: none;
  animation: lv-sc-onde .65s cubic-bezier(.2, .7, .3, 1) forwards;
}
.lv-sc__scene:not(.is-active) .lv-sc__onde { color: var(--green); }
@keyframes lv-sc-onde { to { transform: scale(1); opacity: 0; } }
/* À la connexion, les scènes arrivent une à une. */
.lv-sc__liste.is-entree .lv-sc__scene { animation: lv-sc-entree .5s cubic-bezier(.2, .8, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
@keyframes lv-sc-entree { from { opacity: 0; translate: 0 6px; scale: .97; } }
.lv-sc__vide { margin: 0; font-size: 12.5px; color: var(--muted); }
/* La fenêtre « Brancher OBS ». */
.lv-sc-reg__etapes { margin: 0; padding: 0 0 0 22px; display: grid; gap: 10px; }
.lv-sc-reg__etapes li { font-size: 13px; line-height: 1.5; color: var(--muted); }
.lv-sc-reg__etapes li strong { display: block; color: var(--text); font-size: 13.5px; }
.lv-sc-reg__champs { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; }
.lv-sc-reg input[type=password], .lv-sc-reg input[type=number] {
  width: 100%; padding: 11px 14px; border: 1px solid rgba(21, 64, 50, .13); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .9); color: var(--text); font-size: 14.5px; font-family: inherit; font-variant-numeric: tabular-nums;
  transition: border-color .2s, box-shadow .2s;
}
.lv-sc-reg__avis { margin: 0; padding: 10px 12px; border-radius: 11px; background: rgba(229, 39, 62, .08); color: #B4321C; font-size: 13px; line-height: 1.5; }
.lv-sc-reg__sure { margin: 0; padding: 10px 12px; border-radius: 11px; background: rgba(43, 196, 138, .12); color: var(--green3); font-size: 13px; line-height: 1.5; }
/* Branchée : une seule ligne — les scènes, et tout à droite un témoin et les réglages. */
.lv-sc.is-ok { padding: 10px 12px; }
.lv-sc__ligne { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lv-sc__ligne .lv-sc__liste { flex: 1; min-width: 0; }
.lv-sc__droite { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.lv-sc__temoin {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; cursor: default;
  background: rgba(43, 196, 138, .12); color: var(--green3); font-size: 11px; font-weight: 800;
}
/* Les icônes des scènes, dans les réglages. */
.modal__card.lv-reg.lv-sc-reg { max-width: 720px; }
.lv-sc-reg__icones { display: grid; gap: 10px; }
.lv-sc-reg__icones h3, .lv-sc-reg__titre { margin: 0; font-size: 15px; }
.lv-sc-ico { display: grid; gap: 8px; }
.lv-sc-ico__ligne { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(21, 64, 50, .03); border: 1px solid var(--border); }
.lv-sc-ico__nom { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-size: 13.5px; font-weight: 700; }
.lv-sc-ico__nom > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-sc-ico__choix-liste { display: flex; flex-wrap: wrap; gap: 5px; }
.lv-sc-ico__choix {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(21, 64, 50, .1); background: #fff; color: var(--teal-deep); transition: border-color .15s, background .15s;
}
.lv-sc-ico__choix:hover { border-color: rgba(29, 158, 117, .5); }
.lv-sc-ico__choix .lv-i { width: 16px; height: 16px; }
.lv-sc-ico__choix.is-on { background: var(--grad); border-color: transparent; color: #fff; }
.lv-sc-ico__auto { font-size: 11px; font-weight: 800; }
@media (max-width: 640px) { .lv-sc-ico__ligne { grid-template-columns: minmax(0, 1fr); } }
.lv-sc-reg__avis[hidden] { display: none; }
.lv-sc-reg__oublier { color: #B4321C; }
/* Un interrupteur (la question « Terminer le direct ? » : arrêter aussi OBS). */
.lv-bascule { position: relative; display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--teal-deep); cursor: pointer; user-select: none; }
.lv-bascule input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lv-bascule__inter { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: rgba(21, 64, 50, .18); transition: background-color .25s ease; }
.lv-bascule__inter::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(6, 40, 30, .3); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.lv-bascule input:checked + .lv-bascule__inter { background: var(--green); }
.lv-bascule input:checked + .lv-bascule__inter::after { transform: translateX(12px); }
.lv-bascule input:focus-visible + .lv-bascule__inter { outline: 2px solid rgba(29, 158, 117, .5); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .lv-sc__glisse, .lv-sc__scene, .lv-sc__ico, .lv-sc__direct { transition: none; }
  .lv-sc__liste.is-entree .lv-sc__scene, .lv-sc__direct::after { animation: none; }
  .lv-sc__onde { display: none; }
}
/* Sur téléphone, pas d'OBS à piloter : la barre s'efface. */
@media (max-width: 760px) { .lv-sc { display: none; } }

.lv-lives {
  container: lives / inline-size;
  margin-top: 22px; padding: 14px 16px 16px; border-radius: var(--radius);
  background: var(--card); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .65); outline: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.lv-lives__tete { display: flex; align-items: flex-end; gap: 10px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.lv-lives__titre { margin: 0 6px 12px 2px; font-size: 18px; letter-spacing: -.4px; }
.lv-lives__onglets { display: flex; gap: 2px; }
.lv-lives__onglet {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px 13px; border: 0; background: none; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--muted);
}
.lv-lives__onglet::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2.5px; border-radius: 2px; }
.lv-lives__onglet:hover { color: var(--text); }
.lv-lives__onglet.is-on { color: var(--green3); }
.lv-lives__onglet.is-on::after { background: var(--grad); }
.lv-lives__n { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; background: rgba(21, 64, 50, .07); color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.lv-lives__ajout { margin-bottom: 10px; }
.lv-lives__ajout .lv-i { width: 15px; height: 15px; }
/* « Vidéo et OBS » : le lien de la vidéo et le guide, à côté de « Programmer
   un live ». En orange tant que le lien manque. */
.lv-lives__video, .lv-lives__rappel { margin-bottom: 10px; gap: 7px; }
.lv-lives__video .lv-i { width: 15px; height: 15px; color: var(--green); }
.lv-lives__video.is-alerte { color: #8A5A06; border-color: rgba(244, 162, 27, .5); background: rgba(244, 162, 27, .1); }
.lv-lives__video.is-alerte .lv-i { color: #C47F0A; }
.lv-lives__pastille { padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: #fff; background: #E3951A; }
.lv-lives__vide { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 26px 12px 12px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--muted); }
.lv-lives__vide strong { font-size: 15px; color: var(--text); }
.lv-lives__vide span { max-width: 520px; }
.lv-lives__tout { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 12px 2px -2px; font-size: 12.5px; font-weight: 700; color: var(--green); }
.lv-lives__tout .lv-i { width: 14px; height: 14px; }
.lv-lives__tout:hover { text-decoration: underline; }

.lv-table { margin-top: 12px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .65); }
/* L'en-tête et chaque ligne sont des grilles aux mêmes colonnes, toutes de
   largeur fixe sauf le titre : d'une ligne à l'autre, rien ne bouge, et chaque
   intitulé est exactement au-dessus de sa colonne. */
.lv-table__tete, .lv-ligne { display: grid; align-items: center; gap: 8px 14px; }
.lv-table--actifs .lv-table__tete, .lv-table--actifs .lv-ligne { grid-template-columns: minmax(0, 1fr) 118px 118px 64px 72px 140px; }
.lv-table--passes .lv-table__tete, .lv-table--passes .lv-ligne { grid-template-columns: minmax(0, 1fr) 64px 92px 76px 100px 80px 140px; }
.lv-table__tete > span { white-space: nowrap; }
.lv-table__tete { padding: 10px 16px; background: rgba(21, 64, 50, .035); border-bottom: 1px solid var(--border); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lv-table__corps { margin: 0; padding: 0; list-style: none; }
.lv-ligne { padding: 14px 16px; border-top: 1px solid var(--border); }
.lv-ligne:first-child { border-top: 0; }
.lv-ligne.is-direct { background: linear-gradient(90deg, rgba(229, 39, 62, .05), transparent 65%); }
.lv-ligne__titre { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lv-ligne__logo {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: #1F3B33; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(43, 196, 138, .35);
}
.lv-ligne__arbre {
  width: 17px; height: 22px; background: #fff;
  -webkit-mask: url('/logo.png') no-repeat left center / auto 22px; mask: url('/logo.png') no-repeat left center / auto 22px;
}
.lv-ligne.is-direct .lv-ligne__logo { box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(229, 39, 62, .45); }
.lv-ligne__nom { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lv-ligne__nom strong { font-size: 14.5px; letter-spacing: -.2px; line-height: 1.3; }
.lv-ligne__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.lv-ligne__sous { min-width: 0; max-width: 100%; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-ligne__col { font-size: 13.5px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-ligne__col.is-pale { color: var(--muted-2); }
.lv-ligne.is-pas-lance .lv-ligne__logo { filter: grayscale(1); opacity: .55; }
.lv-ligne__stats .btn { gap: 6px; }
.lv-ligne__inscrits { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.lv-ligne__inscrits .lv-i { width: 16px; height: 16px; color: var(--muted); }
.lv-ligne__fort { font-weight: 800; color: var(--green3); }
.lv-ligne__actions { display: flex; align-items: center; justify-content: flex-start; gap: 6px; }
.lv-ligne__actions .btn .lv-i, .lv-ligne__stats .btn .lv-i { width: 14px; height: 14px; }
.lv-ligne__modifier { gap: 6px; }
/* « Supprimer ce live ? Oui / Non » : sous la ligne, sur toute sa largeur, calé à droite. */
.lv-ligne__actions:has(.lv-ligne__question) { grid-column: 1 / -1; justify-content: flex-end; padding-top: 2px; }
.lv-ligne__x {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--muted); transition: color .2s, border-color .2s;
}
.lv-ligne__x:hover { color: #C41230; border-color: rgba(229, 39, 62, .35); }
.lv-ligne__x .lv-i { width: 15px; height: 15px; }
.lv-ligne__question { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; color: #A93226; }
.lv-ligne > .lv-direct-stats { grid-column: 1 / -1; }
.lv-etiq { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 7px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.lv-etiq.is-on { color: #fff; background: #6B7C76; }
.lv-etiq.is-off { color: var(--muted); background: rgba(21, 64, 50, .07); }
.lv-etiq.is-alerte { color: #8A5A06; background: rgba(244, 162, 27, .18); }
.lv-etiq.is-direct { color: #fff; background: #E5273E; }
.lv-etiq.is-vert { color: var(--green3); background: rgba(43, 196, 138, .14); }
.lv-etiq__point { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: lv-pouls 1.6s ease-in-out infinite; }

/* Les chiffres du direct, sous sa ligne. */
.lv-direct-stats { display: grid; gap: 12px; margin-top: 2px; padding: 12px; border-radius: 13px; background: #fff; border: 1px solid rgba(229, 39, 62, .16); }
.lv-ds__tuiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.lv-ds__tuile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 11px; border-radius: 11px; background: rgba(21, 64, 50, .035); }
.lv-ds__tuile strong { font-size: 21px; letter-spacing: -.5px; line-height: 1.1; color: var(--text); }
.lv-ds__tuile span { font-size: 11.5px; font-weight: 700; line-height: 1.3; color: var(--muted); }
.lv-ds__tuile small { font-size: 11px; color: var(--muted-2); }
.lv-ds__tuile.is-direct strong { color: #C81E33; }
.lv-ds__tuile.is-fort { background: linear-gradient(135deg, rgba(43, 196, 138, .16), rgba(29, 158, 117, .06)); }
.lv-ds__tuile.is-fort strong { color: var(--green3); }
.lv-ds__courbe { display: grid; gap: 4px; }
.lv-ds__courbe > span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.sl-mini-cadre { height: 46px; }
.sl-mini { display: block; width: 100%; height: 100%; }

/* La grande fenêtre d'un live : le formulaire à gauche, l'affiche des membres à droite. */
.modal__card.lv-reg { max-width: 940px; gap: 16px; padding: 24px 26px; }
.lv-reg__tete { display: flex; align-items: flex-start; gap: 14px; }
.lv-reg__tete > div { flex: 1; min-width: 0; }
.lv-reg__tete h2 { margin: 2px 0 6px; }
.lv-reg__tete .modal__lead { margin: 0; }
.lv-reg__x, .sl-x {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
}
.lv-reg__x:hover, .sl-x:hover { color: var(--text); border-color: rgba(29, 158, 117, .4); }
.lv-reg__x .lv-i, .sl-x .sl-i { width: 16px; height: 16px; }
.lv-reg__onglets { display: flex; gap: 2px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.lv-reg__live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.lv-reg__live:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.lv-reg__form { display: grid; gap: 14px; }
.lv-reg__form textarea { min-height: 88px; font-size: 14.5px; }
.lv-reg__apercu { display: grid; gap: 8px; }
.lv-reg__legende { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--teal-deep); }
.lv-reg__legende .lv-i { width: 15px; height: 15px; color: var(--green); }
.lv-reg__ecran { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; box-shadow: 0 18px 40px -22px rgba(6, 40, 30, .55); container: apercu / inline-size; }
/* L'aperçu sur téléphone : sans le logo ni l'étiquette, le titre tient. */
@container apercu (max-width: 380px) {
  .lv-affiche--mini .lv-affiche__logo, .lv-affiche--mini .lv-affiche__eyebrow { display: none; }
  .lv-affiche--mini .lv-affiche__txt > strong { font-size: 14px; }
  .lv-affiche--mini .lv-rebours__bloc { min-width: 34px; }
}
.lv-affiche--mini { gap: 10px; padding: 14px; }
.lv-affiche--mini { --haut-top: 6px; --haut-h: 20px; }
.lv-affiche--mini .lv-affiche__logo { width: 54px; }
.lv-affiche--mini .lv-affiche__badges { gap: 4px; }
.lv-affiche--mini .lv-affiche__badge { height: 18px; padding: 0 7px; gap: 4px; font-size: 8.5px; box-shadow: none; }
.lv-affiche--mini .lv-affiche__badge .lv-i { width: 9px; height: 9px; }
.lv-affiche--mini .lv-affiche__txt { gap: 6px; }
.lv-affiche--mini .lv-affiche__txt > strong { font-size: 16px; }
.lv-affiche--mini .lv-affiche__txt > span:not(.lv-affiche__eyebrow):not(.lv-agenda) { font-size: 11px; }
.lv-affiche--mini .lv-affiche__eyebrow { font-size: 6.5px; padding: 3px 7px; }
.lv-affiche--mini .lv-rebours { gap: 5px; }
.lv-affiche--mini .lv-rebours__bloc { min-width: 38px; padding: 6px 5px 5px; border-radius: 9px; }
.lv-affiche--mini .lv-rebours__bloc b { font-size: 15px; }
.lv-affiche--mini .lv-rebours__bloc small { margin-top: 2px; font-size: 8px; }
.lv-reg__video { display: grid; gap: 14px; }
/* La durée du live : une liste courte, l'horloge devant. */
.lv-duree { position: relative; max-width: 220px; }
.lv-duree .lv-i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--green); pointer-events: none; }
.lv-duree .lv-select { padding-left: 38px; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.lv-reg__note { margin: 0; padding: 10px 12px; border-radius: 11px; background: rgba(21, 64, 50, .04); font-size: 13px; color: var(--muted); }
.lv-reg__pied { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--border); }
.lv-reg__suppr, .sl-suppr { display: inline-flex; align-items: center; gap: 6px; color: #B4321C; }
.lv-reg__suppr .lv-i, .sl-suppr .sl-i { width: 14px; height: 14px; }

/* Les statistiques d'un live (js/stats-live.js) : tuiles, courbes, barres. */
.modal__card.sl-fenetre { max-width: 1040px; gap: 18px; padding: 24px 26px; }
.sl-i { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; }
.sl-i svg { width: 100%; height: 100%; }
.sl-tete { display: flex; align-items: flex-start; gap: 14px; }
.sl-tete__ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--green3); background: rgba(43, 196, 138, .13); }
.sl-tete__ico .sl-i { width: 22px; height: 22px; }
.sl-tete__txt { flex: 1; min-width: 0; }
.sl-tete__txt h2 { margin: 2px 0 6px; }
.sl-tete__txt .modal__lead { margin: 0; }
.sl-corps { display: grid; gap: 14px; }
.sl-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sl-tuile { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 14px 15px; border-radius: 14px; background: #F5F8F7; border: 1px solid var(--border); }
.sl-tuile__nom { font-size: 12px; font-weight: 700; color: var(--muted); }
.sl-tuile__val { font-size: 28px; letter-spacing: -.8px; line-height: 1.1; color: var(--text); }
.sl-tuile__detail { font-size: 12px; line-height: 1.4; color: var(--muted); }
.sl-tuile.is-heros { background: linear-gradient(135deg, #DDF5EA, #EFF8F4); border-color: rgba(29, 158, 117, .3); }
.sl-tuile.is-heros .sl-tuile__val { font-size: 40px; color: var(--green3); }
.sl-bloc { display: grid; gap: 10px; min-width: 0; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: #fff; }
.sl-bloc h3 { margin: 0; font-size: 15px; letter-spacing: -.2px; }
.sl-bloc h4 { margin: 0; font-size: 13px; color: var(--teal-deep); }
.sl-bloc__tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sl-bloc__sous { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
.sl-graph { position: relative; width: 100%; min-height: 40px; outline: none; touch-action: pan-y; }
.sl-graph svg { display: block; overflow: visible; }
.sl-graph:focus-visible { border-radius: 8px; box-shadow: 0 0 0 3px rgba(43, 196, 138, .25); }
.sl-axe { font-family: var(--font); font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.sl-etiq { font-family: var(--font); font-size: 11.5px; font-weight: 800; fill: var(--text); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.sl-bulle {
  position: absolute; z-index: 2; display: grid; gap: 2px; padding: 9px 12px; border-radius: 13px; pointer-events: none; white-space: nowrap;
  font-size: 12px; color: #475569;
}
.sl-bulle[hidden] { display: none; }
.sl-bulle strong { font-size: 14px; color: var(--text); }
.sl-bulle__clic, .sl-bulle__chute { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.sl-bulle__clic { color: var(--green3); }
.sl-bulle__chute { color: #B5461A; }
.sl-bulle .sl-i { width: 13px; height: 13px; }
.sl-barre { cursor: pointer; outline: none; transition: opacity .15s; }
.sl-barre:hover, .sl-barre:focus { opacity: .78; }
.sl-legende { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sl-legende__cle { width: 14px; height: 10px; border-radius: 3px; background: rgba(217, 98, 43, .28); }
.sl-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.sl-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sl-duo > :only-child { grid-column: 1 / -1; }
.sl-barres { display: grid; gap: 10px; }
.sl-barres__ligne { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 10px; align-items: center; font-size: 12.5px; }
.sl-barres__nom { font-weight: 700; color: var(--muted); }
.sl-barres__piste { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sl-barres__barre { flex: none; width: calc((100% - 96px) * var(--f)); height: 14px; border-radius: 0 4px 4px 0; background: var(--green); }
.sl-barres__ligne.is-fort .sl-barres__barre { background: var(--green3); }
.sl-barres__val { font-weight: 800; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sl-detail { border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.sl-detail summary { padding: 12px 14px; cursor: pointer; font-size: 13px; font-weight: 800; color: var(--teal-deep); }
.sl-detail__defile { max-height: 280px; overflow: auto; padding: 0 14px 12px; }
.sl-detail table, .sl-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sl-detail th, .sl-table th { position: sticky; top: 0; padding: 7px 8px; text-align: left; background: #fff; border-bottom: 1px solid var(--border); font-weight: 700; color: var(--muted); }
.sl-detail td, .sl-table td { padding: 8px; border-bottom: 1px solid rgba(21, 64, 50, .05); }
.sl-pied { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--border); }
.sl-question { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; color: #A93226; }
.sl-charge { margin: 18px 0; text-align: center; font-size: 13.5px; color: var(--muted); }

/* Le profil du super admin : « Mon profil », « Statistiques des lives »,
   « Membres » et « Tableau de bord admin ». Les onglets sont centrés : quand
   l'onglet Membres élargit la page, ils ne bougent pas sous la souris. Trop
   larges pour l'écran (téléphone), ils défilent de côté — les marges auto des
   deux bouts centrent tant qu'il y a la place, et s'effacent sinon. */
.me-onglets {
  display: flex; gap: 2px; margin: 0 0 18px; box-shadow: inset 0 -1px 0 var(--border);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.me-onglets::-webkit-scrollbar { display: none; }
/* Téléphone : les bords s'estompent, signe que la barre défile. */
@media (max-width: 620px) {
  .me-onglets {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  }
}
.me-onglet:first-child { margin-left: auto; }
.me-onglet:last-child { margin-right: auto; }
.me-onglet {
  position: relative; flex: none; padding: 10px 14px 13px; border: 0; background: none; cursor: pointer;
  font-family: var(--font); font-size: 14.5px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
/* Le trait de l'onglet ouvert se pose sur le filet (une ombre intérieure : un
   vrai bord serait rogné par le défilement). */
.me-onglet::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2.5px; border-radius: 2px; }
.me-onglet:hover { color: var(--text); }
.me-onglet.is-on { color: var(--green3); }
.me-onglet.is-on::after { background: var(--grad); }
.me-lives__tete h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.5px; }
.me-admin__tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.me-admin__tete .btn .cm-ico { width: 15px; height: 15px; }
.me-admin__liens { display: flex; gap: 8px; flex-wrap: wrap; }
.me .card.me-admin__tableau { padding: 0; overflow: hidden; }
.me-admin__cadre { display: block; width: 100%; height: calc(100vh - 210px); min-height: 640px; border: 0; background: transparent; }
/* /admin?integre=1 : l'espace admin dans l'onglet du profil, sans son en-tête de marque. */
.is-integre body { background: transparent; }
.is-integre #admin .topbar .brand, .is-integre #admin .topbar__right { display: none; }
.is-integre #admin .topbar { grid-template-columns: 1fr; justify-items: center; padding: 10px 16px; }
.is-integre #admin .view { padding-top: 18px; }
.me-lives__tete p { max-width: 720px; margin: 0 0 4px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.sl-profil { display: grid; gap: 14px; }
.sl-profil .sl-tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sl-table { overflow-x: auto; }
.sl-table td strong { display: block; font-size: 13.5px; }
.sl-table td span { display: block; font-size: 11.5px; color: var(--muted); }
.sl-table__ligne { cursor: pointer; outline: none; }
.sl-table__ligne:hover td, .sl-table__ligne:focus-visible td { background: rgba(43, 196, 138, .07); }
.sl-table td.is-fort { font-weight: 800; color: var(--green3); }
.sl-table__voir { font-weight: 800; color: var(--green); }
.sl-liste { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sl-liste__ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(21, 64, 50, .035); }
.sl-liste__nom { display: grid; gap: 2px; min-width: 0; }
.sl-liste__nom span { font-size: 12px; color: var(--muted); }
.sl-liste__chiffre { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.sl-vide { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 16px; text-align: center; color: var(--muted); border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.sl-vide strong { font-size: 16px; color: var(--text); }

@media (max-width: 1280px) { .lv-ds__tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Encadré étroit : chaque live devient une fiche — le titre en haut, puis ses
   colonnes, chacune avec son intitulé. */
@container lives (max-width: 900px) {
  .lv-table__tete { display: none; }
  .lv-table--actifs .lv-ligne, .lv-table--passes .lv-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
  .lv-ligne__titre { grid-column: 1 / -1; }
  .lv-ligne__actions { flex-wrap: wrap; }
  .lv-ligne__col::before, .lv-ligne__actions::before, .lv-ligne__stats::before {
    content: attr(data-label); display: block; flex-basis: 100%; margin-bottom: 3px; font-size: 11px; font-weight: 700; color: var(--muted);
  }
  .lv-ligne__actions:has(.lv-ligne__question)::before { content: none; }
}
@container lives (max-width: 520px) {
  .lv-table--actifs .lv-ligne, .lv-table--passes .lv-ligne { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lv-reg__live { grid-template-columns: minmax(0, 1fr); }
  .sl-profil .sl-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .modal__card.lv-reg, .modal__card.sl-fenetre { padding: 18px; }
  .sl-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sl-tuile.is-heros { grid-column: 1 / -1; }
  .sl-duo { grid-template-columns: minmax(0, 1fr); }
  .sl-barres__ligne { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 600px) {
  .lv-lives { margin-top: 16px; padding: 12px; }
  .lv-lives__ajout { width: 100%; justify-content: center; }
  .lv-lives__video, .lv-lives__rappel { flex: 1 1 0; justify-content: center; }
  .lv-ds__tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-vues__btn { padding: 0 9px; font-size: 11px; }
}

/* Les membres : à droite, le chat puis leurs trophées du live, en petit. Sur ordinateur, la colonne
   a la hauteur exacte de la vidéo, haut et bas alignés — sa taille ne compte pas dans celle de la
   ligne (contain: size), elle s'étire à celle de la vidéo ; le chat prend ce qui reste au-dessus des
   trophées, ses messages défilent dedans. La régie garde son chat collé en haut de l'écran. */
.lv-droite { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lv-droite > .lv-tl { flex: none; }
@media (min-width: 1081px) {
  .lv > .lv-droite { grid-column: 2; grid-row: 1; align-self: stretch; contain: size; }
  .lv-droite > .lv-chat { flex: 1; position: relative; top: 0; height: auto; min-height: 0; max-height: none; }
}
/* Tablette : le chat passe sous la vidéo. */
@media (max-width: 1080px) {
  .lv { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .lv > .lv-chat, .lv > .lv-droite { grid-column: 1; grid-row: auto; }
  .lv-chat { position: relative; top: 0; height: 560px; min-height: 0; }
}
/* Téléphone : la vidéo prend toute la largeur, le chat se lit d'un pouce. */
@media (max-width: 600px) {
  .view.view--live { padding-top: 0; }
  .lv-scene { margin: 0 -16px; border-radius: 0; }
  .lv-haut { top: 10px; left: 10px; right: 10px; }
  .lv-scene { --haut-top: 10px; }
  .lv-banniere { bottom: 36px; height: 32px; }
  .lv-banniere__ico { width: 38px; padding-right: 6px; }
  .lv-banniere__ico .lv-i { width: 16px; height: 16px; }
  .lv-banniere__item { font-size: 12.5px; }
  .lv-banniere__sep { width: 6px; height: 6px; margin: 0 18px; }
  /* L'appel et le bouton tiennent sur une ligne, en bas de l'image : la vidéo reste visible. */
  .lv-cartes { left: 8px; right: 8px; bottom: 8px; align-items: stretch; gap: 6px; }
  .lv-scene:has(.lv-banniere:not([hidden])) .lv-cartes { bottom: 74px; }
  /* Le plein écran maison sur téléphone : mêmes places, écartées des bords arrondis. */
  .lv-scene.is-pseudo .lv-banniere { bottom: calc(36px + env(safe-area-inset-bottom)); }
  .lv-scene.is-pseudo .lv-cartes { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); }
  .lv-scene.is-pseudo:has(.lv-banniere:not([hidden])) .lv-cartes { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .lv-bouton__ico { width: 32px; height: 32px; border-radius: 10px; }
  .lv-bouton__ico .lv-i { width: 16px; height: 16px; }
  .lv-appel__carte { width: auto; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; padding: 8px 8px 10px; border-radius: 13px; }
  .lv-appel__photo { width: 32px; height: 32px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(43, 196, 138, .55); }
  .lv-appel__eyebrow, .lv-appel__x { display: none; }
  .lv-appel__txt { padding-right: 0; }
  .lv-appel__txt strong { font-size: 12px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lv-appel .lv-cta { grid-column: auto; padding: 8px 11px; font-size: 12px; border-radius: 10px; gap: 6px; }
  .lv-appel .lv-cta .lv-i { width: 14px; height: 14px; }
  .lv-chat { height: 72vh; }
  /* La barre de régie s'empile : l'état, les quatre outils en deux colonnes, l'antenne.
     Décollée de l'en-tête : sans cette marge, elle venait buter contre lui. */
  .lv-barre { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; margin-top: 14px; }
  .lv-barre__statut { border-right: 0; padding-right: 0; }
  .lv-barre__outils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .lv-outilbtn { height: auto; min-height: 44px; padding: 7px 10px; flex-wrap: wrap; row-gap: 3px; white-space: normal; }
  .lv-outilbtn__etat { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .lv-antennebtn { width: 100%; justify-content: center; margin-left: 0; }
  .lv-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .lv-cta::after, .lv-direct__point, .nav__item[data-nav="live"].is-live, .tabbar__item[data-nav="live"].is-live { animation: none; }
}

/* ── Live : quiz, question à l'écran, présence, trophées du live ─────────── */

/* Le quiz : la carte du sondage, au milieu de l'image ; une lettre par réponse.
   Révélé : la bonne en vert, la sienne en rouge si elle est fausse, et les parts. */
.lv-quiz__tete { color: #7C5AE0; }
.lv-qopt {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 12px 8px 8px; border-radius: 12px; text-align: left;
  background: rgba(21, 64, 50, .05); border: 1px solid rgba(21, 64, 50, .1);
  font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--text);
}
.lv-qopt::before {
  content: ''; position: absolute; inset: 0; z-index: -1; width: var(--p); border-radius: inherit;
  background: linear-gradient(90deg, rgba(124, 90, 224, .2), rgba(124, 90, 224, .1));
  transition: width .8s cubic-bezier(.2, .8, .2, 1);
}
.lv-qopt__lettre {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px;
  background: #fff; color: #5B3FC4; font-size: 12.5px; font-weight: 800; box-shadow: 0 0 0 1px rgba(124, 90, 224, .25);
}
.lv-qopt__txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lv-qopt__p { flex: none; color: #5B3FC4; font-variant-numeric: tabular-nums; }
.lv-qopt .lv-i { width: 17px; height: 17px; flex: none; }
.lv-qopt.is-choix { cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.lv-qopt.is-choix:hover { border-color: #7C5AE0; background: rgba(124, 90, 224, .07); transform: translateY(-1px); }
.lv-qopt.is-choix:hover .lv-qopt__lettre { background: #7C5AE0; color: #fff; }
.lv-qopt.is-mien { border-color: rgba(124, 90, 224, .6); box-shadow: inset 0 0 0 1px rgba(124, 90, 224, .35); }
.lv-qopt.is-mien .lv-qopt__lettre { background: #7C5AE0; color: #fff; }
.lv-qopt.is-bonne { border-color: rgba(29, 158, 117, .65); background: rgba(43, 196, 138, .1); }
.lv-qopt.is-bonne::before { background: linear-gradient(90deg, rgba(43, 196, 138, .42), rgba(29, 158, 117, .24)); }
.lv-qopt.is-bonne .lv-qopt__lettre { background: var(--green); color: #fff; box-shadow: none; }
.lv-qopt.is-bonne .lv-qopt__p, .lv-qopt__ok { color: var(--green3); }
.lv-qopt.is-faux { border-color: rgba(231, 76, 60, .55); background: rgba(231, 76, 60, .07); }
.lv-qopt.is-faux::before { background: linear-gradient(90deg, rgba(231, 76, 60, .22), rgba(231, 76, 60, .1)); }
.lv-qopt.is-faux .lv-qopt__lettre { background: var(--red); color: #fff; box-shadow: none; }
.lv-qopt__ko { color: #B4321C; }
.lv-quiz-ecran.is-gagne { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65), 0 0 0 2px rgba(43, 196, 138, .75); }
.lv-quiz-ecran.is-gagne .lv-sondage__pied, .lv-quiz.is-gagne .lv-sondage__pied { color: var(--green3); font-weight: 800; }
.lv-quiz-ecran.is-rate .lv-sondage__pied, .lv-quiz.is-rate .lv-sondage__pied { color: #B4321C; font-weight: 700; }
.lv-quiz-pastille .lv-i, .lv-quiz-pastille strong { color: #7C5AE0; }
.lv-quiz.is-gagne .lv-quiz__tete, .lv-quiz-ecran.is-gagne .lv-quiz__tete { color: var(--green3); }
.lv-quiz.is-rate .lv-quiz__tete, .lv-quiz-ecran.is-rate .lv-quiz__tete { color: #B4321C; }
@container scene (max-width: 560px) {
  .lv-quiz-ecran .lv-qopt { gap: 8px; padding: 4px 9px 4px 5px; font-size: 12.5px; border-radius: 10px; }
  .lv-quiz-ecran .lv-qopt__lettre { width: 20px; height: 20px; font-size: 10.5px; border-radius: 6px; }
  .lv-quiz-ecran .lv-qopt .lv-i { width: 15px; height: 15px; }
}

/* Le quiz de la régie : ses réponses à mesure, la bonne cochée. */
.lv-reponse--quiz { display: flex; align-items: center; gap: 8px; }
.lv-reponse--quiz input[type=text] { flex: 1; min-width: 0; }
.lv-reponse__bonne {
  flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 9px; cursor: pointer;
  font-size: 11.5px; font-weight: 700; color: var(--muted); background: rgba(21, 64, 50, .04);
}
.lv-reponse__bonne input { margin: 0; accent-color: var(--green); }
.lv-reponse__bonne:has(input:checked) { color: var(--green3); background: rgba(43, 196, 138, .14); }

/* La question d'un membre, sur la vidéo, en bas à gauche (comme dans
   StreamYard) : au-dessus de la bannière, à côté des cartes du bas. Un
   sondage ou un quiz au milieu de l'image : elle s'efface le temps qu'il y est. */
.lv-qecran {
  position: absolute; left: 18px; bottom: 58px; z-index: 4; max-width: min(440px, calc(50% - 10px));
  opacity: 0; transform: translateX(-18px); transition: opacity .35s, transform .5s cubic-bezier(.2, 1.2, .4, 1);
}
.lv-qecran[hidden] { display: none; }
.lv-qecran.is-in { opacity: 1; transform: none; }
.lv-scene:has(.lv-banniere:not([hidden])) .lv-qecran { bottom: 104px; }
.lv-scene:has(.lv-sondage-ecran:not([hidden])) .lv-qecran { display: none; }
.lv-qecran__carte {
  position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px 12px 12px;
  border-radius: 16px; background: rgba(255, 255, 255, .96);
  box-shadow: 0 26px 50px -20px rgba(0, 0, 0, .6), inset 4px 0 0 var(--green2), 0 0 0 1px rgba(29, 158, 117, .18);
}
.lv-qecran__txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lv-qecran__eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.lv-qecran__qui { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.lv-qecran__qui strong { font-size: 14.5px; letter-spacing: -.2px; }
.lv-qecran__rang { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.lv-qecran__texte {
  margin: 2px 0 0; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--text); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lv-qecran .lv-av { flex: none; cursor: default; }
.lv-qecran__carte:has(.lv-qecran__x) .lv-qecran__txt { padding-right: 24px; }
.lv-scene.is-pseudo .lv-qecran { left: max(18px, env(safe-area-inset-left)); bottom: calc(58px + env(safe-area-inset-bottom)); }
.lv-scene.is-pseudo:has(.lv-banniere:not([hidden])) .lv-qecran { bottom: calc(104px + env(safe-area-inset-bottom)); }
/* Une petite image (téléphone) : la question monte en haut, sous « En direct ». */
@container scene (max-width: 560px) {
  .lv-qecran { left: 10px; right: 10px; bottom: auto; top: calc(var(--haut-top) + var(--haut-h) + 8px); max-width: none; transform: translateY(-10px); }
  .lv-scene:has(.lv-banniere:not([hidden])) .lv-qecran { bottom: auto; }
  .lv-qecran__carte { gap: 8px; padding: 8px 10px 8px 9px; border-radius: 12px; }
  .lv-qecran .lv-av, .lv-qecran .lv-av > .cm-av { --av: 32px !important; }
  .lv-qecran__eyebrow { display: none; }
  .lv-qecran__qui strong { font-size: 12.5px; }
  .lv-qecran__rang { display: none; }
  .lv-qecran__texte { font-size: 12.5px; -webkit-line-clamp: 2; }
}

/* Dans le chat : le message à l'écran se distingue, et le bouton de la régie s'allume. */
.lv-msg.is-ecran { background: rgba(43, 196, 138, .08); box-shadow: inset 3px 0 0 var(--green2); }
.lv-msg.is-ecran .lv-msg__tete::after {
  content: 'À l’écran'; margin-left: 2px; padding: 1px 6px; border-radius: 6px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--green);
}
.lv-msg__ecran { color: var(--teal-deep); }
.lv-msg__ecran .lv-i { width: 17px; height: 17px; }
.lv-msg__ecran.is-on { color: #fff; background: var(--green); }
.lv-msg__ecran.is-on:hover { background: var(--green3); }

/* La barre de présence, sous le champ du chat : un quart d'heure, +20 XP. */
.lv-presence { margin-top: 9px; padding: 8px 10px 9px; border-radius: 12px; background: rgba(43, 196, 138, .07); border: 1px solid rgba(29, 158, 117, .16); }
.lv-presence[hidden] { display: none; }
.lv-presence__tete { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--teal-deep); line-height: 1.3; }
.lv-presence__ico { width: 14px; height: 14px; color: var(--green); }
.lv-presence__txt { flex: 1; min-width: 0; }
.lv-presence__paliers { display: flex; gap: 3px; flex: none; }
.lv-presence__paliers span { width: 7px; height: 7px; border-radius: 50%; background: rgba(21, 64, 50, .15); transition: background .3s, transform .3s; }
.lv-presence__paliers span.is-on { background: var(--gold); box-shadow: 0 0 6px rgba(201, 168, 76, .7); }
.lv-presence__barre { height: 6px; margin-top: 6px; border-radius: 999px; overflow: hidden; background: rgba(21, 64, 50, .1); }
.lv-presence__remplie { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1s linear; }
.lv-presence.is-max .lv-presence__remplie { background: linear-gradient(90deg, #FCE7A4, var(--gold)); }
.lv-presence.is-gain { animation: lv-presence-gain .9s ease; }
@keyframes lv-presence-gain { 30% { box-shadow: 0 0 0 4px rgba(201, 168, 76, .35); background: rgba(252, 231, 164, .35); } }
.lv-gain--raison { flex-wrap: wrap; justify-content: center; }
.lv-gain small { font-size: 10.5px; font-weight: 700; opacity: .9; }
.lv-gain--raison { animation-duration: 2.6s; }

/* Les trophées du live, sous la vidéo (membres). */
/* Mes trophées du live, en petit, sous le chat : un titre, le compte, et les cinq médailles côte à
   côte ; leur nom, leur palier et ce qu'il reste à faire s'ouvrent au survol (la fiche des trophées). */
.lv-tl {
  padding: 10px 12px 10px; border-radius: var(--radius);
  background: var(--card); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .65); outline: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.lv-tl[hidden] { display: none; }
.lv-tl__tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lv-tl__tete h2 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; letter-spacing: -.2px; }
.lv-tl__tete h2 .lv-i { width: 15px; height: 15px; color: var(--gold); }
.lv-tl__compte { font-size: 11.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.lv-tl__grille { display: flex; justify-content: space-between; gap: 4px; margin-top: 8px; }
.lv-tl__trophee {
  flex: none; display: grid; place-items: center; padding: 3px; border: 0; border-radius: 12px; background: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), background .2s;
}
.lv-tl__trophee:hover, .lv-tl__trophee:focus-visible { transform: translateY(-2px) scale(1.06); background: rgba(43, 196, 138, .09); outline: none; }
.lv-tl__trophee.is-glow { animation: md-glow 1.8s ease-in-out infinite; }
.lv-tl__trophee .md { flex: none; }
@media (prefers-reduced-motion: reduce) {
  .lv-presence.is-gain, .lv-tl__trophee.is-glow { animation: none; }
  .lv-presence__remplie { transition: none; }
}

/* Le rappel par email (régie) : l'interrupteur, l'ID du déclencheur Wix, le pas-à-pas et l'exemple. */
.modal__card.lv-reg--rappel { max-width: 640px; }
.lv-rappel { display: grid; gap: 14px; }
.lv-rappel .lv-carte { margin: 0; }
.lv-rappel__dernier { display: grid; gap: 3px; padding: 10px 12px; border-radius: 11px; background: rgba(43, 196, 138, .08); border: 1px solid rgba(29, 158, 117, .2); }
.lv-rappel__dernier[hidden] { display: none; }
.lv-rappel__dernier strong { font-size: 13px; }
.lv-rappel__dernier span { font-size: 12.5px; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.lv-rappel__dernier small { font-size: 11.5px; color: #B4321C; }
.lv-rappel__dernier.is-erreur { background: rgba(245, 158, 11, .09); border-color: rgba(217, 119, 6, .3); }
.lv-rappel__dernier.is-erreur span { color: #8A5A06; }
.lv-rappel__exemple { margin: 0 14px 12px; border-radius: 11px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.lv-rappel__exemple-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 11.5px; font-weight: 800; color: var(--teal-deep); }
.lv-rappel__copier { display: inline-flex; align-items: center; gap: 5px; }
.lv-rappel__copier .lv-i { width: 14px; height: 14px; }
.lv-rappel__code {
  margin: 0; padding: 10px 12px; overflow-x: auto; font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text); background: rgba(21, 64, 50, .03); white-space: pre;
}
.lv-rappel .lv-obs > .lv-outil__note { margin: 0 14px 14px; }
.lv-lives__rappel .lv-i { width: 15px; height: 15px; color: var(--green); }

/* ── Onglet « Membres » du super admin (cf. membres.js) ──────────────────────
   Les inscrits pour les setters : les chiffres, la connexion à Hubooia, puis
   un vrai tableau, dix membres par page — la première colonne reste en place
   quand il défile de côté. La page s'élargit pour lui. Sur téléphone, chaque
   ligne devient une carte. La connexion à Hubooia s'ouvre dans une fenêtre. */
.view:has(> .me > .mb) { max-width: 1400px; }
.mb { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mb .card { margin: 0; }
.mb-tete .btn .cm-ico { width: 14px; height: 14px; }
.mb-tete__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mb-exporter .cm-ico { transform: rotate(90deg); }
/* Le bouton Hubooia : un point gris, vert (et qui bat) quand Hubooia est connecté. */
.mb-hb-point { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; }
.mb-hb-bouton.is-on .mb-hb-point { background: var(--green2); animation: mb-pouls 2.4s ease-out infinite; }

/* Les chiffres */
.mb-chiffres { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.mb-chiffres > div:not(.mb-chiffre) { grid-column: 1 / -1; }
.mb-chiffre {
  display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.mb-chiffre strong { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.6px; line-height: 1.1; color: var(--green3); font-variant-numeric: tabular-nums; }
.mb-chiffre span { display: block; font-size: 11.5px; line-height: 1.3; color: var(--muted); }

/* La liste : recherche, filtres, compte */
/* Changer de page en bas d'une longue liste (téléphone) y ramène, sous l'en-tête fixe. */
.card.mb-liste { padding: 18px 20px 0; background: #fff; scroll-margin-top: 74px; }
.mb-outils { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.mb input.mb-recherche {
  flex: 0 1 330px; padding: 10px 14px 10px 38px; font-size: 13.5px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cpath d='m20.5 20.5-4-4'/%3E%3C/svg%3E") no-repeat 13px 50% / 16px;
}
.mb-filtres { display: flex; gap: 6px; flex-wrap: wrap; }
.mb-filtre {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 7px 6px 11px; border-radius: 999px;
  border: 1px solid rgba(21, 64, 50, .12); background: #fff; cursor: pointer;
  font: 700 12.5px var(--font); color: var(--muted); white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.mb-filtre:hover { color: var(--text); border-color: rgba(29, 158, 117, .4); }
.mb-filtre.is-on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -8px rgba(29, 158, 117, .7); }
.mb-filtre__n { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(21, 64, 50, .07); font-size: 11px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.mb-filtre.is-on .mb-filtre__n { background: rgba(255, 255, 255, .24); }
.mb-compte { margin: 12px 0 10px; font-size: 12px; color: var(--muted-2); }
.mb-compte:empty { display: none; }
.mb-vide { margin: 0; padding: 26px 0 30px; text-align: center; font-size: 13.5px; color: var(--muted); }
.mb-table-zone > div:not([class]) { padding-bottom: 18px; }

/* Le tableau */
.mb-table-defile {
  overflow-x: auto; overscroll-behavior-x: contain;
  margin: 0 -20px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
}
.mb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.mb-table th {
  position: sticky; top: 0; z-index: 2; padding: 10px 8px; background: #fff; border-bottom: 1px solid var(--border);
  text-align: left; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2);
}
.mb-table td { padding: 11px 8px; border-bottom: 1px solid rgba(21, 64, 50, .06); white-space: nowrap; vertical-align: middle; background: #fff; transition: background .15s; }
.mb-table tr > :first-child { position: sticky; left: 0; z-index: 1; padding-left: 20px; box-shadow: inset -1px 0 0 rgba(21, 64, 50, .06); }
.mb-table th:first-child { z-index: 3; }
.mb-table tr > :last-child { padding-right: 16px; }
.mb-table tbody tr:last-child td { border-bottom: 0; }
.mb-ligne { cursor: pointer; outline: none; }
.mb-ligne:hover td { background: #F3FBF8; }
.mb-ligne:focus-visible td { background: #EAF8F2; }
.mb-ligne:focus-visible td:first-child { box-shadow: inset 3px 0 0 var(--green), inset -1px 0 0 rgba(21, 64, 50, .06); }
.mb-tri {
  display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
}
.mb-tri:hover, .mb-tri.is-on { color: var(--green3); }
.mb-tri__fleche { font-size: 12px; opacity: .45; }
.mb-tri.is-on .mb-tri__fleche { opacity: 1; }
.mb-tri:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* Les cellules */
.mb-membre { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.mb-membre__id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mb-membre__id strong { max-width: 170px; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.mb-membre__id > span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted-2); }
.mb-hb { padding: 1px 6px; border-radius: 999px; background: rgba(50, 90, 90, .1); color: var(--teal-deep); font-size: 9.5px; font-weight: 800; letter-spacing: .04em; }
.mb-hb.mb-wx { background: rgba(37, 99, 235, .09); color: #1D4ED8; }
.mb-contact { display: flex; flex-direction: column; gap: 2px; }
.mb-tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.mb-tel .cm-ico { width: 13px; height: 13px; color: var(--green); }
.mb-tel:hover { color: var(--green3); }
.mb-mail { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--muted); }
.mb-mail:hover { color: var(--green3); }
.mb-muet { font-size: 12px; color: var(--muted-2); }
.mb-temp {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 800; line-height: 1.2; background: rgba(100, 116, 139, .1); color: #475569;
}
.mb-temp i { width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; }
.mb-temp b { font-weight: 700; opacity: .62; font-variant-numeric: tabular-nums; }
.mb-temp--chaud { background: rgba(249, 115, 22, .12); color: #C2410C; }
.mb-temp--chaud i { background: #F97316; box-shadow: 0 0 0 3px rgba(249, 115, 22, .18); }
.mb-temp--tiede { background: rgba(201, 168, 76, .15); color: #876712; }
.mb-temp--tiede i { background: var(--gold); }
/* Dans le tableau : la pastille, et le score sur 100 dessous. */
.mb-temp-cel { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.mb-temp-cel__score { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; padding-left: 4px; cursor: help; }
.mb-temp-cel__score b { color: var(--text); font-size: 12px; }
/* Dans la fiche : la température expliquée, pilier par pilier. */
.mb-bloc--temp { margin-bottom: 12px; gap: 12px; }
.mb-bloc--temp-chaud { background: linear-gradient(135deg, rgba(249, 115, 22, .08), rgba(249, 115, 22, .02)); border-color: rgba(249, 115, 22, .22); }
.mb-bloc--temp-tiede { background: linear-gradient(135deg, rgba(201, 168, 76, .1), rgba(201, 168, 76, .02)); border-color: rgba(201, 168, 76, .25); }
.mb-temp-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mb-temp-tete h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 14px; }
.mb-temp-tete__score { margin-left: auto; font-size: 24px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.mb-temp-tete__score span { font-size: 13px; color: var(--muted); font-weight: 700; }
.mb-temp-raison { margin: -4px 0 0; font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.mb-pils { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mb-pil { display: grid; grid-template-columns: 150px minmax(80px, 1fr) 54px minmax(0, 1.4fr); align-items: center; gap: 12px; font-size: 12.5px; }
.mb-pil__nom { font-weight: 800; color: var(--teal-deep); }
.mb-pil__barre { height: 8px; border-radius: 999px; background: rgba(21, 64, 50, .08); overflow: hidden; }
.mb-pil__barre i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.mb-bloc--temp-chaud .mb-pil__barre i { background: linear-gradient(90deg, #FDBA74, #F97316); }
.mb-pil__pts { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
.mb-pil__pts b { color: var(--text); font-size: 13px; }
.mb-pil__detail { color: var(--muted); min-width: 0; }
.mb-pil--bonus { padding-top: 7px; border-top: 1px dashed var(--border); }
@media (max-width: 760px) {
  .mb-pil { grid-template-columns: minmax(0, 1fr) 54px; gap: 4px 10px; }
  .mb-pil__barre { grid-column: 1 / -1; grid-row: 2; }
  .mb-pil__detail { grid-column: 1 / -1; }
}
.mb-prog { display: flex; flex-direction: column; gap: 5px; }
.mb-prog strong { font-size: 13px; }
.mb-points { display: inline-flex; gap: 4px; }
.mb-points i { width: 14px; height: 6px; border-radius: 3px; background: rgba(21, 64, 50, .1); }
.mb-points i.is-on { background: var(--grad); }
.mb-barre { display: block; width: 64px; height: 6px; overflow: hidden; border-radius: 3px; background: rgba(21, 64, 50, .1); }
.mb-barre i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.mb-pile { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mb-pile strong { font-size: 13px; }
.mb-pile span { font-size: 11.5px; color: var(--muted); }
.mb-niveau { display: flex; align-items: center; gap: 8px; }
.mb-appel strong { color: var(--green3); }
.mb-activite { font-size: 12.5px; color: var(--muted); }
.mb-pile span.mb-accompagne { color: var(--green3); font-weight: 700; }
/* La colonne « Action », tout à droite et toujours visible : bloquer (ou débloquer), supprimer. */
.mb-table tr > .mb-col--action { position: sticky; right: 0; z-index: 1; padding-left: 10px; box-shadow: inset 1px 0 0 rgba(21, 64, 50, .06); transition: box-shadow .2s; }
.mb-table th.mb-col--action { z-index: 3; }
/* Écran trop étroit : le tableau défile, une ombre dit qu'il en reste sous la colonne « Action ». */
.mb-table-defile.a-suivre tr > .mb-col--action { box-shadow: -14px 0 14px -12px rgba(21, 64, 50, .3), inset 1px 0 0 rgba(21, 64, 50, .06); }
.mb-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.mb-action {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 -8px; padding: 2px 8px; border: 0; border-radius: 8px;
  background: none; cursor: pointer; font: 700 12px/16px var(--font); color: var(--muted); white-space: nowrap;
  transition: color .2s, background .2s;
}
.mb-action .cm-ico { width: 13px; height: 13px; flex: none; }
.mb-action:hover { background: rgba(21, 64, 50, .06); color: var(--text); }
.mb-action:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.mb-action--supprimer { color: #C4314B; }
.mb-action--supprimer:hover { background: rgba(229, 39, 62, .08); color: #A51D35; }
.mb-action--debloquer { color: var(--green3); }
.mb-action--debloquer:hover { background: rgba(43, 196, 138, .1); color: var(--green3); }
/* Un membre bloqué : la pastille rouge près du nom, le reste de la ligne en retrait. */
.mb-bloque { padding: 1px 6px; border-radius: 999px; background: rgba(229, 39, 62, .1); color: #B4233B; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; }
.mb-ligne.is-bloque .cm-av { filter: grayscale(1); opacity: .6; }
.mb-ligne.is-bloque td:not(.mb-col--membre):not(.mb-col--action) > * { opacity: .5; }
.mb-filtre--bloques:not(.is-on) .mb-filtre__n { background: rgba(229, 39, 62, .1); color: #B4233B; }
.mb-filtre--vides:not(.is-on) { border-style: dashed; }
.mb-lien-danger {
  display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 800 12px var(--font); color: #C4314B; vertical-align: baseline;
}
.mb-lien-danger .cm-ico { width: 13px; height: 13px; }
.mb-lien-danger:hover { color: #A51D35; text-decoration: underline; }
.mb-lien-danger:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
/* La question avant de bloquer ou de supprimer. */
.modal__card.mb-question { max-width: 450px; text-align: center; align-items: center; }
.mb-question .modal__lead { margin: -4px 0 0; }
.mb-question__ico {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px;
  color: #D61F3A; background: rgba(229, 39, 62, .1);
}
.mb-question__ico .cm-ico { width: 24px; height: 24px; }
.mb-question__actions { display: flex; justify-content: center; gap: 10px; width: 100%; margin-top: 6px; }
.mb-question__actions .btn { flex: 1 1 auto; white-space: nowrap; }
.mb-question__oui { background: linear-gradient(135deg, #FF5A6B, #E5273E 55%, #C41230); box-shadow: 0 10px 22px -10px rgba(229, 39, 62, .75); }
/* Sous le tableau : « 11–20 sur 921 », puis Précédent, les numéros, Suivant. */
.mb-pages {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
  margin: 0 -20px; padding: 12px 20px 16px; border-top: 1px solid var(--border);
}
.mb-pages__info { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mb-pages__liste { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mb-pages__n, .mb-pages__pas {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(21, 64, 50, .12);
  background: #fff; cursor: pointer; font: 700 13px var(--font); color: var(--text); font-variant-numeric: tabular-nums;
  transition: color .2s, border-color .2s, background .2s;
}
.mb-pages__n:hover, .mb-pages__pas:hover:not(:disabled) { border-color: rgba(29, 158, 117, .45); color: var(--green3); }
.mb-pages__n.is-on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -8px rgba(29, 158, 117, .7); }
.mb-pages__pas:disabled { opacity: .4; cursor: default; }
.mb-pages__n:focus-visible, .mb-pages__pas:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.mb-pages__trou { min-width: 22px; text-align: center; color: var(--muted-2); }

/* La fenêtre Hubooia */
.modal__card.mb-hb-fenetre { position: relative; max-width: 760px; padding: 26px 28px; gap: 0; }
.mb-hb-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 6px 14px; padding-right: 40px; }
.mb-hb-tete .cm-tile { width: 42px; height: 42px; border-radius: 13px; }
.mb-hb-tete .cm-tile .cm-ico { width: 19px; height: 19px; }
.mb-hb-tete__titre h2 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.mb-hb-tete__titre p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.mb-hb-tete .mb-hb-etat { grid-column: 2; justify-self: start; }
.mb-hb-corps { display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.mb-hb-alerte { margin: 0; font-size: 13px; }
.mb-hb-etat {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  background: rgba(100, 116, 139, .1); color: #475569; font-size: 12px; font-weight: 800;
}
.mb-hb-etat i { width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; }
.mb-hb-etat.is-on { background: rgba(43, 196, 138, .12); color: var(--green3); }
.mb-hb-etat.is-on i { background: var(--green2); animation: mb-pouls 2.4s ease-out infinite; }
@keyframes mb-pouls {
  0% { box-shadow: 0 0 0 0 rgba(43, 196, 138, .5); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(43, 196, 138, 0); }
}
.mb-hb-etapes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: etape; font-size: 13.5px; line-height: 1.5; }
.mb-hb-etapes li { display: flex; align-items: baseline; gap: 10px; counter-increment: etape; }
.mb-hb-etapes li::before {
  content: counter(etape); flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 800; transform: translateY(-1px);
}
.mb-hb-adresse { display: grid; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mb-hb-adresse code {
  display: block; padding: 9px 12px; border-radius: 10px; background: rgba(21, 64, 50, .05); border: 1px solid var(--border);
  color: var(--text); font: 500 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere;
}
.mb-hb-form { display: flex; gap: 8px; }
.mb input.mb-hb-url { flex: 1; min-width: 0; padding: 10px 13px; font: 500 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mb-hb-form .btn { flex: none; }
.mb-hb-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mb-hb-option {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, .75); transition: border-color .2s;
}
.mb-hb-option:hover { border-color: rgba(29, 158, 117, .35); }
.mb-hb-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mb-hb-option__bascule { position: relative; flex: none; width: 36px; height: 21px; margin-top: 1px; border-radius: 999px; background: rgba(21, 64, 50, .18); transition: background .2s; }
.mb-hb-option__bascule::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(21, 37, 32, .25); transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.mb-hb-option input:checked + .mb-hb-option__bascule { background: var(--green); }
.mb-hb-option input:checked + .mb-hb-option__bascule::after { transform: translateX(15px); }
.mb-hb-option input:focus-visible + .mb-hb-option__bascule { outline: 2px solid var(--green); outline-offset: 2px; }
.mb-hb-option input:disabled + .mb-hb-option__bascule { opacity: .55; }
.mb-hb-option__txt strong { display: block; font-size: 13.5px; }
.mb-hb-option__txt span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.mb-hb-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mb-hb-actions .cm-ico { width: 14px; height: 14px; }
.mb-hb-off { margin-left: auto; color: #A93226; }
.btn.mb-hb-off:hover:not(:disabled) { color: #A93226; border-color: rgba(231, 76, 60, .35); }
.mb-hb-prog { height: 6px; overflow: hidden; border-radius: 3px; background: rgba(21, 64, 50, .08); }
.mb-hb-prog i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad); transition: width .3s ease; }
.mb-hb-journal h4 { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.mb-journal { display: grid; gap: 2px; max-height: 262px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.mb-journal li {
  display: grid; grid-template-columns: 20px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.5fr) auto; align-items: center; gap: 10px;
  padding: 7px 9px; border-radius: 10px; font-size: 12.5px;
}
.mb-journal li:nth-child(odd) { background: rgba(21, 64, 50, .03); }
.mb-journal__etat { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.mb-journal__etat .cm-ico { width: 11px; height: 11px; }
.mb-journal .is-ok .mb-journal__etat { background: rgba(43, 196, 138, .15); color: var(--green3); }
.mb-journal .is-ko .mb-journal__etat { background: rgba(231, 76, 60, .12); color: #C0392B; }
.mb-journal__qui { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mb-journal__quoi, .mb-journal__msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.mb-journal .is-ko .mb-journal__msg { color: #A93226; }
.mb-journal__le { white-space: nowrap; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.mb-journal__vide { margin: 0; }
.mb-hb-note { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted-2); }

/* « Contacts Wix » : les inscrits dans les contacts Wix, avec l'étiquette « Seqooia Campus » (cf. worker/envois-wix.js).
   Le point du bouton : vert, tous y sont ; orange, il en manque ; rouge, Wix refuse ou la clé manque. */
.mb-wx-bouton.is-attente .mb-hb-point { background: #E8A33D; }
.mb-wx-bouton.is-alerte .mb-hb-point { background: #E5273E; }
.mb-hb-etat.is-attente { background: rgba(232, 163, 61, .15); color: #8F5406; }
.mb-hb-etat.is-attente i { background: #E8A33D; }
.mb-hb-etat.is-ko { background: rgba(229, 39, 62, .1); color: #B4233B; }
.mb-hb-etat.is-ko i { background: #E5273E; }
.mb-wx-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mb-wx-chiffre { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 13px 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.mb-wx-chiffre strong { font-size: 24px; line-height: 1.1; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.mb-wx-chiffre span { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.mb-wx-chiffre small { font-size: 11.5px; line-height: 1.35; color: var(--muted-2); }
.mb-wx-chiffre.is-ok strong { color: var(--green3); }
.mb-wx-chiffre.is-attente strong { color: #B26A00; }
.mb-wx-chiffre.is-ko { border-color: rgba(229, 39, 62, .25); }
.mb-wx-chiffre.is-ko strong { color: #B4233B; }
.mb-wx-refus { display: grid; gap: 4px; }
.mb-wx-refus code { font: 500 11.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; opacity: .75; overflow-wrap: anywhere; }

/* La fiche d'un membre */
.modal__card.mb-fiche { position: relative; max-width: 1000px; padding: 26px 28px; gap: 0; }
.mb-fiche__fermer {
  position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(21, 64, 50, .05); transition: background .2s, color .2s;
}
.mb-fiche__fermer:hover { background: rgba(21, 64, 50, .1); }
.mb-fiche__fermer .cm-ico { width: 15px; height: 15px; }
.mb-fiche__corps { display: grid; gap: 16px; min-width: 0; }
.mb-fiche__tete { display: flex; align-items: center; gap: 18px; padding-right: 40px; }
.mb-fiche__id { min-width: 0; }
.mb-fiche__id h2 { margin: 0; font-size: 23px; letter-spacing: -.5px; }
.mb-fiche__contact { display: flex; flex-wrap: wrap; gap: 3px 16px; margin-top: 4px; font-size: 14px; }
.mb-fiche__contact a { font-weight: 700; color: var(--green3); overflow-wrap: anywhere; }
.mb-fiche__puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mb-puce { padding: 4px 10px; border-radius: 999px; background: rgba(21, 64, 50, .05); font-size: 12px; font-weight: 700; color: var(--muted); }
.mb-puce--hb { background: rgba(50, 90, 90, .1); color: var(--teal-deep); }
.mb-puce--wx { background: rgba(37, 99, 235, .09); color: #1D4ED8; }
.mb-puce--wx-attente { background: rgba(232, 163, 61, .15); color: #8F5406; }
.mb-puce--wx-ko { background: rgba(229, 39, 62, .1); color: #B4233B; }
.mb-puce--bloque { background: rgba(229, 39, 62, .1); color: #B4233B; }
.mb-fiche__acces {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.mb-fiche__acces p { margin: 0; font-size: 12.5px; color: var(--muted); }
.mb-fiche__acces .mb-actions { flex-direction: row; gap: 6px; }
.mb-fiche__acces-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mb-fiche__acces .mb-action--reinit { color: var(--text); }
.mb-fiche__acces .mb-action { margin: 0; padding: 7px 12px; border: 1px solid rgba(21, 64, 50, .12); background: #fff; }
.mb-fiche__acces .mb-action--supprimer { border-color: rgba(229, 39, 62, .25); }
.mb-fiche__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-fiche__actions .cm-ico { width: 14px; height: 14px; }
.mb-court { display: none; }
.mb-fiche__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mb-bloc { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border-radius: 16px; background: rgba(21, 64, 50, .025); border: 1px solid var(--border); }
.mb-bloc h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 14px; }
.mb-bloc__resume { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.45; }
.mb-bloc__note { margin: 0; font-size: 12px; color: var(--muted); }
.mb-bloc--appel { background: linear-gradient(135deg, rgba(43, 196, 138, .1), rgba(29, 158, 117, .04)); border-color: rgba(29, 158, 117, .2); }
.mb-coches { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.mb-coche { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); }
.mb-coche__rond { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(21, 64, 50, .18); }
.mb-coche__rond .cm-ico { width: 11px; height: 11px; }
.mb-coche.is-fait .mb-coche__rond { border-color: transparent; background: var(--grad); color: #fff; }
.mb-coche.is-fait .mb-coche__txt { font-weight: 700; color: var(--text); }
.mb-coche__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-coche__date { font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.mb-lives { display: grid; gap: 4px; max-height: 196px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.mb-lives li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 9px; border-radius: 9px; background: rgba(255, 255, 255, .8); font-size: 12px; }
.mb-lives strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Un live par carte : son titre entier sur une ligne, la date et la durée dessous. */
.mb-lives--empile li { display: grid; gap: 1px; }
.mb-lives--empile span { white-space: normal; }
.mb-lives span { flex: none; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.mb-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; margin: 0; font-size: 12.5px; }
.mb-dl dt { color: var(--muted); }
.mb-dl dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.mb-niveau--grand { gap: 12px; }

@media (max-width: 1180px) {
  .mb-chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mb-fiche__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mb-hb-options { grid-template-columns: minmax(0, 1fr); }
}
/* Téléphone : chaque membre devient une carte — nom et température en haut,
   le contact, puis ses chiffres en trois colonnes, chacun avec son intitulé. */
@media (max-width: 760px) {
  .mb-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mb-chiffre { padding: 11px 12px; gap: 9px; }
  .mb-chiffre strong { font-size: 18px; }
  .card.mb-liste { padding: 14px 14px 0; }
  .mb input.mb-recherche { flex: 1 1 100%; }
  .mb-filtres { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 2px; scrollbar-width: none; }
  .mb-filtres::-webkit-scrollbar { display: none; }
  .mb-filtre { flex: none; }
  .mb-table-defile { overflow: visible; margin: 0 -14px; padding: 0 10px 10px; border-radius: 0; }
  .mb-pages { justify-content: center; margin: 0 -14px; padding: 12px 14px 16px; }
  .mb-pages .mb-long { display: none; }
  .mb-pages .mb-court { display: inline; }
  .mb-table, .mb-table tbody { display: block; }
  .mb-table thead { display: none; }
  .mb-table tbody { display: grid; gap: 10px; padding-top: 10px; }
  .mb-table tr.mb-ligne {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; padding: 14px;
    border-radius: 16px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm);
  }
  .mb-table tr.mb-ligne:hover td, .mb-table tr.mb-ligne:focus-visible td { background: none; }
  .mb-table tr.mb-ligne:focus-visible { border-color: var(--green); box-shadow: 0 0 0 3px rgba(43, 196, 138, .18); }
  .mb-table tr > :first-child, .mb-table tr > :last-child { position: static; padding: 0; box-shadow: none; }
  .mb-table td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal; background: none; }
  .mb-table td::before { content: attr(data-titre); display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
  .mb-table td.mb-col--membre { grid-column: 1 / 3; }
  .mb-table td.mb-col--temperature { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; }
  .mb-table td.mb-col--contact { grid-column: 1 / -1; padding: 10px 0 2px; border-top: 1px solid rgba(21, 64, 50, .07); }
  .mb-table td.mb-col--profil { grid-column: span 2; }
  .mb-table td.mb-col--membre::before, .mb-table td.mb-col--temperature::before, .mb-table td.mb-col--contact::before { content: none; }
  .mb-membre { min-width: 0; }
  .mb-membre__id strong { max-width: none; white-space: normal; }
  .mb-contact { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .mb-mail { max-width: 100%; }
  .mb-pile strong, .mb-pile span { overflow: hidden; text-overflow: ellipsis; }
  .mb-niveau { gap: 6px; }
  .modal__card.mb-hb-fenetre { padding: 20px 16px; }
  .mb-hb-tete { grid-template-columns: minmax(0, 1fr); padding-right: 36px; }
  .mb-hb-tete .mb-hb-etat { grid-column: 1; }
  .mb-tete__actions { width: 100%; }
  .mb-tete__actions .btn { flex: 1 1 auto; }
  .mb-hb-form { flex-direction: column; }
  .mb-hb-off { margin-left: 0; }
  .mb-wx-chiffres { gap: 6px; }
  .mb-wx-chiffre { padding: 10px 9px; }
  .mb-wx-chiffre strong { font-size: 20px; }
  .mb-journal li { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 10px; }
  .mb-journal__le { grid-column: 3; grid-row: 1; }
  .mb-journal__quoi, .mb-journal__msg { grid-column: 2 / -1; }
  .modal__card.mb-fiche { padding: 20px 16px; }
  .mb-fiche__tete { flex-direction: column; align-items: flex-start; gap: 12px; padding-right: 36px; }
  .mb-fiche__grille { grid-template-columns: minmax(0, 1fr); }
  .mb-fiche__actions .btn { flex: 1 1 calc(50% - 4px); white-space: nowrap; }
  .mb-fiche__actions .mb-long { display: none; }
  .mb-fiche__actions .mb-court { display: inline; }
  .mb-table tr > .mb-col--action { position: static; box-shadow: none; }
  .mb-table td.mb-col--action { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid rgba(21, 64, 50, .07); }
  .mb-table td.mb-col--action::before { content: none; }
  .mb-actions { flex-direction: row; justify-content: flex-end; gap: 6px; }
  .mb-action { margin: 0; padding: 7px 12px; background: rgba(21, 64, 50, .04); }
  .mb-fiche__acces .mb-actions { width: 100%; }
  .mb-fiche__acces .mb-action { flex: 1 1 0; justify-content: center; }
  .mb-fiche__acces-boutons { width: 100%; }
  .mb-fiche__acces .mb-action--reinit { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .mb-question__actions { flex-direction: column-reverse; }
  .mb-question__actions .btn { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mb-hb-etat.is-on i, .mb-hb-bouton.is-on .mb-hb-point { animation: none; }
  .mb-hb-option__bascule, .mb-hb-option__bascule::after, .mb-hb-prog i { transition: none; }
}

/* ── Le compteur qui roule (js/compteur.js) ──
   Chaque chiffre est une bande 0…9 dans une case haute d'une ligne : la
   bande glisse jusqu'au bon chiffre. Toutes les cases (chiffres et signes)
   ont la même hauteur et s'alignent par le haut. La hauteur d'une ligne
   (--odo-h) est arrondie au pixel : sinon (18,4 px pour un texte de 16 px),
   le « 3 » remonte de 55,2 px et le « 4 » de 73,6 px, et les chiffres ne
   tombent plus sur la même ligne de pixels — on les voit décalés. ── */
.odo { --odo-h: 1.15em; display: inline-flex; white-space: pre; font-variant-numeric: proportional-nums; line-height: 1.15; }
@supports (height: round(1.15em, 1px)) { .odo { --odo-h: round(1.15em, 1px); } }
.odo__vue { display: inline-flex; }
.odo__case, .odo__signe { display: inline-block; height: var(--odo-h); line-height: var(--odo-h); overflow: hidden; vertical-align: top; }
/* Chaque case a la largeur de son chiffre (js/compteur.js) : elle s'ajuste en roulant. */
.odo__case { transition: width .95s cubic-bezier(.16, .9, .24, 1) calc(var(--i, 0) * 22ms); }
.odo__ruban {
  display: block; white-space: pre; line-height: var(--odo-h); text-align: center;
  transform: translateY(calc(var(--n, 0) * -1 * var(--odo-h)));
  transition: transform .95s cubic-bezier(.16, .9, .24, 1) calc(var(--i, 0) * 22ms);
}
@media (prefers-reduced-motion: reduce) { .odo__case, .odo__ruban { transition: none; } }

/* ── La Forge du Budget (views/forge.js) ──
   Deux colonnes égales, les mêmes de haut en bas : le taux d'épargne et le
   reste à investir ; « Tes chiffres du mois » : tes revenus et Ta Jauge
   financière, puis les dépenses en diaporama ; Ta Sphère financière et
   « Où part ton argent ? » ; tout en bas, les intérêts composés. Les icônes
   sont au trait (aucun émoji).
   Couleurs : vert pour ce qui rentre ; bleu (fixes), magenta (variables),
   ambre (projets) pour ce qui sort — validées pour les daltonismes, et
   toujours accompagnées de leur nom. ── */
.fg {
  --fg-revenus: #1D9E75; --fg-fixes: #3478D4; --fg-variables: #C9418C; --fg-projets: #E3A132; --fg-verse: #8091AC;
  --fg-bord: rgba(21, 64, 50, .08);
  --fg-ombre: 0 1px 2px rgba(21, 64, 50, .04), 0 12px 32px -18px rgba(21, 64, 50, .22);
  --fg-r: 22px; --fg-gap: 18px;
  display: grid; gap: var(--fg-gap);
}
.fg h1, .fg h2, .fg h3, .fg p { margin: 0; }
.fg [hidden] { display: none !important; }

/* Le titre : de l'air au-dessus (sous le sélecteur) et en dessous. */
.fg-tete { display: grid; justify-items: center; gap: 12px; text-align: center; margin: 22px 0 26px; }
.fg-tete__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--green3);
  background: linear-gradient(135deg, rgba(43, 196, 138, .16), rgba(29, 158, 117, .07)); border: 1px solid rgba(29, 158, 117, .22);
}
.fg-tete__ico { display: grid; place-items: center; }
.fg-tete__ico svg { width: 17px; height: 17px; overflow: visible; }
.fg-tete__titre { font-size: clamp(32px, 4.8vw, 46px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; color: var(--text); }
.fg-tete__titre span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fg-tete__objectif { max-width: 540px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ── La grille : deux colonnes égales, les mêmes de haut en bas ──
   Le résultat (taux, reste) ; tes revenus et la jauge ; le diaporama des
   dépenses ; la sphère et « Où part ton argent ? » ; les intérêts composés.
   Un peu plus d'air entre les groupes qu'à l'intérieur. */
.fg-resume, .fg-saisie, .fg-analyse { display: grid; gap: var(--fg-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.fg-analyse, .fg-ic { margin-top: 14px; }

/* Les cartes : blanches, arrondies, une ombre douce. */
.fg-tuile, .fg-ic, .fg-bloc, .fg-carte {
  background: #fff; border: 1px solid var(--fg-bord); border-radius: var(--fg-r); box-shadow: var(--fg-ombre); min-width: 0;
}
.fg-tuile { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.fg-tuile__tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; }
.fg-tuile__nom { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: var(--text); white-space: nowrap; }
.fg-tuile__note { font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: right; white-space: nowrap; }
/* L'icône d'une tuile : au trait, en dégradé vert, sur un carré vert pâle (comme celles de la Communauté). */
.fg-ico {
  flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .16), rgba(29, 158, 117, .06)); border: 1px solid rgba(29, 158, 117, .18);
}
.fg-ico .cm-ico { width: 16px; height: 16px; }
/* Le chiffre (et ce qui l'accompagne) au milieu de la place libre. */
.fg-tuile__corps { display: grid; gap: 10px; margin: auto 0; }
.fg-grand { font-size: 42px; font-weight: 800; letter-spacing: -.035em; color: var(--text); transition: color .4s ease; }
.fg-grand.is-long { font-size: 32px; }
.fg-tuile[data-niveau="vert"] .fg-grand { color: var(--green3); }
.fg-tuile[data-niveau="orange"] .fg-grand { color: #B45309; }
.fg-tuile[data-niveau="rouge"] .fg-grand { color: #DC2626; }
.fg-tuile[data-niveau="vide"] .fg-grand { color: var(--muted-2); }
.fg-tuile__ligne { font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* ── Le résultat, en deux petites tuiles : le chiffre à gauche, son détail à droite ── */
.fg-resume .fg-tuile { gap: 12px; padding: 14px 18px 16px; }
.fg-resume .fg-tuile__tete { min-height: 28px; }
.fg-resume .fg-tuile__nom { gap: 9px; font-size: 13.5px; }
.fg-resume .fg-tuile__note { font-size: 12px; }
.fg-resume .fg-ico { width: 28px; height: 28px; border-radius: 9px; }
.fg-resume .fg-ico .cm-ico { width: 14px; height: 14px; }
.fg-resume .fg-tuile__corps { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 26px; margin: 0; }
.fg-resume .fg-grand { flex: none; font-size: 30px; letter-spacing: -.03em; }
.fg-resume .fg-grand.is-long { font-size: 24px; }
.fg-resume .fg-tuile__ligne { font-size: 12.5px; }
.fg-resume .fg-taux { flex: 1 1 200px; min-width: 0; padding: 11px 0 30px; }
.fg-resume .fg-france { margin-top: 0; padding: 5px 10px; font-size: 12px; }
/* Le reste : le chiffre, et dessous la moyenne française. Rien « par an » : tout se lit par mois. Un mot
   (« Rien à investir pour l'instant », « Tu dépenses plus que tu ne gagnes ») vient à gauche de la moyenne
   quand il y a lieu ; quand la tuile est trop étroite pour les deux (téléphone), la moyenne passe dessous. */
.fg-tuile--reste { container-type: inline-size; }
.fg-resume .fg-tuile--reste .fg-tuile__corps {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "chiffre chiffre" "an france";
  align-items: end; gap: 1px 16px; margin-top: auto;
}
.fg-tuile--reste .fg-grand { grid-area: chiffre; }
.fg-tuile--reste .fg-tuile__ligne { grid-area: an; }
.fg-tuile--reste .fg-france { grid-area: france; justify-self: end; }
.fg-tuile--reste .fg-tuile__ligne[hidden] { display: none; }
.fg-tuile--reste .fg-tuile__ligne[hidden] + .fg-france { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
@container (max-width: 420px) {
  .fg-resume .fg-tuile--reste .fg-tuile__corps { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chiffre" "an" "france"; align-items: center; }
  .fg-tuile--reste .fg-france { justify-self: start; margin-top: 9px; }
}

/* Un petit drapeau français, dessiné. */
.fg-drapeau {
  flex: none; display: inline-block; width: 14px; height: 10px; border-radius: 2.5px;
  background: linear-gradient(90deg, #1F3F99 0 33.4%, #fff 33.4% 66.6%, #E1343F 66.6%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .14);
}

/* ── Le verre des fiches et des bulles de survol ──
   Tout ce qui s'ouvre sous la souris — dans la Forge (la fiche de la sphère, celle de la jauge, la bulle de
   la courbe des intérêts composés, les bulles d'explication des repères), sur les courbes des simulateurs de
   Ma roadmap (.sim-tip) et sur celles des statistiques du live (.sl-bulle) — est une plaque de verre dépoli,
   un peu transparente : ce qu'il y a dessous se devine, flouté et plus vif ; un liseré clair, et un reflet
   en biais dans le coin (::before), comme sur une vitre. Sans flèche. Là où le navigateur ne sait pas
   flouter l'arrière-plan, elles redeviennent presque opaques, pour rester lisibles. */
.fg-fiche, .fg-bulle, .fg-bulle-info, .sim-tip, .sl-bulle {
  isolation: isolate;
  background: linear-gradient(140deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .36)); border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 24px 50px -22px rgba(6, 40, 30, .5), 0 2px 8px rgba(6, 40, 30, .07), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .3);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fg-fiche, .fg-bulle, .fg-bulle-info, .sim-tip, .sl-bulle { background: rgba(255, 255, 255, .96); }
}
.fg-fiche::before, .fg-bulle::before, .fg-bulle-info::before, .sim-tip::before, .sl-bulle::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .14) 26%, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .16) 100%);
}

/* Les bulles d'explication : au survol, au clavier, ou au toucher (le bouton prend le focus). */
.fg-bulle-info {
  position: absolute; bottom: calc(100% + 12px); left: 50%; z-index: 20; width: max-content; max-width: 240px;
  display: grid; gap: 3px; padding: 10px 13px; border-radius: 14px; text-align: left; white-space: normal;
  color: var(--text); font: 600 12.5px/1.35 var(--font); letter-spacing: 0; text-transform: none;
  opacity: 0; visibility: hidden; transform: translate(-50%, 5px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.fg-bulle-info strong { font-size: 13px; font-weight: 800; color: var(--text); }
.fg-bulle-info span { color: #475569; font-size: 12px; font-weight: 500; }

/* ── Le taux d'épargne : sa piste (0 à 40 %) et ses deux repères ── */
.fg-taux { position: relative; padding: 8px 0 36px; }
.fg-piste { position: relative; height: 12px; overflow: hidden; border-radius: 99px; background: #EDF2F0; box-shadow: inset 0 1px 2px rgba(21, 64, 50, .09); }
.fg-piste__rempli {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: var(--grad);
  transition: width 1.1s cubic-bezier(.34, 1.2, .5, 1);
}
.fg-tuile[data-niveau="orange"] .fg-piste__rempli { background: linear-gradient(90deg, #F2C14E, #E3A132 60%, #C98A1E); }
/* Un repère : une tige qui traverse la piste, sa valeur dessous, côté extérieur (la France à gauche, l'objectif à droite). */
.fg-repere {
  position: absolute; top: 2px; z-index: 2; width: 26px; height: 24px; margin-left: -13px; padding: 0;
  border: 0; background: none; color: var(--c); cursor: help; -webkit-tap-highlight-color: transparent;
}
.fg-repere:focus { outline: none; }
.fg-repere:focus-visible .fg-repere__tige { outline: 2px solid var(--c); outline-offset: 3px; }
.fg-repere--france { --c: #2456C8; }
.fg-repere--objectif { --c: #1E293B; }
.fg-repere--objectif.is-atteint { --c: var(--green3); }
.fg-repere__tige {
  position: absolute; left: 50%; top: 0; width: 5px; height: 24px; margin-left: -2.5px; border-radius: 99px; background: var(--c);
  box-shadow: 0 0 0 2px #fff, 0 3px 8px -2px rgba(15, 23, 42, .4);
  transition: transform .3s cubic-bezier(.34, 1.7, .5, 1), background-color .3s ease;
}
.fg-repere__val {
  position: absolute; top: calc(100% + 5px); display: grid; gap: 2px; line-height: 1.1; white-space: nowrap;
  transition: transform .3s cubic-bezier(.34, 1.7, .5, 1);
}
.fg-repere__val b { font-size: 13px; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; transition: color .3s ease; }
.fg-repere__val small { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fg-repere--france .fg-repere__val { right: calc(50% + 3px); justify-items: end; text-align: right; transform-origin: 100% 0; }
.fg-repere--objectif .fg-repere__val { left: calc(50% + 3px); justify-items: start; text-align: left; transform-origin: 0 0; }
/* Au survol : le repère grandit, sa bulle apparaît. */
.fg-repere:hover .fg-repere__tige, .fg-repere:focus .fg-repere__tige { transform: scale(1.3, 1.25); }
.fg-repere:hover .fg-repere__val, .fg-repere:focus .fg-repere__val { transform: scale(1.14); }
.fg-repere:hover, .fg-repere:focus { z-index: 6; }
.fg-repere:hover .fg-bulle-info, .fg-repere:focus .fg-bulle-info,
.fg-france:hover .fg-bulle-info, .fg-france:focus .fg-bulle-info {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}

/* ── Le reste à investir : la moyenne française, détaillée au survol ── */
.fg-france {
  position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 7px 11px;
  border: 0; border-radius: 11px; background: #F2F5FD; color: #1E3A8A; cursor: help;
  font: 600 12.5px var(--font); -webkit-tap-highlight-color: transparent; transition: background-color .2s ease;
}
.fg-france:hover, .fg-france:focus-visible { background: #E8EEFC; }
.fg-france:focus { outline: none; }
.fg-france:focus-visible { outline: 2px solid rgba(36, 86, 200, .5); outline-offset: 2px; }
.fg-france > span:not(.fg-bulle-info) { white-space: nowrap; }
.fg-france b { font-weight: 800; }
.fg-france > .cm-ico { width: 14px; height: 14px; opacity: .6; }

/* ── Les deux grands dessins, Ta Jauge et Ta Sphère financière : le titre seul, centré au-dessus ── */
.fg-dessin__titre {
  display: flex; align-items: center; justify-content: center; min-height: 32px; /* à la hauteur des titres des cartes voisines */
  text-align: center; font-size: 15px; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; color: var(--text);
}
/* Sous le titre de la sphère : ce qu'elle montre. */
.fg-dessin__tete { display: grid; justify-items: center; gap: 1px; text-align: center; }
.fg-dessin__tete .fg-dessin__titre { min-height: 26px; }
.fg-dessin__sous { font-size: 13px; font-weight: 500; color: var(--muted); }
/* Une partie qui mène à sa carte, au clic. */
.fg .fg-cliquable { cursor: pointer; }
/* ── Le conseil, sous la sphère : une phrase d'après la règle 50/30/20 ──
   Vert quand tout va bien, ambre quand il y a quelque chose à ajuster, rouge quand les dépenses dépassent les revenus. */
.fg-conseil {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: 14px;
  font-size: 12.5px; line-height: 1.5; color: #3D5048; background: #F2F8F5; border: 1px solid rgba(29, 158, 117, .16);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.fg-conseil strong { font-weight: 800; color: var(--text); }
.fg-conseil__ico {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -1px; border-radius: 9px;
  color: var(--green3); background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 158, 117, .22); transition: color .3s ease, box-shadow .3s ease;
}
.fg-conseil__ico .cm-ico { width: 14px; height: 14px; }
.fg-conseil__texte { min-width: 0; }
.fg-conseil[data-niveau="ajuster"] { color: #6B4E16; background: #FFF8EC; border-color: rgba(227, 161, 50, .32); }
.fg-conseil[data-niveau="ajuster"] .fg-conseil__ico { color: #B4770F; box-shadow: inset 0 0 0 1px rgba(227, 161, 50, .4); }
.fg-conseil[data-niveau="alerte"] { color: #7F1D1D; background: #FEF2F2; border-color: rgba(220, 38, 38, .24); }
.fg-conseil[data-niveau="alerte"] .fg-conseil__ico { color: #DC2626; box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .32); }
.fg-conseil[data-niveau="vide"] { color: var(--muted); background: #F6F8F8; border-color: #EDF1F0; }
.fg-conseil[data-niveau="vide"] .fg-conseil__ico { color: var(--muted); box-shadow: inset 0 0 0 1px #DDE6E2; }

/* ── Ta Sphère financière : un grand anneau, et la légende à côté ──
   Au survol d'une part (ou de sa ligne), elle ressort et sa fiche s'ouvre ; un clic mène à sa carte. */
.fg-sphere { flex: 1; display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: center; gap: 30px; padding: 4px 6px 4px 4px; }
.fg-sphere__dessin { position: relative; width: 232px; aspect-ratio: 1; }
.fg-sphere__svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 14px rgba(21, 64, 50, .1)); }
.fg-sphere__fond { fill: none; stroke: #F1F5F4; }
.fg-sphere__part { fill: none; cursor: pointer; transition: stroke-width .25s ease, opacity .25s ease; }
.fg-tuile--sphere[data-actif] .fg-sphere__part { opacity: .22; }
.fg-tuile--sphere[data-actif="fixes"] .fg-sphere__part--fixes,
.fg-tuile--sphere[data-actif="variables"] .fg-sphere__part--variables,
.fg-tuile--sphere[data-actif="projets"] .fg-sphere__part--projets { opacity: 1; stroke-width: 33px; }
.fg-sphere__centre { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center; pointer-events: none; }
.fg-sphere__centre-nom { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.fg-sphere__centre-n { font-size: 25px; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.fg-sphere__centre-n.is-long { font-size: 19px; }
.fg-sphere__centre-detail { font-size: 12px; font-weight: 600; color: var(--muted); }
.fg-tuile--sphere.is-vide .fg-sphere__dessin { opacity: .55; }
.fg-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
/* Une ligne de légende : le nom ; dessous, la part et le montant. */
.fg-leg__ligne {
  display: grid; grid-template-columns: 10px minmax(0, 1fr); grid-template-areas: "puce nom" ". chiffres";
  align-items: center; gap: 3px 10px; padding: 8px 11px; border-radius: 12px; cursor: default; transition: background-color .15s ease, opacity .2s ease;
}
.fg-leg__ligne:hover, .fg-tuile--sphere[data-actif="fixes"] .fg-leg__ligne:nth-child(1),
.fg-tuile--sphere[data-actif="variables"] .fg-leg__ligne:nth-child(2),
.fg-tuile--sphere[data-actif="projets"] .fg-leg__ligne:nth-child(3) { background: color-mix(in srgb, var(--c) 9%, #fff); }
.fg-leg__ligne.is-nul { opacity: .5; }
.fg-leg__ligne:focus { outline: none; }
.fg-leg__ligne:focus-visible { outline: 2px solid color-mix(in srgb, var(--c) 50%, transparent); outline-offset: 1px; }
.fg-leg__puce { grid-area: puce; width: 10px; height: 10px; border-radius: 3.5px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 65%, #fff), var(--c)); }
.fg-leg__nom { grid-area: nom; min-width: 0; font-size: 13.5px; font-weight: 700; color: #1E293B; }
.fg-leg__chiffres { grid-area: chiffres; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fg-leg__part { font-size: 13.5px; font-weight: 800; color: var(--text); }
.fg-leg__montant { font-size: 12px; color: var(--muted); }
.fg-leg__montant::before { content: '·'; margin-right: 6px; color: var(--muted-2); }

/* ── Ta Jauge financière : le titre centré, deux tubes, une vague à la surface ; la légende dessous ──
   Au survol d'une couche (ou de sa ligne), elle ressort, et sa petite fiche se pose à côté du tube ;
   un clic mène à sa carte. */
.fg-tuile--jauge { gap: 14px; }
.fg-jauge { flex: 1; display: flex; align-items: stretch; justify-content: center; min-height: 250px; }
.fg-jauge__tubes { display: grid; grid-template-columns: repeat(2, 92px); gap: 0 32px; }
.fg-tube { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; gap: 9px; min-height: 0; }
.fg-tube__montant { font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.fg-tube__nom { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fg-tube__verre { position: relative; width: 92px; height: 100%; min-height: 180px; }
.fg-tube__dedans {
  position: absolute; inset: 0; isolation: isolate; overflow: hidden; border-radius: 28px;
  background: linear-gradient(180deg, #F7FAF9, #E8EFEC);
  box-shadow: inset 0 2px 6px rgba(21, 64, 50, .10), inset 0 0 0 1px rgba(21, 64, 50, .07);
}
/* Le reflet du verre, par-dessus le liquide. */
.fg-tube__dedans::after {
  content: ''; position: absolute; z-index: 4; top: 14px; bottom: 16px; left: 12px; width: 8px; border-radius: 99px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .18) 70%, rgba(255, 255, 255, 0));
}
/* Des graduations, comme sur une éprouvette. */
.fg-tube__graduations { position: absolute; z-index: 3; right: 11px; top: 16%; bottom: 10%; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.fg-tube__graduations i { display: block; width: 7px; height: 1.5px; border-radius: 1px; background: rgba(21, 64, 50, .2); }
.fg-tube__graduations i:nth-child(odd) { width: 12px; }
.fg-tube__liquide {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 0;
  transition: height 1.2s cubic-bezier(.34, 1.16, .44, 1), opacity .22s ease, filter .22s ease;
}
.fg-tube--entree .fg-tube__liquide { background: linear-gradient(180deg, #3FCF97 0%, #1D9E75 55%, #14755C 100%); --vague: #3FCF97; }
.fg-tube__couches { position: absolute; inset: 0; display: flex; flex-direction: column; }
.fg-tube__couche {
  flex: none; height: 0; transition: height 1.2s cubic-bezier(.34, 1.16, .44, 1), opacity .22s ease, filter .22s ease;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 74%, #fff), var(--c));
}
.fg-tube__couche + .fg-tube__couche { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
/* La surface : deux vagues qui ondulent sans fin, l'une derrière l'autre. */
.fg-vague {
  position: absolute; left: 0; bottom: calc(100% - 1px); width: 200%; height: 10px; fill: var(--vague);
  animation: fg-vague 3.2s linear infinite; transition: opacity .3s ease, fill .6s ease;
}
.fg-vague--fond { height: 13px; opacity: .45; animation-duration: 5.4s; animation-direction: reverse; }
.fg-tube__liquide.is-vide .fg-vague { opacity: 0; }
@keyframes fg-vague { to { transform: translateX(-50%); } }
/* L'écart entre les entrées et les sorties — ce qui reste (vert), ou ce qui dépasse (rouge) : le haut du
   tube, hachuré sur toute sa largeur, sans cadre. */
.fg-tube__fantome {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 0;
  background: repeating-linear-gradient(-45deg, rgba(29, 158, 117, .22) 0 5px, rgba(29, 158, 117, .05) 5px 10px);
  transition: bottom 1.2s cubic-bezier(.34, 1.16, .44, 1), height 1.2s cubic-bezier(.34, 1.16, .44, 1), opacity .22s ease;
}
.fg-tube__fantome.is-nul { opacity: 0 !important; }
.fg-tube__fantome.is-deficit { background: repeating-linear-gradient(-45deg, rgba(220, 38, 38, .3) 0 5px, rgba(220, 38, 38, .08) 5px 10px); }
/* Son montant : au-dessus du plus haut des deux niveaux, jamais sur les couches. */
.fg-tube__ecart {
  position: absolute; z-index: 5; left: 50%; bottom: 0; transform: translateX(-50%);
  padding: 4px 9px; border-radius: 99px; white-space: nowrap; font-size: 12px; font-weight: 800; letter-spacing: -.01em;
  background: #fff; color: var(--green3); box-shadow: 0 6px 16px -6px rgba(21, 64, 50, .4), inset 0 0 0 1px rgba(29, 158, 117, .28);
  transition: bottom 1.2s cubic-bezier(.34, 1.16, .44, 1), color .3s ease, opacity .22s ease;
}
.fg-tube__ecart.is-deficit { color: #B91C1C; box-shadow: 0 6px 16px -6px rgba(185, 28, 28, .45), inset 0 0 0 1px rgba(220, 38, 38, .3); }
/* Sous les tubes, la légende sur une ligne : chaque entrée mène à sa carte (sauf le reste, qui se calcule). */
.fg-jauge__legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.fg-jauge__puce {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 0; border-radius: 9px; background: none;
  font: 600 12.5px var(--font); color: var(--muted); white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, color .15s ease;
}
.fg-jauge__puce:hover { background: color-mix(in srgb, var(--c, #1D9E75) 9%, #fff); color: var(--text); }
.fg-jauge__puce:focus { outline: none; }
.fg-jauge__puce:focus-visible { outline: 2px solid color-mix(in srgb, var(--c, #1D9E75) 50%, transparent); outline-offset: 1px; }
.fg-jauge__puce i { flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.fg-jauge__puce i.is-reste { background: repeating-linear-gradient(-45deg, rgba(29, 158, 117, .6) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px rgba(29, 158, 117, .45); }
/* Le survol : la partie choisie ressort, le reste s'estompe à peine — la jauge reste lisible. */
.fg-vague { pointer-events: none; }
.fg-tuile--jauge[data-actif] .fg-tube__liquide,
.fg-tuile--jauge[data-actif] .fg-tube__fantome,
.fg-tuile--jauge[data-actif] .fg-tube__ecart { opacity: .5; }
.fg-tuile--jauge[data-actif="revenus"] .fg-tube--entree .fg-tube__liquide,
.fg-tuile--jauge[data-actif="fixes"] .fg-tube--sortie .fg-tube__liquide,
.fg-tuile--jauge[data-actif="variables"] .fg-tube--sortie .fg-tube__liquide,
.fg-tuile--jauge[data-actif="projets"] .fg-tube--sortie .fg-tube__liquide,
.fg-tuile--jauge[data-actif="reste"] .fg-tube__fantome,
.fg-tuile--jauge[data-actif="reste"] .fg-tube__ecart { opacity: 1; }
.fg-tuile--jauge[data-actif="fixes"] .fg-tube__couche:not(.fg-tube__couche--fixes),
.fg-tuile--jauge[data-actif="variables"] .fg-tube__couche:not(.fg-tube__couche--variables),
.fg-tuile--jauge[data-actif="projets"] .fg-tube__couche:not(.fg-tube__couche--projets) { opacity: .5; }
.fg-tuile--jauge[data-actif="revenus"] .fg-tube--entree .fg-tube__liquide,
.fg-tuile--jauge[data-actif="fixes"] .fg-tube__couche--fixes,
.fg-tuile--jauge[data-actif="variables"] .fg-tube__couche--variables,
.fg-tuile--jauge[data-actif="projets"] .fg-tube__couche--projets { filter: brightness(1.07) saturate(1.15); }
.fg-tuile--jauge[data-actif="revenus"] .fg-jauge__legende li:nth-child(1) .fg-jauge__puce,
.fg-tuile--jauge[data-actif="fixes"] .fg-jauge__legende li:nth-child(2) .fg-jauge__puce,
.fg-tuile--jauge[data-actif="variables"] .fg-jauge__legende li:nth-child(3) .fg-jauge__puce,
.fg-tuile--jauge[data-actif="projets"] .fg-jauge__legende li:nth-child(4) .fg-jauge__puce,
.fg-tuile--jauge[data-actif="reste"] .fg-jauge__legende li:nth-child(5) .fg-jauge__puce { background: color-mix(in srgb, var(--c, #1D9E75) 9%, #fff); color: var(--text); }

/* ── La fiche de survol : une plaque de verre au-dessus du pointeur (cf. « Le verre des fiches », plus haut) ── */
.fg-fiche {
  position: fixed; z-index: 70; left: 0; top: 0; width: max-content; min-width: 210px; max-width: 270px;
  padding: 13px 15px 13px; border-radius: 18px; pointer-events: none;
  font-size: 12.5px; line-height: 1.4; color: #475569;
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.97); transform-origin: var(--fleche, 50%) 100%;
  transition: opacity .16s ease, transform .2s cubic-bezier(.34, 1.4, .5, 1), visibility 0s linear .16s;
}
.fg-fiche.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.fg-fiche.is-dessous { transform-origin: var(--fleche, 50%) 0; }
.fg-fiche__tete { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .01em; color: #1E293B; }
.fg-fiche__tete i { flex: none; width: 10px; height: 10px; border-radius: 3.5px; background: var(--c); }
/* Le crayon : un clic mène à la carte où l'on change ces chiffres. */
.fg-fiche__tete > .cm-ico { flex: none; width: 12px; height: 12px; margin-left: auto; padding-left: 4px; color: var(--muted-2); }
.fg-fiche__tete.is-reste i { background: repeating-linear-gradient(-45deg, rgba(29, 158, 117, .55) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1.5px rgba(29, 158, 117, .85); }
.fg-fiche__tete.is-deficit i { background: repeating-linear-gradient(-45deg, rgba(220, 38, 38, .6) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1.5px rgba(220, 38, 38, .85); }
.fg-fiche__montant { display: flex; align-items: baseline; gap: 6px; margin-top: 7px; font-size: 21px; font-weight: 800; letter-spacing: -.025em; color: var(--text); font-variant-numeric: tabular-nums; }
.fg-fiche__montant small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.fg-fiche__note { margin: 3px 0 0 !important; font-size: 12px; }
.fg-fiche__detail { margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(21, 64, 50, .1); }
.fg-fiche__dont { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.fg-fiche__detail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fg-fiche__detail li { display: flex; justify-content: space-between; gap: 16px; }
.fg-fiche__detail li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; }
.fg-fiche__detail li b { flex: none; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
/* La mini (la jauge) : petite, sur un verre dépoli à peine teinté — la jauge reste visible autour et dessous ;
   posée à côté du tube, sans flèche. */
.fg-fiche--mini {
  min-width: 0; max-width: 230px; padding: 7px 11px 8px; border-radius: 12px;
  background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: 0 10px 26px -14px rgba(6, 40, 30, .4), 0 0 0 1px rgba(21, 64, 50, .07);
  font-size: 11.5px; line-height: 1.3; transform: scale(.94);
}
.fg-fiche--mini[data-cote="droite"] { transform-origin: 0 50%; }
.fg-fiche--mini[data-cote="gauche"] { transform-origin: 100% 50%; }
.fg-fiche--mini[data-cote="bas"] { transform-origin: 50% 0; }
.fg-fiche--mini .fg-fiche__tete { gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0; }
.fg-fiche--mini .fg-fiche__tete i { width: 8px; height: 8px; border-radius: 2.5px; }
.fg-fiche--mini .fg-fiche__tete > .cm-ico { width: 11px; height: 11px; }
.fg-fiche__chiffres { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; white-space: nowrap; }
.fg-fiche__chiffres b { font-size: 14px; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.fg-fiche__chiffres span { font-size: 11px; font-weight: 600; color: #475569; }

/* ── Les intérêts composés ── */
.fg-ic { display: flex; flex-direction: column; padding: 18px 22px 20px; }
/* L'en-tête : le titre et la phrase à gauche, le résultat à droite ; dessous, la légende de la courbe. */
.fg-ic__tete {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "intro resultat" "puces puces";
  align-items: start; gap: 14px 24px;
}
.fg-ic__intro { grid-area: intro; display: grid; gap: 10px; min-width: 0; }
/* Le titre : nettement plus grand que la phrase qui le suit. */
.fg-ic__titre { min-height: 38px; gap: 12px; font-size: 21px; letter-spacing: -.025em; }
.fg-ic__titre .fg-ico { width: 38px; height: 38px; border-radius: 12px; }
.fg-ic__titre .fg-ico .cm-ico { width: 19px; height: 19px; }
.fg-ic__phrase { font-size: 15px; line-height: 1.45; color: var(--muted); }
.fg-ic__phrase strong { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.fg-ic__puces { grid-area: puces; align-self: end; display: flex; flex-wrap: wrap; gap: 8px; }
.fg-ic__puce {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); background: #F6F8F8; border: 1px solid #EDF1F0;
}
.fg-ic__puce i { width: 10px; height: 10px; border-radius: 3px; }
.fg-ic__puce--verse i { background: var(--fg-verse); }
.fg-ic__puce--interets i { background: linear-gradient(135deg, #2BC48A, #14755C); }
.fg-ic__puce-n { font-weight: 800; color: var(--text); font-size: 13px; }
.fg-ic__resultat { grid-area: resultat; display: grid; justify-items: end; gap: 2px; padding-top: 4px; text-align: right; }
.fg-ic__dans { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fg-ic__total-n { font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: var(--green3); }
.fg-ic__total-n.is-long { font-size: 30px; }
.fg-ic__cadre { position: relative; margin-top: 16px; }
.fg-ic__svg { display: block; width: 100%; overflow: visible; touch-action: pan-y; }
.fg-ic__grille line { stroke: #E8EEEC; stroke-width: 1; stroke-dasharray: 3 5; }
.fg-ic__grille line.is-base { stroke: #D3DDD9; stroke-dasharray: none; }
.fg-ic__grille text, .fg-ic__axe-x text { font-family: var(--font); font-size: 11.5px; font-weight: 600; fill: #94A3B8; font-variant-numeric: tabular-nums; }
.fg-ic__ligne { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fg-ic__ligne--valeur { stroke-width: 3; filter: drop-shadow(0 4px 6px rgba(20, 117, 92, .25)); }
.fg-ic__ligne--verse { stroke: var(--fg-verse); stroke-width: 2; stroke-dasharray: 6 5; }
.fg-ic__fin-point { fill: #14755C; stroke: #fff; stroke-width: 2.5; }
.fg-ic__fin-halo { fill: rgba(29, 158, 117, .22); transform-box: fill-box; transform-origin: center; animation: fg-halo 2.4s ease-out infinite; }
@keyframes fg-halo { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.fg-ic__fin { transition: opacity .3s ease; }
.fg-ic__repere-ligne { stroke: #94A3B8; stroke-width: 1; stroke-dasharray: 3 3; }
.fg-ic__repere-point { stroke: #fff; stroke-width: 2.5; }
.fg-ic__repere-point--valeur { fill: #14755C; }
.fg-ic__repere-point--verse { fill: var(--fg-verse); }
.fg-ic__zone { cursor: crosshair; }
.fg-ic.is-vide .fg-ic__aire, .fg-ic.is-vide .fg-ic__ligne { opacity: .25; }
.fg-ic.is-vide .fg-ic__total-n { color: var(--muted-2); }
.fg-ic__vide {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(380px, 90%); padding: 12px 16px; border-radius: 14px;
  text-align: center; font-size: 13.5px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm);
}
/* La bulle de la courbe : en verre, comme les fiches (cf. « Le verre des fiches », plus haut). */
.fg-bulle {
  position: absolute; z-index: 3; transform: translateX(-50%); display: grid; gap: 4px; min-width: 172px; padding: 11px 13px; border-radius: 16px;
  font-size: 12.5px; pointer-events: none; white-space: nowrap;
}
.fg-bulle strong { font-size: 12px; color: #475569; font-weight: 800; }
.fg-bulle__ligne { display: grid; grid-template-columns: 10px auto 1fr; align-items: center; gap: 7px; color: #475569; }
.fg-bulle__ligne b { justify-self: end; color: var(--text); font-variant-numeric: tabular-nums; }
.fg-bulle__ligne i { width: 9px; height: 9px; border-radius: 3px; }
.fg-bulle__ligne--valeur i { background: #14755C; }
.fg-bulle__ligne--interets i { background: #2BC48A; }
.fg-bulle__ligne--verse i { background: var(--fg-verse); }
/* L'avertissement : bien détaché de l'axe, dans son encadré. */
/* L'avertissement : du texte simple, sans encadré, bien détaché de l'axe des années. */
.fg-ic .fg-ic__avertissement {
  display: flex; align-items: flex-start; gap: 8px; margin: 34px 0 0; padding: 0 2px;
  font-size: 12px; line-height: 1.55; color: var(--muted-2);
}
.fg-ic__avertissement > .cm-ico { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--muted-2); }
.fg-ic__avertissement strong { color: var(--muted); font-weight: 800; }
/* ── L'appel, pour finir : de la simulation à la stratégie ──
   Un bandeau vert profond (celui du bloc d'appel des autres pages), qu'on ne peut pas manquer : le texte en
   blanc, le téléphone dans une pastille vert fluo qui sonne (deux ondes s'en échappent), et le bouton, vert
   fluo lui aussi, qui bat. */
.fg-ic__appel {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; margin-top: 24px; padding: 22px 24px 22px 28px; border-radius: 20px;
  color: #fff; background: radial-gradient(closest-side at 86% -30%, rgba(255, 255, 255, .22), transparent), var(--gradTeal);
  box-shadow: 0 20px 38px -22px rgba(20, 90, 75, .75), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.fg-ic__appel-ico {
  position: relative; flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #063B2A;
  background: linear-gradient(135deg, #7DFFC0 0%, #3BF59B 50%, #1EDB80 100%); box-shadow: 0 10px 22px -10px rgba(59, 245, 155, .9), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.fg-ic__appel-ico::before, .fg-ic__appel-ico::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(125, 255, 192, .75);
  animation: fo-onde 2.6s cubic-bezier(.2, .7, .3, 1) infinite;
}
.fg-ic__appel-ico::after { animation-delay: 1.3s; }
.fg-ic__appel-ico .cm-ico { position: relative; z-index: 1; width: 22px; height: 22px; transform-origin: 50% 55%; animation: fg-sonne 2.6s ease-in-out infinite; }
.fg-ic__appel-texte { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.fg-ic__appel-texte strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: #fff; }
/* Le bouton d'appel de la Forge : il bat doucement (deux petits coups, puis une onde), et le téléphone devant
   son nom sonne. Au survol, il se tient tranquille. */
.fg-appel { flex: none; white-space: nowrap; padding: 15px 34px; font-size: 15px; animation: fo-battement 2.6s ease-in-out infinite; }
.fg-appel:hover, .fg-appel:focus-visible { animation-play-state: paused; }
@keyframes fg-sonne {
  0%, 30%, 100% { rotate: 0deg; }
  4% { rotate: -18deg; } 8% { rotate: 16deg; } 12% { rotate: -14deg; } 16% { rotate: 12deg; } 20% { rotate: -8deg; } 25% { rotate: 4deg; }
}
/* Sur le bandeau sombre : vert fluo, texte vert profond (comme le bouton du bloc d'appel des autres pages). */
.fg-ic__bouton {
  --flow-fg: #053B29; --flow-bd: transparent; --flow-fill: #0E5E4A; --flow-fg-on: #fff;
  background: linear-gradient(135deg, #7DFFC0 0%, #3BF59B 50%, #1EDB80 100%);
  box-shadow: 0 10px 26px -10px rgba(59, 245, 155, .85), inset 0 1px 0 rgba(255, 255, 255, .55);
  animation-name: fg-battement;
}
.fg-ic__bouton:hover { box-shadow: 0 14px 30px -10px rgba(59, 245, 155, .9); }
@keyframes fg-battement {
  0%, 30%, 100% { scale: 1; box-shadow: 0 10px 26px -10px rgba(59, 245, 155, .85), inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 0 rgba(125, 255, 192, .6); }
  7% { scale: 1.045; }
  14% { scale: 1; }
  21% { scale: 1.045; }
  60% { box-shadow: 0 10px 26px -10px rgba(59, 245, 155, .85), inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 16px rgba(125, 255, 192, 0); }
}

/* ── « Tes chiffres du mois » : le titre, les deux boutons ; un mot seulement si l'enregistrement bloque ── */
.fg-barre { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-top: 14px; }
.fg-barre__titre { font-size: 22px; font-weight: 800; letter-spacing: -.025em; color: var(--text); }
.fg-barre__aide { margin-top: 4px !important; font-size: 14px; color: var(--muted); }
.fg-barre__intro { flex: 1 1 300px; min-width: 0; }
.fg-barre__droite { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.fg-statut {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 11px;
  font-size: 12.5px; font-weight: 700; color: #92400E; background: #FEF3C7;
}
.fg-statut .cm-ico { width: 16px; height: 16px; }
.fg-statut[data-etat="refus"] { color: #991B1B; background: #FEE2E2; }
.fg-bouton {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 12px; border-radius: 11px; border: 1px solid #DDE6E2; background: #fff; cursor: pointer;
  font: 700 12.5px var(--font); color: var(--text); box-shadow: 0 1px 2px rgba(21, 64, 50, .05);
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.fg-bouton .cm-ico { width: 15px; height: 15px; color: var(--muted); transition: color .15s ease; }
.fg-bouton:hover { border-color: var(--green); color: var(--green3); background: #F7FCFA; }
.fg-bouton:hover .cm-ico { color: var(--green3); }
.fg-bouton:focus-visible { outline: 3px solid rgba(29, 158, 117, .35); outline-offset: 2px; }

/* ── Un bloc à remplir (tes revenus, et chaque carte de dépenses) ── */
.fg-bloc { position: relative; overflow: hidden; display: flex; flex-direction: column; }
/* Atteint depuis la jauge ou la sphère (un clic sur sa couleur) : un anneau de sa couleur se resserre, puis s'efface. */
.fg-bloc.is-signale { animation: fg-signale 1.7s cubic-bezier(.3, .7, .4, 1); }
@keyframes fg-signale {
  0% { outline: 3px solid color-mix(in srgb, var(--c) 0%, transparent); outline-offset: 16px; }
  24% { outline: 3px solid color-mix(in srgb, var(--c) 70%, transparent); outline-offset: 4px; }
  62% { outline: 3px solid color-mix(in srgb, var(--c) 52%, transparent); outline-offset: 4px; }
  100% { outline: 3px solid color-mix(in srgb, var(--c) 0%, transparent); outline-offset: 4px; }
}
.fg-bloc__contenu { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }
/* Sa grande icône en filigrane, dans le coin (comme les cartes de L'école). */
.fg-bloc__filigrane {
  position: absolute; right: -28px; bottom: -30px; width: 168px; height: 168px; color: var(--c); opacity: .07;
  transform: rotate(-12deg); pointer-events: none;
}
.fg-bloc__filigrane .cm-ico { width: 100%; height: 100%; }
.fg-bloc__filigrane svg { stroke-width: 1.3; }
.fg-bloc__tete {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px 13px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 8%, #fff), #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--c) 12%, #EEF2F1);
}
.fg-bloc__ico {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--c); background: #fff;
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--c) 75%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--c) 24%, transparent);
}
.fg-bloc__ico .cm-ico { width: 18px; height: 18px; }
.fg-bloc__titres { flex: 1; min-width: 0; display: grid; gap: 1px; }
.fg-bloc__titres h3 { font-size: 15px; font-weight: 800; letter-spacing: -.015em; color: var(--text); }
.fg-bloc__sous { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.fg-bloc__total { display: grid; justify-items: end; gap: 1px; }
.fg-bloc__total-n { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.fg-bloc__total-nom { font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); }
.fg-bloc__lignes { padding: 6px 10px 10px; }
.fg-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 3px 4px 3px 8px; border-radius: 10px; transition: background-color .15s ease; }
.fg-ligne + .fg-ligne { box-shadow: 0 -1px 0 #F2F5F4; }
.fg-ligne:hover, .fg-ligne:focus-within { background: color-mix(in srgb, var(--c) 5%, #fff); box-shadow: none; }
.fg-ligne:hover + .fg-ligne, .fg-ligne:focus-within + .fg-ligne { box-shadow: none; }
.fg-ligne__nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: #334155; cursor: text; }
/* Le champ : le montant à droite, en graisse normale (le total, lui, est en gras), « € » dans sa propre case. */
.fg-champ {
  flex: none; display: flex; align-items: center; width: 112px; height: 30px; border-radius: 9px;
  background: #F7FAF9; border: 1px solid #E2E9E6; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.fg-champ:hover { border-color: #C9D7D2; }
.fg-champ:focus-within { background: #fff; border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.fg-champ input {
  flex: 1; min-width: 0; height: 100%; padding: 0 2px 0 8px; border: 0; outline: 0; background: transparent; text-align: right;
  font-family: var(--font); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: #1E293B;
}
.fg-champ input::placeholder { color: #B4C1BC; }
.fg-champ__euro { flex: none; padding: 0 10px 0 6px; font-size: 13px; font-weight: 600; color: #94A3B8; }
/* Le pied d'une carte de dépenses : sa part des sorties. */
.fg-bloc__pied { margin-top: auto; display: grid; gap: 7px; padding: 12px 16px 15px; border-top: 1px solid #F2F5F4; }
.fg-bloc__pied-texte { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.fg-bloc__pied-texte b { font-size: 13px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.fg-bloc__pied-piste { height: 6px; overflow: hidden; border-radius: 99px; background: #F1F5F4; }
.fg-bloc__pied-rempli {
  display: block; width: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 65%, #fff), var(--c)); transition: width .9s cubic-bezier(.34, 1.15, .5, 1);
}

/* Tes revenus : ce que ça fait sur un an, en grand — le chiffre qu'on retient. */
/* Sous les revenus : le salaire moyen en France (le même repère bleu que la moyenne d'épargne), sur toute la largeur. */
.fg-bloc--revenus .fg-bloc__pied { padding: 12px 14px 14px; }
.fg-france--salaire { justify-self: stretch; justify-content: center; margin-top: 0; padding: 9px 12px; font-size: 13px; }
.fg-france--salaire > span:not(.fg-bulle-info) { white-space: normal; text-align: center; }

/* ── Où part ton argent ? Les cinq plus grosses dépenses, en ligne ── */
.fg-carte { padding: 18px 20px 16px; }
.fg-top-carte { display: flex; flex-direction: column; gap: 12px; }
.fg-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
/* Une ligne : le rang, le nom et sa catégorie, le montant et sa part ; dessous, sa barre. */
.fg-top li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 5px 12px;
  padding: 7px 10px; border-radius: 14px; transition: background-color .15s ease;
}
.fg-top li .fg-top__piste { grid-column: 2 / -1; grid-row: 2; }
.fg-top li:hover { background: color-mix(in srgb, var(--c) 6%, #fff); }
.fg-top__rang {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-size: 13px; font-weight: 800; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 26%, transparent);
}
.fg-top__qui { min-width: 0; display: grid; gap: 2px; }
.fg-top__nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 700; color: #1E293B; }
.fg-top__bloc { font-size: 11.5px; color: var(--muted); }
.fg-top__piste { height: 8px; overflow: hidden; border-radius: 99px; background: #F1F5F4; }
.fg-top__rempli {
  display: block; width: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 65%, #fff), var(--c)); transition: width .9s cubic-bezier(.34, 1.15, .5, 1);
}
.fg-top__chiffres { display: grid; justify-items: end; gap: 2px; }
.fg-top__montant { font-size: 14px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.fg-top__part { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.fg-top__vide { margin: auto 0 !important; padding: 14px; border-radius: 12px; background: #F7FAF9; text-align: center; font-size: 13px; color: var(--muted); }

/* ── Les dépenses en diaporama ──
   Une carte au centre ; les deux autres de chaque côté, plus petites,
   floutées et coupées par le bord. La carte qui passe d'un bord à l'autre
   s'efface d'un côté et revient de l'autre (data-pos ±2). Les mesures
   (--cw, --ecart, --decal) viennent de views/forge.js. ── */
.fg-car { position: relative; display: grid; gap: 16px; margin-top: 4px; }
.fg-car__onglets {
  position: relative; justify-self: center; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px;
  width: min(500px, 100%); padding: 4px; border-radius: 15px; background: #EEF3F1; box-shadow: inset 0 1px 2px rgba(21, 64, 50, .07);
}
.fg-car__pastille {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 12px) / 3); border-radius: 11px; background: #fff;
  box-shadow: 0 4px 14px -6px rgba(21, 64, 50, .35), 0 0 0 1px rgba(21, 64, 50, .05);
  transition: transform .5s cubic-bezier(.34, 1.3, .5, 1);
}
.fg-car__onglets[data-actif="1"] .fg-car__pastille { transform: translateX(calc(100% + 2px)); }
.fg-car__onglets[data-actif="2"] .fg-car__pastille { transform: translateX(calc(200% + 4px)); }
.fg-car__onglet {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; height: 40px; padding: 0 10px;
  border: 0; border-radius: 11px; background: none; cursor: pointer; white-space: nowrap;
  font: 700 13px var(--font); color: var(--muted); transition: color .2s ease;
}
.fg-car__onglet i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 16%, transparent); }
.fg-car__onglet b { font-weight: 700; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.fg-car__onglet:hover, .fg-car__onglet.is-on { color: var(--text); }
.fg-car__onglet.is-on b { color: var(--muted); }
.fg-car__onglet:focus-visible { outline: 2px solid rgba(29, 158, 117, .45); outline-offset: 1px; }
.fg-car__cadre { position: relative; }
/* De la place dessous (et un peu dessus) : l'ombre de la carte du centre, et l'anneau qui la signale,
   ne sont jamais coupés par le bord du diaporama ; les marges négatives gardent les écarts de la page. */
.fg-car__scene {
  display: grid; padding: 12px 0 56px; margin: -8px 0 -28px; touch-action: pan-y;
  overflow: hidden; overflow-x: clip; overflow-y: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.fg-dep {
  grid-area: 1 / 1; justify-self: center; width: var(--cw, 440px);
  transform-origin: 50% 50%; will-change: transform;
}
.fg-car.is-pret .fg-dep { transition: transform .62s cubic-bezier(.22, 1, .36, 1), filter .45s ease, opacity .45s ease, box-shadow .3s ease; }
.fg-car.is-pret .fg-dep.is-sec { transition: none; }
.fg-dep[data-pos="0"] { z-index: 3; box-shadow: 0 2px 4px rgba(21, 64, 50, .04), 0 26px 50px -28px rgba(21, 64, 50, .4); }
.fg-dep[data-pos="-1"], .fg-dep[data-pos="1"] { z-index: 1; filter: blur(1.4px) saturate(.9); opacity: .62; }
.fg-dep[data-pos="-1"] { transform: translateX(calc(-1 * var(--decal, 474px))) scale(.9); }
.fg-dep[data-pos="1"] { transform: translateX(var(--decal, 474px)) scale(.9); }
.fg-dep[data-pos="-2"], .fg-dep[data-pos="2"] { z-index: 0; filter: blur(3px); opacity: 0; }
.fg-dep[data-pos="-2"] { transform: translateX(calc(-1 * var(--decal, 474px) - 90px)) scale(.84); }
.fg-dep[data-pos="2"] { transform: translateX(calc(var(--decal, 474px) + 90px)) scale(.84); }
/* Au survol, la carte de côté se précise un peu : on devine qu'on peut l'amener au centre. */
.fg-dep[data-pos="-1"]:hover, .fg-dep[data-pos="1"]:hover { filter: blur(.6px) saturate(.95); opacity: .82; }
.fg-dep__voile { position: absolute; inset: 0; z-index: 5; display: none; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.fg-dep:not([data-pos="0"]) .fg-dep__voile { display: block; }
/* Les flèches, dans l'espace entre la carte du centre et ses voisines. */
.fg-car__fleche {
  position: absolute; top: calc(50% - 12px); z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1.5px solid rgba(21, 64, 50, .1); background: rgba(255, 255, 255, .86); color: var(--teal-deep);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 6px 22px rgba(6, 40, 30, .12);
  cursor: pointer; transform: translateY(-50%); transition: border-color .3s, color .3s, transform .2s;
}
.fg-car__fleche:hover { border-color: rgba(29, 158, 117, .45); color: var(--green3); }
.fg-car__fleche:active { transform: translateY(-50%) scale(.93); }
.fg-car__fleche:focus-visible { outline: 3px solid rgba(29, 158, 117, .4); outline-offset: 2px; }
.fg-car__fleche .cm-ico { width: 18px; height: 18px; }
.fg-car__fleche--g { left: calc(50% - var(--cw, 440px) / 2 - var(--ecart, 56px) / 2 - 22px); }
.fg-car__fleche--d { left: calc(50% + var(--cw, 440px) / 2 + var(--ecart, 56px) / 2 - 22px); }
.fg-car.is-etroit .fg-car__fleche { display: none; }
.fg-car.is-etroit .fg-car__scene {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

/* ── Les titres des groupes : tes revenus et ta jauge, tes dépenses du mois, ton analyse ──
   De l'air avant chaque groupe, plus qu'entre ses cartes. */
.fg-section { display: grid; margin-top: 30px; }
/* Ton analyse : son titre, et le bouton qui l'ouvre ; une fois lancée, le titre seul. */
.fg-lancer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 30px;
  padding: 22px 24px; border-radius: var(--fg-r); border: 1px solid rgba(29, 158, 117, .2);
  background: linear-gradient(135deg, rgba(43, 196, 138, .12), rgba(29, 158, 117, .03));
}
.fg-lancer.is-lancee { padding: 0; border: 0; background: none; }
.fg-lancer__texte { flex: 1 1 320px; min-width: 0; }
.fg-lancer__bouton {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px;
  border: 0; border-radius: 99px; background: var(--grad); color: #fff; font: 700 15.5px var(--font); cursor: pointer;
  box-shadow: var(--shadow-green); transition: transform .2s ease, box-shadow .3s ease;
}
.fg-lancer__bouton:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(29, 158, 117, .6); }
.fg-lancer__bouton:focus-visible { outline: 3px solid rgba(29, 158, 117, .4); outline-offset: 3px; }
.fg-lancer__bouton .cm-ico { position: relative; z-index: 1; width: 19px; height: 19px; }
.fg-lancer__libelle { position: relative; z-index: 1; }
/* « Analyse en cours… » : une lumière balaie le bouton de gauche à droite. */
.fg-lancer__barre { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .32)); }
.fg-lancer__bouton.is-encours { cursor: progress; }
.fg-lancer__bouton.is-encours .fg-lancer__barre { animation: fg-analyse 1.3s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes fg-analyse { to { transform: scaleX(1); } }
/* L'analyse qui s'ouvre : ses blocs arrivent l'un après l'autre. */
.fg-zone { display: grid; gap: var(--fg-gap); }
.fg-zone > .fg-analyse, .fg-zone > .fg-ic { margin-top: 0; }
/* Les autres outils de Seqooia : leur titre de partie (de l'air après les intérêts composés), puis leur panneau. */
.fg-suite { display: grid; gap: var(--fg-gap); }
.fg-suite > .fg-section { margin-top: 26px; }
/* « backwards » : une fois arrivée, une carte n'est plus animée — elle ne devient pas le repère de sa fiche de
   survol (posée par rapport à l'écran). */
.fg-zone.is-revele .fg-analyse > *, .fg-zone.is-revele > .fg-ic, .fg-zone.is-revele > .fg-suite { animation: fg-arrive .75s cubic-bezier(.22, 1, .36, 1) backwards; }
.fg-zone.is-revele .fg-analyse > :nth-child(2) { animation-delay: .12s; }
.fg-zone.is-revele > .fg-ic { animation-delay: .24s; }
.fg-zone.is-revele > .fg-suite { animation-delay: .36s; }
@keyframes fg-arrive { from { opacity: 0; transform: translateY(18px); } }

/* ── Les autres outils de Seqooia : la Forge n'en est qu'un ──
   Un panneau vert très pâle, sous l'analyse : le titre au centre, puis les outils MySeqooia en tuiles — la
   Forge en tête, cerclée de vert et cochée ; les autres sous cadenas, à débloquer. Dessous, l'appel. */
.fg-outils {
  display: grid; gap: 22px; padding: 30px 28px 28px; border-radius: var(--fg-r); border: 1px solid rgba(29, 158, 117, .2);
  background: radial-gradient(60% 120% at 50% 0%, rgba(43, 196, 138, .16), rgba(43, 196, 138, 0) 70%), linear-gradient(180deg, #F3FBF7, #FBFEFC);
}
.fg-outils__tete { display: grid; justify-items: center; gap: 10px; text-align: center; }
.fg-outils__badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--green3);
  background: #fff; border: 1px solid rgba(29, 158, 117, .22);
}
.fg-outils__badge .cm-ico { width: 14px; height: 14px; }
.fg-outils__titre { max-width: 640px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.fg-outils__titre span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fg-outils__sous { max-width: 560px; font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: balance; }
.fg-outils__sous strong { color: var(--text); font-weight: 800; }
.fg-outils__grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
/* Une tuile : son icône, son nom et ce qu'il fait ; en bas, son état. */
.fg-outil {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; min-width: 0; padding: 16px 16px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(21, 64, 50, .08); box-shadow: 0 1px 2px rgba(21, 64, 50, .04);
  transition: transform .3s cubic-bezier(.34, 1.4, .5, 1), box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}
.fg-outil:hover { transform: translateY(-3px); background: #fff; border-color: rgba(29, 158, 117, .28); box-shadow: 0 16px 30px -20px rgba(21, 64, 50, .45); }
.fg-outil__ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #6B7F78; background: #EEF3F1;
  box-shadow: inset 0 0 0 1px rgba(21, 64, 50, .06); transition: color .3s ease, background-color .3s ease;
}
.fg-outil__ico .cm-ico { width: 19px; height: 19px; }
.fg-outil:hover .fg-outil__ico { color: var(--green3); background: #E4F6EE; }
.fg-outil__txt { display: grid; align-content: start; gap: 3px; min-width: 0; }
.fg-outil__txt strong { font-size: 14.5px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; color: var(--text); }
.fg-outil__txt span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.fg-outil__etat { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 9px 4px 7px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #6B7F78; background: #EEF3F1; }
.fg-outil__etat .cm-ico { width: 12px; height: 12px; }
/* La Forge : celle qu'on vient d'essayer. Deux colonnes, en vert. */
.fg-outil.is-ici {
  grid-column: span 2; color: #fff; border-color: transparent;
  background: radial-gradient(closest-side at 90% -20%, rgba(255, 255, 255, .22), transparent), var(--grad);
  box-shadow: 0 18px 34px -20px rgba(29, 158, 117, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.fg-outil.is-ici:hover { background: radial-gradient(closest-side at 90% -20%, rgba(255, 255, 255, .26), transparent), var(--grad); border-color: transparent; }
.fg-outil.is-ici .fg-outil__ico, .fg-outil.is-ici:hover .fg-outil__ico { color: #fff; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.fg-outil.is-ici .fg-outil__txt strong { font-size: 17px; color: #fff; }
.fg-outil.is-ici .fg-outil__txt span { font-size: 13.5px; color: rgba(255, 255, 255, .86); }
.fg-outil.is-ici .fg-outil__etat { color: #063B2A; background: linear-gradient(135deg, #C9FFE4, #7DFFC0); }
.fg-outils__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin-top: 4px; }
.fg-outils__lien { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--green3); text-decoration: none; }
.fg-outils__lien .cm-ico { width: 15px; height: 15px; transition: transform .25s ease; }
.fg-outils__lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.fg-outils__lien:hover .cm-ico { transform: translateX(3px); }

/* ── Le pied de page ── */
.fg-pied { display: grid; gap: 6px; margin-top: 2px; padding-top: 16px; border-top: 1px solid var(--fg-bord); font-size: 12.5px; color: var(--muted); }
.fg-pied__source { font-size: 11.5px; color: var(--muted-2); }

/* ── Tablette : la saisie et l'analyse passent l'une sous l'autre ── */
@media (max-width: 999px) {
  .fg-saisie, .fg-analyse { grid-template-columns: minmax(0, 1fr); }
  .fg-outils__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fg-sphere { grid-template-columns: 232px minmax(0, 300px); justify-content: center; }
}
/* ── Téléphone : une colonne ── */
@media (max-width: 640px) {
  .fg { --fg-gap: 14px; }
  .fg-resume { grid-template-columns: minmax(0, 1fr); }
  .fg-tete { margin: 16px 0 18px; gap: 10px; }
  .fg-tete__objectif { font-size: 14px; }
  .fg-tuile { padding: 15px 15px 16px; gap: 12px; }
  .fg-tuile__nom { font-size: 13px; gap: 8px; }
  .fg-ico { width: 28px; height: 28px; border-radius: 9px; }
  .fg-ico .cm-ico { width: 14px; height: 14px; }
  .fg-grand { font-size: 36px; }
  .fg-grand.is-long { font-size: 28px; }
  .fg-resume .fg-grand { font-size: 28px; }
  .fg-resume .fg-grand.is-long { font-size: 22px; }
  .fg-sphere { grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 0; }
  .fg-sphere__dessin { width: 150px; }
  .fg-sphere__centre-n { font-size: 19px; }
  .fg-leg__ligne { padding: 6px 8px; }
  .fg-leg__nom { font-size: 12.5px; }
  .fg-jauge { min-height: 0; }
  .fg-jauge__tubes { grid-template-columns: repeat(2, 84px); gap: 0 26px; height: 270px; }
  .fg-tube__verre { width: 84px; }
  /* La légende en deux lignes équilibrées : trois entrées, puis deux, centrées dessous. */
  .fg-jauge__legende { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); justify-items: center; gap: 2px 0; }
  .fg-jauge__legende li { grid-column: span 2; }
  .fg-jauge__legende li:nth-child(4) { grid-column: 2 / span 2; }
  .fg-jauge__puce { padding: 4px 7px; font-size: 12px; }
  .fg-ic { padding: 16px 15px 15px; }
  .fg-ic__tete { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "resultat" "puces"; }
  .fg-ic__resultat { justify-items: start; text-align: left; }
  .fg-ic__total-n { font-size: 34px; }
  .fg-ic__titre { font-size: 18px; gap: 10px; }
  .fg-ic__titre .fg-ico { width: 32px; height: 32px; border-radius: 10px; }
  .fg-ic__titre .fg-ico .cm-ico { width: 16px; height: 16px; }
  .fg-ic__appel { flex-wrap: wrap; gap: 14px; padding: 18px 16px; }
  .fg-ic__appel-ico { width: 44px; height: 44px; }
  .fg-ic__appel-texte { flex-basis: calc(100% - 58px); }
  .fg-ic__appel-texte strong { font-size: 16.5px; }
  .fg-appel { width: 100%; justify-content: center; }
  .fg-outils { padding: 24px 16px 22px; gap: 18px; }
  .fg-outils__grille { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fg-outil, .fg-outil.is-ici { grid-column: auto; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px 12px; padding: 14px; }
  .fg-outil__ico { grid-row: 1 / span 2; }
  .fg-outil__etat { grid-column: 2; }
  .fg-outils__pied { flex-direction: column; }
  .fg-barre { margin-top: 8px; }
  .fg-section, .fg-lancer, .fg-suite > .fg-section { margin-top: 22px; }
  .fg-lancer { padding: 18px 16px; }
  .fg-lancer__bouton { width: 100%; justify-content: center; }
  .fg-barre__titre { font-size: 19px; }
  .fg-barre__aide { font-size: 13px; }
  .fg-barre__droite { width: 100%; }
  .fg-statut { flex: 1 1 100%; }
  .fg-bouton { flex: 1 1 0; justify-content: center; }
  .fg-top-carte .fg-tuile__note { display: none; }
  .fg-bloc__tete { padding: 13px 12px 11px; gap: 10px; }
  .fg-bloc__ico { width: 34px; height: 34px; }
  .fg-bloc__sous { white-space: normal; line-height: 1.3; }
  .fg-bloc__lignes { padding: 4px 6px 8px; }
  .fg-ligne { gap: 8px; padding: 3px 2px 3px 6px; }
  .fg-ligne__nom { font-size: 13px; }
  .fg-champ { width: 104px; }
  .fg-car__onglet { gap: 6px; padding: 0 6px; font-size: 12.5px; }
  .fg-car__onglet b { display: none; }
  .fg-top li { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .fg-vague, .fg-ic__fin-halo, .fg-zone.is-revele .fg-analyse > *, .fg-zone.is-revele > .fg-ic, .fg-zone.is-revele > .fg-suite,
  .fg-appel, .fg-ic__appel-ico .cm-ico, .fg-ic__appel-ico::before, .fg-ic__appel-ico::after { animation: none !important; }
  .fg-ic__appel-ico::before, .fg-ic__appel-ico::after { opacity: 0; }
  .fg-outil { transition: none; }
  .fg-tube__liquide, .fg-tube__couche, .fg-tube__fantome, .fg-tube__ecart, .fg-piste__rempli, .fg-repere__tige, .fg-repere__val,
  .fg-top__rempli, .fg-bloc__pied-rempli, .fg-car__pastille, .fg-car.is-pret .fg-dep { transition: none; }
  /* L'anneau qui signale une carte : posé tel quel, sans se resserrer. */
  .fg-bloc.is-signale { animation: none; outline: 3px solid color-mix(in srgb, var(--c) 55%, transparent); outline-offset: 4px; }
}

/* ══════════════════════════════════════════════════════════════════════════════════════════
   L'élève de l'école sur le campus (public/js/eleve.js, public/js/views/programmes.js)
   Son bandeau, collé sous l'en-tête (.be) ; la fenêtre « Reconfirme ton identité » (.idf) ;
   son parcours : ses programmes repris du site Wix (la grille, leurs jauges), un programme
   (ses chapitres, ses leçons terminées ou à suivre), une leçon (sa vidéo, son texte, ses
   fichiers, « J'ai terminé cette leçon »). La pastille .pg-essai marque l'aperçu de
   l'administrateur.
   ══════════════════════════════════════════════════════════════════════════════════════════ */
.pg { max-width: 1010px; margin: 0 auto; }
.pg--lecon { max-width: 860px; }

.pg-retour {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; padding: 7px 13px 7px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .62); border: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none;
  max-width: 100%; transition: color .2s, border-color .2s;
}
.pg-retour:hover { color: var(--green3); border-color: rgba(29, 158, 117, .4); }
.pg-retour__fleche { flex: none; }
.pg-retour__fleche svg { display: block; width: 15px; height: 15px; transition: transform .2s; }
.pg-retour:hover .pg-retour__fleche svg { transform: translateX(-2px); }

.pg-essai {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; white-space: nowrap;
  background: #FFF4D6; border: 1px solid #F2D58A; color: #7A5A12; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
}
.pg-essai .cm-ico { width: 13px; height: 13px; }
.pg-tete .pg-essai { margin-top: 14px; }

/* ── Le prochain live, au-dessus de l'en-tête (public/js/bandeau-live.js) ──
   Une bande verte, vive, sur toute la largeur : « Prochain live », son titre, sa date, son
   compte à rebours, le bouton d'inscription, et une croix pour la ranger. En direct, la
   pastille passe au rouge. Elle défile avec la page ; l'en-tête, dessous, reste collé. */
.bl { position: relative; color: #fff; background: linear-gradient(100deg, #0A7352 0%, #12986B 55%, #1CB07C 100%); }
.bl[hidden] { display: none; }
.bl::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 110px at 14% -60%, rgba(182, 255, 59, .2), transparent 70%); }
.bl__ligne {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px 14px;
  min-height: 46px; padding: 7px 52px 7px 32px; animation: be-arrive .45s cubic-bezier(.2, .9, .3, 1) backwards;
}
.bl__badge {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; white-space: nowrap;
  background: rgba(4, 44, 31, .36); font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
}
.bl__point { width: 8px; height: 8px; border-radius: 50%; background: #B6FF3B; animation: bl-point 1.7s ease-out infinite; }
@keyframes bl-point { 0% { box-shadow: 0 0 0 0 rgba(182, 255, 59, .75); } 80%, 100% { box-shadow: 0 0 0 8px rgba(182, 255, 59, 0); } }
.bl__ligne.is-direct .bl__badge { background: #E5383B; }
.bl__ligne.is-direct .bl__point { background: #fff; animation-name: bl-point-direct; }
@keyframes bl-point-direct { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }
.bl__titre { min-width: 0; max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; letter-spacing: -.1px; }
.bl__date { font-size: 13px; color: rgba(255, 255, 255, .88); white-space: nowrap; }
.bl__rebours { flex: none; display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.bl__bloc { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 8px; border-radius: 9px; background: rgba(4, 44, 31, .36); }
.bl__bloc b { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.bl__bloc small { font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, .82); }
.bl__heure { font-size: 13.5px; font-weight: 800; }
.bl__bouton {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; white-space: nowrap;
  background: #fff; color: #0B5D43; font-size: 13px; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 20px -12px rgba(4, 44, 31, .9); transition: transform .2s, box-shadow .2s;
}
.bl__bouton:hover { transform: translateY(-1px); box-shadow: 0 14px 24px -12px rgba(4, 44, 31, 1); }
.bl__bouton:focus-visible, .bl__fermer:focus-visible { outline: 3px solid rgba(255, 255, 255, .8); outline-offset: 2px; }
.bl__ligne.is-bientot .bl__bouton, .bl__ligne.is-heure .bl__bouton, .bl__ligne.is-direct .bl__bouton { background: #B6FF3B; color: #0B3B2C; animation: bl-appel 1.8s ease-in-out infinite; }
@keyframes bl-appel { 0%, 100% { box-shadow: 0 0 0 0 rgba(182, 255, 59, .55); } 60% { box-shadow: 0 0 0 9px rgba(182, 255, 59, 0); } }
.bl__bouton--inscrit { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.bl__bouton--inscrit:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.bl__ico { display: inline-flex; }
.bl__ico svg { display: block; width: 14px; height: 14px; }
.bl__court { display: none; }
.bl__fermer {
  position: absolute; top: 50%; right: 14px; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; border: 0; border-radius: 50%;
  background: transparent; color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.bl__fermer:hover { background: rgba(4, 44, 31, .3); color: #fff; }
/* Sous l'écran du live : la même bande, arrondie, à la largeur de la vidéo — la date et le second compte à rebours. */
.bl--page { margin-top: 14px; overflow: hidden; border-radius: 16px; box-shadow: 0 16px 30px -22px rgba(10, 115, 82, .9); }
.bl__ligne--page { min-height: 52px; padding: 9px 20px; gap: 8px 12px; flex-wrap: wrap; }
.bl__ligne--page .bl__date { display: inline; font-size: 14px; font-weight: 700; color: #fff; }
.bl__dans { font-size: 13px; color: rgba(255, 255, 255, .86); }
.bl__ligne--page .bl__bloc b { font-size: 16.5px; }
.bl__inscrit { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 4px 11px 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
@media (max-width: 980px) {
  .bl__date { display: none; }
}
@media (max-width: 760px) {
  /* Sur téléphone : la pastille, le compte à rebours, le bouton — le titre et la date sont sur la page du live. */
  .bl__ligne { justify-content: space-between; gap: 6px; min-height: 44px; padding: 6px 36px 6px 10px; }
  .bl__titre { display: none; }
  .bl__rebours.a-jours .bl__bloc--s { display: none; }
  .bl__heure { font-size: 12.5px; }
  .bl__ligne.is-direct .bl__date { display: none; }
  .bl__ligne--page { justify-content: center; padding: 9px 12px; }
  .bl__ligne--page .bl__long { display: inline; }
  .bl__ligne--page .bl__court { display: none; }
  .bl__ligne--page .bl__rebours.a-jours .bl__bloc--s { display: inline-flex; }
  .bl__badge { gap: 6px; padding: 4px 9px 4px 8px; font-size: 10px; letter-spacing: .5px; }
  .bl__rebours { gap: 3px; }
  .bl__bloc { gap: 2px; padding: 3px 5px; border-radius: 7px; }
  .bl__bloc b { font-size: 13.5px; }
  .bl__bloc small { font-size: 9.5px; }
  .bl__bouton { height: 30px; padding: 0 11px; font-size: 12.5px; }
  .bl__ico--agenda { display: none; }
  .bl__long { display: none; }
  .bl__court { display: inline; }
  .bl__fermer { right: 4px; }
}
@media (max-width: 350px) {
  .bl__ligne { gap: 4px; padding: 6px 32px 6px 8px; }
  .bl__mini { display: none; }
  .bl__badge { gap: 5px; padding: 4px 8px 4px 7px; }
  .bl__bloc { padding: 3px 4px; }
  .bl__bouton { padding: 0 9px; font-size: 12px; }
  .bl__ligne--page { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .bl__ligne, .bl__point, .bl__ligne .bl__bouton { animation: none; }
  .bl__bouton { transition: none; }
}

/* ── Le bandeau de l'élève, collé sous l'en-tête sur toute la largeur (public/js/eleve.js) ──
   Le vert profond de l'école. Une ligne : la coiffe, « Déjà élève de l'école », le bouton ;
   une fois l'identité confirmée, l'offre, la jauge du parcours et « Reprendre ». Dessous,
   pour l'administrateur seul, l'aperçu : Membre, Élève, Admin. Il défile avec la page
   (l'en-tête, lui, reste collé en haut). */
.be {
  position: relative; z-index: 40; color: #fff;
  background: linear-gradient(118deg, #0D3A2E 0%, #14755C 60%, #1D9E75 100%);
  box-shadow: 0 12px 26px -20px rgba(11, 77, 59, .9);
}
.be[hidden] { display: none; }
.be::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 130px at 86% -50%, rgba(182, 255, 59, .22), transparent 70%), radial-gradient(420px 120px at 6% 150%, rgba(43, 196, 138, .28), transparent 70%);
}
.be__ligne {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px 16px;
  min-height: 50px; padding: 8px 32px; animation: be-arrive .45s cubic-bezier(.2, .9, .3, 1) backwards;
}
@keyframes be-arrive { from { opacity: 0; transform: translateY(-6px); } }
.be__ico {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #B6FF3B;
}
.be__ico svg { display: block; width: 18px; height: 18px; }
.be__texte { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; min-width: 0; margin: 0; font-size: 14px; line-height: 1.35; }
.be__texte strong { font-size: 14.5px; letter-spacing: -.1px; color: #fff; }
.be__texte > span { color: rgba(255, 255, 255, .84); }
.be__jauge { display: inline-flex; align-items: center; gap: 9px; }
.be__barre { display: block; width: 130px; height: 7px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .2); }
.be__barre span { display: block; height: 100%; border-radius: inherit; background: #B6FF3B; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.be__jauge small { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .9); font-variant-numeric: tabular-nums; white-space: nowrap; }
.be__bouton {
  flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px 0 13px; border: 0; border-radius: 999px;
  background: #B6FF3B; color: #0B3B2C; font: 800 12.5px var(--font); white-space: nowrap; cursor: pointer;
  box-shadow: 0 10px 20px -14px rgba(182, 255, 59, .95); transition: transform .2s, box-shadow .2s;
}
/* « Déjà élève de l'école ? Ton parcours… » : une phrase d'un seul tenant, à la même voix. */
.be__phrase { min-width: 0; margin: 0; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .9); letter-spacing: -.05px; }
.be__ico--rond { width: 28px; height: 28px; border-radius: 50%; background: rgba(182, 255, 59, .14); border-color: rgba(182, 255, 59, .38); }
.be__ico--rond svg { width: 15px; height: 15px; }
.be__bouton:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -14px rgba(182, 255, 59, 1); }
.be__bouton:focus-visible { outline: 3px solid rgba(255, 255, 255, .75); outline-offset: 2px; }
.be__court { display: none; }
.be__fleche svg { display: block; width: 14px; height: 14px; transition: transform .2s; }
.be__bouton:hover .be__fleche svg { transform: translateX(3px); }

/* L'aperçu de l'administrateur : une réglette plus sombre, sous la ligne de l'élève. */
.be__admin {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
  padding: 6px 32px; background: rgba(4, 26, 20, .46); font-size: 12px;
}
.be__admin.is-alerte { background: rgba(122, 62, 6, .62); }
.be__apercu { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #B6FF3B; }
.be__apercu .cm-ico { width: 13px; height: 13px; }
.be__onglets { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.be__onglet {
  height: 24px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .82);
  font: 700 12px var(--font); cursor: pointer; transition: background .2s, color .2s;
}
.be__onglet:hover { color: #fff; }
.be__onglet.is-on { background: #fff; color: #0B3B2C; }
.be__puces { display: inline-flex; gap: 4px; }
.be__puce {
  height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: rgba(255, 255, 255, .85);
  font: 700 11px var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.be__puce:hover { border-color: rgba(255, 255, 255, .7); }
.be__puce.is-on { background: #B6FF3B; border-color: #B6FF3B; color: #0B3B2C; }
.be__onglet:focus-visible, .be__puce:focus-visible, .be__rejouer:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.be__note { min-width: 0; max-width: 62ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, .78); }
.be__rejouer { padding: 0; border: 0; background: transparent; color: #B6FF3B; font: 700 12px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── La fenêtre « Reconfirme ton identité » ── */
.modal__card.idf { position: relative; max-width: 430px; gap: 12px; padding: 30px 28px 22px; text-align: center; }
.idf__fermer { position: absolute; top: 12px; right: 12px; }
.idf__ico {
  align-self: center; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(135deg, #0D3A2E, #1D9E75); color: #B6FF3B; box-shadow: 0 16px 30px -16px rgba(11, 77, 59, .8);
}
.idf__ico svg { display: block; width: 28px; height: 28px; }
.modal__card.idf h2 { font-size: 23px; text-wrap: balance; }
.idf .modal__lead { margin: -6px 0 6px; font-size: 14px; text-wrap: balance; }
.idf .cx-form { text-align: left; }
.idf .cx-aide { line-height: 1.45; }
.idf .cx-captcha[hidden] { display: none; }
.idf__oubli { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.idf__note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.idf__note .cm-ico { flex: none; width: 13px; height: 13px; color: var(--green3); }
.idf .cx-recaptcha-mention { margin: 0; }

/* ── L'école : « Déjà élève ? » ; le profil : « Mon école » ── */
.me-chip--eleve { background: linear-gradient(118deg, #0D3A2E, #1D9E75); border-color: transparent; color: #fff; }
/* Membre : en bleu nuit, avec sa pousse (comme le badge « Membre » du chat et de la Communauté). */
.me-chip--membre { background: linear-gradient(118deg, #101B38, #24407A); border-color: transparent; color: #fff; }
.me-chip--membre .cm-ico { color: #9FC2FF; }
.me-chip--eleve .cm-ico { color: #B6FF3B; }
.me-ecole { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.me-ecole__ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px;
  background: linear-gradient(135deg, #0D3A2E, #1D9E75); color: #B6FF3B; box-shadow: 0 14px 26px -16px rgba(11, 77, 59, .8);
}
.me-ecole__ico svg { display: block; width: 26px; height: 26px; }
.me-ecole__texte { display: grid; gap: 3px; min-width: 0; }
.me-ecole__texte h2 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.me-ecole__texte p { margin: 0; font-size: 13.5px; color: var(--muted); }
.me-ecole__jauge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--green3); font-variant-numeric: tabular-nums; }
.me-ecole__barre { display: block; flex: 1 1 160px; max-width: 280px; height: 8px; overflow: hidden; border-radius: 99px; background: rgba(21, 64, 50, .1); }
.me-ecole__barre span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2BC48A, #14755C); }
.me-ecole .btn { text-decoration: none; white-space: nowrap; }

/* ── La grille des programmes ── */
.pg-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.pg-carte {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; color: inherit; text-decoration: none;
  background: var(--card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .65); outline: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, outline-color .28s;
  animation: pg-carte .45s cubic-bezier(.2, .9, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes pg-carte { from { opacity: 0; transform: translateY(10px); } }
.pg-carte:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); outline-color: rgba(29, 158, 117, .35); }
.pg-carte:focus-visible { outline: 3px solid rgba(29, 158, 117, .45); }
.pg-carte__image { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #E7F5EF, #D2ECE1); color: var(--green3); }
.pg-carte__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.pg-carte__image .cm-ico { width: 34px; height: 34px; }
.pg-carte:hover .pg-carte__image img { transform: scale(1.04); }
.pg-carte__corps { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.pg-carte__titre { font-size: 17px; letter-spacing: -.3px; color: var(--text); }
.pg-carte__compte { font-size: 12px; font-weight: 700; color: var(--green3); }
.pg-carte__texte { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pg-carte__ouvrir { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 800; color: var(--green3); }
.pg-carte__ouvrir svg { display: block; width: 15px; height: 15px; transition: transform .2s; }
.pg-carte:hover .pg-carte__ouvrir svg { transform: translateX(3px); }

/* ── Un programme ── */
.pg-heros { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 30px; align-items: start; margin-bottom: 26px; }
.pg-heros:not(:has(.pg-heros__image)) { grid-template-columns: minmax(0, 1fr); }
.pg-heros__image { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 20px; background: #E7F5EF; box-shadow: var(--shadow-md); }
.pg-heros__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-heros h1 { margin: 10px 0 6px; font-size: 30px; letter-spacing: -.8px; text-wrap: balance; }
.pg-heros__compte { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--green3); }
.pg-presentation { font-size: 14.5px; line-height: 1.62; color: #475569; }
.pg-presentation p { margin: 0 0 9px; }
.pg-presentation__liste { margin: 0 0 9px; padding: 0; list-style: none; display: grid; gap: 7px; }
.pg-presentation__liste li { position: relative; padding-left: 20px; }
.pg-presentation__liste li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--green2); }
.pg-heros__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; text-decoration: none; }
.pg-heros__fleche svg { display: block; width: 15px; height: 15px; }

.pg-chapitre { padding: 6px 8px 8px; }
.pg-chapitre__titre { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 14px 12px; font-size: 16.5px; letter-spacing: -.2px; }
.pg-chapitre__titre small { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pg-chapitre__num {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: rgba(29, 158, 117, .1); color: var(--green3); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.pg-lecons { margin: 0; padding: 0; list-style: none; }
.pg-lecons li + li { border-top: 1px solid rgba(21, 64, 50, .06); }
.pg-lecon {
  display: grid; grid-template-columns: 24px 30px minmax(0, 1fr) auto 16px; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 13px; color: var(--text); text-decoration: none; transition: background .18s;
}
.pg-lecon:hover { background: rgba(29, 158, 117, .08); }
.pg-lecon:focus-visible { outline: 3px solid rgba(29, 158, 117, .4); outline-offset: -3px; }
.pg-lecon__num { text-align: right; font-size: 12px; font-weight: 700; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.pg-lecon__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #fff; border: 1px solid var(--border); color: var(--green3); }
.pg-lecon__ico .cm-ico { width: 15px; height: 15px; }
.pg-lecon__titre { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.pg-lecon__note { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pg-lecon__fleche svg { display: block; width: 15px; height: 15px; color: var(--muted-2); transition: transform .2s, color .2s; }
.pg-lecon:hover .pg-lecon__fleche svg { transform: translateX(3px); color: var(--green3); }

/* ── Une leçon ── */
.pg-page {
  padding: 28px 32px 30px; border-radius: 22px;
  background: var(--card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .65); outline: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.pg-page__sur { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
/* Le point de séparation suit l'élément (et non le précède) : à la ligne, il ne se retrouve pas en tête. */
.pg-page__sur > span:not(:last-child)::after { content: '·'; margin: 0 9px; color: var(--muted-2); }
.pg-page__sur > .pg-page__type { margin-right: 9px; }
.pg-page__sur > span.pg-page__type::after { content: none; }
.pg-page__type { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(29, 158, 117, .1); color: var(--green3); font-weight: 800; }
.pg-page__type .cm-ico { width: 13px; height: 13px; }
.pg-page h1 { margin: 0 0 20px; font-size: 28px; letter-spacing: -.7px; line-height: 1.18; text-wrap: balance; }

.pg-video { overflow: hidden; margin: 0 0 22px; aspect-ratio: 16 / 9; border-radius: 16px; background: #0A1A15; box-shadow: var(--shadow-md); }
.pg-video__film { display: block; width: 100%; height: 100%; background: #0A1A15; }

.pg-contenu { font-size: 15.5px; line-height: 1.7; color: #26352F; overflow-wrap: break-word; }
.pg-contenu > * { margin: 0 0 14px; }
.pg-contenu > :last-child { margin-bottom: 0; }
.pg-contenu h2 { margin-top: 26px; font-size: 21px; letter-spacing: -.4px; line-height: 1.3; }
.pg-contenu h3 { margin-top: 22px; font-size: 18px; letter-spacing: -.2px; line-height: 1.35; }
.pg-contenu h4 { margin-top: 18px; font-size: 16px; }
.pg-contenu > :first-child { margin-top: 0; }
.pg-contenu a { color: var(--green3); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pg-contenu ul, .pg-contenu ol { padding-left: 22px; }
.pg-contenu li { margin: 5px 0; }
.pg-contenu li::marker { color: var(--green); font-weight: 700; }
.pg-contenu li.pg-n1 { margin-left: 22px; }
.pg-contenu li.pg-n2 { margin-left: 44px; }
.pg-contenu li.pg-n3 { margin-left: 66px; }
.pg-contenu blockquote { padding: 12px 16px; border-left: 3px solid var(--green2); border-radius: 0 12px 12px 0; background: rgba(29, 158, 117, .06); }
.pg-contenu hr { height: 1px; margin: 24px 0; border: 0; background: var(--border-2); }
.pg-contenu .pg-video { margin-top: 20px; }
.pg-image img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 14px; }
.pg-contenu .pg-fichier {
  display: flex; align-items: center; gap: 12px; max-width: 460px; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s;
}
.pg-contenu .pg-fichier:hover { border-color: rgba(29, 158, 117, .45); transform: translateY(-1px); }
.pg-fichier__ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(29, 158, 117, .1); color: var(--green3); }
.pg-fichier__ico svg { display: block; width: 18px; height: 18px; }
.pg-fichier__texte { display: grid; gap: 1px; min-width: 0; }
.pg-fichier__texte strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.pg-fichier__texte span { font-size: 12px; font-weight: 500; color: var(--muted); }
.pg-contenu .pg-bouton .btn { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.pg-bouton__dehors svg { display: block; width: 14px; height: 14px; }

.pg-quiz { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(29, 158, 117, .07); border: 1px solid rgba(29, 158, 117, .2); }
.pg-quiz > div { flex: 1 1 240px; }
.pg-quiz strong { font-size: 15px; }
.pg-quiz p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.pg-quiz__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #fff; color: var(--green3); border: 1px solid rgba(29, 158, 117, .2); }
.pg-quiz__ico .cm-ico { width: 19px; height: 19px; }
.pg-quiz .btn { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }

.pg-voisines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.pg-voisine {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border-radius: 16px; color: var(--text); text-decoration: none;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .65); outline: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .22s, outline-color .22s, box-shadow .22s;
}
.pg-voisine:hover { transform: translateY(-2px); outline-color: rgba(29, 158, 117, .4); box-shadow: var(--shadow-md); }
.pg-voisine--apres { flex-direction: row-reverse; text-align: right; }
.pg-voisine--vide { visibility: hidden; }
.pg-voisine__fleche { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(29, 158, 117, .1); color: var(--green3); }
.pg-voisine__fleche svg { display: block; width: 16px; height: 16px; }
.pg-voisine__texte { display: grid; gap: 2px; min-width: 0; }
.pg-voisine__texte small { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.pg-voisine__texte strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.pg-panne .btn { margin-top: 14px; }

/* ── Les jauges du parcours ── */
.pg-jauge { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pg-jauge__barre { flex: 1; display: block; height: 7px; overflow: hidden; border-radius: 99px; background: rgba(21, 64, 50, .1); }
.pg-jauge__barre span {
  display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2BC48A, #14755C);
  transition: width .6s cubic-bezier(.2, .8, .2, 1); animation: pg-jauge .9s cubic-bezier(.2, .8, .2, 1) backwards;
}
@keyframes pg-jauge { from { width: 0; } }
.pg-jauge__compte { flex: none; font-size: 12px; font-weight: 800; color: var(--green3); font-variant-numeric: tabular-nums; }
.pg-jauge.is-finie .pg-jauge__barre span { background: linear-gradient(90deg, #B6FF3B, #2BC48A); }
.pg-jauge--grande .pg-jauge__barre { height: 11px; }

/* ── En tête du parcours : l'offre, la progression, « Reprendre » ── */
.pg-offre {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 6px 14px 6px 11px; border-radius: 999px;
  background: linear-gradient(118deg, #0D3A2E, #1D9E75); color: #fff; font-size: 13px; font-weight: 800;
}
.pg-offre .cm-ico { width: 15px; height: 15px; color: #B6FF3B; }
.pg-tete .pg-offre + .pg-essai { margin-left: 8px; }
.pg-avancee { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-bottom: 24px; padding: 20px 24px; }
.pg-avancee__chiffre { display: grid; justify-items: center; gap: 0; min-width: 92px; }
.pg-avancee__chiffre strong { font-size: 36px; line-height: 1; letter-spacing: -1.2px; color: var(--green3); font-variant-numeric: tabular-nums; }
.pg-avancee__chiffre span { margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pg-avancee__phrase { margin: 0 0 11px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.pg-avancee__go { display: inline-flex; align-items: center; gap: 12px; max-width: 300px; height: auto; min-height: 52px; padding: 8px 16px 8px 20px; text-align: left; text-decoration: none; }
.pg-avancee__go-texte { display: grid; gap: 1px; min-width: 0; }
.pg-avancee__go-texte small { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; opacity: .85; }
.pg-avancee__go-texte strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.pg-avancee.is-finie { background: linear-gradient(135deg, rgba(182, 255, 59, .16), rgba(43, 196, 138, .1)); }

/* ── Les cartes : en cours, terminée, d'une offre au-dessus, bientôt ── */
.pg-carte__image { position: relative; }
.pg-carte .pg-jauge { margin-top: auto; padding-top: 10px; }
.pg-carte .pg-jauge + .pg-carte__ouvrir { margin-top: 0; }
.pg-carte__fini {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 999px;
  background: #B6FF3B; color: #0B3B2C; font-size: 11px; font-weight: 800; box-shadow: 0 8px 16px -8px rgba(11, 59, 44, .6);
}
.pg-carte__fini svg { display: block; width: 13px; height: 13px; }
.pg-carte.is-bientot { outline-style: dashed; background: rgba(255, 255, 255, .5); }
.pg-carte.is-bientot:hover { transform: none; box-shadow: var(--shadow-sm); outline-color: var(--border); }
.pg-carte.is-bientot .pg-carte__image { background: linear-gradient(135deg, #EEF2F1, #E1E8E5); color: #94A3B8; }
.pg-carte.is-bientot .pg-carte__compte { margin-top: auto; padding-top: 10px; color: #7A5A12; }

/* ── Un programme : sa jauge, ses leçons terminées, celle à suivre ── */
.pg-heros__avancee { display: grid; gap: 6px; max-width: 440px; margin: 0 0 14px; }
.pg-heros__avancee > span:last-child { font-size: 12.5px; font-weight: 700; color: var(--green3); }
.pg-chapitre.is-fini .pg-chapitre__num { background: var(--green2); color: #fff; }
.pg-chapitre__titre small { font-variant-numeric: tabular-nums; }
.pg-lecon__coche { justify-self: end; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green2); color: #fff; }
.pg-lecon__coche svg { display: block; width: 13px; height: 13px; }
.pg-lecon.is-faite .pg-lecon__titre { color: #64748B; }
.pg-lecon.is-suite { background: rgba(29, 158, 117, .07); box-shadow: inset 0 0 0 1px rgba(29, 158, 117, .26); }
.pg-lecon__suite {
  display: inline-block; margin-left: 9px; padding: 2px 8px; border-radius: 999px; vertical-align: 1px; white-space: nowrap;
  background: var(--green3); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
}

/* ── Une leçon : la jauge du programme en tête, « J'ai terminé cette leçon » en bas ── */
.pg-page h1 { margin-bottom: 12px; }
.pg-page__jauge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 20px; font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pg-page__jauge .pg-jauge { flex: 1 1 180px; max-width: 280px; }
.pg-fin { display: grid; justify-items: center; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border-2); text-align: center; }
.pg-fin__phrase { margin: 0; font-size: 13.5px; color: var(--muted); text-wrap: balance; }
.pg-fin__go { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 28px 0 20px; border-radius: 16px; font-size: 15.5px; }
.pg-fin__go.is-busy { opacity: .75; pointer-events: none; }
.pg-fin__coche { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.pg-fin__coche svg { display: block; width: 15px; height: 15px; }
.pg-fin__faite { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.2px; color: var(--green3); }
.pg-fin__faite .pg-fin__coche { background: var(--green2); color: #fff; }
.pg-fin__faite.is-neuve { animation: pg-bravo .6s cubic-bezier(.2, 1.5, .4, 1) backwards; }
@keyframes pg-bravo { from { opacity: 0; transform: scale(.7); } }
.pg-fin__suite { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; }
.pg-fin__suite .btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.pg-fin__annuler { font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* ── La porte : identité à confirmer, programme d'une autre offre ── */
.pg-porte { display: grid; justify-items: center; gap: 8px; max-width: 520px; margin: 40px auto; padding: 36px 28px; text-align: center; }
.pg-porte__ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 18px; background: rgba(29, 158, 117, .1); color: var(--green3); }
.pg-porte__ico .cm-ico { width: 26px; height: 26px; }
.pg-porte h2 { margin: 0; font-size: 22px; letter-spacing: -.5px; text-wrap: balance; }
.pg-porte p { margin: 0; color: var(--muted); }
.pg-porte__boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.pg-porte__boutons .btn { margin-top: 0; text-decoration: none; }

@media (max-width: 760px) {
  /* Le bandeau, sur téléphone : une ligne serrée — la phrase d'accroche s'efface, le bouton reste. */
  .be__ligne { justify-content: space-between; gap: 8px 10px; min-height: 46px; padding: 7px 14px; }
  .be__ligne:not(.is-confirme) .be__texte > span { display: none; }
  .be__texte { flex: 1; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 3px; font-size: 13px; }
  .be__texte strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
  .be__jauge { display: flex; width: 100%; min-width: 0; }
  .be__barre { flex: 1 1 auto; width: auto; min-width: 22px; max-width: 110px; }
  .be__jauge small { flex: none; }
  .be__long { display: none; }
  .be__court { display: inline; }
  .be__bouton { height: 30px; padding: 0 8px 0 12px; font-size: 12.5px; }
  .be__phrase { flex: 1; font-size: 13px; }
  .be__admin { justify-content: flex-start; padding: 6px 14px; }
  .be__note { flex-basis: 100%; max-width: none; white-space: normal; }
  .modal__card.idf { padding: 26px 20px 20px; }
  .me-ecole { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .me-ecole .btn { grid-column: 1 / -1; justify-content: center; text-align: center; }
  .pg-avancee { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; padding: 16px; }
  .pg-avancee__chiffre { min-width: 0; }
  .pg-avancee__chiffre strong { font-size: 30px; }
  .pg-avancee__go { grid-column: 1 / -1; max-width: none; justify-content: space-between; }
  .pg-fin__go { width: 100%; justify-content: center; padding: 0 16px; }
  .pg-heros { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pg-heros__image { aspect-ratio: 16 / 9; }
  .pg-heros h1 { font-size: 25px; }
  .pg-page { padding: 20px 18px 22px; border-radius: 18px; }
  .pg-page h1 { font-size: 23px; }
  .pg-contenu { font-size: 15px; }
  .pg-lecon { grid-template-columns: 20px 28px minmax(0, 1fr) 14px; gap: 9px; padding: 11px 8px; }
  .pg-lecon__note { display: none; }
  .pg-chapitre__titre { padding: 12px 8px 10px; font-size: 15.5px; }
  .pg-voisines { grid-template-columns: minmax(0, 1fr); }
  .pg-voisine--vide { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .be__ligne, .pg-carte, .pg-jauge__barre span, .pg-fin__faite.is-neuve { animation: none; }
  .pg-carte, .pg-carte__image img, .pg-voisine, .be__bouton, .be__barre span, .pg-jauge__barre span { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════════════════════════
   « Tes rangs » : les vingt rangs de Seqooia (public/js/trophees.js, guideRangs)
   La fenêtre ouverte depuis la fiche du compte (un clic sur le rang ou le niveau), le profil et
   la Communauté. En tête, où en est le membre et sa jauge vers le rang suivant ; puis les vingt
   rangs en grille de cinq : débloqués (leur teinte), en cours (« Actuel », mis en avant), ou
   encore sous cadenas (grisés). Chaque rang garde la teinte de sa famille (.rk--…).
   ══════════════════════════════════════════════════════════════════════════════════════════ */
.cm-guide.rg { max-width: 900px; gap: 16px; }
.rg-moi {
  display: grid; gap: 10px; padding: 14px 16px 13px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(43, 196, 138, .1), rgba(29, 158, 117, .04)); border: 1px solid rgba(29, 158, 117, .22);
}
.rg-moi__ligne { display: flex; align-items: center; gap: 12px; }
.rg-moi__nom { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rg-moi__nom strong { font-size: 17px; letter-spacing: -.3px; }
.rg-moi__nom span { font-size: 12.5px; color: var(--muted); }
.rg-moi__xp { flex: none; font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: var(--green3); font-variant-numeric: tabular-nums; }
.rg-moi__barre { height: 9px; overflow: hidden; border-radius: 99px; background: rgba(21, 64, 50, .09); }
.rg-moi__barre span {
  display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2BC48A, #14755C);
  animation: rg-barre .9s cubic-bezier(.2, .8, .2, 1) backwards;
}
@keyframes rg-barre { from { width: 0; } }
.rg-moi--maitre .rg-moi__barre span, .rg-moi--legende .rg-moi__barre span { background: linear-gradient(90deg, #F1C24B, #E0A526); }
.rg-moi__phrase { margin: 0; font-size: 12.5px; color: var(--muted); }
.rg .rk--md { width: 40px; height: 40px; }
.rg .rk--md .rk__icon { width: 20px; height: 20px; }

.rg-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rg-carte {
  position: relative; display: grid; justify-items: center; gap: 3px; padding: 14px 8px 11px; border-radius: 16px; text-align: center;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--border);
  animation: rg-carte .4s cubic-bezier(.2, .9, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 18ms);
}
@keyframes rg-carte { from { opacity: 0; transform: translateY(6px); } }
.rg-carte__num { position: absolute; top: 8px; left: 10px; font-size: 10px; font-weight: 800; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.rg-carte__ico { margin-bottom: 5px; }
.rg-carte__nom { font-size: 14px; letter-spacing: -.2px; }
.rg-carte__seuil { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rg-carte__etat { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; font-weight: 800; }
.rg-carte__etat .cm-ico { width: 12px; height: 12px; }
/* Débloqué : un liseré vert, sa coche. */
.rg-carte.is-fait { background: linear-gradient(180deg, rgba(240, 253, 247, .95), rgba(255, 255, 255, .8)); border-color: rgba(29, 158, 117, .28); }
.rg-carte.is-fait .rg-carte__etat { color: var(--green3); }
/* Le rang en cours : mis en avant. */
.rg-carte.is-ici {
  background: linear-gradient(160deg, #DDF8EC, #C6F1DF); border-color: rgba(29, 158, 117, .55);
  box-shadow: 0 0 0 3px rgba(43, 196, 138, .18), 0 14px 26px -16px rgba(20, 117, 92, .55);
}
.rg-carte.is-ici .rg-carte__etat { color: #0B6B50; }
/* Pas encore débloqué : grisé, sous cadenas. */
.rg-carte.is-ferme { background: rgba(248, 250, 249, .7); }
.rg-carte.is-ferme .rg-carte__ico { background: linear-gradient(135deg, #E2E8F0, #CBD5E1); box-shadow: none; color: #fff; }
.rg-carte.is-ferme .rg-carte__nom { color: #64748B; }
.rg-carte.is-ferme .rg-carte__seuil, .rg-carte.is-ferme .rg-carte__etat { color: var(--muted-2); }
.rg .cm-guide__sec { margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--border); }
.rg .cm-guide__sec h3 { margin-bottom: 12px; font-size: 16px; }
.rg-fin { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.rg-fin .cm-ico { width: 16px; height: 16px; }

/* La fiche du compte : le rang et le niveau sont des boutons vers « Tes rangs ». */
.ucard__ligne[title] { cursor: pointer; }

@media (max-width: 760px) {
  .rg-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rg-carte { padding: 13px 5px 10px; border-radius: 14px; }
  .rg-carte__nom { font-size: 13px; }
  .rg-carte__seuil { font-size: 10.5px; }
}
@media (max-width: 430px) {
  .rg-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-moi__nom strong, .rg-moi__xp { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .rg-carte, .rg-moi__barre span { animation: none; }
}

/* ── Au doigt : des zones de toucher plus généreuses, sans rien changer au dessin ──
   (le cœur d'une vidéo, « Lire la suite » d'un avis, le lien de retour, les points du
   carrousel de L'école : le dessin reste le même, la zone qui répond au doigt grandit.) */
@media (pointer: coarse) {
  .like { min-height: 30px; padding: 5px 11px; }
  .avis-plus { padding: 9px 12px 9px 0; margin: -9px 0; }
  .backlink { padding: 8px 10px 8px 0; margin-bottom: 8px; }
  .ec-fan__point { height: 30px; }
}

/* ==========================================================================
   Statistiques du campus — l'onglet du super admin (js/statistiques.js).
   Les couleurs des séries : le vert Seqooia, puis le bleu, puis l'orange
   (ordre vérifié pour les daltonismes). La rampe verte sert aux grandeurs
   (carte de chaleur) et aux étapes ordonnées (entonnoir, offres).
   ========================================================================== */
:root {
  --st-s1: #1D9E75;
  --st-s2: #2A78D6;
  --st-s3: #EB6834;
  --st-grille: #E5ECE9;
  --st-axe: #C6D2CD;
  --st-muet: #64748B;
  --st-texte-2: #475569;
  --st-hausse: #0A7D33;
  --st-baisse: #B42318;
  --st-critique: #D03B3B;
  --st-chaud-0: #EEF3F1;
  --st-chaud-1: #CDEFE1;
  --st-chaud-2: #97DDC0;
  --st-chaud-3: #52C197;
  --st-chaud-4: #1D9E75;
  --st-chaud-5: #0B5E45;
}
.view:has(> .me > .st) { max-width: 1320px; }
.st { display: grid; gap: 16px; min-width: 0; }
.st .card + .card { margin-top: 0; }
.st-i { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; }
.st-i svg { width: 100%; height: 100%; }

/* L'en-tête : le titre, qui est en ligne, l'heure de la mise à jour. */
.st-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.st-tete__txt { min-width: 0; max-width: 760px; }
.st-tete h2 { margin: 2px 0 6px; font-size: 26px; letter-spacing: -.7px; }
.st-tete p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.st-tete__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-direct {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; outline: none;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--st-muet);
}
.st-direct:focus-visible { box-shadow: 0 0 0 3px rgba(43, 196, 138, .3); }
.st-direct strong { font-size: 14.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.st-direct__point { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #22C55E; }
.st-direct__point::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #22C55E; animation: st-pouls 1.8s ease-out infinite; }
.st-direct.is-vide .st-direct__point { background: #94A3B8; }
.st-direct.is-vide .st-direct__point::after { animation: none; opacity: 0; }
@keyframes st-pouls { from { transform: scale(1); opacity: .65; } to { transform: scale(2.9); opacity: 0; } }
.st-bouton {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--st-texte-2); box-shadow: var(--shadow-sm);
  transition: color .2s, border-color .2s;
}
.st-bouton:hover { color: var(--green3); border-color: rgba(29, 158, 117, .35); }
.st-bouton:hover .st-i { transform: rotate(180deg); }
.st-bouton .st-i { width: 15px; height: 15px; transition: transform .5s ease; }
.st-charge { margin: 30px 0; text-align: center; font-size: 14px; color: var(--muted); }

/* La vue d'ensemble : un panneau vert profond, des lueurs qui dérivent, quatre jauges. */
.st-haut { display: grid; gap: 16px; min-width: 0; }
.st-heros {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.7fr);
  gap: 22px 28px; align-items: center; padding: 30px 32px; border-radius: 26px; color: #fff;
  background: radial-gradient(130% 150% at 0% 0%, #1B8E6B 0%, #0F5C46 42%, #083A2D 100%);
  box-shadow: 0 26px 54px -30px rgba(8, 58, 45, .75);
}
.st-heros::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(90% 90% at 70% 40%, #000, transparent);
  mask-image: radial-gradient(90% 90% at 70% 40%, #000, transparent);
}
.st-heros__fond { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.st-heros__fond i { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; animation: st-orbe 18s ease-in-out infinite alternate; }
.st-heros__fond i:nth-child(1) { width: 340px; height: 340px; left: -90px; top: -150px; background: #2BC48A; }
.st-heros__fond i:nth-child(2) { width: 280px; height: 280px; right: 12%; bottom: -170px; background: #0EA5A0; animation-duration: 23s; }
.st-heros__fond i:nth-child(3) { width: 220px; height: 220px; right: -70px; top: -80px; background: #C9A84C; opacity: .28; animation-duration: 27s; }
@keyframes st-orbe { from { transform: translate(0, 0) scale(1); } to { transform: translate(46px, 28px) scale(1.16); } }
.st-heros__principal { display: grid; gap: 4px; min-width: 0; }
.st-heros__label { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.st-heros__valeur { margin: 4px 0 10px; font-size: 66px; font-weight: 700; letter-spacing: -2.4px; line-height: 1; }
.st-heros__semaine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-heros__pastille { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 700; }
.st-heros__courbe { display: grid; gap: 4px; margin-top: 16px; }
.st-heros__courbe .st-spark { height: 44px; }
.st-heros__courbe small { font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.st-heros__jauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.st-heros .st-jauge {
  padding: 16px 10px 14px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .11);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .25s, transform .25s;
}
.st-heros .st-jauge:hover { background: rgba(255, 255, 255, .11); transform: translateY(-2px); }
.st-heros .st-arc__piste { stroke: rgba(255, 255, 255, .14); }
.st-heros .st-arc__val { stroke: #7CF0C2; filter: drop-shadow(0 0 6px rgba(124, 240, 194, .55)); }
.st-heros .st-jauge__nom { color: #fff; }
.st-heros .st-jauge__detail { color: rgba(255, 255, 255, .64); }

/* Les jauges en arc. */
/* Le contenu part du haut : dans une même rangée, les arcs et les pourcentages restent alignés, même quand un intitulé passe sur deux lignes. */
.st-jauge { display: grid; justify-items: center; align-content: start; gap: 2px; min-width: 0; text-align: center; outline: none; border-radius: 18px; }
.st-jauge:focus-visible { box-shadow: 0 0 0 3px rgba(43, 196, 138, .35); }
.st-jauge__arc { position: relative; width: min(100%, 150px); }
.st-arc { display: block; width: 100%; height: auto; overflow: visible; }
.st-arc path { fill: none; stroke-width: 10; stroke-linecap: round; }
.st-arc__piste { stroke: #E3EEE9; }
.st-arc__val { stroke: var(--st-s1); stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.5s cubic-bezier(.22, .9, .25, 1) .1s; }
.is-vu .st-arc__val { stroke-dashoffset: var(--fin); }
.st-jauge.is-s2 .st-arc__val { stroke: var(--st-s2); }
.st-jauge.is-s3 .st-arc__val { stroke: var(--st-s3); }
.st-jauge__val { position: absolute; left: 0; right: 0; bottom: 0; font-size: 25px; font-weight: 700; letter-spacing: -.7px; line-height: 1; }
.st-jauge__nom { margin-top: 6px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.st-jauge__detail { font-size: 11.5px; line-height: 1.35; color: var(--st-muet); }

/* La petite courbe des tuiles : elle se dessine de gauche à droite. */
.st-spark { display: block; width: 100%; height: 34px; overflow: visible; clip-path: inset(0 100% 0 0); transition: clip-path 1.3s cubic-bezier(.3, .8, .3, 1) .25s; }
.is-vu .st-spark { clip-path: inset(0 -2px 0 0); }
.st-spark__ligne { fill: none; stroke: var(--st-s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.st-spark__aire { fill: var(--st-s1); opacity: .1; }
.st-spark.is-clair .st-spark__ligne { stroke: #7CF0C2; }
.st-spark.is-clair .st-spark__aire { fill: #fff; opacity: .12; }

/* Les variations contre la période d'avant. */
.st-delta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.st-delta strong { font-weight: 800; }
.st-delta small { font-size: 11.5px; font-weight: 600; color: var(--st-muet); }
.st-delta .st-i { width: 13px; height: 13px; }
.st-delta.is-hausse { color: var(--st-hausse); }
.st-delta.is-baisse { color: var(--st-baisse); }
.st-delta.is-neutre { color: var(--st-muet); }
.st-delta.is-clair.is-hausse { color: #9BF5C9; }
.st-delta.is-clair.is-baisse { color: #FFB8AC; }
.st-delta.is-clair, .st-delta.is-clair small { color: rgba(255, 255, 255, .7); }
.st-delta.is-clair.is-hausse small, .st-delta.is-clair.is-baisse small { color: rgba(255, 255, 255, .62); }

/* La barre des périodes : collée sous l'en-tête en descendant. */
.st-filtre {
  position: sticky; top: calc(var(--topbar-h) + 10px); z-index: 6; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, .88); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 26px -18px rgba(21, 64, 50, .4);
}
.st-filtre[hidden] { display: none; }
.st-filtre__nom { font-size: 13px; font-weight: 800; color: var(--text); }
.st-filtre__note { font-size: 12.5px; color: var(--st-muet); }
.st-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 13px; background: #EDF3F0; }
.st-seg__b {
  padding: 7px 12px; border: 0; border-radius: 10px; background: none; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--st-muet); transition: background .2s, color .2s, box-shadow .2s;
}
.st-seg__b:hover { color: var(--text); }
.st-seg__b[aria-pressed="true"], .st-seg__b[aria-checked="true"] { background: #fff; color: var(--green3); box-shadow: 0 1px 4px rgba(21, 64, 50, .14); }
.st-seg__b:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.st-bas { display: grid; gap: 22px; min-width: 0; transition: opacity .2s; }
.st-bas.is-charge { opacity: .55; pointer-events: none; }

/* Les tuiles. */
.st-tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.st-tuile {
  display: grid; align-content: start; gap: 6px; min-width: 0; padding: 16px 16px 12px; border-radius: 20px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.st-tuile:not(.is-vu) { opacity: 0; }
.st-tuile.is-vu { animation: st-monte .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
.st-tuile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@keyframes st-monte { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.st-tuile__tete { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-tuile__tete .st-i { width: 28px; height: 28px; padding: 6px; border-radius: 10px; background: rgba(43, 196, 138, .12); color: var(--green3); }
.st-tuile__nom { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--st-muet); }
.st-tuile__val { font-size: 31px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.st-tuile .st-spark { margin-top: 4px; }
.st-tuile__vide { height: 38px; }

/* Les cartes. */
.st-carte { display: grid; gap: 14px; min-width: 0; padding: 22px; }
.st-carte__tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.st-carte__tete > div:first-child { min-width: 0; flex: 1 1 280px; }
.st-carte__tete h4 { margin: 0; font-size: 17.5px; letter-spacing: -.3px; }
/* « Ce que ça mesure » : une petite étiquette, puis la phrase. */
.st-carte__tete p.st-carte__mesure { margin-top: 6px; }
.st-carte__etiquette {
  display: inline-block; margin-right: 7px; padding: 2px 7px; border-radius: 6px; vertical-align: 1px;
  font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--teal-deep); background: rgba(43, 196, 138, .12);
}
/* « À retenir » : ce que disent les chiffres, en une phrase, mis en avant. */
.st-retenir {
  display: flex; align-items: flex-start; gap: 10px; margin: -2px 0 0; padding: 11px 14px; border-radius: 12px;
  font-size: 13.5px; line-height: 1.5; color: var(--text);
  background: linear-gradient(90deg, rgba(43, 196, 138, .12), rgba(43, 196, 138, .04)); box-shadow: inset 3px 0 0 var(--st-s1);
}
.st-retenir .st-i { margin-top: 1px; color: var(--st-s1); }
.st-retenir strong { font-weight: 800; }

/* Les six parties du Tracking Campus : chacune dans son encadré, son numéro, sa question. */
.st-chap {
  display: grid; gap: 16px; min-width: 0; padding: 18px; border-radius: 26px; scroll-margin-top: 120px;
  background: linear-gradient(180deg, rgba(43, 196, 138, .07), rgba(43, 196, 138, .02) 160px, rgba(246, 250, 248, .7));
  border: 1px solid rgba(29, 158, 117, .16);
}
.st-chap__tete { display: flex; align-items: flex-start; gap: 14px; padding: 4px 4px 0; }
.st-chap__num {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  font-size: 15px; font-weight: 800; letter-spacing: .02em; color: #fff; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #2BC48A, #0F6E53); box-shadow: 0 10px 20px -12px rgba(15, 110, 83, .9);
}
.st-chap__tete h3 { margin: 1px 0 4px; font-size: 21px; line-height: 1.2; letter-spacing: -.4px; text-wrap: balance; }
.st-chap__tete p { margin: 0; max-width: 820px; font-size: 13.5px; line-height: 1.5; color: var(--st-muet); }
.st-chap__corps { display: grid; gap: 16px; min-width: 0; }

/* Les courbes jour par jour (les clics, la communauté) : la principale en couleur, celle d'avant en gris. */
.st-ligne { position: relative; height: 230px; outline: none; touch-action: pan-y; }
.st-ligne:focus-visible { border-radius: 10px; box-shadow: 0 0 0 3px rgba(43, 196, 138, .25); }
.st-ligne svg { display: block; overflow: visible; }
.st-ligne__serie { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.3, .8, .3, 1); }
.is-vu .st-ligne__serie, .st-ligne.is-vu .st-ligne__serie { clip-path: inset(-6px -6px -6px -6px); }
.st-ligne__trait { fill: none; stroke: var(--st-s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.st-ligne__aire { fill: var(--st-s1); opacity: .1; }
.st-ligne__serie.is-s2 .st-ligne__trait { stroke: var(--st-s2); }
.st-ligne__serie.is-s2 .st-ligne__aire { fill: var(--st-s2); }
.st-ligne__serie.is-avant .st-ligne__trait { stroke: #A9B6B1; }
.st-ligne__point { fill: var(--st-s1); stroke: #fff; stroke-width: 2; }
.st-ligne__point.is-s2 { fill: var(--st-s2); }
.st-ligne__point.is-avant { fill: #A9B6B1; }
.st-legende__cle i.is-avant, .st-bulle__ligne i.is-avant { background: #A9B6B1; }
.st-legende__cle i.is-s1, .st-bulle__ligne i.is-s1 { background: var(--st-s1); }

/* L'anneau : le tout et ses parts (les boutons par famille, les appareils), la légende à côté. */
.st-anneau { display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; min-width: 0; }
.st-anneau__rond { position: relative; flex: none; width: 172px; height: 172px; }
.st-anneau__rond svg { display: block; width: 100%; height: 100%; overflow: visible; }
.st-anneau__piste { fill: none; stroke: #EEF3F1; stroke-width: 28; }
.st-anneau__part {
  fill: none; stroke-width: 28; outline: none; cursor: default;
  opacity: 0; transition: opacity .5s ease calc(var(--i, 0) * .08s), stroke-width .2s ease;
}
.is-vu .st-anneau__part, .st-anneau.is-vu .st-anneau__part { opacity: 1; }
.st-anneau__part:hover, .st-anneau__part:focus-visible { stroke-width: 33; }
.st-anneau__centre {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none;
}
.st-anneau__total { font-size: 26px; font-weight: 800; letter-spacing: -.6px; line-height: 1; color: var(--text); }
.st-anneau__centre span:last-child { margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--st-muet); }
.st-anneau__legende { display: grid; gap: 8px; flex: 1 1 200px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.st-anneau__legende li {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; align-items: center; gap: 9px;
  font-size: 13px; color: var(--st-texte-2);
}
.st-anneau__legende li.is-vide { opacity: .5; }
.st-anneau__legende i { width: 12px; height: 12px; border-radius: 4px; }
.st-anneau__nom { min-width: 0; font-weight: 600; color: var(--text); }
.st-anneau__legende strong { font-size: 14px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.st-anneau__legende small { min-width: 40px; text-align: right; font-size: 12px; font-weight: 700; color: var(--st-muet); font-variant-numeric: tabular-nums; }

/* Les boutons qui font cliquer : l'anneau à gauche, bouton par bouton à droite. */
.st-ap-boutons__grille { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 22px 30px; align-items: start; }
.st-ap-boutons__liste { display: grid; gap: 10px; min-width: 0; }
@media (max-width: 920px) {
  .st-ap-boutons__grille { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .st-chap { padding: 12px; border-radius: 20px; }
  .st-chap__tete { gap: 11px; }
  .st-chap__num { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; }
  .st-chap__tete h3 { font-size: 18px; }
  .st-anneau { justify-content: center; }
  .st-anneau__rond { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-ligne__serie, .st-anneau__part { transition: none; clip-path: none; opacity: 1; }
}
.st-carte__tete p, .st-carte > p:not([class]) { margin: 4px 0 0; max-width: 680px; font-size: 13px; line-height: 1.5; color: var(--st-muet); }
.st-carte > p:not([class]) { margin-top: -8px; }
.st-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.st-sous-titre { margin: 4px 0 0; font-size: 13px; font-weight: 800; color: var(--teal-deep); }
.st-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--st-muet); }
.st-vide { margin: 0; padding: 18px; border-radius: 14px; background: #F5F9F7; text-align: center; font-size: 13px; line-height: 1.5; color: var(--st-muet); }
.st-inscr__zone { display: grid; gap: 14px; min-width: 0; }
.st-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 10px; }
.st-minis.is-colonne { grid-template-columns: minmax(0, 1fr); }
.st-mini { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 12px 14px; border-radius: 15px; background: #F5F9F7; border: 1px solid var(--border); }
.st-mini__val { font-size: 22px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.st-mini__nom { font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--st-muet); }
.st-mini__detail { font-size: 11.5px; font-weight: 700; color: var(--green3); }
.st-faits { display: grid; gap: 7px; }
.st-faits:empty { display: none; }
.st-fait { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--st-texte-2); }
.st-fait > .st-i { width: 28px; height: 28px; padding: 6px; border-radius: 10px; background: rgba(43, 196, 138, .12); color: var(--green3); }
.st-fait strong { color: var(--text); }
.st-fait.is-alerte > .st-i { background: rgba(208, 59, 59, .1); color: var(--st-baisse); }
.st-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; font-weight: 600; color: var(--st-texte-2); }
.st-legende__cle { display: inline-flex; align-items: center; gap: 6px; }
.st-legende__cle i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--st-s1); }
.st-legende__cle i.is-s2 { background: var(--st-s2); }
.st-legende__cle i.is-s3 { background: var(--st-s3); }

/* Les chiffres d'un graphique, en tableau. */
.st-donnees { border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.st-donnees summary { padding: 10px 14px; cursor: pointer; font-size: 12.5px; font-weight: 800; color: var(--teal-deep); }
.st-donnees__defile { max-height: 300px; overflow: auto; padding: 0 14px 12px; }
.st-donnees table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.st-donnees th { position: sticky; top: 0; padding: 7px 8px; text-align: left; background: #fff; border-bottom: 1px solid var(--border); font-weight: 700; color: var(--st-muet); }
.st-donnees td { padding: 7px 8px; border-bottom: 1px solid rgba(21, 64, 50, .05); }

/* La bulle de survol (posée sur la page entière). */
.st-bulle {
  position: fixed; z-index: 1000; display: grid; gap: 3px; max-width: 290px; padding: 10px 12px; border-radius: 13px; pointer-events: none;
  background: rgba(255, 255, 255, .97); border: 1px solid rgba(21, 64, 50, .1); box-shadow: 0 16px 36px -14px rgba(21, 64, 50, .35);
  font-size: 12.5px; line-height: 1.4; color: #475569;
}
.st-bulle[hidden] { display: none; }
.st-bulle strong { font-size: 13.5px; color: var(--text); }
.st-bulle__ligne { display: flex; align-items: center; gap: 7px; }
.st-bulle__ligne i { flex: none; width: 12px; height: 3px; border-radius: 2px; background: var(--st-s1); }
.st-bulle__ligne i.is-s2 { background: var(--st-s2); }
.st-bulle__ligne i.is-s3 { background: var(--st-s3); }

/* Les colonnes (inscriptions, communauté). */
.st-col { display: grid; gap: 8px; min-width: 0; padding: 18px 0 0 32px; }
.st-col__plot { position: relative; height: var(--plot-h, 220px); }
.st-col__ligne { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--st-grille); }
.st-col__ligne:first-child { border-top-color: var(--st-axe); }
.st-col__tick { position: absolute; right: calc(100% + 8px); top: 0; transform: translateY(-50%); font-size: 11px; color: var(--st-muet); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-col__moy { position: absolute; left: 0; right: 0; z-index: 3; height: 0; border-top: 1px solid rgba(178, 140, 40, .75); pointer-events: none; }
.st-col__moy span { position: absolute; right: 0; bottom: 3px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .9); font-size: 10.5px; font-weight: 700; color: #7A5E12; }
.st-col__barres { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.st-col__b { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; outline: none; }
.st-col__pile {
  display: flex; flex-direction: column; gap: 2px; width: min(24px, 66%); height: calc(var(--h) * 100%);
  transform-origin: bottom; transform: scaleY(0); transition: transform .85s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 16ms);
}
.is-vu .st-col__pile { transform: scaleY(1); }
.st-col__barre { flex: 1 1 0; min-height: 0; border-radius: 4px 4px 0 0; background: var(--st-s1); transition: filter .15s; }
.st-col__barre.is-s2 { background: var(--st-s2); }
.st-col__b.is-record .st-col__barre:not(.is-s2) { background: var(--green3); }
.st-col__b:hover .st-col__barre, .st-col__b:focus-visible .st-col__barre { filter: brightness(.86); }
.st-col__b:focus-visible { box-shadow: inset 0 0 0 2px rgba(43, 196, 138, .35); border-radius: 6px; }
.st-col__val { position: absolute; bottom: calc(var(--h) * 100% + 5px); font-size: 11.5px; font-weight: 800; color: var(--text); opacity: 0; transition: opacity .3s .8s; }
.is-vu .st-col__val { opacity: 1; }
.st-col__axe { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); font-size: 11px; color: var(--st-muet); }
.st-col__axe span { justify-self: center; white-space: nowrap; }

/* Les barres couchées. */
.st-barres { display: grid; gap: 9px; min-width: 0; }
.st-barres__ligne {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(40px, 1fr) auto; align-items: center; gap: 12px;
  min-width: 0; font-size: 13px; outline: none; border-radius: 8px;
}
.st-barres__ligne:focus-visible { box-shadow: 0 0 0 3px rgba(43, 196, 138, .3); }
.st-barres__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--st-texte-2); }
.st-barres__piste { height: 14px; border-radius: 0 4px 4px 0; background: #F0F5F3; }
.st-barres__barre {
  display: block; width: calc(var(--f) * 100%); height: 100%; border-radius: 0 4px 4px 0; background: var(--st-s1);
  transform-origin: left; transform: scaleX(0); transition: transform .85s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 45ms), filter .15s;
}
.is-vu .st-barres__barre { transform: scaleX(1); }
.st-barres__ligne:hover .st-barres__barre { filter: brightness(.88); }
.st-barres__ligne.is-accent .st-barres__barre { background: var(--green3); }
.st-barres__val { display: grid; justify-items: end; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-barres__val small { font-size: 11px; font-weight: 600; color: var(--st-muet); }

/* Une barre découpée en parts. */
.st-seg-barre { display: grid; gap: 8px; min-width: 0; }
.st-seg-barre__tout {
  display: flex; gap: 2px; height: 28px; border-radius: 6px;
  clip-path: inset(0 100% 0 0 round 6px); transition: clip-path 1.1s cubic-bezier(.3, .8, .3, 1);
}
.is-vu .st-seg-barre__tout { clip-path: inset(0 0 0 0 round 6px); }
.st-seg-barre__part { display: flex; align-items: center; flex: 1 1 0; min-width: 3px; padding: 0 8px; border-radius: 4px; white-space: nowrap; font-size: 12px; font-weight: 800; }

/* La carte de chaleur : sept jours, vingt-quatre heures (sur téléphone, couchée). */
.st-chaleur { display: grid; gap: 10px; min-width: 0; }
.st-chaleur__grille { display: grid; grid-template-columns: 36px repeat(24, minmax(0, 1fr)); grid-template-rows: 18px repeat(7, auto); gap: 3px; }
.st-chaleur__grille > * { grid-row: calc(var(--j) + 2); grid-column: calc(var(--h) + 2); }
.st-chaleur__heure, .st-chaleur__jour { align-self: center; font-size: 10.5px; color: var(--st-muet); white-space: nowrap; }
.st-chaleur__jour { font-weight: 700; }
.st-chaleur__case {
  display: block; aspect-ratio: 1.3; border-radius: 4px; background: var(--st-chaud-0); outline: none;
  opacity: 0; transform: scale(.4); transition: transform .5s cubic-bezier(.2, .9, .3, 1.3), opacity .5s; transition-delay: calc(var(--d, 0) * 16ms);
}
.is-vu .st-chaleur__case { opacity: 1; transform: none; }
.st-chaleur__case.n1 { background: var(--st-chaud-1); }
.st-chaleur__case.n2 { background: var(--st-chaud-2); }
.st-chaleur__case.n3 { background: var(--st-chaud-3); }
.st-chaleur__case.n4 { background: var(--st-chaud-4); }
.st-chaleur__case.n5 { background: var(--st-chaud-5); }
.st-chaleur__case[tabindex="0"]:hover, .st-chaleur__case:focus-visible { outline: 2px solid #0B3B2E; outline-offset: 1px; }
.st-chaleur__echelle { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 11px; color: var(--st-muet); }
.st-chaleur__echelle .st-chaleur__case { width: 14px; aspect-ratio: 1; opacity: 1; transform: none; }

/* Le radar des espaces. */
.st-radar { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.st-radar svg { display: block; width: 100%; max-width: 440px; overflow: visible; }
.st-radar__anneau { fill: none; stroke: var(--st-grille); }
.st-radar__rayon { stroke: var(--st-grille); }
.st-radar__graduation { font-family: var(--font); font-size: 10px; fill: var(--st-muet); }
.st-radar__serie { transform-box: view-box; transform-origin: 190px 164px; transform: scale(0); transition: transform 1.1s cubic-bezier(.2, .9, .3, 1.12); }
.is-vu .st-radar__serie { transform: scale(1); }
.st-radar__serie.is-s1 { transition-delay: .15s; }
.st-radar__forme { fill: rgba(29, 158, 117, .16); stroke: var(--st-s1); stroke-width: 2; stroke-linejoin: round; }
.is-s2 > .st-radar__forme { fill: rgba(42, 120, 214, .07); stroke: var(--st-s2); }
.st-radar__point { outline: none; opacity: 0; transition: opacity .35s 1s; }
.is-vu .st-radar__point { opacity: 1; }
.st-radar__cible { fill: transparent; }
.st-radar__rond { fill: var(--st-s1); stroke: #fff; stroke-width: 2; transition: r .15s; }
.st-radar__point.is-s2 .st-radar__rond { fill: var(--st-s2); }
.st-radar__point:hover .st-radar__rond, .st-radar__point:focus-visible .st-radar__rond { r: 6.5; }
.st-radar__nom { font-family: var(--font); font-size: 12.5px; font-weight: 700; fill: var(--text); }
.st-radar__part { font-size: 12px; font-weight: 800; fill: var(--green3); }

/* Les courbes de lecture des vidéos. */
.st-courbes-bloc { display: grid; gap: 8px; min-width: 0; }
.st-courbes { position: relative; height: 230px; outline: none; touch-action: pan-y; }
.st-courbes:focus-visible { border-radius: 10px; box-shadow: 0 0 0 3px rgba(43, 196, 138, .25); }
.st-courbes svg { display: block; overflow: visible; }
.st-courbes__grille { stroke: var(--st-grille); }
.st-courbes__base { stroke: var(--st-axe); }
.st-axe { font-family: var(--font); font-size: 11px; fill: var(--st-muet); font-variant-numeric: tabular-nums; }
.st-courbes__serie { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s cubic-bezier(.3, .8, .3, 1); }
.is-vu .st-courbes__serie { clip-path: inset(-4px -4px -4px -4px); }
.st-courbes__serie.is-s2 { transition-delay: .15s; }
.st-courbes__serie.is-s3 { transition-delay: .3s; }
.st-courbes__ligne { fill: none; stroke: var(--st-s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
/* Trois courbes : pas de voile dessous (superposés, ils brouilleraient la lecture). */
.st-courbes__aire { display: none; }
.is-s2 > .st-courbes__ligne { stroke: var(--st-s2); }
.is-s3 > .st-courbes__ligne { stroke: var(--st-s3); }
.st-courbes__trait { stroke: var(--st-axe); }
.st-courbes__point { fill: var(--st-s1); stroke: #fff; stroke-width: 2; }
.st-courbes__point.is-s2 { fill: var(--st-s2); }
.st-courbes__point.is-s3 { fill: var(--st-s3); }
.st-videos__jauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* L'entonnoir : des barres centrées, du vert profond au vert clair. */
.st-ent { display: grid; min-width: 0; }
.st-ent__ligne, .st-ent__entre { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr) 86px; align-items: center; gap: 14px; }
.st-ent__ligne { padding: 3px 0; outline: none; border-radius: 10px; }
.st-ent__ligne:focus-visible { box-shadow: 0 0 0 3px rgba(43, 196, 138, .3); }
.st-ent__nom { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.st-ent__piste { display: flex; justify-content: center; min-width: 0; }
.st-ent__barre {
  display: block; width: max(4px, calc(var(--f) * 100%)); height: 26px; border-radius: 7px; background: var(--teinte);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); transform: scaleX(0); transition: transform .95s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 75ms), filter .15s;
}
.is-vu .st-ent__barre { transform: scaleX(1); }
.st-ent__ligne:hover .st-ent__barre { filter: brightness(1.1); }
.st-ent__val { display: grid; justify-items: end; line-height: 1.15; }
.st-ent__n { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-ent__val small { font-size: 11.5px; font-weight: 700; color: var(--st-muet); }
.st-ent__entre { min-height: 20px; }
.st-ent__perte { grid-column: 2; justify-self: center; display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; font-size: 11.5px; font-weight: 600; color: var(--st-muet); }
.st-ent__perte .st-i { width: 13px; height: 13px; }
.st-ent__entre.is-pire .st-ent__perte { border-radius: 999px; background: rgba(208, 59, 59, .09); font-weight: 800; color: var(--st-baisse); }

/* Les pages : vues, visiteurs, temps moyen, départs — et, ouverte, la suite. */
.st-pages__liste { display: grid; min-width: 0; }
.st-pages__entete, .st-page summary {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, .9fr); align-items: center; gap: 12px;
}
.st-pages__entete { padding: 0 12px 8px 30px; border-bottom: 1px solid var(--st-grille); font-size: 11.5px; font-weight: 700; color: var(--st-muet); }
.st-page { border-bottom: 1px solid var(--st-grille); }
.st-page summary { position: relative; padding: 11px 12px 11px 30px; border-radius: 10px; cursor: pointer; list-style: none; font-size: 13px; }
.st-page summary::-webkit-details-marker { display: none; }
.st-page summary::before {
  content: ''; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -4px;
  border-right: 2px solid var(--st-muet); border-bottom: 2px solid var(--st-muet); transform: rotate(-45deg); transition: transform .2s;
}
.st-page[open] summary::before { transform: rotate(45deg); }
.st-page summary:hover { background: #F4F8F6; }
.st-page[open] summary { background: #F0F7F3; }
.st-page summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.st-page__nom { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; font-weight: 700; }
.st-page__badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(208, 59, 59, .1); font-size: 11px; font-weight: 800; color: var(--st-baisse); }
.st-page__badge .st-i { width: 12px; height: 12px; }
.st-page__vues { display: flex; align-items: center; gap: 8px; min-width: 0; font-variant-numeric: tabular-nums; }
.st-page__barre {
  flex: none; width: calc(var(--f) * (100% - 48px)); height: 10px; border-radius: 0 4px 4px 0; background: var(--st-s1);
  transform-origin: left; transform: scaleX(0); transition: transform .85s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 40ms);
}
.is-vu .st-page__barre { transform: scaleX(1); }
.st-page__chiffre { font-weight: 600; color: var(--st-texte-2); font-variant-numeric: tabular-nums; }
.st-page__sortie { display: flex; align-items: center; gap: 8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-page__metre { position: relative; flex: none; width: 52px; height: 6px; border-radius: 99px; background: #E9EFEC; overflow: hidden; }
.st-page__metre::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--t) * 100%); border-radius: 99px; background: #E5A23C; }
.st-page__sortie.is-haute { color: var(--st-baisse); }
.st-page__sortie.is-haute .st-page__metre::after { background: var(--st-critique); }
.st-page__suite { display: grid; gap: 10px; padding: 6px 12px 16px 30px; }
.st-page__suite > p:first-child { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--st-texte-2); }
.st-page__suite .st-barres { opacity: 1; }
.st-page__suite .st-barres__barre { transform: none; }
.st-page__suite .st-barres__ligne.is-accent .st-barres__barre { background: var(--st-critique); }

.st-profil__grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px 28px; }
.st-profil__grille > div { display: grid; align-content: start; gap: 10px; min-width: 0; }
.st-forge__haut { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); align-items: center; gap: 16px; }

@media (max-width: 1120px) {
  .st-heros { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 920px) {
  .st-duo { grid-template-columns: minmax(0, 1fr); }
  .st-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-pages__entete { display: none; }
  .st-page summary { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .st-page summary::before { top: 19px; margin-top: 0; }
  .st-page__nom, .st-page__vues { grid-column: 1 / -1; }
  .st-page__sortie { flex-wrap: wrap; row-gap: 2px; }
  .st-page__chiffre::before, .st-page__sortie::before {
    content: attr(data-nom); display: block; flex-basis: 100%; font-size: 11px; font-weight: 600; color: var(--st-muet);
  }
  .st-page__metre { width: 34px; }
}
@media (max-width: 620px) {
  .st-tete h2 { font-size: 22px; }
  .st-heros { padding: 24px 18px; border-radius: 22px; }
  .st-heros__valeur { font-size: 50px; letter-spacing: -1.6px; }
  .st-heros__jauges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-filtre { position: static; padding: 10px 12px; }
  .st-seg__b { padding: 7px 10px; font-size: 12.5px; }
  .st-tuiles { gap: 10px; }
  .st-tuile { padding: 14px 13px 10px; border-radius: 18px; }
  .st-tuile__val { font-size: 25px; }
  .st-carte { padding: 18px 16px; }
  .st-col { padding-left: 28px; }
  .st-barres__ligne { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'nom val' 'piste piste'; row-gap: 5px; }
  .st-barres__nom { grid-area: nom; white-space: normal; }
  .st-barres__val { grid-area: val; }
  .st-barres__piste { grid-area: piste; }
  .st-ent__ligne { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'nom val' 'piste piste'; row-gap: 5px; padding: 6px 0; }
  .st-ent__nom { grid-area: nom; }
  .st-ent__val { grid-area: val; grid-auto-flow: column; align-items: baseline; gap: 6px; }
  .st-ent__piste { grid-area: piste; }
  .st-ent__entre { grid-template-columns: minmax(0, 1fr); }
  .st-ent__perte { grid-column: 1; }
  .st-videos__jauges { gap: 6px; }
  .st-videos .st-jauge__val { font-size: 19px; }
  .st-profil__grille, .st-forge__haut { grid-template-columns: minmax(0, 1fr); }
  .st-forge__haut .st-jauge { justify-self: center; width: min(100%, 220px); }
  /* La semaine type, couchée : les heures en lignes, les jours en colonnes. */
  .st-chaleur__grille { grid-template-columns: 34px repeat(7, minmax(0, 1fr)); grid-template-rows: 18px repeat(24, auto); gap: 2px 3px; }
  .st-chaleur__grille > * { grid-row: calc(var(--h) + 2); grid-column: calc(var(--j) + 2); }
  .st-chaleur__case { aspect-ratio: 3.2; }
  .st-chaleur__heure { justify-self: start; }
  .st-chaleur__jour { justify-self: center; }
  .st-page summary { padding-left: 26px; }
  .st-page__suite { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-heros__fond i, .st-direct__point::after { animation: none; }
  .st-tuile:not(.is-vu), .st-tuile.is-vu { opacity: 1; animation: none; }
  .st-arc__val, .st-spark, .st-col__pile, .st-col__val, .st-barres__barre, .st-seg-barre__tout, .st-chaleur__case,
  .st-radar__serie, .st-radar__point, .st-courbes__serie, .st-ent__barre, .st-page__barre { transition: none; }
}

/* ── Communauté : « $NVDA » et « @Léa M. » dans le texte ──────────────────────
   Un code d'action ouvre la fiche de l'action (js/bourse.js) ; une mention,
   la fiche du membre (js/mentions.js). Surlignés, cliquables, au clavier aussi. */
.tk {
  display: inline; padding: 0 3px; margin: 0 -1px; border: 0; border-radius: 6px;
  font: inherit; font-weight: 700; line-height: inherit; cursor: pointer;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.tk--bourse { color: #1D4ED8; background: rgba(42, 120, 214, .1); }
.tk--bourse:hover, .tk--bourse:focus-visible { color: #1E40AF; background: rgba(42, 120, 214, .18); outline: none; box-shadow: 0 0 0 2px rgba(42, 120, 214, .18); }
.tk--mention { color: var(--green3); background: rgba(43, 196, 138, .14); }
.tk--mention:hover, .tk--mention:focus-visible, .tk--mention[aria-expanded="true"] { color: #0F5E49; background: rgba(43, 196, 138, .24); outline: none; box-shadow: 0 0 0 2px rgba(43, 196, 138, .2); }

/* Le post (ou le commentaire) visé par un lien s'illumine un instant. */
.cm-post.is-cible { animation: cm-cible 3s ease both; }
.cm-c.is-cible .cm-c__bubble { animation: cm-cible-c 3s ease both; }
@keyframes cm-cible { 0%, 60% { box-shadow: 0 0 0 3px rgba(43, 196, 138, .55), 0 18px 40px -20px rgba(29, 158, 117, .6); } }
@keyframes cm-cible-c { 0%, 60% { background: rgba(43, 196, 138, .16); box-shadow: 0 0 0 2px rgba(43, 196, 138, .45); } }
.cm-c__rep { padding: 0; border: 0; background: none; font: 700 11.5px var(--font); color: var(--muted); cursor: pointer; }
.cm-c__rep:hover, .cm-c__rep:focus-visible { color: var(--green3); outline: none; }

/* ── La fiche d'une action ──────────────────────────────────────────────────── */
.modal__card.bs-fiche {
  --bs-hausse: #12A150; --bs-baisse: #E5484D; --bs-hors: #A1A1AA;
  position: relative; max-width: 560px; gap: 12px; padding: 24px 24px 18px;
}
.bs-fermer { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; }
.bs-fermer .cm-ico { width: 16px; height: 16px; }
.bs-tete { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.bs-logo { flex: none; display: block; border-radius: 50%; object-fit: cover; background: #f1f5f9; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 6px 14px -8px rgba(15, 23, 42, .35); }
.bs-logo--mono { display: grid; place-items: center; font-weight: 800; letter-spacing: -.5px; color: #fff; background: linear-gradient(135deg, hsl(var(--t) 62% 52%), hsl(calc(var(--t) + 40) 58% 36%)); }
.bs-logo--attente { width: 48px; height: 48px; background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 50%, #eef2f6 100%) 0 0 / 200% 100%; animation: bs-brille 1.2s linear infinite; }
.bs-id { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bs-nom { font-size: 18px; line-height: 1.2; letter-spacing: -.3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-sous { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.bs-prix { display: flex; flex-direction: column; gap: 4px; min-height: 92px; }
.bs-prix__valeur { font-size: 40px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.bs-prix__var { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bs-prix__var.is-hausse { color: var(--bs-hausse); }
.bs-prix__var.is-baisse { color: var(--bs-baisse); }
.bs-prix__var.is-stable { color: var(--muted); }
.bs-fleche { font-size: 15px; }
.bs-prix__quand { font-weight: 600; color: var(--muted); }
.bs-prix__hors { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.bs-prix__hors .cm-ico { width: 15px; height: 15px; }
.bs-prix__hors .is-hausse { color: var(--bs-hausse); }
.bs-prix__hors .is-baisse { color: var(--bs-baisse); }
.bs-courbe { position: relative; height: 220px; margin: 4px -6px 0; cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bs-courbe__svg { display: block; overflow: visible; }
.bs-courbe__base { stroke: #94A3B8; stroke-width: 1; stroke-dasharray: 3 4; }
.bs-courbe__sol { stroke: #CBD5E1; stroke-width: 1; stroke-dasharray: 2 3; }
.bs-courbe__vol rect { fill: #CBD5E1; }
.bs-courbe__ligne { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bs-courbe__ligne--hors { stroke: var(--bs-hors); }
.bs-courbe__aire.is-entree { animation: bs-aire .9s ease .15s both; }
@keyframes bs-aire { from { opacity: 0; } }
.bs-courbe__halo { opacity: .22; }
.bs-courbe__fin.is-vivant .bs-courbe__halo { transform-box: fill-box; transform-origin: center; animation: bs-pouls 1.8s ease-out infinite; }
@keyframes bs-pouls { 0% { transform: scale(.5); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }
.bs-courbe__trait { stroke: #64748B; stroke-width: 1; stroke-dasharray: 2 3; }
.bs-courbe__curseur circle { filter: drop-shadow(0 1px 3px rgba(15, 23, 42, .35)); }
.bs-courbe__vide { display: grid; place-items: center; height: 100%; margin: 0; font-size: 13px; color: var(--muted); }
.bs-onglets { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 4px; border-radius: 16px; background: #f1f5f4; }
.bs-onglets .pastille { border-radius: 12px; background: #fff; box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .3); }
.bs-onglet { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px; border: 0; border-radius: 12px; background: none; font: inherit; cursor: pointer; }
.bs-onglet:disabled { opacity: .45; cursor: default; }
.bs-onglet__label { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.bs-onglet.is-active .bs-onglet__label { color: var(--text); }
.bs-onglet__perf { max-width: 100%; overflow: hidden; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bs-onglet__perf.is-hausse { color: var(--bs-hausse); }
.bs-onglet__perf.is-baisse { color: var(--bs-baisse); }
.bs-onglet__perf.is-stable { color: var(--muted-2); }
.bs-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bs-chiffre { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 12px; background: #f8fafc; box-shadow: inset 0 0 0 1px var(--border); }
.bs-chiffre span { font-size: 10.5px; font-weight: 700; color: var(--muted-2); text-wrap: balance; }
.bs-chiffre strong { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bs-posts { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.bs-posts__tete { display: flex; align-items: center; justify-content: space-between; }
.bs-posts__tete h3 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; }
.bs-posts__tete h3 .cm-ico { width: 16px; height: 16px; color: var(--green); }
.bs-posts__compte { font-size: 11.5px; font-weight: 700; color: var(--muted-2); }
.bs-posts__liste { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 220px; overflow: auto; }
.bs-post { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: #f8fafc; box-shadow: inset 0 0 0 1px var(--border); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.bs-post:hover, .bs-post:focus-visible { background: rgba(240, 253, 250, .9); outline: none; transform: translateX(2px); }
.bs-post__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bs-post__txt strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-post__txt span { font-size: 12px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bs-post__date { flex: none; font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.bs-post__aller { flex: none; width: 14px; height: 14px; color: var(--muted-2); transition: transform .15s ease; }
.bs-post:hover .bs-post__aller { transform: translateX(2px); color: var(--green3); }
.bs-posts__vide { margin: 0; padding: 10px 12px; border-radius: 12px; background: #f8fafc; font-size: 12.5px; color: var(--muted); }
.bs-pied { margin: 0; font-size: 11px; line-height: 1.5; color: var(--muted-2); text-align: center; }
.bs-introuvable { margin: 4px 0; padding: 12px 14px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 13px; line-height: 1.55; }
.bs-squelette { display: block; border-radius: 8px; background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 50%, #eef2f6 100%) 0 0 / 200% 100%; animation: bs-brille 1.2s linear infinite; }
.bs-squelette--prix { width: 46%; height: 40px; }
.bs-squelette--ligne { width: 62%; height: 16px; }
.bs-squelette--courbe { height: 100%; margin: 8px 6px 0; border-radius: 14px; }
@keyframes bs-brille { to { background-position: -200% 0; } }
/* Sur téléphone, la fiche monte du bas de l'écran, sur toute la largeur : le cours, la courbe, les
   cinq périodes et les trois repères tiennent dans l'écran, sans jamais défiler de côté. */
@media (max-width: 560px) {
  .modal:has(> .bs-fiche) { grid-template-columns: minmax(0, 1fr); align-items: end; padding: 14px 0 0; }
  .modal__card.bs-fiche {
    min-width: 0; max-width: none; max-height: calc(100vh - 14px); max-height: calc(100dvh - 14px);
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    gap: 12px; padding: 20px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    border-bottom: 0; border-radius: 24px 24px 0 0;
    animation: bs-monte .42s cubic-bezier(.2, .9, .3, 1) both;
  }
  .modal.is-closing .modal__card.bs-fiche { animation: bs-descend .22s ease forwards; }
  .bs-fermer { top: 12px; right: 12px; }
  .bs-tete { gap: 12px; padding-right: 44px; }
  .bs-nom { font-size: 16.5px; }
  .bs-sous { font-size: 12px; }
  .bs-prix { min-height: 0; gap: 3px; }
  .bs-prix__valeur { font-size: 32px; }
  .bs-prix__var { font-size: 13.5px; }
  .bs-prix__hors { font-size: 12px; }
  .bs-courbe { height: 170px; }
  .bs-onglets { gap: 0; padding: 3px; border-radius: 14px; }
  .bs-onglet { padding: 7px 1px; }
  .bs-onglet__label { font-size: 12px; }
  .bs-onglet__perf { font-size: clamp(9px, 2.7vw, 10.5px); letter-spacing: -.2px; }
  .bs-chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .bs-chiffre { padding: 8px 9px; }
  .bs-chiffre span { font-size: 10px; line-height: 1.3; }
  .bs-chiffre strong { font-size: 12.5px; }
  .bs-posts__liste { max-height: none; }
}
@keyframes bs-monte { from { transform: translateY(100%); } }
@keyframes bs-descend { to { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .bs-courbe__aire.is-entree, .bs-courbe__fin.is-vivant .bs-courbe__halo, .bs-squelette, .bs-logo--attente { animation: none !important; }
}

/* ── La fiche d'un membre (survol d'une mention) ──────────────────────────────── */
.mt-fiche {
  position: fixed; z-index: 270; width: 316px; max-width: calc(100vw - 16px); padding: 16px;
  display: flex; flex-direction: column; gap: 10px; border-radius: 20px;
  background: rgba(255, 255, 255, .97); border: 1px solid var(--border);
  box-shadow: 0 22px 48px -18px rgba(15, 23, 42, .4), 0 2px 6px rgba(15, 23, 42, .05);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: mt-entree .2s cubic-bezier(.2, 1, .3, 1) both;
}
.mt-fiche.is-dessus { transform-origin: 50% 100%; }
.mt-fiche.is-sortie { animation: mt-sortie .15s ease forwards; }
@keyframes mt-entree { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes mt-sortie { to { opacity: 0; transform: translateY(4px) scale(.98); } }
.mt-fiche__attente { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.mt-roue { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(29, 158, 117, .25); border-top-color: var(--green); animation: mt-tourne .8s linear infinite; }
@keyframes mt-tourne { to { transform: rotate(360deg); } }
.mt-fiche__tete { display: flex; align-items: center; gap: 12px; }
.mt-fiche__id { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.mt-fiche__id strong { font-size: 16px; letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.mt-eleve { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2A78D6, #1E3A8A); box-shadow: 0 6px 14px -8px rgba(30, 58, 138, .8); }
.mt-eleve--master { background: linear-gradient(135deg, #7C6CF2, #4C1D95); }
.mt-eleve--prime { background: linear-gradient(135deg, #F7D774, #B45309); color: #3B2304; }
.mt-eleve__ico { display: inline-grid; width: 13px; height: 13px; }
.mt-eleve__ico svg { width: 100%; height: 100%; stroke-width: 2.3; }
.mt-fiche__rang { display: flex; align-items: center; gap: 8px; }
.mt-fiche__rang .rang-pill { font-size: 11px; }
.mt-fiche__niveau { font-size: 13px; font-weight: 800; }
.mt-fiche__xp { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.mt-fiche__barre { display: block; height: 6px; margin-top: -4px; border-radius: 999px; background: rgba(21, 64, 50, .08); overflow: hidden; }
.mt-fiche__barre span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1s cubic-bezier(.22, 1, .36, 1) .1s; }
.mt-fiche.is-pleine .mt-fiche__barre span { width: var(--w, 0); }
.mt-fiche__barre--investisseur span { background: linear-gradient(90deg, #4FA3C4, #0C3346); }
.mt-fiche__barre--apprenti span { background: linear-gradient(90deg, #cbd5e1, #64748b); }
.mt-fiche__barre--maitre span { background: linear-gradient(90deg, #fcd34d, #b45309); }
.mt-fiche__barre--legende span { background: linear-gradient(90deg, #f7d774, #0d9488); }
.mt-fiche__kicker { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.mt-fiche__trophees { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.mt-fiche__medailles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mt-fiche__medaille { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px 5px; border-radius: 12px; background: #f8fafc; text-align: center; }
.mt-fiche__tnom { font-size: 11px; font-weight: 700; line-height: 1.25; }
.mt-fiche__tier { font-size: 10px; font-weight: 800; }
.mt-fiche__faits { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mt-fiche__faits li { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--text); background: rgba(21, 64, 50, .05); }
.mt-fiche__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin: 0; padding-top: 9px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.mt-fiche__pied > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mt-fiche__pied .cm-ico { width: 12px; height: 12px; color: var(--green); }
.mt-fiche__vide { margin: 0; font-size: 12px; color: var(--muted); }

/* ── Les suggestions après « @ » et « $ » ─────────────────────────────────────── */
.mt-sugg {
  position: fixed; z-index: 280; display: flex; flex-direction: column; gap: 2px; padding: 6px;
  max-height: 300px; overflow: auto; border-radius: 16px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .38); animation: mt-entree .16s ease both;
}
.mt-sugg__titre { margin: 2px 6px 4px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.mt-sugg__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 11px; background: none; font: inherit; text-align: left; cursor: pointer; }
.mt-sugg__item.is-on { background: rgba(43, 196, 138, .12); }
.mt-sugg__av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; font-size: 13px; font-weight: 800; color: #fff; background: var(--grad); }
.mt-sugg__item .bs-logo { flex: none; }
.mt-sugg__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-sugg__txt strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-sugg__txt span { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-sugg__type { flex: none; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; color: #1D4ED8; background: rgba(42, 120, 214, .1); }
.mt-sugg__vide { margin: 4px 8px; font-size: 12px; color: var(--muted); }

/* ── Mon profil : « On t'a mentionné » ─────────────────────────────────────────── */
.me-mentions { gap: 12px; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.me-mentions__tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.me-mentions__tete h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.me-mentions__compte { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--grad); box-shadow: var(--shadow-green); }
.me-mentions__attente { height: 64px; border-radius: 14px; }
.me-mentions__liste { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.me-mention { position: relative; display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #f8fafc; box-shadow: inset 0 0 0 1px var(--border); }
.me-mention.is-neuve { background: linear-gradient(135deg, rgba(240, 253, 250, .95), rgba(255, 255, 255, .9)); box-shadow: inset 0 0 0 1px rgba(43, 196, 138, .35); }
.me-mention__av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; font-size: 14px; font-weight: 800; color: #fff; background: var(--grad); }
.me-mention__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.me-mention__qui { margin: 0; font-size: 13px; line-height: 1.4; }
.me-mention__quand { color: var(--muted-2); font-size: 12px; }
.me-mention__extrait { margin: 0; padding: 7px 10px; border-left: 3px solid rgba(43, 196, 138, .5); border-radius: 0 10px 10px 0; background: #fff; font-size: 12.5px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.me-mention__moi { padding: 0 3px; border-radius: 5px; font-weight: 700; color: var(--green3); background: rgba(43, 196, 138, .18); }
.me-mention__ou { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-mention__ou .cm-ico { flex: none; width: 12px; height: 12px; }
.me-mention__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.me-mention__actions .btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; }
.me-mention__actions .cm-ico { width: 13px; height: 13px; }
.me-mention__point { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #2BC48A; box-shadow: 0 0 0 4px rgba(43, 196, 138, .18); }
.me-mentions__plus { align-self: flex-start; padding: 0; border: 0; background: none; font: 700 12.5px var(--font); color: var(--green3); cursor: pointer; }
.me-mentions__vide { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ── L'en-tête : les mentions sur la photo, le rang et le niveau sur une ligne ─── */
.userbtn__ring { position: relative; }
.userbtn__badge {
  position: absolute; top: -4px; right: -6px; z-index: 2; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 999px; border: 2px solid #fff;
  font-size: 9.5px; font-weight: 800; line-height: 1; color: #fff; background: #E5484D;
  box-shadow: 0 2px 6px rgba(229, 72, 77, .45); animation: badge-pop .45s cubic-bezier(.3, 1.6, .5, 1) both;
}
.userbtn__badge[hidden] { display: none; }
@keyframes badge-pop { from { transform: scale(0); } }
.ucard__niveau { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ucard__pastille--mention { color: #fff; background: linear-gradient(135deg, #F87171, #E5484D); box-shadow: 0 4px 10px -4px rgba(229, 72, 77, .6); }

/* ── Fête de la série : la médaille du prochain trophée et sa jauge ──────────────── */
.bv-serie .bv-serie__cap { display: flex; align-items: center; gap: 12px; text-align: left; }
.bv-serie__jauge { flex: 1; min-width: 0; }

/* ── Communauté : les posts du mois, la fin du mur, les vues, les émojis ─────────── */
.cm-mois__liste { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cm-mois__post {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 13px;
  background: rgba(240, 253, 250, .6); box-shadow: inset 0 0 0 1px var(--border); font: inherit; text-align: left; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cm-mois__post:hover, .cm-mois__post:focus-visible { background: #fff; transform: translateX(2px); box-shadow: inset 0 0 0 1px rgba(43, 196, 138, .35), 0 8px 18px -12px rgba(21, 64, 50, .4); outline: none; }
.cm-mois__rang { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.cm-mois__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cm-mois__txt strong { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-mois__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.cm-mois__meta > span { display: inline-flex; align-items: center; gap: 4px; }
.cm-mois__meta .cm-ico { width: 12px; height: 12px; color: var(--green); }
.cm-mois__cat { padding: 1px 7px; border-radius: 999px; font-size: 10.5px; color: var(--green3); background: rgba(43, 196, 138, .12); }
.cm-mois__aller { flex: none; width: 14px; height: 14px; color: var(--muted-2); }

.cm-more.is-charge { opacity: .8; }
.cm-fin { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
.cm-fin .cm-ico { width: 14px; height: 14px; color: var(--green); }
.cm-vues { margin-left: auto; cursor: default; color: var(--muted); }
.cm-vues .cm-ico { color: var(--muted-2); }

/* La photo du commentaire, centrée sur la bulle (et sur le bouton d'envoi quand le texte s'allonge). */
.cm-compose > .cm-av { margin-bottom: 6px; }
.cm-emoji-btn {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted-2); cursor: pointer; transition: color .15s ease, background-color .15s ease;
}
.cm-emoji-btn svg { width: 19px; height: 19px; }
.cm-emoji-btn:hover, .cm-emoji-btn:focus-visible, .cm-emoji-btn.is-ouvert { color: var(--green3); background: rgba(43, 196, 138, .12); outline: none; }

.em-boite {
  position: fixed; z-index: 290; width: 320px; max-width: calc(100vw - 16px); display: flex; flex-direction: column; gap: 8px;
  padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 22px 48px -18px rgba(15, 23, 42, .4); animation: mt-entree .16s ease both;
}
.em-recherche { width: 100%; padding: 8px 12px; border: 1px solid var(--border-2); border-radius: 11px; font: 13px var(--font); outline: none; }
.em-recherche:focus { border-color: rgba(29, 158, 117, .5); box-shadow: 0 0 0 3px rgba(29, 158, 117, .12); }
.em-onglets { display: flex; gap: 2px; padding: 2px; border-radius: 12px; background: #f1f5f4; }
.em-onglet { flex: 1; padding: 5px 0; border: 0; border-radius: 9px; background: transparent; font-size: 17px; line-height: 1; cursor: pointer; filter: grayscale(.6); opacity: .75; transition: background-color .15s ease, filter .15s ease, opacity .15s ease; }
.em-onglet:hover, .em-onglet.is-on { background: #fff; filter: none; opacity: 1; box-shadow: 0 2px 6px -3px rgba(15, 23, 42, .25); }
.em-grille { max-height: 236px; overflow: auto; overscroll-behavior: contain; padding-right: 2px; }
.em-titre { margin: 4px 2px 3px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.em-ligne { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.em-emoji { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 9px; background: transparent; font-size: 21px; line-height: 1; cursor: pointer; transition: background-color .12s ease, transform .12s ease; }
.em-emoji:hover, .em-emoji:focus-visible { background: rgba(43, 196, 138, .14); transform: scale(1.15); outline: none; }
.em-vide { margin: 10px 4px; font-size: 12.5px; color: var(--muted); }
.mt-sugg__emoji { flex: none; display: grid; place-items: center; width: 30px; height: 30px; font-size: 22px; line-height: 1; }

/* ── L'école : le campus en 3D en fond (js/views/ecole.js, campusEnFond) ──────
   La scène de la page d'arrivée, posée sur toute la largeur de l'application
   (son bloc de référence est .app), du haut de la page au milieu des cartes
   des formations, derrière le contenu (z-index -1 dans la pile de .app). Très
   légère : on lit tout au travers. Un long fondu l'efface vers le bas ; elle
   glisse moins vite que la page (la parallaxe : le script la fait descendre). */
.ec-fond {
  position: absolute; top: 0; left: 0; right: 0; z-index: -1;
  height: 900px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 460px), rgba(0, 0, 0, .35) calc(100% - 200px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 460px), rgba(0, 0, 0, .35) calc(100% - 200px), transparent 100%);
}
.ec-fond__scene { position: absolute; inset: 0; will-change: transform; }
.ec-fond__scene .ac-px__toile { opacity: 0; transition: opacity 1.6s ease; }
.ec-fond__scene.is-3d .ac-px__toile { opacity: .33; }
/* Un voile clair derrière les titres posés sur la scène : le campus se devine, le texte se lit. */
.ec-tete, .ec-sec--formations > .ec-sec__tete { position: relative; }
.ec-tete::before, .ec-sec--formations > .ec-sec__tete::before {
  content: ''; position: absolute; inset: calc(var(--ec-air, 0px) - 26px) -8% -26px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 246, 244, .8), rgba(242, 246, 244, .45) 60%, rgba(242, 246, 244, 0));
}
@media (max-width: 760px) {
  .ec-fond__scene.is-3d .ac-px__toile { opacity: .3; }
}

/* ── L'aperçu de l'administrateur, tout en haut (js/eleve.js, peindreApercu) ──
   Au-dessus de l'en-tête et du bandeau du live, sur toutes les pages : Membre,
   Élève (Bachelor, Master, Prime), Admin. Une réglette sombre et fine — lui
   seul la voit. Elle défile avec la page (l'en-tête, lui, reste collé). */
.ap { position: relative; z-index: 45; color: #fff; background: linear-gradient(90deg, #04221A 0%, #0A3A2C 60%, #0E4A38 100%); border-bottom: 1px solid rgba(182, 255, 59, .16); }
.ap[hidden] { display: none; }
.ap .be__admin { background: transparent; padding: 5px 24px; }
.ap .be__admin.is-alerte { background: rgba(122, 62, 6, .62); }
@media (max-width: 760px) {
  .ap .be__admin { padding: 6px 14px; gap: 6px 10px; }
  /* Sur un téléphone, la note tient sur une ligne : la réglette reste fine. */
  .ap .be__note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
}

/* ── Le bouton du parcours, à la place de « Réserver un appel » (un élève, cf. eleve.js) ──
   Le livre ouvert ne sonne pas. Sur L'école, tant que l'identité n'est pas
   confirmée, le bandeau renvoie au bouton du haut, qui s'allume quatre fois. */
.btn-flow.is-parcours .btn-tel { animation: none; }
.topcta.is-signale { animation: cta-signale 1.5s ease-in-out 4; }
@keyframes cta-signale {
  0%, 100% { box-shadow: 0 4px 12px -5px rgba(29, 158, 117, .55), 0 0 0 0 rgba(182, 255, 59, 0); }
  50% { box-shadow: 0 4px 12px -5px rgba(29, 158, 117, .55), 0 0 0 6px rgba(182, 255, 59, .55); }
}

/* Le bandeau de l'élève, sans bouton : la phrase nomme le bouton du haut (sur téléphone aussi), une flèche le montre. */
.be__phrase em { font-style: normal; color: #D9FF9A; }
.be__vers {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  color: #B6FF3B; background: rgba(182, 255, 59, .12); animation: be-vers 1.6s ease-in-out infinite;
}
.be__vers svg { display: block; width: 14px; height: 14px; }
@keyframes be-vers { 50% { transform: translate(2px, -2px); } }
@media (prefers-reduced-motion: reduce) {
  .be__vers { animation: none; }
  .topcta.is-signale { animation: none; box-shadow: 0 0 0 3px rgba(182, 255, 59, .55); }
}

/* ── L'école : « Rejoindre l'école Seqooia », en grand, sans pastille ──
   De l'air au-dessus du titre (--ec-air) : on y voit le campus en 3D et sa
   parallaxe ; « l'école Seqooia » en vert, d'un seul tenant. */
.page-head.ec-tete { --ec-air: clamp(56px, 10vh, 124px); padding-top: var(--ec-air); }
.page-head.ec-tete h1 {
  max-width: 15ch; margin: 0 auto 16px; font-size: clamp(42px, 5.8vw, 76px); line-height: 1.02;
  letter-spacing: -.035em; text-wrap: balance;
}
.ec-tete__accent {
  white-space: nowrap;
  background: linear-gradient(105deg, #0B6E52 0%, #1D9E75 42%, #2BC48A 78%, #6FD6A1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 760px) {
  .page-head.ec-tete { --ec-air: 40px; }
  .page-head.ec-tete h1 { font-size: clamp(34px, 10.4vw, 46px); }
}

/* ── MySeqooia, sur la page du parcours (js/views/programmes.js) ──
   Le vert profond de l'école : le bouton pour l'ouvrir, et chaque outil dans
   sa boîte, qui mène à MySeqooia (un nouvel onglet). */
.pg-myseq {
  position: relative; margin-top: 44px; padding: 26px; overflow: hidden; border-radius: 26px; color: #fff;
  background:
    radial-gradient(520px 220px at 92% -12%, rgba(182, 255, 59, .18), transparent 70%),
    radial-gradient(480px 260px at -10% 120%, rgba(43, 196, 138, .3), transparent 70%),
    linear-gradient(135deg, #0B3B2C 0%, #0E4D3A 55%, #14755C 100%);
  box-shadow: 0 24px 50px -30px rgba(11, 59, 44, .85);
}
.pg-myseq__tete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 18px; }
.pg-myseq__marque {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: rgba(182, 255, 59, .14); border: 1px solid rgba(182, 255, 59, .35); color: #B6FF3B;
}
.pg-myseq__marque svg, .pg-myseq__marque .cm-ico { width: 26px; height: 26px; }
.pg-myseq__sur { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #B6FF3B; }
.pg-myseq h2 { margin: 3px 0 4px; font-size: 22px; letter-spacing: -.4px; color: #fff; }
.pg-myseq__intro p { max-width: 62ch; margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.pg-myseq__ouvrir {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 17px 0 20px; border-radius: 999px;
  background: #B6FF3B; color: #0B3B2C; font: 800 14px var(--font); text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 24px -14px rgba(182, 255, 59, .95); transition: transform .2s, box-shadow .2s;
}
.pg-myseq__ouvrir:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -14px rgba(182, 255, 59, 1); }
.pg-myseq__ouvrir:focus-visible { outline: 3px solid rgba(255, 255, 255, .75); outline-offset: 2px; }
.pg-myseq__fleche svg, .pg-outil__aller svg { display: block; width: 16px; height: 16px; }
.pg-myseq__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.pg-outil {
  position: relative; display: flex; flex-direction: column; gap: 5px; min-height: 150px; padding: 16px 16px 14px; border-radius: 18px;
  color: #fff; text-decoration: none; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .25s, border-color .25s;
  animation: pg-carte .45s cubic-bezier(.2, .9, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms);
}
.pg-outil:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .12); border-color: rgba(182, 255, 59, .45); }
.pg-outil:focus-visible { outline: 3px solid rgba(182, 255, 59, .6); outline-offset: 2px; }
.pg-outil__ico { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 5px; border-radius: 12px; background: rgba(182, 255, 59, .14); color: #B6FF3B; }
.pg-outil__ico svg, .pg-outil__ico .cm-ico { width: 20px; height: 20px; }
.pg-outil__nom { padding-right: 18px; font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.pg-outil__texte { font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .74); }
.pg-outil__aller { position: absolute; top: 14px; right: 14px; color: rgba(255, 255, 255, .55); transition: color .2s, transform .2s; }
.pg-outil:hover .pg-outil__aller { color: #B6FF3B; transform: translate(2px, -2px); }
.pg-myseq__note { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.pg-myseq__note svg, .pg-myseq__note .cm-ico { flex: none; width: 15px; height: 15px; margin-top: 2px; color: #B6FF3B; }
@media (max-width: 980px) { .pg-myseq__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pg-myseq { margin-top: 34px; padding: 20px 16px; border-radius: 22px; }
  .pg-myseq__tete { grid-template-columns: auto minmax(0, 1fr); }
  .pg-myseq__ouvrir { grid-column: 1 / -1; justify-content: center; }
  .pg-myseq__grille { gap: 10px; }
  .pg-outil { min-height: 0; padding: 14px 12px 12px; }
  .pg-outil__texte { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pg-outil { animation: none; } }

/* ── Les pages d'accueil à partager (js/accueil.js, varianteDeLaPage) ───────────
   campus.seqooia.com/live : une bande verte se déroule en haut (le prochain live,
   son compte à rebours, « Je m'inscris ») ; dessous, le titre du live, le
   sous-titre, l'écran du live — « LIVE », le compte à rebours, le bouton lecture
   au centre, Sonny, la date, et son tour rouge —, puis le bouton. /formation-3M
   et /formation-4D : le titre de la vidéo 1 de ce parcours, son sous-titre, un
   écran où défilent des images de toute la formation, puis le bouton. Le reste
   de la page ne change pas. */
.ac--variante .ac-barre { top: var(--ac-bandeau-h, 0px); justify-content: center; }
/* Un seul fond, celui de la page, avec une lueur verte au centre, derrière l'écran : il
   s'efface bien avant le bas, et la suite (« Pourquoi rejoindre… ») commence sans couture. */
.ac-hero--variante {
  --ac-lueur: rgba(43, 196, 138, .17);
  /* La largeur de l'écran, que le sous-titre reprend : il rapetisse sur un écran peu haut, pour que le
     bouton reste visible sans défiler. */
  --ac-vitrine-l: min(680px, 100%, max(460px, calc((100vh - 500px - var(--ac-bandeau-h, 0px)) * 1.7778)));
  min-height: 0; padding-bottom: clamp(52px, 8vh, 96px);
  background:
    radial-gradient(50% 30% at 50% 62%, var(--ac-lueur), transparent 72%),
    radial-gradient(1100px 520px at 88% -10%, rgba(43, 196, 138, .09), transparent 60%),
    var(--ac-fond);
}
@supports (height: 100svh) {
  .ac-hero--variante { --ac-vitrine-l: min(680px, 100%, max(460px, calc((100svh - 500px - var(--ac-bandeau-h, 0px)) * 1.7778))); }
}
.ac[data-ambiance="nuit"] .ac-hero--variante { --ac-lueur: rgba(43, 196, 138, .15); background: radial-gradient(50% 30% at 50% 62%, var(--ac-lueur), transparent 72%), var(--ac-fond); }
.ac-hero--variante::before, .ac-hero--variante::after { display: none; }
.ac-hero--variante .ac-hero__contenu { top: 0; padding-top: clamp(14px, 3vh, 40px); }
.ac-hero--variante .ac-titre { margin-top: 20px; max-width: min(1120px, 100%); font-size: clamp(32px, min(3.7vw, 6.4vh), 56px); }
/* Le sous-titre s'étire sur la largeur de l'écran, dessous : moins de lignes, moins resserré. */
.ac-hero--variante .ac-sous { max-width: var(--ac-vitrine-l); text-wrap: pretty; }
/* Le titre attend ses mots (le titre du live, celui de la vidéo), puis entre comme d'habitude. */
.ac-hero.is-attente .ac-titre, .ac-hero.is-attente .ac-sous { animation: none; opacity: 0; }
.ac-hero--variante .ac-titre--long { font-size: clamp(28px, min(3.2vw, 5.6vh), 48px); }
/* Un titre très long (plus de 80 signes) : plus petit encore, pour que l'écran et le bouton restent à l'écran. */
.ac-hero--variante .ac-titre--tres-long { font-size: clamp(25px, min(2.75vw, 4.9vh), 40px); }
.ac-hero--variante .ac-action { margin-top: 28px; }
.ac-oeil--live .ac-oeil__point, .ac-oeil.is-direct .ac-oeil__point {
  background: #FF3B4E; box-shadow: 0 0 0 4px rgba(255, 59, 78, .16), 0 0 10px #FF3B4E; animation: ac-point-live 1.4s ease-in-out infinite;
}
@keyframes ac-point-live { 50% { opacity: .45; transform: scale(.82); } }

/* La bande du prochain live : elle se déroule depuis le centre, puis ses mots arrivent. */
.ac-bande {
  position: relative; z-index: 61; color: #fff;
  background: linear-gradient(90deg, #0E5A45 0%, #14755C 32%, #1D9E75 62%, #14755C 100%);
  clip-path: inset(0 50% 0 50%);
  animation: ac-deroule 1s cubic-bezier(.65, 0, .35, 1) .15s forwards;
}
.ac-bande.is-direct { background: linear-gradient(90deg, #A51D2A 0%, #E5484D 50%, #A51D2A 100%); }
@keyframes ac-deroule { to { clip-path: inset(0 0 0 0); } }
.ac-bande__corps {
  max-width: 1200px; min-height: 54px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px;
}
.ac-bande__corps > * { animation: ac-bande-mot .5s ease both; }
.ac-bande__corps > :nth-child(1) { animation-delay: .8s; }
.ac-bande__corps > :nth-child(2) { animation-delay: .9s; }
.ac-bande__corps > :nth-child(3) { animation-delay: 1s; }
.ac-bande__corps > :nth-child(4) { animation-delay: 1.1s; }
@keyframes ac-bande-mot { from { opacity: 0; transform: translateY(5px); } }
.ac-bande__etiquette { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ac-bande__point { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #FF4D5E; box-shadow: 0 0 0 3px rgba(255, 77, 94, .3); animation: ac-point-live 1.4s ease-in-out infinite; }
.ac-bande.is-direct .ac-bande__point { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.ac-bande__quand { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.ac-bande__rebours, .ac-ecran__rebours { display: inline-flex; gap: 6px; }
.ac-bande__rebours[hidden], .ac-bande__case[hidden], .ac-ecran__rebours[hidden], .ac-ecran__case[hidden] { display: none; }
.ac-bande__case, .ac-ecran__case {
  display: inline-flex; align-items: baseline; gap: 2px; padding: 4px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, .15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-variant-numeric: tabular-nums;
}
.ac-bande__case b, .ac-ecran__case b { font-size: 15px; font-weight: 800; }
.ac-bande__case small, .ac-ecran__case small { font-size: 10.5px; font-weight: 700; opacity: .8; }
.ac-bande__bouton {
  height: 34px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: #0F3D30; font: 800 13px var(--font); letter-spacing: -.01em;
  transition: transform .2s, box-shadow .2s;
}
.ac-bande__bouton:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45); }
.ac-bande.is-direct .ac-bande__bouton { color: #A51D2A; }

/* La vitrine, sous le sous-titre : l'écran du live (avec son tour rouge) ou la formation qui défile. */
.ac-vitrine {
  position: relative; z-index: 3; width: var(--ac-vitrine-l, min(680px, 100%));
  margin: clamp(26px, 4vh, 40px) auto 0; perspective: 1200px;
  animation: ac-monte .9s cubic-bezier(.22, 1, .36, 1) .3s both;
}
/* Survolée à la souris, une boîte pivote à peine vers elle (js : inclinaison) : l'écran des pages
   à partager, les blocs de « Pourquoi rejoindre… » et les cartes du campus, qui se soulèvent aussi. */
.ac-vitrine .ac-incline {
  transform: rotateX(var(--incl-x, 0deg)) rotateY(var(--incl-y, 0deg));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.ac-vitrine .ac-incline:hover { transition-duration: .2s; }
.ac-carte.ac-incline:hover, .ac-pq__carte.ac-incline:hover {
  transform: perspective(1100px) translateY(-4px) rotateX(var(--incl-x, 0deg)) rotateY(var(--incl-y, 0deg));
}
/* Le bouton des pages à partager (« Accéder maintenant », « Rejoindre le live ») bat doucement, comme un
   cœur : deux petits battements, puis un temps de repos. (La propriété scale s'ajoute au survol.) */
.ac-cta--bat { animation: ac-battement 2.8s ease-in-out 1.8s infinite; }
@keyframes ac-battement {
  0%, 46%, 100% { scale: 1; }
  12% { scale: 1.04; }
  22% { scale: 1.005; }
  32% { scale: 1.03; }
}
@media (prefers-reduced-motion: reduce) { .ac-cta--bat { animation: none; } }
@property --ac-tour { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
.ac-ecran__tour {
  position: relative; padding: 4px; border-radius: 28px;
  background: conic-gradient(#FF3B4E 0deg, #FF7A59 calc(var(--ac-tour) / 2), #FF3B4E var(--ac-tour), rgba(255, 59, 78, 0) var(--ac-tour));
  animation: ac-tour 1.5s cubic-bezier(.65, 0, .35, 1) .95s both, ac-tour-pouls 2.8s ease-in-out 2.6s infinite;
}
@keyframes ac-tour { from { --ac-tour: 0deg; } }
@keyframes ac-tour-pouls { 50% { box-shadow: 0 0 0 5px rgba(255, 59, 78, .14), 0 0 30px rgba(255, 59, 78, .32); } }
.ac-ecran {
  position: relative; isolation: isolate; overflow: hidden; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; border-radius: 24px; cursor: pointer; color: #fff; text-align: left; font: inherit;
  background: #071A14; box-shadow: 0 30px 70px -34px rgba(6, 30, 23, .75);
  -webkit-tap-highlight-color: transparent;
}
.ac-ecran:focus-visible { outline: 3px solid var(--ac-vif); outline-offset: 4px; }
.ac-ecran--live { background: radial-gradient(120% 100% at 78% 8%, #22936E 0%, #0F4D3C 34%, #0A2C23 64%, #05140F 100%); }
/* Le studio : deux lumières douces et un quadrillage qui s'efface vers les bords. */
.ac-ecran__lumiere {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(30% 42% at 80% 30%, rgba(182, 255, 59, .16), transparent 70%),
    radial-gradient(26% 34% at 10% 88%, rgba(43, 196, 138, .24), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 46px 46px;
  -webkit-mask-image: radial-gradient(90% 90% at 65% 40%, #000 35%, transparent 100%);
  mask-image: radial-gradient(90% 90% at 65% 40%, #000 35%, transparent 100%);
}
/* Sonny laisse le haut de l'écran à « LIVE » et au compte à rebours : jamais rien sur son visage. */
.ac-ecran__sonny {
  position: absolute; z-index: 1; right: 1%; bottom: 0; height: calc(100% - 54px); width: auto; pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); transform-origin: 50% 100%;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.ac-ecran:hover .ac-ecran__sonny { transform: scale(1.025); }
/* Un voile sombre à gauche et en bas : les mots se lisent, Sonny reste lumineux. */
.ac-ecran--live::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 16, 12, .72) 0%, rgba(4, 16, 12, .3) 46%, rgba(4, 16, 12, 0) 68%),
    linear-gradient(0deg, rgba(4, 16, 12, .66) 0%, rgba(4, 16, 12, 0) 40%);
}
/* En haut : « LIVE » à gauche, le compte à rebours à droite. */
.ac-ecran__haut { position: absolute; z-index: 2; top: 18px; left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ac-ecran__direct {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 8px;
  background: #FF3B4E; font-size: 12px; font-weight: 800; letter-spacing: .14em; box-shadow: 0 6px 18px -6px rgba(255, 59, 78, .85);
}
.ac-ecran__point { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ac-point-live 1.4s ease-in-out infinite; }
.ac-ecran__rebours { gap: 5px; }
.ac-ecran__case {
  padding: 4px 7px; background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ac-ecran__case b { font-size: 13.5px; }
.ac-ecran__case small { font-size: 10px; }
/* Le bouton lecture, au centre : un disque de verre, le triangle blanc bien au milieu. */
.ac-ecran__play {
  position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: clamp(62px, 8vw, 82px); aspect-ratio: 1; border-radius: 50%;
  color: #fff; background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 18px 40px -16px rgba(0, 0, 0, .6);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .3s, border-color .3s;
}
.ac-ecran__play svg { width: 40%; height: 40%; fill: currentColor; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3)); }
/* Une onde part du bouton, de temps en temps : on a envie d'appuyer. */
.ac-ecran__play::after {
  content: ''; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55);
  animation: ac-onde 2.6s ease-out 1.6s infinite; pointer-events: none;
}
@keyframes ac-onde { from { transform: scale(1); opacity: .9; } 70%, to { transform: scale(1.6); opacity: 0; } }
.ac-ecran:hover .ac-ecran__play { transform: scale(1.07); background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .75); }
/* En bas : « Sonny arrive en live très prochainement », et la date avec son petit calendrier. */
.ac-ecran__bas { position: absolute; z-index: 2; left: 20px; right: 40%; bottom: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.ac-ecran__bas strong { font-size: clamp(14px, 1.3vw, 16.5px); line-height: 1.3; text-wrap: balance; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.ac-ecran__quand {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border-radius: 8px;
  font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ac-ecran__quand[hidden] { display: none; }
.ac-ecran__quand span { white-space: nowrap; }
.ac-ecran__quand .cm-ico { width: 15px; height: 15px; flex: none; color: #B6FF3B; }
.ac-ecran.is-direct .ac-ecran__direct { animation: ac-direct-lueur 1.6s ease-in-out infinite; }
@keyframes ac-direct-lueur { 50% { box-shadow: 0 0 0 4px rgba(255, 59, 78, .28), 0 8px 26px -4px rgba(255, 59, 78, .95); } }

/* La formation, sans images (Vidalytics ne répond pas) : un écran vert, la forêt du campus dedans. */
.ac-ecran--video { background: radial-gradient(120% 110% at 50% 0%, #17583F 0%, #0C3628 48%, #061A13 100%); }
.ac-defile {
  --tuile: 168; --ecart: 14px;
  position: absolute; inset: -14% -10%; z-index: 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; gap: var(--ecart);
  transform: rotate(-5deg);
  -webkit-mask-image: linear-gradient(90deg, transparent 6%, #000 24%, #000 76%, transparent 94%);
  mask-image: linear-gradient(90deg, transparent 6%, #000 24%, #000 76%, transparent 94%);
}
.ac-defile__rang { display: flex; }
.ac-defile__piste { display: flex; flex: none; gap: var(--ecart); animation: ac-defile calc(var(--n, 6) * 7s) linear infinite; }
.ac-defile__rang--inverse .ac-defile__piste { animation-direction: reverse; }
.ac-defile.is-pause .ac-defile__piste { animation-play-state: paused; }
@keyframes ac-defile { to { transform: translateX(calc(-50% - var(--ecart) / 2)); } }
.ac-defile__case {
  position: relative; flex: none; overflow: hidden; width: calc(var(--tuile) * 1px); aspect-ratio: var(--w) / var(--h);
  border-radius: 12px; background: rgba(255, 255, 255, .07);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
/* La case, découpée dans sa planche : la planche est ramenée à la taille de la case, puis décalée. */
.ac-defile__case img {
  position: absolute; left: 0; top: 0; width: auto; height: auto; max-width: none; transform-origin: 0 0;
  transform: scale(calc(var(--tuile) / var(--w))) translate(calc(var(--x) * -1px), calc(var(--y) * -1px));
  opacity: 0; transition: opacity .8s ease;
}
.ac-defile__case.is-charge img { opacity: 1; }
/* Sans images de la formation : la forêt du campus, un peu assombrie. */
.ac-defile__repli { position: absolute; inset: 14% 10%; width: 80%; height: 72%; object-fit: cover; transform: rotate(5deg) scale(1.08); }
.ac-ecran__voile {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(34% 46% at 50% 50%, rgba(4, 18, 13, .62), rgba(4, 18, 13, .2) 70%, transparent 100%),
    linear-gradient(0deg, rgba(4, 18, 13, .35), transparent 30%, transparent 70%, rgba(4, 18, 13, .3));
}
.ac-ecran--video.is-sans-apercus .ac-ecran__voile { background: radial-gradient(70% 70% at 50% 50%, rgba(4, 16, 12, .2), rgba(4, 16, 12, .5)); }

/* La formation, avec ses images : plus d'écran ni de fond. Les images de toute la formation sont des
   cartes posées sur une table : le plan est tourné en diagonale, puis basculé vers l'arrière (3D) ;
   chaque carte a sa petite tranche, un liseré de lumière et son ombre. Les rangées glissent de droite
   à gauche, chacune à son allure, fondues dans la page sur les côtés. Trois rangées partout, une par
   vidéo de la formation (vidéo 1, 2, 3). Sur ordinateur et tablette : une bande au milieu, moins large
   que l'écran (le fondu commence bien avant les bords), de grandes cartes ; une carte survolée ressort
   un peu, et sa rangée s'arrête le temps de la regarder. Sur téléphone : d'un bord à l'autre de
   l'écran, de petites cartes (plus bas). Le bouton lecture au centre. La place est gardée avant
   l'arrivée des images. */
.ac-vitrine--video {
  width: min(1100px, calc(100vw - 96px)); max-width: none; perspective: none;
  margin: clamp(10px, 2vh, 24px) calc(50% - min(550px, 50vw - 48px)) 0;
}
.ac-ecran--video:not(.is-sans-apercus) {
  --plan-x: 28deg; --plan-z: -5deg;
  /* Le fondu commence tôt : les cartes s'effacent doucement bien avant les bords de la bande. */
  --fondu-cotes: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .3) 9%, #000 27%, #000 73%, rgba(0, 0, 0, .3) 91%, transparent 100%);
  --fondu-haut-bas: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  height: clamp(260px, calc(100vh - 550px - var(--ac-bandeau-h, 0px)), 360px); aspect-ratio: auto;
  border-radius: 0; background: none; box-shadow: none; overflow: hidden;
  perspective: 1500px; perspective-origin: 50% 40%;
  /* Fondu sur les côtés, et à peine en haut et en bas : aucune carte n'est coupée net. */
  -webkit-mask-image: var(--fondu-cotes), var(--fondu-haut-bas); -webkit-mask-composite: source-in;
  mask-image: var(--fondu-cotes), var(--fondu-haut-bas); mask-composite: intersect;
}
.ac-vitrine--video .ac-ecran--video.ac-incline:not(.is-sans-apercus) { transform: none; }
/* Sans images : l'écran vert reprend sa place, au milieu, de la largeur du sous-titre. */
.ac-vitrine--video .ac-ecran--video.is-sans-apercus { width: var(--ac-vitrine-l, min(680px, calc(100% - 28px))); margin: 0 auto; }
.ac-ecran--video:not(.is-sans-apercus) .ac-defile {
  --tuile: 172; --ecart: 16px; --rangs: 3;
  inset: 0 -22%; transform-origin: 50% 50%;
  transform: rotateX(var(--plan-x)) rotateZ(var(--plan-z));
  -webkit-mask-image: none; mask-image: none;
}
.ac-ecran--video:not(.is-sans-apercus) .ac-ecran__voile { display: none; }
/* Chaque rangée garde sa place (la hauteur d'une carte) et arrive en fondu, une fois ses images
   mesurées et choisies (js : remplirRangee). */
.ac-ecran--video:not(.is-sans-apercus) .ac-defile__rang { min-height: calc(var(--tuile) * 1px * 169 / 300); }
.ac-ecran--video .ac-defile__rang.is-pleine { animation: ac-cartes-arrivent .9s ease both; }
@keyframes ac-cartes-arrivent { from { opacity: 0; } }
/* Toutes de droite à gauche, chacune à son allure ; chaque rangée part d'ailleurs. */
.ac-ecran--video .ac-defile__rang .ac-defile__piste {
  animation-direction: normal; animation-duration: calc(var(--n, 6) * 6.2s); animation-delay: calc(var(--k, 0) * -4.7s);
  will-change: transform;
}
.ac-ecran--video .ac-defile__rang:nth-child(2) .ac-defile__piste { animation-duration: calc(var(--n, 6) * 7.4s); }
.ac-ecran--video .ac-defile__rang:nth-child(3) .ac-defile__piste { animation-duration: calc(var(--n, 6) * 6.8s); }
/* L'image est rognée dans sa carte ; la tranche et l'ombre (des ombres portées) restent dessous. */
.ac-ecran--video:not(.is-sans-apercus) .ac-defile__case {
  border-radius: 10px; background: #DCE6E1;
  box-shadow: var(--ac-tranche), var(--ac-carte-ombre);
}
.ac-ecran--video:not(.is-sans-apercus) .ac-defile__case::after {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1.5px 0 rgba(255, 255, 255, .55);
}
.ac-ecran--video:not(.is-sans-apercus) .ac-ecran__play { background: rgba(8, 28, 21, .34); border-color: rgba(255, 255, 255, .75); }
/* Une carte survolée ressort des autres : elle grandit un peu, se soulève (son ombre s'éloigne) et
   s'éclaire ; sa rangée s'arrête sous la souris et passe devant les autres (ordinateur seulement). */
@media (hover: hover) and (pointer: fine) {
  .ac-ecran--video:not(.is-sans-apercus) .ac-defile { pointer-events: auto; }
  .ac-ecran--video:not(.is-sans-apercus) .ac-defile__case {
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, filter .45s ease;
  }
  .ac-ecran--video:not(.is-sans-apercus) .ac-defile__case:hover {
    z-index: 2; transform: translateY(-12px) scale(1.1); filter: brightness(1.05) saturate(1.08);
    box-shadow: var(--ac-tranche), 0 18px 10px -8px rgba(6, 30, 23, .14), 0 44px 42px -18px rgba(6, 30, 23, .52);
  }
  .ac-ecran--video .ac-defile__rang:has(.ac-defile__case:hover) { position: relative; z-index: 2; }
  .ac-ecran--video .ac-defile__rang:has(.ac-defile__case:hover) .ac-defile__piste { animation-play-state: paused; }
}
@media (min-width: 641px) and (max-height: 820px) { .ac-ecran--video:not(.is-sans-apercus) .ac-defile { --tuile: 150; --ecart: 14px; } }
@media (min-width: 641px) and (max-height: 700px) { .ac-ecran--video:not(.is-sans-apercus) .ac-defile { --tuile: 132; --ecart: 12px; } }

@media (max-width: 640px) {
  .ac-hero--variante { padding-bottom: 48px; }
  .ac-hero--variante .ac-hero__contenu { padding: 6px 14px 0; }
  /* Le titre coule d'un seul tenant (la partie verte suit sur la même ligne) : moins de lignes, quatre au plus. */
  .ac-hero--variante .ac-titre { margin-top: 16px; font-size: clamp(24px, 7.8cqi, 31px); letter-spacing: -.02em; text-wrap: balance; }
  .ac-hero--variante .ac-titre__ligne { display: inline; padding-bottom: 0; }
  .ac-hero--variante .ac-titre--long { font-size: clamp(23px, 7.2cqi, 28px); }
  .ac-hero--variante .ac-titre--tres-long { font-size: clamp(21px, 6.5cqi, 25px); }
  .ac-hero--variante .ac-sous { font-size: 13px; line-height: 1.5; }
  .ac-hero--variante .ac-action { margin-top: 22px; }
  .ac-bande__corps { gap: 6px 10px; padding: 9px 14px; }
  .ac-bande__quand { font-size: 13px; }
  .ac-bande__case { padding: 3px 6px; }
  .ac-bande__case b { font-size: 13.5px; }
  .ac-bande__bouton { height: 30px; padding: 0 13px; font-size: 12.5px; }
  .ac-vitrine { width: 100%; margin-top: 22px; }
  .ac-ecran { border-radius: 20px; }
  .ac-ecran__tour { border-radius: 24px; padding: 3px; }
  /* Sur téléphone, l'écran du live est plus haut : Sonny, le bouton et les mots tiennent sans se toucher. */
  .ac-ecran--live { aspect-ratio: 4 / 3.6; }
  .ac-ecran__haut { top: 14px; left: 14px; right: 14px; }
  .ac-ecran__direct { padding: 4px 9px 4px 8px; font-size: 11px; }
  .ac-ecran__rebours { gap: 4px; }
  .ac-ecran__case { padding: 3px 5px; border-radius: 7px; }
  .ac-ecran__case b { font-size: 12px; }
  .ac-ecran__case small { font-size: 9px; }
  .ac-ecran__sonny { right: -10%; height: calc(100% - 46px); }
  .ac-ecran__play { width: 60px; }
  .ac-ecran__bas { left: 16px; right: 34%; bottom: 14px; gap: 6px; }
  .ac-ecran__bas strong { font-size: 13.5px; }
  .ac-ecran__quand { font-size: 11.5px; padding: 4px 8px 4px 7px; }
  .ac-ecran__quand .cm-ico { width: 13px; height: 13px; }
  /* La formation, sur téléphone : les mêmes cartes en 3D, plus petites, avec de l'air au-dessus et
     au-dessous. */
  .ac-vitrine--video { width: 100vw; max-width: 100vw; margin: 14px calc(50% - 50vw) 0; }
  .ac-ecran--video:not(.is-sans-apercus) {
    --plan-x: 28deg; height: 204px; perspective: 760px;
    --fondu-cotes: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .4) 7%, #000 22%, #000 78%, rgba(0, 0, 0, .4) 93%, transparent 100%);
  }
  .ac-ecran--video:not(.is-sans-apercus) .ac-defile { --tuile: 88; --ecart: 9px; --rangs: 3; }
  .ac-ecran--video:not(.is-sans-apercus) .ac-defile__case { border-radius: 8px; }
  /* Sans images : l'écran garde son encadré, et la forêt du campus. */
  .ac-ecran--video.is-sans-apercus { aspect-ratio: 16 / 10; width: calc(100% - 28px); margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-bande { clip-path: none; animation: none; }
  .ac-bande__corps > *, .ac-ecran__tour, .ac-ecran__play::after, .ac-ecran__point, .ac-bande__point, .ac-oeil--live .ac-oeil__point, .ac-defile__piste { animation: none; }
}

/* La fenêtre d'accès du live : Sonny dans son cercle rouge, « LIVE » dessous. */
.cx-live { position: relative; display: grid; place-items: center; width: 84px; height: 88px; margin: 0 auto; }
.cx-live__photo { display: block; width: 78px; height: 78px; padding: 3px; border-radius: 50%; background: conic-gradient(#FF3B4E, #FF7A59, #FF3B4E); }
.cx-live__photo img { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; object-fit: cover; object-position: 50% 12%; background: #E8F5EF; }
.cx-live__pastille {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 6px; border: 2px solid #fff; background: #FF3B4E; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .12em;
}
.cx-live__point { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: ac-point-live 1.4s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════════════════════════
   Le Pass Master (public/js/views/pass.js) — pour l'élève Bachelor seulement :
   un encadré tout en bas de « Tes programmes » (l'avant → l'après, « En savoir
   plus »), puis une fenêtre où tout est expliqué, comme la page Pass Master du
   site : fond sombre et chaud, la carte Bachelor (ACTIVE), un cadenas, les
   trois cartes du Master, le bouton doré du rendez-vous.
   ═══════════════════════════════════════════════════════════════════════════ */

.ps-coche { display: inline-grid; place-items: center; flex: none; }
.ps-coche svg { display: block; width: 14px; height: 14px; }

/* ── L'encadré ── */
.ps-zone { margin-top: 44px; }
.ps-essai { display: flex; justify-content: center; width: max-content; max-width: 100%; margin: 0 auto 12px; white-space: normal; text-align: center; }
.ps-encadre {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px 30px;
  padding: 24px 28px; overflow: hidden; isolation: isolate; border-radius: 24px; color: #F3EEE6; cursor: pointer;
  background:
    radial-gradient(420px 200px at 100% 120%, rgba(214, 140, 52, .28), transparent 70%),
    radial-gradient(360px 180px at -6% -30%, rgba(232, 185, 49, .16), transparent 70%),
    linear-gradient(135deg, #1C140C 0%, #0D0906 100%);
  box-shadow: 0 24px 50px -30px rgba(20, 12, 4, .85), inset 0 0 0 1px rgba(255, 236, 200, .08);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.ps-encadre:hover { transform: translateY(-2px); box-shadow: 0 28px 54px -28px rgba(20, 12, 4, .9), inset 0 0 0 1px rgba(242, 201, 76, .3); }
.ps-encadre__tete { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ps-encadre__couronne {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; color: #2A1C02;
  background: linear-gradient(135deg, #FFF0B8, #F2C94C 50%, #C9962B); box-shadow: 0 10px 22px -12px rgba(242, 201, 76, .9);
}
.ps-encadre__couronne .cm-ico { width: 26px; height: 26px; }
.ps-encadre__titres { min-width: 0; }
.ps-encadre__titre { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: #fff; }
.ps-encadre__phrase { margin: 0; max-width: 46ch; font-size: 13.5px; line-height: 1.5; color: rgba(243, 238, 230, .72); text-wrap: pretty; }

/* L'avant → l'après : Bachelor (actif), un cadenas, Master. */
.ps-chemin { display: flex; align-items: center; gap: 0; }
.ps-etape {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.ps-etape__ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: #fff; }
.ps-etape__ico .cm-ico { width: 18px; height: 18px; }
.ps-etape.is-actif { border-color: rgba(43, 196, 138, .55); background: rgba(43, 196, 138, .1); }
.ps-etape.is-actif .ps-etape__ico { background: linear-gradient(135deg, #3FD6A0, #1D9E75); }
.ps-etape.is-ferme .ps-etape__ico { background: linear-gradient(135deg, #F7DD8E, #C9962B); color: #2A1C02; }
.ps-etape__texte { display: flex; flex-direction: column; line-height: 1.15; }
.ps-etape__texte small { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(243, 238, 230, .55); }
.ps-etape__texte strong { margin-top: 3px; font-size: 14px; color: #fff; }
.ps-etape__etat { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; }
.ps-etape.is-actif .ps-etape__etat { background: #2BC48A; color: #062018; }
.ps-etape.is-ferme .ps-etape__etat { background: rgba(255, 255, 255, .12); color: #F7DD8E; }
.ps-etape__etat .cm-ico, .ps-etape__etat .ps-coche svg { width: 12px; height: 12px; }
.ps-chemin__lien { position: relative; display: grid; place-items: center; width: 64px; height: 30px; }
.ps-chemin__lien::before { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; border-top: 2px dotted rgba(255, 255, 255, .4); }
.ps-chemin__cadenas { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #1A1208; }
.ps-chemin__cadenas .cm-ico { width: 14px; height: 14px; }
.ps-encadre__plus {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(100deg, #FFF0B8, #F2C94C 45%, #D9A632); color: #2A1C02; font: 800 14px var(--font); white-space: nowrap;
  box-shadow: 0 14px 28px -16px rgba(242, 201, 76, .95); transition: box-shadow .2s;
}
.ps-encadre__plus:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ps-encadre__fleche svg { display: block; width: 16px; height: 16px; transition: transform .2s; }
.ps-encadre:hover .ps-encadre__fleche svg { transform: translateX(3px); }

/* ── La fenêtre ── */
.modal__card.modal__card--pass {
  position: relative; max-width: 980px; gap: 0; padding: 34px 36px 30px; color: #F3EEE6; border: 0; border-radius: 26px;
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(196, 118, 40, .3), transparent 70%),
    radial-gradient(60% 50% at 0% 0%, rgba(120, 80, 30, .3), transparent 70%),
    linear-gradient(160deg, #1C140C 0%, #0D0906 100%);
  box-shadow: 0 40px 90px -30px rgba(10, 6, 2, .85), inset 0 0 0 1px rgba(255, 236, 200, .08);
}
.ps-fenetre__fermer {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1; transition: background .2s, color .2s;
}
.ps-fenetre__fermer:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.ps-fenetre__fermer:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ps-fenetre__tete { padding-right: 46px; }
.ps-cachet {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 8px 14px; border-radius: 10px;
  background: rgba(232, 185, 49, .12); border: 1px solid rgba(232, 185, 49, .34); color: #F5D98A;
  font: 600 12.5px/1.3 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .02em;
}
.ps-cachet .cm-ico { width: 14px; height: 14px; }
.modal__card .ps-fenetre__titre { margin: 18px 0 8px; font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; line-height: 1.02; letter-spacing: -1.2px; color: #fff; }
.ps-fenetre__phrase { margin: 0; max-width: 60ch; font-size: 15px; line-height: 1.55; color: rgba(243, 238, 230, .74); text-wrap: pretty; }

/* L'avant (Bachelor), le cadenas, l'après (les trois cartes du Master). */
.ps-branche {
  --visuel: 150px; --nom: 30px;
  /* Quatre cartes de la même largeur : celle du Bachelor, puis les trois du Master (64 px de lien, 2 × 16 px entre elles). */
  display: grid; grid-template-columns: calc((100% - 96px) / 4) 64px minmax(0, 1fr); grid-template-areas: 'sur-a . sur-b' 'avant lien apres';
  align-items: start; gap: 12px 0; margin-top: 30px;
}
.ps-branche__sur { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 238, 230, .5); }
.ps-branche__sur--avant { grid-area: sur-a; }
.ps-branche__sur--apres { grid-area: sur-b; }
.ps-avant { grid-area: avant; min-width: 0; }
.ps-apres { grid-area: apres; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.ps-carte { display: flex; flex-direction: column; min-width: 0; animation: ps-carte .5s cubic-bezier(.2, .9, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 80ms + 150ms); }
@keyframes ps-carte { from { opacity: 0; transform: translateY(12px); } }
.ps-carte__nom {
  display: flex; align-items: center; min-height: var(--nom); margin: 0 0 10px; font-size: 12.5px; font-weight: 800; line-height: 1.2;
  letter-spacing: .06em; text-transform: uppercase; color: #fff;
}
.ps-carte__nom.is-vert { color: #5FE3B2; }
.ps-carte__visuel {
  position: relative; display: grid; place-items: center; height: var(--visuel); overflow: hidden; border-radius: 16px;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.ps-carte__texte { margin: 12px 4px 0; font-size: 13px; line-height: 1.5; text-align: center; color: rgba(243, 238, 230, .72); text-wrap: pretty; }
.ps-carte__cadenas {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(255, 255, 255, .94); color: #1A1208; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .55);
}
.ps-carte__cadenas .cm-ico { width: 19px; height: 19px; }

/* Bachelor : le vert de l'école, l'arbre, ACTIF. */
.ps-visuel--bachelor { background: radial-gradient(90% 80% at 50% 20%, #4FE0B0 0%, #22A98A 55%, #137A63 100%); box-shadow: inset 0 0 0 2px rgba(155, 245, 210, .6), 0 18px 34px -18px rgba(43, 196, 138, .7); }
.ps-visuel__arbre { display: grid; place-items: center; color: rgba(255, 255, 255, .92); }
.ps-visuel__arbre .cm-ico { width: 70px; height: 70px; filter: drop-shadow(0 6px 10px rgba(6, 50, 38, .45)); }
.ps-actif {
  position: absolute; left: 50%; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; transform: translateX(-50%);
  border-radius: 10px; background: rgba(255, 255, 255, .95); color: #0E6B54; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 8px 18px -8px rgba(6, 50, 38, .6);
}
.ps-actif .ps-coche { width: 18px; height: 18px; border-radius: 5px; background: #2BC48A; color: #fff; }
.ps-actif .ps-coche svg { width: 12px; height: 12px; }
.ps-avant__liste { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ps-avant__liste li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; color: rgba(243, 238, 230, .8); }
.ps-avant__liste .ps-coche { margin-top: 1px; color: #5FE3B2; }

/* Le cadenas entre les deux : une ligne pointillée, un cercle blanc. */
.ps-lien { grid-area: lien; position: relative; display: grid; place-items: center; height: 42px; margin-top: calc(var(--nom) + 10px + var(--visuel) / 2 - 21px); }
.ps-lien::before { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 2px dotted rgba(255, 255, 255, .45); }
.ps-lien__cadenas { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #1A1208; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }
.ps-lien__cadenas .cm-ico { width: 16px; height: 16px; }

/* Les trois cartes du Master. */
.ps-visuel--sonny { align-items: end; background: radial-gradient(90% 90% at 50% 100%, #2F8F86 0%, #16514C 60%, #0C2E2B 100%); }
.ps-visuel__sonny {
  display: block; height: 96%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; align-self: end;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}
/* Perfooia™ : l'image du programme, celle du site — la boîte entière, jamais rognée, sur le bleu nuit
   uni du fond de cette image (#141B27 : à changer avec elle si un jour elle change). Sans image : son icône. */
.ps-visuel--perfooia { background: #141B27; }
.ps-visuel__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.ps-visuel__repli {
  display: grid; place-items: center; box-sizing: border-box; width: 100%; height: 100%; padding-bottom: 40px;
  color: #F7D774; background: radial-gradient(70% 90% at 50% 100%, #2A3470 0%, #121838 60%, #090C20 100%);
}
.ps-visuel__repli .cm-ico { width: 44px; height: 44px; }
.ps-visuel--carre { background: radial-gradient(90% 90% at 50% 0%, #FFF8E6 0%, #F2E2BC 55%, #E2C98F 100%); }
.ps-visuel__coachs { display: flex; align-items: center; margin-top: -18px; }
.ps-visuel__coach {
  display: grid; place-items: center; width: 40px; height: 40px; margin-left: -9px; border-radius: 50%;
  background: linear-gradient(135deg, #2E6B58, #163E33); color: #F7E7C1; border: 2px solid #F7EBD0; box-shadow: 0 6px 12px -6px rgba(60, 40, 10, .5);
}
.ps-visuel__coach:first-child { margin-left: 0; }
.ps-visuel__coach:nth-child(3) { width: 50px; height: 50px; z-index: 1; background: linear-gradient(135deg, #E8B931, #9A6B12); color: #fff; }
.ps-visuel__coach .cm-ico { width: 18px; height: 18px; }
.ps-visuel__coach:nth-child(3) .cm-ico { width: 22px; height: 22px; }
/* Le cadenas en bas de la carte : il ne cache ni le visage de Sonny, ni la fusée de Perfooia™, ni les coachs. */
.ps-apres .ps-carte__cadenas { top: auto; bottom: 10px; transform: translateX(-50%); }

.ps-fenetre__bas { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 30px; text-align: center; }
.ps-cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%;
  min-height: 58px; padding: 0 28px 0 32px; overflow: hidden; isolation: isolate; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 15px var(--font); letter-spacing: .06em; text-transform: uppercase; color: #2A1C02;
  background: linear-gradient(100deg, #FFF0B8 0%, #F2C94C 35%, #D9A632 70%, #F7D774 100%); background-size: 220% 100%;
  box-shadow: 0 18px 40px -18px rgba(242, 201, 76, .8), inset 0 1px 0 rgba(255, 255, 255, .6);
  animation: ps-or 6s ease-in-out infinite; transition: transform .2s, box-shadow .2s;
}
@keyframes ps-or { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
/* Le reflet glisse dans le bouton (un fond qui se déplace) : il ne peut pas en sortir, même sur iPhone. */
.ps-cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: 100% 0;
  animation: ps-reflet 3.6s ease-in-out infinite;
}
@keyframes ps-reflet { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }
.ps-cta:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -18px rgba(242, 201, 76, .95), inset 0 1px 0 rgba(255, 255, 255, .6); }
.ps-cta:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.ps-cta__fleche svg { display: block; width: 18px; height: 18px; transition: transform .2s; }
.ps-cta:hover .ps-cta__fleche svg { transform: translateX(3px); }
.ps-fenetre__note { margin: 0; max-width: 56ch; font-size: 13px; line-height: 1.55; color: rgba(243, 238, 230, .6); text-wrap: pretty; }

@media (max-width: 1060px) {
  .ps-encadre { grid-template-columns: minmax(0, 1fr) auto; }
  .ps-chemin { grid-column: 1 / -1; grid-row: 2; }
  .ps-encadre__plus { grid-column: 2; grid-row: 1; }
}
@media (max-width: 900px) {
  /* La fenêtre sur une tablette : l'avant au-dessus, le cadenas, puis les trois cartes. */
  .modal__card.modal__card--pass { padding: 30px 26px 26px; }
  .ps-branche { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'sur-a' 'avant' 'lien' 'sur-b' 'apres'; gap: 12px; }
  .ps-avant { display: grid; grid-template-columns: calc((100% - 32px) / 3) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; }
  .ps-avant .ps-carte__nom { grid-column: 1 / -1; }
  .ps-avant__liste { margin: 0; align-content: center; }
  .ps-lien { width: 42px; height: 48px; margin: 4px 0 0 calc((100% - 32px) / 6 - 21px); }
  .ps-lien::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dotted rgba(255, 255, 255, .45); }
}
@media (max-width: 640px) {
  .ps-zone { margin-top: 34px; }
  .ps-encadre { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 18px; border-radius: 22px; }
  .ps-encadre__couronne { width: 46px; height: 46px; border-radius: 14px; }
  .ps-encadre__titre { font-size: 20px; }
  .ps-chemin { grid-column: auto; grid-row: auto; justify-content: center; }
  .ps-chemin__lien { width: 40px; }
  .ps-etape { padding: 9px 11px 9px 12px; gap: 8px; }
  /* Sur un téléphone, les deux pastilles sans leur icône : « Ton niveau » et « À débloquer » tiennent sur une ligne. */
  .ps-etape__ico { display: none; }
  .ps-etape__texte small { letter-spacing: .06em; white-space: nowrap; }
  .ps-encadre__plus { grid-column: auto; grid-row: auto; width: 100%; }
  .modal:has(.modal__card--pass) { padding: 12px; }
  .modal__card.modal__card--pass { padding: 26px 18px 22px; border-radius: 22px; }
  .modal__card .ps-fenetre__titre { margin-top: 16px; font-size: 34px; }
  .ps-fenetre__phrase { font-size: 14.5px; }
  .ps-cachet { font-size: 11.5px; padding: 7px 11px; }
  .ps-branche { margin-top: 24px; }
  .ps-avant { grid-template-columns: 116px minmax(0, 1fr); column-gap: 14px; }
  .ps-avant .ps-carte__visuel { height: 96px; border-radius: 14px; }
  .ps-visuel__arbre .cm-ico { width: 46px; height: 46px; }
  .ps-actif { bottom: 9px; padding: 5px 8px; font-size: 11px; gap: 4px; }
  .ps-actif .ps-coche { width: 15px; height: 15px; }
  .ps-avant__liste { gap: 6px; }
  .ps-avant__liste li { font-size: 12.5px; }
  .ps-lien { margin-left: 37px; }
  .ps-visuel__repli { padding-bottom: 30px; }
  .ps-visuel__repli .cm-ico { width: 30px; height: 30px; }
  /* Les cartes du Master en lignes : le dessin à gauche, le nom et le texte à droite. */
  .ps-apres { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ps-carte { display: grid; grid-template-columns: 116px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; align-items: start; }
  .ps-carte .ps-carte__visuel { grid-column: 1; grid-row: 1 / span 2; height: 96px; border-radius: 14px; }
  .ps-carte .ps-carte__nom { grid-column: 2; min-height: 0; margin: 2px 0 4px; font-size: 12px; }
  .ps-carte .ps-carte__texte { grid-column: 2; margin: 0; font-size: 12.5px; text-align: left; }
  .ps-carte__cadenas { width: 32px; height: 32px; }
  .ps-carte__cadenas .cm-ico { width: 15px; height: 15px; }
  .ps-apres .ps-carte__cadenas { bottom: 6px; }
  .ps-visuel__coachs { margin-top: -14px; }
  .ps-visuel__coach { width: 26px; height: 26px; margin-left: -7px; border-width: 1.5px; }
  .ps-visuel__coach:nth-child(3) { width: 32px; height: 32px; }
  .ps-visuel__coach .cm-ico { width: 13px; height: 13px; }
  .ps-visuel__coach:nth-child(3) .cm-ico { width: 15px; height: 15px; }
  .ps-fenetre__bas { margin-top: 24px; }
  .ps-cta { width: 100%; min-height: 56px; padding: 0 18px; font-size: 13.5px; letter-spacing: .03em; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-carte, .ps-cta, .ps-cta::after { animation: none !important; }
}


/* ── L'Atelier · Le Coffre (views/coffre-etf.js) ───────────────────────────────────────────────
   La sélection d'ETF de Sonny : le titre, le top (un tableau, le podium en or, argent et bronze,
   les ETF floutés pour un membre), l'appel, puis la check-list des 7 critères. Sur téléphone,
   chaque ligne devient une carte. Rien ne déborde : les noms longs passent à la ligne, les
   chiffres gardent leur colonne. ── */
.cf { --cf-hausse: #12A150; --cf-baisse: #E5484D; --cf-or: #B8860B; width: 100%; max-width: 1000px; margin: 0 auto; }
.cf-tete { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 10px auto 28px; max-width: 760px; text-align: center; }
.cf-titre { margin: 0; font-size: clamp(27px, 3.4vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.12; text-wrap: balance; }
.cf-sous { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* Le top : une carte blanche, ses lignes en colonnes (rang, ETF, PEA, perf, distribution, frais). */
.cf-top {
  padding: 12px; border-radius: 24px; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 18px 40px -28px rgba(21, 64, 50, .45);
}
.cf-entete, .cf-ligne {
  display: grid; align-items: center; column-gap: 16px;
  grid-template-columns: 54px minmax(0, 1fr) 112px 108px 112px 86px 22px;
}
.cf-entete { padding: 8px 18px 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.cf-liste { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.cf-item + .cf-item { border-top: 1px solid rgba(21, 64, 50, .06); }
.cf-item { animation: cf-entre .5s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cf-entre { from { opacity: 0; transform: translateY(8px); } }
.cf-ligne {
  position: relative; width: 100%; margin: 2px 0; padding: 14px 18px; border: 0; border-radius: 16px;
  background: transparent; font: inherit; color: var(--text); text-align: left; cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.cf-ligne > *, .cf-infos > * { grid-row: 1; min-width: 0; }
.cf-ligne:hover, .cf-ligne:focus-visible { outline: none; background: #F3FAF6; box-shadow: inset 0 0 0 1px rgba(29, 158, 117, .2); }
.cf-rang { grid-column: 1; display: flex; }
.cf-etf { grid-column: 2; display: flex; align-items: center; gap: 12px; }
.cf-infos { display: contents; }
.cf-pea { grid-column: 3; }
.cf-perf { grid-column: 4; }
.cf-distrib { grid-column: 5; }
.cf-frais { grid-column: 6; }
.cf-aller { grid-column: 7; }

/* Le rang : une médaille pour le podium (or, argent, bronze), un numéro discret ensuite. */
.cf-rang__n, .cf-medaille {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.cf-rang__n { background: #F1F5F4; color: var(--muted); }
.cf-medaille { position: relative; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -2px 0 rgba(0, 0, 0, .08), 0 6px 14px -6px var(--cf-ombre); }
/* Un reflet passe sur chaque médaille, l'or d'abord, puis l'argent et le bronze ; il reste dans la médaille. */
.cf-medaille::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: translateX(-130%) skewX(-16deg); animation: cf-reflet-medaille 5s ease-in-out infinite;
}
.cf-medaille.is-argent::after { animation-delay: .35s; }
.cf-medaille.is-bronze::after { animation-delay: .7s; }
@keyframes cf-reflet-medaille { 0% { transform: translateX(-130%) skewX(-16deg); } 22%, 100% { transform: translateX(260%) skewX(-16deg); } }
.cf-medaille.is-or { --cf-ombre: rgba(184, 134, 11, .7); color: #5B4208; background: linear-gradient(140deg, #FFF1B8 0%, #F2CD4E 38%, #D9A520 68%, #B07D0C 100%); }
.cf-medaille.is-argent { --cf-ombre: rgba(100, 116, 139, .6); color: #39424F; background: linear-gradient(140deg, #FFFFFF 0%, #E2E6EB 38%, #BCC3CC 70%, #8E97A3 100%); }
.cf-medaille.is-bronze { --cf-ombre: rgba(140, 90, 43, .6); color: #4A2C10; background: linear-gradient(140deg, #FBE0C3 0%, #E3A266 38%, #C27A3A 70%, #8C5A2B 100%); }
/* Le podium se devine aussi sur toute la ligne : un voile doré, argenté ou cuivré venu de la gauche. */
.cf-ligne.is-or { background: linear-gradient(90deg, rgba(242, 205, 78, .16), rgba(242, 205, 78, 0) 46%); }
.cf-ligne.is-argent { background: linear-gradient(90deg, rgba(188, 195, 204, .2), rgba(188, 195, 204, 0) 46%); }
.cf-ligne.is-bronze { background: linear-gradient(90deg, rgba(227, 162, 102, .16), rgba(227, 162, 102, 0) 46%); }
.cf-ligne.is-or:hover, .cf-ligne.is-argent:hover, .cf-ligne.is-bronze:hover { background-color: #F3FAF6; }

.cf-ticker {
  flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 8px;
  background: #EAF6F0; color: var(--green3); font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
}
.cf-nom { font-size: 14.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-etf__texte { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.cf-marque {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; background: #FFF4D6; border: 1px solid #F2D58A;
  color: #7A5A12; font-size: 10.5px; font-weight: 800; white-space: nowrap;
}
.cf-marque .cm-ico { width: 11px; height: 11px; }
.cf-pea {
  justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 800; white-space: nowrap;
}
.cf-pea .cm-ico { width: 13px; height: 13px; }
.cf-pea.is-oui { background: #E6F6EF; color: var(--green3); }
.cf-pea.is-non { background: #F1F5F9; color: var(--muted); }
.cf-perf { font-size: 15.5px; font-weight: 800; color: var(--cf-hausse); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cf-perf.is-baisse { color: var(--cf-baisse); }
.cf-distrib, .cf-frais { font-size: 13.5px; font-weight: 600; color: #334155; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cf-lib { display: none; }
.cf-aller { display: grid; place-items: center; color: var(--muted-2); transition: transform .2s ease, color .2s ease; }
.cf-aller .cm-ico { width: 16px; height: 16px; }
.cf-ligne:hover .cf-aller { color: var(--green); transform: translateX(3px); }
.cf-aller.is-cadenas { color: var(--cf-or); }
.cf-ligne:hover .cf-aller.is-cadenas { color: var(--cf-or); transform: none; }

/* Les ETF floutés : tout est flou sauf le rang et la performance (le reste n'est même pas envoyé). */
.cf-ligne.is-ferme { background: rgba(248, 250, 252, .7); }
.cf-ligne.is-ferme:hover { background: #FFFBEB; box-shadow: inset 0 0 0 1px rgba(242, 205, 78, .45); }
.cf-flou { filter: blur(5px); opacity: .6; user-select: none; -webkit-user-select: none; }
.cf-ligne.is-ferme .cf-pea { background: #E6F6EF; color: var(--green3); }
.cf-separateur {
  display: flex; align-items: center; gap: 8px; margin: 10px 18px 8px; padding-top: 14px;
  border-top: 1px dashed rgba(184, 134, 11, .4); font-size: 12.5px; font-weight: 800; color: #8A6A10;
}
.cf-separateur .cm-ico { width: 15px; height: 15px; flex: none; }
.cf-item + .cf-separateur, .cf-separateur + .cf-item { border-top: 0; }

.cf-note { max-width: 760px; margin: 16px auto 0; font-size: 12px; line-height: 1.6; color: var(--muted-2); text-align: center; text-wrap: pretty; }

/* L'appel, pour un membre : une carte vert nuit, le coffre doré qui s'entrouvre, « Débloque plus d'une
   vingtaine d'ETF analysés », une phrase, « Réserver un appel ». Ça vit : une aurore qui dérive, un reflet
   qui balaie la carte, des étincelles d'or qui montent, le bouton qui respire. Tout reste dans la carte. */
.cf-appel {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin: 30px auto 0; max-width: 760px; padding: 34px 32px 30px; border-radius: 26px; text-align: center; color: #fff; overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(43, 196, 138, .28), transparent 62%),
    radial-gradient(70% 60% at 100% 100%, rgba(242, 205, 78, .14), transparent 60%),
    linear-gradient(160deg, #0F3B30 0%, #0A2A22 60%, #071E18 100%);
  box-shadow: 0 26px 50px -28px rgba(7, 30, 24, .75);
}
/* L'aurore (avant) et le reflet (après) : sous le contenu, coupés par la carte. */
.cf-appel::before, .cf-appel::after { content: ''; position: absolute; pointer-events: none; z-index: 0; }
.cf-appel::before {
  inset: -30%;
  background:
    radial-gradient(30% 34% at 30% 40%, rgba(43, 196, 138, .22), transparent 70%),
    radial-gradient(26% 30% at 72% 62%, rgba(242, 205, 78, .14), transparent 70%);
  animation: cf-aurore 14s ease-in-out infinite alternate;
}
@keyframes cf-aurore {
  0% { transform: translate(-6%, -4%) rotate(0deg); }
  100% { transform: translate(6%, 5%) rotate(8deg); }
}
.cf-appel::after {
  top: -20%; bottom: -20%; left: 0; width: 34%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .07) 45%, rgba(255, 255, 255, .13) 50%, rgba(255, 255, 255, .07) 55%, transparent 100%);
  transform: translateX(-120%) skewX(-12deg);
  animation: cf-reflet 7.5s ease-in-out 1.2s infinite;
}
@keyframes cf-reflet {
  0% { transform: translateX(-120%) skewX(-12deg); }
  38%, 100% { transform: translateX(420%) skewX(-12deg); }
}
.cf-appel > :not(.cf-etincelle) { position: relative; z-index: 1; }
/* Les étincelles d'or : de petits points lumineux qui montent du bas de la carte et s'éteignent. */
.cf-etincelle {
  position: absolute; z-index: 0; left: var(--x); bottom: -8px; width: var(--taille); height: var(--taille);
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #FFF4C9 0%, #F7D774 45%, rgba(247, 215, 116, 0) 72%);
  box-shadow: 0 0 8px 1px rgba(247, 215, 116, .45);
  animation: cf-monte var(--duree) ease-in var(--retard) infinite;
}
@keyframes cf-monte {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: .9; }
  70% { opacity: .55; }
  100% { opacity: 0; transform: translate(14px, -230px) scale(1.1); }
}
/* Le coffre : il flotte, s'entrouvre de temps en temps, et une lueur dorée s'en échappe. */
.cf-appel__ico {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: #F7D774; overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 10px 22px -12px rgba(0, 0, 0, .6);
  animation: cf-flotte 4.2s ease-in-out infinite;
}
.cf-appel__ico::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(255, 226, 130, .55), rgba(255, 226, 130, 0) 62%);
  opacity: 0; animation: cf-lueur 4.2s ease-in-out infinite;
}
.cf-appel__ico svg { position: relative; width: 30px; height: 30px; overflow: visible; }
.cf-appel__ico .fo-ico-couvercle { transform-box: view-box; transform-origin: 3.5px 10.5px; animation: cf-couvercle 4.2s ease-in-out infinite; }
@keyframes cf-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes cf-couvercle { 0%, 52%, 100% { transform: rotate(0deg); } 62%, 78% { transform: rotate(-20deg); } 88% { transform: rotate(0deg); } }
@keyframes cf-lueur { 0%, 52%, 100% { opacity: 0; } 64%, 78% { opacity: 1; } 90% { opacity: 0; } }
.cf-appel__titre { margin: 2px 0 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.5px; line-height: 1.2; text-wrap: balance; }
.cf-appel__texte { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.6; color: rgba(232, 242, 237, .82); text-wrap: pretty; }
/* « plus d'une vingtaine d'ETF » : en or, un reflet qui passe lentement sur les lettres. */
.cf-appel__or {
  background: linear-gradient(100deg, #E9B949 0%, #FFF1BF 42%, #F7D774 58%, #E0A93A 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: cf-or 4.8s ease-in-out infinite;
}
@keyframes cf-or { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .cf-appel__or { animation: none; } }
.cf-appel .btn-flow { margin-top: 6px; }
/* Le bouton, plein, dans le vert fluo du « Réserver un appel » de l'accueil : il se détache du vert nuit.
   Au survol, le même geste que partout — la pastille vert profond s'ouvre, le texte passe en blanc. */
.cf-appel .btn-flow--fluo {
  --flow-fg: #053B29;
  --flow-bd: transparent;
  --flow-fill: #0E5E4A;
  --flow-fg-on: #fff;
  background: linear-gradient(135deg, #7DFFC0 0%, #3BF59B 50%, #1EDB80 100%);
  box-shadow: 0 10px 26px -10px rgba(59, 245, 155, .85), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.cf-appel .btn-flow--fluo:hover { box-shadow: 0 14px 30px -10px rgba(59, 245, 155, .9); }
/* Le bouton respire : une onde verte part de ses bords, reste dans la carte, s'efface. */
.cf-appel .btn-flow--fluo { animation: cf-respire 2.8s ease-out 1s infinite; }
.cf-appel .btn-flow--fluo:hover, .cf-appel .btn-flow--fluo:focus-visible { animation: none; }
@keyframes cf-respire {
  0% { box-shadow: 0 10px 26px -10px rgba(59, 245, 155, .85), inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 0 rgba(59, 245, 155, .45); }
  70%, 100% { box-shadow: 0 10px 26px -10px rgba(59, 245, 155, .85), inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 14px rgba(59, 245, 155, 0); }
}
/* L'entrée, au défilement : le coffre, le titre, la phrase et le bouton arrivent l'un après l'autre
   (des transitions, pas des animations : le survol du bouton ne les rejoue pas). */
.cf-appel > .cf-appel__ico, .cf-appel > .cf-appel__titre, .cf-appel > .cf-appel__texte, .cf-appel > .cf-appel__action {
  transition: opacity .6s cubic-bezier(.2, .9, .3, 1), transform .6s cubic-bezier(.2, .9, .3, 1);
}
.cf-appel > .cf-appel__titre { transition-delay: .1s; }
.cf-appel > .cf-appel__texte { transition-delay: .2s; }
.cf-appel > .cf-appel__action { transition-delay: .3s; }
.cf-appel.is-pret:not(.is-vu) > .cf-appel__ico, .cf-appel.is-pret:not(.is-vu) > .cf-appel__titre,
.cf-appel.is-pret:not(.is-vu) > .cf-appel__texte, .cf-appel.is-pret:not(.is-vu) > .cf-appel__action { opacity: 0; transform: translateY(14px); }

/* La check-list des 7 critères : une carte par critère, sur deux colonnes (une sur téléphone) — l'icône
   dans une pastille verte, « Critère N », le titre, le repère en vert, une phrase courte. Les cartes
   apparaissent l'une après l'autre au défilement ; au survol, la carte se soulève et l'icône s'anime. */
.cf-criteres { max-width: 900px; margin: 52px auto 0; text-align: center; }
.cf-h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.6px; }
.cf-criteres__grille {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  margin: 24px 0 0; padding: 0; list-style: none; text-align: left;
}
/* La case (li) porte l'apparition ; la carte, dedans, porte le survol : l'un ne bloque pas l'autre. */
.cf-critere { display: flex; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .9, .3, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.cf-critere__carte {
  flex: 1; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 22px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 16px 34px -28px rgba(21, 64, 50, .5);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1), box-shadow .35s ease, border-color .35s ease;
}
/* Sept cartes : la dernière, seule sur sa ligne, se centre à la largeur d'une colonne. */
.cf-critere:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
.cf-critere__carte:hover { transform: translateY(-3px); border-color: rgba(29, 158, 117, .28); box-shadow: 0 22px 40px -26px rgba(21, 64, 50, .55); }
.cf-critere__ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff;
  background: linear-gradient(145deg, #34CC93 0%, #1D9E75 55%, #0E5E4A 100%);
  box-shadow: 0 12px 22px -14px rgba(14, 94, 74, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.cf-critere__ico svg { width: 26px; height: 26px; }
.cf-critere__carte:hover .cf-critere__ico svg { animation: cf-ico-saut .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cf-ico-saut { 0% { transform: none; } 40% { transform: translateY(-3px) rotate(-8deg) scale(1.08); } 100% { transform: none; } }
.cf-critere__corps { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cf-critere__n { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green2); }
.cf-critere__titre { margin: 0; font-size: 16.5px; font-weight: 800; line-height: 1.25; letter-spacing: -.2px; }
.cf-critere__repere { padding: 3px 10px; border-radius: 999px; background: #E6F6EF; color: var(--green3); font-size: 12px; font-weight: 800; }
.cf-critere__texte { margin: 2px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
/* L'apparition au défilement, carte après carte. */
.cf-criteres__grille.is-pret:not(.is-vu) .cf-critere { opacity: 0; transform: translateY(18px); }

/* La fiche d'un ETF : son illustration bord à bord, qui s'agrandit en s'ouvrant, puis tout le reste. */
.modal__card.cf-fiche {
  --bs-hausse: #12A150; --bs-baisse: #E5484D; --bs-hors: #A1A1AA;
  position: relative; max-width: 600px; gap: 0; padding: 0; overflow-x: hidden; overflow-y: auto;
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overscroll-behavior: contain;
}
.cf-fermer {
  position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border-radius: 50%; color: #fff; background: rgba(8, 20, 18, .42);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.cf-fermer:hover { color: #fff; background: rgba(8, 20, 18, .62); }
.cf-fermer .cm-ico { width: 16px; height: 16px; }
.cf-fiche__image { position: relative; flex: none; aspect-ratio: 1120 / 300; overflow: hidden; background: linear-gradient(135deg, #0F3B30, #0B1A2B); }
.cf-fiche__image.is-vide { aspect-ratio: auto; height: 96px; }
.cf-fiche__image img { display: block; width: 100%; height: 100%; object-fit: cover; animation: cf-agrandir .75s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes cf-agrandir { from { transform: scale(1.16); opacity: .35; } }
.cf-fiche__rang {
  position: absolute; left: 18px; bottom: 14px; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; color: var(--text); background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
}
.cf-fiche__rang.is-or { color: #5B4208; background: linear-gradient(140deg, #FFF1B8, #F2CD4E 45%, #D9A520); }
.cf-fiche__rang.is-argent { color: #39424F; background: linear-gradient(140deg, #FFFFFF, #E2E6EB 45%, #BCC3CC); }
.cf-fiche__rang.is-bronze { color: #4A2C10; background: linear-gradient(140deg, #FBE0C3, #E3A266 45%, #C27A3A); }
.cf-fiche__corps { display: flex; flex-direction: column; gap: 16px; padding: 22px 28px 26px; }
.cf-fiche__tete { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.modal__card .cf-fiche__nom { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.4px; text-wrap: balance; }
.cf-fiche__isin { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.cf-fiche__chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cf-tuile { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 11px 13px; border-radius: 14px; background: #F8FAFC; box-shadow: inset 0 0 0 1px var(--border); }
.cf-tuile__lib { font-size: 11px; font-weight: 700; color: var(--muted-2); }
.cf-tuile__val { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cf-tuile.is-perf { grid-column: span 2; background: #EEF9F3; box-shadow: inset 0 0 0 1px rgba(29, 158, 117, .2); }
.cf-tuile.is-perf .cf-tuile__val { font-size: 24px; letter-spacing: -.5px; color: #12A150; }
.cf-tuile.is-perf.is-baisse .cf-tuile__val { color: #E5484D; }
.cf-tuile.is-oui .cf-tuile__val { color: var(--green3); }
.cf-tuile.is-non .cf-tuile__val { color: var(--muted); }
.cf-fiche__texte { margin: 0; font-size: 14.5px; line-height: 1.65; color: #334155; }
.cf-fiche__pourquoi { padding: 14px 16px; border-radius: 16px; background: #F3FAF6; box-shadow: inset 3px 0 0 var(--green2); }
.cf-fiche__pourquoi h3, .cf-fiche__cours h3 { margin: 0 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green3); }
.cf-fiche__pourquoi p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.cf-fiche__cours { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.cf-fiche__cours h3 { margin-bottom: 0; }
.cf-fiche__note { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--muted-2); text-align: center; text-wrap: pretty; }
.cf-fiche__appel { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; }
.cf-fiche__question { margin: 0; font-size: 15px; font-weight: 800; }

/* Un ETF flouté : le coffre doré, sa performance, le chemin pour l'ouvrir. */
.modal__card.cf-ferme { position: relative; max-width: 440px; align-items: center; gap: 12px; padding: 34px 30px 26px; text-align: center; }
.cf-ferme .cf-fermer { color: var(--muted); background: #F1F5F4; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cf-ferme .cf-fermer:hover { color: var(--text); background: #E7EEEB; }
.cf-ferme__cadenas {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: #B8860B;
  background: linear-gradient(145deg, #FFF6DC, #FBE7A6); box-shadow: inset 0 0 0 1px #F1D88F, 0 12px 24px -14px rgba(184, 134, 11, .8);
}
.cf-ferme__cadenas svg { width: 32px; height: 32px; }
.modal__card .cf-ferme__titre { margin: 6px 0 0; font-size: 21px; line-height: 1.25; text-wrap: balance; }
.cf-ferme__perf { margin: 0; font-size: 14.5px; color: var(--muted); }
.cf-ferme__perf strong { font-size: 19px; color: #12A150; font-variant-numeric: tabular-nums; }
.cf-ferme__texte { margin: 0 0 6px; font-size: 14px; line-height: 1.6; color: #334155; }

/* Tablette : le tableau se resserre (le nom garde la place). */
@media (max-width: 1100px) {
  .cf-entete, .cf-ligne { column-gap: 12px; grid-template-columns: 46px minmax(0, 1fr) 96px 96px 100px 74px 18px; }
  .cf-entete, .cf-ligne { padding-left: 14px; padding-right: 14px; }
}
/* Ordinateur : le ticker à gauche, sur une largeur fixe, pour que les noms commencent tous au même endroit. */
@media (min-width: 961px) {
  .cf-ticker { min-width: 64px; justify-content: center; text-align: center; }
}
/* Tablette (iPad debout) : le ticker passe au-dessus du nom, pour que le nom entier tienne sur deux lignes. */
@media (min-width: 761px) and (max-width: 960px) {
  .cf-etf { flex-direction: column; align-items: flex-start; gap: 6px; }
}
/* Téléphone (et petite tablette) : chaque ligne devient une carte — le rang et l'ETF en haut, la
   performance à droite, puis les étiquettes (PEA, distribution, frais). Plus d'en-tête de colonnes. */
@media (max-width: 760px) {
  .cf-tete { margin-bottom: 20px; gap: 10px; }
  .cf-sous { font-size: 14px; }
  .cf-top { padding: 8px; border-radius: 22px; }
  .cf-entete { display: none; }
  .cf-ligne {
    grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-rows: auto auto;
    column-gap: 12px; row-gap: 10px; align-items: start; padding: 14px 14px 13px;
  }
  .cf-ligne > *, .cf-infos > * { grid-row: auto; grid-column: auto; }
  .cf-rang { grid-row: 1 / span 2; grid-column: 1; }
  .cf-etf { grid-row: 1; grid-column: 2; flex-direction: column; align-items: flex-start; gap: 6px; }
  .cf-perf { grid-row: 1; grid-column: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 16px; }
  .cf-infos { grid-row: 2; grid-column: 2 / span 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .cf-distrib, .cf-frais { padding: 4px 9px; border-radius: 999px; background: #F1F5F9; font-size: 12px; font-weight: 700; color: #475569; }
  .cf-pea { padding: 4px 9px 4px 7px; font-size: 12px; }
  .cf-lib { display: inline; font-size: 10.5px; font-weight: 700; color: var(--muted-2); }
  .cf-perf .cf-lib { font-size: 10px; }
  .cf-aller { display: none; }
  .cf-rang__n, .cf-medaille { width: 32px; height: 32px; font-size: 13.5px; }
  .cf-nom { font-size: 14px; -webkit-line-clamp: 3; }
  .cf-separateur { margin: 10px 14px 8px; }
  .cf-appel { margin-top: 24px; padding: 28px 20px 24px; border-radius: 24px; }
  .cf-appel__texte { font-size: 14px; }
  .cf-criteres { margin-top: 42px; }
  .cf-criteres__grille { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }
  .cf-critere:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
  .cf-critere__carte { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 18px 18px; border-radius: 20px; }
  .cf-critere__ico { width: 46px; height: 46px; border-radius: 14px; }
  .cf-critere__ico svg { width: 23px; height: 23px; }
  .cf-critere__titre { font-size: 15.5px; }
}
/* La fiche monte du bas de l'écran, sur toute la largeur (comme celle d'une action de la Communauté). */
@media (max-width: 560px) {
  .modal:has(> .cf-fiche), .modal:has(> .cf-ferme) { grid-template-columns: minmax(0, 1fr); align-items: end; padding: 14px 0 0; }
  .modal__card.cf-fiche, .modal__card.cf-ferme {
    min-width: 0; max-width: none; max-height: calc(100vh - 14px); max-height: calc(100dvh - 14px);
    border-bottom: 0; border-radius: 24px 24px 0 0; animation: bs-monte .42s cubic-bezier(.2, .9, .3, 1) both;
  }
  .modal.is-closing .modal__card.cf-fiche, .modal.is-closing .modal__card.cf-ferme { animation: bs-descend .22s ease forwards; }
  .modal__card.cf-ferme { padding: 30px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .cf-fiche__corps { gap: 14px; padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .modal__card .cf-fiche__nom { font-size: 19px; }
  .cf-fiche__chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-tuile.is-perf { grid-column: span 2; }
  .cf-fermer { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-item, .cf-fiche__image img { animation: none; }
  .cf-appel::before, .cf-appel::after, .cf-etincelle, .cf-appel__ico, .cf-appel__ico::before,
  .cf-appel__ico .fo-ico-couvercle, .cf-appel .btn-flow--fluo, .cf-medaille::after,
  .cf-critere__carte:hover .cf-critere__ico svg { animation: none !important; }
  .cf-etincelle, .cf-medaille::after { display: none; }
  .cf-appel > *, .cf-critere, .cf-critere__carte { transition: none !important; }
  .cf-appel.is-pret:not(.is-vu) > *, .cf-criteres__grille.is-pret:not(.is-vu) .cf-critere { opacity: 1; transform: none; }
}

/* ── L'admin · Le Coffre : des cartes qu'on fait glisser pour changer l'ordre du top ── */
.ad-coffre { gap: 10px; }
.ad-coffre__carte { gap: 14px; transition: box-shadow .2s ease, opacity .2s ease, transform .2s ease; }
.ad-coffre__carte.is-floute { background: #FFFBEB; }
.ad-coffre__carte.is-tiree { opacity: .45; }
.ad-coffre__carte.is-cible { box-shadow: 0 0 0 2px var(--green2), 0 12px 28px -18px rgba(29, 158, 117, .8); transform: translateY(-2px); }
.ad-coffre__tete { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; }
.ad-coffre__actions { display: flex; align-items: center; gap: 6px; }
.ad-coffre__actions .ad-coffre__case { margin-right: 8px; font-size: 14px; }
@media (max-width: 900px) {
  .ad-coffre__tete { grid-template-columns: auto auto minmax(0, 1fr); }
  .ad-coffre__actions { grid-column: 1 / -1; flex-wrap: wrap; }
}
.ad-coffre__poignee { cursor: grab; padding: 2px 6px; font-size: 18px; line-height: 1; color: var(--muted-2); user-select: none; }
.ad-coffre__rang { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #F1F5F4; color: var(--muted); }
.ad-coffre__rang.is-or { color: #5B4208; background: linear-gradient(140deg, #FFF1B8, #F2CD4E 45%, #D9A520); }
.ad-coffre__rang.is-argent { color: #39424F; background: linear-gradient(140deg, #FFFFFF, #E2E6EB 45%, #BCC3CC); }
.ad-coffre__rang.is-bronze { color: #4A2C10; background: linear-gradient(140deg, #FBE0C3, #E3A266 45%, #C27A3A); }
.ad-coffre__titre { min-width: 0; overflow-wrap: anywhere; }
.ad-coffre__case { margin: 0; white-space: nowrap; }
.ad-coffre__champs { gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
