/* ============================================================
   MOTORRAD- UND AUTOZUBEHÖR — Shop CSS
   Design: Forest Deep Green × Amber Gold × Warm Cream
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&family=Crimson+Pro:ital,wght@0,400;1,400&display=swap');

:root {
  --forest:    #1A1A1D;
  --pine:      #2B2B30;
  --sage:      #4A4A52;
  --amber:     #E63946;
  --gold:      #FF6B35;
  --cream:     #F2F2F2;
  --warm-white:#FFFDF8;
  --bark:      #3A3A3E;
  --ash:       #8A8A90;
  --charcoal:  #1A1A1D;
  --smoke:     #E8E8EC;
  --border:    #D8D8DE;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;
  --ff-accent:  'Crimson Pro', Georgia, serif;

  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 4px rgba(20,20,22,.08);
  --shadow:    0 4px 20px rgba(20,20,22,.12);
  --shadow-lg: 0 12px 48px rgba(20,20,22,.18);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

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

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

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber); }

/* ── Typography ───────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--ff-display); font-weight: 700; line-height: 1.2; color: var(--forest); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
.lead { font-size: 1.15rem; font-weight: 300; color: var(--bark); }

/* ── Navbar ────────────────────────────────────────────── */
.navbar-moto {
  background: var(--forest);
  padding: .85rem 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.navbar-moto .navbar-brand {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream) !important;
  letter-spacing: -.5px;
}

.navbar-moto .navbar-brand span { color: var(--gold); }

/* Logo importé : hauteur fixe en CSS (pas en attribut HTML), largeur libre
   pour garder les proportions d'origine sans jamais déformer l'image.
   object-fit + rendu "haute qualité" du navigateur pour un downscaling
   aussi net que possible ; voir aussi la recommandation de résolution
   dans Admin → Paramètres → Général (upload haute résolution = logo net
   même sur écrans Retina / haute densité de pixels). */
.navbar-logo-img {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  image-rendering: auto;
}

