/* =========================================
    BACKGROUND LAYERS
    Positionnement des décorations d'arrière-plan
========================================= */

/* Conteneur global des décorations */
.bg-layer-wrapper {
  position: relative;
  max-width: 100%;
  height: 0;
}

/* Images décoratives placées en absolu à différents niveaux de la page */
.bg-layer-wrapper > .bg-shape:nth-of-type(1) {
  position: absolute;
  top: 700px;
  left: 10vw;
  object-fit: cover;
  z-index: -1;
}

.bg-layer-wrapper > .bg-shape:nth-of-type(2) {
  position: absolute;
  top: 700px;
  right: 0;
  object-fit: cover;
  z-index: -1;
}

.bg-layer-wrapper > .bg-shape:nth-of-type(3) {
  position: absolute;
  top: 900px;
  left: 5vw;
  object-fit: cover;
  z-index: -1;
  width: 1000px;
  height: auto;
}

.bg-layer-wrapper > .bg-shape:nth-of-type(4) {
  position: absolute;
  top: 2150px;
  left: 25vw;
  object-fit: cover;
  z-index: -1;
}

.bg-layer-wrapper > .bg-shape:nth-of-type(5) {
  position: absolute;
  top: 2000px;
  left: 0;
  object-fit: cover;
  z-index: -1;
}

.bg-layer-wrapper > .bg-shape:nth-of-type(6) {
  position: absolute;
  top: 3250px;
  left: 0vw;
  object-fit: cover;
  z-index: -1;
}

/* =========================================
    SECTION HERO (Bannière Principale)
========================================= */

/* Conteneur Hero */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)),
    url("../assets/background/background-hero.png");
  background-color: var(--text-black);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  min-height: 85vh;
}

/* Logo géant au centre du Hero */
.hero-logo {
  height: 433px;
  width: 636px;
}

/* Titre principal */
.hero-title {
  font-family: var(--font-rugen);
  font-size: var(--text-h2);
  font-weight: var(--weight-expanded);
  color: var(--text-white);
  text-align: center;
  margin-top: 20px;
  text-shadow: var(--shadow-drop);
  width: 640px;
}

/* Style du span dans le titre */
.hero-title span {
  color: var(--primary-1);
  font-size: 43px;
}

/* Bouton d'action (CTA) */
.hero-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 91px;
  background-color: var(--bg-button);
  color: var(--text-black);
  font-family: var(--font-lato);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  text-decoration: none;
  border-radius: 8px;
  box-shadow: var(--shadow-drop);
}

/* =========================================
    SECTION SPONSORS
========================================= */

/* Barre des logos sponsors */
.sponsors-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 96px;
  padding: 10px 0;
  max-width: 1400px;
  margin: 0 auto;
}

/* Dimensions spécifiques pour chaque logo de sponsor (nth-of-type) */
.sponsors-bar > .sponsor-img:nth-of-type(1) {
  height: 48px;
  width: 232px;
}
.sponsors-bar > .sponsor-img:nth-of-type(2) {
  height: 37px;
  width: 232px;
}
.sponsors-bar > .sponsor-img:nth-of-type(3) {
  height: 53px;
  width: 232px;
}
.sponsors-bar > .sponsor-img:nth-of-type(4) {
  height: 65px;
  width: 97px;
}
.sponsors-bar > .sponsor-img:nth-of-type(5) {
  height: 29px;
  width: 213px;
}

/* =========================================
    SECTION LIVE (Streaming)
========================================= */

/* Conteneur global de la section Live */
.live-section {
  max-width: 1400px;
  display: block;
  margin: 0 auto;
}

/* En-tête "Live" avec le point rouge */
.live-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

/* Titre H2 "Live" */
.live-header > h2 {
  font-family: var(--font-rugen);
  font-size: var(--text-h2);
  font-weight: var(--weight-expanded);
  color: var(--text-white);
}

/* Point indicateur de statut */
.live-header > .live-status-dot {
  display: block;
  background-color: #ff0000;
  box-shadow: var(--shadow-drop);
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

/* Layout principal du contenu Live (Gauche: Info, Droite: Vidéo) */
.live-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 50px;
}

/* Colonne de gauche (Profil et Planning) */
.live-info-col {
  width: 100%;
}

/* Bloc Profil du Streamer */
.streamer-profile {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

/* Avatar du streamer */
.streamer-avatar {
  position: relative;
  top: 5px;
  height: 64px;
  width: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-drop);
}

