body {
  font-family: tahoma, "Heading Now 71-78";
  color: var(--text-color);
  margin:0;
  padding:0;
}

body h2 {
  font-size: 38px
;
}

main {
  font-family: tahoma;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

#hero-text {
  height: 500px;
  width: 400px;
}

#hero h1 {
  color: var(--primary-color);
  font-size: 50px;
  text-shadow: 0.5px 0.5px var(--secondary-color);
}


#hero h4 {
  text-shadow: 0.5px 0.5px var(--secondary-color);
}
#Choisir_mon_sys {
  padding: 0.5rem 1rem;
  background-color: white;
  cursor: pointer;
  display: inline-block;
  text-decoration: underline;
  color: var(--primary-color);
  border:none; 
}

#choisir_mon_sys:hover {
  text-decoration: none;
}

/** Section fonctionnalités **/
#features {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#features h2 {
  font-size: 14px;
  font-weight: 600;
  color: #023E7D;
  margin-bottom: 0.5rem;
}

#features h3 {
  font-size: 45px;
  font-weight: 700;
  color: #023E7D;
  margin-bottom: 2rem;
  text-align:center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Four columns for four cards */
  gap: 1.5rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  padding: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.feature-image img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  display: block;
}

.feature-content {
  padding: 0.75rem;
}

.feature-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: #023E7D;
  text-align:center;
}

.feature-content p {
  color: #333;
  line-height: 1.5; /* Increased for better readability */
  font-size: 1rem;
  margin-bottom: 0.75rem; /* Increased for better spacing */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 90%;
  }

  .feature-image img {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 90%;
  }

  .feature-image img {
    height: 140px;
  }

  .feature-content h4 {
    font-size: 1rem;
  }

  .feature-content p {
    font-size: 0.85rem;
  }
}
/** Section maison intelligente **/
#smart-home {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: #000e3f;
  padding: 2rem;
  max-width: 1200px;
  margin: 2rem;

}

#smart-text {
  flex: 1;
  padding-right: 2rem;
}

#smart-text h2 {
  color: white;
  margin-bottom:2rem;
}

#smart-text p {
  color: white;
  margin-bottom:2rem;

}

#smart-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#smart-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}


/** Section étude professionnelle **/
#etude-pro {
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem auto;
  background-color: #fff;
}

#etude-image {
  flex: 1;
  display: flex;
  justify-content: center; /* Center the image horizontally */
  align-items: center;
  max-height: 400px; /* Cap the height to balance with text */
}

#etude-image img {
  max-width: 350px; /* Fixed width to control image size */
  max-height: 100%; /* Ensure image fits within container height */
  border-radius: 10px;
  object-fit: cover; /* Maintain aspect ratio */
}

#etude-text {
  flex: 1;
  padding-left: 2rem; /* Increased padding for better separation */
  text-align: left;
}

#etude-text h2 {
  color: var(--primary-color);
  font-size: 38px;
  margin-bottom: 1rem;
  line-height: 1.2; /* Tighter line height for heading */
}

#etude-text p {
  color: var(--text-color);
  font-size: 1.2rem; /* Larger text for readability */
  line-height: 1.5; /* Adjusted for better spacing */
  margin-bottom: 1.5rem; /* Increased spacing between paragraphs */
}

#etude-text .button-hero {
  margin-top: 1rem;
}

/** Section contrôlez tout **/
#controlez-tout {
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem auto;
  background-color: #fff;
}

#controlez-text {
  flex: 1;
  padding-right: 2rem; /* Increased padding for better separation */
  text-align: left;
}

#controlez-text h2 {
  color: var(--primary-color);
  font-size: 38px; /* Larger heading for prominence */
  margin-bottom: 1rem;
  line-height: 1.2; /* Tighter line height for heading */
}

#controlez-text p {
  color: var(--text-color);
  font-size: 1.2rem; /* Larger text for readability */
  line-height: 1.5; /* Adjusted for better spacing */
  margin-bottom: 1.5rem; /* Increased spacing between paragraphs */
}

#controlez-image {
  flex: 1;
  display: flex;
  justify-content: center; /* Center the image horizontally */
  align-items: center;
  max-height: 400px; /* Cap the height to balance with text */
}

