/* ===== Accueil cinématique — variables adaptées à la charte Bubble Manga ===== */
:root {
    --bg: #140f0c;
    --bg-2: #1b1512;
    --bg-3: #221a15;
    --ink: #0a0706;

    --fg: #f5efe6;
    --fg-soft: #d9cfc2;
    --muted: #9c8f80;

    --accent: #c0392b;
    --line: rgba(245, 239, 230, 0.14);

    --maxw: 1240px;
    --pad: clamp(22px, 5vw, 80px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --serif: "Rubik", "Segoe UI", system-ui, sans-serif;
    --sans-cinema: "Work Sans", system-ui, sans-serif;
}

body.home-page {
    overflow-x: clip;
    background: var(--bg);
}

body.home-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

body.home-page .site-header .site-header__logo,
body.home-page .site-header .main-nav a,
body.home-page .site-header .nav-toggle {
    color: var(--fg);
}

@media (max-width: 780px) {
    body.home-page .site-header .main-nav a {
        color: #241a14;
    }
}

body.home-page .site-header.is-scrolled {
    background: rgba(10, 7, 6, 0.86);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--line);
}

body.home-page main {
    max-width: none;
    margin: 0;
    padding: 0;
}

.eyebrow {
    font-family: var(--sans-cinema);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px;
}

.eyebrow--light {
    color: #f0d9c8;
}

/* ---- Hero scrub ---- */
.scrub {
    position: relative;
    height: 560vh;
    background: var(--bg);
}

.scrub__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.scrub__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: var(--bg);
}

.scrub__scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(10, 7, 6, 0.82) 0%, rgba(10, 7, 6, 0.12) 42%, rgba(10, 7, 6, 0) 65%),
        linear-gradient(to bottom, rgba(10, 7, 6, 0.55) 0%, rgba(10, 7, 6, 0) 30%);
}

.scrub__beat {
    position: absolute;
    left: var(--pad);
    bottom: clamp(64px, 13vh, 140px);
    z-index: 10;
    max-width: 720px;
    opacity: 0;
    will-change: opacity, transform;
    color: var(--fg);
}

.scrub__beat--slider {
    left: 0;
    right: 0;
    bottom: auto;
    top: clamp(60px, 9vh, 110px);
    margin: 0 auto;
    width: fit-content;
    max-width: none;
    display: flex;
    justify-content: center;
}

.scrub__eyebrow {
    margin: 0 0 12px;
}

.scrub__title,
.scrub__title em,
.scrub__beat-title,
.scrub__beat-title em {
    text-transform: uppercase;
    color: var(--brand-color);
    text-shadow: var(--brand-outline);
}

.scrub__title,
.scrub__title em {
    text-shadow: var(--brand-outline-lg);
}

.scrub__title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(30px, 4vw, 75px);
    line-height: 1.05;
    margin: 0 0 16px;
}

.scrub__title em,
.scrub__beat-title em {
    font-style: normal;
}

.scrub__beat-title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(30px, 4.5vw, 60px);
    line-height: 1.1;
    margin: 0 0 14px;
}

.scrub__tagline,
.scrub__beat-copy {
    font-family: var(--sans-cinema);
    font-size: clamp(16px, 1.6vw, 20px);
    color: var(--fg-soft);
    max-width: 46ch;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.8);
}

.scrub__cue {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--sans-cinema);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-soft);
    transition: opacity 0.4s var(--ease);
}

.scrub__cue-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--fg-soft), transparent);
}

.loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--bg);
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.loader.is-done {
    opacity: 0;
    visibility: hidden;
}

.loader__brand {
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: 0.08em;
    color: var(--fg);
}

.loader__track {
    width: min(240px, 60vw);
    height: 2px;
    background: rgba(245, 239, 230, 0.16);
    border-radius: 2px;
    overflow: hidden;
}

.loader__bar {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.2s linear;
}

.loader__pct {
    font-family: var(--sans-cinema);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--muted);
}

@media (max-width: 820px) {
    .scrub {
        height: 100vh;
    }
}

/* ---- Slider et CTA "hors cinématique" : sur mobile, la cinématique se fige
   sur le seul titre (beat 0) ; le slider et le bouton de réservation, qui
   vivent dans les beats suivants, restent donc invisibles. On en réaffiche
   une copie en flux normal juste après le hero, visible uniquement <820px. ---- */
.hero-mobile-extra,
.hero-mobile-cta {
    display: none;
}

@media (max-width: 820px) {
    .hero-mobile-extra {
        display: block;
        padding: 32px var(--pad) 0;
        background: var(--bg);
    }

    .hero-mobile-cta {
        display: block;
        padding: 32px var(--pad) 48px;
        background: var(--bg);
        text-align: center;
    }

    .hero-mobile-cta__title {
        font-family: var(--serif);
        font-weight: 900;
        text-transform: uppercase;
        color: var(--brand-color);
        text-shadow: var(--brand-outline);
        font-size: clamp(26px, 7vw, 36px);
        line-height: 1.1;
        margin: 8px 0 20px;
    }
}

/* ---- Slider flottant, imbriqué dans le 2e scrub__beat (au-dessus des montagnes) ---- */
.scrub__beat-slider {
    display: flex;
    justify-content: center;
}

.slider__viewport {
    position: relative;
    width: min(72vw, 1160px);
    aspect-ratio: 1584 / 672;
    max-height: 56vh;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.1s var(--ease);
    pointer-events: none;
}

