/* =========================================================================
   Anime Figure Guide — styles.css
   Identité figée le 2026-04-24 (voir CONTEXT.md)
   ========================================================================= */

/* ---------- 1. Variables (palette, typo, layout) ---------- */
:root {
  /* Palette figée */
  --bg: #0F1014;            /* anthracite */
  --bg-elevated: #15161B;   /* fond légèrement plus clair pour les cards */
  --text: #ECE8DE;          /* ivoire cassé */
  --text-muted: #8B8579;    /* sand */
  --gold: #B8972A;          /* or du sceau */
  --gold-soft: #D4B24A;     /* or plus lumineux (hover, accents) */
  --up: #8FA86E;            /* succès / hausse */
  --down: #C25A4E;          /* alerte / baisse */
  --flat: #B8972A;          /* stable = or */

  /* Lignes et ombres */
  --line: rgba(236, 232, 222, 0.10);
  --line-strong: rgba(236, 232, 222, 0.18);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 1px 0 rgba(236, 232, 222, 0.04) inset, 0 10px 30px rgba(0, 0, 0, 0.35);

  /* Typographie */
  --font-display: 'Cinzel Decorative', Georgia, serif;  /* réservée au sceau */
  --font-heading: 'Fraunces', Georgia, serif;           /* H1, H2 */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(184, 151, 42, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(184, 151, 42, 0.04), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-soft); }

img { max-width: 100%; height: auto; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--bg); }

/* ---------- 3. Typographie ---------- */
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  color: var(--text);
  font-weight: 700;
}

h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-variation-settings: "opsz" 72, "SOFT" 50;
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
}

p { margin: 0 0 1em; }

.muted { color: var(--text-muted); }

