/* Header styles - Charte graphique moderne et chaleureuse - Accent caramel #a67c52 */

.header {
    background-color: #1e1e1e;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border-bottom: 4px solid;
    border-image: linear-gradient(to right, #8a6642, #a67c52, #e8d8c3);
    border-image-slice: 1;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: var(--header-height, 80px);
    position: relative;
}

.site-title {
    font-family: 'ThirstyScriptExtraBoldDemo', cursive;
    font-size: 2rem;
    color: #a67c52;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(166, 124, 82, 0.15);
}

.site-title:hover {
    transform: scale(1.05);
    color: #8a6642;
}

.header-nav {
    display: flex;
    gap: 1.8rem;
}

.header-nav-main {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-nav-client {
    margin-left: auto;
}

.header-link {
    font-family: 'Rubik', 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #a67c52;
    transition: width 0.3s ease;
}

.header-link:hover {
    color: #a67c52;
}

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

.header-link.active {
    color: #a67c52;
    font-weight: 600;
}



.header-toggler {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #a67c52;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.header-toggler:hover {
    transform: scale(1.1);
    color: #8a6642;
}

/* Style de bouton hamburger élégant */
.hamburger-icon {
    position: relative;
    width: 24px;
    height: 2px;
    background-color: #a67c52;
    transition: all 0.3s ease;
    display: block;
}

.hamburger-icon:before,
.hamburger-icon:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #a67c52;
    transition: all 0.3s ease;
}

.hamburger-icon:before {
    top: -6px;
}

.hamburger-icon:after {
    top: 6px;
}

.header-toggler.active .hamburger-icon {
    background: transparent;
}

.header-toggler.active .hamburger-icon:before {
    transform: rotate(45deg);
    top: 0;
}

.header-toggler.active .hamburger-icon:after {
    transform: rotate(-45deg);
    top: 0;
}

@media (max-width: 992px) {
    .header-bar {
        flex-wrap: wrap;
        padding: 0.8rem 1.5rem;
        height: var(--header-height-mobile, 70px);
    }

    .site-title {
        font-size: 1.7rem;
    }

    .header-toggler {
        display: block;
        order: 2;
        margin-left: auto;
        z-index: 1010;
    }
    
    .mobile-menus-container {
        position: absolute;
        top: var(--header-height-mobile, 70px);
        left: 0;
        right: 0;
        background-color: #1e1e1e;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s ease;
        opacity: 0;
        padding: 0 1.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        pointer-events: none;
        z-index: 1000;
        border-bottom: 2px solid;
        border-image: linear-gradient(to right, #8a6642, #a67c52, #e8d8c3);
        border-image-slice: 1;
    }
    
    .mobile-menus-container.active {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
        padding: 1rem 1.5rem;
    }

    .header-nav-main,
    .header-nav-client {
        position: static;
        transform: none;
        flex-basis: 100%;
        flex-direction: column;
        gap: 0.8rem;
        margin: 0;
        padding: 0;
        width: 100%;
    }



    .header-nav-main {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(166, 124, 82, 0.2);
    }

    .header-link {
        display: block;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(166, 124, 82, 0.1);
    }

    .header-link:last-child {
        border-bottom: none;
    }

    .header-nav-client {
        margin-left: auto;
        order: 2;
    }
}

@media (max-width: 576px) {
    .header-bar {
        padding: 0.7rem 1rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .header-nav-client .header-link {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    .header-toggler {
        font-size: 1.5rem;
    }
}
