/* pages.css - dark */
body.hall{
background-image: radial-gradient(circle at 20% 20%, rgba(212,175,55,0.04), transparent 10%), url(''); 
background-color:var(--bg); background-size:cover;background-attachment:fixed;
}

h1{
color:var(--accent);margin-top:0
}

.hero{
padding:2rem 1rem;
border-left:4px solid rgba(212,175,55,0.12);
}

.section{
margin-bottom:1.5rem
}

.card{
background:rgba(255,255,255,0.02);
padding:1rem;border-radius:6px;
margin-bottom:1rem
}

.fond-etoiles {
  background-image: url("../images/fonds/fond_etoiles.jpg");
  background-size: cover;          /* L’image couvre tout l’écran */
  background-position: center;     /* Centrée */
  background-attachment: fixed;    /* Reste fixe pendant le scroll */
  background-repeat: no-repeat;    /* Pas de répétition */
  color: #fff;                     /* Texte en blanc pour contraster */
}

article {
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
  border-radius: 12px;
}

/* Bouton retour en haut – version sans fond ni cerclage */
.back-to-top {
  position: fixed;
  top: 50%;                       /* Position verticale milieu */
  right: 25px;                    /* Décalage à droite */
  transform: translateY(-50%);    /* Centrage vertical */
  width: 60px;                    /* Taille cliquable */
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  background: none;               /* ❌ plus de fond */
  border: none;                   /* ❌ plus de bordure */
  border-radius: 0;               /* ❌ plus de cercle */

  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 9999;
}

/* Image de l’icône uniquement */
.back-to-top img {
  width: 200%;                    /* L’image occupe tout le bouton */
  height: 200%;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.5)); /* Ombre dramatique steampunk */
  transition: transform .3s;
}

/* Hover : léger zoom */
.back-to-top:hover img {
  transform: scale(1.15);
}

/* Apparition quand on scroll */
.back-to-top.active {
  opacity: 1;
  pointer-events: auto;
}


/* ⭐⭐⭐ ALPHABET ⭐⭐⭐ */
.alphabet-nav {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.alphabet-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}

.alphabet-nav a {
  display: inline-block;
  padding: .35rem .6rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s ease;
}

.alphabet-nav a:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}


/* === TRANSITION FAILLE (FLUO/FLU) === */

.page-transition {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(0px);
  background: rgba(0, 0, 0, 0);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

.page-transition.active {
  animation: transition-flou 1.4s ease forwards;
}

@keyframes transition-flou {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px);
    background: rgba(0, 0, 0, 0);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.4);
  }
}

/* === ÉTAT D’ARRIVÉE (PAGE SUIVANTE) === */

body.page-floue {
  filter: blur(12px);
  opacity: 0.4;
}

body.page-floue.page-visible {
  animation: retour-realite 1.6s ease forwards;
}

@keyframes retour-realite {
  to {
    filter: blur(0);
    opacity: 1;
  }
}


