/* ============================================
   HOME CSS — AVDA
   Styles spécifiques à la page d'accueil
   Dernière mise à jour : Juillet 2026
   ============================================ */

/* ==========================================
   HERO BANNER — Carrousel (CORRIGÉ)
   ========================================== */

/* Conteneur principal — Pleine hauteur sans espace */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
}

/* Le slider prend TOUT l'espace */
.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Chaque slide */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Image de fond — couvre TOUT */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(0, 0, 0, 0.15) 35%,
    rgba(0, 0, 0, 0.50) 75%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}

/* Contenu — centré verticalement */
.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(223, 162, 26, 0.4);
  color: #DFA21A;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease forwards;
  backdrop-filter: blur(5px);
}

.hero-badge i {
  font-size: 0.9rem;
}

/* Titre */
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.15s forwards;
  opacity: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title .text-accent {
  color: #DFA21A;
  text-shadow: 0 2px 15px rgba(223, 162, 26, 0.5);
}

/* ==========================================
   DESCRIPTION DU HERO BANNER (Carrousel)
   ========================================== */

.hero-description {
  font-size: var(--fs-body, 2.1rem);
  line-height: 1.6;
  /* Utilisation d'un blanc pur avec une ombre portée légère pour détacher le texte de l'image */
  color: #c4f306;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 700px;
  margin-bottom: var(--spacing-xl, 2rem);
}

/* Optionnel : Ajustement de l'overlay (le voile sombre sur l'image) 
   pour augmenter le contraste global de tout le texte du Hero */
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.75) 100%
  );
}


/* Boutons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

.hero-actions .btn {
  backdrop-filter: blur(5px);
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
}

.hero-actions .btn-outline-light {
  background-color: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.hero-actions .btn-outline-light:hover {
  background-color: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   FLÈCHES DE NAVIGATION
   ========================================== */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.hero-arrow:hover {
  background: #DFA21A;
  border-color: #DFA21A;
  color: #13441E;
}

.hero-arrow-left {
  left: 15px;
}

.hero-arrow-right {
  right: 15px;
}

/* ==========================================
   INDICATEURS (DOTS) — Placés au-dessus du scroll
   ========================================== */
.hero-dots {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot.active {
  background: #DFA21A;
  border-color: #DFA21A;
  transform: scale(1.3);
}

/* ==========================================
   SCROLL INDICATOR
   ========================================== */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  width: 3px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-wheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-6px); }
  60% { transform: translateX(-50%) translateY(-3px); }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1023px) {
  .hero {
    min-height: 500px;
    max-height: none;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .hero-description {
    font-size: 0.9rem;
    max-width: 90%;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .hero-dots {
    bottom: 60px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 420px;
  }

  .hero-content {
    padding: 0 12px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
  }

  .hero-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .hero-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .hero-dots {
    bottom: 55px;
    gap: 8px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }
}

/* ==========================================
   SCROLL INDICATOR
   ========================================== */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-xs);
  z-index: 3;
  animation: bounce-scroll 2s ease-in-out infinite;
  cursor: pointer;
  transition: opacity var(--transition-normal);
}

.scroll-indicator .scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  position: relative;
}

.scroll-indicator .scroll-mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--brand-primary);
  border-radius: var(--radius-full);
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scroll-wheel {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 20px; }
}

/* ==========================================
   ABOUT PREVIEW
   ========================================== */
.about-preview {
  background-color: var(--bg-main);
  padding-top: var(--spacing-4xl);
  padding-bottom: var(--spacing-4xl);
  position: relative;
  z-index: 2;
}

.about-preview::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(19, 68, 30, 0.05), transparent);
  pointer-events: none;
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.about-preview-content .section-subtitle {
  color: var(--brand-accent);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-body-sm);
}

.about-preview-content .section-title {
  font-size: var(--fs-h2);
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

.about-preview-content .section-line {
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--brand-accent);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-lg);
}

.about-preview-content p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.about-preview-content blockquote {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background-color: var(--bg-surface);
  border-left: 4px solid var(--brand-accent);
  font-style: italic;
  color: var(--text-dark);
}

.about-preview-content blockquote cite {
  display: block;
  margin-top: var(--spacing-sm);
  font-style: normal;
  font-weight: var(--fw-semibold);
  color: var(--brand-primary);
  font-size: var(--fs-body-sm);
}

.about-preview-image {
  position: relative;
}

