/* ============================================================
   La Mijoterie — feuille de style partagée
   Bistrot de quartier · Aligre, Paris 12
   ============================================================ */

/* ---------- Fonts ---------- */
/* DM Serif Display (titres) + Bricolage Grotesque (texte/UI) — Google Fonts */

:root {
  /* Couleurs */
  --red:        #bb1627;   /* couleur principale */
  --red-deep:   #98101f;
  --ink:        #2b211c;   /* brun très foncé, texte & fonds sombres */
  --ink-soft:   #4a3d34;
  --paper:      #f6efe4;   /* crème chaud, fond principal */
  --paper-2:    #efe3d1;   /* crème un peu plus profond */
  --card:       #fbf7f0;   /* blanc cassé chaud */
  --wood:       #8a5a34;   /* bois / caramel */
  --tan:        #c9a36b;   /* doré doux */
  --line:       #ddcdb6;   /* filets / bordures */
  --line-dark:  rgba(246,239,228,.16);
  --muted:      #6f6055;   /* texte secondaire */

  /* Typo */
  --serif: "DM Serif Display", Georgia, serif;
  --sans:  "Bricolage Grotesque", system-ui, -apple-system, sans-serif;

  /* Mesure */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.08; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Typo helpers ---------- */
.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }

h1.display {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}
h2.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
}
.lead {
  font-size: clamp(1.12rem, 1.8vw, 1.4rem);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section.tight { padding-block: clamp(48px, 6vw, 84px); }
.bg-paper2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink .lead { color: rgba(246,239,228,.78); }
.bg-ink .eyebrow { color: var(--tan); }
.bg-ink .eyebrow::before { background: var(--tan); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .92em 1.7em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-outline { border-color: currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bg-ink .btn-outline { color: var(--paper); }
.bg-ink .btn-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-ghost { color: var(--red); padding-inline: 0; }
.btn-ghost .arrow { transition: transform .2s ease; }
.btn-ghost:hover .arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,239,228,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.nav__brand { position: relative; z-index: 52; display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 44px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-weight: 500; font-size: .98rem; color: var(--ink);
  position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--red); transition: width .22s ease;
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--red); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }
body.nav-open { overflow: hidden; }
.nav__mobile-cta { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(54px, 7vw, 84px) 36px; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line-dark);
}
.site-footer img.footer-logo { height: 78px; width: auto; margin-bottom: 18px; }
.footer__col h4 {
  font-family: var(--sans); font-weight: 600; font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--tan);
  margin-bottom: 16px;
}
.footer__col a, .footer__col p { color: rgba(246,239,228,.8); margin: 0 0 .5em; font-size: 1rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 26px; font-size: .86rem; color: rgba(246,239,228,.55); flex-wrap: wrap;
}
.footer__bottom a { color: rgba(246,239,228,.7); }
.footer__bottom a:hover { color: #fff; }

/* ---------- Cards / utility ---------- */
.tag {
  display: inline-block; font-weight: 600; font-size: .76rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); background: rgba(187,22,39,.09);
  padding: .42em .9em; border-radius: 999px;
}
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav__cta .btn-ghost,
  .nav__cta > .btn { display: none; }

  .nav__toggle {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 8px 5px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    color: var(--ink);
    position: relative;
    z-index: 52;
  }
  .nav__toggle span {
    width: 25px;
    height: 1.5px;
    margin: 0;
    background: currentColor;
    transform-origin: center;
    transition: transform .22s ease, opacity .18s ease;
  }
  .nav[data-open="true"] .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav[data-open="true"] .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav__links {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: calc(78px + 28px) var(--gutter) 34px;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility 0s .18s;
    z-index: 51;
  }
  .nav[data-open="true"] .nav__links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .18s ease, visibility 0s;
  }
  .nav__links li { width: min(100%, 420px); border-top: 1px solid var(--line); }
  .nav__links li:first-child { border-top: 0; }
  .nav__links a {
    display: block;
    width: 100%;
    padding: 18px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
    text-align: center;
  }
  .nav__links a::after { display: none; }
  .nav__mobile-cta {
    display: block;
    width: auto !important;
    margin-top: 20px;
    padding-top: 0;
    border-top: 0 !important;
    text-align: center;
  }
  .nav__links .nav__mobile-cta .btn {
    display: inline-flex;
    width: auto;
    justify-content: center;
    padding: .92em 1.7em;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
  }
}
@media (max-width: 540px) {
  body { font-size: 17px; }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__cta .btn { padding: .8em 1.2em; font-size: .92rem; }
}

