/* ============================================================
   Radio Quartz – Feuille de style principale
   Palette : Cristal profond (#0d1b3e) · Orange Quartz (#f47920)
             Blanc pur (#ffffff) · Ardoise (#4a5568) · Clair (#f7f8fc)
   Typo : Montserrat (display/UI) + Lora (corps éditorial)
============================================================ */

:root {
  --deep:    #0d1b3e;
  --gold:    #f4791f;
  --gold-light: #ff9d4d;
  --white:   #ffffff;
  --light:   #f7f8fc;
  --slate:   #4a5568;
  --muted:   #8892a4;
  --border:  #e2e8f0;
  --player-h: 70px;
  --header-h: 72px;
  --radius:  10px;
  --shadow:  0 4px 24px rgba(13,27,62,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--slate);
  background: var(--white);
  padding-top: calc(var(--player-h) + var(--header-h));
  line-height: 1.7;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--deep); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: var(--deep);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }

.section-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
  display: block;
}

/* ===== PLAYER BAR ===== */
#player-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--player-h);
  background: var(--deep);
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.player-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  padding: 0 24px;
}
.player-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.player-logo img { height: 36px; width: auto; }
.player-name { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.1rem; color: var(--white); }
.player-fm   { font-family: 'Montserrat', sans-serif; font-size: .7rem; font-weight: 600; color: var(--gold); background: rgba(244,121,31,.15); padding: 2px 8px; border-radius: 20px; }

.player-controls { display: flex; align-items: center; gap: 16px; flex: 1; }

.btn-play {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--deep);
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.btn-play:hover { background: var(--gold-light); transform: scale(1.08); }
.btn-play.playing { background: #e05252; color: #fff; }

.player-info { flex: 1; min-width: 0; }
#now-playing-label { display: block; font-family: 'Montserrat', sans-serif; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
#now-playing-title { display: block; font-family: 'Montserrat', sans-serif; font-size: .9rem; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-volume { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; }
#volume-slider { width: 80px; accent-color: var(--gold); cursor: pointer; }

.player-social { display: flex; gap: 12px; flex-shrink: 0; }
.player-social a { color: var(--muted); font-size: 1rem; transition: color .2s; }
.player-social a:hover { color: var(--gold); }

/* ===== HEADER / NAV ===== */
#main-header {
  position: fixed;
  top: var(--player-h); left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 900;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}
.logo-text { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.4rem; color: var(--deep); }

#main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
#main-nav ul li { position: relative; }
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem; font-weight: 600;
  color: var(--slate); padding: 8px 14px; border-radius: 6px;
  display: flex; align-items: center; gap: 5px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--light); color: var(--deep); }
.nav-link.active { color: var(--gold); }

.has-dropdown { position: relative; }
#main-nav .dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  flex-direction: column; align-items: stretch;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 180px; padding: 6px 0; z-index: 800; gap: 0;
}
.dropdown li a {
  display: block; padding: 10px 18px;
  font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 600;
  color: var(--slate);
}
.dropdown li a:hover { background: var(--light); color: var(--deep); }
#main-nav .has-dropdown:hover .dropdown { display: flex; }

#menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
#menu-toggle span { width: 25px; height: 2px; background: var(--deep); border-radius: 2px; transition: .3s; }

