/* ════════════════════════════════════════
   HOME — styles spécifiques à index.html
════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  position: relative; margin-top: 0; overflow: hidden;
  height: min(56.25vw, 720px);
  min-height: 420px;
}

/* Carousel */
.hero-carousel { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center center;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(95deg, rgba(6,9,20,0.90) 0%, rgba(6,9,20,0.72) 25%, rgba(6,9,20,0.30) 50%, rgba(6,9,20,0.04) 70%, transparent 85%),
    linear-gradient(180deg, rgba(6,9,20,0.15) 0%, transparent 35%, rgba(6,9,20,0.80) 100%);
}
.hero-body {
  position: relative; z-index: 3;
  max-width: 1440px; margin: 0 auto; padding: 62px 72px 0;
  height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.hero-title { font-family: 'Cinzel', serif; font-weight: 900; font-size: 4.5rem; color: #fff; line-height: 1; margin-bottom: 10px; text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.5); }
.hero-subtitle { font-family: 'Cinzel', serif; font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.62); letter-spacing: 0.38em; text-transform: uppercase; margin-bottom: 26px; }
.hero-desc { font-size: 0.92rem; font-weight: 300; color: rgba(255,255,255,0.78); max-width: 330px; line-height: 1.75; margin-bottom: 38px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid rgba(255,255,255,0.55); color: #fff;
  padding: 12px 28px; font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.hero-cta:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.85); }

/* Flèches de navigation */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4; background: rgba(0,0,0,.42); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22); color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .22s, background .18s, transform .18s;
  padding: 0;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(0,0,0,.7); border-color: rgba(255,255,255,.55); }
.hero-prev { left: 22px; }
.hero-next { right: 22px; }
.hero-prev:hover { transform: translateY(-50%) translateX(-2px); }
.hero-next:hover { transform: translateY(-50%) translateX(2px); }

/* Dots de navigation */
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center; z-index: 4;
  background: rgba(0,0,0,.38); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px; padding: 9px 14px;
}
.hero-dot {
  height: 7px; border-radius: 4px; cursor: pointer;
  transition: width .3s ease, background .3s ease;
  background: rgba(255,255,255,.35);
  border: none; padding: 0;
}
.hero-dot.on  { width: 28px; background: #fff; }
.hero-dot:not(.on) { width: 7px; }
.hero-dot:not(.on):hover { background: rgba(255,255,255,.65); }

/* ── Section principale ── */
.main { background: var(--bg); }
.frame-outer { max-width: 1400px; margin: 0 auto; padding: 36px 28px 52px; }

/* ── 3 colonnes ── */
.three-cols {
  display: grid;
  grid-template-columns: 300px 1fr minmax(256px, auto);
  gap: 20px;
  align-items: start;
}

/* ── Cartes colonnes ── */
.col-news, .col-discover, .col-community {
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(100,140,220,0.12);
  border-radius: 6px;
  padding: 18px 18px 20px;
}

/* ── En-têtes des colonnes ── */
.col-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 11px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(100,140,220,0.14);
}
.col-hdr-title {
  font-family: 'Cinzel', serif; font-size: 0.62rem; font-weight: 700;
  color: rgba(180,200,240,0.7); letter-spacing: 0.26em; text-transform: uppercase;
}
.col-hdr-link {
  font-size: 0.55rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.14em;
  text-decoration: none; transition: color 0.18s;
}
.col-hdr-link:hover { color: var(--accent-h); }