/* ---------- 4. Layout ---------- */
.wrap {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

section { padding: 48px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p { margin: 8px 0 0; max-width: 60ch; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- 5. Header (topbar + brand = sceau + wordmark) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(15, 16, 20, 0.78);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-seal {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

.brand-wordmark .brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.brand-wordmark .brand-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 4px 0;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
}

/* ---------- 6. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--bg);
  border: none;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(184, 151, 42, 0.25);
}

.btn-primary:hover {
  color: var(--bg);
  box-shadow: 0 14px 40px rgba(184, 151, 42, 0.35);
}

.btn-ghost {
  background: rgba(236, 232, 222, 0.03);
}

/* ---------- 7. Eyebrows, tags, pills ---------- */
.eyebrow,
.tag,
.small-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  background: rgba(236, 232, 222, 0.025);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 151, 42, 0.15);
}

.tag { color: var(--gold); border-color: rgba(184, 151, 42, 0.25); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(143, 168, 110, 0.12);
  color: var(--up);
  border: 1px solid rgba(143, 168, 110, 0.25);
  margin-top: 12px;
}

.pill-down {
  background: rgba(194, 90, 78, 0.12);
  color: var(--down);
  border-color: rgba(194, 90, 78, 0.25);
}

.pill-flat {
  background: rgba(184, 151, 42, 0.10);
  color: var(--gold);
  border-color: rgba(184, 151, 42, 0.25);
}

/* ---------- 8. Cards (composant générique) ---------- */
.card,
.hero-copy,
.hero-side,
.newsletter,
.footer-card,
.guide-card,
.type-card,
.compare-card,
.tracker-card,
.insight-card {
  background:
    linear-gradient(180deg, rgba(236, 232, 222, 0.025), rgba(236, 232, 222, 0.01)),
    var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover,
.guide-card:hover,
.type-card:hover,
.tracker-card:hover {
  border-color: rgba(184, 151, 42, 0.3);
  transform: translateY(-2px);
}

.card h3,
.guide-card h3,
.type-card h3,
.tracker-card h3 { margin: 12px 0 8px; }

.card p { margin: 0; color: var(--text-muted); }

/* ---------- 9. Hero ---------- */
.hero { padding: 72px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: '';
  position: absolute;
  inset: auto -100px -100px auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(184, 151, 42, 0.12), transparent 65%);
  pointer-events: none;
}

.hero-copy h1 {
  margin-top: 20px;
  max-width: 14ch;
}

.lead {
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.pulse-box {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(184, 151, 42, 0.15), rgba(184, 151, 42, 0.04));
  border: 1px solid rgba(184, 151, 42, 0.25);
}

.pulse-box strong {
  display: block;
  font-family: var(--font-body);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 10px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.pulse-box span { color: var(--text-muted); display: block; margin-top: 6px; }

.hero-list { display: grid; gap: 12px; }

.hero-list-item {
  border: 1px solid var(--line);
  background: rgba(236, 232, 222, 0.02);
  border-radius: var(--radius);
  padding: 16px;
}

.hero-list-item strong { display: block; margin-bottom: 4px; color: var(--text); }
.hero-list-item span { color: var(--text-muted); font-size: 14px; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.meta-card {
  border: 1px solid var(--line);
  background: rgba(236, 232, 222, 0.02);
  border-radius: var(--radius);
  padding: 16px;
}

.meta-card strong { display: block; margin-bottom: 6px; color: var(--text); }
.meta-card span { color: var(--text-muted); font-size: 14px; }

/* ---------- 10. Steps (checklist) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(236, 232, 222, 0.02);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(184, 151, 42, 0.15);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
  border: 1px solid rgba(184, 151, 42, 0.3);
}

.step strong { display: block; margin-bottom: 6px; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- 11. Listes à puces "bullets" ---------- */
.bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.bullets li {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(236, 232, 222, 0.02);
}

.bullets li strong { color: var(--gold); }

/* ---------- 12. Tableau comparatif ---------- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.compare-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-align: left;
  padding: 0 14px;
  font-weight: 600;
}

.compare-table td {
  padding: 16px 14px;
  background: rgba(236, 232, 222, 0.025);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compare-table td:first-child {
  border-left: 1px solid var(--line);
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  color: var(--gold);
  font-weight: 600;
}

.compare-table td:last-child {
  border-right: 1px solid var(--line);
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* ---------- 13. Tracker (cards prix + sparklines) ---------- */
.tracker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tracker-top,
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.price {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.price-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

.trend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
}

.trend-up { background: rgba(143, 168, 110, 0.14); color: var(--up); border: 1px solid rgba(143, 168, 110, 0.3); }
.trend-down { background: rgba(194, 90, 78, 0.14); color: var(--down); border: 1px solid rgba(194, 90, 78, 0.3); }
.trend-flat { background: rgba(184, 151, 42, 0.14); color: var(--gold); border: 1px solid rgba(184, 151, 42, 0.3); }

.sparkline {
  width: 100%;
  height: 56px;
  margin: 14px 0 16px;
}

.sparkline .line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline .area { opacity: 0.18; }

.watch-btn {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(236, 232, 222, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 8px;
}

.watch-btn:hover {
  border-color: rgba(184, 151, 42, 0.5);
  background: rgba(184, 151, 42, 0.08);
  color: var(--gold-soft);
}

.watch-btn.active {
  background: rgba(184, 151, 42, 0.15);
  border-color: rgba(184, 151, 42, 0.5);
  color: var(--gold-soft);
}

/* Mini-grid (KPIs du tracker) */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini {
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(236, 232, 222, 0.025);
}

.mini strong {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 2rem;
  display: block;
  margin: 10px 0 4px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.mini span { color: var(--text-muted); font-size: 0.9rem; }

/* Insight grid */
.insight-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

/* ---------- 14. Compare grid (À faire / À éviter) ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* ---------- 15. Newsletter ---------- */
.newsletter {
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.newsletter h2 { margin-top: 12px; }

.newsletter form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.newsletter input {
  padding: 14px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(236, 232, 222, 0.03);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.newsletter input:focus {
  outline: none;
  border-color: var(--gold);
}

.newsletter input::placeholder { color: var(--text-muted); }

/* ---------- 16. Footer ---------- */
footer {
  padding: 40px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 20px;
}

.footer-card h3 { margin: 0 0 12px; color: var(--text); }

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--text-muted);
}

.footer-links a { font-size: 0.92rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- 17. Animations (reveal au scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 19. Navigation dropdown (Guides) ---------- */
.nav { position: relative; align-items: center; }

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown > .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: color 0.2s ease;
}

.nav-dropdown > .nav-trigger:hover,
.nav-dropdown.is-open > .nav-trigger,
.nav-dropdown > .nav-trigger.active {
  color: var(--text);
}

.nav-dropdown > .nav-trigger::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.nav-dropdown:hover > .nav-trigger::after,
.nav-dropdown:focus-within > .nav-trigger::after {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 280px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 60;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(184, 151, 42, 0.08);
  color: var(--gold-soft);
  outline: none;
}

.nav-dropdown-menu a small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}

.nav-dropdown-menu a:hover small,
.nav-dropdown-menu a:focus-visible small {
  color: var(--text-muted);
}

/* Petit décalage visuel pour combler le gap entre trigger et menu */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

/* Responsive : sur mobile, le dropdown devient une liste verticale */
@media (max-width: 1120px) {
  .nav-dropdown { display: none; }
}

/* ---------- 20. Type cards with image ---------- */
.type-card-image {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(15, 16, 20, 0.6);
  margin: -24px -24px 18px -24px;
  aspect-ratio: 16 / 10;
}

.type-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: saturate(0.85) brightness(0.85);
}

.type-card:hover .type-card-image img {
  transform: scale(1.04);
  filter: saturate(1) brightness(0.95);
}

.type-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 16, 20, 0.7) 100%);
  pointer-events: none;
}

/* Card sans image (Prize) : fond sobre avec ornement */
.type-card-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin: -24px -24px 18px -24px;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(184, 151, 42, 0.12), rgba(184, 151, 42, 0.02) 50%, transparent),
    rgba(15, 16, 20, 0.6);
  border-bottom: 1px solid rgba(184, 151, 42, 0.18);
}

