/* --- RESET & GLOBAL --- */
body {
    background-color: #1E90FF;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

h1 {
    color: #fff;
    margin: 0;
}

.centrer {
    text-align: center;
}

.container, .container-fluid {
    flex: 1;
}

/* --- HEADER --- */
header {
    background-color: #C1BDB3;
    height: 140px; 
    text-align: center;
    position: relative;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}

/* LOGO */
.header-logo img {
    height: 90px;
    width: auto;
}

/* TITRE CENTRÉ ABSOLUMENT */
.header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: white;
    font-size: 2rem;
    white-space: nowrap;
}

/* PROFIL (boutons) */
.header-profil {
    display: flex;
    align-items: center;
}

/* BOUTONS HEADER */
.btn-header {
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border: none;
}

.btn-green {
    background-color: greenyellow;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}


/* --- MENU PRINCIPAL (BOUTONS) --- */
.menu-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px; 
    position: relative;
}

.menu-link {
    text-decoration: none !important;
    display: block;
    width: 500px;
    max-width: 90vw; 
}

.buttonMenu {
    background-color: #C1BDB3;
    color: white;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    padding: 20px 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin: 0;
}

.buttonMenu h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.buttonMenu:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: #b0aca2;
    color: white;
}

/* ICÔNE D'AIDE */
.help-icon {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-icon:hover {
    background-color: white;
    color: #C1BDB3;
    border-color: white;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


/* --- FOOTER --- */
.site-footer {
    background-color: #C1BDB3;
    color: #333;
    margin-top: 50px; 
    padding-top: 30px;
    border-top: 4px solid #1E90FF;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    /* MODIFICATION ICI : nowrap pour empêcher le retour à la ligne sur PC */
    flex-wrap: nowrap; 
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px 20px; /* Réduction légère du padding latéral */
}

.footer-brand {
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    /* S'assurer que le titre ne se compresse pas trop */
    flex-shrink: 0; 
}

.footer-desc {
    margin: 0;
}

.footer-right h4 {
    display: none;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    /* MODIFICATION ICI : Réduction de l'écart pour faire tenir le nouveau lien */
    gap: 15px; 
    align-items: center;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    /* Optionnel : réduire très légèrement la police si ça coince encore */
    font-size: 0.9rem; 
    white-space: nowrap; /* Empêche le texte du lien de se couper */
}

.footer-links i {
    color: #1E90FF;
    margin-right: 5px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 10px 0;
    font-size: 0.8rem;
    color: #555;
}


/* --- RESPONSIVE --- */
/* MODIFICATION ICI : On passe à 992px (Tablettes) pour basculer en mode vertical plus tôt */
@media (max-width: 992px) {
    .site-footer {
        margin-top: 10px;
        padding-top: 20px;
    }
    .footer-container {
        /* Ici on remet en colonne pour les tablettes et mobiles */
        flex-direction: column;
        flex-wrap: wrap;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .footer-right {
        text-align: center;
    }

    .header-content {
        padding: 0 10px;
    }

    .header-logo img {
        height: 60px; /* Corrigé : il y avait un doublon dans ton code précédent */
        width: auto;
    }

    .header-title {
        font-size: 22px;
    }

    .btn-header {
        font-size: 16px;
        padding: 6px 10px;
    }
}

/* --- NOUVEAU : ICÔNE VIDÉO (à gauche) --- */
.video-icon {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-icon:hover {
    background-color: white;
    color: #1E90FF; 
    border-color: white;
    transform: scale(1.1) rotate(-10deg); 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ... Tout votre CSS précédent ... */

/* --- CORRECTIF D'ALIGNEMENT POUR PC (min-width: 992px) --- */
@media (min-width: 992px) {
    /* On force le conteneur à être la référence pour le positionnement.
       Les icônes vont être placées en "Absolu" par rapport au centre de ce conteneur.
       Ainsi, le bouton central (.menu-link) reste parfaitement au milieu, 
       qu'il y ait une icône vidéo ou non.
    */

    /* 1. L'icône VIDÉO (à gauche) */
    .video-icon {
        position: absolute;
        left: 50%; /* On part du milieu exact de l'écran */
        /* CALCUL : 
           -250px (moitié du bouton de 500px) 
           - 20px (espace désiré) 
           - 50px (largeur de l'icône) 
           = -320px vers la gauche 
        */
        margin-left: -320px; 
        margin-right: 0; /* On annule la marge flexible */
        top: 50%;
        transform: translateY(-50%); /* Centrage vertical parfait */
    }

    /* 2. L'icône AIDE (à droite) */
    .help-icon {
        position: absolute;
        left: 50%; /* On part du milieu exact de l'écran */
        /* CALCUL : 
           +250px (moitié du bouton de 500px) 
           + 20px (espace désiré)
           = +270px vers la droite
        */
        margin-left: 270px;
        top: 50%;
        transform: translateY(-50%); /* Centrage vertical parfait */
    }
}

/* --- PETIT AJUSTEMENT MOBILE --- */
@media (max-width: 991px) {
    /* Sur mobile, comme il y a 3 éléments sur la première ligne, 
       on réduit un peu les marges pour que ça rentre bien */
    .video-icon {
        margin-right: 10px;
        width: 40px; 
        height: 40px;
        font-size: 1.5rem;
    }
    .help-icon {
        margin-left: 10px;
        width: 40px; 
        height: 40px;
        font-size: 1.5rem;
    }
}