/* ==============================================
   LA MAISON DE JEANNE — Warm Editorial Design
   ============================================== */

/* ── Variables ── */
:root {
    --bg:           #FAF6F0;
    --bg-alt:       #F2EBE0;
    --bg-accent:    #EDE4D5;
    --bg-dark:      #2C1E14;
    --cream:        #FAF6F0;
    --cream-muted:  rgba(250, 246, 240, 0.7);
    --gold:         #C49A6C;
    --gold-dark:    #9b7240;
    --terracotta:   #C75B39;
    --terracotta-light: #E8D5CC;
    --sage:         #7A8B6F;
    --text-dark:    #2C1E14;
    --text-body:    #5A4A3A;
    --text-muted:   #9B8B78;
    --border-light: rgba(44, 30, 20, 0.1);
    --border-dark:  rgba(255, 255, 255, 0.1);
    --beige: #ae8964;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;
    --font-accent:  'Cormorant Garamond', Georgia, serif;
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* ==============================================
   LABELS & TITLES
   ============================================== */
.label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--beige);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

/* ── Link Arrow ── */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--beige);
    margin-top: 2.5rem;
    transition: gap 0.3s;
}
.link-arrow::after {
    content: '\2192';
    transition: transform 0.3s;
}
.link-arrow:hover {
    gap: 1.25rem;
}
.link-arrow:hover::after {
    transform: translateX(4px);
}


/* ==============================================
   NAVIGATION
   ============================================== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 2.5rem;
    box-shadow: 0 1px 20px rgba(44, 30, 20, 0.08);
}

#navbar.scrolled .nav-logo,
#navbar.scrolled .toggle-text {
    color: var(--text-dark);
}

#navbar.scrolled .toggle-icon span {
    background: var(--text-dark);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--cream);
    letter-spacing: 0.05em;
    transition: color 0.4s;
}

.nav-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cream);
    z-index: 110;
}

.toggle-text {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.4s;
}

.toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 28px;
}

.toggle-icon span {
    display: block;
    height: 1.5px;
    background: var(--cream);
    transition: all 0.4s cubic-bezier(0.77, 0, 0.18, 1);
    transform-origin: center;
}

.nav-toggle.open .toggle-icon span:first-child {
    transform: rotate(45deg) translate(2.5px, 2.5px);
}
.nav-toggle.open .toggle-icon span:last-child {
    transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* When overlay is open, keep nav light */
.nav-toggle.open .toggle-text { color: var(--cream) !important; }
.nav-toggle.open .toggle-icon span { background: var(--cream) !important; }


/* ==============================================
   MENU OVERLAY (full-screen)
   ============================================== */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.menu-overlay-content {
    text-align: center;
}

.menu-overlay-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-overlay-links a {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--cream);
    display: inline-block;
    transition: opacity 0.3s, transform 0.3s;
    position: relative;
}

.menu-overlay-links a::before {
    content: attr(data-num);
    position: absolute;
    left: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: 0.60rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.menu-overlay-links:hover a {
    opacity: 0.25;
}
.menu-overlay-links li:hover a {
    opacity: 1;
    transform: translateX(10px);
}

.menu-overlay-info {
    margin-top: 4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.85;
}
.menu-overlay-info a { color: var(--gold); }
.menu-overlay-info a:hover { color: var(--cream); }


/* ==============================================
   HERO
   ============================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.1);
    will-change: transform;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(44, 30, 20, 0.2) 0%,
        rgba(44, 30, 20, 0.55) 30%,
        rgba(44, 30, 20, 0.6) 55%,
        rgba(44, 30, 20, 0.4) 75%,
        rgba(250, 246, 240, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.hero-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 2rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin: 0;
    text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}

.title-line {
    display: block;
    font-size: clamp(4rem, 12vw, 10rem);
}

.title-line-accent {
    font-style: italic;
    font-size: clamp(3rem, 9vw, 7.5rem);
    color: var(--beige);
    text-shadow: 0 2px 20px rgba(199, 91, 57, 0.4);
}

.hero-location {
    font-family: var(--font-accent);
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2rem;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-scroll span {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--beige), transparent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 1; }
}


/* ==============================================
   MARQUEE
   ============================================== */
.marquee {
    padding: 1.1rem 0;
    background: var(--beige);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    animation: marquee-scroll 35s linear infinite;
}

.marquee-track span {
    font-family: var(--font-accent);
    font-size: 0.88rem;
    font-style: italic;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}


/* ==============================================
   SECTION — LE RESTAURANT
   ============================================== */
.section-about {
    padding: 8rem 0;
    background: var(--bg);
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: 4px;
}

.about-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image:hover img {
    transform: scale(1.04);
}

.about-text p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-top: 1.5rem;
    line-height: 1.85;
}


