/* ===========================
   NAVBAR DARK CHURCHILL STYLE
   =========================== */

.nav-dark {
    width: 100%;
    background: #111;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-dark {
    background: #F8F8FF;
    backdrop-filter: blur(10px);
    position: sticky;
    z-index: 10;
    /* plus haut que la grille */
}

/* CONTAINER PRINCIPAL */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.nav-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #050A0F;
    text-decoration: none;
    line-height: 1;
}

.nav-logo img {
    width: 160px;
    margin-bottom: -4px;
}

.nav-logo span {
    font-size: 1.6rem;
    font-weight: 600;
    font-family: "Playfair Display", serif;
}

.nav-logo small {
    font-size: 0.75rem;
    opacity: 0.7;
    letter-spacing: 3px;
    margin-top: -2px;
}

/* MENU CENTRÉ */
.nav-center {
    display: flex;
    background-color: #ffffff;
    gap: 28px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgb(0, 0, 0);
    border-radius: 50px;
    backdrop-filter: blur(6px);
    z-index: 999;
}

.nav-center a {
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
}

.nav-center a:hover {
    text-decoration: none;
    text-shadow:
        0 0 20px rgba(0, 98, 255, 0.8),
        0 0 35px rgba(0, 98, 255, 0.7);
}

/* BOUTON CONTACT AVEC GLOW */
.btn-glow {
    color: #fff;
    background: #0062FF;
    padding: 10px 26px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: 0.25s;
    box-shadow:
        0 0 12px rgba(0, 98, 255, 0.5),
        0 0 25px rgba(0, 98, 255, 0.4);
}

.btn-glow:hover {
    background: #0062FF;
    color: #fff;
    text-decoration: none;
    box-shadow:
        0 0 20px rgba(0, 98, 255, 0.7),
        0 0 35px rgba(0, 98, 255, 0.6);
}



/* Responsive */
@media (max-width: 992px) {
    .nav-center {
        display: none;
        /* Menu caché sur mobile */
    }

    .nav-actions {
        display: none;
        /* Hide default contact button on mobile too */
    }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* la grille ne bloque pas les clics */
    z-index: 20;

    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size:
        cover,
        120px 120px,
        120px 120px;
}

/* Dropdown CSS */

/* Container for dropdown */
.nav-item-dropdown {
    position: relative;
    display: flex;
    /* Ensure it aligns nicely in flex container */
    align-items: center;
    height: 100%;
}

/* PONT INVISIBLE POUR GARDER LE HOVER */
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    /* Largeur suffisante pour attraper la souris */
    height: 20px;
    /* Comble l'espace créé par le margin-top */
    background: transparent;
}

/* The Dropdown Menu (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 12px;
    padding: 10px 0;
    top: 100%;
    /* Position it below the parent */
    left: 50%;
    transform: translateX(-50%);
    /* Center it relative to parent */
    margin-top: 15px;
    /* Little gap */
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
}

/* Arrow/Triangle pointing up */
.dropdown-content::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #333 !important;
    padding: 12px 25px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-radius: 0;
}

/* Change color on hover */
.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--color-primary, #2563EB) !important;
    padding-left: 30px;
    /* Slide effect */
    text-shadow: none;
}

/* Show the dropdown menu on hover */
.nav-item-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    animation: fadeInSlide 0.3s ease forwards;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* =========================================
   MOBILE MENU STYLES
   ========================================= */

/* Hamburger Toggle (Hidden on desktop) */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.nav-mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #111;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Show toggle on mobile */
@media (max-width: 992px) {
    .nav-mobile-toggle {
        display: flex;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2000;
    transform: translateX(100%);
    /* Hidden by default */
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

/* Header inside mobile menu (Close btn) */
.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 20px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #111;
    padding: 10px;
}

/* Body of menu */
.mobile-menu-body {
    flex: 1;
    padding-top: 20px;
}

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

.mobile-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-link,
.mobile-nav-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    /* Big touch targets */
    font-size: 1.2rem;
    /* Larger text */
    font-weight: 500;
    color: #0c1e35;
    /* Dark navy */
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.mobile-nav-link:hover {
    color: #0062FF;
}

.mobile-arrow,
.chevron-icon {
    font-size: 0.9rem;
    color: #0062FF;
    /* Blue arrows */
    transition: transform 0.3s;
}

/* Submenu Styles */
.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    /* Hidden by default */
    background: #f9fafb;
    margin-bottom: 10px;
    border-radius: 8px;
}

.mobile-submenu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 20px 12px 30px;
    font-size: 1rem;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-submenu li a:hover {
    color: #0062FF;
    background: #eff6ff;
    padding-left: 35px;
    /* Slide effect */
    transition: all 0.2s;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer (Contact Button) */
.mobile-menu-footer {
    padding-top: 20px;
    padding-bottom: 30px;
    /* Safe area for bottom */
}

.btn-mobile-contact {
    display: block;
    width: 100%;
    padding: 18px;
    background: #0062FF;
    color: #ffffff;
    text-align: center;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 98, 255, 0.4);
    transition: background 0.3s, transform 0.2s;
}

.btn-mobile-contact:hover {
    background: #0051d4;
    transform: translateY(-2px);
}