/* Black Clover Yugen - Règlement */
:root {
  --bg-primary: #141418;
  --bg-secondary: #1e1e24;
  --bg-card: #25252d;
  --bg-card-hover: #2e2e38;
  --text-primary: #ececef;
  --text-secondary: #a8a8b3;
  --text-muted: #6b6b78;
  --accent: #8b8b96;
  --accent-light: #b4b4be;
  --border: #3a3a45;
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  --site-banner-height: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 139, 150, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 139, 150, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #fff;
}

/* Banderole annonces */
.site-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  padding: 0.65rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
  border-bottom: 1px solid transparent;
  overflow: hidden;
}

.site-banner-marquee {
  width: 100%;
  overflow: hidden;
}

.site-banner-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.site-banner-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-banner-spacer {
  flex-shrink: 0;
  display: block;
  height: 1px;
}

.site-banner-icon {
  flex-shrink: 0;
  font-size: 1.05rem;
}

.site-banner-text {
  font-weight: 500;
}

.site-banner-link {
  flex-shrink: 0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.site-banner--info {
  background: rgba(108, 140, 255, 0.14);
  border-color: rgba(108, 140, 255, 0.35);
  color: #d5deff;
}

.site-banner--info .site-banner-link { color: #eef2ff; }

.site-banner--warning {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

.site-banner--warning .site-banner-link { color: #fffbeb; }

.site-banner--success {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
}

.site-banner--success .site-banner-link { color: #ecfdf5; }

.site-banner--urgent {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.site-banner--urgent .site-banner-link { color: #fff1f2; }

/* Header */
.site-header {
  position: fixed;
  top: var(--site-banner-height);
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(20, 20, 24, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: height var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  height: 60px;
  box-shadow: 0 4px 24px var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-link img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform var(--transition);
}

.logo-link:hover img {
  transform: scale(1.08) rotate(-3deg);
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-links a {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-light);
  transition: width var(--transition), left var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
  left: 20%;
}

/* Search */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 340px;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.search-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(180, 180, 190, 0.12);
  transform: scale(1.02);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.95rem;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 12px 40px var(--shadow);
  z-index: 100;
}

.search-results.visible {
  display: block;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-card-hover);
}

.search-result-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.search-result-excerpt {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.45;
}

.search-highlight {
  background: rgba(251, 191, 36, 0.28);
  color: #fde68a;
  border-radius: 3px;
  padding: 0.05em 0.2em;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.search-result-title .search-highlight {
  background: rgba(251, 191, 36, 0.35);
  color: #fef3c7;
}

.search-result-excerpt .search-highlight {
  background: rgba(251, 191, 36, 0.22);
  color: #fcd34d;
}

.search-result-section {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.search-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.search-filter {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.search-filter:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.search-filter.active {
  background: rgba(180, 180, 190, 0.15);
  border-color: var(--accent-light);
  color: var(--text-primary);
}

.search-kbd-hint {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  gap: 0.15rem;
  pointer-events: none;
}

.search-kbd-hint kbd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-family: inherit;
  line-height: 1.3;
}

.site-header .search-input {
  padding-right: 5.5rem;
}

@media (min-width: 901px) {
  .site-header .search-kbd-hint {
    display: flex;
  }
}

.search-palette {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--header-h) + var(--site-banner-height) + 1.5rem) 1rem 1rem;
}

.search-palette.open {
  display: flex;
}

.search-palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(4px);
}

.search-palette-box {
  position: relative;
  width: min(560px, 100%);
  z-index: 1;
}

.search-palette-box .search-wrapper {
  max-width: 100%;
}

.search-palette-box .search-input {
  padding: 0.9rem 1.2rem 0.9rem 2.8rem;
  font-size: 1rem;
}

.search-palette-box .search-results {
  position: static;
  margin-top: 0.5rem;
  max-height: min(50vh, 400px);
  z-index: auto;
}

.search-palette-hint {
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-palette-hint kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  font-size: 0.7rem;
  font-family: inherit;
}

/* Main */
main {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + var(--site-banner-height) + 2rem);
  padding-bottom: 4rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 4rem;
  position: relative;
  z-index: 10;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px var(--shadow);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.hero-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

.hero-search {
  width: 100%;
  position: relative;
}

.hero-search .search-wrapper {
  max-width: 100%;
  flex: none;
  width: 100%;
}

.hero-search .search-results {
  z-index: 200;
}

.hero-search .search-input {
  padding: 0.85rem 1.2rem 0.85rem 2.8rem;
  font-size: 1rem;
}

/* Communiqué accueil */
.home-announce-section {
  margin-top: -1.5rem;
  margin-bottom: 1.25rem;
}

.home-announce-panel {
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  border: 1px solid transparent;
  border-left-width: 4px;
  box-shadow: 0 8px 28px var(--shadow);
}

.home-announce-head {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.home-announce-badge {
  display: inline-block;
  width: fit-content;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-announce-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0;
}

.home-announce-message {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  white-space: pre-line;
}

.home-announce-until {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.home-announce-until[hidden],
.home-announce-link[hidden],
.home-announce-title[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.home-announce-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  opacity: 0.95;
  transition: opacity var(--transition), transform var(--transition);
}

.home-announce-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.home-announce-panel--info {
  background: rgba(108, 140, 255, 0.1);
  border-color: rgba(108, 140, 255, 0.35);
  border-left-color: #6c8cff;
}

.home-announce-panel--info .home-announce-badge {
  background: rgba(108, 140, 255, 0.18);
  border: 1px solid rgba(108, 140, 255, 0.4);
  color: #c7d2fe;
}

.home-announce-panel--info .home-announce-title {
  color: #eef2ff;
}

.home-announce-panel--warning {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.35);
  border-left-color: #fbbf24;
}

.home-announce-panel--warning .home-announce-badge {
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #fde68a;
}

.home-announce-panel--warning .home-announce-title {
  color: #fffbeb;
}

.home-announce-panel--success {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.35);
  border-left-color: #34d399;
}

.home-announce-panel--success .home-announce-badge {
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #a7f3d0;
}

.home-announce-panel--success .home-announce-title {
  color: #ecfdf5;
}

.home-announce-panel--urgent {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.4);
  border-left-color: #f87171;
}

.home-announce-panel--urgent .home-announce-badge {
  background: rgba(248, 113, 113, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.home-announce-panel--urgent .home-announce-title {
  color: #fff1f2;
}

@media (max-width: 640px) {
  .home-announce-panel {
    padding: 1.1rem 1.15rem;
  }

  .home-announce-title {
    font-size: 1.1rem;
  }
}

/* Teaser items (leaks accueil) */
.item-leaks-section {
  margin-bottom: 1.5rem;
}

.item-leaks-panel {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(167, 139, 250, 0.28);
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(167, 139, 250, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(24, 22, 32, 0.95), rgba(14, 14, 18, 0.98));
  box-shadow: 0 12px 40px var(--shadow);
}

.item-leaks-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: item-leaks-shine 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes item-leaks-shine {
  0%, 70%, 100% { transform: translateX(-100%); }
  85% { transform: translateX(100%); }
}

.item-leaks-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.item-leaks-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.45);
  color: #c4b5fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-leaks-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.item-leaks-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
}

.item-leaks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.85rem;
  max-width: 920px;
  margin: 0 auto;
}

.item-leak-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.55rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(58, 58, 69, 0.85);
  background: rgba(12, 12, 16, 0.75);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  animation: item-leak-in 0.55s ease both;
  animation-delay: calc(var(--leak-i, 0) * 0.07s);
}

@keyframes item-leak-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.item-leak-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(167, 139, 250, 0.12);
}

.item-leak-card--featured {
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.08), rgba(12, 12, 16, 0.85));
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.1);
}

