@import url("https://fonts.googleapis.com/css?family=Poppins:300,400,600,700,800,900");

/* ----------- GLOBAL ----------- */
body {
  background: linear-gradient(135deg, #0a0a0a, #1a0000);
  font-family: 'Poppins', sans-serif;
  color: #f0f0f0;
  margin: 0;
}

h2, p {
  color: white;
}

/* ----------- NAVBAR ----------- */
.gradient-background {
  height: 70px;
  background: linear-gradient(62deg, #6a0000, #2a0000, #000);
  border-bottom: 2px solid #e0c97f;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: bold;
  color: #e0c97f !important;
  text-shadow: 0 0 6px rgba(224, 201, 127, 0.6);
}

.navbar-nav .nav-link {
  color: #f0f0f0 !important;
  font-weight: 500;
  transition: 0.3s;
}

.navbar-nav .nav-link:hover {
  color: #e0c97f !important;
  text-shadow: 0 0 8px rgba(224,201,127,0.8);
}

/* Bouton catégories visible */
.navbar-nav .nav-link.dropdown-toggle {
  background: #660000;
  color: #e0c97f !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  border: 1px solid #b00;
  transition: 0.3s;
}

.navbar-nav .nav-link.dropdown-toggle:hover {
  background: #b00;
  color: #fff !important;
  text-shadow: 0 0 6px rgba(255,255,255,0.6);
}

.dropdown-menu {
  background: #2a0000;
  border: 1px solid #660000;
}

.dropdown-item {
  color: #e0c97f;
  font-weight: 500;
}

.dropdown-item:hover {
  background: #660000;
  color: #fff;
}

/* ----------- TITRE BESTIAIRE (EFFET SANG) ----------- */
.content {
  position: relative;
  margin: 100px 0 80px; /* un peu plus d’espace en bas */
  text-align: center;
}

.content h1 {
  color: #fff;
  font-size: 8em;
  margin: 0;
  font-weight: 900;
  line-height: 1.1;
  position: relative; /* au lieu d’absolute */
  display: inline-block;
  z-index: 1;
}

/* contour du texte */
.content h1:nth-child(1) {
  color: transparent;
  -webkit-text-stroke: 2px #fc0000;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* effet sang animé */
.content h1:nth-child(2) {
  color: #fc0000;
  animation: bloodFlow 4s ease-in-out infinite;
  clip-path: polygon(0% 45%,16% 44%,33% 50%,54% 60%,70% 61%,84% 59%,100% 52%,100% 100%,0% 100%);
}

.bg-light {
    background-color: #400303 !important;
}


@keyframes bloodFlow {
  0%,100% {
    clip-path: polygon(0% 45%,16% 44%,33% 50%,54% 60%,70% 61%,84% 59%,100% 52%,100% 100%,0% 100%);
  }
  50% {
    clip-path: polygon(0% 60%,15% 65%,34% 66%,51% 62%,67% 50%,84% 45%,100% 46%,100% 100%,0% 100%);
  }
}

/* ----------- CARTES BESTIAIRE ----------- */
.card {
  background: #1a0000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #660000;
  box-shadow: 0 8px 15px rgba(0,0,0,0.6);
  transition: transform 0.3s, box-shadow 0.3s;
  color: #fff;
  font-weight: bold;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(224,201,127,0.4);
}

/* Images uniformes */
.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background: #000;
  border-bottom: 2px solid #660000;
}

.card-body {
  background: #260000;
  padding: 20px;
}

.card-title {
  margin-bottom: .75rem;
  font-size: 2rem !important;
  color: #e0c97f;
}

.card-text {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.4;
}

.card-custom {
  font-weight: bold;
  color: #e0c97f !important;
}

/* ----------- HR ----------- */
hr {
  background: #af0000;
}

/* ----------- BORDURES ANIMÉES ----------- */
.moving-border {
  position: relative;
  padding: 4px;
  border-radius: 12px;
}

.moving-border::before,
.moving-border::after {
  content: "";
  position: absolute;
  inset: -0.15rem;
  z-index: -1;
  background: conic-gradient(from var(--angle), #e0c97f, #660000, #b00, #e0c97f);
  border-radius: inherit;
  animation: rotate 8s linear infinite;
}

.moving-border::after {
  filter: blur(12px);
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

/* ----------- RESPONSIVE ----------- */
@media only screen and (max-width: 768px) {
  .row {
    display: table !important;
  }

  .col-md-4 {
    max-width: 100% !important;
    margin-bottom: 45px;
  }

  .container {
    max-width: 100%;
  }

  .content h1 {
    font-size: 3em;
    -webkit-text-stroke: 1px #fc0000;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .dropdown-item {
    font-size: 1.2rem;
  }

  p, span {
    font-size: 1rem;
  }

  h5 {
    font-size: 1.5rem;
  }
}