/* Détails textuels du profil */
.streamer-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0px;
}

/* Texte standard dans les détails */
.streamer-details > p {
  font-family: var(--font-lato);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-white);
}

/* Ligne contenant le Nom + Logo Twitch */
.streamer-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Nom du streamer */
.streamer-name-row > h3 {
  font-family: var(--font-rugen);
  font-size: var(--text-h1);
  font-weight: var(--weight-expanded);
  color: var(--text-white);
  text-transform: uppercase;
  margin: 0;
  line-height: 0.9;
  text-shadow: var(--shadow-drop);
}

/* Icône de la plateforme */
.icon-platform {
  position: relative;
  top: 5px;
  height: 50px;
}

/* Biographie du streamer */
.streamer-bio {
  font-family: var(--font-lato);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text-white);
  width: 630px;
}

/* Tableau des horaires de stream */
.live-schedule-table {
  border-collapse: collapse;
  margin-top: 25px;
  color: var(--text-white);
  font-family: var(--font-lato);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

/* Alignement vertical des cellules */
.live-schedule-table td {
  vertical-align: top;
}

/* Espacement de la première colonne */
.live-schedule-table td:first-child {
  padding-right: 20px;
}

/* Colonne de droite */
.live-video-col {
  height: 100%;
  width: 100%;
}

/* Image de prévisualisation du stream */
.stream-preview-img {
  position: relative;
  top: 10px;
  border-radius: 7px;
  box-shadow: var(--shadow-drop);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
    SECTION INFO GRID (Créateurs & Événements)
========================================= */

/* Grille principale 2 colonnes */
.info-grid-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Badge de titre avec dégradé en fond */
.title-badge {
  position: relative;
  background: linear-gradient(
    90deg,
    rgba(20, 20, 20, 1) 0%,
    rgba(5, 5, 5, 0) 100%
  );
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.8);
  padding: 15px 20px;
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  margin-top: 30px;
  margin-bottom: 20px;
  width: 80%;
  border-radius: 7px 0 0 7px;
}

/* Bordure gauche colorée sur le titre */
.title-badge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  border-radius: 7px 0 0 7px;
  background: linear-gradient(180deg, #0d687b 0%, #32f8ba 52%, #fefefb 100%);
}

/* Typographie du titre dans le badge */
.title-badge > h2 {
  font-family: var(--font-rugen);
  font-size: var(--text-h2);
  font-weight: var(--weight-expanded);
  color: var(--text-white);
}

/* Style générique des images dans les grilles médias */
.media-grid img,
.media-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Layout Créateurs */
.creators-layout {
  display: grid;
  grid-template-columns: 330px 330px;
  grid-template-rows: 160px 160px;
  gap: 20px;
}

/* Layout Événements */
.events-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hauteur spécifique images événements */
.events-layout img {
  height: 160px;
  width: 100%;
}

/* Conteneur des boutons sous les sections */
.btn-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Style des boutons "Conocer" / "Descubrir" */
.btn-info {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 11px 82px;
  background-color: var(--bg-button);
  color: var(--text-black);
  font-family: var(--font-lato);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  text-decoration: none;
  border-radius: 8px;
  box-shadow: var(--shadow-drop);
}

/* =========================================
    SECTION MATCH (Résultats)
========================================= */

/* Grille horizontale des cartes de match */
.match-results-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 25px;
}

/* Carte de match individuelle */
.match-card {
  background-color: var(--bg-card);
  border-radius: 7px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-inset);
}

/* Exception pour la 1ère carte */
.match-card:nth-of-type(1) {
  background-color: transparent;
  border-radius: 0px;
  box-shadow: none;
}

/* En-tête de la carte */
.match-header {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-white);
  text-transform: uppercase;
  font-family: var(--font-lato);
  font-weight: var(--weight-bold);
}

/* Typographie spécifique des lignes de l'en-tête */
.match-header > p:nth-of-type(1) {
  font-size: var(--text-base);
  margin-bottom: 4px;
}
.match-header > p:nth-of-type(2) {
  font-size: var(--text-sm);
  margin-bottom: 4px;
}

/* Conteneur des détails du match (Équipe vs Équipe) */
.match-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Bloc Équipe */
.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 33%;
}

/* Logo de l'équipe */
.team-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Nom de l'équipe */
.team-name {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-rugen);
  color: var(--text-white);
}

