/* ===================================
   TESTCIVIQUE - STYLES GLOBAUX VITRINE
   Fichier: main.css
   Description: Styles communs à toutes les pages de la vitrine
   =================================== */

/* --- VARIABLES CSS --- */
:root {
    /* Couleurs principales */
    --cyan: #00D4FF;
    --cyan-dark: #0090ad;
    --cyan-light: rgba(0, 212, 255, 0.1);
    --cyan-glow: rgba(0, 212, 255, 0.3);

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-light: #F5F7FA;
    --bg-body: #F8FAFC;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-95: rgba(255, 255, 255, 0.95);

    /* Textes */
    --text-dark: #1A1D2E;
    --text-main: #0F172A;
    --deep-blue: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    /* Bordures & Ombres */
    --border: rgba(0, 0, 0, 0.08);
    --border-light: #E2E8F0;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --shadow-card: 0 10px 30px -5px rgba(0,0,0,0.05);

    /* Couleurs secondaires */
    --orange: #E67E22;
    --orange-bg: #FFF4E6;

    /* Feedbacks */
    --success: #10B981;
    --success-bg: #F0FDF4;
    --success-border: #BBF7D0;
    --success-text: #166534;

    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --danger-border: #FECACA;
    --danger-text: #991B1B;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3, .poster-font {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.text-cyan {
    color: var(--cyan);
}

/* --- CONTENEUR --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media(max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
}

/* ===================================
   NAVIGATION
   =================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    animation: slideDown 0.6s ease 0.2s forwards;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 80px;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 2002;
    position: relative;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text .mon {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo-text .testcivique {
    font-family: 'Anton';
    font-size: 1.6rem;
    color: var(--text-dark);
    display: flex;
    gap: 2px;
}

.logo-text .highlight {
    color: var(--cyan);
    position: relative;
}

.logo-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    border-radius: 2px;
}

/* Conteneur central pour les liens et Mon Espace */
.nav-center {
    display: flex;
    gap: 28px;
    align-items: center;
    flex: 1;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 60px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-shrink: 0;
}

.link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
    white-space: nowrap;
}

.link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: 0.3s;
}

.link:hover {
    color: var(--text-dark);
}

.link:hover::after {
    width: 100%;
}

.link.active {
    color: var(--text-dark);
}

.link.active::after {
    width: 100%;
}

/* Séparateur de navigation */
.nav-separator {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 4px;
    display: var(--user-display, none);
}

/* Mon Espace Highlight */
.link-dashboard {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cyan-light);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.link-dashboard svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-dark);
    stroke-width: 2;
}

.link-dashboard:hover {
    background: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--cyan-glow);
}

.link-dashboard.active {
    background: var(--cyan);
    box-shadow: 0 4px 15px var(--cyan-glow);
}

.link-dashboard.active svg {
    stroke: var(--text-dark);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ===================================
   BOUTONS
   =================================== */

/* Bouton Quiz Rapide */
.btn-quiz-rapide {
    background: var(--orange-bg);
    color: var(--orange);
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.btn-quiz-rapide:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.25);
}

.btn-quiz-rapide.active {
    background: var(--orange);
    color: white;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* Bouton Cyan Principal */
.btn-cyan {
    background: var(--cyan);
    color: var(--text-dark);
    padding: 12px 24px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 16px;
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-cyan:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px var(--cyan-glow);
}

/* Bouton Outline */
.btn-outline {
    background: transparent;
    color: var(--text-dark);
    padding: 12px 24px;
    border: 1px solid var(--border);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    border-radius: 16px;
}

.btn-outline:hover {
    border-color: var(--cyan);
    background: var(--cyan-light);
    transform: translateY(-2px);
}

/* ===================================
   USER MENU (DROPDOWN)
   =================================== */
.user-menu-container {
    position: relative;
    flex-shrink: 0;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.user-btn:hover {
    background: white;
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--text-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--cyan);
    background-image: linear-gradient(135deg, #1A1D2E, #2D3345);
}

.user-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.user-status {
    font-size: 0.65rem;
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: 0.3s;
    margin-left: 5px;
}

.user-menu-container:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--cyan);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 240px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.user-menu-container:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: 0.2s;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: 0.3s;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.dropdown-item:hover svg {
    stroke: var(--cyan);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.dropdown-item.logout {
    color: var(--danger);
}

.dropdown-item.logout:hover {
    background: var(--danger-bg);
}

.dropdown-item.logout svg {
    stroke: var(--danger);
}

/* ===================================
   FOOTER
   =================================== */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--bg-light);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: var(--cyan);
}

