.hero-section {
  position: relative;
  width: 100vw;
  min-height: 70vh; /* Prend toute la hauteur de l'écran, mais peut grandir */
}

.fullscreen-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* L'image reste bien cadrée */
  min-height: 400px; /* Empêche que l’image ne devienne trop petite */
  transition: height 0.3s ease-in-out; /* Animation fluide */
}

.hero-text {
  position: absolute;
  top: 45%;
  right: 20%;
  transform: translateY(-50%);
  text-align: right;
  color: var(--text-color);
  max-width: 40%;
}

.hero-text h1 {
  font-size: 4.5rem;
  margin: 0;
}

.hero-text h2 {
  color: var(--primary);
  font-size: 4.5rem;
  margin: 0;
  font-weight: 600;
}

.hero-text h2::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1); /* Léger fond transparent */
  backdrop-filter: blur(10px); /* Flou appliqué */
  z-index: -1;
  border-radius: 10px;
  padding: 20px;
}

.hero-text p {
  font-size: 1.3rem;
  margin-top: 10px;
  line-height: 1.5;
  color: var(--text-color);
}

/* ✅ Breakpoint TABLETTE (768px - 1023px) */
@media (max-width: 1023px) {
  .hero-section {
    height: 60vh; /* L’image se réduit progressivement */
  }
  .hero-text {
    top: 45%;
    right: 20%;
    max-width: 60%;
  }

  .hero-text h1,
  .hero-text h2 {
    font-size: 3.5rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }
}

/* ✅ Breakpoint MOBILE (≤ 767px) */
@media (max-width: 767px) {
  .hero-section {
    height: 60vh; /* Réduction plus importante sur mobile */
  }

  .fullscreen-image {
    min-height: 300px; /* Assure une taille minimale correcte */
  }
  .hero-text {
    top: 45%;
    right: 50%;
    transform: translate(50%, -50%);
    text-align: center;
    max-width: 90%; /* Augmente la largeur */
    min-width: 240px; /* Assure au moins 200px de largeur */
  }

  .hero-text h1,
  .hero-text h2 {
    font-size: 2.6rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }
}
@media (max-width: 450px) {
  .hero-text {
    top: 45%;
    right: 50%;
    transform: translate(50%, -50%);
    text-align: center;
    max-width: 90%; /* Augmente la largeur */
    min-width: 240px; /* Assure au moins 200px de largeur */
  }
  .hero-section {
    min-height: 60vh;
    height: 60vh; /* Réduction plus importante sur mobile */
  }
  .fullscreen-image {
    height: 100%; /* Garde la hauteur relative au conteneur */
    object-fit: cover; /* Évite la déformation et garde le cadrage */
    min-height: 250px; /* Empêche l’image de devenir trop petite */
  }
}

/*Module Expert*/
/* Styles de base */
.section-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px;
  background-color: var(
    --backgound-color
  ); /* Fond basé sur la couleur du texte */
  padding: 60px 0;
  color: white; /* Texte blanc sur fond sombre */
}

/* Titre à gauche par défaut */
.section-title {
  flex: 1;
  max-width: 270px;
  margin-bottom: 20px;
}
.section-title h2 {
  font-weight: 500;
  font-size: 2rem;
}
.section-title p {
  color: var(--primary);
  margin-top: 20px;
  font-size: 1.1rem;
}

/* Conteneur des paragraphes */
.section-content {
  flex: 2;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes */
  gap: 20px;
  margin-left: 20px;
}
/* Positionnement du numéro */
.paragraph::before {
  content: attr(
    data-num
  ); /* Utilise l'attribut data-num pour définir le numéro */
  position: absolute;
  top: 0;
  left: 0;
  font-size: 200px; /* Taille du numéro */
  font-weight: bold;
  color: white; /* Couleur du numéro */
  z-index: 100; /* Le numéro sera derrière le contenu */
  opacity: 0.1; /* Légère transparence pour un effet subtil */
  transform: translate(
    -30px,
    -20px
  ); /* Décale légèrement le numéro pour un meilleur effet visuel */
}

/* Ajout de la classe info-section */
.info-section {
  margin-bottom: 30px;
}
/* Style des paragraphes */
.paragraph {
  max-width: 370px;
  padding: 15px;
  position: relative;
}

