/* Importation des polices Google Fonts utilisées pour les titres et le texte */
@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@500&family=Saira+Extra+Condensed:wght@800&display=swap');

/* ---------- TITRES ---------- */
/* Les titres sont en majuscules avec une police condensée et épaisse */
h1,h2,h3,h4,h5,h6 {
    font-family: "Saira Extra Condensed", sans-serif;
	font-weight: 800;
    font-size: 34px;
}

/* ---------- PARAGRAPHES ---------- */
p {
    font-size: 20px;
    line-height: 1.6; /* Espacement entre les lignes */
}

/* ---------- COULEUR GÉNÉRALE DU TEXTE ---------- */
body{
    color: #141922;
}

/* ---------- STYLES GÉNÉRAUX DU SITE ---------- */
header,body,footer {
  background-color: #141922; /* Fond sombre global */
  font-family: "Saira Condensed", sans-serif;
  font-weight: 500;
  width: 100%;
}

/* ---------- HEADER ---------- */
/* Le header reste fixé en haut de la page */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Pour passer au-dessus du contenu */
}

/* ---------- LOGO ---------- */
.logo img {
  margin-left: 50px;
	height: 80px;
	width: auto;
}

/* ---------- NAVIGATION ---------- */
li {
	list-style: none;
	display: inline-block;
}

li a {
	font-family: "Saira Condensed", sans-serif;
	color: #e5e6e8;
	font-size: 30px;
	margin-right: 25px;
	text-decoration: none;
}

/* Effet hover sur les liens de navigation */
li a:hover {
  color: #d11f3c;
  text-decoration: underline;
}

/* Effet hover sur les icônes de réseaux sociaux */
.socials i:hover {
  color: #d11f3c;
}

/* Barre de navigation principale */
.navbar {
	background-color: #1d1a20;
	padding-left: 15px;
	padding-right: 15px;
}

/* Conteneur principal du header : logo, liens et réseaux */
.navdiv {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* ---------- RÉSEAUX SOCIAUX ---------- */
.socials {
	display: flex;
	gap: 20px; /* Espacement entre les icônes */
  margin-right: 50px;
}

.socials i {
	color: #e5e6e8;
	font-size: 24px;
	cursor: pointer;
}

/* ---------- CONTENU PRINCIPAL ---------- */
body {
  background-color: #e5e6e8; /* Fond clair du site */
  font-family: "Saira Condensed", sans-serif;
  font-weight: 500;
  width: 100%;
  margin: 0;
  padding-top: 150px; /* Pour éviter que le header fixe ne cache le contenu */
}

/* ---------- SECTION DE PRÉSENTATION ---------- */
.presentation {
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 650px;
    margin-top: -100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    justify-content: flex-start; /* Texte aligné à gauche */
}

/* Image d’arrière-plan de la présentation */
.presentation img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* Derrière le texte */
}

/* Texte dans la présentation */
.presentation p {
  font-size: 20px;
  padding: 2%;
  text-align: center;
}

/* Titre de présentation */
.presentation h1 {
  margin-top: 60%;
  margin: 0;
}

/* Bloc de texte au centre de la présentation */
.text-present {
  position: relative;
  z-index: 10;
  color: white;
  text-align: center;
  font-size: 28px;
  width: 400px;
  height: 400px;
  border-radius: 20px;
  text-shadow: 1px 1px 2px rgb(0, 0, 0);
  margin-left: 36%;
  margin-top: 10%;
  margin-bottom: 7%;
  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;
  transition: all 0.5s ease;
}

/* ---------- SECTIONS ---------- */
section {
    display: flex;
    align-items: center;
    gap: 40px; /* Espace entre texte et image */
    padding: 40px;
}

/* Bloc texte */
section > div:first-child {
    flex: 1;
}

/* Bloc image */
section > div:last-child {
    flex: 1;
}

/* Inversion des couleurs pour certaines images */
.inverse_couleur {
    filter: invert(1);
}

/* Image responsive */
section img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Section à fond noir */
.fond_graphique_noir {
    background-color: #141922;
    color: #fff;
}

/* Espacement haut pour la première section */
.first-section {
    margin-top: 4%;
}

/* Section avec image à gauche */
.inverse {
    flex: 1;
    flex-direction: row-reverse;
}

/* Images avec rotation et centrage */
.cash_out {
    width: 50%;
    margin-left: 25%;
    rotate: 90%;
}

.money {    
    width: 70%;
    margin-left: 25%;
    rotate: 90%;
}

.light_w_gun {
    position: relative;
}

/* ---------- FOOTER ---------- */
footer {
    background-color: #141922;
    padding: 40px 0;
    width: 100%;
    margin: 0;
}

/* Conteneur global du footer */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 30px;
}

/* ---------- CARROUSEL DU FOOTER ---------- */
.carousel_footer {
    width: 100%;
    display: flex;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    padding-top: 30px;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.group {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: 15s spin linear infinite;
}

/* Cartes du carrousel */
.card {
    flex: 0 0 auto;
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Images dans le carrousel */
.card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Animation du défilement du carrousel */
@keyframes spin {
    from { translate: 0; }
    to { translate: -100%; }
}

/* Conteneur du texte et logo dans le footer */
.footer-logos {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    gap: 30px;
}

/* Mentions légales */
.footer-logos .mentions {
    color: #e5e6e8;
    font-size: 14px;
    text-align: left;
    flex: 1;
}

/* Logo d’âge PEGI */
.footer-logos img.logo_age {
    height: 80px;
    width: auto;
    object-fit: contain;
}

footer p {
    padding-top: 5px;
    color: #141922;
    font-size: 14px;
    text-align: left;
    margin-bottom: 30px;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 50px 40px 50px;
}
.mentions a {
    color: tomato;
}
/* Très grand sous-titre */
.sous_titre {       
    font-size: 200px;
}

/* ---------- MENU HAMBURGER (MOBILE / TABLETTE) ---------- */

/* Caché par défaut sur PC */
#menuToggle {
  display: none;
}

/* ---------- RESPONSIVE TABLETTE ---------- */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Cacher menu principal et icônes */
    .navbar ul,
    .socials {
        display: none !important;
    }

    /* Header : logo à gauche, titre centré, menu à droite */
    .navdiv {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Ajout du texte 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;
    }

    /* 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;
    }

    /* Ajustement du logo pour tablette */
    .logo img {
        margin-left: 20px;
        height: 60px;
    }

    /* Ajustements de taille et mise en page */
    .text-present {
        margin-left: 25%;
    }
    p {
        font-size: 14px;
    }
    .cash_out,
    .money {
        display: flex;
        width: 100%;
        margin-left: 0%;
    }

    /* Footer centré sur tablette */
    .footer-logos {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logos .mentions {
        margin-bottom: 15px;
    }
}
