.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
}

/* Ajout de la ligne laser */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 0, 0, 0.8),
        rgba(255, 0, 0, 1),
        rgba(255, 0, 0, 0.8),
        transparent
    );
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5),
                0 0 10px rgba(255, 0, 0, 0.3);
    animation: laserScan 2s linear infinite;
}

@keyframes laserScan {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.header-container {
    width: 100%;
    padding: 0 2rem;
}

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

.nav-container {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    height: 100%;
    margin: 0;
    padding: 0 1rem;
    margin-left: auto;
    margin-right: 20px;
}

.nav-links li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links li:last-child {
    margin-right: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: block;
    position: relative;
    overflow: hidden;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 10px 0;
    margin-left: 1rem;
}

.logo-img {
    height: auto;
    width: auto;
    max-height: 43px;
    max-width: 150px;
    object-fit: contain;
    margin-left: 1rem;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Support pour les écrans plus petits */
@media screen and (max-width: 1200px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 12px;
        padding: 0.5rem 0.5rem;
    }
}

/* Pour les très petits écrans */
@media screen and (max-width: 768px) {
    .nav-main {
        position: relative;
        width: 100%;
        padding-right: 0;
        display: block;
    }

    .nav-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.97), rgba(0, 0, 0, 0.95));
        backdrop-filter: blur(10px);
        z-index: 9999;
        display: none;
        overflow: auto;
        padding: 0;
        margin: 0;
    }

    .nav-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            linear-gradient(45deg, transparent 45%, rgba(255, 0, 0, 0.1) 50%, transparent 55%),
            linear-gradient(-45deg, transparent 45%, rgba(255, 0, 0, 0.1) 50%, transparent 55%);
        background-size: 300% 300%;
        animation: gradientMove 8s linear infinite;
        pointer-events: none;
    }

    @keyframes gradientMove {
        0% { background-position: 100% 0%; }
        100% { background-position: 0% 100%; }
    }

    body.menu-open .nav-container,
    .nav-container.active {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        animation: menuFadeIn 0.3s ease forwards;
        padding-top: 80px;
    }

    @keyframes menuFadeIn {
        from {
            opacity: 0;
            transform: scale(0.98);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .nav-links {
        padding: 0;
        margin: 0 auto;
        width: 90%;
        max-width: 400px;
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding-bottom: 100px;
    }

    .nav-links::before {
        content: '';
        position: absolute;
        top: -20px;
        left: 50%;
        width: 50px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-color, #ff0000), transparent);
        transform: translateX(-50%);
    }

    .nav-links > li {
        margin: 2px 0;
        width: 100%;
    }

    .nav-links a {
        padding: 10px 15px;
        font-size: 16px;
        font-weight: 500;
        position: relative;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        transition: all 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, 
            transparent,
            rgba(255, 0, 0, 0.8),
            rgba(255, 0, 0, 1),
            rgba(255, 0, 0, 0.8),
            transparent
        );
        animation: laserScan 2s linear infinite;
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
        filter: blur(1px);
    }

    @keyframes laserScan {
        0% {
            left: -100%;
        }
        50% {
            left: 100%;
        }
        50.1% {
            left: -100%;
        }
        100% {
            left: -100%;
        }
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 0, 0, 0.3);
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
    }

    .nav-links a:hover::before {
        animation-duration: 1s;
        box-shadow: 
            0 0 15px rgba(255, 0, 0, 0.7),
            0 0 25px rgba(255, 0, 0, 0.5);
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: -100%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, 
            transparent,
            rgba(255, 0, 0, 0.8),
            rgba(255, 0, 0, 1),
            rgba(255, 0, 0, 0.8),
            transparent
        );
        animation: laserScanReverse 2s linear infinite;
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
        filter: blur(1px);
    }

    @keyframes laserScanReverse {
        0% {
            right: -100%;
        }
        50% {
            right: 100%;
        }
        50.1% {
            right: -100%;
        }
        100% {
            right: -100%;
        }
    }

    .nav-links a:hover::after {
        animation-duration: 1s;
        box-shadow: 
            0 0 15px rgba(255, 0, 0, 0.7),
            0 0 25px rgba(255, 0, 0, 0.5);
    }

    /* Style spécial pour les sous-menus */
    .submenu a::before {
        height: 1px;
        opacity: 0.7;
    }

    .has-submenu.active > a::before {
        animation-duration: 1s;
        background: linear-gradient(90deg, 
            transparent,
            rgba(255, 0, 0, 1),
            #ff3333,
            rgba(255, 0, 0, 1),
            transparent
        );
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    }

    .has-submenu > a {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
        text-align: center;
        padding: 10px 15px;
        position: relative;
    }

    /* Ajustement de l'icône flèche */
    .has-submenu > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        right: 15px;
        transition: transform 0.3s ease;
    }

    /* Style uniforme pour tous les liens du sous-menu */
    .submenu {
        width: 100%;
        margin: 2px 0;
        padding: 2px;
    }

    .submenu li {
        width: 100%;
        margin: 1px 0;
    }

    .submenu a {
        width: 100%;
        min-height: 44px; /* Hauteur minimale uniforme */
        padding: 10px 15px;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin: 1px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    /* Assurer que le texte reste centré même avec l'icône */
    .has-submenu.active > a {
        justify-content: center;
        padding-right: 40px; /* Espace pour l'icône */
    }

    /* Ajustement pour tous les liens principaux */
    .nav-links > li > a {
        min-height: 44px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 15px;
        font-size: 16px;
        font-weight: 500;
    }

    /* Style pour les icônes sociales */
    .header-social {
        position: relative;
        bottom: auto;
        margin-top: 20px;
        background: none;
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .header-social a {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 16px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(5px);
    }

    .header-social a::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at center, var(--primary-color, #ff0000) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .header-social a:hover::before {
        opacity: 0.2;
    }

    .header-social a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
        background: rgba(255, 255, 255, 0.1);
    }

    /* Style du bouton hamburger */
    .hamburger-menu {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 10000;
        background: transparent;
        border: none;
        cursor: pointer;
        width: 40px;
        height: 40px;
        transition: all 0.3s ease;
    }

    .hamburger-menu::before {
        content: '';
        position: absolute;
        inset: -5px;
        border-radius: 50%;
        background: rgba(255, 0, 0, 0.1);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .hamburger-menu:hover::before {
        opacity: 1;
    }

    /* Empêcher le défilement */
    body.menu-open {
        overflow: hidden;
    }

    /* Ajustements pour le logo */
    .logo {
        position: relative;
        z-index: 10000;
    }

    /* Ajustement du conteneur de navigation pour le scroll */
    .nav-container {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 80px;
    }

    /* Style pour le dernier élément du menu */
    .nav-links > li:last-child {
        margin-bottom: 80px;
    }

    /* Animation de la flèche */
    .has-submenu.active > a::after {
        transform: rotate(180deg);
    }

    /* Animation du sous-menu */
    .has-submenu.active .submenu {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Style amélioré pour les sous-menus */
    .submenu {
        background: rgba(0, 0, 0, 0.95);
        border-radius: 8px;
        overflow: hidden;
        margin: 4px 0;
    }

    .submenu li:first-child {
        border-top: none;
    }

    .submenu a {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin: 2px;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

    .submenu a:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 0, 0, 0.3);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
    }

    /* Ajustement de l'espacement des liens principaux */
    .nav-links > li {
        margin: 3px 0;
    }

    /* Style cohérent pour tous les liens */
    .nav-links a,
    .submenu a {
        min-height: 44px;
        padding: 10px 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        border-radius: 8px;
        font-weight: 500;
    }

    /* Version mobile - cacher la ligne laser */
    .header::after {
        display: none;
    }
}

/* Styles de base du hamburger */
.hamburger-menu {
    display: none;
}

.hamburger-menu .hamburger-icon,
.hamburger-menu .close-icon {
    font-size: 24px;
    color: white;
}

.hamburger-menu .close-icon {
    display: none;
}

.hamburger-menu.active .hamburger-icon {
    display: none;
}

.hamburger-menu.active .close-icon {
    display: block;
}

/* Style pour le sous-menu */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(29, 29, 27, 0.95);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    z-index: 1000;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    padding: 0;
    margin: 0;
}

