/* ============================================================
   ANIMA — coque de la structure C « moments du cycle » (B8b, spec 2026-09-23 phase 1)
   En-tête à quatre entrées Séjours · Outils · Réseau · Ressources (J-N, spec 2026-09-24 « Le journal » ; la page d'un
   séjour et les espaces vivent dans css/sejour.css).
   Portée du prototype v2 validé (~/anima-proto/proto2/css/app.css) :
   pages de moment (tête éditoriale, faits, plateau des domaines), bandes
   teintées de domaine et de portail, sous-navigation, fil d'Ariane, View Transitions.
   AUCUNE couleur ici : tout vient de css/tokens.css (tests/charte.test.mjs). Les classes de
   styles.css qui existaient déjà (.wrap, .mono, .ico, .membre, .vide, .fiche-lien) ne sont pas
   redéfinies : les composants de la coque sont préfixés `c-` quand il y avait collision.
   ============================================================ */

@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }

:root {
  --c-gutter: var(--gutter);
  --c-r: 3px;
  /* Hauteur réservée par la navigation basse FIXE (téléphone) : 0 hors téléphone. Toute barre collée en
     bas (position:sticky; bottom) s'y réfère (bottom: var(--nav-bas-h)) et le contenu la réserve toujours. */
  --nav-bas-h: 0px;
}

/* ---------- Coque : en-tête fixe (header.top de styles.css, contenu refait) ---------- */
[data-app] { padding-top: var(--header-h); padding-bottom: var(--nav-bas-h); min-height: 100dvh; display: flex; flex-direction: column; }
[data-app] > .view { flex: 1; }
.top-in { gap: clamp(1rem, 2.5vw, 2.4rem); }
.marque-sous { display: block; font-family: var(--sans); font-weight: 500; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--texte-2); margin-top: .3rem; }
.nav-haut { display: flex; gap: clamp(.4rem, 1.4vw, 1.4rem); height: var(--header-h); }
.nav-l { position: relative; display: inline-flex; align-items: center; gap: .5rem; height: 100%; padding: 0 .25rem; color: var(--texte-2); font-weight: 500; font-size: .95rem; white-space: nowrap; transition: color var(--dur); }
.nav-l:hover { color: var(--texte); }
.nav-l.est-active { color: var(--texte); }
.nav-l.est-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--texte); }
.nav-l .ico { width: 18px; height: 18px; flex: none; }
.tete-droite { margin-left: auto; display: flex; align-items: center; gap: .6rem; min-width: 0; }
/* Logo → site public (retours préversion 1) : lien, même rendu que l'ancien bouton. */
.brand-lien { color: inherit; text-decoration: none; }
.brand-lien:hover .wordmark { color: var(--survol-texte); }
/* Retour (retours préversion 1) : écrans non racines ; cible tactile ≥ 44 px ; masqué par [hidden] malgré le flex. */
.retour-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 44px; min-height: 44px; padding: 0 .8rem 0 .6rem; margin-right: calc(-1 * clamp(.2rem, 1vw, 1rem)); border: 1px solid var(--ligne-2); border-radius: var(--c-r); background: var(--s1); color: var(--texte); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; transition: border-color var(--dur); }
.retour-btn:hover { border-color: var(--texte); }
.retour-btn:focus-visible { outline: 2px solid var(--texte); outline-offset: 2px; }
.retour-btn .ico { width: 18px; height: 18px; }
.retour-btn[hidden] { display: none !important; }
.top-recherche, .top-user { flex: none; }
/* Emplacement réservé à la recherche globale (B8g) : vide tant que la brique n'est pas livrée. */
.top-recherche:empty { display: none; }
.top-user { position: static; height: auto; padding-right: 0; }
.top-avatar { width: 36px; height: 36px; background: var(--s3); border-color: transparent; }
.top-avatar.est-active, .top-avatar:hover { border-color: var(--texte); }
.nav-bas { display: none; }

@media (max-width: 860px) {
  .nav-haut { display: none; }
  .marque-sous { display: none; }
  /* 58 px de barre + zone de sécurité : réservés par [data-app] (padding-bottom, règle de base) et par toute
     barre collée en bas (bottom: var(--nav-bas-h)) — rien d'interactif ne finit sous la navigation. */
  :root { --nav-bas-h: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .nav-bas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--bg-0); border-top: 1px solid var(--ligne); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .nav-bas .nav-l { flex-direction: column; justify-content: center; gap: .2rem; height: 58px; font-size: .68rem; padding: 0; }
  .nav-bas .nav-l .ico { width: 18px; height: 18px; }
  .nav-bas .nav-l.est-active::after { top: -1px; bottom: auto; }
  .nav-bas .nav-l > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  /* Retour : glyphe seul, pour laisser sa place à la marque et à la recherche. */
  .retour-btn { padding: 0; width: 44px; margin-right: 0; }
  .retour-btn .retour-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top.avec-retour .wordmark { display: none; }
}

/* ---------- Typographie éditoriale ---------- */
.c-titre { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.012em; text-wrap: balance; color: var(--texte); }
.c-titre i { font-style: italic; }
.page-titre { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.titre-2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.08; }
.titre-3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.12; }
.kicker { font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--texte-2); margin: 0 0 .55rem; display: flex; align-items: center; gap: .6rem; }
.kicker::before { content: ''; width: 1.4rem; height: 1px; background: currentColor; opacity: .6; }
.kicker.sans-filet::before { display: none; }
.chapo { color: var(--texte-2); font-size: 1.05rem; max-width: 62ch; text-wrap: pretty; margin-top: .7rem; }
.c-note { color: var(--texte-2); font-size: .92rem; font-style: italic; }
.c-ref { font-family: var(--sans); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--texte-3); }

