:root {
    --font-brand: "Rubik", "Segoe UI", system-ui, sans-serif;
    --brand-color: #f9daaf;
    --brand-stroke: #0a0705;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --brand-outline:
        0.045em 0 0 var(--brand-stroke),
        -0.045em 0 0 var(--brand-stroke),
        0 0.045em 0 var(--brand-stroke),
        0 -0.045em 0 var(--brand-stroke),
        0.032em 0.032em 0 var(--brand-stroke),
        -0.032em -0.032em 0 var(--brand-stroke),
        0.032em -0.032em 0 var(--brand-stroke),
        -0.032em 0.032em 0 var(--brand-stroke),
        0.085em 0 0 var(--brand-stroke),
        -0.085em 0 0 var(--brand-stroke),
        0 0.085em 0 var(--brand-stroke),
        0 -0.085em 0 var(--brand-stroke),
        0.06em 0.06em 0 var(--brand-stroke),
        -0.06em -0.06em 0 var(--brand-stroke),
        0.06em -0.06em 0 var(--brand-stroke),
        -0.06em 0.06em 0 var(--brand-stroke);
    /* Version 16 directions (au lieu de 8) : contour plus lisse pour les très gros titres (.scrub__title) */
    --brand-outline-lg:
        0.045em 0em 0 var(--brand-stroke),
        0.0416em 0.0172em 0 var(--brand-stroke),
        0.0318em 0.0318em 0 var(--brand-stroke),
        0.0172em 0.0416em 0 var(--brand-stroke),
        0em 0.045em 0 var(--brand-stroke),
        -0.0172em 0.0416em 0 var(--brand-stroke),
        -0.0318em 0.0318em 0 var(--brand-stroke),
        -0.0416em 0.0172em 0 var(--brand-stroke),
        -0.045em 0em 0 var(--brand-stroke),
        -0.0416em -0.0172em 0 var(--brand-stroke),
        -0.0318em -0.0318em 0 var(--brand-stroke),
        -0.0172em -0.0416em 0 var(--brand-stroke),
        0em -0.045em 0 var(--brand-stroke),
        0.0172em -0.0416em 0 var(--brand-stroke),
        0.0318em -0.0318em 0 var(--brand-stroke),
        0.0416em -0.0172em 0 var(--brand-stroke),
        0.085em 0em 0 var(--brand-stroke),
        0.0785em 0.0325em 0 var(--brand-stroke),
        0.0601em 0.0601em 0 var(--brand-stroke),
        0.0325em 0.0785em 0 var(--brand-stroke),
        0em 0.085em 0 var(--brand-stroke),
        -0.0325em 0.0785em 0 var(--brand-stroke),
        -0.0601em 0.0601em 0 var(--brand-stroke),
        -0.0785em 0.0325em 0 var(--brand-stroke),
        -0.085em 0em 0 var(--brand-stroke),
        -0.0785em -0.0325em 0 var(--brand-stroke),
        -0.0601em -0.0601em 0 var(--brand-stroke),
        -0.0325em -0.0785em 0 var(--brand-stroke),
        0em -0.085em 0 var(--brand-stroke),
        0.0325em -0.0785em 0 var(--brand-stroke),
        0.0601em -0.0601em 0 var(--brand-stroke),
        0.0785em -0.0325em 0 var(--brand-stroke);
}

.brand-text,
.site-header__logo span,
.page-header h1,
.carte-categorie h2 {
    text-transform: uppercase;
    color: var(--brand-color);
    text-shadow: var(--brand-outline);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    color: #241a14;
    background: #fdf6ee;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee0cf;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header__bar {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-size: 1.3rem;
}

.site-header__logo span {
    font-family: var(--font-brand);
    font-weight: 900;
    letter-spacing: 0.01em;
}

.site-header__logo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    font-weight: 500;
}

.main-nav a:hover {
    color: #c0392b;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 780px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid #eee0cf;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s var(--ease);
    }

    .main-nav.is-open {
        max-height: 400px;
    }

    .main-nav a {
        color: #241a14;
        padding: 0.9rem 1.5rem;
        border-top: 1px solid #eee0cf;
    }
}

