:root {
  --button-size: 60px;
  --menu-width: 200px;
  --submenu-gap: 0.5rem;
  --border-radius: 8px;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}


#dynamic-overlay {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.4rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  max-width: 450px;
  text-align: center;
  z-index: 9999;
  border: 2px solid rgba(231, 126, 6, 0.7);
  box-shadow: 0 20px 40px rgba(239, 177, 4, 0.6);
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

#dynamic-overlay img,
#dynamic-overlay video {
  max-width: 100%;
  border-radius: 8px;
}


@media (max-width: 480px) {
  #dynamic-overlay {
    min-width: 80%;
    padding: 5px 8px;
    top: 32%;
    font-size: 1.2rem;
  }
}


html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  
  font-family: 'Segoe UI', sans-serif;
  background: #121212;
  color: #e0e0e0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Active le snap scrolling sur la page */
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth; /* Optionnel : pour un défilement fluide */
    scrollbar-width: thin;           /* Firefox */
  scrollbar-color: #ff7a00 #111;  /* Firefox */
}

/* WebKit */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #111;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff7a00, #ffa347);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff9a1a;
}



/* Assure que le body n'a pas de marges ou de padding */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Évite le scroll horizontal */
}

.main-container {
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
}

/* Sections plein écran */
.fullscreen-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
  scroll-snap-align: always; /* Aligne le début de la section avec le haut de l'écran */
  
}


/* Header plein écran avec GIF en fond */
.header-section {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
}

/* Voile sombre pour améliorer la lisibilité du contenu */
.header-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* Vidéo en fond */
/* Vidéos */
.header-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Intro au-dessus au départ */
.intro-video {
  z-index: 1;
}

/* Vidéo de fond */
.loop-video {
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

/* Overlay sombre */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2;
}

/* Contenu */
.header-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.header-content.visible {
  opacity: 1;
  transform: translateY(0);
}


.header-content .logo {
  max-width: 300px;
  margin-bottom: 1rem;
}


.header-section .logo {
  max-width: 300px;
  margin-bottom: 1rem;
  cursor: pointer;
  pointer-events: none;
  transition: transform 0.3s;
}

.header-section .logo:hover {
  transform: scale(1.05);
}


button {
  box-shadow: none !important;
  outline: none;
  border: none;
  appearance: none;
  -webkit-appearance: none;
}

/* Boutons fixes */
.menu-container {
  position: fixed;
  z-index: 1000;
}

.left-bottom {
  bottom: 27px;
  left: 10px;
}

.right-bottom {
  bottom: 27px;
  right: 22px;
}

/* Style des boutons principaux */
.menu-button {
  width: 50px;
  height: 50px;
  background:  #f49200 ;
  border: 2px solid rgba(231, 126, 6, 0.7);
  border-radius: 8px;
  color: rgb(30, 29, 29);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-button i {
  font-size: 1.5rem;
}

/* Sous-menu principal */
.submenu {
  display: none;
  position: absolute;
  bottom: 50px;
  right: 0;
  width: 140px;
  /*background: rgba(40, 36, 36, 0);*/
  border-radius: 8px;
  padding: 0.5rem;
  flex-direction: column;
  gap: 0.5rem;
}

.submenu.active {
  display: flex;
}

/* Sous-menu principal (Menu) */
#main-submenu {
  right: -5px;
}

/* Sous-menu Shop */
#shop-submenu {
  left: -5px;
}

/* Boutons carrés dans les sous-menus */
.submenu-button {
  width: 100%;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  color: white;
  cursor: pointer;
  position: relative;
}

.submenu-button i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Couleurs des boutons */