.navbar-moto .nav-link {
  color: rgba(250,246,238,.85) !important;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .3px;
  padding: .45rem .9rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.navbar-moto .nav-link:hover,
.navbar-moto .nav-link.active {
  color: var(--gold) !important;
  background: rgba(255,255,255,.07);
}

.navbar-moto .navbar-toggler { border-color: rgba(250,246,238,.3); }
.navbar-moto .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28250,246,238,.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.search-navbar { max-width: 260px; }
.search-navbar input {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--cream);
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: .88rem;
}
.search-navbar input::placeholder { color: rgba(250,246,238,.5); }
.search-navbar input:focus {
  background: rgba(255,255,255,.15);
  border-color: var(--gold);
  box-shadow: none;
  color: var(--cream);
}
.search-navbar button {
  background: var(--amber);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #fff;
  padding: .45rem .75rem;
  transition: background var(--transition);
}
.search-navbar button:hover { background: var(--gold); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--forest) 0%, #3a6b1e 55%, #1a2e0a 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 { color: var(--cream); font-size: clamp(2.2rem, 6vw, 4rem); }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero .lead { color: rgba(250,246,238,.78); font-size: 1.15rem; max-width: 520px; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label { font-size: .82rem; color: rgba(250,246,238,.65); text-transform: uppercase; letter-spacing: .8px; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-circle {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 40%, rgba(230,57,70,.2), transparent 70%);
  border: 1px solid rgba(230,57,70,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-icon-main {
  font-size: 8rem;
  opacity: .85;
  filter: drop-shadow(0 8px 32px rgba(230,57,70,.4));
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-forest {
  background: var(--pine);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .75rem 1.8rem;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .2px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-forest:hover { background: var(--forest); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-amber {
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .75rem 1.8rem;
  font-weight: 600;
  font-size: .92rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-amber:hover { background: #a86f08; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline-forest {
  background: transparent;
  color: var(--pine);
  border: 2px solid var(--pine);
  border-radius: var(--radius);
  padding: .7rem 1.6rem;
  font-weight: 600;
  font-size: .92rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-outline-forest:hover { background: var(--pine); color: #fff; }

.btn-outline-light-forest {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(250,246,238,.4);
  border-radius: var(--radius);
  padding: .7rem 1.6rem;
  font-weight: 500;
  font-size: .92rem;
  transition: all var(--transition);
}
.btn-outline-light-forest:hover { border-color: var(--gold); color: var(--gold); }

/* ── Section Titles ────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .6rem;
}

.section-title { margin-bottom: .5rem; }
.section-title-line {
  width: 48px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin: 1rem auto 0;
}
.section-title-line.left { margin-left: 0; }

/* ── Product Cards ─────────────────────────────────────── */
.product-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage);
}

.product-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8e8ec;
  background: linear-gradient(135deg, #e8dcc8, #c8b896);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #e8e8ec 0%, #e8e0d0 100%);
}

.product-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--amber);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 20px;
}
.product-badge.promo { background: #c0392b; }
.product-badge.new { background: var(--sage); }

.product-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-category {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: .4rem;
}
.product-title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.product-desc {
  font-size: .85rem;
  color: #6b6358;
  line-height: 1.55;
  flex: 1;
}
.product-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: .75rem 0;
}
.product-meta-tag {
  background: var(--smoke);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--bark);
  padding: .2rem .65rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.product-card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--smoke);
}

.product-price { font-family: var(--ff-display); }
.product-price-current { font-size: 1.4rem; font-weight: 700; color: var(--forest); }
.product-price-unit { font-size: .78rem; color: var(--ash); font-family: var(--ff-body); }
.product-price-old { font-size: .82rem; color: var(--ash); text-decoration: line-through; }

.btn-cart {
  background: var(--pine);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .5rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-cart:hover { background: var(--forest); color: #fff; transform: scale(1.03); }

/* Stars */
.stars { color: var(--gold); font-size: .85rem; letter-spacing: 1px; }
.stars-count { font-size: .78rem; color: var(--ash); margin-left: .3rem; }

/* ── Features Section ──────────────────────────────────── */
.features-section { background: var(--warm-white); }

.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.feature-card:hover {
  background: var(--cream);
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--pine), var(--sage));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 6px 20px rgba(230,57,70,.3);
}
.feature-title { font-family: var(--ff-display); font-size: 1.1rem; color: var(--forest); margin-bottom: .5rem; }
.feature-text { font-size: .88rem; color: #6b6358; }

/* ── Testimonials ──────────────────────────────────────── */
.testimonials-section { background: var(--forest); }
.testimonials-section h2 { color: var(--cream); }
.testimonials-section .section-eyebrow { color: var(--gold); }

.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: all var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(230,57,70,.3);
}
.testimonial-text {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(250,246,238,.88);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.testimonial-author { display: flex; align-items: center; gap: .85rem; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; color: var(--cream); font-size: .92rem; }
.testimonial-location { font-size: .78rem; color: rgba(250,246,238,.5); }

/* ── Newsletter ────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--amber) 0%, #a86f08 100%);
}
.newsletter-section h2 { color: #fff; }
.newsletter-section p { color: rgba(255,255,255,.88); }
.newsletter-input {
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: .8rem 1.25rem;
  font-size: .95rem;
  flex: 1;
  min-width: 0;
}
.newsletter-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.newsletter-btn {
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .8rem 1.6rem;
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
}
.newsletter-btn:hover { background: #0d1f08; }

/* ── Footer ────────────────────────────────────────────── */
.footer-main {
  background: var(--charcoal);
  color: rgba(250,246,238,.75);
  padding: 4rem 0 2rem;
}
.footer-brand {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 1rem;
}
.footer-brand span { color: var(--gold); }
.footer-desc { font-size: .88rem; line-height: 1.7; max-width: 300px; }

.footer-heading {
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  font-size: .88rem;
  color: rgba(250,246,238,.65);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-links a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .85rem;
  font-size: .88rem;
}
.footer-contact-item i { color: var(--gold); margin-top: .15rem; flex-shrink: 0; }

.footer-social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250,246,238,.7);
  transition: all var(--transition);
  font-size: .95rem;
}
.footer-social a:hover { background: var(--amber); color: #fff; }

.footer-bottom {
  background: #1a1713;
  padding: 1.1rem 0;
  font-size: .82rem;
  color: rgba(250,246,238,.45);
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ── Breadcrumb ────────────────────────────────────────── */
.breadcrumb-section {
  background: var(--smoke);
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb { margin: 0; background: transparent; padding: 0; font-size: .85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--ash); }
.breadcrumb-item a { color: var(--pine); }
.breadcrumb-item.active { color: var(--ash); }

/* ── Product Detail ────────────────────────────────────── */
.product-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #e8dcc8, #c8b896);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--smoke);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .3rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--bark);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: .75rem;
}
.price-display { font-family: var(--ff-display); }
.price-current { font-size: 2.4rem; font-weight: 700; color: var(--forest); }
.price-unit-label { font-size: 1rem; color: var(--ash); font-family: var(--ff-body); }

.quantity-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  background: var(--smoke);
  border: none;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--forest);
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--border); }
.qty-input {
  border: none;
  width: 60px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--forest);
  background: #fff;
}
.qty-input:focus { outline: none; }

