.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-nav {
    background: transparent;
    transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled .main-nav {
    background: rgba(245, 241, 234, 0.88);
    backdrop-filter: blur(14px);
}

.logo {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--vert-profond);
    font-size: 20px;
    white-space: nowrap;
}

.nav-links .nav-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--gris-fonce);
    padding: 10px 10px;
    border-radius: 999px;
    transition: background-color 160ms ease, color 160ms ease;
}

.nav-links .nav-link:hover {
    background: rgba(31, 111, 74, 0.10);
    color: var(--vert-profond);
}

.nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(46, 46, 46, 0.12);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 61;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--vert-profond);
    margin: 5px 0;
    border-radius: 2px;
}

.nav-toggle .navbar-toggler-icon {
    width: 22px;
    height: 22px;
    background-size: 22px 22px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(31, 111, 74, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 10px;
    }

    .nav-links .nav-link {
        text-align: center;
    }

    .btn-bounce.btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .logo {
        font-size: 18px;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-4px); /* monte légèrement */
    }
    50% {
        transform: translateY(2px);  /* redescend un peu en dessous */
    }
    75% {
        transform: translateY(-2px); /* petit rebond */
    }
}

.btn-bounce {
    animation: bounce 0.7s ease-in-out infinite;
    display: inline-block; /* pour que transform fonctionne bien */
    will-change: transform;
    border-radius: 100px;
    padding: 8px;
}



