/* Café Janine — feuille de styles */

:root {
  --paper: #f5efe4;
  --paper-2: #ece3d2;
  --ink: #1d1c19;
  --ink-soft: #57534a;
  --green: #1c4a2c;
  --green-deep: #133722;
  --cream: #f6f0e4;
  --wine: #8e1b2a;
  --line: #d6cbb6;
  --line-dark: rgba(246, 240, 228, 0.22);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --section: clamp(72px, 10vw, 140px);
  --header-h: 84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
main > section[id] { scroll-margin-top: -16px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); margin-bottom: 1.4rem; }
h3 { font-size: 1.45rem; font-weight: 600; line-height: 1.2; margin-bottom: .6rem; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: var(--cream); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 920px; }

.lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.6; }
.text { max-width: 36rem; color: var(--ink-soft); }
.text .lead { color: var(--ink); }

/* ---------- Boutons et liens ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 1.7em;
  font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: .03em;
  text-decoration: none; border: 1px solid var(--green);
  background: var(--green); color: var(--cream);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn--small { min-height: 42px; padding: 0 1.25em; font-size: .9rem; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 2rem; }

.link {
  font-weight: 500; color: var(--green);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em;
}
.link:hover { color: var(--wine); }
.section--green .link { color: var(--cream); }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: block; flex: none; }
.brand img { height: 58px; width: auto; }
.brand .brand__light { display: none; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav ul a { font-size: .95rem; text-decoration: none; padding: 6px 0; }
.nav ul a:hover, .nav ul a[aria-current="page"], .nav ul a.is-current {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .45em;
}

.nav-toggle {
  display: none; font: inherit; font-size: .95rem; font-weight: 500;
  background: none; border: 1px solid currentColor; color: inherit;
  min-height: 42px; padding: 0 1.1em; cursor: pointer;
}

@media (max-width: 1040px) {
  :root { --header-h: 72px; }
  .brand img { height: 48px; }
  .nav-toggle { display: inline-flex; align-items: center; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
    background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav ul { flex-direction: column; gap: 14px; }
  .nav ul a { font-family: var(--serif); font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.1; }
  .nav .btn { min-height: 52px; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .brand { position: relative; z-index: 2; }
  .nav-open { overflow: hidden; }
}

/* ---------- Accueil ---------- */

.hero {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  min-height: calc(100svh - var(--header-h)); max-height: 980px;
}
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 96px) clamp(32px, 4.5vw, 72px) clamp(40px, 6vw, 96px)
           max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.hero h1 { font-size: clamp(2.8rem, 5.2vw, 5.4rem); line-height: 1; }
.hero .lead { margin-top: 1.6rem; max-width: 30rem; color: var(--ink-soft); }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 2.6rem 0 0; padding: 1.4rem 0 0;
  border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); list-style: none;
}
.hero__media { position: relative; min-height: 420px; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero__text { padding: 32px var(--gutter) 56px; }
  .hero__media { order: -1; min-height: 0; aspect-ratio: 5 / 4; }
  .hero__facts { margin-top: 2rem; }
}

.section-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin-top: 1.3rem; color: var(--ink-soft); }

.intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 128px); align-items: center;
}
.intro__text h2 { margin-bottom: 1.8rem; max-width: 14ch; }
.intro__text p { color: var(--ink-soft); max-width: 34rem; }
.intro__text .lead { color: var(--ink); }
.intro__media { position: relative; padding: 0 0 18% 0; }
.intro__media .main { width: 78%; margin-left: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.intro__media .inset {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; object-fit: cover;
  border: 10px solid var(--paper);
}
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

.day {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px);
  list-style: none; margin: 0; padding: 0;
}
.day li:nth-child(even) { margin-top: clamp(0px, 6vw, 96px); }
.day img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 1.4rem; }
.day p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 1000px) {
  .day { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .day li:nth-child(even) { margin-top: 48px; }
}
@media (max-width: 560px) {
  .day { grid-template-columns: 1fr; }
  .day li:nth-child(even) { margin-top: 0; }
}

.terrace__small { width: min(62%, 300px); aspect-ratio: 4 / 5; object-fit: cover; margin-top: 3rem; }
@media (max-width: 860px) { .terrace__small { display: none; } }

.split__text h2 { max-width: 17ch; }
.split__text p { color: var(--ink-soft); max-width: 34rem; }
.split__text .lead { color: var(--ink); }
.section--green .split__text p { color: rgba(246,240,228,.85); }
.section--green .split__text .lead { color: var(--cream); }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.mosaic img:first-child { grid-row: span 2; aspect-ratio: auto; }

.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--cream); }

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

