/* ==========================================================================
   INFO RADIO — info-radio.fr
   Feuille de style unique. Aucune dépendance externe (performance / SEO).
   ========================================================================== */

:root {
  --navy-950: #05071f;
  --navy-900: #0b0e3f;
  --navy-800: #121a56;
  --navy-700: #1b2a6b;
  --ink: #eef1ff;
  --muted: #aab3e2;
  --faint: #7c86c4;
  --accent: #f5511f;
  --accent-soft: #ff8a3d;
  --accent-text: #ff9d5c;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --radius: 16px;
  --header-h: 64px;
  --player-h: 84px;
  --container: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(43, 62, 148, 0.55), transparent 60%),
    radial-gradient(900px 500px at -10% 25%, rgba(27, 42, 107, 0.5), transparent 55%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.65;
  padding-bottom: var(--player-h);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Accessibilité ---------- */

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 0; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(8, 11, 44, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 9px; }
.brand-text { font-size: 1.15rem; letter-spacing: 0.06em; white-space: nowrap; }
.brand-text b { color: var(--accent-soft); font-weight: 800; }

.site-nav ul { display: flex; gap: 6px; list-style: none; }
.site-nav a {
  display: block; padding: 9px 14px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: 0.97rem;
}
.site-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.09); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--card-border);
  color: var(--ink); font: inherit; font-weight: 700;
  padding: 8px 14px; border-radius: 10px; cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav ul {
    display: none; position: absolute; top: var(--header-h); right: 12px;
    flex-direction: column; gap: 2px; min-width: 210px;
    background: #0c1046; border: 1px solid var(--card-border);
    border-radius: 14px; padding: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  }
  .site-nav.open ul { display: flex; }
}

/* ---------- Hero ---------- */

.hero { padding: 64px 0 40px; }

.hero-grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: 48px; align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero .lead { font-size: 1.13rem; color: var(--muted); max-width: 56ch; margin-bottom: 30px; }
.hero .lead strong { color: var(--ink); }

.hero-logo { display: flex; justify-content: center; }
.hero-logo img {
  width: min(300px, 70vw); border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff7a2f 100%);
  color: #fff; font: inherit; font-size: 1.1rem; font-weight: 800;
  border: 0; border-radius: 999px; padding: 16px 30px; cursor: pointer;
  box-shadow: 0 12px 34px rgba(245, 81, 31, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(245, 81, 31, 0.5); }
.btn-cta svg { width: 20px; height: 20px; flex: none; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-weight: 600; padding: 12px 6px;
}
.btn-ghost:hover { color: var(--ink); }

.live-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; margin-top: 18px; }

/* Séparateur onde */
.wave-divider { margin: 26px 0 0; opacity: 0.9; }
.wave-divider svg { width: min(420px, 100%); height: 36px; }

/* ---------- Sections ---------- */

.section { padding: 44px 0; }
.section-alt {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
.section .sub { color: var(--muted); max-width: 62ch; margin-bottom: 30px; }
.section h3 { font-size: 1.18rem; font-weight: 700; margin: 26px 0 8px; }

.prose p { margin-bottom: 16px; color: var(--muted); max-width: 72ch; }
.prose p strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--muted); }
.prose li { margin-bottom: 8px; }
.prose li strong { color: var(--ink); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px;
}
.card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 81, 31, 0.14); margin-bottom: 14px;
}
.card .ico svg { width: 22px; height: 22px; stroke: var(--accent-soft); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card a.more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 0.92rem; }

a.card-link { color: inherit; display: block; transition: transform 0.15s ease, border-color 0.15s ease; }
a.card-link:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(255, 138, 61, 0.45); }

/* ---------- Page intérieure ---------- */

.page-head { padding: 52px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 12px; }
.page-head .lead { color: var(--muted); font-size: 1.08rem; max-width: 64ch; }

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-soft); flex: none; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 22px 18px; color: var(--muted); }
.faq-item .answer p { margin-bottom: 10px; }

/* ---------- Tableaux / code ---------- */

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
th { color: var(--faint); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
td { color: var(--muted); }
td strong { color: var(--ink); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 2px 7px; border-radius: 6px; color: var(--ink); word-break: break-all;
}

/* ---------- Notice ---------- */

.notice {
  border-left: 3px solid var(--accent);
  background: rgba(245, 81, 31, 0.08);
  padding: 14px 18px; border-radius: 0 10px 10px 0;
  color: var(--muted); font-size: 0.95rem; margin: 18px 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 40px 0 34px; margin-top: 30px;
  color: var(--faint); font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.site-footer h4 { color: var(--ink); font-size: 0.95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--ink); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-brand span { font-weight: 800; letter-spacing: 0.05em; color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 18px; font-size: 0.85rem; }

/* ---------- Barre lecteur ---------- */

.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  min-height: var(--player-h);
  background: rgba(7, 9, 38, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 138, 61, 0.25);
  box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.45);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.player-inner { display: flex; align-items: center; gap: 16px; min-height: var(--player-h); }

.btn-play {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, #ff7a2f 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(245, 81, 31, 0.45);
  transition: transform 0.12s ease;
}
.btn-play:hover { transform: scale(1.06); }
.btn-play svg { width: 20px; height: 20px; }
.btn-play .i-pause { display: none; }
body.is-playing .btn-play .i-play { display: none; }
body.is-playing .btn-play .i-pause { display: block; }

.player-meta { min-width: 0; flex: 1; }

.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  color: var(--accent-soft); text-transform: uppercase;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 rgba(245, 81, 31, 0.6);
}
body.is-playing .live-dot { animation: pulse 1.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 81, 31, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(245, 81, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 81, 31, 0); }
}

.player-title { font-weight: 800; font-size: 1rem; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-status { color: var(--muted); font-weight: 500; font-size: 0.92rem; }

/* Égaliseur animé */
.eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; flex: none; }
.eq span { width: 4px; height: 6px; border-radius: 2px; background: linear-gradient(180deg, var(--accent-soft), var(--accent)); opacity: 0.35; }
body.is-playing .eq span { opacity: 1; animation: eq 0.9s ease-in-out infinite alternate; }
body.is-playing .eq span:nth-child(1) { animation-delay: -0.1s; }
body.is-playing .eq span:nth-child(2) { animation-delay: -0.4s; }
body.is-playing .eq span:nth-child(3) { animation-delay: -0.7s; }
body.is-playing .eq span:nth-child(4) { animation-delay: -0.25s; }
body.is-playing .eq span:nth-child(5) { animation-delay: -0.55s; }
@keyframes eq { from { height: 5px; } to { height: 24px; } }

.vol { accent-color: var(--accent); width: 110px; flex: none; cursor: pointer; }

@media (max-width: 640px) {
  .vol { display: none; }
  .eq { display: none; }
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(210px, 55vw); }
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2, .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
