/* =========================
   NAVBAR
========================= */

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

/* LOGO */
.nav-logo {
    font-size: 32px;
}

/* =========================
   MENU OVERLAY (par défaut = mobile)
========================= */

.nav-menu {
    position: fixed;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;

    background: rgba(255,255,255,0.98);

    z-index: 9999;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease;
}

/* menu ouvert */
.site-nav.is-open .nav-menu {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   LIENS
========================= */

.nav-link {
    font-size: 44px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    text-align: center;
    display: block;

    letter-spacing: 2px;
    transition: transform 0.2s ease;
}

.nav-link:hover {
    transform: scale(1.05);
}

/* =========================
   BURGER
========================= */

.nav-burger {
    z-index: 10000;
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;

    align-items: center;
    justify-content: center;
}

/* LIGNES */
.nav-burger-lines {
    position: relative;
    width: 20px;
    height: 2px;
    background: #111;
    transition: all 0.2s ease;
}

.nav-burger-lines::before,
.nav-burger-lines::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #111;
    left: 0;
    transition: all 0.2s ease;
}

.nav-burger-lines::before { top: -6px; }
.nav-burger-lines::after { top: 6px; }

/* animation croix */
.site-nav.is-open .nav-burger-lines {
    background: transparent;
}

.site-nav.is-open .nav-burger-lines::before {
    transform: rotate(45deg);
    top: 0;
}

.site-nav.is-open .nav-burger-lines::after {
    transform: rotate(-45deg);
    top: 0;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .site-nav {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1000;
    }

    .nav-burger {
        display: inline-flex;
    }

    .nav-link {
        font-size: 32px;
    }
}

/* =========================
   DESKTOP FIX (🔥 IMPORTANT)
========================= */

@media (min-width: 769px) {

    .nav-menu {
        position: static;          /* 🔥 enlève le fullscreen */
        opacity: 1;                /* 🔥 visible */
        pointer-events: auto;

        flex-direction: row;       /* menu horizontal */
        gap: 30px;

        background: transparent;   /* enlève le fond blanc */
    }

    .nav-link {
        font-size: 16px;           /* taille normale desktop */
    }

    .nav-burger {
        display: none;             /* pas de burger */
    }
}

/* =========================
   UX
========================= */

body.menu-open {
    overflow: hidden;
}