
/* ============================================================
   RADIO ALSACE - CSS COMPLET ALTERNATIF
   Version autonome, sans rustines.
   Même HTML/PHP que radiomulhouse.fr, rendu visuel différent.
   ============================================================ */

/* ---------- Base ---------- */

:root {
  --bg: #f8efe1;
  --paper: rgba(255, 251, 242, 0.94);
  --paper-soft: rgba(255, 247, 232, 0.86);
  --paper-warm: rgba(253, 230, 198, 0.82);
  --ink: #271207;
  --ink-soft: #5e3217;
  --muted: #8a5a32;
  --red: #b91c1c;
  --red-dark: #7f1d1d;
  --gold: #d97706;
  --gold-soft: #fbbf24;
  --green: #15803d;
  --blue: #1e3a8a;
  --white: #ffffff;
  --border: rgba(112, 55, 18, 0.22);
  --border-strong: rgba(112, 55, 18, 0.34);
  --shadow: 0 22px 60px rgba(112, 55, 18, 0.18);
  --shadow-strong: 0 28px 90px rgba(80, 30, 10, 0.25);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max: 1440px;

  /* compatibilité avec les anciens noms de variables */
  --cyan: var(--gold);
  --fuchsia: rgba(253, 230, 198, 0.82);
  --text: var(--ink);
  --panel: var(--paper);
  --panel-strong: var(--paper);
  --emerald: var(--green);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--red-dark) rgba(112,55,18,0.16);
}

body {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(185, 28, 28, 0.11), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(217, 119, 6, 0.16), transparent 28rem),
    linear-gradient(135deg, #fff9ee 0%, #f7dfbb 48%, #fffaf0 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

/* ---------- Fond ---------- */

.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(rgba(2, 6, 23, 0.30), rgba(2, 6, 23, 0.38)),
    url("../img/templar-bg1.jpg") center center / cover no-repeat;
  background-attachment: fixed;
}

/* Si l'image n'existe pas encore, on garde une ambiance propre */
.bg-fixed::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(127, 29, 29, 0.08), transparent 36%),
    linear-gradient(300deg, rgba(217, 119, 6, 0.11), transparent 42%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(185, 28, 28, 0.10), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(251, 191, 36, 0.14), transparent 26%),
    radial-gradient(circle at 60% 100%, rgba(21, 128, 61, 0.07), transparent 30%);
}

.bg-grid,
.bg-scan {
  display: none;
}

/* ---------- Structures communes ---------- */

.hero-shell,
.panel,
.card,
.manifesto {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hero-shell {
  margin-top: 24px;
  border-radius: 30px;
  overflow: hidden;
}

/* ---------- Topbar ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 30px;
  color: var(--white);
  background:
    linear-gradient(90deg, var(--red-dark), var(--red) 46%, var(--gold));
  border-bottom: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 22px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
}

.brand-text small {
  display: block;
  margin-bottom: 4px;
  color: #fde68a;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 11px;
}

.brand-text strong {
  display: block;
  color: var(--white);
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill,
.status-off-pill {
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--white);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
}

.status-off-pill {
  background: rgba(60, 10, 10, 0.30);
}

/* ---------- Hero : réorganisation réelle ---------- */

.hero-main {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.5fr);
  align-items: stretch;
}

.hero-side {
  order: 1;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 247, 232, 0.96), rgba(253, 230, 198, 0.72));
  border-right: 1px solid var(--border);
}

.hero-copy {
  order: 2;
  padding: 48px 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--red-dark);
  color: var(--white);
  border: 0;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  font-size: 11px;
  font-weight: 900;
}

h1 {
  margin-top: 24px;
  font-size: clamp(3.4rem, 7vw, 6.9rem);
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: -0.07em;
  color: var(--ink);
}

.title-gradient {
  display: block;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--gold), var(--ink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero-copy p.lead {
  margin-top: 24px;
  max-width: 880px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.85;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 15px 26px;
  font-weight: 950;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--red-dark), var(--red)) !important;
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 16px 34px rgba(185, 28, 28, 0.24);
}

.btn-primary * {
  color: var(--white) !important;
}

.btn-secondary {
  color: var(--red-dark) !important;
  background: rgba(255,255,255,0.88) !important;
  border: 1px solid var(--border-strong);
}

