/* =====================================================================
   MAISON SAVOUREUSE — FEUILLE DE STYLE
   ---------------------------------------------------------------------
   CHANGE COLORS HERE : les couleurs principales se règlent dans
   config.php ($theme). Les valeurs ci-dessous servent de secours.
   ===================================================================== */

:root {
    --primary-color: #1A1612;
    --secondary-color: #F3ECE2;
    --accent-color: #C69C6D;
    --accent-ink: #8A6337;
    --olive-color: #37402F;
    --text-color: #2B251E;
    --background-color: #FBF8F3;
    --white: #FFFFFF;
    --muted: #6B6155;
    --line: rgba(43, 37, 30, .14);
    --line-light: rgba(243, 236, 226, .18);
    --whatsapp: #1FAF54;

    --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
    --font-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

    --step--1: .875rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
    --step-3: clamp(2rem, 1.5rem + 2vw, 3rem);
    --step-4: clamp(3.1rem, 1.6rem + 7vw, 7.5rem);

    --radius-sm: 4px;
    --radius: 10px;
    --radius-lg: 22px;
    --container: 1200px;
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--step-0);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-color);
    background: var(--background-color);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
blockquote, figure { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; border-radius: 2px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 200;
    background: var(--primary-color); color: var(--secondary-color);
    padding: .7rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- Titres de section ---------- */
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.section-title {
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: 500;
    letter-spacing: -.01em;
    margin-bottom: .6em;
}
.section-head { max-width: 38rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head .section-title { margin-bottom: .35em; }
.section-head p { color: var(--muted); margin: 0; }
.lead {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--step-2);
    line-height: 1.35;
    color: var(--text-color);
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 50px; padding: .8rem 1.6rem;
    border-radius: 999px; border: 1px solid transparent;
    font-weight: 500; font-size: 1rem; letter-spacing: .01em;
    text-decoration: none; cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: .6rem 1.2rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent-color); color: var(--primary-color); }