#controlez-image img {
  max-width: 350px; /* Fixed width to control image size */
  max-height: 100%; /* Ensure image fits within container height */
  border-radius: 10px;
  object-fit: cover; /* Maintain aspect ratio */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  #etude-pro, #controlez-tout {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }

  #etude-image, #controlez-image {
    justify-content: center;
    max-height: 300px; /* Reduced height for tablets */
  }

  #etude-image img, #controlez-image img {
    max-width: 250px;
  }

  #etude-text, #controlez-text {
    padding-left: 0;
    padding-right: 0;
  }

  #etude-text h2, #controlez-text h2 {
    font-size: 38px;
  }

  #etude-text p, #controlez-text p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  #etude-image, #controlez-image {
    max-height: 250px; /* Further reduced for mobile */
  }

  #etude-image img, #controlez-image img {
    max-width: 200px;
  }

  #etude-text h2, #controlez-text h2 {
    font-size: 38px;
  }

  #etude-text p, #controlez-text p {
    font-size: 1rem;
  }
}
/* Responsive adjustments */
@media(max-width:800px){
	#etude-pro{
    		flex-direction: column;
	}
	#controlez-tout {
		flex-direction:column-reverse;
	}
}
 
@media (max-width: 1024px) {
  #etude-pro, #controlez-tout {
    gap: 1.5rem;
  }
  

  #etude-image, #controlez-image {
    justify-content: center;
  }

  #etude-image img, #controlez-image img {
    max-width: 250px; /* Slightly smaller for tablets */
  }

  #etude-text, #controlez-text {
    padding-left: 0;
    padding-right: 0;
  }

  #etude-text h2, #controlez-text h2 {
    font-size: 38px;
  }

  #etude-text p, #controlez-text p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  #etude-image img, #controlez-image img {
    max-width: 200px; /* Further reduced for mobile */
  }

  #etude-text h2, #controlez-text h2 {
    font-size: 38px;
  }

  #etude-text p, #controlez-text p {
    font-size: 0.95rem;
  }
}
/** Section protection **/
#protection {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  background-color: var(--secondary-color);
  padding: 2rem;
  margin-bottom: 2rem;
}

#protection-text {
  flex: 1;
  padding-right: 2rem;
}

#protection-text h2 {
  color: var(--primary-color);
}

#protection-text p {
  color: black;
  font-size: 1.2rem;
}

#protection-video {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#protection-video video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



.star.hover {
  color: goldenrod;
}

/** Section contact **/
#contact {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

#contact-text {
  width: 55%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 1rem;
  text-align: center;
}

#contact-text h2 {
  color: var(--primary-color);
}

#contact-text p {
  color: var(--primary-color);
  font-weight: 600;
}

#contact-image {
  width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

#icon-boxes {
  display: flex;
  gap: 20px;
  margin: 20px;
}

.icon-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.icon-box img {
  width: 50px;
  height: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  #contact {
    padding: 1.5rem;
    gap: 15px;
  }

  #contact-image img {
    max-width: 80%;
  }

  .icon-box {
    margin: 10px;
    padding: 8px;
  }

  .icon-box img {
    width: 40px;
  }
}

@media (max-width: 768px) {
  #contact {
    max-width: 800px;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  #contact-text {
    width: 80%;
    text-align: center;
    order: 2; /* Move text below image on mobile */
  }

  #contact-image {
    width: 60%;
    order: 1; /* Image comes first on mobile */
  }

  #contact-image img {
    max-width: 100%;
    height: auto;
  }

  .icon-box img {
    width: 35px;
  }
}

@media (max-width: 480px) {
  #contact {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  #contact-text h2 {
    font-size: 28px;
  }

  #contact-text p {
    font-size: 0.95rem;
  }

  #contact-image img {
    max-width: 90%;
  }

  .icon-box img {
    width: 30px;
  }
}

/* New responsive adjustments for screens below 480px */
@media (max-width: 400px) {
  #contact {
    padding: 0.5rem;
    gap: 0.25rem;
  }

  #contact-text {
    width: 90%;
    padding: 0.5rem;
  }

  #contact-text h2 {
    font-size: 24px;
    margin-bottom: 0.75rem;
  }

  #contact-text p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  #contact-image img {
    max-width: 85%;
  }

  #icon-boxes {
    flex-direction: column;
    margin: 5px 0;
    gap: 5px;
  }

  .icon-box {
    margin: 0;
    padding: 3px;
  }

  .icon-box img {
    width: 25px;
  }

  .icon-box p {
    font-size: 0.75rem;
    margin: 0;
  }
}
/** Styles du Quiz **/
.quiz-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px; /* Largeur augmentée pour accueillir 3 éléments côte à côte pour Appartement */
  max-height: 83vh; /* Limite la hauteur à 83% de la hauteur de la fenêtre */
  background: white;
  padding: 40px 20px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  text-align: center;
  z-index: 1000;
  overflow-y: hidden; /* Permet le défilement si le contenu dépasse */
}

