@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@500&family=Saira+Extra+Condensed:wght@800&display=swap');

/* TYPOGRAPHIE */
/* Définit la police pour tous les titres en majuscules */
h1,h2,h3,h4,h5,h6 {
    font-family: "Saira Extra Condensed", sans-serif;
    font-weight: 800;
}

/* Style de base pour le header, body et footer */
header,body,footer {
  background-color: #1d1a20;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 500;
  width: 100%;
}

/* Cache le menu mobile par défaut */
#menu-toggle, .menu-mobile {
    display: none;
}

/* HEADER */
/* Fixe le header en haut de la page */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Ajoute un padding-top pour compenser le header fixe */
body {
    margin: 0;
    padding-top: 150px;
}

/* Style et taille du logo */
.logo img {
  margin-left: 50px;
  height: 80px;
  width: auto;
}

/* Retire les puces des listes et affiche en ligne */
li{
  list-style: none;
  display: inline-block;
}

/* Style des liens de navigation */
li a{
  font-family: "Saira Condensed", sans-serif;
  color :#e5e6e8;
  font-size: 30px;
  margin-right: 25px;
  text-decoration: none;
}

/* Effet hover sur les liens */
li a:hover{
  color :#d11f3c;
  text-decoration: underline;
}

/* Effet hover sur les icônes sociales */
.socials i:hover{color: #d11f3c;}

/* Style de la barre de navigation */
.navbar {
  background-color: #1d1a20;
  font-family: saira condensed medium;
  padding-left: 15px;
  padding-right: 15px;
}

/* Container flex pour aligner les éléments du nav */
.navdiv{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Container flex pour les icônes sociales */
.socials {
  display: flex;
  gap: 20px;
  margin-right: 50px;
}

/* Style des icônes sociales */
.socials i {
  color: #e5e6e8;
  font-size: 24px;
  cursor: pointer;
}

/* SECTION TRAILER */
/* Container plein écran pour la vidéo trailer */
.trailer {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: -100px;
}

/* Positionne la vidéo en arrière-plan couvrant tout l'écran */
.trailer video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-position: 40% 50%;
  transform:scale(1.1);
}

/* Container pour le logo "The Finals" centré */
.the_finals {
  position: absolute;
  top: 50%;  
  left: 50%;  
  transform: translate(-50%, -50%);
  z-index: 10;
  color: white;
  text-align: center;
  font-size: 28px;
  width: 30%;
  text-shadow: 1px 1px 2px rgb(0, 0, 0);
}

/* Image du logo responsive */
.the_finals img {
  position:left;
  width: 70%;
  padding-left: 40px;
}

/* STYLE GÉNÉRAL DU BODY */
/* Définit le fond et la couleur du texte */
body {
  background-color: #1d1a20;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 500;
  width: 100%;
  color: #e5e6e8;
}

/* Réduit l'espacement sous les h1 */
h1{margin-bottom: -50px;}

/* Style des boutons/liens dans le trailer */
.the_finals a {
  display: inline-flex;
  position: relative;
  left: 20%;
  margin-right: 6%;
  margin-left: 4%;
  margin-top: 1%;
  padding: 10px 20px;
  background-color: #d11f3c;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  border-radius: 100px;
  font-family: "saira condensed", sans-serif;
  height: 30px;
  transform: translateX(-50%);
}

/* Effet hover sur les boutons */
.the_finals a:hover{
    background-color: #ad1932;
    transform: translateX(-50%) translateY(-4px);
    transition: all 0.3s ease;
}

/* Centre tous les titres h1 */
h1 {
    margin-bottom: -50px;
    text-align: center;
}

/* SECTION TEAMS */
/* Centre le contenu de la section teams */
#teams {
    text-align: center;
}

/* LOGOS D'ÉQUIPES - ALLIANCE */
/* Style du logo Alliance avec bordure verte */
.alliance {
    width: 100px;
    height: auto;
    border: 4px solid #46d62e;
    border-radius: 15px;
    padding: 25px; 
}

/* LOGOS D'ÉQUIPES - APESQUAD */
/* Style du logo Apesquad avec bordure violette */
.apesquad {
    width: 100px;
    height: auto;
    border: 4px solid #8146d3;
    border-radius: 15px;
    padding: 25px; 
}

/* LOGOS D'ÉQUIPES - ENVY */
/* Style du logo Envy avec bordure bleue */
.envy {
    width: 100px;
    height: auto;
    border: 4px solid #1179f4;
    border-radius: 15px;
    padding: 25px; 
}

/* LOGOS D'ÉQUIPES - KCP */
/* Style du logo KCP avec bordure dorée */
.kcp {
    width: 100px;
    height: auto;
    border: 4px solid #a8943e;
    border-radius: 15px;
    padding: 25px; 
}

/* LOGOS D'ÉQUIPES - DRG */
/* Style du logo DRG avec bordure verte claire */
.drg {
    width: 100px;
    height: auto;
    border: 4px solid #76f35d;
    border-radius: 15px;
    padding: 25px; 
}

