@import url("https://fonts.googleapis.com/css?family=Poppins|Lato|Roboto+Mono&display=swap");
@import "compass/css3";


body {
  background-image: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
  margin: 0;
  /* Supprime les marges par défaut */
  padding: 0;
  /* Supprime les marges internes par défaut*/

}

p {

  color: #fff;
}


.intro {
  margin-top: 30vh;
  margin-left: 5vw;
  margin-right: 5vw;
}

.intro_text {
  font-size: 5vw;
  color: #fffefe;
  margin-right: 10px;
}

.intro_text2 {
  font-size: 10vh;
  margin-left: 10vh;
}


/*L'animation de glitch n'accepte pas de retour à la ligne, donc media query pour la garder droite*/
@media screen and (max-width: 800px) {
  .intro_text2 {
    font-size: 5vw;
  }
}

/* Media query pour les petits écrans */
@media screen and (max-width: 600px) {
  .intro {
    margin-top: 30vh;
    margin-left: 10vw;
    margin-right: 2vw;
  }

  .intro_text {
    font-size: 5vw;
  }

  .intro_text2 {
    font-size: 5vw;
  }

}



header {
  background-image: url(images/headerimg2.jpg);
  overflow: hidden;
  height: 100vh;
  position: relative;

}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Flèche de défilement */
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-link::before {
  content: "";
  border: solid white;
  border-width: 0 4px 4px 0;
  display: inline-block;
  padding: 8px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}



/* Section avec les images d'explication*/

h2 {
  display: flex;
  align-items: center;
}

.box {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-around;
  gap: 5px;
  margin-top: 50px;
}

.box img {
  -webkit-transition: .3s ease-in-out;
  transition: .3s ease-in-out;
  margin: auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  filter: brightness(50%);
  display: block;

}

.container1 {
  overflow: hidden;
  scale: 75%;
}

.container2 {
  overflow: hidden;
  scale: 75%;
}

.container3 {
  overflow: hidden;
  scale: 75%;
}


.img1:hover {
  /*  -webkit-transform: scale(1.5); */
  transform: scale(1.5);
  filter: brightness(100%);
}

.img2:hover {
  transform: scale(1.5);
  filter: brightness(100%);
}

.img3:hover {
  transform: scale(1.5);
  filter: brightness(100%);
}


.box p {
  width: 50%;
  height: 50%;
  margin: auto;
}

.box h3 {
  color: white;
  display: flex;
  width: 50%;
  height: 50%;
  margin: auto;
  position: relative;
  bottom: 70px;
}


/* Media queries pour les petits écrans */
@media screen and (max-width: 600px) {
  .box {
    display: block;
  }

  .box p,
  .box h3 {
    text-align: center;
  }

  .container1,
  .container2,
  .container3 {
    max-width: none;
  }
}

/*Animation avec css/JS */

.js-scroll {
  opacity: 0;
  transition: opacity 500ms;
}

.js-scroll.scrolled {
  /*opacity: 1; */
  animation: fade-in-bottom 1s ease-in-out both;
}

@keyframes fade-in-bottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }

}

/*Slider*/

* {
  box-sizing: border-box;
  outline: none;
  user-select: none;
}

#carousel-wrapper {
  width: auto;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 150px;
}


#carousel-wrapper #menu {
  height: 380px;
  width: 720px;
  overflow: hidden;
  font-weight: 700;
  line-height: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transition: all 0.6s ease-in-out;
}

#carousel-wrapper #menu #current-option {
  position: relative;
  width: 100%;
  height: 100%;
  transform: translate(-25%, 0%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#carousel-wrapper #menu #current-option #current-option-text1 {
  font-size: 1.6rem;
  line-height: 3rem;
  width: 220px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#carousel-wrapper #menu #current-option #current-option-text1::before {
  content: attr(data-next-text);
  position: absolute;
  transform: translate(0%, 380px);
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#carousel-wrapper #menu #current-option #current-option-text1::after {
  content: attr(data-previous-text);
  position: absolute;
  transform: translate(0%, -380px);
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#carousel-wrapper #menu #current-option #current-option-text2 {
  font-size: 0.8rem;
  width: 220px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

#carousel-wrapper #menu #current-option #current-option-text2::before {
  content: attr(data-next-text);
  position: absolute;
  transform: translate(0%, 380px);
  width: 100%;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

#carousel-wrapper #menu #current-option #current-option-text2::after {
  content: attr(data-previous-text);
  position: absolute;
  transform: translate(0%, -380px);
  width: 100%;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

#carousel-wrapper #menu #previous-option {
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  display: block;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 256 256'%3E%3Cpolygon points='225.813,48.907 128,146.72 30.187,48.907 0,79.093 128,207.093 256,79.093' fill='%23333'%3E%3C/polygon%3E%3C/svg%3E");
  background-size: cover;
  position: absolute;
  transform: translate(310px, 50px);
}

