:root {
    --top-bar-height: 0px;
}

body {
    padding-top: var(--top-bar-height, 0px);
}

/* ----------------------------
            NAVBAR
 ---------------------------- */
.nav {
    background: rgba(255,255,255,0.95);
    color: #FFF;
    padding: 10px 15px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: var(--top-bar-height, 0px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.nav.scrolled,
.custom-bg-dark {
    background: rgba(255,255,255,0.98) !important;
    color: #222;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.nav-transparent {
    background-color: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}
.text-dark { color: #000 !important; }
.text-white { color: #fff !important; }
.logo {
    position: relative;
    display: inline-block;
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Baskervville SC', serif;
    z-index: 1001;
}
.text {
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: inherit;
}
.background-i {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.1;
    font-size: 1.9em;
    color: transparent;
    background: linear-gradient(to left, #e96310, rgb(18, 18, 18));
    -webkit-background-clip: text;
    background-clip: text;
    font-family: 'Baskervville SC', serif;
}
.nav .menu {
    display: flex;
    gap: 20px;
    margin-right: 47px;
}
.nav a {
    font-size: 13px;
    position: relative;
    text-decoration: none;
    padding: 5px;
    transition: color 0.3s ease;
    color: inherit;
}

.nav a:hover::after { width: 100%; }
.fa-paper-plane { font-size: 20px; }

.top-contact-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: #0f172a;
    color: #e2e8f0;
    padding: 6px 18px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.2);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.2);
}

.top-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.top-contact-item i {
    color: #38bdf8;
}

.top-contact-item:hover {
    color: #38bdf8;
}

.mobile-whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    box-shadow: 0 18px 32px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    z-index: 1200;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-whatsapp-fab:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 22px 36px rgba(37, 211, 102, 0.55);
}

/* ======= HAMBURGER STYLES ======= */
.nav .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
    width: 40px;
    height: 40px;
    outline: none;
    position: relative;
}
.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    display: block;
    transform-origin: center;
}
.nav.scrolled .hamburger-line,
.custom-bg-dark .hamburger-line {
    background-color: #050505;
}
.nav.nav-transparent .hamburger-line {
    background-color: #fff;
}
.nav .hamburger:hover .hamburger-line {
    background-color: #e96310;
}
.nav .hamburger.active .hamburger-line {
    background-color: #e96310;
}
.nav .hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.nav .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}
.nav .hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ======= MENU RESPONSIVE ======= */
.nav .menu.responsive {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80vw;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 20px 0;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}
.nav .menu.responsive.show { right: 0 !important; }
.nav .menu.responsive a {
    color: white !important;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: left;
    text-decoration: none;
    display: block;
}
.nav .menu.responsive a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 40px;
    color: #ffd700 !important;
}
.nav .menu.responsive a::after { display: none; }
.nav .menu-footer { display: none; }

/* ======= OVERLAY POUR FERMER LE MENU ======= */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.active {
    display: block !important;
    opacity: 1;
}

/* ======= RESPONSIVE NAVBAR ======= */
@media (max-width: 768px) {
    .nav {
        padding: 10px 15px;
        background: rgba(255,255,255,0.98) !important;
        color: #222;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        backdrop-filter: blur(10px);
        flex-wrap: wrap;
        gap: 10px;
    }
  

    .nav .hamburger {
        display: flex !important;
        background: none;
        border: none;
        width: 40px;
        height: 40px;
        outline: none;
    }
    .nav .menu { display: none; }
    .nav .menu-footer {
        display: block;
        margin-top: auto;
        padding: 20px 30px;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    .nav .menu-footer a {
        color: white !important;
        font-size: 24px;
        border: none !important;
        padding: 10px !important;
        display: inline-block;
    }
    .nav .menu-footer a:hover {
        color: #ffd700 !important;
        background: none !important;
        padding-left: 10px !important;
    }

    .top-contact-bar {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 8px 12px;
    }

    .top-contact-item {
        font-size: 0.78rem;
        gap: 0.3rem;
    }

    .mobile-whatsapp-fab {
        display: inline-flex;
    }
}



/* ======= NAVBAR LINKS ======= */
.link-navbar {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 0;
}
.link-navbar li { margin: 0; }
.link-navbar li a {
    text-decoration: none;
    color: inherit;
    font-size: 24px;
    transition: color 0.3s ease;
}


/* ======= CTA NAVIGATION ======= */
.cta-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white !important;

}


/* ======= ACCESSIBILITÉ ======= */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ======= PRINT ======= */
@media print {
    .nav, .hero-stats, .scroll-indicator, .btn-hero, .btn-secondary {
        display: none !important;
    }
}



.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem !important;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    border-radius: var(--border-radius);
    opacity: 0;
    transition: var(--transition);
}

.logo:hover::before {
    opacity: 1;
}

.logo:hover {
    transform: translateY(-2px) scale(1.05);
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}


/* Styles pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .login-logo i {
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }
}