/* ==========================================================================
   1. VARIABLES & IMPORTS
   ========================================================================== */
   @import 'variables.css';

   /* --- FIX POLICE GLOBALE --- */
/* On force l'héritage sur tous les éléments interactifs */
input, 
button, 
textarea, 
select {
    font-family: inherit; /* Force l'utilisation de 'Inter' défini dans le body */
    font-size: inherit;
}

/* On s'assure que Montserrat est bien sur TOUS les titres sans exception */
h1, h2, h3, h4, h5, h6, .logo-font {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

/* ==========================================================================
   2. BASES STRUCTURELLES & TYPOGRAPHIE
   ========================================================================== */

   html {
    /* On définit la couleur de fond ici pour éviter le flash blanc au chargement */
    background-color: var(--beige);
    /* On force la barre de scroll pour éviter le décalage du header entre les pages */
    overflow-y: auto !important;
    height: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    /* On laisse le scroll se faire naturellement partout */
    overflow-y: visible !important; 
    overflow-x: hidden;
    
    background-color: var(--beige);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    
    /* Structure pour coller le footer en bas */
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 100vh;
    
    /* FIX NETTETÉ */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* On s'assure que le contenu prend tout l'espace pour pousser le footer */
main { 
    flex: 1 0 auto; 
}

/* --- LE STYLE MAGENTA (CHROME/SAFARI) --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { 
    background-color: var(--accent); 
    border-radius: 10px; 
}

/* --- LES EXCEPTIONS --- */

/* 1. SEULE LA PAGE MAP EST BLOQUÉE (IMMERSION) */
body.map-page {
    overflow: hidden !important;
    height: 100vh !important;
}

/* 2. ANTI-DOUBLON POUR TOUTES LES PAGES */
/* On s'assure qu'aucun 'main' ne crée sa propre barre de scroll */
main {
    height: auto !important;
    overflow: visible !important;
}

/* --- ÉLÉMENTS COMMUNS --- */
a { text-decoration: none; transition: 0.3s; }
h1, h2, h3, .logo-font {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
   /* ==========================================================================
      3. HEADER LUXE (PILL NAVIGATION)
      ========================================================================== */
   .main-header {
       position: fixed;
       top: 30px;
       left: 50%;
       transform: translateX(-50%);
       width: 80vw !important; /* 10% de marge de chaque côté */
       max-width: 1600px;
       z-index: 2000;
       transition: width 0s;
   }
   
   .nav-pill {
       background-color: #1C3B6E !important;
       padding: 0px 50px;
       border-radius: 100px;
       height: 90px;
       display: grid !important;
       grid-template-columns: 1fr auto 1fr;
       align-items: center;
       justify-content: space-between;
       backdrop-filter: none !important;
       -webkit-backdrop-filter: none !important;
       filter: none !important;
       opacity: 1 !important;
       border: none !important;
   }
   
   /* --- BRANDING (LOGO & NOM) --- */
   .brand-block {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 0; /* Prend 1 part de l'espace total disponible */
    justify-self: start;
    justify-content: flex-start;
}
   
   .logo-badge {
       width: 60px;
       height: 60px;
       background: #F7F3E8;
       border-radius: 12px;
       display: flex;
       align-items: center;
       justify-content: center;
       flex-shrink: 0;
   }
   
   .logo-icon-img {
       width: 50px;
       height: 50px;
       object-fit: contain;
   }
   
   .logo {
       font-size: 2.2rem;
       color: var(--beige) !important;
       letter-spacing: 1px;
   }
   
   .logo span {
       color: var(--accent);
   }
   
   /* --- NAVIGATION CENTRALE --- */
   .nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    /* Suppression du flex: 1 qui décalait le tout */
    justify-self: center;
    margin: 0;
    padding: 0;
    flex: 0 0 auto; 
    justify-content: center;
}
   
   .nav-links a {
       color: var(--beige) !important;
       font-size: 0.9rem;
       text-transform: uppercase;
       font-weight: 600;
       opacity: 1 !important;
       padding-bottom: 5px;
       border-bottom: 2px solid transparent;
       text-shadow: none !important;
       filter: none !important;
   }
   
   .nav-links a:hover, 
   .nav-links a.active {
       opacity: 1 !important;
       border-bottom: 2px solid var(--accent);
   }
   
   /* --- HEADER RIGHT (ACTIONS) --- */
   .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 0; /* Prend 1 part égale au brand-block */
    justify-self: end;
    justify-content: flex-end;
}
   
   .header-right::after {
       content: none !important;
   }
   
   .btn-secondary {
       color: #F7F3E8 !important;
       font-size: 0.9rem;
       font-weight: 600;
       text-transform: uppercase;
       opacity: 1 !important;
   }
   
   .btn-secondary:hover {
       color: var(--accent) !important;
   }
   
   .btn-cta {
       background: var(--accent) !important;
       color: white !important;
       padding: 10px 25px;
       border-radius: 50px;
       font-size: 0.8rem;
       font-weight: 700;
       display: flex;
       align-items: center;
       gap: 10px;
       transition: transform 0.3s;
   }
   
   .btn-cta:hover {
       transform: scale(1.05);
   }
   
   .login-icon {
       width: 22px !important;
       height: 22px !important;
       color: var(--beige);
   }

   /* Exceptions pour la map.php */

   .map-page .main-header {
    /* Puisque la scrollbar de 8px disparaît, le centre de l'écran se décale de 4px.
       On ajoute une marge à gauche de -4px pour "tirer" le header et le 
       maintenir exactement au même endroit que sur l'index. */
    margin-left: -7px !important;
}
   
   /* --- ÉTAT CONNECTÉ --- */
   .user-profile-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    padding: 6px 16px;
    border-radius: 100px;
    }
    
    .logout-action {
        display: flex;
        align-items: center;
        color: white; /* Assure la visibilité sur fond bleu */
        transition: opacity 0.2s;
    }
    
    .logout-action:hover {
        opacity: 0.7;
        transform: scale(1.1);
    }
    
    .logout-svg {
        width: 18px;
        height: 18px;
    }

   .user-name-display {
       color: #FFFFFF !important;
       font-weight: 700;
       font-size: 0.85rem;
       text-transform: uppercase;
       letter-spacing: 1px;
       white-space: nowrap;
       opacity: 1;
       transition: color 0.3s ease;
   }

   .user-link:hover .user-name-display {
    color: var(--gold) !important; /* Le prénom passe en doré au survol */
    transition: 0.3s;
}
   
   
   /* --- MOBILE TOGGLE (MASQUÉ SUR DESKTOP) --- */
   .menu-toggle {
       display: none !important; /* LE FIX DU POINT BLANC */
       flex-direction: column;
       justify-content: center;
       gap: 6px;
       width: 30px;
       height: 30px;
       background: transparent;
       border: none;
       cursor: pointer;
   }
   
   /* ==========================================================================
      5. SIDE DRAWER (LOGIN)
      ========================================================================== */
   .login-drawer-overlay {
       position: fixed;
       top: 0; left: 0;
       width: 100vw; height: 100vh;
       background: rgba(28, 59, 110, 0.45);
       backdrop-filter: blur(8px);
       z-index: 3000;
       display: none;
       opacity: 0;
       transition: opacity 0.4s ease;
   }
   
   .login-drawer-overlay.active {
       display: block !important;
       opacity: 1 !important;
   }
   
   .login-drawer {
       position: fixed;
       top: 0; right: 0;
       width: 42%;
       min-width: 480px;
       max-width: 650px;
       height: 100vh;
       background-color: #F7F3E8 !important;
       border-left: 4px solid rgba(28, 59, 110, 0.2);
       border-radius: 40px 0 0 40px;
       z-index: 3001;
       box-shadow: -30px 0 70px rgba(0, 0, 0, 0.25);
       display: flex;
       flex-direction: column;
       padding: 30px 45px 40px;
       box-sizing: border-box;
       transform: translateX(100%);
       visibility: hidden;
       transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.6s;
   }
   
   .login-drawer.active {
       transform: translateX(0) !important;
       visibility: visible !important;
   }
   
   .drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; width: 100%; }
   .drawer-header-icon { width: 70px; height: 70px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(28, 59, 110, 0.15)); }
   .close-drawer { background: none; border: none; cursor: pointer; color: var(--primary); transition: 0.3s; }
   .close-drawer:hover { transform: rotate(90deg); color: var(--accent); }
   
   .drawer-content { flex: 1; display: flex; flex-direction: column; text-align: center; }
   .drawer-content h3 { font-size: 1.6rem; color: var(--primary); margin-bottom: 10px; }
   .drawer-content p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 20px; }
   
   .login-drawer .social-auth { display: flex; flex-direction: column; gap: 12px; margin-bottom: 15px; }
   .login-drawer .btn-social {
       width: 100%; height: 52px; border-radius: 50px;
       display: flex; align-items: center; justify-content: center; gap: 15px;
       font-weight: 600; cursor: pointer; transition: 0.3s;
       border: 1px solid rgba(0,0,0,0.1); font-family: 'Inter', sans-serif;
   }
   .login-drawer .btn-apple { background: #000; color: #fff; }
   .login-drawer .btn-google { background: #fff; color: var(--text-main); }
   .login-drawer .social-icon { width: 20px !important; height: 20px !important; }
   
   .login-drawer .auth-separator { display: flex; align-items: center; margin-bottom: 15px; font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
   .login-drawer .auth-separator::before, .login-drawer .auth-separator::after { content: ''; flex: 1; border-bottom: 1px solid rgba(28, 59, 110, 0.1); }
   .login-drawer .auth-separator span { padding: 0 15px; }
   
   .login-drawer .form-group { text-align: left; margin-bottom: 12px; }
   .login-drawer label { display: block; font-size: 0.7rem; font-weight: 700; color: var(--primary); text-transform: uppercase; margin-bottom: 8px; }
   .login-drawer input { width: 100%; padding: 15px 20px; background: rgba(255,255,255,0.6); border: 1px solid rgba(28, 59, 110, 0.15); border-radius: 15px; font-size: 1rem; }
   
   .login-drawer .btn-auth-submit { width: 100%; padding: 18px; background: var(--gold); color: white; border-radius: 50px; font-weight: 800; text-transform: uppercase; border: none; cursor: pointer; margin-top: 10px; transition: 0.3s; }
   .login-drawer .btn-auth-submit:hover { background: var(--accent); transform: translateY(-2px); }
   
   .drawer-footer { margin-top: auto; padding-top: 20px; font-size: 0.95rem; }
   .drawer-footer a { color: var(--primary); font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--accent); }
   
   .error-message-login {
       background-color: rgba(211, 47, 47, 0.1);
       color: #d32f2f;
       padding: 12px;
       border-radius: 8px;
       border: 1px solid #d32f2f;
       font-size: 0.85rem;
       margin-bottom: 20px;
       text-align: center;
       font-weight: 500;
   }
   
/* ==========================================================================
   6. FOOTER LUXE (ORCHESTRATION)
   ========================================================================== */

/* --- 6.1. STRUCTURE GLOBALE --- */
.footer {
    background-color: var(--primary); /* Ton bleu marine */
    color: var(--beige);
    padding: 30px 0 15px;
    width: 100%;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative; /* Pour le centrage absolu du milieu */
    width: 80% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Reset des listes (Suppression points blancs) */
.footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
}

/* --- 6.2. ÉLÉMENTS GÉNÉRIQUES (TYPO & LIENS) --- */
.footer-col h4 {
    color: var(--accent) !important; /* Magenta */
    text-transform: uppercase;
    font-size: 0.80rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-align: right;
    white-space: nowrap;
}

.footer-col ul li a {
    color: var(--beige) !important;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    line-height: 1.5;
    display: block;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: white !important;
    transform: translateX(-5px);
}

/* --- 6.3. BLOC GAUCHE : BRANDING --- */
.brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 38%;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.footer-badge {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.footer .logo {
    font-size: 1.8rem;
}

.footer-tagline {
    font-size: 0.8rem;
    opacity: 0.6;
    font-style: italic;
}

/* --- 6.4. BLOC CENTRE : RÉSEAUX SOCIAUX --- */
.social-col {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
}

.social-col h4 {
    color: var(--accent) !important;
    text-transform: uppercase;
    font-size: 1rem !important;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px; /* Valeur conservée du h4 spécifique social */
}

.social-links {
    display: flex;
    gap: 30px !important;
}

.social-links a svg {
    width: 24px;
    height: 24px;
    fill: var(--beige);
    transition: transform 0.3s ease, fill 0.3s ease;
}

.social-links a:hover svg {
    fill: var(--accent);
    transform: translateY(-5px);
}

/* --- 6.5. BLOC DROITE : NAVIGATION & GROUPES --- */
.right-col {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 60px;
    width: 45%;
}

.footer-sub-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-sub-group h4 {
    margin-bottom: 20px;
    white-space: nowrap;
}

/* Alignement spécifique des groupes internes */
.right-col .legal-group, 
.right-col .impact-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

/* --- 6.6. BAS DE PAGE (COPYRIGHT & SITEMAP) --- */
.footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(247, 243, 232, 0.1);
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.4;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: 1600px;
    margin: 0 auto;
    font-size: 0.7rem;
    opacity: 0.5;
}

.sitemap-link { 
    color: inherit; 
    text-decoration: none; 
}

.sitemap-link:hover { 
    text-decoration: underline; 
}


.mobile-only {
    display: none !important;
}

/* Cache l'avatar circulaire par défaut (Desktop) */
.mobile-user-avatar {
    display: none !important;
}

/* ==========================================================================
   5. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* --- TABLETTE (1024px) --- */
@media (max-width: 1024px) {
    .main-header { width: 90vw !important; }
    .nav-pill { padding: 0 30px; height: 80px; }
    .login-drawer { width: 60%; }
    .footer-grid, .footer-bottom-flex { width: 90%; }
}

/* --- MOBILE (768px) --- */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .main-header { top: 15px; width: 95vw !important; }
    .nav-pill { height: 70px; padding: 0 20px; grid-template-columns: 1fr auto; } /* On retire une colonne du grid */
    
    .nav-links { display: none !important; } /* On cache les liens centraux */
    
    .nav-links.mobile-active {
        display: flex !important; /* On le réaffiche */
        flex-direction: column;
        position: fixed;
        top: 85px; /* Juste en dessous de la pilule */
        left: 50%;
        transform: translateX(-50%);
        width: 95vw;
        background-color: #1C3B6E; /* Même bleu que la pilule */
        padding: 30px;
        border-radius: 30px;
        gap: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        z-index: 1999;
        animation: slideInDown 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav-links.mobile-active li {
        width: 100%;
        text-align: center;
    }

    .nav-links.mobile-active a {
        font-size: 1.2rem; /* Plus grand pour le pouce */
        display: block;
        padding: 10px;
        border-bottom: 1px solid rgba(247, 243, 232, 0.1);
    }

    .nav-links.mobile-active .mobile-only {
        display: block !important;
    }

    /* Optionnel : donner un style un peu plus "bouton" à S'inscrire dans le menu */
    .nav-links.mobile-active li:last-child a {
        font-weight: 800;
        letter-spacing: 1px;
    }

    /* 2. On affiche et on style l'avatar circulaire (l'initiale) */
    .mobile-user-avatar {
        display: flex !important; /* On force l'affichage sur mobile */
        width: 38px;
        height: 38px;
        background-color: var(--accent); /* Ton magenta */
        border-radius: 50% !important;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .mobile-user-avatar span {
        color: white;
        font-family: 'Montserrat', sans-serif;
        font-weight: 800;
        font-size: 0.9rem;
        line-height: 1;
    }

    /* 3. On "nettoie" le conteneur pill pour que seul le cercle soit visible */
    .user-profile-pill {
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    @keyframes slideInDown {
        from { opacity: 0; transform: translate(-50%, -20px); }
        to { opacity: 1; transform: translate(-50%, 0); }
    }

    .logo { font-size: 1.5rem; }
    .logo-badge { width: 45px; height: 45px; }
    .logo-icon-img { width: 35px; height: 35px; }
    
    .header-right { gap: 10px; }
    .btn-secondary { display: none !important; } /* On cache "S'inscrire" texte */
    
    /* Bouton Connexion réduit à une icône */
    .btn-cta {
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: var(--accent) !important;
        /* On s'assure que la couleur de l'icône sera blanche */
        color: #FFFFFF !important; 
    }

    .btn-cta span { display: none; } /* On cache le texte "Se connecter" */
    
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 2001;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--beige);
        border-radius: 3px;
        transition: 0.3s ease;
    }

    /* Animation quand le menu est ouvert (optionnel) */
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* On affiche l'icône user sur mobile */
    .login-mobile-icon {
        /* On force l'affichage malgré le display:none du PHP */
        display: block !important; 
        width: 20px !important;
        height: 20px !important;
        /* currentColor utilisera le blanc défini plus haut */
        stroke: currentColor !important; 
    }

    /* Login Drawer plein écran */
    /* 1. LE CONTENEUR : Il prend toute la largeur sur mobile */
    .login-drawer {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        
        /* FORCE LA LARGEUR : 100% de l'écran, pas un pixel de plus */
        width: 100% !important; 
        max-width: 100vw !important;
        min-width: 0 !important; /* Annule d'éventuels min-width */
        
        height: 100vh !important;
        margin: 0 !important;
        padding: 50px 20px !important; /* Moins de padding pour gagner de la place */
        
        box-sizing: border-box !important; /* Inclut le padding dans les 100% */
        z-index: 999999 !important;
        overflow-x: hidden !important; /* Interdit tout dépassement horizontal */
        background-color: var(--beige) !important;
        
        /* Animation fluide */
        transform: translateX(100%); 
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    /* On s'assure que le contenu intérieur est aussi contenu */
    .login-drawer * {
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important; /* Coupe les mots s'ils sont trop longs */
    }

    /* Animation : On joue sur le transform pour la fluidité */
    .login-drawer {
        transform: translateX(100%); /* Caché à droite */
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }


    .login-drawer.active {
        transform: translateX(0) !important;

    }

    .drawer-header .logo, .drawer-header h1 {
        font-size: 1.8rem !important; /* On réduit la taille du logo CHOSETRIP */
        max-width: 100% !important;
        overflow: hidden;
        white-space: nowrap;
        display: block;
        margin-bottom: 20px;
    }

    /* 2. LES TITRES : On réduit pour éviter les retours à la ligne brusques */
    .drawer-header h2 {
        font-size: 1.25rem !important; 
        text-align: center !important;
        line-height: 1.3;
        white-space: normal !important; /* Autorise le passage à la ligne */
    }

    .drawer-header p {
        font-size: 0.85rem !important;
        margin-bottom: 30px;
    }

    /* 3. LES BOUTONS SOCIAUX (Apple / Google) */
    .social-auth {
        gap: 12px !important;
    }

    .btn-social {
        height: 50px !important; /* Plus haut pour faciliter le clic au pouce */
        font-size: 0.9rem !important;
    }

    /* 4. LE FORMULAIRE : Espacement optimisé */
    .auth-form {
        width: 100% !important;
        display: flex;
        flex-direction: column;
    }

    .form-group label {
        font-size: 0.7rem !important;
        margin-bottom: 8px !important;
    }

    .form-group input {
        padding: 14px 15px !important; /* Plus grand pour le confort tactile */
        font-size: 1rem !important; /* Évite le zoom auto sur iPhone au clic */
    }

    /* 5. BOUTON "SE CONNECTER" : Statutaire */
    .btn-auth-submit {
        width: 100% !important;
        height: 55px !important;
        font-size: 0.9rem !important;
        border-radius: 100px !important;
        margin-top: 10px;
    }

    /* 6. LE LIEN "REJOINDRE LE CERCLE" */
    .drawer-footer {
        margin-top: 40px;
        font-size: 0.85rem !important;
    }


    /* FOOTER RESPONSIVE */
    .footer-grid { flex-direction: column; align-items: center; text-align: center; gap: 40px; }
    .brand-col, .right-col { width: 100%; justify-content: center; align-items: center; }
    .right-col { flex-direction: column; gap: 30px; }
    .social-col { position: static; transform: none; margin: 20px 0; }
    .footer-sub-group, .footer-col h4, .right-col .legal-group { text-align: center; align-items: center; }
    .footer-bottom-flex { flex-direction: column; gap: 10px; }
}


    /* --- BANDEAU COOKIES PREMIUM --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150%); /* Caché par défaut */
    width: 90%;
    max-width: 600px;
    background-color: var(--beige);
    border: 1px solid rgba(212, 175, 55, 0.3); /* Bordure Or subtile */
    padding: 20px 30px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--primary);
    line-height: 1.5;
    margin: 0;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-cookie.accept {
    background-color: var(--gold);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-cookie.accept:hover {
    transform: scale(1.05);
}

.cookie-link {
    font-size: 0.75rem;
    color: var(--text-light);
    text-decoration: underline;
    font-weight: 500;
}

/* --- PETIT MOBILE (480px) --- */
@media (max-width: 480px) {
    .nav-pill { height: 65px; padding: 0 15px; }
    .logo { font-size: 1.2rem; }
    .user-name-display { display: none; } /* On cache le nom pour ne garder que l'icône logout */
    .user-profile-pill { padding: 8px; border-radius: 50%; }
}