/* ================================================
   Navbar — Alpine Lodge Design
   ================================================ */

.navbar {
    width: 100%;
    position: relative;
    z-index: 100;
    overflow: visible;
}

/* ── Announcement Strip ── */
.navbar__strip {
    background:
        linear-gradient(180deg, rgba(26, 10, 4, 0.78) 0%, rgba(26, 10, 4, 0.70) 100%),
        url('/images/navbar/fond-bois.webp') repeat-x 0 -30px;
    padding: 0 var(--padding-horizontal-large);
}

.navbar__strip-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 38px;
}

/* Phone */
.navbar__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-rubik);
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}

.navbar__phone i {
    font-size: 10px;
    color: var(--main-color);
}

.navbar__phone:hover {
    color: var(--white);
}

/* Tagline center */
.navbar__tagline {
    grid-column: 1;
    display: inline-flex;
    justify-self: center;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.navbar__tagline-text {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-rubik);
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.04em;
}

.navbar__tagline-icon {
    font-size: 10px;
    color: var(--main-color);
    opacity: 0.7;
}

.navbar__tagline-dash {
    display: inline-block;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--main-color), transparent);
    opacity: 0.5;
}

/* Strip right actions */
.navbar__strip-actions {
    grid-column: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.navbar__strip-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-rubik);
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease, font-size 0.2s ease;
}

.navbar__strip-link svg {
    border-radius: 2px;
    flex-shrink: 0;
}

.navbar__strip-link i {
    font-size: 12px;
}

.navbar__strip-link:hover,
.navbar__lang-btn:hover {
    color: var(--main-color);
    font-size: 13px;
}

.navbar__strip-link:hover i,
.navbar__lang-btn:hover i {
    font-weight: 900;
    color: var(--main-color);
}

.navbar__strip-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    user-select: none;
}

/* ── Marmotine pill — apparaît dans le strip après fermeture de la bulle ── */
.navbar__marmotine-pill {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.navbar__marmotine-pill[hidden] {
    display: none;
}

.navbar__marmotine-sep[hidden] {
    display: none;
}

.navbar__marmotine-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Fly-in animation quand le pill apparaît */
@keyframes marmotine-fly-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.7);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.navbar__marmotine-pill.is-appearing {
    animation: marmotine-fly-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}


/* ── Main Bar ── */
.navbar__main {
    background:
        url('/images/navbar/fond-bois.webp') repeat-x 0 -30px;
    padding: 0 var(--padding-horizontal-large);
    overflow: visible;
    position: relative;
    z-index: 10;
}

.navbar__main-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 82px;
}

/* Logo */
.navbar__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.navbar__logo-img {
    width: 260px;
    height: 70px;
    object-fit: contain;
    object-position: left center;
}

/* Nav links */
.navbar__nav {
    display: flex;
    align-items: flex-end; /* ancre les pills en bas du main bar */
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 0 40px;
    overflow: visible;
}

.navbar__link {
    position: relative;
    z-index: 20;
    color: var(--dark1);
    font-family: var(--font-rubik);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 7px 22px;
    background: var(--main-color);
    box-shadow: 0 2px 8px rgba(252, 176, 90, 0.35);
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    border-radius: 8px;
    transform: translateY(110%);
}

.navbar__link:hover {
    color: var(--white);
    background: var(--main-color-orange);
    box-shadow: 0 6px 18px rgba(252, 176, 90, 0.55);
    transform: translateY(100%) scale(1.04);
}

.navbar__link--active {
    color: var(--dark1);
    background: var(--main-color);
    box-shadow: 0 4px 14px rgba(252, 176, 90, 0.50);
    transform: translateY(100%);
}

/* Right actions */
.navbar__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.navbar__icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--white);
    font-size: 14px;
    font-family: var(--font-rubik);
    font-weight: 500;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.navbar__icon-btn i {
    font-size: 15px;
    color: var(--main-color);
}

.navbar__icon-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(252, 176, 90, 0.4);
    transform: translateY(-1px);
}

/* CTA Button */
.navbar__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--main-color);
    color: var(--dark1);
    font-family: var(--font-rubik);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(252, 176, 90, 0.35);
}

.navbar__cta:hover {
    background: var(--main-color-orange);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(252, 176, 90, 0.5);
    transform: translateY(-1px);
}

.navbar__cta-arrow {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.navbar__cta:hover .navbar__cta-arrow {
    transform: translateX(3px);
}


/* ── Gold Trim ── */
.navbar__trim {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(252, 176, 90, 0.15) 10%,
        var(--main-color) 30%,
        var(--main-color) 70%,
        rgba(252, 176, 90, 0.15) 90%,
        transparent 100%
    );
}


