/*
Theme Name: LR Pièces
Theme URI: https://lr-paiement.fr
Author: Demarches.info
Author URI: https://lr-paiement.fr
Description: Thème custom pour LR Pièces — Spécialiste pièces allemandes BMW, Mercedes, Audi, VW, Porsche, Opel, MINI, Smart. Ecommerce dédié aux pièces détachées.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lr-pieces
*/

/* ============================
   FONTS
============================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================
   RESET / BASE
============================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: 'Bebas Neue', 'Inter', sans-serif; font-weight: 400; letter-spacing: 0.02em; line-height: 1; margin: 0; }
p { margin: 0 0 1rem; }

/* ============================
   COLORS / TOKENS
============================ */
:root {
    --bg: #0a0a0a;
    --bg-elev: #141414;
    --bg-elev-2: #1c1c1c;
    --border: #262626;
    --border-strong: #3a3a3a;
    --text: #e5e5e5;
    --text-muted: #a3a3a3;
    --text-dim: #737373;
    --accent: #dc2626;        /* rouge */
    --accent-hover: #b91c1c;
    --gold: #d4b88e;          /* beige doré */
    --gold-bright: #e6cda3;
    --container: 1280px;
}

/* ============================
   LAYOUT HELPERS
============================ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.section--lg { padding: 120px 0; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
}
.eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.2);
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
.btn--primary::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}

/* ============================
   TOP MARQUEE BAR
============================ */
.topbar {
    background: var(--accent);
    color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
}
.topbar__track {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 60s linear infinite;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.topbar__item { padding: 0 24px; display: inline-block; }
.topbar__item::after { content: '·'; margin-left: 24px; opacity: 0.7; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================
   HEADER / NAV
============================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: var(--container);
    margin: 0 auto;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 38px; height: 38px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 0.08em; color: #fff; }
.brand__tag { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim); }
.nav { display: flex; gap: 8px; align-items: center; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; align-items: center; }
.nav__list li { margin: 0; }
.nav a, .nav__list a {
    padding: 10px 16px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.15s;
    font-weight: 500;
}
.nav a:hover, .nav a.current-menu-item, .nav .current-menu-item > a { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    color: #000;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.header-account:hover { background: var(--gold, #d4af37); color: #000; }
.header-cart { color: var(--text-muted); padding: 8px; }
.header-cart:hover { color: #fff; }
.nav-toggle { display: none; }

/* ============================
   HERO
============================ */
.hero {
    position: relative;
    padding: 120px 0 100px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(220,38,38,0.08) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%),
        repeating-linear-gradient(0deg, transparent 0, transparent 79px, rgba(255,255,255,0.025) 79px, rgba(255,255,255,0.025) 80px),
        repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(255,255,255,0.025) 79px, rgba(255,255,255,0.025) 80px),
        var(--bg);
}
.hero__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.hero__eyebrow { margin-bottom: 32px; }
.hero__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(56px, 9vw, 132px);
    line-height: 0.92;
    letter-spacing: 0.005em;
    color: #fff;
    margin-bottom: 32px;
}
.hero__title .gold { color: var(--gold); display: block; }
.hero__lead {
    max-width: 540px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================
   STATS BAR
============================ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}
.stats__item {
    padding: 32px 28px;
    border-right: 1px solid var(--border);
}
.stats__item:last-child { border-right: none; }
.stats__num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 44px;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}
.stats__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dim);
}

/* ============================
   FEATURES (numbered)
============================ */
.features { padding: 120px 0; border-bottom: 1px solid var(--border); }
.features__head { max-width: 720px; margin-bottom: 80px; }
.features__title {
    font-size: clamp(40px, 5vw, 72px);
    color: #fff;
    margin: 24px 0 0;
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.feature {
    background: var(--bg);
    padding: 48px 40px;
    transition: background 0.2s;
}
.feature:hover { background: var(--bg-elev); }
.feature__num {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--accent);
    font-size: 18px;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    display: block;
}
.feature__title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 16px;
}
.feature__text { color: var(--text-muted); font-size: 15px; line-height: 1.65; margin: 0; }

