/*
 * ============================================================
 * FICHIER : /asset/css/style.css
 * Rôle    : Feuille de style principale — toutes les pages
 *           publiques SpeedWood. Variables couleurs injectées
 *           dynamiquement depuis /includes/header.php
 * ============================================================
 */

/* ── Reset & base ─────────────────────────────────────────── */
:root {
  --red:    #e3262e;
  --red2:   #ff3a42;
  --dark:   #101214;
  --ink:    #17191b;
  --muted:  #6c7075;
  --cream:  #f5f1ea;
  --line:   #e8e3dc;
  --white:  #fff;
  --shadow: 0 18px 50px rgba(20,20,20,.1);
  --radius: 14px;
  --trans:  .3s cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { color: var(--ink); font-family: Inter, Arial, sans-serif; background: #fff; -webkit-font-smoothing: antialiased; }
a     { text-decoration: none; color: inherit; }
img   { display: block; max-width: 100%; }
ul,ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.eyebrow   { display: inline-block; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .18em; margin-bottom: 14px; }

/* ── Topbar ───────────────────────────────────────────────── */
.topbar { background: #0d0f10; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.topbar-inner { display: flex; justify-content: space-between; padding: 9px 0; }

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #eee;
  transition: box-shadow var(--trans);
}
.header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.08); }

.nav { height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { width: 150px; height: 66px; display: flex; align-items: center; flex: none; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }

.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 13px; font-weight: 700; }
.nav-links a { position: relative; padding: 10px 0; transition: color var(--trans); }
.nav-links a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--red); transition: width var(--trans); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; gap: 8px; }

