/* =========================================================
   MCF-2D RP — compléments au design system du site (/css/styles.css)
   ========================================================= */

:root {
  --coin: #ffc145;
  --coin-2: #ff9a1f;
  --coin-soft: rgba(255, 193, 69, 0.14);
  --city: rgba(102, 192, 244, 0.06);
}

/* ---------- Marque du jeu ---------- */

.brand .drop { width: 30px; height: 30px; }
.brand .brand-sub { font-weight: 500; color: var(--muted); font-size: 0.85rem; margin-left: 2px; }

/* Personnage « goutte » : la pointe indique la direction */
.drop { display: inline-block; }
.drop .body { fill: var(--accent); }
.drop .eye { fill: #0b121b; }

/* ---------- Hero du jeu : ville vue du dessus ---------- */

.rp-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 9vw, 100px); }
.rp-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--city) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--city) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  mask: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
}
.rp-hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); letter-spacing: -0.03em; }
.rp-hero h1 span { color: var(--accent); }
.rp-hero .lead { max-width: 560px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.rp-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }

.city-scene {
  position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; margin: 0 auto;
  border-radius: 28px; border: 1px solid var(--line-strong); overflow: hidden;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.05) 46% 54%, transparent 54%),
    linear-gradient(transparent 46%, rgba(255, 255, 255, 0.05) 46% 54%, transparent 54%),
    linear-gradient(135deg, #142231, #0d1722);
  box-shadow: var(--shadow), inset 0 0 80px rgba(0, 0, 0, 0.5);
}
.city-scene .block { position: absolute; border-radius: 10px; background: #1b2b3c; border: 1px solid rgba(102, 192, 244, 0.12); }
.city-scene .b1 { left: 6%; top: 6%; width: 36%; height: 36%; }
.city-scene .b2 { right: 6%; top: 6%; width: 36%; height: 36%; background: #1f2a24; }
.city-scene .b3 { left: 6%; bottom: 6%; width: 36%; height: 36%; background: #2a2219; }
.city-scene .b4 { right: 6%; bottom: 6%; width: 36%; height: 36%; }
.city-scene .block::after { content: ''; position: absolute; inset: 18%; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, 0.08); }
.city-scene .walker { position: absolute; width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(255, 138, 31, 0.6)); }
.city-scene .w1 { animation: walk-h 9s linear infinite; top: calc(50% - 17px); }
.city-scene .w2 { animation: walk-v 11s linear infinite; left: calc(50% - 17px); filter: drop-shadow(0 0 10px rgba(102, 192, 244, 0.6)); }
.city-scene .w2 .body { fill: var(--blue); }
.city-scene .car {
  position: absolute; width: 22px; height: 38px; border-radius: 6px; left: calc(50% + 8px);
  background: linear-gradient(#ffb347, #ff8a1f); box-shadow: 0 0 14px rgba(255, 179, 71, 0.5);
  animation: drive 6s linear infinite;
}
@keyframes walk-h { from { left: -10%; transform: rotate(90deg); } to { left: 105%; transform: rotate(90deg); } }
@keyframes walk-v { from { top: 105%; transform: rotate(0deg); } to { top: -10%; transform: rotate(0deg); } }
@keyframes drive { from { top: -12%; } to { top: 110%; } }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-family: var(--font-mono); font-size: 0.78rem; margin-bottom: 18px; }
.status-pill .led { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); animation: pulse 2s infinite; }

/* ---------- Fonctionnalités ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature .icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(255, 138, 31, 0.25); }
.feature .icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.roadmap .step-state { margin-bottom: 12px; }
.roadmap p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(26px, 4vw, 44px); }
.cta-band p { color: var(--muted); margin: 0; max-width: 560px; }

/* ---------- Coins ---------- */

.coin { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }
.coins { display: inline-flex; align-items: center; gap: 0.35em; font-family: var(--font-display); font-weight: 700; color: var(--coin); white-space: nowrap; }

.wallet {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: var(--coin-soft); border: 1px solid rgba(255, 193, 69, 0.3);
}
.wallet .coins { font-size: 1.15rem; }
.wallet .label { font-size: 0.82rem; color: var(--muted); }

/* ---------- Boutique ---------- */

.shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; padding: 48px 0 8px; }
.shop-head h1 { margin-bottom: 6px; }
.shop-head p { color: var(--muted); margin: 0; }
.shop-section { padding: 36px 0; }
.shop-section h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.shop-section .section-head { margin-bottom: 24px; }

.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.pack { text-align: center; padding: 26px 20px 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pack .pack-art { width: 76px; height: 76px; margin-bottom: 4px; filter: drop-shadow(0 6px 18px rgba(255, 154, 31, 0.45)); transition: transform 0.5s var(--ease); }
.pack:hover .pack-art { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.pack .coins { font-size: 1.6rem; }
.pack .bonus { position: absolute; top: 12px; right: 12px; }
.pack .price { color: var(--muted); font-size: 0.9rem; }
.pack .btn { margin-top: 6px; width: 100%; }
.pack.is-featured { border-color: rgba(255, 193, 69, 0.45); box-shadow: 0 0 0 1px rgba(255, 193, 69, 0.2), var(--shadow); }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.item { padding: 0; display: flex; flex-direction: column; }
.item .item-art {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--radius) var(--radius) 0 0;
  background: radial-gradient(circle at 50% 40%, rgba(102, 192, 244, 0.14), transparent 65%), var(--surface);
}
.item .item-art svg, .item .item-art img { width: 46%; height: auto; transition: transform 0.5s var(--ease); }
.item:hover .item-art svg, .item:hover .item-art img { transform: scale(1.08) rotate(-4deg); }
.item .item-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.item h3 { font-size: 1.02rem; margin: 0; }
.item .item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.item.is-owned .item-art { opacity: 0.6; }

.rarity-commun { --rarity: #9fb3c4; }
.rarity-rare { --rarity: #66c0f4; }
.rarity-epique { --rarity: #b98cff; }
.rarity-legendaire { --rarity: #ffc145; }
.item[class*="rarity-"] { border-top: 2px solid var(--rarity); }
.rarity-tag { color: var(--rarity); background: color-mix(in srgb, var(--rarity) 14%, transparent); }

.shop-closed { display: flex; gap: 18px; align-items: center; padding: 22px 24px; margin-top: 24px; }
.shop-closed .drop { width: 46px; height: 46px; flex: none; }
.shop-closed h2 { font-size: 1.15rem; margin-bottom: 2px; }
.shop-closed p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps .card { padding-top: 54px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 18px; left: 22px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  background: var(--accent); color: var(--accent-ink);
}
.steps p { color: var(--muted); margin: 0; font-size: 0.94rem; }

.shop-legal { font-size: 0.82rem; color: var(--faint); padding: 8px 0 64px; max-width: 760px; }
.shop-legal a { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .feature-grid, .roadmap, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .rp-hero-grid { grid-template-columns: 1fr; }
  .city-scene { max-width: 300px; order: -1; }
}
@media (max-width: 560px) {
  .feature-grid, .roadmap, .steps { grid-template-columns: 1fr; }
  .brand .brand-sub { display: none; }
}
.pack .pack-art { display: block; }
.pack .pack-art .coin { width: 100%; height: 100%; vertical-align: top; }
.item .rarity-tag { align-self: flex-start; }
.item .item-art { position: relative; }
.discount-badge { position: absolute; top: 10px; right: 10px; font-size: 0.8rem; }
.price-wrap { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.old-price { color: var(--faint); font-size: 0.85rem; font-family: var(--font-display); }