.paragraph h2 {
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0;
}
.paragraph hr {
  border-bottom: 1px solid white;
}
.paragraph p {
  font-size: 1rem;
  line-height: 1.5;
}
.info-section {
  margin-bottom: 30px;
}
/* Responsive : écran ≤ 1023px */
@media (max-width: 1023px) {
  .section-container {
    flex-direction: column;
    text-align: center;
  }

  .section-title {
    width: 100%;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto; /* Centrer horizontalement */
    margin-right: auto; /* Centrer horizontalement */
  }

  .section-content {
    width: 100%;
    grid-template-columns: 1fr 1fr; /* Garde 2 colonnes */
  }
}

/* Responsive : écran ≤ 767px */
@media (max-width: 767px) {
  .section-container {
    text-align: center; /* Centre le texte */
  }

  .section-title {
    width: 100%;
    max-width: none;
    margin-bottom: 20px;
    margin-left: auto; /* Centrer horizontalement */
    margin-right: auto; /* Centrer horizontalement */
  }

  .section-content {
    width: 100%;
    grid-template-columns: 1fr; /* 1 seule colonne */
    margin-left: auto; /* Centrer horizontalement */
    margin-right: auto; /* Centrer horizontalement */
  }

  .paragraph {
    width: 90%; /* Permet d'ajuster la largeur et d'éviter que les paragraphes soient trop larges */
    margin-left: auto; /* Centrer horizontalement */
    margin-right: auto; /* Centrer horizontalement */
    margin-bottom: 0;
  }
  .paragraph h2 {
    font-size: 1.3rem;
  }
  .paragraph p {
    font-size: 0.8rem;
  }
}
/*Module Etape*/
/* Styles de base */
.section-container-etape {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 0px;
  background: linear-gradient(to bottom, #f5f5f4, #0c2172);
}

.section-button-etape {
  margin-top: 50px;
}

.btn-etape {
  font-size: 16px;
  font-weight: 600;
}

.section-title-etape {
  font-size: 2rem;
  font-weight: bold;
}

.section-description-etape {
  margin-top: 16px;
  font-size: 1.2rem;
}

.cards-container-etape {
  margin-top: 64px;
  display: flex;

  gap: 20px;
  justify-content: space-between; /* Pour que les cartes prennent toute la largeur */
}

/* Cartes avec ratio respecté */
.card-etape {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  width: 25%; /* 4 cartes alignées */
  max-width: 290px; /* Largeur max à 290px */
  max-height: 370px;
  height: auto;
  aspect-ratio: 290 / 370; /* Maintien du ratio largeur/hauteur */
}

.card-image-etape {
  display: block;
  margin: 0px 0px 20px 0px;
  width: 100%; /* L'image prend toute la largeur de la carte */
  height: auto;
}

.card-title-etape {
  font-size: 1.3rem;
  font-weight: bold;
}

.card-text-etape {
  font-size: 1.2rem;
  margin-top: 20px;
}

/* Breakpoint pour les écrans <= 1250px et > 1100px (réduction progressive) */
@media (max-width: 1250px) {
  .card-etape {
    width: 25%; /* 4 cartes par ligne */
    max-width: 290px; /* Largeur max à 290px */
  }
}

/* Breakpoint pour les écrans <= 1100px (2 cartes par ligne) */
@media (max-width: 1100px) {
  .section-description-etape {
    font-size: 1.1rem;
  }
  .section-container-etape {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
  }

  .cards-container-etape {
    flex-wrap: wrap; /* Permet aux cartes de s'adapter */
  }

  .card-etape {
    width: 48%; /* 2 cartes par ligne avec une petite marge */
    max-height: 510px;
    max-width: none; /* Enlever la limite de largeur max pour mieux s'ajuster */
    height: auto; /* La hauteur s'ajuste automatiquement en fonction du ratio */
  }

  .card-image-etape {
    width: 100%;

    height: auto; /* L'image est plus large, donc légèrement plus haute */
  }
}

/* Breakpoint pour les écrans <= 767px (1 carte par ligne) */
@media (max-width: 767px) {
  .section-container-etape {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
  }
  .section-description-etape {
    font-size: 1rem;
  }

  .card-etape {
    width: 100%; /* 1 carte par ligne, prenant toute la largeur */
    max-height: 500px;
  }

  .card-image-etape {
    width: 100%;

    max-height: 350px;
    height: auto; /* L'image occupe toute la largeur et s'adapte en hauteur */
  }
}
@media (max-width: 767px) {
  .section-container-etape {
    padding-top: 20px;
  }
}
/*Module Devis*/
.devis-section {
  padding: 30px 0;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--backgound-color);
}