/* LOGOS D'ÉQUIPES - KINGZERO */
/* Style du logo Kingzero avec bordure bleu foncé */
.kingzero {
    width: 100px;
    height: auto;
    border: 4px solid #1a3665;
    border-radius: 15px;
    padding: 25px; 
}

/* CONTAINERS DES RÉGIONS */
/* Layout flex pour les équipes par région */
.EMEA, .NA, .APAC {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* Container pour chaque équipe (image + nom) en horizontal */
.team-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    position: relative;
}

/* Container vertical pour logo + nom */
.logo-name-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* IMAGES DES PERSONNAGES */
/* Style des images de personnages avec bordure */
.personnage {
    width: 400px;
    height: auto;
    object-fit: contain;
    border: solid 5px #e5e6e8;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.5);
}

/* ORDRE D'AFFICHAGE PAR RÉGION */
/* Première équipe : personnage à GAUCHE */
.EMEA .team-container:first-child,
.NA .team-container:first-child,
.APAC .team-container:first-child {
    flex-direction: row;
}

/* Deuxième équipe : personnage à DROITE */
.EMEA .team-container:last-child,
.NA .team-container:last-child,
.APAC .team-container:last-child {
    flex-direction: row-reverse;
}

/* STYLES DES LOGOS (redéfinis avec transition) */
/* Base commune pour tous les logos */
.alliance, .apesquad, .envy, .kcp, .drg, .kingzero {
    width: 100px;
    height: auto;
    border-radius: 15px;
    padding: 25px;
    transition: transform 0.3s ease;
}

/* Effet hover sur les logos : léger agrandissement */
.alliance:hover, .apesquad:hover, .envy:hover, 
.kcp:hover, .drg:hover, .kingzero:hover {
    transform: scale(1.05);
}

/* Couleurs de bordure spécifiques pour chaque équipe */
/* Alliance - vert */
.alliance {
    border: 4px solid #46d62e;
}
.persoalliance{
    border: 4px solid #46d62e;
}

/* Apesquad - violet */
.apesquad {
    border: 4px solid #8146d3;
}
.persoapesquad{
    border: 4px solid #8146d3;
}

/* Envy - bleu */
.envy {
    border: 4px solid #1179f4;
}
.persoenvy{
    border: 4px solid #1179f4;
}

/* KCP - doré */
.kcp {
    border: 4px solid #a8943e;
}
.persokcp{
    border: 4px solid #a8943e;
}

/* DRG - vert clair */
.drg {
    border: 4px solid #76f35d;
}
.persodrg{
    border: 4px solid #76f35d;
}

/* Kingzero - bleu foncé */
.kingzero {
    border: 4px solid #1a3665;
}
.persokingzero{
    border: 4px solid #1a3665;
}

/* NOMS DES ÉQUIPES */
/* Style des noms d'équipes en gras et majuscules */
.team-name {
    font-family: "Saira Extra Condensed", sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #e5e6e8;
    text-transform: uppercase;
}

/* TITRES DES RÉGIONS */
/* Style des titres h2 pour les régions */
h2 {
    text-align: center;
    font-size: 36px;
    color: #d11f3c;
    margin-top: 60px;
    margin-bottom: 20px;
}

/* FOOTER */
/* Style du footer avec bordure supérieure */
footer {
  border-top: 1px solid #e5e6e8;
  background-color: #1d1a20;
  padding: 40px 0;
  width: 100%;
  margin: 0;
}

/* Container flex pour le contenu du footer */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 30px;
}

/* CAROUSEL DU FOOTER */
/* Carousel de logos défilant */
.carousel_footer {
    width: 100%;
    display: flex;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    padding-top: 30px;
}

/* Cache la scrollbar du carousel */
.carousel_footer::-webkit-scrollbar {
    display: none;
}

/* Groupe d'éléments avec animation de défilement */
.group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    animation: 15s spin linear infinite;
}

/* Carte individuelle dans le carousel */
.card {
    flex: 0 0 auto;
    width: 150px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image dans la carte footer */
.card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}

/* Animation de défilement horizontal continu */
@keyframes spin {
    from { translate: 0; }
    to { translate: -100%; }
}

/* LOGOS ET MENTIONS DU FOOTER */
/* Container horizontal pour logos et mentions */
.footer-logos {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    gap: 30px;
}

/* Texte des mentions légales */
.footer-logos .mentions {
    color: #e5e6e8;
    font-size: 14px;
    text-align: left;
    margin: 0;
    flex: 1;
}

/* Logo de classification d'âge */
.footer-logos img.logo_age {
    height: 80px;   
    width: auto;
    object-fit: contain;
}

/* Paragraphes du footer */
footer p {
    padding-top: 5px;
    color: #e5e6e8;
    font-size: 14px;
    text-align: left;
    margin: 0;
    flex: 1;
    margin-bottom: 30px;
}

/* Container pour le contenu du footer avec espacement */
.footer-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 50px 40px 50px;
}
.mentions a {
    color: tomato;
}
/* ESPACEMENTS */
/* Ajoute de l'espace au-dessus de la section teams */
#teams {
  margin-top: 100px;
}

/* Ajoute de l'espace au-dessus du footer */
footer {
  margin-top: 100px;
}