.btn-secondary * {
  color: var(--red-dark) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red), #ef4444) !important;
}

.btn-secondary:hover {
  background: var(--white) !important;
  box-shadow: 0 14px 30px rgba(112, 55, 18, 0.14);
}

/* ---------- Stats ---------- */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.stat {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 247, 232, 0.78);
  padding: 20px;
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), transparent 45%);
}

.stat strong,
.stat span {
  position: relative;
}

.stat strong {
  display: block;
  color: var(--red-dark);
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Colonne hero side ---------- */

.domain-card,
.signature-card,
.media-mini {
  border-radius: 20px;
}

.domain-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.domain-row small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
}

.domain-row strong {
  display: block;
  margin-top: 8px;
  color: var(--red-dark);
  font-size: 26px;
  word-break: break-word;
}

.live-dot,
.unlive-dot {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.live-dot {
  background: var(--green);
  box-shadow: 0 0 18px rgba(21, 128, 61, 0.52);
}

.unlive-dot {
  background: var(--red);
  box-shadow: 0 0 18px rgba(185, 28, 28, 0.52);
}

.live-dot::before,
.unlive-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: ping 1.6s infinite;
}

.live-dot::before {
  background: rgba(21, 128, 61, 0.50);
}

.unlive-dot::before {
  background: rgba(185, 28, 28, 0.50);
}

.media-mini {
  position: relative;
  margin-top: 28px;
  padding: 18px;
  overflow: hidden;
  background: rgba(255, 251, 242, 0.78);
  border: 1px solid var(--border);
}

.media-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top, rgba(217,119,6,0.12), transparent 38%);
}

.media-mini-inner {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  padding: 18px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.media-mini-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.20em;
  font-size: 11px;
}

.mini-box {
  margin-top: 8px;
  padding: 14px;
  border-radius: 12px;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--border);
  font-size: 14px;
}

.signature-card {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 22px;
  background: rgba(255, 251, 242, 0.75);
  border: 1px solid var(--border);
}

.signature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--red-dark), var(--gold));
}

/* ---------- Sections générales ---------- */

.section {
  padding: 34px 0;
}

.grid-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.panel {
  border-radius: 26px;
  padding: 32px;
}

.section-label {
  display: inline-block;
  color: var(--white);
  background: var(--red-dark);
  border-radius: 8px;
  padding: 8px 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 950;
}

.panel h2,
.panel h3 {
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  font-weight: 950;
}

/* ---------- Status stream ---------- */

.stream-status,
.stream-off-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 850;
}

.stream-status {
  color: #14532d;
  background: rgba(21, 128, 61, 0.12);
  border: 1px solid rgba(21, 128, 61, 0.26);
}

.stream-off-status {
  color: var(--red-dark);
  background: rgba(185, 28, 28, 0.10);
  border: 1px solid rgba(185, 28, 28, 0.25);
}

.stream-off-status.online {
  color: #14532d;
  background: rgba(21, 128, 61, 0.12);
  border-color: rgba(21, 128, 61, 0.26);
}

.stream-off-status.offline {
  color: var(--red-dark);
}

.stream-title-status {
  margin-top: 8px;
  color: var(--red-dark);
}

/* ---------- Live radio/video ---------- */

.live-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 22px;
  margin-top: 28px;
}

.media-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 251, 242, 0.82);
  border: 1px solid var(--border);
  padding: 18px;
}

.media-box.video {
  padding: 14px;
}

.media-box.audio {
  padding: 20px;
}

.media-box.video::before,
.media-box.audio::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.media-box.video::before {
  background: linear-gradient(180deg, rgba(217,119,6,0.09), transparent 42%);
}

.media-box.audio::before {
  background: linear-gradient(180deg, rgba(185,28,28,0.09), transparent 42%);
}

.media-box .label {
  position: relative;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 900;
}

.video-frame {
  position: relative;
  margin-top: 14px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 18px 46px rgba(42, 19, 7, 0.22);
}

.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center center;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent 24%, transparent 78%, rgba(0,0,0,0.12));
}

.audio-box {
  position: relative;
  margin-top: 14px;
  min-height: 220px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.10), rgba(217, 119, 6, 0.12));
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
}

audio {
  width: 100%;
}

.side-stack {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.side-card {
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 251, 242, 0.80);
  border: 1px solid var(--border);
}