/* ============================================================
   Composants de page
   ============================================================ */

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(90vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,10,.32) 0%, rgba(20,14,10,.05) 38%, rgba(20,14,10,.55) 82%, rgba(20,14,10,.78) 100%);
}
.hero__inner { position: relative; z-index: 2; color: var(--paper); padding-bottom: clamp(48px, 8vw, 96px); padding-top: 120px; }
.hero__inner h1.display { color: var(--paper); max-width: 16ch; }
.hero__sub { color: rgba(246,239,228,.9); font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 46ch; margin: 22px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Concept ---------- */
.concept { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.concept__values { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.concept__values li { background: var(--card); padding: 28px 26px; display: flex; flex-direction: column; gap: 4px; }
.concept__values .v-num { font-family: var(--serif); color: var(--red); font-size: 1.15rem; }
.concept__values strong { font-weight: 600; font-size: 1.08rem; }
.concept__values em { font-style: normal; color: var(--muted); font-size: .95rem; line-height: 1.4; }

/* ---------- Plats ---------- */
.plats__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.plats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.dish { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.dish:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -26px rgba(43,33,28,.45); }
.dish__img { aspect-ratio: 4/5; overflow: hidden; }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dish:hover .dish__img img { transform: scale(1.05); }
.dish__body { padding: 24px 26px 30px; }
.dish__name { font-size: 1.6rem; margin: 14px 0 10px; }
.dish__body p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- Bandeau histoire ---------- */
.histoire-apercu { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.histoire-apercu__media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.histoire-apercu__text h2 { color: var(--paper); }

/* ---------- Infos pratiques ---------- */
.infos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; }
.info-card__title { font-family: var(--serif); font-size: 1.7rem; color: var(--red); margin-bottom: 16px; }
.info-card p { margin: 0 0 .9em; }
.info-card a { color: var(--ink); border-bottom: 1px solid var(--line); }
.info-card a:hover { color: var(--red); border-color: var(--red); }
.muted-note { color: var(--muted); font-size: .92rem; }

/* ---------- Réservation ---------- */
.reservation__inner { text-align: center; }
.reservation__slot {
  max-width: 640px; margin: 0 auto 26px;
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.45);
  min-height: 150px; display: flex; align-items: center; justify-content: center; padding: 28px;
}
.reservation__slot-label { color: var(--muted); font-weight: 500; }
.reservation__fallback { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- En-tête de page (pages intérieures) ---------- */
.page-head { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 5vw, 64px); }
.page-head.center { text-align: center; }
.page-head h1 { font-family: var(--serif); font-size: clamp(2.6rem, 5.5vw, 4.2rem); line-height: 1.04; letter-spacing: -.01em; }
.page-head .lead { margin-top: 18px; max-width: 60ch; }
.page-head.center .lead { margin-inline: auto; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Responsive composants ---------- */
@media (max-width: 880px) {
  .concept { grid-template-columns: 1fr; }
  .plats__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .histoire-apercu { grid-template-columns: 1fr; }
  .infos__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 540px) {
  .concept__values { grid-template-columns: 1fr; }
  .hero { min-height: 84vh; }
}

/* ---------- Histoire ---------- */
.story-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.story-split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story-split.reverse .story-split__media { order: 2; }
.story-split__text h2 { margin-bottom: 22px; }
.story-quote { max-width: 880px; text-align: center; margin-inline: auto; }
.story-quote .eyebrow { justify-content: center; }
.big-quote { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.2; color: var(--paper); margin: 0 0 28px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.value { background: var(--card); padding: 32px 30px; }
.value h3 { font-size: 1.5rem; color: var(--red); margin-bottom: 8px; }
.value p { margin: 0; color: var(--muted); }

/* ---------- Carte ---------- */
.menu-intro { max-width: 720px; }
.menu-block { margin-top: clamp(40px, 5vw, 64px); }
.menu-block:first-of-type { margin-top: 0; }
.menu-block__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; }
.menu-block__head h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--ink); white-space: nowrap; }
.menu-block__head .menu-rule { flex: 1; height: 1px; background: var(--line); }
.menu-block__note { color: var(--muted); font-size: .95rem; font-style: italic; }
.menu-list { display: grid; gap: 4px; }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 16px 0; border-bottom: 1px dotted var(--line); align-items: baseline; }
.menu-item:last-child { border-bottom: 0; }
.menu-item__name { font-weight: 600; font-size: 1.12rem; }
.menu-item__price { font-family: var(--serif); color: var(--red); font-size: 1.2rem; white-space: nowrap; }
.menu-item__desc { grid-column: 1 / -1; color: var(--muted); font-size: .98rem; margin: 0; }
.menu-item__name .veg { color: var(--wood); font-weight: 600; font-size: .82rem; letter-spacing: .04em; }
.formules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.formule { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; text-align: center; }
.formule.feature { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.formule h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 6px; }
.formule .price { font-family: var(--serif); font-size: 2.6rem; color: var(--red); line-height: 1; margin: 14px 0 6px; }
.formule.feature .price { color: var(--tan); }
.formule p { color: var(--muted); margin: 0; }
.formule.feature p { color: rgba(246,239,228,.75); }
.formule .formule-tag { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--red); }
.formule.feature .formule-tag { color: var(--tan); }

/* ---------- Galerie ---------- */
.gallery { columns: 3; column-gap: 18px; }
.gallery figure { margin: 0 0 18px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery img { width: 100%; display: block; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 18px 14px; color: var(--paper); font-size: .95rem; font-weight: 500;
  background: linear-gradient(0deg, rgba(20,14,10,.72), transparent);
  opacity: 0; transform: translateY(8px); transition: .3s ease;
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-block { margin-bottom: 34px; }
.contact-block h2 { font-family: var(--serif); font-size: 1.7rem; color: var(--red); margin-bottom: 12px; }
.contact-block p { margin: 0 0 .5em; }
.contact-block a { border-bottom: 1px solid var(--line); }
.contact-block a:hover { color: var(--red); border-color: var(--red); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 1rem; vertical-align: top; }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table .closed { color: var(--muted); }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 420px; border-radius: var(--radius); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 100%; }

/* ---------- Mentions légales ---------- */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--serif); font-size: 1.6rem; color: var(--red); margin: 38px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--ink-soft); }
.legal a { color: var(--red); border-bottom: 1px solid var(--line); }

/* ---------- Responsive composants 2 ---------- */
@media (max-width: 880px) {
  .story-split { grid-template-columns: 1fr; }
  .story-split.reverse .story-split__media { order: 0; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .formules { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .gallery { columns: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 360px; }
}
@media (max-width: 540px) {
  .values-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
}

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
