/* ============================================================
   Meldire — Restaurant gastronomique de casino
   Concept: « Editorial Azur »
   Design system + base styles (mobile-first, no scroll animations)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (source) */
  --baltic-blue: #05668d;
  --rich-cerulean: #427aa1;
  --alice-blue: #ebf2fa;
  --sage-green: #679436;
  --lime-moss: #a5be00;

  /* Semantic tokens */
  --color-background: #f4f8fc;
  --color-surface: #ffffff;
  --color-surface-soft: var(--alice-blue);

  --color-text: #0d2436;
  --color-text-muted: #4c657a;

  --color-primary: var(--baltic-blue);
  --color-primary-soft: var(--rich-cerulean);
  --color-accent: var(--sage-green);
  --color-accent-bright: var(--lime-moss);

  --color-border: #d4e2ef;
  --color-overlay: rgba(5, 102, 141, 0.55);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 76px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13, 36, 54, 0.08);
  --shadow-md: 0 8px 30px rgba(13, 36, 54, 0.10);
  --shadow-lg: 0 24px 60px rgba(5, 102, 141, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { line-height: 1.8; color: var(--color-text-muted); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-primary-soft);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: var(--color-text);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--soft { background: var(--color-surface-soft); }
.section--primary { background: var(--color-primary); color: var(--alice-blue); }
.section--primary h2, .section--primary h3 { color: var(--alice-blue); }
.section--primary p { color: rgba(235, 242, 250, 0.82); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 48ch; }

.grid { display: grid; gap: clamp(1.5rem, 4vw, 2.75rem); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-primary); color: #fff !important; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-soft); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: var(--sage-green); filter: brightness(1.08); }
.btn--ghost { border: 1.5px solid var(--color-border); color: var(--color-primary); }
.btn--ghost:hover { border-color: var(--color-primary); background: var(--color-surface); }
.btn--light { background: var(--alice-blue); color: var(--color-primary); }
.btn--light:hover { background: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(244, 248, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.brand span { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-accent); font-family: var(--font-sans); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text);
  position: relative;
  padding-block: 0.25rem;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--color-accent);
  transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--color-primary); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--color-primary); transition: transform 0.25s ease, opacity 0.2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel — hidden with display:none by default */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 850;
  background: var(--color-background);
  padding: 2rem var(--gutter);
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-primary);
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav .btn { margin-top: 1.5rem; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .burger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 860px);
  display: flex;
  align-items: center;
  color: #fff;
  background-color: var(--baltic-blue);
  background-image:
    linear-gradient(90deg, rgba(5,102,141,0.86) 0%, rgba(5,102,141,0.35) 100%),
    image-set(url("../images/main.jpg") 1x);
  background-size: cover;
  background-position: center;
}
.hero__inner { max-width: 640px; padding-block: 4rem; }
.hero .eyebrow { color: var(--lime-moss); }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p { color: rgba(235,242,250,0.9); font-size: 1.15rem; margin-bottom: 2rem; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  min-height: clamp(340px, 46vh, 480px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-color: var(--baltic-blue);
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,102,141,0.25) 0%, rgba(5,102,141,0.82) 100%);
}
.page-hero__inner { position: relative; z-index: 1; padding-block: 2.5rem; max-width: 720px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(235,242,250,0.9); margin-top: 0.75rem; max-width: 54ch; }

