p {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #f5ecdd;
}

h1 {
  font-size: 2.5rem;
  font-family: "Space-Grotesk", sans-serif;
  font-style: normal;
  color: #ef7214;
}

h2 {
  font-size: 1.5rem;
  color: #f5ecdd;
}

h3 {
  font-size: 1.75rem;
  color: black;
}

ul {
  list-style: none;
}

/* GENERAL GALLERY */

.gallery-container {
  display: flex;
  flex-direction: column;
  align-items: end;
  width: 60%;
  overflow: hidden;
  position: relative;
}

.container {
  display: flex;
  gap: 20px;
  padding-top: 200px;
  padding-bottom: 110px;
}

.gallery {
  display: flex;
  justify-content: space-around;
  transition: transform 0.8s ease;
  width: 80%;
}

.info-container {
  width: 35%;
}

.backgroundUp {
  background-position: center 50%;
  /*Fonctionne sur chrome mais pas sur firefox*/
  transition: background-image 0.5s ease-in-out;
}

/* GALLERY ARROW */

.arrow-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: 100%;
  padding: 10px 0;
  transform: translate(-50px, 30px);
}

.left-arrow,
.right-arrow {
  cursor: pointer;
  font-size: 3em;
  user-select: none;
  padding: 10px;
  border-radius: 50%;
  font-weight: 500;
}

/* GALLERY IMG */

.titleItem {
  position: absolute;
  bottom: 10px;
  left: 15px;
  color: white;
  font-weight: 500;
  text-shadow: 1px 1px 5px #ef7214;
}

.gallery-item img {
  max-width: 190px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 10px;
}

.gallery-item.active {
  z-index: 2;
  transform: scale(1.05) translateY(10px);
}

.gallery-item.active img {
  filter: brightness(1.1);
}

.gallery-item {
  display: flex;
  gap: 20px;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, z-index 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05) translateY(10px);
}

.gallery-item .info-panel {
  background-color: white;
  border: 1px solid #ddd;
  padding: 10px;
  display: none;
}

.gallery-item.active .info-panel {
  display: block;
}

/* GALLERY TEXT & BUTTONS */

.info-panel {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  padding-left: 50px;
}

.Button-panel {
  display: flex;
  margin-top: 50px;
}

.learn-more-button,
.contact-us-button {
  display: inline-block;
  width: 40%;
  padding: 10px 20px;
  margin: 5px;
  font-size: 1rem;
  color: #fff;
  background-color: #ef7214;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.learn-more-button:hover,
.contact-us-button:hover {
  transform: scale(1.05) translateY(5px);
  transition: transform 0.3s ease, z-index 0.3s ease;
  background-color: #f5ecdd;
  color: #ef7214;
}

/* TEXTBOX */

.textBox {
  padding-bottom: 150px;
  background: url(../assets/images/backgroundTextbox.png);
  background-position: bottom;
}

.textBox ul {
  display: flex;
  justify-content: space-around;
  color: #ef7214;
  font-weight: 500;
  font-size: larger;
  gap: 10px;
}

/* EXPRESSION SYSTEMS */

.targetService {
  background-color: #b9d5e8;
}

.targetService h2 {
  text-align: center;
  color: #322c79;
  font-weight: 400;
  padding-bottom: 80px;
  font-size: 3rem;
}

.cardSection {
  display: flex;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}

.card {
  padding: 15px;
  background-color: white;
  border-radius: 50px;
  width: 230px;
  height: 400px;
  min-width: 190px;
  text-align: center;
}

.card ul {
  list-style: inside;
  text-align: start;
  color: black;
}

.card h3 {
  color: #ef7214;
}

.italicStyle {
  font-style: italic;
}

.iconeCard {
  height: 90px;
  transform: translate(0, -60px);
}
/*gestion de la taille d'icone Ecoli*/
.ecoliCard {
  height: 110px;
}
.ecolitext {
  margin-top: -25px;
}

/* FAQ */

.faq {
  padding-top: 200px;
  padding-bottom: 50px;
  background: url(../assets/images/backgroundFaq.png);
  background-repeat: no-repeat;
}

.faq h3 {
  color: #ef7214;
  margin-left: 90px;
  font-weight: normal;
  padding-top: 50px;
}

.faq ul {
  max-width: 70%;
  margin: 0 auto;
}

.faq li {
  color: black;
  margin-top: 15px;
  text-align: left;
}

.question,
.answer {
  font-weight: 500;
}

.question {
  color: #322c79;
  cursor: pointer;
  font-size: 1.2em;
}

.answer {
  color: #ef7214;
  font-size: 1em;
}

/* CTA */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 120px;
  background: url(../assets/images/Vague-bas-de-page2.png);
}

.cta h3 {
  color: #ef83b3;
  padding-bottom: 20px;
}

.cta p {
  color: white;
  font-size: 25px;
}

.cta-button {
  border-radius: 50px;
  border: transparent;
  padding: 20px;
  color: #f5ecdd;
  font-size: 1.5rem;
  background-color: #ef7214;
}

.cta-button:hover {
  transform: scale(1.1);
  transition: all 0.6s ease;
}

