* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #4a3420 0%, #c9a961 100%);
  color: #ffffff;
  padding: 20px;
}

.header-banner {
  text-align: center;
  padding: 40px 20px;
  background: rgba(120, 70, 30, 0.9);
  border-radius: 15px;
  margin-bottom: 40px;
  border: 3px solid #ffd966;
}

h1 {
  font-size: 3rem;
  color: #ffeb99;
  text-shadow: 3px 3px 8px black;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.3rem;
  color: #ffcc66;
  margin-bottom: 20px;
}

.intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  background: rgba(150, 90, 40, 0.8);
  padding: 25px;
  border-radius: 10px;
  color: #ffffff;
}

/* Added styling for intro image */
.intro-image {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 10px;
  border: 2px solid #ffd966;
  display: block;
}

.creatures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto 50px;
}

.creature-card {
  background: linear-gradient(135deg, rgba(120, 70, 30, 0.95) 0%, rgba(180, 110, 50, 0.95) 100%);
  border: 2px solid #ffd966;
  border-radius: 15px;
  padding: 25px;
}

.creature-icon {
  width: 100%;
  height: 200px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
}

.creature-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.creature-card h2 {
  color: #ffeb99;
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-align: center;
}

.creature-type {
  text-align: center;
  color: #ffcc66;
  font-style: italic;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.creature-desc {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #ffffff;
}

.creature-stats {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  color: #ffffff;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.stat-label {
  color: #ffcc66;
  font-weight: bold;
}

.danger-level {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
  margin-top: 10px;
}

.danger-extreme {
  background: #ff6b4a;
  color: white;
}

.danger-high {
  background: #ff8c42;
  color: white;
}

.danger-medium {
  background: #ffd966;
  color: black;
}

.danger-low {
  background: #99ff99;
  color: black;
}

.survival-tips {
  max-width: 1200px;
  margin: 50px auto;
  background: rgba(120, 70, 30, 0.9);
  padding: 40px;
  border-radius: 15px;
  border: 3px solid #ffd966;
}

.survival-tips h2 {
  color: #ffeb99;
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.tip-box {
  background: rgba(200, 140, 60, 0.4);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #ffd966;
  color: #ffffff;
}

.tip-box h3 {
  color: #ffcc66;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.footer-info {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background: rgba(120, 70, 30, 0.9);
  border-radius: 15px;
  color: #ffffff;
}

.footer-info h3 {
  color: #ffeb99;
  margin-bottom: 15px;
}

.button-link {
  display: inline-block;
  padding: 12px 30px;
  background: #ffd966;
  color: #3d2817;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 5px;
}

.liens {
  margin-top: 30px;
}

#phrase_liens {
  margin-top: 20px; 
  color: #ddd;
}

#mentions_legales {
  text-align: center; 
  padding: 30px; 
  background: rgba(60, 40, 20, 0.9); 
  margin-top: 40px; 
  border-top: 2px solid #ffd966; 
  color: #ddd;
}

#suite_mentions_legales {
  color: #ddd; 
  text-decoration: none; 
  font-size: 0.95rem;
}

.btn-retour {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007BFF; /* bleu par défaut */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-retour:hover {
    background-color: #0056b3; /* bleu plus foncé au survol */
}


@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .creatures-grid {
    grid-template-columns: 1fr;
  }
}