/* ---------- Galerie en maçonnerie ---------- */

.masonry { columns: 3; column-gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(32px, 4vw, 56px); }
.masonry > * { break-inside: avoid; margin-bottom: clamp(14px, 1.8vw, 24px); }
.masonry img { width: 100%; object-fit: cover; }
.masonry__item { display: block; overflow: hidden; cursor: zoom-in; background: var(--paper-2); }
.masonry__item img { transition: transform 1.1s cubic-bezier(.2,.7,.2,1), opacity .4s ease; }
.masonry__item:hover img { transform: scale(1.035); }
.masonry__item:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.r-tall { aspect-ratio: 2 / 3; }
.r-portrait { aspect-ratio: 4 / 5; }
.r-34 { aspect-ratio: 3 / 4; }
.r-square { aspect-ratio: 1 / 1; }
.r-land { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .masonry { columns: 2; } }

/* ---------- Blocs texte + image ---------- */

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px); align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}


/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section--alt { background: var(--paper-2); }
.section--green { background: var(--green); color: var(--cream); }
.section--green .text { color: rgba(246,240,228,.85); }
.section--green .text .lead { color: var(--cream); }
.section--flush-top { padding-top: 0; }

/* Terrasse */
.terrace {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--green); color: var(--cream);
}
.terrace__media img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.terrace__text {
  padding: clamp(56px, 8vw, 128px) var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
}
.terrace__text .text { color: rgba(246,240,228,.85); }
.terrace__text .text .lead { color: var(--cream); }
@media (max-width: 860px) {
  .terrace { grid-template-columns: 1fr; }
  .terrace__media img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Coordonnées */
.infos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: clamp(28px, 4vw, 64px);
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.infos p, .infos address { font-style: normal; color: var(--ink-soft); }
.infos strong { font-weight: 500; color: var(--ink); }
.infos .h3 { font-size: 1.45rem; font-weight: 600; line-height: 1.2; margin-bottom: .6rem; }
@media (max-width: 520px) { .infos { grid-template-columns: 1fr; } }


/* Plan Google Maps */
.map { margin-top: clamp(40px, 5vw, 64px); background: var(--paper-2); }
.map iframe { display: block; width: 100%; height: clamp(340px, 42vw, 520px); border: 0; }

/* Questions fréquentes */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 1.4rem 3rem 1.4rem 0;
  font-family: var(--serif); font-size: clamp(1.3rem, 1.9vw, 1.55rem); font-weight: 500; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 16px; height: 1px; background: currentColor;
  transition: transform .3s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq .answer { padding: 0 3rem 1.6rem 0; color: var(--ink-soft); max-width: 46rem; }

/* Pages intérieures */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { max-width: 40rem; margin-top: 1.4rem; color: var(--ink-soft); }
.page-head--compact { padding-bottom: clamp(32px, 4vw, 48px); }
.page-head__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 6vw, 96px); align-items: end;
}
.page-head__row .lead { margin-top: 0; }
@media (max-width: 860px) {
  .page-head__row { grid-template-columns: 1fr; }
}

