/********** Template CSS **********/
:root {
  --primary: #258b07;
  --secondary: #258b07;
  --light: #f8f8f8;
  --dark: #258b07;
}
/* Bouton Demande de Devis */
.quote-btn {
  padding: 12px 24px;
  font-size: 1.2rem;
  background-color: #27ae60; /* Vert du logo */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  margin: 10px;
}

.quote-btn:hover {
  background-color: #3f4441;
}
.video-hero-container {
  position: relative;
  overflow: hidden;

  width: 100%;
  height: 90vh; /* Ajuste selon la hauteur voulue */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.4
  ); /* Assombrit légèrement pour mieux lire le texte */
}

.video-content {
  position: relative;
  z-index: 2;
}

.video-title {
  font-size: 3rem;

  font-weight: bold;
  text-transform: uppercase;
  animation: fadeIn 1.5s ease-in-out;
  /* color: #9bd831; */
  color: #f6f6f6;
}

.video-subtitle {
  font-size: 1.5rem;
  margin-bottom: 20px;
  animation: fadeIn 2s ease-in-out;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
  cursor: pointer;
  margin-right: 30px;
  padding: 20px 0;
  border: none;
  background-color: white;
  color: #131313;
  font-weight: 500;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: #159f23;
}

.navbar.sticky-top {
  top: -100px;
  transition: 0.5s;
}

@media (max-width: 991.98px) {
  .video-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: fadeIn 1.5s ease-in-out;
    /* color: #9bd831; */
    color: #f6f6f6;
  }

  .video-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
  }
  .navbar .navbar-nav .nav-link {
    /*  zyeda  */
    width: 96%;
    margin-right: 0;
    padding: 8px 0;
  }

  .navbar .navbar-nav {
    height: 10;
    margin-top: 8px;
    border-top: 1px solid rgba(256, 256, 256, 0.1);
  }
}

@media (min-width: 992px) {
  /* .container-fluid .row {
    flex-direction: column;
    text-align: center;
  } */

  .d-flex.align-items-center {
    justify-content: center;
    margin-bottom: 5px;
  }
  .navbar img {
    height: 80px; /* Ajuste la taille du logo */
  }
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;

    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: 0.5s;
    opacity: 0;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
#header-carousel .carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
/* For mobile screens */
@media (max-width: 767px) {
  .carousel-caption h4 {
    font-size: 1.2rem; /* Reduced font size on mobile */
  }

  .carousel-caption h2 {
    font-size: 2rem; /* Adjust for smaller devices */
  }
}
@media (max-width: 768px) {
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--secondary);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

/*** Section Title ***/
.section-title {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  font-size: 10px;
}

.section-title::before {
  position: absolute;
  content: "";
  width: calc(100% + 80px);
  height: 2px;
  top: 4px;
  left: -40px;
  background: var(--primary);
  z-index: -1;
}

.section-title::after {
  position: absolute;
  content: "";
  width: calc(100% + 120px);
  height: 2px;
  bottom: 4px;
  left: -60px;
  background: var(--primary);
  z-index: -1;
}

.section-title.text-start::before {
  width: calc(100% + 40px);
  left: 0;
}

.section-title.text-start::after {
  width: calc(100% + 60px);
  left: 0;
}

/*** Img Border ***/
.img-border {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.img-border::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 3rem;
  bottom: 3rem;
  border: 5px solid var(--primary);
  border-radius: 6px;
}

.img-border img {
  position: absolute;
  top: 3rem;
  left: 3rem;
  width: calc(100% - 3rem);
  height: calc(100% - 3rem);
  object-fit: cover;
  border-radius: 6px;
}

/*** Facts ***/
.fact-item {
  background: linear-gradient(135deg, #ffffff, #ffffff);
  color: white;
  text-align: center;
  border-radius: 12px;
  padding: 40px 20px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fact-item:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.fact-item .icon {
  font-size: 50px;
  margin-bottom: 15px;
  color: green;
}

.fact-item h5 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.fact-item h1 {
  font-size: 36px;
  font-weight: 700;
}

/*** Service ***/
.service-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.07);
  border: 1px solid transparent;
  transition: 0.5s;
}

.service-item:hover {
  margin-top: -10px;
  box-shadow: none;
  border: 1px solid #dee2e6;
}

/*** Feature ***/
.progress {
  height: 5px;
}

.progress .progress-bar {
  width: 0px;
  transition: 3s;
}

/*** Project ***/
.project-item a {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  opacity: 0;
  transition: 0.5s;
}

.project-item:hover a {
  opacity: 1;
}

.project-carousel .owl-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.project-carousel .owl-dot {
  width: 35px;
  height: 35px;
  margin: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  border-radius: 35px;
  transition: 0.5s;
}

.project-carousel .owl-dot:hover,
.project-carousel .owl-dot.active {
  color: #ffffff;
  border-color: var(--primary);
  background: var(--primary);
}

/*** Team ***/
.team-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.07);
}