/* ===================================
   ANIMATIONS
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   USER MENU (AUTHENTICATED)
   =================================== */
.user-menu-container {
    position: relative;
    flex-shrink: 0;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.user-btn:hover {
    background: white;
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--text-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--cyan);
    background-image: linear-gradient(135deg, #1A1D2E, #2D3345);
}

.user-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.user-status {
    font-size: 0.65rem;
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: 0.3s;
    margin-left: 5px;
}

.user-menu-container:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--cyan);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 240px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.user-menu-container:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: 0.2s;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: 0.3s;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.dropdown-item:hover svg {
    stroke: var(--cyan);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.dropdown-item.logout {
    color: var(--danger);
}

.dropdown-item.logout:hover {
    background: var(--danger-bg);
}

.dropdown-item.logout svg {
    stroke: var(--danger);
}

/* ===================================
   TOAST NOTIFICATIONS
   =================================== */
#toast-container {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

#toast-container > * {
    pointer-events: auto;
}

@keyframes slideInBounce {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }
    50% {
        transform: translateY(10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideOutUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

.toast {
    min-width: 360px;
    max-width: 400px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 212, 255, 0.1) !important;
    padding: 20px 24px;
    display: flex !important;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(-100px) scale(0.8);
    animation: slideInBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    border: 2px solid var(--success) !important;
    position: relative;
    overflow: hidden;
    visibility: visible !important;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--success), var(--cyan));
}

.toast.hide {
    animation: slideOutUp 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

.toast-success {
    border-color: var(--cyan);
}

.toast-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--cyan), #0891b2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease 0.2s both;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.toast-success .toast-icon svg {
    stroke: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    transform: rotate(90deg);
}

/* ========================================= */
/* === MENU MOBILE CRÉATIF === */
/* ========================================= */

/* Toggle Button (Hamburger) */
.hamburger-wrapper {
    display: none;
    cursor: pointer;
    z-index: 2000;
    position: fixed;
    top: 20px;
    right: 20px;
}

.toggle-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px;
}

.toggle-btn span {
    height: 2px;
    background: var(--text-dark);
    border-radius: 1px;
    transition: 0.3s;
}

.toggle-btn span:nth-child(1) {
    width: 100%;
}

.toggle-btn span:nth-child(2) {
    width: 75%;
}

.toggle-btn span:nth-child(3) {
    width: 50%;
}

.toggle-btn:hover span {
    background: var(--cyan);
}

/* État actif du toggle (se transforme en croix) */
.hamburger-wrapper.active .toggle-btn {
    background: transparent;
}

.hamburger-wrapper.active .toggle-btn span:nth-child(1) {
    width: 100%;
    transform: rotate(45deg) translate(4px, 4px);
    background: white;
}

.hamburger-wrapper.active .toggle-btn span:nth-child(2) {
    opacity: 0;
}

.hamburger-wrapper.active .toggle-btn span:nth-child(3) {
    width: 100%;
    transform: rotate(-45deg) translate(5px, -5px);
    background: white;
}

/* L'Overlay Plein Écran */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    z-index: 1999;
    clip-path: circle(0px at calc(100% - 40px) 40px);
    transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.3, 1);
    display: flex;
    flex-direction: column;
    pointer-events: none;
    overflow: hidden;
}

.menu-overlay.open {
    clip-path: circle(150% at calc(100% - 40px) 40px);
    pointer-events: all;
}

/* Décoration d'arrière-plan menu */
.menu-bg-decoration {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    opacity: 0.4;
    filter: blur(50px);
    pointer-events: none;
}

/* Bouton Fermer (CROIX visible en haut à droite) */
.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2001;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: 0.3s;
    opacity: 0;
    transform: scale(0.8);
}

.menu-overlay.open .close-menu-btn {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease 0.4s, transform 0.3s ease 0.4s;
}

.close-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--cyan);
}

.close-menu-btn::before,
.close-menu-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.close-menu-btn::before {
    transform: rotate(45deg);
}

.close-menu-btn::after {
    transform: rotate(-45deg);
}

