.brands-section {
  background: rgb(232, 241, 253);
  padding: 0;
  overflow: hidden;
  margin: 30px 0;
}
.container {
  max-width: 1200px;
  margin: 0px auto;
  padding: 0;
}
.title {
  text-align: center;
  margin: 20px 10px;
  line-height: 1.5;
  font-weight: 700;
}
/* Container principal */
.slider-container {
  width: 100%;
  position: relative;
  padding: 20px 56px;
  overflow: hidden;
}
/* Conteneur des marques */
.brand-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
/* Track qui contient tous les logos */
.brand-track {
  display: flex;
  gap: 15px;
  transition: transform 0.5s ease;
  width: max-content;
}
/* Style pour chaque item */
.brand-item {
  flex: 0 0 120px;
  height: 60px;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Style pour les liens et images */
.brand-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.brand-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/* Boutons de navigation */
.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  margin: 0;
  color: #000;
}
.slider-button:hover {
  background-color: #f5f5f5;
}
.slider-button.prev {
  left: 5px;
}
.slider-button.next {
  right: 5px;
}
/* Icônes des flèches */
.slider-button::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  display: block;
}
.slider-button.prev::before {
  transform: rotate(-135deg);
  margin-left: 5px;
}
.slider-button.next::before {
  transform: rotate(45deg);
  margin-right: 5px;
}
#index {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin: 20px 0 40px 0;
}
#redac_index {
  flex: 6;
  padding: 15px 60px 15px 15px;
}
#redac_index h2, #redac_index h3, #redac_index p {
  color: #fff;
  margin: 0 0 2rem 0;
}
#redac_index h2 {
  margin: 0 0 2rem 0;
}
#index_img {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 100%;
  flex-wrap: wrap;
}
#index_img img {
  width: 100%;
  object-fit: cover;
  display: block;
}
#redac_index ul, #redac_index ol {
  color: #fff;
  margin: 0 0 20px 30px;
}
#index_h1 {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.6)), url(/images/products/index_2.webp);
  background-position: top right;
  background-repeat: no-repeat;
  padding: 0 40% 20px 0;
  color: #000;
  margin: 0 0 20px 0;
}
.selec_pieces {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  gap: 15px;
  background-color: #ffffff6b;
  padding: 20px 20px 20px 0;
}
.selec_pieces .detail_piece {
  border: 1px solid #333;
  padding: 0 10px 10px 10px;
  background-color: #fff;
  width: calc(25% - 15px);
}
.selec_pieces .detail_piece p {
  font-size: 1.2rem;
  line-height: 1.2;
  text-align: center;
  font-weight: 400;
}
.selec_pieces .detail_piece a:hover {
  text-decoration: none !important;
}
@media (max-width: 768px) {
  .slider-container {
    padding: 20px 32px;
  }
  .brand-item {
    flex: 0 0 90px;
    height: 35px;
    padding: 8px;
  }
  .slider-button {
    width: 25px;
    height: 25px;
  }
  .slider-button.prev {
    left: 2px;
  }
  .slider-button.next {
    right: 2px;
  }
  .brand-track {
    gap: 10px;
  }
  #index_h1 {
    padding: 0 0 10px 0;
    background: unset;
  }
  .selec_pieces {
    padding: 0;
  }
  #index_img {
    display: none;
    order: 1;
  }
  #redac_index {
    flex: 10;
    padding: 10px;
    order: 2;
    background: unset;
  }
  #index {
    flex-direction: column;
  }
  #redac_index h2, #redac_index h3, #redac_index p, #redac_index ul, #redac_index ol {
    color: #000;
    margin: 0 0 1rem 0;
  }
  .title {
    text-align: center;
    margin: 15px 10px 0 10px;
    line-height: 1.2;
  }
  .slider-button.next {
    right: 2px;
  }
  .slider-button {
    width: 50px;
    height: 50px;
    background-color: unset;
  }
  .slider-button:hover {
    background-color: unset;
  }
  .selec_pieces .detail_piece {
    border: 1px solid #ccc;
    padding: 0 5px 5px 5px;
    width: calc(25% - 10px);
  }
  .selec_pieces .detail_piece p {
    padding: 0 2px 0 2px;
    font-weight: 400;
  }
  .selec_pieces {
    gap: 10px;
  }
}#img_h1{
	display:none;
}
#index_img {
    flex: 3;
}
#redac_index{
    background-color: #372c28;
}
#index_h1 {
    background-size: 80%;
}
@media (max-width: 768px) {
  #redac_index {
    background-color: #e4dfdc;
  }
	#img_h1{
		display:block;
		width:100%;
		height:auto;
	}
}