/* Header et Navigation */
.site-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.header-top {
    padding: var(--spacing-xl) 0;
}

.header-top h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.header-top h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.header-top p {
    font-size: 1.2rem;
}

/* Styles génériques pour compatibilité */
.btn-login, .btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
    color: white;
    text-align: center;
    min-width: 120px;
    justify-content: center;
    white-space: nowrap;
}

.btn-login:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(44, 62, 80, 0.4) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), inset 0 1px 3px rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: rgba(255,255,255,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), inset 0 1px 3px rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.8);
}

/* Styles spécifiques navbar - priorité élevée */
.navbar-btn-login, .navbar-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
    text-align: center !important;
    min-width: 120px !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

.navbar-btn-login:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(44, 62, 80, 0.4) 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), inset 0 1px 3px rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.5) !important;
}

.navbar-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

.navbar-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), inset 0 1px 3px rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.8) !important;
}

/* Navigation principale */
.navbar {
    background: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 180px;
    box-sizing: border-box;
}

.navbar .container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    gap: 40px;
}

.navbar .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.navbar .logo img {
    height: 168px;
    width: auto;
    margin: 0;
    transition: transform 0.3s ease;
}

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

.navbar .menu {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 0;
}

.navbar .menu .menu-colonne {
    flex: 1;
    display: flex;
    flex-direction: column;

}

.navbar .menu .menu-colonne ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar .menu .menu-colonne ul li {
    width: 100%;
    text-align: left;
}

.navbar .menu .menu-colonne ul li a {
    display: block;
    width: 100%;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar .menu .menu-colonne ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar .menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.navbar .menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.navbar .menu ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.navbar .auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 0;
    list-style: none;
    height: 100%;
}

.navbar .auth .nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.navbar .auth .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.navbar .auth .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.main-nav { 
    position: fixed;
    top: 60px;
    height: 800px;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        min-height: 200px;
        padding: 15px 0;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 25px;
        padding: 15px 1rem;
        align-items: center;
    }
    
    .navbar .logo {
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .navbar .menu {
        order: 2;
        width: 100%;
        margin-bottom: 20px;
        gap: 15px;
        max-width: 600px;
    }
    
    .navbar .menu .menu-colonne ul li a {
        padding: 6px 8px;
        font-size: 0.8rem;
        border-radius: 4px;
    }
    
    .navbar .auth {
        order: 3;
        width: 100%;
    }
    
    .navbar .auth .nav-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .btn-login, .btn-primary {
        flex: 1;
        max-width: 180px;
        justify-content: center;
        margin: 0 5px;
        font-size: 1.1rem;
        padding: 15px 25px;
    }
    
    .header-top h1 {
        font-size: 2rem;
    }
    
    .header-top h2 {
        font-size: 1.5rem;
    }
}
