/**
 * TIITII NBA — Sections CSS
 * Styles spécifiques à chaque section (extraits de main.css + nouveaux)
 * Chargé après main.css
 */

/* ── Hero ────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-bg, none) center / cover no-repeat;
  transform: scale(1.08);  /* Espace pour l'effet parallax */
  will-change: transform;
  backface-visibility: hidden;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  opacity: calc(var(--hero-overlay, 60%) / 100);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  display: flex;
  flex-direction: column;
}

.hero-title-l1 { color: var(--color-light); }
.hero-title-l2 { color: var(--color-accent); }

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-muted);
  margin: 0 0 var(--space-2);
  min-height: 1.5em;
}

.hero-slogan {
  font-size: clamp(0.875rem, 2vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-muted);
  margin: 0 0 var(--space-5);
}

.hero-cta {
  display: inline-block;
  animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

/* ── Streaming strip ─────────────────────────────────────────────────────────── */

.streaming-strip {
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  padding: var(--space-3) 0;
}

.streaming-track-wrapper {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.streaming-track {
  display: flex;
  gap: var(--space-6);
  white-space: nowrap;
  animation: streamScroll 28s linear infinite;
}

.streaming-track:hover { animation-play-state: paused; }

.streaming-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  flex-shrink: 0;
}

.streaming-item:hover { color: var(--color-light); }

.streaming-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.streaming-icon svg { width: 100%; height: 100%; }

/* ── Musique ─────────────────────────────────────────────────────────────────── */

.musique-section .spotify-embed-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.platform-btn:hover {
  background: var(--color-bg-3);
  border-color: var(--color-accent);
}

.platform-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
}

.platform-icon svg { width: 100%; height: 100%; }

/* ── Vidéos ──────────────────────────────────────────────────────────────────── */

.videos-section .section-inner { max-width: 1100px; }

.videos-grid { display: grid; gap: var(--space-4); }

@media (min-width: 768px) {
  .videos-grid { grid-template-columns: 1fr; }
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-2);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Socials ─────────────────────────────────────────────────────────────────── */

.socials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .socials-grid { grid-template-columns: repeat(3, 1fr); }
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.social-card:hover {
  background: var(--color-bg-3);
  border-color: var(--social-color, var(--color-accent));
  transform: translateY(-4px);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--social-color, var(--color-accent)) 45%, transparent);
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--social-color, var(--color-accent));
}

.social-icon svg { width: 100%; height: 100%; }

.social-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Collab ──────────────────────────────────────────────────────────────────── */

.collab-section { background: var(--color-bg-2); }

.collab-wizard {
  max-width: 640px;
  margin: 0 auto;
}

.wizard-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-5);
}

.wt-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  flex-shrink: 0;
}

.wt-step.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
}

.wt-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: var(--color-border);
}

.wizard-panel { animation: fadeIn 0.25s ease; }

.collab-title { margin-bottom: var(--space-2); }

.collab-intro {
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

.collab-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

@media (min-width: 480px) {
  .collab-types-grid { grid-template-columns: repeat(4, 1fr); }
}

.collab-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  background: var(--color-bg-3);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  color: var(--color-light);
  font-family: inherit;
}

.collab-type-card:hover { border-color: var(--color-accent); }
.collab-type-card.selected {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-bg-3));
}

.ctc-emoji { font-size: 1.5rem; }
.ctc-label { font-size: 0.75rem; font-weight: 600; }

.wizard-step-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
}

.wizard-step-sub {
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.wizard-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.collab-form-wizard .form-group { margin-bottom: var(--space-3); }

.collab-confirm {
  color: var(--color-accent);
  font-weight: 600;
  text-align: center;
  margin-top: var(--space-3);
  animation: fadeIn 0.3s ease;
}

/* ── About ───────────────────────────────────────────────────────────────────── */

.about-section { background: var(--color-bg-2); }

.about-bio {
  max-width: 680px;
  margin: 0 auto var(--space-5);
  color: var(--color-muted);
  line-height: 1.75;
  text-align: center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 480px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Custom Blocks ───────────────────────────────────────────────────────────── */

.custom-blocks-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.custom-block { width: 100%; }

.block-text-content {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.75;
  color: var(--color-muted);
}

.block-video-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-2);
}

.block-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.block-figure { margin: 0; }
.block-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

.block-spotify-wrapper iframe { border-radius: var(--radius); display: block; }

.block-cta-wrapper { text-align: center; }

.block-caption {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: var(--space-2);
}

.block-separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-2) 0;
}

/* ── Admin highlight (preview iframe) ───────────────────────────────────────── */

.admin-highlight {
  outline: 2px solid var(--color-accent) !important;
  outline-offset: -2px;
}

[data-admin-preview-hidden] { display: none !important; }