.btn-accent:hover { background: #D6B084; }
.btn-ghost { border-color: rgba(243, 236, 226, .55); color: var(--secondary-color); }
.btn-ghost:hover { background: var(--secondary-color); color: var(--primary-color); }
.btn-dark { background: var(--primary-color); color: var(--secondary-color); }
.btn-dark:hover { background: var(--accent-ink); }
.btn-outline { border-color: var(--line); color: var(--text-color); background: transparent; }
.btn-outline:hover { border-color: var(--primary-color); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #17954A; }
.link-accent { color: var(--accent-color); font-weight: 500; text-underline-offset: 4px; }
.link-accent:hover { color: var(--secondary-color); }

/* ---------- Navigation ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--header-h);
    color: var(--secondary-color);
    transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled {
    --header-h: 64px;
    height: 64px;
    background: rgba(251, 248, 243, .94);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    color: var(--text-color);
    box-shadow: 0 1px 0 var(--line);
}
.nav { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { text-decoration: none; margin-right: auto; display: flex; align-items: center; position: relative; z-index: 2; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.brand-logo { height: 44px; width: auto; }
.nav-links { display: flex; gap: 1.8rem; }
.nav-link { text-decoration: none; font-size: .98rem; position: relative; padding-block: .3rem; }
.nav-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); }
.nav-mobile-extra { display: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100svh; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: flex-end;
    color: var(--secondary-color); background: var(--primary-color);
    isolation: isolate; overflow: hidden;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 2.4s var(--ease) forwards; }
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(26, 22, 18, .88) 0%, rgba(26, 22, 18, .6) 45%, rgba(26, 22, 18, .15) 100%),
        linear-gradient(0deg, rgba(26, 22, 18, .85) 0%, rgba(26, 22, 18, 0) 45%);
}
.hero-inner { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 3rem; }
.hero-kicker { font-size: var(--step-1); color: var(--accent-color); margin-bottom: .6rem; }
.hero-title {
    font-family: var(--font-display);
    font-size: var(--step-4);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.035em;
    max-width: 11ch;
    margin-bottom: .35em;
}
.hero-headline { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); margin-bottom: .5rem; }
.hero-text { max-width: 34rem; font-size: 1.1rem; font-weight: 300; color: rgba(243, 236, 226, .85); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: .98rem; color: rgba(243, 236, 226, .85); }
.hero-trust i { color: var(--accent-color); margin-right: .35rem; }

.hero-inner > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero-inner > :nth-child(1) { animation-delay: .15s; }
.hero-inner > :nth-child(2) { animation-delay: .3s; }
.hero-inner > :nth-child(3) { animation-delay: .5s; }
.hero-inner > :nth-child(4) { animation-delay: .6s; }
.hero-inner > :nth-child(5) { animation-delay: .75s; }
.hero-inner > :nth-child(6) { animation-delay: .9s; }

.hero-bar { border-top: 1px solid var(--line-light); background: rgba(26, 22, 18, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2.2rem; padding-block: 1.05rem; font-size: .95rem; }
.hero-bar a { text-decoration: none; color: rgba(243, 236, 226, .85); }
.hero-bar a:hover { color: var(--secondary-color); }
.hero-bar i { color: var(--accent-color); margin-right: .4rem; }
.status { margin: 0; display: flex; align-items: center; gap: .55rem; font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #E0695B; }
.status.is-open .status-dot { background: #6CC58A; box-shadow: 0 0 0 0 rgba(108, 197, 138, .6); animation: pulse 2.4s infinite; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(108, 197, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(108, 197, 138, 0); } }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; }
.about-media { position: relative; padding-bottom: 12%; padding-right: 10%; }
.about-img-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 160px; }
.about-img-small {
    position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1;
    object-fit: cover; border-radius: 50%;
    border: 8px solid var(--background-color);
}
.about-text p { color: var(--muted); max-width: 34rem; }
.about-text .lead { color: var(--text-color); margin-bottom: 1.1em; }
.values { display: grid; gap: 1.2rem; margin: 2rem 0 2.4rem; padding-block: 1.8rem; border-block: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; }
.values i { color: var(--accent-ink); font-size: 1.15rem; margin-top: .25rem; }
.values h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: .15rem; }
.values p { margin: 0; font-size: .98rem; }
.chef { display: grid; grid-template-columns: 76px 1fr; gap: 1.2rem; align-items: center; }
.chef-img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.chef blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.45; margin-bottom: .4rem; }
.chef figcaption { display: flex; flex-wrap: wrap; gap: .1rem .6rem; font-size: .92rem; color: var(--muted); }
.chef figcaption strong { color: var(--text-color); font-weight: 600; }

/* ---------- Menu ---------- */
.menu { background: var(--secondary-color); }
.menu .section-head { margin-inline: auto; text-align: center; }
.menu-tabs {
    display: flex; justify-content: center; gap: .4rem;
    margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3.2rem);
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding: .3rem;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
    flex: 0 0 auto;
    background: transparent; border: 1px solid transparent; border-radius: 999px;
    padding: .55rem 1.15rem; min-height: 44px; cursor: pointer;
    font-size: 1rem; color: var(--muted);
    transition: color .2s, background-color .2s, border-color .2s;
}
.menu-tab:hover { color: var(--text-color); border-color: var(--line); }
.menu-tab.is-active { background: var(--primary-color); color: var(--secondary-color); }

.menu-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 4.5rem; max-width: 1040px; margin-inline: auto; }
.menu-panel.is-active { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.dish { display: grid; grid-template-columns: 84px 1fr; gap: 1.2rem; align-items: start; }
.dish-img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; transition: transform .5s var(--ease); }
.dish:hover .dish-img { transform: scale(1.06); }
.dish-line { display: flex; align-items: baseline; gap: .6rem; }
.dish-name { font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; line-height: 1.25; }
.dish-dots { flex: 1; min-width: 1.5rem; border-bottom: 1px dotted rgba(43, 37, 30, .35); transform: translateY(-.3em); }
.dish-price { margin: 0; font-weight: 600; white-space: nowrap; color: var(--accent-ink); }
.dish-desc { color: var(--muted); font-size: .98rem; margin: .35rem 0 .5rem; }
.badge {
    display: inline-block; font-size: .8rem; font-weight: 500;
    padding: .15rem .65rem; border-radius: 999px;
    border: 1px solid rgba(138, 99, 55, .45); color: var(--accent-ink);
}
.menu-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem;
    margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line);
}
.menu-cta p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; }

