/* ===== La Casa degli Gnocchi — généreux, fait maison ===== */
:root {
  --ink: #16100c;
  --ink-2: #251b15;
  --cream: #f8f1e6;
  --paper: #efe4d2;
  --white: #fffdf8;
  --tomato: #cf3a1f;
  --tomato-d: #a82b14;
  --butter: #f4c766;
  --basil: #4b7a3d;
  --muted: #74645a;
  --muted-light: #c9b9a8;
  --line: #e2d5c1;
  --line-dark: #3a2c23;
  --radius: 18px;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1; text-wrap: balance; }
h1, h2, .menu__title, .footer__name strong, .brand__l2 { font-family: var(--display); font-stretch: 72%; font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; }
h2 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); margin-bottom: .35em; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: var(--cream); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--tomato); margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 32em; }

/* ===== Boutons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.4rem; border-radius: 999px; background: var(--tomato); color: #fff; text-decoration: none; font: 600 1rem/1.1 var(--sans); border: 2px solid var(--tomato); cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--tomato-d); border-color: var(--tomato-d); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #d8cbbb; border-color: #d8cbbb; color: #7d6e62; cursor: not-allowed; }
.btn--small { padding: .55rem 1.05rem; font-size: .92rem; }
.btn--big { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; border-color: rgba(248, 241, 230, .6); color: var(--cream); }
.btn--ghost:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--ghost-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: var(--cream); }

.announce { background: var(--butter); color: var(--ink); text-align: center; padding: .55rem 1rem; font-weight: 600; font-size: .95rem; }

/* ===== Navigation ===== */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(22, 16, 12, .94); backdrop-filter: blur(10px); color: var(--cream); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 66px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: .95; }
.brand__l1 { font: italic 400 1rem var(--serif); color: var(--muted-light); }
.brand__l2 { font-size: 1.65rem; color: var(--cream); }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted-light); }
.nav__links a:hover { color: var(--cream); }

