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

/* Applique Poppins à tous les éléments */
* {
  font-family: 'Poppins', sans-serif;
}

/* Applique Inter aux en-têtes */
h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
}

a {
  text-decoration: none;
}

.description {
  font-size: 0.8rem;
  color: #777;
  margin-top: 1.0rem;
}

.text-gray {
  color: #777;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 32px;
}



a.text-gray {
  text-decoration: none;
}

a.text-gray:hover {
  color: #FFC269;
}


.card {
  background: white;                         /* White background */
  padding: 30px;                             /* Internal space */
  border-radius: 4px;                        /* Small radius */
  box-shadow: 0 10px 30px rgba(0,0,0,.1);    /* Light shadow */
  transition: ease .3s;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,.2);    /* Darker shadow on hover */
  background-color: rgb(0, 0, 0);
  color: white;
  transition: ease .3s;

  .description {
    color: white;
  }

  .link {
    color: #FFC269;
  }

  .h2 {
    color: white;
  }

  .p {
    color: white;
  }

  .hover-image {
    display: block !important; /* Afficher l'image de survol au survol */
    align-self: center;
  }

  .normal-image {
    display: none; /* Masquer l'image normale au survol */
  }
}

@media (hover: none) and (pointer: coarse) {
  .card:active {
    box-shadow: 0 10px 30px rgba(0,0,0,.2);    /* Darker shadow on hover */
    background-color: rgb(0, 0, 0);
    color: white;
    transition: ease .3s;

    .description {
      color: white;
    }

    .link {
      color: #FFC269;
    }

    .h2 {
      color: white;
    }

    .p {
      color: white;
    }

    .hover-image {
      display: block !important; /* Afficher l'image de survol au survol */
      align-self: center;
    }

    .normal-image {
      display: none; /* Masquer l'image normale au survol */
    }
  }
}

.container {
  max-width: 400px; /* Largeur maximale pour le formulaire */
}

.main {
  min-height: 100vh;
}

.main-login {
  min-height: 100vh;
}

@media(max-width: 1080px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .main {
    margin-top: 50px;
    margin-bottom: 50px;
  }
}

@media(max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .main {
    margin-top: 50px;
    margin-bottom: 50px;
  }
}

.link {
  width: 50px;
  height: 50px;
  padding: 12px;
  margin-top: 2.0rem;
  align-self: center;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  border: white 1px solid;
  font-size: 1.5rem;
  color: #4b4b4b;
}

.link:hover {
  border-color: #FFC269;
}

.image-container {
  align-items: center;
  align-self: center;
}

.form-login {
  background: white;
  padding: 30px !important;
  margin-top: 50px;
  border-radius: 3px;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  max-width: 500px !important;

  .btn {
    width: 100%;
    margin-bottom: 20px
  }

}

.form-login > h2 {
  margin-top: 12px;
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

.form-login input[type="email"], .form-login input[type="password"] {
  font-size: 16px; /* Taille de la police */
  color: #000000; /* Couleur de la police */
  border: 1px solid #ccc; /* Style de la bordure */
  padding: 10px 15px; /* Padding à l'intérieur du champ */
  border-radius: 5px; /* Coins arrondis */
  width: 100%; /* Largeur complète */
  box-sizing: border-box; /* Pour que la largeur inclue le padding et la bordure */
}

.form-login input[type="email"]:focus, .form-login input[type="password"]:focus {
  border-color: #FFC269; /* Couleur de la bordure au focus */
  box-shadow: 0 0 8px rgba(226, 196, 0, 0.3); /* Ombre au focus */
  background-color: #ffc36930;
  outline: none;
}

.row {
  margin: 0 !important;
}


/* Personnalisation du bouton de soumission */
.form-login .btn {
  background-color: #000000; /* Couleur de fond */
  color: white; /* Couleur de la police */
  border: none; /* Pas de bordure */
  padding: 12px 20px; /* Padding */
  border-radius: 4px; /* Coins arrondis */
  cursor: pointer; /* Change le curseur en main */
  width: 100% !important;
  margin-bottom: 20px;
}

.form-login .btn:hover {
  background-color: #FFC269; /* Changement de couleur au survol */
}

.btn .btn-primary {
  width: 100% !important;
}

.card.active .hover-image {
  display: block;
}

.card.active .normal-image {
  display: none;
}
