/* =================================================================
   BRAZZA-MARKET - PAGE CONTACT
   Design moderne, professionnel et parfaitement adapté au mode sombre
================================================================= */

/* =================================================================
   1. VARIABLES & THÈMES (Le cœur du mode sombre)
================================================================= */
:root {
  --primary: #46955c;
  --primary-dark: #1a5c34;
  --primary-light: #73dd91;
  --accent: #ffd700;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mode Sombre : on redéfinit simplement les variables, tout s'adapte ! */
body.dark-mode {
  --bg-body: #0f1419;
  --bg-card: #16213e;
  --bg-input: #1a1f2e;
  --text-main: #eaeaea;
  --text-muted: #a0a0a0;
  --border: #2d3748;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* =================================================================
   2. BASE & TYPOGRAPHY
================================================================= */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
}

/* =================================================================
   3. HERO SECTION AVEC IMAGE DE FOND
================================================================= */
.contact-hero {
  /* Image de fond professionnelle avec overlay sombre */
  background: 
    linear-gradient(135deg, rgba(26, 92, 52, 0.85) 0%, rgba(10, 25, 15, 0.9) 100%),
    url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 20px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .contact-hero {
  background: 
    linear-gradient(135deg, rgba(10, 25, 15, 0.9) 0%, rgba(5, 15, 10, 0.95) 100%),
    url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
  color: white;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 750px;
  margin: 0 auto;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
}

/* =================================================================
   4. CONTACT GRID & TITRES
================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 80px;
}

.contact-info h2,
.contact-form-section h2,
.testimonials-section h2,
.faq-section h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

/* Petite ligne dorée sous les titres pour le style */
.contact-info h2::after,
.contact-form-section h2::after,
.testimonials-section h2::after,
.faq-section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* =================================================================
   5. CARTES DE CONTACT
================================================================= */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: rgba(70, 149, 92, 0.1);
  color: var(--primary);
  transition: var(--transition);
}

.contact-card:hover .card-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* Couleurs spécifiques au survol */
.contact-card.whatsapp .card-icon { background: rgba(37, 211, 102, 0.1); color: #25D366; }
.contact-card.whatsapp:hover .card-icon { background: #25D366; color: white; }

.contact-card.location .card-icon { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.contact-card.location:hover .card-icon { background: #e74c3c; color: white; }

.card-content h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 6px;
  font-weight: 600;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 2px 0;
}

.card-content .phone,
.card-content .email-text,
.card-content .address {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

/* =================================================================
   6. SECTION RÉSEAUX SOCIAUX
================================================================= */
.social-section {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid var(--border);
}

.social-section h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  transition: var(--transition);
  text-decoration: none;
}

.social-link.whatsapp { background: #25D366; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.facebook { background: #1877F2; }

.social-link:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* =================================================================
   7. FORMULAIRE DE CONTACT
================================================================= */
.contact-form-section {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(70, 149, 92, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(70, 149, 92, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(70, 149, 92, 0.4);
}

.privacy-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.privacy-note i {
  color: var(--primary);
}

/* =================================================================
   8. SECTION TÉMOIGNAGES
================================================================= */
.testimonials-section {
  background: var(--bg-card);
  padding: 60px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
  border: 1px solid var(--border);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 50px;
  margin-top: -20px;
}

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

.testimonial-card {
  background: var(--bg-body);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.author-info h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info .date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.testimonial-rating {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 2px;
}

.testimonial-message {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.loading-testimonials {
  text-align: center;
  padding: 40px;
  grid-column: 1 / -1;
  color: var(--text-muted);
}

.loading-testimonials i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 15px;
}

.testimonial-cta {
  text-align: center;
  padding: 40px;
  background: rgba(70, 149, 92, 0.05);
  border-radius: var(--radius);
  margin-bottom: 40px;
  border: 1px dashed var(--primary);
}

body.dark-mode .testimonial-cta {
  background: rgba(70, 149, 92, 0.1);
}

.testimonial-cta h3 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.testimonial-cta p {
  color: var(--text-muted);
  margin-bottom: 25px;
}

.btn-testimonial {
  padding: 14px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(70, 149, 92, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(70, 149, 92, 0.4);
}

/* Formulaire de témoignage */
.testimonial-form-container {
  background: var(--bg-body);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: none;
  animation: slideDown 0.4s ease;
  border: 1px solid var(--border);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-form-container h3 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 30px;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Système de notation par étoiles */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  font-size: 28px;
  margin: 10px 0;
}

.star-rating input { display: none; }

.star-rating label {
  color: var(--border);
  cursor: pointer;
  transition: color 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
}

.btn-cancel {
  padding: 12px 25px;
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cancel:hover {
  background: var(--border);
  color: var(--text-main);
}

.btn-submit-testimonial {
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(70, 149, 92, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-submit-testimonial:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(70, 149, 92, 0.4);
}

.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-note i { color: var(--primary); }

/* =================================================================
   9. SECTION FAQ
================================================================= */
.faq-section {
  background: var(--bg-card);
  padding: 50px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

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

.faq-item {
  padding: 25px;
  background: var(--bg-body);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.faq-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
  background: rgba(70, 149, 92, 0.05);
}

body.dark-mode .faq-item:hover {
  background: rgba(70, 149, 92, 0.1);
}

.faq-item h3 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 12px;
  font-weight: 600;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =================================================================
   10. RESPONSIVE DESIGN
================================================================= */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .contact-form-section,
  .testimonials-section,
  .faq-section {
    padding: 30px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-cancel,
  .btn-submit-testimonial {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 60px 20px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .contact-info h2,
  .contact-form-section h2,
  .faq-section h2,
  .testimonials-section h2 {
    font-size: 1.5rem;
  }
  
  .contact-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }
  
  .card-icon {
    margin-bottom: 10px;
  }
  
  .star-rating {
    font-size: 24px;
  }
}
/* =================================================================
    FORCAGE DU MODE SOMBRE (pour écraser style.css)
================================================================= */
body.dark-mode {
  background-color: #0f1419 !important;
  color: #eaeaea !important;
}

body.dark-mode .container {
  background-color: transparent !important;
}

body.dark-mode .contact-grid {
  background-color: transparent !important;
}

body.dark-mode .contact-info {
  background-color: transparent !important;
}

body.dark-mode .contact-form-section {
  background-color: #16213e !important;
}

body.dark-mode .testimonials-section {
  background-color: #16213e !important;
}

body.dark-mode .faq-section {
  background-color: #16213e !important;
}