/* ══════════════════════════════════════════════════════════════════════════
   LE HALL PRINCIPAL — v3 « Le Seuil »            Giri Académie · 31/08/2026
   Chargée APRÈS hall.css et marbre-academie.css.
   ⛔ Toutes les classes sont préfixées gh- : marbre-academie.css repeint en
      !important tout ce qui s'appelle .card .tile .news .panel .hall-door
      et tout [class*="-card"]. Aucun nom ici ne doit contenir « -card ».
   ⛔ body{color:#2A1200!important} est hérité : toute surface sombre impose
      sa propre encre claire (piège n°5 de la charte élève, 30/08).
   ══════════════════════════════════════════════════════════════════════════ */

.gh {
  --gh-or-profond:#7a5910;   /* 01/09 : #8a6512 tombait a 4,20 sur le creme du hall (seuil 4,5) */
  --gh-or:#c9971b;
  --gh-or-vif:#e8b93a;
  --gh-or-pale:#f7e3a4;
  --gh-encre:#2A1200;
  --gh-encre-douce:#5c452c;
  --gh-ivoire:#f6ecd6;
  --gh-pierre:rgba(255,253,248,.72);
  --gh-trait:rgba(160,120,64,.28);
  --gh-trait-fort:rgba(160,120,64,.55);
  --gh-ease:cubic-bezier(.22,1,.36,1);
  max-width:1240px;
  margin:0 auto;
  padding:0 36px 34px;
  position:relative;
  z-index:2;
}

/* ── Titre de rang : pastille = boule d'or du logo, jamais un rond dessiné ── */
.gh-rang{
  display:flex; align-items:baseline; gap:12px;
  margin:0 0 16px; padding:0 2px;
}
.gh-rang-pastille{
  width:13px; height:13px; flex:0 0 13px;
  background:url('/assets/images/logos/golden-ball-256-v2.webp') center/contain no-repeat;
  filter:drop-shadow(0 2px 4px rgba(74,52,20,.4));
  transform:translateY(1px);
}
.gh-rang-titre{
  font-family:'Cormorant Garamond','Playfair Display',Georgia,serif;
  font-size:23px; font-weight:600; letter-spacing:.01em;
  color:var(--gh-encre); margin:0;
}
.gh-rang-note{
  margin-left:auto; font-family:Inter,system-ui,sans-serif;
  font-size:11.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--gh-or-profond); opacity:.9; white-space:nowrap;
}

/* ══ LE RUBAN VIVANT ══════════════════════════════════════════════════════ */
.gh-ruban-zone{ margin:6px 0 46px; }

.gh-ruban{
  display:flex; gap:16px;
  overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-padding-left:2px;
  padding:4px 2px 14px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.gh-ruban::-webkit-scrollbar{ display:none; }

.gh-actu{
  scroll-snap-align:start;
  flex:0 0 264px;
  display:flex; flex-direction:column;
  padding:20px 22px 18px;
  border-radius:14px;
  border:1px solid var(--gh-trait);
  background:linear-gradient(168deg,rgba(255,253,249,.94),rgba(247,242,232,.86));
  box-shadow:0 2px 10px rgba(74,52,20,.05);
  transition:transform .34s var(--gh-ease), box-shadow .34s var(--gh-ease), border-color .34s var(--gh-ease);
  color:var(--gh-encre);
}
.gh-actu:hover{
  transform:translateY(-4px);
  border-color:var(--gh-trait-fort);
  box-shadow:0 12px 30px rgba(74,52,20,.13);
}
.gh-actu-date{
  font-family:Inter,system-ui,sans-serif;
  font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--gh-or-profond); margin-bottom:9px;
}
.gh-actu-titre{
  font-family:'Cormorant Garamond','Playfair Display',Georgia,serif;
  font-size:21px; line-height:1.2; font-weight:600;
  color:var(--gh-encre); margin:0 0 8px;
}
.gh-actu-txt{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:16px; line-height:1.5; color:var(--gh-encre-douce);
  margin:0 0 14px; flex:1 1 auto;
}
.gh-actu-lien{
  font-family:Inter,system-ui,sans-serif;
  font-size:12px; font-weight:600; letter-spacing:.11em; text-transform:uppercase;
  color:var(--gh-or-profond);
  display:inline-flex; align-items:center; gap:7px;
}
.gh-actu-lien::after{
  content:'→'; transition:transform .3s var(--gh-ease);
}
.gh-actu:hover .gh-actu-lien::after{ transform:translateX(5px); }

/* ── La carte majeure : le seul événement daté de la page ── */
.gh-actu-majeure{
  flex:0 0 360px;
  border:1px solid rgba(201,151,27,.55);
  background:
    linear-gradient(155deg,rgba(30,20,6,.86) 0%,rgba(18,12,4,.92) 100%),
    url('/assets/images/textures/gold-ecrin-v2.jpg') center/cover no-repeat;
  color:var(--gh-ivoire) !important;
  box-shadow:0 8px 26px rgba(42,18,0,.24);
}
.gh-actu-majeure .gh-actu-date{ color:var(--gh-or-pale) !important; }
.gh-actu-majeure .gh-actu-titre{
  color:var(--gh-or-pale) !important; font-size:27px;
}
.gh-actu-majeure .gh-actu-txt{ color:rgba(246,236,214,.82) !important; }
.gh-actu-majeure .gh-actu-lien{ color:var(--gh-or-vif) !important; }
.gh-actu-majeure:hover{ border-color:var(--gh-or-vif); }

