/* Variables CSS cohérentes */
:root {
  --primary: #d4af37;
  --primary-light: #f4d03f;
  --secondary: #f39c12;
  --dark: #000000;
  --light: #f5f5f5;
  --text: #333333;
  --text-light: #777777;
  --success: #27ae60;
  --warning: #e74c3c;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  padding-top: 80px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation simple et élégante */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-hover);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark);
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(212, 175, 55, 0.1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  /* Background sera défini dynamiquement via le style inline */
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--light);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-img {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-img:hover img {
  transform: scale(1.05);
}

.about-content {
  flex: 1;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
  font-weight: 600;
}
.section-titles {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--light);
}

.section-subtitles {
  font-size: 1rem;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
  font-weight: 600;
}

/* Services Section */
.services {
  padding: 100px 0;
}

.text-center {
  text-align: center;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #f0f0f0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-img {
  height: 250px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-content {
  padding: 25px;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.service-price {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}

/* Boutique Section */
.shop {
  padding: 100px 0;
  background-color: var(--light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid #f0f0f0;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.product-badge.new {
  background: var(--success);
  color: white;
}

.product-badge.promo {
  background: var(--warning);
  color: white;
}

.product-badge.bestseller {
  background: var(--primary);
  color: white;
}

/* Styles pour les badges sur la page de détail */
.main-image {
  position: relative !important;
  display: inline-block;
}

.image-badges {
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
  z-index: 999 !important;
}

.badge {
  padding: 8px 16px !important;
  border-radius: 25px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: white !important;
  display: inline-block !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
  background: var(--warning) !important; /* Fallback */
  min-width: 60px !important;
  text-align: center !important;
  border: 2px solid white !important;
}

.badge.new {
  background: var(--success) !important;
}

.badge.promo {
  background: var(--warning) !important;
}

.badge.bestseller {
  background: var(--primary) !important;
}

/* Product colors */
.product-colors {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.color-dot:hover {
  transform: scale(1.1);
  border-color: #D4AF37;
}

.color-dot.active {
  border-color: #D4AF37;
  border-width: 3px;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.color-dot.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 0 2px rgba(0,0,0,0.8);
}

/* Styles pour le résumé des commandes */
.fi-section-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.fi-section-content {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 16px;
}

.fi-input-wrapper[data-field-wrapper-label="Sous-total"],
.fi-input-wrapper[data-field-wrapper-label="Frais de livraison"],
.fi-input-wrapper[data-field-wrapper-label="Total"] {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 8px 12px;
}

.fi-input-wrapper[data-field-wrapper-label="Total"] {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff9e6, #fffbf0);
  font-weight: bold;
}

.product-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-content {
  padding: 20px;
}

.product-category {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--dark);
  line-height: 1.4;
}

.product-price {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-rating {
  color: var(--secondary);
  font-size: 14px;
}

.product-rating span {
  color: var(--text-light);
  margin-left: 5px;
}

.add-to-cart {
  background: var(--primary);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart:hover {
  background: var(--primary-light);
  transform: scale(1.1);
}

/* Testimonials */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(rgba(212, 175, 55, 0.9), rgba(212, 175, 55, 0.9)),
    url("/assets/images/Tresses_Africaines.jpg")
      no-repeat center center/cover;
  color: white;
  text-align: center;
}

.testimonials-container {
  max-width: 1000px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-rating {
  color: var(--secondary);
  margin-bottom: 15px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-location {
  font-size: 14px;
  opacity: 0.8;
}

.testimonial-info {
  margin-top: 15px;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--border-radius);
  color: white;
  box-shadow: var(--shadow-hover);
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: white;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-about p {
  margin-bottom: 15px;
  opacity: 0.9;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  opacity: 0.9;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary);
}

.footer-newsletter p {
  opacity: 0.9;
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-family: inherit;
}

.newsletter-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 14px;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow);
  z-index: 100;
  transition: var(--transition);
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Boutons généraux */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
  margin-top: 10px;
}

.hero-btns .btn-primary {
  margin-top: 0px;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark);
  color: white;
}

.btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
}

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

/* Responsive */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hero {
    min-height: 600px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 15px;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-container {
    padding: 40px 20px;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .cta-btns {
    flex-direction: column;
    gap: 15px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cta h2 {
    font-size: 1.8rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}