.page-index {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 75px;
}
.page-index .container_img {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.cover_bg {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2;
  background-image: url("/images/index-header-r.png");
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: 33%;
  transition: background-position 1s ease-in-out;
}
.cover_bg_white {
  position: absolute;
  width: 66%;
  height: 13%;
  bottom: 0;
  z-index: 3;
  background-color: white;
}
.header_text {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
  top: 50%;
  color: var(--white);
  z-index: 2;
  transform: translateY(-50%);
  text-transform: uppercase;
  font-style: italic;
  padding: 5%;
}
.header_text h2 {
  text-transform: none;
}
h1 span {
  font-size: 3rem;
  display: block;
}
h2 {
  color: var(--gold);
  font-weight: bolder;
  font-style: italic;
}
.header_text .a_button {
  margin-top: 5%;
}
.section-1 {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 45%;
  min-width: 500px;
  margin: 5% 5% 0 5%;
}
.section-1 h2 {
  text-transform: uppercase;
}
.section-2 {
  margin-top: 50px;
}
.section-2 article {
  display: flex;
  padding: 50px 5%;
  transition: padding 1s ease-in-out;
}
.section-2 .container_img img {
  max-width: unset;
}
.section-2 .layout-1 {
  margin-bottom: 80px;
}
.section-2 .layout-1:nth-child(even) {
  flex-direction: row-reverse;
}
.page-index .section-2 article .container_img {
  height: 100%;
}
.wrapper-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
  padding: 3%;
  background-color: var(--gold);
}
.wrapper-text .a_button {
  align-self: flex-end;
  height: unset;
}
article h2 {
  color: black;
}
.btn_left,
.btn_right {
  position: absolute;
  top: 50%;
  background-color: var(--gold);
  width: 50px;
  height: 50px;
  background-image: url(/images/fleche.png);
  background-repeat: no-repeat;
  background-position: center center;
  transform: translate(0, -50%);
  cursor: pointer;
  border-radius: 10%;
}
.btn_left {
  left: 10px;
  transform: rotate(180deg) translate(0, 50%);
}
.btn_right {
  right: 10px;
}
.section-3 {
  display: flex;
  flex-direction: column;
  gap: 50px;
  position: relative;
  /* background-color: red; */
  margin: 50px 0;
}
.section-3 article .container_img {
  display: none;
}
.section-3 .a_button {
  margin: auto;
}
.page-index > .a_button {
  align-self: center;
}
.carousel-article {
  display: flex;
  width: 100%;
  height: 500px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.carousel-article article {
  display: flex;
  flex-direction: column;
  border-left: solid white 10px;
  padding: 2%;
  gap: 25px;
  text-align: center;
  background-color: #edebeb;
  width: 350px;
  min-width: 350px;
  opacity: 0.5;
  transition: transform 0.5s ease, opacity 0.5s ease;
  height: 500px;
  position: absolute;
}
.carousel-article article.selected {
  opacity: 1;
  border: solid grey 2px;
}
.section-4 {
  display: none;
  /* Temporaire ,en attendant qu'il aille des vrais témoignages*/
  margin-top: 50px;
}
.section-4 .container {
  padding: 0 1%;
}
.section-4 h2 {
  color: black;
  text-align: center;
}
.section-4 .grid-container {
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 30px;
  column-gap: 34px;
  row-gap: 20px;
}
.section-4 .grid-container .bloc {
  padding: 60px 42px 42px;
  border: 3px solid #edebeb;
}
.section-4 .grid-container .bloc .row-1 p {
  text-align: center;
}
.section-4 .grid-container .bloc .row-2 {
  margin-top: 40px;
}
@media only screen and (min-width: 2000px) {
  .page-index .container_img img {
    max-width: unset;
    height: 900px;
    object-fit: cover;
  }
  .section-1 {
    margin: 2% 5% 90px 13%;
  }
  .section-1 h2 {
    font-size: 1.7em;
  }
  .section-3 .banner-content {
    top: 42%;
  }
  .carousel-article {
    margin-left: -184px;
  }
  .carousel-article article {
    padding: 38px;
  }
}
@media only screen and (max-width: 1499px) {
  h1 span {
    font-size: 2.5rem;
  }
  .cover_bg.active {
    background-position: right -500%;
  }
  .section-2 article {
    padding: 50px 0%;
  }
  .wrapper-text {
    padding: 1% 5%;
  }
  .section-4 .grid-container {
    grid-template-columns: 1fr 1fr;
  }
}
@media only screen and (max-width: 1250px) {
  .section-2 article {
    padding: 0;
  }
  .wrapper-text {
    padding: 5%;
  }
}
@media only screen and (max-width: 1023px) {
  h1 span {
    font-size: 2rem;
  }
  .page-index .flex_reverse {
    flex-direction: column;
  }
  .section-2 .layout-1 {
    margin-bottom: 0;
  }
  .section-2 .layout-1:nth-child(even) {
    flex-direction: column;
  }
}
@media only screen and (max-width: 767px) {
  h2 {
    font-size: 1.5rem;
  }
  .header_text {
    top: 35%;
  }
  .header_text .a_button {
    margin-top: 0;
    font-size: 0.8rem;
    padding: 5px 30px;
    border-width: 3px;
    border-radius: 13px;
  }
  .page-index .header_text .a_button {
    background-color: red;
    display: none;
  }
  .section-2 {
    margin-bottom: 120px;
  }
  .section-4 {
    margin-top: 80px;
  }
  .section-4 .container {
    padding: 0 2%;
  }
  .section-4 .container h2 {
    font-size: 1.2em;
  }
  .section-4 .grid-container {
    grid-template-columns: 1fr;
  }
}
@media only screen and (max-width: 600px) {
  .section-1 {
    width: 100%;
    margin: 0;
    margin-top: 50px;
    padding: 5%;
    min-width: auto;
  }
  p {
    font-size: 0.9rem;
  }
}
@media only screen and (max-width: 500px) {
  h1 span {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1rem;
  }
}
@media only screen and (max-width: 475px) {
  .carousel-article article {
    width: 250px;
    min-width: 250px;
  }
}
