* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* En lien avec le lien d'évitement pour remonter en haut de la page. Permet de faire défiler doucement */
html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(30deg,#cebfbf, #db9c87,#eea687, #e1bbab, #d8d6d6 );
  color: #000000;
  line-height: 1.6;
}

header {
  background-color: #845D5E;
  padding: 20px 50px 0px 30px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left .logo {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.25rem;
  padding-left: 20px;
}

.nav-right {
  display: flex;
}

.nav-right a {
  margin-left: 3rem;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.25rem;
}

a.active-page, a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: white;
  color: inherit; 
  font-weight: bold;
  color: white;
  font-size: 1.25rem;
}

@media (max-width: 891px) {
  .nav-right a {
    font-size: 1.1rem;
  }

  .nav-left .logo {
    padding-left: 20px;
    font-size: 1rem;
  }

  header {
    padding: 20px;
  }

  a.active, a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: white;
  color: inherit; 
  font-weight: bold;
  color: white;
  font-size: 1.1rem;
}
}

.logo-min {
  text-transform: uppercase;
}

main {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0rem;   
}

/* Barre de recherche */
form {
    text-align: center;
    margin: 0px;
}
/* Champs de la barre de recherche */
input[type="search"] {
    padding: 0.5rem;
    width: 200px;
    font-size: 1rem;
    font-family: "Baskervville", serif;
}

input[type="submit"] {
    padding: 0.5rem 1rem;
    background-color: #845D5E;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: #ffffff;
    font-family: "Baskervville", serif;
}

input[type="submit"]:hover {
  background-color: #834243;
}


/* Centrer le formulaire */
#formFiltres {
  text-align: center;
}

/* Labels  */
#formFiltres label {
  margin-right: 0rem;
  margin-left: 0.8rem;
  font-weight: bold;
  font-family: "Baskervville", serif;
}

/* Style des menus déroulants */
#formFiltres select {
  padding: 0.5rem;
  margin: 0.5rem;
  width: 200px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: "Baskervville", serif;
  cursor: pointer;
  background-color: #ffffff;
}

/* Style du bouton "Supprimer la sélection" */
a.bouton-lien {
  padding: 0.5rem 1rem;
  background-color: #845D5E;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 3%;
  font-family: "Baskervville", serif;
  color: rgb(255, 255, 255);
  text-decoration: none;
}

a.bouton-lien:hover {
  background-color: #834243;
}
.bouton{
  padding-left: 20px;
}

h1{
    font-family: "Overlock SC";
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #000;
    padding-left: 20px;
}

#conteneur-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 5rem;
}

.card {
    background-color: #ffeadc;
    border: 2px solid #ffffff;
    border-radius: 30px;
    padding: 15px;
    width: 235px;
    text-align: center;
    box-shadow: 2px 2px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
    position: relative;
}

.card:hover {
    transform: scale(1.05);
    border: 3px solid #ffffff;
    box-shadow: 4px 4px 20px rgba(0,0,0,0.2);
}
.card h2 {
  font-size: 1.30em;
  margin-bottom: 10px;
  color: #333;
  font-family: "Overlock SC";
}

.card p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* lien d'évitement pour remonter vers le haut de la page*/
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #845D5E;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 1rem;
  display: none;
  font-family: "baskervville, serif";
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
}

footer a {
    color: #fff;
    text-decoration: underline;
}


/* Style du bouton Like */
.like-button {
  font-size: 24px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #555; 
  transition: color 0.3s ease, transform 0.2s ease; 
}

/* Couleur du bouton lorsqu'il est "liké" */
.like-button.liked {
  color: #a50101; 
  transform: scale(1.1); 
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}