/* ===== Hero ===== */
.hero { position: relative; background: var(--ink); color: var(--cream); min-height: min(88vh, 820px); display: grid; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0 0 0 44%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(22, 16, 12, .55) 22%, rgba(22, 16, 12, 0) 48%); z-index: 1; }
.hero__inner { position: relative; z-index: 2; padding-block: 4rem; }
.hero__text { max-width: 600px; }
.hero h1 { font-size: clamp(3.4rem, 8.2vw, 7rem); line-height: .88; }
.hero h1 em { display: block; font: italic 400 .42em/1.1 var(--serif); text-transform: none; color: var(--butter); margin-top: .35em; letter-spacing: 0; }
.hero .eyebrow { color: var(--butter); }
.hero__lead { font-size: 1.25rem; color: var(--muted-light); margin-top: 1.3rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.facts { list-style: none; padding: 1.6rem 0 0; margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; border-top: 1px solid var(--line-dark); }
.facts li { display: grid; gap: .15rem; }
.facts strong { font: 800 1.45rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; color: var(--butter); }
.facts span { font-size: .85rem; color: var(--muted-light); }

/* ===== Sections ===== */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section__head { max-width: 46rem; margin-bottom: 3rem; }

/* Fait maison */
.made { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.made h2 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.steps { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 1.1rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1rem; align-items: baseline; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 900 2.2rem/1 var(--display); font-stretch: 75%; color: var(--tomato); }
.steps strong { font-size: 1.1rem; }
.steps span { color: var(--muted); }
.made__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.made__photos figure, .gallery figure { margin: 0; position: relative; overflow: hidden; }
.made__photos figure { border-radius: var(--radius); }
.made__photos figure:last-child { margin-top: 3rem; }
.made__photos img { width: 100%; aspect-ratio: 4 / 5; max-height: 460px; object-fit: cover; transition: transform .6s; }
.made__photos figure:first-child img { object-position: 85% 85%; }
.made__photos figure:hover img, .gallery figure:hover img { transform: scale(1.04); }
figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .9rem; background: linear-gradient(transparent, rgba(22, 16, 12, .75)); color: var(--cream); font: italic 400 1.3rem/1.1 var(--serif); }

/* ===== Carte ===== */
.section--menu { background: var(--white); }
.tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-bottom: 3.5rem; }
.lunch { background: var(--butter); border-radius: var(--radius); padding: 1.6rem 1.8rem; display: grid; gap: .4rem; align-content: start; }
.lunch__title { font: 900 1.9rem/1 var(--display); font-stretch: 72%; text-transform: uppercase; }
.lunch__price { font: 900 2.8rem/1 var(--display); font-stretch: 72%; color: var(--tomato-d); }
.lunch__note { font: italic 400 1.2rem var(--serif); }
.board { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.board__title { font: 900 1.9rem/1 var(--display); font-stretch: 72%; text-transform: uppercase; color: var(--butter); margin-bottom: 1rem; }
.board ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.board li { display: grid; gap: .1rem; }
.board li strong { font-size: 1.08rem; }
.board li span { color: var(--muted-light); font-size: .95rem; }
.board__note { margin-top: 1.1rem; font: italic 400 1.15rem var(--serif); color: var(--muted-light); }

.menu-main { margin-bottom: 3.5rem; }
.menu__title { font-size: clamp(2rem, 4vw, 2.8rem); padding-bottom: .7rem; border-bottom: 3px solid var(--ink); margin-bottom: .4rem; }
.menu__title em { font: italic 400 .6em var(--serif); text-transform: none; color: var(--tomato); letter-spacing: 0; }
.dishes { list-style: none; margin: 0; padding: 0; }
.dishes--two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
.dish { padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.dish__line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.dish h4 { font-size: 1.12rem; font-weight: 600; display: flex; align-items: center; gap: .45rem; }
.dish__price { font: 800 1.35rem/1 var(--display); font-stretch: 80%; color: var(--tomato); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish p { color: var(--muted); font-size: .95rem; margin-top: .25rem; }
.dish__tag { display: inline-block; margin-top: .45rem; font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--butter); padding: .35rem .6rem; border-radius: 99px; }
.veg { display: inline-flex; color: var(--basil); }
.leaf { width: 16px; height: 16px; fill: currentColor; }
.menu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem 3.5rem; }
.menu-cols .menu__title { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.menu__foot { margin-top: 2.5rem; font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }

/* ===== Bandeau photo ===== */
.band { position: relative; min-height: min(80vh, 680px); display: grid; align-items: end; color: var(--cream); overflow: hidden; background: var(--ink); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(22, 16, 12, .88) 0%, rgba(22, 16, 12, .25) 55%, rgba(22, 16, 12, .05) 100%); }
.band__inner { position: relative; z-index: 2; padding-block: 4rem; display: grid; gap: 1rem; justify-items: start; }
.band h2 { font-size: clamp(3.2rem, 10vw, 8rem); line-height: .88; margin: 0; }
.band p { font: italic 400 clamp(1.3rem, 2.4vw, 1.8rem)/1.2 var(--serif); color: var(--butter); }
.band .btn { margin-top: .6rem; }

/* ===== Galerie ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--ink); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 60%; transition: transform .6s; }

/* ===== Événements ===== */
.section--events { background: var(--ink); color: var(--cream); }
.section--events .lead { color: var(--muted-light); }
.events { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; align-items: start; }
.events__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.events__list li { background: var(--ink-2); padding: 1.2rem 1.3rem; display: grid; gap: .15rem; }
.events__list strong { font: 800 1.35rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; color: var(--butter); }
.events__list span { color: var(--muted-light); font-size: .92rem; }
.events__call { margin-top: 1.4rem; color: var(--muted-light); }
.events__call a { color: var(--cream); font-weight: 600; }

/* ===== Formulaires ===== */
.card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 1px 0 rgba(22, 16, 12, .05), 0 24px 60px -30px rgba(22, 16, 12, .45); }
.evform, .form { display: grid; gap: 1.3rem; }
.evform h3, .done h3 { font: 900 1.9rem/1 var(--display); font-stretch: 72%; text-transform: uppercase; margin-bottom: .3rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.full { grid-column: 1 / -1; }
.step { border: 0; padding: 0; margin: 0; display: grid; gap: 1.2rem; min-width: 0; }
.step[disabled] { opacity: .4; }
.field { display: grid; gap: .4rem; min-width: 0; align-content: start; }
label, .label { font-weight: 600; font-size: .92rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; padding: .72rem .85rem; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tomato); background: #fff; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .86rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: .15rem; flex: none; accent-color: var(--tomato); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--cream); width: max-content; }
.stepper button { width: 46px; height: 46px; border: 0; background: none; font: 600 1.4rem var(--sans); cursor: pointer; color: var(--ink); border-radius: 50%; }
.stepper button:hover:not(:disabled) { background: var(--paper); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 2.6rem; text-align: center; font: 900 1.5rem var(--display); font-stretch: 75%; }
.slots { display: grid; gap: 1rem; }
.slots__group h4 { margin: 0 0 .5rem; font: 600 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.slots__grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: .55rem .85rem; font: 600 .95rem var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.slot:hover:not(:disabled) { border-color: var(--tomato); }
.slot[aria-pressed="true"] { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.slot:disabled { text-decoration: line-through; opacity: .35; cursor: not-allowed; }
.closed { background: var(--cream); border-radius: 12px; padding: .9rem 1rem; color: var(--muted); font-size: .93rem; margin: 0; }
.form__error { color: var(--tomato-d); font-weight: 600; margin: 0; }
.form__error:empty { display: none; }
.done { text-align: center; display: grid; gap: .7rem; justify-items: center; }
.done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--basil); color: #fff; display: grid; place-items: center; font-size: 1.9rem; }
.done__recap { font-size: 1.1rem; }

/* ===== Réservation ===== */
.section--booking { background: var(--paper); }
.booking { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.booking__help { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); }
.booking__help strong { color: var(--ink); }
.booking__help a { color: var(--tomato); font-weight: 600; font-size: 1.1rem; }

/* ===== FAQ ===== */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq .muted { margin-top: .5rem; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { cursor: pointer; padding: 1.05rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; color: var(--tomato); font-size: 1.4rem; line-height: 1; transition: rotate .2s; }
.faq__list details[open] summary::after { rotate: 45deg; }
.faq__list details p { color: var(--muted); padding-bottom: 1.05rem; }

/* ===== Infos ===== */
.section--infos { background: var(--white); }
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; }
.infos h2 { font-size: clamp(2rem, 4vw, 3rem); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .65rem .4rem; border-bottom: 1px solid var(--line); }
.hours thead th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hours tbody th { font-weight: 600; }
.hours .off { color: #b4a594; }
.hours tr.today { background: #fdf3dd; }
.hours tr.today th { color: var(--tomato); }
address { font-style: normal; font-size: 1.15rem; line-height: 1.7; margin-bottom: 1.4rem; }
address a { color: var(--tomato); font-weight: 600; }
.tags { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { background: var(--cream); border-radius: 99px; padding: .3rem .8rem; font-size: .85rem; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; }
.links a { color: var(--tomato); font-weight: 600; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.review-link { background: var(--butter); color: var(--ink) !important; border-radius: 99px; padding: .3rem .85rem; }
.map { grid-column: 1 / -1; border-radius: var(--radius); overflow: hidden; height: 340px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ===== Pied de page ===== */
.footer { background: var(--ink); color: var(--muted-light); padding-block: 3.5rem 6rem; text-align: center; }
.footer__inner { display: grid; gap: .5rem; justify-items: center; }
.footer__name { font: italic 400 1.2rem var(--serif); color: var(--muted-light); }
.footer__name strong { font-size: 2.2rem; color: var(--cream); display: block; }
.footer a { color: var(--cream); }
.fab { display: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero { min-height: 0; align-items: end; }
  .hero__media { position: relative; inset: auto; height: 58vh; min-height: 340px; }
  .hero__media::before { background: linear-gradient(0deg, var(--ink) 0%, rgba(22, 16, 12, .2) 45%, rgba(22, 16, 12, 0) 100%); }
  .hero__inner { margin-top: -7rem; padding-block: 0 3.5rem; }
  .made, .events, .booking, .infos, .faq { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .fab { display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 30; padding: .9rem 1.4rem; border-radius: 999px; background: var(--tomato); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .55); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .dishes--two, .grid2, .events__list { grid-template-columns: 1fr; }
  .made__photos figure:last-child { margin-top: 2rem; }
  .hero__cta .btn { flex: 1 1 auto; }
  .facts { gap: 1rem 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
