/*
Theme Name: ExpertPneu
Theme URI: https://expertpneu.com
Description: Standalone WordPress theme for ExpertPneu - Le guide expert des pneumatiques. Clean, modern, and lightweight.
Author: ExpertPneu
Author URI: https://expertpneu.com
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: expertpneu
*/


/* ==========================================================================
   1. FONT FACE DECLARATIONS
   ========================================================================== */

/* Manrope - Headings */
@font-face {
  font-family: 'Manrope';
  src: url('./fonts/manrope-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('./fonts/manrope-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* DM Sans - Body */
@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dmsans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dmsans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dmsans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eef2ff;
  --accent-color: #7c3aed;
  --bg-color: #fafafa;
  --bg-white: #ffffff;
  --card-bg: #ffffff;
  --text-color: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #888888;
  --text-muted: #aaaaaa;
  --border-color: #e5e7eb;
  --border-light: #f0f0f0;
  --success-color: #16a34a;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-pill: 100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 20px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.06);
}


/* ==========================================================================
   3. GLOBAL STYLES
   ========================================================================== */

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.04em;
  color: var(--text-color);
  line-height: 1.2;
}

h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 700; }
h4 { font-weight: 700; }
h5 { font-weight: 600; }
h6 { font-weight: 600; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--primary-hover);
}

::selection {
  background-color: var(--primary-color);
  color: #ffffff;
}

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

*, *::before, *::after {
  box-sizing: border-box;
}


/* ==========================================================================
   4. HEADER
   ========================================================================== */

/* Custom logo text: "expert" dark + "pneu" blue */
.ep-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}

.ep-logo .ep-logo-expert {
  color: #1a1a1a;
}

.ep-logo .ep-logo-pneu {
  color: var(--primary-color);
}

.ep-logo:hover {
  text-decoration: none;
}


/* ==========================================================================
   5. CARDS (GENERIC)
   ========================================================================== */

.ep-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ep-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.ep-btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
  line-height: 1.4;
}

.ep-btn-primary:hover,
.ep-btn-primary:focus {
  background-color: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
}

.ep-btn-primary:active {
  transform: scale(0.98);
}

.ep-btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease;
  line-height: 1.4;
}

.ep-btn-outline:hover,
.ep-btn-outline:focus {
  border-color: var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
}


/* ==========================================================================
   7. BADGES
   ========================================================================== */

.ep-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--border-radius-pill);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ep-badge-success {
  background-color: #ecfdf5;
  color: var(--success-color);
}

.ep-badge-warning {
  background-color: #fffbeb;
  color: var(--warning-color);
}


/* ==========================================================================
   8. HERO SECTION
   ========================================================================== */

.ep-hero {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 50%, #f5f0ff 100%);
  padding: 80px 24px;
  text-align: center;
}

.ep-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.ep-hero .ep-highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ep-hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.ep-hero-pill {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 16px;
}


/* ==========================================================================
   9. SEARCH BAR
   ========================================================================== */

.ep-search-bar {
  display: flex;
  max-width: 560px;
  margin: 24px auto 0;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.ep-search-bar:focus-within {
  border-color: var(--primary-color);
}

.ep-search-bar input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-color);
  background: var(--bg-white);
  outline: none;
}

.ep-search-bar input::placeholder {
  color: var(--text-muted);
}

.ep-search-bar button {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ep-search-bar button:hover {
  background-color: var(--primary-hover);
}


/* ==========================================================================
   10. QUICK TAGS
   ========================================================================== */

.ep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.ep-tag {
  display: inline-block;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 14px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ep-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
}


/* ==========================================================================
   11. BRAND GRID (HOMEPAGE)
   ========================================================================== */

.ep-brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.ep-brand-card {
  padding: 20px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70px;
}

.ep-brand-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  color: var(--primary-color);
  text-decoration: none;
  transform: translateY(-2px);
}


/* ==========================================================================
   12. DIMENSION PILLS GRID
   ========================================================================== */

.ep-dim-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ep-dim-pill {
  display: inline-block;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ep-dim-pill:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
}


/* ==========================================================================
   13. ARTICLE / GUIDE CARDS
   ========================================================================== */

.ep-guide-card {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ep-guide-card:hover {
  text-decoration: none;
  color: var(--text-color);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.ep-guide-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.ep-guide-card-body {
  padding: 20px;
}

.ep-guide-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 8px;
  line-height: 1.3;
}

.ep-guide-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}


/* ==========================================================================
   14. SINGLE ARTICLE / POST CONTENT
   ========================================================================== */

.ep-single-content {
  max-width: 800px;
  margin: 0 auto;
}

.ep-single-content h2 {
  margin-top: 40px;
  font-size: 1.45rem;
  color: var(--text-color);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.ep-single-content h3 {
  margin-top: 28px;
  font-size: 1.15rem;
}

.ep-single-content p {
  line-height: 1.8;
  margin-bottom: 1.2em;
}

.ep-single-content a {
  color: var(--primary-color);
  font-weight: 500;
}

.ep-single-content a:hover {
  color: var(--primary-hover);
}

/* Tables in single content */
.ep-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.ep-single-content table thead th {
  background-color: var(--text-color);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}

.ep-single-content table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}

