/* ==========================================================================
   Les Gourmandises de Léa — feuille de style unique
   Desktop d'abord ; media queries : 991px (tablette), 766px (menu hamburger),
   479px (mobile). Les valeurs viennent de design.md.
   ========================================================================== */

/* ---------- Polices (hébergées sur le site, sous-ensembles latin et latin-ext) ----------
   Alegreya et Raleway sont des polices variables ; Alegreya SC est en 400 et 500. */

@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/alegreya-normal-400-900-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/alegreya-normal-400-900-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Alegreya SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alegreya-sc-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Alegreya SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alegreya-sc-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Alegreya SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/alegreya-sc-normal-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Alegreya SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/alegreya-sc-normal-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Raleway";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-italic-100-900-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Raleway";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-italic-100-900-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-normal-100-900-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-normal-100-900-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Variables ---------- */

:root {
  --bordeaux: #680019;
  --text: #12180E;
  --green-bg: #F9FAF7;
  --green: #5B7848;
  --green-dark: #36472B;
  --green-light: #DFE8D9;
  --pink: #FFE2E9;
  --white: #fff;

  --font-title: "Alegreya", Georgia, serif;
  --font-sc: "Alegreya SC", Georgia, serif;
  --font-body: "Raleway", Arial, sans-serif;

  --section-space: 120px;
  --gutter: 64px;
  --radius: 8px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1 {
  color: var(--bordeaux);
  font-family: var(--font-title);
  font-size: 2.75rem;
  font-weight: 400;
}

h2 {
  color: var(--green);
  font-family: var(--font-body);
  font-size: 2.25rem;
  font-weight: 600;
  text-align: center;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

strong {
  font-weight: 700;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Texte lu par les lecteurs d'écran uniquement (ex. « nouvel onglet »). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  padding: 16px 32px;
  border: 2px solid var(--bordeaux);
  border-radius: var(--radius);
  background: var(--bordeaux);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  background: var(--pink);
  color: var(--bordeaux);
}

.btn-wrap {
  text-align: center;
}

.btn-reserve {
  flex-shrink: 0;
  padding: 12px 16px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.btn-reserve:hover,
.btn-reserve:focus-visible {
  background: var(--green-light);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1440px;
  margin-inline: auto;
  padding: 32px var(--gutter);
}

.header-logo {
  margin-right: auto;
}

.header-logo img {
  width: 160px;
}

.main-nav ul {
  display: flex;
  gap: 48px;
}

.main-nav a {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green);
}

.main-nav a[aria-current="page"] {
  color: var(--bordeaux);
}

.nav-mobile-only,
.menu-toggle {
  display: none;
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-space);
}

.section--green {
  background: var(--green-bg);
}

.text-col {
  max-width: 600px;
  margin-inline: auto;
}

.text-col p + p {
  margin-top: 1.4em;
}

/* ---------- Accueil : hero ---------- */

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 420px);
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero h1 {
  margin-bottom: 56px;
  line-height: 1.2;
  text-align: center;
}

.hero-text p {
  max-width: 560px;
  margin: 0 auto 64px;
}

.hero-img {
  width: 100%;
}

/* ---------- Accueil : valeurs ---------- */

.values h2 {
  margin-bottom: 56px;
}

.lead {
  font-size: 1.5rem;
  text-align: center;
}

.leaves {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 240px));
  justify-content: center;
  gap: 16px;
  margin: 80px auto;
  padding-inline: var(--gutter);
}

.leaves img {
  width: 100%;
}

.values .text-col {
  margin-bottom: 40px;
}

/* ---------- Accueil : restaurant cosy ---------- */

.cosy h2 {
  margin-bottom: 88px;
}

.cosy-grid {
  display: grid;
  grid-template-columns: 440px 490px;
  justify-content: center;
  align-items: start;
  gap: 24px;
  padding-inline: var(--gutter);
}

.cosy-grid img {
  width: 100%;
  border-radius: var(--radius);
}

.cosy-side p {
  margin: 40px 32px 24px;
}

/* ---------- Accueil : avis ---------- */

.reviews h2 {
  margin-bottom: 64px;
}

.review {
  margin: 0 0 120px;
}

.review-stars {
  width: 130px;
  margin-bottom: 16px;
}

.review blockquote {
  margin: 0 0 1.4em;
}

.review blockquote p + p {
  margin-top: 1.4em;
}

.review figcaption {
  font-style: italic;
}

.reviews .review:last-child {
  margin-bottom: 64px;
}

/* ---------- Accueil : frise ---------- */

.frieze img {
  width: 100%;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 80px var(--gutter) 40px;
  font-size: 1.125rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin-inline: auto;
}

.footer-logo {
  justify-self: center;
  width: 120px;
}

.footer-hours {
  justify-self: center;
}

