/* =========================================================
   CEH Carrousel Confiance — styles (autonomes)
   Hérite de --color-primary du thème s'il existe.
   ========================================================= */
.ceh-confiance {
  --ceh-accent: var(--color-primary, #1665f0);
  --ceh-border: var(--color-border, #e6eaf0);
  padding: 70px 0;
}
.ceh-confiance__container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ceh-confiance__head { text-align: center; margin-bottom: 40px; }
.ceh-confiance__title {
  font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 .4em;
  color: var(--color-heading, #10192b); font-weight: 700;
}
.ceh-confiance__subtitle { color: var(--color-muted, #7a879b); margin: 0; }
.ceh-confiance__notice { text-align: center; color: #888; }

.ceh-carousel { position: relative; padding: 0 44px; }
.ceh-carousel__viewport { overflow: hidden; }
.ceh-carousel__track {
  display: flex; align-items: center;
  will-change: transform;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.ceh-carousel__slide {
  flex: 0 0 25%; max-width: 25%;
  display: flex; align-items: center; justify-content: center;
  height: 150px; padding: 10px 16px; box-sizing: border-box;
}
.ceh-carousel__slide a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ceh-carousel__logo {
  max-width: 100%; max-height: 120px; width: auto; height: auto; object-fit: contain;
  opacity: .92;
  transition: opacity .25s ease, transform .25s ease;
}
.ceh-carousel__slide:hover .ceh-carousel__logo { opacity: 1; transform: scale(1.05); }
/* Logo pas encore chargé : on garde la place sans afficher l'image vide. */
.ceh-carousel__logo.is-deferred { visibility: hidden; }

/* Flèches */
.ceh-carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--ceh-accent); color: #fff; cursor: pointer;
  display: grid; place-items: center; z-index: 2;
  box-shadow: 0 6px 16px rgba(16,25,43,.18); transition: background .2s ease, opacity .2s ease;
}
.ceh-carousel__nav:hover { filter: brightness(.92); }
.ceh-carousel__prev { left: 0; }
.ceh-carousel__next { right: 0; }

/* Points */
.ceh-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.ceh-carousel__dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--ceh-border); cursor: pointer; transition: all .2s ease;
}
.ceh-carousel__dots button.is-active { background: var(--ceh-accent); width: 24px; border-radius: 6px; }

/* Responsive : la largeur des slides est pilotée en JS via --ceh-per,
   ces valeurs servent de repli avant l'initialisation. */
@media (max-width: 992px) { .ceh-carousel__slide { flex-basis: 33.333%; max-width: 33.333%; } }
@media (max-width: 768px) { .ceh-carousel__slide { flex-basis: 50%; max-width: 50%; } .ceh-carousel { padding: 0 38px; } }
@media (max-width: 500px) { .ceh-carousel__slide { flex-basis: 100%; max-width: 100%; height: 130px; } .ceh-carousel__logo { max-height: 100px; } }

@media (prefers-reduced-motion: reduce) {
  .ceh-carousel__track { transition: none; }
}
