:root {
    --bg-color: #F7F5F0; /* Warm cream */
    --text-color: #1C1C1C; /* Soft charcoal */
    --accent-color: #B85C38; /* Vibrant terracotta */
    --secondary-color: #3D3D3D; /* Deep gray for footer/secondary text */
    --font-main: 'Cormorant Garamond', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --easing: cubic-bezier(0.19, 1, 0.22, 1);
    --section-spacing: 12vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; 
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-secondary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- CUSTOM CURSOR --- */
.cursor, .cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, opacity 0.3s;
    mix-blend-mode: exclusion; /* Ensures visibility on mixed backgrounds */
}

.cursor {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    transition: transform 0.15s var(--easing), width 0.3s, height 0.3s, background 0.3s;
}


/* --- PRELOADER --- */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--text-color);
    color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: slideUp 1.5s var(--easing) 2s forwards;
}

.preloader-text {
    font-family: var(--font-main);
    font-size: 3rem;
    letter-spacing: 5px;
    animation: fadeOut 1s ease 1.5s forwards;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-main);
    font-weight: 400;
}

.section-title {
    font-size: clamp(3rem, 5vw, 6rem); /* Responsive typography */
    line-height: 0.95;
    margin-bottom: 3rem;
}

.section-title.center { text-align: center; }

.section-title em {
    font-family: var(--font-main);
    font-weight: 600;
    font-style: italic;
    color: var(--accent-color);
}

p {
    line-height: 1.7;
    font-size: 1.05rem;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    color: var(--bg-color); 
    transition: all 0.3s ease;
}

/* Scroll style change handled by JS */
.navbar.scrolled {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 1rem 4rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-main);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
    z-index: 220;
}

.menu-items {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.menu-items a, .menu-toggle {
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
}

.menu-items a {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 0.65rem;
    border-radius: 999px;
    font-size: 1rem;
}

.menu-items a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--easing);
}

.menu-items a:hover::after,
.menu-items a:focus-visible::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 48px;
    height: 48px;
    cursor: pointer;
    position: relative;
    z-index: 220;
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle::before { top: 16px; }
.menu-toggle span { top: 24px; }
.menu-toggle::after { top: 32px; }

