/*animation background*/
.wave-svg-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.5; /* Ajuste la discrétion */
}

.wave-svg-bg img {
  width: 200%;
  height: 200%;
  object-fit: cover;
  animation: slowMove 60s ease-in-out infinite;
  mix-blend-mode: overlay;
  filter: blur(0px) contrast(1.2);
}

@keyframes slowMove {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.05) translate(-5%, -5%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

/* titre */
.fade {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }
  
  .delay-0 { animation-delay: 0s; }
  .delay-1 { animation-delay: 0.2s; }
  .delay-2 { animation-delay: 0.4s; }
  
  .fade {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }
  
  .delay-0 { animation-delay: 0s; }
  .delay-1 { animation-delay: 0.2s; }
  .delay-2 { animation-delay: 0.4s; }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .green.fade {
    animation:
      fadeInUp 0.6s ease forwards,
      pulseGlow 3s ease-in-out infinite 0.8s;
  }
  
  /* Glow pulsé */
  @keyframes pulseGlow {
    0% {
      text-shadow: 0 0 0px #29D554;
    }
    50% {
      text-shadow: 0 0 10px #29D554;
    }
    100% {
      text-shadow: 0 0 0px #29D554;
    }
  }
  .green {
    color: #29D554;
    transition: text-shadow 0.4s ease-in-out;
  }
  .white {
    color: #EBEBEB;
  }

  /*hero*/
  .hero-intro {
    margin: 60px auto 0;
    padding: 0 20px;
    font-size: 18px;
    line-height: 1.8;
    color: #EBEBEB;
  }
  
  .hero-intro p {
    margin-bottom: 1.8em;
  }
  
  /*titre luminescent*/
  .section-title, .section-title-projets, .section-title-temoignage {
    position: relative;
    text-align: center;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0 ; /*augmente la zone de détection */
  }
  
  .svg-background, .svg-background-projets {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -85%);
    width: 300%;
    max-width: 800px;
    height: auto;
    z-index: 0;
    pointer-events: none;
  }
  .svg-background-temoignage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    width: 300%;
    max-width: 800px;
    height: auto;
    z-index: 0;
    pointer-events: none;
  }
  .svg-base, .svg-base_projets, .svg-base-temoignage {
    opacity: 0.08; /* Toujours visible */
    filter: brightness(1) saturate(1); /* pas trop flashy */
  }
  
  .svg-glow, .svg-glow-projets, .svg-glow-temoignage {
    opacity: 0; /* Masqué par défaut */
    filter: brightness(2) saturate(2);
    mask-image: none;
    -webkit-mask-image: none;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    transition:
      mask-position 0.05s ease,
      -webkit-mask-position 0.05s ease,
      opacity 0.2s ease;
  }
  
  .title-foreground {
    position: relative;
    z-index: 1;
    font-size: 32px;
    font-weight: 700;
    color: #EBEBEB; /* Force la couleur blanche */
    margin: 0;
  }
  
  /*animation des boutons*/
  .btn_animation {
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #29D554;
    border-radius: 40px;
    color: #EBEBEB;
    font-weight: bold;
    font-size: 1.2rem;
    background: transparent;
    overflow: hidden;
    transition: background 0.3s ease;
    cursor: pointer;
    z-index: 0;
  }
  .btn-glow {
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #111;
    background-color: #29D554;
    overflow: hidden;
    border: none;
    transition: color 0.3s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
  }
  
  btn-glow {
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #111;
    background-color: #29D554;
    overflow: hidden;
    border: none;
    transition: color 0.3s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
  }
  
  .btn-glow span {
    position: absolute;
    width: 100px;
    height: 100px;
    background: #2C2C2C;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(25px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
  }
  
  .btn-glow:hover span {
    opacity: 1;
  }
  
  .btn-glow .btn-text {
    position: relative;
    z-index: 1;
  }


  /*taille carte service*/
  .Carte-service {
  height:900px
  }

  .Icone_service {
    max-width: 60px;       /* Limite la largeur */
    max-height: 60px;      /* Limite la hauteur */
    width: auto;           /* Préserve les proportions */
    height: auto;
    display: block;        /* Supprime les effets inline */
    margin: 0 auto;        /* Centre dans le parent */
  }

  .Services_inclus_center {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement le contenu */
  }
  .titre_pourquoi{
    display: flex;
    align-items: center;
  }
  .boucle-tous {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  /* Cartes uniformes */
  .carte-boucle {
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    color: white;
    height: 100%; /* important si la grille est imbriquée */
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
  }
  .carte-boucle h2{
    color: #29d554;
    font-size: 24px;
  }
  .carte-boucle:hover {
    transform: scale(1.01);
  }
  
  /* Image en haut de la carte */
  .carte-boucle .carte-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 1rem;
  }
  
  .carte-boucle .carte-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Contenu texte (titre + extrait) */
  .carte-boucle .carte-contenu {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .carte-boucle h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
  }
  
  .carte-boucle p {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
  }

  .toggles-projets {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
  }
  
  .toggle-projet {
    padding: 0.5rem 1.2rem;
    border: 2px solid #29d554;
    background-color: transparent;
    color: #29d554;
    font-weight: bold;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .toggle-projet:hover {
    background-color: #29d554;
    color: black;
  }
  
  .toggle-projet.is-active {
    background-color: #29d554;
    color: black;
  }

/* Boucles invisibles par défaut */
.boucle-tous,
.boucle-web,
.boucle-video,
.boucle-photo,
.boucle-visuel {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: relative;
}

/* Boucles visibles quand active */
.boucle-tous.is-visible,
.boucle-web.is-visible,
.boucle-video.is-visible,
.boucle-photo.is-visible,
.boucle-visuel.is-visible {
  display: block; /* ou grid si tu utilises une grille */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Optionnel : évite les effets invisibles sur les enfants */
.boucle-tous > *,
.boucle-web > *,
.boucle-video > *,
.boucle-photo > *,
.boucle-visuel > * {
  transition: opacity 0.3s ease;
}

.title-projet {
  font-size: 128px !important;
}