#carousel-wrapper #menu #next-option {
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  display: block;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 256 256'%3E%3Cpolygon points='225.813,48.907 128,146.72 30.187,48.907 0,79.093 128,207.093 256,79.093' fill='%23333'%3E%3C/polygon%3E%3C/svg%3E");
  background-size: cover;
  position: absolute;
  transform: translate(310px, -50px) rotate(180deg);
}

#carousel-wrapper #image {
  height: 240px;
  width: 240px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 101;
  position: absolute;
  transform: translate(140px, 0);
}

@media screen and (max-width: 600px) {
  #carousel-wrapper #image {
    height: 240px;
    width: 240px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 101;
    position: absolute;
    transform: translate(140px, 0);
    margin-right: 10vw;
  }
}

#carousel-wrapper.anim-next {
  pointer-events: none;
}

#carousel-wrapper.anim-next #current-option-text1 {
  animation: next-text 0.65s 0.085s;
}

#carousel-wrapper.anim-next #current-option-text2 {
  animation: next-text 0.65s 0.085s;
}

#carousel-wrapper.anim-next #previous-option {
  animation: next-top-arrow 0.65s 0.085s;
}

#carousel-wrapper.anim-next #next-option {
  animation: next-bottom-arrow 0.65s 0.085s;
}

#carousel-wrapper.anim-next #image {
  animation: next-image 0.65s 0.085s;
}

#carousel-wrapper.anim-previous {
  pointer-events: none;
}

#carousel-wrapper.anim-previous #current-option-text1 {
  animation: previous-text 0.65s 0.085s;
}

#carousel-wrapper.anim-previous #current-option-text2 {
  animation: previous-text 0.65s 0.085s;
}

#carousel-wrapper.anim-previous #previous-option {
  animation: previous-top-arrow 0.65s 0.085s;
}

#carousel-wrapper.anim-previous #next-option {
  animation: previous-bottom-arrow 0.65s 0.085s;
}

#carousel-wrapper.anim-previous #image {
  animation: previous-image 0.65s 0.085s;
}

@keyframes previous-text {

  50%,
  55% {
    transform: translate(0%, 390px);
  }

  to {
    transform: translate(0%, 380px);
  }
}

@keyframes previous-top-arrow {
  50% {
    transform: translate(310px, 53px);
  }
}

@keyframes previous-bottom-arrow {
  50% {
    transform: translate(310px, -47px) rotate(180deg);
  }
}

@keyframes previous-image {
  0% {
    transform: translate(140px, 0) scale(1);
    opacity: 1;
  }

  70% {
    transform: translate(140px, 0) scale(1.1);
    opacity: 0;
  }

  100% {
    transform: translate(140px, 0) scale(1);
    opacity: 1;
  }
}

@keyframes next-text {

  50%,
  55% {
    transform: translate(0%, -390px);
  }

  to {
    transform: translate(0%, -380px);
  }
}

@keyframes next-top-arrow {
  50% {
    transform: translate(310px, 47px);
  }
}

@keyframes next-bottom-arrow {
  50% {
    transform: translate(310px, -53px) rotate(180deg);
  }
}

@keyframes next-image {
  0% {
    transform: translate(140px, 0) scale(1);
    opacity: 1;
  }

  70% {
    transform: translate(140px, 0) scale(1.1);
    opacity: 0;
  }

  100% {
    transform: translate(140px, 0) scale(1);
    opacity: 1;
  }
}

/* Styles pour la section FAQ */
.faq-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

details {
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px; 
}

details > summary {
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  margin-bottom: 10px;
}

details[open] div {
  display: flex;
  align-items: flex-start;
  align-items: center; 
}

details img {
  flex: 0 0 auto;
  width: 150px;
  height: auto;
  margin-right: 20px; 
  border-radius: 5px; 
}

details p {
  margin: 0;
  padding: 0;
  font-size: 18px;
  flex: 1; 
}

summary:hover {
  color: #e41414;
}

:focus {
  outline: 2px solid #007bff;
}

.faq-section h2 {
  color: #fff;
}

