/* ==============================================================
   trottinette-accessoires.fr — URBAN THEME
   Design sophistiqué, typographie élégante, tons foncés
   ============================================================== */

/* ---- Reset & Variables ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F7F9;
  --bg-card: #FFFFFF;
  --bg-dark: #1A1A2E;
  --bg-darker: #12121F;
  --accent: #E85D04;
  --accent-light: #F48C28;
  --accent-dark: #C44D00;
  --text: #1A1A2E;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --text-on-dark: #E5E7EB;
  --text-on-dark-muted: #9CA3AF;
  --border: rgba(0,0,0,0.08);
  --border-dark: rgba(255,255,255,0.1);
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.1), 0 8px 32px rgba(0,0,0,0.06);
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1080px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--accent-dark); }

::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ---- Navigation ---- */
nav {
  background: var(--bg-darker);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-dark);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo:hover { color: var(--accent); }
.logo-icon { width: 22px; height: 22px; }

.nav-links { display: flex; gap: 1.8rem; list-style: none; padding: 0; }
.nav-links a {
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-darker) 50%, #0D0D1A 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(232,93,4,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(232,93,4,0.15);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.05rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.8rem;
  max-width: 520px;
  line-height: 1.6;
}

/* Hero illustration */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-primary svg { width: 16px; height: 16px; }

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}
.section-header p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* ---- Categories Section ---- */
.section-categories {
  padding: 3.5rem 0;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  cursor: default;
  border: 1px solid transparent;
}
.cat-card:hover {
  border-color: rgba(232,93,4,0.15);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.cat-icon {
  width: 40px;
  height: 40px;
  background: rgba(232,93,4,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.cat-icon svg { width: 20px; height: 20px; }
.cat-info { flex: 1; min-width: 0; }
.cat-info h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.1rem; }
.cat-info p { font-size: 0.78rem; color: var(--text-light); }
.cat-rating { color: var(--accent); font-size: 0.8rem; white-space: nowrap; flex-shrink: 0; }

/* ---- Featured Section ---- */
.section-featured {
  padding: 1rem 0 3rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
}
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.article-card-visual {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.7;
}
.article-card-visual svg { width: 48px; height: 48px; }
.article-card-body { padding: 1.2rem 1.5rem 1.5rem; }
.article-card-tag {
  display: inline-block;
  background: rgba(232,93,4,0.1);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.article-card-body h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.3rem; }
.article-card-body h3 a { color: var(--text); }
.article-card-body h3 a:hover { color: var(--accent); }
.article-card-body p { font-size: 0.84rem; color: var(--text-light); line-height: 1.55; }
.article-card-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- Article Page ---- */
.article-hero {
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.article-hero-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.8rem;
}
.article-hero-breadcrumb a { color: var(--text-on-dark-muted); }
.article-hero-breadcrumb a:hover { color: var(--accent); }
.article-hero h1 { font-size: 2rem; font-weight: 800; max-width: 720px; margin: 0 auto; letter-spacing: -0.3px; line-height: 1.2; }

.article-body {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.8rem;
  letter-spacing: -0.3px;
}
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #374151;
  margin: 1.5rem 0 0.5rem;
}
.article-body p { margin-bottom: 0.9rem; color: #444; font-size: 0.95rem; }
.article-body ul, .article-body ol { margin-bottom: 1rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.3rem; font-size: 0.95rem; color: #444; }
.article-body strong { color: var(--text); }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.88rem;
}
.article-body th {
  background: var(--bg-dark);
  color: #fff;
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
}
.article-body td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

/* Product card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin: 1.2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s;
}
.product-card:hover { border-color: rgba(232,93,4,0.2); }
.product-card-visual { flex-shrink: 0; width: 40px; height: 40px; color: var(--accent); }
.product-card-info { flex: 1; min-width: 0; }
.product-card-info h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.15rem; }
.product-card-info p { font-size: 0.82rem; color: var(--text-light); margin: 0; }
.product-card-price { color: var(--accent); font-weight: 700; font-size: 1.05rem; }
.product-card-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.product-card-cta:hover { background: var(--accent-dark); color: #fff; }

/* Affiliate button */
.affil-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.3s;
  margin: 1rem 0;
}
.affil-btn:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 4px 12px rgba(232,93,4,0.3); }
.affil-btn small { font-weight: 400; opacity: 0.75; font-size: 0.7rem; }

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 2rem 0 0;
}
.cta-section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.cta-section p { font-size: 0.95rem; color: var(--text-on-dark-muted); margin-bottom: 1.5rem; }
.cta-section .btn-primary {
  background: var(--accent);
  color: #fff;
}
.cta-section .btn-primary:hover { background: var(--accent-dark); }

/* ---- Footer ---- */
footer {
  background: var(--bg-darker);
  color: var(--text-on-dark-muted);
  padding: 3rem 0 1.5rem;
  font-size: 0.85rem;
}
footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
footer h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}
footer p { line-height: 1.6; }
footer a { color: var(--text-on-dark-muted); }
footer a:hover { color: var(--accent); }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.3rem; }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-dark);
  padding-top: 1.2rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
}
.affil-note { font-size: 0.72rem; opacity: 0.5; margin-top: 0.6rem; line-height: 1.5; }

/* ---- Article List Page (Featured grid + pagination) ---- */
.article-list { padding: 1.5rem 0 3rem; }

/* ---- 404 ---- */
.error-page {
  text-align: center;
  padding: 5rem 1.5rem;
}
.error-page h1 { font-size: 4rem; color: var(--accent); font-weight: 800; }
.error-page p { color: var(--text-light); margin: 1rem 0 2rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero { padding: 3rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { max-width: 100%; }
  .hero-visual { display: none; }
  .section-header h2 { font-size: 1.3rem; }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  footer .container { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; }
  .article-hero h1 { font-size: 1.4rem; }
}

/* ---- Accessibility ---- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Print ---- */
@media print { nav, .cta-section, .product-card-cta, footer { display: none; } }