.side-card.current {
  background: rgba(253, 230, 198, 0.72);
  border-color: rgba(217,119,6,0.30);
  box-shadow: 0 0 30px rgba(217,119,6,0.10);
}

.side-card small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
}

.side-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 20px;
}

/* ---------- Cartes ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 24px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 26px;
  background: rgba(255, 251, 242, 0.82);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  background: #fffaf0;
  box-shadow: var(--shadow-strong);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(217,119,6,0.08), transparent 38%);
}

.card > * {
  position: relative;
}

.card small {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 900;
}

.card h3 {
  margin-top: 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.card p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- Programmes ---------- */

.grid-programs {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.table-wrap {
  margin-top: 28px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
}

thead {
  background: rgba(127, 29, 29, 0.10);
}

th,
td {
  padding: 18px 16px;
  text-align: left;
  color: var(--ink);
}

tbody tr {
  border-top: 1px solid var(--border);
  background: rgba(255, 251, 242, 0.68);
}

td.time {
  color: var(--red-dark);
  font-weight: 950;
  white-space: nowrap;
}

.show-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.show-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 251, 242, 0.82);
  border: 1px solid var(--border);
  padding: 22px;
}

.show-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217,119,6,0.06), transparent);
  pointer-events: none;
}

.show-row {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.show-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(217,119,6,0.12);
  border: 1px solid rgba(217,119,6,0.22);
  font-size: 22px;
}

.show-row small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
}

.show-row strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
}

.show-row p {
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* ---------- Manifeste : lisible, pas beige sur crème, merci la civilisation ---------- */

.manifesto {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(127, 29, 29, 0.96), rgba(185, 28, 28, 0.90) 46%, rgba(217, 119, 6, 0.90));
  border: 0;
  box-shadow: var(--shadow-strong);
}

.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 45%);
}

.manifesto-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.manifesto .section-label {
  color: var(--white);
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
}

.manifesto h2 {
  margin-top: 14px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  font-weight: 950;
}

.manifesto p {
  margin-top: 18px;
  max-width: 880px;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.9;
}

.manifesto a,
.manifesto .btn,
.manifesto .btn * {
  color: var(--white) !important;
}

/* ---------- Overlay vidéo ---------- */

#video-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 8, 4, 0.91);
  backdrop-filter: blur(12px);
}

#video-overlay.active {
  display: flex;
}

.video-overlay-content {
  position: relative;
  width: min(86vw, 1500px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.26);
  box-shadow: 0 0 78px rgba(217, 119, 6, 0.26);
}

.video-overlay-content video,
.video-overlay-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center center;
}

#close-video {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--white);
  background: rgba(127, 29, 29, 0.86);
  border: 1px solid rgba(255,255,255,0.20);
  font-size: 20px;
  backdrop-filter: blur(6px);
  transition: 0.2s;
}

#close-video:hover {
  background: rgba(185, 28, 28, 0.95);
  transform: scale(1.05);
}

.video-frame-trigger {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 12px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.video-frame-trigger-icon,
.video-frame-trigger-text {
  pointer-events: none;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(127, 29, 29, 0.82);
  backdrop-filter: blur(8px);
}

.video-frame-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 10px;
  border-radius: 14px;
  font-size: 20px;
}

.video-frame-trigger-text {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

/* ---------- Offline ---------- */

#offline-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 19, 7, 0.86);
  backdrop-filter: blur(8px);
}

.offline-content {
  text-align: center;
  color: var(--white);
}

.offline-content h2 {
  color: var(--gold-soft);
  font-size: 48px;
  letter-spacing: 0.2em;
}

.pulse {
  width: 20px;
  height: 20px;
  margin: 0 auto 20px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* ---------- Toast ---------- */

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 251, 242, 0.96);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.success {
  border-color: var(--green);
}

.toast.error {
  border-color: var(--red);
}

.toast.info {
  border-color: var(--gold);
}

.live-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 20;
  padding: 10px 15px;
  border-radius: 20px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
  animation: pulse 1.5s infinite;
  opacity: 1;
  transform: none;
}
/* ---------- Questions ---------- */

.question-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(42, 19, 7, 0.72);
  backdrop-filter: blur(8px);
}

.question-modal-content {
  width: min(600px, 90%);
  padding: 22px;
  border-radius: 18px;
  background: #fffaf0;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
}

