.bandeau-nouvelle {
  height: 100vh;
}

.bandeau-photos .image-container-homepage {
  position: relative;
}

.border-3 {
  border-width: 2px !important;
}

.bottom-image-container {
  background-image: url("../img/photos/ygymxYV.jpg");
  background-size: cover;
  width: 100%;
  height: 50vh;
}

.bouton-bottom {
  position: absolute;
  bottom: 0;
}

.bouton-texte {
  color: white;
}

.card-title {
  text-align: center;
}

.full-width-bg {
  background-image: url("../img/photos/accueil-02.jpg");
  background-position: top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  height: 100%;
  width: 100%;
}

/* Horizontal bar style */
.horizontal-bar {
  height: 2px;
  width: 100%;
  max-width: 200px;
  margin: 10px auto;
  border-radius: 5px;
}

.horizontal-bar {
  width: 60%;
  height: 3px;
  margin: 0 auto 20px auto;
}

.hover-card {
  position: relative;
  overflow: hidden;
  /* border-radius: 8px; */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hover-card-container {
  margin-bottom: 20px;
  /* Spacing between rows */
  margin-top: 20px;
}

.hover-card:hover .hover-overlay {
  opacity: 1;
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hover-title {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: 100%;
}

.icon-dark-green {
  filter: invert(28%) sepia(50%) saturate(150%) hue-rotate(100deg);
}

/* Image/Icon size adjustments */
.icon-med {
  width: 50px;
  height: auto;
  margin-bottom: 20px;
}

.icon-med {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.icon-small {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.icon-white {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%);
}

.image-container {
  position: relative;
  width: 100%;
  padding-top: 120%;
  overflow: hidden;
  background: #ccc;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

.news-content a {
  color: #00bcd4;
  text-decoration: underline;
}

.news-content a:hover {
  color: #017374;
}

/* News Content Styling */
.news-content p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.news-content ul {
  list-style-type: none;
  padding-left: 0;
}

.nopadding {
  padding: 0 !important;
  margin: 0 !important;
}

.nouvelle-full-width {
  background-image: url("../img/photos/nouvellesducamp.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0;
  color: #fff;
}

.nouvelle-text {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #555;
}

.nouvelle-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.nouvelle-title-and-text {
  max-width: 80%;
  max-height: 475px;
  overflow-y: scroll;
}

.position-35 {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
}

.position-5 {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.position-50 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
}

.position-65 {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translateX(-50%);
}

.position-85 {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translateX(-50%);
}

.section-nouvelle {
  width: 100%;
}

.section-nouvelle-v2 {
  padding: 20px;
  margin-top: 40px;
  background-color: #3b5e46;
  border-radius: 10px;
  color: white;
}

.section-title-white {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.text-container-homepage {
  overflow: hidden;
  width: 100%;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.text-three-boxes {
  text-align: left;
}

.three-boxes-border {
  position: relative;
  padding: 20px;
}

/* Right border */
.three-boxes-border::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  right: 0;
  width: 2px;
  background-color: #3b5e46;
}

/* Left border */
.three-boxes-border::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 0;
  width: 2px;
  background-color: #3b5e46;
}

.title-bleu {
  color: #0e6ab1;
  color: white;
}

.title-jaune {
  color: #dc972f;
  color: white;
}

.title-rouge {
  color: #db0909;
  color: white;
}

.video-background {
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
  display: block;
}

.video-background-button {
  padding: 10px 20px;
  background-color: #17a2b8;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

.video-background-button:hover {
  background-color: #138496;
}

.video-background-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 1;
}

.video-background-content h1 {
  font-size: 4rem;
  font-weight: bold;
}

.video-background-content p {
  font-size: 1.5rem;
}

.video-background-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.video-background-section video {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(-50%);
  z-index: -1;
}

@media (max-width: 768px) {
  .section-title-white {
    font-size: 1.5rem;
  }

  .news-content p {
    font-size: 1rem;
  }

  .news-content a {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .icon-med {
    width: 40px;
  }

  .section-nouvelle-v2 {
    padding: 15px;
  }

  .section-title-white {
    font-size: 1.2rem;
  }
}

@media (max-width: 990px) {
  .three-boxes-border::before,
  .three-boxes-border::after {
    display: none;
  }
}