#main-submenu .submenu-button:nth-of-type(1) { background: #d81a1a; }
#main-submenu .submenu-button:nth-of-type(2) { background: #e4cb0b; }
#main-submenu .submenu-button:nth-of-type(3) { background: #16a872; }
#main-submenu .submenu-button:nth-of-type(4) { background: #d81ac8; }   /* PEOPLE */
#main-submenu .submenu-button:nth-of-type(5) { background: #ff6b00; }   /* MTVRS */
#main-submenu .submenu-button:nth-of-type(6) { background: #45a3ff; }   /* GAMES */
#main-submenu .submenu-button:nth-of-type(7) { background: #f49200 }
#main-submenu .submenu-button:nth-of-type(8) { background: linear-gradient(270deg, #d40700c5, #c80404, #be2300d8); } /* MORE */
#main-submenu .submenu-button:nth-of-type(9) { background: #995da8; }
#main-submenu .submenu-button:nth-of-type(10) { background: #d00cc0; }
#main-submenu .submenu-button:nth-of-type(11) { background: #c68006; }



#shop-submenu .submenu-button:nth-child(1) { background: #f49200 }
#shop-submenu .submenu-button:nth-child(2) { background: #f49200 }
#shop-submenu .submenu-button:nth-child(3) { background: #f49200 }
#shop-submenu .submenu-button:nth-child(4) { background: #f49200  }
#shop-submenu .submenu-button:nth-child(5) { background: #f49200  }

/* Sous-menus imbriqués (ex: Bien-être, MTVRS) */
.nested-submenu {
  display: none;
  position: absolute;
  left: -400px;
  bottom: 5px;
  width: 380px;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  padding: 0.5rem;
  flex-direction: column;
  gap: 0.3rem;
}

.nested-submenu.active {
  display: flex;
}

/* Liens dans les sous-menus imbriqués */
.submenu-link {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  gap: 10px;
}

.submenu-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Adaptation pour mobile */
@media (max-width: 768px) {

  .menu-button {
    width: 50px;
    height: 50px;
  }

    .left-bottom {
  bottom: 10px;
 
}

  .right-bottom {
  bottom: 10px;
  right: 17px;
}
  .submenu {
    width: 45px;
    gap: 5px;
    padding: 0;
    bottom: 55px;
  }

  /* Sous-menu principal (Menu) */
#main-submenu {
  right: 2px;
}

/* Sous-menu Shop */
#shop-submenu {
  left: 2px;
}

  .submenu-button .button-text {
    display: none; /* Masquer le texte en mobile */
  }

  .submenu-button {
    justify-content: center;
    padding: 0; 
    
  }

   .submenu-button i {
    margin-right: 0;         /* ⬅️ enlève le décalage */
  }

  .nested-submenu {
    width: 220px;
    left: -240px;

  }
}


/* Boutons Language et Ranking */
.language-selector {
  position: fixed;
  top: 5px;
  right: 20px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}

.language-selector i {
  margin-right: 0.5rem;
  color: white;
}

.language-selector select {
  background: #333;
  color: white;
  border: none;
  padding: 0.3rem;
  border-radius: 3px;
}

.lang-hidden {
  display: none;
}


/* -------------------
   LEADERBOARD BUTTON
------------------- */
.ranking-button {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
}

.open-leaderboard-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(270deg, #d6a80f, #eb9412);
  border: 2px solid #e4cb0b;
  border-radius: 10px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* -------------------
   CONTAINER UNIQUE
------------------- */
.leaderboards-container {
  position: fixed;
  top: 5px;
  left: 47.7%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 1000;
}

/* PANEL LEADERBOARD */
.leaderboard-panel {
  background: rgba(0,0,0,0.9);
  border-radius: 10px;
  padding: 10px;
  color: white;
  width: 300px;
}

/* TITRES ACCORDÉON */
.lb-accordion-title {
  cursor: pointer;
  user-select: none;
  padding: 10px;
  background: #e07605;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
}

.lb-accordion-title.open {
  background: #e4cb0b;
}


#leaderboard-list {
  max-height: 220px;     /* ajuste selon ton besoin */
  overflow-y: auto;
  padding-right: 6px;   /* évite que le scroll écrase le texte */
}


