/* =====================================================================
   OVERLATE.SHOP — DESIGN SYSTEM
   Thème sombre gaming, rouge élégant, verre/blur, néon subtil.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    /* Fond */
    --bg-0: #08080a;
    --bg-1: #0d0d10;
    --bg-2: #131317;
    --bg-3: #1a1a1f;

    /* Bordures / verre */
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-strong: rgba(255, 255, 255, 0.07);

    /* Texte */
    --text-0: #f5f5f7;
    --text-1: #b7b7c0;
    --text-2: #7d7d87;

    /* Accent rouge */
    --red-500: #ff2d4a;
    --red-600: #e11d33;
    --red-700: #b3132a;
    --red-glow: rgba(255, 45, 74, 0.35);

    /* Accent secondaire (succès / promo) */
    --green: #22c55e;

    /* Rayons / ombres */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 40px var(--red-glow);

    /* Typo */
    --font-body: 'Inter', system-ui, sans-serif;
    --font-head: 'Space Grotesk', system-ui, sans-serif;
}

/* ---------------------------------------------------------------------
   Reset
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg-0);
    color: var(--text-0);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* Fond radial subtil derrière le hero */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(600px circle at 15% 0%, rgba(255, 45, 74, 0.10), transparent 60%),
        radial-gradient(500px circle at 90% 10%, rgba(255, 45, 74, 0.06), transparent 60%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------------------------------
   Typographie
   --------------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 18px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red-500);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--red-500);
    border-radius: 2px;
}

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

/* ---------------------------------------------------------------------
   Boutons
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--red-600), var(--red-500));
    color: #fff;
    box-shadow: 0 4px 20px var(--red-glow);
}
.btn-primary:hover {
    box-shadow: 0 6px 28px var(--red-glow);
    filter: brightness(1.08);
}

.btn-outline {
    background: var(--glass);
    border-color: var(--border-strong);
    color: var(--text-0);
    backdrop-filter: blur(12px);
}
.btn-outline:hover { background: var(--glass-strong); border-color: rgba(255,255,255,0.24); }

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: var(--glass);
    border-color: var(--border);
    color: var(--text-1);
}
.btn-icon:hover { color: var(--text-0); border-color: var(--border-strong); }

.btn-block { width: 100%; }

/* ---------------------------------------------------------------------
   Verre / Glass panels
   --------------------------------------------------------------------- */
.glass {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Badge pilule (statuts, features) */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-1);
}
.pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red-500);
    box-shadow: 0 0 8px var(--red-500);
}

/* Badge de réduction / statut sur carte produit */
.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    z-index: 2;
}
.badge-sale { background: var(--green); color: #06210f; }
.badge-new  { background: var(--red-500); color: #fff; }

/* ---------------------------------------------------------------------
   Header / Navigation
   --------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 8, 10, 0.72);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.site-header .container {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.logo .mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--red-600), var(--red-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 16px var(--red-glow);
}
.logo .word { color: var(--red-500); }
.logo .mark svg { width: 22px; height: 22px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
    position: relative;
    padding: 6px 0;
    transition: color .15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--text-0); }
.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--red-600), var(--red-500));
    border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
    padding: 88px 0 64px;
    text-align: center;
}
.hero h1 { margin: 0 auto 18px; max-width: 780px; }
.hero h1 .accent {
    background: linear-gradient(90deg, var(--red-600), var(--red-500) 60%, #ff6b7d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p {
    max-width: 560px;
    margin: 0 auto 32px;
    color: var(--text-1);
    font-size: 16px;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
}
.hero-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-pills .pill { border: 1px solid var(--border); }

/* ---------------------------------------------------------------------
   Catégories (icônes)
   --------------------------------------------------------------------- */
.category-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 40px 0;
}
.category-card {
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--glass-strong);
}
.category-card .icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, rgba(255,45,74,0.18), rgba(255,45,74,0.04));
    border: 1px solid rgba(255,45,74,0.25);
}
.category-card h3 { font-size: 15px; margin-bottom: 4px; }
.category-card span { font-size: 12px; color: var(--text-2); }

/* ---------------------------------------------------------------------
   Cartes fonctionnalités
   --------------------------------------------------------------------- */
.feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.feature-item {
    background: var(--bg-1);
    padding: 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.feature-item .icon {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--red-600), var(--red-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}
.feature-item h4 { font-size: 14px; margin-bottom: 3px; }
.feature-item p { margin: 0; font-size: 12.5px; color: var(--text-2); }

/* ---------------------------------------------------------------------
   Cartes produit
   --------------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-card {
    position: relative;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: rgba(255,45,74,0.4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.product-card .thumb {
    aspect-ratio: 4/3;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,45,74,0.16), transparent 65%),
        var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 26px;
    color: var(--red-500);
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--border);
}
.product-card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.product-card .cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--red-500);
    margin-bottom: 6px;
}
.product-card h3 { margin-bottom: 10px; min-height: 44px; }
.product-card .price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}
.product-card .price .now { font-family: var(--font-head); font-size: 19px; font-weight: 700; }
.product-card .price .old { font-size: 13px; color: var(--text-2); text-decoration: line-through; }
.product-card .actions { display: flex; gap: 8px; }
.product-card .actions .btn-primary { flex: 1; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--border);
    padding: 50px 0 30px;
    background: var(--bg-1);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.footer-grid h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-2);
    margin-bottom: 16px;
}
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { font-size: 13.5px; color: var(--text-1); }
.footer-grid a:hover { color: var(--text-0); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-2);
}

/* ---------------------------------------------------------------------
   Fond animé (orbes ambiants)
   --------------------------------------------------------------------- */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.28;
    background: radial-gradient(circle, var(--red-500), transparent 70%);
    animation: orbFloat 22s ease-in-out infinite;
}
.orb.a { width: 480px; height: 480px; top: -160px; left: -140px; }
.orb.b { width: 420px; height: 420px; bottom: -180px; right: -120px; animation-delay: -11s; animation-direction: reverse; }
.orb.c { width: 300px; height: 300px; top: 40%; left: 50%; opacity: 0.14; animation-delay: -6s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .orb { animation: none; }
}

/* ---------------------------------------------------------------------
   Scroll reveal (apparition au défilement)
   --------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in { transition-delay: .08s; }
.reveal-delay-2.in { transition-delay: .16s; }
.reveal-delay-3.in { transition-delay: .24s; }
.reveal-delay-4.in { transition-delay: .32s; }

/* ---------------------------------------------------------------------
   Grosses cartes catégorie / jeu (page Boutique façon "Boutique par jeu")
   --------------------------------------------------------------------- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.game-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-1);
    transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, box-shadow .25s ease;
}
.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(255,45,74,0.28), transparent 60%), var(--bg-2);
    transition: transform .5s ease;
}
.game-card .icon-big {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    filter: drop-shadow(0 8px 24px rgba(255,45,74,0.35));
}
.game-card .info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
}
.game-card .info h3 { font-size: 19px; margin-bottom: 4px; }
.game-card .info span { font-size: 12px; color: var(--text-1); }
.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,45,74,0.45);
    box-shadow: 0 16px 40px rgba(255,45,74,0.18);
}
.game-card:hover::before { transform: scale(1.06); }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 960px) {
    .main-nav { display: none; }
    .category-row, .feature-row, .product-grid, .game-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .category-row, .feature-row, .product-grid, .game-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
}
