/* ============================= */
/*        Police & Reset         */
/* ============================= */

/* Importation police Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Reset général et police par défaut */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background-color: #def1e2;  /* Vert pastel doux */
  color: #0D0D0D;             /* Presque noir pour le texte */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}


/* ============================= */
/*            Header             */
/* ============================= */

header {
  background-color: #172940; /* bleu très foncé */
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px; /* taille logo */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #F24405; /* rouge vif au survol */
}

.devis-btn {
  background-color: #F24405; /* rouge vif */
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
}


/* ============================= */
/*            Hero               */
/* ============================= */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 40px;
  flex-wrap: wrap;
  background-color: #def1e2; /* Vert pastel doux */
  min-height: 0;
}

.hero img {
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero .text {
  max-width: 500px;
  text-align: center;
}

.hero h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #172940; /* bleu très foncé */
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #0D0D0D;
}

.hero .btn {
  display: inline-block;
  background-color: #F24405; /* rouge vif */
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.hero .btn:hover {
  background-color: #3F688C; /* bleu moyen */
}


/* ============================= */
/*          Services             */
/* ============================= */

.services {
  display: flex;
  justify-content: center;
  gap: 90px;
  padding: 60px 20px;
  background-color: white;
}

.card {
  background-color: #def1e2; /* Vert pastel doux */
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 12px;
  color: #172940; /* bleu très foncé */
}

.services .card h2 {
  margin-bottom: 1rem;
  color: #172940; /* bleu très foncé */
}

.card button,
.service-button {
  background-color: #F24405; /* rouge vif */
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
  margin-top: 12px;
  font-weight: bold;
}

.card button:hover,
.service-button:hover {
  background-color: #3F688C; /* bleu moyen */
}


/* ============================= */
/*           Avantages           */
/* ============================= */

.avantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 60px 20px;
  background-color: #def1e2; /* Vert pastel doux */
  text-align: center;
}

.avantages .box {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.avantages .box h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #172940; /* bleu très foncé */
}

.avantages .box p {
  font-weight: normal;
  font-size: 14px;
  color: #0D0D0D; /* presque noir */
  line-height: 1.5;
}

/* ============================= */
/*            Footer             */
/* ============================= */

footer {
  background-color: #172940; /* bleu très foncé */
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  flex-shrink: 0;
}

/* ============================= */
/*           Contact             */
/* ============================= */

.contact-page {
  max-width: 600px;
  margin: 60px auto;
  padding: 20px;
  width: 90%; /* ajoute une largeur relative pour les petits écrans */
  box-sizing: border-box; /* pour inclure padding dans la largeur */
}

.contact-page h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #172940; /* bleu très foncé */
}

.contact-page form {
  display: flex;
  flex-direction: column;
}

.contact-page label {
  margin: 10px 0 5px;
  font-weight: bold;
  color: #0D0D0D;
}

.contact-page input,
.contact-page textarea {
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #3F688C; /* bleu moyen */
  width: 100%; /* forcer à 100% largeur du parent */
  box-sizing: border-box; /* inclure padding dans largeur */
  color: #0D0D0D;
}

.contact-page button {
  margin-top: 20px;
  padding: 12px;
  background-color: #F24405; /* rouge vif */
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  width: 100%; /* bouton full width sur petits écrans */
}

.contact-page button:hover {
  background-color: #3F688C; /* bleu moyen */
}

/* Responsive for very small screens */
@media (max-width: 480px) {
  .contact-page {
    margin: 30px 10px;
    padding: 15px;
    width: 95%;
  }
}

/* ============================= */
/*          Responsive           */
/* ============================= */

@media (max-width: 768px) {
  .services {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .team {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .hero {
    flex-direction: column;
  }
}
/* ============================= */
/*              TEST             */
/* ============================= */
.header-container {
  display: flex;
  justify-content: space-between; /* espace entre logo / nav / bouton */
  align-items: center;
  position: relative;
  flex-wrap: nowrap;
  width: 100%;
  padding: 0 40px; /* optionnel pour espacer à gauche/droite */
}

/* Pour pousser le menu nav vers la droite */
nav {
  margin-left: 20px; /* espace entre logo et menu */
  flex-grow: 1; /* fait prendre le maximum d'espace entre logo et bouton */
  
  /* Ajouté : transforme nav en flex container avec alignement à droite */
  display: flex;
  justify-content: flex-end; /* pousse les éléments du nav à droite */
}

/* le ul à l’intérieur du nav reste flex en ligne */
nav ul {
  display: flex;
  gap: 20px;

  /* Ajouté : prend toute la largeur du nav */
  width: 100%;
  justify-content: flex-end; /* aligne les liens à droite */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Le bouton hamburger */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 8px 12px;
  flex-shrink: 0;
  outline: none;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: #172940; /* bleu très foncé */
    position: absolute;
    top: 60px; /* ajuster selon hauteur header */
    right: 0;
    border-radius: 8px;
    padding: 10px;
    z-index: 1000;
    min-width: 120px;
    max-width: 300px;
    width: max-content;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }
}


