/*
 * En-tete et navigation (menu burger compris)
 *
 * Extrait des blocs <style> inline des gabarits : contenu inchange,
 * seul l'emplacement change.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
}

.bebas-neue-regular {
    font-family: "Bebas Neue", serif;
    font-weight: 400;
    font-style: normal;
}

/* Header */
.main-header {
    display: flex;
    width: 100%;
    height: 80px;
    background-color: #f2f2f2;
    /* border-bottom: 1px solid #ddd; */
}

/* Partie gauche */
.header-left {
    background-color: #B12B2C;
    flex: 0 0 20%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #FFFFFF;
    min-width: fit-content;
    padding: 0 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 10px;
    max-width: 100%;
}

.logo-container img {
    height: 90px;
    width: auto;
    margin-bottom: 5px;
    object-fit: contain;
}

.logo-container .site-title {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Navigation droite */
.header-right {
    flex: 0 0 80%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    list-style: none;
    width: 100%;
}

.nav-list li{
    display: flex;
}

.nav-list li a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.nav-list li a:hover {
    color: #FF0000;
}

/* Icône devant chaque élément */
.nav-list li::before {
    content: '\f06d';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #FFFFFF;
    background-color: #FF0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 12px;
    margin-right: 3px;
}

/* Menu Burger */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    background-color: #B12B2C;
    border-radius: 5px;
    /* Le burger est un <button> : on neutralise les styles natifs. */
    border: 0;
    appearance: none;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* Navigation Mobile */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav-list li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.mobile-nav.open .mobile-nav-list li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-list li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.mobile-nav-list li a:hover {
    color: #B12B2C;
}

/* Animation du burger */
.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .header-right {
        display: none;
    }

    .burger-menu {
        display: flex;
        position: fixed;
        right: 20px;
        top: 60px;
        transform: translateY(0);
        z-index: 1000;
    }

    .mobile-nav-list li {
        transition-delay: calc(0.1s * var(--i));
    }

    .header-left {
        flex: 0 0 auto;
    }
    
    .logo-container {
        gap: 8px;
    }
}

@media (max-width: 768px) {

    .logo-container img {
        height: 60px;
    }

    .logo-container .site-title {
        font-size: 1.8rem;
    }

    .header-left {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .logo-container img {
        height: 50px;
    }
    
    .logo-container .site-title {
        font-size: 1.5rem;
    }
}