.step {
  display: none;
}

.step h2 {
  font-size: 24px;
  color: #023E7D;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* Styles spécifiques pour l'étape 1 (3 éléments en ligne) */
#step1 .quiz-options ,#step2 .quiz-options{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

#step1 .quiz-option ,#step2 .quiz-option{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
}

/* Styles spécifiques pour l'étape 2 (Maison : grille 2x2, Appartement : grille 1x3) */
#step3 .house-options {
  display: grid;
  grid-template-columns: repeat(2, 0.5fr); /* 2 colonnes pour Maison */
  row-gap: 20px;
  margin: 10px 0;
  justify-items: center;
}

#step3 .apartment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes pour Appartement (côte à côte) */
  gap: 20px;
  margin: 20px 0;
  justify-items: center;
}

#step3 .quiz-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 150px; /* Largeur maximale réduite pour accueillir 3 éléments côte à côte */
}

.quiz-option img {
  margin-bottom: 10px;
}

.step p {
  font-size: 12px;
  color: #333;
  margin: 5px 0;
}

.button-quiz {
  background: #f5f5f5;
  color: #001F5B;
  border: 1px solid #001F5B;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease;
}

.button-quiz:hover {
  background: #001F5B;
  color: white;
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.button-back {
  background: #f5f5f5;
  color: #001F5B;
  border: 1px solid #001F5B;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease;
  gap:5px;

}

.button-back:hover {
  background: #001F5B;
  color: white;
}

.button-next {
  background: #f5f5f5;
  color: #001F5B;
  border: 1px solid #001F5B;
  padding: 10px 30px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
}

.button-next:hover {
  background: #001F5B;
  color: white;
}

.close-quiz {
  position: absolute;
  right: 15px;
  top: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  z-index: 1;
}

.close-quiz:hover {
  color: #333;
}

.step input[type="radio"] {
  margin: 10px 5px;
}

.step input[type="text"],
.step input[type="email"],
.step input[type="tel"] {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}
/** Section aide **/
#aide {
  max-width: 1000px; /* Reduced from 1200px for a more compact layout */
  display: flex;
  flex-direction: column ; /* Ensure row layout on desktop */
  align-items: flex-start; /* Align items at the top for better balance */
  justify-content: space-between; /* Evenly distribute space */
  border-radius: 10px;
  padding: 1.5rem; /* Reduced from 2rem for compactness */
  margin: 1.5rem auto; /* Reduced margin for tighter vertical spacing */
  gap: 2rem; /* Add gap for clear separation between text and quiz */
}

#aide-text {
  flex: 1;
  padding-right: 1.5rem; /* Reduced from 2rem for compactness */
  text-align: left; /* Align text left for consistency with other sections */
}

#aide-text h2 {
  color: var(--primary-color);
  font-size: 38px; /* Slightly smaller for a refined look */
  margin-bottom: 1rem; /* Consistent spacing below heading */
  text-align: left; /* Align left to match paragraph text */
}

#aide-text p {
  color: var(--text-color);
  font-size: 1.2rem; /* Standardize font size */
  line-height: 1.5; /* Consistent line height for readability */
  margin-bottom: 1rem; /* Uniform spacing between paragraphs */
}

#quiz-domo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Align quiz block at the top */
}
/* Inline quiz container */
.quiz-container-inline {
  display: none;
  width: 100%;
  max-width: 450px; /* Reduced from 700px for compactness */
  margin: 0; /* Remove auto margin to align with text */
  background: #fff;
  padding: 1.5rem; /* Reduced from 30px for a tighter layout */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: left;
  overflow-y: auto;
}

.step-title-domo {
    font-size: 1.5em;
    color: #1a3c6e;
    margin-bottom: 20px;
    font-weight: 600;
}

.quiz-options-domo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-button-domo {
   background: #f5f5f5;
  color: #001F5B;
  border: 1px solid #001F5B;
  padding: 10px 30px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
}

.option-button-domo:hover {
    background: #001F5B;
  color: white;
}

label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    color: #333;
}

input[type="checkbox"] {
    margin-right: 10px;
}

