@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
  /* Couleurs principales */
  --blue-dark:    #0a1628;
  --blue-mid:     #0d2040;
  --blue-card:    #122248;
  --blue-card2:   #1a2f5e;
  --blue-border:  #1e3a6e;
  --gold:         #f5c842;
  --gold-light:   #ffd966;
  --gold-dark:    #c89a0a;
  --accent-cyan:  #4fc3f7;
  --accent-teal:  #00bcd4;
  --text:         #e8f4ff;
  --text-muted:   #7a9cc5;
  --text-dim:     #4a6a9a;

  /* Tiers */
  --tier-s:  #ff4757;
  --tier-a:  #ffa502;
  --tier-b:  #2ed573;
  --tier-c:  #70a1ff;
  --tier-d:  #a4b0be;

  /* Raretés */
  --common:    #a4b0be;
  --rare:      #4fc3f7;
  --epic:      #ce93d8;
  --legendary: #ffd700;
  --champion:  #ff6b6b;

  --nav-h: 68px;
  --mobile-nav-h: 62px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 20px rgba(245,200,66,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--blue-dark);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(79,195,247,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(245,200,66,0.04) 0%, transparent 50%);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--nav-h);
  padding-bottom: var(--mobile-nav-h);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, .orbitron { font-family: 'Orbitron', sans-serif; letter-spacing: 0.02em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; line-height: 1.2; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-muted); }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* ===== DESKTOP NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: linear-gradient(180deg, rgba(10,22,40,0.99) 0%, rgba(13,32,64,0.97) 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245,200,66,0.2);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
  z-index: 200;
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(245,200,66,0.4);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(245,200,66,0.3);
}
.nav-logo span { color: var(--text); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold-light); background: rgba(245,200,66,0.08); }
.nav-links a.active {
  color: var(--gold);
  background: rgba(245,200,66,0.12);
  border: 1px solid rgba(245,200,66,0.2);
}

/* Global search in nav */
.nav-search-wrap {
  position: relative;
  flex-shrink: 0;
}
.nav-search-wrap input {
  background: rgba(18,34,72,0.8);
  border: 1px solid var(--blue-border);
  color: var(--text);
  padding: 7px 14px 7px 36px;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  width: 190px;
  outline: none;
  transition: all 0.3s;
}
.nav-search-wrap input::placeholder { color: var(--text-dim); }
.nav-search-wrap input:focus { border-color: var(--gold); width: 240px; box-shadow: 0 0 0 3px rgba(245,200,66,0.08); }
.nav-search-icon {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
#searchDropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: var(--blue-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 300;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text);
  transition: background 0.15s;
  border-bottom: 1px solid rgba(30,58,110,0.5);
  text-decoration: none;
}
.search-result-item:hover { background: rgba(245,200,66,0.07); color: var(--gold); }
.search-result-item img { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.search-result-name { font-weight: 600; font-size: 0.9rem; }
.search-result-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--mobile-nav-h);
  background: linear-gradient(0deg, rgba(10,22,40,0.99) 0%, rgba(13,32,64,0.97) 100%);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(245,200,66,0.15);
  z-index: 200;
}
.mobile-nav ul {
  display: flex;
  height: 100%;
  list-style: none;
}
.mobile-nav li { flex: 1; }
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  gap: 3px;
  transition: color 0.2s;
  text-decoration: none;
}
.mobile-nav a .mi { font-size: 1.3rem; line-height: 1; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); }

/* ===== LAYOUT ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.page-wrap { padding: 40px 0 60px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 20px 64px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(79,195,247,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(245,200,66,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245,200,66,0.12), rgba(245,200,66,0.06));
  border: 1px solid rgba(245,200,66,0.25);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 22px;
  animation: fadeUp 0.5s ease both;
}
.hero-title {
  margin-bottom: 18px;
  background: linear-gradient(160deg, #ffffff 0%, #c8dfff 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.5s ease 0.1s both;
}
.hero-sub {
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  animation: fadeUp 0.5s ease 0.2s both;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.5s ease 0.3s both;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(30,58,110,0.6);
  animation: fadeUp 0.5s ease 0.4s both;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.hero-stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(245,200,66,0.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,200,66,0.4); color: var(--blue-dark); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--blue-border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }

/* ===== SECTION ===== */
.section { padding: 60px 0; }
.section-hdr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.section-hdr h2 { white-space: nowrap; }
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(245,200,66,0.3), transparent);
}
.section-link { font-size: 0.8rem; white-space: nowrap; color: var(--text-muted); }
.section-link:hover { color: var(--gold); }

