/* ====================================
   MAIN.CSS — Point d'entrée Radio Bleue
   ==================================== */

/* Google Fonts (les autres feuilles sont chargées par inc/enqueue.php) */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================
   STYLES GLOBAUX SUPPLÉMENTAIRES
   ============================ */

/* Section "Émission en cours" */
.on-air-section {
  padding: var(--space-2xl) 0;
  background: var(--color-surface);
}

.on-air-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.on-air-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-md);
  color: #DC2626;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.on-air-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #DC2626;
  animation: blink 1.2s ease-in-out infinite;
}

.on-air-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.on-air-presenter {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.on-air-time {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-lg);
}

.progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: var(--radius-full);
  width: 42%;
  animation: progressPulse 3s ease-in-out infinite alternate;
}

@keyframes progressPulse {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

.on-air-schedule-text {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Section programme du jour (index) */
.daily-schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.daily-schedule-table th {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-align: left;
}

.daily-schedule-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.daily-schedule-table tr:last-child td {
  border-bottom: none;
}

.daily-schedule-table tr:nth-child(even) td {
  background: var(--color-bg);
}

.daily-schedule-table tr:hover td {
  background: rgba(26,95,168,0.04);
}

.schedule-time-cell {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

.schedule-title-cell {
  font-weight: var(--font-weight-medium);
}

.schedule-host-cell {
  color: var(--color-text-muted);
}

/* Article page */
.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 4rem;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article-content p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

/* Direction cards (grandes) */
.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.direction-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.direction-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  flex-shrink: 0;
  font-weight: var(--font-weight-bold);
  border: 3px solid var(--color-border);
}

.direction-info h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xs);
}

.direction-info .role {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-md);
}

.direction-info p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

/* Techniciens liste */
.tech-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.tech-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
}

.tech-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  flex-shrink: 0;
}

.tech-info strong {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.tech-info span {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Section à propos home */
.about-home {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.about-home-text {
  flex: 1;
}

.about-home-visual {
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(26,95,168,0.25);
  position: relative;
}

.about-home-visual::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(26,95,168,0.25);
  animation: rotateSlow 20s linear infinite;
}

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

.about-home-icon {
  font-size: 5rem;
  color: rgba(255,255,255,0.85);
}

/* Intro histoire */
.histoire-intro {
  max-width: 760px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

.histoire-intro p {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
}

/* Responsive extras */
@media (max-width: 768px) {
  .direction-grid { grid-template-columns: 1fr; }
  .direction-card { flex-direction: column; text-align: center; }
  .tech-list { grid-template-columns: 1fr; }
  .about-home { flex-direction: column; text-align: center; }
  .about-home-visual { width: 200px; height: 200px; }
  .about-home-icon { font-size: 3.5rem; }
  .daily-schedule-table .schedule-host-cell { display: none; }
}
