/* ========================================
   RÉVACOM - STYLES PERSONNALISÉS
   Palette de couleurs officielle
   ======================================== */

/* Variables CSS pour la palette de couleurs */
:root {
  /* Couleurs principales (encadrées en rouge) */
  --bleu-principal: #3333cc;
  --vert-principal: #339933;
  --gris-principal: #666666;

  /* Déclinaisons pour les dégradés */
  --bleu-clair: #3399cc;
  --vert-clair: #33cc66;
  --noir: #000000;

  /* Couleurs supplémentaires pour l'harmonie */
  --blanc: #ffffff;
  --gris-clair: #f8f9fa;
  --gris-fonce: #333333;
  --gris-moyen: #999999;
}

/* ========================================
   CONFIGURATION TAILWIND PERSONNALISÉE
   ======================================== */

/* Override des couleurs Tailwind avec notre palette */
.bg-primary {
  background-color: var(--bleu-principal) !important;
}

.bg-secondary {
  background-color: var(--vert-principal) !important;
}

.text-primary {
  color: var(--bleu-principal) !important;
}

.text-secondary {
  color: var(--vert-principal) !important;
}

.border-primary {
  border-color: var(--bleu-principal) !important;
}

.border-secondary {
  border-color: var(--vert-principal) !important;
}

/* ========================================
   STYLES PERSONNALISÉS
   ======================================== */

/* Section Accueil avec image de fond */
.hero-section {
  background: linear-gradient(
      135deg,
      rgba(51, 51, 204, 0.85) 0%,
      rgba(51, 153, 51, 0.75) 100%
    ),
    url("../img/WhatsApp\ Image\ 2025-10-07\ à\ 02.46.42_538b863c.jpg")
      center/cover no-repeat;
  min-height: 100vh;
  position: relative;
  background-attachment: fixed;
}

/* Dégradés personnalisés */
.gradient-bg {
  background: linear-gradient(
    135deg,
    var(--bleu-principal) 0%,
    var(--vert-principal) 100%
  );
}

.gradient-bg-reverse {
  background: linear-gradient(
    135deg,
    var(--vert-principal) 0%,
    var(--bleu-principal) 100%
  );
}

.gradient-bg-light {
  background: linear-gradient(
    135deg,
    var(--bleu-clair) 0%,
    var(--vert-clair) 100%
  );
}

/* Boutons personnalisés */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--bleu-principal) 0%,
    var(--bleu-clair) 100%
  );
  color: var(--blanc);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(51, 51, 204, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 51, 204, 0.4);
}

.btn-secondary {
  background: linear-gradient(
    135deg,
    var(--vert-principal) 0%,
    var(--vert-clair) 100%
  );
  color: var(--blanc);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(51, 153, 51, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 153, 51, 0.4);
}

/* Boutons Hero personnalisés */
.btn-hero-primary {
  background: linear-gradient(
    135deg,
    var(--vert-principal) 0%,
    var(--vert-clair) 100%
  );
  color: var(--blanc);
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(51, 153, 51, 0.4);
  min-width: 220px;
  text-align: center;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(51, 153, 51, 0.5);
  color: var(--blanc);
  text-decoration: none;
}

.btn-hero-secondary {
  background: transparent;
  color: var(--blanc);
  border: 3px solid var(--blanc);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-width: 220px;
  text-align: center;
}

.btn-hero-secondary:hover {
  background: var(--blanc);
  color: var(--bleu-principal);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

/* Cartes avec couleurs personnalisées */
.card-primary {
  background: var(--blanc);
  border: 2px solid var(--bleu-principal);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(51, 51, 204, 0.1);
  transition: all 0.3s ease;
}

.card-primary:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(51, 51, 204, 0.2);
}

.card-secondary {
  background: var(--blanc);
  border: 2px solid var(--vert-principal);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(51, 153, 51, 0.1);
  transition: all 0.3s ease;
}

.card-secondary:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(51, 153, 51, 0.2);
}

/* Icônes avec couleurs personnalisées */
.icon-primary {
  color: var(--bleu-principal);
  font-size: 2.5rem;
}

.icon-secondary {
  color: var(--vert-principal);
  font-size: 2.5rem;
}

/* Sections avec arrière-plans personnalisés */
.section-primary {
  background: linear-gradient(
    135deg,
    rgba(51, 51, 204, 0.05) 0%,
    rgba(51, 153, 51, 0.05) 100%
  );
}

