/* ==========================================================================
   1. RESET & BASES
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Arial', sans-serif; background: #f5f5f5; color: #222; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }

/* ==========================================================================
   2. HEADER & NAVIGATION (CORRIGÉ POUR SOUS-MENUS)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 10000; /* Augmenté pour être au-dessus de tout */
    border-bottom: 2px solid #000; /* Style carré net */
    padding: 10px 40px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px; /* Un peu plus large pour respirer */
    margin: 0 auto;
    position: relative;
}

.logo img,
.custom-logo {
    width: 300px !important;    /* Ajuste la largeur à ta guise */
    max-height: none !important; /* Débloque la hauteur maximale */
    height: auto !important;     /* Garde les proportions */
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    max-height: none !important;
    width: auto !important;
}
.site-header .logo a { font-size: 2rem; font-weight: 700; color: #0b1d3d; }
.site-header .logo img { max-height: 150px; width: auto; }

/* NAVIGATION PRINCIPALE */
.main-navigation { margin-left: 100px; }

.main-navigation ul {
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
    margin: 0 !important;
    padding: 0 !important;
}

.main-navigation li {
    position: relative !important; /* Pour ancrer le sous-menu */
    padding: 0;
}

.main-navigation a {
    font-size: 0.95rem;
    padding: 15px 12px;
    color: #0b1d3d;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
}

/* Soulignement animé sur les parents uniquement */
.main-navigation > ul > li > a::after {
    content: "";
    position: absolute;
    left: 12px;
    bottom: 5px;
    width: 0;
    height: 3px;
    background: #337f98;
    transition: width 0.3s ease;
}
.main-navigation > ul > li:hover > a::after { width: calc(100% - 24px); }

/* --- GESTION DU SOUS-MENU (EX: MEDIA) --- */
.main-navigation ul li ul {
    display: none !important; /* CACHÉ PAR DÉFAUT */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important;
    border: 2px solid #000 !important; /* Style Carré */
    min-width: 220px !important;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.1); /* Ombre nette */
    flex-direction: column !important; /* Force l'alignement vertical */
    padding: 0 !important;
    margin: 0 !important;
    z-index: 99999 !important;
}

/* Affiche le sous-menu au survol du parent */
.main-navigation ul li:hover > ul {
    display: flex !important;
}

/* Éléments internes du sous-menu */
.main-navigation ul li ul li {
    width: 100% !important;
    border-bottom: 1px solid #eee;
}

.main-navigation ul li ul li:last-child { border-bottom: none; }

.main-navigation ul li ul li a {
    padding: 12px 20px !important;
    font-size: 0.85rem !important;
    text-transform: none !important; /* Plus lisible */
    width: 100% !important;
    transition: background 0.2s;
}

.main-navigation ul li ul li a::after { display: none !important; } /* Pas de barre animée ici */

.main-navigation ul li ul li a:hover {
    background: #f8f9fa !important;
    color: #337f98 !important;
    padding-left: 25px !important; /* Petit effet de décalage au hover */
}

/* BOUTON ACTION HEADER */
.btn-header-fixed {
    background: #337f98;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 12px 0 0 12px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
}
.btn-header-fixed:hover { background: #265f72; transform: scale(1.05); }

/* ==========================================================================
   3. HERO SECTIONS
   ========================================================================== */
.hero-prise-en-charge {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

/* TITRES HERO */
.hero-title-news { font-size: 4rem; color: #ff3b3b; font-weight: bold; text-align: center; }

/* ==========================================================================
   4. MARQUEE (MESSAGE DÉFILANT)
   ========================================================================== */
.important-message {
    width: 100%;
    background: #13374f;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
}

.message-marquee {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.annonce-item {
    color: #fff;
    font-weight: bold;
    margin-right: 50px;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   5. COMPOSANTS (CARDS & BUTTONS)
   ========================================================================== */
.btn-alert {
    background: #e58b55;
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: bold;
}
.btn-alert:hover { background: #b71c1c; transform: scale(1.05); }

/* LISTE DISPARUS */
.disappeared-list .section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #13374f;
    margin-bottom: 40px;
}

.disappeared-list .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #337f98;
    margin: 10px auto;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.site-footer {
    background: #0b1d3d;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    border-top: 4px solid #337f98;
}



/* ==========================================================================
   7. RESPONSIVE (MOBILE) - VERSION FINALE
   ========================================================================== */

/* 1. CACHE LE BOUTON SUR PC (Par défaut) */
.menu-toggle {
    display: none !important;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #0b1d3d;
}

/* 2. CONFIGURATION MOBILE ET TABLETTE */
@media (max-width: 991px) {
    .site-header {
        padding: 15px 20px;
    }

    /* On affiche l'icône sandwich uniquement ici */
    .menu-toggle {
        display: block !important;
    }

    /* Masquage de la navigation PC pour le mobile */
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-bottom: 2px solid #000;
        z-index: 9999;
    }

    /* Affichage quand le menu est ouvert via JS */
    .main-navigation.menu-open {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column !important;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
    }

    /* Ajustement des sous-menus sur mobile */
    .main-navigation ul li ul {
        position: static !important;
        display: block !important;
        width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        background: #f9f9f9 !important;
        padding-left: 20px !important;
    }

    /* Cache le bouton "Soutenir" sur mobile */
    .btn-header-fixed.hide-on-mobile {
        display: none !important;
    }
} /* Fin du media query */

/* ==========================================================================
   8. LE SOUS-MENU (COLONNE VERTICALE FORCÉE)
   ========================================================================== */

ul.ma-colonne-verticale {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    flex-direction: column !important;
    display: flex !important;
    width: 260px !important;
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1) !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 999999 !important;
}

ul.ma-colonne-verticale li {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    height: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
}

ul.ma-colonne-verticale li:last-child {
    border-bottom: none !important;
}

ul.ma-colonne-verticale li a {
    display: block !important;
    width: 100% !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
    color: #000000 !important;
    background: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: left !important;
    text-transform: none !important;
}

ul.ma-colonne-verticale li a:hover {
    background: #337f98 !important;
    color: #ffffff !important;
    padding-left: 25px !important;
}

/* On force le conteneur à accepter une grande taille */
.mon-logo-container {
    display: inline-block !important;
    width: auto !important;
    max-width: 400px !important; /* Limite maximale de largeur */
}

/* On force le lien généré par WordPress */
.mon-logo-container a.custom-logo-link {
    display: block !important;
    width: 100% !important;
}

/* On force l'image elle-même */
.mon-logo-container img {
    width: 250px !important;    /* TAILLE À MODIFIER ICI */
    height: auto !important;    /* Garde les proportions */
    max-height: 200px !important; /* Hauteur max autorisée */
    display: block !important;
}

/* On force le lien et l'image à ne plus avoir de limite */
.logo a.custom-logo-link,
.logo img.custom-logo {
    display: inline-block !important;
    max-height: none !important; /* Enlève la limite de hauteur */
    width: 400px !important;    /* FORCE la largeur à 250px (change selon tes goûts) */
    height: auto !important;     /* Garde le ratio */
}

/* On s'assure que le conteneur header ne bloque pas l'image */
.site-header {
    height: auto !important; /* Permet au header de s'agrandir avec le logo */
}

/* On force l'image à prendre la taille voulue */
.mon-logo-geant {
    width: 400px !important; /* Change le chiffre pour agrandir encore plus */
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
}

/* On s'assure que le conteneur ne limite pas l'image */
.logo {
    width: auto !important;
    max-height: none !important;
}

/* On vérifie que le header peut s'agrandir verticalement */
.site-header {
    height: auto !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}