/* CONTENU SCROLLABLE */
.lb-content,
.lb-content-scroll {
  background: #111;
  border-radius: 0 0 8px 8px;
  padding: 8px;
  display: none;
}

.lb-content-scroll {
  max-height: 220px;
  overflow-y: auto;
}

/* SECTION TITLES */
.lb-section-title {
  font-weight: bold;
  cursor: pointer;
  margin: 5px 0;
}

/* SECTION ARCADE */


.leaderboard-title {
  font-size: 20px;
  font-weight: bold;
  color: yellow;
  text-align: center;
  margin-bottom: 8px;
}

.leaderboard-entries div {
  font-size: 16px;
  margin: 2px 0;
}


/* MOBILE */
@media (max-width: 768px) {
  .leaderboards-container {
    flex-direction: column;
    width: 90%;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    gap: 5px;
  }

  .leaderboard-panel {
    width: 90%;
    
  }

    #leaderboard-list,
  .lb-content-scroll {
    max-height: 255px;
  }

}








/* Modale pour les iframes */
.webview-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.refresh-webview-btn {
  position: absolute;
  top: -40px;
  right: 100px; /* juste à côté du bouton fullscreen */
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 20;
}



.fullscreen-webview-btn {
  position: absolute;
  top: -40px;
  right: 50px; /* juste à côté du bouton close */
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 20;
}

.webview-content {
  width: 90%;
  height: 90%;
  max-width: 1200px;
  max-height: 800px;
  position: relative; /* important pour le loader */

  /* 👇 bordure + glow */
  border: 2px solid #ff7a00;
  border-radius: var(--border-radius);
  box-shadow:
    0 0 20px rgba(255, 122, 0, 0.4),
    0 0 60px rgba(255, 122, 0, 0.2);
}

/* iframe déjà existant */
.webview-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  position: relative;
  z-index: 1; /* derrière le loader */
}

/* Loader au-dessus de l'iframe */
.webview-loader {
  position: absolute;
  inset: 0; /* top:0; left:0; right:0; bottom:0 */
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 2rem;
  z-index: 10; /* au-dessus de l'iframe */
}




.close-webview-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* === FIX iOS iframe + touch === */

/* 1. Le loader ne doit JAMAIS capter les touches */
.webview-loader {
  pointer-events: none;
}

/* 2. L'iframe doit capter les touches */
.webview-content iframe {
  pointer-events: auto;
  touch-action: none;
}

/* 3. FIX iOS : PAS de position fixed */
@supports (-webkit-touch-callout: none) {
  .webview-popup {
    position: absolute;
  }
}





/* //////////////////// */
/* Section présentation */
/* //////////////////// */

#presentation {
  background: radial-gradient(circle at center, #0f0f0f 0%, #070707 100%);
  position: relative;
  min-height: 100vh; /* desktop */
}

/* Conteneur principal */
.presentation{
  width: 100%;
  max-width: 1200px;
  display: flex;
  gap: 3rem;
  align-items: center;
}

/* Colonne texte */
.presentation-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Colonne vidéo */
.antela-spotlight {
  flex: 1;
  display: flex;
  justify-content: center;
}

.presentation p {
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.presentation a {
  text-decoration: none;
}

.presentation a:hover {
  text-decoration: underline;
}

/* Player vidéo */
.presentation-player {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.presentation-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Annule le fullscreen sur mobile */
@media (max-width: 900px) {
  #presentation {
    min-height: auto;       /* hauteur naturelle */
    height: auto;           /* ne pas forcer 100vh */
    display: block;         /* annule le flex si besoin */
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .presentation {
    flex-direction: column;
    text-align: center;
    align-items: center;    /* centre horizontalement le contenu */
  }

  .presentation-text {
    width: 100%;
    text-align: center;
  }

  .antela-spotlight {
    width: 100%;
  }

  .presentation-player {
    max-width: 100%;
  }
}

/* ===============================
   SECTION 3 → Mini-vidéos
=============================== */
/* Section 3 particules */

#section3 {
  /* on annule la logique fullscreen */
  justify-content: flex-start !important;
  align-items: center;

  min-height: auto !important;
  height: auto;

  padding-top: 4rem;
  padding-bottom: 4rem;

  position: relative;
  background: radial-gradient(circle at center, #0f0f0f 0%, #070707 100%);
  overflow: visible; /* 🔑 CRUCIAL */
}


#section3 > *:not(#particles-section3) {
  position: relative;
  z-index: 2;
}

#section3 h2 {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  z-index: 2;
  position: relative;
}