/* ── Actualités ── */
.news-item {
  display: flex; gap: 11px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer; transition: opacity 0.15s; text-decoration: none;
}
.news-item:hover { opacity: 0.78; }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-thumb {
  width: 88px; height: 58px; border-radius: 4px;
  flex-shrink: 0; overflow: hidden; position: relative;
  background-size: cover; background-position: center;
}
.news-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.25) 100%);
}
.news-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.news-title { font-size: 0.79rem; font-weight: 600; color: var(--text); line-height: 1.38; margin-bottom: 6px; }
.news-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.1em; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; }
.tag-off { background: rgba(40,70,180,0.22);  color: #80a8ff; border: 1px solid rgba(60,100,220,0.28); }
.tag-uni { background: rgba(20,90,140,0.22);  color: #60c0e0; border: 1px solid rgba(30,110,160,0.28); }
.tag-gpl { background: rgba(70,40,160,0.22);  color: #a880f0; border: 1px solid rgba(90,50,190,0.28); }
.tag-kr  { background: rgba(200,60,120,0.18); color: #f090b0; border: 1px solid rgba(200,60,120,0.32); }
.news-date { font-size: 0.6rem; color: var(--muted); }
.t1 { background: url('../img-gameplay.jpg') center/cover no-repeat; }
.t2 { background: url('../img-world2.jpg') center/cover no-repeat; }
.t3 { background: url('../img-classes.webp') center/cover no-repeat; }

/* ── Dernières actualités (grille 2×2) ── */
.ln-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ln-card {
  display: flex; flex-direction: column; border-radius: 6px; overflow: hidden;
  text-decoration: none; cursor: pointer;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(100,140,220,.1);
  transition: border-color .2s, transform .18s;
}
.ln-card:hover { border-color: rgba(100,140,220,.3); transform: translateY(-2px); }
.ln-img {
  width: 100%; aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  background-color: rgba(58,139,186,.1);
  flex-shrink: 0;
}
.ln-body { padding: 7px 9px 9px; flex: 1; }
.ln-body .tag { display: inline-block; margin-bottom: 6px; }
.ln-tag  { font-size: .54rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5aadd4; margin-bottom: 3px; }
.ln-title { font-size: .7rem; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ln-date { font-size: .58rem; color: var(--muted); }

/* Skeletons */
.ln-skeleton { border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%); background-size: 200% 100%; animation: ln-shimmer 1.4s infinite; aspect-ratio: 1; }
.ln-skeleton-sm { height: 58px; border-radius: 4px; margin-bottom: 10px; background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%); background-size: 200% 100%; animation: ln-shimmer 1.4s infinite; }
.ln-skeleton-sm:last-child { margin-bottom: 0; }
@keyframes ln-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Codes ── */
.com-hdr {
  padding-bottom: 11px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(100,140,220,0.14);
}
.com-hdr .col-hdr-title { display: block; }
.code-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(100,140,220,.1);
  border-radius: 6px; padding: 10px 11px; margin-bottom: 8px;
}
.code-item:last-child { margin-bottom: 0; }
.code-top { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.code-title { font-size: .72rem; color: rgba(200,215,240,.8); font-weight: 600; }
.code-row { display: flex; align-items: center; gap: 7px; }
.code-str {
  flex: 1; font-family: monospace; font-size: .82rem; font-weight: 700;
  color: #d4e8ff; background: rgba(58,139,186,.1);
  border: 1px solid rgba(58,139,186,.2); border-radius: 4px;
  padding: 5px 9px; letter-spacing: .06em; white-space: nowrap;
}
.code-copy {
  font-size: .62rem; font-weight: 700; padding: 5px 10px; border-radius: 4px;
  background: rgba(58,139,186,.18); border: 1px solid rgba(58,139,186,.35);
  color: #5aadd4; cursor: pointer; white-space: nowrap; transition: background .15s;
}
.code-copy:hover { background: rgba(58,139,186,.32); }
.code-exp { display: block; font-size: .6rem; color: rgba(160,180,220,.4); margin-top: 5px; }
.code-empty { font-size: .75rem; color: rgba(160,180,220,.4); padding: 14px 0; text-align: center; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .three-cols { grid-template-columns: 1fr 1fr; }
  .col-community { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .three-cols { grid-template-columns: 1fr; }
  .col-community { grid-column: auto; }
  .hero-title { font-size: 3rem; }
  .hero-body { padding: 40px 28px 0; }
  .hero-arrow { display: none; }
}
