@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 */

.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 principale - connexion/inscription */
section {
  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);
}

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

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

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', serif;
  font-size: 0.95em;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

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

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

/* Bouton */
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', serif;
  box-shadow: 0 6px 16px rgba(164, 142, 242, 0.35);
}

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

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

/* Liens */
section a {
  color: #A48EF2;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Playfair Display', serif;
  font-size: 0.9em;
}

section a:hover {
  color: #8f7de8;
  text-decoration: underline;
}

/* Champ mot de passe avec œil */
.champ-password {
  position: relative;
  margin-bottom: 8px;
}

.champ-password input {
  margin-bottom: 0;
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.toggle-password:hover {
  opacity: 1;
  background: none;
  transform: translateY(-50%);
}

/* Barre de force du mot de passe */
.force-password {
  width: 100%;
  height: 5px;
  background: #EBE3F5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}

.force-barre {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.3s ease, background 0.3s ease;
}

.force-texte {
  font-size: 0.75em;
  font-family: 'Playfair Display', serif;
  text-align: left;
  margin-bottom: 18px;
  margin-top: 0;
  color: #5f5a78;
  min-height: 14px;
}

/* Erreur confirmation */
.erreur-confirmation {
  color: #C0455B;
  font-size: 0.8em;
  font-family: 'Playfair Display', serif;
  text-align: left;
  margin-top: -10px;
  margin-bottom: 16px;
}

/* Case se souvenir + CGU */
.souvenir,
.cgu {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  text-align: left;
  font-size: 16px;
}

.souvenir input[type="checkbox"],
.cgu input[type="checkbox"] {
  width: auto;
  margin: 2px 0 0 0;
  accent-color: #A48EF2;
  cursor: pointer;
  flex-shrink: 0;
}

.souvenir label,
.cgu label {
  margin: 0;
  font-size: 0.85em;
  color: #5f5a78;
  cursor: pointer;
  line-height: 1.4;
}

.cgu a {
  color: #A48EF2;
  text-decoration: underline;
}

/* Bouton en état chargement */
form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.lien-connexion {
  margin-top: 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: #5f5a78;
}

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

.lien-connexion a:hover {
  text-decoration: underline;
}
.form-row {
  display: flex;
  gap: 16px;
}

.form-group {
  flex: 1;
  min-width: 0; /* évite que les champs débordent sur mobile */
}

.form-group label,
.form-group input {
  width: 100%;
}

/* En dessous de 480px, on repasse en 1 seule colonne pour garder des champs confortables */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}







  
/* 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;
  }

}




/*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;
}
