/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --crimson:      #6B1229;
  --crimson-dark: #4A0C1C;
  --crimson-light:#8B1635;
  --gold:         #C9A84C;
  --off-white:    #F0EDE8;
  --warm-gray:    #2A2420;
  --darker:       #080605;
  --text-muted:   #7A6E68;
}
html { scroll-behavior: smooth; }
body { font-family: 'Rubik', sans-serif; background: var(--darker); color: var(--off-white); overflow-x: hidden; margin: 0; }

/* ── SKIP LINK ── */
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--crimson); color: var(--off-white); padding: 0.5rem 1rem; font-family: 'Rubik', sans-serif; font-size: 0.6rem; z-index: 9999; transition: top 0.2s; text-decoration: none; }
.skip-link:focus { top: 0.5rem; }

/* ── NAV ── */
header nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 68px;
  background: rgba(8,6,5,0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(107,18,41,0.25);
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 34px; filter: drop-shadow(0 0 8px rgba(107,18,41,0.6)); }
.nav-logo-text { font-family: 'Rubik', sans-serif; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.2em; color: var(--off-white); }
.nav-links { display: flex; gap: 0; list-style: none; align-items: center; position: absolute; left: 50%; transform: translateX(-50%); height: 68px; }
.nav-links > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav-links > li > a, .nav-dropdown-trigger {
  font-family: 'Rubik', sans-serif; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  padding: 0 1.1rem; height: 68px; display: flex; align-items: center;
  transition: color 0.2s, background 0.2s;
  background: none; border: none; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-links > li > a:hover, .nav-dropdown-trigger:hover { color: var(--off-white); background: rgba(107,18,41,0.08); }
.nav-links > li > a.active { color: var(--off-white); border-bottom-color: var(--crimson-light); }

/* Dropdown */
.nav-dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown-menu {
  display: none; position: absolute; top: 68px; left: 0;
  background: rgba(8,6,5,0.97);
  border: 1px solid rgba(107,18,41,0.3);
  border-top: 2px solid var(--crimson);
  min-width: 200px; z-index: 200;
  padding: 0.4rem 0;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 0.6rem 1.3rem;
  font-family: 'Rubik', sans-serif; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.dropdown-menu a:hover { color: var(--off-white); background: rgba(107,18,41,0.15); }
.dropdown-arrow { font-size: 0.55rem; margin-left: 5px; opacity: 0.5; }

.nav-cta {
  font-family: 'Rubik', sans-serif; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; padding: 0.5rem 1.2rem;
  background: var(--crimson); color: var(--off-white); text-decoration: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s; flex-shrink: 0;
}
.nav-cta:hover { background: var(--crimson-light); }

/* ── SOCIAL SIDEBAR ── */
.social-sidebar {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column;
}
.social-sidebar a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: rgba(8,6,5,0.9);
  border: 1px solid rgba(107,18,41,0.3);
  border-right: none;
  color: var(--text-muted); text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-sidebar a:hover { background: var(--crimson); color: var(--off-white); border-color: var(--crimson); }
.social-sidebar a svg { width: 15px; height: 15px; fill: currentColor; }

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--off-white); transition: transform 0.3s, opacity 0.3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(8,6,5,0.97); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Rubik', sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.2em; color: var(--off-white); text-decoration: none; text-transform: uppercase; transition: color 0.2s; }
.mobile-menu a:hover { color: var(--crimson-light); }
.mobile-menu .mobile-sub { font-size: 0.6rem; color: var(--text-muted); margin-top: -0.8rem; }
.mobile-discord { font-size: 0.6rem !important; padding: 0.8rem 2rem; background: var(--crimson); clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%); }

