/* Déclaration de la police personnalisée */
@font-face {
  font-family: 'Hellios Gothic';
  src: url('../../-footage-/fonts/hellios-gothic.otf') format('opentype');
  font-weight: normal;
  font-style: normal;

  font-display: swap;
}

/* (AUCUN glow global sur la barre du menu) */

/* Conteneur principal */
.character-series-gallery-container {
  width: 860px;
  min-height: unset;
  margin: 20px auto;
  padding: 40px 100px 60px 100px;
  background-color: #000;
  border: 4px solid rgba(163, 147, 198, 0.3);
  box-shadow: 0 0 25px rgba(163, 147, 198, 0.25);
  border-radius: 0;
  position: relative;
}

.character-series-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -5px;
}

/* “Whose story will you unveil ?” — texte (#cfc4ff) + glow accentué */
.character-series-title {
  font-family: 'Hellios Gothic', serif;
  color: #cfc4ff; /* texte plus pâle */
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  font-weight: bold;
  text-align: center;
  margin: 20px 0 53px 0;
  width: 100%;
  text-shadow:
    0 0 6px #8ab6ff,
    0 0 14px #8ab6ff,
    0 0 28px #5f5fa0,
    0 0 48px #5f5fa0;
}

/* Galerie */
.character-series-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 56px;
  align-items: flex-start;
  margin: 0 auto;
  width: 100%;
}

