/* Navbar Styles */
.navbar {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

/* Menu hamburger - masqué par défaut (visible uniquement sur tablette/mobile) */
.hamburger-menu {
    display: none;
}

.menu-overlay {
    display: none;
}

/* Masquer les actions mobiles par défaut */
.mobile-actions {
    display: none;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    position: relative;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.navbar-nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link:hover {
    color: #F0E090;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F0E090;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #F0E090;
}

.nav-link.active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.navbar-money {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(240, 224, 144, 0.1);
    border: 2px solid rgba(240, 224, 144, 0.3);
    border-radius: 8px;
    font-weight: 600;
    color: #182D38;
}

.money-icon {
    font-size: 18px;
}

.money-amount {
    font-size: 16px;
    font-weight: 700;
    color: #182D38;
}

.btn-login {
    padding: 10px 25px;
    background: #182D38;
    color: #F0E090;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(24, 45, 56, 0.4);
    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 45, 56, 0.6);
    background: #1a3542;
}

.btn-logout {
    padding: 0;
    background: #51443C;
    color: #F0E090;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(81, 68, 60, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    line-height: 1;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(81, 68, 60, 0.6);
    background: #5a4d44;
}

.language-selector {
    position: relative;
    z-index: 1002;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.lang-btn:hover {
    border-color: #F0E090;
    box-shadow: 0 2px 8px rgba(240, 224, 144, 0.3);
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.lang-text {
    font-weight: 500;
    color: #333;
}

.chevron {
    font-size: 10px;
    color: #666;
    transition: transform 0.3s;
}

.lang-btn:hover .chevron {
    transform: translateY(2px);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1003;
    pointer-events: none;
}

.language-selector:hover .lang-dropdown,
.language-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* S'assurer que le dropdown reste visible quand on survole le dropdown lui-même */
.language-selector:hover .lang-dropdown:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
    border-radius: 6px;
    margin: 5px;
    cursor: pointer;
    pointer-events: auto;
}

.lang-option:hover {
    background: #f5f5f5;
}

.lang-option .flag-icon {
    width: 24px;
    height: 18px;
}