.devis-section p {
  color: var(--gray-100);
  font-size: 1.1rem;
  max-width: 1170px;
  margin: 0 auto;
}

.devis-section h2 {
  color: var(--gray-100);
  font-size: 3.1rem;
  margin: 21px 0 29px;
}
.btn-contact {
  font-size: 16px;
  font-weight: 600;
}

/* Breakpoint pour les écrans <= 767px (1 carte par ligne) */
@media (max-width: 767px) {
  .devis-section h2 {
    font-size: 2rem;
  }
  .devis-section p {
    padding: 0 20px;
  }
}
/*Module contact*/
/* Global */
.contact-contactHome {
  padding: 30px 0;
  background: var(--gray-100);
}
.container-contact-contactHome {
  padding: 0 32px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.header-contactHome,
.section-contactHome {
  background: var(--gray-100);
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
}

.heading-contactHome,
.subheading-contactHome,
.text-contactHome,
.supporting-text-contactHome {
  color: var(--text-color);
  text-align: center;
}

.heading-contactHome {
  font-size: 2rem;
  font-weight: 600;
}

.btn-contactHome {
  font-size: 1rem;
  font-weight: 600;
}

.text-contactHome {
  font-size: 1.2rem;
  font-weight: 600;
}

.supporting-text-contactHome {
  font-size: 1rem;
  font-weight: 400;
}

/* Icon */
/* Centrer l'icône dans le conteneur */
.featured-icon-contactHome {
  background: var(--primary);
  border-radius: 28px;
  border: 8px solid var(--primary);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ajuster la taille de l'icône */
.featured-icon-contactHome i {
  font-size: 24px; /* Taille de l'icône */
  color: var(--gray-100); /* Ou une autre couleur selon ton design */
}

/* Flexbox layout for contact info */
.contact-info-contactHome {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.contact-item-contactHome {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  min-width: 240px;
}

.contact-item-contactHome div {
  text-align: center;
}
@media (max-width: 767px) {
  .contact-info-contactHome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .contact-item-contactHome {
    padding: 20px 0;
  }
  .supporting-text-contactHome {
    margin: 0 10px;
  }
  .section-contactHome {
    gap: 20px;
    padding: 0px 0px 20px 0px;
  }
}
/*Module about*/
.about {
  padding: 90px 0; /* Ajoute un espace en haut et en bas */
  background-color: #f8f8f8; /* Optionnel : fond léger */
}

.about-grid {
  display: flex;
  align-items: center;
  gap: 80px; /* Espace entre les colonnes */
}

.about-image {
  max-width: 100%;
  height: auto;
  display: flex;
  justify-content: flex-start;
}
.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.about-text {
  flex: 1; /* Prend tout l’espace restant */
}
.about-text a {
  display: block;
  margin-top: 30px;
  width: max-content;
  margin-left: auto; /* Permet au bouton d’être centré horizontalement */
  margin-right: auto; /* Permet au bouton d’être centré horizontalement */
}
.about-text h2 {
  font-size: 2.1rem;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* ✅ TABLETTE (768px - 1023px) */
@media (max-width: 1023px) {
  .about-grid {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }

  .about-image {
    max-width: 400px; /* Diminue progressivement */
  }
}

/* ✅ MOBILE (≤ 767px) */
@media (max-width: 767px) {
  .about {
    padding: 60px 0;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-image {
    max-width: 300px; /* Encore plus petit sur mobile */
  }
}

/* ✅ PETITS MOBILES (≤ 450px) */
@media (max-width: 450px) {
  .about-image {
    max-width: 250px; /* Pour les écrans très petits */
  }
}

.expert {
  background-color: var(--backgound-color);
}