/* ---------- Tête de page, fil d'Ariane, bandes ---------- */
[data-tete-page]:empty { display: none; }
.page-tete { padding-block: clamp(1.8rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2rem); }
.page-tete-ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.page-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.ariane { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: var(--texte-3); margin-bottom: 1.1rem; }
.ariane-l { color: inherit; }
.ariane-l:hover { color: var(--texte); text-decoration: underline; text-underline-offset: 3px; }
.ariane-c { color: var(--texte-2); }
.ariane-sep { opacity: .6; }
.bande { width: 100%; }
.bande-simple { border-bottom: 1px solid var(--ligne); }
.bande-simple .page-tete { padding-block: 1.1rem .9rem; }
.bande-simple .ariane { margin-bottom: 0; }
.bande-domaine { background: var(--teinte-fond); border-bottom: 1px solid var(--ligne); }
.bande-domaine .page-tete { padding-top: clamp(1.4rem, 3vw, 2.2rem); }
.bande-domaine .kicker, .bande-domaine .page-titre { color: var(--teinte); }
.bande-domaine .ariane { margin-bottom: .8rem; }
.bande-domaine .faits { border-top-color: var(--teinte); }
.bande-portail { background: var(--portail-fond); color: var(--sur-portail); }
.bande-portail .page-tete { padding-block: clamp(1.6rem, 4vw, 2.6rem); }
.bande-portail .kicker, .bande-portail .chapo, .bande-portail .ariane, .bande-portail .ariane-c, .bande-portail .page-titre { color: inherit; }
.bande-portail .chapo, .bande-portail .ariane { opacity: .85; }
.bande-portail .sousnav { border-bottom-color: var(--portail-filet); }
.bande-portail .sousnav a { color: inherit; opacity: .7; }
.bande-portail .sousnav a.est-actif, .bande-portail .sousnav a:hover { opacity: 1; }
.bande-portail .sousnav a.est-actif::after { background: currentColor; }
.bande-portail .faits { border-top-color: var(--portail-filet); border-bottom-color: var(--portail-filet); color: inherit; }
.bande-portail .faits span, .bande-portail .faits small { color: inherit; opacity: .8; }
.bande-portail .faits li { border-left-color: var(--portail-filet); }
.bande-profil { border-bottom: 1px solid var(--ligne); }
.bande-profil .page-tete { padding-bottom: 0; }
.profil-tete { display: flex; align-items: center; gap: 1.2rem; }
.c-avatar { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--s3); color: var(--texte-2); flex: none; }
.c-avatar .ico { width: 26px; height: 26px; }
.c-avatar img { width:100%; height:100%; border-radius:50%; object-fit:cover; }

/* En-tête interne des anciens écrans (surtitre + titre + retour) : redondant sous une bande qui porte déjà
   le titre et le fil d'Ariane — masqué ; la bande est la seule tête de page. */
[data-app].avec-titre .pc-head { display: none; }

/* ---------- Faits (bande de repères) ---------- */
.faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); border-top: 1px solid var(--texte); border-bottom: 1px solid var(--ligne); margin-top: 1.4rem; list-style: none; padding: 0; margin-bottom: 0; }
.faits li { display: grid; gap: .25rem; align-content: start; padding: .9rem 1.2rem .9rem 0; border-left: 1px solid var(--ligne); padding-left: 1.1rem; }
.faits li:first-child { border-left: 0; padding-left: 0; }
.faits span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-2); font-weight: 500; }
.faits b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.05; color: var(--texte); }
.faits b.mono { font-family: var(--mono); font-size: 1.1rem; }
.faits small { font-size: .78rem; color: var(--texte-2); }
.faits .est-critique b { color: var(--critique); }
.faits .est-alerte b { color: var(--alerte); }
.faits .est-ok b { color: var(--ok); }
.faits .est-attente b { color: var(--texte-3); }
@media (max-width: 640px) { .faits { grid-template-columns: 1fr 1fr; } .faits li:nth-child(odd) { border-left: 0; padding-left: 0; } .faits li:nth-child(n+3) { border-top: 1px solid var(--ligne); } }

/* ---------- Rubriques ---------- */
.rubrique { padding-block: clamp(1.8rem, 4vw, 2.8rem); border-top: 1px solid var(--ligne); }
.rubrique.sans-filet, .c-page > .wrap > .rubrique:first-child { border-top: 0; }
.rubrique-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-bottom: clamp(1rem, 2.4vw, 1.5rem); }
.rubrique-intro { color: var(--texte-2); margin-top: .5rem; max-width: 62ch; }
.rubrique-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.c-page { padding-bottom: 3rem; }
.c-page a { text-decoration: none; }

/* ---------- Priorité en mots (« à faire », « critique ») : page d'un séjour (css/sejour.css), accueil ---------- */
.gravite { display: inline-flex; align-items: center; gap: .45rem; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gravite); white-space: nowrap; }
.gravite::before { content: ''; width: 9px; height: 9px; border-radius: 1px; background: var(--gravite); }
.gravite-critique { --gravite: var(--critique); }
.gravite-alerte { --gravite: var(--alerte); }
.gravite-info { --gravite: var(--texte-3); }

