html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow-x: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: #F7F5F0;
    color: #121212;
    cursor: none;
    margin: 0;
    overflow-x: hidden;
}

/* --- TEXTURE --- */
.noise {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.04;
    background: url("https://www.transparenttextures.com/patterns/stardust.png");
}

/* --- MARQUEE SLIDER --- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: #E6E2D8;
    color: #121212;
    padding: 1rem 0;
    border-top: 1px solid rgba(18, 18, 18, 0.1);
    border-bottom: 1px solid rgba(18, 18, 18, 0.1);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- NAVIGATION --- */

.hero-macaron {
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease;
}

.hero-macaron:hover {
    transform: rotate(360deg) scale(1.1);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: #F7F5F0;
    z-index: 49;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu.open {
    transform: translateY(0);
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 51;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #121212;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
}

/* --- CURSOR --- */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #121212;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

#cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #121212;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease-out, opacity 0.3s;
    opacity: 0.3;
}

body.hovering #cursor-dot {
    background: #BFA078;
    width: 8px;
    height: 8px;
}

body.hovering #cursor-circle {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: #BFA078;
    opacity: 1;
}

/* --- IMAGES & ANIMATIONS --- */
.img-mask {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-mask.visible {
    clip-path: inset(0 0 0 0);
}

.parallax-img {
    transform: scale(1.3);
    transition: transform 1.5s ease;
}

.img-mask.visible .parallax-img {
    transform: scale(1);
}

.service-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease, transform 1s ease;
    transform: scale(1.1);
}

.service-img-container.active {
    opacity: 1;
    transform: scale(1);
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- PRELOADER --- */
.loader {
    position: fixed;
    inset: 0;
    background: #E6E2D8;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- OVAL BUTTON STYLE --- */
.oval-button {
    width: 220px;
    height: 70px;
    border: 1px solid rgba(18, 18, 18, 0.3);
    border-radius: 100%;
    /* Forme ovale parfaite */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.4s ease;
    cursor: pointer;
}

.oval-button:hover {
    background-color: #121212;
    border-color: #121212;
    transform: scale(1.05);
}

/* --- OVAL CHECKBOX STYLE --- */
.oval-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 45px;
    height: 22px;
    border: 1px solid rgba(18, 18, 18, 0.5);
    border-radius: 50px;
    /* Forme ovale */
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.3s;
    position: relative;
}

.oval-checkbox:checked {
    background-color: #121212;
    border-color: #121212;
}

/* --- OPTIMIZED GALLERY TRACK --- */
#gallery-track {
    will-change: transform;
    /* Hardware acceleration for smooth movement */
    transform: translateZ(0);
    /* Force GPU */
    backface-visibility: hidden;
}

/* --- GALLERY TRACK MOBILE SCROLLBAR HIDE --- */
.gallery-track {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.gallery-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}