.type-card-noimage::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  opacity: 0.35;
}

.type-card-noimage::after {
  content: 'PRIZE';
  position: relative;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-soft);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  z-index: 1;
}

/* Crédit photo discret */
.photo-credit {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.photo-credit a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.photo-credit a:hover {
  color: var(--gold-soft);
  border-bottom-color: rgba(184, 151, 42, 0.3);
}
/* ---------- Image hero d'article ---------- */
.article-hero-image {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}

.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-hero-image figcaption {
  padding: 18px 24px 20px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

.article-hero-image figcaption strong {
  color: var(--down);
  font-weight: 700;
}

.article-hero-image figcaption code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(184, 151, 42, 0.10);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--gold-soft);
}

.article-hero-image .photo-credit {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: block;
}
/* ---------- 18. Responsive ---------- */
@media (max-width: 1120px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .hero-meta,
  .steps,
  .tracker-grid,
  .insight-grid,
  .compare-grid,
  .mini-grid,
  .newsletter,
  .newsletter form {
    grid-template-columns: 1fr;
  }
  .nav { display: none; }
}

@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  section { padding: 32px 0; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .hero-copy,
  .hero-side,
  .card,
  .newsletter,
  .footer-card,
  .guide-card,
  .type-card,
  .compare-card,
  .tracker-card,
  .insight-card {
    border-radius: var(--radius);
    padding: 20px;
  }
  .hero-actions,
  .topbar-inner,
  .section-head,
  .tracker-top,
  .price-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand-wordmark .brand-name { font-size: 1rem; }
  .brand-wordmark .brand-tag { font-size: 0.6rem; }
}

@media (max-width: 560px) {
  .type-card-image,
  .type-card-noimage {
    aspect-ratio: 4 / 3;
    margin-left: -20px;
    margin-right: -20px;
  }
}
/* ============================================================
   AJOUTS HOME — Figurines (Page d'accueil refonte mai 2026)
   À ajouter à la fin de styles.css
   ============================================================ */

/* ---------- Hero avec photo figurine (remplace hero-side) ---------- */

.hero-grid-figure {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-figure {
  position: relative;
}

.figurine-frame {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(184, 151, 42, 0.06) 0%, rgba(15, 16, 20, 0.0) 60%);
  border: 1px solid var(--line);
}

.figurine-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.figurine-frame figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(15, 16, 20, 0) 0%, rgba(15, 16, 20, 0.85) 50%, rgba(15, 16, 20, 0.95) 100%);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.figurine-frame figcaption .muted {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 2px;
  opacity: 0.7;
}

/* ---------- Section "Apprendre par les pièces" — grille 4 cartes ---------- */