.section-secondary {
  background: linear-gradient(
    135deg,
    rgba(51, 153, 51, 0.05) 0%,
    rgba(51, 51, 204, 0.05) 100%
  );
}

/* Navigation personnalisée */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--bleu-principal);
}

.nav-link-custom {
  color: var(--gris-fonce);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link-custom:hover {
  color: var(--bleu-principal);
}

.nav-link-custom::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bleu-principal);
  transition: width 0.3s ease;
}

.nav-link-custom:hover::after {
  width: 100%;
}

/* Bouton Contact Navigation */
.btn-contact-nav {
  background: linear-gradient(
    135deg,
    var(--bleu-principal) 0%,
    var(--bleu-clair) 100%
  );
  color: var(--blanc);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(51, 51, 204, 0.3);
  border: none;
}

.btn-contact-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 51, 204, 0.4);
  color: var(--blanc);
  text-decoration: none;
}

/* Bouton WhatsApp flottant */
.btn-whatsapp {
  background: #25d366;
  color: var(--blanc);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
  color: var(--blanc);
  text-decoration: none;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4),
      0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

/* Titres avec couleurs personnalisées */
.title-primary {
  color: var(--bleu-principal);
  font-weight: 700;
  position: relative;
}

.title-primary::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    135deg,
    var(--bleu-principal) 0%,
    var(--vert-principal) 100%
  );
  border-radius: 2px;
}

.title-secondary {
  color: var(--vert-principal);
  font-weight: 700;
}

/* Animations personnalisées */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* Effets de survol personnalisés */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Formulaires personnalisés */
.form-control-custom {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.form-control-custom:focus {
  border-color: var(--bleu-principal);
  box-shadow: 0 0 0 0.2rem rgba(51, 51, 204, 0.25);
  outline: none;
}

/* Footer personnalisé */
.footer-custom {
  background: linear-gradient(135deg, var(--gris-fonce) 0%, var(--noir) 100%);
  color: var(--blanc);
}

.footer-link {
  color: var(--gris-moyen);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--vert-principal);
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }

  .title-primary::after {
    width: 40px;
  }

  .card-primary,
  .card-secondary {
    padding: 20px;
  }

  /* Boutons hero responsive */
  .btn-hero-primary,
  .btn-hero-secondary {
    min-width: 200px;
    padding: 14px 28px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .btn-hero-primary,
  .btn-hero-secondary {
    min-width: 180px;
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  /* Bouton WhatsApp responsive */
  .btn-whatsapp {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  /* Bouton contact navigation responsive */
  .btn-contact-nav {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* Styles pour les éléments spécifiques du site RéVACom */

/* Logo personnalisé */
.logo-custom {
  background: linear-gradient(
    135deg,
    var(--bleu-principal) 0%,
    var(--vert-principal) 100%
  );
  color: var(--blanc);
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  font-size: 1.5rem;
}

/* Statistiques avec couleurs personnalisées */
.stat-number {
  color: var(--bleu-principal);
  font-weight: 700;
  font-size: 3rem;
}

.stat-label {
  color: var(--gris-moyen);
  font-size: 1rem;
}

/* Services avec couleurs alternées */
.service-card:nth-child(odd) {
  border-left: 4px solid var(--bleu-principal);
}

.service-card:nth-child(even) {
  border-left: 4px solid var(--vert-principal);
}

/* ========================================
   SECTION TÉMOIGNAGES - DESIGN MODERNE
   ======================================== */

/* Conteneur principal des témoignages */
.testimonials-section {
  background: linear-gradient(
    135deg,
    rgba(51, 51, 204, 0.03) 0%,
    rgba(51, 153, 51, 0.03) 100%
  );
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%233333cc" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

/* Titre de section */
.testimonials-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.testimonials-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bleu-principal);
  margin-bottom: 15px;
  position: relative;
}

.testimonials-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--bleu-principal) 0%,
    var(--vert-principal) 100%
  );
  border-radius: 2px;
}

.testimonials-subtitle {
  font-size: 1.1rem;
  color: var(--gris-moyen);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grille des témoignages */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

/* Carte de témoignage moderne */
.testimonial-card {
  background: var(--blanc);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(51, 51, 204, 0.1);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    135deg,
    var(--bleu-principal) 0%,
    var(--vert-principal) 100%
  );
  border-radius: 25px 25px 0 0;
}

