/* ==========================================================================
   VeloElek : design premium v2
   Palette : noir chaud profond + accents vifs (volt lime + amber électrique)
   Surfaces claires pour les photos produits et le contenu long (contraste fort)
   Typo : Bebas Neue (hero, impact) + Space Grotesk (titres) + Inter (texte)
   ========================================================================== */

:root {
  --bg: #0A0C08;
  --bg-elevated: #14170F;
  --bg-elevated-2: #1D2216;
  --surface: #F7F5EC;
  --surface-alt: #EDE9D9;
  --ink: #F5F6EF;
  --ink-on-light: #14170D;
  --muted: #9BA28E;
  --muted-on-light: #5B5F4E;
  --line: rgba(245,246,239,0.14);
  --line-light: #DBD6C1;
  --volt: #D8FF3E;
  --volt-ink: #16210A;
  --amber: #FF6A1A;
  --amber-ink: #2A0E00;
  --danger: #FF6152;
  --radius-sm: 4px;
  --radius-md: 10px;
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.display {
  font-family: 'Bebas Neue', 'Space Grotesk', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 2px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 16px 20px; }
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--volt); color: var(--volt-ink); padding: 10px 16px; z-index: 999; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Promo marquee ---------- */

.promo-marquee {
  background: var(--volt);
  color: var(--volt-ink);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.promo-marquee-track {
  display: inline-flex;
  width: max-content;
  animation: promo-scroll 26s linear infinite;
  will-change: transform;
}
.promo-marquee-track span {
  display: inline-block;
  padding: 8px 40px 8px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
@keyframes promo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-marquee-track { animation: none; }
  .promo-marquee { overflow-x: auto; }
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(10,12,8,0.88);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
}
.brand span { color: var(--volt); }

.main-nav {
  display: flex;
  gap: 26px;
  flex: 1;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--ink);
  border-color: var(--volt);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-link {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.88rem;
  background: var(--volt); color: var(--volt-ink);
  padding: 9px 16px;
  border-radius: 30px;
  transition: filter .15s, transform .1s;
}
.cart-link:hover { filter: brightness(1.08); }
.cart-link:active { transform: translateY(1px); }
.cart-count {
  background: var(--ink-on-light); color: var(--volt);
  font-size: 0.72rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

.mobile-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .cart-label { display: none; }
  .mobile-toggle {
    display: inline-flex; border: 1px solid var(--line); color: var(--ink);
    padding: 8px 10px; border-radius: var(--radius-sm); background: none;
  }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-elevated); border-bottom: 1px solid var(--line);
    padding: 16px 24px; gap: 14px; z-index: 60;
  }
}