/* MENU HAMBURGER */
/* Cache le menu hamburger par défaut */
#menuToggle {
  display: none;
}

/* RESPONSIVE TABLETTE (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* HEADER TABLETTE */
    /* Cache le menu desktop et les icônes sociales */
    .navbar ul,
    .socials {
        display: none !important;
    }

    /* Réorganise le header en flex */
    .navdiv {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Ajoute le titre "THE FINALS" au centre du header */
    .navdiv::after {
        content: "THE FINALS";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-family: "Saira Extra Condensed", sans-serif;
        font-weight: 800;
        font-size: 28px;
        color: #e5e6e8;
        letter-spacing: 2px;
        z-index: 1;
    }

    /* MENU HAMBURGER TABLETTE */
    /* Affiche le menu hamburger sur tablette */
    #menuToggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 50px;
        z-index: 2000;
        -webkit-user-select: none;
        user-select: none;
    }

    /* Style des liens dans le menu hamburger */
    #menuToggle a {
        text-decoration: none;
        color: #232323;
        transition: color 0.3s ease;
    }

    /* Effet hover sur les liens du menu */
    #menuToggle a:hover {
        color: #d11f3c;
    }

    /* Zone cliquable invisible pour le menu */
    #menuToggle input {
        display: block;
        width: 40px;
        height: 32px;
        position: absolute;
        top: -7px;
        left: -5px;
        cursor: pointer;
        opacity: 0;
        z-index: 2001;
        -webkit-touch-callout: none;
    }

    /* Barres du menu hamburger */
    #menuToggle span {
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;
        background: #cdcdcd;
        border-radius: 3px;
        z-index: 2000;
        transform-origin: 4px 0px;
    }

    /* Point d'origine pour la première barre */
    #menuToggle span:first-child {
        transform-origin: 0% 0%;
    }

    /* Point d'origine pour la dernière barre */
    #menuToggle span:nth-last-child(2) {
        transform-origin: 0% 100%;
    }

    /* Couleur des barres quand le menu est ouvert */
    #menuToggle input:checked ~ span {
        opacity: 1;
        background: #e5e6e8;
    }

    /* Garde la barre du milieu visible */
    #menuToggle input:checked ~ span:nth-last-child(3) {
        opacity: 1;
    }

    /* Couleur de la dernière barre */
    #menuToggle input:checked ~ span:nth-last-child(2) {
        background: #e5e6e8;
    }

    /* PANEL DU MENU */
    /* Panel coulissant du menu mobile */
    #menu {
        position: fixed;
        width: 300px;
        right: 0;
        top: 0;
        margin: 0;
        padding: 80px 30px 50px;
        background: #1d1a20;
        border-left: 2px solid #d11f3c;
        list-style-type: none;
        -webkit-font-smoothing: antialiased;
        transform-origin: 0% 0%;
        transform: translate(100%, 0);
        transition: transform 0.4s ease-in-out;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* Items du menu mobile */
    #menu li {
        padding: 20px 0;
        font-size: 24px;
        color: #e5e6e8;
        border-bottom: 1px solid rgba(229, 230, 232, 0.1);
        width: 100%;
    }

    /* Liens du menu mobile */
    #menu a {
        color: #e5e6e8 !important;
        font-family: "Saira Condensed", sans-serif;
        font-size: 24px;
    }

    /* Effet hover sur les liens du menu */
    #menu a:hover {
        color: #d11f3c !important;
    }

    /* RÉSEAUX SOCIAUX DANS LE MENU */
    /* Container des icônes sociales dans le menu hamburger */
    .menu-socials {
        display: flex;
        justify-content: center;
        gap: 25px;
        padding-top: 20px !important;
        margin-top: 20px;
        border-top: 2px solid #d11f3c !important;
        border-bottom: none !important;
    }

    /* Liens des réseaux sociaux */
    .menu-socials a {
        display: inline-block;
    }

    /* Icônes sociales dans le menu */
    .menu-socials i {
        font-size: 28px;
        color: #e5e6e8;
        transition: color 0.3s ease;
    }

    /* Effet hover sur les icônes sociales */
    .menu-socials i:hover {
        color: #d11f3c;
    }

    /* Affiche le menu quand le checkbox est coché */
    #menuToggle input:checked ~ ul {
        transform: none;
    }

    /* AJUSTEMENTS TABLETTE */
    /* Réduit la taille du logo */
    .logo img {
        margin-left: 20px;
        height: 60px;
    }

    /* Ajuste la position de l'image The Finals */
    .the_finals img{
        margin-top:5% ;
    }

    /* Centre les boutons dans le trailer */
    .the_finals a {
        justify-content: center;
        display: flex;
        left: 50%;
        margin-bottom: 5%;
    }

    /* Position spécifique pour le bouton ticket */
    .the_finals #ticket {
        left: 40%;
    }

    /* FOOTER TABLETTE */
    /* Passe le footer en colonne */
    .footer-logos {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Ajoute de l'espace sous les mentions */
    .footer-logos .mentions {
        margin-bottom: 15px;
    }
}