/* =========================================================
   Les pieds dans l'eau — design tokens
   Couleurs tirées du lieu : rouge du logo peint, crème de la
   pergola, sable du carrelage et du sisal, ocre des voiles,
   pin des palissades, bleu de l'heure bleue.
   ========================================================= */
:root {
  --rouge: #ac1f03;
  --rouge-fonce: #861802;
  --creme: #f7f0e4;
  --creme-2: #efe4d2;
  --sable: #e2d2b6;
  --ocre: #d9a441;
  --pin: #c49a5c;
  --nuit: #0f1b2d;
  --nuit-2: #1a2a42;
  --encre: #2b1d14;
  --encre-doux: #5f4c3e;
  --blanc: #fffdf8;

  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;

  --header-h: 72px;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1240px;
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgba(43, 29, 20, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--creme); color: var(--encre);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; border-radius: 4px; }

.skip-to-content {
  position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--blanc); color: var(--encre);
  padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-to-content:focus { top: 12px; }

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--rouge); color: var(--blanc); }
.btn--primary:hover { background: var(--rouge-fonce); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.link {
  color: var(--rouge); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.link:hover { color: var(--rouge-fonce); }

.eyebrow {
  font-family: var(--font-hand); font-size: 26px; line-height: 1; color: var(--rouge);
  margin: 0 0 14px; display: block;
}

/* ---------- En-tête : verre → plein ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  color: var(--blanc);
  background: linear-gradient(to bottom, rgba(15,27,45,.72), rgba(15,27,45,0));
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease), color .3s var(--ease);
}
.site-header[data-state="solid"] {
  background: rgba(247,240,228,.94); color: var(--encre);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: rgba(43,29,20,.12);
}
.site-header__inner {
  height: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; transition: opacity .3s var(--ease); }
.brand__mark { width: 34px; height: auto; }
.site-header[data-state="glass"] .brand__mark { filter: brightness(0) invert(1); }
.brand__name { font-family: var(--font-title); font-size: 20px; white-space: nowrap; }
.site-header.is-brand-hidden .brand { opacity: 0; pointer-events: none; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 15.5px;
}
.site-nav a:hover { background: rgba(255,255,255,.14); }
.site-header[data-state="solid"] .site-nav a:hover { background: rgba(43,29,20,.07); }

/* ---------- Survol ---------- */
.flight { position: relative; background: var(--nuit); color: var(--blanc); }
.flight__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.flight__poster, .flight__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.flight__poster { object-fit: cover; object-position: 62% 50%; }
.flight__canvas { opacity: 0; transition: opacity .4s var(--ease); }
.flight.is-ready .flight__canvas { opacity: 1; }
.flight__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(15,27,45,.78) 0%, rgba(15,27,45,.25) 38%, rgba(15,27,45,0) 60%),
    linear-gradient(to right, rgba(15,27,45,.55) 0%, rgba(15,27,45,0) 50%);
  transition: opacity .2s linear;
}
.flight__chapters { position: absolute; inset: 0; pointer-events: none; }
.chapter {
  position: absolute; left: var(--gutter); bottom: clamp(44px, 8vh, 96px);
  width: min(620px, calc(100% - 2 * var(--gutter)));
  opacity: 0; transform: translateY(16px); will-change: opacity, transform;
}
.chapter.is-active { pointer-events: auto; }
.chapter .eyebrow { color: var(--ocre); }
.chapter__title { font-size: clamp(42px, 5vw, 76px); margin-bottom: 16px; text-wrap: balance; }
.chapter--comptoir .chapter__title { font-size: clamp(34px, 4.4vw, 60px); }
.chapter__text { font-size: clamp(17px, 1.35vw, 20px); max-width: 44ch; color: rgba(255,253,248,.92); }
.chapter__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chapter .btn--ghost { color: var(--blanc); }

.flight__logo {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--creme); opacity: 0; pointer-events: none;
}
.flight__logo img { width: auto; height: 42vh; transform-origin: center; will-change: transform; }

.flight__skip {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; color: var(--blanc); text-decoration: none; font-size: 14.5px; font-weight: 500;
  background: rgba(15,27,45,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .3s var(--ease), background .2s;
}
.flight__skip:hover { background: rgba(15,27,45,.7); }
.flight__cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,253,248,.8); transition: opacity .3s;
}
.flight__cue i { width: 1.5px; height: 38px; background: linear-gradient(var(--blanc), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.flight__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.flight__progress i { display: block; height: 100%; width: 100%; background: var(--ocre); transform: scaleX(0); transform-origin: left; }

/* Mouvement réduit : pas de séquence, une image fixe et le texte d'ouverture */
.reduced-motion .flight__canvas, .reduced-motion .flight__cue, .reduced-motion .flight__progress, .reduced-motion .flight__logo { display: none; }
.reduced-motion .flight__sticky { position: relative; }
.reduced-motion .chapter { opacity: 1 !important; transform: none !important; }
.reduced-motion .chapter:not(:first-child) { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) var(--gutter); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.section__title { font-size: clamp(38px, 4.6vw, 64px); margin-bottom: 24px; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.4vw, 21px); color: var(--encre-doux); max-width: 56ch; }

/* Le lieu */
.place { background: var(--creme); }
.place__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.place__text { position: sticky; top: calc(var(--header-h) + 48px); }
.place__logo { width: 88px; margin-bottom: 36px; }
.place__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.place__gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sable); }
.place__gallery img { width: 100%; height: 100%; object-fit: cover; }
.place__gallery figure:nth-child(1) { grid-row: span 2; aspect-ratio: 9 / 16; }
.place__gallery figure:nth-child(2), .place__gallery figure:nth-child(3) { aspect-ratio: 4 / 5; }