.footer-title {
  margin-bottom: 12px;
  font-weight: 600;
  text-align: center;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-line {
  display: flex;
  align-items: flex-start;
}

.contact-line img {
  flex-shrink: 0;
  margin-right: 8px;
}

.contact-insta img {
  width: 36px;
  height: 36px;
}

.contact-line .contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.05em;
  margin-right: 8px;
}

.contact-line a {
  text-decoration: none;
}

.contact-line a:hover,
.contact-line a:focus-visible {
  color: var(--green);
}

.contact-insta {
  align-items: center;
}

.footer-bottom {
  position: relative;
  max-width: 1200px;
  margin: 64px auto 0;
  text-align: center;
}

.footer-bottom a {
  color: var(--bordeaux);
  text-decoration: none;
}

.footer-bottom p a:hover,
.footer-bottom p a:focus-visible {
  text-decoration: underline;
}

/* Bouton fixe, qui apparaît progressivement au défilement (js/main.js).
   Sans JavaScript, il reste toujours visible. */
.back-to-top {
  position: fixed;
  z-index: 20;
  right: var(--gutter);
  bottom: 32px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text);
  color: var(--white);
}

.footer-bottom .back-to-top {
  color: var(--white);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--green);
}

/* L'opacité suit le défilement de la page (js/main.js).
   Tant qu'elle est à 0, le lien n'est ni cliquable ni atteignable au clavier. */
.js .back-to-top {
  opacity: 0;
  visibility: hidden;
}

/* ==========================================================================
   Tablette : 991px et moins
   ========================================================================== */