.faits li.est-critique b { color: var(--critique); }
.faits li.est-alerte b { color: var(--alerte); }
.faits li.est-ok b { color: var(--ok); }

/* Jauge (quête « premiers pas » de l'accueil) */
.jauge { position: relative; height: 4px; background: var(--ligne); border-radius: 2px; overflow: hidden; }
.jauge i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--jauge-c, var(--accent)); border-radius: 2px; transition: width 700ms var(--ease); }

/* ---------- En ce moment / ensuite (Vivre) ---------- */
.instant { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--texte); }
.instant > div { padding: 1.1rem 1.5rem 1.2rem 0; display: grid; gap: .35rem; align-content: start; border-bottom: 1px solid var(--ligne); }
.instant > div + div { padding-left: 1.5rem; border-left: 1px solid var(--ligne); }
.instant .kicker { margin-bottom: .2rem; }
.instant .quoi { font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; color: var(--texte); }
.instant .qui { color: var(--texte-2); font-size: .92rem; }
.instant .heure { font-family: var(--mono); font-size: .8rem; color: var(--texte-3); }
.c-planning { border-top: 1px solid var(--texte); }
.c-planning-ligne { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: .65rem 0; border-bottom: 1px solid var(--ligne); color: inherit; }
.c-planning-ligne .heure { font-family: var(--mono); font-size: .82rem; color: var(--texte-2); }
.c-planning-ligne .quoi b { font-weight: 500; }
.c-planning-ligne .quoi small { display: block; color: var(--texte-2); }
.c-planning-ligne.est-fait { color: var(--texte-3); }
.c-planning-ligne.est-encours { background: var(--s1); margin-inline: -.6rem; padding-inline: .6rem; border-left: 3px solid var(--ok); }
.c-planning-ligne.est-encours .heure { color: var(--ok); }
@media (max-width: 640px) { .instant { grid-template-columns: 1fr; } .instant > div + div { padding-left: 0; border-left: 0; } .c-planning-ligne { grid-template-columns: 5rem 1fr; } .c-planning-ligne .droite { display: none; } }

/* ---------- Cartes (clôture, portail, sommaire) ---------- */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0; border-top: 1px solid var(--texte); }
.cartes > li, .cartes > a { position: relative; display: grid; gap: .45rem; align-content: start; padding: 1.1rem 1.3rem 1.3rem 1rem; border-left: 3px solid var(--teinte, var(--texte)); border-bottom: 1px solid var(--ligne); color: inherit; }
.cartes b, .cartes h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.1; color: var(--teinte, var(--texte)); margin: 0; }
.cartes p { color: var(--texte-2); font-size: .95rem; margin: 0; }
.cartes a:hover { background: var(--s1); }
.cartes a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.cartes .pastille { justify-self: start; }

/* ---------- Pastilles, boutons ---------- */
.pastille { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; padding: .2rem .5rem; border-radius: 2px; }
.pastille .ico { width: 13px; height: 13px; }
.pastille-ok { color: var(--ok); background: var(--ok-fond); }
.pastille-alerte { color: var(--alerte); background: var(--alerte-fond); }
.pastille-critique { color: var(--critique); background: var(--critique-fond); }
.pastille-info { color: var(--texte-2); background: var(--s3); }
.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .7em 1.2em; font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 2px; color: inherit; background: transparent; white-space: nowrap; cursor: pointer; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.c-btn-plein { background: var(--texte); color: var(--bg-0); border-color: var(--texte); }
.c-btn-plein:hover { background: var(--survol-plein); border-color: var(--survol-plein); color: var(--survol-plein-encre); }
.c-btn-trait:hover { background: var(--survol-fond); color: var(--survol-texte); border-color: var(--survol-filet); }
.c-btn .ico { width: 14px; height: 14px; transition: transform var(--dur); }
.c-btn:hover .ico { transform: translateX(.2em); }
.c-btn.petit { padding: .5em .9em; font-size: .74rem; }
.bande-portail .c-btn-trait:hover { background: var(--survol-fond); color: var(--survol-texte); border-color: var(--survol-filet); }

