@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@500&family=Saira+Extra+Condensed:wght@800&display=swap');

/* RESET & BASE */
/* Empêche le débordement horizontal sur toute la page */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Définit la police pour tous les titres */
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%;
}

/* HEADER*/
/* Fixe le header en haut de la page */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 99%;
    z-index: 1000;
    overflow-x: hidden;
}

/* Configuration du scroll snap sur le body */
body {
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
    scroll-padding-top: 50px; /* ✨ Hauteur du header (ajustez selon votre header) */
    height: 100vh;
}

/* Style de la barre de navigation */
.navbar {
    background-color: #1d1a20;
    padding: 15px;
}

/* Container flex pour aligner les éléments du nav */
.navdiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Style et taille du logo */
.logo img {
    margin-left: 50px;
    height: 80px;
    width: auto;
}

/* Retire les puces et affiche les items en ligne */
li {
    list-style: none;
    display: inline-block;
}

/* Style des liens de navigation */
li a {
    color: #e5e6e8;
    font-size: 30px;
    margin-right: 25px;
    text-decoration: none;
}

/* Effet hover sur les liens */
li a:hover {
    color: #d11f3c;
    text-decoration: underline;
}

/* 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;
}

/* Effet hover sur les icônes sociales */
.socials i:hover {
    color: #d11f3c;
}

/* Cache le menu hamburger par défaut (desktop) */
#menuToggle {
    display: none;
}

/* ✨ SCROLL SNAP - Chaque section principale s'accroche */
.trailer,
.pgw,
.presentation,
.gameplay,
.contain-carousel,
.mode_container {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 85vh;
    height: 100vh;
    width: 100%;
    position: relative;
    scroll-margin-top: 50px; /* ✨ Même valeur que scroll-padding-top */
}
.footer-container{
    scroll-snap-align: start;
    scroll-snap-stop: always;
    width: 100%;
    position: relative;
}

/* TRAILER */
/* Container plein écran pour la vidéo trailer */
.trailer {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 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;
}

/* Image du personnage positionnée en bas à droite */
.perso1 {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    max-width: 40vw;
    z-index: 10;
}

/* Container pour le logo "The Finals" */
.the_finals {
    position: absolute;
    top: 40%;
    left: 25%;
    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 {
    width: 80%;
    height: auto;
}

/* Bouton de téléchargement stylisé */
.case_download {
    position: absolute;
    top: 65%;
    left: 25%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
    border: none;
    background: #F7BB04;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 250px;
}

/* Texte du bouton de téléchargement */
#download {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #000;
}

/* Icône de téléchargement dans un cercle */
.case_download .fa-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #000;
    color: #ffffff;
    border-radius: 50%;
    font-size: 16px;
    margin-left: 15px;
}

/* Effet hover sur le bouton de téléchargement */
.case_download:hover {
    background: #d6a205;
    transform: translateX(-50%) translateY(-2px);
    transition: all 0.3s ease;
}

/* PGW */
/* Section PGW avec fond sombre */
.pgw {
    background-color: #171717;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Logo PGW en haut à gauche */
.logo_pgw {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 60px;
    height: auto;
    z-index: 10;
}

/* Container flex pour les images avec effet 3D */
.container_image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    perspective: 1500px;
}

/* Style du texte d'invitation */
.invite {
    color: #E5E6E8;
    font-size: 18px;
    width: 200px;
}

/* Image d'invitation responsive */
.invite img {
    width: 100%;
    height: auto;
}

/* Container pour l'image avec perspective 3D */
.image{
    width: 60%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    perspective: 1500px;
}

/* Image avec rotation 3D et bordures arrondies */
.image img {
    width: 100%;
    height: 90%;
    transform: rotateY(-45deg);
    border-radius: 20px;
}

/*PRESENTATION*/
/* Section de présentation avec image de fond */
.presentation {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* Image de fond en absolute pour superposition */
.presentation img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Carte de texte avec fond semi-transparent */
.text-present {
    position: relative;
    z-index: 1;
    color: white;
    width: 400px;
    height: 400px;
    border-radius: 20px;
    text-shadow: 1px 1px 2px rgb(0, 0, 0);
    margin-left: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
}

/* Paragraphes de la présentation */
.presentation p {
    font-size: 20px;
    padding: 2%;
    text-align: center;
}

/* Titre sans marge */
.presentation h1 {
    margin: 0;
}

/* GAMEPLAY */
/* Section gameplay plein écran avec vidéo */
.gameplay {
    display: flex;
    background-color: #333;
    overflow: hidden;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 50px;
}

/* Vidéo de fond avec transition d'opacité */
.gameplay video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Bordure décorative gauche avec dégradé rouge */
.border-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(139, 0, 0, 1) 0%,
        rgba(180, 0, 0, 1) 30%,
        rgba(139, 0, 0, 1) 100%
    );
    clip-path: polygon(0 0, 60% 0, 100% 100%, 0 100%);
    z-index: 5;
}