@media (max-width: 991px) {
  :root {
    --section-space: 60px;
    --gutter: 32px;
  }

  body {
    font-size: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .btn {
    font-size: 1rem;
  }

  .btn-reserve {
    font-size: 1rem;
  }

  .br-desktop {
    display: none;
  }

  .header-inner {
    gap: 24px;
    padding-block: 24px;
  }

  .header-logo img {
    width: 120px;
  }

  .main-nav ul {
    gap: 24px;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero h1 {
    margin-bottom: 24px;
  }

  .hero-text p {
    margin-bottom: 32px;
  }

  .values h2 {
    margin-bottom: 32px;
  }

  .lead {
    font-size: 1.125rem;
  }

  .leaves {
    grid-template-columns: repeat(4, minmax(0, 160px));
    margin-block: 40px;
  }

  .text-col {
    padding-inline: var(--gutter);
  }

  .cosy h2 {
    margin-bottom: 40px;
  }

  .cosy-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 16px;
  }

  .cosy-side p {
    margin: 24px 16px 24px;
  }

  .reviews h2 {
    margin-bottom: 40px;
  }

  .review {
    margin-bottom: 64px;
  }

  .reviews .review:last-child {
    margin-bottom: 40px;
  }

  .site-footer {
    padding-top: 48px;
    font-size: 0.9rem;
  }

  .footer-inner {
    gap: 24px;
  }

  .footer-contact {
    gap: 20px;
  }

  .footer-bottom {
    margin-top: 40px;
    padding-inline: 64px;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   Menu hamburger : 766px et moins
   ========================================================================== */

@media (max-width: 766px) {
  .site-header {
    box-shadow: 0 4px 12px rgba(18, 24, 14, 0.12);
  }

  .header-inner {
    padding-block: 12px;
  }

  .btn-reserve {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
  }

  .menu-toggle .icon-close,
  .is-open .menu-toggle .icon-burger {
    display: none;
  }

  .is-open .menu-toggle .icon-close {
    display: block;
  }

  .nav-mobile-only {
    display: inline;
  }

  /* Sans JavaScript, les liens restent affichés sous le logo. */
  .js .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 12px rgba(18, 24, 14, 0.12);
  }

  .js .is-open .main-nav {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 20px var(--gutter);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-img {
    max-width: 420px;
  }

  .cosy-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .cosy-front {
    max-width: 240px;
  }

  .cosy-inside {
    display: none;
  }

  .mobile-break {
    display: block;
    margin-top: 1.4em;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
  }

  .footer-contact {
    align-items: center;
  }

  .footer-bottom {
    padding-inline: 0;
    padding-bottom: 64px;
  }
}

/* ==========================================================================
   Mobile : 479px et moins
   ========================================================================== */

@media (max-width: 479px) {
  :root {
    --section-space: 36px;
    --gutter: 20px;
  }

  body {
    font-size: 0.8rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .btn {
    font-size: 0.75rem;
  }

  .hero-inner {
    gap: 32px;
  }

  .hero h1 {
    margin-bottom: 16px;
  }

  .hero-text p {
    margin-bottom: 24px;
  }

  .values h2 {
    margin-bottom: 16px;
  }

  .lead {
    padding-inline: var(--gutter);
    font-size: 0.8rem;
  }

  .leaves {
    grid-template-columns: repeat(2, minmax(0, 130px));
    gap: 12px 40px;
    margin-block: 16px 24px;
  }

  .values .text-col {
    margin-bottom: 24px;
  }

  .cosy h2 {
    margin-bottom: 24px;
  }

  .cosy-front {
    max-width: 160px;
  }

  .cosy-side p {
    margin: 32px 0 24px;
  }

  .reviews h2 {
    margin-bottom: 24px;
  }

  .review {
    margin-bottom: 40px;
  }

  .review-stars {
    width: 100px;
    margin-bottom: 8px;
  }

  .site-footer {
    padding-top: 36px;
    font-size: 0.8rem;
  }

  .contact-insta img {
    width: 24px;
    height: 24px;
  }

  .back-to-top {
    bottom: 20px;
    width: 36px;
    height: 36px;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================================================
   Page « La carte »
   ========================================================================== */

.carte {
  padding: var(--section-space) var(--gutter);
}

.carte h1 {
  margin-bottom: 64px;
  font-size: 4.25rem;
  text-align: center;
}

/* Liens d'ancre 👉 */

.carte-anchors {
  width: fit-content;
  margin: 56px auto 80px;
  font-size: 1.4rem;
  font-weight: 500;
}

.carte-anchors li + li {
  margin-top: 8px;
}

.carte-anchors li::before {
  content: "👉";
  margin-right: 0.4em;
}

.carte-anchors a {
  color: var(--green);
  text-decoration: none;
}

.carte-anchors a:hover,
.carte-anchors a:focus-visible {
  text-decoration: underline;
}

/* Encadrés */

.menu-card {
  max-width: 940px;
  margin: 0 auto;
  padding: 60px 48px;
  border: 2px solid var(--green-light);
  border-radius: var(--radius);
  scroll-margin-top: 24px;
}

.menu-card + .menu-card {
  margin-top: 60px;
}

.menu-card h2 {
  margin-bottom: 72px;
}

.menu-card h2 + .price-line {
  margin-top: -48px;
  margin-bottom: 72px;
}

.menu-group + .menu-group {
  margin-top: 96px;
}

.menu-card h3 {
  margin-bottom: 32px;
  color: var(--green-dark);
  font-family: var(--font-sc);
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
}

.menu-sub {
  margin: 40px 0 24px;
  font-family: var(--font-sc);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
}

.menu-card h3 + .menu-sub {
  margin-top: 0;
}

.menu-note {
  margin: -8px 0 32px;
  text-align: center;
}

.menu-text {
  max-width: 640px;
  margin-inline: auto;
}

.price-line {
  margin-bottom: 40px;
  font-size: 1.125rem;
  text-align: center;
}

.price-line .item-price {
  margin-left: 32px;
}

/* Plats et boissons */

.items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 56px;
}

/* Un élément resté seul sur sa ligne est centré. */
.items > .item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 28px);
}

.items-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 56px;
}

.items-stack {
  display: grid;
  align-content: start;
  gap: 28px;
}

.items-center {
  width: min(100%, 500px);
  margin: 56px auto 0;
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.item-name,
.item-price {
  font-family: var(--font-sc);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
}

.item-price {
  white-space: nowrap;
}

.item-desc {
  margin-top: 6px;
  line-height: 1.2;
}

.item-meta {
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.2;
}

.item-variants {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.item-variants span {
  text-transform: none;
}

.item-option {
  margin-top: 8px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
}

.item-option .item-price {
  font-size: 1.4rem;
}

/* Petites mentions en exposant : « sec », « 33 cl »… */
sup.vol {
  margin-left: 0.3em;
  font-family: var(--font-body);
  font-size: 0.55em;
  line-height: 0;
  text-transform: none;
}

/* Vins et bière pression : nom, puis deux contenances avec leur prix */

.wines {
  display: grid;
  gap: 24px;
  max-width: 780px;
  margin-inline: auto;
}

.wine {
  display: grid;
  grid-template-columns: 1fr 200px 170px;
  align-items: center;
  gap: 16px;
}

.wine-price {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.wine-price .vol {
  font-size: 1rem;
}

/* ---------- La carte : tablette ---------- */

@media (max-width: 991px) {
  .carte h1 {
    margin-bottom: 40px;
    font-size: 2.5rem;
  }

  .carte-anchors {
    margin: 40px auto 56px;
  }

  .menu-card {
    padding: 48px 32px;
  }

  .menu-card h2 {
    margin-bottom: 48px;
  }

  .menu-card h2 + .price-line {
    margin-top: -32px;
    margin-bottom: 48px;
  }

  .menu-group + .menu-group {
    margin-top: 64px;
  }

  .menu-card h3 {
    margin-bottom: 24px;
    font-size: 1.6rem;
  }

  .menu-sub {
    font-size: 1.2rem;
  }

  .items,
  .items-cols {
    gap: 28px 32px;
  }

  .items > .item:last-child:nth-child(odd) {
    width: calc(50% - 16px);
  }

  .items-center {
    width: min(100%, 420px);
  }

  .item-name,
  .item-price {
    font-size: 1.4rem;
  }

  .item-meta {
    font-size: 0.875rem;
  }

  .item-variants {
    font-size: 0.75rem;
  }

  .item-option {
    font-size: 1rem;
  }

  .item-option .item-price {
    font-size: 1.125rem;
  }

  .price-line {
    font-size: 1rem;
  }

  .wine {
    grid-template-columns: 1fr 160px 140px;
  }

  .wine-price .vol {
    font-size: 0.875rem;
  }
}

/* ---------- La carte : une colonne à 766px et moins ---------- */

@media (max-width: 766px) {
  .items,
  .items-cols {
    grid-template-columns: 1fr;
  }

  .items > .item:last-child:nth-child(odd),
  .items-center {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .items-center {
    margin-top: 28px;
  }

  /* Vins : nom centré, puis les deux contenances sur une ligne */
  .wine {
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 4px 24px;
    text-align: center;
  }

  .wine .item-name {
    grid-column: 1 / -1;
  }
}

/* ---------- La carte : mobile ---------- */

@media (max-width: 479px) {
  .carte h1 {
    margin-bottom: 24px;
    font-size: 2rem;
  }

  .carte-anchors {
    margin: 24px auto 32px;
    font-size: 1rem;
  }

  /* Plus de cadre : un simple trait sépare les encadrés. */
  .menu-card {
    padding: 32px 0 0;
    border: 0;
    border-top: 2px solid var(--green-light);
    border-radius: 0;
  }

  .menu-card + .menu-card {
    margin-top: 36px;
  }

  .menu-card h2 {
    margin-bottom: 24px;
  }

  .menu-card h2 + .price-line {
    margin-top: -8px;
    margin-bottom: 24px;
  }

  .menu-group + .menu-group {
    margin-top: 36px;
  }

  .menu-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
  }

  .menu-sub {
    margin: 24px 0 12px;
    font-size: 0.9rem;
  }

  .menu-note {
    margin: -4px 0 20px;
  }

  .items,
  .items-cols,
  .items-stack {
    gap: 20px;
  }

  .items-center {
    margin-top: 20px;
  }

  .item-name,
  .item-price {
    font-size: 1rem;
  }

  .item-desc {
    margin-top: 2px;
  }

  .item-meta {
    margin-top: 2px;
    font-size: 0.7rem;
  }

  .item-variants {
    font-size: 0.6rem;
  }

  .item-option {
    font-size: 0.8rem;
  }

  .item-option .item-price {
    font-size: 0.9rem;
  }

  .price-line {
    margin-bottom: 20px;
    font-size: 0.8rem;
  }

  .price-line .item-price {
    margin-left: 16px;
  }

  .wines {
    gap: 16px;
  }

  .wine {
    gap: 0 16px;
  }

  .wine-price {
    gap: 6px;
  }

  .wine-price .vol {
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   Page « Mentions légales »
   ========================================================================== */

.legal {
  max-width: calc(660px + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--section-space) var(--gutter);
}

.legal h1 {
  margin-bottom: 24px;
  color: var(--green);
  font-family: var(--font-body);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
}

.legal h2 {
  margin: 56px 0 16px;
  font-size: 2rem;
  text-align: left;
}

.legal p + p {
  margin-top: 1.4em;
}

.legal a {
  color: var(--bordeaux);
  text-decoration: none;
}

.legal a:hover,
.legal a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .legal h1 {
    font-size: 1.8rem;
  }

  .legal h2 {
    margin-top: 40px;
    font-size: 1.6rem;
  }
}

@media (max-width: 479px) {
  .legal h1 {
    margin-bottom: 16px;
    font-size: 1.4rem;
  }

  .legal h2 {
    margin: 32px 0 12px;
    font-size: 1.4rem;
    line-height: 1.2;
  }
}

/* ==========================================================================
   Page 404
   ========================================================================== */

.error-page {
  padding: 60px var(--gutter);
  background: var(--green-bg);
  text-align: center;
}

.error-page img {
  width: 360px;
  margin: 0 auto 24px;
}

/* La phrase est le titre de la page, mais garde le style d'un texte. */
.error-page h1 {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .error-page {
    padding-block: 36px;
  }

  .error-page img {
    width: 240px;
    margin-bottom: 16px;
  }

  .error-page h1 {
    font-size: 1rem;
  }
}

@media (max-width: 479px) {
  .error-page h1 {
    font-size: 0.8rem;
  }
}
