/* =============================================================
   sneaking.fr — Stylesheet
   Marketplace clean · sneaker price comparator
   ============================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input { font: inherit; }

/* ---------- Tokens ---------- */
:root {
  --bg:          #FFFFFF;
  --surface:     #F6F6F8;
  --surface-2:   #EFEFF2;
  --ink:         #0F0F10;
  --ink-soft:    #2C2C30;
  --muted:       #6B6B72;
  --muted-2:     #9A9AA0;
  --line:        #EAEAEE;
  --line-strong: #D8D8DD;
  --accent:      #2563EB;     /* bleu — best price / liens / focus */
  --accent-deep: #1D4ED8;
  --accent-soft: #EBF1FF;
  --hot:         #DC2626;     /* rouge — sale / hot / .fr */
  --hot-soft:    #FEE2E2;

  --shadow-sm:   0 1px 2px rgba(15, 15, 16, .04);
  --shadow:      0 8px 24px -10px rgba(15, 15, 16, .12), 0 2px 6px -1px rgba(15, 15, 16, .05);
  --shadow-lg:   0 24px 48px -16px rgba(15, 15, 16, .18);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 22px;

  --pad: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 24px);

  --container: 1400px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: #fff; }

/* ---------- Layout helpers ---------- */
.container, main > section, .footer__top, .footer__bot {
  max-width: var(--container);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 9px 14px; font-size: 13px; }
.btn--solid {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--solid:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { background: var(--surface); border-color: var(--line-strong); }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 9px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .005em;
}
.topbar p { opacity: .85; }
.topbar__pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .28);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse { 50% { transform: scale(.8); opacity: .55; } }
.topbar__link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.4);
  transition: text-decoration-color .2s var(--ease);
}
.topbar__link:hover { text-decoration-color: #fff; }

@media (max-width: 640px) {
  .topbar__link { display: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gap);
  padding: 14px var(--pad);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.025em;
}
.nav__logo-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  transition: transform .35s var(--ease), background .25s var(--ease);
}
.nav__logo:hover .nav__logo-mark { transform: rotate(-8deg); background: var(--accent-deep); }
.nav__logo-text sup {
  font-size: 11px;
  font-weight: 700;
  color: var(--hot);
  vertical-align: super;
  margin-left: 1px;
  letter-spacing: 0;
}
.hero__stat--save strong { color: var(--hot); }

.nav__menu {
  display: flex; gap: 6px;
  justify-self: center;
  background: var(--surface);
  border-radius: 999px;
  padding: 5px;
}
.nav__menu a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__menu a:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.nav__actions {
  display: flex; align-items: center; gap: 8px;
}

@media (max-width: 980px) {
  .nav { grid-template-columns: auto auto; }
  .nav__menu { display: none; }
}
@media (max-width: 540px) {
  .nav__actions .btn:first-of-type { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: clamp(60px, 8vw, 110px) var(--pad) clamp(40px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(16, 185, 129, .06) 0%, transparent 65%),
    radial-gradient(40% 30% at 80% 20%, rgba(15, 15, 16, .03) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  margin-bottom: 22px;
}
.hero__pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .28);
  animation: pulse 1.8s var(--ease) infinite;
}
.hero__title {
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -.035em;
  max-width: 14ch;
}
.hero__title-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero__title-mark::before {
  content: "";
  position: absolute;
  left: -.05em; right: -.05em;
  bottom: .08em;
  height: .28em;
  background: var(--hot);
  border-radius: 4px;
  z-index: -1;
  transform: skew(-6deg);
}
.hero__subtitle {
  margin-top: 18px;
  max-width: 540px;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--muted);
}

