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

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --bg-base:        #0e0e10;
  --bg-alt:         #18181b;
  --bg-card:        #1f1f23;
  --bg-hover:       #26262c;
  --border:         #2a2a2e;
  --border-light:   #3a3a3e;

  --purple:         #9147ff;
  --purple-hover:   #772ce8;
  --purple-dim:     #3d1f6e;
  --purple-glow:    rgba(145, 71, 255, 0.25);

  --text-primary:   #efeff1;
  --text-secondary: #adadb8;
  --text-muted:     #5a5a6e;

  --red:            #eb0400;
  --green:          #00c853;
  --yellow:         #ffd700;

  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --radius-xl:      20px;

  --transition:     0.15s ease;
  --font-main:      'Inter', 'Segoe UI', sans-serif;
  --font-display:   'Roobert', 'Inter', sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h3 { font-size: 1.2rem; }

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

a {
  color: var(--purple);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #bf94ff; }

/* =============================================
   HEADER / NAV
   ============================================= */
header {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 50px;
  display: flex;
  align-items: center;
  /* Évite les repaints lors du scroll */
  will-change: transform;
  contain: layout style;
}

nav {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

nav .logo svg,
nav .logo img {
  width: 24px;
  height: 24px;
  fill: var(--purple);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

nav ul li a,
nav a.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

nav ul li a:hover,
nav a.nav-link:hover,
nav ul li a.active,
nav a.nav-link.active {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

nav ul li:last-child {
  margin-left: auto;
}

/* Hamburger caché par défaut (desktop) */
.nav-hamburger {
  display: none;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px;
}

section p {
  margin-top: 16px;
  width: 70%;
  font-size: 15px;
}

.shape-overlays {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
}

.logo-outer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 48px 48px → shorthand */
  padding: 48px;
}

img.logo {
  width: auto;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: 45px;
}

.panel {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-align: center;
}

section:not(.first) {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.panel p {
  font-size: 5vw;
}

.panel-container {
  position: relative;
  overflow: hidden;
}

/* Sections alternées gauche / droite */
.section-Twitch,
.section-stream,
.section-impacte,
.section-reveal {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 48px;
}

.section-Twitch,
.section-impacte {
  gap: 4rem;
}

/* Sections paires → image à droite */
.section-stream {
  flex-direction: row-reverse;
}

.section-image {
  flex: 0 0 40%;
}

.section-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.section-texte {
  flex: 1;
}

/* =============================================
   BANNIERE SECTION
   ============================================= */
.banniere-section {
  background: linear-gradient(135deg, var(--purple-dim) 0%, #1a0a2e 50%, var(--bg-alt) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  /* Isolation du contexte de rendu */
  contain: layout paint;
}

.banniere-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
}

.banniere-section h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff 0%, #bf94ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  text-align: center;
}

/* =============================================
   CATALOGUE
   ============================================= */
.streamers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.streamer-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  /* Promote chaque carte sur son propre layer pour éviter les repaints */
  will-change: transform;
  contain: layout style;
}

.streamer-card:hover {
  border-color: var(--purple-dim);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.streamer-card__photo {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.streamer-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  will-change: transform;
}

.streamer-card:hover .streamer-card__photo img {
  transform: scale(1.05);
}

.streamer-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.streamer-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.streamer-card__id {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.streamer-card__categorie {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--purple-dim);
  color: #bf94ff;
  font-size: 11px;
  font-weight: 600;
}

.streamer-card__pseudo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.streamer-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Stats ───────────────────────────────────── */
.streamer-card__stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
}

.stat__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Footer carte ────────────────────────────── */
.streamer-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}

.streamer-card__date {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-streams {
  padding: 7px 16px;
  background-color: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-streams:hover {
  background-color: var(--purple-hover);
  box-shadow: 0 0 12px var(--purple-glow);
}

/* ── Popup ───────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.popup-overlay.actif {
  opacity: 1;
  pointer-events: all;
}

.popup {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  will-change: transform;
}

.popup-overlay.actif .popup {
  transform: scale(1);
}

.popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.popup__header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.popup__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.popup__close:hover {
  background: var(--red);
  color: #fff;
}

.popup__body {
  overflow-y: auto;
  flex: 1;
  padding: 0;
}

/* Tableau dans le popup — même style que listing */
.popup__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0;
}

.popup__body table thead {
  background-color: var(--bg-alt);
}

.popup__body table th,
.resultats-tableau table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.popup__body table td,
.resultats-tableau table td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.popup__body table tbody tr,
.resultats-tableau table tbody tr {
  transition: background 0.15s ease;
}

.popup__body table tbody tr:hover,
.resultats-tableau table tbody tr:hover {
  background-color: var(--bg-hover);
}

.popup__body table tbody tr:hover td,
.resultats-tableau table tbody tr:hover td {
  color: var(--text-primary);
}

.popup__body table tbody tr:last-child td,
.resultats-tableau table tbody tr:last-child td {
  border-bottom: none;
}

.popup__body table td:first-child,
.resultats-tableau table td:first-child {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.popup__body table td:nth-child(2),
.resultats-tableau table td:nth-child(2) {
  font-weight: 600;
  color: var(--text-primary);
}

.popup__body table td:nth-child(4),
.resultats-tableau table td:nth-child(4) {
  color: var(--green);
  font-weight: 600;
}

/* =============================================
   RECHERCHE - FORMULAIRE
   ============================================= */
.recherche-container {
  margin: 32px 0 48px;
}

.recherche-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recherche-barre {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.recherche-barre:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
}

.recherche-input {
  flex: 1;
  padding: 14px 20px;
  background-color: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 15px;
  outline: none;
}

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

.recherche-btn {
  padding: 14px 28px;
  background-color: var(--purple);
  color: #fff;
  border: none;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  display: block;
  margin: 16px auto 0;
  width: 314px;
}

.recherche-btn:hover {
  background-color: var(--purple-hover);
  box-shadow: -4px 0 20px var(--purple-glow);
}

/* ── Filtres radio ───────────────────────────── */
.recherche-filtres {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filtre-option {
  cursor: pointer;
}

.filtre-option input[type="radio"] {
  display: none;
}

.filtre-option span {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
}

.filtre-option:hover span {
  border-color: var(--purple);
  color: var(--text-primary);
}

.filtre-option:has(input:checked) span {
  background-color: var(--purple);
  border-color: var(--purple);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px var(--purple-glow);
}

/* ── Message résultat ────────────────────────── */
.recherche-message {
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.8;
  position: relative;
  overflow: hidden;
}

.recherche-message p {
  margin-top: 0;
  width: 100%;
  color: inherit;
}

.recherche-message.has-results {
  background-color: var(--bg-card);
  border: 1px solid var(--purple-dim);
  color: var(--text-secondary);
}

.recherche-message.has-results::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--purple), var(--purple-dim));
}

.recherche-message.has-results strong {
  color: var(--purple);
}

.recherche-message.no-results {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
}

/* ── Bouton retour ───────────────────────────── */
.btn-retour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 24px;
  padding: 8px 18px;
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-retour:hover {
  background-color: var(--bg-card);
  border-color: var(--border-light);
  color: var(--text-primary);
}

/* ── Mode cartes ─────────────────────────────── */
.resultats-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.resultats-cartes .card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.resultats-cartes .card p {
  margin-top: 4px;
  font-size: 13px;
  width: 100%;
}

/* ── Mode liste ──────────────────────────────── */
.resultats-liste {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resultats-liste li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.resultats-liste li:hover {
  border-color: var(--border-light);
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

/* ── Mode tableau résultats ──────────────────── */
.resultats-tableau {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 8px;
}

.resultats-tableau table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0;
}

.resultats-tableau table thead {
  background-color: var(--bg-alt);
}

/* ── Hero recherche ──────────────────────────── */
.recherche-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 48px 16px 32px;
  text-align: center;
}

.recherche-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  width: 100%;
  margin-top: 0;
  letter-spacing: 0.03em;
}