/* ---------- Lignes de liste ---------- */
.lignes { border-top: 1px solid var(--texte); }
.ligne { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--ligne); color: inherit; transition: background var(--dur); }
.ligne:hover { background: var(--s1); }
.ligne:hover .ligne-titre { text-decoration: underline; text-underline-offset: 3px; }
.ligne-ico { color: var(--teinte, var(--texte-2)); display: inline-flex; flex: none; }
.ligne-corps { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.ligne-titre { font-weight: 500; }
.ligne-sous { color: var(--texte-2); font-size: .88rem; }
.ligne-droite { color: var(--texte-3); font-size: .82rem; white-space: nowrap; }
.ligne-chevron { color: var(--texte-3); flex: none; }
.ligne.grande .ligne-titre { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.ligne .pastille { flex: none; }

/* ---------- Portails de la Bibliothèque ---------- */
.portail { position: relative; padding-block: clamp(2.8rem, 7vw, 5rem); background: var(--portail-fond); color: var(--sur-portail); }
.portail + .portail { border-top: 1px solid var(--portail-filet); }
.portail-corps { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.portail .kicker { color: inherit; opacity: .8; }
.portail-mot { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6.5vw, 5.6rem); line-height: .95; letter-spacing: -.02em; margin: 0 0 1rem; color: inherit; }
.portail-mot a { color: inherit; transition: opacity var(--dur); }
.portail-mot a:hover { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 2px; }
.portail-phrase { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.4; max-width: 38ch; padding-left: 1rem; border-left: 3px solid currentColor; margin: 0; }
.portail-entrees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; border-top: 1px solid var(--portail-filet); }
.portail-entree { display: grid; gap: .3rem; padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--portail-filet); color: inherit; transition: padding-left var(--dur) var(--ease); }
.portail-entree:hover { padding-left: .4rem; }
.portail-entree:hover b { text-decoration: underline; text-underline-offset: 4px; }
.portail-entree .kicker { margin: 0; font-size: .62rem; }
.portail-entree .kicker::before { display: none; }
.portail-entree b { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.portail-entree small { color: inherit; opacity: .8; font-size: .88rem; }
@media (max-width: 860px) { .portail-corps { grid-template-columns: 1fr; } .portail-entrees { grid-template-columns: 1fr; } }

/* ---------- Sous-navigation (domaine, portail, profil) ---------- */
.sousnav { display: flex; gap: clamp(.8rem, 2vw, 1.6rem); overflow-x: auto; scrollbar-width: none; margin-top: 1.2rem; border-bottom: 1px solid var(--ligne); }
.sousnav::-webkit-scrollbar { display: none; }
.sousnav a { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 0 .8rem; color: var(--texte-2); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.sousnav a .ico { width: 15px; height: 15px; }
.sousnav a:hover { color: var(--texte); }
.sousnav a.est-actif { color: var(--texte); }
.sousnav a.est-actif::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--texte); }
.bande-domaine .sousnav a.est-actif { color: var(--teinte); }
.bande-domaine .sousnav a.est-actif::after { background: var(--teinte); }
.sousnav-moments { margin-top: 0; border-bottom: 0; gap: .9rem; }
.sousnav-moments a { font-size: .8rem; padding: .3rem 0; }

/* Profil : une section à la fois (sous-navigation), les autres masquées */
[data-profil-actif] .profil-section[data-profil-section] { display: none; }
[data-profil-actif="identite"] .profil-section[data-profil-section="identite"],
[data-profil-actif="fiche"] .profil-section[data-profil-section="fiche"],
[data-profil-actif="affinites"] .profil-section[data-profil-section="affinites"],
[data-profil-actif="retours"] .profil-section[data-profil-section="retours"],
[data-profil-actif="coffre"] .profil-section[data-profil-section="coffre"],
[data-profil-actif="compte"] .profil-section[data-profil-section="compte"] { display: block; }
.profil-section-vide { color: var(--texte-2); padding: 1.5rem 0; }

/* ---------- Divers ---------- */
.c-vide { display: grid; justify-items: start; gap: .8rem; padding: 2.5rem 0; color: var(--texte-2); max-width: 44rem; }
.c-vide .ico { width: 30px; height: 30px; color: var(--texte-3); }
.c-vide h2 { color: var(--texte); margin: 0; }
.c-vide p { margin: 0; }
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 860px) { .deux-colonnes { grid-template-columns: 1fr; } }
.c-page .empty-state, .c-page .glass { border-color: var(--ligne); }

/* ---------- View Transitions (tuile → page) ---------- */
::view-transition-old(root) { animation: 180ms var(--ease) both c-fondu-sortie; }
::view-transition-new(root) { animation: 260ms var(--ease) both c-fondu-entree; }
::view-transition-group(*) { animation-duration: 320ms; animation-timing-function: var(--ease); }
@keyframes c-fondu-sortie { to { opacity: 0; transform: translateY(-4px); } }
@keyframes c-fondu-entree { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .jauge i, .c-btn .ico, .portail-entree { transition: none !important; }
}