/* ---------- Offres ---------- */
.specials { background: var(--primary-color); color: var(--secondary-color); }
.specials .section-head p { color: rgba(243, 236, 226, .7); }
.specials-grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: repeat(3, auto); gap: 1.4rem; }
.special { display: grid; grid-template-columns: 38% 1fr; background: rgba(243, 236, 226, .05); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.special-feature { grid-row: 1 / span 3; grid-template-columns: 1fr; grid-template-rows: minmax(260px, 1fr) auto; }
.special-media { overflow: hidden; }
.special-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.special:hover .special-media img { transform: scale(1.05); }
.special-body { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; }
.special-feature .special-body { padding: 2rem 2.2rem 2.2rem; }
.special-label { color: var(--accent-color); font-size: .92rem; margin-bottom: .35rem; }
.special h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin-bottom: .5rem; }
.special-feature h3 { font-size: var(--step-2); }
.special-body > p:not(.special-label) { color: rgba(243, 236, 226, .72); font-size: .97rem; }
.special-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .4rem; }
.special-price { font-family: var(--font-display); font-size: 1.3rem; }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 1rem; }
.gallery-item { padding: 0; border: 0; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; background: var(--secondary-color); position: relative; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); filter: brightness(.9); }

.lightbox {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    background: rgba(18, 15, 12, .94); padding: 4.5rem 1rem 2rem;
    animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.lb-figure { max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-figure img { max-height: calc(100vh - 9rem); width: auto; border-radius: var(--radius-sm); }
.lb-figure figcaption { color: rgba(243, 236, 226, .8); margin-top: .9rem; text-align: center; }
.lb-btn {
    width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%;
    border: 1px solid var(--line-light); background: rgba(243, 236, 226, .06);
    color: var(--secondary-color); cursor: pointer; font-size: 1.1rem;
}
.lb-btn:hover { background: rgba(243, 236, 226, .16); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }

/* ---------- Avis ---------- */
.reviews { background: var(--secondary-color); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review { background: var(--background-color); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; gap: 1.1rem; }
.stars { margin: 0; color: var(--accent-ink); font-size: .9rem; letter-spacing: .12em; }
.review blockquote { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.55; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: .8rem; font-size: .92rem; color: var(--muted); }
.review figcaption strong { display: block; color: var(--text-color); font-weight: 600; }
.avatar {
    width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px;
    display: grid; place-items: center;
    background: var(--primary-color); color: var(--accent-color);
    font-family: var(--font-display); font-size: 1.15rem;
}

/* ---------- Réservation ---------- */
.reservation { background: var(--olive-color); color: var(--secondary-color); }
.reservation-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 2rem + 4vw, 5.5rem); align-items: start; }
.reservation .lead { color: rgba(243, 236, 226, .9); margin-bottom: 2rem; }
.info-list { display: grid; gap: 1.1rem; margin-bottom: 2.2rem; }
.info-list li { display: grid; grid-template-columns: 1.8rem 1fr; gap: .6rem; color: rgba(243, 236, 226, .78); }
.info-list i { color: var(--accent-color); margin-top: .35rem; }
.info-list strong { color: var(--secondary-color); font-weight: 500; }
.reservation-alt { display: flex; flex-wrap: wrap; gap: .8rem; }

.form-card { background: var(--background-color); color: var(--text-color); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2.5vw, 2.8rem); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-row-3 { grid-template-columns: 1.3fr 1fr 1fr; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .92rem; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px;
    padding: .7rem .95rem;
    background: var(--white); border: 1px solid rgba(43, 37, 30, .22); border-radius: 8px;
    font-size: 1rem; /* 16px min : évite le zoom automatique sur iPhone */
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B6155' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.3rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(198, 156, 109, .3); }
.field [aria-invalid="true"] { border-color: #B3412F; }
.field-error { color: #A13A2A; font-size: .88rem; margin: 0; }
.form-alert { background: #F7E4DF; color: #7A2A1E; border-radius: 8px; padding: .85rem 1rem; font-size: .95rem; }
.form-alert a { display: inline-block; margin-top: .3rem; font-weight: 600; color: inherit; }
.form-alert.is-success { background: #E3EEDF; color: #2C4A25; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 2rem 0; }
.form-success:focus { outline: none; }
.form-success i { font-size: 2.6rem; color: var(--olive-color); margin-bottom: 1rem; }
.form-success h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); margin-bottom: .6rem; }
.form-success p { color: var(--muted); max-width: 30rem; margin: 0 auto 1.5rem; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 1.5rem + 4vw, 5.5rem); align-items: start; }
.faq-grid > div:first-child p { color: var(--muted); max-width: 26rem; margin-bottom: 1.5rem; }
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem;
    padding: 1.3rem 0; background: none; border: 0; text-align: left; cursor: pointer;
    font-family: var(--font-display); font-size: 1.22rem; font-weight: 500; line-height: 1.35;
}
.acc-trigger:hover { color: var(--accent-ink); }
.acc-icon { position: relative; width: 14px; height: 14px; flex: 0 0 14px; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(0); }
.acc-panel { overflow: hidden; transition: height .35s var(--ease); }
.acc-panel p { color: var(--muted); padding-bottom: 1.3rem; margin: 0; max-width: 40rem; }

/* ---------- Contact ---------- */
.contact { background: var(--secondary-color); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); }
.contact-list { display: grid; gap: 1.2rem; margin-bottom: 1.8rem; }
.contact-list li { display: grid; grid-template-columns: 1.8rem 1fr; gap: .7rem; }
.contact-list i { color: var(--accent-ink); margin-top: .3rem; }
.contact-list h3 { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--muted); margin-bottom: .1rem; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.contact-list p { margin: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.form-compact { padding-top: 2rem; border-top: 1px solid var(--line); }
.form-compact h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; }
.form-compact .btn { justify-self: start; }
.map { border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; background: #E4DBCD; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(.75) contrast(1.02); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-color); color: rgba(243, 236, 226, .72); padding-top: clamp(3.5rem, 3rem + 3vw, 5.5rem); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-name { font-family: var(--font-display); font-size: 1.8rem; color: var(--secondary-color); margin-bottom: .6rem; }
.footer-brand p:not(.footer-name) { max-width: 22rem; }
.footer-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--secondary-color); margin-bottom: 1rem; }
.footer-list { display: grid; gap: .55rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--accent-color); }
.muted-light { color: rgba(243, 236, 226, .5); }
.social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.social a {
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid var(--line-light); color: var(--secondary-color); text-decoration: none;
    transition: background-color .25s, color .25s, border-color .25s;
}
.social a:hover { background: var(--accent-color); color: var(--primary-color); border-color: var(--accent-color); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid var(--line-light); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.to-top { text-decoration: none; }
.to-top:hover { color: var(--accent-color); }

/* ---------- WhatsApp flottant ---------- */
.wa-float {
    position: fixed; right: max(1.2rem, env(safe-area-inset-right)); bottom: max(1.2rem, env(safe-area-inset-bottom)); z-index: 90;
    width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--whatsapp); color: #fff; font-size: 1.9rem; text-decoration: none;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .45);
    transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-tooltip {
    position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%);
    background: var(--primary-color); color: var(--secondary-color);
    font-size: .88rem; white-space: nowrap; padding: .45rem .8rem; border-radius: 6px;
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.wa-float:hover .wa-tooltip, .wa-float:focus-visible .wa-tooltip { opacity: 1; transform: translate(0, -50%); }

/* ---------- Apparition au défilement (discrète) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
    .nav-links { gap: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    :root { --header-h: 68px; }
    .nav-cta { display: none; }
    .nav-toggle {
        display: grid; place-content: center; gap: 5px;
        width: 48px; height: 48px; margin-right: -8px;
        background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
    }
    .nav-toggle span { display: block; width: 24px; height: 1.6px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

    .nav-links {
        position: fixed; inset: 0; z-index: 1;
        flex-direction: column; justify-content: safe center; gap: .4rem;
        padding: 6rem 2rem 3rem; overflow-y: auto; overscroll-behavior: contain;
        background: var(--primary-color); color: var(--secondary-color);
        opacity: 0; visibility: hidden;
        transition: opacity .35s var(--ease), visibility .35s;
    }
    .nav-links li { transform: translateY(12px); transition: transform .45s var(--ease); }
    .nav-links.is-open { opacity: 1; visibility: visible; }
    .nav-links.is-open li { transform: none; }
    .nav-link { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.4; }
    .nav-mobile-extra { display: grid; gap: .8rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-light); font-size: 1.05rem; }
    .nav-mobile-extra a { text-decoration: none; color: rgba(243, 236, 226, .85); }
    .nav-mobile-extra i { color: var(--accent-color); width: 1.4rem; }
    .menu-open .site-header { color: var(--secondary-color); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
    body.menu-open { overflow: hidden; }

    .about-grid, .reservation-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-media { max-width: 560px; }
    .menu-panel { grid-template-columns: 1fr; gap: 2rem; max-width: 640px; }
    .menu-tabs { justify-content: flex-start; }
    .specials-grid { grid-template-columns: 1fr; grid-template-rows: none; }
    .special-feature { grid-row: auto; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .reviews-grid { grid-template-columns: 1fr 1fr; }
    .map, .map iframe { min-height: 340px; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .hero-inner { padding-bottom: 2rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-bar-inner { gap: .5rem 1.4rem; font-size: .9rem; padding-bottom: calc(1.05rem + 70px); }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .special { grid-template-columns: 1fr; }
    .special-media { aspect-ratio: 16 / 10; }
    .gallery-grid { grid-auto-rows: 150px; gap: .6rem; }
    .gallery-item.wide { grid-column: span 2; }
    .reviews-grid {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem;
        margin-inline: -1.25rem; padding: 0 1.25rem .5rem; scrollbar-width: none;
    }
    .reviews-grid::-webkit-scrollbar { display: none; }
    .review { flex: 0 0 86%; scroll-snap-align: center; }
    .dish { grid-template-columns: 64px 1fr; gap: 1rem; }
    .dish-img { width: 64px; height: 64px; }
    .dish-name { font-size: 1.15rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { padding-bottom: calc(1.6rem + 70px); }
    .wa-float { width: 56px; height: 56px; font-size: 1.75rem; }
    .wa-tooltip { display: none; }
    .lb-prev, .lb-next { position: absolute; bottom: 1.2rem; }
    .lb-prev { left: calc(50% - 60px); }
    .lb-next { right: calc(50% - 60px); }
    .lightbox { padding-bottom: 5.5rem; }
    .lb-figure img { max-height: calc(100vh - 12rem); }
}

@media (max-width: 380px) {
    .container { width: min(100% - 1.8rem, var(--container)); }
    .brand-name { font-size: 1.25rem; }
    .dish-line { flex-wrap: wrap; }
    .dish-dots { display: none; }
    .dish-price { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .hero-inner > * { opacity: 1; transform: none; }
    .js .reveal { opacity: 1; transform: none; }
}