/* ---------- Hero carousel ---------- */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}
.hero-slides {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; inset: 0;
}
.hero-slide {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(50px) brightness(0.55) saturate(1.15);
  transform: scale(1.2);
}
.hero-slide-fg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; inset: 0;
  background:
    linear-gradient(0deg, rgba(10,12,8,0.95) 0%, rgba(10,12,8,0.55) 45%, rgba(10,12,8,0.25) 100%),
    linear-gradient(90deg, rgba(10,12,8,0.88) 0%, rgba(10,12,8,0.45) 42%, rgba(10,12,8,0.1) 75%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 56px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--volt); font-weight: 700; font-size: 0.85rem;
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--volt); border-radius: 50%; display: inline-block; }
.hero h1.display {
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  max-width: 20ch;
  color: var(--ink);
  margin-bottom: 0.15em;
  overflow-wrap: break-word;
  hyphens: none;
}
.hero p {
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.1rem;
  margin-bottom: 1.8em;
  overflow-wrap: break-word;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots {
  position: absolute; z-index: 3; right: 24px; bottom: 28px;
  display: flex; gap: 8px;
}
.hero-dots span {
  width: 26px; height: 3px; background: rgba(245,246,239,0.3);
  transition: background .2s;
}
.hero-dots span.active { background: var(--volt); }

@media (max-width: 760px) {
  .hero { min-height: 560px; }
  .hero-content { padding: 40px 20px 44px; }
  .hero h1.display { font-size: clamp(1.9rem, 8.5vw, 2.8rem); max-width: none; }
}
@media (max-width: 420px) {
  .hero h1.display { font-size: 1.9rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--volt); color: var(--volt-ink);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-accent {
  background: var(--amber); color: #fff;
}
.btn-accent:hover { filter: brightness(1.08); }
.btn-outline {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-outline:hover { border-color: var(--volt); color: var(--volt); }
.btn-dark {
  background: var(--ink-on-light); color: var(--surface);
}
.btn-dark:hover { filter: brightness(1.2); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; border-radius: 20px; }

/* On light surfaces, outline buttons need dark ink instead of light */
.on-light .btn-outline { color: var(--ink-on-light); border-color: var(--line-light); }
.on-light .btn-outline:hover { border-color: var(--ink-on-light); color: var(--ink-on-light); }

/* ---------- Section headings ---------- */

.section { padding: 64px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 30px; flex-wrap: wrap;
}
.section-head h2 { font-size: 1.9rem; }
.section-kicker { color: var(--volt); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 8px; }

/* ---------- Category tiles ---------- */

.cat-grid {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cat-tile {
  flex: 1 1 20%;
  min-width: 180px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 30px 20px;
  text-align: left;
  transition: background .15s;
  color: var(--ink);
}
.cat-tile:hover { background: var(--bg-elevated-2); }
.cat-tile .num { font-family: 'Space Grotesk', sans-serif; color: var(--volt); font-size: .82rem; font-weight: 700; }
.cat-tile h3 { font-size: 1.05rem; margin-top: 12px; }

@media (max-width: 860px) {
  .cat-tile { flex-basis: 50%; }
  /* when the tile count is odd, avoid a leftover half-empty row */
  .cat-tile:last-child:nth-child(odd) { flex-basis: 100%; }
}

/* ---------- Why-us strip ---------- */

.why-strip {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 52px 0;
}
.why-grid .icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.why-grid h3 { font-size: 1.05rem; color: var(--volt); margin-bottom: 6px; }
.why-grid p { color: var(--muted); font-size: 0.9rem; margin: 0; }

@media (max-width: 760px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Product grid & cards (surfaces claires pour la photo produit) ---------- */

.section-light { background: var(--surface); color: var(--ink-on-light); }
.section-light .section-kicker { color: #7A8A1E; }
.section-light .muted-text { color: var(--muted-on-light); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 14px 32px rgba(20,23,13,0.12); transform: translateY(-3px); }
.product-card .thumb {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4/3; overflow: hidden; background: #ffffff;
  position: relative;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .3s; }
.product-card:hover .thumb img { transform: scale(1.05); }

.badge-discount {
  position: absolute; top: 12px; left: 12px;
  z-index: 2;
  background: var(--amber); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  padding: 5px 10px; border-radius: 20px;
  pointer-events: none;
}

.product-card .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-card .cat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-on-light); font-weight: 600; }
.product-card h3 { font-size: 1rem; min-height: 2.4em; color: var(--ink-on-light); }
.product-card .rating { font-size: 0.82rem; color: var(--muted-on-light); }
.product-card .rating strong { color: var(--ink-on-light); }
.product-card .price-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.product-card .price { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--ink-on-light); }
.product-card .old-price { color: var(--muted-on-light); text-decoration: line-through; font-size: 0.85rem; }
.product-card .card-actions { padding: 0 18px 18px; display: flex; gap: 8px; }
.product-card .card-actions .btn-primary { border-radius: var(--radius-sm); }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line-light); margin-bottom: 28px;
}
.filter-bar .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1px solid var(--line-light); padding: 8px 16px; border-radius: 30px;
  font-size: 0.85rem; color: var(--muted-on-light); font-weight: 500;
}
.pill.active { background: var(--ink-on-light); color: var(--surface); border-color: var(--ink-on-light); }
.filter-bar select {
  border: 1px solid var(--line-light); padding: 9px 12px; background: #fff; border-radius: var(--radius-sm);
}

