/* ============================================
   KARIBO HOMEPAGE v3.2.1
   Nettoyage : espacements, 4 produits, message plaque
   ============================================ */

:root {
  --kh-red: #dc2626;
  --kh-red-hover: #b91c1c;
  --kh-dark: #0f172a;
  --kh-dark2: #1e293b;
  --kh-slate-800: #1e293b;
  --kh-slate-700: #334155;
  --kh-slate-600: #475569;
  --kh-slate-500: #64748b;
  --kh-slate-400: #94a3b8;
  --kh-slate-300: #cbd5e1;
  --kh-slate-200: #e2e8f0;
  --kh-slate-100: #f1f5f9;
  --kh-slate-50: #f8fafc;
  --kh-bg: #f1f5f9;
  --kh-white: #ffffff;
  --kh-radius-xl: 32px;
  --kh-radius-lg: 28px;
  --kh-radius-md: 24px;
  --kh-radius-sm: 16px;
  --kh-radius-xs: 12px;
  --kh-max: 1280px;
  --kh-amber: #f59e0b;
}

/* ---------- Page background ---------- */
#content, #wrapper { background: var(--kh-bg) !important; }

/* ---------- 1. Trust Bar ---------- */
.kh-trust-bar {
  background: var(--kh-slate-800);
  color: var(--kh-white);
  padding: 14px 0;
}
.kh-trust-bar-inner {
  max-width: var(--kh-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 28px;
}
.kh-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.kh-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--kh-red);
  flex-shrink: 0;
}

/* ---------- 2. Hero ---------- */
.kh-hero {
  max-width: var(--kh-max);
  margin: 28px auto 0;
  padding: 0 20px;
}
.kh-hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: stretch;
}

/* LEFT */
.kh-hero-left {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  border-radius: var(--kh-radius-xl);
  padding: 48px 44px;
  color: var(--kh-white);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.kh-hero-title {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.8px;
  color: var(--kh-white);
}
.kh-hero-sub {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--kh-slate-300);
  max-width: 540px;
}

/* Search card */
.kh-search-card {
  margin-top: 36px;
  background: var(--kh-white);
  border-radius: var(--kh-radius-md);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.kh-search-form { margin: 0; }
.kh-search-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.kh-input-wrap { flex: 1; min-width: 0; }
.kh-plate-input {
  width: 100% !important;
  height: 56px !important;
  font-size: 17px !important;
  padding: 0 20px !important;
  border: 2px solid var(--kh-slate-200) !important;
  border-radius: var(--kh-radius-xs) !important;
  outline: none !important;
  color: var(--kh-dark2) !important;
  background: var(--kh-white) !important;
  transition: border-color 0.2s ease !important;
  box-sizing: border-box !important;
}
.kh-plate-input:focus { border-color: var(--kh-red) !important; }
.kh-plate-input::placeholder { color: var(--kh-slate-400) !important; }

/* Override kariboplate wrapper styles */
.kh-search-card .kp-plate-wrapper {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.kh-search-card .kp-plate-eu { display: none !important; }

.kh-btn-hero {
  background: var(--kh-red);
  color: var(--kh-white);
  border: none;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--kh-radius-xs);
  transition: all 0.2s ease;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.kh-btn-hero:hover { background: var(--kh-red-hover); transform: translateY(-1px); }

.kh-or {
  margin: 18px 0 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--kh-slate-400);
}
.kh-ref-input {
  flex: 1;
  padding: 16px 20px;
  font-size: 15px;
  border: 2px solid var(--kh-slate-200);
  border-radius: var(--kh-radius-xs);
  outline: none;
  min-width: 0;
  color: var(--kh-dark2);
  transition: border-color 0.2s ease;
}
.kh-ref-input:focus { border-color: var(--kh-red); }
.kh-ref-input::placeholder { color: var(--kh-slate-400); }

.kh-btn-dark {
  background: var(--kh-dark);
  color: var(--kh-white);
  border: none;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--kh-radius-xs);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.kh-btn-dark:hover { background: var(--kh-slate-700); }

/* Réassurance row */
.kh-reassurance-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.kh-reassurance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.kh-reassurance-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
}

/* Stats */
.kh-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.kh-stat {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  border-radius: var(--kh-radius-xs);
  padding: 16px 14px;
}
.kh-stat-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--kh-white);
}
.kh-stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--kh-slate-400);
}

