/* ===============================================
   AMÉLIORATIONS PAGE D'ACCUEIL - APDCN ASBL
   Sections: Équipe, Newsletter, Impact/Stats
   =============================================== */

/* ========== SECTION IMPACT/STATISTIQUES ========== */
.impact-section {
  scroll-behavior: smooth;
}

.impact-grid {
  animation: fadeInUp 0.6s ease-out;
}

.impact-grid > div {
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

.impact-grid > div:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(76, 175, 80, 0.15);
}

.impact-grid > div > div:first-child {
  font-size: 2.5rem;
  font-weight: 800;
  color: #4caf50;
  margin-bottom: 15px;
  font-family: 'Outfit', sans-serif;
}

.impact-grid > div > p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

/* ========== SECTION ÉQUIPE ========== */
.team-section {
  padding: 80px 0;
  background: #f9fafb;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: slideInUp 0.5s ease-out;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(76, 175, 80, 0.2);
}

.team-card > div:first-child {
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  position: relative;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover img {
  transform: scale(1.08);
}

.team-card > div:last-child {
  padding: 20px;
  text-align: center;
}

.team-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #1a1a1a;
}

.team-card p {
  color: #4caf50;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

/* ========== SECTION NEWSLETTER ========== */
.newsletter-section {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  padding: 80px 0;
  color: white;
}

.newsletter-section .section-title {
  color: white;
  margin-bottom: 15px;
}

.newsletter-section > div {
  max-width: 650px;
  margin: 0 auto;
}

.newsletter-section #newsletterForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-section #newsletterForm > div:first-child {
  display: flex;
  gap: 12px;
}

.newsletter-section #newsletterForm input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #fff; /* Contraste amélioré pour la section d'accueil uniquement */
  color: #1a1a1a;
}

.newsletter-section #newsletterForm input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-section #newsletterForm input[type="email"]::placeholder {
  color: #666;
}

.newsletter-section #newsletterForm button {
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.newsletter-section #newsletterForm label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

.newsletter-section #newsletterForm input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: white;
}

.newsletter-section #newsletterMessage {
  padding: 10px;
  border-radius: 6px;
  display: none;
  margin-top: 10px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== SECTION CTA AMÉLIORÉ ========== */
.cta.engagement-cta {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  color: white;
  padding: 80px 0;
}

.cta.engagement-cta .section-title {
  color: white;
  text-align: center;
  margin-bottom: 30px;
}

.cta.engagement-cta > .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta.engagement-cta-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta.engagement-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.cta.engagement-cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta.engagement-cta-text {
  text-align: center;
  font-size: 1rem;
  opacity: 0.95;
  margin: 0;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .impact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-card > div:first-child {
    height: 200px;
  }

  .cta.engagement-cta > .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  #newsletterForm > div:first-child {
    flex-direction: column;
  }

  #newsletterForm button {
    width: 100%;
  }

  .cta.engagement-cta-buttons {
    flex-direction: column;
  }

  .cta.engagement-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .impact-grid > div > div:first-child {
    font-size: 2rem;
  }

  .team-card h3 {
    font-size: 1rem;
  }

  .team-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .impact-grid > div {
    padding: 20px 15px;
  }

  .impact-grid > div > div:first-child {
    font-size: 1.8rem;
  }

  .newsletter-section {
    padding: 60px 0;
  }

  #newsletterForm input[type="email"] {
    padding: 10px 12px;
    font-size: 16px;
  }

  .team-card > div:first-child {
    height: 160px;
  }
}

/* ========== AMÉLIORATIONS SERVICES ========== */
.service-card {
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(76, 175, 80, 0.15);
}

.service-card .card-icon {
  font-size: 2.5rem;
  color: #4caf50;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.service-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card .card-title {
  margin: 15px 0 10px 0;
  color: #1a1a1a;
}

.service-card .card-text {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}
