/* =========================================================
   BARRO — feuille de style
   Couleurs et polices : charte graphique Odd Forms Studio
   ========================================================= */

@font-face {
  font-family: "Montariol";
  src: url("fonts/montariol-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Garton";
  src: url("fonts/WTGartonPlain-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Garton";
  src: url("fonts/WTGartonPlain-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --vert-fonce: #002400;
  --vert-moyen: #7D8C78;
  --vert-clair: #DBEBBF;
  --orange: #F57026;
  --creme: #F5ECE5;   /* utilisé sur Instagram, hors charte */
  --blanc: #FFFFFF;

  --titre: "Montariol", "Arial Black", system-ui, sans-serif;
  --texte: "Garton", "Courier New", ui-monospace, monospace;

  --wrap: 1120px;
  --gutter: 16px;
  --radius: 999px;
  --line: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--vert-clair);
  color: var(--vert-fonce);
  font-family: var(--texte);
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 64px; /* place pour la barre mobile */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--vert-fonce); color: var(--vert-clair); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font-family: var(--texte); font-weight: 700; font-size: 15px; text-decoration: none;
  background: var(--vert-fonce); color: var(--vert-clair);
  border: var(--line) solid var(--vert-fonce); border-radius: var(--radius);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--vert-fonce); }
.btn--ghost:hover { background: var(--vert-fonce); color: var(--vert-clair); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- En-tête ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--vert-clair) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: var(--line) solid var(--vert-fonce);
}
.topbar__logo img { width: 92px; }
.topbar__nav { display: none; gap: 28px; }
.topbar__nav a { text-decoration: none; font-weight: 700; }
.topbar__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  padding: 28px 0 40px;
  text-align: center;
}
.hero__logo { margin: 0; padding: 0 var(--gutter); }
.hero__logo img { width: 100%; max-width: 1000px; margin: 0 auto; }
.hero__tagline {
  margin: 14px var(--gutter) 0;
  font-weight: 700; font-size: 16px; letter-spacing: .02em;
}
.hero__tagline span { white-space: nowrap; }
.hero__mascots {
  display: flex; justify-content: center; align-items: flex-end; gap: 0;
  max-width: 640px; margin: 18px auto 0; padding: 0 var(--gutter);
}
.hero__mascots img { width: 50%; }
.hero__facts {
  list-style: none; margin: 6px auto 0; padding: 0 var(--gutter);
  display: grid; gap: 8px; max-width: 420px;
}
.hero__facts li {
  border: var(--line) solid var(--vert-fonce); border-radius: var(--radius);
  padding: 8px 16px; font-size: 14px;
}
.hero__facts strong { font-weight: 700; margin-right: 6px; }
.hero__cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 22px; padding: 0 var(--gutter);
}

/* ---------- Blocs de couleur ---------- */
.block { padding: 64px 0; border-top: var(--line) solid var(--vert-fonce); }
.block--orange { background: var(--orange); color: var(--vert-fonce); }
.block--dark { background: var(--vert-fonce); color: var(--vert-clair); }
.block--cream { background: var(--creme); }
.block--light { background: var(--vert-clair); }
.block--dark a { color: var(--vert-clair); }

.title {
  font-family: var(--titre); font-weight: 700;
  font-size: clamp(56px, 16vw, 120px); line-height: .9;
  margin: 0 0 10px; letter-spacing: -.01em;
}
.title--center { text-align: center; }
.kicker {
  text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700;
  margin-bottom: 22px;
}

.split { display: grid; gap: 32px; }
.split__illus { margin: 0; display: flex; justify-content: center; align-items: flex-end; gap: 24px; }
.split__illus img { width: 38%; max-width: 180px; }
/* sur fond foncé, les illustrations passent en blanc (charte p.3) */
.block--dark .split__illus img { filter: brightness(0) invert(1); }

/* badge type « À LA CARTE ou EN FORMULE » */
.badge {
  display: inline-block; border: var(--line) solid currentColor; padding: 4px 10px;
  font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .04em;
  margin: 6px 0 16px;
}
.badge span { font-weight: 400; text-transform: none; }
.badge--light { border-radius: var(--radius); padding: 4px 14px; }

.trio { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.trio li { border: var(--line) solid currentColor; border-radius: var(--radius); padding: 4px 14px; font-weight: 700; }

.prices { margin: 0 0 18px; }
.prices > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 0; border-top: var(--line) solid currentColor;
}
.prices > div:last-child { border-bottom: var(--line) solid currentColor; }
.prices dt { font-weight: 700; text-transform: uppercase; font-size: 14px; }
.prices dt em { font-style: normal; font-weight: 400; text-transform: none; }
.prices dt small { font-weight: 400; text-transform: none; font-size: 13px; margin-left: 4px; }
.prices dd { margin: 0; font-weight: 700; white-space: nowrap; }
.note { font-size: 14px; }