.gh-compte{
  align-self:flex-start;
  font-family:Inter,system-ui,sans-serif;
  font-size:11px; font-weight:600; letter-spacing:.13em; text-transform:uppercase;
  color:#1b1204 !important;
  background:linear-gradient(120deg,var(--gh-or) 0%,var(--gh-or-vif) 52%,var(--gh-or) 100%);
  padding:5px 12px; border-radius:100px; margin-bottom:13px;
  box-shadow:0 2px 8px rgba(0,0,0,.3);
}
.gh-compte:empty{ display:none; }

/* ── Points de progression = boules d'or ── */
.gh-points{
  display:flex; justify-content:center; align-items:center; gap:9px;
  margin-top:2px; min-height:12px;
}
.gh-point{
  width:9px; height:9px;
  background:url('/assets/images/logos/golden-ball-256-v2.webp') center/contain no-repeat;
  opacity:.4; transition:opacity .3s ease, transform .3s var(--gh-ease);
  border:0; padding:0; cursor:pointer; background-color:transparent;
}
.gh-point.actif{ opacity:1; transform:scale(1.5); filter:drop-shadow(0 0 5px rgba(232,185,58,.7)); }

/* ══ LES PORTES ═══════════════════════════════════════════════════════════ */
.gh-portes{
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:20px;
  margin-bottom:20px;
  align-items:start;          /* ⛔ jamais stretch : c'est ça qui creusait 577px de vide */
}

.gh-porte{
  position:relative;
  display:flex; flex-direction:column;
  padding:30px 30px 26px;
  border-radius:16px;
  border:1px solid var(--gh-trait);
  background:linear-gradient(168deg,rgba(255,253,249,.95),rgba(248,243,233,.88));
  box-shadow:0 2px 12px rgba(74,52,20,.06);
  transition:transform .38s var(--gh-ease), box-shadow .38s var(--gh-ease), border-color .38s var(--gh-ease);
  color:var(--gh-encre);
  overflow:hidden;
}
.gh-porte:hover{
  transform:translateY(-3px);
  border-color:var(--gh-trait-fort);
  box-shadow:0 14px 34px rgba(74,52,20,.14);
}
.gh-porte-kicker{
  font-family:Inter,system-ui,sans-serif;
  font-size:10.5px; letter-spacing:.19em; text-transform:uppercase;
  color:var(--gh-or-profond); margin-bottom:10px;
}
.gh-porte-titre{
  font-family:'Cormorant Garamond','Playfair Display',Georgia,serif;
  font-size:30px; line-height:1.12; font-weight:600;
  color:var(--gh-encre); margin:0 0 10px;
}
.gh-porte-txt{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:17px; line-height:1.55; color:var(--gh-encre-douce); margin:0 0 18px;
}
.gh-porte-cta{
  align-self:flex-start; margin-top:auto;
  font-family:Inter,system-ui,sans-serif;
  font-size:12.5px; font-weight:600; letter-spacing:.13em; text-transform:uppercase;
  color:var(--gh-or-profond);
  display:inline-flex; align-items:center; gap:8px;
  padding-top:4px;
}
.gh-porte-cta::after{ content:'→'; transition:transform .3s var(--gh-ease); }
.gh-porte:hover .gh-porte-cta::after{ transform:translateX(6px); }

/* ── LA PORTE DES MAÎTRES — le seul bloc de matière de la page ── */
.gh-porte-maitres{
  border:1px solid rgba(201,151,27,.5);
  background:
    linear-gradient(150deg,rgba(28,19,6,.90) 0%,rgba(16,11,3,.94) 62%,rgba(34,23,7,.88) 100%),
    url('/assets/images/textures/gold-ecrin-v2.jpg') center/cover no-repeat;
  color:var(--gh-ivoire) !important;
  box-shadow:0 10px 34px rgba(42,18,0,.26);
  padding:34px 34px 28px;
}
.gh-porte-maitres:hover{ border-color:var(--gh-or); box-shadow:0 18px 46px rgba(42,18,0,.34); }
.gh-porte-maitres .gh-porte-kicker{ color:var(--gh-or-vif) !important; }
.gh-porte-maitres .gh-porte-titre{
  color:var(--gh-or-pale) !important; font-size:38px;
}
.gh-porte-maitres .gh-porte-txt{ color:rgba(246,236,214,.84) !important; font-size:18px; }
.gh-porte-maitres .gh-porte-cta{ color:var(--gh-or-vif) !important; }

/* ── LA FRISE DES QUATORZE — le moment signature ── */
.gh-frise{
  display:flex; align-items:center;
  margin:4px 0 16px; padding:3px 0 6px;
  overflow-x:auto; overflow-y:hidden;
  scrollbar-width:none;
}
.gh-frise::-webkit-scrollbar{ display:none; }
.gh-frise img{
  flex:0 0 auto;
  width:54px; height:54px; border-radius:50%;
  object-fit:cover; object-position:center 22%;
  border:1.5px solid rgba(232,185,58,.62);
  box-shadow:0 3px 10px rgba(0,0,0,.42);
  margin-left:-15px;
  background:#241a08;
  transition:margin-left .5s var(--gh-ease), transform .5s var(--gh-ease), border-color .4s ease;
}
.gh-frise img:first-child{ margin-left:0; }
.gh-porte-maitres:hover .gh-frise img{ margin-left:-7px; border-color:var(--gh-or-vif); }
.gh-porte-maitres:hover .gh-frise img:first-child{ margin-left:0; }
.gh-porte-maitres:hover .gh-frise img:nth-child(odd){ transform:translateY(-5px); }
.gh-porte-maitres:hover .gh-frise img:nth-child(even){ transform:translateY(4px); }