.figurine-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.figurine-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.figurine-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.figurine-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.figurine-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1a1c22;
  display: flex;
  align-items: center;
  justify-content: center;
}

.figurine-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.figurine-card:hover .figurine-card-image img {
  transform: scale(1.04);
}

.figurine-card-body {
  padding: 18px 20px 20px;
}

.figurine-card-body .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.figurine-card-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.3;
}

.figurine-card-body p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.figurine-card-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- Section "Signaux de marché" — 2 cartes horizontales avec photo ---------- */

.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.market-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  align-items: center;
}

.market-card-image {
  width: 140px;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #1a1c22;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.market-card-body .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.market-card-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.3;
}

.market-card-body p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid-figure {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .figurine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .figurine-grid {
    grid-template-columns: 1fr;
  }

  .market-card {
    grid-template-columns: 100px 1fr;
    gap: 14px;
  }

  .market-card-image {
    width: 100px;
    height: 130px;
  }
}
/* ============================================================
   BURGER MENU MOBILE (≤ 1120px)
   À coller à la fin de styles.css
   ============================================================ */

/* Bouton burger : caché par défaut (desktop) */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: 8px;
  transition: border-color 0.2s ease;
}

.burger:hover {
  border-color: var(--gold);
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Croix quand le menu est ouvert */
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Overlay du menu mobile (caché par défaut) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(15, 16, 20, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 96px 24px 32px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-overlay.is-open {
  display: block;
  opacity: 1;
}

.nav-overlay-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-overlay a,
.nav-overlay .nav-overlay-group-title {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-overlay a:hover,
.nav-overlay a:focus-visible {
  background: rgba(184, 151, 42, 0.10);
  color: var(--gold-soft);
  outline: none;
}

.nav-overlay .nav-overlay-group-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 20px;
  padding-bottom: 8px;
  cursor: default;
}

.nav-overlay .nav-overlay-sublink {
  padding-left: 28px;
  font-size: 0.98rem;
}

.nav-overlay .nav-overlay-sublink small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  margin-top: 2px;
}

/* Empêche le scroll de la page quand overlay ouvert */
body.nav-open {
  overflow: hidden;
}

/* Responsive : afficher le burger sous 1120px */
@media (max-width: 1120px) {
  .burger {
    display: inline-flex;
  }
}

/* ============================================================
   FIX MOBILE TOPBAR — consolidation < 480px
   ============================================================ */
/* ============================================================
   FIX MOBILE TOPBAR — consolidation < 480px
   ============================================================ */

@media (max-width: 480px) {
  /* Sceau légèrement plus petit */
  .brand-seal {
    width: 32px;
    height: 32px;
  }

  /* Wordmark compact */
  .brand-wordmark .brand-name {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
  }
  .brand-wordmark .brand-tag {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
  }

  /* Topbar : pas de wrap, gap serré */
  .topbar-inner {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 12px 0;
  }

  /* "S'inscrire" : plus compact, ne se rétrécit pas trop */
  .topbar-inner > .btn-ghost {
    padding: 8px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* La marque peut se compresser */
  .brand {
    min-width: 0;
    flex-shrink: 1;
    gap: 8px;
  }

.brand-wordmark {
    min-width: 0;
    overflow: hidden;
  }
}

/* ---------- 21. Encart "En un coup d'œil" (articles produits) ---------- */
/* ---------- 21. Encart "En un coup d'œil" (articles produits) ---------- */
.quick-info-wrapper {
  margin: 24px 0;
  padding: 22px 24px;
  background: linear-gradient(
    135deg,
    rgba(184, 151, 42, 0.06),
    rgba(184, 151, 42, 0.02) 50%,
    transparent
  );
  border: 1px solid rgba(184, 151, 42, 0.25);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.quick-info-title {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-info-title::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

.quick-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  align-items: baseline;
  margin: 0;
}

.quick-info dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.quick-info dt .qi-icon {
  font-size: 14px;
  opacity: 0.9;
}

.quick-info dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.quick-info dd strong {
  color: var(--gold-soft);
  font-weight: 600;
}

@media (max-width: 600px) {
  .quick-info-wrapper {
    padding: 20px 18px;
  }

  .quick-info {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .quick-info dt {
    margin-top: 8px;
  }

  .quick-info dt:first-of-type {
    margin-top: 0;
  }
}
