html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(255, 204, 0, 0.32);
  color: #f9fafb;
}

/* NAV LINKS */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #fbbf24;
}
.nav-link:hover::after {
  width: 100%;
}

/* LANGUAGE BUTTONS */
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(17, 24, 39, 0.7);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.lang-btn:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.9);
  outline-offset: 2px;
}
.lang-btn.active {
  opacity: 1;
  transform: scale(1.05);
  border-color: rgba(251, 191, 36, 0.9);
}

.lang-flag {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  object-fit: cover;
  display: block;
}

/* TEAM ANIMATION (used once, defined globally) */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.team-animate {
  opacity: 0;
  animation: fadeSlideUp 1s ease-out forwards;
}

/* RUNE STUFF (JS relies on class names) */
.rune-stone {
  position: fixed;
  font-family: "Cinzel", serif;
  color: rgba(214, 199, 168, 0.56);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  text-shadow: 0 0 4px rgba(255, 215, 130, 0.2);
  transition: opacity 0.3s;
}

.legendary {
  color: rgba(255, 216, 107, 0.75);
  text-shadow: 0 0 8px rgba(255, 230, 120, 0.45);
}

.class-image {
  width: 100%;
  height: 10rem;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
  margin-bottom: 0.85rem;
  padding: 0.65rem;
  background: rgba(17, 24, 39, 0.65);
}

.section-card-title {
  text-align: center;
}

.copy-justify {
  text-align: justify;
  text-justify: inter-word;
}

/* chaque carte membre occupe la pleine largeur sur mobile, ~300px sinon */
#team .flex > div {
  flex: 0 1 300px;
  width: 300px;
}

/* boutons de soutenances colles en bas de chaque carte, peu importe la hauteur du titre */
#soutenances .grid > div {
  display: flex;
  flex-direction: column;
}
#soutenances .grid > div > a,
#soutenances .grid > div > button {
  margin-top: auto;
}

.is-locked {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.rune-fragment {
  position: fixed;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  font-family: "Cinzel", serif;
  opacity: 1;
}

#rune-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
}