/* Ligne lumineuse rouge sur le bord gauche */
.border-left::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(255, 0, 0, 1),
        rgba(255, 50, 50, 1),
        rgba(255, 0, 0, 1)
    );
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Bordure décorative droite avec dégradé rouge */
.border-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(139, 0, 0, 1) 0%,
        rgba(180, 0, 0, 1) 30%,
        rgba(139, 0, 0, 1) 100%
    );
    clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 100%);
    z-index: 5;
}

/* Ligne lumineuse rouge sur le bord droit */
.border-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(255, 0, 0, 1),
        rgba(255, 50, 50, 1),
        rgba(255, 0, 0, 1)
    );
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* CARTES CLASSES */
/* Cartes des classes en noir et blanc par défaut */
.light, .medium, .heavy {
    filter: grayscale(100%);
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
    font-size: 28px;
    width: 175px;
    height: 300px;
    border-radius: 20px;
    text-shadow: 1px 1px 2px rgb(0, 0, 0);
    margin: 0 15px;
    cursor: pointer;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
}

/* Image intérieure de la carte Light */
.light .inner-card {
    width: 70%;
    height: 40%;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 10px;
    margin: 5% 0;
    overflow: hidden;
}

/* Images responsive dans les cartes */
.light .inner-card img,.medium .inner-card img,.heavy .inner-card img {
    width:100%;
}

/* Image intérieure de la carte Medium */
.medium .inner-card {
    width: 70%;
    height: 40%;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 10px;
    margin: 5% 0;
    overflow: hidden;
}

/* Image intérieure de la carte Heavy */
.heavy .inner-card {
    width: 70%;
    height: 40%;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 10px;
    margin: 5% 0;
    overflow: hidden;
}

/* Effet hover sur les cartes : zoom et couleur */
.light:hover, .medium:hover, .heavy:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.5);
}

/* IMAGES PERSONNAGES */
/* Images de personnages cachées par défaut */
.border-image {
    position: absolute;
    left: -400px;
    bottom: 0;
    width: 325px;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(-8px 8px 20px rgba(0, 0, 0, 0.9));
    z-index: 15;
    opacity: 0;
    transition: all 0.8s ease-out;
}

/* Taille spécifique pour l'image Light */
#img_light {
    width: 500px;
    max-width: 500px;
    left: -650px;
}

/* Taille et position spécifique pour l'image Heavy */
#img_heavy {
    width: 400px;
    bottom: -150px;
}

/* Apparition de l'image Light au hover */
.light:hover ~ #img_light {
    left: -100px;
    opacity: 1;
}

/* Apparition de l'image Medium au hover */
.medium:hover ~ #img_medium {
    left: 10px;
    opacity: 1;
}

/* Apparition de l'image Heavy au hover */
.heavy:hover ~ #img_heavy {
    left: 10px;
    bottom: -150px;
    opacity: 1;
}

/* TEXTES DESCRIPTION */
/* Boîtes de description cachées par défaut */
.border-text {
    position: absolute;
    right: -400px;
    bottom: 300px;
    width: 300px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
    border-left: 4px solid rgba(255, 0, 0, 0.8);
    border-radius: 10px 0 0 10px;
    color: white;
    z-index: 15;
    opacity: 0;
    transition: all 0.8s ease-out;
    backdrop-filter: blur(10px);
}

