/* ================================================================
   NAVIGATION AVEC HAUTEUR MAXIMALE FORCÉE
   ================================================================ */

/* Navigation - Hauteur forcée pour couvrir l'espace */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.nav__holder {
    padding: 0.6rem 0 !important;
    min-height: 72px !important;
    transition: padding 0.3s ease;
}

.nav--sticky .nav__holder {
    padding: 0.4rem 0 !important;
    min-height: 64px !important;
}

.nav .container {
    max-width: 1280px;
    padding-left: 24px;
    padding-right: 24px;
}

.flex-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo - Augmenté */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
    margin-right: 2rem;
    transition: all 0.3s ease;
}

.logo img {
    height: 48px !important;
    width: auto !important;
    max-height: 48px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.nav--sticky .logo img {
    height: 42px !important;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Menu wrap - Centré */
.nav__wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Items du menu */
.nav__menu li {
    list-style: none;
    margin: 0;
    position: relative;
}

.nav__menu li a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    text-decoration: none !important;
}

/* Suppression du double soulignement */
.nav__menu li a::before {
    display: none !important;
}

/* UN SEUL soulignement au hover */
.nav__menu li a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00b300, #e60000);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__menu li a:hover {
    color: #00b300;
    background: rgba(0, 179, 0, 0.1);
    transform: translateY(-2px);
}

.nav__menu li a:hover::after {
    width: 35px;
}

/* État actif */
.nav__menu li a.active {
    background: rgba(0, 179, 0, 0.12);
    color: #00b300;
}

.nav__menu li a.active::after {
    width: 35px;
}

/* Bouton CTA */
.nav__right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.4rem;
    background: linear-gradient(135deg, #00b300, #009900);
    color: white;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(0, 179, 0, 0.28);
    white-space: nowrap;
    text-decoration: none;
}

.nav__cta-btn i {
    font-size: 1.1rem;
}

.nav__cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 179, 0, 0.4);
    color: white;
}

/* Hero section - Ajustement pour la nouvelle hauteur */
.hero-section {
    margin-top: 72px !important;
}

/* Hamburger mobile */
.nav-icon-toggle {
    display: none;
    width: 50px;
    height: 50px;
    padding: 0;
    background: linear-gradient(135deg, #00b300, #009900);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(0, 179, 0, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-icon-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 179, 0, 0.4);
}

.nav-icon-toggle__box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.nav-icon-toggle__inner,
.nav-icon-toggle__inner::before,
.nav-icon-toggle__inner::after {
    position: absolute;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-icon-toggle__inner {
    top: 50%;
    transform: translateY(-50%);
}

.nav-icon-toggle__inner::before {
    content: '';
    top: -8px;
}

.nav-icon-toggle__inner::after {
    content: '';
    top: 8px;
}

/* Animation hamburger -> X */
.nav-icon-toggle.active .nav-icon-toggle__inner {
    background: transparent;
}

.nav-icon-toggle.active .nav-icon-toggle__inner::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-icon-toggle.active .nav-icon-toggle__inner::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Menu mobile */
.sidenav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 30px rgba(0, 0, 0, 0.15);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1999;
    overflow-y: auto;
}

.sidenav.active {
    left: 0;
}

.sidenav__header {
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, rgba(0, 179, 0, 0.05), rgba(230, 0, 0, 0.03));
}

.sidenav__logo {
    width: 90px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

.sidenav__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.3rem;
}

.sidenav__subtitle {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

.sidenav__menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.sidenav__menu-link {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    text-decoration: none;
}

.sidenav__menu-link::before {
    content: '→';
    margin-right: 1rem;
    color: #00b300;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.sidenav__menu-link:hover {
    background: rgba(0, 179, 0, 0.08);
    border-left-color: #00b300;
    padding-left: 2rem;
    color: #00b300;
}

.sidenav__menu-link:hover::before {
    transform: translateX(5px);
}

.sidenav__menu-link.active {
    background: rgba(0, 179, 0, 0.12);
    border-left-color: #00b300;
    color: #00b300;
}

.sidenav__footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: #f8f9fa;
    text-align: center;
}

.sidenav__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sidenav__social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: #00b300;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidenav__social-link:hover {
    background: #00b300;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 179, 0, 0.3);
}

.sidenav__copyright {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animations */
.sidenav.active .sidenav__menu-link {
    animation: slideInLeft 0.4s ease-out forwards;
    opacity: 0;
}

.sidenav.active .sidenav__menu-link:nth-child(1) { animation-delay: 0.05s; }
.sidenav.active .sidenav__menu-link:nth-child(2) { animation-delay: 0.1s; }
.sidenav.active .sidenav__menu-link:nth-child(3) { animation-delay: 0.15s; }
.sidenav.active .sidenav__menu-link:nth-child(4) { animation-delay: 0.2s; }
.sidenav.active .sidenav__menu-link:nth-child(5) { animation-delay: 0.25s; }
.sidenav.active .sidenav__menu-link:nth-child(6) { animation-delay: 0.3s; }
.sidenav.active .sidenav__menu-link:nth-child(7) { animation-delay: 0.35s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .nav__menu li a {
        padding: 0.45rem 0.75rem;
        font-size: 0.83rem;
    }

    .logo img {
        height: 44px !important;
    }

    .nav__holder {
        padding: 0.6rem 0 !important;
        min-height: 68px !important;
    }

    .hero-section {
        margin-top: 68px !important;
    }
}

@media (max-width: 991px) {
    .nav-icon-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 1;
    }

    .logo {
        order: 2;
        margin-right: auto;
        margin-left: 1rem;
    }

    .logo img {
        height: 42px !important;
    }

    .nav__wrap {
        display: none !important;
    }

    .nav__right {
        display: none !important;
    }

    .flex-parent {
        gap: 0.5rem;
    }

    .nav__holder {
        padding: 0.75rem 0 !important;
        min-height: 64px !important;
    }

    .hero-section {
        margin-top: 64px !important;
    }
}

@media (max-width: 767px) {
    .logo img {
        height: 38px !important;
    }

    .nav-icon-toggle {
        width: 40px;
        height: 40px;
    }

    .nav__holder {
        padding: 0.6rem 0 !important;
        min-height: 58px !important;
    }

    .sidenav {
        width: 300px;
    }

    .hero-section {
        margin-top: 58px !important;
    }
}

@media (max-width: 575px) {
    .sidenav {
        width: 100%;
        max-width: 100%;
    }

    .logo img {
        height: 36px !important;
    }

    .nav__holder {
        padding: 0.5rem 0 !important;
        min-height: 54px !important;
    }

    .hero-section {
        margin-top: 54px !important;
    }
}

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

#back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00b300, #009900);
    color: white;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 179, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

#back-to-top a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 179, 0, 0.4);
    color: white;
}
