@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;
}
.card-container {
    background-image: #333;
    padding: 50px 3%;
    overflow: hidden;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 200px; /* espacement entre les deux lignes */
}

.card-row:last-child {
    margin-bottom: 0; /* supprime la marge sur la dernière ligne */
}

.editeur, .host, .responsa, .proprio, .protect, .loi {
    flex: 1;
    max-width: 32%; /* 3 cartes par ligne : 100%/3 ≈ 33% */
    height: 330px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    text-align: center;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgb(0, 0, 0);
    margin: 0 1%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
}
.proprio,.protect,.loi {
    margin-bottom: 100px;
}

/* Effet au survol */
.editeur:hover, .host:hover, .responsa:hover, 
.proprio:hover, .protect:hover, .loi:hover {
    transform: translateY(-10px);
    border-color: #e50914;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

/* Titres et paragraphes */
.editeur h1, .host h1, .responsa h1, 
.proprio h1, .protect h1, .loi h1 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.editeur p, .host p, .responsa p,
.proprio p, .protect p, .loi p {
    font-size: 14px;
    color: #ddd;
    line-height: 1.5;
    padding: 0 10px;
}

/* 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;
}

/* Logo de classification d'âge */
.footer-logos img.logo_age {
    height: 80px;
    width: auto;
    object-fit: contain;
}
.mentions a {
    color: tomato;
}
/* 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 */
    .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;
    }
    /* 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 TABLETTE (768px - 1024px)*/
@media (min-width: 768px) and (max-width: 1024px) {
    .editeur, .host, .responsa, .proprio, .protect, .loi {
    flex: 1;
    max-width: 32%; /* 3 cartes par ligne : 100%/3 ≈ 33% */
    height: 500px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    text-align: center;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgb(0, 0, 0);
    margin: 0 1%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
}
/* Titres et paragraphes */
.editeur h1, .host h1, .responsa h1, 
.proprio h1, .protect h1, .loi h1 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.editeur p, .host p, .responsa p,
.proprio p, .protect p, .loi p {
    font-size: 12px;
    color: #ddd;
    line-height: 1.5;
    padding: 0 10px;
}
}