/* TEBSI — feuille de style du site public */

@font-face { font-family: "Rakkas"; src: url(../fonts/rakkas-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url(../fonts/karla-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url(../fonts/karla-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Karla"; src: url(../fonts/karla-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Karla"; src: url(../fonts/karla-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Couleurs de marque : remplacées par celles choisies dans l'app gérant (Réglages › Couleurs du site) */
  --primaire: #6b3f24;   /* marron */
  --primaire-fonce: #4f2e1a;
  --second: #3f6b3a;     /* vert */
  --second-clair: color-mix(in srgb, var(--second) 13%, white);

  --chaux: #f6f2ec;      /* mur de terre claire */
  --blanc: #ffffff;
  --encre: #2b1e16;
  --encre-douce: #6a5a4d;
  --safran: #c9973a;     /* laiton du heurtoir, utilisé avec parcimonie */
  --safran-clair: #f6ead2;
  --harissa: #b3352b;
  --trait: #e3dacd;

  --display: "Rakkas", Georgia, serif;
  --texte: "Karla", system-ui, sans-serif;

  --r-petit: 8px;
  --r-arche: 999px 999px 14px 14px;
  --page: min(1120px, 100% - 32px);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--chaux); color: var(--encre); font: 400 1.0625rem/1.6 var(--texte); }
img, svg { max-width: 100%; display: block; }
main { overflow-wrap: anywhere; }
a { color: var(--primaire); text-underline-offset: 3px; }
a:hover { color: var(--primaire-fonce); }
:focus-visible { outline: 3px solid var(--safran); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--encre); color: #fff; padding: 8px 14px; z-index: 50; border-radius: var(--r-petit); }
.skip:focus { left: 8px; }
.wrap { width: var(--page); margin-inline: auto; }
.muted { color: var(--encre-douce); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(16px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--chaux) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait);
}
.brand { font-family: var(--display); font-size: 1.75rem; color: var(--primaire); text-decoration: none; line-height: 1; letter-spacing: .04em; }
.topbar ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.topbar .menu { margin-left: auto; }
.topbar .menu a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--encre); text-decoration: none; font-weight: 500; white-space: nowrap; }
.topbar .menu a:hover { background: var(--blanc); }
.topbar a[aria-current="page"] { color: var(--primaire); }
.nav-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 18px; border-radius: 999px; background: var(--primaire); color: #fff !important; text-decoration: none; font-weight: 700; white-space: nowrap; }
.nav-cta:hover { background: var(--primaire-fonce); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--trait); background: var(--blanc); color: var(--encre); cursor: pointer; place-items: center; flex: none; }
@media (max-width: 920px) {
  .topbar { gap: 10px; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: grid; }
  .topbar .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--chaux); border-bottom: 1px solid var(--trait); box-shadow: 0 16px 30px rgba(43, 30, 22, .12); padding: 8px 16px 16px; margin: 0; }
  .topbar .menu.ouvert { display: block; }
  .topbar .menu ul { flex-direction: column; align-items: stretch; gap: 0; }
  .topbar .menu a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--trait); font-size: 1.1rem; }
  .topbar .menu li:last-child a { border-bottom: 0; }
}
@media (max-width: 360px) { .brand { font-size: 1.45rem; } .nav-cta { padding: 8px 14px; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--texte); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primaire { background: var(--primaire); color: #fff; }
.btn-primaire:hover { background: var(--primaire-fonce); color: #fff; }
.btn-safran { background: var(--safran); color: var(--encre); }
.btn-safran:hover { background: #d4951c; color: var(--encre); }
.btn-contour { border-color: var(--primaire); color: var(--primaire); background: transparent; }
.btn-contour:hover { background: var(--primaire); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-bloc { width: 100%; }

/* ---------- Accueil : héros ---------- */
.hero { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; padding: 48px 0 0; }
.hero-text { padding-bottom: 56px; }
.hero h1 { font-size: clamp(4.5rem, 14vw, 9.5rem); color: var(--primaire); line-height: .85; margin: 0 0 .15em; letter-spacing: .02em; }
.hero .lead { font-size: clamp(1.2rem, 2.2vw, 1.45rem); max-width: 30ch; margin-bottom: 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--encre-douce); }
.status.is-open::before { background: var(--second); box-shadow: 0 0 0 4px var(--second-clair); }
.hero-door { position: relative; justify-self: center; width: min(360px, 100%); }
.door { width: 100%; height: auto; overflow: visible; }
.door-frame { fill: var(--blanc); stroke: var(--trait); stroke-width: 1.5; }
.door-frame-inner { fill: none; stroke: var(--second); stroke-width: 6; }
.door-leaf { fill: var(--primaire); }
.door-glow { stroke: var(--primaire-fonce); stroke-width: 3; }
.door-studs circle { fill: var(--encre); }
.door-studs circle:nth-child(3n) { fill: #1d130c; }
.door-knocker { fill: none; stroke: var(--safran); stroke-width: 4; }
.hero-door::after { /* seuil de pierre */
  content: ""; position: absolute; left: -6%; right: -6%; bottom: -10px; height: 12px; background: var(--trait); border-radius: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .door-studs circle { animation: clou .5s backwards; }
  .door-studs circle:nth-child(4n+1) { animation-delay: .05s; }
  .door-studs circle:nth-child(4n+2) { animation-delay: .12s; }
  .door-studs circle:nth-child(4n+3) { animation-delay: .19s; }
  @keyframes clou { from { opacity: 0; transform: scale(.4); transform-origin: center; transform-box: fill-box; } }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 28px; }
  .hero-door { order: -1; width: min(220px, 60%); margin-bottom: 22px; }
  .hero-text { padding-bottom: 40px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

/* ---------- Bandeau vert (sous la porte) ---------- */
.band { background: var(--second); color: #fff; padding: 56px 0; }
.band a { color: #fff; }
.band-grid { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.band h3 { color: #fff; margin-bottom: .3em; }
.band p { margin: 0; color: color-mix(in srgb, var(--second) 18%, white); }
@media (max-width: 820px) { .band-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { width: var(--page); margin: 0 auto 32px; max-width: 1120px; }
.section-head p { max-width: 60ch; color: var(--encre-douce); }

.histoire { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; width: var(--page); margin: 0 auto; align-items: center; }
.histoire p { max-width: 58ch; }
.histoire .arche {
  aspect-ratio: 4 / 5; width: min(400px, 100%); justify-self: center; border-radius: var(--r-arche); background: var(--safran-clair);
  display: grid; place-items: center; padding: 32px; text-align: center; border: 2px solid var(--safran);
}
.histoire .arche p { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; color: var(--encre); margin: 0; }
@media (max-width: 820px) { .histoire { grid-template-columns: 1fr; } .histoire .arche { aspect-ratio: auto; border-radius: 140px 140px 14px 14px; padding: 56px 24px 32px; } }

/* ---------- La carte ---------- */
.carte { background: var(--blanc); }
.carte-nav { width: var(--page); margin: 0 auto 24px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.carte-nav a { flex: none; padding: 8px 16px; border: 1px solid var(--trait); border-radius: 999px; text-decoration: none; color: var(--encre); font-weight: 500; background: var(--chaux); }
.carte-nav a:hover { border-color: var(--primaire); color: var(--primaire); }
.carte-cols { width: var(--page); margin: 0 auto; columns: 2 420px; column-gap: 64px; }
.rubrique { break-inside: avoid; margin-bottom: 40px; }
.rubrique h3 { color: var(--primaire); border-bottom: 2px solid var(--primaire); padding-bottom: 6px; margin-bottom: 14px; }
.plat { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 10px 0; border-bottom: 1px dashed var(--trait); }
.plat:last-child { border-bottom: 0; }
.plat-nom { font-weight: 700; }
.plat-prix { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plat-desc { grid-column: 1 / -1; color: var(--encre-douce); font-size: .97rem; margin: 0; }
.plat-photo { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin: 6px 0; }
.tag { display: inline-block; font-size: .8rem; font-weight: 500; padding: 1px 9px; border-radius: 999px; background: var(--second-clair); color: var(--second); margin-left: 6px; vertical-align: 2px; }
.plat.indispo { opacity: .55; }
.carte-cta { width: var(--page); margin: 16px auto 0; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Infos pratiques ---------- */
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; width: var(--page); margin: 0 auto; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-today dt::after { content: " · aujourd’hui"; color: var(--second); font-weight: 400; }
.hours-compact div { padding: 3px 0; border: 0; justify-content: flex-start; flex-wrap: wrap; gap: 0 10px; }
.hours-compact .is-today dt::after { content: none; }
.carte-map { border: 0; width: 100%; height: 300px; border-radius: 14px; background: var(--trait); }
.services { display: grid; gap: 12px; margin-top: 24px; }
.service { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--blanc); border: 1px solid var(--trait); }
.service strong { display: block; }
.service svg { flex: none; width: 28px; height: 28px; color: var(--primaire); }
@media (max-width: 820px) { .infos { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.footer { background: var(--encre); color: #c7d0e0; padding: 48px 0 24px; margin-top: 0; }
.footer a { color: #fff; }
.footer-inner { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-brand { font-family: var(--display); font-size: 2rem; color: #fff; margin: 0 0 4px; }
.footer .hours dd { text-align: left; color: #fff; }
.footer-legal { width: var(--page); margin: 32px auto 0; font-size: .9rem; border-top: 1px solid color-mix(in srgb, white 15%, var(--encre)); padding-top: 18px; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Formulaires ---------- */
.page-titre { width: var(--page); margin: 40px auto 24px; }
.page-titre h1 { font-size: clamp(2.6rem, 7vw, 4rem); color: var(--primaire); margin-bottom: .15em; }
.page-titre p { color: var(--encre-douce); max-width: 60ch; }
.panneau { background: var(--blanc); border: 1px solid var(--trait); border-radius: 16px; padding: clamp(20px, 4vw, 32px); }
.champ { margin-bottom: 18px; }
.champ label, .champ .label { display: block; font-weight: 700; margin-bottom: 6px; }
.champ small { display: block; color: var(--encre-douce); margin-top: 4px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=search], input[type=date], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--trait); border-radius: 10px;
  font: inherit; color: inherit; background: var(--blanc);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primaire); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primaire) 20%, transparent); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .duo { grid-template-columns: 1fr; } }
.honey { position: absolute; left: -5000px; }
.alerte { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.alerte-erreur { background: #fbe7e5; color: var(--harissa); }
.alerte-info { background: var(--safran-clair); color: #6b4a09; }
.alerte-ok { background: var(--second-clair); color: var(--second); }

/* Pastilles de choix (créneaux, mode, couverts) */
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix label {
  display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--trait); border-radius: 999px; background: var(--blanc); cursor: pointer; font-weight: 500; font-variant-numeric: tabular-nums;
}
.choix label:hover { border-color: var(--primaire); }
.choix input:checked + label { background: var(--primaire); border-color: var(--primaire); color: #fff; }
.choix input:focus-visible + label { outline: 3px solid var(--safran); outline-offset: 2px; }
.choix input:disabled + label { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.choix-grand label { flex: 1 1 200px; flex-direction: column; align-items: flex-start; border-radius: 14px; padding: 14px 16px; text-align: left; }
.choix-grand label small { font-weight: 400; color: var(--encre-douce); }
.choix-grand input:checked + label small { color: color-mix(in srgb, var(--second) 18%, white); }

/* ---------- Réservation ---------- */
.resa { width: var(--page); margin: 0 auto 72px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 32px; align-items: start; }
.resa aside .panneau { background: var(--safran-clair); border-color: #f0d79c; }
@media (max-width: 860px) { .resa { grid-template-columns: minmax(0, 1fr); } }
.etape { border: 0; padding: 0; margin: 0 0 28px; }
.etape legend { font-family: var(--display); font-size: 1.5rem; margin-bottom: 12px; padding: 0; }
.compteur { display: inline-flex; align-items: center; border: 1.5px solid var(--trait); border-radius: 999px; overflow: hidden; background: var(--blanc); }
.compteur button { width: 48px; height: 48px; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--primaire); }
.compteur button:hover { background: var(--chaux); }
.compteur output { min-width: 110px; text-align: center; font-weight: 700; }
.vide { color: var(--encre-douce); font-style: italic; }

/* ---------- Commande ---------- */
.commande { width: var(--page); margin: 0 auto 72px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.commande .carte-nav { width: auto; position: sticky; top: 62px; background: var(--chaux); padding: 10px 0; margin: 0 0 8px; z-index: 5; }
.cmd-rubrique { margin-bottom: 36px; }
.cmd-rubrique h2 { font-size: 2rem; color: var(--primaire); }
.cmd-plat { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; margin-bottom: 10px; align-items: center; }
.cmd-plat.has-photo { grid-template-columns: 96px 1fr auto; }
.cmd-plat img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; grid-row: span 2; }
.cmd-plat h3 { font: 700 1.05rem/1.3 var(--texte); margin: 0; }
.cmd-plat p { margin: 4px 0 0; color: var(--encre-douce); font-size: .95rem; }
.cmd-plat .prix { font-weight: 700; font-variant-numeric: tabular-nums; }
.ajout { display: flex; align-items: center; gap: 6px; justify-self: end; }
.rond { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--primaire); background: var(--blanc); color: var(--primaire); font-size: 1.35rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.rond.plein { background: var(--primaire); color: #fff; }
.rond:hover { background: var(--primaire-fonce); border-color: var(--primaire-fonce); color: #fff; }
.qte { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.panier { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
.panier h2 { font-size: 1.9rem; margin-bottom: .3em; }
.panier-lignes { list-style: none; margin: 0 0 12px; padding: 0; max-height: 46vh; overflow: auto; }
.panier-lignes li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--trait); align-items: center; }
.panier-lignes .ajout { gap: 2px; }
.panier-lignes .rond { width: 28px; height: 28px; font-size: 1rem; }
.totaux { margin: 12px 0; }
.totaux div { display: flex; justify-content: space-between; padding: 3px 0; font-variant-numeric: tabular-nums; }
.totaux .total { font-weight: 700; font-size: 1.2rem; border-top: 2px solid var(--encre); margin-top: 6px; padding-top: 8px; }
.jauge { height: 6px; border-radius: 6px; background: var(--chaux); overflow: hidden; margin: 6px 0 4px; }
.jauge span { display: block; height: 100%; background: var(--safran); transition: width .25s; }
.barre-panier { display: none; }
@media (max-width: 960px) {
  .commande { grid-template-columns: minmax(0, 1fr); }
  .panier { position: fixed; inset: auto 0 0 0; top: auto; z-index: 30; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .25s; box-shadow: 0 -10px 40px rgba(43, 30, 22, .25); }
  .panier.ouvert { transform: none; }
  .barre-panier {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 25;
    justify-content: space-between; align-items: center; padding: 14px 20px; border-radius: 999px; border: 0;
    background: var(--primaire); color: #fff; font: 700 1rem var(--texte); cursor: pointer; box-shadow: 0 8px 24px color-mix(in srgb, var(--primaire) 35%, transparent);
  }
  .barre-panier[hidden] { display: none; }
  .voile { position: fixed; inset: 0; background: rgba(43, 30, 22, .4); z-index: 28; }
  .fermer-panier { display: inline-flex !important; }
  body.page-commander main { padding-bottom: 90px; }
}
.fermer-panier { display: none !important; float: right; }

/* ---------- Suivi ---------- */
.suivi { width: min(640px, 100% - 32px); margin: 40px auto 80px; }
.etapes-suivi { list-style: none; padding: 0; margin: 24px 0; }
.etapes-suivi li { position: relative; padding: 0 0 26px 44px; color: var(--encre-douce); }
.etapes-suivi li::before { content: ""; position: absolute; left: 8px; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--trait); background: var(--blanc); }
.etapes-suivi li::after { content: ""; position: absolute; left: 18px; top: 26px; bottom: 2px; width: 2px; background: var(--trait); }
.etapes-suivi li:last-child::after { display: none; }
.etapes-suivi li.fait { color: var(--encre); }
.etapes-suivi li.fait::before { background: var(--second); border-color: var(--second); }
.etapes-suivi li.fait::after { background: var(--second); }
.etapes-suivi li.fait:has(+ li:not(.fait))::after { background: var(--trait); }
.etapes-suivi li.fait::before { content: "✓"; color: #fff; font-size: 12px; font-weight: 700; line-height: 16px; text-align: center; }
.etapes-suivi li.encours { color: var(--second); font-weight: 700; }
.etapes-suivi li.encours::before { box-shadow: 0 0 0 5px var(--second-clair); }
@media (prefers-reduced-motion: no-preference) { .etapes-suivi li.encours::before { animation: pouls 2s ease-in-out infinite; } }
@keyframes pouls { 50% { box-shadow: 0 0 0 9px var(--second-clair); } }

.prose { width: min(760px, 100% - 32px); margin: 40px auto 80px; }
.prose h1 { color: var(--primaire); font-size: clamp(2.4rem, 6vw, 3.4rem); }
.prose h2 { font-size: 1.8rem; margin-top: 1.4em; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---------- Fidélité ---------- */
.titre-page { font-size: clamp(2.4rem, 7vw, 3.6rem); color: var(--primaire); }
.carte-fid {
  position: relative; overflow: hidden; color: #fff; background: var(--primaire);
  border-radius: 20px; padding: 22px 24px 20px; margin: 8px 0 20px; box-shadow: 0 14px 30px color-mix(in srgb, var(--primaire) 30%, transparent);
}
.carte-fid::after { /* arche en filigrane */
  content: ""; position: absolute; right: -70px; top: -30px; width: 170px; height: 230px;
  border: 14px solid color-mix(in srgb, var(--second) 70%, transparent); border-radius: 999px 999px 0 0; opacity: .4;
}
.carte-fid > * { position: relative; z-index: 1; }
.carte-fid-haut { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; }
.carte-fid-nom { font-family: var(--display); font-size: 1.6rem; }
.carte-fid-points { margin: 18px 0 8px; font-size: 1.1rem; }
.carte-fid-points strong { font-family: var(--display); font-weight: 400; font-size: 3.6rem; line-height: 1; margin-right: 6px; }
.jauge-fid { background: color-mix(in srgb, white 22%, transparent); height: 10px; }
.jauge-fid span { background: var(--safran); }
.carte-fid-etat { margin: 10px 0 14px; max-width: 46ch; }
.carte-fid-num { margin: 0; font-size: .9rem; opacity: .8; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.historique { list-style: none; padding: 0; margin: 0; background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; }
.historique li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--trait); }
.historique li:last-child { border-bottom: 0; }
.historique small { display: block; color: var(--encre-douce); }
.historique b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.historique .plus { color: var(--second); }
.historique .moins { color: var(--harissa); }
.fid-etapes { width: var(--page); margin: 0 auto 32px; }
.fid-etapes ol { list-style: none; counter-reset: e; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fid-etapes li { counter-increment: e; background: var(--blanc); border: 1px solid var(--trait); border-radius: 16px; padding: 18px; display: grid; gap: 4px; }
.fid-etapes li::before { content: counter(e); font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--second); }
.fid-etapes li span { color: var(--encre-douce); }
@media (max-width: 760px) { .fid-etapes ol { grid-template-columns: 1fr; } }

.fid-panier { border: 1.5px dashed var(--second); background: var(--second-clair); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; }
.fid-panier p { margin: 0; }
.fid-panier .interrupteur-site { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-weight: 700; cursor: pointer; }
.fid-panier input { width: 22px; height: 22px; accent-color: var(--second); }
.band-fid { background: var(--blanc); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.band-fid .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
.band-fid p { margin: 0; font-size: 1.15rem; max-width: 60ch; }
.band-fid strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--primaire); display: block; }

/* ---------- Compte client ---------- */
.compte { width: var(--page); margin: 0 auto 72px; }
.compte-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: start; }
.compte-grille h2 { font-size: 1.8rem; }
.compte-etroit { max-width: 480px; }
.compte-alerte { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.avantages { margin: 0 0 18px; padding-left: 20px; color: var(--encre-douce); }
.avantages li { margin: 4px 0; }
.lien { background: none; border: 0; padding: 0; color: var(--primaire); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.lien-clair { color: #fff; }
.footer-app { width: var(--page); margin: 28px auto 0; }
.carte-fid .niveau { background: color-mix(in srgb, white 20%, transparent); padding: 3px 12px; border-radius: 999px; font-weight: 700; }
.carte-fid .valeur { font-size: .95rem; opacity: .9; }
.carte-fid.niveau-silver { background: linear-gradient(135deg, #59606a, #8b939d); }
.carte-fid.niveau-gold { background: linear-gradient(135deg, #8a6418, #c9973a); }
.carte-fid.niveau-gold .jauge-fid span { background: #fff; }
.points-ligne { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.points-ligne input { width: 96px; min-height: 42px; }
.points-ligne span { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Niveaux (page fidélité) */
.niveaux { width: var(--page); margin: 0 auto 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.niveau-carte { border-radius: 18px; padding: 20px; color: #fff; background: var(--primaire); }
.niveau-carte h2 { font-size: 2rem; margin-bottom: .2em; }
.niveau-carte p { margin: 0; opacity: .92; }
.niveau-carte .niveau-taux { font-size: 1.25rem; font-weight: 700; opacity: 1; margin-bottom: 6px; }
.niveau-carte.niveau-silver { background: linear-gradient(135deg, #59606a, #8b939d); }
.niveau-carte.niveau-gold { background: linear-gradient(135deg, #8a6418, #c9973a); }
@media (max-width: 760px) { .niveaux { grid-template-columns: 1fr; } }

/* Étape compte dans le panier */
.compte-titre { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 0 0 6px; }
.segments { display: grid; grid-template-columns: 1fr 1fr; background: var(--chaux); border-radius: 999px; padding: 4px; margin: 4px 0 16px; }
.segments button { min-height: 42px; border: 0; border-radius: 999px; background: none; font: 700 .95rem var(--texte); color: var(--encre-douce); cursor: pointer; }
.segments button[aria-selected="true"] { background: var(--blanc); color: var(--primaire); box-shadow: 0 1px 4px rgba(43, 30, 22, .15); }

/* ---------- Offres promotionnelles ---------- */
.offres { background: var(--safran-clair); border: 1.5px solid color-mix(in srgb, var(--safran) 55%, white); border-radius: 16px; padding: 14px 18px; margin: 16px 0 0; }
.offres-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.offres-tete strong { font-family: var(--display); font-weight: 400; font-size: 1.45rem; color: var(--primaire); }
.offres ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.offres li { display: grid; gap: 0; }
.offre-nom { font-weight: 700; }
.offre-detail { color: var(--encre-douce); font-size: .95rem; }
.offres-accueil { margin-top: 24px; margin-bottom: 24px; }
.offres-accueil .offres { margin: 0; }
.btn-petit { min-height: 38px; padding: 8px 16px; font-size: .92rem; }
.badge-promo { display: inline-flex; align-items: baseline; gap: 5px; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--harissa); color: #fff; font-weight: 700; font-size: .85rem; }
.badge-promo small { font-weight: 500; opacity: .9; }
.plat-promo { grid-column: 1 / -1; }
.promo-msgs { display: grid; gap: 6px; margin: 4px 0 12px; }
.promo-msgs:empty { display: none; }
.promo-ok, .promo-presque { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: .93rem; }
.promo-ok { background: var(--second-clair); color: var(--second); font-weight: 700; }
.promo-ok::before { content: "✓ "; }
.promo-presque { background: var(--safran-clair); color: #6b4a09; }
.promo-ligne { display: block; color: var(--harissa); font-size: .8rem; font-weight: 700; }
.panier-lignes s, .prix-ligne s { color: var(--encre-douce); font-weight: 400; font-size: .9em; }
.offert { color: var(--second); }
.ligne-offerte { grid-template-columns: auto 1fr auto !important; }
.ligne-offerte .qte { font-weight: 700; min-width: 28px; }
.prix-ligne { white-space: nowrap; text-align: right; }
.promo-merci { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--second-clair); color: var(--second); font-weight: 700; }

/* Suppléments */
.panier-lignes li.ligne-supp { padding-left: 14px; border-bottom-style: dotted; font-size: .95rem; }
.panier-lignes li.ligne-supp .rond { width: 24px; height: 24px; font-size: .9rem; }
.supp-pour { display: block; color: var(--encre-douce); font-size: .8rem; }
.rond:disabled { opacity: .35; cursor: not-allowed; background: var(--blanc); color: var(--primaire); border-color: var(--primaire); }
.supp-bloc { border: 1px solid var(--trait); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; background: var(--blanc); }
.supp-bloc h4 { margin: 0 0 6px; font-size: 1rem; }
.supp-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--trait); }
.supp-ligne:first-of-type { border-top: 0; }
.supp-nom { min-width: 0; overflow-wrap: anywhere; }
.supp-nom small { display: block; color: var(--encre-douce); font-size: .8rem; }
.supp-nom small:empty { display: none; }
.supp-prix { font-weight: 700; white-space: nowrap; }
.supp-ligne .rond { width: 32px; height: 32px; font-size: 1.1rem; }
.supp-ligne .qte { min-width: 18px; text-align: center; font-weight: 700; }
.supp-ligne.choisi { background: var(--second-clair); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.ligne-supp-recap { padding-left: 14px; color: var(--encre-douce); }
