/* assets/css/block/header-mailing.css */

:root {
    --color-bg-header: #fff;
    --color-header-border: #e0e0e0;
    --color-text-header: #333;
    --color-text-header-hover: #5f45a6;
    --color-bg-header-cta: #f4f4f4;
    --color-text-header-cta: #333;
    --color-border-header-cta: #ccc;
    --color-bg-header-cta-highlight: #5f45a6;
    --color-text-header-cta-highlight: #fff;
    --color-border-header-cta-highlight: #5f45a6;
}

.header {
    background-color: var(--color-bg-header);
    border-bottom: 1px solid var(--color-header-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header__principal {
    background-color: var(--color-bg-header);
    position: relative;
    z-index: 5;
}

.header__nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 4.5rem;
}

.header__nav--logo {
    flex-shrink: 0;
    z-index: 10; /* Ensure logo is above mobile menu overlay */
}

.header__nav--logo img {
    height: 2.5rem;
    width: auto;
}

.header__nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__nav--ctas {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.header__nav--menu-link {
    color: var(--color-text-header);
    font-size: 1rem;
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}

.header__nav--menu-link:hover {
    color: var(--color-text-header-hover);
}

.header__nav--menu-ctas {
    font-size: .875rem;
    font-weight: 700;
    padding: .5rem 1rem;
    border-radius: .5rem;
    text-align: center;
    text-decoration: none;
    transition: all .2s;
    background-color: var(--color-bg-header-cta);
    /* color: var(--color-text-header-cta); */
    color: var(--color-border-header-cta-highlight);
    border: 1px solid var(--color-border-header-cta);
}

.header__nav--ctas-matricule {
    font-size: .875rem;
    font-weight: 700;
    padding: .75rem 1.5rem;
    border-radius: .5rem;
    text-align: center;
    text-decoration: none;
    transition: all .2s;
    background-color: var(--color-bg-header-cta-highlight);
    color: var(--color-text-header-cta-highlight);
    border: 1px solid var(--color-border-header-cta-highlight);
    cursor: pointer;
    white-space: nowrap;
}

/* Mobile Menu Styles */
.header__nav--menu-mobile-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.header__nav--menu-mobile-icon {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-text-header);
    position: relative;
    transition: background-color 0.3s ease;
}

.header__nav--menu-mobile-icon::before,
.header__nav--menu-mobile-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-header);
    left: 0;
    transition: transform 0.3s ease;
}

.header__nav--menu-mobile-icon::before {
    top: -8px;
}

.header__nav--menu-mobile-icon::after {
    bottom: -8px;
}

.header__nav--menu-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 5;
}

.header__nav--menu-mobile-active {
    display: flex;
}

.header__nav--menu-mobile-item {
    color: #fff;
    font-size: 1.8rem;
    text-decoration: none;
    font-weight: 300;
}

/* Active state for hamburger icon */
.header__nav--menu-mobile-button.active .header__nav--menu-mobile-icon {
    background-color: transparent;
}

.header__nav--menu-mobile-button.active .header__nav--menu-mobile-icon::before {
    transform: translateY(8px) rotate(45deg);
    background-color: #fff;
}

.header__nav--menu-mobile-button.active .header__nav--menu-mobile-icon::after {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #fff;
}


/* Responsive Media Query */
@media (max-width: 992px) {
    .header__nav-links {
        display: none;
    }

    .header__nav--menu-mobile-button {
        display: block;
    }
}

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

#whatsapp-mobile {
    display: none;
}

@media (max-width: 992px) {
    #whatsapp-mobile {
        display: block;
        margin-top: 1rem;
        font-size: 1.2rem;
        padding: 1rem 2rem;
        background-color: var(--color-bg-header-cta-highlight);
        color: var(--color-text-header-cta-highlight);
        border: 1px solid var(--color-border-header-cta-highlight);
        border-radius: .5rem;
        text-decoration: none;
    }
}