/* ---------- Product detail ---------- */

.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 44px 0 24px;
}
.product-detail .gallery { display: flex; flex-direction: column; gap: 14px; }
.product-detail .gallery-main {
  aspect-ratio: 1/1; background: #ffffff;
  border: 1px solid var(--line-light); border-radius: var(--radius-md);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.product-detail .gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 30px; }
.product-detail .gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.product-detail .gallery-thumb {
  width: 76px; height: 76px; padding: 0; border-radius: var(--radius-sm);
  border: 2px solid var(--line-light); background: #ffffff; cursor: pointer;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  transition: border-color .15s ease;
}
.product-detail .gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.product-detail .gallery-thumb:hover { border-color: var(--muted-on-light); }
.product-detail .gallery-thumb.active { border-color: var(--volt); }

.product-detail .cat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-on-light); font-weight: 700; }
.product-detail h1 { font-size: 2.1rem; margin-top: 8px; color: var(--ink-on-light); }
.product-detail .rating { color: var(--muted-on-light); margin-bottom: 18px; }
.product-detail .rating strong { color: var(--ink-on-light); }

.price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.price-block .price { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--ink-on-light); }
.price-block .old-price { color: var(--muted-on-light); text-decoration: line-through; font-size: 1.1rem; }
.price-block .discount { background: var(--amber); color: #fff; font-weight: 700; padding: 4px 10px; border-radius: 20px; font-size: 0.85rem; }

.delivery-note { display: flex; gap: 8px; align-items: center; color: #5C7A0F; font-size: 0.9rem; margin-bottom: 22px; font-weight: 700; }

.product-detail .desc { color: var(--ink-on-light); margin-bottom: 26px; line-height: 1.8; text-align: justify; text-justify: inter-word; hyphens: auto; letter-spacing: 0.1px; }

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.qty-input {
  display: flex; align-items: stretch; border: 1px solid var(--line-light); width: fit-content; border-radius: var(--radius-sm); overflow: hidden;
}
.qty-input button { background: var(--surface-alt); border: none; width: 40px; cursor: pointer; font-size: 1.1rem; color: var(--ink-on-light); }
.qty-input input { width: 50px; border: none; text-align: center; background: #fff; color: var(--ink-on-light); }

.guarantees-box, .specs-box, .reviews-box {
  border: 1px solid var(--line-light); border-radius: var(--radius-md); padding: 22px; margin-top: 22px; background: #fff;
}
.guarantees-box h4, .specs-box h4, .reviews-box h4 { font-size: 1rem; margin-bottom: 14px; color: var(--ink-on-light); }
.guarantees-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; grid-template-columns: 1fr 1fr; }
.guarantees-box li { font-size: 0.86rem; color: var(--muted-on-light); display: flex; gap: 8px; align-items: flex-start; }
.guarantees-box li::before { content: "✓"; color: #5C7A0F; font-weight: 700; }

.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spec-card {
  border: 1px solid var(--line-light); border-radius: var(--radius-md);
  background: var(--surface-alt); padding: 14px 16px;
}
.spec-card .label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-on-light); font-weight: 600; margin-bottom: 6px; }
.spec-card .val { display: block; font-size: 0.94rem; color: var(--ink-on-light); font-weight: 700; line-height: 1.35; }

.review-item { padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.review-item:last-child { border-bottom: none; }
.review-item .stars { color: var(--amber); font-size: 0.85rem; margin-bottom: 4px; }
.review-item .author { font-weight: 700; font-size: 0.9rem; color: var(--ink-on-light); }
.review-item p { margin: 6px 0 0; color: var(--muted-on-light); font-size: 0.9rem; line-height: 1.6; }
.reviews-empty { color: var(--muted-on-light); font-size: 0.9rem; }

@media (max-width: 780px) {
  .product-detail { grid-template-columns: 1fr; }
  .guarantees-box ul, .specs-grid { grid-template-columns: 1fr; }
}

/* ---------- Cart (design carte, plus premium qu'un tableau brut) ---------- */

.cart-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.cart-card {
  display: grid; grid-template-columns: 92px 1fr auto auto; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-md); padding: 16px;
}
.cart-card img { width: 92px; height: 92px; object-fit: contain; background: #ffffff; border: 1px solid var(--line-light); border-radius: var(--radius-sm); padding: 8px; }
.cart-card .name { font-weight: 700; color: var(--ink-on-light); margin-bottom: 4px; }
.cart-card .unit-price { color: var(--muted-on-light); font-size: 0.85rem; }
.cart-card .qty-input { height: 40px; }
.cart-card .qty-input input { width: 44px; }
.cart-card .line-total { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink-on-light); white-space: nowrap; }
.cart-card .remove-btn { color: var(--danger); font-size: 0.78rem; font-weight: 600; margin-top: 6px; display: inline-block; }

@media (max-width: 640px) {
  .cart-card { grid-template-columns: 64px 1fr; grid-template-areas: "img name" "img actions"; }
  .cart-card img { width: 64px; height: 64px; grid-area: img; }
  .cart-card .cart-name-block { grid-area: name; }
  .cart-card .cart-actions-block { grid-area: actions; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
}

.cart-totals { display: flex; justify-content: flex-end; }
.cart-totals-box { width: 340px; border: 1px solid var(--line-light); border-radius: var(--radius-md); padding: 22px; background: #fff; }
.cart-totals-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted-on-light); font-size: 0.92rem; }
.cart-totals-row.grand { border-top: 1px solid var(--line-light); margin-top: 8px; padding-top: 16px; font-weight: 700; font-size: 1.2rem; font-family: 'Space Grotesk', sans-serif; color: var(--ink-on-light); }
.empty-state { text-align: center; padding: 90px 20px; color: var(--muted-on-light); }
.empty-state .icon { font-size: 2.4rem; margin-bottom: 14px; }

/* ---------- Forms (checkout, admin) ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-on-light); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-light); padding: 12px 14px; background: #fff;
  border-radius: var(--radius-sm); color: var(--ink-on-light);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--volt); box-shadow: 0 0 0 3px rgba(216,255,62,0.25); outline: none; }
.field .req { color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }

.checkout-layout { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 48px; padding: 36px 0 64px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

.order-summary { border: 1px solid var(--line-light); border-radius: var(--radius-md); padding: 22px; background: #fff; position: sticky; top: 90px; }
.order-summary .line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 0.9rem; border-bottom: 1px solid var(--line-light); color: var(--muted-on-light); }
.order-summary .grand { font-weight: 700; font-size: 1.2rem; font-family: 'Space Grotesk', sans-serif; padding-top: 14px; color: var(--ink-on-light); }
.order-summary .delivery-mini { display: flex; gap: 8px; align-items: center; color: #5C7A0F; font-size: 0.85rem; font-weight: 700; margin-top: 14px; }

.payment-option { border: 1px solid var(--line-light); border-radius: var(--radius-md); padding: 18px; margin-top: 10px; background: #fff; }
.payment-option p { color: var(--muted-on-light); font-size: 0.88rem; margin: 6px 0 0; }

/* ---------- Confirmation ---------- */

.confirmation-box { max-width: 640px; margin: 70px auto; text-align: center; }
.confirmation-box .check { width: 60px; height: 60px; border-radius: 50%; background: var(--volt); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.7rem; color: var(--volt-ink); }
.order-number-tag { display: inline-block; background: var(--ink-on-light); color: var(--surface); padding: 8px 18px; border-radius: 30px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin: 10px 0 26px; }
.bank-box { border: 1px solid var(--line-light); border-radius: var(--radius-md); background: #fff; padding: 26px; text-align: left; margin-top: 26px; }
.bank-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-light); font-size: 0.92rem; color: var(--muted-on-light); }
.bank-row:last-child { border-bottom: none; }
.bank-row .val { font-weight: 700; font-family: 'Space Grotesk', sans-serif; color: var(--ink-on-light); }

