/* Header CSS — La Baule Entreprises */

header.site-header {
    background-color: var(--lbe-blanc);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(6, 90, 130, 0.08);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.site-header.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 2px 12px rgba(6, 90, 130, 0.15);
}

/* Logo */
header.site-header .logo {
    display: inline-block;
    line-height: 0;
}

header.site-header .logo img {
    width: 120px;
    height: auto;
    transition: width 0.3s ease;
}

header.site-header.scrolled .logo img {
    width: 90px;
}

.home header.site-header .logo {
    pointer-events: none;
    cursor: default;
}

/* Navigation desktop — V3 Stitch: underline active */
.menu-principal-container .nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-principal-container .nav-list li a {
    display: block;
    padding: 0.6rem 0.9rem;
    color: var(--lbe-gris);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.menu-principal-container .nav-list li a:hover {
    color: var(--lbe-bleu);
    border-bottom-color: var(--lbe-turquoise);
}

.menu-principal-container .nav-list li.current-menu-item > a {
    color: var(--lbe-bleu);
    border-bottom-color: var(--lbe-turquoise);
    font-weight: 700;
}

/* Bouton Adhérer (CTA header) */
.btn-adherer {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    background-color: var(--lbe-dore);
    color: var(--lbe-blanc) !important;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--lbe-radius);
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-adherer:hover {
    background-color: var(--lbe-bleu);
    color: var(--lbe-blanc) !important;
    transform: translateY(-1px);
}

/* Burger button */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.burger .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--lbe-bleu);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.actif .bar.une {
    transform: translateY(9px) rotate(45deg);
}
.burger.actif .bar.dx {
    opacity: 0;
}
.burger.actif .bar.tr {
    transform: translateY(-9px) rotate(-45deg);
}

/* Navigation mobile overlay */
.nav-mobile {
    position: fixed;
    z-index: 998;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--lbe-blanc);
    transform: translateX(-100%);
    transition: transform 0.35s ease-out;
    overflow-y: auto;
}

.nav-mobile.opened {
    transform: translateX(0);
}

.nav-mobile .inner {
    padding: 5rem 2rem 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.burger-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-close .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--lbe-bleu);
    border-radius: 2px;
}

.burger-close .bar.une {
    transform: translateY(9px) rotate(45deg);
}

.burger-close .bar.tr {
    transform: translateY(-9px) rotate(-45deg);
}

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

.nav-mobile-list li a {
    display: block;
    padding: 1rem 0;
    color: var(--lbe-bleu);
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--lbe-gris-clair);
    transition: color 0.2s ease;
}

.nav-mobile-list li a:hover,
.nav-mobile-list li.current-menu-item > a {
    color: var(--lbe-turquoise);
}

/* Breakpoint desktop — nav-mobile cachée */
@media screen and (min-width: 992px) {
    .nav-mobile { display: none !important; }
}