select, input[type="text"] {
    padding: 8px;
    margin-left: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.info-form-domo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-form-domo input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.quiz-navigation-domo {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.nav-button-domo {
    background: #f5f5f5;
  color: #001F5B;
  border: 1px solid #001F5B;
  padding: 10px 30px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-button-domo:hover {
    background: #001F5B;
  color: white;
}

/* Afficher la première étape par défaut */
.quiz-container-inline .step#domo-step1 {
    display: block;
}
@media (max-width: 1024px) {
  main section {
    padding: 1rem;
  }

  #aide {
    flex-direction: column; /* Stack vertically */
    gap: 1.5rem; /* Reduced gap for compactness */
  }

  #aide-text, #quiz-domo {
    padding-right: 0;
    max-width: 100%; /* Full width on smaller screens */
  }

  .quiz-container-inline {
    max-width: 400px; /* Adjust for tablet */
    padding: 1rem;
  }

  h2 {
    font-size: 28px; /* Smaller for tablets */
  }

  h3 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  main section {
    padding: 0.75rem;
  }

  #aide {
    gap: 1rem; /* Further reduce gap */
  }

  .quiz-container-inline {
    max-width: 90%;
    padding: 0.75rem;
  }

  h2 {
    font-size: 24px; /* Smaller for mobile */
  }

  h3 {
    font-size: 20px;
  }

  p {
    font-size: 0.95rem; /* Slightly smaller for mobile */
  }
}
/** Styles du Carrousel (Nouveau Design) **/
.carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 50px auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.carousel .slide {
  position: relative;
  min-width: 100%;
  height: 500px; /* Hauteur par défaut pour desktop */
}

.carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Assure que l'image couvre tout l'espace sans déformation */
  border-radius: 15px;
}

/* Superposition de dégradé pour améliorer la lisibilité du texte */
.carousel .slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
  border-radius: 15px;
}

.carousel .text-overlay {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: white;
  z-index: 1;
  max-width: 50%;
}

.carousel .text-overlay h2 {
  font-size: 38px;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel .text-overlay p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel .text-overlay button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel .text-overlay button:hover {
  background-color: #206aff;
  transform: scale(1.05);
}

/* Boutons de navigation (précédent/suivant) */
.carousel .prev,
.carousel .next {
  position: absolute;
  top: 45%;
  background-color: rgba(255, 255, 255, 0.8);
  color: #001F5B;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 1;
}

.carousel .prev:hover,
.carousel .next:hover {
  background-color: white;
}

.carousel .prev {
  left: 20px;
}

.carousel .next {
  right: 20px;
}

/* Points de navigation */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 1;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background-color: white;
  transform: scale(1.3);
}

.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/** Requêtes média pour la responsivité **/
@media (max-width: 768px) {
  body h2 {
      font-size: 28px;
  }

  main {
      padding: 1rem;
  }

  #hero {
      padding: 1rem;
  }

  
  #hero h1 {
      font-size: 24px;
  }

  .feature-grid {
      grid-template-columns: repeat(1, 1fr);
  }

  .feature {
      padding: 1rem;
  }

  #features h3 {
      font-size: 32px;
  }

  #smart-home,
  #etude-pro,
  #controlez-tout,
  #protection {
      padding: 1rem;
      text-align:left;
  }


  #smart-image img {
      display: none;
  }

  #etude-text,
  #controlez-text {
      width: 100%;
      text-aling:left;
  }


  .icon-box {
      margin-bottom: 1rem;
  }

  .quiz-container {
      width: 90%;
      max-width: 400px; /* Ajusté pour mobile */
      padding: 30px 15px;
      overflow: auto;
  }

  #step1 .quiz-options {
      flex-direction: column;
      align-items: center;
  }

  #step1 .quiz-option ,#step2 .quiz-option{
      width: 100%;
      max-width: 180px;
  }

  #step3 .house-options,
  #step3 .apartment-options {
      grid-template-columns: 1fr; /* Empiler verticalement sur mobile */
      gap: 15px;
  }

  #step3 .quiz-option {
      width: 100%;
      max-width: 180px;
  }

  /* Responsivité du carrousel pour mobile */
  .carousel {
      margin: 20px auto;
  }

  .carousel .slide {
      height: 300px; /* Réduire la hauteur pour mobile */
  }

  .carousel .text-overlay {
      bottom: 20px;
      left: 20px;
      max-width: 80%;
      text-align: center;
  }

  .carousel .text-overlay h2 {
      font-size: 1.5rem;
  }

  .carousel .text-overlay p {
      font-size: 0.9rem;
      margin-bottom: 15px;
  }

  .carousel .text-overlay button {
      padding: 8px 20px;
      font-size: 0.9rem;
  }

  .carousel .prev,
  .carousel .next {
      width: 40px;
      height: 40px;
      font-size: 1.2rem;
  }

  .carousel .prev {
      left: 10px;
  }

  .carousel .next {
      right: 10px;
  }

  .carousel-dots {
      bottom: 10px;
  }

  .carousel-dot {
      width: 10px;
      height: 10px;
  }
}

