@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

#l1-navbar {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 9999;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#l1-navbar * {
    box-sizing: border-box;
}

.l1-icon {
    width: 24px;
    height: 24px;
    fill: white;
    cursor: pointer;
    transition: fill 0.2s;
}

.l1-icon:hover {
    fill: #dbff00;
}

/* BOTTOM BAR */
.l1-nav-bottom {
    background-color: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 70px;
    color: white;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#l1-navbar.scrolled .l1-nav-bottom {
    height: 60px;
    background-color: rgba(20, 20, 20, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.l1-nav-left-group {
    display: flex;
    align-items: center;
}

.l1-brand {
    text-decoration: none;
    font-size: 28px;
    color: #0d5cff; /* Ligue 1 blue */
    margin-right: 40px;
    display: flex;
    align-items: baseline;
    letter-spacing: -1px;
}

.l1-brand .ligue {
    font-weight: 400;
    font-style: italic;
}

.l1-brand .one-plus {
    font-weight: 800;
    font-style: italic;
}

.l1-nav-bottom-links {
    display: flex;
    gap: 30px;
}

.l1-nav-bottom-links a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    height: 70px;
    border-bottom: 3px solid transparent;
}

.l1-nav-bottom-links a:hover {
    border-bottom: 3px solid #dbff00;
    opacity: 1;
}

#l1-navbar.scrolled .l1-nav-bottom-links a {
    height: 60px;
}

.l1-nav-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* NOTIFICATIONS */
.notifications-dropdown {
    position: relative;
    display: inline-block;
    padding-top: 10px;
    padding-bottom: 10px;
}

.l1-notif-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
    position: relative;
    transition: opacity 0.2s;
}

.l1-notif-btn:hover {
    opacity: 0.7;
}

.l1-notif-btn svg {
    width: 22px;
    height: 22px;
}

.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e5002a;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-menu {
    position: absolute;
    top: 100%;
    right: -20px;
    background: #2b2b2b; /* Gris anthracite */
    color: white;
    width: 280px;
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.notifications-dropdown:hover .notif-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-header {
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid #444;
    font-size: 14px;
}

.notif-item {
    padding: 15px;
    border-bottom: 1px solid #444;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.4;
}

.notif-item:hover {
    background: #3a3a3a;
}

.notif-item:last-child {
    border-bottom: none;
}

.btn-abonner {
    background-color: #0d5cff;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 2px;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.btn-abonner:hover {
    background-color: #0a4acc;
}

.btn-connecter {
    background-color: white;
    color: black;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 2px;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.btn-connecter:hover {
    background-color: #e0e0e0;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.user-avatar-btn img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

/* Responsive */
@media (max-width: 950px) {
    .l1-nav-bottom {
        padding: 0 10px;
        flex-wrap: wrap;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .l1-nav-left-group {
        width: 100%;
        margin-bottom: 10px;
        justify-content: space-between;
    }
    .l1-nav-right-group {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    .l1-nav-bottom-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 15px;
    }
    .btn-abonner, .btn-connecter {
        padding: 8px 12px;
        font-size: 11px;
    }
    .notif-menu {
        width: 250px;
        right: -100px; /* Center it more on mobile */
    }
}

/* CUSTOM ALERT OVERLAY */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-box {
    background: #fff;
    color: #000;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-alert-overlay.show .custom-alert-box {
    transform: translateY(0) scale(1);
}

.custom-alert-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.custom-alert-box h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
}

.custom-alert-box p {
    font-size: 14px;
    color: #555;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.custom-alert-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, transform 0.1s;
}

.custom-alert-btn:hover {
    background: #333;
}

.custom-alert-btn:active {
    transform: scale(0.95);
}

/* CONNECTED USER NAVBAR STYLES */
.l1-user-connected {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: background-color 0.2s;
}

.l1-user-connected:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.user-status-dot {
    width: 8px;
    height: 8px;
    background-color: #4CAF50; /* Green dot */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.user-name {
    text-transform: uppercase;
}
