/* Barre de navigation */
.menu-navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: white; z-index: 9000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 20px;
}
.menu-nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; }
.menu-logo-group { display: flex; align-items: center; gap: 15px; }
.menu-logo-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.menu-nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }

.menu-nav-links a { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-decoration: none; 
    color: #d40000; 
    font-weight: 600; 
    /* --- AJOUT ICI --- */
    white-space: nowrap; /* Empêche le retour à la ligne des icônes/flèches */
}

/* Menu déroulant */
.menu-dropdown { position: relative; }
.menu-dropdown-content {
    display: none; position: absolute; background: white;
    min-width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    top: 100%; left: 0; z-index: 9001;
}
.menu-dropdown:hover .menu-dropdown-content { display: block; }
.menu-dropdown-content a { color: #333 !important; padding: 10px; display: block; border-bottom: 1px solid #eee; }

.menu-dropbtn {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

/* La Modale (C'est ici que le lien se fait) */
.menu-modal-container {
    display: none; /* Caché par défaut */
    position: fixed; z-index: 10000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center; align-items: center;
}
.menu-modal-box {
    background: white; padding: 30px; border-radius: 12px;
    width: 90%; max-width: 400px; position: relative;
}
.menu-close-btn { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; }

/* On force le formulaire à ranger ses enfants en colonne */
.menu-modal-box form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espace régulier entre chaque élément */
    text-align: left; /* Aligne les textes à gauche */
}

/* On force les labels à prendre une ligne entière */
.menu-modal-box label {
    display: block;
    font-weight: bold;
    margin-bottom: 2px;
    color: #333;
}

/* On s'assure que les champs occupent toute la largeur */
.menu-modal-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box; /* Très important : inclut le padding dans la largeur */
}

/* Le bouton bleu de connexion */
.menu-btn-submit {
    width: 100%;
    padding: 12px;
    background: #223f7a;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}
.menu-btn-submit:hover {
    background: #1a315e; /* Un bleu un peu plus sombre au survol */
}

/* Mobile */
.menu-burger { display: none; font-size: 2rem; cursor: pointer; color: #d40000; }

@media (max-width: 992px) {
    .menu-burger { display: block; }
    .menu-nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: white; padding: 20px; }
    .menu-nav-links.active { display: flex; }
}