/* FillD'O — menu digital. Ambiance lounge jazz : tons chauds, formes douces, vignettes « vinyle ». */
:root {
  --gold: #e3b765;
  --gold-soft: rgba(227, 183, 101, .16);
  --blue: #18d4dd;                       /* le bleu de la carte imprimée, en touches */
  --blue-tint: #8fe3e8;
  --blue-soft: rgba(24, 212, 221, .13);
  --cream: #f4ecdd;
  --muted: #b5a892;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant Garamond", "Georgia", serif;

  /* La Cuisine : brun chaud, accent rosé */
  --bg: #17110e;
  --bg-2: #211813;
  --glow: rgba(214, 120, 84, .22);
  --accent: var(--blue-tint);
  --panel: rgba(255, 244, 228, .045);
  --line: rgba(244, 236, 221, .09);
}
body[data-tab="bar"] {
  /* Le Bar : bleu nuit doux, accent sauge */
  --bg: #0f1516;
  --bg-2: #162022;
  --glow: rgba(96, 170, 160, .2);
  --accent: var(--blue-tint);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--cream);
  background: var(--bg);
  transition: background-color .6s ease;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
button, input { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Le trait ondulé du logo, réutilisé comme signature */
.wave {
  display: block; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' fill='none' stroke='%23e3b765' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2 8c14-6 24 5 40 1s24-7 40-2 22 2 36-2'/%3E%3Cpath d='M40 4c10-3 18 3 30 1s20-3 30 0' stroke='%2318d4dd' opacity='.75'/%3E%3C/svg%3E") left center / 120px 14px no-repeat;
}

/* ── En-tête ── */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 34px 20px 22px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(50px); pointer-events: none;
  transition: background-color .6s ease;
}
.hero::before { width: 300px; height: 300px; left: 50%; top: -90px; margin-left: -150px; background: var(--glow); animation: breathe 9s ease-in-out infinite; }
.hero::after  { width: 220px; height: 220px; right: -90px; top: 110px; background: rgba(24, 212, 221, .16); animation: breathe 11s ease-in-out infinite reverse; }
@keyframes breathe { 50% { transform: scale(1.18) translateY(12px); opacity: .7; } }
.hero > * { position: relative; z-index: 1; }

.hero-logo { width: min(210px, 54vw); height: auto; display: block; margin: 0 auto; animation: drift 1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-title {
  margin: 10px 0 0;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 40px; line-height: 1; color: var(--cream);
  animation: drift 1s .12s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-title span {
  display: block; margin-bottom: 8px;
  font-family: var(--font); font-style: normal; font-weight: 600;
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--blue-tint);
}
@keyframes drift { from { opacity: 0; transform: translateY(14px); } }

.search {
  display: flex; align-items: center; gap: 10px;
  max-width: 480px; margin: 22px auto 0; padding: 0 18px;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 99px;
  transition: border-color .3s, background-color .3s;
}
.search:focus-within { border-color: var(--blue); background: rgba(255, 244, 228, .07); }
.search svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 48px; background: none; border: 0; outline: 0; font-size: 16px; }
.search input::placeholder { color: var(--muted); }