.item-leak-card--featured:hover {
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 32px rgba(251, 191, 36, 0.18);
}

.item-leak-index {
  position: absolute;
  top: 0.45rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.item-leak-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.06), transparent 65%);
}

.item-leak-image-wrap img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
  transition: transform var(--transition);
}

.item-leak-card:hover .item-leak-image-wrap img {
  transform: scale(1.08);
}

.item-leak-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.item-leak-hint {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #c4b5fd;
  text-align: center;
}

.item-leak-desc {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-leak-soon {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #c4b5fd;
}

.item-leak-card--featured .item-leak-soon {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

.item-leaks-footnote {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .item-leaks-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

  .item-leak-card {
    padding: 0.7rem 0.35rem 0.55rem;
  }

  .item-leak-image-wrap {
    width: 72px;
    height: 72px;
  }

  .item-leak-image-wrap img {
    width: 58px;
    height: 58px;
  }
}

/* Nouveautés accueil */
.recent-updates-section {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.recent-updates-panel {
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.08), rgba(52, 211, 153, 0.05));
  border: 1px solid rgba(108, 140, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 8px 28px var(--shadow);
}

.recent-updates-header {
  margin-bottom: 1rem;
}

.recent-updates-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.recent-updates-header h2 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.recent-updates-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.recent-updates-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.recent-updates-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.95rem;
  background: rgba(20, 20, 24, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color var(--transition), background var(--transition);
}

.recent-updates-item:hover {
  border-color: rgba(108, 140, 255, 0.35);
  background: var(--bg-card-hover);
}

.recent-updates-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.recent-updates-item-badge {
  display: inline-block;
  width: fit-content;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recent-updates-item-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-updates-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.recent-updates-item-date {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .recent-updates-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .recent-updates-item-title {
    white-space: normal;
  }
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow);
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.card:hover::before {
  opacity: 1;
}

.card:active {
  transform: translateY(-2px) scale(0.98);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.card-arrow {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--accent-light);
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Page content */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.section-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.section-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.section-block.section-collapsible .section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.section-block.section-collapsible.is-collapsed .section-toggle {
  margin-bottom: 0;
}

.section-block.section-collapsible.is-collapsed .section-block-body {
  display: none;
}

.section-block.section-collapsible .section-toggle h2 {
  margin-bottom: 0;
  flex: 1;
}

.section-chevron {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.section-block.is-collapsed .section-chevron {
  transform: rotate(-90deg);
}

.section-block h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-block h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-primary);
}

.rule-list {
  list-style: none;
}

.rule-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.25rem;
  border-bottom: 1px solid rgba(58, 58, 69, 0.5);
  color: var(--text-secondary);
}

.rule-list li:last-child {
  border-bottom: none;
}

.rule-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.rule-list li strong,
.rule-list li b {
  color: var(--text-primary);
  font-weight: 700;
}

.sanction {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.55rem;
  background: rgba(200, 70, 70, 0.18);
  border: 1px solid rgba(230, 100, 100, 0.45);
  border-radius: 6px;
  font-size: 0.8rem;
  color: #f0a0a0;
}

.highlight-red {
  display: block;
  margin-top: 0.55rem;
  padding: 0.55rem 0.85rem;
  background: rgba(200, 70, 70, 0.1);
  border: 1px solid rgba(230, 100, 100, 0.5);
  border-left: 4px solid #e06060;
  border-radius: 8px;
  color: #f0b0b0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.highlight-green {
  display: block;
  margin-top: 0.55rem;
  padding: 0.55rem 0.85rem;
  background: rgba(60, 160, 90, 0.1);
  border: 1px solid rgba(80, 190, 110, 0.45);
  border-left: 4px solid #50c878;
  border-radius: 8px;
  color: #a8e8bc;
  font-size: 0.88rem;
  line-height: 1.45;
}

.inline-red {
  color: #f0a0a0;
  font-weight: 600;
}

.inline-green {
  color: #80d898;
  font-weight: 600;
}

.ip-display {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 1.1rem;
  color: var(--accent-light);
  margin: 0.5rem 0;
  letter-spacing: 0.03em;
}

.notice-box {
  background: rgba(139, 139, 150, 0.1);
  border-left: 3px solid var(--accent-light);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.notice-box strong {
  color: var(--text-primary);
  font-style: normal;
}

.equivalence-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.equivalence-table th,
.equivalence-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.equivalence-table th {
  color: var(--accent-light);
  font-weight: 600;
}

.equivalence-table td {
  color: var(--text-secondary);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 0.35rem;
}

.tag-forbidden { background: rgba(180, 80, 80, 0.2); color: #e8a0a0; }
.tag-allowed { background: rgba(80, 160, 100, 0.2); color: #a0e8b0; }
.tag-info { background: rgba(139, 139, 150, 0.2); color: var(--accent-light); }

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #3a3a45, #4a4a55);
  border-color: var(--accent);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--shadow);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition), border-color var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-light);
  transform: translateY(-3px);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: var(--accent-light);
}

/* Last updated */
.last-updated-box {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
}

.last-updated-box time {
  color: var(--accent-light);
  font-weight: 600;
}

.footer-updated {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-updated time {
  color: var(--text-secondary);
}

/* Server status */
.server-players {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.server-players.online {
  color: #a0e8b0;
}

.server-players.offline {
  color: #e8a0a0;
}

/* Links page */
.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: all var(--transition);
}

.link-card:hover {
  transform: translateX(6px);
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.link-card-icon {
  font-size: 1.75rem;
  width: 48px;
  text-align: center;
}

.link-card-content h3 {
  margin-bottom: 0.25rem;
}

.link-card-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + var(--site-banner-height));
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    margin: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .search-wrapper {
    display: none;
  }

  .header-inner .search-wrapper.mobile-hidden {
    display: none;
  }

  main .search-wrapper {
    display: block;
    max-width: 100%;
  }

  .last-updated-box {
    white-space: normal;
    text-align: center;
    justify-content: center;
    max-width: 100%;
  }
}

/* Popup d'accueil */
body.welcome-popup-open {
  overflow: hidden;
}

.welcome-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 8, 14, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.welcome-popup-overlay--visible {
  opacity: 1;
}

.welcome-popup-overlay--closing {
  opacity: 0;
  pointer-events: none;
}

.welcome-popup {
  width: min(100%, 480px);
  padding: 2rem 1.75rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(108, 140, 255, 0.18), transparent),
    linear-gradient(165deg, #1a1a28 0%, #12121c 100%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transform: translateY(18px) scale(0.94);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.welcome-popup--visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.welcome-popup-overlay--closing .welcome-popup {
  transform: translateY(12px) scale(0.97);
  opacity: 0;
}

.welcome-popup-logo {
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.2);
}