/* ===== HERO (Accueil) ===== */
.hero {
  background: linear-gradient(135deg, var(--deep) 0%, #1a3a6e 100%);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: .12;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .slogan {
  font-family: 'Lora', serif; font-style: italic; font-size: 1.25rem;
  color: var(--gold-light); margin-bottom: 2rem;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--gold); color: var(--deep);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 40px; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.hero-cta:hover { background: var(--gold-light); transform: translateY(-2px); color: var(--deep); }

/* ===== SECTIONS ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--light); }

.section-header { margin-bottom: 40px; }
.section-header h2::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--gold); margin-top: 10px; border-radius: 2px;
}

/* ===== NOW ON AIR ===== */
.on-air-card {
  display: flex; align-items: center; gap: 28px;
  background: var(--deep); color: var(--white);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.on-air-logo { width: 100px; height: 100px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.on-air-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e05252; color: #fff;
  font-family: 'Montserrat', sans-serif; font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
}
.on-air-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.on-air-info h3 { color: var(--white); font-size: 1.4rem; }
.on-air-animator { color: var(--gold-light); font-family: 'Montserrat', sans-serif; font-size: .9rem; margin: 4px 0; }
.on-air-time { color: var(--muted); font-size: .82rem; font-family: 'Montserrat', sans-serif; }

/* ===== LASTNEWS GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.news-card {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  background: var(--white);
  border: 1px solid var(--border);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card-img { position: relative; aspect-ratio: 1; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-play {
  position: absolute; inset: 0; background: rgba(13,27,62,.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
  font-size: 2rem; color: var(--white);
}
.news-card:hover .news-card-play { opacity: 1; }
.news-card-body { padding: 12px; }
.news-card-artist { font-family: 'Montserrat', sans-serif; font-size: .75rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; }
.news-card-title { font-size: .9rem; color: var(--deep); font-weight: 600; margin-top: 2px; }

/* ===== AGENDA ===== */
.agenda-list { display: flex; flex-direction: column; gap: 20px; }
.agenda-item {
  display: flex; gap: 20px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; background: var(--white);
  transition: box-shadow .2s;
}
.agenda-item:hover { box-shadow: var(--shadow); }
.agenda-date {
  flex-shrink: 0; text-align: center; width: 60px;
  background: var(--deep); color: var(--white); border-radius: 8px; padding: 10px 6px;
}
.agenda-date .day { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 900; line-height: 1; }
.agenda-date .month { font-family: 'Montserrat', sans-serif; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-light); }
.agenda-content h3 { font-size: 1.05rem; color: var(--deep); }
.agenda-meta { font-size: .82rem; color: var(--muted); font-family: 'Montserrat', sans-serif; margin-top: 4px; }
.agenda-meta i { color: var(--gold); margin-right: 4px; }

/* ===== PODCASTS ===== */
.podcasts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.podcast-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  transition: box-shadow .2s, transform .2s;
}
.podcast-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.podcast-cover { aspect-ratio: 16/9; overflow: hidden; }
.podcast-cover img { width: 100%; height: 100%; object-fit: cover; }
.podcast-body { padding: 18px; }
.podcast-emission { font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.podcast-title { font-size: 1rem; font-weight: 600; color: var(--deep); margin: 6px 0; }
.podcast-meta { font-size: .8rem; color: var(--muted); font-family: 'Montserrat', sans-serif; }
.btn-podcast {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; font-family: 'Montserrat', sans-serif;
  font-size: .8rem; font-weight: 700; color: var(--deep);
  background: var(--light); border-radius: 20px; padding: 7px 16px;
  transition: background .2s;
}
.btn-podcast:hover { background: var(--gold-light); color: var(--deep); }

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.team-card {
  text-align: center; border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  border: 1px solid var(--border); transition: box-shadow .2s, transform .2s;
}
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.team-photo { aspect-ratio: 1; overflow: hidden; position: relative; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder {
  width: 100%; height: 100%; background: linear-gradient(135deg, var(--deep), #2a4a8e);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--gold);
}
.team-body { padding: 18px; }
.team-name { font-family: 'Montserrat', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--deep); }
.team-pseudo { color: var(--gold); font-size: .82rem; font-family: 'Montserrat', sans-serif; margin: 2px 0 10px; }
.team-bio { font-size: .88rem; color: var(--slate); }

/* ===== GRILLE HORAIRE ===== */
.schedule-tabs { display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.schedule-tab {
  font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 700;
  padding: 8px 18px; border-radius: 6px; border: 2px solid var(--border);
  background: var(--white); color: var(--slate); cursor: pointer; transition: .2s;
}
.schedule-tab:hover { border-color: var(--gold); color: var(--deep); }
.schedule-tab.active { background: var(--deep); color: var(--white); border-color: var(--deep); }
.schedule-day { display: none; }
.schedule-day.active { display: block; }
.schedule-slot {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.schedule-slot:last-child { border-bottom: none; }
.schedule-time {
  width: 100px; flex-shrink: 0; font-family: 'Montserrat', sans-serif;
  font-size: .9rem; font-weight: 700; color: var(--gold);
}
.schedule-emission-logo { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--light); }
.schedule-info h4 { font-size: 1rem; color: var(--deep); }
.schedule-info p { font-size: .85rem; color: var(--muted); font-family: 'Montserrat', sans-serif; }

/* ===== EMISSIONS ===== */
.emissions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.emission-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  transition: box-shadow .2s, transform .2s;
}
.emission-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.emission-cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--deep), #2a4a8e); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.emission-cover img { width: 100%; height: 100%; object-fit: cover; }
.emission-cover-icon { font-size: 3.5rem; color: var(--gold); opacity: .8; }
.emission-body { padding: 20px; }
.emission-title { font-size: 1.1rem; font-weight: 700; color: var(--deep); margin-bottom: 8px; }
.emission-desc { font-size: .9rem; color: var(--slate); }
.emission-animator { font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 700; color: var(--gold); margin-top: 12px; }

/* ===== PARTENAIRES ===== */
.partners-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; align-items: center; }
.partner-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 28px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  min-width: 150px; transition: box-shadow .2s;
}
.partner-item:hover { box-shadow: var(--shadow); }
.partner-item img { max-height: 60px; max-width: 140px; object-fit: contain; filter: grayscale(100%); opacity: .7; transition: .2s; }
.partner-item:hover img { filter: none; opacity: 1; }
.partner-name { font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 700; color: var(--slate); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-info h3 { color: var(--deep); margin-bottom: 16px; }
.contact-info p { margin-bottom: 12px; }
.contact-dept { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; }
.contact-dept i { color: var(--gold); margin-top: 2px; }
.contact-dept strong { display: block; font-family: 'Montserrat', sans-serif; font-size: .85rem; color: var(--deep); }
.contact-dept small { font-size: .8rem; color: var(--muted); }

.contact-form { background: var(--light); border-radius: var(--radius); padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 700; color: var(--deep); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border);
  border-radius: 8px; font-family: 'Lora', serif; font-size: 1rem;
  color: var(--deep); background: var(--white);
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  background: var(--deep); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .95rem;
  padding: 14px 32px; border: none; border-radius: 40px; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--gold); color: var(--deep); transform: translateY(-2px); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--deep) 0%, #1a3a6e 100%);
  padding: 48px 0 40px; color: var(--white); text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header p { color: var(--gold-light); margin-top: 8px; font-style: italic; }

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-family: 'Montserrat', sans-serif; font-size: .9rem; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