.testimonial-card::after {
  content: '"';
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 4rem;
  color: rgba(51, 51, 204, 0.1);
  font-weight: 700;
  font-family: serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(51, 51, 204, 0.15);
  border-color: rgba(51, 51, 204, 0.2);
}

/* Contenu du témoignage */
.testimonial-content {
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gris-fonce);
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
}

.testimonial-text::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--bleu-principal) 0%,
    var(--vert-principal) 100%
  );
  border-radius: 2px;
}

/* Système de notation */
.testimonial-rating {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.star {
  color: #ffd700;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.star:hover {
  transform: scale(1.2);
}

/* Informations client */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(51, 51, 204, 0.1);
}

.testimonial-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bleu-principal);
  box-shadow: 0 6px 20px rgba(51, 51, 204, 0.15);
  transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.1);
  border-color: var(--vert-principal);
}

.testimonial-author-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bleu-principal);
  margin-bottom: 5px;
}

.testimonial-author-info p {
  font-size: 0.9rem;
  color: var(--gris-moyen);
  margin: 0;
}

.testimonial-company {
  font-size: 0.85rem;
  color: var(--vert-principal);
  font-weight: 600;
}

/* Badge de vérification */
.testimonial-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(
    135deg,
    var(--vert-principal) 0%,
    var(--vert-clair) 100%
  );
  color: var(--blanc);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Animations d'apparition */
.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  animation: testimonialFadeIn 0.8s ease-out forwards;
}