/* Titre de la description en rouge */
.border-text h2 {
    margin: 0 0 15px 0;
    font-size: 40px;
    font-weight: bold;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Texte de description */
.border-text p {
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Apparition du texte Light au hover */
.light:hover ~ .border-text-light {
    right: 20px;
    opacity: 1;
}

/* Apparition du texte Medium au hover */
.medium:hover ~ .border-text-medium {
    right: 20px;
    opacity: 1;
}

/* Apparition du texte Heavy au hover */
.heavy:hover ~ .border-text-heavy {
    right: 20px;
    opacity: 1;
}

/*  CAROUSEL MAPS */
/* Container plein écran pour le carousel */
.contain-carousel{
    overflow: hidden;
    background-color: #333;
}

/* Carousel scrollable horizontal */
.carousel{
    width: 100%;
    height: 100%;
    display: flex;
    margin: 0%;
    padding: 0%;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    anchor-name: --my-carousel;
    scroll-behavior: smooth;
}

/* Cache la scrollbar pour Chrome, Safari et Opera */
.carousel::-webkit-scrollbar {
    display: none;
}

/* Élément individuel du carousel */
.elt_carousel {
    list-style-type: none;
    background-color: #333;
    flex: 0 0 100%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: center;
}

/* Image de carte plein écran */
.carte{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bandeau de texte en haut à gauche */
.text-map {
    position: absolute;
    width: 40%;
    top: 40px;
    left: 0%;
    text-align: left;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 60px 20px 30px;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Icône dans le bandeau de texte */
.text-map img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
}

/* Titre du nom de la carte */
.text-map h1 {
    color: white;
    font-size: 44px; 
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    letter-spacing: 1px;
}

/* Boutons de navigation du carousel */
.carousel::scroll-button(*) {
    border: 0;
    font-size: 5rem;
    background: none;
    color: #000000;
    border-radius: 10px;
    cursor: pointer;
    position: absolute;
    position-anchor: --my-carousel;
    top: 50%;
    transform: translateY(-50%);
}

/* Effet hover sur les boutons */
.carousel::scroll-button(*):hover,
.carousel::scroll-button(*):focus {
    opacity: 1;
}

/* Effet clic sur les boutons */
.carousel::scroll-button(*):active {
    translate: 1px 1px;
}

/* Bouton désactivé */
.carousel::scroll-button(*):disabled {
    opacity: 0.2;
    cursor: unset;
}

/* Bouton gauche du carousel */
.carousel::scroll-button(left) {
    content: "⬅";
    left: 20px;
}

/* Bouton droit du carousel */
.carousel::scroll-button(right) {
    content: "⮕";
    right: 20px;
}

/* MODE CONTAINER */
/* Section des modes de jeu */
.mode_container {
    display: flex;
    background-color: #333;
    overflow: hidden;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 50px;
}

/* Image de fond pour la section modes */
.mode_container .fond{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Cartes des modes de jeu */
.cashout, .deathmatch, .world {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
    font-size: 28px;
    width: 23%;
    height: 80%;
    border-radius: 20px;
    text-shadow: 1px 1px 2px rgb(0, 0, 0);
    margin: 1% 1%;
    cursor: pointer;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
}

/* Image intérieure de la carte Cashout */
.cashout .inner-card {
    width: 70%;
    height: 35%;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    margin: 5% 0;
}

/* Images responsive dans les cartes de mode */
.cashout .inner-card img ,.deathmatch .inner-card img,.world .inner-card img{
    width: 100%;
    height: 90%;
    border-radius: 10px;
    margin: 5% 0;
}

/* Image intérieure de la carte Deathmatch */
.deathmatch .inner-card {
    width: 70%;
    height: 35%;
    border-radius: 10px;
    margin: 5% 0;
}

/* Image intérieure de la carte World Tour */
.world .inner-card {
    width: 70%;
    height: 35%;
    border-radius: 10px;
    margin: 5% 0;
}

.world .inner-card img {
    object-fit: cover;
    object-position: 100% 50%;
}

/* Paragraphes des cartes de mode */
.cashout p, .deathmatch p, .world p {
    font-size: 20px;
    padding: 2%;
    text-align: center;
}

/* Image centrée dans la carte World Tour */
.world .inner-card img {
    position: center;
}

/* Titres des cartes de mode */
.cashout h1, .deathmatch h1, .world h1 {
    margin: 0;
}

/* FOOTER */
/* Style du footer avec fond sombre */
footer {
    background-color: #1d1a20;
    padding: 40px 0;
    width: 100%;
    overflow-x: hidden;
    /* ✨ Le footer n'a PAS de scroll-snap-align */
}

/* 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 de logos dans le footer */
.carousel_footer {
    width: 100%;
    display: flex;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    padding-top: 30px;
}

/* Cache la scrollbar du carousel footer */
.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 footer */
.card {
    flex: 0 0 auto;
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image dans la carte footer */
.card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Animation de défilement continu */
@keyframes spin {
    from { translate: 0; }
    to { translate: -100%; }
}

/* Container des logos et mentions légales */
.footer-logos {
    display: flex;
    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;
}
.mentions a {
    color: tomato;
}
/* Logo de classification d'âge */
.footer-logos img.logo_age {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* RESPONSIVE TABLETTE (768px - 1024px)*/
@media (min-width: 768px) and (max-width: 1024px) {
    /* Désactive le scroll snap sur tablette pour une meilleure UX */
    body {
        scroll-snap-type: none;
    }
    
    header {
        width: 100%;
    }
    .trailer,
    .pgw,
    .presentation,
    .gameplay,
    .contain-carousel,
    .mode_container {
        scroll-snap-align: none;
        min-height: auto;
        height: auto;
    }
    
    /* HEADER */
    .navbar ul,
    .socials {
        display: none !important;
    }

    .navdiv {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .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;
    }

    .logo img {
        margin-left: 20px;
        height: 60px;
    }

    /* MENU HAMBURGER */
    #menuToggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 30px;
        z-index: 2000;
        -webkit-user-select: none;
        user-select: none;
    }

    #menuToggle input {
        display: block;
        width: 40px;
        height: 32px;
        position: absolute;
        top: -7px;
        left: -5px;
        cursor: pointer;
        opacity: 0;
        z-index: 2001;
    }

    #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;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    #menuToggle input:checked ~ span {
        opacity: 1;
        background: #e5e6e8;
        transform: rotate(45deg) translate(-2px, -1px);
    }

    #menuToggle input:checked ~ span:nth-last-child(3) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    #menuToggle input:checked ~ span:nth-last-child(2) {
        transform: rotate(-45deg) translate(0, -1px);
    }

    #menuToggle input:checked ~ span,
    #menuToggle input:checked ~ span:nth-last-child(3),
    #menuToggle input:checked ~ span:nth-last-child(2) {
        opacity: 1;
        transform: none;
        background: #cdcdcd;
    }

    #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;
        transform: translate(100%, 0);
        transition: transform 0.4s ease-in-out;
        height: 100vh;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    #menu li {
        padding: 20px 0;
        font-size: 24px;
        color: #e5e6e8;
        border-bottom: 1px solid rgba(229, 230, 232, 0.1);
        width: 100%;
    }

    #menu a {
        color: #e5e6e8 !important;
        font-family: "Saira Condensed", sans-serif;
        font-size: 24px;
        text-decoration: none;
    }

    #menu a:hover {
        color: #d11f3c !important;
    }

    .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;
    }

    .menu-socials i {
        font-size: 28px;
        color: #e5e6e8;
        transition: color 0.3s ease;
    }

    .menu-socials i:hover {
        color: #d11f3c;
    }

    #menuToggle input:checked ~ ul {
        transform: none;
    }

    /* TRAILER */
    .trailer {
        min-height: 80vh;
        height: auto;
        padding: 40px 20px;
    }

    .the_finals {
        left: 50%;
        top: 30%;
        width: 60%;
        font-size: 20px;
    }

    .the_finals img {
        margin-top: 40%;
        width: 100%;
    }

    .case_download {
        left: 50%;
        top: 80%;
        min-width: 200px;
    }

    .perso1 {
        display: none;
        max-width: 50vw;
        right: -5%;
    }

    /* PGW SECTION */
    .pgw {
        min-height: 65vh;
        height: auto;
        padding: 40px 20px;
    }

    .container_image {
        flex-direction: column;
        gap: 20px;
    }

    .image {
        width: 90%;
        height: 300px;
        perspective: 0px;
    }

    .image img {
        width: 100%;
        height: 90%;
        border-radius: 20px;
        transform: rotateY(0deg);
    }
    
    .invite {
        width: 80%;
        text-align: center;
        font-size: 16px;
    }
    .invite img {
        width: 50%;
    }

    /* PRESENTATION */
    .presentation {
        min-height: 80vh;
        height: auto;
        padding: 40px 20px;
        justify-content: center;
    }

    .text-present {
        width: 90%;
        max-width: 500px;
        height: auto;
        margin: 0;
        padding: 30px 20px;
    }

    .presentation p {
        font-size: 18px;
    }

    /* GAMEPLAY SECTION */
    .gameplay {
        min-height: 80vh;
        height: auto;
        padding: 40px 20px;
        flex-wrap: wrap;
    }

    .border-left,
    .border-right {
        width:15%;
    }

    .light, .medium, .heavy {
        width: 150px;
        height: 250px;
        margin: 10px;
        font-size: 24px;
    }

    .border-image {
        display: none !important;
    }

    .border-text-heavy,.border-text-light,.border-text-medium{
        font-size: 10px;
        right: -1000px;
        width: 80%;
        height: 20%;
        margin: 0% 7%;
        top: 5%;
        opacity: 1;
    }

    .border-text-heavy p,.border-text-light p,.border-text-medium p{
        font-size: 16px;
    }

    .border-text-heavy h2,.border-text-light h2,.border-text-medium h2{
        font-size: 20px;
    }

    .light:hover ~ .border-text-light {
        right: 20px;
        opacity: 1;
    }

    .medium:hover ~ .border-text-medium {
        right: 20px;
        opacity: 1;
    }

    .heavy:hover ~ .border-text-heavy {
        right: 20px;
        opacity: 1;
    }

    /* CAROUSEL MAPS */
    .contain-carousel {
        min-height: 80vh;
        height: 85vh;
    }
   .text-map {
    position: absolute;
    width: 30%;
    height: 20px;
    top: 30px;
    left: 0%;
    text-align: left;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 60px 20px 30px;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Icône dans le bandeau de texte */
.text-map img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
}

