/**
 * Styles pour la navbar TEDx
 * À inclure sur toutes les pages
 */

/* Style de base de la navbar */
.tedx-navbar {
    background: linear-gradient(to right, #222, #3a0000);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.tedx-navbar.scrolled {
    padding: 0;
    background: rgba(34, 34, 34, 0.98);
}

/* Logo et nom de l'événement */
.navbar-logo {
    display: flex;
    align-items: center;
    padding: 8px 20px;
}

.navbar-logo img {
    height: 35px;
    transition: transform 0.3s ease;
}

.navbar-logo:hover img {
    transform: scale(1.05);
}

.navbar-event-name {
    color: white;
    margin-left: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 1.2rem;
    font-family: 'Blinker', sans-serif;
}

/* Liens de navigation */
.navbar-links {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-links li {
    margin: 0;
    position: relative;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 20px 25px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Animation de la barre rouge sous le lien */
.navbar-links a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #e62b1e;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.navbar-links a:hover:before,
.navbar-links a.active:before {
    transform: translateX(0);
}

.navbar-links a.active {
    background-color: rgba(230, 43, 30, 0.15);
}

/* Bouton menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .tedx-navbar {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .navbar-links {
        flex-basis: 100%;
        flex-direction: column;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
        width: 100%;
    }

    .navbar-links.show {
        max-height: 300px;
    }

    .navbar-links li {
        width: 100%;
    }

    .navbar-links a {
        padding: 15px 20px;
        text-align: center;
    }
}

/* Ajustement du padding du body pour compenser la navbar fixe */
body {
    padding-top: 60px;
}