/* ===== PUBLICITE PAGE ===== */
.pub-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-bottom: 48px; }
.pub-feature { text-align: center; padding: 32px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.pub-feature i { font-size: 2.2rem; color: var(--gold); margin-bottom: 14px; }
.pub-feature h3 { font-size: 1rem; }
.pub-feature p { font-size: .88rem; color: var(--slate); margin-top: 8px; }

/* ===== FOOTER ===== */
#main-footer { background: var(--deep); color: var(--white); padding: 56px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .footer-logo { height: 48px; margin-bottom: 12px; }
.footer-slogan { font-style: italic; color: var(--gold-light); margin-bottom: 4px; }
.footer-fm { font-family: 'Montserrat', sans-serif; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
#main-footer h4 { font-family: 'Montserrat', sans-serif; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 14px; }
#main-footer ul { list-style: none; }
#main-footer ul li { margin-bottom: 8px; }
#main-footer ul li a { color: var(--muted); font-size: .9rem; transition: color .2s; }
#main-footer ul li a:hover { color: var(--white); }
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-links a { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; transition: color .2s; }
.social-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding: 20px 0; }
.footer-bottom p { font-family: 'Montserrat', sans-serif; font-size: .78rem; color: var(--muted); text-align: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .player-social { display: none; }
}
@media (max-width: 700px) {
  #menu-toggle { display: flex; position: absolute; right: 24px; }
  .header-inner { position: relative; }
  #main-nav {
    display: none; position: fixed; top: calc(var(--player-h) + var(--header-h));
    left: 0; right: 0; bottom: 0; background: var(--white);
    overflow-y: auto; padding: 20px; z-index: 850;
  }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: 0; }
  .nav-link { padding: 14px 10px; border-bottom: 1px solid var(--border); border-radius: 0; }
  #main-nav .dropdown { position: static; box-shadow: none; border: none; border-radius: 0; padding-left: 16px; display: none; }
  #main-nav .has-dropdown:hover .dropdown { display: none; }
  #main-nav .has-dropdown.open .dropdown { display: flex; }
  #volume-slider { width: 55px; }
  .footer-grid { grid-template-columns: 1fr; }
  .on-air-card { flex-direction: column; text-align: center; }
  .news-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
