.slider-container {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}

.slider-wrapper {
  display: flex;
  width: max-content;
  align-items: center;
  animation: scroll 50s linear infinite;
}

.slider-slide {
  margin-right: 150px;
}

.slider-slide a img {
  height: auto;
  min-width: 200px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% - 150px));
  }
}

main {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

.agendaDate {
  color: var(--couleur-accent-un);
}

/* commencement des alertes */
main .alerte-main:first-child {
  position: relative;
  width: 100%;
  height: 70px;
  overflow: hidden;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  border-top: red dotted 5px;
  border-bottom: red dotted 5px;
  margin-bottom: 80px;
  will-change: transform;
}

main .alerte-main:first-child div {
  display: flex;
  width: max-content;
}

main .alerte-main:first-child .alerte-article {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 90px;
  white-space: nowrap;
}

main .alerte-main:first-child .alerte-article p {
  color: red;
  font-weight: 700;
  padding-left: 20px;
}

@keyframes defilement {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* fin des alertes */

/* début du carousel accueil */
main>section:nth-child(2) {
  margin-bottom: 50px;
}

.owl-carousel .owl-stage-outer{
  overflow: visible;
}

.owl-nav button {
  position: absolute;
  top: 50%;
  background-color: #000;
  color: #fff;
  margin: 0;
  transition: all 0.3s ease-in-out;
}

.owl-nav button.owl-prev {
  left: 0;
}

.owl-nav button.owl-next {
  right: 0;
}

.owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.38) !important;
}

.owl-nav button:focus {
  outline: none;
}

.titre-actu {
  padding: 2%;
  border-top: red dotted 5px;
  border-bottom: red dotted 5px;
  border-left: red dotted 5px;
}

.carrouselTitle {
  font-size: calc(1rem + 0.4vw);
  color: #0a3cdd;
  height: 50px;
  padding-top: 4%;
  font-family: Poppins-bold;
}

.agendaDate {
  font-size: clamp(1rem, 1.6vw, 1.5rem);
}

/* Hand picture */

.handpicture {
  background-image: url("../images/imgAccueil/accueil_1_11-80131abfbb9f39a368d4048c90a10a1e.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 1194 / 654;
  min-height: 200px;
  width: 100%;
  max-width: 1194px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Centre Socio-culturel */
h1 {
  font-size: calc(1.5rem + 3vw);
}

.defSection {
  width: 85%;
  margin: 7% auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6em;
}

.socioPhoto {
  margin: 20px 0;
  width: auto;
  display: flex;
  justify-content: center;
}

.socio {
  width: 73%;
}

/* Les Activités */

.activite {
  width: 85%;
  margin: 10vh auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  text-align: center;
  row-gap: 8em;
}

h2 {
  width: 100%;
}

.activite article {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 33%;
  min-width: 320px;
}

.activite article img {
  width: 100%;
  height: auto;
  transition: all 0.3s ease-in-out;

  &:hover {
    transform: scale(1.1);
  }
}

.activite article .activites-enfances {
  color: var(--couleur-accent-un);
}

.activite article .activites-jeunes {
  color: var(--couleur-accent-deux);
}

.activite article .activites-famille {
  color: var(--couleur-accent-trois);
}

.activite article .activites-sociocult {
  color: var(--couleur-primary);
  white-space: nowrap;
}

.activite article .activites-adultes {
  color: rgba(204, 102, 204, 1);
}

.letter {
  font-family: "Poppins", sans-serif;
  font-size: calc(1rem + 1.6vw);
  line-height: 80px;
}

.font-semibold {
  font-weight: 600;
}

.font-light {
  font-weight: 300;
}

.font-regular {
  font-weight: 400;
}

.font-extrabold {
  font-weight: 900;
}

.activiteAge {
  width: 100%;
  display: block;
  text-align: center;
}

.fleur {
  text-align: center;
}

/************************carrousel partenaires*************************/
.partenaire {
  text-align: center;
  margin: 10vh 0;

}

.partenaire h2 {
  margin-bottom: 50px;
}

/* Préparation du carousel */
:root {
  --carousel-width: 100%;
  --carousel-height: 300px;
  --carousel-elements-displayed: 8;
  --carousel-element-width: calc(var(--carousel-width) / var(--carousel-elements-displayed));
  --carousel-animation-duration: calc(var(--carousel-elements) * 20s);
}

/* Carousel à Proprement parler */
.container {
  position: relative;
  width: var(--carousel-width);
  height: var(--carousel-height);
  overflow: hidden;
}

.container .carousel {
  display: flex;
  height: 100%;
  animation: caroufibre var(--carousel-animation-duration) linear infinite;
  align-items: center;
}

.container .carousel .carousel__face {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--carousel-element-width);
  max-height: 100%;
  white-space: nowrap;
}

.paused {
  animation-play-state: paused;
}

/* je cree un zoom sur les img quand je passe la souris dessus */
.carousel img:hover {
  transform: scale(1.2);
  transition: all 300ms;
}

/* animation pour le carousel */
@keyframes caroufibre {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-1 * var(--carousel-element-width) * var(--carousel-elements)));
  }
}


@media screen and (max-width: 1024px) {
  .handpicture {
    background-image: image-set(url("../images/imgAccueil/accueil_1_11_small-560787b8d969b7f39607ecebd4801dbb.avif") type('image/avif') 1x,
        url("../images/imgAccueil/accueil_1_11_small-9e7c2174e29f281103ec473c3b091fc2.webp") type('image/webp') 1x);
  }

  .activite {
    width: 100%;
  }

  .socio {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {

  .activite article {
    width: 50%;
  }
}

@media screen and (max-width: 480px) {

  .titre-actu {
    padding: 2%;
    border: red dotted 5px;
  }

  .activite article {
    width: 100%;
    min-width: 250px;
  }
}