/* ===== CARDS ===== */
.card {
  background: var(--blue-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(245,200,66,0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), var(--shadow-gold);
}
.card-inner { padding: 20px; }

/* ===== CARTE GRID ===== */
.cartes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.carte-item {
  background: var(--blue-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.22s;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.carte-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}
.carte-item:hover { border-color: rgba(245,200,66,0.4); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.carte-item:hover::before { opacity: 1; background: var(--gold); }
.carte-item.hidden { display: none; }

.carte-img-wrap {
  width: 72px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--blue-card2);
  border: 2px solid var(--blue-border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.carte-item:hover .carte-img-wrap { border-color: var(--gold); }
.carte-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.carte-nom {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  color: var(--text);
}
.carte-badges {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BADGES ===== */
.badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-elixir {
  background: rgba(156,39,176,0.2);
  color: #ce93d8;
  border: 1px solid rgba(156,39,176,0.3);
}
.badge-elixir::before { content: '💧 '; }
.badge-common  { background: rgba(164,176,190,0.15); color: var(--common);    border: 1px solid rgba(164,176,190,0.25); }
.badge-rare    { background: rgba(79,195,247,0.12);  color: var(--rare);      border: 1px solid rgba(79,195,247,0.25); }
.badge-epic    { background: rgba(206,147,216,0.12); color: var(--epic);      border: 1px solid rgba(206,147,216,0.25); }
.badge-legendary { background: rgba(255,215,0,0.12); color: var(--legendary); border: 1px solid rgba(255,215,0,0.3); }
.badge-champion { background: rgba(255,107,107,0.15); color: var(--champion); border: 1px solid rgba(255,107,107,0.3); }

/* Tier badges */
.tier { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; font-family: 'Orbitron', sans-serif; font-size: 0.82rem; font-weight: 900; flex-shrink: 0; }
.tier-S { background: rgba(255,71,87,0.18);   color: var(--tier-s); border: 1px solid rgba(255,71,87,0.35); }
.tier-A { background: rgba(255,165,2,0.18);   color: var(--tier-a); border: 1px solid rgba(255,165,2,0.35); }
.tier-B { background: rgba(46,213,115,0.15);  color: var(--tier-b); border: 1px solid rgba(46,213,115,0.3); }
.tier-C { background: rgba(112,161,255,0.15); color: var(--tier-c); border: 1px solid rgba(112,161,255,0.3); }
.tier-D { background: rgba(164,176,190,0.12); color: var(--tier-d); border: 1px solid rgba(164,176,190,0.2); }

.tier-lg { width: 52px; height: 52px; border-radius: 10px; font-size: 1.4rem; }

/* ===== TIER LIST ===== */
.tier-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--blue-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.tier-row:hover { border-color: rgba(245,200,66,0.2); }
.tier-cards-row { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; align-items: center; }
.tier-card-mini {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; transition: transform 0.2s;
}
.tier-card-mini:hover { transform: scale(1.1); }
.tier-card-mini img { width: 48px; height: 48px; border-radius: 8px; border: 1px solid var(--blue-border); }
.tier-card-mini span { font-size: 0.55rem; color: var(--text-muted); text-align: center; max-width: 52px; font-weight: 600; }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.search-input, .filter-sel {
  background: var(--blue-card);
  border: 1px solid var(--blue-border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input { flex: 1; min-width: 200px; }
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus, .filter-sel:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,200,66,0.1); }
.filter-sel { cursor: pointer; }
.filter-sel option { background: var(--blue-card); }

/* ===== STAT BARS ===== */
.stat-bar { margin-bottom: 10px; }
.stat-bar-top { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 5px; }
.stat-bar-top span:first-child { color: var(--text-muted); font-weight: 600; }
.stat-bar-top span:last-child { color: var(--gold); font-weight: 700; }
.stat-track { height: 7px; background: var(--blue-card2); border-radius: 4px; overflow: hidden; }
.stat-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-cyan), var(--gold)); transition: width 1s cubic-bezier(0.4,0,0.2,1); width: 0%; }

/* ===== TIPS ===== */
.tips-list { list-style: none; }
.tips-list li {
  display: flex;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(26,47,94,0.5);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text);
  border-left: 3px solid var(--gold);
}
.tips-list li::before { content: '⚡'; flex-shrink: 0; margin-top: 1px; }

/* ===== CHIPS ===== */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-counter { background: rgba(255,71,87,0.12); border: 1px solid rgba(255,71,87,0.25); color: #ff6b81; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.chip-synergy { background: rgba(46,213,115,0.1);  border: 1px solid rgba(46,213,115,0.25); color: #7bed9f; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.chip-build   { background: rgba(79,195,247,0.1);  border: 1px solid rgba(79,195,247,0.25); color: var(--accent-cyan); padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--text-dim); }
.breadcrumb-cur { color: var(--text); }

/* ===== DECK CARD ===== */
.deck-card {
  background: var(--blue-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.25s;
}
.deck-card:hover { border-color: rgba(245,200,66,0.3); box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.deck-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.deck-title { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.deck-archetype { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.deck-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex-shrink: 0; }
.deck-cards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  padding: 14px;
  background: rgba(10,22,40,0.5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--blue-border);
}
.deck-carte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
}
.deck-carte img { width: 52px; height: 52px; border-radius: 8px; border: 1px solid var(--blue-border); }
.deck-carte span { font-size: 0.55rem; color: var(--text-muted); text-align: center; max-width: 60px; font-weight: 600; }
.deck-tips-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s;
  margin-top: 12px;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Rajdhani', sans-serif;
}
.deck-tips-toggle:hover { color: var(--gold); }
.deck-tips-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
}
.deck-tips-body.open { max-height: 400px; padding-top: 14px; }
.deck-tips-body ul { list-style: none; }
.deck-tips-body li {
  padding: 8px 12px 8px 30px;
  background: rgba(26,47,94,0.4);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text);
  position: relative;
}
.deck-tips-body li::before { content: '→'; position: absolute; left: 10px; color: var(--gold); }
.deck-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pros, .cons { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; }
.pros { background: rgba(46,213,115,0.07); border: 1px solid rgba(46,213,115,0.15); }
.cons { background: rgba(255,71,87,0.07); border: 1px solid rgba(255,71,87,0.15); }
.pros-title { color: #7bed9f; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.cons-title { color: #ff6b81; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.pros li, .cons li { list-style: none; padding: 2px 0; color: var(--text-muted); padding-left: 14px; position: relative; }
.pros li::before { content: '+'; position: absolute; left: 0; color: #7bed9f; }
.cons li::before { content: '–'; position: absolute; left: 0; color: #ff6b81; }

/* ===== RANK TABS ===== */
.rank-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--blue-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
}
.rank-tab {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--blue-border);
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rank-tab:hover { color: var(--gold); border-color: rgba(245,200,66,0.3); }
.rank-tab.active { background: rgba(245,200,66,0.12); color: var(--gold); border-color: rgba(245,200,66,0.4); }

/* ===== DETAIL CARD PAGE ===== */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; margin-top: 28px; }
.detail-section {
  background: var(--blue-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 22px;
}
.detail-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.char-header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px;
  background: var(--blue-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.char-portrait {
  width: 140px; height: 140px;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  object-fit: cover;
  background: var(--blue-card2);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(245,200,66,0.2);
}
.char-info { flex: 1; min-width: 200px; }
.char-info h1 { margin-bottom: 12px; }
.char-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.char-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
  gap: 8px;
  margin-top: 14px;
}
.char-stat-item {
  background: rgba(10,22,40,0.6);
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  padding: 8px 12px;
}
.char-stat-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.char-stat-val { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--gold); }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--blue-border); }
.faq-q {
  padding: 18px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
  user-select: none;
}
.faq-q:hover { color: var(--gold); }
.faq-q-icon { color: var(--gold); font-size: 1.2rem; flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-q-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 18px; }

