/* RADIO ERINIX — poste d'écoute (onglet #radio du site et appli /radio/), 28/11/2026. Pensé d'abord pour le téléphone (le propriétaire :
   « plus visuel, plus interactif, pas de texte qui bloque le haut ») : écran à cristaux et gros bouton d'écoute en haut, fréquences en
   pastilles, canaux par onglets à icônes, pavé seulement sous « Saisie ». Couleur du camp sur les accents (--rp-camp). */
#radio-poste { --rp-fond: #141716; --rp-metal: #262a28; --rp-metal2: #343a36; --rp-bord: #0c0e0d; --rp-lcd: #07140a; --rp-vert: #8dff7a;
  --rp-vert2: #4fae45; --rp-txt: #e6eae3; --rp-mut: #98a095; --rp-camp: #5aa9ff; --rp-camp2: #1d4f86;
  max-width: 760px; margin: 0 auto; }
#radio-poste[data-camp="rouge"] { --rp-camp: #ff6b6b; --rp-camp2: #7d2323; }
/* l'onglet du site : le poste est le contenu, sans titre ni paragraphe au-dessus */
#radio > h1, #radio > .lead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rp-boitier { position: relative; padding: 14px 14px 16px; border-radius: 20px; border: 1px solid var(--rp-bord); color: var(--rp-txt);
  background: radial-gradient(120% 60% at 50% 0%, var(--rp-metal2), var(--rp-metal) 55%, #1c1f1e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 34px rgba(0,0,0,.5); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.rp-boitier button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rp-boitier button:focus-visible { outline: 2px solid var(--rp-camp); outline-offset: 2px; }
.rp-svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* tête : marque + camp */
.rp-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rp-marque { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .16em; font-size: .82rem; color: #cfd5cb; }
.rp-marque small { font-weight: 700; color: #f2c14e; border: 1px solid #f2c14e; border-radius: 4px; padding: 0 4px; letter-spacing: .1em; font-size: .65rem; }
.rp-camp { display: inline-flex; padding: 3px; border-radius: 999px; background: #0f1211; border: 1px solid var(--rp-bord); }
.rp-camp button { border: 0; background: none; color: var(--rp-mut); padding: 7px 14px; border-radius: 999px; font-weight: 700; letter-spacing: .08em; font-size: .78rem; }
.rp-camp button[aria-checked="true"][data-c="2"] { background: linear-gradient(#2f72bd, #1c4b80); color: #fff; box-shadow: 0 0 14px rgba(90,169,255,.35); }
.rp-camp button[aria-checked="true"][data-c="1"] { background: linear-gradient(#c0413f, #7d2323); color: #fff; box-shadow: 0 0 14px rgba(255,107,107,.35); }

/* écran à cristaux */
.rp-ecran { position: relative; overflow: hidden; border-radius: 14px; padding: 10px 14px 10px; background: var(--rp-lcd); border: 2px solid #050806;
  color: var(--rp-vert); text-shadow: 0 0 8px rgba(141,255,122,.55); font-family: "Share Tech Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  box-shadow: inset 0 0 24px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.05);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px), radial-gradient(90% 70% at 50% 0%, rgba(141,255,122,.08), transparent 70%); }
.rp-l1 { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; letter-spacing: .14em; color: var(--rp-vert2); }
.rp-rx { padding: 0 6px; border: 1px solid currentColor; border-radius: 4px; opacity: .22; transition: opacity .15s; }
.rp-rx.on { opacity: 1; color: #fff7a8; text-shadow: 0 0 10px #fff7a8; border-color: #fff7a8; }
.rp-freq { font-size: clamp(2.9rem, 15vw, 4.6rem); line-height: 1; letter-spacing: .04em; text-align: center; font-variant-numeric: tabular-nums; margin: 6px 0 2px; white-space: nowrap; }
.rp-l3 { text-align: center; font-size: .95rem; letter-spacing: .06em; min-height: 1.25em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-qui { color: #fff7a8; text-shadow: 0 0 8px rgba(255,247,168,.5); }
.rp-vu { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 22px; margin: 6px 0 2px; }
.rp-vu i { display: block; width: 6px; height: 100%; border-radius: 2px; background: linear-gradient(to top, var(--rp-vert2), var(--rp-vert)); transform-origin: bottom;
  transform: scaleY(.08); transition: transform .09s linear; box-shadow: 0 0 6px rgba(141,255,122,.4); }

/* commande : gros bouton d'écoute + volume */
.rp-cmd { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; }
.rp-pwr { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 12px 20px 12px 14px; border-radius: 999px; border: 1px solid #0b0d0c;
  background: linear-gradient(#3f4541, #2a2e2c); color: #e9ece6; font-weight: 800; letter-spacing: .1em; font-size: .9rem;
  box-shadow: 0 4px 0 #0f1211, inset 0 1px 0 rgba(255,255,255,.12); transition: transform .08s, box-shadow .2s, background .2s; }
.rp-pwr .rp-svg { width: 28px; height: 28px; stroke-width: 2.2; color: #9aa197; }
.rp-pwr:active { transform: translateY(2px); box-shadow: 0 2px 0 #0f1211; }
.rp-pwr[aria-pressed="true"] { background: linear-gradient(var(--rp-camp), var(--rp-camp2)); color: #fff; box-shadow: 0 0 22px color-mix(in srgb, var(--rp-camp) 55%, transparent), 0 4px 0 #0f1211; }
.rp-pwr[aria-pressed="true"] .rp-svg { color: #fff; }
.rp-on .rp-pwr[aria-pressed="true"] { animation: rp-pouls 2.4s ease-in-out infinite; }
@keyframes rp-pouls { 50% { box-shadow: 0 0 34px color-mix(in srgb, var(--rp-camp) 75%, transparent), 0 4px 0 #0f1211; } }
.rp-vol { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--rp-mut); min-width: 0; }
.rp-vol input { flex: 1; min-width: 0; accent-color: var(--rp-camp); height: 28px; }

/* voyants */
.rp-led { width: 10px; height: 10px; border-radius: 50%; background: #2c1414; box-shadow: inset 0 0 0 1px #000; flex: none; display: inline-block; }
.rp-led.on { background: var(--rp-vert); box-shadow: 0 0 10px var(--rp-vert); }
.rp-marque .rp-led.on { background: #ff4b3e; box-shadow: 0 0 10px #ff4b3e; }

/* suivi en cours */
.rp-suivi { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 8px 10px; border-radius: 12px; background: #0f1211;
  border: 1px solid var(--rp-camp); color: var(--rp-txt); font-size: .9rem; }
.rp-suivi .rp-svg { color: var(--rp-camp); }
.rp-suivi button { margin-left: auto; padding: 6px 12px; border-radius: 999px; border: 1px solid #0b0d0c; background: #2a2e2c; color: #e9ece6; font-weight: 700; font-size: .75rem; }

/* fréquences écoutées : pastilles qui défilent */
.rp-postes { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.rp-postes::-webkit-scrollbar { display: none; }
.rp-poste { display: flex; align-items: stretch; flex: none; scroll-snap-align: start; border-radius: 12px; background: #1a1d1c; border: 1px solid #0b0d0c; }
.rp-poste.sel { border-color: var(--rp-camp); box-shadow: 0 0 0 1px var(--rp-camp) inset; }
.rp-p-f { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left;
  border: 0; background: none; color: var(--rp-txt); padding: 7px 4px 7px 10px; }
.rp-p-f .rp-led { grid-row: 1 / 3; }
.rp-p-f b { font-family: "Share Tech Mono", ui-monospace, monospace; font-weight: 400; color: var(--rp-vert); font-size: 1rem; }
.rp-p-f small { color: var(--rp-mut); font-size: .72rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-p-x { border: 0; background: none; color: #6f776d; font-size: 1.2rem; padding: 0 10px; }
.rp-p-x:hover { color: #ff6b6b; }

/* onglets à icônes */
.rp-onglets { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 6px 0 10px; padding: 4px; border-radius: 14px; background: #0f1211; border: 1px solid var(--rp-bord); }
.rp-onglets button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 6px; border: 0; border-radius: 10px; background: none;
  color: var(--rp-mut); font-size: .64rem; font-weight: 700; letter-spacing: .04em; }
.rp-onglets button[aria-selected="true"] { background: linear-gradient(#323835, #262a28); color: #fff; box-shadow: inset 0 -2px 0 var(--rp-camp); }
.rp-onglets button[aria-selected="true"] .rp-svg { color: var(--rp-camp); }

/* canaux */
.rp-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.rp-canal { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid #0b0d0c; background: linear-gradient(160deg, #2f3431, #222624); color: var(--rp-txt); text-align: left; min-width: 0;
  transition: transform .08s, border-color .15s; }
.rp-canal:active { transform: scale(.97); }
.rp-canal b { font-family: "Share Tech Mono", ui-monospace, monospace; font-weight: 400; font-size: 1.15rem; color: var(--rp-vert); text-shadow: 0 0 6px rgba(141,255,122,.35); }
.rp-canal span { font-size: .78rem; color: var(--rp-mut); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-canal.on { border-color: var(--rp-camp); background: linear-gradient(160deg, color-mix(in srgb, var(--rp-camp) 22%, #2f3431), #222624); }
.rp-canal.on::after { content: ""; position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--rp-camp); box-shadow: 0 0 8px var(--rp-camp); }
.rp-rang { position: absolute; top: 6px; right: 10px; font-style: normal; font-weight: 800; color: #f2c14e; font-size: .8rem; }
.rp-canal .rp-rang ~ b { padding-right: 18px; }
.rp-g-vols { grid-template-columns: 1fr; }
.rp-avion { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px 12px;
  border-radius: 12px; border: 1px solid #0b0d0c; background: linear-gradient(160deg, #2f3431, #222624); color: var(--rp-txt); }
.rp-avion .rp-svg { grid-row: 1 / 3; color: var(--rp-camp); width: 26px; height: 26px; }
.rp-avion b { font-weight: 700; } .rp-avion span { display: none; }
.rp-avion small { color: var(--rp-mut); font-size: .76rem; }
.rp-avion.combat { border-color: #ff6b6b; } .rp-avion.combat small { color: #ff9a9a; }
.rp-vide { margin: 4px 0; color: var(--rp-mut); font-size: .85rem; }

/* pavé (onglet Saisie) */
.rp-pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.rp-pave button { padding: 14px 0; border-radius: 12px; border: 1px solid #0b0d0c; background: linear-gradient(#3b413d, #2a2e2c); color: #f0f2ec; font-size: 1.25rem;
  font-family: "Share Tech Mono", ui-monospace, monospace; box-shadow: 0 3px 0 #0f1211; }
.rp-pave button:active { transform: translateY(2px); box-shadow: 0 1px 0 #0f1211; }
.rp-pave .rp-eff { color: #f2a64e; font-size: .95rem; }
.rp-pave .rp-ent { grid-column: 1 / -1; background: linear-gradient(var(--rp-camp), var(--rp-camp2)); color: #fff; font-family: inherit; font-weight: 800; font-size: .9rem; letter-spacing: .1em; }

/* pied : sortie du son, écran allumé, icônes */
.rp-pied2 { display: flex; align-items: stretch; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.rp-mode { display: inline-flex; flex: 1 1 200px; padding: 3px; border-radius: 12px; background: #0f1211; border: 1px solid var(--rp-bord); }
.rp-mode button { flex: 1; border: 0; background: none; border-radius: 9px; color: var(--rp-mut); padding: 6px 4px; font-weight: 800; font-size: .78rem; letter-spacing: .08em;
  display: flex; flex-direction: column; align-items: center; }
.rp-mode button small { font-weight: 500; letter-spacing: 0; font-size: .64rem; opacity: .85; }
.rp-mode button[aria-checked="true"] { background: #2a2f2c; color: #fff; box-shadow: inset 0 -2px 0 var(--rp-camp); }
.rp-rond { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 62px; border-radius: 12px; border: 1px solid #0b0d0c;
  background: #1a1d1c; color: var(--rp-mut); font-size: .64rem; font-weight: 700; padding: 6px 0; }
.rp-rond img { width: 24px; height: 24px; border-radius: 6px; }
.rp-rond[aria-pressed="true"] { color: #f2c14e; border-color: #f2c14e; }
.rp-ios { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #0f1211; border: 1px solid var(--rp-vert); color: var(--rp-txt); font-size: .85rem; }
.rp-toast { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: 90%;
  padding: 8px 14px; border-radius: 999px; background: rgba(10,12,11,.95); border: 1px solid #3a403c; color: var(--rp-txt); font-size: .82rem; text-align: center;
  transition: opacity .2s, transform .2s; z-index: 2; }
.rp-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* page autonome /radio/ (appli « Radio Erinix ») */
body.rp-seule { margin: 0; min-height: 100vh; background: radial-gradient(120% 80% at 50% 0%, #1d2220, #0c0e0d); color: var(--rp-txt, #e6eae3);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; padding: max(10px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom)); box-sizing: border-box; }
.rp-seule .rp-page { max-width: 760px; margin: 0 auto; }
.rp-pied { text-align: center; font-size: .75rem; color: #7e867b; margin: 12px 0 0; }
.rp-pied a { color: #b9c0b5; }

@media (max-width: 420px) {
  .rp-boitier { padding: 12px 10px 14px; border-radius: 16px; }
  .rp-onglets button span { font-size: .58rem; }
  .rp-onglets .rp-svg { width: 20px; height: 20px; }
  .rp-pwr { padding: 11px 16px 11px 12px; font-size: .82rem; }
  .rp-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .rp-on .rp-pwr[aria-pressed="true"] { animation: none; } .rp-vu i { transition: none; } }

/* icônes sur le téléphone, en haut du poste (visibles sans défiler) */
.rp-install { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: -2px 0 12px; }
.rp-inst { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 1px solid #0b0d0c; text-align: left; min-width: 0;
  background: linear-gradient(160deg, #303632, #232725); color: var(--rp-txt); box-shadow: 0 3px 0 #0f1211; }
.rp-inst:active { transform: translateY(2px); box-shadow: 0 1px 0 #0f1211; }
.rp-inst img { width: 38px; height: 38px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.rp-inst span { display: flex; flex-direction: column; min-width: 0; }
.rp-inst b { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-inst small { font-size: .68rem; color: var(--rp-vert); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-install + .rp-ios { margin: -4px 0 12px; }

/* correctifs du 28/11 (vue téléphone) : un élément masqué reste masqué ; rang du Top en bas à droite ; marque sur une ligne */
#radio-poste [hidden] { display: none !important; }
.rp-rang { top: auto; bottom: 8px; right: 10px; }
.rp-marque { white-space: nowrap; letter-spacing: .1em; }

/* 29/11 (audit radio 3.3, 3.6) : pendant l'écoute, les boutons d'installation laissent la place à l'écran et aux canaux ; croix de retrait plus large (pouce) */
#radio-poste.rp-on .rp-install, #radio-poste.rp-on .rp-ios { display: none !important; }
.rp-p-x { min-width: 44px; }