/* Contenu du menu */
.menu-content {
    flex: 1;
    padding: 30px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease 0.3s;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    max-height: 100vh;
}

.menu-overlay.open .menu-content {
    opacity: 1;
    transform: translateY(0);
}

/* Liens de navigation mobile */
.m-nav-link {
    font-family: 'Anton', sans-serif;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 6px 0;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.m-nav-link:hover,
.m-nav-link.active {
    color: white;
    transform: scale(1.05) !important;
}

.m-nav-link span {
    color: var(--cyan);
    font-size: 0.85rem;
    position: absolute;
    top: 0;
    right: -15px;
}

/* Animation en cascade (Stagger) */
.menu-overlay.open .m-nav-link:nth-child(1) {
    transition: 0.4s ease 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay.open .m-nav-link:nth-child(2) {
    transition: 0.4s ease 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay.open .m-nav-link:nth-child(3) {
    transition: 0.4s ease 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay.open .m-nav-link:nth-child(4) {
    transition: 0.4s ease 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay.open .m-nav-link:nth-child(5) {
    transition: 0.4s ease 0.6s;
    opacity: 1;
    transform: translateY(0);
}

/* Footer du menu mobile */
.menu-footer {
    margin-top: 25px;
    width: 100%;
    max-width: 400px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.4s ease 0.5s;
}

.menu-overlay.open .menu-footer {
    opacity: 1;
    transform: translateY(0);
}

/* Section utilisateur connecté */
.mf-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mf-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan) 0%, #0090ad 100%);
    color: var(--deep-blue);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.mf-text {
    color: white;
    font-weight: 600;
    line-height: 1.3;
    font-size: 0.85rem;
}

.mf-text span {
    display: block;
    font-size: 0.65rem;
    color: rgba(0, 212, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: 2px;
}

/* Section auth pour non connectés */
.mf-auth {
    padding-bottom: 10px;
}

.mf-auth-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.4;
}

/* Conteneur des liens */
.mf-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Style des liens épurés */
.mf-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.mf-link svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.mf-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(4px);
}

.mf-link:hover svg {
    opacity: 1;
    color: var(--cyan);
}

/* Lien primaire (S'inscrire) */
.mf-link-primary {
    color: var(--cyan);
}

.mf-link-primary:hover {
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan);
}

/* Bouton de déconnexion */
.mf-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 18px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #FCA5A5;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mf-logout-btn svg {
    flex-shrink: 0;
}

.mf-logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #FEE2E2;
    transform: translateY(-2px);
}

/* Empêcher le scroll du body quand le menu est ouvert */
body.no-scroll {
    overflow: hidden;
}

/* ========================================= */
/* === RESPONSIVE DESIGN === */
/* ========================================= */

@media(max-width: 1024px) {
    /* Navbar : Cacher le menu desktop et afficher le toggle */
    .nav-center,
    .nav-links,
    .nav-separator,
    .link-dashboard,
    .auth-buttons,
    .user-menu-container {
        display: none !important;
    }

    .hamburger-wrapper {
        display: block;
    }

    /* S'assurer que le nav-inner a de l'espace */
    .nav-inner {
        gap: 20px;
    }

    /* Logo en responsive */
    .logo {
        margin-right: auto;
    }
}

@media(max-width: 768px) {
    /* Ajustements pour mobile */
    .m-nav-link {
        font-size: 1.8rem;
        margin: 4px 0;
    }

    .m-nav-link span {
        font-size: 0.75rem;
    }

    .menu-footer {
        max-width: 100%;
        padding: 15px 20px;
        margin-top: 20px;
    }

    .mf-user {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .mf-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .mf-text {
        font-size: 0.8rem;
    }

    .mf-text span {
        font-size: 0.6rem;
    }

    .mf-link {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 8px;
    }

    .mf-link svg {
        width: 16px;
        height: 16px;
    }

    .mf-logout-btn {
        margin-top: 10px;
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .mf-logout-btn svg {
        width: 14px;
        height: 14px;
    }

    .menu-content {
        padding: 20px 15px 15px;
    }
}

@media(max-width: 480px) {
    /* Très petits écrans */
    .m-nav-link {
        font-size: 1.5rem;
        margin: 3px 0;
    }

    .menu-footer {
        padding: 12px 15px;
        margin-top: 15px;
    }
}