.recherche-hero .recherche-container {
  width: 100%;
  max-width: 680px;
  margin: 0;
}

.recherche-icone {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
}

.filtres-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-right: 4px;
}

/* ── Suggestions ─────────────────────────────── */
.recherche-suggestions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.suggestions-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.suggestion-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.suggestion-tag:hover {
  border-color: var(--purple);
  color: var(--purple);
  background-color: var(--bg-hover);
}

/* ── Bouton catalogue ────────────────────────── */
.btn-catalogue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 48px;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-catalogue:hover {
  border-color: var(--purple);
  color: var(--purple);
  background-color: var(--bg-card);
}

/* =============================================
   INPUT RECHERCHE STYLISÉ (#poda)
   ============================================= */
.white,
.border,
.darkBorderBg,
.glow {
  max-height: 70px;
  max-width: 314px;
  height: 100%;
  width: 100%;
  position: absolute;
  overflow: hidden;
  z-index: -1;
  border-radius: 12px;
  filter: blur(3px);
}

#poda .input {
  background-color: #010201;
  border: none;
  width: 314px;
  height: 56px;
  border-radius: 10px;
  color: white;
  padding-inline: 59px;
  font-size: 16px;
  flex: unset;
  outline: none;
  transition: none;
}

#poda .input::placeholder {
  color: #c0b9c0;
}