.testimonial-card:nth-child(1) {
  animation-delay: 0.1s;
}
.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}
.testimonial-card:nth-child(3) {
  animation-delay: 0.3s;
}
.testimonial-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes testimonialFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Effet de particules flottantes */
.testimonial-card::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle,
    rgba(51, 51, 204, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 60px 0;
  }

  .testimonials-title h2 {
    font-size: 2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-card {
    padding: 30px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .testimonial-avatar {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .testimonial-card {
    padding: 25px;
  }

  .testimonials-title h2 {
    font-size: 1.8rem;
  }
}

/* Actualités avec style personnalisé */
.news-card {
  background: var(--blanc);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-tag {
  background: var(--bleu-principal);
  color: var(--blanc);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Overlay pour les actualités */
.news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(51, 51, 204, 0.8) 0%,
    rgba(51, 153, 51, 0.8) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.news-card:hover .news-overlay {
  opacity: 1;
}

.news-detail-btn {
  background: var(--blanc);
  color: var(--bleu-principal);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.news-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
  background: var(--vert-principal);
  color: var(--blanc);
}

/* Modal actualités */
.news-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.news-detail-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Styles spécifiques aux articles */
.news-article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gris-moyen);
  font-size: 0.9rem;
}

.news-meta i {
  color: var(--bleu-principal);
}

/* Close button shown on each description page (notebook/news pages) */
.page-close-btn {
  position: fixed; /* ensure stays visible above content */
  top: 72px; /* push below fixed navbar (~64px) */
  left: 12px; /* keep on the left so it’s not hidden by right elements */
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(2,6,23,0.18);
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  z-index: 1000; /* above navbar */
}

/* Hover / focus */
.page-close-btn:hover,
.page-close-btn:focus {
  transform: translateY(-2px) scale(1.03);
  background: rgba(15, 23, 42, 1);
  outline: none;
}

/* Ensure page-content is positioned relative so absolute button sits correctly */
.page-content {
  position: relative;
}

/* Slightly smaller on very small screens */
@media (max-width: 768px) {
  .page-close-btn {
    top: 64px; /* slightly closer on tablets */
    left: 10px;
  }
}

@media (max-width: 480px) {
  .page-close-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    top: 60px; /* below navbar on small screens */
    left: 8px;
  }
}

/* Listes et grilles pour les articles */
.trends-list,
.strategy-grid,
.brand-components,
.roi-benefits,
.approach-steps,
.achievements,
.recommendations,
.best-practices {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

.trends-list,
.strategy-grid,
.brand-components,
.roi-benefits,
.approach-steps,
.achievements {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.trend-item,
.strategy-item,
.component-item,
.benefit-item,
.step-item,
.achievement-item,
.recommendation-item,
.practice-item {
  background: var(--blanc);
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid var(--vert-principal);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.trend-item:hover,
.strategy-item:hover,
.component-item:hover,
.benefit-item:hover,
.step-item:hover,
.achievement-item:hover,
.recommendation-item:hover,
.practice-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.trend-item h4,
.strategy-item h4,
.component-item h4,
.benefit-item h4,
.step-item h4,
.achievement-item h4,
.recommendation-item h4,
.practice-item h4 {
  color: var(--bleu-principal);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-item h4 i,
.strategy-item h4 i,
.component-item h4 i,
.benefit-item h4 i,
.step-item h4 i,
.achievement-item h4 i,
.recommendation-item h4 i,
.practice-item h4 i {
  color: var(--vert-principal);
}

.tools-list {
  list-style: none;
  padding: 0;
}

.tools-list li {
  background: var(--blanc);
  padding: 15px 20px;
  margin: 10px 0;
  border-radius: 10px;
  border-left: 4px solid var(--bleu-principal);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Responsive pour les articles */
@media (max-width: 768px) {
  .trends-list,
  .strategy-grid,
  .brand-components,
  .roi-benefits,
  .approach-steps,
  .achievements {
    grid-template-columns: 1fr;
  }

  .news-meta {
    flex-direction: column;
    gap: 10px;
  }

  .trend-item,
  .strategy-item,
  .component-item,
  .benefit-item,
  .step-item,
  .achievement-item,
  .recommendation-item,
  .practice-item {
    padding: 15px;
  }
}

/* Contact avec style personnalisé */
.contact-info {
  background: linear-gradient(
    135deg,
    rgba(51, 51, 204, 0.1) 0%,
    rgba(51, 153, 51, 0.1) 100%
  );
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

.contact-icon {
  background: var(--bleu-principal);
  color: var(--blanc);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Catalogue avec style personnalisé */
.catalog-section {
  background: linear-gradient(
    135deg,
    var(--bleu-principal) 0%,
    var(--vert-principal) 100%
  );
  color: var(--blanc);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.catalog-btn {
  background: var(--vert-principal);
  color: var(--blanc);
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.catalog-btn:hover {
  background: var(--vert-clair);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 153, 51, 0.4);
  color: var(--blanc);
  text-decoration: none;
}

/* ========================================
   STYLES ÉQUIPE - SLIDER ET CARTES
   ======================================== */

/* Conteneur du slider équipe */
.team-swiper {
  padding: 20px 0 60px 0;
  overflow: visible;
  position: relative;
}

/* Carte membre d'équipe */
.team-card {
  background: var(--blanc);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Conteneur image */
.team-image-container {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .team-image {
  transform: scale(1.05);
}

/* Overlay avec bouton */
.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(51, 51, 204, 0.8) 0%,
    rgba(51, 153, 51, 0.8) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-detail-btn {
  background: var(--blanc);
  color: var(--bleu-principal);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.team-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
  background: var(--vert-principal);
  color: var(--blanc);
}

/* Informations membre */
.team-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bleu-principal);
  margin-bottom: 8px;
  line-height: 1.3;
}

.team-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--vert-principal);
  margin-bottom: 8px;
}

.team-role {
  font-size: 0.9rem;
  color: var(--gris-moyen);
  margin-bottom: 16px;
  line-height: 1.4;
  flex-grow: 1;
}

/* Tags de compétences */
.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.skill-tag {
  background: linear-gradient(
    135deg,
    var(--bleu-principal) 0%,
    var(--bleu-clair) 100%
  );
  color: var(--blanc);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Conteneur des contrôles équipe */
.team-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Navigation du slider */
.team-nav-next,
.team-nav-prev {
  color: var(--bleu-principal) !important;
  background: var(--blanc);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-nav-next:hover,
.team-nav-prev:hover {
  background: var(--bleu-principal);
  color: var(--blanc) !important;
  transform: scale(1.1);
}

.team-nav-next::after,
.team-nav-prev::after {
  font-size: 18px;
  font-weight: 700;
}

/* Pagination */
.team-pagination {
  bottom: 20px !important;
}

.team-pagination .swiper-pagination-bullet {
  background: var(--gris-moyen);
  opacity: 0.5;
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}

.team-pagination .swiper-pagination-bullet-active {
  background: var(--bleu-principal);
  opacity: 1;
  transform: scale(1.2);
}

/* ========================================
   MODAL DÉTAILS ÉQUIPE - STYLE CAHIER
   ======================================== */

/* Modal principal */
.team-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.team-detail-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Conteneur cahier */
.notebook-container {
  background: var(--blanc);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.team-detail-modal.active .notebook-container {
  transform: scale(1);
}

/* En-tête cahier */
.notebook-header {
  background: linear-gradient(
    135deg,
    var(--bleu-principal) 0%,
    var(--vert-principal) 100%
  );
  color: var(--blanc);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.notebook-header::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  height: 3px;
  background: var(--blanc);
  opacity: 0.3;
}

.notebook-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.close-notebook {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--blanc);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.close-notebook:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Contenu cahier */
.notebook-content {
  padding: 30px;
  max-height: calc(90vh - 100px);
  overflow-y: auto;
}

/* Pages du carousel */
.notebook-pages {
  display: flex;
  transition: transform 0.5s ease;
}

.notebook-page {
  min-width: 100%;
  padding: 20px;
  background: var(--blanc);
}

/* Style des pages */
.page-content {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  border-left: 4px solid var(--bleu-principal);
  position: relative;
}

.page-content::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 20px,
    var(--bleu-principal) 20px,
    var(--bleu-principal) 22px
  );
}

/* Informations détaillées */
.member-detail-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.member-detail-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bleu-principal);
  box-shadow: 0 8px 25px rgba(51, 51, 204, 0.3);
}

.member-detail-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bleu-principal);
  margin-bottom: 8px;
}

.member-detail-info .position {
  font-size: 1.2rem;
  color: var(--vert-principal);
  font-weight: 600;
  margin-bottom: 8px;
}

.member-detail-info .role {
  font-size: 1rem;
  color: var(--gris-moyen);
  margin-bottom: 16px;
}

.member-detail-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Contenu de la page */
.page-section {
  margin-bottom: 30px;
}

.page-section h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bleu-principal);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-section h3::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--vert-principal);
  border-radius: 2px;
}

.page-section p {
  color: var(--gris-fonce);
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Navigation pages */
.page-navigation {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.page-nav-btn {
  background: var(--bleu-principal);
  color: var(--blanc);
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-nav-btn:hover {
  background: var(--vert-principal);
  transform: translateY(-2px);
}

.page-nav-btn:disabled {
  background: var(--gris-moyen);
  cursor: not-allowed;
  transform: none;
}

.page-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gris-moyen);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .team-swiper {
    padding: 10px 0 50px 0;
  }

  .team-image-container {
    height: 250px;
  }

  .team-info {
    padding: 20px;
  }

  .team-name {
    font-size: 1.1rem;
  }

  .team-title {
    font-size: 0.9rem;
  }

  .team-role {
    font-size: 0.85rem;
  }

  /* Ajuster les contrôles sur mobile */
  .team-controls {
    margin-top: 20px;
    padding: 0 15px;
  }

  .team-nav-next,
  .team-nav-prev {
    width: 40px;
    height: 40px;
  }

  .team-nav-next::after,
  .team-nav-prev::after {
    font-size: 14px;
  }

  .notebook-container {
    margin: 10px;
    max-height: 95vh;
  }

  .notebook-header {
    padding: 15px 20px;
  }

  .notebook-title {
    font-size: 1.2rem;
  }

  .notebook-content {
    padding: 20px;
  }

  .member-detail-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .member-detail-image {
    width: 120px;
    height: 120px;
  }

  .member-detail-info h2 {
    font-size: 1.5rem;
  }

  .page-content {
    padding: 20px;
  }

  .page-section h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .team-image-container {
    height: 200px;
  }

  .team-detail-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .notebook-header {
    padding: 12px 15px;
  }

  .notebook-content {
    padding: 15px;
  }

  .page-content {
    padding: 15px;
  }

  .member-detail-image {
    width: 100px;
    height: 100px;
  }

  .member-detail-info h2 {
    font-size: 1.3rem;
  }
}

/* Simplified team mini cards for the homepage (clean, professional, responsive) */
.team-mini {
  max-width: 320px;
  margin: 0 auto;
}

/* Replace circular avatar with larger portrait rectangle (increased size) */
.team-mini-wrapper {
  position: relative;
  display: inline-block;
}

/* Make team images larger and adaptive: use responsive width with aspect-ratio */
.team-mini-img {
  width: min(86vw, 340px);   /* on mobile it will use up to 86% of viewport width, on desktop max 340px */
  aspect-ratio: 3 / 4;       /* taller than wide */
  object-fit: cover;
  border-radius: 10px;
  border: 4px solid #eef2ff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
}

.team-mini-wrapper:hover .team-mini-img {
  transform: translateY(-6px) scale(1.03);
}

/* Contrôles de navigation pour les articles - Version simplifiée */
.actualites-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.actualites-nav-prev,
.actualites-nav-next {
  width: 40px;
  height: 40px;
  background: none;
  color: var(--bleu-principal);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.actualites-nav-prev:hover,
.actualites-nav-next:hover {
  background: rgba(30, 58, 138, 0.1);
  color: var(--vert-principal);
  transform: scale(1.1);
}

.actualites-nav-prev i,
.actualites-nav-next i {
  font-size: 16px;
  font-weight: bold;
}

.actualites-pagination {
  position: relative !important;
  bottom: auto !important;
}

.actualites-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  opacity: 1;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.actualites-pagination .swiper-pagination-bullet-active {
  background: var(--bleu-principal);
  transform: scale(1.2);
}
.team-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #374151, #1f2937);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.team-social-link:hover {
  background: linear-gradient(135deg, #1f2937, #111827);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: white;
}

.team-social-link i {
  font-size: 16px;
}
.team-profile-btn {
  background: linear-gradient(135deg, #1ed30ea7, #25bd07e1);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 15px auto;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  width: fit-content;
}

.team-profile-btn i {
  font-size: 12px;
}

.team-profile-btn:hover {
  background: linear-gradient(135deg, #13be0a, #1e3af2b0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Small info icon/button over image to open details (eye icon kept) */
.team-detail-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.18);
  transition: transform 0.18s ease, background 0.18s ease;
}

.team-detail-icon:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(15, 23, 42, 1);
}

/* Close button states: hidden until user "reads" (scroll to bottom) or timeout */
.close-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  transform: translateY(-6px);
}
.close-overlay.enabled {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Overlay card responsive (desktop: side-by-side image + content; mobile: stacked) */
.member-overlay-card {
  max-width: 1100px;
  width: 95%;
  padding: 18px;
  border-radius: 12px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 20px 60px rgba(2,6,23,0.25);
}

/* Grid inside overlay: left image, right content */
.member-overlay-card .overlay-grid {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: stretch;
}

/* Left column (image) */
.member-overlay-card .overlay-image {
  flex: 0 0 40%;
  min-width: 220px;
  max-width: 420px;
}

.member-overlay-card .overlay-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Right column (text) */
.member-overlay-card .overlay-content {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Make description scrollable inside right column */
.member-overlay-card .overlay-content #member-desc {
  overflow-y: auto;
  padding-right: 6px;
}

/* Close button visible but disabled state */
.close-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(15,23,42,0.9);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: default;
  transition: opacity .18s ease, transform .18s ease;
  opacity: 0.6;
  pointer-events: none; /* not clickable by default */
}

/* When disabled explicitly (still visible) */
.close-overlay.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}

/* When enabled (clickable) */
.close-overlay.enabled {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  transform: translateY(0);
}

/* Responsive: stacked layout on small screens */
@media (max-width: 900px) {
  .member-overlay-card {
    display: block;
    padding: 14px;
  }
  .member-overlay-card .overlay-grid {
    display: block;
  }
  .member-overlay-card .overlay-image {
    width: 100%;
    min-width: auto;
    max-width: 100%;
    margin-bottom: 12px;
  }
  .member-overlay-card .overlay-content #member-desc {
    max-height: 42vh;
  }
}