/* ===== PROGRESSION ===== */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--gold), var(--accent-cyan)); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-dot { position: absolute; left: -24px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--blue-dark); box-shadow: 0 0 8px rgba(245,200,66,0.4); }
.timeline-box { background: var(--blue-card); border: 1px solid var(--blue-border); border-radius: var(--radius-sm); padding: 16px 20px; }
.timeline-tag { font-size: 0.7rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }

/* ===== NO RESULTS ===== */
.no-results { text-align: center; padding: 60px 20px; color: var(--text-muted); grid-column: 1/-1; }
.no-results .icon { font-size: 3rem; margin-bottom: 14px; }

/* ===== FOOTER ===== */
footer {
  background: var(--blue-card);
  border-top: 1px solid rgba(245,200,66,0.1);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
footer p { margin: 4px 0; }
.footer-logo { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 900; color: var(--gold); margin-bottom: 10px; }
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.footer-links a { color: var(--text-muted); font-size: 0.8rem; }
.footer-links a:hover { color: var(--gold); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }

/* ===== ELIXIR DISPLAY ===== */
.elixir-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(156,39,176,0.18);
  border: 1px solid rgba(156,39,176,0.3);
  color: #ce93d8;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.88rem;
}
.elixir-pill::before { content: '💧'; font-size: 0.8rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links, .nav-search-wrap { display: none; }
  .mobile-nav { display: block; }
  body { padding-bottom: calc(var(--mobile-nav-h) + 4px); }
  .hero { padding: 36px 20px 36px; }
  .char-header { flex-direction: column; }
  .char-portrait { width: 100px; height: 100px; }
  .detail-grid { grid-template-columns: 1fr; }
  .deck-pros-cons { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .cartes-grid { grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); }
}

/* ── LANG SWITCHER ─────────────────────────────────────────────────── */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.4);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin-left: 12px;
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-btn:hover {
  background: var(--gold);
  color: var(--bg-dark);
  text-decoration: none;
}

/* ── LANG DROPDOWN ─────────────────────────────────────────────────── */
.lang-dropdown {
  position: relative;
  margin-left: 12px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.35);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.lang-btn:hover {
  background: rgba(212,175,55,0.25);
  border-color: var(--gold);
}
.lang-caret {
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.lang-dropdown.open .lang-caret {
  transform: rotate(180deg);
}
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: #0d1f45;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 1000;
}
.lang-dropdown.open .lang-menu {
  display: block;
  animation: fadeDown 0.15s ease;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  text-align: left;
}
.lang-option:hover {
  background: rgba(212,175,55,0.12);
  color: var(--gold);
}
.lang-option-active {
  color: var(--gold);
  font-weight: 700;
  background: rgba(212,175,55,0.08);
}
/* Mobile */
@media (max-width: 768px) {
  .lang-dropdown { margin-left: 0; }
  .lang-menu { right: auto; left: 0; }
}
