/* ================================
   HERO SECTION (Slider & Intro)
================================== */
.hero-section {
  margin-top: 100px;
  position: relative;
  min-height: 90vh;
  color: white;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* ================================
   SLIDER FLUIDE + LABEL CENTRÉ
================================== */
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.1);
}

.slide-label {
  position: absolute;
  bottom: 300px; /* un peu au-dessus du bas */
  left: 60%;
  transform: translateX(-50%);
  background: linear-gradient(to right, rgba(37, 99, 235, 0.5), rgba(34, 197, 94, 0.5));
  color: #fff;
  padding: 30px 100px;
  border-radius: 12px;
  font-size: 1.5em;
  font-weight: 500;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 2;
  text-align: center;
  max-width: 100%;
  word-wrap: break-word;
}

/* ================================
   HERO CONTENT
================================== */
.hero-content {
  background: rgba(0, 0, 0, 0);
  position: relative;
  z-index: 1;
  margin-right: 0%;
  padding: 8rem 2rem;
  display: grid;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.hero-content p {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease;
}

.btn.primary {
  background: linear-gradient(to right, #2563eb, #22c55e);
  color: white;
}

.btn.primary a {
  text-decoration: none;
  color: white;
}

.btn.primary:hover {
  background: linear-gradient(to right, #1e40af, #15803d);
}

.btn.outline {
  background: transparent;
  color: black;
  border: 2px solid white;
}

.btn.outline a {
  text-decoration: none;
  color: white;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ================================
   BADGES
================================== */
.badges {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.badges div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.badges span:first-child {
  font-size: 1.4rem;
}

/* ================================
   SECTION : Description sous slider
================================== */
.space1 {
  color: white;
  font-size : 25px;
  padding:80px;
  background : linear-gradient(to right, rgba(37, 99, 235, 1), rgba(34, 197, 94, 1));
  text-align :center;
}


.space {
  /*background: linear-gradient(to right, #eff6ff, #d1fae5);*/
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin:40px;


}

.div_space {
background : white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  font-size: 18px;
}

.div_space:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* ================================
   SECTION 2 : Galerie d'images
================================== */
/*-------------------------------------------------------------*/
 .services-section {
      padding: 60px 20px;
      text-align: center;
      max-width: 1600px;
      margin: auto;
    }

    .services-section h2 {
        border-radius : 50%;
        padding : 30px ;
        color : white ;
      font-size: 2.2rem;
      margin-bottom: 50px;
      background : linear-gradient(to right, rgba(37, 99, 235, 1), rgba(34, 197, 94, 1));
      box-shadow : 10px  10px rgba(0,0,0,0.1);
    }

    .services-section .highlight {
      color: #2563eb;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr); /* 2 cartes par ligne */
      gap: 30px;
    }

    .service-card {
      position: relative;
      border-radius: 5px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      box-shadow: 0 12px 24px rgba(0,0,0,0.2);

    }

.service-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;

  /* Qualité de rendu des images redimensionnées */
  image-rendering: crisp-edges;             /* Standard */
  image-rendering: -moz-crisp-edges;        /* Firefox */
  image-rendering: -webkit-optimize-contrast; /* Safari */
  image-rendering: pixelated;               /* Pour pixel art ou effet rétro */
}

    .service-card h3 {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      margin: 0;
      color: #fff;
      font-size: 1.2rem;
        background : linear-gradient(to right, rgba(37, 99, 235, 0.5), rgba(34, 197, 94, 0.5));
/* fond semi-transparent */
      padding: 12px 25%;
      border-radius: 8px;
    }
    .service-card h3:hover{
            background : linear-gradient(to right, rgba(37, 99, 235, 1), rgba(34, 197, 94, 1));

    }

    .service-card:hover {
      transform: translateY(-6px);

    }




/*-------------------------------------------------------------*/


/* ================================
   RESPONSIVE (Mobile)
================================== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .buttons {
    flex-direction: column;
  }
  .space1 {
        padding : 40px ;
  }

  .space {
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 40px;
  }

  .div_space {
    padding: 80px 20px;
    font-size: 18px;
  }
/*-------------------------------------------------------------*/
.services-grid {
        grid-template-columns: 1fr; /* 1 carte par ligne */
      }
      .service-card img {
        height: 200px; /* images moins hautes sur mobile */
      }
      .service-card h3 {
        font-size: 1.4rem; /* texte plus petit */
        padding: 8px 15px;
      }

      .services-section h2{
                border-radius : 5% ;
                padding :  16px;
      }
/*-------------------------------------------------------------*/

  .slide-label {
    bottom: 60px; /* ajustement pour mobile */
    font-size: 1em;
    padding: 8px 16px;
  }
}
