/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Bebas Neue', sans-serif;
  line-height: 1.6;
  background-color: #ecf0f1;
  color: #333;
}

h1, h2, h3, h4, h5, h6, p, li, a {
  font-family: 'Bebas Neue', sans-serif;
}

/* Header */
header {
  background-color: white;
  color: #333;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  position: relative;
}

.logo h1 {
  font-size: 28px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  padding: 15px 25px;
  transition: 0.3s ease;
  border-radius: 5px;
}

.nav-links a:hover {
  color: #27ae60;
  background-color: #f1f1f1;
}

.nav-image img {
  width: 100px;
  height: auto;
  margin-left: 20px;
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  font-size: 28px;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #333;
}

/* Media Query: Burger Menu for Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
  }

  .nav-links.mobile-active {
    display: flex;
  }

  .burger {
    display: flex;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  color: white;
  background: #000;
}

.hero .elementor-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.hero-content h2 {
  font-size: 33px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 24px;
  margin-bottom: 20px;
}

.btn-primary {
  background-color: #2da432;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.btn-primary:hover {
  background-color: #2ecc71;
}

/* Diaporama */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
}

/* Rectangle noir large centré */
.black-rectangle-centered {
  width: 95%;
  max-width: 1200px;
  margin: -25px auto 0 auto;
  background-color: #24631e;
  border: 2px solid #000;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.black-rectangle-centered .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.black-rectangle-centered .item {
  flex: 1 1 45%;
  text-align: center;
  position: relative;
}

.black-rectangle-centered .item img {
  width: 40%;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.black-rectangle-centered .item .image-text {
  font-size: 16px;
  color: #ffffff;
  font-weight: bold;
  padding: 5px;
  display: block;
  text-align: center;
}

/* Desktop - images alignées horizontalement avec espaces égaux */
@media (min-width: 769px) {
  .black-rectangle-centered .content-wrapper {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
  }

  .black-rectangle-centered .item {
    flex: 1;
  }
}

/* Optimisation responsive du bloc vert pour afficher le bouton téléphone */
.black-rectangle-centered .item .image-text {
  font-size: 14px; /* Réduction légère du texte */
  padding: 2px;
}

.black-rectangle-centered .item img {
  width: 35%; /* Réduction légère de l'image */
  margin-bottom: 5px;
}

.black-rectangle-centered .item {
  flex: 1 1 48%; /* Répartition un peu plus serrée */
}

@media (max-width: 480px) {
  .black-rectangle-centered {
    padding: 15px;
  }

  .black-rectangle-centered .content-wrapper {
    gap: 5px;
  }

  .black-rectangle-centered .item .image-text {
    font-size: 13px;
  }
}

/* Section COMMENT ÇA MARCHE */
#how-it-works {
  padding: 50px 20px;
  text-align: center;
  background-color: #ecf0f1;
}

#how-it-works h2 {
  font-size: 30px;
  margin-bottom: 30px;
}

.how-it-works-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
  align-items: flex-start;
}

.step {
  text-align: left;
}

.emoji-title {
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-text {
  font-size: 18px;
  margin-left: 35px;
  color: #444;
}

.how-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Query pour mobile - Positionner l'image au-dessus du texte */
@media (max-width: 768px) {
    .how-it-works-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .how-image {
        order: -1; /* L'image sera affichée avant le texte */
        text-align: center;
    }

    .steps {
        text-align: center;
    }
}

/* Services */
#services {
  padding: 50px 20px;
  background-color: #ecf0f1;
  text-align: center;
}

#services h2 {
  font-size: 30px;
  margin-bottom: 30px;
}

.services-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.service-item {
  background-color: white;
  padding: 20px;
  width: 30%;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Services Slide Mobile */
@media (max-width: 768px) {
  .services-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }

  .service-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    width: 100%;
    margin-bottom: 0;
    padding: 20px;
    box-sizing: border-box;
  }
}

/* Contact */
#contact {
  padding: 50px 20px;
  background-color: #fff;
  text-align: center;
}

#contact form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

#contact label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#contact button {
  background-color: #2da432;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
}

#contact button:hover {
  background-color: #d35400;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #000000;
  color: white;
}

.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #1f1f1f;
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 16px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: #2ecc71;
}

.notification.error {
    background-color: #e74c3c;
}

.hidden {
    display: none;
}
