/* ==========================================================================
   Le Bout'Choux — feuille de style unique
   Palette : ivoire / encre / laiton. Titres en Cormorant, textes en Jost.
   ========================================================================== */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-300-italic.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/fonts/jost-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/fonts/jost-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --ink: #16170f;
  --ink-2: #3d3f33;
  --ink-3: #6d6f61;
  --cream: #faf8f3;
  --cream-2: #f2eee4;
  --paper: #fff;
  --line: #e2dccf;
  --brass: #a8874c;
  --brass-light: #e8d9b8;
  --olive: #55613f;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: min(var(--wrap), 100% - var(--pad) * 2); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--cream); padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------- titrages */

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: .35rem 0 0;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin: 0;
}

.rule {
  display: block; width: 64px; height: 1px;
  background: var(--brass); margin-top: 1.6rem; opacity: .7;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { text-align: center; }
.section-head--center .rule { margin-inline: auto; }

.lede {
  font-size: 1.09rem;
  color: var(--ink-2);
  max-width: 46ch;
}

.section { padding: clamp(4rem, 7vw, 6.5rem) 0; }

/* La colonne photos de « La maison » porte déjà 4 rem de vide sous elle
   (le décalage de la petite image) : sans ça, le blanc double avant La Carte. */
.maison { padding-bottom: clamp(1.5rem, 3vw, 3rem); }
.section--soft { background: var(--cream-2); }
.section--dark { background: var(--ink); color: var(--cream); }

/* --------------------------------------------------------------- boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem;
  font-family: var(--sans); font-size: .84rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--brass); }
.btn--outline { border-color: currentColor; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--ink); }
.btn--ghost { border-color: var(--line); color: var(--ink); padding: .6rem 1.1rem; }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn--block { width: 100%; }

.tel-ico {
  width: 13px; height: 13px; display: inline-block; flex: none;
  background: currentColor;
  -webkit-mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2a1 1 0 011-.25 11.4 11.4 0 003.6.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.46.57 3.6a1 1 0 01-.25 1z'/%3E%3C/svg%3E");
  mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2a1 1 0 011-.25 11.4 11.4 0 003.6.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.46.57 3.6a1 1 0 01-.25 1z'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex; align-items: center; gap: 2rem;
  min-height: var(--header-h);
}
.brand { text-decoration: none; display: grid; line-height: 1; margin-right: auto; }
.brand__pre {
  font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--brass); margin-bottom: .3rem;
}
.brand__name {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 1.75rem; letter-spacing: .01em;
}
.brand__name--sm { font-size: 1.4rem; }

.nav { display: flex; gap: 1.9rem; }
.nav a {
  text-decoration: none; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; padding: .35rem 0; position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--brass); transition: right .3s ease;
}
.nav a:hover::after { right: 0; }

/* Au-dessus du hero : texte clair sur la photo. Une fois scrollé : barre ivoire. */
.site-header:not(.is-stuck) { color: #fff; }
.site-header:not(.is-stuck) .brand__pre,
.site-header:not(.is-stuck) .eyebrow { color: #e8d9b8; }
.site-header:not(.is-stuck) .btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.site-header:not(.is-stuck) .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }
.site-header.is-stuck {
  background: rgba(250, 248, 243, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: var(--line);
}

.burger {
  display: none; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 1.5px; background: currentColor; transition: transform .3s ease, opacity .3s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

.nav-mobile[hidden] { display: none; }
.nav-mobile {
  display: grid; gap: .25rem; padding: 1rem var(--pad) 2rem;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.nav-mobile a {
  text-decoration: none; padding: .85rem 0; border-bottom: 1px solid var(--line);
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
}
.nav-mobile__tel { color: var(--brass) !important; border-bottom: 0 !important; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; min-height: min(100svh, 860px); display: grid; align-items: center; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,13,8,.62) 0%, rgba(12,13,8,.28) 38%, rgba(12,13,8,.72) 100%);
}
.hero__inner { padding-top: var(--header-h); padding-bottom: 7rem; color: #fff; text-align: center; }
.hero__eyebrow {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: #e8d9b8; margin: 0 0 1.4rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(3.2rem, 11vw, 7rem); line-height: .95; margin: 0;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero__baseline {
  font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-weight: 300; margin: 1.1rem auto 2.6rem; max-width: 24ch;
}
.hero__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

.hero__strip {
  position: absolute; inset: auto 0 0; z-index: 1;
  background: rgba(22,23,15,.55);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,.14);
  color: #fff;
}
.hero__strip-inner {
  display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; justify-content: center;
  padding: .95rem 0; font-size: .8rem; letter-spacing: .06em;
}
.hero__strip strong {
  font-weight: 500; color: #e8d9b8; letter-spacing: .18em;
  text-transform: uppercase; font-size: .68rem; margin-right: .5rem;
}
.hero__strip-closed { color: rgba(255,255,255,.6); }

/* ---------------------------------------------------------------- maison */

.maison__grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .maison__grid { grid-template-columns: 1fr 1fr; } }

.signature {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem;
  color: var(--brass); margin-top: 2rem;
}
.maison__media { position: relative; padding-bottom: 4rem; }
.maison__img { width: 100%; object-fit: cover; }
.maison__img--a { aspect-ratio: 5/4; }
.maison__img--b {
  position: absolute; right: 0; bottom: 0; width: 52%;
  aspect-ratio: 1; object-fit: cover;
  border: 8px solid var(--cream);
}
@media (max-width: 599px) { .maison__img--b { width: 58%; } }

/* ----------------------------------------------------------------- carte */

.carte__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 950px) { .carte__grid { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); } }

