@font-face {
  font-family: 'UpstairSans';
  src: url('../fonts/upstair-sans/UpstairSans.woff2') format('woff2'),
       url('../fonts/upstair-sans/UpstairSans.woff') format('woff'),
       url('../fonts/upstair-sans/UpstairSans.ttf') format('truetype'),
       url('../fonts/upstair-sans/UpstairSans.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
/* Page d'acceuil. Menu de navigation */

.body {
  background-color: #ffffff;
}
/* Page d'acceuil. Menu de navigation */

.navbar {
  height: 80px; /* fixe la hauteur */
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  background-color: #fff;
  border-top: 1px solid #f3dede;
  padding: 15px 40px;
  font-family: 'UpstairSans', sans-serif;
  /* Animation d’apparition subtile */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  overflow: visible; /* permet au logo de dépasser si besoin */
}
/* Classe ajoutée automatiquement via JS */
.navbar.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-logo img {
  height: 90px; /* agrandis ton logo */
  object-fit: contain;
}
/* --- LIENS CENTRÉS --- */
.nav-links {
  display: flex;
  justify-content: center;
  flex: 1; /* prend tout l’espace pour centrer */
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #6e6684;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #9b8cf2;
}
.menu-toggle {
  display: none;
  font-size: 32px;
  color: #9f94ff;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
/* Bouton à droite */
  .btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #D6CFFF 0%, #ABA0F9 100%);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 13px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
 
  .btn-nav:hover,
  .btn-nav:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(171, 160, 249, 0.4);
  }
 
  .btn-nav svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }





  /* 🌿 Section connexion */
.connexion {
  background: linear-gradient(171deg,
    #ffffff 0%,
    #fefefe 46%,
    #F8F4F3 74%,
    #EBE3F5 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 48px 50px;
  width: 350px;
  box-shadow: 0 10px 40px rgba(164, 142, 242, 0.18);
  text-align: center;
  margin: 60px auto;
  border: 1px solid rgba(214, 207, 255, 0.5);
}

.connexion h1 {
  font-size: 26px;
  margin-bottom: 25px;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: #201f29;
  letter-spacing: 0.5px;
}

/* Message d'erreur */
.connexion .erreur {
  background: #FBEAEC;
  color: #C0455B;
  border: 1px solid #EFC6CC;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Playfair Display', sans-serif;
  font-size: 0.85em;
  margin-bottom: 20px;
  text-align: left;
}

/* Formulaire */
.connexion form label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-size: 0.85em;
  font-family: 'Playfair Display', sans-serif;
  font-weight: 500;
  color: #5f5a78;
}

.connexion form input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 22px;
  border: 1.5px solid #EBE3F5;
  border-radius: 12px;
  background: #ffffff;
  color: #201f29;
  font-family: 'Playfair Display', sans-serif;
  font-size: 0.95em;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.connexion form input::placeholder {
  color: #b5aecb;
}

.connexion form input:focus {
  border-color: #A48EF2;
  box-shadow: 0 0 0 4px rgba(164, 142, 242, 0.15);
}

/* Bouton */
.connexion form button {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #A48EF2, #8f7de8);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Playfair Display', sans-serif;
  box-shadow: 0 6px 16px rgba(164, 142, 242, 0.35);
}

.connexion form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(164, 142, 242, 0.45);
}

.connexion form button:active {
  transform: translateY(0);
}

/* Lien inscription */
.connexion .lien-inscription {
  margin-top: 24px;
  font-family: 'Playfair Display', sans-serif;
  font-size: 0.85em;
  color: #5f5a78;
}

.connexion .lien-inscription a {
  color: #A48EF2;
  text-decoration: none;
  font-weight: 600;
}

.connexion .lien-inscription a:hover {
  text-decoration: underline;
}

/*MOT DE PASSE OUBLIE*/
.lien-mdp-oublie {
  text-align: right;
  margin-top: -10px;
  margin-bottom: 20px;
}

.lien-mdp-oublie a {
  font-size: 0.8em;
  color: #A48EF2;
  text-decoration: none;
}

.lien-mdp-oublie a:hover {
  text-decoration: underline;
}








/* FOOTER */

.footer {
  background-color: #F8F4F3;
  color: #5f5a78;
  padding: 60px 80px 30px;
  font-family: 'Playfair Display', serif;
  margin-top: 100px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.footer-logo {
  width: 110px;
  margin-bottom: 8px;
}

.footer-left p {
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: 15px;
  color: #5f5a78;
  font-weight: 300;
    font-family: 'Playfair Display', serif;
}

.footer-links a {
  display: inline-block;
  border: 1px solid #dcd6f8;
  border-radius: 20px;
  padding: 6px 14px;
  margin-right: 8px;
  color: #a48ef2;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 15px;
  background-color: #fbfaf9;
    font-family: 'Playfair Display', serif;
}

.footer-links a:hover{
    border-color: #ABA0F9;
    color: #4d43a8;
    transform: none;
    box-shadow: none;
    transition: border-color .2s ease, color .2s ease;
  }

.footer-middle h4,
.footer-right h4 {
  color: #a48ef2;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 400;
}

.footer-middle ul,
.footer-right ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
  font-weight: 300;
}

.footer-middle li,
.footer-right li {
  margin-bottom: 8px;
  font-size: 15px;
}

.footer-middle a,
.footer-right a {
  color: #5f5a78;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 15px;
}

.footer-middle a:hover,
.footer-right a:hover {
  color: #a48ef2;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e6e0f8;
  padding: 20px 80px;
  width: 100vw; /* prend toute la largeur de la fenêtre */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

.footer-bottom p{
  font-size: 14px;
  color: black;
  margin: 0;
}
.heart {
  color: #a48ef2;
}

@media (max-width: 768px) {

  .footer {
    padding: 50px 24px 30px;
    margin-top: 60px;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
  }

  .footer-left,
  .footer-middle,
  .footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-links a {
    margin-right: 0;
  }

  .footer-middle ul,
  .footer-right ul {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    text-align: center;
  }

}



/*bouton demander un devis, section de fin*/
.button-container {
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center; /* centre verticalement si tu veux */
  margin-top: 40px; /* espace au-dessus du bouton */
}
.button{
  padding: 14px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #D6CFFF 0%, #ABA0F9 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid transparent;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
    margin-right: 12px;
    margin-bottom: 24px;
    transition: transform .2s ease, box-shadow .2s ease;
    font-size: 16px;
    font-weight: 600;
}
.button:hover {
  box-shadow: 0 8px 20px rgba(171, 160, 249, .35);
  transform: translateY(-1px);
}





/*respnsive nav*/
@media (max-width: 900px) {

  .navbar {
    justify-content: space-between;
    padding: 15px 24px;
  }

  .nav-logo {
    order: 1;
  }

  .nav-logo img {
    height: 60px;
  }

  .menu-toggle {
    order: 2;
    display: block;
    font-size: 34px;
    color: #201f29;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    line-height: 1;
    z-index: 101;
    position: relative;
    transition: transform 0.3s ease;
  }

  .menu-toggle.active {
    transform: rotate(90deg);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    padding: 100px 32px 40px;
    gap: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.4s ease;
    z-index: 100;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #EBE3F5;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 18px 0;
    font-size: 1.05em;
    color: #201f29;
  }

  .nav-links a:hover {
    color: #A48EF2;
  }

  .btn-nav {
    display: none;
  }

}

/* Overlay sombre derrière le menu quand il est ouvert */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(32, 31, 41, 0.4);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}
