.hero {
  position: relative;
  max-height: 44rem;
  overflow: hidden;


  img {
    filter: brightness(60%);
    width: 100%;
  }

  h1 {
    position: absolute;
    top: 35%;
    margin: 3rem;
  }

  h2 {
    position: absolute;
    font-size: 5.3rem !important;
    top: 55%;
    margin: 3rem;
    color: white !important;
  }

}

.hero h1, .hero h2 {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.container {
  h2 {
    margin: 15px 0;
  }

  .services-section {
    background-color: white;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    
  }

  .services-list {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
  }

  .service-item {
    text-align: center;
    max-width: 305px;
    font-family: 'Red Rose';
  }

  .service-item img {
    width: 305px;
    height: 180px;
    background-color: lightgray;
    margin-bottom: 1rem;
    object-fit: cover;
    transition: 0.8s ease-in-out;
    border: 3px solid #DBB53A;
  }

  .service-item img:hover {
    transition: 0.8s ease-in-out;
    -ms-transform: scale(1.2);
    /* IE 9 */
    -webkit-transform: scale(1.2);
    /* Safari 3-8 */
    transform: scale(1.2);
  }

  .service-item p {
    margin-top: 0.5rem;
    font-weight: bold;
    font-size: 1.5rem;
    text-transform: uppercase;
  }

}


/** boutons jaune**/

.cta-button a {
  background-color: #DBB53A;
  color: #041A28;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-family: 'Red Rose';
  font-weight: bold;
  text-decoration: none;
  font-size: 1.5rem;
  transition: background-color 0.3s;
}

.cta-button a:hover {
  background-color: #c79e28;
}

/**section soumission **/
.soumission-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  padding: 2rem 1rem;
}

.soumission-header h2 {
  font-size: 3rem;
  font-family: 'Red Rose';
  color: white;
  text-transform: uppercase;
  margin: 0;
}

.soumission-btn {
  background-color: #DBB53A;
  color: #041A28;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: 'Red Rose';
  font-weight: bold;
  text-decoration: none;
  font-size: 1.5rem;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.soumission-btn:hover {
  background-color: #c79e28;
}


/**image dans index**/
.full-width-image {
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.full-width-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  height: 380px;
}


/**zone**/

.green-container.zone-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  padding: 3rem 4rem;
  flex-wrap: wrap;
  background-color: #4A6349;
  color: white;
}

.zone-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'Red Rose';
  font-weight: bold;
  color: white;
  width: 200px;
  flex-shrink: 0;
}

.zone-icon img {
  width: 90px;
  height: 90px;
  margin-bottom: 1rem;
}

.zone-icon p {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0;
  font-family: 'Red Rose';
}

.zone-text {
  max-width: 800px;
  font-family: "Rethink Sans";
}

.zone-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  text-align: left;
}


/**valeurs**/

.section-valeurs {
  display: flex;
  flex-wrap: wrap;
  background-color: #f9f9f9;
  padding: 3rem 2rem;
}

.valeurs-left {
  flex: 1;
  min-width: 300px;
  background-color: #DBB53A;
  display: flex;
  padding: 2rem;
}

.valeurs-left h2 {
  font-family: 'Red Rose';
  font-size: 2.6rem;
  text-transform: uppercase;
  line-height: 1.3;
  color: #0f3348;
}

.valeurs-left h2 span {
  color: #041A28;
}

.valeurs-right {
  flex: 3;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem 3rem;
}

.valeur {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.valeur img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-top: 3px;
  /* aligne mieux avec le texte multi-lignes */
}

.valeur p {
  font-family: 'Rethink Sans';
  font-size: 1.1rem;
  margin: 0;
  color: #041A28;
  font-weight: 600;
  line-height: 1.5;
}

.valeur.special p {
  font-size: 1.2rem;
}

.valeur .vert {
  color: #4A6349;
}

.valeur .orange {
  color: #DBB53A;
}


/** stats **/
.stats {
  display: flex;
  justify-content: space-around;
  padding: 30px 0;
  background: #4A6349;
  text-align: center;
}

.counter {
  font-size: 3rem;
  font-weight: bold;
  color: white;
}

.stats div p {
  color: white;
  font-size: 1.3rem;
  font-family: 'Rethink Sans';
}

/** reviews **/

.testimonials {
  background-color: #f2f2f2;
  padding: 60px 20px;
  text-align: center;
}

.carousel {
  position: relative;
  overflow: hidden;
  height: 150px;
}

.testimonial {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
  position: absolute;
  width: 100%;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.testimonial {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

/** sliding hero **/
.mySlides {
  display: none;
}

/* Slideshow container */
.slideshow-container {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  margin: auto;
}

/* The dots/bullets/indicators */
.dot {

  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;

}

@media (max-width: 1050px){
  .hero{
    h2{
      font-size: 4rem!important;
    }
  }
}

@media (max-width: 500px){
  .cta-button a{
    font-size: 1rem !important;
    padding: 1rem;
    margin:0rem;
  }
  .testimonials{
    h2{
      font-size: 1.5rem!important;
    }
  }
}

@media (max-width: 370px){
  .cta-button a{
    font-size: 0.8rem!important;
    padding: 0.5rem;
  }
}


/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {

  .prev,
  .next,
  .text {
    font-size: 11px
  }
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

#a-propos {
  margin: 2rem 5rem 5rem 5rem;
  text-align: center;
}

/**MEDIA **/

@media only screen and (max-width: 768px) {

   .hero {
    position: relative;
    max-height: 460px;
  }

  .hero h1 {
    font-size: 2rem !important;
    top: 25% !important;
    margin: 1rem !important;
    margin-top: 4rem !important;
    margin-left: 2rem !important;
  }

  .hero h2 {
    font-size: 2.5rem !important;
    top: 45% !important;
    margin: 1rem !important;
    margin-top: 3rem !important;
    margin-left: 2rem !important;
  }

  .container .services-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .service-item img {
    width: 100%;
    height: auto;
  }

  .soumission-header {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .soumission-header h2 {
    font-size: 2rem;
  }

  .soumission-btn {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem;
  }

  .green-container.zone-container {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .zone-text {
    max-width: 100%;
    padding: 0 1rem;
    text-align: center;
  }

  .valeurs-left,
  .valeurs-right {
    flex: 100%;
    padding: 1rem;
  }

  .valeurs-left h2 {
    font-size: 2rem;
    text-align: center;
    
  }

  .valeurs-left{
    min-width: 50px !important;
  }

  .valeurs-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .counter {
    font-size: 2rem;
  }

  #a-propos {
    margin: 2rem 1rem;
  }

  .container > h2,
  #chiffres h2 {
    font-size: 3.2rem;
    margin-bottom: 0.8rem;
    padding: 0 1rem;
  }
}

@media only screen and (max-width: 768px) {

  .testimonials {
    padding: 40px 15px;
  }

  .carousel {
    height: auto;
    min-height: 180px;
  }

  .testimonial {
    position: relative;
    opacity: 1;
    transform: none;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.6;
  }

  .testimonials h2 {
    font-size: 2.5rem;
    padding: 0 1rem;
  }

  .testimonial p {
    font-size: 1.1rem;
  }

  .testimonial.active {
    opacity: 1;
    transform: translateY(0);
  }

  .dot {
    width: 12px;
    height: 12px;
    margin: 0 3px;
  }

  .prev,
  .next {
    top: 40%;
    font-size: 1.2rem;
    padding: 10px;
  }

}