.submenu a {
    color: white;
    padding: 10px 20px;
    display: block;
    font-size: 0.9em;
    transition: all 0.2s ease;
    text-decoration: none;
}

.submenu a:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .submenu {
        position: static;
        background: rgba(0, 0, 0, 0.95);
        width: 100%;
        display: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .has-submenu {
        width: 100%;
    }

    .has-submenu > a {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .has-submenu > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .has-submenu.active > a::after {
        transform: rotate(180deg);
    }

    .has-submenu.active .submenu {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .submenu li {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .submenu a {
        padding: 12px 20px;
        color: #fff;
        font-size: 16px;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
    }

    .submenu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary-color);
    }

    /* Ajustement du conteneur principal pour les sous-menus */
    .nav-links {
        padding: 0;
        margin-top: 80px;
        width: 90%;
        max-width: 400px;
    }

    .nav-links > li {
        margin: 5px 0;
    }

    .nav-links > li > a {
        padding: 15px;
        font-size: 18px;
        font-weight: 500;
    }
}

/* Styles pour les icônes sociales */
.social-media {
    display: flex;
    gap: 20px;
    margin: 0 20px;
}

.social-media a {
    color: #fff;
    font-size: 18px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-media a:hover {
    color: #E30613;
    background-color: rgba(255, 255, 255, 0.2);
}

.social-media i {
    font-size: 16px;
}

/* Style par défaut pour header-social (version PC) */
.header-social {
    display: flex;
    gap: 15px;
    margin-left: auto;
    padding: 0 20px;
}

.header-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.header-social a:hover {
    color: #E30613;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Version mobile */
@media screen and (max-width: 768px) {
    .header-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-main {
        width: 100%;
        padding-right: 50px;
    }

    /* Styles spécifiques pour header-social en mobile */
    .header-social {
        position: relative;
        bottom: auto;
        margin-top: 20px;
        background: none;
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .nav-container.active .header-social {
        display: flex;
    }

    body:not(.menu-open) .header-social {
        display: none;
    }
}