/* ═══════════════════════════════════════════════════════════
   Keys Guinée - Styles personnalisés
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary-900: #1e3a8a;
  --primary-800: #1e40af;
  --primary-700: #1d4ed8;
  --primary-500: #3b82f6;
  --accent-500: #f59e0b;
  --accent-400: #fbbf24;
  --dark: #0f172a;
  --slate-800: #1e293b;
}

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

/* ─── Typographie ─────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background: #ffffff;
}

/* ─── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade { animation: fadeIn 0.5s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Délais d'animation */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ─── Header & Navigation ─────────────────────────────────── */
.nav-scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-500);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ─── Hero Section ────────────────────────────────────────── */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Cartes produits ─────────────────────────────────────── */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(30, 58, 138, 0.15);
}

.product-card:hover::before { transform: scaleX(1); }

/* ─── Boutons ─────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-500), #e08b00);
  color: #0f172a;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  filter: brightness(1.05);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #1da851);
  color: white;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-new { background: #dcfce7; color: #15803d; }
.badge-popular { background: #fef3c7; color: #92400e; }
.badge-recommended { background: #dbeafe; color: #1d4ed8; }
.badge-pro { background: #f3e8ff; color: #7c3aed; }
.badge-bim { background: #e0f2fe; color: #0369a1; }

/* ─── Stats counter ───────────────────────────────────────── */
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.stat-card:hover { transform: translateY(-4px); }

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, white, var(--accent-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Étapes "Comment ça marche" ──────────────────────────── */
.step-card {
  position: relative;
  transition: transform 0.3s ease;
}

.step-card:hover { transform: translateY(-4px); }

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  color: white;
  font-size: 24px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

/* ─── Avis clients ────────────────────────────────────────── */
.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.stars { color: #f59e0b; }

/* ─── FAQ Accordion ───────────────────────────────────────── */
.faq-item { border-bottom: 1px solid #e2e8f0; }

.faq-question {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--primary-700); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-item.open .faq-icon {
  background: var(--primary-700);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: #64748b;
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 2000px; padding-bottom: 20px; }

/* ─── Méthodes de paiement ────────────────────────────────── */
.payment-card {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.payment-card:hover,
.payment-card.selected {
  border-color: var(--primary-500);
  background: #eff6ff;
  transform: scale(1.02);
}

/* ─── Modal de commande ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
  transform: scale(1) translateY(0);
}

/* ─── WhatsApp flottant ───────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  animation: pulse-glow 2s infinite;
}

.whatsapp-float a {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #1da851);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.whatsapp-float a:hover { transform: scale(1.1); }

/* ─── Catégories filtres ──────────────────────────────────── */
.category-tab {
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
  background: white;
  color: #64748b;
  white-space: nowrap;
}

.category-tab:hover { border-color: var(--primary-500); color: var(--primary-700); }

.category-tab.active {
  background: var(--primary-800);
  color: white;
  border-color: var(--primary-800);
}

/* ─── Barre de progression ────────────────────────────────── */
.progress-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ─── Notifications ───────────────────────────────────────── */
.notification {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 1001;
  padding: 16px 24px;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 350px;
}

.notification.show { transform: translateX(0); }
.notification.success { background: linear-gradient(135deg, #059669, #34d399); }
.notification.error { background: linear-gradient(135deg, #dc2626, #ef4444); }
.notification.info { background: linear-gradient(135deg, var(--primary-700), var(--primary-500)); }

/* ─── Skeleton loader ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 14px;
}

.footer-link:hover { color: white; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .stat-number { font-size: 2rem; }
  .whatsapp-float { bottom: 20px; right: 20px; }
  .notification { right: 15px; left: 15px; max-width: none; }
}

/* ─── Mode sombre optionnel ───────────────────────────────── */
@media (prefers-color-scheme: dark) {
  /* Activé uniquement si l'utilisateur préfère le mode sombre */
}

/* ─── Scrollbar personnalisée ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary-500); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-700); }

/* ─── Sélection de texte ──────────────────────────────────── */
::selection { background: rgba(59, 130, 246, 0.2); }

/* ─── Print ───────────────────────────────────────────────── */
@media print {
  .whatsapp-float,
  .progress-bar,
  nav { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   Bannière Produits & Partenaires
   ═══════════════════════════════════════════════════════════ */

/* ─── Ticker / scrolling brand banner ────────────────────── */
.brands-ticker {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
}

.brands-ticker::before,
.brands-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.brands-ticker::before {
  left: 0;
  background: linear-gradient(to right, #0f172a, transparent);
}
.brands-ticker::after {
  right: 0;
  background: linear-gradient(to left, #0f172a, transparent);
}

.brands-ticker-track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}

.brands-ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity 0.3s;
}
.brand-item:hover { opacity: 1; }

.brand-item img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.brand-item span {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.5px;
}

/* ─── Product Box Cards (hero showcase) ───────────────────── */
.product-box-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 1280px) {
  .product-box-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-box-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.product-box-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.04));
  border-radius: 14px;
}

.product-box-card:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.product-box-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 24px;
  position: relative;
  z-index: 1;
}

.product-box-name {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.product-box-version {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}

.product-box-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ─── Hero product image collage ──────────────────────────── */
.hero-products-collage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-collage-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease;
}

.hero-collage-img:hover { transform: scale(1.02); }

/* ─── Partners / Brands section ────────────────────────────── */
.brands-section {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 28px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.brand-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.brand-logo-item:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.brand-logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.brand-logo-name {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-align: center;
  letter-spacing: 0.3px;
}

/* ─── Page hero banner (for inner pages) ─────────────────── */
.page-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 60% 50%, rgba(59,130,246,0.15) 0%, transparent 60%);
}

.page-hero-products-strip {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.page-hero-product-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 8px 16px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.page-hero-product-chip:hover {
  background: rgba(255,255,255,0.14);
}

.page-hero-product-chip i {
  font-size: 16px;
}