.gh-compte-maitres{
  font-family:Inter,system-ui,sans-serif;
  font-size:12px; letter-spacing:.12em; text-transform:uppercase;
  color:rgba(247,227,164,.9) !important;
  margin-bottom:16px;
}

/* ── LA PORTE DE LECTURE (Articles) : 3 vrais titres, cliquables ── */
.gh-porte-lecture .gh-liste{ list-style:none; margin:0 0 16px; padding:0; }
.gh-porte-lecture .gh-liste li{ border-top:1px solid var(--gh-trait); }
.gh-porte-lecture .gh-liste li:first-child{ border-top:0; }
.gh-ligne{
  display:block; padding:11px 0;
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:17px; line-height:1.32; color:var(--gh-encre);
  transition:color .25s ease, padding-left .25s var(--gh-ease);
}
.gh-ligne:hover{ color:var(--gh-or-profond); padding-left:6px; }

/* ── Les trois portes basses ── */
.gh-portes-min{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
  margin-bottom:8px; align-items:start;
}
.gh-porte-min{ padding:24px 24px 20px; }
.gh-porte-min .gh-porte-titre{ font-size:24px; }
.gh-porte-min .gh-porte-txt{ font-size:16px; margin-bottom:14px; }

/* Maha TV — le point qui bat */
.gh-live{
  display:inline-flex; align-items:center; gap:8px;
  font-family:Inter,system-ui,sans-serif;
  font-size:10.5px; letter-spacing:.19em; text-transform:uppercase;
  color:#a3421f; margin-bottom:10px;
}
.gh-live::before{
  content:''; width:8px; height:8px; border-radius:50%;
  background:#d0472a; box-shadow:0 0 0 0 rgba(208,71,42,.6);
  animation:gh-battement 2.2s ease-out infinite;
}
@keyframes gh-battement{
  0%{ box-shadow:0 0 0 0 rgba(208,71,42,.55); }
  70%{ box-shadow:0 0 0 9px rgba(208,71,42,0); }
  100%{ box-shadow:0 0 0 0 rgba(208,71,42,0); }
}

/* Une porte qui n'est pas encore ouverte : on baisse la LUMIÈRE, jamais la
   couleur (⛔ grayscale interdit — piège n°6 de la charte élève). */
.gh-porte-attente{ background:rgba(255,253,248,.46); border-style:dashed; }
.gh-porte-attente .gh-porte-titre{ color:rgba(42,18,0,.66); }
.gh-porte-attente .gh-porte-txt{ color:rgba(92,69,44,.82); }
.gh-porte-attente .gh-porte-cta{ color:rgba(138,101,18,.78); }
.gh-porte-attente:hover{ transform:none; box-shadow:0 2px 12px rgba(74,52,20,.06); }

/* ══ Responsive ═══════════════════════════════════════════════════════════ */
@media (max-width:1080px){
  .gh{ padding:0 26px 30px; }
  .gh-portes{ grid-template-columns:1fr; }
  .gh-porte-maitres .gh-porte-titre{ font-size:33px; }
}
@media (max-width:820px){
  .gh-portes-min{ grid-template-columns:1fr; gap:14px; }
  .gh-actu-majeure{ flex:0 0 300px; }
  .gh-actu{ flex:0 0 240px; }
}
@media (max-width:600px){
  .gh{ padding:0 20px 26px; }
  .gh-ruban-zone{ margin:2px 0 34px; }
  .gh-rang-titre{ font-size:21px; }
  .gh-rang-note{ font-size:10.5px; letter-spacing:.1em; }
  .gh-actu-majeure{ flex:0 0 min(84vw,300px); }
  .gh-actu{ flex:0 0 min(76vw,250px); }
  .gh-porte{ padding:24px 22px 20px; border-radius:14px; }
  .gh-porte-maitres{ padding:26px 22px 22px; }
  .gh-porte-maitres .gh-porte-titre{ font-size:29px; }
  .gh-porte-maitres .gh-porte-txt{ font-size:16.5px; }
  .gh-porte-titre{ font-size:26px; }
  .gh-frise img{ width:46px; height:46px; margin-left:-13px; }
  .gh-portes{ gap:14px; margin-bottom:14px; }
}
/* Écran COURT (paysage téléphone) : un écran court n'est pas un écran étroit. */
@media (max-height:480px) and (orientation:landscape){
  .gh-ruban-zone{ margin:2px 0 24px; }
  .gh-porte{ padding:20px 22px 18px; }
  .gh-porte-maitres .gh-porte-titre{ font-size:27px; }
}

