/* Flaticon UIcons — auto-hébergée (v3.3.1, licence gratuite avec attribution) */
/* @import DOIT être avant tout @font-face ou autre règle CSS */
@import url('uicons-regular-rounded.css');

/* Syne — auto-hébergée (variable font, poids 700-800, SIL OFL 1.1) */
@font-face {
  font-family: 'Syne';
  src: url('../fonts/Syne.woff2') format('woff2');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================
   FONTS — Luciole (locale)
   ============================================= */

@font-face {
  font-family: 'Luciole';
  src: url('../fonts/Luciole-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Luciole';
  src: url('../fonts/Luciole-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =============================================
   VARIABLES
   ============================================= */

:root {
  /* Fonds */
  --bg: #0E0818;
  --card: #1C1030;
  --card2: #150D28;
  /* Violets signature */
  --purple-rich: #5B1E9C;
  --purple-mid: #8B39D4;
  --purple-bright: #B56EFF;
  /* Texte — principal → secondaire → tertiaire */
  --white: #F4EDFF;          /* principal  17.26:1 */
  --grey: #8C7FAE;           /* secondaire  5.40:1 */
  --purple-pale: #D9B3FF;    /* tertiaire  11.10:1 */
  /* Accents Radio Nocturne */
  --gold: #FFD166;
  --orange: #FF7D3B;
  --teal: #55D9CC;
  --pink: #FF6B9D;
  /* Nouvelles couleurs Adobe Color */
  --jaune-vert: #D7D955;
  --terracotta: #D97F55;
  --vert-gris: #5F8480;
}

/* =============================================
   RESET & BASE
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* scroll-behavior conditionnel : respecter prefers-reduced-motion */

body {
  font-family: 'Luciole', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--white);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

a {
  color: var(--purple-bright);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* UIcons inline */
i.fi {
  font-size: 1em;
  line-height: 1;
  vertical-align: -0.1em;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-rich);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-mid);
}

/* Firefox scrollbar — ciblé sur html plutôt que * pour la performance */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--purple-rich) var(--bg);
}

/* Selection */
::selection {
  background: rgba(139, 57, 212, 0.4);
  color: var(--white);
}

/* =============================================
   LAYOUT
   ============================================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   SKIP-LINK — Accessibilité RGAA 12.7
   Caché par défaut, visible au focus clavier.
   ============================================= */

/* Texte masqué visuellement mais accessible aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
}

/* =============================================
   HEADER
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 8, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 57, 212, 0.4);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--white);
}

.site-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.site-identity {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.site-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--grey);
  line-height: 1.2;
}

/* Navigation — ARIA Menubar */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.menubar {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.menubar > li {
  position: relative;
}

.menubar > li > a,
.menubar > li > button {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  color: var(--purple-pale);
  font-family: 'Luciole', sans-serif;
  font-size: 0.9rem;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.menubar > li > a:hover,
.menubar > li > a:focus-visible,
.menubar > li > button:hover,
.menubar > li > button:focus-visible,
.menubar > li > button[aria-expanded="true"] {
  background: rgba(255, 209, 102, 0.12);
  color: var(--gold);
  outline: none;
}

.menubar > li > a[aria-current="page"] {
  background: rgba(255, 209, 102, 0.12);
  color: var(--gold);
}


/* Chevron indicateur sous-menu */
.menu-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 0.15rem;
  transition: transform 0.2s;
}

button[aria-expanded="true"] .menu-chevron {
  transform: rotate(180deg);
}

/* Sous-menu dropdown */
.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 240px;
  background: rgba(21, 13, 40, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 57, 212, 0.25);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.submenu[data-open="true"] {
  display: block;
}

.submenu li a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: var(--purple-pale);
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.submenu li a:hover,
.submenu li a:focus-visible {
  background: rgba(255, 209, 102, 0.12);
  color: var(--gold);
  outline: none;
}

.submenu li a[aria-current="page"] {
  background: rgba(255, 209, 102, 0.1);
  color: var(--gold);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-pale));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .hero-tagline {
  font-size: 1.1rem;
  color: var(--purple-pale);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Hero show (pages individuelles) */
.hero-show {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero-show h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

/* Couleurs d'accent par page — remplace les inline styles */
.hero-show h1.h1--purple         { color: #8C7FAE; }
.hero-show h1.h1--rqc            { color: #FF7D3B; }
.hero-show h1.h1--sur-la-route   { color: #B56EFF; }
.hero-show h1.h1--dans-le-retro  { color: #FFD166; }
.hero-show h1.h1--francophonia   { color: #55D9CC; }
.hero-show h1.h1--xtended        { color: #FF6B9D; }
.hero-show h1.h1--ya-du-soleil   { color: #FFC93C; }

.hero-show .show-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 1rem;
}

/* H1 accent par page (CSP-safe, remplace les inline styles) */
.h1--purple        { color: #8C7FAE; }
.h1--rqc           { color: #FF7D3B; }
.h1--sur-la-route  { color: #B56EFF; }
.h1--dans-le-retro { color: #FFD166; }
.h1--francophonia  { color: #55D9CC; }
.h1--xtended       { color: #FF6B9D; }
.h1--ya-du-soleil  { color: #FFC93C; }

/* Badges show-badge par émission (CSP-safe, remplace les inline styles) */
.badge--sur-la-route  { background: #B56EFF; }
.badge--dans-le-retro { background: #FFD166; }
.badge--francophonia  { background: #55D9CC; }
.badge--xtended       { background: #FF6B9D; }
.badge--ya-du-soleil  { background: #FFC93C; }
.badge--rqc           { background: #FF7D3B; }

/* Section centrée — remplace style="text-align: center" */
.section--centered { text-align: center; }

.hero-show .hero-tagline {
  font-size: 1.05rem;
  color: var(--purple-pale);
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   SECTIONS
   ============================================= */

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: var(--white);
}

.section-title--spaced { margin-top: 2.5rem; }
.section-title--older  { margin-top: 3rem; }

.page-updated {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.page-updated--centered { text-align: center; }
.page-updated--spaced   { margin-top: 2.5rem; }

/* =============================================
   SHOW DESCRIPTION
   ============================================= */

.show-description {
  max-width: 820px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--purple-pale);
  font-size: 1.05rem;
  line-height: 1.9;
}

.show-description p + p {
  margin-top: 1rem;
}

/* =============================================
   INTRO TEXT (Homepage)
   ============================================= */

.intro-text {
  max-width: 820px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--purple-pale);
  font-size: 1.05rem;
  line-height: 1.9;
}

.intro-text p + p {
  margin-top: 1rem;
}

.intro-text .intro-cta {
  display: block;
  margin-top: 1.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
}

/* =============================================
   SHOW GRID (Homepage)
   ============================================= */

.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.show-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--card);
  border: 1px solid rgba(139, 57, 212, 0.2);
  border-radius: 14px;
  transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: var(--white);
}

.show-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 57, 212, 0.5);
  box-shadow: 0 8px 30px rgba(91, 30, 156, 0.15);
  color: var(--white);
}

.show-card .show-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  color: var(--purple-bright);
}

.show-card .show-icon i.fi {
  vertical-align: baseline;
}

.show-card .show-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  flex: 1;
}

.show-card .show-freq {
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: auto;
}

/* =============================================
   EPISODE CARDS
   ============================================= */

.episodes-container {
  display: grid;
  gap: 1.5rem;
}

.episodes-container.grid-latest {
  grid-template-columns: repeat(2, 1fr);
}

.episode-card {
  background: var(--card);
  border: 1px solid rgba(139, 57, 212, 0.2);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.episode-card:hover {
  transform: translateY(-2px);
  border-color: var(--show-color, rgba(139, 57, 212, 0.5));
}

/* Couleurs par émission via data-show (CSP-safe, remplace les inline styles) */
.episode-card[data-show="sur-la-route-encore"]  { --show-color: #B56EFF; }
.episode-card[data-show="dans-le-retro"]        { --show-color: #FFD166; }
.episode-card[data-show="francophonia"]         { --show-color: #55D9CC; }
.episode-card[data-show="xtended-music-club"]   { --show-color: #FF6B9D; }
.episode-card[data-show="ya-du-soleil"]         { --show-color: #FFC93C; }

.episode-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--card2);
}

.episode-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.episode-show {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--show-color, var(--purple-bright));
}

.episode-title {
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--white);
}

.episode-date {
  font-size: 0.8rem;
  color: var(--grey);
}

.episode-desc {
  font-size: 0.88rem;
  color: var(--purple-pale);
  line-height: 1.6;
  flex: 1;
}

.btn-read-more {
  display: inline-block;
  margin-top: 0.4rem;
  background: none;
  border: none;
  color: var(--show-color, #B56EFF);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-read-more:hover {
  opacity: 0.75;
}

/* Audio player */
.episode-card audio {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  margin-top: 0.25rem;
}

/* Dernier épisode — carte mise en avant */
.episodes-latest {
  margin-bottom: 2.5rem;
}

.episodes-latest .episode-card {
  flex-direction: row;
}

.episodes-latest .episode-cover {
  width: 200px;
  min-width: 200px;
  aspect-ratio: 1 / 1;
}

.episodes-latest .episode-body {
  padding: 1.5rem;
}

/* Show page episode list (single column) */
.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.episodes-list .episode-card {
  flex-direction: row;
}

.episodes-list .episode-cover {
  width: 200px;
  min-width: 200px;
  aspect-ratio: 1 / 1;
}

.episodes-list .episode-body {
  padding: 1.25rem;
}

/* =============================================
   PAGINATION
   ============================================= */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  background: var(--card);
  color: var(--purple-pale);
  border: 1px solid rgba(139, 57, 212, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Luciole', sans-serif;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}

.pagination button:hover {
  background: var(--purple-rich);
  border-color: var(--purple-rich);
  color: var(--white);
}

.pagination button.active {
  background: var(--purple-rich);
  border-color: var(--purple-mid);
  color: var(--white);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =============================================
   STREAMING LINKS
   ============================================= */

.streaming-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.streaming-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  background: var(--card);
  border: 1px solid rgba(139, 57, 212, 0.2);
  border-radius: 10px;
  color: var(--purple-pale);
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.streaming-links a:hover {
  background: var(--purple-rich);
  border-color: var(--purple-mid);
  color: var(--white);
}

/* =============================================
   CTA BUTTONS
   ============================================= */

.btn-cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-cta-purple {
  background: var(--purple-rich);
  color: var(--white);
}

.btn-cta-purple:hover {
  background: var(--purple-mid);
  color: var(--white);
}

.btn-cta-orange {
  background: var(--orange);
  color: var(--bg);
}

.btn-cta-orange:hover {
  background: #ff9560;
  color: var(--bg);
}

/* =============================================
   RQC PAGE
   ============================================= */

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(255, 125, 59, 0.15);
  border: 1px solid rgba(255, 125, 59, 0.3);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 1rem;
}

.live-badge .live-dot {
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.rqc-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.rqc-schedule-card {
  background: var(--card);
  border: 1px solid rgba(255, 125, 59, 0.2);
  border-radius: 14px;
  padding: 1.5rem;
}

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

.rqc-schedule-card .schedule-time {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.rqc-schedule-card .schedule-note {
  color: var(--grey);
  font-size: 0.85rem;
}

/* =============================================
   INVITE PAGE — TABLEAU
   ============================================= */

.appearances-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.appearances-table th,
.appearances-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(139, 57, 212, 0.15);
}

.appearances-table th {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey);
  background: var(--card2);
}

.appearances-table td {
  font-size: 0.95rem;
  color: var(--purple-pale);
}

.appearances-table tr:hover td {
  background: rgba(139, 57, 212, 0.05);
}

.empty-message {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--grey);
  font-size: 1rem;
  font-style: italic;
}

/* =============================================
   A PROPOS
   ============================================= */

.bio-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bio-section p {
  margin-bottom: 1.25rem;
  color: var(--purple-pale);
  font-size: 1.05rem;
  line-height: 1.9;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  background: var(--card);
  border: 1px solid rgba(139, 57, 212, 0.2);
  border-radius: 12px;
  color: var(--purple-pale);
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.contact-links a:hover {
  background: var(--purple-rich);
  border-color: var(--purple-mid);
  color: var(--white);
}

/* =============================================
   PAGE 404
   ============================================= */

/* 404 overrides */
.hero-show--404 { padding: 4rem 1.5rem; }
.btn-spacer     { margin-top: 2.5rem; }

.error-404-code {
  font-family: 'Syne', sans-serif;
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1rem;
  user-select: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--purple-rich);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--purple-bright);
  transform: translateY(-2px);
}

/* =============================================
   BARRE DE RECHERCHE
   ============================================= */

.search-bar {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-bar form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 57, 212, 0.08);
  border: 1px solid rgba(139, 57, 212, 0.3);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s;
}

.search-bar form:focus-within {
  border-color: var(--purple-bright);
}

.search-bar .search-icon {
  color: var(--purple-mid);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search-bar input[type="search"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: 'Luciole', sans-serif;
  font-size: 1rem;
  outline: none;
  min-width: 0;
}

.search-bar input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-bar input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.search-bar .search-reset {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  flex-shrink: 0;
  display: none;
}

.search-bar input[type="search"]:not(:placeholder-shown) ~ .search-reset {
  display: block;
}

.search-bar .search-reset:hover {
  color: var(--white);
}

.search-count {
  text-align: center;
  color: var(--purple-mid);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  min-height: 1.4em;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(139, 57, 212, 0.4);
  padding: 2rem 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner p {
  color: var(--grey);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--grey);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--purple-bright);
}

/* =============================================
   RSS ERROR / LOADING
   ============================================= */

.loading-episodes {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--grey);
}

.loading-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(139, 57, 212, 0.2);
  border-top-color: var(--purple-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 0.75rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-message {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--grey);
  font-size: 0.95rem;
}

/* =============================================
   LEGAL
   ============================================= */

.legal-mention {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--card2);
  border-radius: 10px;
  color: var(--grey);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* =============================================
   RESPONSIVE — MOBILE FIRST
   ============================================= */

@media (max-width: 768px) {
  /* Header */
  .nav-toggle {
    display: block;
  }

  .menubar {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14, 8, 24, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 57, 212, 0.15);
    padding: 1rem;
    gap: 0.15rem;
  }

  .menubar.open {
    display: flex;
  }

  .menubar > li > a,
  .menubar > li > button {
    padding: 0.65rem 1rem;
    font-size: 1rem;
    width: 100%;
    justify-content: flex-start;
  }

  .submenu {
    position: static;
    background: rgba(28, 16, 48, 0.6);
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 8px;
    margin: 0.15rem 0 0.15rem 1rem;
    padding: 0.25rem;
  }

  .submenu li a {
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
  }

  /* Hero */
  .hero {
    padding: 3rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-show h1 {
    font-size: 1.8rem;
  }

  /* Shows grid */
  .shows-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Episodes */
  .episodes-container.grid-latest {
    grid-template-columns: 1fr;
  }

  .episodes-latest .episode-card,
  .episodes-list .episode-card {
    flex-direction: column;
  }

  .episodes-latest .episode-cover,
  .episodes-list .episode-cover {
    width: 100%;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Table */
  .appearances-table {
    font-size: 0.85rem;
  }

  .appearances-table th,
  .appearances-table td {
    padding: 0.6rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .shows-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }

  .hero-show h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .rqc-schedule {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero-show h1 {
    font-size: 3rem;
  }
}

/* =============================================
   ACCESSIBILITÉ — Focus visible (RGAA 10.7)
   Tous les éléments interactifs ont un indicateur
   de focus clavier distinct du hover.
   ============================================= */

/* Liens globaux (fallback) */
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Cartes d'émissions */
.show-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-color: var(--gold);
}

/* Bouton "Lire plus / Lire moins" */
.btn-read-more:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
  opacity: 1;
}

/* Boutons de pagination */
.pagination-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Bouton menu hamburger mobile */
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Bouton de réinitialisation recherche */
.search-bar .search-reset:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 50%;
  opacity: 1;
}

/* Liens streaming et contact */
.streaming-links a:focus-visible,
.contact-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* =============================================
   FORMULAIRE DE CONTACT
   ============================================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: var(--purple-pale);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--card);
  border: 1px solid rgba(139, 57, 212, 0.3);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Luciole', sans-serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(244, 237, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-bright);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C7FAE' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--card);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Piège anti-spam (honeypot) — invisible pour les humains, rempli par les bots */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.required {
  color: var(--gold);
  margin-left: 2px;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  min-height: 1.5rem;
}

.form-status--success {
  background: rgba(85, 217, 204, 0.12);
  border: 1px solid var(--teal);
  color: var(--teal);
}

.form-status--error {
  background: rgba(255, 107, 157, 0.12);
  border: 1px solid #FF6B9D;
  color: #FF6B9D;
}

/* =============================================
   BOUTON SCROLL TO TOP
   ============================================= */

.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple-rich);
  color: var(--white);
  border: 1px solid rgba(181, 110, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 9000;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

/* Flèche CSS (haut) */
.scroll-top-btn::before {
  content: '';
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  border-radius: 2px;
  transform: rotate(-45deg) translateY(3px);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--purple-mid);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.scroll-top-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.scroll-top-btn:active {
  transform: translateY(0);
}

/* =============================================
   ACCESSIBILITÉ — Réduction des mouvements
   Les animations ne s'activent que si l'utilisateur
   n'a pas demandé à réduire les mouvements.
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-top-btn {
    transition: opacity 0.01ms, visibility 0.01ms;
  }

  .live-badge .live-dot {
    animation: none;
  }

  .loading-spinner {
    animation: none;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