@media (max-width: 1024px) {
  body h2 {
      font-size: 38px;
  }

#hero-text{
  width : 300px;
  height : auto;
}

  #hero h1 {
      font-size: 36px;
  }

  .feature-grid {
      gap: 1rem;
      grid-template-columns: repeat(2, 1fr);
  }

  .feature {
      padding: 1rem;
  }

  #smart-home,
  #protection {
      flex-direction: column;
      padding: 1.5rem;
  }

  #smart-text,
  #etude-text,
  #controlez-text,
  #protection-text {
      padding-right: 0;
      margin-bottom: 1.5rem;
  }



  #aide {
      flex-direction: column !important;
      height: auto;
  }

  #aide-text,
  #quiz-domo {
      width: 100%;
      padding-right: 0;
      margin-bottom: 1.5rem;
  }



  /* Responsivité du carrousel pour tablette */
  .carousel .slide {
      height: 400px; /* Hauteur intermédiaire pour tablette */
  }

  .carousel .text-overlay {
      max-width: 60%;
  }

  .carousel .text-overlay h2 {
      font-size: 38px;
  }

  .carousel .text-overlay p {
      font-size: 1.2rem;
  }
}


/* Pop-up CSS */
.custom-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  max-width: 550px;
  width: 90%;
  max-height: 70vh;
  overflow-y: auto;
  text-align: left;
  font-family: 'Tahoma', sans-serif;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.custom-popup.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.custom-popup .popup-content {
  position: relative;
  text-align:left;
}

.custom-popup h2 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 15px;
  color:#023E7D;
}

.custom-popup p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #5C677D;
  margin-bottom: 20px;
}

.custom-popup .close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #7D8597;
  cursor: pointer;
  transition: color 0.3s ease;
}

.custom-popup .close-popup:hover {
  color: #002855;
}

.custom-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.custom-popup-overlay.show {
  display: block;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .custom-popup {
      max-width: 450px;
      padding: 20px;
      max-height: 60vh;
  }
  .custom-popup h2 {
      font-size: 38px
  ;
  }
  .custom-popup p {
      font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .custom-popup {
      max-width: 350px;
      padding: 15px;
      max-height: 50vh;
  }
  .custom-popup h2 {
      font-size: 38px
  ;
  }
  .custom-popup p {
      font-size: 0.8rem;
  }
}
/* Reviews Section */
.reviews-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 2rem;
  text-align: center;
}

.reviews-heading {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-transform: uppercase;
  position: relative;
}

.reviews-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

.reviews-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.review-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 300px;
  text-align: left;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.review-product a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.review-product a:hover {
  color: #206aff;
}

.review-rating {
  margin: 10px 0;
}

.review-rating .star {
  font-size: 1.2rem;
  color: #d1d5db; /* Gray for empty stars */
}

.review-rating .star.filled {
  color: #f59e0b; /* Amber for filled stars */
}

.review-text {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 10px 0;
  position: relative;
}

.review-text .quote-mark {
  position: absolute;
  left: -15px;
  top: -5px;
  font-size: 2rem;
  color: var(--primary-color);
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-top: 10px;
}

.review-author {
  font-weight: 600;
  color: #1f2937;
}

.review-date {
  color: #6b7280;
}

.no-reviews {
  font-size: 1.2rem;
  color: #6b7280;
  padding: 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .reviews-heading {
    font-size: 2.4rem;
  }

  .review-card {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .reviews-heading {
    font-size: 2rem;
  }

  .reviews-container {
    flex-direction: column;
    align-items: center;
  }

  .review-card {
    max-width: 100%;
    width: 90%;
  }
}

@media (max-width: 480px) {
  .reviews-heading {
    font-size: 1.8rem;
  }

  .review-text {
    font-size: 0.95rem;
  }

  .review-meta {
    flex-direction: column;
    gap: 5px;
    text-align: left;
  }
}