.welcome-popup-logo--pulse {
  animation: welcome-popup-logo-pulse 2.4s ease-in-out infinite;
}

@keyframes welcome-popup-logo-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.2); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(108, 140, 255, 0.12); }
}

.welcome-popup-badge {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.welcome-popup-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
}

.welcome-popup-message {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  white-space: pre-wrap;
  max-height: 40vh;
  overflow-y: auto;
}

.welcome-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
}

.welcome-popup-link {
  text-decoration: none;
}

.welcome-popup-close {
  min-width: 8rem;
}

.welcome-popup--info {
  border-color: rgba(96, 165, 250, 0.35);
}

.welcome-popup--info .welcome-popup-badge {
  color: #93c5fd;
}

.welcome-popup--warning {
  border-color: rgba(251, 191, 36, 0.35);
}

.welcome-popup--warning .welcome-popup-badge {
  color: #fcd34d;
}

.welcome-popup--success {
  border-color: rgba(52, 211, 153, 0.35);
}

.welcome-popup--success .welcome-popup-badge {
  color: #6ee7b7;
}

.welcome-popup--urgent {
  border-color: rgba(248, 113, 113, 0.45);
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(248, 113, 113, 0.15), transparent),
    linear-gradient(165deg, #22141a 0%, #14121c 100%);
}

