/* ==== Variables de thème ==== */
:root {
  --bg-main: #020617;       /* noir bleuté */
  --bg-alt: #050b1f;
  --bg-card: #0b1024;
  --accent: #22d3ee;        /* turquoise */
  --accent-soft: #38bdf8;
  --accent-warm: #f97316;   /* couleur barbe rousse / cuivre */
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-full: 999px;
  --transition: 200ms ease-out;
  --blur: 18px;
  --max-width: 1100px;
}

/* ==== Reset simple ==== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #020617 100%);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ==== Starfield pseudo background ==== */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 10%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(1px 1px at 80% 30%, rgba(56,189,248,0.4), transparent 60%),
    radial-gradient(1px 1px at 40% 80%, rgba(248,250,252,0.3), transparent 60%),
    radial-gradient(2px 2px at 60% 60%, rgba(59,130,246,0.5), transparent 60%);
  opacity: 0.35;
  z-index: -1;
}

/* ==== Layout global ==== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

/* ==== Top bar / header ==== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(15,23,42,0.9), rgba(15,23,42,0.6));
  backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid rgba(148,163,184,0.2);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), #0b1120 70%);
  box-shadow: 0 0 25px rgba(34,211,238,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #0f172a;
  font-weight: 700;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Nav standard */
.nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-soft);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-warm));
  transition: width var(--transition);
}

.nav a:hover {
  color: var(--text-main);
}

.nav a:hover::after {
  width: 100%;
}

/* ==== Bouton burger ==== */
.nav-toggle {
  display: none; /* affiché seulement en responsive */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 999px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);

  /* 👇 IMPORTANT : empile les 3 lignes */
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  margin: 4px 0;
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}

/* Animation croix quand ouvert */
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle:hover {
  background: rgba(15,23,42,0.8);
  box-shadow: 0 0 0 1px rgba(148,163,184,0.5);
}

/* ==== Sections ==== */
.section {
  margin-top: 4.5rem;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15,23,42,0.7), rgba(15,23,42,0.1));
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: var(--shadow-soft);
}

.section-split .section-grid {
  margin-top: 1.8rem;
}

