/* =========================================
   1. VARIABLES & RESET (Les bases)
   ========================================= */
:root {
    --primary: #FF6600;   /* Orange (Actions, Boutons) */
    --secondary: #2c3e50; /* Bleu Nuit (Fond menu, Titres) */
    --light: #f4f7f9;     /* Gris clair (Fond page) */
    --dark: #334155;      /* Texte */

    /* Couleurs d'état (centralisées ici pour toutes les pages) */
    --success: #27ae60;   /* Vert (succès, validé) */
    --danger:  #e74c3c;   /* Rouge (erreur, suppression) */
    --warning: #f39c12;   /* Orange/jaune (alerte) */
    --info:    #3498db;   /* Bleu (information) */
    --accent:  #CCFF00;   /* Vert fluo (accent) */

    /* Éléments d'interface */
    --border:  #e4e6ea;   /* Bordures */
    --shadow:  0 2px 12px rgba(0,0,0,.08); /* Ombre douce */
    --radius:  14px;      /* Arrondi standard */
    --bg:      #f0f2f5;   /* Fond alternatif */
}

* {
    box-sizing: border-box; /* Important pour éviter les débordements */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Empêche le scroll horizontal */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ✅ FIX : Conteneur sans espace blanc excessif */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    padding-bottom: 30px;
    }

/* =========================================
   2. LE HEADER (Barre du haut)
   ========================================= */
header {
    overflow: visible !important;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--secondary);
    color: white;
    height: auto; 
    min-height: 75px;
    padding: 10px 40px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- LE LOGO ET LE TEXTE --- */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.logo img {
    height: 80px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.titre-asso {
    font-size: 1.3em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 600px) {
    .titre-asso {
        font-size: 1em;
        display: none;
    }
}

/* La Navigation */
nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav ul li a {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* Bouton Connexion spécial */
.btn-login {
    background-color: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
}

.btn-login:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* =========================================
   3. LE MENU DÉROULANT (Dropdown)
   ========================================= */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 90%;
    left: 0;
    margin-top: 0;
    padding-top: 10px;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 0 0 5px 5px;
    z-index: 2000;
    border-top: 2px solid var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--dark) !important;
    padding: 12px 16px;
    display: block;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--primary) !important;
    padding-left: 20px;
}

/* =========================================
   4. ELEMENTS GLOBAUX (Boutons, Tables)
   ========================================= */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-blue { 
    background-color: var(--secondary); 
    color: white; 
}

.btn-blue:hover { 
    background-color: #34495e; 
    transform: translateY(-2px);
}

/* =========================================
   5. RESPONSIVE (Mobile)
   ========================================= */
@media (max-width: 768px) {
    header {
        height: auto;
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: column;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
    }
    
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
        width: 100%;
        background: #f9f9f9;
        padding: 10px 0;
    }
    
    .dropdown-content a {
        padding: 10px 20px;
    }
    
    .container {
        padding: 0 15px;
        padding-bottom: 20px; /* Moins d'espace sur mobile */
    }
}
.fb_iframe_widget, 
.fb_iframe_widget span, 
.fb_iframe_widget iframe {
    box-sizing: content-box !important; /* On remet le mode de calcul par défaut pour FB */
    max-width: 100% !important; /* Empêche de dépasser sur mobile */
}