/* ---------- Return policy page ---------- */

.policy-content h2 { margin-top: 1.4em; font-size: 1.3rem; }
.policy-content p, .policy-content li { color: var(--muted-on-light); line-height: 1.75; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-elevated); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 28px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; color: var(--muted); }
.footer-grid p, .footer-grid a { font-size: 0.9rem; color: var(--ink); }
.footer-grid a:hover { color: var(--volt); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-payments { border-top: 1px solid var(--line); padding: 22px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.footer-payments-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.payment-icons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.payment-icon { display: inline-flex; line-height: 0; border-radius: 5px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-lang-fallback a { color: var(--muted); }
.footer-lang-fallback a.active { color: var(--volt); font-weight: 700; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Admin ---------- */

.admin-body { background: var(--surface-alt); }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--bg); color: var(--ink); padding: 26px 18px; }
.admin-sidebar .brand { color: var(--ink); margin-bottom: 32px; display: block; }
.admin-sidebar nav a { display: block; padding: 11px 10px; color: var(--muted); font-size: 0.92rem; border-radius: var(--radius-sm); }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: var(--bg-elevated); color: var(--volt); }
.admin-main { padding: 34px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-card { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-md); padding: 22px; margin-bottom: 20px; color: var(--ink-on-light); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-md); padding: 20px; }
.stat-card .num { font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--ink-on-light); }
.stat-card .label { font-size: 0.82rem; color: var(--muted-on-light); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; color: var(--muted-on-light); border-bottom: 1px solid var(--line-light); padding: 10px 8px; }
.admin-table td { padding: 12px 8px; border-bottom: 1px solid var(--line-light); font-size: 0.9rem; color: var(--ink-on-light); }
.admin-table tr:hover td { background: var(--surface-alt); }
.status-tag { padding: 4px 10px; font-size: 0.75rem; font-weight: 700; border-radius: 14px; background: var(--surface-alt); color: var(--ink-on-light); }
.status-tag.paid { background: var(--volt); color: var(--volt-ink); }
.status-tag.cancelled { background: #FDEAE7; color: #A8281A; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.login-box { background: #fff; padding: 42px; width: 380px; border-radius: var(--radius-md); }
.alert { padding: 13px 16px; border-left: 3px solid var(--danger); background: #FDEAE7; color: #A8281A; font-size: 0.9rem; margin-bottom: 18px; border-radius: var(--radius-sm); }
.alert-success { border-color: #5C7A0F; background: #EEF3DC; color: #445C0B; }
@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; overflow-x: auto; gap: 6px; }
  .admin-sidebar .brand { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Bandeau et modale de gestion des cookies ---------- */
.cookie-banner[hidden], .cookie-modal[hidden] { display: none !important; }

@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cookieFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes cookiePopIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1000;
  display: flex; justify-content: flex-start;
  animation: cookieSlideUp 0.35s ease-out;
}
.cookie-banner-card {
  display: flex; gap: 16px; align-items: flex-start;
  max-width: 420px; width: 100%;
  background: var(--bg-elevated); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.4);
}
.cookie-banner-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--volt); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.cookie-banner-body { flex: 1; }
.cookie-banner-title { display: block; margin-bottom: 6px; font-size: 1rem; }
.cookie-banner-text { margin: 0 0 16px; color: var(--muted); font-size: 0.85rem; line-height: 1.55; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cookie-banner-actions .btn { flex: 1 1 auto; }
.cookie-banner-link {
  background: none; border: none; padding: 0; color: var(--ink); text-decoration: underline;
  text-underline-offset: 3px; font-size: 0.82rem; cursor: pointer; opacity: 0.85;
}
.cookie-banner-link:hover { opacity: 1; }

.cookie-modal {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(10,12,8,0.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: cookieFadeIn 0.2s ease-out;
}
.cookie-modal-box {
  position: relative; background: var(--surface, #fff); color: var(--ink-on-light);
  max-width: 460px; width: 100%; border-radius: 20px;
  padding: 32px 28px 28px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  animation: cookiePopIn 0.25s ease-out;
}
.cookie-modal-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--volt);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  margin-bottom: 14px;
}
.cookie-modal-box h3 { margin: 0 0 10px; }
.cookie-modal-intro { color: var(--muted-on-light); font-size: 0.88rem; margin-bottom: 8px; }
.cookie-modal-close {
  position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-alt); border: none;
  font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--muted-on-light);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.cookie-modal-close:hover { background: var(--line-light); }