.question-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 900;
}

.question-modal-header button {
  color: var(--ink);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.question-modal textarea {
  width: 100%;
  height: 180px;
  padding: 12px;
  resize: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.82);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
}

.question-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.question-feedback {
  margin-top: 10px;
  color: var(--red-dark);
  font-size: 14px;
}

.questions-container {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.question-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 251, 242, 0.82);
  border: 1px solid var(--border);
}

.question-content {
  color: var(--ink);
  font-size: 16px;
}

.question-answer {
  margin-top: 10px;
  color: var(--red-dark);
  font-size: 14px;
}

.question-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Footer, y compris liens CGU, mentions, etc. ---------- */

footer,
.footer,
.site-footer {
  color: #fff7ed;
  background: linear-gradient(135deg, #1c0703, #4a1408) !important;
  border-top: 1px solid rgba(255,255,255,0.12);
}

footer *,
.footer *,
.site-footer * {
  color: #fff7ed !important;
}

footer a,
.footer a,
.site-footer a {
  color: #fde68a !important;
  text-decoration: none;
}

footer a:hover,
.footer a:hover,
.site-footer a:hover {
  color: var(--white) !important;
  text-decoration: underline;
}

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(112,55,18,0.16);
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: linear-gradient(180deg, var(--red-dark), var(--gold));
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--red), var(--gold-soft));
}

/* ---------- Animations ---------- */

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(185,28,28,0.55);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(185,28,28,0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(185,28,28,0);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero-main,
  .live-grid,
  .grid-programs,
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 1;
  }

  .hero-side {
    order: 2;
    border-right: 0;
    border-top: 1px solid var(--border);
  }

  .manifesto-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 20px), var(--max));
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .brand-text strong {
    white-space: normal;
  }

  .hero-shell {
    margin-top: 12px;
    border-radius: 18px;
  }

  .hero-copy,
  .hero-side,
  .panel,
  .card,
  .manifesto {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4rem);
  }

  .hero-copy p.lead {
    font-size: 17px;
  }

  .domain-row strong {
    font-size: 22px;
  }

  th.hide-mobile,
  td.hide-mobile {
    display: none;
  }

  .video-overlay-content {
    width: 96vw;
  }
}

/* ===== BANDEAU TV DYNAMIQUE ===== */

.tv-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0%;
  z-index: 15;
  display: none;
  align-items: center;
  height: 34px;
  background: linear-gradient(
  to right,
  rgba(2, 6, 23, 0.55),
  rgba(2, 6, 23, 0.35)
);
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
  pointer-events: none;
}

.tv-ticker.visible {
  display: flex;
}

.tv-ticker-label {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(239, 68, 68, 0.72);
  color: white;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 9px;
}

.tv-ticker-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.tv-ticker-text span {
    display: block;
    padding: 0 22px;

    color: white;
    font-size: clamp(10px, 1.4vw, 18px);
    font-weight: 800;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    opacity: 1;
    transition: opacity 0.35s ease;
}

.tv-ticker-text span.changing {
    opacity: 0;
}

.tv-ticker-full {
  bottom: 7%;
  height: 58px;
}

.tv-ticker-full .tv-ticker-text span {
  font-size: clamp(18px, 2.2vw, 30px);
}

@media (max-width: 760px) {
  .tv-ticker {
    height: 36px;
    bottom: 6%;
  }

  .tv-ticker-label {
    padding: 0 10px;
    font-size: 10px;
  }
}

.video-overlay-content .tv-ticker {
  bottom: 0;
  height: 42px;
  z-index: 20;
}

.video-overlay-content .tv-ticker-text span {
  font-size: clamp(14px, 1.8vw, 22px);
}

.tv-ticker.force-hidden {
  display: none !important;
}

.video-frame {
    position: relative;
}

#videoPlaylist,
#videoOverlayLive {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#videoPlaylist {
    position: relative;
    z-index: 1;
}

#videoOverlayLive {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
}

.video-overlay-content {
    position: relative;
}

#videoFullPlaylist,
#videoFullOverlayLive {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#videoFullPlaylist {
    position: relative;
    z-index: 1;
}

#videoFullOverlayLive {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
}

#sound-btn,
#close-video {
    position: absolute;
    z-index: 20;
}