@media (max-width: 768px) {
  #section3 {
    min-height: auto;        /* 🔑 laisse la section respirer */
    padding-top: 4rem;       /* espace avant le titre */
    padding-bottom: 4rem;    /* espace après le contenu */
    justify-content: flex-start;
  }
}



#particles-section3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;  /* ← Derrière le contenu (z-index: 2 pour .mini-videos-grid si besoin) */
  pointer-events: none;
}


.badge-fini {
  display: inline-block;
  margin-left: 12px;
  margin-bottom: 40px;
  padding: 4px 10px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  background: #db2a0e;
  color: #fff;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(168, 4, 4, 0.8);
}


/* Grid principal */
.mini-videos-grid {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 2rem auto;  /* centrer horizontalement */
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr; /* mobile */
  padding: 0;                 /* enlever padding horizontal qui cause décalage */
  box-sizing: border-box;     /* s'assure que padding/border n’ajoute pas de largeur */
  z-index: 2;
}


/* Desktop : 3 miniatures par ligne */
@media (min-width: 900px) {
  .mini-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Très grand écran : 4 miniatures par ligne */
@media (min-width: 1600px) {
  .mini-videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Pour petits écrans (mobile) */
@media (max-width: 768px) {
  .mini-videos-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem; /* si tu veux un peu d’espace sur les côtés */
    justify-items: center; /* 🔑 centre le contenu des cellules */
  }

  .mini-video {
    width: 100%;  /* occupe toute la largeur disponible */
    max-width: 300px; /* limite la taille max pour éviter les très grandes vidéos */
  }
}

/* Container mini-vidéo */
.mini-video {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  padding: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.3s ease;
  aspect-ratio: 16 / 9;
}

.mini-video:hover {
  transform: scale(1.03);
}

/* Vidéo */
.mini-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Overlay complet */
.mini-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  pointer-events: none; /* laisse la vidéo cliquable */
  transition: all 0.3s ease;
}

/* Icône Replay */
.overlay-icon {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 8px #000;
  transition: all 0.3s ease;
}

/* Bandeau en bas */
.overlay-bottom {
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  padding: 12px 10px;
  border-radius: 0 0 10px 10px;
  transition: all 0.3s ease;
}

/* Titre */
.overlay-title {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 2px;
}

/* Sous-titre */
.overlay-subtitle {
  font-size: 0.85rem;
  color: #ddd;
}

/* Effets hover */
.mini-video:hover .overlay-icon,
.mini-video:hover .overlay-bottom {
  opacity: 1;
}


/* Section 1 particules */
#particles-presentation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* derrière le texte */
}

#presentation .presentation {
  position: relative;
  z-index: 2; /* au-dessus des particules */
}




/* Section 2 */

#section2 {
  position: relative;
  width: 100%;
  height: 100vh; /* plein écran */
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #0f0f0f 0%, #070707 100%);
  overflow: hidden;
}

.bg-img {
  position: absolute;  /* reste derrière tout le contenu */
  top: 40%;
  left: 40%;
  width: 300px;          /* tu peux ajuster taille */
  height: auto;        /* conserve ratio */
  opacity: 0.3;        /* transparence */
  z-index: 1;          /* derrière le contenu */
  pointer-events: none; /* permet de cliquer sur le contenu par dessus */
}


#section2 h1,
#section2 .central-glow {
  position: relative;
  z-index: 10;
}



/* Section 2 (fenetre flottantes) */