.bg-main { background-image: linear-gradient(180deg, rgba(5,102,141,0.15), rgba(5,102,141,0.6)), url("../images/main.jpg"); }
.bg-food { background-image: linear-gradient(180deg, rgba(5,102,141,0.15), rgba(5,102,141,0.6)), url("../images/food.jpg"); }
.bg-food2 { background-image: linear-gradient(180deg, rgba(5,102,141,0.15), rgba(5,102,141,0.6)), url("../images/food2.jpg"); }
.bg-chef { background-image: linear-gradient(180deg, rgba(5,102,141,0.15), rgba(5,102,141,0.6)), url("../images/chef.jpg"); }
.bg-vine { background-image: linear-gradient(180deg, rgba(5,102,141,0.15), rgba(5,102,141,0.6)), url("../images/vine.jpg"); }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { padding-block: 1rem; font-size: 0.82rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; color: var(--color-text-muted); }
.breadcrumb li::after { content: "›"; margin-left: 0.5rem; color: var(--color-primary-soft); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a:hover { color: var(--color-primary); }

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { height: 220px; background-size: cover; background-position: center; }
.card__body { padding: 1.75rem; }
.card__body h3 { margin-bottom: 0.6rem; }
.card__body p { font-size: 0.95rem; }

/* Split feature blocks */
.split { display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media {
  min-height: 340px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}
.split__body h2 { margin-bottom: 1rem; }
.split__body p + p { margin-top: 1rem; }

/* Featured image band */
.image-band {
  min-height: clamp(320px, 48vh, 520px);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 720px) { .image-band { background-attachment: scroll; } }

/* ---------- Menu list ---------- */
.menu-group { margin-bottom: 3rem; }
.menu-group h3 { margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--color-accent); display: inline-block; }
.menu-item { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; border-bottom: 1px dashed var(--color-border); }
.menu-item__name { font-family: var(--font-serif); font-size: 1.3rem; color: var(--color-primary); }
.menu-item__desc { font-size: 0.9rem; color: var(--color-text-muted); margin-top: 0.25rem; max-width: 46ch; }
.menu-item__price { font-family: var(--font-serif); font-size: 1.25rem; color: var(--color-accent); white-space: nowrap; }

/* ---------- Stats / feature list ---------- */
.feature { padding: 1.5rem 0; }
.feature h3 { color: var(--color-primary); margin-bottom: 0.5rem; }
.number { font-family: var(--font-serif); font-size: clamp(2.5rem,5vw,3.5rem); color: var(--color-accent); line-height: 1; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { margin-bottom: 2rem; }
.cta-band .btn--light { margin-inline: 0.4rem; }

/* ---------- Forms ---------- */
.form { max-width: 760px; }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--color-primary); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary-soft);
  box-shadow: 0 0 0 3px rgba(66,122,161,0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--consent { flex-direction: row; align-items: flex-start; gap: 0.65rem; }
.field--consent input { width: 18px; height: 18px; margin-top: 0.2rem; flex-shrink: 0; }
.field--consent label { font-weight: 400; font-size: 0.85rem; color: var(--color-text-muted); letter-spacing: normal; }
.form .btn { margin-top: 0.5rem; }

/* ---------- Prose (legal / long text) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: 1.7rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose p, .prose li { color: var(--color-text-muted); }
.prose p { margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--color-primary); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary); color: rgba(235,242,250,0.75); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(235,242,250,0.7); font-size: 0.9rem; margin-top: 1rem; max-width: 34ch; }
.footer-col h4 { color: var(--lime-moss); font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col a { display: block; padding-block: 0.4rem; font-size: 0.9rem; color: rgba(235,242,250,0.78); }
.footer-col a:hover { color: var(--lime-moss); }
.footer-bottom { border-top: 1px solid rgba(235,242,250,0.15); padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.age-note { display: inline-flex; align-items: center; gap: 0.5rem; }
.age-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-pill); border: 1.5px solid var(--lime-moss); color: var(--lime-moss); font-weight: 700; font-size: 0.8rem; }

/* ---------- Age gate modal ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 2000;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(5,36,54,0.94);
  padding: var(--gutter);
}
.age-gate.is-open { display: flex; }
.age-gate__box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 460px; width: 100%;
  padding: clamp(2rem,5vw,3rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.age-gate__box .age-badge { width: 56px; height: 56px; font-size: 1.1rem; margin: 0 auto 1.5rem; border-color: var(--color-accent); color: var(--color-accent); }
.age-gate__box h2 { font-size: 1.9rem; margin-bottom: 0.75rem; }
.age-gate__box p { font-size: 0.95rem; margin-bottom: 1.75rem; }
.age-gate__actions { display: flex; flex-direction: column; gap: 0.75rem; }
.age-gate__deny { font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
  display: none;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 30px rgba(13,36,54,0.12);
  padding: 1.25rem var(--gutter);
}
.cookie-banner.is-open { display: block; }
.cookie-banner__inner { max-width: var(--container); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-banner p { font-size: 0.85rem; margin: 0; flex: 1 1 320px; }
.cookie-banner p a { color: var(--color-primary); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.75rem; }

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-primary); color: #fff; padding: 0.75rem 1rem; z-index: 3000; border-radius: 0 0 var(--radius-md) 0; }
.skip-link:focus { left: 0; }
.divider { width: 60px; height: 3px; background: var(--color-accent); border: none; margin: 1.5rem 0; }
.text-center .divider { margin-inline: auto; }