/* RIGHT sidebar */
.kh-hero-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.kh-hero-side-top {
  background: var(--kh-white);
  border: 1px solid var(--kh-slate-200);
  border-radius: var(--kh-radius-lg);
  padding: 32px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.kh-promo-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--kh-dark2);
}
.kh-promo-text {
  margin: 14px 0 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--kh-slate-600);
}
.kh-btn-red {
  background: var(--kh-red);
  color: var(--kh-white);
  border: none;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  border-radius: var(--kh-radius-xs);
  transition: all 0.2s ease;
  text-decoration: none !important;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kh-btn-red:hover {
  background: var(--kh-red-hover);
  color: var(--kh-white) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}
.kh-btn-block { width: 100%; }

.kh-hero-side-bottom {
  background: var(--kh-white);
  border: 1px solid var(--kh-slate-200);
  border-radius: var(--kh-radius-lg);
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  flex: 1;
}
.kh-hero-side-subtitle {
  font-size: 18px;
  font-weight: 900;
  color: var(--kh-dark2);
  margin-bottom: 20px;
}

/* Advantages grid — 2x2 cards */
.kh-advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.kh-adv-card {
  background: var(--kh-slate-50);
  border: 1px solid var(--kh-slate-100);
  border-radius: var(--kh-radius-xs);
  padding: 16px;
  transition: all 0.2s ease;
}
.kh-adv-card:hover {
  background: var(--kh-white);
  border-color: var(--kh-slate-200);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.kh-adv-icon {
  width: 28px; height: 28px;
  color: var(--kh-red);
  margin-bottom: 10px;
}
.kh-adv-icon svg { width: 100%; height: 100%; }
.kh-adv-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--kh-dark2);
  margin-bottom: 4px;
}
.kh-adv-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--kh-slate-500);
}

/* ---------- 3. Sections Common ---------- */
.kh-section {
  max-width: var(--kh-max);
  margin: 56px auto 0;
  padding: 0 20px;
}
.kh-section-last { margin-bottom: 56px; }
.kh-section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.kh-section-overtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--kh-slate-500);
}
.kh-section-title {
  margin: 6px 0 0;
  font-size: 30px;
  font-weight: 900;
  color: var(--kh-dark2);
  letter-spacing: -0.4px;
  line-height: 1.1;
}
.kh-section-link {
  font-size: 14px;
  font-weight: 800;
  color: var(--kh-red) !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.kh-section-link:hover { text-decoration: underline !important; }

/* ---------- 4. Brands ---------- */
.kh-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kh-brand-card {
  border: 1px solid var(--kh-slate-200);
  background: var(--kh-white);
  border-radius: var(--kh-radius-sm);
  padding: 24px 20px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  text-align: center;
}
.kh-brand-logo {
  max-width: 120px;
  max-height: 50px;
  object-fit: contain;
  margin-bottom: 12px;
}
.kh-brand-card:hover {
  transform: translateY(-4px);
  border-color: #fca5a5;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.kh-brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--kh-dark2);
}
.kh-brand-count {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--kh-slate-400);
  letter-spacing: 0.02em;
}

/* ---------- 5. Categories ---------- */
.kh-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.kh-cat-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--kh-radius-lg);
  border: 1px solid var(--kh-slate-200);
  background: var(--kh-white);
  overflow: hidden;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.kh-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: var(--kh-slate-300);
}
.kh-cat-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--kh-slate-100), var(--kh-slate-50));
  display: flex;
  align-items: center;
  justify-content: center;
}
.kh-cat-icon-big { color: var(--kh-slate-500); }
.kh-cat-icon-big svg { width: 56px; height: 56px; transition: transform 0.3s ease; }
.kh-cat-card:hover .kh-cat-icon-big svg { transform: scale(1.1); }
.kh-cat-info { padding: 22px 24px; }
.kh-cat-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--kh-dark2);
}
.kh-cat-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--kh-slate-500);
}
.kh-cat-link {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--kh-red);
}

/* ---------- 6. Products ---------- */
.kh-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.kh-prod-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--kh-radius-lg);
  border: 1px solid var(--kh-slate-200);
  background: var(--kh-white);
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
}
.kh-prod-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.kh-prod-img {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--kh-slate-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.kh-prod-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.kh-prod-card:hover .kh-prod-img img { transform: scale(1.05); }
.kh-prod-img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}