/* Bloc central Score */
.match-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 33%;
}

/* Typographie du score et du label "VS" */
.score-text,
.vs-text {
  font-size: var(--text-h4);
  font-family: var(--font-rugen);
  font-weight: var(--weight-bold);
  color: var(--text-white);
  text-shadow: var(--shadow-drop);
}

.vs-text {
  margin-top: 5px;
}

/* =========================================
    SECTION SHOP (Boutique)
========================================= */

/* Conteneur principal Shop */
.shop-section {
  display: flex;
  max-width: 1400px;
  flex-direction: column;
  margin: 0 auto;
  margin-top: 50px;
}

/* Bannière promotionnelle Shop */
.shop-banner {
  background-image: url(../assets/background/background-hero-shop.png);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-drop);
  width: 100%;
  height: 550px;
  padding: 145px 20px 20px 20px;
}

/* Titre de la bannière */
.shop-banner > h2 {
  font-family: var(--font-rugen);
  font-size: var(--text-h2);
  font-weight: var(--weight-expanded);
  color: var(--text-white);
  text-shadow: var(--shadow-drop);
}

/* Description de la bannière */
.shop-banner > p {
  font-family: var(--font-lato);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text-white);
  text-shadow: var(--shadow-drop);
  width: 480px;
  margin-top: 5px;
}

/* Conteneur des boutons dans la bannière */
.shop-actions {
  display: inline-block;
  margin-top: 30px;
}

/* Style de base des liens boutons */
.shop-actions a {
  text-decoration: none;
  font-family: var(--font-montserrat);
  font-size: var(--text-h4);
  font-weight: var(--weight-medium);
  color: var(--text-white);
  text-transform: uppercase;
}

/* Bouton Jaune Plein */
.shop-actions .btn-yellow {
  background-color: var(--bg-button);
  padding: 10px 50px;
  border-radius: 7px;
  box-shadow: var(--shadow-drop);
  margin-right: 30px;
}

/* Bouton Contour */
.shop-actions .btn-outline {
  padding: 10px 50px;
  border-radius: 7px;
  border: 1px solid var(--bg-button);
  box-shadow: var(--shadow-drop);
}

/* Grille des produits */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* Carte produit individuelle */
.product-card {
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  width: 330px;
  position: relative;
  overflow: hidden;
}

/* Overlay dégradé noir sur le bas de la carte pour lisibilité texte */
.product-card::after {
  content: "";
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  height: 75%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 1) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Conteneur de l'image produit */
.product-img-wrapper {
  width: 100%;
  height: 334px;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
}

/* Image produit */
.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Détails du produit */
.product-details {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--text-black);
  z-index: 3;
}

/* Ligne des étoiles de notation */
.product-details .rating-stars {
  display: flex;
  align-items: center;
  gap: 0px;
}

/* Taille de l'icône étoile */
.product-details .rating-stars .icon-star {
  height: 29px;
  width: 30px;
}

/* Nombre de votes */
.product-details .rating-stars p {
  font-family: var(--font-lato);
  font-size: 22.74px;
  font-weight: var(--weight-bold);
  color: var(--text-white);
  margin-left: 7px;
}

/* Métadonnées */
.product-meta {
  display: flex;
  flex-direction: column;
}

.product-meta > div {
  display: flex;
  justify-content: space-between;
}

/* Typographie unifiée pour les infos produit */
.product-title,
.product-model,
.product-price {
  font-family: var(--font-lato);
  font-size: 22.74px;
  font-weight: var(--weight-bold);
  color: var(--text-white);
}

/* Bouton CTA en bas de la section Shop */
.shop-cta-btn {
  max-width: 250px;
  padding: 15px 91px;
  margin: 0 auto;
  margin-top: 25px;
  box-shadow: var(--shadow-drop);
  font-family: var(--font-lato);
  font-weight: var(--weight-bold);
  font-size: 23px;
  text-transform: uppercase;
}

/* =========================================
    SECTION TEAM (Équipe & Roster)
========================================= */

/* Conteneur global Team */
.team-section {
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 110px auto 0;
  position: relative;
}

.games-nav-bar {
  position: absolute;
  top: -50px;
  display: inline-flex;
  overflow: visible;
}

/* Partie gauche des onglets (Logos jeux) */
.games-nav-left {
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 12px 24px;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-inset);
  position: relative;
  border-radius: 14px 14px 0 14px;
  height: 60px;
}