.product-specs {
  background: var(--smoke);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-specs-title {
  background: var(--pine);
  color: #fff;
  padding: .7rem 1.25rem;
  font-weight: 600;
  font-size: .9rem;
}
.spec-row {
  display: flex;
  padding: .65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--ash); font-weight: 500; width: 140px; flex-shrink: 0; }
.spec-value { color: var(--charcoal); font-weight: 500; }

/* ── Review Cards ──────────────────────────────────────── */
.review-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; }
.reviewer-name { font-weight: 700; color: var(--forest); font-size: .95rem; }
.review-date { font-size: .78rem; color: var(--ash); }
.review-text { font-size: .9rem; color: #5a5248; line-height: 1.65; }

/* ── Page Content ──────────────────────────────────────── */
.page-content h2 { color: var(--forest); margin: 1.5rem 0 .75rem; }
.page-content h3 { color: var(--pine); margin: 1.25rem 0 .6rem; }
.page-content p { color: #4a4540; }
.page-content ul { color: #4a4540; }

/* ── Contact Form ──────────────────────────────────────── */
.contact-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-label { font-weight: 600; font-size: .88rem; color: var(--forest); margin-bottom: .4rem; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  font-size: .92rem;
  color: var(--charcoal);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(230,57,70,.12);
  outline: none;
}

/* ── Maintenance ───────────────────────────────────────── */
.maintenance-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--forest), #1a2e0a);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.maintenance-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 4rem 3rem;
  max-width: 540px;
}

/* ── Search Results ────────────────────────────────────── */
.search-bar-main {
  background: var(--warm-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.search-results-count { font-size: .9rem; color: var(--ash); margin-bottom: 1.5rem; }
.search-results-count strong { color: var(--forest); }

/* ── Toasts / Alerts ───────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; }
.toast-success { background: var(--pine); color: #fff; border-radius: var(--radius); padding: 1rem 1.5rem; box-shadow: var(--shadow-lg); }

/* ── Pagination ────────────────────────────────────────── */
.pagination .page-link { color: var(--pine); border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--pine); border-color: var(--pine); }
.pagination .page-link:hover { background: var(--smoke); color: var(--forest); }

/* ── Payment Badges ────────────────────────────────────── */
.payment-method-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--smoke);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem 1rem;
  font-size: .85rem;
  color: var(--bark);
  font-weight: 500;
}

