/* ================================
   RESET CIBLÉ
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}

/* ================================
   BASE
================================ */
html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 100px;
}

/* ================================
   FOND GÉNÉRAL
================================ */
.fond-ecurie {
  min-height: 100dvh;

  background-image: url("../images/fonds/fond_ecurie.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-attachment: fixed;
  background-color: #000;

  overflow-x: hidden;
  color: #fff;
}

/* ================================
   CONTENU PRINCIPAL
================================ */
.content_ecurie {
  width: 92%;
  max-width: 1000px;

  margin: 1.5rem auto;
  padding: 1.2rem;

  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.02),
    rgba(0,0,0,0.04)
  );

  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

/* ================================
   LISTE ANIMAUX
================================ */
.liste-animal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ================================
   BLOC ANIMAL
================================ */
.animal {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 1rem;

  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);

  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* 💻 DESKTOP */
@media (min-width: 769px) {
  .animal {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.2rem;
  }
}

/* ================================
   IMAGE
================================ */
.animal-img {
  width: 100%;
  max-width: 220px;

  height: auto;
  border-radius: 6px;

  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* DESKTOP */
@media (min-width: 769px) {
  .animal-img {
    max-width: 350px;
  }
}

/* ================================
   CARTE BOIS
================================ */
.animal-carte {
  position: relative;
  flex: 1;
  min-width: 0;

  padding: 1.2rem;
  border-radius: 12px;

  background: url("../images/bois.webp");
  background-size: cover;
  background-position: center;

  border: 3px solid #3d2412;

  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.6),
    inset 0 0 15px rgba(0,0,0,0.45);
}

/* DESKTOP */
@media (min-width: 769px) {
  .animal-carte {
    padding: 1.8rem;
  }
}

/* ================================
   CLOUS
================================ */
.animal-carte::before,
.animal-carte::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;

  background: radial-gradient(circle at 30% 30%, #eee, #999 70%, #444 100%);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.animal-carte::before {
  top: 10px;
  left: 10px;
}

.animal-carte::after {
  bottom: 10px;
  right: 10px;
}

/* ================================
   TITRE
================================ */
.animal-carte h2 {
  margin-top: 0;

  text-transform: uppercase;
  letter-spacing: 1.5px;

  font-size: 1.3rem;

  color: #f1e6d2;

  text-shadow:
    0 2px 3px rgba(0,0,0,0.6),
    0 -1px 2px rgba(255,255,255,0.2);

  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: .4rem;
}

/* DESKTOP */
@media (min-width: 769px) {
  .animal-carte h2 {
    font-size: 1.6rem;
  }
}

/* ================================
   TEXTE
================================ */
.animal-carte ul {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0 0;
}

.animal-carte ul li {
  margin: .6rem 0;
  font-size: 0.95rem;
  line-height: 1.5;

  color: #f6ecd7;
  text-shadow:
    1px 1px 2px rgba(0,0,0,0.7),
    0 -1px 1px rgba(255,255,255,0.15);
}

.animal-carte strong {
  color: #ffe9b8;
}

/* DESKTOP */
@media (min-width: 769px) {
  .animal-carte ul li {
    font-size: 1.05rem;
  }
}

/* ================================
   LOUP SECRET
================================ */
.animal.secret-loup {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animal.secret-loup.visible {
  opacity: 1;
  transform: translateY(0);
}

body.loup-isolation .animal:not(.secret-loup) {
  display: none !important;
}