/* ===== HOME PAGE STYLES ===== */

:root {
  --color-primary: #006233;
  --color-secondary: #004d28;
  --color-accent: #FCD116;
  --color-danger: #EF2B2D;
  --color-text: #111827;
  --color-text-light: #6b7280;
  --color-border: #e5e7eb;
  --color-bg-light: #f8f9fa;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.home-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
  color: var(--color-text);
  line-height: 1.6;
}

/* ===== HERO SECTION ===== */

.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 90px 24px 70px;
  overflow: hidden;
  margin-top: 0;
  transition: background-image 1s ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(205, 1, 4, 0.85) 0%,
    rgba(252, 209, 22, 0.70) 50%,
    rgba(0, 98, 51, 0.90) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-section::before {
  display: none;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-decorative { display: none; }

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: fadeInDown 0.6s ease;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-highlight {
  color: var(--color-secondary);
  display: inline;
}

.hero-description {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-hero-primary {
  background: var(--color-accent);
  color: var(--color-secondary);
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #e6b800;
}

.btn-hero-secondary {
  background: transparent;
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* ===== STATS SECTION ===== */

.stats-section {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.stats-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-left: 1px solid var(--color-border);
}

.stat-card {
  padding: 24px 28px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background-color: var(--color-bg-light);
}

.stat-value {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ===== SERVICES SECTION ===== */

.services-section {
  padding: 72px 0 80px;
  background: #f0f2f1;
}

.services-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  background: rgba(0,98,51,0.1);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin: 0 0 14px;
  border: 1px solid rgba(0,98,51,0.2);
}

.section-titlee {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 12px;
  text-decoration: none;
}

.section-description {
  color: #555;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 0.95rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== SERVICE CARD ===== */
.service-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

/* Partie haute colorée avec l'icône */
.service-card-top {
  background-color: var(--card-color, #006233);
  padding: 40px 24px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.12);
}

.service-icon {
  font-size: 44px;
  line-height: 1;
}

/* Partie basse blanche avec le texte */
.service-card-bottom {
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #fff;
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
  line-height: 1.35;
}

.service-description {
  font-size: 0.9rem;
  color: #444;
  margin: 0 0 18px;
  line-height: 1.65;
  flex: 1;
}

.service-cta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--card-color, #006233);
  transition: letter-spacing 0.2s ease;
}

.service-card:hover .service-cta {
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== HOW IT WORKS SECTION ===== */

.how-it-works-section {
  background: #fff;
  padding: 72px 0;
  border-top: 1px solid var(--color-border);
}

/* ===== ANNOUNCEMENT BANNER ===== */
.announcement-section {
  background: linear-gradient(90deg, #004d28, #006233);
  color: #fff;
  padding: 14px 24px;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 3px solid var(--color-accent);
}

.announcement-section a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: 8px;
}

.announcement-section a:hover {
  text-decoration: underline;
}

.how-it-works-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 8px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.step-card:hover .step-number {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.1);
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 8px;
}

.step-description {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin: 0;
}

/* ===== FINAL CTA SECTION ===== */

.final-cta-section {
  background: linear-gradient(135deg, #004d28, #006233);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
  border-top: 4px solid var(--color-accent);
}

.cta-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin: 0 0 14px;
}

.cta-description {
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.btn-cta-primary {
  background: var(--color-accent);
  color: var(--color-secondary);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #e6b800;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 16px 40px;
    margin-top: 60px;
  }

  .hero-decorative {
    width: 250px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .final-cta-section {
    padding: 48px 16px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 12px 30px;
    margin-top: 50px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .official-badge {
    font-size: 11px;
    padding: 6px 14px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .services-grid {
    gap: 16px;
  }

  .service-card {
    padding: 20px 16px;
  }

  .cta-title {
    font-size: 1.3rem;
  }

  .btn-cta-primary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
