/* Thème visuel — prochaine version du site SoPHIa.
   © 2026 Alexandre Vautour Gagnon — Tous droits réservés.
   Direction : le magazine, raffiné. Fond crème chaud conservé (#FAF6ED),
   encre profonde, accent or vieilli, filets fins, titres serif affirmés,
   onglets en pilules lisibles. Ce fichier se charge APRÈS les styles du site :
   il ne casse rien, il accorde l'ensemble. */
:root {
  --sophia-creme: #FAF6ED;
  --sophia-encre: #1C1A17;
  --sophia-or: #B8860B;
  --sophia-or-doux: #E8DCC0;
  --sophia-gris: #5A554D;
}
body { background: var(--sophia-creme); color: var(--sophia-encre); }
h1, h2, h3 { color: var(--sophia-encre); letter-spacing: .01em; }
a { color: #7A5C00; text-underline-offset: 2px; }
a:hover { color: var(--sophia-or); }
nav.onglets button, .onglets button {
  border: 1px solid var(--sophia-or);
  border-radius: 999px;
  padding: .35rem .9rem;
  background: #FFFDF6;
  color: var(--sophia-encre);
  font-weight: 600;
}
nav.onglets button:hover, .onglets button:hover { background: var(--sophia-or-doux); }
button { border-radius: 6px; }
hr { border: none; border-top: 1px solid var(--sophia-or-doux); }
code { background: #F1EAD8; padding: 0 .25rem; border-radius: 3px; }

/* ===== Refonte de la navigation — 30 novembre 2026 =====
   Mandat d'Alex : 7 portes par intention + Contact dans la barre, un menu
   « Explorer » en sections pliables, un « Espace d'Alex » séparé et fermé,
   et « Commencer en 5 secondes » rendue au fil de la page — plus jamais
   collée par-dessus le contenu pendant le défilement. */
nav.onglets a.porte-lien {
  border: 1px solid var(--sophia-or);
  border-radius: 999px;
  padding: .35rem .9rem;
  background: #FFFDF6;
  color: var(--sophia-encre);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
nav.onglets a.porte-lien:hover { background: var(--sophia-or-doux); color: var(--sophia-encre); }
@media (max-width: 760px) {
  nav.onglets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav.onglets::-webkit-scrollbar { display: none; }
}
/* Les portes du tiroir se distinguent : filet d'or à gauche. */
.menu-portes .menu-entree { border-left: 3px solid var(--sophia-or); }
/* Sections pliables du tiroir (Explorer, Espace d'Alex) */
details.menu-explorer, details.menu-espace-alex { margin-top: 1.15rem; }
details.menu-explorer > summary, details.menu-espace-alex > summary {
  cursor: pointer; list-style: none; padding: .25rem 0;
}
details.menu-explorer > summary::-webkit-details-marker,
details.menu-espace-alex > summary::-webkit-details-marker { display: none; }
details.menu-explorer > summary .etiquette::before,
details.menu-espace-alex > summary .etiquette::before { content: "\25B8  "; color: var(--sophia-or); }
details.menu-explorer[open] > summary .etiquette::before,
details.menu-espace-alex[open] > summary .etiquette::before { content: "\25BE  "; }
/* L'Espace d'Alex : à part, en retrait, bordure pointillée. */
details.menu-espace-alex {
  border: 1px dashed var(--sophia-or);
  border-radius: 12px;
  padding: .55rem .8rem .8rem;
  background: rgba(184, 134, 11, .07);
}
.espace-alex-intro { margin: .3rem 0 .5rem; }
/* « Commencer en 5 secondes » : une section du fil, carte claire aux deux thèmes. */
#commencer-5-secondes {
  background: #FFFDF6 !important;
  border-color: var(--sophia-or) !important;
  color: #1C1A17;
}
/* Barre uniforme des pages autonomes */
.nav-refonte {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem;
  padding: .6rem 1rem; border-bottom: 2px solid var(--sophia-or);
  background: #FFFDF6; margin-bottom: 1rem;
}
.nav-refonte .nav-marque { font-weight: 800; text-decoration: none; color: var(--sophia-encre); letter-spacing: .02em; }
.nav-refonte .nav-portes { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-left: auto; }
.nav-refonte .nav-portes a { text-decoration: none; font-weight: 600; }
/* Rail-arbre : portes, sections pliables, espace séparé */
.rail-arbre a.arbre-lien { display: block; padding: .18rem .2rem; text-decoration: none; font-weight: 600; }
.rail-arbre details.arbre-details { margin: .35rem 0; }
.rail-arbre details.arbre-details > summary { cursor: pointer; font-weight: 700; padding: .2rem 0; list-style: none; }
.rail-arbre details.arbre-details > summary::-webkit-details-marker { display: none; }
.rail-arbre details.arbre-details > summary::before { content: "\25B8  "; color: var(--sophia-or); }
.rail-arbre details.arbre-details[open] > summary::before { content: "\25BE  "; }
.rail-arbre details.arbre-espace-alex { border: 1px dashed var(--sophia-or); border-radius: 10px; padding: .35rem .6rem .55rem; margin-top: .8rem; }
/* Signature conforme au pied des pages */
.signature-refonte { text-align: center; padding: 1rem; border-top: 1px solid var(--sophia-or-doux); color: var(--sophia-gris); font-size: .9rem; }

/* ===== Visage « Registre vivant » — v8.1, 30 novembre 2026 =====
   Modèle retenu par Alex : CLAIR, fond papier, encre noire, UN SEUL accent
   vermillon (le tampon « VÉRIFIÉ » qui se pose au recalcul), bande
   d'ancrage de Sainte-Martine. Ce bloc se charge après le thème magazine :
   il redéfinit les variables partagées (fonds, encre, accent) — la couche
   commune de toutes les pages (corps, liens, onglets, filets, menus) prend
   le nouveau visage sans réécrire les pages une à une. */
:root {
  --sophia-creme: #FAF7EF;
  --sophia-encre: #17130C;
  --sophia-or: #C23B22;
  --sophia-or-doux: #F0D9CF;
  --sophia-gris: #5A5348;
  --rv-papier: #FAF7EF;
  --rv-encre: #17130C;
  --rv-vermillon: #C23B22;
  --rv-vermillon-fonce: #8F2D14;
}
body { background: var(--rv-papier); color: var(--rv-encre); }
a { color: var(--rv-vermillon-fonce); }
a:hover { color: var(--rv-vermillon); }
code { background: #F2ECDC; }
/* La bande d'ancrage : le lieu et les trois temps, en tête de page. */
.bande-ancrage {
  display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; align-items: baseline;
  border-top: 3px solid var(--rv-encre); border-bottom: 1px solid var(--rv-encre);
  padding: .45rem 1rem; margin: 0 0 1rem;
  font-size: .86rem; background: #FFFDF6; color: var(--rv-encre);
}
.bande-ancrage .ba-lieu { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.bande-ancrage .ba-coord { font-variant-numeric: tabular-nums; }
.bande-ancrage .ba-temps { color: var(--sophia-gris); }
.bande-ancrage .ba-temps strong { color: var(--rv-encre); font-variant-numeric: tabular-nums; font-weight: 700; }
/* Le tampon qui se pose quand le recalcul passe. */
.tampon-verifie {
  display: inline-block; border: 2.5px solid var(--rv-vermillon); color: var(--rv-vermillon);
  border-radius: 4px; padding: .1em .55em; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; transform: rotate(-4deg); background: rgba(194, 59, 34, .05);
  font-size: .92em; vertical-align: middle;
}
/* L'accroche de l'accueil : le slogan arrêté par Alex. */
.accroche-slogan {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.45rem, 4.5vw, 2.1rem); font-weight: 700; line-height: 1.2;
  color: var(--rv-encre); margin: .9rem 0 .2rem;
}
.accroche-variante { color: var(--rv-vermillon); font-weight: 700; font-size: 1.05rem; margin: 0 0 .6rem; }
/* Le baromètre des grades (page des dons). */
.grades-barre { height: 1.1rem; border: 1.5px solid var(--rv-encre); border-radius: 4px; background: #FFFDF6; overflow: hidden; margin: .5rem 0; }
.grades-barre-remplissage { height: 100%; background: var(--rv-vermillon); }
.grades-liste { list-style: none; padding: 0; margin: .8rem 0; }
.grades-liste .cran { display: flex; flex-wrap: wrap; gap: .15rem .7rem; padding: .42rem .2rem; border-bottom: 1px solid var(--sophia-or-doux); align-items: baseline; }
.cran-montant { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 5.4rem; }
.cran-nom { font-weight: 700; }
.cran-deblocage { color: var(--sophia-gris); flex: 1 1 16rem; }
.cran-prochain { border-left: 4px solid var(--rv-vermillon); background: rgba(194, 59, 34, .05); padding: .6rem .8rem; margin: .8rem 0; }
