/* =====================================================================
   Haut des pages (Annonces, Album RP, Recrutement, État, Clips, Règlement,
   Réseaux, Staff, Boutique). Validé par Natole le 2026-11-18.
   Grande photo nette à droite (photo de l'Album RP au hasard, bandeau.js),
   qui se fond à gauche dans le fond de la page où se trouve le texte,
   et s'efface vers le bas. Sur téléphone : photo en haut, texte dessous.
   Avec les effets du site (labo-effets.js) la photo est dans .lx-pw.
   Balisage :
   <header class="phero ph-e" id="top" style="--phero-img:url(...)">
     <div class="ph-in rg-head-in">
       <div class="ph-fil">Accueil / Page</div> <h1> <p class="lead">
       <div class="ph-btns">…</div> <div class="ph-infos">…</div>
     </div>
   </header>
   ===================================================================== */
.phero.ph-e { position: relative; isolation: isolate; overflow: hidden; text-align: left; border-bottom: 0; padding: 0; min-height: 620px; display: flex; align-items: flex-end; }
.phero.ph-e::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--phero-img) 70% 50% / cover no-repeat; }
.lx .phero.ph-e::before { display: none; }
.phero.ph-e .lx-pb { inset: 0; background-position: 70% 50%; }
.phero.ph-e .lx-pw, .phero.ph-e::before {
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.phero.ph-e::after {
  content: ''; position: absolute; inset: 0; z-index: -1; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, #000 90%, transparent 100%);
  background:
    linear-gradient(90deg, #060a12 0%, #060a12 30%, rgba(6, 10, 18, .82) 42%, rgba(6, 10, 18, .25) 62%, rgba(6, 10, 18, 0) 78%),
    linear-gradient(180deg, rgba(6, 10, 18, .5) 0%, rgba(6, 10, 18, 0) 18%, rgba(6, 10, 18, 0) 60%, rgba(6, 10, 18, .7) 100%);
}
html[data-mode="clair"] .phero.ph-e::after {
  background: linear-gradient(90deg, rgba(6, 10, 18, 1) 0%, rgba(6, 10, 18, 1) 36%, rgba(6, 10, 18, .95) 46%, rgba(6, 10, 18, .45) 66%, rgba(6, 10, 18, 0) 84%);
}

.ph-e .ph-in { position: relative; width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 60px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; flex-wrap: nowrap; gap: 0; max-width: none; }
.ph-e .ph-in > * { max-width: 560px; }
.ph-fil { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: #93a2b4; }
.ph-fil a { color: inherit; text-decoration: none; }
.ph-fil a:hover { color: var(--text); }
.ph-fil span[aria-current] { color: #e6ebf1; }
.ph-fil i { font-style: normal; opacity: .5; }
.ph-e .ph-in > h1 { max-width: 860px; }
.phero.ph-e h1 { margin: 14px 0 0; line-height: 1.02; font-size: clamp(2.4rem, 4.6vw, 4.1rem); letter-spacing: .01em; }
.phero.ph-e .lead { margin: 16px 0 0; max-width: 540px; font-size: 1.02rem; line-height: 1.65; color: #c0cad6; }
.ph-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ph-btns .btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; font-size: .9rem; }
.ph-btns .btn:not(.primary) { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.ph-btns .btn:not(.primary):hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.ph-infos {
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 26px; padding-top: 22px; align-self: stretch;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; color: #9aa8b9;
}
.ph-infos b { color: var(--text); }
.ph-infos a { color: inherit; text-decoration: none; transition: color .2s; }
.ph-infos a:hover { color: var(--text); }
.ph-infos > [hidden] { display: none; }
.ph-infos .live { display: inline-flex; align-items: center; gap: 8px; }
.ph-infos .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62, 207, 142, .18); }

@media (max-width: 760px) {
  .phero.ph-e { display: block; min-height: 0; padding: 70px 0 28px; }
  .phero.ph-e .lx-pw, .phero.ph-e::before, .phero.ph-e::after { left: 0; bottom: auto; height: 340px; }
  .phero.ph-e .lx-pw, .phero.ph-e::before, .phero.ph-e::after {
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .phero.ph-e::after { background: linear-gradient(180deg, rgba(6, 10, 18, .45) 0%, rgba(6, 10, 18, 0) 25%, rgba(6, 10, 18, .4) 70%, rgba(6, 10, 18, .8) 100%); }
  html[data-mode="clair"] .phero.ph-e::after { background: linear-gradient(180deg, rgba(6, 10, 18, 0) 50%, rgba(6, 10, 18, 1) 100%); }
  .ph-e .ph-in { width: calc(100% - 36px); padding: 210px 0 0; }
  .phero.ph-e h1 { font-size: clamp(1.5rem, 6.8vw, 2.5rem); }
  .ph-btns .btn { flex: 1 1 auto; justify-content: center; min-height: 46px; }
}