.cookie-category { border-top: 1px solid var(--line-light); padding: 16px 0; }
.cookie-category-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cookie-category-name { font-weight: 700; font-size: 0.94rem; }
.cookie-category p { margin: 0; color: var(--muted-on-light); font-size: 0.85rem; line-height: 1.5; }
#cookieSavePrefs { margin-top: 20px; }

/* Interrupteurs (toggle switches) */
.cookie-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cookie-switch-track {
  position: absolute; inset: 0; background: var(--line-light); border-radius: 999px;
  transition: background 0.2s ease;
}
.cookie-switch-thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.cookie-switch input:checked ~ .cookie-switch-track { background: var(--volt); }
.cookie-switch input:checked ~ .cookie-switch-track .cookie-switch-thumb { transform: translateX(18px); }
.cookie-switch input:focus-visible ~ .cookie-switch-track { outline: 2px solid var(--ink-on-light); outline-offset: 2px; }
.cookie-switch--locked .cookie-switch-track { background: var(--volt); opacity: 0.55; }
.cookie-switch--locked input { cursor: not-allowed; }

@media (max-width: 640px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .cookie-banner-card { max-width: none; padding: 14px; gap: 10px; max-height: 60vh; overflow-y: auto; }
  .cookie-banner-icon { width: 30px; height: 30px; font-size: 0.95rem; }
  .cookie-banner-title { font-size: 0.9rem; }
  .cookie-banner-text { font-size: 0.78rem; line-height: 1.4; margin-bottom: 12px; }
  .cookie-banner-actions { gap: 8px 10px; }
  .cookie-banner-actions .btn { flex: 1 1 auto; padding: 10px 16px; font-size: 0.82rem; }
  .cookie-banner-link { flex-basis: 100%; text-align: center; font-size: 0.78rem; }
}