/* ── PAGE HEADER (bannière de page intérieure) ── */
.page-header {
  padding: 9rem 4rem 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(107,18,41,0.2);
}
.page-header-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(107,18,41,0.12) 0%, transparent 70%), var(--darker);
}
.page-header-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(107,18,41,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(107,18,41,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.page-header-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.page-header-tag { font-family: 'Rubik', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase; color: var(--crimson-light); margin-bottom: 0.8rem; }
.page-header h1 { font-family: 'Rubik', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; color: var(--off-white); line-height: 1; }
.page-header p { font-family: 'Rubik', sans-serif; font-size: 1.05rem; font-weight: 300; color: var(--text-muted); margin-top: 1rem; max-width: 560px; line-height: 1.7; }

/* ── SHARED SECTION ── */
.section { padding: 5rem 4rem; max-width: 1200px; margin: 0 auto; }
.section-tag { font-family: 'Rubik', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase; color: var(--crimson-light); margin-bottom: 0.8rem; }
.section-title { font-family: 'Rubik', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--off-white); line-height: 1.1; margin-bottom: 2.5rem; }
.divider { width: 100%; height: 1px; background: linear-gradient(90deg, var(--crimson), transparent); }

/* ── BUTTONS ── */
.btn-primary { font-family: 'Rubik', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; padding: 0.85rem 1.8rem; background: var(--crimson); color: var(--off-white); text-decoration: none; display: inline-block; clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%); transition: background 0.2s, transform 0.15s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--crimson-light); transform: translateY(-1px); }
.btn-secondary { font-family: 'Rubik', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; padding: 0.85rem 1.8rem; background: transparent; color: var(--gold); border: 1px solid rgba(201,168,76,0.4); text-decoration: none; display: inline-block; clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%); transition: background 0.2s, transform 0.15s; cursor: pointer; }
.btn-secondary:hover { background: rgba(201,168,76,0.08); transform: translateY(-1px); }
.btn-outline { font-family: 'Rubik', sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; padding: 0.6rem 1.2rem; background: transparent; color: var(--text-muted); border: 1px solid rgba(107,18,41,0.4); text-decoration: none; display: inline-block; clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%); transition: color 0.2s, border-color 0.2s; }
.btn-outline:hover { color: var(--off-white); border-color: var(--crimson-light); }

/* ── FOOTER ── */
footer { padding: 3rem 4rem; border-top: 1px solid rgba(107,18,41,0.2); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.footer-logo img { height: 30px; opacity: 0.7; }
.footer-logo-text { font-family: 'Rubik', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; color: var(--text-muted); }
.footer-socials { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.social-btn { font-family: 'Rubik', sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; padding: 0.4rem 0.8rem; border: 1px solid rgba(107,18,41,0.4); color: var(--text-muted); text-decoration: none; clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%); transition: color 0.2s, border-color 0.2s; }
.social-btn:hover { color: var(--off-white); border-color: var(--crimson-light); }
.footer-copy { font-size: 0.72rem; color: var(--text-muted); }

/* ── ANIMATIONS ── */
.fade-up { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.animate { opacity: 0; transform: translateY(28px); }
.fade-up.animate.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fade-up, .fade-up.animate { opacity: 1 !important; transform: none !important; }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--crimson-dark); }

/* ── PLAYER CARDS ── */
.player-card {
  background: var(--warm-gray);
  border: 1px solid rgba(107,18,41,0.2);
  position: relative; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: border-color 0.3s, transform 0.3s;
}
.player-card:hover { border-color: rgba(107,18,41,0.7); transform: translateY(-4px); }
.player-card-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; display: block; filter: grayscale(20%); transition: filter 0.3s; }
.player-card:hover .player-card-photo { filter: grayscale(0%); }
.player-card-info { padding: 1.2rem 1.2rem 1.5rem; }
.player-card-role { font-family: 'Rubik', sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.player-card-ign { font-family: 'Rubik', sans-serif; font-size: 1rem; font-weight: 700; color: var(--off-white); margin-bottom: 0.2rem; }
.player-card-real { font-size: 0.65rem; color: var(--text-muted); font-weight: 300; }
.player-avatar { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, var(--crimson-dark), var(--crimson-light)); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-family: 'Rubik', sans-serif; font-size: 1.3rem; font-weight: 900; color: rgba(255,255,255,0.9); border: 2px solid rgba(107,18,41,0.6); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  header nav { padding: 0 1rem; height: 60px; }
  .nav-links { position: static; transform: none; display: none !important; height: auto; }
  .nav-cta { display: none; }
  .social-sidebar { display: none; }
  .hamburger { display: flex; }
  .nav-logo-text { font-size: 0.7rem; }
  .page-header { padding: 7rem 1.5rem 3rem; }
  .section { padding: 3.5rem 1.5rem; }
  footer { flex-direction: column; align-items: center; text-align: center; padding: 2.5rem 1.5rem; }
  .footer-socials { justify-content: center; }
}