/* ── Hamburger ── */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.navbar__hamburger:hover {
    background: rgba(255, 255, 255, 0.14);
}

.navbar__hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform-origin: center;
}

.navbar--open .navbar__hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar--open .navbar__hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar--open .navbar__hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ── Mobile Menu ── */
.navbar__mobile-menu {
    display: none;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(26, 10, 4, 0.92) 0%, rgba(26, 10, 4, 0.96) 100%),
        url('/images/navbar/fond-bois.webp') repeat-x 0 -30px;
    padding: 8px 24px 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 1000;
}

.navbar--open .navbar__mobile-menu {
    display: flex;
}

/* La navbar elle-même doit passer au-dessus du hero quand le menu est ouvert */
.navbar--open {
    z-index: 1000;
}

.navbar__mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-rubik);
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.navbar__mobile-link:last-of-type {
    border-bottom: none;
}

.navbar__mobile-link:hover {
    color: var(--main-color);
    padding-left: 8px;
}

.navbar__mobile-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar__cta--mobile {
    flex: 1;
    justify-content: center;
}


/* ================================================
   Responsive
   ================================================ */

@media (max-width: 1400px) {
    .navbar__strip,
    .navbar__main {
        padding-left: 30px;
        padding-right: 30px;
    }

    .navbar__nav {
        padding: 0 24px;
    }
}

@media (max-width: 1100px) {
    .navbar__strip,
    .navbar__main {
        padding-left: 20px;
        padding-right: 20px;
    }

    .navbar__nav {
        padding: 0 16px;
        gap: 2px;
    }

    .navbar__link {
        font-size: 13px;
        padding: 8px 12px;
    }

    .navbar__logo-img {
        width: 220px;
        height: 60px;
    }
}

@media (max-width: 900px) {
    .navbar__strip {
        display: none;
    }

    .navbar__nav,
    .navbar__actions {
        display: none;
    }

    .navbar__hamburger {
        display: flex;
    }

    .navbar__main-inner {
        height: 66px;
        justify-content: space-between;
    }

    .navbar__logo-img {
        width: 190px;
        height: 52px;
    }

    .navbar__trim {
        height: 1px;
    }
}

@media (max-width: 480px) {
    .navbar__main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .navbar__logo-img {
        width: 155px;
        height: 42px;
    }

    .navbar__mobile-menu {
        padding: 8px 16px 20px;
    }

    .navbar__mobile-link {
        font-size: 14px;
        padding: 12px 0;
    }
}

/* ── Language Switcher ── */
.navbar__lang-switcher {
    position: relative;
    display: inline-flex;
}

.navbar__lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-rubik);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    padding: 0;
    transition: color 0.2s ease, font-size 0.2s ease;
}

.navbar__lang-chevron {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.navbar__lang-switcher.is-open .navbar__lang-chevron {
    transform: rotate(180deg);
}

.navbar__lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 200;
}

.navbar__lang-switcher.is-open .navbar__lang-dropdown {
    display: block;
}

.navbar__lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--navbar-lang-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.navbar__lang-option:hover {
    background: var(--navbar-lang-hover-bg);
}

.navbar__lang-option--active {
    background: var(--navbar-lang-hover-bg);
    font-weight: 700;
}

.navbar__lang-flag {
    font-size: 16px;
    line-height: 1;
}

/* ── Account Switcher ── */
.navbar__account-switcher {
    position: relative;
    display: inline-flex;
}

.navbar__account-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-rubik);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    padding: 0;
    transition: color 0.2s ease, font-size 0.2s ease;
}

.navbar__account-chevron {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.navbar__account-switcher.is-open .navbar__account-chevron {
    transform: rotate(180deg);
}

.navbar__account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 200;
}

.navbar__account-switcher.is-open .navbar__account-dropdown {
    display: block;
}

.navbar__account-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: var(--navbar-lang-text);
    text-decoration: none;
    font-family: var(--font-rubik);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.navbar__account-option i {
    font-size: 13px;
    color: var(--main-color);
    width: 16px;
    text-align: center;
}

.navbar__account-option:hover {
    background: var(--navbar-lang-hover-bg);
}

/* Icône connecté — vert + filled */
.navbar__account-btn--online i.fa-circle-user {
    color: #22c55e;
}

/* Séparateur dans le dropdown */
.navbar__account-separator {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 4px 0;
}

/* Option déconnexion — rouge discret */
.navbar__account-option--logout {
    color: #f87171;
}

.navbar__account-option--logout i {
    color: #f87171;
}

.navbar__account-option--logout:hover {
    background: rgba(248, 113, 113, 0.12);
}
