:root {
  --blue:        #004370;   /* fond demandé */
  --blue-deep:   #002d4d;   /* dégradé plus profond */
  --glow:        #4db8e0;   /* halo de diffusion */
  --amber:       #ffb020;   /* voyant "ON AIR" */
  --ink:         #eaf3f9;   /* texte clair */
  --ink-soft:    rgba(234,243,249,.55);
}

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

html, body { height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 40px);
    padding: env(safe-area-inset-top, 16px) 16px calc(120px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(120% 90% at 50% 8%, #005a94 0%, var(--blue) 42%, var(--blue-deep) 100%);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  overflow: hidden;
  position: relative;
}

/* ── Signature : ondes de diffusion animées derrière le lecteur ── */
.waves {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(760px, 130vw);
  height: min(760px, 130vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}
.waves span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 200px;
  height: 200px;
  border: 1px solid var(--glow);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 6s ease-out infinite;
}
.waves span:nth-child(2) { animation-delay: 2s; }
.waves span:nth-child(3) { animation-delay: 4s; }

@keyframes pulse {
  0%   { transform: scale(.3); opacity: .55; }
  80%  { opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* ── Bloc du haut : logo + voyant ── */
.stage-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.5vh, 22px);
  text-align: center;
}

.logo {
  width: clamp(96px, 22vw, 150px);
  height: clamp(96px, 22vw, 150px);
  border-radius: 22px;
  object-fit: cover;
  background: rgba(255,255,255,.06);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10),
    0 18px 50px rgba(0,0,0,.35);
}
/* Repli si l'image logo.png est absente */
.logo:not([src]), .logo[src=""] { display: none; }

.logo-link {
  display: inline-block;
  line-height: 0;              /* supprime l'espace parasite sous l'image */
  border-radius: 22px;
  transition: transform .2s ease, opacity .2s ease;
}
.logo-link:hover { transform: scale(1.03); opacity: .9; }
.logo-link:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 4px;
}

.onair {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: .32em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--amber);
}
.onair .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ── Lecteur : mise à l'échelle proportionnelle, jamais déformé ── */
.player {
  position: relative;
  z-index: 1;
  width: 310px;
  height: 609px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}
.player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 310px;
  height: 609px;
  border: 0;
  transform-origin: top left;
  display: block;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-soft);
  background: linear-gradient(to top, rgba(0,45,77,.55), transparent);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--ink); }

.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: var(--ink-soft);
  line-height: 0;
  transition: color .2s ease, transform .2s ease;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--amber);
  transform: translateY(-2px);
}

.footer-copy {
  margin: 0;
  opacity: .5;
  letter-spacing: .04em;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .waves span, .onair .dot { animation: none; }
  .waves span:first-child { opacity: .18; transform: scale(2); }
}