* {
  font-synthesis: none !important;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #3b5e46;
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #3b5e46;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 0px grey;
  border-radius: 10px;
}

.accordion {
  color: white;
}

.accordion:hover {
  color: gray;
}

.aspect-ratio-16-9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio (9/16 = 0.5625 * 100) */
}

.aspect-ratio-16-9 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aspect-ratio-4-3 {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
}

.aspect-ratio-4-3 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bleu {
  background-color: #0574ac;
}

.bg-red {
  background-color: #ea131e !important;
}

.btn.bg-dark-green.bouton-texte:hover {
  color: grey; /* Change text color on hover */
  text-decoration: none; /* Ensure no underline appears */
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

section {
  padding: 50px;
  background-color: white;
  font-size: large;
  color: #3b5e46;
}

@font-face {
  font-family: "WindsorProUltHv";
  src: url("../fonts/windsor-pro/WindsorProUltHv.woff2") format("woff2"),
    url("../fonts/windsor-pro/WindsorProUltHv.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.footer {
  padding-top: 2em;
  padding-bottom: 1em;
  color: white;
}

.gris {
  background-color: lightgrey;
}

.gris-fonce {
  background-color: rgb(128, 128, 128);
}

.image-container {
  overflow: hidden;
  width: 100%;
  height: 225px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  /* border-radius: 10px; */
  cursor: pointer;
}

.image-container img:hover {
  transform: scale(1.2);
}

.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  /* border-radius: 10px; */
}

.jaune {
  background-color: #e0ae00;
}

.parallax {
  background-attachment: scroll; /* Default for mobile fallback */
  background-size: cover; /* Default behavior for larger screens */
  background-position: center;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  background-blend-mode: normal;

  opacity: 0;
  animation: fadeIn 2s forwards;
}

/* Adjust for mobile */
@media (max-width: 768px) {
  .parallax {
    background-size: cover; /* Show the full background image */
    height: auto; /* Adjust height dynamically for mobile */
    padding: 50px 0; /* Add padding for consistent spacing */
  }
}

/* Larger screens retain fixed attachment */
@media (min-width: 768px) {
  .parallax {
    background-attachment: fixed;
    background-size: cover;
  }
}

.parallax-title {
  color: white;
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: "WindsorProUltHv", sans-serif;
}

.rouge {
  background-color: #e2001a;
}

.section-title {
  font-family: "WindsorProUltHv", sans-serif;
  color: #3b5e46;
}

.section-title-white {
  font-family: "WindsorProUltHv", sans-serif;
  color: white;
}

.text-border {
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.text-dark-green {
  color: #3b5e46;
}

.vert {
  background-color: #8fa929;
}

@media (min-width: 768px) {
  .parallax-title {
    font-size: 2.5rem;
  }

  section {
    margin-left: 15%;
    margin-right: 15%;
    width: 70%;
  }
}

@media (min-width: 992px) {
  .parallax-title {
    font-size: 3.5rem;
  }

  section {
    margin-left: 20%;
    margin-right: 20%;
    width: 60%;
  }
}

@media (min-width: 1200px) {
  .parallax-title {
    font-size: 4.5rem;
  }

  section {
    margin-left: 16%;
    margin-right: 16%;
    width: 68%;
  }
}

@media (max-width: 768px) {
  .image-container {
    margin-bottom: 15px;
  }
}