.team-item .team-text {
  position: relative;
  height: 65px;
  overflow: hidden;
}

.team-item .team-title {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

.team-item:hover .team-title {
  top: -65px;
}

.team-item .team-social {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 65px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: 0.5s;
}

.team-item .team-social .btn {
  margin: 0 3px;
}

.team-item:hover .team-social {
  top: 0;
}

/*** Testimonial ***/

.testimonial-carousel .owl-item .testimonial-item img {
  width: 60px;
  height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
  background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
  color: #ffffff !important;
}

.testimonial-carousel .owl-nav {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin: 0 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  border-radius: 50px;
  font-size: 18px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: #ffffff;
  border-color: var(--primary);
  background: var(--primary);
}

/*** Footer ***/
.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: var(--secondary);
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--secondary);
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--primary);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--light);
}

.footer .copyright a:hover {
  color: var(--primary);
}
.unique-carousel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.unique-carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.unique-carousel-items {
  display: flex;
  flex-direction: column; /* Affichage en colonne par défaut (mobile) */
  width: 100%;
}

.unique-item {
  flex: 1;
  max-width: 100%; /* Occupe toute la largeur en version mobile */
  box-sizing: border-box;
  padding: 10px;
}

.unique-thumb-wrapper {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  background-color: #fff;
}

.unique-thumb-wrapper:hover {
  transform: translateY(-5px);
}

.unique-img-box {
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.unique-img-fluid {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.unique-thumb-content {
  padding: 15px;
  text-align: center;
}

.unique-item-price {
  font-size: 1.1rem;
  color: #333;
}

.unique-btn-primary {
  background-color: #007bff;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

/* Version Web : Affichage en grille (3 éléments par ligne) */
@media (min-width: 768px) {
  .unique-carousel-items {
    flex-direction: row; /* Affichage en grille pour écran large */
    flex-wrap: wrap;
  }

  .unique-item {
    max-width: 33.33%; /* 3 éléments par ligne */
  }
}

/* Version Mobile : Affichage en une seule colonne */
@media (max-width: 767px) {
  .unique-carousel-items {
    flex-direction: column; /* L'un après l'autre */
  }

  .unique-item {
    max-width: 100%; /* Occupe toute la largeur */
  }
}

.unique-btn-primary:hover {
  background-color: #0056b3;
}

.unique-carousel-control-prev,
.unique-carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  padding: 10px;
  cursor: pointer;
}

.unique-carousel-control-prev {
  left: 10px;
}

.unique-carousel-control-next {
  right: 10px;
}
/* Cache le menu burger sur desktop */
@media (min-width: 992px) {
  .side-menu {
    display: none !important;
  }
}

/* Style du menu latéral */
.side-menu {
  position: fixed;
  /* top: 0; */
  right: -250px; /* Caché par défaut */
  width: 250px;
  height: 55%;
  /* height: 100%; */

  background-color: #258b07;
  transition: right 0.3s ease-in-out;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  padding-top: 20px;
  z-index: 1050;
}

.side-menu.open {
  right: 0; /* S'ouvre à droite */
}

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

/* Style des liens */
.side-menu .nav-item {
  display: block;
  padding: 15px;
  color: white;
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.side-menu .nav-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.carousel-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.play-pause-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: green;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  animation: pulse 1s infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
