/* ===== NAVBAR fond vert clair OPAQUE ===== */
#navbar {
    background: linear-gradient(135deg, rgb(168, 188, 148) 0%, rgb(210, 204, 190) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled {
    background: linear-gradient(135deg, rgb(158, 178, 138) 0%, rgb(200, 194, 180) 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* Hauteur agrandie pour feuille + textes plus grands */
#navbar .flex.justify-between {
    height: 8rem !important;
}

/* Sous-titre Réflexologie Chinoise en blanc */
#navbar .text-sage {
    color: #ffffff !important;
}

#mobile-menu {
    background: linear-gradient(135deg, rgba(138, 158, 120, 0.2) 0%, rgba(237, 230, 218, 0.95) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== ZEN AMBIANCE - Pétales, feuilles et symboles chinois animés ===== */

/* Container for falling elements */
.zen-falling-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Individual falling element */
.zen-falling {
    position: absolute;
    top: -60px;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Falling petal */
.zen-petal {
    animation: zenFall linear infinite, zenSway ease-in-out infinite;
}

/* Falling leaf */
.zen-leaf {
    animation: zenFall linear infinite, zenLeafSway ease-in-out infinite;
}

/* Floating chinese symbol */
.zen-float-symbol {
    position: absolute;
    font-family: 'Noto Serif', serif;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    animation: zenSymbolFloat 20s ease-in-out infinite;
}

/* Bamboo leaf shape via SVG in JS */
/* Lotus petal shape via SVG in JS */

/* ===== KEYFRAMES ===== */

@keyframes zenFall {
    0% {
        top: -60px;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 105vh;
        opacity: 0;
    }
}

@keyframes zenSway {
    0%, 100% {
        transform: translateX(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateX(30px) rotate(15deg) scale(1.05);
    }
    50% {
        transform: translateX(-20px) rotate(-10deg) scale(0.95);
    }
    75% {
        transform: translateX(25px) rotate(20deg) scale(1.02);
    }
}

@keyframes zenLeafSway {
    0%, 100% {
        transform: translateX(0) rotate(0deg) rotateY(0deg);
    }
    25% {
        transform: translateX(40px) rotate(25deg) rotateY(45deg);
    }
    50% {
        transform: translateX(-30px) rotate(-15deg) rotateY(90deg);
    }
    75% {
        transform: translateX(35px) rotate(30deg) rotateY(45deg);
    }
}

@keyframes zenSymbolFloat {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    15% {
        opacity: 0.04;
    }
    50% {
        opacity: 0.06;
        transform: translateY(-20px) scale(1);
    }
    85% {
        opacity: 0.04;
    }
    100% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
}

/* Ondulation douce entre les sections */
.zen-wave-separator {
    position: relative;
    height: 80px;
    overflow: hidden;
    margin-top: -1px;
}

.zen-wave-separator svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* Cercle enso flottant amélioré */
.zen-enso-floating {
    position: fixed;
    border: 2px solid rgba(180, 160, 130, 0.06);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: zenEnsoFloat 25s ease-in-out infinite;
}

@keyframes zenEnsoFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -30px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(-15px, -50px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translate(25px, -20px) rotate(270deg);
        opacity: 0.5;
    }
}

/* Fumée d'encens */
.zen-incense {
    position: fixed;
    bottom: 10%;
    width: 2px;
    height: 100px;
    pointer-events: none;
    z-index: 1;
}

.zen-smoke {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(180, 160, 130, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: zenSmoke 6s ease-out infinite;
}

@keyframes zenSmoke {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateX(calc(-50% + 15px)) translateY(-80px) scale(3);
        opacity: 0.15;
    }
    100% {
        transform: translateX(calc(-50% - 10px)) translateY(-160px) scale(5);
        opacity: 0;
    }
}

/* ===== FILIGRANES GINKGO ===== */
.ginkgo-filigrane-wrapper {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.ginkgo-filigrane {
    width: 100%;
    height: 100%;
}

.ginkgo-pos-1 {
    top: 5%;
    right: -5%;
    width: 400px;
    height: 480px;
    transform: rotate(15deg);
}

.ginkgo-pos-2 {
    top: 35%;
    left: -8%;
    width: 350px;
    height: 420px;
    transform: scaleX(-1) rotate(10deg);
}

.ginkgo-pos-3 {
    top: 60%;
    right: -3%;
    width: 300px;
    height: 360px;
    transform: rotate(25deg);
}

.ginkgo-pos-4 {
    top: 80%;
    left: 5%;
    width: 280px;
    height: 336px;
    transform: rotate(-10deg);
    opacity: 0.04;
}

/* Mobile: feuilles beaucoup plus petites et on en garde que 2 */
@media (max-width: 768px) {
    .ginkgo-filigrane-wrapper {
        opacity: 0.04;
    }
    .ginkgo-pos-1 {
        width: 120px;
        height: 144px;
        top: 3%;
        right: -3%;
    }
    .ginkgo-pos-2 {
        width: 100px;
        height: 120px;
        top: 40%;
        left: -3%;
    }
    .ginkgo-pos-3,
    .ginkgo-pos-4 {
        display: none;
    }
}

/* ===== SIGLES CHINOIS EN FILIGRANE DANS LES SECTIONS ===== */
.zen-section-symbol {
    position: absolute;
    font-family: 'Noto Serif', serif;
    pointer-events: none;
    user-select: none;
    color: rgba(160, 145, 120, 0.06);
    z-index: 0;
    line-height: 1;
}

/* S'assurer que les sections ont position relative */
section {
    position: relative;
}

/* Responsive - moins d'éléments sur mobile */
@media (max-width: 768px) {
    .zen-falling-container .zen-falling:nth-child(n+6) {
        display: none;
    }
    .zen-enso-floating:nth-child(n+3) {
        display: none;
    }
    .zen-incense {
        display: none;
    }
}
