/* ==========================================================================
   Cœur de Savoie — feuille de style principale
   ========================================================================== */

:root {
  /* Palette — inspirée de la croix de Savoie (blanc sur fond rouge) */
  --red-900: #6e0e1f;
  --red-800: #8a0f24;
  --red-700: #a3132b;
  --red: #c31432;
  --red-600: #d81e3a;
  --red-100: #fbe8ea;
  --red-50: #fdf4f5;

  --gold: #ab8a4e;
  --gold-light: #d8c491;

  --ink: #1a1a1e;
  --ink-soft: #4a4a52;
  --ink-mute: #74747c;

  --paper: #faf8f6;
  --paper-alt: #f3efe9;
  --white: #ffffff;
  --line: #e7e1d8;
  --mist: #eef1f2;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(26,26,30,.06), 0 1px 1px rgba(26,26,30,.04);
  --shadow-md: 0 8px 24px rgba(26,26,30,.10);
  --shadow-lg: 0 20px 48px rgba(26,26,30,.16);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; }
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Barre utilitaire (topbar)
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar__date { text-transform: capitalize; letter-spacing: .01em; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__socials { display: flex; align-items: center; gap: 12px; }
.topbar__socials a { color: rgba(255,255,255,.78); display: flex; opacity: .9; transition: opacity .15s, color .15s; }
.topbar__socials a:hover { color: var(--gold-light); opacity: 1; }
.topbar__socials svg { width: 15px; height: 15px; }

/* ==========================================================================
   En-tête / navigation
   ========================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 88px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 46px; height: 46px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__name span { color: var(--red); }
.brand__tag {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--red-700); background: var(--red-50); }
.main-nav a.is-active { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---- Badge EN DIRECT ---- */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.live-badge__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--white);
  animation: pulse 1.6s ease-in-out infinite;
}
.live-badge.is-off { background: var(--ink-mute); }
.live-badge.is-off .live-badge__dot { animation: none; opacity: .6; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-700); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red-700); }
.btn-white { background: var(--white); color: var(--red-700); }
.btn-white:hover { background: var(--red-50); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--white); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Bandeau défilant
   ========================================================================== */
