:root {
  --background-color: #FEFBFB;
  --color-text: #000000;
  --color-woco: #006658;
  --color-effbe: #D1091F;
  --color-gamma: #006EA3;
  --radius: 5px;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
  font-size: 3.125rem;
  padding-left: 1rem;
  padding-right: 1rem;
  font-size: clamp(
    3.125rem,
    calc(2.9375rem + 1vw),
    4.5rem
  ) !important;
  color: var(--color-woco);
  margin-bottom: 1rem;
}

h1 span {
  font-size: clamp(1.875rem, calc(1.7813rem + 0.5vw), 2.5625rem);
  display: block;
}

.category-label {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-woco);
}

.intro {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 16px;
}

main.mainsite {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  article {
    flex-basis: calc(50% - 2rem) !important;
  }
}

@media screen and (min-width: 1100px) {
  article {
    flex-basis: calc(33% - 2rem) !important;
  }
}

article {
  flex-basis: calc(100% - 2rem);
  width: calc(33% - 2rem);
  display: flex;
  flex-direction: column;
  background: #fff;
}

.mainsite {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 1920px) {
  .mainsite {
    width: 85% !important;
  }
}

.cards footer {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);

}

.cards {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  margin: 1rem;
}

.cards main {
  padding: 1rem 1rem 0;
  width: calc(100% - 2rem);
}

.cards footer {
  padding: 1rem 0 2rem;
  width: 100%;
  margin-top: auto;
}

.cards main,
.cards footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.cards header {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  height: 80px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cards header img {
  text-align: center;
  max-width: 50%;
}

.bouton {
  font-size: 18px;
  font-weight: bold;
  padding: 10px;
}

.arrow-next {
  display: flex;
  position: relative;
  width: 15px;
  height: 15px;
  margin-left: 0.5rem;
  background: url(inc/img/ico-next-btn.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.bouton:hover {
  opacity: 0.5;
}

.bouton a:visited,
.bouton a:link {
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.category-controls {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .category-controls {
    width: 80%;
  }
}

.category-controls .arrow-prev {
  margin-right: auto;
  cursor: pointer;
  min-height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  background: url(inc/img/ico-slide-l.png);
  background-size: contain;
  font-size: 0;
}

.category-controls .arrow-next {
  margin-left: auto;
  cursor: pointer;
  min-height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  background: url(inc/img/ico-slide.png);
  background-size: contain;
  font-size: 0;
}

@media screen and (min-width: 1300px) and (max-width: 1900px) {
  .carousel-container {
    width: 100% !important;
  }
}

.item-group {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
  flex-direction: row;
}

@media screen and (min-width: 1200px) and (max-width: 1300px) {
  .item-group {
    justify-content: center;
  }
  .item {
    width: calc(44% - 1rem)!important;
  }
}

@media screen and (min-width: 768px) and (max-width: 1100px) {
  .item-group {
    justify-content: center;
  }
  .item {
    width: calc(45% - 1rem)!important;
  }
}

@media screen and (min-width: 1300px) {
  .item {
    width: calc(50% - 2rem) !important;
  }
}

.item {
  width: calc(100% - 1rem);
  aspect-ratio: 1 / 1;
  margin: 0.5rem;
  background: var(--background-color);
  display: flex;
  flex-direction: column;
}

.item img {
  width: 100% !important;
  max-width: 150px;
  height: auto;
  margin: auto;
}



.carousel-container .owl-carousel {
  width: 100% !important;
}

.cards main .owl-carousel {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.carousel-container {
  margin-top: 2rem;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.owl-nav.disabled {
  display: none;
}

.owl-dots {
  display: flex;
  justify-content: center;
}

.owl-dot {
  width: 34px;
  height: 34px;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.owl-dot span {
  width: 1rem;
  height: 1rem;
  background: #C4C1C1;
  border-radius: 100rem;
}

.effbe-card .etiquette,
.effbe-card header,
.effbe-card .bouton,
.effbe-card .owl-dot.active span {
  background-color: var(--color-effbe);
}

.gamma-card .etiquette,
.gamma-card header,
.gamma-card .bouton,
.gamma-card .owl-dot.active span {
  background-color: var(--color-gamma);
}

.woco-card .etiquette,
.woco-card header,
.woco-card .bouton,
.woco-card .owl-dot.active span {
  background-color: var(--color-woco);
}

/* ————————————————————————————— */
/*  Ajustements pour aligner tous les sliders  */
/* ————————————————————————————— */

/* 1) Chaque .item en flex-colonne, image en haut, label en bas */
.owl-carousel .item {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0.5rem !important;
  background: var(--background-color) !important;
}

/* 2) Images : même hauteur max, proportions conservées */
.owl-carousel .item img {
  max-height: 120px !important;
  width: auto !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

/* 3) Labels toujours collés en bas */
.owl-carousel .item .etiquette {
  margin-top: 0.5rem;
  text-align: center ;
  text-transform: uppercase ;
  font-weight: bold ;
  font-size: 0.75rem ;
  padding: 0.5rem;
  width: 100% ;
  box-sizing: border-box ;
  color:white;
}

/* 4) Même hauteur pour bandeau intro (Effbe/Gamma) et contrôles Woco */
.cards main > .intro,
.cards main > .category-controls {
  min-height: 3rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
