/* Styles personnalisés S.M.C */

/* Base */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  font-family: 'DM Sans', sans-serif;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

/* Background premium */
.premium-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f0f9ff 100%);
  position: relative;
}

.premium-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 20% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Ligne élégante */
.elegant-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
  position: relative;
}

.elegant-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  background: #1d4ed8;
  border-radius: 50%;
}

/* Cartes premium */
.premium-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.4s;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(30, 64, 175, 0.15);
}

/* Header glass */
.header-glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* Navigation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  transition: width 0.3s;
}

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

/* Boutons */
.btn-premium {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transition: all 0.4s;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(30, 64, 175, 0.5);
}

.btn-secondary {
  border: 2px solid #1d4ed8;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #1d4ed8;
  color: white;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  transition: all 0.4s;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(37, 211, 102, 0.5);
}

/* WhatsApp */
.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
  transition: all 0.4s;
}

.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-4px);
}

/* Footer */
.footer-premium {
  background: linear-gradient(180deg, #f8fafc, #fff);
}

/* Drawer mobile */
.drawer-overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* Logos partenaires */
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.5s;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Statistiques */
.stat-number {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Délais d'animation (complément à Tailwind) */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

/* Cartes produits (page Produits) */
.product-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(30, 64, 175, 0.25);
  border-color: rgba(59, 130, 246, 0.3);
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-card:hover .product-cta {
  transform: translateY(0);
  opacity: 1;
}

.product-image {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-overlay {
  background: linear-gradient(to top, rgba(30, 64, 175, 0.9) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-cta {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

/* FAQ (page Produits) */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: #1d4ed8;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotated {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

/* Formulaire (page Contact) */
.form-input {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.form-input:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

.whatsapp-btn-large {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  transition: all 0.4s ease;
}

.whatsapp-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(37, 211, 102, 0.5);
}

/* Timeline (page À propos) */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #1d4ed8, #60a5fa);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #1d4ed8;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #1d4ed8;
}
