.slider-slide .absolute.inset-0.bg-primary {
    transition: opacity 0.3s ease;
}

.slider-slide a:hover .absolute.inset-0.bg-primary {
    opacity: 0 !important;
}


.OverlayB:hover {
    transition: opacity 0.3s ease;
    opacity: 0 ;
}

.slide-overlay {
    transition: opacity 0.3s ease;
}

.slide-overlay.hover {
    opacity: 0 !important;
}

.group:hover .bg-charcoal {
    background-color: rgba(80, 150, 222, 0.9); /* Couleur bleu primaire avec opacité */
  }

  .bg-bleu {
    background-color: rgba(80, 150, 222, 0.9); /* Couleur bleu primaire avec opacité */
  }
   /* S'assurer que l'en-tête est par-dessus le slider */
   header {
    z-index: 100;
}

/* Effet de hover sur les slides */
.slide-overlay {
    transition: opacity 0.3s ease;
}

.slide-overlay.hover {
    opacity: 0 !important;
}

  /* Effet 3D au survol */
  .card-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  

  .card-3d:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(2deg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  
/* 5. Améliorer la visibilité des cartes */
.card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

  .architectural-background {
    background-color: #5096de;
    opacity: 0.15;
  }
  
  .pattern {
    position: absolute;
    border: 2px solid rgba(80, 150, 222, 0.3);
    transform-style: preserve-3d;
    transform-origin: center;
    box-shadow: 0 0 40px rgba(80, 150, 222, 0.1);
  }
  
  .pattern-1 {
    width: 80px;
    height: 160px;
    top: 80%;
    left: 10%;
    transform: rotate(20deg) skew(10deg);
    animation: float 12s infinite ease-in-out;
  }
  
  .pattern-2 {
    width: 120px;
    height: 120px;
    top: 100%;
    left: 20%;
    transform: rotate(45deg);
    animation: float 15s infinite ease-in-out reverse;
  }
  
  .pattern-3 {
    width: 150px;
    height: 100px;
    top: 25%;
    right: 15%;
    transform: rotate(-10deg) skew(-5deg);
    animation: float 18s infinite ease-in-out 3s;
  }
  
  .pattern-4 {
    width: 100px;
    height: 200px;
    bottom: 10%;
    right: 10%;
    transform: rotate(20deg);
    animation: float 20s infinite ease-in-out 2s;
  }
  
  .pattern-5 {
    width: 200px;
    height: 120px;
    bottom: 30%;
    left: 5%;
    transform: rotate(-25deg);
    animation: float 17s infinite ease-in-out 1s;
  }
  
  .pattern-6 {
    border: none;
    width: 150px;
    height: 150px;
    top: 90%;
    right: 30%;
    background: linear-gradient(45deg, rgba(80, 150, 222, 0.05), rgba(80, 150, 222, 0.15));
    transform: rotate(45deg);
    animation: float 14s infinite ease-in-out 4s;
  }
  
  /* Animer les formes qui flottent doucement */
  @keyframes float {
    0%, 100% {
      transform: translateY(0) rotate(var(--rotation, 0deg)) skew(var(--skew, 0deg));
    }
    50% {
      transform: translateY(20px) rotate(calc(var(--rotation, 0deg) + 5deg)) skew(var(--skew, 0deg));
    }
  }
  
  /* Adapter l'animation pour les différentes formes */
  .pattern-1 { --rotation: 15deg; --skew: 5deg; }
  .pattern-2 { --rotation: 45deg; --skew: 0deg; }
  .pattern-3 { --rotation: -10deg; --skew: -5deg; }
  .pattern-4 { --rotation: 20deg; --skew: 0deg; }
  .pattern-5 { --rotation: -25deg; --skew: 0deg; }
  .pattern-6 { --rotation: 45deg; --skew: 0deg; }
  
  /* Ajouter une animation pour la création des formes architecturales en 3D */
  @media (prefers-reduced-motion: no-preference) {
    .pattern::before, .pattern::after {
      content: '';
      position: absolute;
      background-color: rgba(80, 150, 222, 0.1);
    }
    
    .pattern::before {
      width: 100%;
      height: 100%;
      transform: translateZ(-20px);
    }
    
    .pattern::after {
      width: 20px;
      height: 100%;
      top: 0;
      right: -20px;
      transform: rotateY(90deg) translateZ(0);
      transform-origin: left center;
    }
    
    /* Simulation d'ombre pour effet 3D */
    .pattern-1::before { opacity: 0.7; }
    .pattern-2::before { opacity: 0.6; }
    .pattern-3::before { opacity: 0.5; }
    .pattern-4::before { opacity: 0.7; }
    .pattern-5::before { opacity: 0.8; }
  }

  /* Styles personnalisés pour la page contact */

/* Animation d'entrée pour les icônes de contact */
@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .contact-info-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
  }
  
  .contact-info-item:nth-child(1) { animation-delay: 0.1s; }
  .contact-info-item:nth-child(2) { animation-delay: 0.2s; }
  .contact-info-item:nth-child(3) { animation-delay: 0.3s; }
  .contact-info-item:nth-child(4) { animation-delay: 0.4s; }
  
  /* Animation d'icônes sur survol */
  .icon-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .icon-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Style amélioré pour les champs de formulaire */
  .form-input:focus {
    box-shadow: 0 0 0 3px rgba(80, 150, 222, 0.3);
  }
  
  /* Amélioration de la carte Google Maps */
  .map-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
  }
  
  .map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(80, 150, 222, 0.1);
    pointer-events: none;
    z-index: 1;
  }
  
  /* Style d'effet pour les réseaux sociaux */
  .social-icon {
    transition: all 0.3s ease;
    animation: pulse 1.5s infinite;
    background-color: #3172b4;
  }
  
  .social-icon:hover {
    transform: scale(1.15);
  }
  
  /* Animation du bouton d'envoi */
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(80, 150, 222, 0.7);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(80, 150, 222, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(80, 150, 222, 0);
    }
  }
  
  .submit-button:hover {
    animation: pulse 1.5s infinite;
    background-color: #3172b4;
  }