/* Carrousel maison — shortcode [levet_carrousel] (functions.php)
   Hors de css/ : WP-SCSS y charge tous les fichiers sur toutes les pages */
.levet-carrousel {
  --bleu: #00368c;
  display: flex;
  align-items: center;
  gap: 10px;
}
.levet-carrousel__piste {
  flex: 1;
  min-width: 0; /* sinon la piste prend la largeur de tous les logos et pousse la flèche hors écran */
  overflow: hidden;
}
.levet-carrousel__liste {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.levet-carrousel__item {
  flex: 0 0 calc(100% / var(--visibles, 1));
  box-sizing: border-box;
  padding: 0 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}
.levet-carrousel__item img {
  max-width: 100%;
  height: auto;
  display: block;
}
.levet-carrousel__fleche {
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 0;
  background: var(--bleu);
  cursor: pointer;
  position: relative;
}
.levet-carrousel__fleche::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
}
.levet-carrousel__fleche--prec::before { transform: translate(-30%, -50%) rotate(-45deg); }
.levet-carrousel__fleche--suiv::before { transform: translate(-70%, -50%) rotate(135deg); }
.levet-carrousel__fleche:hover,
.levet-carrousel__fleche:focus-visible { opacity: .85; }
.levet-carrousel__fleche:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }

@media (max-width: 600px) {
  .levet-carrousel { gap: 5px; }
  .levet-carrousel__item { flex-basis: calc(100% / min(var(--visibles, 1), 2)); }
  .levet-carrousel__fleche { width: 34px; height: 34px; }
  .levet-carrousel__fleche::before { width: 9px; height: 9px; }
}