.slider__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.slider__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Les visuels laissent volontairement ~40% d'espace vide à droite pour le
   texte : titre + description y sont ancrés, centrés verticalement dans
   cette zone, en grand pour rester impactants. */
.slider__slide-text {
    position: absolute;
    top: 50%;
    left: 62%;
    right: 6%;
    transform: translateY(-50%);
    text-align: left;
}

.slider__slide-title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(26px, 3.4vw, 46px);
    line-height: 1.1;
    margin: 0 0 14px;
    text-wrap: balance;
    text-transform: uppercase;
    color: var(--brand-color);
    text-shadow: var(--brand-outline);
}

.slider__slide-desc {
    font-family: var(--sans-cinema);
    font-size: clamp(17px, 1.9vw, 23px);
    line-height: 1.4;
    color: #3a2b1f;
}

.slider__slide-desc p {
    margin: 0 0 0.5em;
}

.slider__slide-desc p:last-child {
    margin-bottom: 0;
}

.slider__dots {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
}

.slider__dot.is-active {
    background: var(--accent);
}

@media (max-width: 820px) {
    /* Le visuel garde son fondu à droite pensé pour un texte en overlay ;
       sur mobile il n'y a pas la place pour ça, donc l'image passe en pleine
       largeur et le texte (titre + description) descend en dessous. */
    .slider__viewport {
        width: 100%;
        max-width: none;
        aspect-ratio: auto;
        height: auto;
        border-radius: 14px;
        box-shadow: none;
    }

    .slider__slide {
        position: relative;
        inset: auto;
        display: none;
    }

    .slider__slide.is-active {
        display: block;
    }

    .slider__slide img {
        position: static;
        width: 100%;
        height: auto;
        border-radius: 14px;
    }

    .slider__slide-text {
        position: static;
        transform: none;
        margin-top: 18px;
        text-align: left;
    }

    .slider__slide-title {
        font-size: clamp(22px, 6vw, 30px);
    }

    .slider__slide-desc {
        /* La couleur brune de base est pensée pour l'espace clair du visuel
           desktop ; sur mobile le texte descend sous l'image, sur le fond
           quasi-noir de la page (--bg) où elle devient illisible. */
        color: var(--muted);
    }

    .slider__dots {
        position: static;
        transform: none;
        margin-top: 18px;
    }
}

/* ---- Bloc "4 plats" ---- */
.dishes {
    background: var(--bg-2);
    padding: clamp(90px, 13vh, 160px) var(--pad);
}

.dishes__head {
    max-width: var(--maxw);
    margin: 0 auto 48px;
}

.dishes__title,
.dishes__title em {
    text-transform: uppercase;
    color: var(--brand-color);
    text-shadow: var(--brand-outline);
}

.dishes__title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(32px, 4.5vw, 56px);
    margin: 0;
}

.dishes__title em {
    font-style: normal;
}

.dishes__grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 36px);
}

@media (max-width: 900px) {
    .dishes__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .dishes__grid {
        grid-template-columns: 1fr;
    }
    .slider__slide img {
        height: 70vw;
        object-fit: cover;
        object-position: left center;
    }
}

.dish-card__frame {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-3);
    background-image: repeating-linear-gradient(45deg, rgba(245, 239, 230, 0.03) 0 14px, transparent 14px 28px);
    margin-bottom: 18px;
}

.dish-card__frame::after {
    content: "Photo à venir";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans-cinema);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.6;
}

.dish-card__frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.dish-card:hover .dish-card__frame img {
    transform: scale(1.05);
}

.dish-card__title {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--fg);
    margin: 0 0 6px;
}

.dish-card__text {
    font-family: var(--sans-cinema);
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* ---- Bloc parallaxe ---- */
.bleed {
    background: var(--bg);
}

.bleed__media {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.bleed__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    will-change: transform;
}

.bleed__content {
    max-width: calc(var(--maxw) + var(--pad) * 2);
    margin: 0 auto;
    padding: clamp(50px, 8vh, 90px) var(--pad) 0;
    color: var(--fg);
}

.bleed__title,
.bleed__title em {
    text-transform: uppercase;
    color: var(--brand-color);
    text-shadow: var(--brand-outline);
}

.bleed__title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(32px, 5vw, 60px);
    margin: 0 0 16px;
    line-height: 1.2em;
}

.bleed__title em {
    font-style: normal;
    color: #edc38a;
}

.bleed__copy {
    font-family: var(--sans-cinema);
    color: var(--fg-soft);
    font-size: 18px;
}

/* ---- Bloc galerie extrait ---- */
.gallery-teaser {
    background: var(--bg);
    padding: clamp(90px, 13vh, 160px) var(--pad);
}

.gallery-teaser__head {
    max-width: var(--maxw);
    margin: 0 auto 40px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.gallery-teaser__title,
.gallery-teaser__title em {
    text-transform: uppercase;
    color: var(--brand-color);
    text-shadow: var(--brand-outline);
}

.gallery-teaser__title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(32px, 4.5vw, 56px);
    margin: 0;
}

.gallery-teaser__title em {
    font-style: normal;
}

.gallery-teaser__link {
    font-family: var(--sans-cinema);
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gallery-teaser__grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .gallery-teaser__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-teaser__grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

/* ---- reveal on scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-shown {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .bleed__img {
        transform: none !important;
    }
}