@media (min-width: 1200px) {
  .member-overlay-card { max-width: 1200px; }
}

/* ========================================
   SECTION PROCESS AMÉLIORÉE
   ======================================== */

/* Carte de processus avec image de fond */
.process-step-card {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 280px;
  display: flex;
  flex-direction: column;
}

.process-step-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Image de fond floutée */
.process-step-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  opacity: 0.3;
  transition: all 0.4s ease;
}

.process-step-card:hover .process-step-bg {
  filter: blur(4px);
  opacity: 0.5;
}

/* Contenu de la carte */
.process-step-content {
  position: relative;
  z-index: 10;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  backdrop-filter: blur(10px);
}

/* Numéro de processus */
.process-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--bleu-principal) 0%,
    var(--vert-principal) 100%
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(51, 51, 204, 0.3);
  transition: all 0.3s ease;
}

.process-step-card:hover .process-number {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(51, 51, 204, 0.4);
}

/* Titre et description */
.process-step-content h4 {
  color: var(--bleu-principal);
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.process-step-card:hover .process-step-content h4 {
  color: var(--vert-principal);
}

.process-step-content p {
  line-height: 1.6;
  color: var(--gris-fonce);
  font-size: 0.95rem;
}

/* Effet de particules flottantes */
.process-step-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle,
    rgba(51, 51, 204, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  z-index: 5;
}

.process-step-card:nth-child(even)::before {
  animation-delay: -2s;
  animation-direction: reverse;
}

/* Responsive pour la section process */
@media (max-width: 768px) {
  .process-step-card {
    height: 250px;
  }
  
  .process-step-content {
    padding: 20px;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .process-step-content h4 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .process-step-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .process-step-card {
    height: 220px;
  }
  
  .process-step-content {
    padding: 15px;
  }
  
  .process-number {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
}

/* ========================================
   ANIMATIONS FLUIDES ET DYNAMIQUES
   ======================================== */

/* Animation de base pour les éléments au scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

/* Animation de rebond pour les cartes */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(-10px);
  }
  70% {
    transform: scale(0.95) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animation de glissement depuis la gauche */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

/* Animation de glissement depuis la droite */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

/* Animation de rotation et zoom */
@keyframes rotateIn {
  0% {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.rotate-in {
  animation: rotateIn 1s ease-out;
}

/* Animation de pulsation pour les éléments importants */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* Animation de vague pour les sections */
@keyframes wave {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.wave-animation {
  animation: wave 3s ease-in-out infinite;
}

/* Effet de parallax amélioré */
.parallax-element {
  transition: transform 0.1s ease-out;
}

/* Animation de chargement pour les images */
@keyframes imageLoad {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.image-load {
  animation: imageLoad 0.6s ease-out;
}

/* Animation de texte qui apparaît lettre par lettre */
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--bleu-principal);
  white-space: nowrap;
  animation: typewriter 2s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--bleu-principal);
  }
}

/* Animation de particules flottantes */
@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

.floating-particle {
  animation: floatParticle 6s ease-in-out infinite;
}

/* Animation de gradient animé */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animated-gradient {
  background: linear-gradient(-45deg, var(--bleu-principal), var(--vert-principal), var(--accent), var(--secondary));
  background-size: 400% 400%;
  animation: gradientShift 4s ease infinite;
}

/* Animation de hover améliorée pour les cartes */
.card-hover-enhanced {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-hover-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.card-hover-enhanced:hover::before {
  left: 100%;
}

.card-hover-enhanced:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Animation de chargement progressif */
.progressive-load {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.progressive-load.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Délais d'animation pour créer un effet de cascade */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-delay-700 { animation-delay: 0.7s; }
.animate-delay-800 { animation-delay: 0.8s; }







 .gradient-bg {
      background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    }
    .article-card {
      transition: all 0.3s ease;
      border: 1px solid #e5e7eb;
    }
    .article-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);
      border-color: #3b82f6;
    }
    .category-badge {
      background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    }
    
    
    
    
    
    
    
    /*article individuel*/
    
    
    .gradient-bg { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
    .animate-slide-up { animation: slideUp 0.8s ease-out; }
    @keyframes slideUp { from { opacity:0; transform:translateY(30px);} to {opacity:1; transform:translateY(0);} }
    .card-hover { transition: all 0.3s ease; }
    .card-hover:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
    
    
        .animate-slide-up { animation: slideUp 0.8s ease-out; }
    @keyframes slideUp {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .card-hover { transition: all 0.3s ease; }
    .card-hover:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
  
  
      .gradient-bg { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
    .animate-float { animation: float 6s ease-in-out infinite; }
    @keyframes float { 0%,100%{transform:translateY(0px);}50%{transform:translateY(-20px);} }
    .animate-slide-up { animation: slideUp 0.8s ease-out; }
    @keyframes slideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
    .card-hover { transition: all 0.3s ease; }
    .card-hover:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
    
    
    
     .animate-slide-up {
      animation: slideUp 0.8s ease-out;
    }
    @keyframes slideUp {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }

 