/* ---------- Recherche globale (B8g) : bouton de l'en-tête, palette ⌘K ---------- */
.rch-btn { display: inline-flex; align-items: center; gap: .5rem; height: 36px; padding: 0 .75rem; border: 1px solid var(--ligne-2); border-radius: var(--c-r); color: var(--texte-2); font: inherit; font-size: .85rem; background: var(--s1); cursor: pointer; transition: border-color var(--dur), color var(--dur); white-space: nowrap; }
.rch-btn:hover, .rch-btn:focus-visible { border-color: var(--texte); color: var(--texte); }
.rch-btn .ico { width: 16px; height: 16px; }
.rch-btn kbd { font-family: var(--mono); font-size: .7rem; color: var(--texte-3); border: 1px solid var(--ligne); border-radius: 2px; padding: 0 .3rem; }
.rch-voile { position: fixed; inset: 0; z-index: 120; background: var(--voile-modal); display: grid; place-items: start center; padding: 10vh 1rem 1rem; overflow: auto; animation: rch-voile-in 140ms var(--ease) both; }
.rch { width: 100%; max-width: 40rem; background: var(--s1); color: var(--texte); border: 1px solid var(--ligne-2); border-radius: var(--c-r); box-shadow: var(--shadow-elevated); overflow: hidden; animation: rch-in 180ms var(--ease) both; }
.rch-champ { display: flex; align-items: center; gap: .8rem; padding: .3rem 1rem; border-bottom: 1px solid var(--ligne); color: var(--texte-3); }
.rch-champ .ico { width: 18px; height: 18px; flex: none; }
.rch-champ input { flex: 1; min-width: 0; font: inherit; font-size: 1.15rem; padding: .8rem 0; background: transparent; border: 0; color: var(--texte); outline: none; }
.rch-champ input::placeholder { color: var(--texte-3); }
.rch kbd { font-family: var(--mono); font-size: .7rem; color: var(--texte-3); border: 1px solid var(--ligne); border-radius: 2px; padding: .05rem .35rem; }
.rch-resultats { max-height: min(60vh, 34rem); overflow: auto; padding: .4rem 0 .6rem; overscroll-behavior: contain; }
.rch-groupe .kicker { padding: .6rem 1rem .2rem; margin: 0; font-size: .62rem; }
.rch-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; width: 100%; text-align: left; padding: .55rem 1rem; border-left: 3px solid transparent; color: inherit; text-decoration: none; cursor: pointer; }
.rch-item:hover, .rch-item.est-actif { background: var(--s3); border-left-color: var(--survol-filet); }
.rch-item .rch-ico { color: var(--teinte, var(--texte-2)); display: inline-flex; }
.rch-item .rch-ico .ico { width: 18px; height: 18px; }
.rch-corps { min-width: 0; }
.rch-item b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rch-item small { display: block; color: var(--texte-2); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rch-ou { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); white-space: nowrap; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
.rch-hit { background: var(--accent-fond); color: inherit; border-radius: 2px; padding: 0 .05em; }
.rch-vide { padding: 1.2rem 1rem 1rem; color: var(--texte-2); }
.rch-vide p { margin: 0 0 .5rem; }
.rch-vide b { color: var(--texte); font-weight: 500; }
.rch-vide-note { font-size: .8rem; color: var(--texte-3); }
.rch-sugg { font: inherit; color: var(--texte); background: var(--s3); border: 1px solid var(--ligne); border-radius: var(--c-r); padding: .05rem .5rem; cursor: pointer; }
.rch-sugg:hover, .rch-sugg:focus-visible { border-color: var(--texte); }
.rch-statut { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.rch-aide { display: flex; gap: 1rem; padding: .5rem 1rem .7rem; border-top: 1px solid var(--ligne); font-size: .74rem; color: var(--texte-3); }
.rch-aide kbd { margin-right: .15rem; }
html.rch-ouverte { overflow: hidden; }
@keyframes rch-voile-in { from { opacity: 0; } }
@keyframes rch-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 860px) {
  .rch-btn { width: 36px; padding: 0; justify-content: center; }
  .rch-btn .rch-btn-lib, .rch-btn kbd { display: none; }
  .rch-voile { padding: 4vh .6rem .6rem; }
  .rch-champ input { font-size: 1rem; }
  .rch-item { grid-template-columns: auto minmax(0, 1fr); }
  .rch-ou { display: none; }
  .rch-aide { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rch-voile, .rch { animation: none; } }

/* ---------- Rôle par séjour (spec 2026-09-23) : « Mon rôle » dans la bande du séjour, invite de rôle, espace Admin ---------- */
.mon-role { display: inline-grid; gap: .1rem; justify-items: start; margin-top: .5rem; color: inherit; text-decoration: none; }
.mon-role-lbl { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-2); }
.mon-role b { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; line-height: 1.1; }
.mon-role small { font-size: .78rem; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.role-invite-tete { padding: 2rem 0 1rem; }
.role-invite-tete .chapo { max-width: 60ch; }
.role-cases { display: grid; gap: .6rem; max-width: 40rem; }
.role-case { display: flex; align-items: flex-start; gap: .85rem; padding: .9rem 1rem; border: 1px solid var(--ligne); border-radius: var(--c-r); cursor: pointer; background: var(--s1); transition: border-color var(--dur), background var(--dur); }
.role-case:hover { border-color: var(--texte); }
.role-case:has(input:checked) { border-color: var(--accent); background: var(--s2, var(--s1)); }
.role-case input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; flex: none; accent-color: var(--accent); }
.role-case-corps { display: grid; gap: .15rem; min-width: 0; }
.role-case-corps b { font-weight: 500; }
.role-case-corps small { color: var(--texte-2); font-size: .82rem; }
.role-invite-erreur { margin: 0; color: var(--critique); font-size: .92rem; }
.role-invite-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.ad-tete { padding: 2rem 0 1rem; }
.ad-tete .chapo { max-width: 60ch; }
.ad-sejour { flex-wrap: wrap; }
.ad-sejour .ligne-sous { white-space: normal; }
.ad-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ad-actions .c-btn { text-decoration: none; }
@media (max-width: 640px) { .ad-sejour { align-items: stretch; flex-direction: column; } .ad-actions { justify-content: flex-start; } }

/* ============================================================
   LANGAGE DE SURFACE (uniformisation 2026-09-25, référence : Ressources) — docs/design/langage-de-surface.md
   Une seule grammaire pour tout l'espace pro :
     · en-tête d'app CLAIR partout (calcaire), entrée active en pastille pétrole (css/couleur.css) ;
     · TÊTE de page (.tete) sur le calcaire : fil d'Ariane · kicker · titre serif (fin en italique) · chapo, et à droite
       l'ACTION PRINCIPALE (un bouton plein, un seul par écran) ; c'est aussi la place de « prochaine étape » ;
     · des VOLETS pleine largeur (.volet) qui ALTERNENT pétrole profond / calcaire (js/coque.js alternerVolets : jamais
       deux volets profonds voisins) ; un volet = grand mot serif à gauche (kicker, phrase à filet, lien de suite),
       liste numérotée à filets à droite (.entrees) — pas de carte pour une simple liste ;
     · les teintes des moments (Préparer · Vivre · Clôturer) sont réservées au cycle : onglets, filet du volet du moment,
       point devant le moment d'un séjour.
   Jetons de css/tokens.css seulement (tests/charte.test.mjs). Garde-fou : tests/uniformite.test.mjs.
   ============================================================ */
:root {
  --volet-pad: clamp(2.4rem, 6vw, 4.4rem);
  --entree-deb: .6rem;   /* débord du lavis de survol d'une entrée (box-shadow : aucun décalage de mise en page) */
}
/* Moments du cycle (palette validée par Michaël le 2026-09-25, ex-css/surfaces.css) : cérulé, jaune, sauge. Bandes dans
   les deux thèmes ; encres et lavis de survol en clair seulement (en sombre, les encres dérivées de tokens.css restent
   lisibles). --m-sur : l'encre posée sur la bande (foncée sur le jaune et la sauge). */
:root[data-couleur="affirmee"] { --preparer-bande: var(--pal-cerulean); --vivre-bande: var(--pal-jaune); --cloturer-bande: var(--pal-sauge); }
:root[data-couleur="affirmee"]:not([data-theme="sombre"]) {
  --preparer: var(--pal-cerulean-texte); --vivre: var(--pal-jaune-texte); --cloturer: color-mix(in oklab, var(--pal-sauge-texte) 82%, var(--encre));
  --preparer-fond: color-mix(in oklab, var(--pal-cerulean) 12%, var(--bg-0));
  --vivre-fond: color-mix(in oklab, var(--pal-jaune) 18%, var(--bg-0));
  --cloturer-fond: color-mix(in oklab, var(--pal-sauge) 18%, var(--bg-0));
}
.mom-preparer { --m-sur: var(--pal-cerulean-sur); }
.mom-vivre { --m-sur: var(--pal-jaune-sur); }
.mom-cloturer { --m-sur: var(--pal-sauge-sur); }

/* ---------- Tête de page commune ---------- */
.tete { padding-block: clamp(1.4rem, 3.6vw, 2.6rem) clamp(1.4rem, 3vw, 2.2rem); }
.tete > .ariane { margin-bottom: .8rem; }
.tete-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.1rem 2.4rem; align-items: end; }
.tete-ligne.avec-avant { grid-template-columns: auto minmax(0, 1fr) auto; }
.tete-texte { min-width: 0; }
.tete .kicker { margin-bottom: .55rem; }
.tete .page-titre { margin: 0; overflow-wrap: anywhere; }
.tete .chapo { margin: .7rem 0 0; }
.tete-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; min-width: 0; max-width: 26rem; }
.tete-actions:empty { display: none; }
.tete-note { margin: 0; font-size: .82rem; color: var(--texte-2); text-align: right; }
.tete .ac-casquettes { margin-top: .6rem; }
@media (max-width: 860px) {
  .tete-ligne { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .tete-ligne.avec-avant { grid-template-columns: auto minmax(0, 1fr); }
  .tete-ligne.avec-avant > .tete-actions { grid-column: 1 / -1; }
  .tete-actions { align-items: flex-start; max-width: none; }
  .tete-note { text-align: left; }
}

/* ---------- Volets : bandes pleine largeur, alternance profond / calcaire ---------- */
.volet { padding-block: var(--volet-pad); background: var(--bg-0); color: var(--texte); }
.volet:not(.est-profond) + .volet:not(.est-profond) { border-top: 1px solid var(--ligne); }
.tete + .volet:not(.est-profond), .wrap + .volet:not(.est-profond) { border-top: 1px solid var(--ligne); }
.volet-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(1.4rem, 5vw, 4rem); align-items: start; }
.volet-corps.est-plein { grid-template-columns: minmax(0, 1fr); }
.volet-tete, .volet-contenu { min-width: 0; }
@media (min-width: 861px) { .volet-tete { position: sticky; top: calc(var(--header-h) + 1.4rem); } }
.volet-mot { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 5.4vw, 4.8rem); line-height: .98; letter-spacing: -.02em; margin: 0 0 1rem; color: inherit; overflow-wrap: anywhere; text-wrap: balance; }
.volet-mot a { color: inherit; }
.volet-mot a:hover { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 2px; }
.volet-mot i { font-style: italic; }
.volet-phrase { font-size: clamp(1.02rem, 1.45vw, 1.2rem); line-height: 1.45; max-width: 38ch; margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--accent); text-wrap: pretty; }
.volet-tete > .lien-suite { margin-top: .1rem; }
.volet-tete .kicker { margin-bottom: .7rem; }
@media (max-width: 860px) {
  .volet-corps { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .volet-mot { margin-bottom: .6rem; }
}
/* Le volet profond : l'encre claire, les filets clairs, l'accent devient le clair. Tout ce qui y est posé (listes,
   boutons, priorités, rubriques) se redessine par ses variables, sans règle dédiée. */
.volet.est-profond {
  --bg-0: var(--accent-bande);
  --texte: var(--sur-portail); --texte-2: var(--pal-sur-profond-2); --texte-3: var(--pal-sur-profond-2);
  --ligne: var(--portail-filet); --ligne-2: var(--pal-sur-profond-2);
  --accent: var(--sur-portail); --sur-accent: var(--accent-bande); --accent-survol: var(--pal-sur-profond-2);
  --accent-fond: color-mix(in oklab, var(--sur-portail) 13%, var(--accent-bande));
  --accent-fond2: color-mix(in oklab, var(--sur-portail) 20%, var(--accent-bande));
  --accent-filet: var(--portail-filet);
  --s1: color-mix(in oklab, var(--sur-portail) 8%, var(--accent-bande));
  --s2: color-mix(in oklab, var(--sur-portail) 10%, var(--accent-bande));
  --s3: color-mix(in oklab, var(--sur-portail) 16%, var(--accent-bande));
  --ok: var(--pal-accent-sur-profond); --alerte: var(--alerte-sur-nuit);
  --m: var(--sur-portail);
  /* anciens noms (alias de tokens.css, résolus sur :root) : redéclarés ici pour que les écrans historiques posés dans
     un volet profond (formulaires du profil, coffre, compte) prennent l'encre claire */
  --bg: var(--bg-0); --bg-1: var(--bg-0); --bg-2: var(--bg-0);
  --surface: var(--s1); --surface-2: var(--s2); --surface-3: var(--s2); --surface-hi: var(--s2); --glass: var(--s1);
  --line: var(--ligne); --line-2: var(--ligne-2); --border: var(--ligne);
  --text: var(--texte); --text-1: var(--texte); --text-2: var(--texte-2); --text-3: var(--texte-3);
  --txt-1: var(--texte); --txt-2: var(--texte-2); --txt-muted: var(--texte-3); --muted: var(--texte-3);
  --accent-2: var(--accent); --accent-deep: var(--accent); --accent-bg: var(--accent-fond); --accent-glow: var(--accent-filet);
  --ok-bg: color-mix(in oklab, var(--ok) 18%, var(--accent-bande)); --ok-line: var(--ok);
  --warn: var(--alerte); --warn-bg: color-mix(in oklab, var(--alerte) 18%, var(--accent-bande)); --warn-line: var(--alerte);
  background: var(--bg-0); color: var(--texte);
}
/* Survol sur un fond profond : pas de lavis, barre et filet colorés par le thème (moutarde en clair, pétrole en sombre) ; le bouton plein survolé prend la couleur du thème, encre
   foncée. Même règle dans les anciennes bandes de portail. */
.volet.est-profond, .portail:not(.volet), .bande-portail {
  --survol-fond: var(--survol-fond-profond); --survol-texte: var(--survol-texte-profond);
  --survol-filet: var(--survol-filet-profond); --survol-plein: var(--survol-filet-profond);
}
.volet.est-profond a.entree:is(:hover, :active, :focus-visible) .entree-titre { color: var(--survol-texte); }
/* « critique » sur le profond : une pastille pleine (l'encre brique n'y est pas lisible) */
.volet.est-profond :is(.gravite-critique, .rub-etat-critique) { color: var(--sur-portail); background: var(--doc-critique); padding: .05rem .35rem; border-radius: 2px; }
.volet.est-profond :focus-visible { outline-color: var(--sur-portail); }

/* ---------- Liste numérotée à filets (le cœur des Ressources) ---------- */
.entrees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; border-top: 1px solid var(--ligne); }
.entrees-1 { grid-template-columns: minmax(0, 1fr); }
.entrees-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* nombre impair : la dernière entrée ferme la liste sur toute la largeur (plus de trou orphelin) */
.entrees-2 > .entree:last-child:nth-child(odd) { grid-column: 1 / -1; }
.entrees-2 > .entree:last-child:nth-child(odd) .entree-texte { max-width: 70ch; }
/* align-content: start — sinon la grille étire les rangées internes de l'entrée la plus courte et décale son numéro */
.entree { position: relative; display: grid; align-content: start; gap: .3rem; min-width: 0; padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--ligne); color: inherit; text-decoration: none; }
.entree-num { display: flex; align-items: center; gap: .45rem; font-family: var(--sans); font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.entree-titre { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.12; color: var(--texte); text-wrap: balance; overflow-wrap: anywhere; }
.entree-texte { display: block; color: var(--texte-2); font-size: .9rem; line-height: 1.45; max-width: 56ch; text-wrap: pretty; overflow-wrap: anywhere; }
a.entree:is(:hover, :active, :focus-visible) {
  background: var(--survol-fond);
  box-shadow: calc(-1 * var(--entree-deb)) 0 0 var(--survol-fond), var(--entree-deb) 0 0 var(--survol-fond);
}
/* barre de survol : 3 px au bord du lavis, dessinée à part (sur le profond, sans lavis, une ombre la montrerait large) */
a.entree:is(:hover, :active, :focus-visible)::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--entree-deb) - 3px); width: 3px; background: var(--survol-filet); }
a.entree:is(:hover, :active, :focus-visible) .entree-titre { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a.entree:focus-visible { outline: 2px solid var(--accent); outline-offset: calc(var(--entree-deb) + 5px); }
@media (max-width: 1100px) { .entrees-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .entrees, .entrees-3 { grid-template-columns: minmax(0, 1fr); }
  .entrees-2 > .entree:last-child:nth-child(odd) { grid-column: auto; }
  .entree-titre { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { a.entree { transition: none; } }

/* ---------- Page « surface » : le dernier volet touche le pied ; le pied, un colophon sobre ---------- */
.c-page.surface { padding-bottom: 0; }
footer.foot-strip { align-self: stretch; width: 100%; box-sizing: border-box; flex-direction: row; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem var(--sp-5) 1.3rem;
  font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--texte-2); border-top: 1px solid var(--ligne); }
footer.foot-strip .foot-update-btn { font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--texte-2); border-color: var(--ligne-2); min-height: 36px; padding: 0 .9rem; border-radius: 2px; }
footer.foot-strip .foot-update-btn:is(:hover, :focus-visible) { color: var(--survol-texte); border-color: var(--survol-filet); }

/* ---------- Têtes des écrans de module (renderBande) : la même tête claire que partout ---------- */
.bande { background: var(--bg-0); color: var(--texte); border-bottom: 1px solid var(--ligne); }
.bande .page-tete { padding-block: clamp(1.4rem, 3.6vw, 2.4rem) clamp(1.1rem, 2.6vw, 1.6rem); }
.bande-domaine .kicker { color: var(--teinte); }
.bande-domaine .page-titre { color: var(--texte); }
.bande :is(.chapo, .ariane) { opacity: 1; }
.bande .sousnav a { opacity: 1; color: var(--texte-2); }
.bande .sousnav a:is(.est-actif, :hover) { color: var(--texte); }

/* ---------- Page « Mon profil » (#/mon-profil, js/profil/page.js) : tête commune, volets en alternance ----------
   Les formulaires historiques de render.js (identité, expérience, diplômes, coffre, compte) sont posés dans les volets :
   plus de cartes (« glass ») ni de têtes de panneau redondantes avec le grand mot ; les boutons d'enregistrement
   deviennent secondaires (à trait) — l'action principale de la page est la prochaine étape, dans la tête. */
.pf-tete .sousnav { margin-top: 1.4rem; }
.pf-tete .faits b { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
.pf-theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--ligne-2); border-radius: 50%; background: transparent; color: var(--texte-2); cursor: pointer; }
.pf-theme-toggle .ico { width: 19px; height: 19px; }
.pf-theme-toggle:is(:hover, :focus-visible) { color: var(--texte); border-color: var(--texte); }
.pf-page .volet .glass { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding-inline: 0; backdrop-filter: none; }
.pf-page .volet-contenu > .profil-section:first-child > .sv-ph:first-child,
.pf-page .volet-contenu > .fiche-statut > .fiche-statut-k { display: none; }
.pf-page .volet-contenu > .profil-section + .profil-section { margin-top: 2.2rem; }
.pf-page .volet-contenu .profil-section > .sv-ph { border-bottom-color: var(--ligne); }
.pf-page .volet-contenu > .fiche-statut { padding: 0; border-top: 1px solid var(--ligne); padding-top: 1rem; }
.pf-page .profil-compte-inner { display: grid; justify-items: start; gap: .8rem; padding: 1rem 0 0; background: transparent; border: 0; border-radius: 0; border-top: 1px solid var(--ligne); }
.pf-page .coffre-liste { display: grid; border-top: 1px solid var(--ligne); }
.pf-page .coffre-liste > .coffre-card { padding: 1rem 0; border-bottom: 1px solid var(--ligne); }
.pf-page .profil-section-vide { padding: 1rem 0 0; margin: 0; border-top: 1px solid var(--ligne); }
/* une seule action principale : les boutons pleins des formulaires passent à trait (spécificité > css/couleur.css) */
:root .pf-page .volet :is(.auth-submit, .fiche-cta, .profil-compte-logout, .profil-compte-comptes) {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; width: auto; min-height: 44px; padding: 0 1.2em;
  font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 2px; filter: none; box-shadow: none;
}
:root .pf-page .volet :is(.auth-submit, .fiche-cta, .profil-compte-logout, .profil-compte-comptes):is(:hover, :active, :focus-visible):not(:disabled) {
  background: var(--survol-fond); color: var(--survol-texte); border-color: var(--survol-filet); filter: none;
}
.pf-page .cv-qualifs { border-top: 1px solid var(--ligne); }
.pf-page .cv-qualifs .cv-qualif { background: transparent; border: 0; border-bottom: 1px solid var(--ligne); border-radius: 0; box-shadow: none; padding-inline: 0; margin: 0; }
.pf-page .volet .upload-h { display: none; }