/* Du bar au restaurant */
.spaces { background: var(--creme-2); }
.spaces__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
.space { background: var(--blanc); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.space__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sable); }
.space__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.space:hover .space__img img { transform: scale(1.03); }
.space__body { padding: 30px 32px 36px; }
.space__title { font-size: clamp(28px, 2.4vw, 36px); margin-bottom: 12px; }
.space__body p { color: var(--encre-doux); margin: 0; }
.spaces__intro { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; flex-wrap: wrap; }

/* La carte */
.menu { background: var(--creme); }
.menu__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid rgba(43,29,20,.2);
  background: transparent; font: 600 15px var(--font-body); color: var(--encre); cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--encre); border-color: var(--encre); color: var(--creme); }
.tab:hover:not([aria-selected="true"]) { border-color: var(--encre); }
.board {
  background: #fbf6ec; border: 2px solid var(--rouge); border-radius: 6px;
  padding: clamp(28px, 4vw, 56px); box-shadow: var(--shadow);
  background-image: linear-gradient(rgba(172,31,3,.04) 1px, transparent 1px); background-size: 100% 2.2em;
}
.board__groups { columns: 2 320px; column-gap: clamp(32px, 5vw, 72px); }
.board__group { break-inside: avoid; margin-bottom: 34px; }
.board__group h3 { font-family: var(--font-hand); font-size: 32px; color: var(--rouge); margin-bottom: 10px; font-weight: 700; }
.board__item { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; }
.board__item span:first-child { font-weight: 500; }
.board__dots { flex: 1; border-bottom: 1.5px dotted rgba(43,29,20,.3); transform: translateY(-4px); }
.board__price { font-variant-numeric: tabular-nums; font-weight: 600; }
.board__price--todo { font-weight: 500; font-size: 13px; color: var(--encre-doux); border: 1px dashed rgba(43,29,20,.35); border-radius: 6px; padding: 0 6px; }
.menu__note { margin-top: 22px; font-size: 14.5px; color: var(--encre-doux); }
[role="tabpanel"][hidden] { display: none; }

/* Soirées */
.evenings { background: var(--nuit); color: var(--blanc); padding: 0; position: relative; overflow: hidden; }
.evenings__media { position: absolute; inset: 0; }
.evenings__media img { width: 100%; height: 100%; object-fit: cover; }
.evenings__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,27,45,.92) 0%, rgba(15,27,45,.6) 45%, rgba(15,27,45,.1) 100%); }
.evenings__body { position: relative; padding: clamp(110px, 16vw, 220px) var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; }
.evenings__body > div { max-width: 540px; }
.evenings .eyebrow { color: var(--ocre); }
.evenings .lead { color: rgba(255,253,248,.88); }
.evenings .btn { margin-top: 16px; }

/* Infos */
.info { background: var(--creme-2); }
.info__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: stretch; }
.info__list { display: grid; gap: 22px; margin: 32px 0 36px; }
.info__row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(43,29,20,.14); }
.info__row dt { font-weight: 600; }
.info__row dd { margin: 0; color: var(--encre-doux); }
.info__row dd strong { color: var(--encre); font-weight: 600; }
.todo { display: inline-block; font-size: 14px; color: var(--encre-doux); border: 1.5px dashed rgba(43,29,20,.35); border-radius: 8px; padding: 2px 10px; }
.info__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.info__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; }
.info__media img { width: 100%; height: 100%; object-fit: cover; }

/* Pied de page */
.site-footer { background: var(--nuit); color: rgba(255,253,248,.8); padding: 64px var(--gutter) 40px; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: end; }
.site-footer img { width: 70px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 18px; }
.site-footer a { color: var(--blanc); }
.site-footer small { display: block; margin-top: 28px; opacity: .6; font-size: 13px; }

/* Apparition douce des sections */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reduced-motion .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- Écrans moyens / téléphones (affiné à l'étape mobile) ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; }
  .place__grid, .spaces__grid, .info__grid { grid-template-columns: 1fr; }
  .place__text { position: static; }
  .info__row { grid-template-columns: 1fr; gap: 4px; }
  .info__media { min-height: 300px; }
}
@media (max-width: 560px) {
  .brand__name { font-size: 17px; }
  .site-header__cta { padding: 0 14px; }
  .flight__cue { display: none; }
  .chapter__text { display: none; }
  .chapter--arrivee .chapter__text { display: block; }
}