.page-fresco {
    width: 100%;
    line-height: 0;
}

.page-fresco img {
    display: block;
    width: 100%;
    height: auto;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    min-height: 60vh;
}

.flash {
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.flash--success {
    background: #e3f4e6;
    color: #1e6b34;
}

.flash--error {
    background: #fbe5e2;
    color: #9c2c1f;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-family: var(--font-brand);
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
}

.page-header__body {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.page-header__content {
    flex: 1 1 320px;
    max-width: 70ch;
}

.page-header__image {
    flex: 0 0 320px;
}

.page-header__image img {
    display: block;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.site-footer {
    background: #241a14;
    color: #f2e9dd;
}

.site-footer__bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 1.2rem;
}

.footer-nav a {
    text-decoration: none;
    color: #f2e9dd;
    opacity: 0.85;
}

.footer-nav a:hover {
    opacity: 1;
}

/* Carte / menu */
.carte-categorie {
    margin-bottom: 2.5rem;
}

.carte-categorie h2 {
    font-family: var(--font-brand);
    font-weight: 900;
    letter-spacing: 0.01em;
    border-bottom: 2px solid #c0392b;
    padding-bottom: 0.4rem;
    display: inline-block;
}

.carte-plat {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px dashed #e5d6c0;
}

.carte-plat__infos h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.carte-plat__infos p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b5b4d;
}

.carte-plat__allergenes {
    font-style: italic;
    font-size: 0.8rem;
    color: #9c7a5c;
}

.carte-plat__prix {
    font-weight: 700;
    white-space: nowrap;
}

/* Formulaires */
.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid #d9c7ae;
    border-radius: 6px;
    font: inherit;
}

.form-grid .form-errors {
    color: #9c2c1f;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.btn {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: #a2301f;
}

/* Réservation */
.reservation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 800px) {
    .reservation-layout {
        grid-template-columns: 1fr;
    }
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.contact-layout__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-layout__logo img {
    width: 100%;
    max-width: 340px;
}

.contact-infos {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    text-align: center;
    font-size: 1.05rem;
}

.contact-infos li {
    margin-bottom: 0.5rem;
}

.contact-infos__horaires {
    margin-top: 1rem;
    color: #6b5b4d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-infos a {
    text-decoration: none;
}

.contact-infos a:hover {
    color: #c0392b;
}

@media (max-width: 800px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout__logo {
        order: -1;
        max-width: 220px;
        margin: 0 auto 1rem;
    }
}

.creneaux-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.creneau-btn {
    padding: 0.45rem 0.8rem;
    border: 1px solid #d9c7ae;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font: inherit;
}

.creneau-btn.is-selected {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

/* Galerie (masonry) */
.galerie-grid {
    position: relative;
}

.galerie-item,
.grid-sizer {
    width: 32.5%;
}

.galerie-item {
    /* <figure> a une marge navigateur par défaut (1em 40px) qui fausserait
       le calcul de largeur des colonnes par Masonry. */
    margin: 0 0 1.2rem;
}

.gutter-sizer {
    width: 1.2%;
}

.galerie-item a {
    display: block;
    cursor: zoom-in;
}

.galerie-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.galerie-item__video {
    position: relative;
    padding-top: 56.25%;
    border-radius: 8px;
    overflow: hidden;
}

.galerie-item__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.galerie-item figcaption {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: #6b5b4d;
}

@media (max-width: 900px) {
    .galerie-item,
    .grid-sizer {
        width: 48%;
    }
}

@media (max-width: 560px) {
    .galerie-item,
    .grid-sizer {
        width: 100%;
    }
}

/* Apparitions au scroll (titres, textes, blocs) : glissement vertical
   discret + fondu, appliqué via .reveal + data-reveal (voir site.js). */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal--delay-1 {
    transition-delay: 0.1s;
}

.reveal--delay-2 {
    transition-delay: 0.2s;
}

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