.floating-box {
  position: relative;       /* flotte sur la section */
  background: rgba(255, 255, 255, 0.1);  /* semi-transparent */
  color: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);  /* effet flou derrière */
  max-width: 180px;
  text-align: center;
  font-size: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-box-group {
  position: absolute;
}

/* Effet hover si voulu */
.floating-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

/* Desktop : positions précises des floating-boxes */
@media (min-width: 769px) {
  /* Conteneur parent doit être position: relative pour que les absolues se réfèrent à lui */
  #section2 {
    position: relative;
  }
}
/* Desktop */
@media (min-width: 769px) {

  .floating-boxes .floating-box-group:nth-child(1) {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
  }

  .floating-boxes .floating-box-group:nth-child(2) {
    top: 35%;
    left: 20%;
  }

  .floating-boxes .floating-box-group:nth-child(3) {
    top: 35%;
    right: 20%;
  }
}


@media (max-width: 768px) {

    .bg-img {
  left: 20%;
}

   .floating-box-group {
    position: relative;     /* 🔑 SORT de l’absolu */
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .floating-boxes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .floating-box {
    position: relative;
    transform: none;
    width: 100%;
    max-width: 260px;
  }
}





/* Conteneur central */
.central-glow {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Point lumineux au centre */
.pulse-point {
  width: 30px;
  height: 30px;
  background: #ff7a00;
  border-radius: 50%;
  box-shadow: 0 0 20px #ff7a00, 0 0 40px #ff7a00, 0 0 60px #ff7a00;
  animation: pulse 2s infinite ease-in-out;
}


/* Pulse-point cliquable */
.pulse-point.clickable {
  cursor: pointer;
}




/* POPUP overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;          /* caché par défaut */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* POPUP contenu */
.popup-content {
  background: #111;
  color: #fff;
  padding: 2rem;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 40px rgba(255,165,0,0.5);
  animation: popup-show 0.3s ease forwards;
}

/* Animation */
@keyframes popup-show {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Bouton fermeture */
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

/* Liens */
.popup-content a {
  color: #ff7a00;
  font-weight: bold;
  text-decoration: none;
}
.popup-content a:hover {
  text-decoration: underline;
}

/* Boutons Tip Coffee */
.tip-btn {
  margin: 0.5rem;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #ff7a00;
  color: #fff;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tip-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff7a00;
}

/* ===============================
   Pop-up ETH/MANA/USDC/USDT
=============================== */
#eth-amount-popup {
  display: none; /* caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#eth-amount-popup .popup-content {
  background: #111;
  border-radius: 12px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 40px rgba(255,165,0,0.5); /* glow orange comme les autres */
}

#eth-amount-popup .popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Input ETH */
#eth-amount-popup input[type="number"] {
  width: 80%;
  padding: 8px 10px;
  margin: 15px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  text-align: center;
}

#eth-amount-popup select {
  width: 80%;
  padding: 8px 10px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  text-align: center;
  background: #111;
  color: #fff;
  appearance: none; /* enlève style natif */
  cursor: pointer;
}

#eth-amount-popup select option {
  background: #111;
  color: #fff;
}


/* Si tu veux un style spécifique bouton pour ETH */
#eth-amount-popup button.tip-btn {
  background: #ff7a00; /* couleur orange comme les autres */
  color: #fff;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;         /* prend toute la largeur disponible */
  max-width: 300px;    /* optionnel, limite pour pas que ce soit trop large sur desktop */
  margin: 0.5rem auto; /* centre le bouton */
  display: block;  
}

#eth-amount-popup button.tip-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff7a00;
}



#btc-qr img {
  width: 180px;
  height: 180px;
  margin: 1rem auto;
  display: block;
}

#copy-btc-btn {
  background: #ff7a00;
  color: #000;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

#btc-address-text {
  word-break: break-all;        /* coupe la chaîne si nécessaire */
  overflow-wrap: anywhere;      /* autorise le retour à la ligne n’importe où */
  text-align: center;
  font-size: 0.9rem;            /* optionnel mais souvent utile en mobile */
}