/* Titre du nom de la carte */
.text-map h1 {
    color: white;
    font-size: 36px; 
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    letter-spacing: 1px;
}
/* MODE CONTAINER */
.mode_container {
    min-height: 80vh;
    height: auto;
    flex-wrap: wrap;
}

.cashout, .deathmatch, .world {
    width: 24%;
    height: 65vh;
    margin: 7px;
    font-size: 18px;
}
.cashout .inner-card, .deathmatch .inner-card {
    width: 80%;
    height: 35%;
}

.cashout p, .deathmatch p, .world p {
    font-size: 14px;
}
.cashout h1, .deathmatch h1, .world h1 {
    font-size: 22px;
}

/* FOOTER */
.footer-logos {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logos .mentions {
    text-align: center;
    margin-bottom: 15px;
}

.card {
    width: 120px;
    height: 40px;
}
}

/* RESPONSIVE MOBILE (< 768px) */
@media (max-width: 767px) {
    /* Désactive le scroll snap sur mobile */
    body {
        scroll-snap-type: none;
    }
    .trailer,
    .pgw,
    .presentation,
    .gameplay,
    .contain-carousel,
    .mode_container {
        scroll-snap-align: none;
        min-height: auto;
        height: auto;
    }
    
    /* HEADER */
    .navbar ul,
    .socials {
        display: none !important;
    }

    .navdiv {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 10px;
    }

    .navdiv::after {
        content: "THE FINALS";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-family: "Saira Extra Condensed", sans-serif;
        font-weight: 800;
        font-size: 20px;
        color: #e5e6e8;
        letter-spacing: 1px;
        z-index: 1;
    }

    .logo img {
        margin-left: 10px;
        height: 50px;
    }

    /* MENU HAMBURGER */
    #menuToggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 2000;
        -webkit-user-select: none;
        user-select: none;
    }

    #menuToggle input {
        display: block;
        width: 35px;
        height: 28px;
        position: absolute;
        top: -7px;
        left: -5px;
        cursor: pointer;
        opacity: 0;
        z-index: 2001;
    }

    #menuToggle span {
        display: block;
        width: 28px;
        height: 3px;
        margin-bottom: 4px;
        position: relative;
        background: #cdcdcd;
        border-radius: 3px;
        z-index: 2000;
        transform-origin: 4px 0px;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    #menuToggle input:checked ~ span {
        opacity: 1;
        background: #e5e6e8;
        transform: rotate(45deg) translate(-2px, -1px);
    }

    #menuToggle input:checked ~ span:nth-last-child(3) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    #menuToggle input:checked ~ span:nth-last-child(2) {
        transform: rotate(-45deg) translate(0, -1px);
    }

    #menu {
        position: fixed;
        width: 250px;
        right: 0;
        top: 0;
        margin: 0;
        padding: 70px 20px 40px;
        background: #1d1a20;
        border-left: 2px solid #d11f3c;
        list-style-type: none;
        transform: translate(100%, 0);
        transition: transform 0.4s ease-in-out;
        height: 100vh;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    #menu li {
        padding: 15px 0;
        font-size: 20px;
        color: #e5e6e8;
        border-bottom: 1px solid rgba(229, 230, 232, 0.1);
        width: 100%;
    }

    #menu a {
        color: #e5e6e8 !important;
        font-family: "Saira Condensed", sans-serif;
        font-size: 20px;
        text-decoration: none;
    }

    #menu a:hover {
        color: #d11f3c !important;
    }

    .menu-socials {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding-top: 15px !important;
        margin-top: 15px;
        border-top: 2px solid #d11f3c !important;
        border-bottom: none !important;
    }

    .menu-socials i {
        font-size: 24px;
        color: #e5e6e8;
        transition: color 0.3s ease;
    }

    .menu-socials i:hover {
        color: #d11f3c;
    }

    #menuToggle input:checked ~ ul {
        transform: none;
    }

    /* TRAILER */
    .trailer {
        min-height: 70vh;
        height: auto;
        padding: 20px 10px;
    }

    .the_finals {
        left: 50%;
        top: 25%;
        width: 80%;
        font-size: 16px;
    }

    .the_finals img {
        margin-top: 20%;
        width: 100%;
    }

    .case_download {
        left: 50%;
        top: 60%;
        min-width: 180px;
        padding: 10px 15px;
    }

    #download {
        font-size: 12px;
    }

    .case_download .fa-download {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-left: 10px;
    }

    .perso1 {
        display: none;
    }

    /* PGW SECTION */
    .pgw {
        min-height: 70vh;
        height: auto;
        padding: 30px 15px;
    }

    .logo_pgw {
        width: 50px;
        top: 20px;
        left: 20px;
    }

    .container_image {
        flex-direction: column;
        gap: 15px;
    }

    .image {
        width: 95%;
        height: 250px;
        perspective: 0px;
    }

    .image img {
        width: 100%;
        height: 100%;
        border-radius: 15px;
        transform: rotateY(0deg);
    }
    
    .invite {
        width: 90%;
        text-align: center;
        font-size: 14px;
    }

    .invite img {
        width: 60%;
    }

    /* PRESENTATION */
    .presentation {
        min-height: 70vh;
        height: auto;
        padding: 30px 15px;
        justify-content: center;
    }

    .text-present {
        width: 95%;
        max-width: none;
        height: auto;
        margin: 0;
        padding: 20px 15px;
    }

    .presentation h1 {
        font-size: 28px;
    }

    .presentation p {
        font-size: 16px;
    }

    /* GAMEPLAY SECTION */
    .gameplay {
        min-height: auto;
        height: auto;
        padding: 30px 10px;
        flex-direction: column;
        align-items: center;
    }

    .border-left,
    .border-right {
        display: none;
    }

    .light, .medium, .heavy {
        width: 280px;
        height: 400px;
        margin: 15px 0;
        font-size: 24px;
    }

    .light .inner-card,
    .medium .inner-card,
    .heavy .inner-card {
        width: 80%;
        height: 50%;
    }

    .border-image {
        display: none !important;
    }

    .border-text {
        position: static;
        width: 90%;
        max-width: 280px;
        margin: 15px auto;
        padding: 20px;
        opacity: 0;
        transform: none;
        border-radius: 10px;
        border-left: 4px solid rgba(255, 0, 0, 0.8);
    }

    .border-text h2 {
        font-size: 24px;
    }

    .border-text p {
        font-size: 16px;
    }

    .light:hover ~ .border-text-light,
    .medium:hover ~ .border-text-medium,
    .heavy:hover ~ .border-text-heavy {
        opacity: 1;
        position: static;
        margin: 15px auto;
    }

    /* CAROUSEL MAPS */
    .contain-carousel {
        min-height: 70vh;
        height: 70vh;
        
    }

    .text-map {
        width: 80%;
        top: 20px;
        padding: 15px 40px 15px 20px;
        min-width: 200px;
    }

    .text-map img {
        width: 40px;
        height: 40px;
    }

    .text-map h1 {
        font-size: 28px;
    }

    /* MODE CONTAINER */
    .mode_container {
        min-height: auto;
        height: auto;
        padding: 30px 15px;
        flex-direction: column;
        align-items: center;
    }

    .cashout, .deathmatch, .world {
        width: 90%;
        max-width: 350px;
        height: auto;
        min-height: 450px;
        margin: 15px 0;
        font-size: 22px;
        padding: 20px 15px;
    }

    .cashout .inner-card,
    .deathmatch .inner-card,
    .world .inner-card {
        width: 80%;
        height: 200px;
    }

    .cashout h1, .deathmatch h1, .world h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .cashout p, .deathmatch p, .world p {
        font-size: 16px;
        padding: 10px;
    }

    /* FOOTER */
    .footer-logos {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 95%;
    }

    .footer-logos .mentions {
        text-align: center;
        font-size: 12px;
        margin-bottom: 20px;
    }

    .card {
        width: 100px;
        height: 35px;
    }

    .footer-logos img.logo_age {
        height: 60px;
    }
}