@media (prefers-reduced-motion:reduce){
  .gh-actu,.gh-porte,.gh-frise img,.gh-point,.gh-live::before{
    transition:none !important; animation:none !important;
  }
  .gh-porte:hover,.gh-actu:hover{ transform:none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LE BLINDAGE — deux gardes de la maison repeignent nos surfaces sombres
   ──────────────────────────────────────────────────────────────────────────
   1) marbre-academie.css (injecté DEUX fois par le vhost, dont une APRÈS
      cette feuille) impose l'encre du thème avec 3 ID de spécificité :
        body :is(p,span,div,h1..h6,…):not(#frame *):not(#bottom-bar *)
        :not(#chat-panel *):not(.tv-brand *):not(svg *){color:#2f1d05!important}
      Aucune règle de classe, même !important, ne peut gagner. On emploie donc
      la technique déjà en usage dans la maison (nuit.css) : six :not() sur des
      ID qui n'existent pas — ça ne change RIEN au ciblage, seulement la
      spécificité. Mesuré : sans ça, titre à 1,56 de contraste.
   2) giri-titres-lisibles.js repeint en encre tout titre « trop clair » posé
      sur fond clair. Sa fonction fondEstClair() lit backgroundColor — or une
      texture vit dans background-IMAGE : nos blocs lui paraissaient
      transparents, donc posés sur le marbre. D'où background-color opaque
      ci-dessous (la cause) + data-giri-titre dans le HTML (la ceinture).
   ══════════════════════════════════════════════════════════════════════════ */

/* — L'or de la charte sur les surfaces CLAIRES uniquement — */
.gh:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte:not(.gh-porte-maitres) .gh-porte-kicker,
.gh:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte:not(.gh-porte-maitres) .gh-porte-cta,
.gh:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-actu:not(.gh-actu-majeure) .gh-actu-date,
.gh:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-actu:not(.gh-actu-majeure) .gh-actu-lien,
.gh:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-rang-note{
  /* [01/09] #8a6512 tenait sur l'ivoire d'une carte (5,2) mais tombait a 4,20
     sur le creme d'une actu posee a meme le marbre — mesure sur « Une pour soi,
     une a offrir ». #7a5910 donne 5,09 la, et reste meilleur sur l'ivoire.
     Un or ne vaut qu'a la surface ou il est pose : on prend le plus profond
     des deux, il tient partout. */
  color:#7a5910 !important; -webkit-text-fill-color:#7a5910 !important;
}
.gh:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-live{ color:#a3421f !important; -webkit-text-fill-color:#a3421f !important; }
.gh:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte-attente .gh-porte-cta{ color:rgba(138,101,18,.82) !important; -webkit-text-fill-color:rgba(138,101,18,.82) !important; }

/* — Les DEUX surfaces sombres : déclarées en dernier, elles gagnent — */
.gh-porte-maitres:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6),
.gh-actu-majeure:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6){
  background-color:#150e04 !important;   /* la garde JS lit CETTE propriété */
}
.gh-porte-maitres:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte-titre,
.gh-actu-majeure:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-actu-titre{
  color:#f7e3a4 !important; -webkit-text-fill-color:#f7e3a4 !important;
}
.gh-porte-maitres:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte-kicker,
.gh-porte-maitres:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte-cta,
.gh-actu-majeure:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-actu-lien{
  color:#e8b93a !important; -webkit-text-fill-color:#e8b93a !important;
}
.gh-porte-maitres:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte-txt,
.gh-actu-majeure:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-actu-txt{
  color:rgba(246,236,214,.88) !important; -webkit-text-fill-color:rgba(246,236,214,.88) !important;
}
.gh-porte-maitres:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-compte-maitres,
.gh-actu-majeure:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-actu-date{
  color:rgba(247,227,164,.9) !important; -webkit-text-fill-color:rgba(247,227,164,.9) !important;
}
.gh-actu-majeure:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-compte{
  color:#1b1204 !important; -webkit-text-fill-color:#1b1204 !important;
}

/* La matière doit SE VOIR : voile allégé, la texture d'or brossé reprend la main. */
.gh-porte-maitres:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6){
  background-image:
    linear-gradient(150deg,rgba(24,16,5,.80) 0%,rgba(14,9,2,.90) 60%,rgba(38,26,8,.76) 100%),
    url('/assets/images/textures/gold-ecrin-v2.jpg') !important;
  background-size:cover !important; background-position:center !important;
}
.gh-actu-majeure:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6){
  background-image:
    linear-gradient(155deg,rgba(26,18,6,.78) 0%,rgba(14,9,2,.90) 100%),
    url('/assets/images/textures/gold-ecrin-v2.jpg') !important;
  background-size:cover !important; background-position:center !important;
}

/* Un ruban qui défile en interne doit LE DIRE : le fondu n'apparaît que
   lorsqu'il déborde réellement (classe posée par le script, jamais supposée). */
.gh-ruban.gh-deborde{
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 64px),transparent 100%);
          mask-image:linear-gradient(90deg,#000 calc(100% - 64px),transparent 100%);
}
.gh-ruban.gh-deborde.gh-au-bout{ -webkit-mask-image:none; mask-image:none; }

/* La frise déborde sur les écrans étroits : elle doit LE DIRE, comme le ruban.
   Le fondu n'est posé que si elle déborde réellement (classe posée par le
   script) — jamais supposé depuis une media query. */