.character-thumb-wrap {
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cadres des images — bordure #bbaeff ; glow au survol (bleu accueil) */
.character-thumb {
  width: 180px;
  height: 225px;
  background: #231642;
  border: 2px solid #bbaeff;                 /* bordure violet */
  box-shadow: 0 0 10px rgba(0,0,0,0);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.character-thumb img {
  width: 180px;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.character-thumb a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.character-thumb-hover {
  display: block;
  opacity: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  padding: 6px 0 2px 0;
  text-align: center;
  font-family: 'Hellios Gothic', serif;
  font-size: 1.1rem;
  color: #fff;
  background: rgba(80, 74, 120, 0.74);
  border-radius: 0;
  letter-spacing: 0.13em;
  transition: opacity 0.22s;
  pointer-events: none;
  z-index: 10;
}

.character-thumb:hover .character-thumb-hover { opacity: 1; }

.character-thumb:hover {
  box-shadow: 0 0 20px #8ab6ff, 0 0 12px #5f5fa0; /* glow au survol */
  border-color: #bbaeff;
}

/* Titres des images — texte #cfc4ff + glow accentué */
.character-thumb-label {
  margin-top: 12px;
  color: #cfc4ff; /* texte plus pâle */
  text-shadow:
    0 0 6px #8ab6ff,
    0 0 14px #8ab6ff,
    0 0 28px #5f5fa0;
  font-family: 'Hellios Gothic', serif;
  font-size: 1.12rem;
  letter-spacing: 0.07em;
  font-weight: 600;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: none;
  border: none;
  padding: 0;
}

/* Bouton du menu actif — texte #cfc4ff + glow accentué, bordure violet cadre */
nav.menu-box li a[href="the-character-series.html"] {
  color: #cfc4ff !important; /* texte plus pâle */
  text-shadow:
    0 0 6px #8ab6ff,
    0 0 14px #8ab6ff,
    0 0 28px #5f5fa0,
    0 0 48px #5f5fa0 !important;
  border-color: #bbaeff !important; /* bordure conservée */
  box-shadow: none; /* pas de glow sur la barre */
}

/* Boutons bas de page — texte #cfc4ff + bordure #bbaeff (fond inchangé) */
.go-back-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto 53px;
  padding-top: 6px;
}

.go-back-btn {
  display: inline-block;
  background: rgba(163, 147, 198, 0.14);
  color: #cfc4ff;               /* texte plus pâle */
  border: 2px solid #bbaeff;    /* bordure violet cadre */
  border-radius: 0px;
  padding: 15px 34px;
  font-family: 'Hellios Gothic', serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, text-shadow 0.2s;
  box-shadow: 0 2px 8px #130b22bb;
  text-shadow:
    0 0 6px #8ab6ff,
    0 0 14px #8ab6ff,
    0 0 28px #5f5fa0;           /* glow du texte accentué */
}

.go-back-btn:hover {
  background: #a393c6;
  color: #231642;
  border-color: #fff;
  text-shadow: none;
}

/* Switch Universe (center button + arrows) */
.switch-universe {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.switch-arrow {
  width: 75px;
  height: auto;
  display: block;
}

.switch-universe .switch-arrow:first-child {
  position: relative;
  z-index: 2;
  margin-right: -38px;
}

.switch-universe .switch-arrow:last-child {
  position: relative;
  z-index: 2;
  margin-left: -38px;
}

.character-series-gallery-container {
  width: 100%;
  max-width: 860px;
  padding: 40px 28px 60px;
}










/* ================================
   Stacking & layout (néons intacts)
   ================================ */

/* 1) Z-index : cadre au-dessus des overlays, contenu tout en haut */
.frame-container {
  position: relative;
  z-index: 2; /* au-dessus des overlays de page */
}

.digital-screen-overlay {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.digital-screen-content {
  position: relative;
  z-index: 3;
  min-height: 50vh;
}


/* 2) Les deux wraps néon couvrent toute la hauteur du conteneur */
.frame-wrap.lavender,
.frame-wrap.pink {
  position: absolute;
  inset: 0;           /* top:0; right:0; bottom:0; left:0 */
  z-index: 1;
  pointer-events: none;
}

.home-neon-frame.lavender,
.home-neon-frame.pink {
  position: absolute;
  inset: 0;
}


/* ================================
   Subtitle box (couleur lue par le script)
   ================================ */

/* Subtitle frame + text — box adoucie, texte lumineux */
.subtitle-box {
  border-color: #a9a2e8 !important; /* indigo plus doux, moins saturé */
  box-shadow:
    inset 0 0 20px rgba(169, 162, 232, 0.35),
    0 0 12px rgba(169, 162, 232, 0.45);
}

.frame-container .digital-screen-content > .content .subtitle-box .subtitle {
  color: #c5bdff !important; /* texte lumineux inchangé */
  text-shadow:
    0 0 7px  #c5bdff,
    0 0 16px #c5bdff,
    0 0 30px #9085f2,
    0 0 48px #6c63cc !important;
}





/* ================================
   The Character Series : allonger uniquement le bas des frames
   ================================ */

.frame-container {
  padding-bottom: 427px;   /* ajuste selon besoin (ex: 80/160/… px) */
  z-index: 3 !important;   /* > .wof-root (2), < menu (4) */
}


/* Coller le contenu juste sous la SubtitleBox (sans toucher aux frames) */
.frame-container .digital-screen-content > .content .subtitle-box + .categories {
  display: none !important; /* sinon: height:0; margin:0; padding:0; */
}


/* ================================
   Stacking général
   ================================ */

.wof-root {
  position: absolute;
  z-index: 2 !important; /* derrière le contenu ; menu = 4 */
}


/* ================================
   Priorité flèches > bouton SWITCH UNIVERSE
   ================================ */

.switch-universe .switch-arrow {
  position: relative;
  z-index: 6 !important;  /* au-dessus du bouton */
  pointer-events: none;   /* ne bloque pas le clic */
}

.switch-universe > a.go-back-btn {
  position: relative;
  z-index: 5 !important;  /* devant la frame, sous les flèches */
}


/* ================================
   Boutons bas de page
   ================================ */

.go-back-btn {
  background: #000 !important;
  box-shadow: 0 0 8px #9f9fd0;
  border-radius: 5px !important;
}

.go-back-container {
  margin-top: 0 !important; /* mettre négatif pour remonter */
}


/* ================================
   Galerie (container)
   ================================ */

.character-series-gallery-container{
  border-radius: 12px !important;
  overflow: hidden;                         /* rogne le contenu aux coins */
  border-width: 3px !important;           /* style défini ailleurs */
  border-color: rgba(186, 170, 255, 0.90) !important; /* violet plus lumineux */
  background-color: rgba(0, 0, 0, 0.4) !important;
  box-shadow:
    0 0 12px rgba(156, 140, 255, 0.55),
    0 0 24px rgba(156, 140, 255, 0.35) !important; /* halo violet doux */
}




/* === Harmoniser le hover des boutons bas de page (Go Back, Switch, Store)
   avec Shop Now, Watch Trailer, Unveil Other Stories === */
.go-back-btn:hover {
  background: #a393c6 !important;
  color: #231642 !important;
  border-color: #fff !important;
  text-shadow: none !important;
}




/* === Responsive — propre et ordonné (du plus large au plus petit) === */

/* ≤ 1024px */
@media (max-width: 1024px){
  .character-series-title{ font-size: 1.45rem; margin: 18px 0 48px; }
  .character-series-gallery{ gap: 28px 44px; }
}

/* ≤ 980px */
@media (max-width: 980px){
  .character-series-gallery-container{
    width: 100%;
    max-width: 860px;
    padding-left: 28px;
    padding-right: 28px;
  }
}

/* ≤ 768px */
@media (max-width: 768px){
  .character-series-title{ font-size: 1.3rem; letter-spacing: 0.1em; margin: 16px 0 42px; }
  .character-thumb-wrap{ width: 160px; }
  .character-thumb{ width: 160px; height: 200px; }
  .character-thumb img{ width: 160px; }
  .character-thumb-hover{ font-size: 1rem; }
  .character-thumb-label{ font-size: 1rem; margin-top: 10px; }
  .character-series-gallery{ gap: 24px 36px; }
  .character-series-gallery-container{ padding: 34px 22px 56px; }

  /* Allonger uniquement le bas des frames en mobile */
  .frame-container{ padding-bottom: 80px; }
}

/* ≤ 480px */
@media (max-width: 480px){
  .character-series-title{ font-size: 1.15rem; letter-spacing: 0.08em; margin: 14px 0 36px; }
  .character-thumb-wrap{ width: 140px; }
  .character-thumb{ width: 140px; height: 175px; }
  .character-thumb img{ width: 140px; }
  .character-thumb-hover{ font-size: 0.95rem; padding: 7px 0 3px; }
  .character-thumb-label{ font-size: 0.95rem; letter-spacing: 0.05em; }
  .character-series-gallery{ gap: 22px 24px; }
  .character-series-gallery-container{ padding: 28px 16px 50px; }
}

/* Contraintes de hauteur */
@media (max-height: 800px){
  .digital-screen-content{ min-height: 360px; }
}