.games-nav-left::after {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  width: 40px;
  height: 100%;
  background: radial-gradient(
    ellipse 100% 100% at 100% 0%,
    transparent 0%,
    transparent 98%,
    var(--bg-card) 99%
  );
  pointer-events: none;
  z-index: 1;
}

/* Barre de séparation entre les icônes de jeux */
.nav-separator {
  display: block;
  width: 1px;
  height: 40px;
  background-color: var(--text-white);
  align-self: center;
}

/* Taille des icônes de jeux */
.game-icon {
  height: 64px;
  width: auto;
}

/* Conteneur principal du contenu de l'équipe */
.team-container {
  background-color: var(--bg-card);
  padding: 32px 16px 24px 16px;
  border-radius: 0 14px 14px 14px;
  box-shadow: var(--shadow-inset);
}

/* Grille des joueurs */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

/* Carte Joueur individuelle */
.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-white);
}

/* Photo du joueur */
.player-photo {
  width: 100%;
  height: 246px;
  border-radius: 7px;
  box-shadow: var(--shadow-drop);
  object-fit: cover;
}

/* Nom du joueur */
.player-card p:nth-of-type(1) {
  font-family: var(--font-lato);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  margin-top: 25px;
}

/* Ville/Localisation du joueur */
.player-card p:nth-of-type(2) {
  font-family: var(--font-lato);
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  opacity: 0.7;
}

/* Conteneur icônes sociales joueur */
.player-socials {
  display: flex;
  gap: 5px;
}

/* Icônes sociales */
.icon-social {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  cursor: pointer;
}

/* Section "Trophy Case" */
.trophy-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background-color: var(--bg-card);
  padding-left: 16px;
  padding-top: 24px;
  padding-bottom: 36px;
}

/* Alignement des images de trophées */
.trophy-display {
  display: flex;
  gap: 15px;
  align-items: flex-end;
}

/* Image de trophée */
.trophy-img {
  height: 190px;
  flex-shrink: 0;
}

/* Texte de la section Trophées */
.trophy-content h3 {
  font-family: var(--font-rugen);
  font-size: var(--text-h2);
  font-weight: var(--weight-expanded);
  color: var(--text-white);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Paragraphes description trophées */
.trophy-content p {
  font-family: var(--font-lato);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text-white);
  max-width: 500px;
}

/* Wrapper "Lire plus" avec flèche */
.read-more-wrapper {
  display: flex;
}

/* Icône flèche */
.icon-arrow {
  margin-top: 5px;
  margin-left: 5px;
  width: 34px;
  cursor: pointer;
}

/* =========================================
    SECTION NEWSLETTER (CTA Final)
========================================= */

/* Conteneur Newsletter avec image de fond */
.newsletter-section {
  width: 100%;
  min-height: 700px;
  background-image: url("../assets/background/background-cta.png");
  background-size: cover;
  background-position: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  margin-top: 55px;
}

/* Sous-titre "Suscribete..." */
.newsletter-subtitle {
  font-family: var(--font-rugen);
  font-size: var(--text-h2);
  font-weight: var(--weight-expanded);
  color: var(--text-white);
  text-transform: uppercase;
  text-shadow: var(--shadow-drop);
}

/* Titre Principal Newsletter */
.newsletter-title {
  margin-top: 100px;
  font-family: var(--font-rugen);
  font-size: 56px;
  text-transform: uppercase;
  color: var(--primary-1);
  text-shadow: var(--shadow-drop);
  width: 600px;
}

/* Formulaire d'inscription */
.newsletter-form {
  margin-top: 30px;
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  box-shadow: var(--shadow-drop);
}

/* Champ de saisie Email */
.newsletter-input {
  padding: 20px 60px 20px 16px;
  min-width: 560px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-white);
  font-family: var(--font-lato);
  font-size: 27px;
  text-transform: uppercase;
  border: 3px solid var(--text-white);
  border-radius: 7px 0 0 7px;
}

/* Style du placeholder dans l'input */
.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.59);
  font-family: var(--font-rugen);
  font-weight: var(--weight-expanded);
  font-size: 27px;
}

/* Bouton d'envoi */
.newsletter-btn {
  border: none;
  outline: none;
  cursor: pointer;
  width: 130px;
  background-color: var(--bg-button);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 7px 7px 0;
}

/* Icône Avion dans le bouton */
.newsletter-btn .icon-send {
  font-size: 44px;
  color: var(--text-black);
}
