
/* =========================================================
   NAVIGATION — MARIAGE GENEVIÈVE & KEVEN
   Style élégant : noir, or et ivoire
   ========================================================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    padding: 18px 5%;

    background: rgba(15, 15, 15, 0.97);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    box-sizing: border-box;

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* =========================================================
   LOGO G ♥ K
   ========================================================= */

.nav .brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #f5f0e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    white-space: nowrap;
}

.nav .brand span {
    color: #d4af37;
    font-size: 23px;
}

/* =========================================================
   MENU PRINCIPAL
   ========================================================= */

.nav .navlinks {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav .navlinks > a,
.nav .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 8px 0;

    color: #f5f0e6;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;

    background: transparent;
    border: 0;
    cursor: pointer;

    transition: color 0.25s ease;
}

.nav .navlinks > a:hover,
.nav .navlinks > a:focus-visible,
.nav .nav-dropdown-toggle:hover,
.nav .nav-dropdown-toggle:focus-visible {
    color: #d4af37;
    outline: none;
}

/* Soulignement doré au survol des liens principaux */

.nav .navlinks > a {
    position: relative;
}

.nav .navlinks > a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 1px;
    content: "";

    background: #d4af37;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav .navlinks > a:hover::after,
.nav .navlinks > a:focus-visible::after {
    transform: scaleX(1);
}

/* =========================================================
   SOUS-MENU « NOS SOUVENIRS »
   ========================================================= */

.nav .nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
/* Chevron élégant du sous-menu */
.nav .nav-dropdown-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 2px;

    border-right: 1.5px solid #d4af37;
    border-bottom: 1.5px solid #d4af37;

    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.25s ease;

    flex-shrink: 0;
}

/* Rotation lorsque le sous-menu est ouvert */
.nav .nav-dropdown.sous-menu-ouvert .nav-dropdown-arrow {
    transform: translateY(2px) rotate(225deg);
}

/* Boîte du sous-menu */

.nav .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -18px;

    display: none;
    flex-direction: column;
    align-items: stretch;

    min-width: 180px;
    padding: 9px 0;
    margin-top: 8px;

    background: #151515;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 3px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* Affichage du sous-menu au clic */

.nav .nav-dropdown.sous-menu-ouvert .nav-dropdown-menu {
    display: flex;
}

/* Affichage au survol et au clavier sur ordinateur */

@media (min-width: 769px) {
    .nav .nav-dropdown:hover .nav-dropdown-menu,
    .nav .nav-dropdown:focus-within .nav-dropdown-menu {
        display: flex;
    }
}

/* Liens du sous-menu : même capitalisation que le menu principal */

.nav .nav-dropdown-menu a {
    display: flex;
    align-items: center;

    width: 100%;
    padding: 12px 18px;
    box-sizing: border-box;

    color: #f5f0e6;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;

    background: transparent;
    transition:
            color 0.2s ease,
            background-color 0.2s ease;
}

.nav .nav-dropdown-menu a:hover,
.nav .nav-dropdown-menu a:focus-visible {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
    outline: none;
}

/* =========================================================
   BOUTON HAMBURGER
   ========================================================= */

.nav .burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    width: 42px;
    height: 42px;
    padding: 8px;

    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 3px;
    cursor: pointer;
}

.nav .burger span {
    display: block;
    width: 100%;
    height: 2px;

    background: #d4af37;
    transition:
            transform 0.25s ease,
            opacity 0.25s ease;
}

.nav .burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav .burger.active span:nth-child(2) {
    opacity: 0;
}

.nav .burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   VERSION MOBILE ET PETITS ÉCRANS
   ========================================================= */

@media (max-width: 768px) {
    .nav {
        padding: 12px 5%;
    }

    .nav .brand {
        font-size: 23px;
    }

    .nav .brand span {
        font-size: 21px;
    }

    .nav .burger {
        display: flex;
    }

    .nav .navlinks {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 10px 5% 18px;

        background: rgba(15, 15, 15, 0.99);
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        box-sizing: border-box;
    }

    .nav .navlinks.active {
        display: flex;
    }

    .nav .navlinks > a,
    .nav .nav-dropdown-toggle {
        display: flex;
        justify-content: center;

        width: 100%;
        padding: 15px 10px;
        box-sizing: border-box;

        font-size: 13px;
        text-align: center;
    }

    .nav .navlinks > a::after {
        display: none;
    }

    /* Sous-menu mobile */

    .nav .nav-dropdown {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav .nav-dropdown-toggle {
        gap: 8px;
    }

    .nav .nav-dropdown-menu {
        position: static;

        display: none;
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        min-width: 0;
        padding: 0;
        margin: 0;

        background: rgba(255, 255, 255, 0.035);
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .nav .nav-dropdown.sous-menu-ouvert .nav-dropdown-menu {
        display: flex;
    }

    .nav .nav-dropdown-menu a {
        justify-content: center;

        padding: 13px 10px;

        font-size: 12px;
        letter-spacing: 1.2px;
        text-align: center;
    }
}

/* =========================================================
   ACCESSIBILITÉ — ANIMATIONS RÉDUITES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .nav *,
    .nav *::before,
    .nav *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