.carte__cols { display: grid; gap: clamp(2.5rem, 5vw, 3.6rem); }
.carte__section-title {
  font-family: var(--serif); font-weight: 500; font-size: 1.05rem;
  letter-spacing: .2em; text-transform: uppercase;
  margin: 0 0 1.4rem; padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
  color: var(--olive);
}
.dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.dish__line { display: flex; align-items: baseline; gap: .6rem; }
.dish__name { font-family: var(--serif); font-size: 1.32rem; font-weight: 400; line-height: 1.25; }
.dish__dots {
  flex: 1 1 auto; min-width: 1.5rem; height: 1px; align-self: flex-end;
  margin-bottom: .32rem;
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.2px);
  background-size: 6px 2px; background-repeat: repeat-x;
}
.dish__price {
  font-family: var(--serif); font-size: 1.3rem; white-space: nowrap;
  color: var(--brass); font-weight: 500;
}
.eur { font-size: .78em; }
.dish__desc { margin: .18rem 0 0; font-size: .93rem; color: var(--ink-3); max-width: 52ch; }

/* Sur mobile, les intitulés passent sur deux lignes : les points de conduite
   ne relieraient plus rien et laisseraient un moignon sous la seconde ligne. */
@media (max-width: 700px) {
  .dish__line { align-items: baseline; }
  .dish__dots { display: none; }
  .dish__name { flex: 1 1 auto; }
}

.carte__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.carte__photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.carte__note {
  font-size: .86rem; line-height: 1.7; color: var(--ink-3);
  margin: 1.5rem 0 0; padding-left: 1.1rem; border-left: 2px solid var(--brass);
}

/* --------------------------------------------------------------- formule */

.formule { position: relative; isolation: isolate; overflow: hidden; }
.formule__bg { position: absolute; inset: 0; z-index: -1; opacity: .16; }
.formule__bg-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }
.formule::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,23,15,.75), rgba(22,23,15,.95));
}
.formule__sub { color: rgba(250,248,243,.62); margin: 1.1rem 0 0; font-size: .95rem; }

.tarifs {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
  max-width: 900px; margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 760px) { .tarifs { grid-template-columns: repeat(3, 1fr); } }