/* ── Barre collante : bascule Cuisine / Bar + catégories ── */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background-color .6s ease;
}
.tabs {
  position: relative;
  display: flex;
  max-width: 340px; margin: 0 auto; padding: 4px;
  transform: translateY(10px);
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 99px;
}
.tabs::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--gold); border-radius: 99px;
  transition: transform .45s cubic-bezier(.3, 1.3, .5, 1);
}
body[data-tab="bar"] .tabs::before { transform: translateX(100%); }
.tab {
  position: relative; flex: 1;
  padding: 11px 8px;
  background: none; border: 0; border-radius: 99px;
  font-weight: 700; font-size: 14px; letter-spacing: .02em;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s;
}
.tab[aria-selected="true"] { color: #2a1c0a; }

.chips {
  display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  padding: 22px 14px 12px;
  max-width: 900px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  color: var(--muted); text-decoration: none;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  padding: 8px 14px;
  border-radius: 99px;
  transition: background-color .3s, color .3s;
}
.chip span { margin-right: 2px; }
.chip.on { color: var(--blue-tint); background: var(--blue-soft); }

/* Avec JavaScript : un seul volet à la fois (sauf pendant une recherche). */
.js .chips, .js .panel { display: none; }
.js body[data-tab="cuisine"] [data-for="cuisine"],
.js body[data-tab="bar"] [data-for="bar"] { display: flex; }
.js body[data-tab="cuisine"] #panel-cuisine,
.js body[data-tab="bar"] #panel-bar,
.js body.searching .panel { display: block; }
.js body.searching .chips { display: none !important; }
.js body.searching .bar { padding-bottom: 22px; }
.js .panel-title { display: none; }
.js body.searching .panel-title { display: block; }
.js .panel { animation: drift .5s cubic-bezier(.2, .8, .2, 1); }

/* ── Rayons ── */
main { max-width: 900px; margin: 0 auto; padding: 0 14px 24px; }
.panel-title { margin: 28px 6px 0; font-size: 11px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--blue-tint); }

.sec { margin-top: 34px; scroll-margin-top: 132px; }
.sec-head { padding: 0 6px; }
h3 {
  margin: 0 0 6px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 31px; line-height: 1.05; color: var(--cream);
}
.sec-note { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 46ch; }

.grid {
  margin-top: 16px;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 26px;
  padding: 4px 16px;
}
@media (min-width: 720px) {
  .grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; padding: 6px 24px; }
}

/* ── Article : disque à gauche, texte, bouton « + » ── */
.card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}
.card:first-child { border-top-color: transparent; }
@media (min-width: 720px) { .card:nth-child(2) { border-top-color: transparent; } }
.js .card.wait { opacity: 0; transform: translateY(14px); }
.card.hide { display: none; }