#poda .input:focus {
  outline: none;
  border: none;
}

#poda {
  display: flex;
  align-items: center;
  justify-content: center;
}

#main:focus-within > #input-mask {
  display: none;
}

#input-mask {
  pointer-events: none;
  width: 100px;
  height: 20px;
  position: absolute;
  background: linear-gradient(90deg, transparent, black);
  top: 18px;
  left: 70px;
}

#pink-mask {
  pointer-events: none;
  width: 30px;
  height: 20px;
  position: absolute;
  background: #cf30aa;
  top: 10px;
  left: 5px;
  filter: blur(20px);
  opacity: 0.8;
  transition: all 2s;
}

#main:hover > #pink-mask {
  opacity: 0;
}

.white {
  max-height: 63px;
  max-width: 307px;
  border-radius: 10px;
  filter: blur(2px);
}

.white::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(83deg);
  position: absolute;
  width: 600px;
  height: 600px;
  background-repeat: no-repeat;
  background-position: 0 0;
  filter: brightness(1.4);
  background-image: conic-gradient(
    rgba(0,0,0,0) 0%,
    #a099d8,
    rgba(0,0,0,0) 8%,
    rgba(0,0,0,0) 50%,
    #dfa2da,
    rgba(0,0,0,0) 58%
  );
  transition: all 2s;
}

.border {
  max-height: 59px;
  max-width: 303px;
  border-radius: 11px;
  filter: blur(0.5px);
}

.border::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(70deg);
  position: absolute;
  width: 600px;
  height: 600px;
  filter: brightness(1.3);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    #1c191c,
    #402fb5 5%,
    #1c191c 14%,
    #1c191c 50%,
    #cf30aa 60%,
    #1c191c 64%
  );
  transition: all 2s;
}

.darkBorderBg {
  max-height: 65px;
  max-width: 312px;
}

.darkBorderBg::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(82deg);
  position: absolute;
  width: 600px;
  height: 600px;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    rgba(0,0,0,0),
    #18116a,
    rgba(0,0,0,0) 10%,
    rgba(0,0,0,0) 50%,
    #6e1b60,
    rgba(0,0,0,0) 60%
  );
  transition: all 2s;
}

#poda:hover > .darkBorderBg::before { transform: translate(-50%, -50%) rotate(-98deg); }
#poda:hover > .glow::before         { transform: translate(-50%, -50%) rotate(-120deg); }
#poda:hover > .white::before        { transform: translate(-50%, -50%) rotate(-97deg); }
#poda:hover > .border::before       { transform: translate(-50%, -50%) rotate(-110deg); }