.menu-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.navbar.menu-open {
    background: rgba(247, 245, 240, 0.95);
    color: var(--text-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.navbar.menu-open .menu-toggle::before {
    transform: translateY(8px) rotate(45deg);
}

.navbar.menu-open .menu-toggle::after {
    transform: translateY(-8px) rotate(-45deg);
}

.navbar.menu-open .menu-toggle span {
    opacity: 0;
}



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

.hero-bg-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    /* Warm interior hero image */
    background: url('../../assets/cafelola.png') center/cover no-repeat;
    transform: scale(1.1);
    animation: zoomIn 25s infinite alternate ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(20, 10, 5, 0.4); /* Dark overlay for readability */
    background-blend-mode: multiply;
}

.hero-content {
    z-index: 2;
    color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-reveal span {
    display: block;
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.9;
    overflow: hidden;
    animation: textReveal 1.5s var(--easing) 2.2s backwards;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.title-reveal span:nth-child(2) {
    font-family: var(--font-main);
    font-weight: 600;
    font-style: italic;
    color: var(--accent-color);
    margin-left: 2rem;
    animation-delay: 2.4s;
}

.subtitle {
    margin-top: 2rem;
    font-size: 1.3rem;
    letter-spacing: 1px;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 1s ease 3s forwards;
}

/* SCROLL INDICATOR */
.scroll-indicator {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--bg-color);
    opacity: 0;
    animation: fadeIn 1s ease 3.5s forwards;
}

.scroll-indicator span {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

/* --- CONCEPT (BROKEN GRID) --- */
.concept-section {
    padding: var(--section-spacing) 10vw;
    position: relative;
}

.concept-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.text-block {
    flex: 1;
    z-index: 2;
}

.image-block {
    flex: 1.2;
    position: relative;
}

.img-wrapper {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    border-radius: 4px;
    /* Offset drop shadow */
    box-shadow: -20px 20px 0px rgba(184, 92, 56, 0.1); 
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2); /* Start zoomed for the reveal */
    transition: transform 1.5s var(--easing);
}

/* --- MENU SECTION --- */
.menu-section {
    padding-bottom: var(--section-spacing);
    background: var(--bg-color);
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
    border-top: 1px solid rgba(28, 28, 28, 0.1);
    border-bottom: 1px solid rgba(28, 28, 28, 0.1);
    padding: 1.5rem 0;
    margin-bottom: 5rem;
    background: #fff;
}

.track {
    display: inline-block;
    animation: marquee 30s linear infinite;
    font-family: var(--font-main);
    font-style: italic;
    font-size: 2.5rem;
    color: rgba(28, 28, 28, 0.2);
}

.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.menu-container {
    width: 100%;
    padding: 0 3rem;
}

.menu-list { width: 100%; margin-bottom: 4rem;}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(28, 28, 28, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.menu-item:hover {
    padding-left: 2rem;
    padding-right: 2rem;
    background: #fff;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.item-name {
    font-family: var(--font-main);
    font-size: 2.2rem;
    display: block;
}

.item-desc {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.8rem;
    font-weight: 300;
}

.item-price {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* Image hover pop-up */
.item-image-hover {
    --hover-base-shift: 160px;
    --hover-shift: 0px;
    position: fixed;
    top: 50%; 
    left: 50%;
    width: 280px; height: 360px;
    background-size: cover;
    background-position: center;
    transform: translate(-50%, -50%) translateX(calc(var(--hover-base-shift) + var(--hover-shift, 0px))) scale(0.85) rotate(-5deg);
    pointer-events: none;
    opacity: 0;
    z-index: 50;
    transition: opacity 0.35s var(--easing), transform 0.25s var(--easing);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    will-change: transform, opacity;
}

.menu-item:hover .item-image-hover {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(calc(var(--hover-base-shift) + var(--hover-shift, 0px))) scale(1) rotate(0deg);
}

/* OUTLINE BUTTON */
.outline-btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--text-color);
    text-decoration: none;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.outline-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background: var(--text-color);
    transition: width 0.3s var(--easing);
    z-index: -1;
}

.outline-btn:hover {
    color: var(--bg-color);
    border-color: transparent;
}

.outline-btn:hover::before {
    width: 100%;
}

/* --- BOOKING SECTION --- */
.booking-section {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #1a1a1a; /* Fallback */
    overflow: hidden;
    padding: 6rem 2rem;
}

/* Background texture */
.booking-bg-texture {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?q=80&w=1974&auto=format&fit=crop') center/cover no-repeat;
    opacity: 0.6;
    filter: grayscale(100%) contrast(120%);
    transform: scale(1.1);
    pointer-events: none;
}

.booking-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(26,26,26,0.8), rgba(184, 92, 56, 0.3));
    z-index: 1;
    pointer-events: none;
}

.booking-content {
    z-index: 10;
    text-align: center;
    color: var(--bg-color);
}

.booking-subtitle {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    font-family: var(--font-main);
    font-style: italic;
    opacity: 0.9;
}

.big-text {
    font-size: clamp(5rem, 15vw, 12rem);
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.booking-details {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    text-align: left;
}

.booking-detail {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(28, 20, 15, 0.92), rgba(12, 8, 6, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    isolation: isolate;
}

.booking-detail::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 55%);
    opacity: 0.6;
    pointer-events: none;
}

.booking-detail > * {
    position: relative;
    z-index: 1;
}

.detail-label {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.9rem;
    color: rgba(247, 245, 240, 0.8);
}

.detail-value {
    margin-top: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--bg-color);
}

