/* POLICES */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Montserrat:wght@300;400;600&display=swap");

/* BASE */
body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(180deg, #1b2b1b, #3e5c3e);
  color: #f4f1e9;
}

/* TITRES */
h1,
h2,
h3 {
  font-family: "Cinzel", serif;
}

/* HEADER */
header {
  background: url("https://images.unsplash.com/photo-1526318472351-bc6c3e4f8b1e")
    center/cover no-repeat;
  padding: 80px 20px;
  text-align: center;
  border-bottom: 5px solid #8b5e3c;
  text-shadow: 2px 2px 10px black;
}

/* NAV */
nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  background: #2a3d2a;
  border-bottom: 2px solid #8b5e3c;
}

nav a {
  color: #f4f1e9;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 20px;
  transition: 0.3s;
}

nav a:hover {
  background: #8b5e3c;
  transform: scale(1.1);
}

/* CONTENU */
main {
  max-width: 1000px;
  margin: auto;
  padding: 40px;
}

/* CARTES */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
}

.card {
  width: 250px;
  margin: 20px;
  text-align: center;
  text-decoration: none;
  color: white;

  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #8b5e3c;
  border-radius: 15px;
  overflow: hidden;

  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  transition: 0.3s;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: contrast(1.1) saturate(1.2);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px black;
}

/* PAGES DINOS */
.dino-page {
  max-width: 800px;
  margin: auto;
  padding: 40px;
  text-align: center;
}

.dino-img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
}

.dino-info {
  text-align: left;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 15px;
}

/* BOUTONS */
button,
.back-button {
  display: inline-block;
  background: #8b5e3c;
  color: white;
  text-decoration: none;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover,
.back-button:hover {
  background: #a97142;
  transform: scale(1.1);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #2a3d2a;
  border-top: 2px solid #8b5e3c;
}

/* ANIMATION */
@keyframes tremor {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(2px);
  }
  75% {
    transform: translateX(-2px);
  }
}

.tremble {
  animation: tremor 0.3s infinite;
}