.ep-single-content table tbody tr:nth-child(even) {
  background-color: var(--bg-color);
}

.ep-single-content table tbody tr:nth-child(odd) {
  background-color: var(--bg-white);
}

.ep-single-content table tbody tr:hover {
  background-color: var(--primary-light);
}


/* ==========================================================================
   15. NOTATION / RATING
   ========================================================================== */

.ep-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ep-rating-star {
  color: #fbbf24;
  font-size: 1rem;
  line-height: 1;
}

.ep-rating-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-color);
}

.ep-rating-bar {
  height: 8px;
  border-radius: 4px;
  background-color: var(--border-light);
  overflow: hidden;
  width: 100%;
}

.ep-rating-bar-fill {
  height: 100%;
  border-radius: 4px;
  background-color: var(--primary-color);
  transition: width 0.4s ease;
}


/* ==========================================================================
   16. PRODUCT CARD (PNEU)
   ========================================================================== */

.ep-pneu-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  transition: box-shadow 0.25s ease;
}

.ep-pneu-card:hover {
  box-shadow: var(--shadow);
}

.ep-pneu-card-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background-color: var(--bg-color);
  border-radius: var(--border-radius-sm);
  padding: 10px;
  flex-shrink: 0;
}

.ep-pneu-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ep-pneu-card-brand {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.ep-pneu-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 8px;
  line-height: 1.3;
}

.ep-pneu-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}


/* ==========================================================================
   17. BREADCRUMBS
   ========================================================================== */

.ep-breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 16px 0;
  margin-bottom: 8px;
}

.ep-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ep-breadcrumbs a:hover {
  color: var(--primary-color);
}

.ep-breadcrumbs .separator {
  margin: 0 8px;
  color: var(--text-muted);
}


/* ==========================================================================
   18. TABLE OF CONTENTS
   ========================================================================== */

.toc-container {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}

.toc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-color);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  padding: 4px 0;
}

.toc-item a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.toc-item a:hover {
  color: var(--primary-color);
}

.toc-item.toc-h3 {
  padding-left: 16px;
}


/* ==========================================================================
   19. CONVERSION ZONE
   ========================================================================== */

.conversion-zone {
  background-color: var(--primary-light);
  border: 2px dashed var(--primary-color);
  border-radius: var(--border-radius);
  padding: 40px 24px;
  text-align: center;
  margin: 32px 0;
  min-height: 100px;
}


/* ==========================================================================
   20. FOOTER
   ========================================================================== */

.ep-footer {
  background-color: #1a1a1a;
  color: #9ca3af;
  padding: 60px 24px 0;
}

.ep-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.ep-footer-heading {
  color: #ffffff;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.ep-footer a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.ep-footer a:hover {
  color: var(--primary-color);
}

.ep-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ep-footer ul li {
  padding: 4px 0;
}

.ep-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #4b5563;
  font-size: 0.85rem;
  text-align: center;
  padding: 24px 0;
  margin-top: 48px;
}

.ep-footer-bottom a {
  color: #4b5563;
}

.ep-footer-bottom a:hover {
  color: var(--primary-color);
}


/* ==========================================================================
   21. CSS RESET & BASE STYLES
   ========================================================================== */

/* CSS Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-color); }

/* Base layout */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }

/* Container for inner pages */
.ep-container { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }


/* ==========================================================================
   21b. HEADER & NAVIGATION
   ========================================================================== */

/* Header */
.ep-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ep-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Nav */
.ep-nav-list {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ep-nav-list li a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
  border-radius: var(--border-radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ep-nav-list li a:hover,
.ep-nav-list li.current-menu-item a {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

/* Mobile menu toggle */
.ep-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .ep-menu-toggle { display: block; }

  .ep-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 16px 24px;
  }

  .ep-nav.ep-nav--open { display: block; }

  .ep-nav-list {
    flex-direction: column;
    gap: 4px;
  }

  .ep-nav-list li a {
    padding: 12px 16px;
    width: 100%;
  }
}


/* ==========================================================================
   22. UTILITIES
   ========================================================================== */

.ep-section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.ep-section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.04em;
}

.ep-section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  font-size: 1rem;
  max-width: 500px;
  margin: -20px auto 32px;
}

.ep-text-center { text-align: center; }
.ep-text-left { text-align: left; }
.ep-text-right { text-align: right; }

.ep-mt-0 { margin-top: 0; }
.ep-mt-1 { margin-top: 8px; }
.ep-mt-2 { margin-top: 16px; }
.ep-mt-3 { margin-top: 24px; }
.ep-mt-4 { margin-top: 32px; }

.ep-mb-0 { margin-bottom: 0; }
.ep-mb-1 { margin-bottom: 8px; }
.ep-mb-2 { margin-bottom: 16px; }
.ep-mb-3 { margin-bottom: 24px; }
.ep-mb-4 { margin-bottom: 32px; }