.ticker {
  background: var(--red-900);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.ticker .container { display: flex; align-items: stretch; padding-inline: 0; }
.ticker__label {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  padding: 0 18px;
  z-index: 2;
}
.ticker__track-wrap { overflow: hidden; flex: 1; padding-left: 24px; }
.ticker__track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: ticker 32s linear infinite;
  align-items: center;
  padding: 10px 0;
}
.ticker__track span { font-size: 13.5px; white-space: nowrap; color: rgba(255,255,255,.92); font-weight: 500; }
.ticker__track span::after { content: '•'; margin-left: 56px; color: var(--gold-light); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, var(--paper-alt), var(--paper));
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red-700); font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.hero__kicker::before { content: ''; width: 24px; height: 2px; background: var(--red); display: inline-block; }
.hero h1 { margin-bottom: 18px; }
.hero p.lead { font-size: 1.1rem; max-width: 46ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

.video-frame { position: relative; width: 100%; padding-top: 56.25%; background: var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Sections génériques
   ========================================================================== */
section { padding: 72px 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark p { color: rgba(255,255,255,.68); }
.section-dark h2 { color: var(--white); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red-700); font-weight: 700; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px;
}
.kicker::before { content: ''; width: 20px; height: 2px; background: var(--red); }
.section-dark .kicker { color: var(--gold-light); }
.section-dark .kicker::before { background: var(--gold-light); }
.section-head h2 { margin: 0; }
.section-head p.lead { max-width: 60ch; margin-top: 10px; }

/* ---- Grille de catégories ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--red-100); }
.cat-card__icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--red-50); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.cat-card__icon svg { width: 24px; height: 24px; }
.cat-card h3 { margin-bottom: 8px; }
.cat-card p { font-size: 14.5px; margin-bottom: 14px; }
.cat-card__link { font-size: 13.5px; font-weight: 700; color: var(--red-700); display: inline-flex; align-items: center; gap: 5px; }
.cat-card__link svg { width: 14px; height: 14px; transition: transform .15s; }
.cat-card:hover .cat-card__link svg { transform: translateX(3px); }

/* ---- Grille vidéos ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.video-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.video-card__thumb { position: relative; padding-top: 56.25%; background: var(--mist); overflow: hidden; }
.video-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35));
}
.video-card__play svg { width: 52px; height: 52px; color: var(--white); filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.video-card__body { padding: 16px 18px 20px; }
.video-card__meta { font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 6px; }
.video-card h3 { font-size: 16px; font-family: var(--font-body); font-weight: 700; line-height: 1.35; }

/* ---- État vide honnête ---- */
.empty-state {
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 48px 32px;
  text-align: center;
}
.empty-state__icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--red-50); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.empty-state__icon svg { width: 28px; height: 28px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { max-width: 46ch; margin: 0 auto 20px; }

/* ---- Bloc stats / abonnés ---- */
.stats-band {
  background: var(--red);
  color: var(--white);
  padding: 44px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; }
.stat__label { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; opacity: .85; margin-top: 4px; }

/* ---- Radio player mock ---- */
.radio-player {
  background: linear-gradient(135deg, var(--ink), #2a2a30);
  color: var(--white);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}
.radio-player__play {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  border: none; color: var(--white);
}
.radio-player__play[disabled] { background: rgba(255,255,255,.15); cursor: not-allowed; }
.radio-player__play svg { width: 24px; height: 24px; }
.radio-player__bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.radio-player__bars span { width: 3px; background: var(--gold-light); border-radius: 2px; opacity: .5; }
.radio-player__status { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--gold-light); margin-bottom: 4px; }

/* ---- Newsletter / CTA ---- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { max-width: 44ch; }

/* ---- Cartes actu / émissions ---- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-card__media { position: relative; padding-top: 62%; background: var(--mist); }
.article-card__media img { position: absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.article-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: var(--white); font-size: 11px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px;
}
.article-card__body { padding: 18px 20px 22px; }
.article-card__meta { font-size: 12px; color: var(--ink-mute); margin-bottom: 8px; }
.article-card h3 { font-size: 17px; font-family: var(--font-body); font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.article-card p { font-size: 14px; }

/* ---- Table des programmes ---- */
.schedule { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.schedule__row { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.schedule__row:last-child { border-bottom: none; }
.schedule__time { font-family: var(--font-display); font-weight: 700; color: var(--red-700); }
.schedule__day { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); font-weight: 700; }

/* ==========================================================================
   Lecteur vidéo en superposition (lightbox)
   ========================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 20px;
}
.video-modal[hidden] { display: none; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,12,.88);
}
.video-modal__box {
  position: relative;
  width: 100%;
  max-width: 980px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-modal__box .video-frame { padding-top: 56.25%; }
.video-modal__close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal__close svg { width: 18px; height: 18px; }
.video-modal__close:hover { background: rgba(255,255,255,.24); }
@media (max-width: 600px) {
  .video-modal { padding: 20px 12px; }
  .video-modal__close { top: -40px; right: 0; }
}

/* ==========================================================================
   Formulaires
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14.5px;
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-100);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12.5px; color: var(--ink-mute); margin-top: 6px; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand__name { color: var(--white); font-size: 1.3rem; }
.footer-brand .brand__name span { color: var(--gold-light); }
.footer-col h4 { color: var(--white); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.68); transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-socials svg { width: 16px; height: 16px; }
.footer-socials a:hover { background: var(--red); border-color: var(--red); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; font-size: 12.5px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom__links { display: flex; gap: 20px; }

/* ==========================================================================
   Pages intérieures (bandeau de titre)
   ========================================================================== */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 52px 0;
  border-bottom: 4px solid var(--red);
}
.page-hero .kicker { color: var(--gold-light); }
.page-hero .kicker::before { background: var(--gold-light); }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.7); max-width: 62ch; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--white); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft); background: var(--white);
}
.chip.is-active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ==========================================================================
   Utilitaires
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--line); margin: 56px 0; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mist); color: var(--ink-soft);
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .category-grid, .video-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  .topbar__date { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn span { display: none; }
  .site-header .container { height: 72px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.2rem; }
  section { padding: 52px 0; }
  .category-grid, .video-grid, .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px; flex-direction: column; align-items: flex-start; }
  .schedule__row { grid-template-columns: 1fr; gap: 4px; }
  .radio-player { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Menu mobile ---- */
.main-nav.is-open {
  display: flex;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--white);
  flex-direction: column;
  padding: 12px 20px 30px;
  overflow-y: auto;
  z-index: 99;
  gap: 2px;
}
.main-nav.is-open a { padding: 16px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
