/* ================================================================
   VARIABLES & RESET
   ================================================================ */
:root {
  --dark:       #222222;
  --bg:         #2d2d2d;
  --card:       #3b3b3b;
  --card-light: #eceae5;
  --text:       #ffffff;
  --text-dark:  #1a1a1a;
  --text-muted: #999999;
  --red:        #e63946;
  --orange:     #f4a21c;
  --yellow:     #f5e426;
  --teal:       #00c9a7;
  --border:     rgba(255,255,255,0.30);
  --nav-h:      115px;
  --r-btn:      22px;
  --r-card:     14px;
  --max-w:      1380px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ================================================================
   HEADER / NAVIGATION
   ================================================================ */
.site-header {
  background: var(--dark);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 18px;
}

/* -- Logo -- */
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 75px;
  width: auto;
}

/* -- Hamburger -- */
.hamburger {
  background: none;
  border: none;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* -- Nav Links -- */
.nav-links {
  display: flex;
  gap: 10px;
  margin-left: auto;
  align-items: center;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.nav-btn:hover { border-color: rgba(255,255,255,0.65); }
.nav-btn.active { border-color: var(--red); }

.nav-notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  padding: 0 4px;
  margin-left: 7px;
  line-height: 1;
  vertical-align: middle;
  pointer-events: none;
}

/* -- Search -- */
.search-btn {
  background: var(--red);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
  transition: background 0.2s;
}
.search-btn:hover { background: #c62d38; }
.search-btn svg { width: 22px; height: 22px; }

/* Search overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.open { display: flex; }
.search-inner {
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}
.search-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 20px;
  background: var(--card);
  border: 2px solid var(--red);
  border-radius: 10px;
  color: var(--text);
  outline: none;
}
.search-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  line-height: 1;
}

/* ================================================================
   SHARED UTILS
   ================================================================ */
.btn-cal {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  padding: 5px 14px;
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-cal:hover { border-color: rgba(255,255,255,0.7); color: white; }

/* Thin scrollbars for scroll areas */
.podcast-list::-webkit-scrollbar,
.event-list::-webkit-scrollbar,
.live-chat-messages::-webkit-scrollbar { width: 4px; }
.podcast-list::-webkit-scrollbar-track,
.event-list::-webkit-scrollbar-track,
.live-chat-messages::-webkit-scrollbar-track { background: transparent; }
.podcast-list::-webkit-scrollbar-thumb,
.event-list::-webkit-scrollbar-thumb,
.live-chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 2px; }
.podcast-list::-webkit-scrollbar-thumb:hover,
.event-list::-webkit-scrollbar-thumb:hover,
.live-chat-messages::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.35); }
/* scrollbar for light card */
.card-nouveautes .podcast-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
.card-nouveautes .podcast-list::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.28); }

/* ================================================================
   HOMEPAGE
   ================================================================ */
.page-home {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
}

/* Blob background */
.blobs-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
}

.blob-yellow {
  width: 550px;
  height: 480px;
  background: var(--yellow);
  bottom: -160px;
  left: -140px;
  border-radius: 43% 57% 65% 35% / 55% 45% 55% 45%;
}

.blob-orange {
  width: 900px;
  height: 780px;
  background: var(--orange);
  top: -220px;
  left: calc(50% - 420px);
  border-radius: 45% 55% 55% 45% / 40% 55% 45% 60%;
}

.blob-teal {
  width: 550px;
  height: 680px;
  background: var(--teal);
  top: -100px;
  right: -120px;
  border-radius: 55% 45% 40% 60% / 50% 40% 60% 50%;
}

/* Home grid */
.home-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 265px 1fr 285px;
  grid-template-rows: 1fr;
  gap: 20px;
  padding: 24px 24px 0;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  align-items: stretch;
  min-height: 560px;
}