/* ==========================================================================
   Avis clients (page dédiée + section page d'accueil)
   ========================================================================== */
.reviews-page h1 { margin-bottom: 8px; }
.reviews-intro { color: var(--muted-on-light); margin-bottom: 28px; max-width: 60ch; }

.reviews-summary {
  display: flex; gap: 40px; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid var(--line-light); border-radius: 16px;
  padding: 24px 28px; margin-bottom: 32px;
}
.reviews-summary-score { display: flex; flex-direction: column; align-items: center; min-width: 140px; }
.reviews-summary-number { font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--ink-on-light); }
.reviews-summary-stars { color: var(--volt-dark, #7a8a00); font-size: 1.1rem; letter-spacing: 2px; margin: 6px 0; }
.reviews-summary-count { font-size: 0.82rem; color: var(--muted-on-light); text-align: center; }
.reviews-summary-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.reviews-bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--muted-on-light); }
.reviews-bar-label { width: 32px; flex-shrink: 0; }
.reviews-bar-track { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-alt); overflow: hidden; }
.reviews-bar-fill { display: block; height: 100%; background: var(--volt); border-radius: 4px; }
.reviews-bar-count { width: 30px; text-align: right; flex-shrink: 0; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.review-card {
  background: #fff; border: 1px solid var(--line-light); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.review-card-stars { color: #E8A800; font-size: 0.95rem; letter-spacing: 2px; }
.review-card-title { font-size: 1rem; margin: 0; color: var(--ink-on-light); }
.review-card-text { font-size: 0.88rem; color: var(--muted-on-light); line-height: 1.6; margin: 0; flex: 1; }
.review-card-author { font-size: 0.76rem; color: var(--muted-on-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.reviews-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.reviews-page-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-light);
  color: var(--ink-on-light); font-size: 0.85rem; text-decoration: none;
}
.reviews-page-link.active { background: var(--volt); border-color: var(--volt); font-weight: 700; }

.reviews-home-score { display: flex; align-items: center; gap: 10px; margin: -8px 0 20px; color: var(--ink-on-light); }
.reviews-home-stars { color: #E8A800; letter-spacing: 2px; }
.reviews-home-count { color: var(--muted-on-light); font-size: 0.85rem; }
.reviews-grid--home { margin-top: 4px; }

@media (max-width: 640px) {
  .reviews-summary { flex-direction: column; align-items: stretch; }
  .reviews-summary-score { align-items: center; }
}

/* ---------- Suivi de commande ---------- */
.tracking-form { max-width: 480px; margin-top: 10px; }
.tracking-result {
  background: var(--card-light, #fff);
  border: 1px solid var(--line-light, #DBD6C1);
  border-radius: var(--radius, 16px);
  padding: 28px;
  margin-top: 10px;
}
.tracking-result-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-bottom: 22px;
}
.tracking-status-badge {
  background: var(--volt); color: #14170D; font-weight: 700; font-size: 0.85rem;
  padding: 8px 16px; border-radius: 999px;
}
.tracking-progress {
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative; margin: 24px 0 30px; gap: 4px;
}
.tracking-progress::before {
  content: ""; position: absolute; top: 8px; left: 6%; right: 6%; height: 2px;
  background: var(--line-light, #DBD6C1); z-index: 0;
}
.tracking-step {
  position: relative; z-index: 1; flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.tracking-step-dot {
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line-light, #DBD6C1);
}
.tracking-step.done .tracking-step-dot { background: var(--volt); border-color: var(--volt); }
.tracking-step.current .tracking-step-dot { box-shadow: 0 0 0 4px rgba(216,255,62,0.35); }
.tracking-step-label { font-size: 0.72rem; color: var(--muted-on-light); max-width: 12ch; line-height: 1.3; }
.tracking-step.done .tracking-step-label, .tracking-step.current .tracking-step-label { color: var(--ink-on-light); font-weight: 600; }
.tracking-meta {
  display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted-on-light);
  border-top: 1px solid var(--line-light, #EDE9D9); padding-top: 16px; margin-top: 6px;
}
.tracking-meta span { display: block; margin-bottom: 2px; }
@media (max-width: 640px) {
  .tracking-progress { flex-wrap: wrap; row-gap: 18px; }
  .tracking-progress::before { display: none; }
  .tracking-step { flex: 1 1 30%; }
}

/* ---------- Espace admin ---------- */
.admin-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.admin-search-form { display: flex; gap: 8px; max-width: 380px; margin: 18px 0; }
.admin-search-form input { flex: 1; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-light, #DBD6C1); }
.admin-table-wrap { overflow-x: auto; margin-top: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 760px; }
.admin-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line-light, #DBD6C1); color: var(--muted-on-light); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line-light, #EDE9D9); vertical-align: middle; }
.admin-status-form select { padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-light, #DBD6C1); font-size: 0.85rem; }