.breadcrumb { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5em; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5em; color: var(--line); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.prose { max-width: 40rem; }
.prose.legal { max-width: 46rem; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.prose h2:not(:first-child) { margin-top: 3rem; }
.prose p { color: var(--ink-soft); }
.prose strong { font-weight: 500; color: var(--ink); }
.legal-list { margin: 1.4rem 0 0; border-top: 1px solid var(--line); }
.legal-list > div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.2rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.legal-list dt { font-weight: 500; }
.legal-list dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .legal-list > div { grid-template-columns: 1fr; gap: .15rem; } }

.illu-404 { width: 220px; margin-bottom: 2.5rem; }
.wrap--narrow > h1 + .lead { margin-top: 1.4rem; }

/* ---------- Carte (rendu DigiChef) ---------- */

html.has-carte-tabs { scroll-padding-top: calc(var(--header-h) + 80px); }

.carte-legend { font-size: .95rem; color: var(--ink-soft); margin-top: 1.2rem; }
.carte-legend .heart { color: var(--wine); }

.carte-tabs-bar {
  position: sticky; top: var(--header-h); z-index: 20;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.carte-tabs {
  display: flex; gap: clamp(20px, 3vw, 44px); overflow-x: auto; scrollbar-width: none;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.carte-tabs::-webkit-scrollbar { display: none; }
.carte-tab {
  flex: none; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 500;
  color: var(--ink-soft); text-decoration: none; padding: 1rem 0 .9rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.carte-tab:hover { color: var(--ink); }
.carte-tab[aria-selected="true"] { color: var(--green); border-bottom-color: var(--green); }

.carte-menu { padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 9vw, 120px); }
.carte-menu[hidden] { display: none; }
.carte-menu__head { max-width: 44rem; margin-bottom: 1.4rem; }
.carte-menu__head h2 { margin-bottom: .6rem; }
.carte-menu__head p { color: var(--ink-soft); }

.carte-index {
  display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 0 0 clamp(48px, 6vw, 80px); padding: 0; list-style: none;
  font-size: .95rem;
}
.carte-index a { color: var(--green); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .3em; }
.carte-index a:hover { text-decoration-color: currentColor; }

.carte-cats { columns: 2; column-gap: clamp(48px, 7vw, 120px); }
.carte-cats--single { columns: 1; max-width: 760px; }
.carte-cat { break-inside: avoid-column; margin-bottom: clamp(56px, 6vw, 84px); }
.dish { break-inside: avoid; }
@media (max-width: 960px) { .carte-cats { columns: 1; } }

.carte-cat > h3 {
  font-size: clamp(1.9rem, 2.8vw, 2.4rem); font-weight: 500; color: var(--green);
  padding-bottom: .9rem; border-bottom: 1px solid var(--green); margin-bottom: .4rem;
}
.carte-cat__note { font-size: .92rem; color: var(--ink-soft); margin: .6rem 0 0; }
.carte-sub {
  font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: .02em;
  color: var(--green); margin: 2.2rem 0 .2rem;
}

.dishes { list-style: none; margin: 0; padding: 0; }
.dish {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.dish:last-child { border-bottom: 0; }
.dish__name { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; line-height: 1.25; margin: 0; }
.dish__producer { font-weight: 500; color: var(--ink-soft); }
.dish__heart { color: var(--wine); font-family: var(--sans); font-size: .85rem; margin-left: .35em; vertical-align: .15em; }
.dish__tags { margin-left: .45em; }
.dish__tag { font-family: var(--sans); font-size: .85rem; font-style: italic; font-weight: 400; color: var(--green); }
.dish__tag + .dish__tag::before { content: ", "; }
.dish__desc { grid-column: 1; font-size: .98rem; color: var(--ink-soft); margin: .3rem 0 0; line-height: 1.55; }
.dish__price {
  grid-column: 2; grid-row: 1; font-size: 1.05rem; font-weight: 500; font-variant-numeric: tabular-nums;
  white-space: nowrap; margin: 0; padding-top: .2em;
}

.sizes-head, .dish__sizes {
  display: grid; grid-template-columns: repeat(var(--n, 3), 3.6rem); text-align: right;
  font-variant-numeric: tabular-nums;
}
.sizes-head { justify-content: end; font-size: .82rem; color: var(--ink-soft); padding: .6rem 0 0; }
.dish--sizes .dish__sizes { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding-top: .2em; }
.dish__sizes div { margin: 0; }
.dish__sizes dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dish__sizes dd { margin: 0; font-size: 1.02rem; font-weight: 500; }
.dish__sizes .empty { color: var(--line); }
@media (max-width: 560px) {
  .sizes-head, .dish__sizes { grid-template-columns: repeat(var(--n, 3), 3rem); }
  .dish__sizes dd { font-size: .95rem; }
}

.carte-foot { font-size: .92rem; color: var(--ink-soft); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.carte-status { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--green-deep); color: var(--cream); padding: clamp(64px, 8vw, 110px) 0 40px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line-dark);
}
.footer-brand img { width: 150px; }
.footer-brand p { margin-top: 1.4rem; max-width: 22rem; }
.footer-brand .footer-illu { width: 180px; opacity: .85; margin-top: 2rem; }
.site-footer h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer address, .site-footer p { font-style: normal; color: rgba(246,240,228,.82); font-size: .98rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 28px; font-size: .88rem; color: rgba(246,240,228,.6);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Réservation ---------- */

.booking {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 104px); align-items: start;
}
.booking__text { position: sticky; top: calc(var(--header-h) + 40px); }
.booking__text p { color: var(--ink-soft); max-width: 30rem; }
.booking__text .lead { color: var(--ink); }
.booking__facts { list-style: none; margin: 2.4rem 0 0; padding: 0; max-width: 30rem; border-top: 1px solid var(--line); }
.booking__facts li { display: flex; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .98rem; }
.booking__facts span { flex: 0 0 6.5rem; color: var(--ink); font-weight: 500; }
.booking__frame { background: #fff; padding: clamp(12px, 2vw, 28px) clamp(8px, 1.5vw, 20px) 0; border: 1px solid var(--line); }
.booking__frame iframe { display: block; width: 100%; height: 700px; border: 0; }
.booking__alt { padding: .9rem 0 1.1rem; text-align: center; font-size: .9rem; border-top: 1px solid #efe9de; }
.booking__alt a { color: var(--ink-soft); text-underline-offset: 3px; }
.booking__alt a:hover { color: var(--green); }
@media (max-width: 860px) {
  .booking { grid-template-columns: 1fr; }
  .booking__text { position: static; }
  .booking__frame { margin-inline: calc(var(--gutter) * -1); border-inline: 0; }
  .booking__frame iframe { height: 720px; }
}

/* ---------- Visionneuse photo ---------- */

.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(17, 24, 19, .97); color: var(--cream);
  overscroll-behavior: contain;
}
.lightbox[open] { display: flex; flex-direction: column; animation: lightbox-in .35s ease both; }
.lightbox::backdrop { background: transparent; }
.lightbox__figure {
  flex: 1; min-height: 0; margin: 0; display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px) clamp(12px, 4vw, 56px) 0;
}
.lightbox__img {
  width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain;
  opacity: 0; transform: scale(.985); transition: opacity .4s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  user-select: none; -webkit-user-drag: none;
}
.lightbox__img.is-ready { opacity: 1; transform: none; }
.lightbox__bar {
  display: flex; justify-content: center; gap: clamp(28px, 6vw, 72px);
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
}
.lightbox__bar button {
  background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0;
  color: rgba(246,240,228,.72); font: inherit; font-size: .95rem; letter-spacing: .01em;
  padding: .35rem 0; cursor: pointer; transition: color .2s, border-color .2s;
}
.lightbox__bar button:hover, .lightbox__bar button:focus-visible { color: var(--cream); border-bottom-color: currentColor; outline: 0; }
html.lightbox-open { overflow: hidden; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lightbox[open] { animation: none; }
  .lightbox__img, .masonry__item img { transition: none; }
}