.booking-hours {
    list-style: none;
    margin: 1.2rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.booking-hours li {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    color: var(--bg-color);
}

.booking-hours li span:first-child {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.booking-hours li span:last-child {
    opacity: 0.85;
}

/* Magnetic button base style */
.magnetic-btn {
    display: inline-block;
    padding: 3rem 3rem; /* Rond */
    border: 1px solid rgba(247, 245, 240, 0.3);
    border-radius: 50%;
    text-decoration: none;
    color: var(--bg-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    transition: transform 0.2s linear, border-color 0.3s;
    background: rgba(255,255,255,0.08);
    mix-blend-mode: normal;
    isolation: isolate;
}

.magnetic-btn,
.magnetic-btn * {
    cursor: auto;
}

.magnetic-btn:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--bg-color);
}


/* --- FOOTER --- */
.main-footer {
    background: var(--secondary-color);
    color: #e0e0e0;
    padding: 5rem 4rem;
    font-family: var(--font-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.footer-logo {
    font-family: var(--font-main);
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.footer-address {
    line-height: 1.8;
    font-size: 1.1rem;
}

.footer-address a {
    color: var(--accent-color);
    text-decoration: none;
    display: block;
    margin-top: 1rem;
}

.footer-col h4 {
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 2rem;
}

.footer-col.brand-col { justify-self: start; }
.footer-col.hours-col { justify-self: center; text-align: center; }
.footer-col.social-col { justify-self: end; margin-right: 50px; }

.hours-col ul {
    list-style: none;
}

.hours-col li {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    column-gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.hours-col li span {
    font-weight: 600;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
    white-space: nowrap;
    text-align: center;
    margin-top: 3rem;
}


/* --- KEYFRAMES --- */
@keyframes slideUp { to { transform: translateY(-100%); } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(1); } to { transform: scale(1.15); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes textReveal { from { transform: translateY(120%) skewY(5deg); } to { transform: translateY(0) skewY(0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
    .navbar { padding: 1.5rem 2rem; }
    .concept-container { gap: 3rem; }
    .img-wrapper { height: 50vh; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col.social-col { margin-left: 0; }
}

@media (max-width: 768px) {
    .cursor, .cursor-follower { display: none; }
    * { cursor: auto; }

    .navbar { padding: 1rem 1.5rem; }
    .navbar.scrolled { padding: 1rem 1.5rem; }
    .navbar .menu-toggle { display: block; }
    .navbar .menu-items {
        position: fixed;
        inset: 0;
        flex: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 4rem 1.5rem;
        background: rgba(247, 245, 240, 0.97);
        color: var(--text-color);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s var(--easing), opacity 0.35s var(--easing);
        z-index: 90;
    }
    .navbar.menu-open .menu-items {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-items a {
        font-size: 1.2rem;
        width: 100%;
        justify-content: center;
        padding: 1rem 0;
    }
    
    .hero-content .title-reveal span:nth-child(2) { margin-left: 0; }
    
    .concept-container { flex-direction: column; }
    .concept-section .image-block { order: -1; width: 100%; margin-bottom: 2rem; }
    .concept-section .text-block { padding-right: 0; margin-bottom: 3rem; width: 100%; }
    .img-wrapper { height: 400px; box-shadow: none; }
    
    .menu-container { padding: 0 1.5rem; }
    .menu-section { padding-bottom: 3rem; }
    .menu-item { flex-direction: column; padding: 1.5rem 0; }
    .item-price { margin-top: 1rem; }
    .item-image-hover { display: none; } /* Disabled on mobile */
    .menu-item { pointer-events: none; cursor: default; }

    .booking-section { min-height: auto; padding: 4rem 1.5rem; }
    .booking-details { grid-template-columns: 1fr; }
    .magnetic-btn {
        padding: 1.5rem 3rem;
        border-radius: 50px;
        transform: none !important;
        transition: none !important;
    } /* Bouton normal sur mobile */
    .magnetic-btn:hover,
    .magnetic-btn:active {
        transform: none !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        justify-items: start;
    }
    .footer-logo { font-size: 2.5rem; }
    .hours-col li { font-size: 0.9rem; }
    .footer-col.brand-col,
    .footer-col.hours-col,
    .footer-col.social-col {
        justify-self: start;
        text-align: left;
    }
    .copyright {
        text-align: left;
        white-space: normal;
    }
}
