/* ==========================================================
   Maison Basilic — feuille de style
   Changez les couleurs ici : tout le site suit.
   ========================================================== */
:root {
  --basil: #1F4D3A;       /* vert basilic : fonds sombres */
  --basil-2: #2A5E48;
  --basil-deep: #163A2B;
  --tomato: #C63A20;      /* rouge tomate : boutons, accents */
  --tomato-dark: #A82F18;
  --ink: #1B1D1A;         /* texte */
  --muted: #545A52;
  --muted-light: #C9D6CE; /* texte secondaire sur vert */
  --paper: #FBFAF7;       /* fond */
  --white: #FFFFFF;
  --line: #E6E3DC;
  --butter: #F3D27A;      /* petit accent jaune */

  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Helvetica, sans-serif;
  --wrap: 1200px;
  --r-lg: 28px;
  --r: 18px;
  --r-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--basil); }
a:hover { color: var(--tomato); }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--tomato); color: var(--white); padding: 12px 20px; font-weight: 700; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }

h1, h2 { font-family: var(--font-display); font-weight: 800; line-height: 0.98; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(48px, 8vw, 104px); }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: 19px; color: var(--muted); max-width: 56ch; }
.green .lead, .green p { color: var(--muted-light); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-tomato { background: var(--tomato); color: var(--white); }
.btn-tomato:hover { background: var(--tomato-dark); color: var(--white); }
.btn-basil { background: var(--basil); color: var(--white); }
.btn-basil:hover { background: var(--basil-deep); color: var(--white); }
.btn-line { border-color: var(--basil); color: var(--basil); }
.btn-line:hover { background: var(--basil); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--basil); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--basil); }
.brand:hover { color: var(--basil); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); padding: 10px 0; position: relative; }
.nav a:hover { color: var(--tomato); }
.nav a[aria-current="page"] { color: var(--tomato); }
.nav .btn { min-height: 46px; padding: 0 22px; color: var(--white); }
.nav .btn:hover { color: var(--white); }
.open-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.open-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #9AA39B; }
.open-badge.is-open .dot { background: #2E9D5B; }
.open-badge.is-open { color: var(--basil); }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .site-header .open-badge { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: 8px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}

/* ---------- Hero accueil ---------- */
.hero { padding: 40px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.hero-text { display: flex; flex-direction: column; gap: 24px; padding-bottom: 40px; }
.hero-text .tag { font-weight: 600; color: var(--tomato); }
.hero h1 { color: var(--basil); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photos { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 260px 260px; gap: 14px; }
.hero-photos .photo:first-child { grid-row: 1 / 3; border-radius: 220px 220px var(--r) var(--r); }
.hero-photos .photo { border-radius: var(--r); }
.hero-strip { margin-top: 48px; background: var(--basil); color: var(--white); }
.hero-strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 22px; padding-bottom: 22px; }
.hero-strip div { display: flex; flex-direction: column; }
.hero-strip small { color: var(--muted-light); font-size: 13px; }
.hero-strip strong { font-size: 16px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 0; }
  .hero-photos { grid-template-rows: 200px 200px; }
}

/* ---------- Photos ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--r); background: #E8E6DF; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-missing { background: repeating-linear-gradient(135deg, #ECEAE3 0 14px, #E4E1D9 14px 28px); display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.photo.is-missing img { display: none; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.green { background: var(--basil); color: var(--white); }
.green h2 { color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 48px; }
.section-head h2 { max-width: 15ch; color: var(--basil); }
.green .section-head h2 { color: var(--white); }
.section-head p { max-width: 44ch; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Plats signature ---------- */
.dish { display: flex; flex-direction: column; gap: 14px; }
.dish .photo { height: 300px; border-radius: 160px 160px var(--r) var(--r); }
.dish-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dish-head span { font-weight: 700; color: var(--tomato); white-space: nowrap; }
.dish p { color: var(--muted); }

/* ---------- Carte (menu) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.tab { min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.tab:hover { border-color: var(--basil); }
.tab[aria-selected="true"] { background: var(--basil); border-color: var(--basil); color: var(--white); }
.menu-panel[hidden] { display: none; }
.menu-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
@media (max-width: 800px) { .menu-panel { grid-template-columns: 1fr; } }
.menu-item { padding: 22px 0; border-bottom: 1px dashed #CFCAC0; display: flex; flex-direction: column; gap: 6px; }
.menu-item-head { display: flex; align-items: baseline; gap: 10px; }
.menu-item-head h3 { font-size: 20px; }
.menu-item-head .fill { flex: 1; border-bottom: 2px dotted #CFCAC0; transform: translateY(-5px); }
.menu-item-head .price { font-weight: 700; color: var(--tomato); white-space: nowrap; }
.menu-item p { color: var(--muted); font-size: 15px; }
.labels { display: flex; gap: 6px; flex-wrap: wrap; }
.label { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #EAF2ED; color: var(--basil); }
.label.chef { background: #FCEBE7; color: var(--tomato-dark); }
.menu-note { margin-top: 32px; font-size: 14px; color: var(--muted); }

/* ---------- Bloc partagé ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .photo { height: 520px; border-radius: var(--r-lg); }
.split-text { display: flex; flex-direction: column; gap: 22px; }
.split-text h2 { color: var(--basil); }
.green .split-text h2 { color: var(--white); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split .photo { height: 320px; } }

.signature { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--tomato); }

/* ---------- Avis ---------- */
.review { margin: 0; padding: 30px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.review figcaption { font-size: 14px; color: var(--muted); }
.stars { color: var(--tomato); letter-spacing: 2px; font-size: 18px; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 14px; }
.gallery .photo:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery .photo:nth-child(4) { grid-row: span 2; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; } .gallery .photo:nth-child(4) { grid-row: auto; } }

/* ---------- Bandeau CTA ---------- */
.cta { background: var(--tomato); color: var(--white); }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 18ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête de page ---------- */
.page-hero { background: var(--basil); color: var(--white); }
.page-hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(46px, 7vw, 88px); }
.page-hero p { color: var(--muted-light); font-size: 19px; max-width: 50ch; margin-top: 18px; }
.page-hero .photo { height: 280px; border-radius: 160px 160px var(--r) var(--r); }
.crumbs { font-size: 14px; color: var(--muted-light); margin-bottom: 16px; }
.crumbs a { color: var(--muted-light); }
@media (max-width: 800px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero .photo { height: 220px; } }