.section-header {
  text-align: left;
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ==== Hero ==== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 3.1vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.hero h1 span {
  background: linear-gradient(to right, var(--accent), var(--accent-warm));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  color: var(--text-soft);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.7rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.meta-card {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148,163,184,0.4);
  background: radial-gradient(circle at top left, rgba(34,211,238,0.08), rgba(15,23,42,0.95));
  font-size: 0.8rem;
}

.meta-label {
  display: block;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
}

.meta-value {
  font-weight: 600;
}

/* Hero avatar */
.hero-avatar {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 3px solid rgba(56,189,248,0.9);
  background: radial-gradient(circle at 30% 20%, rgba(56,189,248,0.35), #020617 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(56,189,248,0.8),
    0 0 70px rgba(56,189,248,0.3);
}

.avatar-circle img {
  width: 90%;
  height: auto;
  object-fit: cover;
}

.avatar-glow {
  position: absolute;
  inset: 60% -20%;
  background: radial-gradient(circle at center, rgba(249,115,22,0.35), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* ==== Cards & Lists ==== */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(15,23,42,0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148,163,184,0.4);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.card-highlight {
  border-color: rgba(56,189,248,0.7);
  box-shadow:
    0 0 25px rgba(56,189,248,0.35),
    var(--shadow-soft);
}

.list {
  list-style: none;
  margin-top: 0.4rem;
}

.list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.35rem;
  font-size: 0.93rem;
  color: var(--text-soft);
}

.list li::before {
  content: "ᛟ";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.7rem;
  color: var(--accent-soft);
}

/* ==== Buttons ==== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #020617;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(56,189,248,0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(56,189,248,0.6);
}

.btn.ghost {
  background: rgba(15,23,42,0.9);
  border-color: rgba(148,163,184,0.45);
  color: var(--text-main);
}

.btn.ghost:hover {
  border-color: var(--accent-soft);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.12), rgba(15,23,42,1));
}

.btn.small {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
}

/* ==== Schedule ==== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
  margin-top: 1.2rem;
}

.schedule-card {
  padding: 1rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.95);
  box-shadow: var(--shadow-soft);
}

.schedule-card .day {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent-soft);
}

.schedule-card .time {
  font-weight: 500;
  font-size: 0.9rem;
  display: block;
  margin: 0.15rem 0 0.4rem;
}

.schedule-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ==== Community ==== */
.community-layout {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.community-card {
  background: rgba(15,23,42,0.96);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148,163,184,0.5);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

/* ==== Contact / Footer ==== */
.section-footer {
  margin-top: 4rem;
  text-align: center;
}

.contact-card {
  margin: 0 auto 1.5rem;
  max-width: 560px;
  background: rgba(15,23,42,0.96);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: var(--shadow-soft);
}

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

.contact-card p {
  font-size: 0.93rem;
  color: var(--text-soft);
}

.socials {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--text-main);
  text-decoration: none;
  background: rgba(15,23,42,0.9);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.socials a .icon {
  font-size: 0.9rem;
}

.socials a:hover {
  border-color: var(--accent-soft);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18), rgba(15,23,42,1));
  transform: translateY(-1px);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ==== Section Live ==== */
.section-live {
  margin-top: 4rem;
}

.live-container {
  display: grid;
  grid-template-columns: 3fr 1.2fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.live-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.live-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.live-player,
.live-chat {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(56,189,248,0.5);
  box-shadow: 0 0 40px rgba(56,189,248,0.25);
}

/* Hauteur confortable sur desktop */
.live-player {
  height: 520px;
}

.live-chat {
  height: 520px;
  border-color: rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(6px);
}

/* ==== Section Giveaways ==== */
.section-giveaway {
  margin-top: 4rem;
}

.giveaway-current {
  margin-bottom: 2rem;
}

.giveaway-current-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.giveaway-current h3 {
  font-size: 1.2rem;
}

.giveaway-note {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.giveaway-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Badges */
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--text-soft);
  background: rgba(15,23,42,0.9);
}

.tag-badge.tag-live {
  border-color: rgba(248,113,113,0.9);
  color: #fecaca;
  background: radial-gradient(circle at top left, rgba(248,113,113,0.35), rgba(15,23,42,0.95));
}

.tag-badge.tag-external {
  border-color: rgba(56,189,248,0.9);
  color: #e0f2fe;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.35), rgba(15,23,42,0.95));
}

/* Grid des types de giveaway */
.giveaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.giveaway-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.giveaway-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.giveaway-card-header h3 {
  font-size: 1.1rem;
}

.giveaway-legal {
  margin-top: 1.7rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ==== Responsif ==== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-avatar {
    order: -1;
  }

  main {
    padding-top: 6rem;
  }

  .community-layout {
    grid-template-columns: 1fr;
  }
}

/* Burger et layout mobile / tablette */
@media (max-width: 980px) {
  /* Header */
  .topbar {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  /* Nav cachée par défaut en mobile */
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.7rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(148,163,184,0.35);
  }

  .nav a {
    padding: 0.15rem 0;
  }

  /* Nav ouverte quand burger actif */
  .nav.nav--open {
    display: flex;
  }

  .giveaway-current-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .giveaway-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Live + chat stackés, pleine largeur */
  .live-container {
    grid-template-columns: 1fr;
  }

  .live-player,
  .live-chat {
    height: 340px;
  }

  /* Une seule colonne pour toutes les sections à cards */
  .section-grid,
  .schedule-grid,
  .giveaway-grid,
  .community-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section-alt {
    padding: 1.7rem 1.3rem;
  }

  .hero-meta {
    flex-direction: column;
  }

  .avatar-circle {
    width: 220px;
    height: 220px;
  }

  .live-container {
    grid-template-columns: 1fr;
  }

  .community-layout {
    grid-template-columns: 1fr;
  }
}
