/* ============== GLOBAL / RESET ============ */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #101820;
  color: #E1E8EB;
  /* fond global */
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh
}

main {
  /* on prend tous l'espace possible pour "coller" le footer en bas */
  flex: 1;
}

li {
  list-style: none;
}


.btn {
  border: solid 2px #DA614C;
  background-color: #DA614C;
  color: #E1E8EB;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover,
.btn:active {
  background-color: transparent;
  border: solid 2px #DA614C;
  color: #E1E8EB;
  outline: none;
}

.custom-alert {
  position: fixed;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: 50%;
  height: auto;
  z-index: 2000;
}


/* ============== NAVBAR ==================== */
nav.navbar {
  background-color: #0B1D26;
  /* fond de la barre de navigation */
}

.navbar-brand img {
  margin-right: 1rem;
}

/* --- BRAND (logo + texte) --- */
.navbar-brand {
  font-weight: 700;
  color: #E1E8EB;
  /* texte du brand */
}

.navbar-brand:hover {
  color: #DA614C;
  /* hover du brand */
}

/* --- LIENS DU MENU --- */
.navbar-nav .nav-link {
  color: #E1E8EB;
  /* texte des liens du menu */
  font-weight: 500;
  /* un peu plus “gras” */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #DA614C;
  /* hover/focus des liens */
}

/* --- DROPDOWN --- */
.dropdown-menu {
  background-color: #0B1D26;
  /* fond sombre semi-transparent */
  border: none;
  /* pas de bordure visible */
}

.dropdown-item {
  color: #E1E8EB;
  /* texte blanc cassé */
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item::selection {
  background-color: transparent;
  /* pas de fond sur hover */
  color: #DA614C;
  /* texte hover en #DA614C */
}

/* --- TOGGLER (icône hamburger sur mobile) --- */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23E1E8EB' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:hover .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23DA614C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============== FOOTER ==================== */
footer {
  background-color: #1C2A30;
  color: #E1E8EB;
  /* Couleur de texte globale */
  width: 100%;
}

footer a {
  color: #E1E8EB;
  /* Même couleur que le texte */
  text-decoration: none;
  /* Pas de soulignement */
}

footer a:hover {
  color: #DA614C;
  /* Couleur au survol */
  text-decoration: none;
  /* Toujours pas de soulignement */
}

/* ============== INDEX PAGE ================ */
/* --- Vidéo de fond + overlay --- */
.video-background {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.video-overlay h1,
.video-overlay p {
  margin: 0;
  color: #E1E8EB;
}

.video-overlay h1 {
  font-size: 3rem;
}

/* --- Bannières de catégories (Index) --- */
.categories-banners {
  width: 100%;
  margin: 0;
  padding: 0;
}

.banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  cursor: pointer;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-banner);
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  transition: filter 0.5s ease;
  z-index: 1;
}

.banner h2 {
  position: relative;
  z-index: 2;
  color: #fff;
  transition: transform 0.5s ease;
  margin: 0;
  line-height: 300px;
  /* Centrage vertical */
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  /* Pour plus de lisibilité */
}

.banner:hover::before {
  filter: blur(0);
}

.banner:hover h2 {
  transform: scale(1.3);
  color: #DA614C;
}

/* ============== CATEGORY PAGE ============= */
/* --- Header visuel de la catégorie --- */
.category-header {
  position: relative;
  width: 100%;
  height: 40vh;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.category-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.category-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #E1E8EB;
  text-align: center;
}

.category-overlay h1 {
  font-size: 2.5rem;
  margin: 0;
}

.category-overlay p {
  font-size: 1rem;
  margin: 0;
}

/* --- Panneau de navigation horizontal (catégories) --- */
.categories-horizontal {
  display: flex;
  width: 100%;
  height: 10vh;
}

.categories-horizontal .banner {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: auto;
}

.categories-horizontal .banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-image: var(--bg-cat);
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  transition: filter 0.5s ease;
  z-index: 1;
}

.categories-horizontal .banner h2 {
  font-size: clamp(1rem, 3vw, 2rem);
  position: relative;
  z-index: 2;
  color: #E1E8EB;
  transition: transform 0.5s ease;
  margin: 0;
  line-height: 10vh;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.categories-horizontal .banner:hover::before {
  filter: blur(1px);
}

.categories-horizontal .banner:hover h2 {
  transform: scale(1.3);
  color: #DA614C;
}

/* --- Carte d'éléments (dans la liste de catégorie) --- */
.card {
  position: relative;
  background: transparent;
  border: 2px solid #0B1D26;
  overflow: hidden;
  padding: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-card);
  background-size: cover;
  background-position: center;
  filter: blur(15px);
  transform: scale(1.5);
  z-index: 1;
}

.card-overlay {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 10px;
}

.card-title {
  color: #E1E8EB;
  margin: 0;
  font-size: 1rem;
}

.card-dino {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.card-dino img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card:hover .card-dino img {
  transform: scale(1.1);
}

/* ============== DETAILS PAGE ============== */
/* --- Gros bloc : image, nom, description --- */
.big-block {
  text-align: center;
  margin-bottom: 2rem;
}

.big-block img {
  max-width: 100%;
  height: auto;
  margin-top: 6rem;
  margin-bottom: 1rem;
}

/* --- Les mini-cartes (Ressources, Items, etc.) --- */
.mini-card {
  position: relative;
  background: transparent;
  border: 2px solid #000;
  border-radius: 0.25rem;
  overflow: hidden;
  width: 100%;
  max-width: 120px;
  min-width: 120px;
  height: 140px;
  margin: 0 auto;
}

.mini-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-mini-card);
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  transform: scale(1.3);
  z-index: 1;
}

.element-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.element-img {
  max-width: 80%;
  max-height: 80%;
  transition: transform 0.3s ease;
}

.mini-card:hover .element-img {
  transform: scale(1.1);
}

.mini-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  z-index: 4;
  padding: 2px 0;
}

/* --- Grid personnalisée pour l'affichage des mini-cartes --- */
.ark-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  justify-items: center;
}


/* ============== FORMULAIRES ============== */
.container-form {
  color: #1C2A30;
  margin-top: 7rem;
  margin-bottom: 4rem;
  background-color: #E1E8EB;
  max-width: 400px;
  border: solid 3px #1C2A30;
  transition: border 0.3s ease;
}

.container-form:hover {
  border-color: #DA614C;
}

.container-form .btn:hover {
  color: #1C2A30;
}

.container-form a {
  color: #DA614C;
}