/* Mobile : popup moins large */
@media (max-width: 480px) {
  .popup-content {
    max-width: 280px; /* au lieu de 400px */
    padding: 1.5rem;  /* un peu moins de padding */
  }

  #eth-amount-popup input,
  #eth-amount-popup select,
  #tip-popup .tip-options button {
    width: 90%;       /* plus adapté à l'écran mobile */
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  #eth-amount-popup .popup-content {
    max-width: 280px; /* réduit la popup */
    padding: 1.5rem;
  }

  #eth-amount-popup input[type="number"],
  #eth-amount-popup select {
    width: 100%;           /* prend toute la largeur dispo */
    box-sizing: border-box; /* inclut padding et bordure */
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  #eth-amount-popup button.tip-btn {
    width: 80%;
    font-size: 0.9rem;
    padding: 0.6rem 0;
  }
}





/* Halo qui s'étend autour */
.pulse-halo {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 122, 0, 0.4);
  border-radius: 50%;
  filter: blur(20px);
  animation: expandHalo 3s infinite ease-in-out;
  z-index: -1;
}

/* Animation du point central */
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px #ff7a00, 0 0 40px #ff7a00, 0 0 60px #ff7a00; }
  50% { transform: scale(1.3); box-shadow: 0 0 30px #ff7a00, 0 0 60px #ff7a00, 0 0 90px #ff7a00; }
}

/* Animation du halo */
@keyframes expandHalo {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.8); opacity: 0.2; }
}


.glow-particle {
  position: absolute;
  background: #ff7a00;
  border-radius: 50%;
  opacity: 0.7;
  animation: particlePulse 3s infinite ease-in-out;
}

@keyframes particlePulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 1; }
}


/* SECTION REPLAY (section jumelle) */
#section-replay {
  position: relative;
  width: 100%;
  height: 100vh; /* Plein écran comme les autres */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #0f0f0f 0%, #070707 100%);
  overflow: hidden;
}

#particles-section-replay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

#section-replay h1 {
  position: relative;
  z-index: 10;
  margin-bottom: 2rem; /* Espace sous le titre */
  text-align: center;
}

.replay-text {
  max-width: 600px;  /* largeur max du bloc */
  margin: 0 auto;    /* centre horizontalement */
  line-height: 1.4;  /* espacement entre les lignes */
  margin-bottom: 30px;
  text-align: center;
}


/* Fenêtre replay (iframe fixe, non interactive) */
.replay-window {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 800px; /* Limite pour grands écrans */
  aspect-ratio: 16 / 9;   /* 👈 clé de la proportion */
  border: 2px solid #ff7a00; /* Bordure orange comme les autres éléments */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.4);
  cursor: pointer; /* Indique que la fenêtre est cliquable */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.replay-window:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(255, 122, 0, 0.6);
}

.replay-window iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none; /* Bloque toute interaction (clics, scroll, etc.) */
}

@media (max-width: 768px) {
  .replay-window {
    width: 90%;
    height: 70vh;        /* 👈 PLUS HAUT */
    aspect-ratio: auto; /* on libère le ratio */
    overflow: hidden;   /* cache les bords */
  }

  .replay-window iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;        /* 👈 zoom horizontal */
    height: 100%;
    transform: translate(-50%, -50%);
  }

  .replay-text {
    width: 80%;
}
}



/* SECTION LIVE (nouvelle section) */
#section-live {
  position: relative;
  width: 100%;
  height: 100vh; /* Plein écran comme les autres */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #0f0f0f 0%, #070707 100%);
  overflow: hidden;
}

#particles-section-live {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

#section-live h1 {
  position: relative;
  z-index: 10;
  margin-bottom: 2rem; /* Espace sous le titre */
  text-align: center;
}