.gh-frise.gh-deborde{
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 46px),transparent 100%);
          mask-image:linear-gradient(90deg,#000 calc(100% - 46px),transparent 100%);
}
.gh-frise.gh-deborde.gh-au-bout{ -webkit-mask-image:none; mask-image:none; }
@media (max-width:600px){
  .gh-compte-maitres{ line-height:1.5; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LA SECONDE LUMIÈRE — le Hall en thème nuit
   ──────────────────────────────────────────────────────────────────────────
   Le thème de l'élève franchit toutes les portes (giri-eleve-theme-2.js).
   Sans ce bloc, nuit.css repeignait nos textes en clair pendant que nos
   surfaces gardaient leur ivoire : mesuré à 1,04 de contraste — du blanc sur
   du blanc. Le « filet des surfaces oubliées » ne les rattrapait pas, car il
   épargne délibérément les fonds en dégradé, et les nôtres en sont.
   nuit.css porte 5 ID de spécificité : il en faut 6 pour reprendre la main.
   Palette reprise de charte-ga/nuit.css — on n'invente pas une seconde nuit.
   Les DEUX surfaces d'or brossé, elles, ne changent pas : elles sont déjà
   la nuit, dans les deux thèmes. Une matière, deux lumières.
   ══════════════════════════════════════════════════════════════════════════ */

body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-actu:not(.gh-actu-majeure),
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte:not(.gh-porte-maitres){
  background-color:#101a2c !important;
  background-image:linear-gradient(180deg,rgba(20,32,54,.90),rgba(13,22,39,.94)) !important;
  border-color:rgba(212,175,55,.30) !important;
  box-shadow:0 2px 14px rgba(0,0,0,.45) !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte-attente{
  background-color:#0c1421 !important;
  background-image:linear-gradient(180deg,rgba(16,26,44,.72),rgba(10,17,31,.80)) !important;
  border-color:rgba(212,175,55,.20) !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-actu:not(.gh-actu-majeure) .gh-actu-titre,
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte:not(.gh-porte-maitres) .gh-porte-titre,
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-rang-titre{
  color:#f0d98c !important; -webkit-text-fill-color:#f0d98c !important; background:none !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-actu:not(.gh-actu-majeure) .gh-actu-txt,
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte:not(.gh-porte-maitres) .gh-porte-txt,
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-ligne{
  color:#dfe6f2 !important; -webkit-text-fill-color:#dfe6f2 !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-actu:not(.gh-actu-majeure) .gh-actu-date,
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-actu:not(.gh-actu-majeure) .gh-actu-lien,
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte:not(.gh-porte-maitres) .gh-porte-kicker,
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte:not(.gh-porte-maitres) .gh-porte-cta,
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-rang-note{
  color:#e8b93a !important; -webkit-text-fill-color:#e8b93a !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-liste li{
  border-top-color:rgba(212,175,55,.22) !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-ligne:hover{
  color:#f0d98c !important; -webkit-text-fill-color:#f0d98c !important;
}
/* Le point du direct : le rouge de jour tombe à 2,4 sur la nuit. */
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-live{
  color:#ff8f6b !important; -webkit-text-fill-color:#ff8f6b !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-live::before{
  background:#ff6b45 !important;
}
/* Nos deux surfaces d'or brossé traversent les deux lumières sans bouger. */
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-porte-maitres,
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-actu-majeure{
  background-color:#150e04 !important;
  border-color:rgba(232,185,58,.5) !important;
}

/* Une pastille dont le fond vit dans background-image paraît transparente à
   toute logique qui lit backgroundColor (la garde des titres, notre propre
   banc de mesure). On lui donne donc aussi une couleur de fond réelle. */
.gh-compte{ background-color:#c9971b; }

/* ══════════════════════════════════════════════════════════════════════════
   TOUTE SURFACE DÉCLARE SA COULEUR DE FOND, PAS SEULEMENT SON DÉGRADÉ
   ──────────────────────────────────────────────────────────────────────────
   Un fond posé uniquement en background-IMAGE (dégradé ou texture) laisse
   backgroundColor à « transparent ». Toute logique qui lit cette propriété
   croit alors que le bloc est posé sur le fond de la PAGE :
     · giri-titres-lisibles.js a repeint nos titres d'or en encre brune, sur
       fond sombre, parce qu'il ne voyait pas la texture (contraste 1,56) ;
     · notre propre banc de mesure a mesuré l'or sur #efe6d4 au lieu de la
       carte ivoire, et annoncé 4,29 là où le vrai ratio est 5,2.
   Une surface qui ne déclare pas sa couleur ment à tout le monde.
   ══════════════════════════════════════════════════════════════════════════ */
.gh-actu{ background-color:#fffdf9; }
.gh-porte{ background-color:#fffdf9; }
.gh-porte-attente{ background-color:#faf6ee; }

/* L'or #8a6512 vaut 5,2 sur l'ivoire d'une carte, mais seulement 4,25 sur le
   marbre de la PAGE (#efe6d4) — mesuré. Les rares textes posés à même la page
   prennent donc un or plus profond. Un or ne vaut qu'à la surface où il est posé. */
.gh:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-rang-note{
  color:#6f4f0d !important; -webkit-text-fill-color:#6f4f0d !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-rang-note{
  color:#e8b93a !important; -webkit-text-fill-color:#e8b93a !important;
}

/* Au survol l'assemblée s'écarte : l'écart doit rester dans le cadre, sinon la
   frise déborde JUSTE au moment où on la regarde. Mesuré : 14x54 - 13x9 = 639px. */
.gh-porte-maitres:hover .gh-frise img{ margin-left:-9px; }

/* Sur écran étroit, la mention « Glissez… » poussée à droite par margin-left:auto
   comprimait le titre du rang à ~130px : « En ce moment » se cassait en deux
   lignes. Aucun test automatique ne le voit — le texte n'est ni coupé ni
   chevauchant, il est seulement laid. Elle passe donc sous le titre. */
@media (max-width:640px){
  .gh-rang{ flex-wrap:wrap; align-items:center; }
  .gh-rang-titre{ flex:1 1 auto; }
  .gh-rang-note{ margin-left:0; flex:0 0 100%; margin-top:2px; padding-left:25px; }
}

/* Les ronds des passerelles : leur svg est en stroke:currentColor, et
   marbre-academie.css met .bridge-icon à l'encre brune #2f1d05. Sur le bleu
   nuit, c'était du presque-noir sur du sombre — illisible (signalé par Maha).
   En nuit, le trait passe à l'or ; en marbre il garde son or profond. */
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .bridge-icon{
  color:#e8b93a !important; -webkit-text-fill-color:#e8b93a !important;
  border-color:rgba(232,185,58,.45) !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .bridge-icon svg{
  stroke:#e8b93a !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .bridge-eyebrow{
  color:#e8b93a !important; -webkit-text-fill-color:#e8b93a !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .bridge-title{
  color:#f0d98c !important; -webkit-text-fill-color:#f0d98c !important;
}

/* Le rectangle bleu foncé autour des liens du haut (signalé par Maha, 31/08).
   nuit.css peint tout :is([class*="-nav"],header nav,…) comme si c'était une
   barre pleine largeur : .top-nav est un bloc de liens CENTRÉ dans header.top,
   qui porte déjà son fond — d'où un rectangle flottant coupé net à droite.
   Corrigé à la source dans charte-ga/nuit.css (29 pages), redoublé ici parce
   que nuit.css est servi avec max-age=604800 : sans ce doublon, la correction
   n'arriverait chez le visiteur que dans sept jours. */
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .top-nav,
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .top-nav-axes{
  background:transparent !important;
  border-bottom-color:transparent !important;
  -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
  box-shadow:none !important;
}

/* Les passerelles du Hall gardaient leur matière claire en pleine nuit :
   marbre-academie leur pose un dégradé crème, et rien ne le retournait. Le
   texte, lui, passait en encre — 2,5 de contraste. Une matière suit l'heure. */
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .bridge{
  background:linear-gradient(180deg,rgba(20,32,54,.90),rgba(13,22,39,.94))!important;
  border-color:rgba(212,175,55,.30)!important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .bridge:hover{
  border-color:rgba(232,185,58,.6)!important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .bridge-eyebrow{
  color:#e8b93a!important; -webkit-text-fill-color:#e8b93a!important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .bridge-title{
  color:#f0d98c!important; -webkit-text-fill-color:#f0d98c!important;
}

/* ── [SUCCÈS DES ÉLÈVES 2026-09-01] La porte des réussites ──────────────────
   Une école se prouve par ce que ses élèves accomplissent : ce bandeau porte
   la seule page du Hall qui parle d'EUX. Pleine largeur volontairement — une
   4e case dans .gh-portes-min (grid figée à 3) l'aurait laissée seule et
   orpheline sur une deuxième ligne. */
.gh-succes{
  display:flex; align-items:center; gap:34px; margin:26px 0 8px;
  padding:34px 38px; border-radius:20px; text-decoration:none; color:inherit;
  border:1px solid rgba(201,151,27,.34);
  background:linear-gradient(158deg,rgba(255,253,249,.96),rgba(250,244,232,.9));
  box-shadow:0 2px 8px rgba(74,48,12,.07), 0 18px 44px rgba(74,48,12,.10);
  transition:transform .32s cubic-bezier(.2,.7,.3,1), box-shadow .32s, border-color .32s;
}
.gh-succes:hover{
  transform:translateY(-4px); border-color:rgba(201,151,27,.62);
  box-shadow:0 4px 12px rgba(74,48,12,.10), 0 28px 62px rgba(74,48,12,.17);
}
.gh-succes-txt{ flex:1; min-width:0; }
.gh-succes-kicker{
  display:block; font-family:Inter,system-ui,sans-serif; font-size:11px;
  letter-spacing:.24em; text-transform:uppercase; font-weight:600;
  color:#7a5a10; margin-bottom:10px;
}
.gh-succes h2{
  font-family:'Cormorant Garamond',Georgia,serif; font-size:34px; font-weight:600;
  line-height:1.14; margin:0 0 10px; color:#221d15;
}
.gh-succes p{ margin:0; font-size:16.5px; line-height:1.62; color:#5b5245; }
.gh-succes .gh-porte-cta{ flex:0 0 auto; }
@media (max-width:720px){
  .gh-succes{ flex-direction:column; align-items:flex-start; gap:20px; padding:26px 22px; }
  .gh-succes h2{ font-size:27px; }
}

/* ── [THÉRAPEUTES 2026-09-08] Dix onglets dans la barre : elle se resserre par
   paliers au lieu de se casser. Mesuré à 1920 : 1 265 px de liens (15 px,
   écart 30 px) + marque 198 + Retour 116 + marges 72 = 1 651 px minimum.
   Déjà avant l'onglet, à 1366 px, « Les Axes », « Maha TV », « Succès des
   élèves » et « Retour » passaient sur deux lignes — la passe « lisible » de
   marbre-academie.css avait monté la police à 15 px sans remesurer la barre.
   marbre-academie.css pose ses tailles en !important : on passe au-dessus par
   la spécificité (header.top …), jamais en le modifiant (il sert tout le site).
   Paliers : 1721+ intact · ≤1720 écart 16 · ≤1500 marque sans texte, 14 px ·
   ≤1330 13 px · ≤1250 menu replié (hall.css le fait déjà sous 1200). */
header.top .top-nav a, header.top .axes-trigger{ white-space:nowrap; }
header.top .top-back{ flex-shrink:0; white-space:nowrap; }
@media (max-width:1720px){
  header.top{ padding-left:22px; padding-right:22px; }
  header.top .top-nav{ gap:16px; }
  header.top .top-nav a, header.top .axes-trigger{ letter-spacing:.2px !important; }
}
@media (max-width:1500px){
  header.top .top-brand .brand-text{ display:none !important; }
  header.top .top-nav a, header.top .axes-trigger{ font-size:14px !important; }
}
@media (max-width:1330px){
  header.top .top-nav a, header.top .axes-trigger{ font-size:13px !important; }
}
@media (max-width:1250px){
  header.top .top-nav{ display:none !important; }
  header.top .top-burger{ display:block !important; }
}

/* ── [FRISE 2026-09-08] Le survol ne coupe plus rien ─────────────────────────
   Maha : « les photos s'étirent en horizontal, ça coupe le haut des sphères et
   Palmira tout à droite ». Mesuré à 1920 : au survol 14×54 − 13×9 = 639 px dans
   un cadre de 619 ; et les sphères soulevées de 5 px montaient au-dessus des
   3 px de marge haute d'un cadre qui rogne (overflow-x:auto impose le rognage
   vertical, on ne peut pas l'ouvrir). Deux gestes : de l'air au-dessus et
   au-dessous (soulèvement + ombre de 13 px), et un écart de survol CALCULÉ par
   le script sur la largeur réelle (--gh-ecart), jamais figé. */
.gh-frise{ margin:0 0 8px; padding:9px 0 16px; }
.gh-porte-maitres:hover .gh-frise img{ margin-left:var(--gh-ecart,-9px); }
.gh-porte-maitres:hover .gh-frise img:first-child{ margin-left:0; }

/* ══ [GÉNIE 2026-09-08] La refonte décidée avec Maha après le procès de la page ══
   Le hall était propre et cohérent, mais lisait comme un catalogue : quinze boîtes
   au même traitement, aucune action principale, une pièce vide (« Interviews »),
   un carrousel horizontal à la souris, un bandeau en Inter au milieu du Cormorant,
   des pictos génériques. Cinq gestes, dans l'ordre de la page :
   1. Le héros AGIT : la citation à même le marbre, puis UN lingot (le favori de
      la maison, « L'Affilié », recette exacte du skill bouton) et un lien nu.
   2. Le ruban : sur grand écran tout se voit ; le carrousel reste au téléphone.
   3. Deux rangées : LES GENS (Professeurs sombre, Thérapeutes clair, sa jumelle,
      même structure, même frise), puis LES CONTENUS (Articles, Maha TV, Charte)
      à hauteur égale. Interviews attend sa première conversation.
   4. Le bandeau des succès parle Cormorant comme le reste.
   5. Les passerelles : plus de pictos, une flèche d'or.
   marbre-academie.css (chargé en dernier) pose ses règles en !important : on
   passe au-dessus par la spécificité (.hero .x), jamais en le modifiant. */

/* 1. le héros */
.hero{ padding:84px 36px 44px; }
.hero .hero-tagline{
  display:block !important; padding:0 !important; background:none !important;
  box-shadow:none !important; border-radius:0;
}
.hero-actes{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap;
  gap:16px 32px; margin-top:34px;
}
.hero-lingot{
  font-family:'Cormorant Garamond',Georgia,serif; font-size:21px; font-weight:500;
  letter-spacing:.2px; color:#3a2708; text-decoration:none;
  font-variant-numeric:lining-nums;
  padding:18px 34px; border-radius:16px; border:1px solid rgba(160,120,64,.55);
  background:linear-gradient(135deg,#F4D58A 0%,#E8C078 42%,#C9A253 72%,#A07840 100%);
  box-shadow:0 2px 6px rgba(74,48,12,.12), 0 10px 26px rgba(74,48,12,.18), inset 0 1px 0 rgba(255,255,255,.55);
  transition:transform .3s var(--gh-ease), box-shadow .3s var(--gh-ease);
}
.hero-lingot:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 10px rgba(74,48,12,.16), 0 16px 34px rgba(74,48,12,.24), inset 0 1px 0 rgba(255,255,255,.6);
}
.hero-nu{
  font-family:Inter,system-ui,sans-serif; font-size:12.5px; font-weight:600;
  letter-spacing:.13em; text-transform:uppercase; color:var(--gh-or-profond);
  text-decoration:none; display:inline-flex; align-items:center; gap:8px;
  transition:color .25s ease;
}
.hero-nu::after{ content:'→'; transition:transform .3s var(--gh-ease); }
.hero-nu:hover{ color:var(--gh-or); }
.hero-nu:hover::after{ transform:translateX(5px); }

/* 2. le ruban : tout se voit sur grand écran */
@media (min-width:1081px){
  .gh-ruban{
    display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
    overflow:visible; scroll-snap-type:none; padding:4px 0 6px;
  }
  .gh-actu{ flex:none; width:auto; }
  .gh-points{ display:none; }
  .gh-ruban.gh-deborde{ -webkit-mask-image:none; mask-image:none; }
}

/* 3. les gens, puis les contenus */
.gh-porte-therapeutes{ padding:34px 34px 28px; }
.gh-porte-therapeutes .gh-porte-titre{ font-size:38px; }
.gh-porte-therapeutes .gh-porte-txt{ font-size:18px; }
.gh-compte-therapeutes{ color:var(--gh-or-profond) !important; }
.gh-porte-therapeutes:hover .gh-frise img{ margin-left:var(--gh-ecart,-9px); border-color:var(--gh-or); }
.gh-porte-therapeutes:hover .gh-frise img:first-child{ margin-left:0; }
.gh-porte-therapeutes:hover .gh-frise img:nth-child(odd){ transform:translateY(-5px); }
.gh-porte-therapeutes:hover .gh-frise img:nth-child(even){ transform:translateY(4px); }
.gh-portes-min{ grid-template-columns:repeat(3,1fr); align-items:stretch; }

/* 4. le bandeau des succès */
.gh-succes p{
  font-family:'Cormorant Garamond',Georgia,serif; font-size:19px; line-height:1.55;
  color:var(--gh-encre-douce);
}

/* 5. les passerelles */
.bridges .bridge-icon{ display:none; }
.bridges .bridge{ position:relative; padding:24px 60px 24px 26px; }
.bridges .bridge::after{
  content:'→'; position:absolute; right:24px; top:50%; transform:translateY(-50%);
  font-family:Inter,system-ui,sans-serif; font-size:18px; color:var(--gh-or-profond);
  transition:transform .3s var(--gh-ease);
}
.bridges .bridge:hover::after{ transform:translate(5px,-50%); }

/* 6. les écrans étroits */
@media (max-width:1080px){
  .gh-porte-therapeutes .gh-porte-titre{ font-size:33px; }
}
@media (max-width:820px){
  .gh-portes-min{ grid-template-columns:1fr; }
}
@media (max-width:720px){
  .hero{ padding:56px 22px 10px; }
}
@media (max-width:600px){
  .hero-actes{ margin-top:24px; gap:14px; }
  .hero-lingot{ width:100%; text-align:center; padding:16px 24px; font-size:20px; }
  .hero .hero-title em{ filter:drop-shadow(0 1px 0 rgba(60,40,4,.22)) !important; }
  .gh-porte-therapeutes{ padding:26px 22px 22px; }
  .gh-porte-therapeutes .gh-porte-titre{ font-size:29px; }
  .gh-porte-therapeutes .gh-porte-txt{ font-size:16.5px; }
}

/* 7. la nuit */
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .hero-nu,
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-compte-therapeutes,
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .bridges .bridge::after{
  color:var(--gh-or-vif) !important;
}

/* ── [GÉNIE 2026-09-08, 2e passe] Trois retouches vues à l'écran ─────────────
   a. La rangée des gens : les deux portes sont jumelles, elles font la même
      hauteur (stretch — l'ancien interdit visait Articles, bien plus courte).
   b. La nuit : le halo clair de marbre-academie.css derrière le titre rendait
      la citation illisible une fois sortie de sa boîte → un halo de nuit.
   c. La nuit : le bandeau des Succès restait une plaque crème au texte clair →
      la même nuit que les portes. */
.gh-portes{ align-items:stretch; }
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .hero::after{
  background:radial-gradient(ellipse at center,rgba(12,20,36,.88) 0%,rgba(12,20,36,.62) 42%,
             rgba(12,20,36,.22) 66%,transparent 78%) !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-succes{
  background-color:#101a2c !important;
  background-image:linear-gradient(180deg,rgba(20,32,54,.90),rgba(13,22,39,.94)) !important;
  border-color:rgba(212,175,55,.30) !important;
  box-shadow:0 2px 14px rgba(0,0,0,.45) !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-succes h2{
  color:#f0d98c !important; -webkit-text-fill-color:#f0d98c !important; background:none !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-succes p{
  color:#dfe6f2 !important; -webkit-text-fill-color:#dfe6f2 !important;
}
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-succes .gh-succes-kicker,
body[data-theme="dark"]:not(#g1):not(#g2):not(#g3):not(#g4):not(#g5):not(#g6) .gh-succes .gh-porte-cta{
  color:#e8b93a !important; -webkit-text-fill-color:#e8b93a !important;
}

/* ── [GÉNIE 2026-09-08, 3e passe] Des cibles qu'un doigt atteint ────────────
   Mesuré sur téléphone : « Rencontrer les professeurs » 15 px de haut, le lien
   « Les 20 articles » 19 px, les liens du pied 17 px. Le visuel ne change pas,
   la zone qui répond au doigt monte à 44 px. */
.hero-nu{ min-height:44px; }
a.gh-porte-cta{ min-height:44px; }
.foot a{ display:inline-flex; align-items:center; min-height:44px; }
