/*GESTION DES POLICES ET COULEURS GLOBALES*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
:root {
  /* Couleurs principales */
  --primary: #4471c4;      /* Bleu GESB */
  --secondary: #f8b839;    /* Jaune d'accent */
  --accent: #3a8bf9;       /* Bleu clair */
  --dark: #2d3748;         /* Gris foncé du texte */
  --light: #f8faff;        /* Fond très clair */
  /* Couleurs des solutions */
  --gmedisoft-color: #16a085;   /* Vert */
  --grestaurant-color: #e74c3c;   /* Rouge */
  --gpaie-color: #9b59b6;       /* Violet */
  --gimmo-color: #f39c12;       /* Orange */
  --wendpegr-color: #8b4513;    /* Marron */
  --gaqua-color: #4471c4;       /* Bleu pour les icônes */
  --gschool-color: #9b59b6;
  --greport-color: #f39c12;
  /* Couleurs de texte pour certaines solutions */
  --gaqua-text-color: #00bcd4;  /* Cyan */
  --gschool-text-color: #9c27b0;  /* Violet */
  --greport-text-color: #ff9800;  /* Orange */
  --gmedisoft-text-color: #f39c12;
  --grestaurant-text-color: #c0392b;
  --gpaie-text-color: #8e44ad;
  --gimmo-text-color: #e67e22;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
}
/* Styles généraux pour le corps et les sections */
section {
    position: relative;
    padding: 5rem 0; /* 80px */
}
/*   HERO ET NAVIGATION
* Styles pour la barre de navigation */
#navbar {
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
#navbar.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.hero-bg-light {
    background-color: var(--light);
}
.hero-overlay-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 255, 0.9) 100%);
}
.primary-text {
  color: var(--primary);
}
/* Nouveau style pour les boutons principaux et secondaires */
.primary-btn {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
  transition: all 0.3s ease;
  transform: translateY(0);
}
.primary-btn:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(68, 113, 196, 0.3);
}
.secondary-btn {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
  transition: all 0.3s ease;
  transform: translateY(0);
}
.secondary-btn:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(68, 113, 196, 0.3);
}
/*ANIMATIONS ET EFFETS*/
/* Bouton "glow" */
.btn-glow-light {
    position: relative;
    z-index: 10;
    overflow: hidden;
    transition: all 0.4s ease-out;
}
.btn-glow-light::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
    z-index: -1;
}
.btn-glow-light:hover::before {
    width: 200%;
    height: 200%;
    opacity: 1;
}
/* Effet de brillance pour les cartes */
.card-glow {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent;
}
.card-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

/* Solution Cards Premium */
.solution-card-premium {
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid transparent;
    position: relative;
}

.solution-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(68, 113, 196, 0.1);
}

.solution-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4471c4, #f8b839);
    border-radius: 12px 12px 0 0;
}
/* Animation "slide-up" pour le contenu du Hero */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(80px); /* Augmenté de 50px à 80px */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-slide-up {
  animation: slide-up 1.5s ease-out forwards; /* Durée ajustée à 1.5s */
}
/* AJUSTEMENTS PARTICULES ET OVERLAY */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15; /* Z-index pour les particules */
}
.hero-overlay-light {
    position: absolute;
    inset: 0;
    z-index: 10; /* L'overlay doit être au-dessus des particules */
}
.hero-content {
    position: relative;
    z-index: 20; /* Le contenu du Hero doit être au-dessus de tout */
}
/*SECTIONS SPÉCIFIQUES
Styles pour la section "Services" */
.services-card {
    background-color: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    text-align: center;
}
.services-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.services-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}
.services-card .list-title {
    font-weight: 600;
    color: var(--dark);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}
.services-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
}
.services-card ul li {
    font-size: 0.9rem;
    color: #4b5563;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}
.services-card ul li::before {
    content: "•";
    color: var(--primary);
    font-size: 1.25rem;
    position: absolute;
    left: -0.5rem;
    top: -0.2rem;
}
/* Styles pour la section "Solutions" */
#solutions .primary-btn {
    box-shadow: 0 4px 8px rgba(68, 113, 196, 0.2);
}
#solutions .primary-btn:hover {
    transform: translateY(-2px);
}
/* Contenu des boutons pour que le lien prenne toute la surface */
#solutions .primary-btn a, #solutions .secondary-btn a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
} 
/* Styles spécifiques pour le card de Wend Pegr Nooma */
.religious-card {
  background: linear-gradient(135deg, #f8faff, #f4e8d8);
  border: 2px solid var(--wendpegr-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
/* Grille de contact */
.contact-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 4rem;
    }
}
.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}
.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-right: 1rem;
}
.contact-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
.contact-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    background: #fdfdfe;
    font-size: 0.95rem;
    transition: all 0.3s ease-in-out;
    resize: vertical;
}

.contact-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(68, 113, 196, 0.1);
    background: #ffffff;
    transform: translateY(-1px);
}

.contact-form-input:hover {
    border-color: #cbd5e0;
}

/* Styles spécifiques pour le textarea */
textarea.contact-form-input {
    min-height: 120px;
    font-family: inherit;
}

/* Styles pour le select */
select.contact-form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Validation states */
.contact-form-input:valid {
    border-color: #10b981;
}

.contact-form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Button animation for form */
#whatsappForm button[type="submit"] {
    position: relative;
    overflow: hidden;
}

#whatsappForm button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(68, 113, 196, 0.4);
}

#whatsappForm button[type="submit"]:active {
    transform: translateY(0);
}

/* Loading state for button */
#whatsappForm button[type="submit"].loading {
    pointer-events: none;
    opacity: 0.7;
}

#whatsappForm button[type="submit"].loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form-input {
        padding: 0.75rem 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .contact-grid {
        gap: 1.5rem;
    }

    #whatsappForm .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Styles pour le défilement continu des partenaires */
.partners-container {
  position: relative;
  width: 100%;
}

.partners-track {
  display: flex;
  width: max-content;
  animation: scroll-partners 30s linear infinite;
}

.partner-slide {
  width: 280px;
  flex-shrink: 0;
}

.partner-card {
  transition: all 0.3s ease;
  height: 180px;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  margin: 0 0.5rem;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.partner-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.partner-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Animation de défilement */
@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-280px * 5)); /* Déplacement de 5 logos */
  }
}

/* Pause au survol */
.partners-container:hover .partners-track {
  animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
  .partner-slide {
    width: 250px;
  }
  
  @keyframes scroll-partners {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-250px * 5));
    }
  }
}

/* Styles pour les témoignages partenaires */
.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Animation simple des 3 points clignotants */
.dots-animation-simple {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.dot-simple {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary);
  animation: dotBlinkSimple 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(68, 113, 196, 0.3);
}

.dot-simple:nth-child(1) {
  animation-delay: 0s;
}

.dot-simple:nth-child(2) {
  animation-delay: 0.4s;
}

.dot-simple:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes dotBlinkSimple {
  0%, 70%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  35% {
    opacity: 1;
    transform: scale(1.3);
  }
}