/* Nouveautés card */
.card-nouveautes {
  background: var(--card-light);
  border-radius: var(--r-card);
  padding: 22px 18px;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-nouveautes h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.podcast-meta {
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 500;
}
.card-nouveautes .podcast-meta { color: #555; }
.card-nouveautes .podcast-titre { color: var(--black); }

.podcast-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1e1e1e;
  border-radius: 8px;
  display: block;
  overflow: hidden;
  transition: opacity 0.2s;
}
.podcast-thumb:hover { opacity: 0.85; cursor: pointer; }

/* Player section */
.player-center {
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.live-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

/* Compact audio player bar */
.player-box {
  width: 100%;
  height: 90px;
  background: #1a1a1a;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  flex-shrink: 0;
}

.play-btn-home {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.play-btn-home:hover { background: rgba(255,255,255,0.26); transform: scale(1.07); }
.play-btn-home svg { width: 26px; height: 26px; fill: white; margin-left: 3px; }

/* Waveform visualizer */
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  height: 44px;
}
.waveform span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--orange);
  opacity: 0.55;
  transform: scaleY(0.25);
  transform-origin: center;
  transition: transform 0.3s;
}
.waveform.playing span {
  opacity: 0.75;
  animation: wave 1.3s ease-in-out infinite;
}
.waveform span:nth-child(1) { height: 28px; }
.waveform span:nth-child(2) { height: 38px; animation-delay: .12s; }
.waveform span:nth-child(3) { height: 22px; animation-delay: .24s; }
.waveform span:nth-child(4) { height: 44px; animation-delay: .06s; }
.waveform span:nth-child(5) { height: 32px; animation-delay: .18s; }
.waveform span:nth-child(6) { height: 38px; animation-delay: .30s; }
.waveform span:nth-child(7) { height: 24px; animation-delay: .09s; }
.waveform span:nth-child(8) { height: 34px; animation-delay: .21s; }
@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.25); }
}

/* Volume inside player box */
.player-volume {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.player-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  outline: none;
  cursor: pointer;
}
.player-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
}
.player-volume input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
}

/* Now playing + status row */
.player-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.now-playing {
  font-size: 13px;
  color: var(--orange);
  font-style: italic;
  font-weight: 500;
}

.player-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.player-status--connecting { color: var(--orange); }
.player-status--live       { color: var(--teal); }
.player-status--error      { color: var(--red); }

/* Prochainement card */
.card-prochainement {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-prochainement h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.event-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.event-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.event-item:first-child { padding-top: 0; }
.event-item:last-child { border-bottom: none; }

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}
.event-date { color: var(--red); font-weight: 700; font-size: 14px; }
.event-time { font-weight: 700; font-size: 14px; }
.event-desc { font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 8px; line-height: 1.4; }
.event-note { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

/* Home tagline */
.home-tagline {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 18px 20px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--orange);
  font-style: italic;
  flex-shrink: 0;
}

/* ================================================================
   EMISSIONS PAGE
   ================================================================ */
.page-emissions {
  min-height: calc(100vh - var(--nav-h));
  padding: 30px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.controls-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.filter-select:focus { border-color: var(--red); }
.filter-select option { background: var(--card); }


.filter-reset {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
  padding: 7px 12px;
  transition: color 0.15s, border-color 0.15s;
}
.filter-reset:hover { color: var(--text); border-color: var(--text); }

.sort-control {
  position: relative;
  display: inline-block;
}

.sort-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 14px;
}
.sort-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }

.sort-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  min-width: 130px;
  z-index: 10;
  display: none;
}
.sort-dropdown.open { display: block; }

.sort-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 5px 0;
  cursor: pointer;
}
.sort-option input[type="checkbox"] { accent-color: var(--red); cursor: pointer; }

.year-group { margin-bottom: 42px; }

.year-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.podcasts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.podcast-card { display: flex; flex-direction: column; gap: 7px; }

.podcast-card .podcast-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.podcast-comment-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  width: fit-content;
  transition: color .15s, border-color .15s;
}
.podcast-comment-btn:hover { color: var(--orange); border-color: var(--orange); }

.podcast-titre {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podcast-card .podcast-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1e1e1e;
  border-radius: 8px;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
}
.podcast-card:hover .podcast-thumb { opacity: 0.8; }
.podcast-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }

.podcast-thumb-desc {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.22s;
  pointer-events: none;
  overflow: hidden;
}
.podcast-card:hover .podcast-thumb-desc { opacity: 1; }

.loading {
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0;
}

/* ── Lecteur épisode (bas de page) ─────────────────────────────────────────── */

.ep-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a1a1a;
  border-top: 1px solid #333;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.ep-player.open { transform: translateY(0); }

.ep-player-info {
  min-width: 0;
  flex: 0 0 220px;
}
.ep-player-titre {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-player-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.ep-player-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ep-player-btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  transition: opacity 0.15s;
}
.ep-player-btn:hover svg { opacity: 0.75; }

.ep-player-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ep-player-seek {
  flex: 1;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #444;
  outline: none;
  cursor: pointer;
  transition: background 0.1s;
}
.ep-player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
}
.ep-player-seek::-moz-range-thumb {
  width: 12px; height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
}

.ep-player-vol {
  flex: 0 0 80px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #444;
  outline: none;
  cursor: pointer;
}
.ep-player-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
}
.ep-player-vol::-moz-range-thumb {
  width: 12px; height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
}

.ep-player-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  flex-shrink: 0;
}
.ep-player-close:hover { color: #fff; }

@media (max-width: 600px) {
  .ep-player-info { display: none; }
  .ep-player-vol  { display: none; }
}

.no-results {
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0;
}

.admin-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  margin-bottom: 32px;
  transition: opacity 0.15s;
}
.admin-add-btn:hover { opacity: 0.85; }

/* ================================================================
   AGENDA PAGE
   ================================================================ */
.page-agenda {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  overflow: hidden;
}

.agenda-blobs-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob-agenda-yellow {
  position: absolute;
  width: 300px;
  height: 100%;
  min-height: 900px;
  background: var(--yellow);
  left: 0;
  top: 0;
  border-radius: 0 50% 50% 0 / 0 30% 30% 0;
}

.blob-agenda-teal {
  position: absolute;
  width: 300px;
  height: 100%;
  min-height: 900px;
  background: var(--teal);
  right: 0;
  top: 0;
  border-radius: 50% 0 0 50% / 30% 0 0 30%;
}

.agenda-content {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin: 0 auto;
  padding: 40px 30px 60px;
}

.agenda-events { }

.agenda-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.agenda-card {
  background: var(--card);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.agenda-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.agenda-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.agenda-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.agenda-card-img--empty {
  background: linear-gradient(135deg, rgba(244,162,28,.12), rgba(0,201,167,.10));
}

.agenda-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.agenda-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.agenda-card-date {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  text-transform: capitalize;
}

.agenda-card-time {
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.agenda-card-time::before { content: '·'; margin-right: 8px; opacity: .5; }

.agenda-card-type {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.agenda-card-type--live      { background: rgba(244,162,28,.18); color: var(--orange); }
.agenda-card-type--apero     { background: rgba(0,201,167,.15);  color: var(--teal); }
.agenda-card-type--associatif{ background: rgba(245,228,38,.15); color: var(--yellow); }
.agenda-card-type--soiree    { background: rgba(180,120,255,.15); color: #c084fc; }

.agenda-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.agenda-card-lieu {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.agenda-card-note {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.agenda-card-footer {
  margin-top: auto;
  padding-top: 10px;
}

/* ================================================================
   PARTICIPER PAGE
   ================================================================ */
.page-participer {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
}

.participer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 30px;
  width: 100%;
}

.participer-list { display: flex; flex-direction: column; margin-bottom: 60px; }

.participer-item {
  font-size: 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: color 0.2s;
}
.participer-item:first-child { border-top: 1px solid rgba(255,255,255,0.10); }
.participer-item:hover { color: var(--text); }

.participer-item--action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.participer-item--action:hover { color: var(--orange); }
.participer-item--action:hover .participer-arrow { stroke: var(--orange); transform: translateX(4px); }
.participer-arrow { transition: transform 0.2s, stroke 0.2s; flex-shrink: 0; stroke: rgba(255,255,255,0.5); }

.participer-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-top: 40px;
  line-height: 1.6;
}

/* ================================================================
   LA LOCALE PAGE
   ================================================================ */
.page-lalocale { min-height: calc(100vh - var(--nav-h)); }

.lalocale-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 30px;
}

.lalocale-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 50px;
  padding-left: 18px;
  border-left: 3px solid var(--red);
}
.lalocale-intro p { margin-bottom: 16px; }
.lalocale-intro p:last-child { margin-bottom: 0; }

.lalocale-section { margin-top: 40px; }

.lalocale-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.lalocale-section p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin-bottom: 14px;
}

.lalocale-section ul { list-style: none; padding: 0; }

.lalocale-section li {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.5;
}
.lalocale-section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
}