/* MEDIA QUERIES */
/* Tablettes et téléphones de grande taille */
@media (max-width: 1024px) {
  .gallery-item {
    width: 30%;
  }
  .container {
    padding-bottom: 30px;
    padding-top: 90px;
  }
  .cta {
    padding-bottom: 70px;
    padding-left: 15px;
    padding-right: 5px;
  }
}
/* Téléphones portables moyens en mode portrait */
@media (max-width: 768px) {
  .backgroundUp {
    background-position: center 60%;
  }
  .container {
    padding-bottom: 30px;
    padding-top: 70px;
  }
  .info-container {
    width: 70%;
  }
  .info-panel {
    padding-left: 15px;
  }
  .Button-panel {
    margin-top: 0;
  }
  .arrow-container {
    transform: translate(0, 0);
  }
  .textBox {
    padding-left: 15px;
  }
  .cta {
    padding-bottom: 70px;
    padding-left: 15px;
  }
}

/*Téléphones petite taille*/
@media (max-width: 650px) {
  .backgroundUp {
    background: url(../assets/images/backgroundUpmobile.png) !important;
    background-size: contain !important;
    background-position: bottom !important;
  }
  .arrow-container {
    /* margin-bottom: 50px; */
    height: 100px;
  }
  h1 {
    font-size: 1.5rem;
    font-style: normal;
    color: #ef7214 !important;
  }

  h2 {
    font-size: 1.5rem;
    color: #322c79 !important;
  }

  #info-description {
    color: #322c79 !important;
    min-height: 220px;
  }

  .container {
    margin-top: 0;
    flex-direction: column;
    padding-bottom: 0;
  }
  .info-container {
    padding-top: 0;
    width: 100%;
    text-align: center;
    font-weight: 300;
  }

  .gallery-container {
    align-items: center;
    width: 100%;
  }
  .gallery {
    width: 15%;
    display: none;
  }
  .gallery-item img {
    width: 6rem;
    border-radius: 5px;
  }
  .Button-panel {
    justify-content: center;
  }
  .learn-more-button,
  .contact-us-button {
    font-size: 0.6rem;
  }
  .textBox {
    padding-bottom: 100px;
  }
  .textBox ul {
    display: block;
    text-align: center;
  }
  .faq {
    padding-bottom: 0;
  }
  .cta p {
    font-size: medium;
  }
  .cta-button {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .cta {
    padding-top: 150px;
    padding-bottom: 65px;
    background: url(../assets/images/Vague-bas-page-tel.png);
    background-repeat: no-repeat;
    background-position: bottom;
  }
}

/*Test*/

.scrolling-list {
  width: 100%; /* S'étend sur toute la largeur de la page */

  box-sizing: border-box;
  padding: 10px 0; /* Espacement autour de la liste */
  padding-bottom: 150px;
  background: url(../assets/images/backgroundTextbox.png);
  background-position: bottom;
}

.scrolling-list-text {
  transform: translate(100%);
}

.scrolling-list ul {
  display: flex; /* Affiche les éléments de la liste sur une ligne */
  transform: translate(100%); /* Commence hors de l’écran à droite */
  list-style: none; /* Supprime les puces de la liste */
  margin: 0;
  padding: 0;
  animation: scroll-list 20s linear infinite; /* Applique l'animation de défilement */
}

.scrolling-list li {
  margin-right: 50px; /* Espacement entre les éléments */
  white-space: nowrap; /* Empêche le texte de se casser sur plusieurs lignes */
  color: #ef7214;
  font-weight: 700;
  font-size: larger;
}

/* Animation */
@keyframes scroll-list {
  from {
    transform: translateX(0); /* Position de départ */
  }
  to {
    transform: translateX(-180%); /* Déplace tout le contenu vers la gauche */
  }
}

/*
h1 {
  font-size: 2.5rem;
  font-family: "Space-Grotesk", sans-serif;
  font-style: normal;
  color: #ef7214;
}

h2 {
  font-size: 1.5rem;
  color: #f5ecdd;
}

h3 {
  font-size: 1.75rem;
  color: black;
}
@media (max-width: 1420px) {
  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 0;
    padding-bottom: 0;
  }
  /*
  .backgroundUp {
    background: none !important;
  }*/
/*
  .gallery-container {
    width: 100%;
    align-items: center;
  }

  #info-description {
    color: #ef7214;
    font-size: 1.5em;
    width: 60%;
  }

  .container .info-panel {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding-bottom: 15px;
    width: 100%;
  }
  .info-panel {
    align-items: center;
    padding-top: 130px;
  }

  .gallery-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
  }

  /*permet de gérer les erreurs duent au background
  .arrow-container {
    position: absolute;
  }
  /*
  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery-item {
    grid-column: span 1;
    grid-row: span 1;
    justify-content: center;
  }
  .titleItem {
    position: relative;
  }

  .gallery img {
    display: flex;
  }

  .info-container {
    width: 100%;
  }

  .Button-panel {
    width: 50%;
    padding-bottom: 30px;
    margin: 0 auto;
  }

  .learn-more-button,
  .contact-us-button {
    width: 100%;
    display: flex;
    justify-content: center;
    transform: none;
    padding-bottom: 20px;
    background-color: #322c79;
  }

  .arrow-container {
    width: 100%;
    transform: none;
  }

  .targetService .cardSection {
    display: flex;
    flex-wrap: wrap;
  }
}*/

/* Téléphones portables moyens en mode portrait 
@media (max-width: 768px) {
  .menu ul {
    padding-left: 30px;
  }

  .info-panel {
    align-items: center;
  }

  .gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .textBox ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    margin-left: 10px;
  }

  .cardSection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: auto;
    gap: 30px;
  }

  .cta p {
    color: #ef7214;
  }
}
*/