.thumb {
  position: relative; flex: none;
  width: 68px; height: 68px; border-radius: 50%;
  background:
    radial-gradient(circle, var(--bg-2) 0 37%, transparent 38%),
    repeating-radial-gradient(circle, #0b0907 0 2px, #1d1814 2.6px 3.4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .05);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .thumb, .card:active .thumb { transform: rotate(24deg) scale(1.04); }
.card:hover .ph, .card:active .ph { transform: rotate(-24deg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.thumb:has(img) { background: var(--bg-2); box-shadow: 0 6px 16px rgba(0, 0, 0, .4), 0 0 0 2px var(--gold-soft); }
.card:hover .thumb:has(img), .card:active .thumb:has(img) { transform: scale(1.05); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 23px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }

.card-txt { flex: 1; min-width: 0; }
.card h4 { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.hint, .opts { margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.hint { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent); transition: color .6s; }
.price { margin: 5px 0 0; color: var(--gold); font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.p-text { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 16px; color: var(--accent); }

.add {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: none; color: var(--gold);
  border: 1.5px solid var(--gold-soft); border-radius: 50%;
  cursor: pointer;
  transition: transform .2s, background-color .3s, color .3s, border-color .3s;
}
.add:hover { border-color: var(--gold); }
.add:active { transform: scale(.88); }
.add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.add.has { background: var(--gold); border-color: var(--gold); color: #2a1c0a; }
.add.has svg { display: none; }
.count { font-size: 14.5px; font-weight: 800; }
.add.pop { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 40% { transform: scale(1.3); } }

.empty { text-align: center; padding: 56px 16px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 20px; }

/* ── Pied ── */
.foot { text-align: center; padding: 16px 16px calc(120px + env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--muted); }
.foot .wave { width: 120px; margin: 0 auto 14px; opacity: .7; }
.foot p { margin: 6px 0; }
.foot a { color: var(--gold); }
.foot .brand { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--gold); }

/* ── Barre panier ── */
.cartbar {
  position: fixed; z-index: 20;
  left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 10px;
  background: color-mix(in srgb, var(--cream) 94%, transparent); color: #2a1c0a;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 0; border-radius: 99px;
  font-weight: 700; font-size: 14.5px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  cursor: pointer;
  animation: rise .5s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes rise { from { transform: translateY(90px); opacity: 0; } }
.cartbar.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.04); } }
.cb-n { min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; background: #2a1c0a; color: var(--gold); border-radius: 99px; font-size: 14px; }
.cb-l { flex: 1; text-align: left; }
.cb-t { font-variant-numeric: tabular-nums; }

/* ── Fenêtres (fiche article, panier) ── */
.backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(8, 6, 5, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .35s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 40;
  left: 0; right: 0; bottom: 0;
  max-width: 520px; max-height: 92dvh; margin: 0 auto;
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .55);
  animation: up .5s cubic-bezier(.2, .9, .3, 1);
  overflow: hidden;
}
@keyframes up { from { transform: translateY(100%); } }
@media (min-width: 720px) { .sheet { bottom: 5vh; border-radius: 32px; } }
.sheet::before { content: ""; position: absolute; z-index: 3; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(244, 236, 221, .25); }
.x {
  position: absolute; z-index: 3; top: 16px; right: 16px;
  width: 38px; height: 38px;
  background: rgba(10, 8, 6, .45); color: var(--cream);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 0; border-radius: 50%;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.sheet-body { padding: 22px 22px 10px; overflow-y: auto; }
.sheet h2 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 32px; line-height: 1.1; padding-right: 36px; }

.it-photo {
  position: relative; flex: none; height: 230px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, var(--glow), transparent 68%);
}
.it-photo img { width: 100%; height: 230px; object-fit: cover; display: block; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.disc {
  width: 172px; height: 172px; border-radius: 50%;
  background:
    radial-gradient(circle, var(--gold) 0 2.5%, var(--bg-2) 3% 33%, transparent 34%),
    conic-gradient(from 20deg, transparent 0 12%, rgba(255, 255, 255, .09) 18%, transparent 26% 62%, rgba(255, 255, 255, .07) 68%, transparent 76%),
    repeating-radial-gradient(circle, #0b0907 0 2px, #201a15 2.7px 3.6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.em { position: absolute; font-size: 38px; transform: translateY(-1px); }

.it-sec { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--blue-tint); }
.it-hint { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--accent); }
.it-hint:empty { display: none; }

.variants { display: grid; gap: 8px; margin: 18px 0 6px; }
.variants:empty { display: none; }
.variant {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 15px 20px;
  background: var(--panel);
  border: 1.5px solid transparent; border-radius: 18px;
  font-weight: 600; font-size: 15.5px; text-align: left;
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.variant b { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.variant[aria-checked="true"] { border-color: var(--gold); background: var(--gold-soft); }
.it-single { margin: 12px 0 6px; color: var(--gold); font-size: 21px; font-weight: 700; }
.it-single.p-text { font-size: 19px; }

.sheet-foot {
  flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 22px calc(18px + env(safe-area-inset-bottom));
}
.sheet-foot.col { flex-direction: column; align-items: stretch; gap: 6px; }
.qty { display: flex; align-items: center; background: var(--panel); border-radius: 99px; }
.qty button { width: 44px; height: 50px; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--gold); }
.qty output { min-width: 24px; text-align: center; font-weight: 700; font-size: 16px; }
.cta {
  flex: 1; min-height: 52px; padding: 0 20px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--gold); color: #2a1c0a;
  border: 0; border-radius: 99px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  cursor: pointer;
  transition: transform .2s;
}
.cta:active { transform: scale(.97); }
.cta.wa { background: #8fd9a8; color: #0d2b18; }
.link { background: none; border: 0; padding: 8px; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.show { margin: 0; padding: 16px; text-align: center; color: var(--cream); background: var(--gold-soft); border-radius: 18px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; }

/* Panier */
.lines { list-style: none; margin: 14px 0 0; padding: 0; }
.lines li { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.lines li:first-child { border-top: 0; }
.l-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.l-name em { font-weight: 500; color: var(--muted); }
.l-name small { display: block; color: var(--gold); font-weight: 600; font-size: 13px; margin-top: 2px; }
.lines .qty button { width: 36px; height: 38px; font-size: 18px; }
.fields { display: flex; gap: 10px; margin-top: 14px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); width: 84px; }
.fields .grow { flex: 1; width: auto; }
.fields input {
  width: 100%; height: 48px; padding: 0 16px;
  background: var(--panel); border: 1.5px solid transparent; border-radius: 16px;
  font-size: 16px; color: var(--cream); outline: 0;
  transition: border-color .3s;
}
.fields input::placeholder { color: var(--muted); opacity: .7; }
.fields input:focus { border-color: var(--blue); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 0; font-size: 15px; color: var(--muted); }
.total b { color: var(--cream); font-family: var(--serif); font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.total-note { margin: 2px 0 0; text-align: right; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent); }
.cart-empty { padding: 30px 0; justify-content: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 19px; }

@media (max-width: 359px) {
  .thumb { width: 56px; height: 56px; }
  .ph { font-size: 19px; }
  h3 { font-size: 27px; }
  .grid { padding: 4px 12px; }
}
@media (min-width: 720px) {
  .hero { padding-top: 52px; }
  .hero-title { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .card.wait { opacity: 1; transform: none; }
}

/* ── Assistant « Lili » ── */
.it-desc { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.it-desc:empty { display: none; }

.fab {
  position: fixed; z-index: 21;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--bg-2); color: var(--blue);
  border: 1.5px solid var(--blue); border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 24px var(--blue-soft);
  cursor: pointer;
  transition: bottom .4s cubic-bezier(.2, .9, .3, 1), transform .2s, background-color .6s;
}
.fab::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--blue); opacity: 0; animation: ring 3.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: .6; } 70%, 100% { transform: scale(1.3); opacity: 0; } }
.fab:active { transform: scale(.92); }
.fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.has-cart .fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
.lock .fab, .lock .teaser { display: none; }

.teaser {
  position: fixed; z-index: 21;
  right: 82px; bottom: calc(24px + env(safe-area-inset-bottom));
  padding: 11px 16px;
  background: var(--cream); color: #2a1c0a;
  border: 0; border-radius: 18px 18px 4px 18px;
  font-weight: 600; font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  cursor: pointer;
  animation: drift .6s cubic-bezier(.2, .9, .3, 1);
}
.has-cart .teaser { bottom: calc(92px + env(safe-area-inset-bottom)); }

.sheet.chat { height: 86dvh; }
.chat-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 24px 22px 14px; border-bottom: 1px solid var(--line); }
.chat-av { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #062a2d; font-size: 22px; }
.chat-head h2 { font-size: 26px; line-height: 1; padding: 0; }
.chat-head p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }

.chat-log { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 88%; animation: drift .4s cubic-bezier(.2, .9, .3, 1); }
.msg p { margin: 0; padding: 12px 16px; font-size: 14.5px; line-height: 1.55; }
.msg.bot { align-self: flex-start; }
.msg.bot p { background: var(--panel); border: 1px solid var(--line); border-radius: 6px 20px 20px 20px; }
.msg.bot b { color: var(--gold); font-weight: 700; }
.msg.me { align-self: flex-end; }
.msg.me p { background: var(--gold); color: #2a1c0a; font-weight: 600; border-radius: 20px 20px 6px 20px; }
.msg.typing { display: flex; gap: 5px; padding: 16px 18px; background: var(--panel); border-radius: 6px 20px 20px 20px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 40% { transform: translateY(-5px); opacity: .5; } }

.sugs { display: grid; gap: 8px; margin-top: 8px; }
.sug {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 14px 10px 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  text-align: left; cursor: pointer;
  transition: border-color .3s, transform .2s;
}
.sug:hover { border-color: var(--gold); }
.sug:active { transform: scale(.98); }
.sug-ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); font-size: 20px; overflow: hidden; }
.sug-ic img { width: 100%; height: 100%; object-fit: cover; }
.sug-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sug-tx b { font-size: 14.5px; font-weight: 600; }
.sug-tx small { font-size: 12.5px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sug-tx em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--gold); }

.chat-chips { flex: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 16px; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips:empty { display: none; }
.qr { flex: none; padding: 9px 15px; background: none; color: var(--blue-tint); border: 1.5px solid var(--blue-soft); border-radius: 99px; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .3s; }
.qr:hover { background: var(--blue-soft); }

.chat-form { flex: none; display: flex; gap: 8px; padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); }
.chat-form input { flex: 1; min-width: 0; height: 50px; padding: 0 20px; background: var(--panel); border: 1.5px solid transparent; border-radius: 99px; font-size: 16px; outline: 0; transition: border-color .3s; }
.chat-form input::placeholder { color: var(--muted); }
.chat-form input:focus { border-color: var(--blue); }
.chat-form button { flex: none; width: 50px; height: 50px; display: grid; place-items: center; background: var(--gold); color: #2a1c0a; border: 0; border-radius: 50%; cursor: pointer; }
.chat-form svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Lili : sortie vers un conseiller, boutons d'action */
.qr.human { color: var(--muted); border-color: var(--line); }
.acts { display: grid; gap: 8px; margin-top: 8px; }
.act {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 0 18px;
  background: var(--blue); color: #062a2d;
  border-radius: 99px;
  font-weight: 700; font-size: 14.5px; text-decoration: none;
}
.act.wa { background: #8fd9a8; color: #0d2b18; }

/* ═════════════ PAGE D'ACCUEIL (avant la carte) ═════════════ */
.kicker { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--blue-tint); }
.rv { transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .rv.wait { opacity: 0; transform: translateY(22px); }

/* Grande image d'ouverture */
.home {
  position: relative; overflow: hidden;
  min-height: 92svh;
  display: grid; place-items: center;
  padding: 48px 22px 84px;
  text-align: center;
  background:
    radial-gradient(60% 45% at 50% 38%, rgba(214, 120, 84, .26), transparent 70%),
    radial-gradient(40% 30% at 82% 78%, rgba(24, 212, 221, .13), transparent 70%),
    linear-gradient(#120d0b, #17110e);
}
.home.has-photo { background-color: #17110e; background-size: cover; background-position: center; background-repeat: no-repeat; }  /* image posée par index.php */
/* Sans photo : un grand vinyle qui tourne doucement en fond */
.home:not(.has-photo)::before {
  content: ""; position: absolute; left: 50%; top: 46%;
  width: min(125vw, 720px); aspect-ratio: 1; border-radius: 50%;
  translate: -50% -50%;
  background:
    radial-gradient(circle, transparent 0 21%, rgba(0, 0, 0, .0) 22%),
    conic-gradient(from 20deg, transparent 0 12%, rgba(255, 255, 255, .05) 18%, transparent 26% 62%, rgba(255, 255, 255, .04) 68%, transparent 76%),
    repeating-radial-gradient(circle, rgba(0, 0, 0, .0) 0 3px, rgba(244, 236, 221, .035) 3.6px 4.6px);
  -webkit-mask-image: radial-gradient(circle, transparent 0 20%, #000 21% 68%, transparent 70%);
          mask-image: radial-gradient(circle, transparent 0 20%, #000 21% 68%, transparent 70%);
  animation: spin 60s linear infinite;
}
.home-in { position: relative; max-width: 520px; }
.home .hero-logo { width: min(290px, 70vw); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.home-line {
  margin: 14px auto 0; max-width: 20ch;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 27px; line-height: 1.2; color: var(--cream);
  animation: drift 1s .15s cubic-bezier(.2, .8, .2, 1) both;
}
.home-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; animation: drift 1s .3s cubic-bezier(.2, .8, .2, 1) both; }
.home-cta .cta { flex: none; }
.cta.ghost { background: rgba(244, 236, 221, .08); color: var(--cream); border: 1.5px solid rgba(244, 236, 221, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.home-down {
  position: absolute; left: 50%; bottom: 22px; margin-left: -22px;
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--gold); border: 1.5px solid var(--gold-soft); border-radius: 50%;
  animation: bob 2.4s ease-in-out infinite;
}
.home-down svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bob { 50% { transform: translateY(7px); } }

/* Notre maison : texte + trois images */
.story { max-width: 1040px; margin: 0 auto; padding: 56px 20px 24px; display: grid; gap: 34px; }
.story h2, .stars h2 { margin: 0 0 8px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 36px; line-height: 1.08; }
.story-txt p:not(.kicker) { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 52ch; }
.story-txt .cta { display: inline-flex; flex: none; margin-top: 24px; }
.story-pics { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: min(96vw, 440px); }
.pic {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 55%, rgba(214, 120, 84, .2), var(--bg-2) 75%);
  border: 1px solid var(--line);
}
.pic-1 { grid-row: 1 / 3; }
.pic-3 { background: radial-gradient(circle at 50% 55%, rgba(24, 212, 221, .14), var(--bg-2) 75%); }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.pic:hover img { transform: scale(1.06); }
.pic .disc { width: 78%; height: auto; aspect-ratio: 1; max-width: 230px; animation-duration: 28s; }
.pic .em { font-size: clamp(30px, 9vw, 50px); }
@media (min-width: 860px) {
  .story { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 56px; padding: 96px 32px 40px; }
  .story h2, .stars h2 { font-size: 48px; }
  .story-pics { height: 480px; }
}

/* Trois atouts */
.feats {
  max-width: 1000px; margin: 28px auto 0; padding: 8px 22px;
  display: grid; gap: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 28px;
  width: calc(100% - 28px);
}
.feat-box { padding: 24px 6px; text-align: center; border-top: 1px solid var(--line); }
.feat-box:first-child { border-top: 0; }
.feat-box span { font-size: 30px; }
.feat-box h3 { margin: 8px 0 6px; font-size: 26px; color: var(--gold); }
.feat-box p { margin: 0 auto; max-width: 30ch; color: var(--muted); font-size: 14px; line-height: 1.55; }
@media (min-width: 720px) {
  .feats { grid-template-columns: repeat(3, 1fr); padding: 14px 10px; }
  .feat-box { border-top: 0; border-left: 1px solid var(--line); padding: 28px 22px; }
  .feat-box:first-child { border-left: 0; }
}

/* Les incontournables : rail à faire défiler */
.stars { max-width: 1040px; margin: 0 auto; padding: 60px 0 8px; }
.stars-head { padding: 0 20px; }
.rail {
  display: flex; gap: 12px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
  padding: 20px 20px 8px;
}
.rail::-webkit-scrollbar { display: none; }
.star-card {
  flex: none; width: 190px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 10px 10px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
  text-align: left; cursor: pointer;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .3s;
}
.star-card:hover { transform: translateY(-4px); border-color: var(--gold-soft); }
.star-card:active { transform: scale(.97); }
.star-pic {
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 1; margin-bottom: 10px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 55%, var(--glow), var(--bg-2) 78%);
}
.star-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.star-pic .disc { width: 82%; height: auto; aspect-ratio: 1; animation-duration: 24s; }
.star-sec { padding: 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-tint); }
.star-card b { padding: 0 6px; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.star-card .price { margin: 2px 0 0; padding: 0 6px; }

/* L'en-tête de la carte, maintenant sans logo */
#carte { padding-top: 64px; scroll-margin-top: 0; }

/* Fonds d'ambiance (assets/img/accueil.jpg, fond-carte.jpg) */
.home.has-photo::after {            /* lente respiration de la lumière */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 36% at 50% 30%, rgba(255, 214, 150, .16), transparent 70%);
  animation: breathe 8s ease-in-out infinite;
}
.hero.has-photo { background-color: var(--bg); background-size: cover; background-position: center top; background-repeat: no-repeat; }
.hero.has-photo::before, .hero.has-photo::after { display: none; }
.pic img { filter: saturate(1.05); }
.pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(244, 236, 221, .1); pointer-events: none; }
