/* Accueil : carrousel publicitaire et cartes de services. */

.wide-ads-wrap { padding: 30px 0; }

.wide-ads {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: 8px;
    background: #141e2f;
}

.wide-ads-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .7s ease, transform .9s ease;
    pointer-events: none;
}
.wide-ads-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.wide-ads-link, .wide-ads-video { display: block; width: 100%; height: 100%; }

.wide-ads-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Légende */
.wide-ads-caption {
    position: absolute;
    left: 40px;
    bottom: 35px;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.wide-ads-caption h3 { font-size: 26px; font-weight: 700; margin: 8px 0 0; color: #fff; }
.wide-ads-badge {
    display: inline-block;
    background: #ff5a5f;             /* adapte à ta couleur thème */
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 4px;
}

/* Dégradé bas pour lisibilité du texte */
.wide-ads-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%);
    pointer-events: none;
}

/* Bouton play vidéo */
.wide-ads-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 74px; height: 74px;
    border: none;
    border-radius: 50%;
    background: rgba(255,90,95,.95);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, background .25s ease;
    z-index: 3;
}
.wide-ads-play:hover { transform: translate(-50%,-50%) scale(1.1); background: #ff5a5f; }

/* Vidéo en lecture : la légende et le bouton s'effacent devant les commandes du lecteur (D90). */
.wide-ads-slide.is-playing .wide-ads-caption,
.wide-ads-slide.is-playing .wide-ads-play,
.wide-ads-slide.is-playing::after { display: none; }
.wide-ads-video video.wide-ads-media { background: #000; }
.wide-ads-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Flèches */
.wide-ads-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #141e2f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: background .25s ease;
}
.wide-ads-nav:hover { background: #fff; }
.wide-ads-prev { left: 18px; }
.wide-ads-next { right: 18px; }

/* Points */
.wide-ads-dots {
    position: absolute;
    bottom: 16px;
    right: 25px;
    display: flex;
    gap: 8px;
    z-index: 4;
}
.wide-ads-dots button {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .25s ease;
}
.wide-ads-dots button.is-active { background: #fff; }

/* Responsive */
@media (max-width: 767px) {
    .wide-ads { height: 250px; }
    .wide-ads-caption { left: 20px; bottom: 45px; }
    .wide-ads-caption h3 { font-size: 18px; }
    .wide-ads-nav { width: 36px; height: 36px; }
}

.service-card {
  padding: 5px;
  border-radius: 15px; /* coins arrondis */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 2rem rgba(0,0,0,0.15);
  background-color: #141e2f; /* couleur de fond au survol */
  color: #fff;
}
.service-card:hover h4,
.service-card:hover p {
  color: #fff; /* forcer le texte en blanc */
}

.service-btn {
  transition: all 0.3s ease;
}
.service-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.service-icon i {
  transition: transform 0.4s ease;
}
.service-card:hover .service-icon i {
  transform: rotate(10deg) scale(1.1);
}