.live-text {
  max-width: 600px;  /* largeur max du bloc */
  margin: 0 auto;    /* centre horizontalement */
  line-height: 1.4;  /* espacement entre les lignes */
  margin-bottom: 30px;
  text-align: center;
}


/* Fenêtre live (iframe fixe, non interactive) */
.live-window {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 800px; /* Limite pour grands écrans */
  height: 80%;
  max-height: 450px; /* Limite pour éviter trop grand */
  border: 2px solid #ff7a00; /* Bordure orange comme les autres éléments */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.4);
  cursor: pointer; /* Indique que la fenêtre est cliquable */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-window:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(255, 122, 0, 0.6);
}

.live-window iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none; /* Bloque toute interaction (clics, scroll, etc.) */
}

/* Mobile : ajuste la taille */
@media (max-width: 768px) {
  .live-window {
    width: 90%;
    height: 60%; /* Plus petit sur mobile */
  }

  .live-text {
    width: 80%;
}
}

#section4 {
  position: relative;  /* ← Important : confine les absolutes à cette section */
  background: radial-gradient(circle at center, #0f0f0f 0%, #070707 100%);
  display: flex;              /* active le flexbox */
  flex-direction: column;     /* empile les titres verticalement */
  justify-content: center;    /* centre verticalement */
  align-items: center;   /* ✅ CENTRAGE HORIZONTAL */
  text-align: center;    /* ✅ TEXTE MULTILIGNE CENTRÉ */
}


#particles-section4 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;  /* ← Derrière le contenu (z-index: 2 pour .mini-videos-grid si besoin) */
}

#section4 h1,
#section4 .central-glow {
  position: relative;
  z-index: 10;
}


#section5 {
  position: relative;
  width: 100%;
  height: 100vh; /* plein écran */
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #0f0f0f 0%, #070707 100%);
  overflow: hidden;
}

#particles-section5 {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.gallery {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  text-align: center;
}

.featured-block {
  max-width: 880px;
  margin: 0 auto;
  justify-content: center; /* centre horizontalement */
}

.featured-block img {
  width: 100%;
  max-height: 440px;          /* 👈 clé */
  object-fit: contain;        /* pas de crop violent */
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.featured-label {
  margin-bottom: 50px;
}


#section6 {
  position: relative;
  width: 100%;
  height: 100vh; /* plein écran */
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #0f0f0f 0%, #070707 100%);
  overflow: hidden;
}

#particles-6 {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.carousel1 {
  position: relative;
  overflow: hidden;
  
   width: 100%; /* ne prend que la place définie par max-width */
    max-width: 720px;     /* ajuste selon ton goût (600–900px) */
  margin: 0 auto;       /* ✅ centre horizontalement */
 
}

.carousel1-track1 {
  display: flex;
  transition: transform 0.4s ease;
  gap: 1rem;
  justify-content: flex-start; /* ✅ */
}


.carousel1-item1 {
  flex: 0 0 200px; /* ✅ largeur fixe */
  width: 200px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}


.carousel1-item1 img {
  width: 100%;
  height: auto; /* conserve le ratio de l’image */
  display: block;
  object-fit: cover; /* coupe légèrement si nécessaire pour remplir */
}

/* Boutons restent identiques */
.carousel1-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #000000aa;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.2s;
}

.carousel1-btn:hover {
  background: #ffffff22;
}

.carousel1-btn.prev {
  left: 10px;
}

.carousel1-btn.next {
  right: 10px;
}


.carousel {
  position: relative;
  overflow: hidden;
  
   width: 100%; /* ne prend que la place définie par max-width */
  
 
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 1rem;
}

.carousel-item {
  flex: 0 0 auto; /* ne pas rétrécir automatiquement */
  width: 100%;     /* prend 100% du parent par défaut */
  max-width: 200px; /* largeur max pour desktop */
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.carousel-item img {
  width: 100%;
  height: auto; /* conserve le ratio de l’image */
  display: block;
  object-fit: cover; /* coupe légèrement si nécessaire pour remplir */
}

.carousel1-item1 {
  position: relative;
}

.winner-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  text-align: center;
  pointer-events: none;
}

