/* Set & Chill : la carte en ligne
   Couleurs reprises de la carte papier : bleu marine du logo, brun des titres, vert olive, or. */
:root {
  --creme: #F7F3EC;
  --papier: #FFFDF9;
  --marine: #1F2A44;
  --brun: #7B4A2D;
  --brun-clair: #A0694A;
  --olive: #6E7B43;
  --or: #B8975A;
  --texte: #2B2A28;
  --doux: #6F6A62;
  --trait: #E4DCCD;
  --ombre: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 20px rgba(60, 40, 20, .06);
  --rayon: 14px;
  --serif: 'Cinzel', 'Times New Roman', serif;
  --script: 'Playfair Display', Georgia, serif;
  --sans: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

/* --- en-tête ------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 34px 20px 26px;
  background:
    radial-gradient(120% 80% at 50% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%),
    var(--creme);
}
.hero__logo { width: 150px; height: auto; margin: 0 auto 10px; }
.hero__name {
  margin: 0;
  font: 500 clamp(34px, 9vw, 52px)/1.05 var(--serif);
  letter-spacing: .12em;
  color: var(--marine);
}
.hero__name span { font-family: var(--script); font-style: italic; letter-spacing: 0; color: var(--brun); }
.hero__sub {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 10px 0 0;
  font: 700 13px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--marine);
}
.rule { width: 34px; height: 1px; background: var(--or); }
.nowrap { white-space: nowrap; }
.hero__motto { text-wrap: balance; margin: 10px 0 0; font: 700 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--or); }
.hero__pitch { max-width: 520px; margin: 16px auto 0; font: italic 500 18px/1.45 var(--script); color: var(--brun); }
.olive { position: absolute; width: 150px; opacity: .85; pointer-events: none; }
.olive--left { left: -28px; top: 24px; transform: scaleX(-1) rotate(-8deg); }
.olive--right { right: -28px; bottom: 6px; transform: rotate(-8deg); }
@media (max-width: 359px) { .hero__motto { letter-spacing: .2em; } .hero__sub { letter-spacing: .2em; } }
@media (max-width: 599px) { .olive--right { display: none; } .olive--left { width: 120px; left: -36px; } }

.status { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.status__pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--papier); border: 1px solid var(--trait);
  font-size: 13px; color: var(--doux);
}
.status__pill b { color: var(--texte); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #B9B2A6; }
.dot--on { background: #3E9B55; box-shadow: 0 0 0 3px rgba(62, 155, 85, .18); }

/* --- navigation ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 10;
  padding: 10px 0 8px;
  background: rgba(247, 243, 236, .94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait);
}
.switch {
  display: flex; gap: 4px; width: min(420px, calc(100% - 32px)); margin: 0 auto;
  padding: 4px; border-radius: 999px; background: #EAE2D4;
}
.switch__btn {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  padding: 9px 10px; border-radius: 999px;
  font: 700 14px/1 var(--sans); letter-spacing: .04em; color: var(--doux);
  transition: background .2s, color .2s, box-shadow .2s;
}
.switch__btn.is-active { background: var(--papier); color: var(--marine); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 16px 2px; max-width: 900px; margin: 0 auto;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--trait); background: var(--papier);
  font-size: 14px; color: var(--brun); text-decoration: none; white-space: nowrap;
}
.chip.is-current { background: var(--brun); border-color: var(--brun); color: #fff; }

/* --- carte ------------------------------------------------------------------- */
.carte { max-width: 900px; margin: 0 auto; padding: 8px 16px 40px; }
.loading, .erreur { text-align: center; color: var(--doux); padding: 40px 0; }
.section { margin-top: 30px; }
.section__title {
  margin: 0 0 4px; text-align: center;
  font: italic 500 30px/1.2 var(--script); color: var(--brun);
}
.section__orn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; color: var(--or); }
.section__orn::before, .section__orn::after { content: ''; width: 46px; height: 1px; background: currentColor; }
.section__orn i { width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.section__formats {
  display: flex; justify-content: flex-end; gap: 0; margin: -4px 4px 6px;
  font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--doux);
}
.section__formats span { width: 76px; text-align: right; }
.section__note { text-align: center; color: var(--doux); font-size: 14px; font-style: italic; margin: 10px 0 0; }

.list { display: grid; gap: 10px; }
@media (min-width: 760px) { .list--cuisine { grid-template-columns: 1fr 1fr; } }

