/*-----------------------------------*\
  #DISPOSITION EN 3 COLONNES
\*-----------------------------------*/

.conteneur-3-colonnes {
    display: grid;
    grid-template-columns: 1.5fr 4fr 1.5fr; /* Ratio ajusté */
    gap: 25px;
    max-width: 1350px;
    height: auto;
    margin: 0 auto;
    padding: 30px 15px;
    align-items: stretch;
  }
  
  /*-----------------------------------*\
    #COLONNE TEMOIGNAGES (1/6)
  \*-----------------------------------*/
  
  .colonne-temoignages {
    grid-column: 1;
    background: white;
    padding: 1px;
    width: 105%;
    margin-right: -2.5%;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carte-temoignage {
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
  }

  .carte-temoignage blockquote {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 10px 0;
    height: 100%;
  }

  .texte-temoignage {
    flex-grow: 1;
    margin-bottom: 8px;
  }
  
  .texte-temoignage p {
    flex-grow: 1;
    margin: 5px 0;
    min-height: 3em;
  }
  
  .avatar-temoignage {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .nom-temoignage {
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
  }
  
  .title-temoignage {
    color: #333;
    font-size: 20px;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 10px 0;
    position: relative;
    transition: all 0.3s ease;
  }
  
  .title-temoignage::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: #007bff;
    margin: 5px auto 0;
    transition: all 0.3s ease;
  }
  
  .title-temoignage:hover {
    color: #007bff;
  }
  
  .title-temoignage:hover::after {
    width: 80px;
    background: #333;
  }
  
  .titre-temoignage {
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .bienvenue-temoignage {
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .icone-citation {
    width: 30px;
    margin: 0 auto 8px;
  }
  
  .texte-temoignage {
    max-width: 90%;
    margin: 0 auto;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
  }
  
  /*-----------------------------------*\
    #COLONNE CTA (CENTRE - 2/3)
  \*-----------------------------------*/
  
  .colonne-cta {
    grid-column: 2;
    position: relative;
    height: 100%; /* Ajout d'une hauteur fixe */
    border-radius: 10px;
    overflow: hidden;
    width: 100%; /* Occupe maintenant 2/3 */
  }
  
  .banniere-cta {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
  }
  
  .contenu-cta {
    background: linear-gradient(to bottom right, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    max-width: 600px; /* Limite la largeur maximale */
  }
  
  .contenu-cta:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    background: linear-gradient(to bottom right, rgba(255,255,255,0.4), rgba(255,255,255,0.2));
  }
  
  .reduction-cta {
    background: #222;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: inline-block;
  }
  
  .titre-cta {
    color: #333;
    font-size: 20px;
    text-transform: capitalize;
    margin-bottom: 5px;
  }
  
  .texte-cta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .bouton-cta {
    background: #007bff;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 0 auto 10px;
    display: block;
    width: max-content;
    position: relative;
    transition: all 0.3s ease;
  }
  
  .bouton-cta:hover {
    background: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
    transform-origin: center;
  }
  
  /* Support tactile pour les effets de survol */
  @media (hover: none) {
    .contenu-cta:active {
      transform: translate(-50%, -50%) scale(1.05);
      box-shadow: 0 12px 30px rgba(0,0,0,0.3);
      background: linear-gradient(to bottom right, rgba(255,255,255,0.4), rgba(255,255,255,0.2));
      will-change: transform, box-shadow; /* Optimisation des performances */
      transition: all 0.2s ease; /* Transition plus rapide sur mobile */
    }
    
    .bouton-cta:active {
      background: #0056b3;
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(0,123,255,0.4);
      will-change: transform, background; /* Optimisation des performances */
      transition: all 0.2s ease; /* Transition plus rapide sur mobile */
    }
  }
  
  /* Optimisation des performances pour mobile */
  @media (max-width: 768px) {
    .contenu-cta,
    .bouton-cta {
      -webkit-tap-highlight-color: transparent; /* Supprime le highlight au tap */
      backface-visibility: hidden; /* Améliore les performances des animations */
    }
    
    .contenu-cta {
      /* Utilisation de transform standard pour éviter les problèmes de positionnement */
      transform: translate(-50%, -50%);
      will-change: transform, opacity;
    }
    
    .bouton-cta {
      will-change: transform, background-color;
    }
  }

.icone-service img:hover {
    transform: scale(1.1) rotate(-5deg);
  }
  
  /*-----------------------------------*\
    #COLONNE SERVICES (1/6)
  \*-----------------------------------*/
  
  .colonne-services {
    grid-column: 3;
    background: white;
    padding: 15px;
    width: 105%;
    margin-left: -2.5%;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .conteneur-services {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
    height: 100%;
  }
  
  .item-service {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px; /* Augmenté */
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    flex-grow: 1; /* Nouveau - chaque item s'étire */
    min-height: 80px; /* Hauteur minimale */
  }
  
  .item-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  }
  
  .icone-service {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; /* Garantit une largeur fixe */
  }
  
  .icone-service img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .contenu-service {
    flex-grow: 1; /* Le contenu prend l'espace disponible */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
  }
  
  .titre-service {
    color: #666;
    font-size: 14px; /* Légèrement augmenté */
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 5px; /* Espacement augmenté */
  }
  
  .description-service {
    color: #666;
    font-size: 13px; /* Légèrement augmenté */
    line-height: 1.4; /* Améliore la lisibilité */
  }
  
  /*-----------------------------------*\
    #RESPONSIVE - TABLETTE (1024px)
  \*-----------------------------------*/
  
  @media (max-width: 992px) {
    .conteneur-3-colonnes {
      grid-template-columns: 1fr;
      grid-template-areas:
        "cta"
        "temoignages"
        "services";
      gap: 20px;
      padding: 20px;
    }
  
    .colonne-temoignages {
      grid-area: temoignages;
      padding: 15px;
      width: 100%;
      max-width: none;
    }
  
    .colonne-cta {
      grid-area: cta;
      height: 60vh;
      min-height: 400px;
      max-height: 600px;
    }

    .banniere-cta {
      height: 100%;
      width: 100%;
      object-fit: cover;
      object-position: center;
    }
  
    .colonne-services {
      grid-area: services;
      margin-top: 10px;
      width: 100%;
    }
  
    .carte-temoignage {
      max-height: none;
      overflow-y: visible;
    }
  
    .contenu-cta {
      width: 85%;
      padding: 18px;
      max-width: 500px;
      background: linear-gradient(to bottom right, rgba(255,255,255,0.9), rgba(255,255,255,0.8));
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
    }
    
    .titre-cta {
      font-size: 18px; /* Taille réduite pour tablette */
    }
    
    .texte-cta {
      font-size: 13px; /* Taille réduite pour tablette */
    }
    
    .bouton-cta {
      padding: 8px 15px; /* Bouton plus grand pour faciliter le toucher */
      font-size: 13px;
    }
  
    .item-service {
      flex-direction: row;
      gap: 12px;
      padding: 12px;
    }
  }
  
  /*-----------------------------------*\
    #RESPONSIVE - MOBILE (768px)
  \*-----------------------------------*/
  
  @media (max-width: 768px) {
    .conteneur-3-colonnes {
      gap: 15px;
      padding: 15px 10px;
    }
    
    .colonne-services {
      padding: 15px !important;
    }
    
    .colonne-cta {
      height: 50vh;
      min-height: 350px;
      max-height: 500px;
    }

    .banniere-cta {
      height: 100%;
      width: 100%;
      object-fit: cover;
      object-position: center;
    }
    
    .contenu-cta {
      width: 90%;
      padding: 15px;
      max-width: 450px;
      background: linear-gradient(to bottom right, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    
    .titre-cta {
      font-size: 17px;
    }
    
    .texte-cta {
      font-size: 13px;
      line-height: 1.3;
    }
    
    .bouton-cta {
      padding: 8px 20px;
      margin-top: 5px;
    }
  }
  
  @media (max-width: 480px) {
    .conteneur-3-colonnes {
      gap: 15px;
      padding: 15px 10px;
    }
  
    .colonne-temoignages,
    .colonne-services {
      height: 100%;
      min-height: auto;
    }
    
    .colonne-cta {
      height: 40vh;
      min-height: 300px;
      max-height: 400px;
    }

    .banniere-cta {
      height: 100%;
      width: 100%;
      object-fit: cover;
      object-position: center;
    }
  
    .carousel-prev,
    .carousel-next,
    .carousel-play-pause {
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 1;
    }
  
    .carousel-container:hover .carousel-prev,
    .carousel-container:hover .carousel-next,
    .carousel-container:hover .carousel-play-pause {
      opacity: 1;
      cursor: pointer;
      z-index: 2;
    }
  
    .contenu-cta {
      width: 92%;
      padding: 16px;
      max-width: 350px;
      background: linear-gradient(to bottom right, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
  
    .titre-cta {
      font-size: 17px;
      margin-bottom: 4px;
    }
    
    .reduction-cta {
      font-size: 11px;
      padding: 4px 8px;
      margin-bottom: 8px;
    }
  
    .bouton-cta {
      padding: 9px 25px;
      font-size: 12px;
      margin-top: 5px;
    }
    
    .texte-cta {
      font-size: 12px;
      line-height: 1.3;
      margin-bottom: 8px;
    }
  
    .item-service {
      padding: 12px;
      min-height: 70px;
    }
  
    .titre-service {
      font-size: 13px;
    }
  
    .description-service {
      font-size: 12px;
    }
    
    /* Amélioration du support tactile */
    .contenu-cta:active,
    .bouton-cta:active {
      transition: all 0.2s ease; /* Transition plus rapide sur mobile */
    }
  }
  
  /*-----------------------------------*\
    #RESPONSIVE - PETIT MOBILE (480px)
  \*-----------------------------------*/
  
  @media (max-width: 480px) {
    .conteneur-3-colonnes {
      gap: 12px;
      padding: 12px 10px;
    }
  
    .colonne-temoignages,
    .colonne-services {
      padding: 12px 10px;
    }
  
    .carte-temoignage,
    .item-service {
      padding: 8px 10px;
    }
  
    .titre-cta {
      font-size: 18px;
      margin-bottom: 4px;
    }
  
    .texte-cta {
      font-size: 13px;
      margin-bottom: 8px;
    }
  
    .bouton-cta {
      padding: 8px 20px;
      font-size: 12px;
    }
  
    .item-service {
      flex-direction: column;
      text-align: center;
      padding: 15px 10px;
      min-height: auto;
    }
  
    .icone-service {
      margin-bottom: 8px;
    }
  
    .icone-service img {
      width: 35px;
      height: 35px;
    }
  
    .titre-service {
      font-size: 12px;
    }
  
    .description-service {
      font-size: 11px;
    }
  
  
  
  
  
  
  
  
  
  }
  
  /*-----------------------------------*\
    #RESPONSIVE - TRÈS PETIT MOBILE (360px)
  \*-----------------------------------*/
  
  @media (max-width: 360px) {
    .conteneur-3-colonnes {
      gap: 10px;
      padding: 10px 8px;
    }
  
    .colonne-cta {
      padding-bottom: 70%;
      max-height: 350px; /* Hauteur maximale limitée */
    }
  
    .contenu-cta {
      width: 92%;
      padding: 12px 10px;
      max-width: 300px; /* Largeur maximale pour petit écran */
      box-shadow: 0 3px 15px rgba(0,0,0,0.2); /* Ombre plus légère */
    }
  
    .titre-cta {
      font-size: 16px;
      margin-bottom: 3px;
    }
  
    .texte-cta {
      font-size: 12px;
      margin-bottom: 6px;
      line-height: 1.2;
    }
  
    .texte-temoignage,
    .description-service {
      font-size: 11px;
      line-height: 1.3;
    }
  
    .item-service {
      flex-direction: column;
      text-align: center;
      gap: 5px;
      padding: 8px;
    }
  
    .icone-service img {
      width: 30px;
      height: 30px;
    }
  
    .reduction-cta {
      font-size: 10px;
      padding: 3px 7px;
      margin-bottom: 6px;
    }
    
    .bouton-cta {
      padding: 7px 20px;
      font-size: 11px;
      margin-top: 3px;
    }
    
    /* Désactivation des animations complexes sur très petits écrans */
    .contenu-cta:hover,
    .contenu-cta:active {
      transform: translate(-50%, -50%); /* Pas de scale sur très petit écran */
      box-shadow: 0 3px 15px rgba(0,0,0,0.25);
    }
  }
  
  /*-----------------------------------*\
    #RESPONSIVE - ECRAN TRÈS PETIT (320px)
  \*-----------------------------------*/
  
  @media (max-width: 320px) {
    .conteneur-3-colonnes {
      gap: 8px;
      padding: 8px 6px;
    }
  
    .colonne-temoignages,
    .colonne-services {
      padding: 10px 8px;
    }
    
    .colonne-cta {
      padding-bottom: 65%;
      max-height: 300px;
    }
  
    .contenu-cta {
      padding: 10px 8px;
      width: 95%;
      max-width: 280px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
  
    .titre-cta {
      font-size: 15px;
      margin-bottom: 2px;
    }
    
    .texte-cta {
      font-size: 11px;
      line-height: 1.2;
      margin-bottom: 5px;
    }
  
    .bouton-cta {
      padding: 6px 16px;
      font-size: 10px;
      margin-top: 2px;
      margin-bottom: 5px;
    }
    
    .reduction-cta {
      font-size: 9px;
      padding: 3px 6px;
      margin-bottom: 5px;
    }
  
    .icone-service img {
      width: 28px;
      height: 28px;
    }
    
    /* Simplification maximale pour très petits écrans */
    .contenu-cta:hover,
    .contenu-cta:active,
    .bouton-cta:hover,
    .bouton-cta:active {
      transform: none;
      box-shadow: none;
    }
    
    .bouton-cta:hover,
    .bouton-cta:active {
      background: #007bff;
    }
  }

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.carousel-prev,
.carousel-next,
.carousel-play-pause {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-play-pause {
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.carousel-prev:hover,
.carousel-next:hover,
.carousel-play-pause:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: rgba(255, 255, 255, 1);
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-prev i,
.carousel-next i,
.carousel-play-pause i {
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
}

.carousel-prev:hover i,
.carousel-next:hover i,
.carousel-play-pause:hover i {
    color: #007bff;
    transform: scale(1.2);
}

.carousel-play-pause i.fa-play {
    margin-left: 3px;
}