.drinks { display: grid; gap: 22px; margin-top: 8px; }
.drinks h3 {
  font-family: var(--titre); font-size: 22px; letter-spacing: .02em;
  margin: 0 0 6px; text-transform: uppercase;
}
.drinks .prices { margin: 0; }
.drinks .prices dt { text-transform: none; font-size: 15px; }

/* Le lieu */
.photo { margin: 0; border: var(--line) solid var(--vert-fonce); overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.privat { display: flex; gap: 14px; align-items: center; margin-top: 24px; }
.privat img { width: 48px; flex: none; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 28px 0 32px; }
.gallery figure { margin: 0; border: var(--line) solid var(--vert-fonce); overflow: hidden; background: var(--vert-moyen); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.03); }
/* visuel clé : toujours carré (charte p.10) */
.gallery .gallery__kv { grid-column: 1 / -1; max-width: 520px; width: 100%; margin: 0 auto; background: var(--blanc); }
.gallery .gallery__kv img { aspect-ratio: 1 / 1; object-fit: contain; }
.gallery .gallery__kv:hover img { transform: none; }

/* Signature « Plat du Jour / Vin du Soir » (variante « unie », charte p.6) */
.signature {
  display: grid; grid-template-columns: auto auto auto; justify-content: center;
  margin: 18px auto 36px; font-family: var(--texte); font-weight: 700; font-size: 18px;
}
.sig {
  display: flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 16px; border: var(--line) solid var(--vert-fonce);
  margin: -1px;
}
.sig--rect { min-width: 92px; }
.sig--circle, .sig--square { width: 44px; padding: 0; }
.sig--circle { border-radius: 50%; }
.sig--fill { background: var(--vert-fonce); color: var(--vert-clair); }
.sig--pill { min-width: 92px; border-radius: var(--radius); background: var(--vert-fonce); color: var(--vert-clair); }

.cards { display: grid; gap: 14px; }
.card {
  background: var(--blanc); border: var(--line) solid var(--vert-fonce); border-radius: 24px;
  padding: 22px 22px 8px;
}
.card h3 { font-family: var(--titre); font-size: 26px; margin: 0 0 10px; text-transform: uppercase; }
.link { font-weight: 700; text-underline-offset: 4px; }
.muted { color: #3d5236; }
.infos__illus { display: flex; justify-content: center; margin-top: 36px; }
.infos__illus img { width: 160px; }

/* ---------- Pied de page ---------- */
.footer {
  background: var(--vert-fonce); color: var(--vert-clair);
  text-align: center; padding: 48px var(--gutter) 40px; font-size: 14px;
}
.footer__logo { width: 180px; margin: 0 auto 20px; }
.footer a { color: var(--vert-clair); }
.footer p { margin: 0 0 6px; }

/* ---------- Barre d'actions mobile ---------- */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  background: var(--vert-fonce); border-top: var(--line) solid var(--vert-fonce);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobilebar a {
  display: flex; align-items: center; justify-content: center; height: 56px;
  color: var(--vert-clair); text-decoration: none; font-weight: 700; font-size: 15px;
  border-right: 1px solid color-mix(in srgb, var(--vert-clair) 30%, transparent);
}
.mobilebar__main { background: var(--orange); color: var(--vert-fonce) !important; border-right: 0 !important; }

/* Page mentions légales */
.legal { padding-bottom: 0; }
.legal__body { max-width: 760px; }
.legal__body .title { font-size: clamp(40px, 10vw, 72px); margin-bottom: 32px; }
.legal__body h2 { font-family: var(--titre); font-size: 22px; text-transform: uppercase; margin: 32px 0 8px; }

/* =========================================================
   Tablette et ordinateur
   ========================================================= */
@media (min-width: 640px) {
  .hero__facts { grid-template-columns: repeat(3, auto); max-width: none; justify-content: center; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .drinks { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

@media (min-width: 900px) {
  body { font-size: 16px; padding-bottom: 0; }
  .mobilebar { display: none; }
  .topbar { padding: 12px 32px; }
  .topbar__nav { display: flex; }
  .topbar__logo img { width: 110px; }
  .hero { padding: 48px 0 72px; }
  .hero__tagline { font-size: 20px; }
  .hero__mascots { max-width: 720px; }
  .block { padding: 96px 0; }
  .split { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 64px; }
  .split--photo { grid-template-columns: 1fr 1fr; }
  #soir .split { grid-template-columns: 2.2fr 1fr; }
  .split__illus img { width: 45%; max-width: 220px; }
}