/* ---------- Formulaires ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-card .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-card { grid-template-columns: 1fr; padding: 24px; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field legend { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm); border: 1.5px solid #D8D4CB; background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--basil); outline: none; background: var(--white); }
.field .error { font-size: 13px; color: #B42318; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D92D20; }
.hint { font-size: 13px; color: var(--muted); }

.guests { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.guests legend { margin-bottom: 8px; padding: 0; }
.guest { position: relative; }
.guest input { position: absolute; opacity: 0; inset: 0; }
.guest span { display: flex; align-items: center; justify-content: center; min-width: 52px; height: 52px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #D8D4CB; font-weight: 700; cursor: pointer; background: var(--paper); }
.guest input:checked + span { background: var(--basil); border-color: var(--basil); color: var(--white); }
.guest input:focus-visible + span { outline: 3px solid var(--tomato); outline-offset: 2px; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-height: 46px; padding: 0 16px; border-radius: var(--r-sm); border: 1.5px solid #D8D4CB; background: var(--paper); font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.slot:hover { border-color: var(--basil); }
.slot[aria-pressed="true"] { background: var(--tomato); border-color: var(--tomato); color: var(--white); }
.slots-empty { font-size: 15px; color: var(--muted); padding: 12px 0; }

.form-success { grid-column: 1 / -1; background: #EAF2ED; border: 1.5px solid var(--basil); padding: 16px 18px; border-radius: var(--r-sm); font-weight: 600; color: var(--basil); }
.form-success[hidden] { display: none; }

/* ---------- Infos pratiques ---------- */
.info-card { background: var(--basil); color: var(--white); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.info-card h2 { font-size: 28px; color: var(--white); }
.info-card a { color: var(--white); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.hours td:last-child { text-align: right; }
.hours tr.today td { color: var(--butter); font-weight: 700; }
.info-row { display: flex; gap: 12px; align-items: flex-start; }
.info-row svg { flex: none; margin-top: 3px; color: var(--butter); }
.map { height: 320px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--basil-deep); color: var(--muted-light); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-grid h3 { color: var(--white); font-size: 16px; margin-bottom: 14px; font-family: var(--font-body); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--muted-light); text-decoration: none; }
.footer-grid a:hover { color: var(--butter); }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer .brand-name small { color: var(--muted-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 24px; font-size: 13px; }
.footer-bottom a { color: var(--muted-light); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Barre mobile ---------- */
.call-bar { display: none; }
@media (max-width: 640px) {
  .call-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); }
  .call-bar .btn { flex: 1; min-height: 50px; padding: 0 10px; }
  body { padding-bottom: 76px; }
}