/* Search bar */
.search-bar {
  display: flex; align-items: center;
  width: 100%;
  max-width: 680px;
  margin-top: 32px;
  padding: 6px 6px 6px 20px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.search-bar:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(15, 15, 16, .08), var(--shadow);
}
.search-bar__icon { color: var(--muted); flex-shrink: 0; }
.search-bar__input {
  flex: 1;
  padding: 14px 14px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--ink);
  min-width: 0;
}
.search-bar__input::placeholder { color: var(--muted-2); }
.search-bar__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s var(--ease), transform .15s var(--ease);
  flex-shrink: 0;
}
.search-bar__btn:hover { background: #000; transform: translateX(1px); }
.search-bar__btn:hover svg { transform: translateX(2px); }
.search-bar__btn svg { transition: transform .2s var(--ease); }

@media (max-width: 540px) {
  .search-bar { padding: 5px 5px 5px 14px; }
  .search-bar__btn span { display: none; }
  .search-bar__btn { width: 40px; height: 40px; padding: 0; justify-content: center; }
}

/* Hero chips */
.hero__chips {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.hero__chips-label { font-weight: 500; margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.chip:hover {
  background: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* Hero stats */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  width: 100%; max-width: 880px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__stat {
  display: flex; flex-direction: column; gap: 4px;
  text-align: left;
}
.hero__stat strong {
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -.025em;
}
.hero__stat span {
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Shops strip ---------- */
.shops-strip {
  padding: 24px var(--pad);
  border-block: 1px solid var(--line);
  background: var(--surface);
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
  overflow: hidden;
}
.shops-strip__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.shops-strip__list {
  display: flex; gap: 32px;
  flex-wrap: wrap;
  flex: 1;
}
.shops-strip__list span {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
  cursor: default;
}
.shops-strip__list span:hover { color: var(--ink); }

/* ---------- Section primitives ---------- */
.section {
  padding: clamp(56px, 7vw, 88px) var(--pad) 0;
}
.section:last-of-type { padding-bottom: 40px; }

.section__head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.section__title {
  font-weight: 800;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.025em;
  line-height: 1.1;
}
.section__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .2s var(--ease);
}
.section__link svg { transition: transform .2s var(--ease); }
.section__link:hover { background: var(--surface); }
.section__link:hover svg { transform: translateX(3px); }

@media (max-width: 540px) {
  .section__head { flex-direction: column; align-items: start; }
  .section__link { padding-left: 0; }
}

/* ---------- Cards grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}

@media (max-width: 1100px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .cards-grid { grid-template-columns: 1fr; } }

/* ---------- Product card ---------- */
.product-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.product-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-card__image::after {
  /* subtle radial backdrop behind the shoe to add depth */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 80%, rgba(0,0,0,.06) 0%, transparent 60%);
  pointer-events: none;
}
.product-card__svg {
  width: 78%;
  height: 78%;
  /* color is set via [data-color] inline style consumed below */
  color: var(--card-color, #444);
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.12));
  transition: transform .5s var(--ease);
}
/* Map data-color to currentColor of the SVG via individual rules */
.product-card[data-color] .product-card__svg { color: var(--card-color); }
.product-card[data-color="#D62828"] { --card-color: #D62828; }
.product-card[data-color="#0F0F10"] { --card-color: #0F0F10; }
.product-card[data-color="#E5E7E0"] { --card-color: #E5E7E0; }
.product-card[data-color="#7B848D"] { --card-color: #7B848D; }
.product-card[data-color="#E6D7C5"] { --card-color: #E6D7C5; }
.product-card[data-color="#7B5E3C"] { --card-color: #7B5E3C; }
.product-card[data-color="#F1F1EE"] { --card-color: #F1F1EE; }
.product-card[data-color="#A36E4E"] { --card-color: #A36E4E; }
.product-card[data-color="#3B5A85"] { --card-color: #3B5A85; }
.product-card[data-color="#1B335A"] { --card-color: #1B335A; }
.product-card[data-color="#7E1521"] { --card-color: #7E1521; }
.product-card[data-color="#D9D2C5"] { --card-color: #D9D2C5; }
.product-card[data-color="#A0855B"] { --card-color: #A0855B; }

.product-card:hover .product-card__svg {
  transform: scale(1.06) rotate(-2deg) translateY(-2px);
}

.product-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .005em;
  z-index: 1;
}
.product-card__tag--hot  { background: var(--hot); }
.product-card__tag--sale { background: var(--hot); }
.product-card__tag--best { background: var(--accent); }

.product-card__body {
  padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.product-card__brand {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.product-card__title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-top: 4px;
  /* Clamp 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-card__foot {
  display: flex; align-items: end; justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.product-card__from {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 1px;
}
.product-card__price {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.shops-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 11.5px;
  font-weight: 700;
}
.shops-badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Comparator ---------- */
.comparator {
  padding: clamp(56px, 7vw, 88px) var(--pad) 0;
}
.vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--gap);
  align-items: stretch;
}
.vs__slot {
  background: var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: 36px;
  min-height: 280px;
  display: grid;
  align-items: center;
  transition: background .25s var(--ease), border-color .2s var(--ease);
}
.vs__slot:hover { border-color: var(--ink); }
.vs__slot.is-filled {
  background: #fff;
  border-style: solid;
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
  text-align: left;
  padding: 22px;
}
.vs__slot-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  color: var(--muted);
}
.vs__slot-letter {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.vs__slot-empty p {
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
}

.vs__filled-letter {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}
.vs__filled-image {
  background: var(--surface);
  border-radius: var(--r);
  aspect-ratio: 4 / 2.6;
  display: grid; place-items: center;
  margin: 14px 0;
}
.vs__filled-image svg {
  width: 70%;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.12));
}
.vs__filled-meta {
  display: flex; align-items: end; justify-content: space-between;
  gap: 12px;
}
.vs__filled-meta strong {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
}
.vs__filled-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vs__filled-brand {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.vs__filled-rm {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vs__filled-rm:hover { color: var(--hot); }

.vs__divider {
  align-self: center;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}

@media (max-width: 760px) {
  .vs { grid-template-columns: 1fr; }
  .vs__divider { justify-self: center; }
}

.vs__verdict {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
}
.vs__verdict-row { display: flex; flex-direction: column; gap: 2px; }
.vs__verdict-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
  font-weight: 600;
}
.vs__verdict-row strong {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--accent);
}

/* Picker modal */
.picker {
  position: fixed; inset: 0;
  z-index: 80;
  background: rgba(15, 15, 16, .35);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 16px;
  animation: fadeIn .25s var(--ease);
}
.picker[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.picker__panel {
  width: 100%;
  max-width: 540px;
  max-height: 80vh;
  background: #fff;
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUp .35s var(--ease);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.picker__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.picker__head h3 {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}
.picker__list {
  overflow: auto;
  padding: 8px;
}
.picker__item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px;
  border-radius: var(--r);
  cursor: pointer;
  transition: background .15s var(--ease);
}
.picker__item:hover { background: var(--surface); }
.picker__item-thumb {
  width: 56px; height: 56px;
  background: var(--surface);
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.picker__item-thumb svg { width: 70%; }
.picker__item-body { flex: 1; min-width: 0; }
.picker__item-body strong {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker__item-body span {
  font-size: 12px;
  color: var(--muted);
}
.picker__item-price {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.01em;
}

/* ---------- Brands grid ---------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}
.brand-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-height: 130px;
  transition: transform .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.brand-tile span {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.025em;
  line-height: 1;
}
.brand-tile small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.brand-tile:hover {
  transform: translateY(-3px);
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.brand-tile:hover small { color: rgba(255,255,255,.7); }

@media (max-width: 900px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .brands-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Newsletter ---------- */
.newsletter {
  margin: clamp(56px, 7vw, 88px) var(--pad) 0;
}
.newsletter__inner {
  max-width: var(--container);
  margin-inline: auto;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--gap);
  position: relative;
  overflow: hidden;
}
.newsletter__inner::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .55), transparent);
  right: -160px; bottom: -200px;
  filter: blur(40px);
  pointer-events: none;
}
.newsletter .section__eyebrow { color: var(--accent); }
.newsletter__title {
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-top: 6px;
}
.newsletter__lead {
  margin-top: 12px;
  max-width: 460px;
  color: rgba(255,255,255,.65);
}
.newsletter__form {
  display: flex; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px;
  min-width: 360px;
  transition: border-color .2s var(--ease);
  position: relative; z-index: 1;
}
.newsletter__form:focus-within { border-color: var(--accent); }
.newsletter__form input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  padding: 12px 16px;
  font-size: 15px;
  color: #fff;
  min-width: 0;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter__form .btn {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.newsletter__form .btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

@media (max-width: 760px) {
  .newsletter__inner { grid-template-columns: 1fr; }
  .newsletter__form { min-width: 0; }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(56px, 7vw, 88px);
  padding: 48px var(--pad) 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--gap);
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer__brand p {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 280px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.footer__cols h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.footer__cols a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s var(--ease);
}
.footer__cols a:hover { color: var(--ink); }

.footer__bot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   Pages internes — produit, marque, guides, 404
   ============================================================= */

/* ---------- Helpers shared across internal pages ---------- */
.muted { color: var(--muted); }
.cote-down { color: var(--accent); font-weight: 700; }
.section--tight { padding-top: clamp(24px, 3vw, 36px); }
.icon-btn--lg { width: 46px; height: 46px; }
.dot-sep { color: var(--muted-2); margin: 0 .25em; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 22px var(--pad) 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  transition: color .15s var(--ease);
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span:not(.breadcrumb__current) { color: var(--muted-2); font-size: 11px; }
.breadcrumb__current {
  color: var(--ink);
  font-weight: 600;
  /* Truncate long names */
  max-width: 50ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Sort select ---------- */
.sort-select {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px;
  background: var(--surface);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.sort-select label { font-weight: 600; }
.sort-select select {
  border: 0; background: #fff;
  border-radius: 999px;
  padding: 7px 32px 7px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12'><path d='M3 5l3 3 3-3' stroke='%230F0F10' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
  transition: box-shadow .2s var(--ease);
}
.sort-select select:focus { box-shadow: 0 0 0 3px var(--accent-soft); }

/* =============================================================
   PAGE PRODUIT
   ============================================================= */

/* ---------- Product hero ---------- */
.product-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 48px) var(--pad) clamp(56px, 7vw, 80px);
}
@media (max-width: 920px) {
  .product-hero { grid-template-columns: 1fr; }
}

.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.product-gallery__main {
  position: relative;
  aspect-ratio: 4 / 3.2;
  background: var(--surface);
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  overflow: hidden;
  --c: var(--card-color, #444);
}
.product-gallery__main::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 80%, rgba(0,0,0,.08) 0%, transparent 60%);
  pointer-events: none;
}
.product-gallery__main[data-color="#D62828"] { --card-color: #D62828; }
.product-gallery__svg {
  width: 78%;
  color: var(--card-color, #444);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.18));
}
.product-gallery__main .product-card__tag { top: 16px; left: 16px; }

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.product-gallery__thumb {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--r);
  display: grid; place-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.product-gallery__thumb svg {
  width: 80%;
  color: var(--card-color, #444);
  transform: rotate(var(--rotate, 0)) scaleX(var(--scaleX, 1)) scale(var(--scale, 1));
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.12));
}
.product-gallery__thumb[data-color="#D62828"] { --card-color: #D62828; }
.product-gallery__thumb:hover { background: #fff; border-color: var(--line-strong); }
.product-gallery__thumb.is-active { border-color: var(--ink); background: #fff; }

/* ---------- Product info ---------- */
.product-info { display: flex; flex-direction: column; }
.product-info__brand {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.product-info__title {
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin-top: 8px;
}
.product-info__meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.product-info__meta strong {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  margin-right: 4px;
}
.product-info__rating {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.product-info__rating .stars { color: var(--hot); letter-spacing: 1px; font-size: 14px; }
.product-info__rating strong { color: var(--ink); font-size: 15px; }

.product-info__price {
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.product-info__price > div { display: flex; flex-direction: column; gap: 4px; }
.price-big {
  font-weight: 800;
  font-size: clamp(36px, 4vw, 48px);
  letter-spacing: -.03em;
  line-height: 1;
}
.price-trend {
  font-size: 12.5px;
  color: var(--muted);
}

.product-info__sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.product-info__sizes { margin-top: 24px; }
.sizes {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.size {
  padding: 11px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease);
}
.size:hover { border-color: var(--ink); transform: translateY(-1px); }
.size.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size.is-out {
  color: var(--muted-2);
  background: var(--surface);
  text-decoration: line-through;
  cursor: not-allowed;
}
.size.is-out:hover { transform: none; border-color: var(--line); }
@media (max-width: 540px) { .sizes { grid-template-columns: repeat(5, 1fr); } }

.product-info__hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.product-info__cta {
  display: flex; gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn--lg { padding: 16px 22px; font-size: 14px; }
.product-info__cta .btn--solid { flex: 1; justify-content: center; min-width: 200px; }

/* ---------- Shops table ---------- */
.shops-table {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.shops-table__head {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr auto;
  gap: 12px;
  padding: 14px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.shops-table__row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .15s var(--ease);
}
.shops-table__row:last-child { border-bottom: 0; }
.shops-table__row:hover { background: var(--surface); }
.shops-table__row.is-best {
  background: var(--accent-soft);
  border-bottom-color: var(--accent);
}
.shops-table__row.is-best:hover { background: #DDE7FB; }
.shops-table__row .shop {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.shops-table__row .shop__logo {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -.02em;
}
.shops-table__row.is-best .shop__logo { background: var(--accent); color: var(--ink); }
.shops-table__row .shop strong {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -.01em;
}
.shops-table__row .shop span {
  font-size: 11.5px;
  color: var(--muted);
}
.shops-table__row .price {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}
.shops-table__row.is-best .price { color: var(--accent-deep); }

.status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
.status::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}
.status--ok::before  { background: #10B981; }
.status--low::before { background: #F59E0B; }
.status--out { color: var(--muted); }
.status--out::before { background: var(--muted-2); }

.best-flag {
  position: absolute;
  top: -10px; left: 22px;
  padding: 3px 8px;
  background: var(--accent);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 4px;
}

@media (max-width: 820px) {
  .shops-table__head { display: none; }
  .shops-table__row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "shop  price"
      "info  action";
    gap: 12px 16px;
  }
  .shops-table__row .shop { grid-area: shop; }
  .shops-table__row .price { grid-area: price; justify-self: end; }
  .shops-table__row > .muted,
  .shops-table__row > .status { grid-column: 1 / -1; grid-row: 2; font-size: 12px; }
  .shops-table__row > .btn { grid-area: action; justify-self: end; }
  .shops-table__row > .muted ~ .status { grid-column: 1 / -1; }
}

/* ---------- Price chart ---------- */
.legend {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px;
  color: var(--muted);
}
.legend__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.legend__dot--ink { background: var(--ink); }
.legend__dot--accent { background: var(--accent); }

.price-chart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px 22px;
}
.price-chart__bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: end;
  height: 240px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.bar {
  position: relative;
  display: flex; align-items: end; justify-content: center; gap: 4px;
  height: 100%;
}
.bar label {
  position: absolute;
  bottom: -20px; left: 0; right: 0;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.bar__avg, .bar__min {
  display: block;
  width: 16px;
  border-radius: 6px 6px 0 0;
  height: var(--h, 50%);
  transition: height .8s var(--ease), opacity .3s var(--ease);
}
.bar__avg { background: var(--ink); }
.bar__min { background: var(--accent); }
.bar:hover .bar__avg, .bar:hover .bar__min { opacity: .85; }

.price-chart__legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding-top: 18px;
}
.price-chart__legend > div { display: flex; flex-direction: column; gap: 2px; }
.price-chart__legend .muted {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.price-chart__legend strong {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.025em;
}

/* ---------- Specs ---------- */
.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--gap);
}
.specs > div {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.specs dt {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.specs dd {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.005em;
  text-align: right;
}
@media (max-width: 720px) { .specs { grid-template-columns: 1fr; } }

/* =============================================================
   PAGE MARQUE
   ============================================================= */

.brand-hero {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(24px, 3vw, 36px) var(--pad) clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.brand-hero__title {
  font-weight: 800;
  font-size: clamp(56px, 9vw, 120px);
  line-height: .9;
  letter-spacing: -.045em;
  margin: 8px 0 18px;
}
.brand-hero__lead {
  max-width: 540px;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--muted);
}
.brand-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.brand-hero__stats > div { display: flex; flex-direction: column; gap: 4px; }
.brand-hero__stats strong {
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -.025em;
}
.brand-hero__stats span {
  font-size: 12px;
  color: var(--muted);
}

.brand-hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 2fr 1fr;
  gap: 12px;
}
.brand-hero__plate {
  background: var(--surface);
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
  --c: #444;
}
.brand-hero__plate::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 30% at 50% 80%, rgba(0,0,0,.08), transparent 60%);
}
.brand-hero__plate svg {
  width: 80%;
  color: var(--c);
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.15));
}
.brand-hero__plate:nth-child(1) { grid-row: 1 / 3; }
.brand-hero__plate:nth-child(1) svg { width: 90%; }
.brand-hero__plate--sm { grid-column: 2; grid-row: 1; }
.brand-hero__plate--xs { grid-column: 2; grid-row: 2; }

@media (max-width: 920px) {
  .brand-hero { grid-template-columns: 1fr; }
  .brand-hero__visual { aspect-ratio: 16/8; max-width: 600px; }
  .brand-hero__stats { grid-template-columns: repeat(2, 1fr); }
}

.brand-toolbar {
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap);
  background: var(--bg);
  border-block: 1px solid var(--line);
  position: sticky;
  top: 70px;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.brand-toolbar__chips {
  display: flex; gap: 8px;
  flex: 1;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.brand-toolbar__chips::-webkit-scrollbar { display: none; }
.chip--active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.chip__count {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  margin-left: 5px;
  background: rgba(255,255,255,.18);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.chip:not(.chip--active) .chip__count {
  background: var(--surface-2);
  color: var(--muted);
}

.results-count {
  max-width: var(--container);
  margin: 0 auto 18px;
  padding: 0 var(--pad);
  font-size: 13.5px;
  color: var(--muted);
}
.results-count strong { color: var(--ink); font-weight: 700; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 4px;
  padding: 40px 0 8px;
}
.pagination__btn,
.pagination__page {
  min-width: 40px; height: 40px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.pagination__btn:disabled { color: var(--muted-2); cursor: not-allowed; }
.pagination__btn:hover:not(:disabled),
.pagination__page:hover { background: var(--surface); border-color: var(--ink); }
.pagination__page.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.pagination__sep { padding: 0 6px; color: var(--muted-2); }

/* =============================================================
   PAGE GUIDES
   ============================================================= */

.guides-hero {
  max-width: 940px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 80px) var(--pad) clamp(28px, 4vw, 40px);
  text-align: center;
}
.guides-hero__title {
  font-weight: 800;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-top: 14px;
}
.guides-hero__lead {
  max-width: 580px;
  margin: 18px auto 0;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--muted);
}
.guides-hero__chips {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

/* Featured article */
.article-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  align-items: stretch;
}
.article-featured__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  display: grid; place-items: center;
  overflow: hidden;
  --c: #444;
}
.article-featured__media[data-color="#D62828"] { --c: #D62828; }
.article-featured__media svg {
  width: 70%;
  color: var(--c);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.18));
  transition: transform .5s var(--ease);
}
.article-featured:hover .article-featured__media svg { transform: scale(1.04) rotate(-2deg); }
.article-featured__body {
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column;
}
.article-featured__title {
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 14px 0 14px;
}
.article-featured__excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.article-featured__author {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.article-featured__author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.article-featured__author span { font-size: 12px; }
.article-featured__body .btn { align-self: start; }

@media (max-width: 820px) {
  .article-featured { grid-template-columns: 1fr; }
}

.article-card__meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.article-card__cat-text {
  color: var(--accent-deep);
  font-weight: 700;
}

/* Articles grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.article-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.article-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  display: grid; place-items: center;
  overflow: hidden;
  --c: #444;
}
.article-card[data-color="#D62828"] .article-card__media { --c: #D62828; }
.article-card[data-color="#0F0F10"] .article-card__media { --c: #0F0F10; }
.article-card[data-color="#7B5E3C"] .article-card__media { --c: #7B5E3C; }
.article-card[data-color="#789664"] .article-card__media { --c: #789664; }
.article-card[data-color="#FF6B1F"] .article-card__media { --c: #FF6B1F; }
.article-card[data-color="#1B335A"] .article-card__media { --c: #1B335A; }
.article-card[data-color="#7E1521"] .article-card__media { --c: #7E1521; }
.article-card[data-color="#C4D8E8"] .article-card__media { --c: #C4D8E8; }
.article-card[data-color="#A0855B"] .article-card__media { --c: #A0855B; }
.article-card__media svg {
  width: 65%;
  color: var(--c);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.15));
  transition: transform .5s var(--ease);
}
.article-card:hover .article-card__media svg { transform: scale(1.05) rotate(-2deg); }
.article-card__cat {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: .005em;
  z-index: 1;
}
.article-card__body {
  padding: 18px 20px 22px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.article-card__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

@media (max-width: 920px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .articles-grid { grid-template-columns: 1fr; } }

/* =============================================================
   404
   ============================================================= */

.error-page {
  min-height: 70vh;
  display: grid; place-items: center;
  padding: clamp(40px, 6vw, 80px) var(--pad);
}
.error-page__inner {
  text-align: center;
  max-width: 720px;
  display: flex; flex-direction: column; align-items: center;
}
.error-page__eyebrow { color: var(--hot); }
.error-page__num-wrap {
  display: flex; align-items: center; gap: clamp(8px, 2vw, 24px);
  margin: 18px 0 28px;
}
.error-page__num {
  font-weight: 800;
  font-size: clamp(120px, 22vw, 260px);
  line-height: .85;
  letter-spacing: -.05em;
  color: var(--ink);
}
.error-page__shoe {
  width: clamp(140px, 22vw, 280px);
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  --c: #D62828;
  animation: shoe-bob 3s var(--ease) infinite;
}
.error-page__shoe[data-color="#D62828"] { --c: #D62828; }
@keyframes shoe-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-10px) rotate(4deg); }
}
.error-page__shoe svg {
  width: 80%;
  color: var(--c);
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.18));
}
.error-page__title {
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.error-page__msg {
  margin: 14px 0 30px;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  max-width: 460px;
}
.error-page .search-bar { margin-top: 0; }
.error-page__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 26px;
}
