/* ==========================================================================
   Thème « vif » de l'appli (body[data-theme="vif"]) : Urbanist, fond clair,
   bleu nuit, bleu vif et orange, halos pastel, cartes photo à 24 px,
   barre d'onglets flottante en pilule au bord irisé.
   Chargé après global.css et la feuille de la page ; ne touche que les pages qui le déclarent.
   ========================================================================== */
body[data-theme="vif"] {
  --bg: #FBFAF8;
  --bg-deep: #ECEEF3;
  --bg-card: #FFFFFF;
  --light: #FBFAF8;
  --t0: #0B1C34;              /* bleu nuit, 17:1 */
  --t1: #0B1C34;
  --t2: #3E4A5E;
  --t3: #5B6577;              /* 5,8:1 sur le fond */
  --line: #ECEEF3;
  --b1: #ECEEF3;
  --b2: #ECEEF3;
  --b3: #D5DAE4;
  --action: #2D5BE3;          /* bleu vif, texte blanc 5,6:1 */
  --action-hover: #2149C2;
  --action-texte: #FFFFFF;
  --or: #B4470F;              /* orange foncé pour les petits textes, 5,5:1 */
  --vif-orange: #E8611C;      /* orange de marque : grands titres et aplats */
  --vif-bleu: #2D5BE3;
  --vif-peche: #FFE4CF;
  --vif-ciel: #E1EAFF;
  --vif-irise: linear-gradient(120deg, #9DB8FF 0%, #FFD2AE 50%, #B9E5CF 100%);
  --vif-voile: linear-gradient(180deg, rgba(11, 28, 52, 0) 30%, rgba(11, 28, 52, 0.55) 62%, rgba(11, 28, 52, 0.9) 100%);
  --vif-ombre: 0 1px 2px rgba(11, 28, 52, 0.04), 0 12px 32px -18px rgba(11, 28, 52, 0.28);
  --carte: #FFFFFF;                       /* surface des cartes */
  --carte-verre: rgba(255, 255, 255, 0.96);
  --nuit: #0B1C34;                        /* cartes bleu nuit (dossier, adhésion) */
  --lien: #2D5BE3;                        /* liens et petits textes bleus */
  --font: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Urbanist", -apple-system, system-ui, sans-serif;
  --sans-titre: "Urbanist", -apple-system, system-ui, sans-serif;
  font-size: 16px;
  color: var(--t1);
  background: var(--bg);
}

/* Halos : pêche en haut à droite, bleu pâle en bas à gauche */
body[data-theme="vif"]::before {
  background:
    radial-gradient(28rem 28rem at 100% -4rem, var(--vif-peche) 0%, rgba(255, 228, 207, 0) 70%),
    radial-gradient(30rem 30rem at -6rem 100%, var(--vif-ciel) 0%, rgba(225, 234, 255, 0) 70%),
    var(--bg);
}

body[data-theme="vif"] h1,
body[data-theme="vif"] h2,
body[data-theme="vif"] h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; color: var(--t0); }

/* Titre en deux tons : la fin en italique gras orange (grands titres seulement : 3,3:1 suffit au-delà de 24 px) */
body[data-theme="vif"] .vif-titre em { font-style: italic; font-weight: 700; color: var(--vif-orange); }
body[data-theme="vif"] .vif-titre em.bleu { color: var(--vif-bleu); }

body[data-theme="vif"] :focus-visible { outline: 2px solid var(--vif-bleu); outline-offset: 2px; }

/* ---------- En-tête : transparent, sans filet ---------- */
body[data-theme="vif"] .nav { background: rgba(251, 250, 248, 0.82); border-bottom: 0; }

/* ---------- Pastilles (filtres) ---------- */
.vif-pastilles { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px; scrollbar-width: none; }
.vif-pastilles::-webkit-scrollbar { display: none; }
.vif-pastille {
  flex: 0 0 auto; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--carte); color: var(--t0);
  font: 600 15px var(--font); white-space: nowrap; cursor: pointer;
}
.vif-pastille[aria-pressed="true"] { background: var(--vif-bleu); border-color: var(--vif-bleu); color: #FFFFFF; }

/* ---------- Tuiles d'action (grille 2 colonnes) ---------- */
.vif-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.vif-tuile {
  display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 124px; padding: 16px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--carte); box-shadow: var(--vif-ombre); color: var(--t0);
}
.vif-tuile-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--vif-ciel); color: var(--vif-bleu); }
.vif-tuile b { font-size: 15px; font-weight: 700; line-height: 1.3; }
.vif-tuile small { font-size: 13px; line-height: 1.35; color: var(--t3); }

