/* ============================================
   HEADER PROFESSIONNEL - RENOXIS
   ============================================ */

/* Header principal */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    backdrop-filter: none;
}

/* Header transparent sur hero */
.header.transparent {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header blanc après scroll */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Wrapper de navigation */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.header.scrolled .nav-wrapper {
    padding: 0.8rem 0;
}

/* Logo */
.logo {
    flex-shrink: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header.transparent .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.header.scrolled .logo-img {
    height: 45px;
}

/* Navigation desktop */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    display: block;
}

/* Liens blancs sur hero */
.header.transparent .nav-link {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Soulignement animé */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.header.transparent .nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

/* Bouton CTA dans header */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.header-cta:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.header-cta svg {
    width: 18px;
    height: 18px;
}

/* Hamburger menu button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.header.transparent .menu-toggle span {
    background: white;
}

.menu-toggle.active span {
    background: var(--secondary-color) !important;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* Overlay mobile */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    /* Cacher le logo quand le menu est ouvert */
    body.menu-open .logo {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        gap: 0;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-bottom: 2rem;
    }

    .nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-link {
        color: var(--text-dark) !important;
        text-shadow: none !important;
        font-size: 1.1rem;
        padding: 1.2rem 0;
        width: 100%;
    }

    .nav-link::after {
        left: 0;
        transform: none;
        height: 3px;
        bottom: -1px;
    }

    /* Cacher le bouton CTA sur mobile car redondant avec le lien Rendez-vous */
    .header-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }

    .header.scrolled .logo-img {
        height: 36px;
    }

    .nav {
        width: 100%;
        max-width: 100%;
    }
}