.item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; background: var(--papier);
  border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre);
}
.item--photo { cursor: zoom-in; }
.item__thumb {
  flex: none; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: #EEE7DA;
  position: relative;
}
.item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.item--photo:hover .item__thumb img { transform: scale(1.06); }
.item__thumb::after {
  content: ''; position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2A44' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.item__body { flex: 1; min-width: 0; }
.item__head { display: flex; align-items: baseline; gap: 8px; }
.item__name { margin: 0; font: 700 15px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--marine); }
.item__lead { flex: 1; min-width: 12px; border-bottom: 1px dotted #CDBFA6; transform: translateY(-4px); }
.item__price { flex: none; font: 700 15px/1.3 var(--sans); color: var(--brun); white-space: nowrap; }
.item__price small { font-weight: 400; color: var(--doux); font-size: 12px; }
.item__price--text { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.item__desc { margin: 4px 0 0; font-size: 14px; color: var(--doux); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #EEF0E2; color: var(--olive); }
.tag--nouveau { background: #F6E7DA; color: var(--brun); }

/* boissons : lignes compactes avec colonnes de prix */
.list--boissons { gap: 0; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 4px 0; }
.drink { display: flex; align-items: baseline; gap: 10px; padding: 11px 16px; border-top: 1px solid #F0EADF; }
.drink:first-child { border-top: 0; }
.drink__body { flex: 1; min-width: 0; }
.drink__name { margin: 0; font: 700 14px/1.35 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--marine); }
.drink__desc { margin: 2px 0 0; font-size: 13px; color: var(--doux); }
.drink__prices { display: flex; flex: none; }
.drink__prices span { width: 76px; text-align: right; font-weight: 700; color: var(--brun); white-space: nowrap; }
.drink__prices small { display: block; font-weight: 400; font-size: 11px; color: var(--doux); }
.drink__prices .txt { width: auto; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* --- pied de page -------------------------------------------------------------- */
.footer {
  display: grid; gap: 22px; padding: 34px 20px 40px;
  background: var(--marine); color: #D9DCE5; text-align: center;
}
.footer h2 { margin: 0 0 8px; font: 500 15px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.footer p { margin: 4px 0; font-size: 14px; }
.footer a { color: #fff; }
.footer__mentions p { font-size: 13px; color: #AEB4C4; }
.footer__maj { font-size: 12px; color: #8A92A8; }
.footer__maj a { color: #AEB4C4; }
.footer__legal { font-size: 12px; color: #AEB4C4; font-style: italic; }
@media (min-width: 760px) {
  .footer { grid-template-columns: repeat(3, 1fr); text-align: left; max-width: 1000px; margin: 0 auto; border-radius: 22px 22px 0 0; }
  .footer__maj, .footer__legal { grid-column: 1 / -1; text-align: center; }
}

/* --- photo agrandie --------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px;
  background: rgba(20, 22, 30, .72); backdrop-filter: blur(4px);
  animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox__card {
  position: relative; margin: 0; width: min(560px, 100%); max-height: 92vh; overflow: auto;
  background: var(--papier); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  animation: pop .25s ease;
}
.lightbox__card img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.lightbox__card figcaption { padding: 16px 20px 20px; }
.lightbox__card h3 { margin: 0; font: italic 500 24px/1.25 var(--script); color: var(--brun); }
.lightbox__card p { margin: 6px 0 0; color: var(--doux); }
.lightbox__price { font-weight: 700; color: var(--marine) !important; font-size: 18px; }
.lightbox__close {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); font-size: 26px; line-height: 36px; cursor: pointer; color: var(--marine);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* --- page des mentions légales ------------------------------------------------------ */
.legal { max-width: 720px; margin: 0 auto; padding: 28px 20px 60px; }
.legal__back { display: inline-block; margin-bottom: 18px; color: var(--brun); font-weight: 700; text-decoration: none; }
.legal h2 { margin: 26px 0 8px; font: 500 15px/1.3 var(--serif); letter-spacing: .14em; text-transform: uppercase; color: var(--marine); }
.legal p { margin: 0 0 10px; color: var(--texte); }
.legal a { color: var(--brun); }
.legal__warn { margin-top: 24px !important; padding: 12px 14px; border-radius: 10px; background: #F4EEE4; font-style: italic; }