/* Boutons restent identiques */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #000000aa;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.2s;
}

.carousel-btn:hover {
  background: #ffffff22;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* ----- Style par défaut (PC/Desktop) ----- */
.opensea-button-container {
  text-align: center; /* centre le bouton */
  margin: 1rem 0;
  z-index: 900;
}

.opensea-button {
  display: inline-block;
  width: 240px; /* Largeur fixe */
  background: linear-gradient(135deg, #8247e5, #2a0d5b);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.opensea-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
  background: linear-gradient(135deg, #9a65ff, #3c1b80);
}


/* En dessous de 768px, on empile les boutons */
@media (max-width: 768px) {

  .opensea-button {
    max-width: 220px;     /* largeur fixe pour mobile */
    width: 80%;          /* permet de s’adapter au texte si nécessaire */
    padding: 0.1rem 0.1rem; /* réduit l’épaisseur du bouton */
    font-size: 0.8rem;   /* texte un peu plus petit */
  }

}   

.badge-yellow {
  display: inline-block;
  margin-left: auto;
  margin-top: 20px;
  padding: 4px 10px;
  font-size: 1rem;
  font-weight: bold;
  max-width: 240px;
  border-radius: 6px;
  background: #d3bc0b;
  color: #272525;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(165, 130, 3, 0.8);
}

.badge-tv {
  display: inline-block;
  margin-left: auto;
  padding: 4px 10px;
  font-size: 1rem;
  font-weight: bold;
  width: 240px;
  border-radius: 6px;
  background: #a62403;
  color: #e6e6e6;
  animation: blink-tv 1.5s infinite;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(79, 1, 42, 0.8);
}


.badge-purple {
  display: inline-block;
  margin-left: auto;
  margin-bottom: 40px;
  padding: 4px 10px;
  font-size: 1rem;
  font-weight: bold;
  width: 240px;
  border-radius: 6px;
  background: #9e0bd3;
  color: #272525;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(165, 130, 3, 0.8);
}



.partners-section {
  text-align: center;
  padding: 20px 0; /* moins haut que 40px, mais plus confortable que 10px */
  background-color: #000000;  
  color: #fff; /* pour que le texte soit visible sur fond noir */
}

.partners-section h2 {
  font-size: 1.8rem; /* un peu plus petit pour réduire la hauteur globale */
  margin-bottom: 20px; /* réduit l'espace sous le titre */
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
  margin-bottom: 20px; /* marge sous les logos sur PC */
}

.partners-logos img {
  max-height: 60px; /* réduit un peu la taille pour moins de hauteur globale */
  width: auto;
  transition: transform 0.3s;
}

.partners-logos img:hover {
  transform: scale(1.1);
}

/* Optionnel : ajustement responsive pour les petits écrans */
@media (max-width: 768px) {
  .partners-section h2 {
    font-size: 1.5rem;
  }
  .partners-logos img {
    max-height: 50px;
  }
  .partners-logos {
    gap: 20px;
    margin-bottom: 15px;
  }
}



.site-footer {
  width: 100%;
  height: 70px; /* ✅ hauteur FIXE */
  background: #0f0f0f;
  border-top: 1px solid rgba(255, 122, 0, 0.25);

  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-inner {
  width: 100%;
  max-width: 1200px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.6rem;
  text-align: center;

  color: #aaa;
  font-size: 0.85rem;
}

.link-reglement {
  color: #ff7a00;
  text-decoration: none;
  font-weight: 600;
}

.link-reglement:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  

  .site-footer {

  min-height: 70px;    /* jamais plus petit */
  flex-shrink: 0;      /* empêche le footer de rétrécir */

}
  .footer-inner {
    padding-left: 70px;  /* espace bouton gauche */
    padding-right: 70px; /* espace bouton droit */
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-text {
    white-space: normal;
    line-height: 1.2;
  
  }
}