/* ==========================================================================
   23. RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet and below */
@media (max-width: 768px) {

  /* Brand grid: 3 columns */
  .ep-brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hero section reduced padding */
  .ep-hero {
    padding: 40px 20px;
  }

  /* Footer: 2 columns */
  .ep-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  /* Section padding */
  .ep-section {
    padding: 40px 16px;
  }

  /* Pneu card: stack on smaller screens */
  .ep-pneu-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ep-pneu-card-info {
    align-items: center;
  }

  /* Search bar adjustments */
  .ep-search-bar {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 480px) {

  /* Brand grid: 2 columns */
  .ep-brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Single column layouts */
  .ep-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Hero adjustments */
  .ep-hero {
    padding: 32px 16px;
  }

  .ep-hero h1 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .ep-hero-subtitle {
    font-size: 1rem;
  }

  /* Card padding */
  .ep-card,
  .ep-pneu-card {
    padding: 16px;
  }

  /* Guide card image */
  .ep-guide-card img {
    height: 160px;
  }

  /* Table of contents */
  .toc-container {
    padding: 16px;
  }

  /* Conversion zone */
  .conversion-zone {
    padding: 24px 16px;
    margin: 24px 0;
  }

  /* Dimension pills */
  .ep-dim-pill {
    padding: 6px 14px;
    font-size: 0.88rem;
  }

  /* Single content */
  .ep-single-content h2 {
    font-size: 1.25rem;
  }

  .ep-single-content table {
    font-size: 0.82rem;
  }

  .ep-single-content table thead th,
  .ep-single-content table tbody td {
    padding: 8px 10px;
  }

  /* Breadcrumbs */
  .ep-breadcrumbs {
    font-size: 0.78rem;
  }
}


/* ==========================================================================
   24. ARCHIVE & TAXONOMY TEMPLATE LAYOUTS
   ========================================================================== */

/* Vehicle grid */
.ep-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ep-vehicle-card {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  overflow: hidden;
}

.ep-vehicle-card:hover {
  text-decoration: none;
  color: var(--text-color);
}

.ep-vehicle-card-image {
  border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
  overflow: hidden;
  margin: -24px -24px 16px -24px;
}

.ep-vehicle-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.ep-vehicle-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ep-vehicle-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.3;
}

.ep-vehicle-card-years {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Brand section headers (archive-vehicule grouping) */
.ep-brand-section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ep-brand-section-title a {
  color: var(--text-color);
  text-decoration: none;
}

.ep-brand-section-title a:hover {
  color: var(--primary-color);
}

/* Diameter group headers (archive-dimension grouping) */
.ep-diameter-group-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

/* Brand card name and count */
.ep-brand-card-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.ep-brand-card-count {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Pneu list (vertical stack of pneu cards) */
.ep-pneu-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ep-pneu-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Guide grid */
.ep-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Active tag state */
.ep-tag--active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: var(--primary-light);
}

/* Responsive: archive grids */
@media (max-width: 768px) {
  .ep-vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .ep-guide-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .ep-vehicle-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ep-guide-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ep-vehicle-card-image img {
    height: 160px;
  }
}


/* ==========================================================================
   25. HOMEPAGE FULL-WIDTH LAYOUT
   ========================================================================== */

/* Homepage: hero and sections are direct children of .site-content */
.home .ep-hero {
  padding: 80px 24px 64px;
  background: linear-gradient(160deg, #f0f5ff 0%, #e8f0fe 40%, #f5f0ff 100%);
  border-bottom: 1px solid var(--border-color);
}

.home .ep-section {
  max-width: none;
  margin: 0;
  padding: 64px max(24px, calc((100% - 1200px) / 2));
}

.home .ep-section:nth-of-type(odd) {
  background-color: var(--bg-color);
}

.home .ep-section:nth-of-type(even) {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Reset link colors inside card components */
a.ep-brand-card,
a.ep-guide-card,
a.ep-dim-pill,
a.ep-pneu-card,
a.ep-card {
  text-decoration: none;
  color: var(--text-color);
}

a.ep-brand-card:hover,
a.ep-guide-card:hover,
a.ep-dim-pill:hover,
a.ep-pneu-card:hover,
a.ep-card:hover {
  text-decoration: none;
}

a.ep-dim-pill:hover {
  color: var(--primary-color);
}

a.ep-brand-card:hover {
  color: var(--primary-color);
}

/* Brand grid: 5 columns on homepage */
.home .ep-brand-grid {
  grid-template-columns: repeat(5, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  gap: 16px;
}

/* Dimension pills: centered with gap */
.home .ep-dim-grid {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA buttons spacing */
.home .ep-text-center.ep-mt-3 {
  margin-top: 32px;
}

/* Responsive homepage */
@media (max-width: 768px) {
  .home .ep-hero {
    padding: 48px 20px 40px;
  }

  .home .ep-section {
    padding: 40px 20px;
  }

  .home .ep-brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .home .ep-hero {
    padding: 36px 16px 32px;
  }

  .home .ep-section {
    padding: 32px 16px;
  }

  .home .ep-brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