/* ================================================================
   HEADER USER
   ================================================================ */
.header-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.header-role {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}
.header-role--admin { background: var(--red);    color: #fff; }
.header-role--user  { background: var(--teal);   color: #fff; }

.header-logout {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 5px 12px;
  transition: color 0.15s, border-color 0.15s;
}
.header-logout:hover { color: var(--text); border-color: var(--text); }

.header-login {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  transition: background 0.15s;
}
.header-login:hover { background: rgba(255,255,255,0.08); }

/* ================================================================
   LOGIN PAGE
   ================================================================ */
.page-login {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
}

.login-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
}

.login-form { display: flex; flex-direction: column; gap: 18px; }

.login-field { display: flex; flex-direction: column; gap: 7px; }

.login-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.login-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.login-field input:focus { border-color: var(--red); }

.login-error {
  font-size: 13px;
  color: var(--red);
  min-height: 18px;
  margin: -6px 0;
}

.login-submit {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: opacity 0.15s;
  margin-top: 4px;
}
.login-submit:hover { opacity: 0.88; }

.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
}

.login-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.login-tab.active { color: var(--red); border-bottom-color: var(--red); }
.login-tab:hover:not(.active) { color: var(--text); }

.login-required { color: var(--red); }

.login-success {
  font-size: 13px;
  color: var(--teal);
  min-height: 18px;
  margin: -6px 0;
}

/* ================================================================
   PAGE ADMIN
   ================================================================ */
.page-admin {
  min-height: calc(100vh - var(--nav-h));
  padding: 36px 30px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.admin-layout { display: flex; flex-direction: column; gap: 0; }

/* ── Onglets admin ── */
.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 0 0 0 2px;
  border-bottom: 2px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
  flex-shrink: 0;
}

.admin-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px 11px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: color .15s, border-color .15s, background .15s;
}
.admin-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.admin-tab.active { color: var(--text); border-bottom-color: var(--red); }

.admin-tab-panel { display: none; flex-direction: column; gap: 32px; }
.admin-tab-panel.active { display: flex; }

.admin-card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 28px 28px 24px;
}

.admin-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-badge-count {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
}

/* Candidature cards */
.candidature-card {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.03);
}
.candidature-card--new {
  border-color: var(--orange);
  background: rgba(244,162,28,0.06);
}
.candidature-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.candidature-name {
  font-weight: 700;
  font-size: 15px;
}
.candidature-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}
.candidature-new-badge {
  background: var(--orange);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.candidature-mail {
  display: inline-block;
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.candidature-atelier {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.candidature-atelier strong { color: var(--orange); font-weight: 600; }
.candidature-motivation {
  font-size: 13px;
  color: rgba(255,255,255,0.80);
  line-height: 1.55;
  margin-bottom: 12px;
  white-space: pre-wrap;
}
.candidature-actions {
  display: flex;
  gap: 8px;
}

.admin-char-count {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.admin-form { display: flex; flex-direction: column; gap: 14px; }

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
}

.admin-form-row--datetime {
  grid-template-columns: 1fr auto auto;
}

.admin-field--time input {
  width: 120px;
}

.admin-field--time label {
  font-size: 11px;
}

.admin-field { display: flex; flex-direction: column; gap: 6px; }

.admin-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
}
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus { border-color: var(--red); }
.admin-field select option { background: var(--card); }

.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 4px;
}

.admin-msg { font-size: 13px; flex: 1; }

.admin-btn {
  background: var(--card-light);
  color: var(--text-dark);
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: opacity 0.15s;
}
.admin-btn:hover { opacity: 0.82; }
.admin-btn--primary { background: var(--red); color: #fff; }
.admin-btn--danger  { background: transparent; color: var(--red); border: 1px solid var(--red); }
.admin-btn--sm      { padding: 5px 12px; font-size: 12px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 0 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.03); }
.admin-file { color: var(--text-muted); text-align: center; }
.admin-actions { display: flex; gap: 8px; justify-content: flex-end; }

.admin-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-modal-overlay.open { display: flex; }

.admin-modal {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 32px 28px 24px;
  width: 100%;
  max-width: 560px;
}

.admin-types-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.admin-types-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text);
}

