/*****************************************************************/
/* SECTION HERO - Page d'accueil Inspire Code                    */
/*****************************************************************/

#hero {
  position: relative;
  min-height: 100dvh;      /* hauteur minimale sur desktop */
  height: auto;            /* autorise la section à grandir selon le contenu */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  overflow: visible;       /* ne coupe plus les blocs */
}

@media (max-width: 768px) {
  #hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  #hero::before {
    background-color: rgba(0, 0, 0, 0.6);
  }
  .hero-content h1 {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  }
  .hero-content p {
    color: #f1f1f1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  }
}

/* Overlay pour le contraste */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(13, 110, 253, 0.25);
  z-index: 0;
}

/* ===== CONTENU PRINCIPAL ===== */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 2rem;
  margin-bottom: 3rem; /* espace avant les blocs cliquables */
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: #f8f9fa;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/*****************************************************************/
/* BLOCS CLIQUABLES (Vitrine / E-commerce / Automatisations)     */
/*****************************************************************/

#hero .container {
  position: relative;
  z-index: 1;
}

#hero .row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

#hero .col-md-3 {
  flex: 1 1 280px;
  max-width: 300px;
}

/* Style des boutons-blocs */
.btn-offre {
  display: block;
  background-color: rgba(255, 255, 255, 0.9);
  color: #0d6efd;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  padding: 2.5rem 1rem;
  height: 100%;
}

.btn-offre:hover {
  background-color: #0d6efd;
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.4);
}

.btn-offre i {
  color: #0d6efd;
  transition: color 0.3s ease;
}

.btn-offre:hover i {
  color: #fff;
}

.btn-offre h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: inherit;
}

.btn-offre p {
  color: rgba(0, 0, 0, 0.7);
  margin: 0;
}

/*****************************************************************/
/* SECTION VALEURS INTÉGRÉE                                      */
/*****************************************************************/

.valeurs-wrapper {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
  padding: 2rem 1rem 4rem;
  color: #f8f9fa;
}

.valeurs-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.valeurs-wrapper p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
}

/*****************************************************************/
/* HEADER FIXE & LOGO                                            */
/*****************************************************************/

body {
  padding-top: 80px; /* compense la hauteur du header */
}

.logo-img {
  max-width: 120px;
  height: auto;
}

/*****************************************************************/
/* ADAPTATION MOBILE                                             */
/*****************************************************************/

@media (max-width: 992px) {
  #hero {
    height: auto;
    padding: 6rem 1.5rem 3rem;
  }

  .hero-content {
    margin-bottom: 2rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

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

  .btn-offre {
    padding: 2rem 1rem;
  }

  .valeurs-wrapper {
    margin-top: 3rem;
    padding-bottom: 2rem;
  }

  .logo-img {
    max-width: 90px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .valeurs-wrapper h2 {
    font-size: 1.5rem;
  }
}
