/* Fichier CSS moderne pour le site de campagne de Mme LAGOU */

/* Variables globales */
:root {
  --campaign-green: #005A2B;
  --campaign-green-light: #007a3d;
  --campaign-orange: #F7941D;
  --campaign-dark: #1a202c;
  --transition-standard: all 0.3s ease;
}

/* Améliorations générales */
body {
  scroll-behavior: smooth;
}

/* Effet de survol amélioré pour les boutons */
.btn-primary {
  background-color: var(--campaign-orange);
  color: white;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(247, 148, 29, 0.2);
  transition: var(--transition-standard);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(247, 148, 29, 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn-primary:hover::after {
  transform: translateX(0);
}

/* Effet de survol pour les liens de navigation */
.nav-link {
  position: relative;
  transition: var(--transition-standard);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--campaign-green);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Améliorations pour les cartes et sections */
.card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: var(--transition-standard);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Améliorations pour le header */
header {
    /* Effet Liquid Glass */
    background-color: rgba(255, 255, 255, 0.8); /* Fond blanc semi-transparent */
    backdrop-filter: blur(10px); /* Applique l'effet de flou */
    -webkit-backdrop-filter: blur(10px); /* Pour la compatibilité avec Safari */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Ombre légère pour la profondeur */
}

/* Styles pour l'accordéon sur la page programme */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background-color: #f9fafb; /* bg-gray-50 */
    border-top: 1px solid #e5e7eb; /* border-gray-200 */
}

/* Animation du logo au défilement */
.logo-link img {
    transition: height 0.3s ease-in-out;
}

header.scrolled .logo-link img {
    /* Réduit la hauteur du logo. h-20 (5rem) sur mobile, h-24 (6rem) sur desktop */
    height: 5rem; 
}

/* Améliorations pour le menu mobile */
.mobile-menu-modern {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: white;
  z-index: 50;
  padding: 1.5rem;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
}

.mobile-menu-modern.show {
  right: 0;
}

/* Overlay pour l'arrière-plan flou */
.mobile-menu-overlay {
  transition: opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu-overlay.show {
  opacity: 1;
}

/* Styles pour les menus déroulants mobiles */
.mobile-dropdown-toggle {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

/* Animations de défilement améliorées */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Améliorations pour les sections principales */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--campaign-orange);
  border-radius: 2px;
}

/* Améliorations pour les formulaires */
.form-input {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition-standard);
}

.form-input:focus {
  border-color: var(--campaign-green);
  box-shadow: 0 0 0 3px rgba(0, 90, 43, 0.2);
  outline: none;
}

/* Améliorations pour le footer */
.footer-modern {
  background-color: var(--campaign-dark);
  color: white;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition-standard);
}

.social-icon:hover {
  background-color: var(--campaign-orange);
  transform: translateY(-3px);
}

/* Améliorations pour les images */
.img-hover-zoom {
  overflow: hidden;
  border-radius: 8px;
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.05);
}

/* Améliorations pour les boutons de retour en haut */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--campaign-green);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-standard);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--campaign-green-light);
  transform: translateY(-3px);
}

/* Améliorations pour les menus déroulants */
.dropdown-menu {
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Styles pour les cartes d'actualités */
.news-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition-standard);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.news-card-date {
  background-color: var(--campaign-orange);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Styles pour les badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: var(--campaign-green);
  color: white;
}

.badge-secondary {
  background-color: var(--campaign-orange);
  color: white;
}

/* Styles pour les témoignages */
.testimonial-card {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(0, 90, 43, 0.1);
  font-family: serif;
  line-height: 1;
}

/* Styles pour les compteurs */
.counter-box {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition-standard);
}

.counter-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.counter-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--campaign-green);
  margin-bottom: 0.5rem;
}

.counter-label {
  color: var(--campaign-dark);
  font-weight: 500;
}

/* Styles pour les timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--campaign-green-light);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 4px solid var(--campaign-orange);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

/* Media queries pour la responsivité */
@media (max-width: 768px) {
  /* Optimisations générales pour mobile */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Ajustements pour le header */
  .header-modern {
    padding: 0.5rem 0;
  }
  
  /* Ajustements pour les boutons */
  .btn-primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
  
  /* Ajustements pour les cartes */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Ajustements pour la timeline */
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 21px;
  }
  
  /* Optimisations pour les sections */
  .section-title {
    font-size: 1.75rem;
  }
  
  /* Optimisations pour les grilles */
  .grid-cols-2, 
  .grid-cols-3, 
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  /* Ajustements pour le menu mobile */
  .mobile-menu-modern {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .mobile-submenu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
  }

  .mobile-dropdown-toggle svg { transition: transform 0.3s ease; }
}

/* Optimisations pour les tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-cols-3, 
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Optimisations pour les petits écrans mobiles */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .btn-primary {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .counter-number {
    font-size: 2.5rem;
  }
}