.about-preview-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-preview-stats {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.about-preview-stats .stat-card {
  flex: 1;
  background-color: var(--brand-primary);
  color: var(--text-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  text-align: center;
}

.about-preview-stats .stat-number {
  font-size: var(--fs-h2);
  font-weight: var(--fw-extrabold);
  display: block;
  line-height: 1;
}

.about-preview-stats .stat-label {
  font-size: var(--fs-small);
  opacity: 0.85;
  margin-top: var(--spacing-xs);
}

/* ==========================================
   DOMAINS PREVIEW
   ========================================== */
.domains-preview {
  background-color: var(--bg-surface);
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

/* ==========================================
   IMPACT PREVIEW
   ========================================== */
.impact-preview {
  background-color: var(--bg-main);
}

.impact-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

/* ==========================================
   WHERE PREVIEW
   ========================================== */
.where-preview {
  background-color: var(--bg-surface);
}

.where-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-2xl);
  max-width: 900px;
  margin: 0 auto;
}

.where-card {
  background-color: var(--bg-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.where-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.where-card-header {
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  color: var(--text-white);
}

.where-card-header.bg-primary {
  background-color: var(--brand-primary);
}

.where-card-header.bg-accent {
  background-color: var(--brand-accent);
  color: var(--text-dark);
}

.where-card-header i {
  font-size: 1.5rem;
}

.where-card-header h3 {
  color: inherit;
  font-size: var(--fs-h4);
  margin: 0;
}

.where-list {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.where-list li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--fs-body-sm);
  color: var(--text-dark);
}

.where-list li i {
  font-size: 0.4rem;
  color: var(--brand-primary);
}

/* ==========================================
   PROJECTS PREVIEW
   ========================================== */
.projects-preview {
  background-color: var(--bg-main);
}

.project-card-highlight {
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================
   TESTIMONIALS PREVIEW
   ========================================== */
.testimonials-preview {
  background-color: var(--bg-surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

/* ==========================================
   PARTNERS PREVIEW
   ========================================== */
.partners-preview {
  background-color: var(--bg-main);
}

.partners-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-2xl);
  flex-wrap: wrap;
}

.partner-logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  min-width: 140px;
  transition: all var(--transition-normal);
}

.partner-logo-placeholder:hover {
  background-color: var(--brand-primary);
  color: var(--text-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.partner-logo-placeholder i {
  font-size: 2rem;
  color: var(--brand-primary);
}

.partner-logo-placeholder:hover i {
  color: var(--brand-accent);
}

.partner-logo-placeholder span {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}

/* ==========================================
   NEWSLETTER SECTION
   ========================================== */
.newsletter-section {
  background-color: var(--bg-surface);
}

.newsletter-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-3xl);
  text-align: center;
  color: var(--text-white);
}

.newsletter-icon {
  font-size: 3rem;
  color: var(--brand-accent);
  margin-bottom: var(--spacing-lg);
}

.newsletter-card h2 {
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
}

.newsletter-card p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto var(--spacing-xl);
}

.newsletter-input-group {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input-group input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-size: var(--fs-body);
  outline: none;
  transition: all var(--transition-fast);
}

.newsletter-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-group input:focus {
  border-color: var(--brand-accent);
  background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-message {
  margin-top: var(--spacing-sm);
  font-size: var(--fs-small);
  min-height: 20px;
}

.newsletter-message.success {
  color: var(--brand-accent);
}

.newsletter-message.error {
  color: #F87171;
}

.newsletter-disclaimer {
  margin-top: var(--spacing-lg);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

/* ==========================================
   CTA DONATE
   ========================================== */
.cta-donate {
  background-color: var(--bg-main);
}

.cta-donate-card {
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: var(--spacing-3xl);
  text-align: center;
  color: var(--text-white);
}

.cta-donate-card .section-subtitle {
  color: var(--brand-accent);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-body-sm);
}

.cta-donate-card h2 {
  color: var(--text-white);
  font-size: var(--fs-h2);
  margin-bottom: var(--spacing-md);
}

.cta-donate-card p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
}

.donate-amounts {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

.donate-amounts .btn-outline-light {
  min-width: 80px;
}

.donate-amounts .btn-outline-light.active {
  background-color: var(--brand-accent);
  color: var(--text-dark);
  border-color: var(--brand-accent);
  font-weight: var(--fw-bold);
}

.donate-actions {
  margin-bottom: var(--spacing-lg);
}

.donate-equivalence {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

/* ==========================================
   AOS — Animations initiales
   ========================================== */
.aos-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.aos-fade-up {
  transform: translateY(30px);
}

.aos-fade-left {
  transform: translateX(-30px);
}

.aos-fade-right {
  transform: translateX(30px);
}

.aos-animate.aos-fade-up,
.aos-animate.aos-fade-left,
.aos-animate.aos-fade-right {
  transform: translate(0);
}

/* ==========================================
   MEDIA QUERIES CENTRALISÉES (REGROUPÉES)
   ========================================== */

/* Tablette (max-width: 1023px) */
@media (max-width: 1023px) {
  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .about-preview-image {
    order: -1;
  }

  .domains-grid,
  .impact-stats-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .hero {
    min-height: 480px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-description {
    font-size: var(--fs-body-sm);
  }

  .hero-badge {
    font-size: var(--fs-xs);
    padding: 0.35rem 1rem;
  }

  .hero-actions {
    gap: var(--spacing-sm);
    max-width: 100%;
  }

  .hero-actions .btn {
    padding: 0.7rem 1.25rem;
    font-size: var(--fs-body-sm);
  }

  .scroll-indicator {
    bottom: 1rem;
  }

  .about-preview-stats {
    flex-direction: column;
  }

  .domains-grid,
  .impact-stats-grid,
  .where-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-card,
  .cta-donate-card {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  .donate-amounts {
    gap: var(--spacing-xs);
  }

  .donate-amounts .btn {
    padding: 0.5rem 1rem;
    font-size: var(--fs-body-sm);
    min-width: 60px;
  }

  .partners-slider {
    gap: var(--spacing-md);
  }

  .partner-logo-placeholder {
    min-width: 100px;
    padding: var(--spacing-md);
  }
}


















.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  aspect-ratio: 4 / 3;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

@media (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    aspect-ratio: 16 / 9;
  }
}