.icon-btn, .cart-btn, .menu-toggle {
  border: 0; background: #f3f3f3; border-radius: 12px;
  height: 44px; padding: 0 14px; font-weight: 700;
  transition: background var(--trans), transform var(--trans);
}
.icon-btn:hover, .menu-toggle:hover { background: #e8e8e8; }
.cart-btn {
  background: var(--dark); color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.cart-btn:hover { background: #222; transform: translateY(-1px); }
.cart-btn b {
  display: inline-flex; width: 20px; height: 20px;
  align-items: center; justify-content: center;
  background: var(--red); border-radius: 50%; font-size: 11px;
  transition: transform var(--trans);
}
.cart-btn.bump b { transform: scale(1.4); }
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; padding: 0 12px; }
.burger-line { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--trans); display: block; }
.menu-toggle.open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .burger-line:nth-child(2) { opacity: 0; }
.menu-toggle.open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Barre de recherche dépliable */
.search-bar {
  border-top: 1px solid #eee;
  padding: 14px 0;
  animation: slideDown .25s ease;
}
.search-bar form { display: flex; gap: 10px; align-items: center; }
.search-bar input {
  flex: 1; border: 1.5px solid #ddd; border-radius: 10px;
  padding: 11px 16px; font-size: 14px; outline: none;
  transition: border-color var(--trans);
}
.search-bar input:focus { border-color: var(--red); }
.search-bar button { border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; font-size: 13px; }
.search-bar button[type="submit"] { background: var(--red); color: #fff; }
.search-bar .search-close { background: #f0f0f0; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 10px; padding: 14px 22px;
  font-weight: 800; font-size: 13px; transition: var(--trans);
}
.btn-red  { background: var(--red); color: #fff; box-shadow: 0 10px 28px rgba(227,38,46,.25); }
.btn-red:hover  { transform: translateY(-2px); background: var(--red2); box-shadow: 0 14px 32px rgba(227,38,46,.35); }
.btn-ghost { border: 1.5px solid #4b4d4f; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-outline {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 16px; font-size: 13px; font-weight: 700; width: 100%;
  transition: border-color var(--trans);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.text-link { color: var(--red); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: gap var(--trans); }
.text-link:hover { gap: 10px; }
.text-link.small { font-size: 12px; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero { min-height: 680px; background: #111; color: #fff; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(227,38,46,.28), transparent 30%),
              linear-gradient(110deg, #0b0d0e 15%, #17191a 60%, #2b1715);
}
/* Photo de fond hero — toujours visible même sans config BDD */
.hero-bg-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: .28;
  mix-blend-mode: luminosity;
  filter: saturate(0.6) contrast(1.1);
  transition: opacity 1s ease, transform 8s ease;
  transform: scale(1.04);
  animation: heroBgPan 14s ease-in-out infinite alternate;
}
@keyframes heroBgPan {
  0%   { transform: scale(1.04) translateX(0); }
  100% { transform: scale(1.08) translateX(-2%); }
}
/* Dégradé au-dessus de la photo pour lisibilité */
.hero-bg-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,12,14,.55) 0%,
    rgba(16,18,20,.25) 50%,
    rgba(43,23,21,.45) 100%
  );
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(120deg, transparent 0 75px, rgba(255,255,255,.022) 76px 77px);
}
.hero-grid {
  position: relative; min-height: 680px;
  display: grid; grid-template-columns: 1.2fr .8fr;
  align-items: center; gap: 70px; padding: 80px 0;
}
.hero h1 { font: 800 clamp(52px,7vw,90px)/.88 'Barlow Condensed', sans-serif; text-transform: uppercase; margin-bottom: 22px; letter-spacing: -.025em; }
.hero h1 em, h2 em { color: var(--red); font-style: normal; }
.hero-copy > p { max-width: 580px; color: #c8cbcd; line-height: 1.85; font-size: 15px; }
.hero-buttons { display: flex; gap: 12px; margin: 28px 0; }
.hero-points  { display: flex; gap: 18px; flex-wrap: wrap; color: #d7d7d7; font-size: 11px; font-weight: 700; }

.hero-card {
  background: #fff; color: #111; border-radius: 22px; padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4); transform: rotate(2deg);
  max-width: 390px; margin: auto; transition: transform var(--trans);
}
.hero-card:hover { transform: rotate(0deg) translateY(-6px); }
.hero-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 800; margin-bottom: 16px; }
.hero-card-top span { background: #ffe7e8; color: var(--red); padding: 7px 10px; border-radius: 5px; }
.hero-card-top strong { color: #777; }
.hero-product img { width: 100%; height: 245px; object-fit: cover; border-radius: 14px; transition: transform .5s; }
.hero-card:hover .hero-product img { transform: scale(1.03); }
.hero-product h3 { font-size: 22px; margin: 14px 0 4px; }
.hero-product p  { color: #777; font-size: 12px; }
.price-row { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.price-row strong { font-size: 28px; }
.price-row span   { font-size: 11px; color: #777; }
.mini-add {
  margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 26px; display: flex;
  align-items: center; justify-content: center; transition: var(--trans);
}
.mini-add:hover { background: var(--red2); transform: scale(1.08); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.scroll-hint span {
  width: 2px; height: 48px; background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ── Trust bar ────────────────────────────────────────────── */
.trust { background: var(--red); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-grid > div { padding: 26px 20px; display: flex; gap: 14px; align-items: center; border-right: 1px solid rgba(255,255,255,.18); }
.trust-grid > div:last-child { border-right: 0; }
.trust-icon { width: 26px; height: 26px; flex-shrink: 0; opacity: .9; }
.trust-grid span { font-size: 12px; font-weight: 800; }
.trust-grid small { display: block; font-size: 10px; font-weight: 500; opacity: .78; margin-top: 2px; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 105px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 45px; }
.section-head h2 { font: 700 clamp(38px,5vw,58px)/.95 'Barlow Condensed'; margin: 0; text-transform: uppercase; }
.section-head p  { max-width: 410px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.section-head.center { justify-content: center; text-align: center; }

/* ── Catégories ───────────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: 1.25fr .9fr .9fr; grid-template-rows: 260px 260px; gap: 18px; }
.cat-card { position: relative; overflow: hidden; border-radius: 18px; background: #222; color: #fff; }
.cat-card.tall { grid-row: span 2; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.4,0,.2,1); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, transparent 65%); }
.cat-card:hover img { transform: scale(1.07); }
.cat-card div { position: absolute; z-index: 2; bottom: 26px; left: 26px; }
.cat-card span { font-size: 10px; color: #ff5a61; font-weight: 800; letter-spacing: .1em; }
.cat-card h3 { font: 700 30px 'Barlow Condensed'; margin: 4px 0; text-transform: uppercase; }
.cat-card p  { margin: 0; font-size: 11px; color: #ddd; }

/* ── Produits ─────────────────────────────────────────────── */
.products-section { background: var(--cream); }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.product-grid.three { grid-template-columns: repeat(3,1fr); }
.product-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.05); transition: transform var(--trans), box-shadow var(--trans); }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-img { height: 270px; position: relative; overflow: hidden; background: #e8e8e8; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.product-card:hover .product-img img { transform: scale(1.06); }
.badge { position: absolute; z-index: 2; left: 14px; top: 14px; background: var(--red); color: #fff; padding: 6px 9px; border-radius: 5px; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.badge.dark { background: #111; }

/* Overlay "ajouter" au hover */
.product-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; padding: 18px; opacity: 0; transition: opacity var(--trans); }
.product-card:hover .product-overlay { opacity: 1; }
.quick-add { width: 100%; border: 0; border-radius: 10px; padding: 12px; background: #fff; font-weight: 800; font-size: 12px; transition: background var(--trans); }
.quick-add:hover { background: var(--red); color: #fff; }

.product-info { padding: 18px; }
.product-cat { font-size: 10px; color: var(--red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stars { color: var(--red); font-size: 12px; letter-spacing: 1px; margin: 6px 0; }
.stars small { color: #888; letter-spacing: 0; font-size: 10px; }
.product-info h3 { font: 700 25px 'Barlow Condensed'; margin: 8px 0 4px; }
.product-info p  { color: #777; font-size: 11px; line-height: 1.6; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 8px; }
.price-block { display: flex; flex-direction: column; }
.price-old  { color: #aaa; font-size: 11px; text-decoration: line-through; }
.price-unit { color: #aaa; font-size: 10px; }
.product-bottom strong { font-size: 21px; }
.add { border: 1.5px solid #ddd; background: #fff; padding: 9px 14px; border-radius: 8px; font-size: 11px; font-weight: 800; transition: var(--trans); flex-shrink: 0; }
.add:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Promo ────────────────────────────────────────────────── */
.promo { background: #111; color: #fff; padding: 80px 0; overflow: hidden; }
.promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.promo h2 { font: 700 clamp(38px,5vw,62px)/.92 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 14px; }
.promo p  { color: #aaa; font-size: 13px; line-height: 1.8; }

/* ── Livraison ────────────────────────────────────────────── */
.delivery { background: #151718; color: #fff; padding: 105px 0; }
.delivery-grid { display: grid; grid-template-columns: 1fr .75fr; gap: 90px; align-items: center; }
.delivery h2 { font: 700 clamp(44px,5vw,64px)/.9 'Barlow Condensed'; text-transform: uppercase; margin: 0 0 18px; }
.delivery-copy > p { color: #aaa; max-width: 520px; line-height: 1.85; font-size: 13px; }
.steps { margin-top: 36px; display: grid; gap: 18px; }
.steps > div { display: flex; gap: 18px; align-items: center; }
.steps b { width: 44px; height: 44px; border: 1.5px solid #444; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 10px; font-weight: 800; flex-shrink: 0; }
.steps strong, .steps small { display: block; }
.steps strong { font-size: 13px; }
.steps small   { color: #888; font-size: 10px; margin-top: 3px; }
.delivery-box { background: #fff; color: #111; padding: 36px; border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.delivery-icon { font-size: 46px; margin-bottom: 12px; }
.delivery-box h3 { font: 700 32px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 10px; }
.delivery-box p  { color: #777; font-size: 12px; line-height: 1.75; }
.postal { display: flex; margin: 22px 0 10px; }
.postal input { width: 100%; border: 1.5px solid #ddd; border-radius: 8px 0 0 8px; padding: 13px 14px; outline: none; transition: border-color var(--trans); font-size: 14px; }
.postal input:focus { border-color: var(--red); }
.postal button, #postalBtn { border: 0; background: var(--red); color: #fff; padding: 0 18px; border-radius: 0 8px 8px 0; font-weight: 800; font-size: 12px; transition: background var(--trans); }
.postal button:hover, #postalBtn:hover { background: var(--red2); }
.delivery-box small { color: #999; font-size: 9px; }
.postal-result { font-size: 13px; margin: 10px 0; border-radius: 8px; padding: 0; transition: var(--trans); }
.postal-result.success { background: #f0fff4; color: #1a7a3b; padding: 14px; }
.postal-result.error   { background: #fff0f0; color: #c00; padding: 14px; }
.postal-result .zone-info b { display: block; font-size: 16px; margin-bottom: 4px; }

/* ── Avantages ────────────────────────────────────────────── */
.benefit-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.benefit { padding: 32px 26px; text-align: center; border: 1.5px solid var(--line); border-radius: 15px; transition: var(--trans); }
.benefit:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.07); }
.benefit i  { font-style: normal; font-size: 36px; display: block; margin-bottom: 12px; }
.benefit h3 { font: 700 24px 'Barlow Condensed'; margin-bottom: 8px; text-transform: uppercase; }
.benefit p  { font-size: 12px; line-height: 1.75; color: #777; }

/* ── Témoignages ──────────────────────────────────────────── */
.testimonials { background: var(--cream); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testimonial-grid blockquote { margin: 0; background: #fff; padding: 30px; border-radius: 16px; transition: var(--trans); }
.testimonial-grid blockquote:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial-grid p { font-size: 14px; line-height: 1.85; color: #555; min-height: 90px; }
.testimonial-grid footer { border-top: 1px solid #eee; padding-top: 14px; margin-top: 18px; }
.testimonial-grid footer strong, .testimonial-grid footer span { display: block; }
.testimonial-grid footer strong { font-size: 13px; }
.testimonial-grid footer span   { font-size: 11px; color: #999; margin-top: 3px; }

/* ── Newsletter ───────────────────────────────────────────── */
.newsletter { background: var(--red); color: #fff; padding: 65px 0; }
.newsletter .eyebrow { color: #ffd6d8; }
.newsletter h2 { font: 700 clamp(32px,5vw,48px) 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 8px; }
.newsletter p  { font-size: 12px; opacity: .85; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.newsletter form  { display: flex; background: #fff; padding: 5px; border-radius: 10px; min-width: 440px; }
.newsletter input { border: 0; outline: 0; padding: 12px 14px; width: 100%; font-size: 13px; }
.newsletter .btn  { padding: 12px 20px; flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; padding: 75px 0; }
.footer-brand img { width: 190px; height: 85px; object-fit: contain; object-position: left center; }
.footer-brand p   { font-size: 12px; color: #777; margin: 12px 0 18px; line-height: 1.7; }
.footer-grid h4   { font: 700 20px 'Barlow Condensed'; text-transform: uppercase; margin: 0 0 18px; }
.footer-grid a, .footer-grid span { display: block; font-size: 11px; color: #777; margin: 11px 0; transition: color var(--trans); }
.footer-grid a:hover { color: var(--red); }
.socials { display: flex; gap: 8px; }
.socials a {
  display: flex !important; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: #111; color: #fff !important;
  border-radius: 9px; margin: 0 !important; transition: var(--trans);
}
.socials a:hover { background: var(--red); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid #eee; padding: 18px 0; color: #999; font-size: 10px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom a { color: #999; text-decoration: underline; }
.footer-bottom a:hover { color: var(--red); }

/* ── Cart Drawer ──────────────────────────────────────────── */
.cart-drawer {
  position: fixed; z-index: 100; right: -440px; top: 0;
  height: 100vh; width: min(420px, 92%);
  background: #fff; box-shadow: -20px 0 60px rgba(0,0,0,.18);
  transition: right .38s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.drawer-head { padding: 24px 22px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { font: 700 28px 'Barlow Condensed'; text-transform: uppercase; }
.drawer-head button { border: 0; background: #f0f0f0; border-radius: 9px; width: 36px; height: 36px; font-size: 22px; display: flex; align-items: center; justify-content: center; transition: background var(--trans); }
.drawer-head button:hover { background: #ddd; }
.cart-items { padding: 18px 22px; flex: 1; overflow-y: auto; }
.cart-line { display: flex; justify-content: space-between; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.cart-line .line-name { font-weight: 700; margin-bottom: 3px; }
.cart-line .line-price { color: var(--red); font-weight: 800; font-size: 15px; }
.cart-line button { border: 0; background: none; color: #ccc; font-size: 18px; padding: 0 4px; transition: color var(--trans); }
.cart-line button:hover { color: var(--red); }
.empty { color: #999; font-size: 13px; text-align: center; padding: 60px 0; }
.drawer-foot { padding: 20px 22px; border-top: 1px solid #eee; }
.drawer-foot > div { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 13px; font-weight: 700; }
.drawer-foot strong { font-size: 22px; }
.checkout { width: 100%; }

/* Overlay + Toast */
.overlay { position: fixed; z-index: 90; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity var(--trans); }
.overlay.show { opacity: 1; pointer-events: auto; }
.toast {
  position: fixed; z-index: 120; right: 24px; bottom: 24px;
  background: #111; color: #fff; padding: 14px 18px; border-radius: 10px;
  font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(16px);
  transition: var(--trans); pointer-events: none; max-width: 320px;
}
.toast.show { opacity: 1; transform: none; }

/* ── Reveal animations ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s cubic-bezier(.4,0,.2,1), transform .75s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb-bar { background: var(--cream); border-bottom: 1px solid var(--line); }
.breadcrumb-bar nav { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 12px; color: #999; }
.breadcrumb-bar a { color: #666; } .breadcrumb-bar a:hover { color: var(--red); }
.breadcrumb-bar span { color: #ccc; }
.breadcrumb-bar nav span:last-child { color: var(--ink); font-weight: 600; }

/* ── Page hero (pages intérieures) ───────────────────────── */
.page-hero { background: var(--dark); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 50%, rgba(227,38,46,.18), transparent 50%); }
.page-hero .container { position: relative; }
.page-hero h1 { font: 800 clamp(44px,6vw,78px)/.9 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 16px; }
.page-hero p  { color: #aaa; max-width: 580px; font-size: 15px; line-height: 1.8; }

/* ── Catalogue ────────────────────────────────────────────── */
.catalog-hero { background: var(--cream); padding: 52px 0; border-bottom: 1px solid var(--line); }
.catalog-hero h1 { font: 700 clamp(36px,5vw,60px)/.95 'Barlow Condensed'; text-transform: uppercase; }
.catalog-hero p  { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 10px; }
.catalog-section { padding: 60px 0; }
.catalog-layout  { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }

.catalog-sidebar { position: sticky; top: 104px; }
.sidebar-inner { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 24px; }
.sidebar-block { margin-bottom: 28px; }
.sidebar-block:last-child { margin-bottom: 0; }
.sidebar-block h3 { font: 700 18px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 14px; color: var(--ink); }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-list a { font-size: 13px; padding: 8px 12px; border-radius: 8px; color: #666; transition: var(--trans); display: block; }
.filter-list a:hover { background: var(--cream); color: var(--ink); }
.filter-list a.active { background: var(--red); color: #fff; font-weight: 700; }

.catalog-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.result-count { font-size: 13px; color: #777; }
.result-count strong { color: var(--ink); font-size: 16px; }
.result-count em { font-style: normal; font-weight: 700; color: var(--ink); }
.bar-right { display: flex; align-items: center; gap: 12px; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sort-form select { border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 12px; outline: none; cursor: pointer; }
.filter-toggle { border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 14px; background: #fff; font-size: 12px; font-weight: 700; display: none; align-items: center; gap: 6px; }

.search-active-bar { background: #fff8e1; border: 1px solid #ffd54f; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.clear-search { color: var(--red); font-weight: 700; font-size: 12px; }

.no-result { text-align: center; padding: 80px 20px; }
.no-result p { color: #888; font-size: 15px; margin-bottom: 20px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.page-btn { border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 18px; font-size: 13px; font-weight: 700; transition: var(--trans); }
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-numbers { display: flex; gap: 4px; }
.page-num { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 1.5px solid var(--line); transition: var(--trans); }
.page-num:hover { border-color: var(--red); color: var(--red); }
.page-num.active { background: var(--red); border-color: var(--red); color: #fff; }
.page-ellipsis { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #ccc; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-section { padding: 80px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: start; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-group label { font-size: 12px; font-weight: 700; margin-bottom: 7px; letter-spacing: .04em; }
.form-group input, .form-group textarea, .form-group select {
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 14px; outline: none;
  transition: border-color var(--trans);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 140px; }
.field-error { font-size: 11px; color: var(--red); margin-top: 4px; }
.contact-submit { width: 100%; padding: 15px; font-size: 14px; }
.form-success { background: #f0fff4; border: 1px solid #b2f0c5; border-radius: 10px; padding: 16px; color: #1a7a3b; font-size: 13px; margin-top: 14px; }
.form-error-msg { background: #fff0f0; border: 1px solid #ffd0d0; border-radius: 10px; padding: 16px; color: #c00; font-size: 13px; margin-top: 14px; }

.contact-info { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 104px; }
.info-card { display: flex; gap: 16px; background: var(--cream); border-radius: 14px; padding: 20px; }
.info-icon { font-size: 28px; flex-shrink: 0; }
.info-card h3 { font: 700 18px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 8px; }
.info-card p  { font-size: 12px; color: #666; line-height: 1.7; }
.contact-link { font-size: 14px; font-weight: 700; color: var(--red); transition: color var(--trans); }
.contact-link:hover { color: var(--red2); }
.hours-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.hours-table td { padding: 5px 0; color: #666; }
.hours-table td:last-child { text-align: right; }
.closed { color: #ccc; }
.map-section { margin-top: 0; }

/* ── Livraison page ───────────────────────────────────────── */
.delivery-steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.delivery-step-card {
  text-align: center; padding: 40px 28px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 18px; transition: var(--trans);
  position: relative;
}
.delivery-step-card:hover { border-color: var(--red); transform: translateY(-6px); box-shadow: var(--shadow); }
.step-icon { font-size: 44px; margin-bottom: 16px; }
.step-number { width: 38px; height: 38px; background: var(--red); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; margin: 0 auto 14px; }
.delivery-step-card h3 { font: 700 26px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 6px; }
.step-sub  { color: var(--red); font-size: 11px; font-weight: 700; margin-bottom: 12px; }
.step-desc { color: #777; font-size: 12px; line-height: 1.75; }
.zones-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 48px; }
.zone-card { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 24px; }
.zone-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.zone-head h3 { font: 700 20px 'Barlow Condensed'; text-transform: uppercase; }
.zone-price strong { font-size: 22px; color: var(--ink); }
.price-free { color: #1a7a3b; font-weight: 800; font-size: 15px; }
.zone-details { display: flex; flex-direction: column; gap: 8px; }
.zone-details > div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #666; }
.postal-checker { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 36px; text-align: center; max-width: 600px; margin: 0 auto; }
.postal-checker h3 { font: 700 28px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 10px; }
.postal-checker p { color: #777; font-size: 13px; margin-bottom: 24px; }
.postal-form { display: flex; gap: 10px; max-width: 380px; margin: 0 auto 18px; }
.postal-form input { flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; text-align: center; outline: none; transition: border-color var(--trans); letter-spacing: .1em; }
.postal-form input:focus { border-color: var(--red); }

.delivery-info-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.delivery-info-block { text-align: center; padding: 32px 20px; }
.di-icon { font-size: 40px; margin-bottom: 14px; }
.delivery-info-block h3 { font: 700 22px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 10px; }
.delivery-info-block p  { font-size: 12px; color: #777; line-height: 1.8; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-search { position: relative; max-width: 500px; margin-top: 28px; }
.faq-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #aaa; }
.faq-search input { width: 100%; border: 0; background: rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px 14px 44px; font-size: 14px; color: #fff; outline: none; }
.faq-search input::placeholder { color: rgba(255,255,255,.5); }
.faq-section { padding: 80px 0; }
.faq-layout { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color var(--trans); }
.faq-item:hover { border-color: var(--red); }
.faq-question {
  width: 100%; border: 0; background: #fff; padding: 20px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  text-align: left; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background var(--trans);
}
.faq-question:hover, .faq-question[aria-expanded="true"] { background: #fafafa; }
.faq-arrow { flex-shrink: 0; transition: transform var(--trans); color: var(--red); }
.faq-question[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }
.faq-answer { border-top: 1px solid #f0f0f0; }
.faq-answer-inner { padding: 18px 22px; font-size: 13px; color: #666; line-height: 1.85; }
.faq-sidebar { position: sticky; top: 104px; }
.faq-contact-card { background: var(--cream); border-radius: 18px; padding: 28px; }
.fcc-icon { font-size: 36px; margin-bottom: 12px; }
.faq-contact-card h3 { font: 700 22px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 10px; }
.faq-contact-card p  { font-size: 12px; color: #777; margin-bottom: 18px; line-height: 1.7; }
.fcc-hours { font-size: 11px; color: #888; display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.faq-no-result { text-align: center; padding: 60px; }
.faq-no-result p { color: #888; margin-bottom: 20px; }

/* ── Légal ────────────────────────────────────────────────── */
.legal-section { padding: 80px 0; }
.legal-layout { display: grid; grid-template-columns: 1fr 240px; gap: 60px; align-items: start; }
.legal-block { margin-bottom: 48px; }
.legal-block h2 { font: 700 30px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.legal-block p, .legal-block li { font-size: 13px; color: #555; line-height: 1.9; margin-bottom: 10px; }
.legal-block ul, .legal-block ol { padding-left: 20px; }
.legal-block ul li { list-style: disc; }
.legal-block ol li { list-style: decimal; }
.legal-block a { color: var(--red); text-decoration: underline; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.legal-table th, .legal-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--cream); font-weight: 700; width: 200px; }
.legal-toc { position: sticky; top: 104px; }
.toc-inner { background: var(--cream); border-radius: 14px; padding: 24px; }
.toc-inner h3 { font: 700 18px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 16px; }
.toc-inner ol, .toc-inner ul { padding-left: 0; counter-reset: toc; }
.toc-inner ol li { counter-increment: toc; }
.toc-inner li a { font-size: 12px; color: #666; display: block; padding: 7px 0; border-bottom: 1px solid var(--line); transition: color var(--trans); }
.toc-inner li a:hover, .toc-inner li a.active { color: var(--red); }
.toc-update { font-size: 10px; color: #aaa; margin-top: 12px; }

/* ── Livraison steps (page livraison) ─────────────────────── */
.delivery-steps-section { padding: 80px 0; }

/* ══ RESPONSIVE ═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .delivery-info-grid { grid-template-columns: repeat(2,1fr); }
  .zones-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 980px) {
  /* Nav */
  .nav-links { display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 20px; box-shadow: 0 15px 40px rgba(0,0,0,.1); z-index: 49; border-top: 1px solid #eee; }
  .nav-links.open { display: flex; animation: slideDown .22s ease; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .nav-actions span { display: none; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; padding: 70px 0 50px; }
  .hero-card { display: none; }
  .scroll-hint { display: none; }

  /* Grilles */
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid.three { grid-template-columns: repeat(2,1fr); }
  .category-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 220px; }
  .cat-card.tall { grid-row: span 2; }
  .delivery-grid { grid-template-columns: 1fr; gap: 50px; }
  .benefit-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .testimonial-grid { grid-template-columns: repeat(2,1fr); }
  .delivery-steps-grid { grid-template-columns: 1fr; }

  /* Newsletter */
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter form  { min-width: 0; width: 100%; }

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

  /* Catalogue */
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; display: none; }
  .catalog-sidebar.show { display: block; }
  .filter-toggle { display: flex; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { position: static; }

  /* Légal / FAQ */
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-sidebar { position: static; }
  .zones-grid { grid-template-columns: 1fr; }
  .promo-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .topbar-inner span:last-child { display: none; }
  .nav { height: 72px; }
  .brand { width: 125px; height: 58px; }
  .hero { min-height: auto; }
  .hero-grid { padding: 60px 0 40px; min-height: auto; }
  .hero h1 { font-size: 52px; }
  .hero-buttons { flex-direction: column; }
  .section { padding: 70px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .category-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cat-card { height: 240px; } .cat-card.tall { height: 300px; grid-row: auto; }
  .product-grid, .product-grid.three { grid-template-columns: 1fr; }
  .delivery-grid { gap: 40px; }
  .delivery h2 { font-size: 48px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
  .postal { flex-direction: column; }
  .postal input { border-radius: 8px; }
  .postal button { border-radius: 8px; height: 46px; }
  .newsletter form { flex-direction: column; background: transparent; padding: 0; }
  .newsletter input { border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.15); color: #fff; }
  .newsletter input::placeholder { color: rgba(255,255,255,.6); }
  .newsletter .btn { border-radius: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .delivery-info-grid { grid-template-columns: 1fr; }
  .delivery-steps-grid { grid-template-columns: 1fr; }
  .catalog-hero h1 { font-size: 40px; }
  .page-hero { padding: 56px 0; }
  .postal-form { flex-direction: column; }
  .postal-form input { text-align: left; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ══ PAGE DÉTAIL PRODUIT ═════════════════════════════════════ */
.product-detail-section { padding: 50px 0 70px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* Galerie */
.product-gallery { position: sticky; top: 104px; }
.gallery-main { position: relative; border-radius: 20px; overflow: hidden; background: var(--cream); aspect-ratio: 1; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.gallery-zoom-btn { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.9); border: 0; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); transition: var(--trans); }
.gallery-zoom-btn:hover { background: #fff; }
.gallery-prev, .gallery-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--trans); }
.gallery-prev { left: 12px; } .gallery-next { right: 12px; }
.gallery-prev:hover, .gallery-next:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumb-btn { width: 70px; height: 70px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: none; padding: 0; transition: border-color .2s; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn.active { border-color: var(--red); }
.thumb-btn:hover { border-color: #ccc; }

/* Lightbox */
.gallery-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.gallery-lightbox[hidden] { display: none; }
.lightbox-inner { max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.15); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; cursor: pointer; }
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 12px; }

/* Infos produit */
.product-detail-title { font: 800 clamp(32px,4vw,52px)/.95 'Barlow Condensed'; text-transform: uppercase; margin: 10px 0 16px; }
.detail-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.detail-stars { display: flex; gap: 2px; }
.detail-review-count { font-size: 13px; color: var(--red); font-weight: 700; }
.detail-price-block { margin-bottom: 20px; }
.detail-price-old { color: #aaa; font-size: 14px; text-decoration: line-through; display: block; margin-bottom: 2px; }
.detail-discount-pct { background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 5px; margin-left: 8px; }
.detail-price { font: 800 44px/1 'Barlow Condensed'; color: var(--ink); }
.detail-price span { font-size: 28px; }
.detail-unit { font-size: 13px; color: #aaa; display: block; margin-top: 4px; }
.detail-tax-note { font-size: 11px; color: #bbb; display: block; margin-top: 2px; }
.detail-short-desc { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 22px; }

/* Déclinaisons */
.variant-group { margin-bottom: 20px; }
.variant-group-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.variant-selected-label { color: var(--red); font-weight: 800; }
.variant-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-btn { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--trans); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.variant-btn small { font-size: 10px; color: #1a7a3b; font-weight: 700; }
.variant-btn:hover { border-color: var(--red); }
.variant-btn.selected { border-color: var(--red); background: #fff5f5; color: var(--red); }
.variant-btn.out-of-stock { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* Ajouter au panier */
.detail-add-row { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.detail-add-btn { flex: 1; min-width: 200px; font-size: 15px; padding: 15px; }
.detail-buy-now { padding: 14px 18px; border-radius: 10px; font-weight: 800; font-size: 13px; }
.detail-variant-warning { background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 12px 16px; font-size: 13px; color: #f57c00; margin-bottom: 14px; }

/* Réassurance */
.detail-reassurance { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
.detail-reassurance > div { display: flex; align-items: center; gap: 10px; background: var(--cream); border-radius: 10px; padding: 12px 14px; }
.detail-reassurance svg { flex-shrink: 0; color: var(--red); }
.detail-reassurance strong { display: block; font-size: 12px; }
.detail-reassurance small { font-size: 11px; color: #888; }

/* Partager */
.detail-share { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #aaa; }
.share-btn { width: 32px; height: 32px; border-radius: 8px; background: var(--cream); border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #666; transition: var(--trans); }
.share-btn:hover { background: var(--red); color: #fff; }

/* Onglets */
.product-tabs-section { padding: 50px 0 80px; background: var(--cream); }
.product-tabs { display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 2px solid var(--line); }
.tab-btn { border: 0; background: none; padding: 14px 22px; font-size: 14px; font-weight: 700; color: #888; cursor: pointer; position: relative; transition: color .2s; }
.tab-btn::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--red); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp .4s ease; }
.tab-inner { background: #fff; border-radius: 18px; padding: 36px; }

/* Description */
.desc-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; }
.desc-text h3 { font: 700 24px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 14px; }
.desc-text p  { font-size: 13px; color: #555; line-height: 1.85; margin-bottom: 14px; }
.desc-list { list-style: none; padding: 0; }
.desc-list li { font-size: 13px; color: #555; padding: 7px 0; border-bottom: 1px solid #f5f5f5; }
.desc-info-card { background: var(--cream); border-radius: 12px; padding: 18px; }
.desc-info-card h4 { font: 700 16px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 8px; }
.desc-info-card p  { font-size: 12px; color: #666; line-height: 1.7; margin: 0; }

/* Caractéristiques */
.specs-grid { display: grid; grid-template-columns: 1fr 240px; gap: 30px; align-items: start; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.specs-table th { background: var(--cream); padding: 11px 14px; text-align: left; font-weight: 700; width: 45%; color: #555; }
.specs-table td { padding: 11px 14px; border-bottom: 1px solid #f5f5f5; color: #333; }
.specs-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec-badge { background: var(--cream); border-radius: 12px; padding: 16px; text-align: center; }
.spec-badge span { font-size: 28px; display: block; margin-bottom: 6px; }
.spec-badge strong { font-size: 12px; font-weight: 800; }

/* Avis */
.reviews-recap { display: flex; gap: 40px; align-items: center; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #f0f0f0; }
.big-score { font: 800 64px/1 'Barlow Condensed'; color: var(--red); display: block; }
.recap-stars { display: flex; gap: 4px; margin: 8px 0; }
.recap-count { font-size: 12px; color: #aaa; }
.recap-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.recap-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.recap-bar { flex: 1; height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.recap-bar > div { height: 100%; background: var(--red); border-radius: 4px; }
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-card { background: var(--cream); border-radius: 14px; padding: 22px; }
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.review-stars { display: flex; gap: 2px; margin-top: 4px; }
.review-date { margin-left: auto; font-size: 11px; color: #aaa; }
.review-text { font-size: 13px; color: #555; line-height: 1.8; font-style: italic; }
.verified-badge { font-size: 10px; color: #2e7d32; background: #e8f5e9; padding: 2px 8px; border-radius: 10px; font-weight: 700; }

/* Livraison tab */
.delivery-tab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.delivery-tab-grid h3 { font: 700 22px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 16px; }
.delivery-tab-options { display: flex; flex-direction: column; gap: 12px; }
.dto-card { display: flex; gap: 14px; background: var(--cream); border-radius: 12px; padding: 16px; }
.dto-icon { font-size: 28px; flex-shrink: 0; }
.dto-card strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.dto-card p { font-size: 12px; color: #666; line-height: 1.7; margin: 0; }

/* Checkout steps bar */
.checkout-steps-bar { background: var(--cream); padding: 16px 0; border-bottom: 1px solid var(--line); }
.checkout-steps { display: flex; align-items: center; gap: 8px; }
.cs-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #bbb; }
.cs-step span { width: 26px; height: 26px; border-radius: 50%; background: #eee; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.cs-step.active { color: var(--red); }
.cs-step.active span { background: var(--red); color: #fff; }
.cs-step.done { color: #2e7d32; }
.cs-step.done span { background: #2e7d32; color: #fff; }
.cs-sep { color: #ddd; font-size: 18px; }

/* Checkout blocs */
.checkout-login-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.clc-option { border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: var(--trans); }
.clc-option:has(input:checked) { border-color: var(--red); background: #fff5f5; }
.clc-radio { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.clc-radio input { accent-color: var(--red); }
.wire-info-box { background: #fff8e1; border: 1px solid #ffe082; border-radius: 12px; padding: 18px; margin-top: 16px; }
.wire-info-box h4 { font: 700 16px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 10px; color: #f57c00; }
.wire-info-box p  { font-size: 12px; color: #666; line-height: 1.7; margin-bottom: 8px; }
.wire-info-box ul { padding-left: 0; }
.wire-info-box li { font-size: 12px; color: #666; padding: 4px 0; list-style: none; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; cursor: pointer; }
.checkbox-label input { accent-color: var(--red); margin-top: 2px; flex-shrink: 0; }

/* Panier */
.upsell-block { margin-top: 30px; }
.upsell-block h3 { font: 700 22px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 16px; }
.upsell-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.upsell-card { display: flex; gap: 14px; background: #fff; border-radius: 12px; border: 1.5px solid var(--line); padding: 14px; transition: border-color .2s; }
.upsell-card:hover { border-color: var(--red); }
.upsell-card img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.upsell-info { flex: 1; }
.upsell-info strong { display: block; font-size: 13px; margin-bottom: 3px; }
.upsell-info span   { font-size: 11px; color: #888; display: block; margin-bottom: 8px; }
.upsell-bottom { display: flex; justify-content: space-between; align-items: center; }
.upsell-bottom b { color: var(--red); font-size: 15px; }
.summary-postal { display: flex; gap: 8px; margin: 12px 0; }
.summary-postal input { flex: 1; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; outline: none; }
.summary-postal button { border: 0; background: var(--dark); color: #fff; padding: 0 14px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.summary-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: #aaa; margin-top: 12px; }
.payment-icons { display: flex; justify-content: center; gap: 8px; margin-top: 10px; font-size: 20px; }
.ct-img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }

/* ══ RESPONSIVE NOUVELLES PAGES ══════════════════════════════ */
@media (max-width: 980px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-gallery { position: static; }
  .desc-grid, .specs-grid { grid-template-columns: 1fr; }
  .delivery-tab-grid { grid-template-columns: 1fr; }
  .reviews-recap { flex-direction: column; align-items: flex-start; gap: 20px; }
  .detail-reassurance { grid-template-columns: 1fr; }
  .upsell-grid { grid-template-columns: 1fr; }
  .checkout-login-choice { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .product-tabs { overflow-x: auto; padding-bottom: 2px; }
  .product-tabs::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; padding: 12px 16px; font-size: 13px; }
  .gallery-thumbs { gap: 8px; }
  .thumb-btn { width: 56px; height: 56px; }
  .detail-add-row { flex-direction: column; }
  .detail-add-btn { width: 100%; }
  .specs-badges { grid-template-columns: repeat(2,1fr); }
}

/* ══ AUTOCOMPLETE ADRESSE ════════════════════════════════════ */
.address-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 200;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12); overflow: hidden;
  max-height: 280px; overflow-y: auto;
}
.addr-suggestion {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; cursor: pointer; transition: background .15s;
  border-bottom: 1px solid #f5f5f5;
}
.addr-suggestion:last-child { border-bottom: 0; }
.addr-suggestion:hover, .addr-suggestion:focus { background: var(--cream); outline: 0; }
.addr-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.addr-text strong { display: block; font-size: 13px; color: var(--ink); }
.addr-text span   { font-size: 11px; color: #888; }

/* ══ OPTIONS DE LIVRAISON ════════════════════════════════════ */
#shippingOptions .payment-method-item {
  display: flex; align-items: center; gap: 14px;
  border: 2px solid var(--line); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; transition: var(--trans);
}
#shippingOptions .payment-method-item.selected {
  border-color: var(--red); background: #fff5f5;
}
#shippingOptions .payment-method-item:hover { border-color: #bbb; }

/* ══ BOUTON TÉLÉCHARGER FACTURE PDF ═════════════════════════ */
.invoice-download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark); color: #fff; border: 0;
  border-radius: 10px; padding: 11px 18px; font-size: 13px;
  font-weight: 700; cursor: pointer; text-decoration: none;
  transition: var(--trans);
}
.invoice-download-btn:hover { background: #222; transform: translateY(-1px); }
.invoice-download-btn svg { flex-shrink: 0; }