.welcome-popup--urgent .welcome-popup-badge {
  color: #fca5a5;
}

@media (prefers-reduced-motion: reduce) {
  .welcome-popup-overlay,
  .welcome-popup,
  .welcome-popup-logo--pulse {
    animation: none !important;
    transition: none !important;
  }

  .welcome-popup-overlay--visible,
  .welcome-popup--visible {
    opacity: 1;
    transform: none;
  }
}

/* Pages statut (404, maintenance) */
.status-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.status-page-main {
  max-width: 520px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.status-page-logo {
  display: block;
  flex-shrink: 0;
  margin: 0;
  border-radius: 50%;
  box-shadow: 0 8px 32px var(--shadow);
}

.status-page-code {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  color: #f87171;
  letter-spacing: -0.04em;
}

.status-page-badge {
  display: inline-block;
  margin: 0;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-page-main h1,
.status-page-main .status-page-message,
.status-page-main .status-page-hint,
.status-page-main .status-page-path {
  width: 100%;
  margin: 0;
}

.maintenance-page {
  background: radial-gradient(ellipse at top, rgba(127, 29, 29, 0.35), transparent 55%), #120a0a;
}

.maintenance-badge {
  background: rgba(248, 113, 113, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fecaca;
  animation: maintenance-pulse 2s ease-in-out infinite;
}

@keyframes maintenance-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(248, 113, 113, 0); }
}

.maintenance-page h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: #fee2e2;
}

.error-page h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.status-page-message {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.maintenance-page .status-page-message {
  color: #fca5a5;
  font-size: 1.1rem;
}

.status-page-hint {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.status-page-path {
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-all;
}

.status-page-path code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
}

.status-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--accent-light);
  color: var(--text-primary);
}