/* ---------- Barre d'onglets flottante (téléphone, tablette) ---------- */
@media (max-width: 999px) {
  body[data-theme="vif"].has-tabbar .tabbar {
    left: 50%; right: auto; bottom: max(16px, env(safe-area-inset-bottom));
    width: min(360px, calc(100% - 40px)); height: 66px; padding: 0 8px; transform: translateX(-50%);
    align-items: center; border-radius: 999px;
    border: 1.5px solid transparent;
    background: linear-gradient(var(--carte-verre), var(--carte-verre)) padding-box, var(--vif-irise) border-box;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px -16px rgba(11, 28, 52, 0.35);
  }
  body[data-theme="vif"] .tabbar > a { height: 62px; color: var(--t3); }
  /* Icône seule, comme dans Renfort ; le libellé reste lu par les lecteurs d'écran */
  body[data-theme="vif"] .tab-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* global.css neutralise le fond des icônes avec !important : on le rétablit ici pour le seul thème vif */
  body[data-theme="vif"] .tabbar > a .tab-ic { width: 48px; height: 48px; border-radius: 999px; }
  body[data-theme="vif"] .tabbar > a:hover .tab-ic { background: var(--line) !important; color: var(--t0); }
  body[data-theme="vif"] .tabbar > a[aria-current="page"] .tab-ic { background: var(--vif-bleu) !important; color: #FFFFFF; }
  body[data-theme="vif"] .tabbar > a[aria-current="page"]::before { content: none; }
  body[data-theme="vif"].has-tabbar { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  body[data-theme="vif"].has-tabbar .nav-mobile { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Barre latérale (ordinateur) ---------- */
@media (min-width: 1000px) {
  body[data-theme="vif"].app-shell .nav.nav-app { background: rgba(255, 255, 255, 0.7); border-right: 1px solid var(--line); }
  body[data-theme="vif"].app-shell .nav-app .nav-links > a { color: var(--t2); border-radius: 999px; }
  body[data-theme="vif"].app-shell .nav-app .nav-links > a:hover { background: var(--line); color: var(--t0); }
  body[data-theme="vif"].app-shell .nav-app .nav-links > a[aria-current="page"] { background: var(--vif-bleu); color: #FFFFFF; border-color: var(--vif-bleu); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-theme="vif"] * { scroll-behavior: auto; }
}

/* ==========================================================================
   Composants partagés dans le thème vif : boutons, étiquettes, champs, pied de page
   ========================================================================== */
body[data-theme="vif"] .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--or); }
body[data-theme="vif"] .btn { min-height: 48px; height: auto; padding: 0 22px; border-radius: 999px; font: 700 15px var(--font); letter-spacing: 0; text-transform: none; }
body[data-theme="vif"] .btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
body[data-theme="vif"] .btn-lg { min-height: 56px; font-size: 16px; }
body[data-theme="vif"] .btn-primary { background: var(--vif-bleu); border-color: var(--vif-bleu); color: #FFFFFF; box-shadow: 0 12px 28px -14px rgba(45, 91, 227, .8); }
body[data-theme="vif"] .btn-primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
body[data-theme="vif"] .btn-ghost { background: var(--carte); border: 1px solid var(--line); color: var(--t0); box-shadow: none; }
body[data-theme="vif"] .btn-ghost:hover { border-color: var(--b3); background: var(--carte); }
body[data-theme="vif"] .tag { border-radius: 999px; border: 0; background: var(--vif-ciel); color: var(--vif-bleu); font-weight: 700; padding: 4px 12px; }
body[data-theme="vif"] .input { min-height: 48px; border-radius: 16px; border: 1px solid var(--line); background: var(--carte); color: var(--t0); }
body[data-theme="vif"] .input:focus { border-color: var(--vif-bleu); outline: none; box-shadow: 0 0 0 3px rgba(45, 91, 227, .15); }
body[data-theme="vif"] .sy-lien { display: inline-flex; align-items: center; min-height: 44px; color: var(--vif-bleu); font-weight: 700; text-decoration: none; border: 0; }
body[data-theme="vif"] .caption, body[data-theme="vif"] .muted { color: var(--t3); }

/* Carte blanche commune : coins de 24 px, filet clair, ombre douce */
body[data-theme="vif"] :is(.cu-premiers, .cu-jour, .cu-carnet, .ca-seance, .cp-bloc, .det, .pf-menu) {
  border-radius: 24px; border: 1px solid var(--line); background: var(--carte); box-shadow: var(--vif-ombre); overflow: hidden;
}

/* Pied de page */
body[data-theme="vif"] .footer { background: var(--carte); border-top: 1px solid var(--line); border-radius: 32px 32px 0 0; }
body[data-theme="vif"] .footer-reseaux a { border-radius: 999px; border-color: var(--line); background: var(--carte); }
body[data-theme="vif"] .footer-human { color: var(--vif-bleu); }
body[data-theme="vif"] .footer-mif { border-top-color: var(--line); }
body[data-theme="vif"] .footer .btn, body[data-theme="vif"] .footer button { border-radius: 999px; }
body[data-theme="vif"] .nav-cta .btn, body[data-theme="vif"] [data-account] .btn, body[data-theme="vif"] [data-account] button { border-radius: 999px; }

/* ==========================================================================
   Apprendre (apprendre.html) et Carnet (entrainement.html)
   ========================================================================== */
body[data-theme="vif"] :is(.cu, .ca-page) { max-width: 520px; gap: 28px; padding-top: 18px; }
body[data-theme="vif"] .cu-premiers { padding: 18px 20px; }
body[data-theme="vif"] .cu-jour-photo { aspect-ratio: auto; height: 220px; }
body[data-theme="vif"] .cu-jour-texte { padding: 20px 22px 24px; }
body[data-theme="vif"] .cu-jour h1 { font-size: 27px; font-weight: 700; line-height: 1.15; }
body[data-theme="vif"] .cu-jour-sous { color: var(--t3); }
body[data-theme="vif"] .cu-tete h2 { font-size: 27px; }
body[data-theme="vif"] .cu-tete h2 em, body[data-theme="vif"] .ca-tete h1 em { font-style: italic; font-weight: 700; color: var(--vif-orange); }
/* Cahiers : chaque cahier devient une carte, numéro dans un rond bleu pâle */
body[data-theme="vif"] .cu-cahier { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--carte); box-shadow: var(--vif-ombre); overflow: hidden; }
body[data-theme="vif"] .cu-ligne { min-height: 64px; padding: 10px 16px; grid-template-columns: 40px minmax(0, 1fr) auto; }
body[data-theme="vif"] .cu-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--vif-ciel); color: var(--vif-bleu); font: 700 14px var(--font); }
body[data-theme="vif"] .cu-titre { font-weight: 700; }
body[data-theme="vif"] .cu-etat { font-size: 13px; color: var(--t3); }
body[data-theme="vif"] .cu-cahier.is-courant { border-color: var(--vif-bleu); }
body[data-theme="vif"] .cu-cahier.is-courant .cu-num, body[data-theme="vif"] .cu-cahier.is-fini .cu-num { background: var(--vif-bleu); color: #FFFFFF; }
body[data-theme="vif"] .cu-cahier.is-courant .cu-etat { color: var(--vif-bleu); font-weight: 700; }
body[data-theme="vif"] .cu-cahier.is-fini .cu-etat { color: var(--bull-text); }
body[data-theme="vif"] .cu-ligne:hover .cu-titre { color: var(--vif-bleu); }
body[data-theme="vif"] .cu-cahier > :not(.cu-ligne) { padding-left: 16px; padding-right: 16px; }
body[data-theme="vif"] .cu-barre { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
body[data-theme="vif"] .cu-barre i { border-radius: 999px; background: linear-gradient(90deg, var(--vif-bleu), #6E8CF0); }
body[data-theme="vif"] .cu-points i.is-on { background: var(--vif-bleu); border-color: var(--vif-bleu); }
body[data-theme="vif"] .cu-points i.is-auj { box-shadow: 0 0 0 3px var(--vif-ciel); }
body[data-theme="vif"] .cu-saison, body[data-theme="vif"] .cu-saison-photo { border-radius: 24px; overflow: hidden; }
body[data-theme="vif"] .cu-saison-photo::after { background: var(--vif-voile); }
body[data-theme="vif"] .cu-saison-texte { text-align: center; justify-items: center; }
body[data-theme="vif"] .cu-saison-texte strong { font: italic 800 24px/1.2 var(--font); }
body[data-theme="vif"] .cu-resume h3 { font: 700 18px var(--font); }

body[data-theme="vif"] .ca-tete h1 { font-size: 30px; font-weight: 600; line-height: 1.15; }
body[data-theme="vif"] .ca-seance { padding: 22px; }
body[data-theme="vif"] .ca-etat { gap: 10px; border: 0; }
body[data-theme="vif"] .ca-etat p { border: 1px solid var(--line) !important; border-radius: 20px; background: var(--carte); box-shadow: var(--vif-ombre); }
body[data-theme="vif"] .ca-etat b { font: 800 26px var(--font); color: var(--vif-bleu); }
body[data-theme="vif"] .ca-lexique h2 { font-size: 24px; }
body[data-theme="vif"] .ca-lexique-liste { border: 1px solid var(--line); border-radius: 24px; background: var(--carte); box-shadow: var(--vif-ombre); padding: 0 18px; }
body[data-theme="vif"] .ca-lexique-liste details:last-child { border-bottom: 0; }
body[data-theme="vif"] .ca-lexique-liste summary { font-weight: 600; }
body[data-theme="vif"] .ca-lexique-liste summary small { color: var(--or); font-weight: 600; }

/* Les mots du matin : fiches en tuiles */
body[data-theme="vif"] :is(.mo, .cu-mention) { max-width: 520px; }
body[data-theme="vif"] .mo-tete h2 { font-size: 24px; }
body[data-theme="vif"] .mo-fiche, body[data-theme="vif"] .mo-face, body[data-theme="vif"] .mo-dos { border-radius: 20px; }
body[data-theme="vif"] .mo-face, body[data-theme="vif"] .mo-dos { border: 1px solid var(--line); background: var(--carte); box-shadow: var(--vif-ombre); }
body[data-theme="vif"] .mo-eti { color: var(--or); font-weight: 700; }
body[data-theme="vif"] .mo-face strong, body[data-theme="vif"] .mo-face b, body[data-theme="vif"] .mo-face h3 { font-family: var(--font); font-weight: 800; }

/* ==========================================================================
   Profil (compte.html)
   ========================================================================== */
body[data-theme="vif"] .cp { max-width: 520px; gap: 22px; }
body[data-theme="vif"] .cp-zone { gap: 18px; }
body[data-theme="vif"] .cp-tete {
  position: relative; margin-top: 56px; padding: 64px 20px 24px; justify-items: center; text-align: center;
  border-radius: 24px; border: 1px solid var(--line); background: var(--carte); box-shadow: var(--vif-ombre);
}
body[data-theme="vif"] .cp-photo {
  position: absolute; top: -48px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 96px; margin: 0; border-radius: 999px; padding: 3px; background: var(--vif-irise);
  box-shadow: 0 18px 40px -16px rgba(11, 28, 52, .35);
}
body[data-theme="vif"] .cp-photo::after {
  content: attr(data-initiale); display: grid; place-items: center; width: 100%; height: 100%; border-radius: 999px;
  background: var(--carte); color: var(--t0); font: 800 34px var(--font);
}
body[data-theme="vif"] .cp-tete h1 { font-size: 26px; font-weight: 700; }
body[data-theme="vif"] .cp-sous { color: var(--t3); font-size: 14px; word-break: break-all; }
body[data-theme="vif"] .cp-bloc { padding: 20px; gap: 10px; border-top: 1px solid var(--line); }
body[data-theme="vif"] .cp-bloc h2 { font-size: 19px; font-weight: 700; }
body[data-theme="vif"] .cp-chiffre { font-weight: 600; }
body[data-theme="vif"] .cp-certificats li { border-color: var(--line); }
body[data-theme="vif"] .pf-menu { padding: 4px 0; }
body[data-theme="vif"] .pf-menu > a, body[data-theme="vif"] .pf-menu > button { min-height: 60px; padding-left: 18px; padding-right: 18px; border-color: var(--line); }
body[data-theme="vif"] .pf-menu-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--vif-ciel); color: var(--vif-bleu); }
body[data-theme="vif"] .compte-groupe { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--t3); }
body[data-theme="vif"] .compte-reglages { display: grid; gap: 10px; }
body[data-theme="vif"] .det summary { padding: 16px 18px; }
body[data-theme="vif"] .det summary strong { font-weight: 700; }
body[data-theme="vif"] .det-corps { padding: 0 18px 18px; }

@media (min-width: 1000px) {
  body[data-theme="vif"].app-shell > :is(main.cu, main.ca-page, main.cp, section.mo, aside.cu-mention) { margin-left: max(var(--barre-g), calc((100vw + var(--barre-g) - 520px) / 2)); }
}

/* ==========================================================================
   Pages secondaires (lives, offrir, carte, études de cas, tarifs, certificat, accueil)
   ========================================================================== */
/* Les aplats vert anglais deviennent bleu nuit, comme la carte « dossier » de Renfort */
body[data-theme="vif"] { --vert: #0B1C34; --vert-fonce: #071427; --vert-clair: var(--vif-ciel); --steel: var(--vif-bleu); --lilac: var(--or); }
/* La carte de membre reste l'objet réel : vert anglais, or et gravure à l'empattement */
body[data-theme="vif"] .carte-membre { --display: "Cormorant Garamond", Garamond, Georgia, serif; }
body[data-theme="vif"] .carte-membre .cm-nom-maison { font-family: "Bodoni Moda", Didot, Georgia, serif; }

/* Titres et sur-titres posés sur un fond sombre ou une photo : en clair */
body[data-theme="vif"] :is(.li-carte, .of-hero, .sy-hero, .sy-carte-section, .ca-scene, .ma-ouverture, .ma-pause) :is(h1, h2, h3) { color: #FFFFFF; }
body[data-theme="vif"] :is(.li-carte, .of-hero, .sy-hero, .sy-carte-section) .eyebrow,
body[data-theme="vif"] .eyebrow-clair { color: rgba(255, 255, 255, .82); }
body[data-theme="vif"] :is(.of-hero, .sy-hero, .ma-ouverture) h1 { font-weight: 800; font-style: italic; letter-spacing: -0.02em; }
body[data-theme="vif"] .of-hero::after { background: var(--vif-voile); }

/* Cartes sombres arrondies */
body[data-theme="vif"] :is(.li-carte, .ca-scene) { border-radius: 24px; box-shadow: 0 18px 40px -18px rgba(11, 28, 52, .45); }
body[data-theme="vif"] .li-carte .btn-ghost { border-radius: 999px; }

/* Bouton menu rond */
body[data-theme="vif"] .nav-toggle { border-radius: 999px; background: var(--carte); border-color: var(--line); }

/* Bascule mensuel / annuel des tarifs */
body[data-theme="vif"] .period-toggle { border-radius: 999px; }
body[data-theme="vif"] .period-toggle button { border-radius: 999px; }
body[data-theme="vif"] .period-toggle button[aria-checked="true"] { background: var(--vif-bleu); color: #FFFFFF; }

/* Étapes numérotées (I, II, III) : cartes, numéro dans un rond bleu */
body[data-theme="vif"] .sy-trois { gap: 12px; }
body[data-theme="vif"] .sy-trois li { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--carte); box-shadow: var(--vif-ombre); }
body[data-theme="vif"] .sy-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--vif-bleu); color: #FFFFFF; font: 700 14px var(--font); }
body[data-theme="vif"] .sy-trois h3 { margin-top: 12px; font: 700 19px var(--font); }

/* Formulaires : champs ronds, texte dans la police du site */
body[data-theme="vif"] textarea.input, body[data-theme="vif"] textarea { font: 400 15px/1.5 var(--font); border-radius: 16px; }
body[data-theme="vif"] .of-formule > span { border-radius: 20px; border-color: var(--line); box-shadow: var(--vif-ombre); }
body[data-theme="vif"] .of-formule b { font: 800 22px var(--font); }
body[data-theme="vif"] .of-formule strong { font-weight: 700; }
body[data-theme="vif"] .of-formule input:checked + span { border: 2px solid var(--vif-bleu); background: #F5F8FF; }
body[data-theme="vif"] .of-formule input:focus-visible + span { outline-color: var(--vif-bleu); }

/* Liste des lives */
body[data-theme="vif"] .li-ligne-titre { font: 700 18px var(--font); }
body[data-theme="vif"] .li-ligne-date .li-badge { color: var(--vif-bleu); font-weight: 700; }

/* Accueil : sur-titres sur photo, bouton « Lire », cartes d'adhésion */
body[data-theme="vif"] :is(.ma-ouverture, .ma-pause) :is(.ma-eti, .eyebrow) { color: rgba(255, 255, 255, .85); }
body[data-theme="vif"] .ma-pause h2 { font-weight: 800; font-style: italic; }
body[data-theme="vif"] .ma-lire { background: var(--vif-bleu); color: #FFFFFF; font-weight: 700; }
body[data-theme="vif"] .adh-carte { border-radius: 24px; overflow: hidden; border-color: var(--line); box-shadow: var(--vif-ombre); }
body[data-theme="vif"] .hi-num, body[data-theme="vif"] [class*="-num"]:not(.sy-num):not(.cu-num) { font-family: var(--font); font-weight: 800; color: var(--vif-bleu); }
body[data-theme="vif"] .ma-offres { gap: 12px; border: 0; }
body[data-theme="vif"] .ma-offre { border: 1px solid var(--line) !important; border-radius: 24px; background: var(--carte); box-shadow: var(--vif-ombre); }
body[data-theme="vif"] .ma-prix { font: 800 46px/1 var(--font); color: var(--t0); }
body[data-theme="vif"] .ma-lien { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--vif-bleu); color: #FFFFFF; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; }
body[data-theme="vif"] .ma-cercle a { color: var(--vif-bleu); font-weight: 700; }

/* Liens dans un petit texte : soulignés, pour ne pas reposer sur la seule couleur */
body[data-theme="vif"] :is(.caption, .muted, .mt-mention, .footer-mif) a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Appli construite comme Renfort : colonne de téléphone, logo et avatar en tête,
   barre flottante sur toutes les tailles, sans barre du haut ni barre latérale.
   ========================================================================== */
body[data-theme="vif"].app-shell .nav { display: none; }
body[data-theme="vif"].app-shell > main { max-width: 480px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 20px; padding-right: 20px; }
body[data-theme="vif"].app-shell > :is(section.mo, aside.cu-mention) { max-width: 480px !important; margin-left: auto !important; margin-right: auto !important; }
@media (min-width: 1000px) {
  body[data-theme="vif"].app-shell .tabbar {
    position: fixed; left: 50%; bottom: 20px; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
    width: 360px; height: 66px; padding: 0 8px; transform: translateX(-50%); border-radius: 999px;
    border: 1.5px solid transparent;
    background: linear-gradient(var(--carte-verre), var(--carte-verre)) padding-box, var(--vif-irise) border-box;
    box-shadow: 0 18px 40px -16px rgba(11, 28, 52, 0.35);
  }
  body[data-theme="vif"].app-shell .tabbar > a { display: grid; place-items: center; height: 62px; color: var(--t3); }
  body[data-theme="vif"].app-shell .tabbar .tab-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body[data-theme="vif"].app-shell .tabbar > a .tab-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; }
  body[data-theme="vif"].app-shell .tabbar > a:hover .tab-ic { background: var(--line) !important; }
  body[data-theme="vif"].app-shell .tabbar > a[aria-current="page"] .tab-ic { background: var(--vif-bleu) !important; color: #FFFFFF; }
  body[data-theme="vif"].app-shell { padding-bottom: 110px; }
}
body[data-theme="vif"].app-shell .footer { display: none; }

/* En-tête : logo à gauche, avatar à anneau à droite */
.vif-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vif-logo { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--t0); }
.vif-logo img { width: 38px; height: 38px; }
.vif-logo b { display: block; font: 800 17px/1.2 var(--font); letter-spacing: -0.01em; }
.vif-logo small { display: block; font: italic 500 12px/1.3 var(--font); color: var(--t3); }
.vif-avatar { position: relative; display: grid; place-items: center; width: 48px; height: 48px; padding: 2.5px; border-radius: 999px; background: conic-gradient(from 200deg, #9DB8FF, #FFD2AE, #E8611C, #B9E5CF, #9DB8FF); }
.vif-avatar > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 999px; background: var(--carte); color: var(--t0); font: 800 18px var(--font); box-shadow: 0 0 0 3px var(--bg); }

/* Carte allongée au bord irisé (« en cours ») */
.vif-live { display: block; width: 100%; padding: 1.5px; border: 0; border-radius: 999px; background: var(--vif-irise); box-shadow: 0 10px 30px -18px rgba(11, 28, 52, .28); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.vif-live > span { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--carte); }
.vif-live-photo { width: 56px; height: 56px; flex: none; border-radius: 999px; background: var(--bg-deep) center / cover; }
.vif-live-txt { min-width: 0; flex: 1; }
.vif-live-txt small { display: block; font-size: 12px; font-weight: 500; color: var(--t3); }
.vif-live-txt b { display: block; margin-top: 2px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--t0); }
.vif-pill { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--vif-bleu); color: #FFFFFF; font-size: 12px; font-weight: 600; }
.vif-pill i { width: 6px; height: 6px; border-radius: 999px; background: #FFFFFF; animation: vif-pouls 1.6s ease-in-out infinite; }
@keyframes vif-pouls { 50% { opacity: .35; } }

/* Deux rangées de pastilles qui défilent, puis le carrousel de grandes cartes photo */
.vif-rangees { display: grid; gap: 10px; margin: 0 -20px; }
.vif-rangees .vif-pastilles { margin: 0; padding: 0 20px; }
.vif-carrousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
.vif-carrousel::-webkit-scrollbar { display: none; }
.vif-photo { position: relative; flex: 0 0 85%; height: 400px; scroll-snap-align: center; overflow: hidden; border: 0; padding: 0; border-radius: 24px; background: var(--bg-deep) center / cover; box-shadow: 0 10px 30px -18px rgba(11, 28, 52, .28); color: #FFFFFF; font: inherit; text-align: center; cursor: pointer; }
.vif-photo[hidden] { display: none; }
.vif-photo::before { content: ""; position: absolute; inset: 0; background: var(--vif-voile); }
.vif-photo-coin { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--t0); }
.vif-photo-bas { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 12px; padding: 0 24px 24px; }
.vif-photo-rub { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.vif-photo-bas b { font-size: 22px; font-weight: 800; font-style: italic; line-height: 1.2; text-wrap: balance; }
.vif-photo-bas small { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .85); }

/* Carte bleu nuit à gros chiffres orange */
.vif-dossier { display: grid; gap: 16px; padding: 20px; border-radius: 24px; background: var(--nuit); color: #FFFFFF; box-shadow: 0 18px 40px -16px rgba(11, 28, 52, .35); }
.vif-dossier-eti { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: #C2410C; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
body[data-theme="vif"] .vif-dossier h2 { color: #FFFFFF; font-size: 22px; font-weight: 800; font-style: italic; line-height: 1.2; }
.vif-dossier dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.vif-dossier dl div { display: flex; flex-direction: column; gap: 4px; }
.vif-dossier dt { order: 2; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .78); }
.vif-dossier dd { order: 1; margin: 0; font-size: 24px; font-weight: 800; line-height: 1; color: var(--vif-orange); font-variant-numeric: tabular-nums; }
.vif-dossier p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .72); }

/* Carte chiffre-clé */
.vif-stat { display: block; width: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--carte); box-shadow: 0 10px 30px -18px rgba(11, 28, 52, .28); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vif-stat strong { display: block; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--vif-orange); }
.vif-stat > span { display: block; margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--t0); }
.vif-stat small { display: block; margin-top: 8px; font-size: 13px; color: var(--t3); }
.vif-stat em { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; font-style: normal; font-size: 15px; font-weight: 600; color: var(--vif-bleu); }
.vif-vide { padding: 32px 20px; border: 1px dashed var(--line); border-radius: 24px; background: var(--carte-verre); text-align: center; color: var(--t3); }
@media (prefers-reduced-motion: reduce) { .vif-pill i { animation: none; } }
.vif-point { width: 6px; height: 6px; border-radius: 999px; background: #FFFFFF; animation: vif-pouls 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .vif-point { animation: none; } }

/* ---------- Apprendre comme la page Agir de Renfort ---------- */
body[data-theme="vif"] .cu-h2 { font-size: 22px; }
.cu-premiers-lien { margin: -10px 0 0; font-size: 14px; color: var(--t3); }
.cu-premiers-lien .sy-lien { min-height: 44px; }
body[data-theme="vif"] .cu-cahiers { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
body[data-theme="vif"] .vif-cahier { margin: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--carte); box-shadow: 0 10px 30px -18px rgba(11, 28, 52, .28); overflow: hidden; }
body[data-theme="vif"] .vif-cahier.is-courant { border-color: var(--vif-bleu); }
.vif-cahier-tete { display: flex; width: 100%; gap: 12px; padding: 12px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.vif-cahier-photo { position: relative; display: grid; place-items: center; width: 84px; height: 84px; flex: none; border-radius: 16px; background: var(--bg-deep) center / cover; overflow: hidden; }
.vif-cahier-photo::before { content: ""; position: absolute; inset: 0; background: rgba(11, 28, 52, .35); }
.vif-cahier-photo span { position: relative; color: #FFFFFF; font: 800 20px var(--font); }
.vif-cahier-txt { display: grid; gap: 3px; min-width: 0; flex: 1; align-content: center; }
.vif-cahier-txt small { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--or); }
.vif-cahier-txt b { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--t0); }
.vif-cahier-meta { font-size: 13px; color: var(--t3); }
.vif-barre { display: block; height: 6px; margin-top: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.vif-barre i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--vif-bleu), #6E8CF0); }
.vif-barre-grande { height: 12px; margin-top: 14px; }
body[data-theme="vif"] .vif-cahier .cu-detail { padding: 0 16px 12px; }
body[data-theme="vif"] .vif-dossier a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 2px; }
.vif-bouton-clair { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: #FFFFFF; color: #0B1C34; font: 700 15px var(--font); cursor: pointer; }

/* ---------- Carnet comme la page Actualités de Renfort ---------- */
.vif-lexique { border: 1px solid var(--line); border-radius: 24px; background: var(--carte); box-shadow: 0 10px 30px -18px rgba(11, 28, 52, .28); padding: 0 18px; }
.vif-lexique > summary { display: flex; align-items: center; justify-content: space-between; min-height: 64px; cursor: pointer; list-style: none; }
.vif-lexique > summary::-webkit-details-marker { display: none; }
.vif-lexique > summary::after { content: "+"; font: 600 24px var(--font); color: var(--vif-bleu); }
.vif-lexique[open] > summary::after { content: "−"; }
.vif-lexique > summary b { display: block; font-size: 17px; font-weight: 700; }
.vif-lexique > summary small { display: block; font-size: 13px; color: var(--t3); }
.vif-lexique .field { display: block; margin-bottom: 12px; }
body[data-theme="vif"] .vif-lexique .ca-lexique-liste { border: 0; box-shadow: none; padding: 0 0 8px; border-radius: 0; }
/* Mosaïque des mots du matin sur deux colonnes, hauteurs alternées */
body[data-theme="vif"] .mo { display: grid; gap: 12px; padding: 0; }
body[data-theme="vif"] .mo-tete { display: flex; align-items: baseline; justify-content: space-between; }
body[data-theme="vif"] .mo-tete h2 { font-size: 20px; }
body[data-theme="vif"] .mo-grille { columns: 2; column-gap: 12px; display: block; }
body[data-theme="vif"] .mo-fiche { display: block; width: 100%; margin-bottom: 12px; break-inside: avoid; }
body[data-theme="vif"] .mo-fiche:nth-child(3n + 1) .mo-face { min-height: 200px; }
body[data-theme="vif"] .mo-fiche:nth-child(3n + 2) .mo-face { min-height: 150px; }
body[data-theme="vif"] .mo-fiche:nth-child(3n) .mo-face { min-height: 176px; }
body[data-theme="vif"] .mo-face:not(.mo-dos) { background: var(--nuit); color: #FFFFFF; border: 0; }
body[data-theme="vif"] .mo-face:not(.mo-dos) b { color: #FFFFFF; font-style: italic; font-size: 22px; }
body[data-theme="vif"] .mo-face:not(.mo-dos) small { color: rgba(255, 255, 255, .78); }

/* ---------- Profil comme Mon espace de Renfort ---------- */
body[data-theme="vif"] .cp-tete .eyebrow { display: none; }
.cp-coin { position: absolute; top: 18px; margin: 0; display: grid; gap: 2px; }
.cp-coin b { font: 800 26px/1 var(--font); }
.cp-coin small { font-size: 12px; font-weight: 500; color: var(--t3); }
.cp-coin-g { left: 20px; text-align: left; }
.cp-coin-g b { color: var(--vif-orange); }
.cp-coin-d { right: 20px; text-align: right; }
.cp-coin-d b { color: var(--vif-bleu); }
.cp-defi-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cp-defi-tete span { font-size: 14px; font-weight: 700; color: var(--vif-bleu); }
body[data-theme="vif"] .cp-chiffre { font-size: 14px; font-weight: 500; color: var(--t3); }
.vif-hexs { display: flex; align-items: flex-end; justify-content: center; gap: 20px; padding: 6px 0 4px; }
.vif-hex { display: grid; justify-items: center; gap: 8px; margin: 0; }
.vif-hex-bord, .vif-hex-fond { clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.vif-hex-bord { display: grid; place-items: center; width: 66px; height: 72px; padding: 2px; background: var(--vif-irise); }
.vif-hex-fond { display: grid; place-items: center; width: 100%; height: 100%; background: var(--vif-bleu); color: #FFFFFF; }
.vif-hex.grand .vif-hex-bord { width: 84px; height: 92px; }
.vif-hex.grand .vif-hex-fond { background: #C2410C; }
.vif-hex figcaption { font-size: 12px; font-weight: 600; color: var(--t3); text-align: center; }
.vif-hex.grand figcaption { color: var(--t0); }
.vif-hex.verrou { opacity: .4; filter: grayscale(1); }
.vif-adhesion { display: grid; gap: 4px; padding: 20px; border-radius: 24px; background: var(--nuit); color: #FFFFFF; box-shadow: 0 18px 40px -16px rgba(11, 28, 52, .35); }
.vif-adhesion b { font-size: 17px; font-weight: 700; }
.vif-adhesion span { font-size: 14px; color: rgba(255, 255, 255, .82); text-decoration: underline; text-underline-offset: 2px; }
body[data-theme="vif"] .cp-certificats:empty { display: none; }
body[data-theme="vif"] .cp-certificats li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }

/* Profil : réglages repliés, attestation et certificats seulement quand ils sont disponibles */
body[data-theme="vif"] .cp-plus > :not(summary) { margin-bottom: 14px; }
body[data-theme="vif"] .cp-plus .cp-bloc { box-shadow: none; }
body[data-theme="vif"] #attestation:has(#attestation-btn[hidden]) { display: none; }
body[data-theme="vif"] .cp-certificats li:not(:has(a)) { display: none; }
/* Bouton clair dans une carte bleu nuit : texte foncé, pas de soulignement */
body[data-theme="vif"] .vif-dossier a.vif-bouton-clair { color: #0B1C34; text-decoration: none; }
/* Fiches des mots : la hauteur se règle sur la fiche (les faces sont posées dessus) */
body[data-theme="vif"] .mo-fiche:nth-child(3n + 1) { height: 200px; }
body[data-theme="vif"] .mo-fiche:nth-child(3n + 2) { height: 150px; }
body[data-theme="vif"] .mo-fiche:nth-child(3n) { height: 176px; }
body[data-theme="vif"] .mo-fiche .mo-face { min-height: 0 !important; }
body[data-theme="vif"] .cp-tete .tag { justify-self: center; }

/* Pastille orange : édition du jour pas encore lue (avatar et onglet Aujourd'hui) */
.vif-avatar.vif-pastille-on::after, .tabbar .tab-ic.vif-pastille-on::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-radius: 999px; background: #E8611C; box-shadow: 0 0 0 3px var(--bg);
}
.vif-avatar.vif-pastille-on::after { right: 2px; top: 2px; }
.tabbar .tab-ic { position: relative; }
.tabbar .tab-ic.vif-pastille-on::after { right: 8px; top: 8px; box-shadow: 0 0 0 2px #FFFFFF; }

/* Apparition douce des cartes */
.vif-apparait { opacity: 0; transform: translateY(16px); transition: opacity .55s cubic-bezier(.2, .7, .2, 1), transform .55s cubic-bezier(.2, .7, .2, 1); }
.vif-apparait.vif-vu { opacity: 1; transform: none; }

/* Badge qui vient d'être débloqué */
@keyframes vif-debloque { 0% { transform: scale(.6) rotate(-8deg); opacity: .3; } 60% { transform: scale(1.12) rotate(3deg); opacity: 1; } 100% { transform: none; } }
.vif-hex.debloque .vif-hex-bord { animation: vif-debloque .8s cubic-bezier(.34, 1.56, .64, 1) both; }

/* Lecteur : écouter, partager */
.mt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-actions button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--carte); color: var(--t0); font: 600 14px var(--font); cursor: pointer; }
.mt-actions button[aria-pressed="true"] { background: var(--vif-bleu); border-color: var(--vif-bleu); color: #FFFFFF; }
@media (prefers-reduced-motion: reduce) { .vif-apparait { opacity: 1; transform: none; transition: none; } .vif-hex.debloque .vif-hex-bord { animation: none; } }

/* ---------- Accueil visiteur, construit comme l'appli (index.html) ---------- */
body[data-theme="vif"].vif-vitrine .nav { display: none; }
body[data-theme="vif"].vif-vitrine > main.ma-app { display: grid; gap: 32px; max-width: 480px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 20px 48px; }
.ma-app .vif-tete { margin-bottom: -8px; }
.vif-connexion { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--carte); color: var(--t0); font: 700 14px var(--font); cursor: pointer; }
.vif-connexion:hover { border-color: var(--t3); }
.ma-haut { display: grid; gap: 16px; }
.ma-haut h1 { margin: 0; font-size: clamp(34px, 9vw, 42px); font-weight: 600; line-height: 1.08; }
.ma-sous { margin: 0; font-size: 17px; line-height: 1.5; color: var(--t2); }
.ma-gratuit { margin: -4px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--t3); }
.ma-gestes, .ma-faq { display: grid; gap: 14px; }
.ma-app section > h2.vif-titre { margin: 0; font-size: 26px; line-height: 1.15; }
.ma-gestes .vif-carrousel { margin: 0 -20px; list-style: none; }
.ma-gestes .vif-photo { cursor: default; }
.ma-adhesion dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ma-adhesion h2 { margin: 0; }
.ma-faq .vif-lexique p { margin: 0 0 18px; color: var(--t2); line-height: 1.55; }
.ma-faq .vif-lexique > summary b { font-size: 16px; padding-right: 12px; }
.ma-faq .caption { margin: 0; }
.ma-app .av-accueil { display: grid; gap: 14px; padding: 0; }
.ma-app .av-accueil[hidden] { display: none; }


/* ==========================================================================
   Mode sombre, sur les quatre onglets de l'appli seulement, quand le téléphone le demande.
   Contrastes vérifiés : texte 15:1, texte secondaire 6,5:1, liens bleu clair 7:1 sur les cartes.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  body[data-theme="vif"].app-shell {
    color-scheme: dark;
    --bg: #07111F; --bg-deep: #0E1C30; --bg-card: #10213A; --light: #07111F;
    --carte: #10213A; --carte-verre: rgba(16, 33, 58, 0.96); --nuit: #13294A;
    --t0: #F3F5F9; --t1: #F3F5F9; --t2: #C9D1DD; --t3: #A3AEBF;
    --line: #1F3556; --b1: #1F3556; --b2: #1F3556; --b3: #2C4670;
    --or: #F59A63; --vif-ciel: #1B3157; --vif-peche: #2A2236; --lien: #8FAEFF;
    --vif-ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -18px rgba(0, 0, 0, .7);
    --bg-card-hover: #142844; --bg-elevated: #10213A; --surface: #10213A; --surface-border: #1F3556;
    --glass: #10213A; --glass-hover: #142844; --glass-border: #1F3556; --glass-border-hover: #2C4670;
    --vert: #8FAEFF; --steel: #8FAEFF; --champagne: #8FAEFF; --champagne-clair: #8FAEFF; --champagne-fond: rgba(143, 174, 255, .1);
    --blue-text: #C9D1DD; --blue: #8FAEFF; --blue-bg: rgba(143, 174, 255, .1); --lilac: #8FAEFF; --xp: #8FAEFF; --cristal: #8FAEFF; --plus: #8FAEFF;
    --rose: #F7A37A; --coeur: #F7A37A; --faux: #F7A37A; --faux-texte: #F7A37A; --faux-fond: rgba(232, 97, 28, .16);
    --juste: #7BD9A8; --juste-texte: #7BD9A8; --juste-fond: rgba(47, 160, 110, .18); --serie: #F5C27A; --mid: #F5C27A;
    --bull: #7BD9A8; --bull-text: #7BD9A8; --bear: #F7A37A; --bear-text: #F7A37A;
  }
  body[data-theme="vif"].app-shell::before {
    background: radial-gradient(28rem 28rem at 100% -4rem, rgba(232, 97, 28, .16) 0%, rgba(232, 97, 28, 0) 70%),
                radial-gradient(30rem 30rem at -6rem 100%, rgba(45, 91, 227, .18) 0%, rgba(45, 91, 227, 0) 70%), var(--bg);
  }
  /* Petits textes bleus : bleu clair pour rester lisibles sur fond sombre */
  body[data-theme="vif"].app-shell :is(.sy-lien, .vif-stat em, .cp-defi-tete span, .cp-coin-d b, .tag, .mt-mot-lien, .vif-tuile-ic, .vif-lexique > summary, .pf-menu-ic, .mt-etape i, .vif-rond, .mt-rond) { color: var(--lien); }
  body[data-theme="vif"].app-shell .mt-etape i { border-color: var(--lien); }
  body[data-theme="vif"].app-shell .vif-cahier.is-courant { border-color: var(--lien); }
  body[data-theme="vif"].app-shell .vif-pastille { background: var(--carte); color: var(--t0); border-color: var(--line); }
  body[data-theme="vif"].app-shell .vif-pastille[aria-pressed="true"] { background: var(--vif-bleu); border-color: var(--vif-bleu); color: #FFFFFF; }
  body[data-theme="vif"].app-shell .mo-face:not(.mo-dos) { background: #1A3560; }
  body[data-theme="vif"].app-shell .vif-dossier, body[data-theme="vif"].app-shell .vif-adhesion { border: 1px solid var(--b3); }
  body[data-theme="vif"].app-shell .vif-avatar > span, body[data-theme="vif"].app-shell .cp-photo::after { background: var(--carte); color: var(--t0); }
  body[data-theme="vif"].app-shell .vif-logo img { filter: invert(1) brightness(1.6); }
  body[data-theme="vif"].app-shell .tabbar > a { color: var(--t3); }
  body[data-theme="vif"].app-shell .mt-choix button { background: var(--carte); color: var(--t0); }
  body[data-theme="vif"].app-shell .mt-reponse.juste { background: rgba(47, 160, 110, .18); color: #9BE3BF; }
  body[data-theme="vif"].app-shell .mt-reponse.faux { background: rgba(232, 97, 28, .16); color: #F7B48E; }
  body[data-theme="vif"].app-shell .mt-val.hausse { color: #7BD9A8; }
  body[data-theme="vif"].app-shell .mt-val.baisse { color: #F7A37A; }
}