/* Badges */
.kh-prod-badge {
  position: absolute;
  left: 14px; top: 14px;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  color: var(--kh-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.kh-badge-stock { background: #059669; }
.kh-badge-top { background: var(--kh-amber); color: var(--kh-dark) !important; }

.kh-prod-info {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.kh-prod-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--kh-dark2);
  line-height: 1.35;
  min-height: 44px;
}
.kh-prod-ref {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--kh-slate-400);
}
.kh-prod-price {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 900;
  color: var(--kh-red);
}
.kh-prod-btn {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  background: var(--kh-dark);
  color: var(--kh-white) !important;
  text-align: center;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--kh-radius-xs);
  transition: all 0.2s ease;
  margin-top: 18px;
}
.kh-prod-card:hover .kh-prod-btn { background: var(--kh-red); }
.kh-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--kh-slate-500);
}

/* ---------- 7. Reviews ---------- */
.kh-reviews-card {
  background: var(--kh-white);
  border: 1px solid var(--kh-slate-200);
  border-radius: var(--kh-radius-lg);
  padding: 44px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.kh-reviews-header {
  text-align: center;
  margin-bottom: 36px;
}
.kh-reviews-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--kh-dark2);
  margin: 0;
}
.kh-reviews-stars {
  font-size: 32px;
  color: var(--kh-amber);
  margin-top: 12px;
  letter-spacing: 4px;
}
.kh-reviews-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--kh-slate-400);
  margin-top: 6px;
}
.kh-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.kh-review {
  background: var(--kh-slate-50);
  border: 1px solid var(--kh-slate-100);
  border-radius: var(--kh-radius-sm);
  padding: 28px 24px;
}
.kh-review-rating {
  font-size: 18px;
  color: var(--kh-amber);
  letter-spacing: 2px;
}
.kh-review-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--kh-slate-700);
  margin: 16px 0 0;
}
.kh-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.kh-review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  color: var(--kh-red);
  flex-shrink: 0;
}
.kh-review-name {
  font-weight: 800;
  color: var(--kh-dark2);
  font-size: 14px;
}
.kh-review-city {
  font-size: 12px;
  color: var(--kh-slate-400);
  margin-top: 1px;
}

/* ---------- 8. Newsletter ---------- */
.kh-newsletter {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--kh-radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.kh-newsletter-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--kh-white);
  line-height: 1.2;
}
.kh-newsletter-sub {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--kh-slate-400);
}
.kh-newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}
.kh-newsletter-input {
  flex: 1;
  padding: 16px 20px;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: var(--kh-radius-xs);
  outline: none;
  background: var(--kh-white);
  color: var(--kh-dark2);
  min-width: 0;
}
.kh-newsletter-input::placeholder { color: var(--kh-slate-400); }
.kh-newsletter-input:focus { border-color: var(--kh-red); }

/* ---------- 9. Plate notice ---------- */
.kh-plate-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--kh-slate-100);
  border: 1px solid var(--kh-slate-200);
  border-radius: var(--kh-radius-xs);
  font-size: 14px;
  font-weight: 600;
  color: var(--kh-slate-600);
}
.kh-plate-notice-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--kh-slate-400);
}

/* ---------- 10. Responsive ---------- */

@media (max-width: 1024px) {
  .kh-hero-inner { grid-template-columns: 1fr; }
  .kh-hero-right { display: none; }
  .kh-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .kh-prod-grid { grid-template-columns: repeat(2, 1fr); }
  .kh-brands-grid { grid-template-columns: repeat(2, 1fr); }
  .kh-plate-notice { font-size: 13px; }
  .kh-newsletter { grid-template-columns: 1fr; text-align: center; }
  .kh-newsletter-form { max-width: 100%; }
}

@media (max-width: 768px) {
  .kh-trust-bar-inner { justify-content: center; gap: 6px 16px; }
  .kh-trust-item { font-size: 11px; }
  .kh-hero-title { font-size: 30px; }
  .kh-hero-sub { font-size: 15px; }
  .kh-hero-left { padding: 32px 24px; }
  .kh-search-row { flex-direction: column; }
  .kh-btn-hero { width: 100%; justify-content: center; }
  .kh-btn-dark { width: 100%; text-align: center; }
  .kh-stats-row { grid-template-columns: 1fr; gap: 8px; }
  .kh-reassurance-row { flex-direction: column; gap: 10px; }
  .kh-section-title { font-size: 24px; }
  .kh-section-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .kh-reviews-grid { grid-template-columns: 1fr; }
  .kh-reviews-title { font-size: 24px; }
  .kh-newsletter-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .kh-hero-title { font-size: 26px; }
  .kh-prod-grid { grid-template-columns: 1fr; }
  .kh-brands-grid { grid-template-columns: 1fr; }
  .kh-cat-grid { grid-template-columns: 1fr; }
  .kh-prod-price { font-size: 22px; }
}