/* ── Filter Bar ────────────────────────────────────────── */
.filter-bar {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.filter-label { font-weight: 600; font-size: .85rem; color: var(--forest); }
.filter-chip {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: .3rem .85rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--bark);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.active {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

/* ── Stock indicator ───────────────────────────────────── */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
}
.stock-badge.in { color: #2e7d32; }
.stock-badge.low { color: var(--amber); }
.stock-badge.out { color: #c62828; }
.stock-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ── Responsive Grid: Mobile 2×2, Desktop 3 ────────────── */
.products-grid { display: grid; gap: 1.25rem; }

@media (max-width: 575px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .product-card-body { padding: .85rem; }
  .product-title { font-size: .9rem; }
  .product-desc { display: none; }
  .product-price-current { font-size: 1.15rem; }
  .product-card-footer { padding: .75rem .85rem; flex-direction: column; gap: .5rem; }
  .btn-cart { width: 100%; justify-content: center; }
  .product-meta { display: none; }
}
@media (min-width: 576px) and (max-width: 767px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) and (max-width: 991px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Page catalogue (/produits.php) ─────────────────────
   3 zones uniques : filtres / produits / conseil.
   Mobile & tablette (<992px) : 1 colonne, ordre = produits → filtres → conseil.
   Desktop (≥992px) : sidebar 280px (filtres + conseil) à gauche, produits à droite.
   ──────────────────────────────────────────────────────── */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "products"
    "sidebar";
  gap: 1.5rem;
  align-items: start;
}
.zone-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.zone-products { grid-area: products; min-width: 0; }

@media (min-width: 992px) {
  .catalog-grid {
    grid-template-columns: 280px 1fr;
    grid-template-areas: "sidebar products";
  }
}

.filters-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.advice-card {
  background: linear-gradient(135deg, var(--forest), var(--pine));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* ── Pagination catalogue ───────────────────────────────── */
.pagination-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.per-page-select { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ash); }
.per-page-select select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .3rem .6rem;
  font-size: .85rem;
  font-family: var(--ff-body);
}
.pagination-pages { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; justify-content: center; }
.page-link-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--bark);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0 .65rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.page-link-btn:hover { border-color: var(--pine); color: var(--pine); }
.page-link-btn.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.page-link-btn.disabled { opacity: .4; pointer-events: none; }
.page-link-btn.num { min-width: 36px; padding: 0; }

@media (max-width: 575px) {
  .pagination-wrap { flex-direction: column; align-items: stretch; }
  .per-page-select { justify-content: center; }
  .pagination-pages { width: 100%; }
  .page-link-btn.prev-next span { display: none; } /* garde uniquement la flèche sur très petit écran */
}

/* ── Sécurité anti-débordement horizontal ───────────────── */
html, body { overflow-x: hidden; max-width: 100%; }

/* ── Utility ───────────────────────────────────────────── */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }
.bg-cream { background: var(--cream); }
.bg-smoke { background: var(--smoke); }
.bg-forest { background: var(--forest); }
.text-amber { color: var(--amber); }
.text-forest { color: var(--forest); }
.text-ash { color: var(--ash); }

/* ── Scroll reveal ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Back to top ───────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--pine);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
#back-to-top:hover { background: var(--forest); transform: scale(1.1); }
#back-to-top.show { display: flex; }

/* ── Order / Checkout form ─────────────────────────────── */
.checkout-section { background: var(--cream); }
.order-summary {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.order-summary-title { font-family: var(--ff-display); font-size: 1.1rem; color: var(--forest); margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.order-item { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.order-total { display: flex; justify-content: space-between; padding: .85rem 0 0; font-weight: 700; font-size: 1.05rem; color: var(--forest); font-family: var(--ff-display); }
/* ── Description riche produit (éditeur WYSIWYG) ─────────── */
.product-rich-description { font-size: 1rem; }
.product-rich-description p { margin: 0 0 1rem; }
.product-rich-description p:last-child { margin-bottom: 0; }
.product-rich-description ul,
.product-rich-description ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.product-rich-description li { margin-bottom: .35rem; }
.product-rich-description strong, .product-rich-description b { color: var(--forest); font-weight: 700; }
.product-rich-description h1, .product-rich-description h2,
.product-rich-description h3, .product-rich-description h4 {
  font-family: var(--ff-display); color: var(--forest); margin: 1.25rem 0 .6rem;
}
.product-rich-description h1:first-child, .product-rich-description h2:first-child,
.product-rich-description h3:first-child, .product-rich-description h4:first-child { margin-top: 0; }
.product-rich-description blockquote {
  margin: 0 0 1rem; padding: .6rem 1rem; border-left: 3px solid var(--gold);
  background: var(--cream); border-radius: 0 8px 8px 0; font-style: italic;
}
.product-rich-description a { color: var(--gold-dark); text-decoration: underline; }
