/* ═══════════════════════════════════════════════════
   BEAUTYBYJU — main.css
═══════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #FDFBF8;
    color: #1C1410;
    overflow-x: hidden;
}

/* ── Grain texture ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ── Navbar ── */
#navbar {
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

#navbar.scrolled {
    background: rgba(253, 251, 248, 0.93);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(28, 20, 16, 0.07);
}

/* Sur mobile : fond dès le départ pour lisibilité */
@media (max-width: 767px) {
    #navbar {
        background: rgba(253, 251, 248, 0.95);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 1px 0 rgba(28, 20, 16, 0.06);
    }
}

.nav-link {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1C1410;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #8B3A4F;
}

/* ── Hero ── */
.hero-bg-word {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(90px, 20vw, 260px);
    font-weight: 300;
    line-height: 0.85;
    letter-spacing: -0.03em;
    color: rgba(28, 20, 16, 0.06);
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

/* ── Buttons ── */
.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1C1410;
    color: #FDFBF8;
    padding: 13px 30px;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background 0.3s, letter-spacing 0.3s;
    text-decoration: none;
    border: none;
}

.btn-dark:hover {
    background: #8B3A4F;
    letter-spacing: 0.25em;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1C1410;
    color: #1C1410;
    padding: 12px 28px;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-outline:hover {
    background: #1C1410;
    color: #FDFBF8;
}

.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(196, 169, 125, 0.45);
    color: #FDFBF8;
    padding: 12px 28px;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-ghost-light:hover {
    background: rgba(196, 169, 125, 0.15);
    border-color: #C4A97D;
}

.btn-reserve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 58, 79, 0.4);
    color: #8B3A4F;
    padding: 5px 13px;
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-reserve:hover {
    background: #8B3A4F;
    border-color: #8B3A4F;
    color: #fff;
}

/* ── Accordion ── */
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
}

.accordion-item.open .accordion-body {
    opacity: 1;
}

.acc-icon {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.accordion-item.open .acc-icon {
    transform: rotate(45deg);
}

/* ── Service row ── */
.service-row {
    border-bottom: 1px solid rgba(196, 169, 125, 0.15);
    padding: 15px 0;
}

.service-row:last-child {
    border-bottom: none;
}

/* ── Gallery grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 6px;
    width: 100%;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
}

.gallery-item {
    overflow: hidden;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Masquer le 9ème item sur mobile pour garder une grille 2x4 propre */
@media (max-width: 768px) {
    .gallery-item:nth-child(9) {
        display: none;
    }
}

/* ── Reviews ── */
.review-card {
    background: #FDFBF8;
    border: 1px solid rgba(196, 169, 125, 0.2);
}

/* ── Stars ── */
.stars {
    color: #C4A97D;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* ── Ornament separator ── */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.ornament::before,
.ornament::after {
    content: '';
    height: 1px;
    width: 55px;
    background: linear-gradient(90deg, transparent, rgba(196, 169, 125, 0.55));
}

.ornament::after {
    background: linear-gradient(270deg, transparent, rgba(196, 169, 125, 0.55));
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── Mobile menu ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 420px;
    opacity: 1;
}

/* ── Hero image tablet fix ── */
@media (max-width: 1023px) and (min-width: 640px) {
    #hero-image-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        max-width: 420px;
    }
}

/* ── Floating reserve btn ── */
#fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

#fab.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* ── Lightbox ── */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(28, 20, 16, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

#lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border: 1px solid rgba(196, 169, 125, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#lightbox.active img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(196, 169, 125, 0.3);
    color: rgba(253, 251, 248, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
    background: transparent;
}

#lightbox-close:hover {
    border-color: #C4A97D;
    color: #C4A97D;
}

#lightbox-nav {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.lb-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(196, 169, 125, 0.3);
    color: rgba(253, 251, 248, 0.6);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.lb-arrow:hover {
    border-color: #C4A97D;
    color: #C4A97D;
}

/* ── Map ── */
.map-wrap iframe {
    filter: contrast(0.92) saturate(0.75);
}

/* ── Contact info block ── */
.contact-info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
    max-width: 300px;
}

@media (min-width: 1024px) {
    .contact-info-block {
        align-items: flex-start;
    }

    .contact-info-row {
        max-width: 100%;
    }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #F5EFE8;
}

::-webkit-scrollbar-thumb {
    background: #C4A97D;
    border-radius: 2px;
}
