/* Démo restaurant Maison Aubrel — identité « bistrot de saison » : crème, brique, olive. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fraunces-400-v5-3-0.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: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/fraunces-700-v5-3-0.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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../kit-auto/fonts/ibm-plex-mono-500-v5-3-0.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
/* Repli calé sur la largeur mesurée de Fraunces : 115,6 % de Times en 400, 115 % de Times gras en 700. */
@font-face { font-family: "Fraunces repli"; font-weight: 400; size-adjust: 115.6%; ascent-override: 84.6%; descent-override: 22.1%; line-gap-override: 0%; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Tinos"), local("Liberation Serif"), local("LiberationSerif"); }
@font-face { font-family: "Fraunces repli"; font-weight: 700; size-adjust: 115%; ascent-override: 85.1%; descent-override: 22.2%; line-gap-override: 0%; src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Tinos Bold"), local("Liberation Serif Bold"), local("LiberationSerif-Bold"); }

:root {
  --k-bg: #fbf6ec;
  --k-paper: #fffdf8;
  --k-surface: #f1e6d3;
  --k-ink: #2b1d14;
  --k-muted: #6a5444;
  --k-line: rgba(43, 29, 20, .15);
  --k-accent: #9c3b22;
  --k-accent-ink: #ffffff;
  --k-accent2: #56602a;
  --k-accent2-gfx: #8a9a45;
  --k-accent-tint: #f6e5dc;
  --k-ok: #2f6b3a;
  --k-radius: 18px;
  --k-radius-s: 12px;
  --k-font-title: "Fraunces", "Fraunces repli", serif;
  --k-font-body: "Fraunces", "Fraunces repli", serif;
  --k-font-num: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ma-ardoise: #2a2b27;
  --ma-craie: #f2efe6;
}

h1 { letter-spacing: -.02em; }
h1 em { font-style: italic; font-weight: 400; color: var(--k-accent); }
.ma-note { font-size: .9375rem; color: var(--k-muted); }
.ma-clair { background: var(--k-paper); }
.ma-nuit { background: #3a1f15; color: #f6eadf; }
.ma-nuit h2 { color: #fff; }
.ma-nuit .k-eyebrow { color: #d6df9f; }
.ma-nuit .k-lead { color: #ead8c8; }
.ma-btn-clair { background: var(--k-bg); border-color: var(--k-bg); color: #3a1f15; }

/* Accueil */
.ma-hero { padding-block: clamp(32px, 6vw, 84px); background: linear-gradient(180deg, var(--k-accent-tint), var(--k-bg) 72%); }
.ma-hero__grid { display: grid; gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (min-width: 960px) { .ma-hero__grid { grid-template-columns: 1.1fr .9fr; } }
.ma-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.ma-ardoise { margin: 0; padding: 24px; border-radius: var(--k-radius); background: var(--ma-ardoise); color: var(--ma-craie); border: 6px solid #6b4a32; box-shadow: 0 16px 36px rgba(43, 29, 20, .25); }
.ma-ardoise__titre { font: 700 1.5rem/1.1 var(--k-font-title); font-style: italic; margin-bottom: 10px; }
.ma-ardoise__filtres { margin: 0 0 14px; }
.ma-puce { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--ma-craie); font-size: .875rem; transition: background-color .3s var(--k-ease), color .3s var(--k-ease); background: var(--ma-craie); color: var(--ma-ardoise); }
.ma-ardoise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ma-ardoise li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-bottom: 10px; border-bottom: 1px dashed rgba(242, 239, 230, .3); transition: opacity .4s var(--k-ease); }
.ma-ardoise small { grid-column: 1 / -1; color: #f0b9a4; font-size: .875rem; transition: opacity .4s var(--k-ease); }
.ma-ardoise__ko { opacity: .5; }
.ma-ardoise__ko span { text-decoration: line-through; }
.ma-ardoise figcaption { margin-top: 14px; font-size: .9375rem; color: #d9d3c4; }
.ma-ardoise.is-depart .ma-puce { background: transparent; color: var(--ma-craie); }
.ma-ardoise.is-depart .ma-ardoise__ko { opacity: 1; }
.ma-ardoise.is-depart .ma-ardoise__ko span { text-decoration: none; }
.ma-ardoise.is-depart small { opacity: 0; }
.ma-ardoise.is-joue .ma-ardoise__ko, .ma-ardoise.is-joue small { transition-delay: .5s; }

.ma-etapes { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: ma; }
.ma-etapes li { counter-increment: ma; padding: 20px; background: var(--k-paper); border: 1px solid var(--k-line); border-radius: var(--k-radius); }
.ma-etapes li::before { content: counter(ma); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--k-accent); color: #fff; font: 500 1rem/1 var(--k-font-num); margin-bottom: 12px; }
.ma-etapes p { color: var(--k-muted); margin: 0; }
.ma-deux { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.ma-infos { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.ma-infos h2 { font-size: 1.25rem; }
.ma-horaires { display: grid; gap: 2px; margin: 0; }
.ma-horaires dt { font-weight: 700; }
.ma-horaires dd { margin: 0 0 10px; color: var(--k-muted); }

/* Carte du jour */
.ma-page h1 { font-size: clamp(2rem, 5.4vw, 3.2rem); }
.ma-filtres { position: sticky; top: 0; z-index: 10; margin: 20px calc(-1 * var(--k-gutter)) 8px; padding: 14px var(--k-gutter) 6px; background: var(--k-bg); border-bottom: 1px solid var(--k-line); }
.ma-filtres .k-choices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-bottom: 8px; gap: 8px; }
.ma-filtre span { display: flex; align-items: center; padding: 10px 14px; font-size: .9375rem; line-height: 1.25; }
.ma-filtre span::before { content: ""; flex: none; width: 18px; height: 18px; margin-right: 10px; border: 2px solid var(--k-accent); border-radius: 5px; background: var(--k-paper); }
.ma-filtre input:checked + span::before { background: var(--k-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ma-compte { margin: 0; font-weight: 700; color: var(--k-accent2); }
.ma-section { margin-top: 32px; }
.ma-plats { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.ma-plat { padding: 18px 20px; background: var(--k-paper); border: 1px solid var(--k-line); border-radius: var(--k-radius-s); transition: opacity .25s var(--k-ease), background-color .25s; }
.ma-plat__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ma-plat h3 { margin: 0 0 4px; font-size: 1.1875rem; }
.ma-plat__tete b { color: var(--k-accent); white-space: nowrap; }
.ma-plat__detail { margin: 0 0 8px; color: var(--k-muted); }
.ma-plat__allergenes { margin: 0; font-size: .875rem; color: var(--k-muted); }
.ma-plat__raison { margin: 8px 0 0; font-weight: 700; color: var(--k-accent); font-size: .9375rem; }
.ma-badge { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #eef1dc; color: var(--k-accent2); font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.ma-plat.is-incompatible { opacity: .55; background: var(--k-surface); }
.ma-plat.is-incompatible h3 { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ma-formule { margin-top: 28px; font-style: italic; }

/* Réserver */
.ma-outil { position: relative; max-width: 860px; margin-top: 24px; background: var(--k-paper); border: 1px solid var(--k-line); border-radius: var(--k-radius); padding: clamp(18px, 4vw, 32px); }
.ma-outil.is-loading [data-next] { pointer-events: none; }
.ma-outil__loading { font-size: .875rem; color: var(--k-muted); margin-bottom: 14px; }
.ma-couverts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ma-couverts .k-choice span { text-align: center; font: 500 1.375rem/1.2 var(--k-font-num); padding: 12px 6px; }
.ma-outil .k-days .k-choice small:last-child { white-space: nowrap; }
.ma-recap { background: var(--k-accent-tint); border-radius: var(--k-radius-s); padding: 18px 20px; margin-bottom: 8px; }
.ma-recap p { margin: 0; }
.ma-recap strong { font-size: 1.25rem; }
.ma-champs { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 20px; }
.ma-statut { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ma-statut li { padding-left: 26px; position: relative; }
.ma-statut li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--k-ok); }
.ma-statut li.is-attente::before { background: var(--k-accent2-gfx); }

/* Privatisation */
.ma-cartes { list-style: none; margin: 16px 0 28px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ma-cartes li { padding: 22px; background: var(--k-paper); border: 1px solid var(--k-line); border-radius: var(--k-radius); }
.ma-cartes p { color: var(--k-muted); margin: 0; }
.ma-cartes .ma-prix { margin-top: 10px; color: var(--k-accent); }

/* Contact, mentions */
.ma-contact { display: grid; gap: 32px; }
@media (min-width: 900px) { .ma-contact { grid-template-columns: 1fr 1fr; } }
.ma-mentions { max-width: 760px; }
.k-mention h2 { font-size: 1.25rem; margin-top: 1.4em; }
.k-choice span { min-height: 48px; }
/* Choix indisponible : la raison reste lisible, seul le libellé est barré. */
.ma-outil .k-choice input:disabled + span { text-decoration: none; }
.ma-outil .k-choice input:disabled + span strong, .ma-outil .k-days input:disabled + span b { text-decoration: line-through; }