.admin-types-form {
  background: var(--bg);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 220px 1fr 240px; }
}

@media (max-width: 1200px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 20px 28px;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    z-index: 99;
  }
}

@media (max-width: 860px) {
  .home-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 16px 14px 0;
    min-height: unset;
    gap: 14px;
  }
  .player-center {
    order: -1;
    min-height: 420px;
    max-height: 520px;
  }
  .card-nouveautes { order: 0; max-height: 300px; }
  .card-prochainement { max-height: 300px; }
  .podcasts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .podcasts-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0 16px; gap: 12px; }
  .logo-link { min-width: 150px; }
  .logo-locale-row { font-size: 24px; }
  .logo-o-circle { width: 26px; height: 26px; font-size: 22px; }
  .agenda-event { flex-direction: column; }
  .agenda-event-actions { width: 100%; }
  .blob-agenda-yellow, .blob-agenda-teal { width: 120px; }
  .player-center { min-height: 380px; max-height: 480px; }
}

/* ================================================================
   CHAT EN DIRECT (intégré dans .player-center)
   ================================================================ */
.live-chat-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.live-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.live-chat-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .04em;
}

.live-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scroll-behavior: smooth;
}

.chat-msg {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 6px;
  align-items: baseline;
}
.chat-msg p.chat-text {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
  margin: 0;
}
.chat-author       { font-size: 12px; font-weight: 700; color: var(--orange); }
.chat-author--admin{ color: var(--teal); }
.chat-time         { font-size: 11px; color: var(--text-muted); }
.chat-delete {
  background: none; border: none; color: var(--text-muted);
  font-size: 10px; cursor: pointer; padding: 0 4px; opacity: .6;
  transition: color .15s, opacity .15s;
}
.chat-delete:hover { color: var(--red); opacity: 1; }

.live-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}
.live-chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 14px;
  outline: none;
  transition: border-color .2s;
}
.live-chat-input:focus { border-color: var(--orange); }
.live-chat-send {
  background: var(--red);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .2s;
}
.live-chat-send:hover { background: #c62d38; }

.live-chat-login {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  transition: color .2s;
}
.live-chat-login:hover { color: var(--orange); }

/* ================================================================
   COMMENTAIRES
   ================================================================ */
.comment-modal { max-height: 85vh; display: flex; flex-direction: column; }

.comments-list {
  flex: 1;
  overflow-y: auto;
  max-height: 320px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comments-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 20px 0; }

.comment-item {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px 14px;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.comment-author { font-weight: 600; font-size: 13px; color: var(--orange); }
.comment-date   { font-size: 11px; color: var(--text-muted); flex: 1; }
.comment-text   { font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.comment-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s;
}
.comment-delete-btn:hover { color: var(--red); }

.comment-textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  transition: border-color .2s;
}
.comment-textarea:focus { border-color: var(--orange); }

/* ================================================================
   ARCHIVES (messages admin)
   ================================================================ */
.candidature-card--archived {
  opacity: 0.5;
  border-color: rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.01);
}

.archives-details { margin-top: 16px; }

.archives-summary {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0;
  user-select: none;
  list-style: none;
}
.archives-summary::-webkit-details-marker { display: none; }
details[open] .archives-summary { color: var(--text); }
