/* navbar_style.css */
/* Styles spécifiques à la navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    padding: 10px 0;
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand img {
    transition: all 0.3s ease;
    height: 50px;
    width: auto;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #333 !important;
    margin: 0 15px;
    position: relative;
    padding: 8px 0 !important;
    transition: all 0.3s ease;
    opacity: 1 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffb700;
    transition: all 0.3s ease;
    transform-origin: left;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    transform: scaleX(1);
}

.nav-link:hover {
    color: #ffb700 !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffb700 !important;
    font-weight: 700;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    z-index: 1100;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

/* Drawer de navigation mobile (style Flutter) */
.drawer-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1050;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.drawer-nav.open {
    transform: translateX(280px);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    background: #ffb700;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header .navbar-brand img {
    height: 40px;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.drawer-body {
    flex: 1;
    padding: 20px 0;
}

.drawer-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: block;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.drawer-item:hover {
    background-color: #f9f9f9;
    color: #ffb700;
}

.drawer-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.drawer-dropdown-menu {
    display: none;
    padding-left: 20px;
    background-color: #f9f9f9;
}

.drawer-dropdown-item {
    padding: 12px 20px;
    display: block;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid #eee;
}

.drawer-dropdown-item:hover {
    color: #ffb700;
    background-color: #f0f0f0;
}

.drawer-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

/* Bouton inscription */
.btn-register {
    background-color: #ffb700;
    color: white !important;
    border-radius: 30px;
    padding: 8px 25px !important;
    margin-left: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid #ffb700;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-register:hover {
    background-color: transparent;
    color: #ffb700 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(28, 59, 43, 0.2);
}

/* Styles responsives */
@media (max-width: 991.98px) {
    .desktop-nav {
        display: none !important;
    }
    
    /* Afficher le bouton hamburger sur mobile */
    .mobile-toggler {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .mobile-toggler {
        display: none !important;
    }
    
    .drawer-nav, .drawer-overlay {
        display: none !important;
    }
}

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

/* Correction pour le bouton hamburger */
.navbar-toggler.mobile-toggler {
    display: none;
}

@media (max-width: 991.98px) {
    .navbar-toggler.mobile-toggler {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .navbar .container {
        position: relative;
    }
}

/* Compensation pour la navbar fixe */
body.navbar-present {
    padding-top: 80px;
}