/* Les adresses d'Amed — « Le verdict, comme dans tes vidéos »
   One blue ramp, one type family (Avenir Next, like the videos), white labels with a short crisp shadow,
   score stamps slammed on. No backdrop blur and no endless animation: everything stays smooth on small phones. */

:root {
  --blue-50: #EEF2FF;
  --blue-100: #DFE6FF;
  --blue-200: #C2CFFF;
  --blue-300: #93A8FF;
  --blue-500: #1440FF;
  --blue-600: #0E31D6;
  --blue-700: #0A25A8;
  --blue-900: #0A1033;

  --ground: var(--blue-50);
  --surface: #FFFFFF;
  --surface-2: var(--blue-50);
  --line: #D5DCFA;
  --ink: #0B0B0F;
  --ink-2: #3E4566;
  --ink-3: #5A6285;
  --shell: var(--blue-500);
  --shell-2: var(--blue-600);
  --on-shell: #FFFFFF;
  --on-shell-2: #DCE3FF;
  --accent: #D42A3C;          /* keyword red, like the subtitles; on white only */

  --good: #3DDC84;
  --mid: #FFC53D;
  --bad: #FF8F6B;

  --shadow-label: 0 3px 4px rgb(11 11 15 / .28);
  --shadow-card: 0 1px 2px rgb(8 10 20 / .06), 0 10px 24px -12px rgb(8 10 20 / .22);
  --shadow-lift: 0 2px 4px rgb(8 10 20 / .08), 0 22px 40px -16px rgb(8 10 20 / .38);

  --font: "Avenir Next", "Avenir", "Nunito Sans", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);          /* expo out */
  --pop: cubic-bezier(.3, 1.6, .5, 1);          /* the videos' pop 80 → 104 → 100 */
  --radius: 22px;
  --tabbar-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #070B1F;
    --surface: #111833;
    --surface-2: #19224A;
    --line: #222C57;
    --ink: #F2F4FF;
    --ink-2: #C3CAEB;
    --ink-3: #9BA4CC;
    --shell: #1236E0;
    --shell-2: #0C27B0;
    --shadow-card: 0 1px 2px rgb(0 0 0 / .4), 0 10px 24px -12px rgb(0 0 0 / .6);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / .4), 0 22px 40px -16px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}

