/* ═══════════════════════════════════════════════════════════════
   Moirans Pratique — Hymne de Moirans + page « À propos » (31/10/2026)
   Carte de l'accueil (#home-hymne) et page (#page-apropos) — js/hymne.js
   ═══════════════════════════════════════════════════════════════ */

/* ── Carte de l'accueil ───────────────────────────────────────── */
.home-hymne[hidden] { display: none !important; }
.home-hymne {
  background: linear-gradient(150deg, rgba(192,132,252,.14), var(--card) 60%);
  border: 1px solid rgba(192,132,252,.28);
  border-radius: var(--r-lg, 16px);
  padding: 14px; min-width: 0;
}
.hy-carte { display: flex; align-items: center; gap: 12px; }
.hy-pochette { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.hy-pochette--vide { display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--purple, #c084fc), var(--blue, #60a5fa)); }
.hy-pochette--vide .ico { width: 26px; height: 26px; }
.hy-carte-texte { min-width: 0; }
.hy-kicker { font-size: 12px; font-weight: 700; color: var(--purple, #c084fc); text-transform: uppercase;
  letter-spacing: .04em; display: flex; align-items: center; gap: 5px; }
.hy-kicker .ico { width: 14px; height: 14px; }
.hy-titre { font-family: var(--font-d); font-weight: 700; font-size: 16px; margin-top: 3px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hy-sous { font-size: 12.5px; color: var(--text2); margin-top: 2px; line-height: 1.4; }
.hy-lien-page { display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin-top: 10px; padding: 9px 2px 0; border: 0; border-top: 1px solid var(--border); background: none;
  color: var(--text2); font: inherit; font-size: 13px; cursor: pointer; }
.hy-lien-page:hover { color: var(--text); }

/* ── Lecteur (carte et page) ──────────────────────────────────── */
.hy-lecteur { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.hy-play { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--purple, #c084fc), #7c5cff);
  box-shadow: 0 6px 18px rgba(124,92,255,.45); transition: transform .15s; }
.hy-play:active { transform: scale(.93); }
.hy-play .ico { width: 22px; height: 22px; fill: currentColor; }
.hy-lecteur--compact .hy-play { width: 40px; height: 40px; }
.hy-attente .hy-play { animation: hy-pulse 1s ease-in-out infinite; }
@keyframes hy-pulse { 50% { opacity: .55; } }
.hy-piste { flex: 1; min-width: 0; }
.hy-barre { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 0; background: transparent; cursor: pointer; }
.hy-barre::-webkit-slider-runnable-track { height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--purple, #c084fc) var(--hy-pct, 0%), rgba(255,255,255,.16) var(--hy-pct, 0%)); }
.hy-barre::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.16); }
.hy-barre::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--purple, #c084fc); }
.hy-barre::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px;
  border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.hy-barre::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.hy-temps { font-size: 11.5px; color: var(--text2); font-variant-numeric: tabular-nums; margin-top: 1px; }

/* ── Page « À propos de Moirans » ─────────────────────────────── */
.apropos { max-width: 720px; }
.ap-hymne { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg, 16px); padding: 16px; }
.ap-entete { display: flex; align-items: center; gap: 14px; }
.ap-pochette { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.ap-pochette.ap-pochette--vide { display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--purple, #c084fc), var(--blue, #60a5fa)); }
.ap-pochette--vide .ico { width: 38px; height: 38px; }
.ap-titre { font-family: var(--font-d); font-size: 21px; line-height: 1.2; margin: 4px 0 0; color: var(--text); }
.ap-hymne .hy-lecteur { margin-top: 16px; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.05); }

.ap-video { margin-top: 14px; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.ap-video video, .ap-video iframe { width: 100%; height: 100%; display: block; border: 0; }
.ap-yt { width: 100%; height: 100%; border: 0; cursor: pointer; position: relative; color: #fff; font: inherit;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #111 center / cover no-repeat; }
.ap-yt::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.ap-yt > * { position: relative; }
.ap-yt-play { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); }
.ap-yt-play .ico { width: 26px; height: 26px; fill: currentColor; }
.ap-yt-txt { text-align: left; font-weight: 700; font-size: 15px; }
.ap-yt-txt small { display: block; font-weight: 400; font-size: 11.5px; opacity: .8; margin-top: 2px; }

.ap-sous-titre { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text2); margin: 18px 0 8px; }
.ap-liens { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-lien { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--border); }
.ap-lien .ico { width: 18px; height: 18px; }
.ap-lien--spotify .ico { color: #1ed760; }
.ap-lien--youtube .ico { color: #ff4e45; }
.ap-lien--deezer .ico  { color: #a238ff; }
.ap-lien--apple .ico   { color: #fa57c1; }

.ap-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ap-action { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 13.5px; color: var(--text); background: transparent; border: 1px solid var(--border); }
.ap-action .ico { width: 18px; height: 18px; }
.ap-action[aria-pressed="true"] { border-color: rgba(74,222,128,.45); color: var(--green, #4ade80); }
.ap-action:disabled { opacity: .6; cursor: progress; }
.ap-hl-etat { font-size: 12px; color: var(--text2); margin-top: 6px; min-height: 1em; }

.ap-bloc { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.ap-bloc summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 8px;
  list-style: none; }
.ap-bloc summary::-webkit-details-marker { display: none; }
.ap-bloc summary::after { content: '›'; margin-left: auto; color: var(--text2); transition: transform .2s; font-size: 18px; }
.ap-bloc[open] summary::after { transform: rotate(90deg); }
.ap-bloc summary .ico { width: 18px; height: 18px; color: var(--purple, #c084fc); }
.ap-paroles, .ap-texte { margin-top: 10px; color: var(--text); font-size: 14.5px; line-height: 1.65; }
.ap-paroles p, .ap-texte p { margin: 0 0 12px; }
.ap-paroles { font-size: 15.5px; }

.ap-vide { text-align: center; padding: 26px 10px; color: var(--text2); }
.ap-vide-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(192,132,252,.15); color: var(--purple, #c084fc); }
.ap-vide-ico .ico { width: 26px; height: 26px; fill: currentColor; }

/* Interface « liquid glass » (téléphone) */
@media (max-width: 899px) {
  html.ui-v2:not(.ui-v2-exp) .home-hymne,
  html.ui-v2:not(.ui-v2-exp) .ap-hymne {
    border-radius: 26px 22px 28px 24px;
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    box-shadow: var(--v2-reflet, none), 0 14px 34px rgba(0,0,0,.22);
  }
  html.ui-v2.v2-eco:not(.ui-v2-exp) .home-hymne,
  html.ui-v2.v2-eco:not(.ui-v2-exp) .ap-hymne { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