.tarif {
  border: 1px solid rgba(232,217,184,.28); padding: 1.6rem 1.2rem;
  text-align: center; display: grid; gap: .8rem; align-content: center;
  transition: border-color .3s ease, background-color .3s ease;
}
.tarif:hover { border-color: var(--brass); background: rgba(168,135,76,.08); }
.tarif__label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,248,243,.75); }
.tarif__price { font-family: var(--serif); font-size: 2.3rem; color: #e8d9b8; line-height: 1; }

.formule__steps { display: grid; gap: clamp(2.2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 820px) { .formule__steps { grid-template-columns: repeat(3, 1fr); } }
.formule__step-title {
  font-family: var(--serif); font-weight: 500; font-size: 1rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--brass);
  margin: 0 0 1.3rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(232,217,184,.2);
}
.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.choices .choice__name { font-family: var(--serif); font-size: 1.24rem; display: block; }
.choices .choice__desc { display: block; font-size: .87rem; color: rgba(250,248,243,.55); margin-top: .15rem; }
.choice__or {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(250,248,243,.35); padding-left: .1rem;
}

/* -------------------------------------------------------------- ambiance */

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.filter {
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; padding: .55rem 1.1rem; border-radius: 999px;
  color: var(--ink-2); transition: all .25s ease;
}
.filter:hover { border-color: var(--brass); color: var(--brass); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-auto-rows: 200px;
}
.shot { margin: 0; overflow: hidden; }
.shot[hidden] { display: none; }
.shot:nth-child(6n + 1) { grid-row: span 2; }
.shot__btn {
  display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: var(--cream-2); cursor: zoom-in; overflow: hidden;
}
.shot__btn img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1), filter .4s ease;
}
.shot__btn:hover img { transform: scale(1.06); filter: brightness(1.04); }
@media (max-width: 560px) { .gallery { grid-auto-rows: 160px; grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------- contact */

.contact__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; } }

.hours { width: 100%; border-collapse: collapse; margin-top: 2.2rem; }
.hours th, .hours td { text-align: left; padding: .85rem .5rem; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours thead th {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass); font-weight: 500; padding-bottom: .5rem;
}
.hours tbody th { font-family: var(--serif); font-size: 1.2rem; width: 40%; }
.hours td { font-size: .95rem; color: var(--ink-2); }
.hours .is-closed { color: var(--ink-3); }
.hours .is-closed th, .hours .is-closed td { opacity: .55; }
.hours__note { font-size: .88rem; color: var(--ink-3); margin-top: 1rem; }

.card {
  background: var(--paper); border: 1px solid var(--line);
  padding: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 2rem;
}
.card__title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0 0 .8rem; }
.card__text { font-size: .95rem; color: var(--ink-2); margin: 0 0 1.6rem; }

.address { font-style: normal; line-height: 1.9; margin-bottom: 2rem; }
.address strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.address a { color: var(--brass); text-decoration: none; border-bottom: 1px solid currentColor; }
.contact__photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: rgba(250,248,243,.7); padding: 3.5rem 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; justify-content: space-between; align-items: end; }
.site-footer .brand__name { color: var(--cream); }
.site-footer p { margin: .4rem 0 0; font-size: .9rem; }
.site-footer a { color: var(--brass); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__legal { font-size: .8rem !important; color: rgba(250,248,243,.45); }

/* -------------------------------------------------------------- lightbox */

.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%; background: rgba(12,13,8,.94);
  display: none; place-items: center; overscroll-behavior: contain;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(12,13,8,.9); }
.lightbox__img {
  max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain;
  grid-area: 1 / 1; justify-self: center;
}
.lightbox__caption {
  position: absolute; inset: auto 0 3.2vh; text-align: center;
  color: rgba(255,255,255,.72); font-size: .85rem; margin: 0; padding: 0 4rem;
}
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px;
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
  transition: background-color .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__close { top: 2vh; right: 2vw; font-size: 1.9rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox__nav--prev { left: 2vw; }
.lightbox__nav--next { right: 2vw; }
@media (max-width: 560px) {
  .lightbox__nav { top: auto; bottom: 2vh; transform: none; }
  .lightbox__caption { bottom: 9vh; padding: 0 1rem; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 899px) {
  .nav, .header__tel { display: none; }
  .burger { display: flex; }
  .carte__aside { position: static; }
}
@media (min-width: 900px) { .nav-mobile { display: none !important; } }

/* --------------------------------------------------------- apparitions */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
  .reveal.is-in { opacity: 1; transform: none; }
}