@font-face {
  font-family: "Nunito Sans"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(fonts/nunito-sans-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;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--shell); color: var(--ink);
  font: 500 16px/1.45 var(--font); font-synthesis: none;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden; caret-color: var(--blue-500);
}
::selection { background: var(--blue-500); color: #fff; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus, var(--blue-500)); outline-offset: 2px; border-radius: 12px; }
.tnum { font-variant-numeric: tabular-nums; }

/* The page sits on the ground; the blue shell owns the top. */
.app { background: var(--ground); min-height: 100dvh; transform-origin: 50% var(--origin-y, 50vh); transition: transform .5s var(--ease), border-radius .5s var(--ease); }
.app.is-behind { transform: scale(.94); border-radius: 26px; overflow: clip; }
.view { padding-bottom: calc(var(--tabbar-h) + 36px + var(--safe-b)); }
.view.is-entering { animation: view-in .32s var(--ease); }
@keyframes view-in { from { opacity: .4; transform: translateY(10px); } }
.page { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ───────── Shell ───────── */
.band, .searchbar, .pills { --focus: #fff; }
.band { background: var(--shell); color: var(--on-shell); padding: calc(10px + var(--safe-t)) 16px 6px; }
.band > * { max-width: 728px; margin-left: auto; margin-right: auto; }
.brandrow { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 15px; letter-spacing: -.005em; }
.brand img { border-radius: 9px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue-500); box-shadow: var(--shadow-label); transition: transform .2s var(--ease); }
.round-btn:active { transform: scale(.9); }
.round-btn svg { width: 19px; height: 19px; }
.round-btn--soft { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.round-btn--sm { width: 36px; height: 36px; }
.round-btn--sm svg { width: 16px; height: 16px; }

.headline {
  margin: 14px auto 6px; font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 11.6vw, 64px); line-height: .98; letter-spacing: -.02em;
  text-shadow: 0 3px 4px rgb(11 11 15 / .28); text-wrap: balance;
}
.label-red {
  display: inline-block; margin-top: .08em; padding: .06em .22em 0; border-radius: .2em;
  background: #fff; color: var(--accent); text-shadow: none; transform: rotate(-2deg); box-shadow: var(--shadow-label);
}

/* Search sticks under the status bar, on the shell colour. */
.searchbar { position: sticky; top: 0; z-index: 30; background: var(--shell); padding: calc(7px + var(--safe-t)) 16px 8px; margin-top: calc(-1px - var(--safe-t)); transition: box-shadow .25s var(--ease); }
.searchbar.is-stuck { box-shadow: 0 8px 18px -10px rgb(8 10 20 / .55); }
.search {
  max-width: 728px; margin: 0 auto; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 7px 0 18px;
  border-radius: 27px; background: #fff; color: #0B0B0F; box-shadow: var(--shadow-label);
}
.search > svg { color: #5A6285; width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 600; color: #0B0B0F; }
.search input::placeholder { color: #5A6285; font-weight: 500; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.search:focus-within { box-shadow: var(--shadow-label), 0 0 0 3px var(--blue-300); }
.filter-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #0B0B0F; color: #fff; flex: none; transition: transform .2s var(--ease); }
.filter-btn:active { transform: scale(.9); }
.filter-btn svg { width: 19px; height: 19px; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; font-size: 11px; font-weight: 900; background: #fff; color: var(--blue-500); box-shadow: 0 0 0 2px #0B0B0F; }

.pills { display: flex; gap: 8px; padding: 2px 16px 18px; overflow-x: auto; scrollbar-width: none; background: var(--shell); border-radius: 0 0 28px 28px; scroll-padding-inline: 16px; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; height: 44px; padding: 0 16px; border-radius: 22px; display: inline-flex; align-items: center; gap: 7px;
  background: var(--shell-2); color: #fff; font-weight: 800; font-size: 14px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.pill svg { width: 16px; height: 16px; }
.pill:active { transform: scale(.95); }
.pill[aria-pressed="true"] { background: #fff; color: var(--blue-500); box-shadow: var(--shadow-label); }
@media (min-width: 760px) { .pills { justify-content: center; } }

/* ───────── Sections ───────── */
.section { margin-top: 30px; }
.section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section__head h2 { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 900; letter-spacing: -.015em; }
.section__lead { margin: -4px 0 14px; color: var(--ink-2); font-size: 14.5px; }
.count { margin: -4px 0 12px; color: var(--ink-3); font-size: 13.5px; font-weight: 700; }
.link-btn { min-height: 44px; padding: 0 4px; color: var(--blue-500); font-weight: 800; font-size: 14px; }
@media (prefers-color-scheme: dark) { .link-btn { color: var(--blue-300); } }
.segmented { display: flex; padding: 3px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.segmented button { min-height: 38px; padding: 0 12px; border-radius: 11px; font-size: 13.5px; font-weight: 800; color: var(--ink-3); transition: background .2s var(--ease), color .2s var(--ease); }
.segmented button[aria-checked="true"] { background: var(--ink); color: var(--ground); }

/* ───────── Labels and stamps (the video vocabulary) ───────── */
.label {
  display: inline-flex; align-items: center; min-width: 0; max-width: 100%; padding: 5px 11px 6px; border-radius: 999px;
  background: #fff; color: #0B0B0F; font-weight: 700; font-size: 13px; line-height: 1.2; white-space: nowrap;
  box-shadow: var(--shadow-label);
}
.label__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.label b { flex: none; font-weight: 900; margin-left: .3em; }
.label--soft { background: var(--surface-2); color: var(--ink); box-shadow: none; }

.stamp {
  --n: 30px; position: relative; display: inline-flex; align-items: baseline; flex: none;
  padding: .1em .26em .14em; border-radius: .3em; background: var(--c, var(--good)); color: #0B0B0F;
  font-weight: 900; font-size: var(--n); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
  transform: rotate(-3deg); box-shadow: var(--shadow-label);
}
.stamp small { font-size: .36em; font-weight: 800; letter-spacing: 0; margin-left: .06em; }
.stamp .emo { position: absolute; right: -.42em; top: -.48em; font-size: .62em; transform: rotate(10deg); }
.stamp--good { --c: var(--good); } .stamp--mid { --c: var(--mid); } .stamp--bad { --c: var(--bad); }
.stamp--none { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 2px var(--line); font-size: 12px; letter-spacing: 0; padding: 7px 9px; transform: none; text-transform: uppercase; font-weight: 900; line-height: 1.05; text-align: center; }
.stamp--sm { --n: 22px; }
.stamp--lg { --n: 44px; }
.stamp--xl { --n: 58px; }

/* Logo tiles carry a slight relief. */
.tile {
  --s: 56px; position: relative; width: var(--s); height: var(--s); flex: none; display: grid; place-items: center;
  border-radius: calc(var(--s) * .26); background: #fff; overflow: hidden;
  box-shadow: inset 0 -2px 0 rgb(8 10 20 / .08), 0 0 0 1px rgb(8 10 20 / .06), 0 3px 6px -2px rgb(8 10 20 / .25);
}
.tile img { width: 82%; height: 82%; object-fit: contain; }
.tile--mono { background: var(--blue-100); color: var(--blue-500); font-size: calc(var(--s) * .36); font-weight: 900; letter-spacing: -.03em; }
@media (prefers-color-scheme: dark) { .tile--mono { background: var(--surface-2); color: var(--blue-200); } }

/* Press-to-lift: the touched card tilts toward the finger. */
.lift { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.lift.is-tilt, .lift.is-pressed { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)); }
.lift.is-pressed { --tz: 14px; box-shadow: var(--shadow-lift); transition-duration: .18s; }

/* ───────── Featured tasting ───────── */
.feature {
  position: relative; display: grid; grid-template-columns: 56px 1fr auto; column-gap: 14px; align-items: start; width: 100%; text-align: left;
  padding: 16px; border-radius: 26px; background: #0B0B0F; color: #fff; box-shadow: var(--shadow-card);
}
@media (prefers-color-scheme: dark) { .feature { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); } }
.feature__hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.feature__hit:focus-visible { outline-offset: 3px; }
.feature__name { display: block; overflow-wrap: anywhere; font-size: 21px; line-height: 1.1; font-weight: 900; letter-spacing: -.015em; }
.feature__meta { display: block; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; color: #C3CAEB; font-weight: 600; }
.feature .stamp { margin: 6px 8px 0 0; }
.feature__low { grid-column: 1 / -1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.feature__quote { grid-column: 1 / -1; margin: 12px 0 0; font-size: 16px; line-height: 1.45; font-weight: 700; color: #F2F4FF; text-wrap: pretty; }
.watch { position: relative; z-index: 2; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; text-decoration: none; font-weight: 800; font-size: 13.5px; color: #fff; }
.watch svg { width: 14px; height: 14px; }

/* ───────── Carousels ───────── */
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(66%, 230px); gap: 12px;
  margin: 14px -16px 0; padding: 4px 16px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; text-align: left; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.slide__top { position: relative; height: 112px; display: grid; place-items: center; background: var(--blue-100); }
@media (prefers-color-scheme: dark) { .slide__top { background: var(--surface-2); } }
.slide__top .tile { --s: 64px; }
.slide__top .stamp { position: absolute; right: 12px; bottom: -12px; }
.slide__top .hot { position: absolute; left: 10px; top: 10px; }
.slide__body { padding: 14px 14px 14px; }
.slide__name { display: block; font-weight: 900; font-size: 16.5px; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide__meta { display: -webkit-box; margin-top: 3px; color: var(--ink-3); font-size: 13px; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 13px; background: #fff; color: #B81F31; font-size: 12px; font-weight: 900; box-shadow: var(--shadow-label); }
.hot svg { width: 13px; height: 13px; stroke-width: 2.4; }

/* ───────── Rows ───────── */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .rows:not(.rows--rank) { grid-template-columns: 1fr 1fr; } }
.row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; column-gap: 14px; width: 100%; min-height: 84px;
  padding: 12px 16px 12px 12px; text-align: left; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card);
}
.row__txt { min-width: 0; }
.row__name { display: block; font-size: 17px; line-height: 1.2; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; min-width: 0; }
.row__tags .label { font-size: 12.5px; padding: 4px 10px 5px; }
@media (max-width: 420px) { .row__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }
.row .stamp { --n: 24px; margin-right: 4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag svg { width: 12px; height: 12px; }
.tag--hot { color: #A3172A; background: #FFE9EB; }
.tag--closed { color: #A3172A; background: #FFE3E6; }
.tag--gift { color: #7A4B00; background: #FFF1CC; }
@media (prefers-color-scheme: dark) { .tag--hot { background: #3A1520; color: #FF8A96; } .tag--closed { background: #3A1520; color: #FF8A96; } .tag--gift { background: #33270B; color: #FFD27A; } }
.rank-pos { width: 30px; text-align: center; font-size: 20px; font-weight: 900; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rows--rank .row { grid-template-columns: 30px 1fr auto; padding-left: 10px; min-height: 72px; }
.rank-empty { color: var(--ink-3); font-size: 14.5px; padding: 6px 2px; }

.more { display: block; margin: 18px auto 0; min-height: 48px; padding: 0 24px; border-radius: 24px; background: var(--ink); color: var(--ground); font-weight: 800; font-size: 14.5px; transition: transform .2s var(--ease); }
.more:active { transform: scale(.96); }
.empty { padding: 28px 8px 8px; color: var(--ink-2); }
.empty__big { margin: 0 0 4px; font-size: 34px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; color: var(--ink); }
.empty p { margin: 0 0 14px; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 25px;
  background: var(--blue-500); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; transition: transform .2s var(--ease);
}
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; }
.btn--soft { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ink { background: var(--ink); color: var(--ground); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.btn--net { min-height: 44px; padding: 0 16px; font-size: 13.5px; border-radius: 22px; }
.btn--tiktok { background: #0B0B0F; color: #fff; }
.btn--instagram { background: #D62976; color: #fff; }
.btn--youtube { background: #E50914; color: #fff; }
@media (prefers-color-scheme: dark) { .btn--tiktok { background: #fff; color: #0B0B0F; } }

/* ───────── Tab bar ───────── */
.tabbar {
  position: fixed; z-index: 50; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(3, 1fr); width: min(calc(100% - 32px), 420px); height: var(--tabbar-h); padding: 6px;
  border-radius: 32px; background: #0B0B0F; box-shadow: 0 12px 28px -10px rgb(8 10 20 / .55);
}
@media (prefers-color-scheme: dark) { .tabbar { background: #19224A; box-shadow: 0 12px 28px -10px rgb(0 0 0 / .8), inset 0 0 0 1px #2A3566; } }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 26px; font-size: 11.5px; font-weight: 800; color: #A9B1D6; transition: color .25s var(--ease); }
.tab svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.tab:active svg { transform: scale(.88); }
.tab.is-active { color: #fff; }
.tabbar__glider { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 3); border-radius: 26px; background: var(--blue-500); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .42s var(--ease); }

/* ───────── Slim shell for Carte and Classement ───────── */
.band--slim { padding-bottom: 18px; border-radius: 0 0 28px 28px; }
.page-title { margin: 16px auto 0; font-size: 40px; line-height: 1; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; text-shadow: 0 3px 4px rgb(11 11 15 / .28); }
.page-sub { margin: 8px auto 0; color: var(--on-shell-2); font-size: 14.5px; font-weight: 600; }
.page-sub:empty { display: none; }

/* ───────── Map ───────── */
.map-wrap { position: relative; margin: 14px 16px 0; }
.map { height: calc(100dvh - 190px - var(--tabbar-h) - var(--safe-t) - var(--safe-b)); min-height: 360px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card); background: var(--surface-2); z-index: 1; }
.pin { display: grid; place-items: center; width: 44px; height: 34px; border-radius: 10px; color: #0B0B0F; font: 900 14px/1 var(--font); letter-spacing: -.02em; background: var(--c, #fff); transform: rotate(-3deg); box-shadow: 0 3px 4px rgb(11 11 15 / .35), 0 0 0 2px #fff; }
.pin--none { background: #fff; color: var(--blue-500); font-size: 13px; }
.leaflet-popup-content-wrapper { border-radius: 18px; box-shadow: var(--shadow-lift); }
.leaflet-popup-content { margin: 12px 14px; font: 600 14px/1.4 var(--font); }
.leaflet-popup-content b, .popup b { font-size: 15px; font-weight: 900; }
.popup { font: 600 14px/1.4 var(--font); color: #0B0B0F; }
.popup-btn { margin-top: 8px; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--blue-500); color: #fff; font: 800 13px var(--font); }
.leaflet-container { font-family: var(--font); }
@media (prefers-color-scheme: dark) { .map .leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) brightness(.9) contrast(.9) saturate(.5); } }

/* ───────── Classement: the podium in volume ───────── */
.podium { display: grid; grid-template-columns: 1fr 1.08fr 1fr; align-items: end; gap: 10px; margin-top: 22px !important; perspective: 900px; perspective-origin: 50% -40%; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; color: #fff; }
.step .tile { --s: 52px; }
.step__name { width: 100%; font-weight: 900; font-size: 14px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; }
.step__block { position: relative; width: 100%; height: var(--h); margin-top: 18px; transform-style: preserve-3d; transform: rotateX(-26deg); transform-origin: 50% 100%; }
.step__front { position: absolute; inset: 0; display: grid; place-items: start center; padding-top: 10px; border-radius: 6px 6px 0 0; background: var(--blue-700); font-size: 34px; font-weight: 900; color: #fff; }
.step__top { position: absolute; left: 0; right: 0; top: 0; height: 26px; border-radius: 6px; background: var(--blue-300); transform-origin: 50% 0; transform: rotateX(90deg); }
.step--1 .step__front { background: #fff; color: var(--blue-500); }
.step--1 .step__top { background: var(--blue-100); }
.step .stamp { margin-top: -2px; }

/* ───────── Sheets ───────── */
.sheet {
  position: fixed; inset: auto 0 0; margin: 0 auto; padding: 0; border: 0; width: 100%; max-width: 640px; max-height: 92dvh;
  border-radius: 28px 28px 0 0; background: var(--ground); color: var(--ink); box-shadow: var(--shadow-lift); overflow: hidden;
  transform: translateY(105%); transition: transform .48s var(--ease);
}
.sheet.is-open { transform: translateY(var(--drag, 0px)); }
.sheet.is-dragging { transition: none; }
.sheet::backdrop { background: rgb(4 8 26 / 0); transition: background .4s var(--ease); }
.sheet.is-open::backdrop { background: rgb(4 8 26 / .45); }
@media (min-width: 760px) {
  .sheet { inset: 0; margin: auto; border-radius: 28px; max-height: 88dvh; transform: translateY(40px) scale(.96); opacity: 0; transition: transform .45s var(--ease), opacity .3s var(--ease); }
  .sheet.is-open { transform: none; opacity: 1; }
}
.sheet__grab { position: absolute; z-index: 5; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgb(255 255 255 / .75); pointer-events: none; }
.sheet--filters .sheet__grab { background: var(--line); }
.sheet__body { max-height: inherit; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--blue-200) transparent; }
[data-drag] { touch-action: none; }

.detail__hero { position: relative; display: grid; place-items: center; height: 190px; background: var(--shell); overflow: hidden; perspective: 600px; }
.detail__hero .tile { --s: 104px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); box-shadow: inset 0 -2px 0 rgb(8 10 20 / .1), 0 14px 26px -10px rgb(4 8 26 / .55); }
.detail__close { position: absolute; z-index: 4; top: 14px; right: 14px; }
.flash { position: absolute; inset: 0; z-index: 3; background: #fff; opacity: 0; pointer-events: none; }
.detail__head { position: relative; z-index: 2; padding: 18px 18px 0; }
.detail__head h2 { margin: 0; padding-right: 8px; font-size: 30px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.detail__head .stamp { position: absolute; right: 22px; top: -54px; }
.detail__sub { margin: 6px 0 0; color: var(--ink-2); font-weight: 700; font-size: 14.5px; }
.detail__tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px 0; }
.detail__tags .tag { height: 28px; padding: 0 11px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.detail__tags .tag--hot, .detail__tags .tag--closed { box-shadow: none; }
.detail__pad { padding: 0 16px; }
.note-small { margin: 10px 2px 0; color: var(--ink-3); font-size: 12.5px; font-weight: 700; }
.box { margin-top: 14px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-card); }
.box h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.2; font-weight: 900; letter-spacing: -.01em; color: var(--ink); }
.box--hot { background: #FFE9EB; color: #0B0B0F; box-shadow: none; }
.box--hot h3 { color: var(--accent); }
@media (prefers-color-scheme: dark) { .box--hot { background: #2A1220; color: var(--ink); } .box--hot h3 { color: #FF8A96; } }
.box p { margin: 0; }
.quote { font-size: 18px; line-height: 1.45; font-weight: 700; letter-spacing: -.005em; text-wrap: pretty; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .proscons { grid-template-columns: 1fr; } }
.proscons ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.proscons li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; font-weight: 600; }
.proscons li i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px; }
.proscons li i svg { width: 14px; height: 14px; stroke-width: 3; }
.proscons .plus i { background: var(--good); color: #0B0B0F; }
.proscons .minus i { background: var(--bad); color: #0B0B0F; }
.addr { display: flex; gap: 12px; align-items: center; }
.addr__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--blue-100); color: var(--blue-500); flex: none; }
@media (prefers-color-scheme: dark) { .addr__ico { background: var(--surface-2); color: var(--blue-300); } }
.addr p { margin: 0; flex: 1; font-weight: 700; }
.visits { display: grid; gap: 22px; }
.visit__title { display: block; font-weight: 900; font-size: 16.5px; line-height: 1.25; letter-spacing: -.01em; }
.visit__date { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.visit__where { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.visit__where svg { width: 15px; height: 15px; }
.plats { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.plats li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px 8px 12px; border-radius: 14px; background: var(--surface-2); }
.p-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.p-price { font-weight: 900; font-size: 14px; font-variant-numeric: tabular-nums; }
.plats .stamp { margin: 2px 4px 0 0; }
.visit__avis { margin: 10px 0 0 !important; color: var(--ink-2); font-size: 14.5px; }
.visit__videos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.detail__actions { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 10px; margin-top: 18px; padding: 14px 16px calc(12px + var(--safe-b)); background: linear-gradient(transparent, var(--ground) 32%); }
.detail__actions .btn { flex: 1; }

/* The signature: the verdict stamp slams in, with the videos' white flash. */
.sheet.is-open .detail__head .stamp { animation: slam .24s var(--ease) .08s both; }
.sheet.is-open .detail__head .stamp .emo { animation: emo-pop .24s var(--pop) .3s both; }
.sheet.is-open .flash { animation: flash .14s linear .2s both; }
.sheet.is-open .detail__hero .tile { animation: logo-in .6s var(--ease) both; }
@keyframes slam { 0% { transform: scale(.8) rotate(-3deg); opacity: 0; } 55% { transform: scale(1.04) rotate(-3deg); opacity: 1; } 100% { transform: scale(1) rotate(-3deg); opacity: 1; } }
@keyframes logo-in { from { transform: rotateY(-28deg) rotateX(10deg) translateZ(-40px); opacity: 0; } }
@keyframes emo-pop { 0% { transform: scale(0) rotate(10deg); } 100% { transform: scale(1) rotate(10deg); } }
@keyframes flash { 0% { opacity: .7; } 100% { opacity: 0; } }

/* Filters */
.sheet--filters .sheet__body { padding: 26px 20px calc(20px + var(--safe-b)); }
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-head h2 { margin: 0; font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.sheet--filters .label { all: unset; display: flex; justify-content: space-between; margin: 22px 0 10px; font-size: 13px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.sheet--filters .label output { color: var(--blue-500); text-transform: none; letter-spacing: 0; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: 196px; overflow-y: auto; }
.chip-btn { min-height: 44px; padding: 0 15px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 800; font-size: 14px; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease); }
.chip-btn small { color: var(--ink-3); font-weight: 700; }
.chip-btn.is-on { background: var(--ink); color: var(--ground); box-shadow: none; }
.chip-btn.is-on small { color: inherit; opacity: .75; }
input[type="range"] { width: 100%; height: 32px; accent-color: var(--blue-500); }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 10px; font-weight: 700; font-size: 15px; }
.toggle input { width: 22px; height: 22px; accent-color: var(--blue-500); }
.filters-foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 24px; }

/* Install banner */
.install {
  position: fixed; z-index: 45; left: 50%; bottom: calc(var(--tabbar-h) + 24px + var(--safe-b)); transform: translateX(-50%);
  width: min(calc(100% - 32px), 420px); display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px;
  background: var(--surface); box-shadow: var(--shadow-lift); animation: rise .5s var(--ease);
}
@keyframes rise { from { transform: translate(-50%, 24px); opacity: 0; } }
.install img { border-radius: 11px; }
.install p { flex: 1; margin: 0; font-size: 13.5px; line-height: 1.3; }
.install p b { font-weight: 900; }
.install p span { display: block; color: var(--ink-2); font-weight: 600; }

/* Footer */
.footer { margin-top: 44px; padding-top: 18px; border-top: 1.5px solid var(--line); color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.footer p { margin: 0 0 8px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.socials a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 13.5px; }

/* Loading */
.skeleton { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); }

@media (min-width: 760px) {
  .headline { margin-top: 26px; }
  .feature { padding: 20px; }
}

/* Reduced motion: the same states, without travel. */
@media (prefers-reduced-motion: reduce) {
  .app, .lift, .tabbar__glider, .detail__hero .tile { transition: none; }
  .lift { transform: none !important; }
  .view.is-entering, .install { animation: none; }
  .sheet { transform: none; opacity: 0; transition: opacity .2s linear; }
  .sheet.is-open { transform: none; opacity: 1; }
  .sheet.is-open .detail__head .stamp, .sheet.is-open .detail__head .stamp .emo, .sheet.is-open .flash, .sheet.is-open .detail__hero .tile { animation: none; }
  .app.is-behind { transform: none; border-radius: 0; }
}