#poda:focus-within > .darkBorderBg::before { transform: translate(-50%, -50%) rotate(442deg); transition: all 4s; }
#poda:focus-within > .glow::before         { transform: translate(-50%, -50%) rotate(420deg); transition: all 4s; }
#poda:focus-within > .white::before        { transform: translate(-50%, -50%) rotate(443deg); transition: all 4s; }
#poda:focus-within > .border::before       { transform: translate(-50%, -50%) rotate(430deg); transition: all 4s; }

.glow {
  overflow: hidden;
  filter: blur(30px);
  opacity: 0.4;
  max-height: 130px;
  max-width: 354px;
}

.glow::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(60deg);
  position: absolute;
  width: 999px;
  height: 999px;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    #000,
    #402fb5 5%,
    #000 38%,
    #000 50%,
    #cf30aa 60%,
    #000 87%
  );
  transition: all 2s;
}

#filter-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  max-height: 40px;
  max-width: 38px;
  height: 100%;
  width: 100%;
  isolation: isolate;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, #161329, black, #1d1b4b);
  border: 1px solid transparent;
}

.filterBorder {
  height: 42px;
  width: 40px;
  position: absolute;
  overflow: hidden;
  top: 7px;
  right: 7px;
  border-radius: 10px;
}

.filterBorder::before {
  content: "";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  position: absolute;
  width: 600px;
  height: 600px;
  background-repeat: no-repeat;
  background-position: 0 0;
  filter: brightness(1.35);
  background-image: conic-gradient(
    rgba(0,0,0,0),
    #3d3a4f,
    rgba(0,0,0,0) 50%,
    rgba(0,0,0,0) 50%,
    #3d3a4f,
    rgba(0,0,0,0) 100%
  );
  animation: rotate 4s linear infinite;
  /* GPU pour l'animation continue */
  will-change: transform;
}

#main {
  position: relative;
}

#search-icon {
  position: absolute;
  left: 20px;
  top: 18px;
  z-index: 2;
}

@keyframes rotate {
  100% { transform: translate(-50%, -50%) rotate(450deg); }
}

/* =============================================
   FORMULAIRE CONNEXION
   ============================================= */
.wrapper .input, .wrapper button {
  width: 100%;
  height: 40px;
  position: relative;
  padding: 10px;
  border: 0.1px solid #575cb5;
}

.wrapper button {
  background: #6d74e3;
  border: none;
}

.wrapper {
  position: relative;
  transform: skewY(-14deg);
}

.form-wrapper-outer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 16px;
  min-height: 60vh;
}

.wrapper li, .wrapper button {
  position: relative;
  list-style: none;
  width: 200px;
  z-index: var(--i);
  transition: 0.3s;
  color: white;
}

.wrapper li::before, .wrapper button::before {
  position: absolute;
  content: '';
  background: #6d74e3;
  top: 0;
  left: -40px;
  width: 40px;
  height: 40px;
  transform-origin: right;
  transform: skewY(45deg);
  transition: 0.3s;
}

.wrapper li::after, .wrapper button::after {
  position: absolute;
  content: '';
  background: #6d74e3;
  width: 200px;
  height: 40px;
  top: -40px;
  left: 0;
  transform-origin: bottom;
  transform: skewX(45deg);
  transition: 0.3s;
}

.wrapper li:nth-child(1)::after, .wrapper li:nth-child(1)::before {
  background-color: #d8daf7;
}

.wrapper li:nth-child(2)::after, .wrapper li:nth-child(2)::before {
  background-color: #c2c5f3;
}

.wrapper li:nth-child(3)::after, .wrapper li:nth-child(3)::before {
  background-color: #989deb;
}

li .input {
  outline: none;
  border: none;
  color: black;
}

li .input::placeholder {
  color: black;
}

