/* --- 1. CONFIGURATION GÉNÉRALE --- */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    /* C'EST LA CLEF : On coupe tout ce qui dépasse sur les côtés */
    overflow-x: hidden; 
    width: 100%;
    max-width: 100%;
}

/* --- 2. L'IMAGE DE FOND ET LE CONTENEUR PRINCIPAL --- */
.hero-section {
    min-height: 100vh; 
    /* Astuce mobile : dvh assure que la barre du navigateur ne cache pas le bas */
    min-height: 100dvh; 
    
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), 
                url('../img/fond-domino.jpg'); 
    background-size: cover;
    background-position: center;
    position: relative; 
}

/* --- LE LOGO --- */
.logo-container img {
    height: 130px; /* Taille Desktop */
    width: auto;  
    transition: height 0.3s ease;
}

/* ---  RESEAUX SOCIAUX --- */
.social-icons a {
    font-size: 2rem; 
    text-decoration: none; /* Correction du "green wavy" par défaut */
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2); 
    opacity: 0.9;
}

/* --- 3. TYPOGRAPHIE SPÉCIFIQUE --- */
.main-title {
    font-family: 'The Nautigal', cursive;
    font-size: 10rem; 
    font-weight: 400;
    line-height: 1; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.tracking-wide {
    font-family: 'Vidaloka', serif;
    letter-spacing: 3px; 
    font-size: 0.9rem;
    font-weight: 400; 
}

/* --- 4. LES BOUTONS --- */
.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.8); 
    padding: 15px 30px;
    letter-spacing: 2px; 
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.4s ease;
    background: transparent;
    min-width: 330px; 
    text-align: center;
}

.btn-outline-light:hover {
    background-color: white;
    color: black;
    border-color: white;
    transform: translateY(-3px);
}

/* --- 5. LE LIEN DU BAS --- */
.lien-carte {
    font-family: sans-serif; 
    letter-spacing: 3px; 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: white;
    text-decoration: none;
    border-bottom: 2px solid white;
    padding-bottom: 5px; 
    transition: all 0.3s ease; 
    display: inline-block; 
}

.lien-carte:hover {
    opacity: 0.8; 
    color: white; 
    border-bottom-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px); 
}

/* --- 6. RESPONSIVE MOBILE (Tablettes et Téléphones) --- */
@media (max-width: 768px) {
    
    /* 1. On réduit le logo pour qu'il ne pousse pas les icônes réseaux sociaux */
    .logo-container img {
        height: 80px; 
    }

    /* 2. On réduit le titre pour qu'il tienne dans l'écran */
    .main-title {
        font-size: 4.5rem; 
    }
    
    /* 3. Boutons pleine largeur et espacés */
    .btn-outline-light {
        min-width: unset;
        width: 100%; 
        margin-bottom: 15px; 
        box-sizing: border-box; 
    }

    /* 4. On s'assure que la page a des marges de sécurité sur les côtés */
    .hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 5. Force l'espace au dessus du lien sur mobile */
    .espace-mobile {
        margin-top: 3rem !important;
        margin-bottom: 2rem !important;
    }
}