/* Importation police Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display.swap');

/* Couleurs personnalisées */
:root {
  --simpsons-yellow: #FFD90F;
  --fortnite-blue: #0078D7;
  --dark-bg: #1a1a1a;
  --light-text: #ffffff;
  --dark-text: #1a1a1a;
  --grey-text: #cccccc;
  --section-bg: #2a2a2a;
}

a {
  text-decoration: none;
  color: var(--dark-text);
}

/* Réinitialisation des styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Styles globaux */
::selection {
  background: var(--simpsons-yellow);
  color: var(--dark-text);
}

.taille-image img {
  max-width: 100%;
  height: auto;
  border: var(--simpsons-yellow);

}

/* Structure de la page */
html {
  height: 100%;
}

/* Layout principal */
body {
  display: flex;
  flex-direction: column;
  min-height: 100px;
}

/* Contenu principal */
main {
  flex-grow: 1;
}
/* Styles de l'en-tête */
header {
  position: fixed;
  width: 100%;
  padding: 10px 0;
  z-index: 1000;
  border-bottom: 3px solid var(--simpsons-yellow);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('../img/donuts.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Conteneur de navigation */
.navigation-conteneur { 
  max-width: 1250px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* Logo */
.navigation-conteneur .logo img { 
  height: 60px;
  width: auto;
  vertical-align: middle;
}

/* Navigation */
.navigation-conteneur nav ul { 
  display: inline-flex;
}

/* Éléments de menu */
.navigation-conteneur nav ul li { 
  list-style: none;
  margin-left: 20px;
}

/* Liens de menu */
.navigation-conteneur nav ul li a { 
  text-decoration: none;
  color: var(--light-text);
  font-size: 19px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Effet au survol des liens de menu */
.navigation-conteneur nav ul li a:hover { 
  background: var(--simpsons-yellow);
  color: var(--dark-text);
  transform: scale(1.05);
}

/* Section d'en-tête (Hero Banner) */
.entete-page { 
  background: url('../img/fond.png') no-repeat center center;
  background-size: cover;
  width: 100%;
  height: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  height: auto;
  padding-bottom: 60px;
}

/* Overlay sombre */
.entete-page::before { 
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
}

/* Contenu principal centré dans l'en-tête */
.bloc-principal { 
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
  text-align: center;
  color: var(--light-text);
  padding-top: 100px;
}

/* Titre principal */
.bloc-principal .titre-principal { 
  font-size: 60px;
  font-weight: 700;
  text-shadow: 4px 4px 0px var(--fortnite-blue),
              6px 6px 0px rgba(0,0,0,0.5);
  margin-bottom: 10px;
}

/* Sous-titre principal */
.bloc-principal .sous-titre-principal { 
  font-size: 50px;
  font-weight: 600;
  text-shadow: 3px 3px 0px var(--fortnite-blue),
              5px 5px 0px rgba(0,0,0,0.5);
  margin-bottom: 30px;
}

.bloc-principal .texte {
  color: var(--light-text);
  font-size: 20px;
  max-width: 800px;
  margin: 20px auto;
  line-height: 1.6;
}

/* Conteneur d'actions (Boutons) */
.bloc-principal .actions { 
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}


/* Styles des boutons généraux */
.actions button { 
  height: 60px;
  width: 220px;
  border-radius: 8px;
  border: none;
  font-size: 20px;
  font-weight: 700;
  padding: 0 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}


/* Styles spécifiques du bouton primaire */
.actions .bouton-primaire { 
  background: var(--simpsons-yellow);
  color: var(--dark-text);
  border: 3px solid var(--simpsons-yellow);
}

/* Effet au survol du bouton primaire */
.actions .bouton-primaire:hover { 
  background: transparent;
  color: var(--simpsons-yellow);
  transform: scale(1.1);
  border-color: var(--simpsons-yellow);
}

/* Styles spécifiques du bouton secondaire */
.actions .bouton-secondaire { 
  background: var(--fortnite-blue);
  color: var(--light-text);
  border: 3px solid var(--fortnite-blue);
}

/* Effet au survol du bouton secondaire */
.actions .bouton-secondaire:hover { 
  background: transparent;
  color: var(--fortnite-blue);
  transform: scale(1.1);
  border-color: var(--fortnite-blue);
}

/* Styles spécifiques du bouton tertiaire */
.actions .bouton-tertiaire { 
  background: var(--grey-text);
  color: var(--dark-text);
  border: 3px solid var(--grey-text);
}

/* Effet au survol du bouton tertiaire */
.actions .bouton-tertiaire:hover { 
  background: transparent;
  color: var(--grey-text);
  transform: scale(1.1);
  border-color: var(--grey-text);
}

/* Styles du pied de page */
footer {
  background-color: var(--dark-bg);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('../img/donuts.png');
  background-size: cover;
  background-position: center;
  color: var(--grey-text);
  text-align: center;
  padding: 30px 20px;
  border-top: 3px solid var(--fortnite-blue);
  font-size: 15px;
}


img {
  max-width: 100%;
  height: auto;
}

.audience{
    display: flex;
    gap : 45px;
    justify-content: center; /* on centre independament */
}

.audience img{
    width: 400px;
    height: auto;
}


/* La case à cocher est toujours cachée */
#menu-toggle {
    display: none;
}


/* Style du bouton "MENU" (caché sur desktop) */
.menu-button {
    display: none; /* Caché par défaut */
    cursor: pointer;

    
    /* Style visuel simple */
    font-size: 19px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    color: var(--light-text);
    background: var(--fortnite-blue);
    transition: all 0.3s ease;
}

/* Effet au survol du bouton "MENU" */
.menu-button:hover {
    background: var(--simpsons-yellow);
    color: var(--dark-text);
}

.mention_leg a{
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {

    .navigation-conteneur {
        flex-direction: right; /* Aligne le logo à gauche et le bouton à droite */
        gap: 0;
    }

    .media-video{
    padding-bottom: 600px;
  }

    /* Afficher le bouton "MENU" sur mobile ettablette */
    .menu-button {
        display: inline-block;
    }

    /* Cacher la navigation <nav>  */
    .navigation-conteneur nav {
        display: none; /* DOIT ÊTRE CACHÉ PAR DÉFAUT SUR MOBILE */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(42, 42, 42, 0.95);
    }

    /*Afficher la <nav quand le bouton est cliqué */
    #menu-toggle:checked ~ nav {
        display: block;
    }

    /* Transformer le <ul> en menu vertical */
    .navigation-conteneur nav ul {
        display: flex; /* revolution */
        flex-direction: column;
        padding: 0;
    }

    /* 5. Améliorer l'apparence des liens dans le menu déroulant */
    .navigation-conteneur nav ul li {
        margin: 0; /* Centrer le texte */
        width: 100%;
        text-align: center;
    }
   
    .navigation-conteneur nav ul li a {
        display: block; /* Pour rendre toute la ligne cliquable */
        padding: 15px;
        border-bottom: 1px solid var(--grey-text);
    }


   
    /* En-tête */
    .entete-page {
      height: auto;
      min-height: 80px;
      padding-bottom: 60px;
    }

    .bloc-principal {
      padding-top: 180px; /* Conserve un bon espace */
    }

    /* Titre principal */
    .bloc-principal .titre-principal {
      font-size: 48px;
      text-shadow: 3px 3px 0px var(--fortnite-blue),
          4px 4px 0px rgba(0,0,0,0.5);
    }

    /* Sous-titre principal */
    .bloc-principal .sous-titre-principal {
      font-size: 38px;
      text-shadow: 2px 2px 0px var(--fortnite-blue),
          3px 3px 0px rgba(0,0,0,0.5);
    }

    /* inligne block pour éviter conflit */
    .audience{
    display: inline-block;
    gap : 45px;
    justify-content: center; /* on centre independament */
    }

    .taille-image img {
        width: 100%; 
        max-width: 100%;
        height: auto;
    }

    .nombre-joueur img {
    width: 100%;
    height: auto;
    border: var(--simpsons-yellow);
    border-radius: 5px;
    }

    /* Conteneur d'actions (Boutons) */
    .bloc-principal .actions {
      flex-direction: column;
      gap: 20px;
    }
}

@media (max-width: 480px) {
  /* reajustation simple de l'UI ..*/

  /* Modification de nav-con, les autres élements du mode responsive sont hérités du media quiery 768px */
  .navigation-conteneur {
      justify-content: center; /* Aligne le logo à gauche et le bouton à droite */
      padding: 0 20px;
  }

  .logo img{
    display: none;
  }

   .media-video{
    padding-bottom: 400px;
  }

  .bloc-principal {
    padding-top: 160px;
  }

  /* Titre principal */
  .bloc-principal .titre-principal {
    font-size: 36px;
    line-height: 1.2;
  }

  /* Sous-titre principal */
  .bloc-principal .sous-titre-principal {
    font-size: 28px;
  }

.bloc-principal .actions div { /* utiliser div car pas de classe pour tout les boutons */
    width: 90%;
    max-width: 350px;
  }

  .actions button {
    width: 100%;
    height: 55px;
    font-size: 18px;
  }


  /* Pied de page */
  footer {
    font-size: 14px;
    padding: 20px 10px;

  }
}