/* ============================
   BRANDS GRID
============================ */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.brand-card {
    background: var(--bg);
    padding: 48px 32px;
    text-align: center;
    transition: background 0.2s;
}
.brand-card:hover { background: var(--bg-elev); }
.brand-card__name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: #fff;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.brand-card__tag { font-size: 11px; color: var(--text-dim); letter-spacing: 0.15em; text-transform: uppercase; }

/* ============================
   PRODUCTS GRID
============================ */
.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product__img {
    width: 100%;
    aspect-ratio: 4/3;
    background: #1a1a1a;
    object-fit: cover;
}
.product__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product__meta { display: flex; gap: 8px; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.product__title { font-family: 'Inter', sans-serif; font-size: 14px; color: #fff; font-weight: 500; line-height: 1.4; margin-bottom: 8px; min-height: 40px; }
.product__sub { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.product__price { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: #fff; margin-bottom: 12px; }
.product__badges { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text-dim); margin-bottom: 16px; }
.product__actions { display: flex; gap: 8px; margin-top: auto; }
.product__btn {
    flex: 1;
    padding: 10px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    transition: all 0.15s;
}
.product__btn:hover { border-color: #fff; }
.product__btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.product__btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ============================
   REVIEWS
============================ */
.reviews-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}
.review-source {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 4px;
}
.review-source__name { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.review-source__score { font-family: 'Bebas Neue', sans-serif; font-size: 56px; color: #fff; line-height: 1; margin-bottom: 4px; }
.review-source__count { font-size: 13px; color: var(--text-muted); }
.reviews-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}
.review-card__source { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.review-card__text { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 24px; flex: 1; }
.review-card__author { font-size: 13px; font-weight: 600; color: #fff; }
.review-card__date { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* ============================
   CONTACT
============================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}
.contact-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 4px;
}
.contact-card__label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.contact-card__value { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: #fff; line-height: 1.2; margin-bottom: 8px; }
.contact-card__sub { font-size: 13px; color: var(--text-muted); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.hours-table td:first-child { color: var(--text-dim); width: 120px; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; }
.hours-table td:last-child { color: #fff; }

/* ============================
   FOOTER
============================ */
.site-footer {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    color: var(--text-muted);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-dim);
}

/* ============================
   PAGE TITLE / GENERIC
============================ */
.page-hero { padding: 100px 0 60px; border-bottom: 1px solid var(--border); }
.page-hero__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(44px, 6vw, 88px);
    color: #fff;
    line-height: 1;
    margin: 16px 0 24px;
}
.page-hero__lead { color: var(--text-muted); max-width: 620px; font-size: 16px; }

/* ============================
   BRANDS DETAIL CARDS (page Marques)
============================ */
.brand-detail {
    border-top: 1px solid var(--border);
    padding: 60px 0;
}
.brand-detail__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.brand-detail__num { font-family: 'Bebas Neue', sans-serif; color: var(--accent); font-size: 16px; letter-spacing: 0.1em; }
.brand-detail__motto { font-size: 12px; color: var(--text-dim); letter-spacing: 0.15em; text-transform: uppercase; }
.brand-detail__name { font-family: 'Bebas Neue', sans-serif; font-size: clamp(40px, 5vw, 72px); color: #fff; line-height: 1; margin-bottom: 24px; }
.brand-detail__text { color: var(--text-muted); font-size: 16px; max-width: 820px; line-height: 1.7; margin-bottom: 24px; }
.brand-detail__tags { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-tag {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 980px) {
    .nav { display: none; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: transparent; border: 1px solid var(--border-strong); color: #fff; border-radius: 4px; }
    .nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
    .header-account { display: none; }
    .features__grid { grid-template-columns: 1fr; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .products { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats__item:nth-child(2) { border-right: none; }
    .reviews-list, .reviews-summary, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .products { grid-template-columns: 1fr; }
    .brands-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .stats__item { border-right: none; border-bottom: 1px solid var(--border); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; }
    .hero { padding: 60px 0; }
    .section, .features { padding: 60px 0; }
}