/* ==============================================
   SECTION — GALERIE (horizontal scroll)
   ============================================== */
.section-gallery {
    padding: 4rem 0 6rem;
    background: var(--bg-alt);
}

.gallery-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.gallery-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 2rem;
    scrollbar-width: none;
    cursor: grab;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-scroll.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.gallery-item {
    flex: 0 0 auto;
    width: 380px;
    height: 500px;
    overflow: hidden;
    scroll-snap-align: start;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

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


/* ==============================================
   SECTION — LA CARTE
   ============================================== */
.section-menu {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.section-menu .section-header {
    margin-bottom: 4rem;
}

.section-menu .label {
    color: var(--gold);
}

.section-menu .section-title {
    color: var(--cream);
}

.menu-list {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-dark);
    transition: padding-left 0.4s ease;
}

.menu-item:last-child {
    border-bottom: 1px solid var(--border-dark);
}

.menu-item:hover {
    padding-left: 1rem;
}

.menu-num {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    padding-top: 0.3rem;
    flex-shrink: 0;
    width: 2rem;
    transition: color 0.3s;
}

.menu-item:hover .menu-num {
    color: var(--beige);
}

.menu-body {
    flex: 1;
}

.menu-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.menu-head h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--cream);
}

.menu-price {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gold);
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-body p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.65;
    max-width: 520px;
}

.menu-note {
    text-align: center;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 0.88rem;
    color: var(--beige);
    margin-top: 3rem;
}


/* ==============================================
   SECTION — AVIS
   ============================================== */
.section-reviews {
    padding: 8rem 0;
    text-align: center;
    background: var(--bg-alt);
}

.reviews-score {
    margin-bottom: 4rem;
}

.score-number {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 400;
    color: var(--beige);
    display: block;
    line-height: 1;
}

.score-label {
    font-family: var(--font-accent);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-muted);
}

.reviews-slider {
    position: relative;
    min-height: 160px;
}

.review-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(15px);
    border: none;
    margin: 0;
    padding: 0;
}

.review-slide.active {
    opacity: 1;
    transform: none;
    position: relative;
}

.review-slide p {
    font-family: var(--font-accent);
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-style: italic;
    line-height: 1.85;
    color: var(--text-dark);
    max-width: 700px;
}

.review-slide footer {
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.reviews-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s ease;
}

.reviews-dot.active {
    background: var(--beige);
    width: 28px;
    border-radius: 3px;
}

.section-reviews .link-arrow {
    display: inline-flex;
    margin-top: 3rem;
}


/* ==============================================
   SECTION — CONTACT
   ============================================== */
.section-contact {
    padding: 8rem 0;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item h4 {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--beige);
    margin-bottom: 0.4rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.7;
}

.contact-item a:hover { color: var(--beige); }

.contact-map {
    position: relative;
}

.contact-map::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: transparent;
    z-index: 2;
    cursor: pointer;
}

.contact-map.map-active::after {
    display: none;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 4px;
    filter: saturate(0.85) contrast(1.05);
}

.contact-map .link-arrow {
    margin-top: 1rem;
}


/* ==============================================
   FOOTER
   ============================================== */
.footer {
    padding: 3rem 0;
    background: var(--bg-dark);
    border-top: none;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-dark);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--cream);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--cream); }

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}
.footer-social a:hover { color: var(--gold); }

.footer-bottom {
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
}


/* ==============================================
   REVEAL ANIMATIONS
   ============================================== */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger siblings */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* ==============================================
   RESPONSIVE — Tablet
   ============================================== */
@media (max-width: 1024px) {
    .about-grid { gap: 4rem; }
    .contact-grid { gap: 3rem; }
}


/* ==============================================
   RESPONSIVE — Mobile
   ============================================== */
@media (max-width: 768px) {
    .section-about   { padding: 5rem 0; }
    .section-menu    { padding: 5rem 0; }
    .section-reviews { padding: 5rem 0; }
    .section-contact { padding: 5rem 0; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image img { height: 350px; }

    .gallery-item {
        width: 280px;
        height: 380px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links, .footer-social {
        justify-content: center;
    }

    .menu-overlay-links a::before {
        display: none;
    }

    .menu-item {
        gap: 1.2rem;
    }

    .menu-item:hover {
        padding-left: 0;
    }
}


@media (max-width: 480px) {
    .title-line {
        font-size: 3.5rem;
    }
    .title-line-accent {
        font-size: 2.8rem;
    }

    .gallery-item {
        width: 250px;
        height: 340px;
    }

    .menu-head {
        flex-direction: column;
        gap: 0.25rem;
    }
}