/* Sombre : alternance de gris, accent pétrole pour l'action, teintes de cycle en repères courts. */
:root[data-theme="sombre"] {
  --preparer-bande: var(--s2);
  --vivre-bande: var(--s2);
  --cloturer-bande: var(--s2);
  --preparer: var(--pal-mineral-sombre-preparer);
  --vivre: var(--pal-mineral-sombre-vivre);
  --cloturer: var(--pal-mineral-sombre-cloturer);
}
:root[data-theme="sombre"] :is(.mom-preparer, .mom-vivre, .mom-cloturer) { --m-sur: var(--texte); }
:root[data-theme="sombre"] .sj-vignette.est-initiale { background: var(--s2); }
:root[data-theme="sombre"] .sj-onglet,
:root[data-theme="sombre"] .sj-onglet.est-actif { position: relative; border-top-color: var(--ligne); }
:root[data-theme="sombre"] .sj-onglet::before {
  content: ''; position: absolute; top: -5px; left: 0; width: 2rem; height: 4px; background: var(--m);
}
:root[data-theme="sombre"] .sj-onglet .sj-onglet-nom,
:root[data-theme="sombre"] .sj-onglet.est-actif .sj-onglet-nom { color: var(--m); }
:root[data-theme="sombre"] .volet.sj-panneau:not(.est-profond) { border-top: 1px solid var(--ligne); }
:root[data-theme="sombre"] .sj-panneau .volet-phrase,
:root[data-theme="sombre"] .sj .pa-carte { border-left-color: var(--m); }
