@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ========================
   RESET & BASE
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: white;
}

/* ========================
   NAV
======================== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.lien {
  display: flex;
  gap: 20px;
}

.lien a {
  text-decoration: none;
  color: #6383a4;
  font-size: 16px;
  padding: 7px 10px;
  border-radius: 6px;
  transition: 0.2s;
}

.lien a:hover {
  font-weight: 600;
  background-color: #f0f4f8;
}

/* Burger menu (caché sur desktop) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #6383a4;
  border-radius: 3px;
  transition: 0.3s;
}

/* ========================
   HERO
======================== */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 400px;
  background-image: url("header\ img.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  color: white;
  letter-spacing: 4px;
  text-decoration: underline;
  text-decoration-color: #6383a4;
  margin-bottom: 16px;
}

.hero-content h2 {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: #d0dce9;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 30px;
}

.hero-btn {
  display: inline-block;
  background-color: #6383a4;
  color: white;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: 0.3s;
}

.hero-btn:hover {
  background-color: #4a6b8a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========================
   MAIN & TITRES
======================== */
main {
  margin: auto;
  max-width: 1250px;
  width: 100%;
  padding: 0 20px;
  background-color: white;
}

.section-title {
  text-align: center;
  color: black;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: 40px 0 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.section-title2 {
  text-align: center;
  color: #4a6b8a;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: 40px 0 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ========================
   NOUS
======================== */
#nous {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 30px;
  padding: 40px 20px;
}

#nous p {
  flex: 1;
  line-height: 1.8;
  color: #333;
}

b {
  color: #6383a4;
}
h2 {
  color: black;
}

#nous img {
  flex-shrink: 0;
  height: 340px;
  width: 440px;
  max-width: 100%;
  object-fit: cover;
  border: 2px solid black;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
}

#nous img:hover {
  box-shadow: 0px 0px 15px black;
}

/* ========================
   SERVICES
======================== */
#services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  margin-bottom: 30px;
}

.serv {
  border: solid 1px #666;
  border-radius: 20px;
  text-align: center;
  padding: 15px;
  background-color: #6383a4;
  transition: 0.3s;
}

.serv:hover {
  box-shadow: 0px 0px 10px black;
}

.serv img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border: 2px solid black;
  border-radius: 10px;
}

.caption {
  color: white;
  font-weight: 600;
  margin-top: 10px;
}

.detail {
  color: #e0eaf3;
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ========================
   TARIFS
======================== */
#tarifs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding: 40px 20px;
}

.tar {
  flex: 1;
  min-width: 200px;
  max-width: 350px;
  padding: 30px;
  background-color: #6383a4;
  text-align: center;
  border: solid 1px #666;
  border-radius: 10px;
  transition: 0.3s;
}

.tar:hover {
  box-shadow: 0px 0px 15px black;
}

.titre {
  color: white;
  font-weight: 600;
  margin-bottom: 10px;
}

.prix {
  color: white;
  font-size: 2rem;
  font-weight: 800;
}

/* ========================
   CHOIX
======================== */
.choix {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 30px;
  line-height: 1.8;
  color: #333;
}

.choix p + p {
  margin-top: 16px;
}

/* ========================
   CONTACT
======================== */
#contact {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 50px 20px;
  background: #f7f7f7;
  flex-wrap: wrap;
}

.formulaire {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.input-box {
  margin-bottom: 20px;
}

.input-box label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: #444;
}

.input-box input,
.input-box textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: 0.25s ease;
  background: #fafafa;
}

.input-box input:focus,
.input-box textarea:focus {
  border-color: #6383a4;
  background: #fff;
  outline: none;
  box-shadow: 0 0 8px rgba(99, 131, 164, 0.3);
}

textarea {
  height: 120px;
  resize: none;
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: #6383a4;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.login-btn:hover {
  background: #4a6b8a;
  transform: translateY(-2px);
}

.infos {
  flex: 0 1 300px;
  min-width: 240px;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.infos p {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.infos ul {
  list-style: none;
  padding: 0;
}

.infos li {
  margin-bottom: 14px;
  font-size: 1rem;
  color: #444;
}

.infos a {
  color: #6383a4;
  text-decoration: none;
  font-weight: 600;
}

.infos a:hover {
  text-decoration: underline;
}

/* ========================
   FOOTER
======================== */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  margin: 0;
  opacity: 0.8;
  transition: 0.3s ease;
}

footer p:hover {
  opacity: 1;
}
.erreur {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
}
.erreur h1 {
  font-size: 150px;
}
.login {
  display: inline-block;
  padding: 12px 28px;
  background: #4a6b8a;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

/* ========================
   RESPONSIVE — TABLETTE (max 900px)
======================== */
@media (max-width: 900px) {
  #nous {
    flex-direction: column;
    padding: 30px 16px;
  }

  #nous img {
    width: 100%;
    height: 260px;
  }

  #services {
    grid-template-columns: 1fr;
  }

  #tarifs {
    flex-direction: column;
    align-items: center;
  }

  .tar {
    width: 100%;
    max-width: 400px;
  }

  #contact {
    flex-direction: column;
    align-items: stretch;
  }

  .formulaire,
  .infos {
    max-width: 100%;
    flex: 1 1 auto;
  }
}

/* ========================
   RESPONSIVE — MOBILE (max 600px)
======================== */
@media (max-width: 600px) {
  nav {
    padding: 10px 16px;
    flex-wrap: wrap;
    position: sticky;
  }

  .burger {
    display: flex;
  }

  .lien {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    padding: 10px 0;
    gap: 0;
    border-top: 1px solid #eee;
  }

  .lien.open {
    display: flex;
  }

  .lien a {
    padding: 12px 16px;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
  }

  .hero {
    background-attachment: scroll; /* fix iOS */
    height: 70vh;
  }

  .hero-content h1 {
    letter-spacing: 2px;
  }

  main {
    padding: 0 12px;
  }

  #nous {
    padding: 20px 0;
  }

  #services {
    padding: 10px 0;
  }

  .serv img {
    height: 200px;
  }

  #tarifs {
    padding: 20px 0;
  }

  .choix {
    padding: 24px 0;
  }

  #contact {
    padding: 24px 0;
  }
}