li:nth-child(1) .input { background: #d8daf7; }
li:nth-child(2) .input { background: #c2c5f3; }
li:nth-child(3) .input { background: #989deb; }

li:nth-child(1) .input:focus { outline: none; border: 3.5px solid #d8daf7; }
li:nth-child(2) .input:focus { outline: none; border: 3.5px solid #c2c5f3; }
li:nth-child(3) .input:focus { outline: none; border: 3.5px solid #989deb; }

.wrapper li:hover, .wrapper button:hover {
  transform: translateX(-20px);
}

.wrapper button:hover,
.wrapper button:hover::before,
.wrapper button:hover::after {
  background: #575cb5;
}

.wrapper button:active {
  transform: translateX(0px);
}

/* =============================================
   BOUTONS GÉNÉRIQUES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s ease, box-shadow var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--purple);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--purple-hover);
  box-shadow: 0 0 14px var(--purple-glow);
  color: #fff;
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background-color: var(--border-light);
  color: var(--text-primary);
}

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

/* Section bouton */
.btn-section {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 22px;
  background-color: var(--purple);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
}

.btn-section:hover {
  background-color: var(--purple-hover);
  box-shadow: 0 0 14px var(--purple-glow);
  color: #fff;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-bounce {
  width: 100%;
  margin-top: 48px;
}

.footer-waves {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  will-change: transform;
}

.wave1 { animation: wave-move 6s linear infinite; }
.wave2 { animation: wave-move 9s linear infinite reverse; }
.wave3 { animation: wave-move 12s linear infinite; }

@keyframes wave-move {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.footer-content {
  background: #3d1f6e;
  text-align: center;
  padding: 20px 16px;
  color: #fff;
  font-size: 12px;
  margin-top: -1px;
}

.footer-content p { color: #fff; }

.footer-content a {
  color: #fff;
  text-decoration: underline;
}

.footer-content a:hover { color: #bf94ff; }

/* =============================================
   SCROLL TOP BUTTON
   ============================================= */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background-color: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 18px;
  cursor: pointer;
  z-index: 200;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition);
  box-shadow: 0 4px 20px var(--purple-glow);
}

#scrollTopBtn:hover {
  background-color: var(--purple-hover);
  transform: translateY(-3px);
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-purple    { color: var(--purple); }

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-light); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* =============================================
   SELECTION
   ============================================= */
::selection {
  background-color: var(--purple-dim);
  color: var(--text-primary);
}

/* =============================================
   RESPONSIVE — toutes les breakpoints fusionnées
   ============================================= */
@media (max-width: 900px) {
  .streamers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  main { padding: 16px 12px; }

  .banniere-section { padding: 28px 20px; }

  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Nav mobile : menu accordéon */
  nav ul {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity    0.25s ease;
    opacity: 0;
    z-index: 99;
  }

  nav ul.nav-open {
    max-height: 400px;
    opacity: 1;
  }

  nav ul li { width: 100%; }
  nav ul li:last-child { margin-left: 0; }

  nav ul li a,
  nav a.nav-link {
    display: flex;
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  nav ul li:last-child a { border-bottom: none; }

  /* Bouton hamburger — caché sur desktop, visible ici */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-right: auto;
    flex-shrink: 0;
  }

  .nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
  }

  .nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section-Twitch,
  .section-stream,
  .section-impacte,
  .section-reveal {
    flex-direction: column !important;
    gap: 1.5rem;
  }

  .section-image {
    flex: none;
    width: 100%;
  }

  section p { width: 100%; }

  .streamers-grid { grid-template-columns: 1fr; }

  .streamer-card__footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .btn-streams {
    width: 100%;
    text-align: center;
  }

  .popup { max-height: 90vh; }

  .recherche-barre {
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: visible;
    border: none;
    gap: 8px;
  }

  .recherche-barre:focus-within { box-shadow: none; }

  .recherche-input {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease;
  }

  .recherche-input:focus { border-color: var(--purple); }

  .recherche-btn {
    width: 100%;
    border-radius: var(--radius-md);
    text-align: center;
    justify-content: center;
  }

  .recherche-filtres { gap: 6px; }

  .resultats-cartes { grid-template-columns: 1fr; }

  .recherche-message {
    padding: 16px;
    font-size: 14px;
  }

  .recherche-hero {
    padding: 32px 8px 24px;
    gap: 20px;
  }

  .recherche-suggestions { gap: 6px; }
}