/* ============================================================
   « Écoutez nos réalisations » : fenêtre d'écoute des productions
   audio, portée du lecteur de Brannity App (proposition radio).
   ============================================================ */

.ecoute {
  --e-navy: #0B1B3D;
  --e-navy-2: #122552;
  --e-royal: #1A53FF;
  --e-clair: #38B6FF;
  --e-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
  font-family: 'Satoshi', sans-serif;
}
.ecoute.est-ouverte { visibility: visible; pointer-events: auto; }

.ecoute__voile {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 34, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ecoute.est-ouverte .ecoute__voile { opacity: 1; }

.ecoute__fenetre {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  border-radius: 26px;
  background:
    radial-gradient(60% 50% at 90% 0%, rgba(58, 107, 255, 0.35) 0%, rgba(58, 107, 255, 0) 100%),
    linear-gradient(165deg, var(--e-navy-2), var(--e-navy));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ecoute.est-ouverte .ecoute__fenetre { opacity: 1; transform: none; }

.ecoute__entete { position: relative; padding: 30px 30px 18px; }
.ecoute__etiquette {
  display: inline-block;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8FB0FF;
}
.ecoute__titre { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.ecoute__titre span { background: linear-gradient(90deg, #6F93FF, var(--e-clair)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ecoute__intro { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: rgba(243, 246, 253, 0.65); }
.ecoute__fermer {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.3s var(--e-ease);
}
.ecoute__fermer:hover { background: rgba(255, 255, 255, 0.12); transform: rotate(90deg); }
.ecoute__fermer svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.ecoute__corps { flex: 1; min-height: 0; overflow-y: auto; padding: 0 30px 24px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }

/* ---------- Lecteur (repris de l'application) ---------- */
.ecoute [hidden] { display: none !important; }
.ecoute button { font-family: inherit; }

.prop-player__tabs { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 -30px 18px; padding: 4px 30px 14px; background: linear-gradient(180deg, #0F214B 70%, rgba(15, 33, 75, 0)); }
.prop-player__tabs button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--e-ease), color 0.15s var(--e-ease), border-color 0.15s var(--e-ease);
}
.prop-player__tabs button:hover { border-color: rgba(255, 255, 255, 0.3); color: #FFFFFF; }
.prop-player__tabs button.is-active { background: #FFFFFF; border-color: #FFFFFF; color: var(--e-navy); }

.prop-cardgrid { display: grid; gap: 10px; }
.prop-mediacard-wrap { border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); overflow: hidden; transition: border-color 0.2s ease; }
.prop-mediacard-wrap:hover { border-color: rgba(255, 255, 255, 0.18); }
.prop-mediacard { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; background: transparent; border: none; cursor: pointer; text-align: left; color: #FFFFFF; }
.prop-mediacard__mark { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--e-royal), var(--e-clair)); color: #FFFFFF; font-size: 12px; font-weight: 700; }
.prop-mediacard__mark--logo { background: #FFFFFF; padding: 4px; }
.prop-mediacard__mark--logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.prop-mediacard__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: #8FB0FF; }
.prop-mediacard__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.prop-mediacard__body { flex: 1; min-width: 0; }
.prop-mediacard__body strong { display: block; font-size: 14.5px; font-weight: 700; }
.prop-mediacard__body span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, 0.55); }
.prop-mediacard__chevron { flex: none; width: 14px; height: 14px; fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s var(--e-ease); }
.prop-mediacard.is-open .prop-mediacard__chevron { transform: rotate(180deg); }
.prop-mediacard__panel { padding: 0 16px 14px; }

.prop-theme-wrap + .prop-theme-wrap { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.prop-theme { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 0; background: transparent; border: none; cursor: pointer; text-align: left; color: #FFFFFF; }
.prop-theme__name { font-size: 13.5px; font-weight: 600; }
.prop-theme__count { flex: 1; font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.prop-theme__chevron { flex: none; width: 13px; height: 13px; fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s var(--e-ease); }
.prop-theme.is-open .prop-theme__chevron { transform: rotate(180deg); }
.prop-elementlist[data-theme-panel] { padding: 0 0 10px 16px; }

.prop-elementlist { list-style: none; margin: 0; padding: 0; display: grid; }
.prop-elementlist--flat .prop-elementitem { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.prop-elementlist--flat .prop-elementitem:last-child { border-bottom: none; }
.prop-element { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 2px; background: transparent; border: none; cursor: pointer; text-align: left; color: #FFFFFF; }
.prop-element__play { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); color: #FFFFFF; transition: background 0.15s var(--e-ease), border-color 0.15s var(--e-ease); }
.prop-element:hover .prop-element__play { border-color: rgba(255, 255, 255, 0.6); }
.prop-element__play svg { width: 10px; height: 10px; fill: currentColor; }
.prop-element__play .icon-pause { display: none; }
.prop-element.is-playing .prop-element__play { background: var(--e-royal); border-color: var(--e-royal); }
.prop-element.is-playing .prop-element__play .icon-play { display: none; }
.prop-element.is-playing .prop-element__play .icon-pause { display: block; }
.prop-element.is-playing .prop-element__title { color: #8FB0FF; }
.prop-element__title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s var(--e-ease); }
.prop-element__sub { display: block; margin-top: 1px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.prop-element__duree { flex: none; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }

/* ---------- Lecture en cours : en pied de fenêtre ---------- */
.prop-nowplaying { border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(6, 14, 34, 0.55); }
.prop-nowplaying__inner { padding: 14px 30px; display: flex; align-items: center; gap: 14px; color: #FFFFFF; }
.prop-nowplaying__toggle { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--e-royal); border: none; color: #FFFFFF; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(26, 83, 255, 0.8); }
.prop-nowplaying__toggle svg { width: 15px; height: 15px; fill: currentColor; }
.prop-nowplaying__toggle .icon-pause { display: none; }
.prop-nowplaying.is-playing .prop-nowplaying__toggle .icon-play { display: none; }
.prop-nowplaying.is-playing .prop-nowplaying__toggle .icon-pause { display: block; }
.prop-nowplaying__meta { flex: none; min-width: 0; width: 190px; }
.prop-nowplaying__meta strong { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-nowplaying__meta span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-nowplaying__time { flex: none; font-size: 11.5px; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
.prop-nowplaying__bar { flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); cursor: pointer; position: relative; }
.prop-nowplaying__bar::before { content: ''; position: absolute; inset: -10px 0; }
.prop-nowplaying__fill { position: absolute; top: 0; left: 0; bottom: 0; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--e-clair), var(--e-royal)); }
.prop-nowplaying__thumb { position: absolute; top: 50%; left: 0%; width: 20px; height: 20px; transform: translate(-50%, -50%); background: url('../images/logob.webp') no-repeat center / contain; pointer-events: none; transition: transform 0.15s var(--e-ease), left 0.05s linear; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
.prop-nowplaying__bar:hover .prop-nowplaying__thumb { transform: translate(-50%, -50%) scale(1.15); }
.prop-nowplaying__close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: #FFFFFF; cursor: pointer; }
.prop-nowplaying__close svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Boutons d'ouverture sur la page ---------- */
.ecoute-lien {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: #1A53FF;
  cursor: pointer;
}
.ecoute-lien i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1A53FF;
  color: #FFFFFF;
  box-shadow: 0 8px 20px -8px rgba(26, 83, 255, 0.7);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ecoute-lien i svg { width: 11px; height: 11px; margin-left: 2px; fill: currentColor; }
.ecoute-lien:hover i { transform: scale(1.1); }
.brique__liens { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.brique__liens .brique__lien { margin-top: 0; }

body.ecoute-ouverte { overflow: hidden; }

@media (max-width: 640px) {
  .ecoute { padding: 0; align-items: flex-end; }
  .ecoute__fenetre { max-height: 92vh; border-radius: 24px 24px 0 0; }
  .ecoute__entete { padding: 24px 20px 14px; }
  .ecoute__titre { font-size: 24px; }
  .ecoute__corps { padding: 0 20px 20px; }
  .prop-player__tabs { margin: 0 -20px 14px; padding: 4px 20px 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .prop-player__tabs button { flex: none; }
  .prop-nowplaying__inner { padding: 12px 16px; gap: 10px; }
  .prop-nowplaying__meta { width: 90px; }
  .prop-nowplaying__meta span { display: none; }
  .prop-nowplaying__time { display: none; }
}


/* Carte de service : les deux liens alignés, même taille, en bas de carte. */
.brique__liens { margin-top: auto; }
.brique__liens .ecoute-lien { font-size: 15px; font-weight: 700; }
.brique__liens .ecoute-lien i { width: 26px; height: 26px; }

/* Onglets : fond seulement quand la liste défile dessous (pas de bande visible au repos). */
.prop-player__tabs { background: transparent; transition: background 0.2s ease; }
.ecoute__corps.a-defile .prop-player__tabs { background: linear-gradient(180deg, #102350 75%, rgba(16, 35, 80, 0)); }

/* Bouton « Écouter nos réalisations » : plat, comme la charte ; un reflet
   le traverse au survol, comme le bouton « Contactez-nous » du menu. */
.ecoute-lien {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(26, 83, 255, 0.08);
  transition: background 0.25s ease;
}
.ecoute-lien i { box-shadow: none; }
.ecoute-lien:hover { background: rgba(26, 83, 255, 0.14); }
.ecoute-lien:hover i { transform: none; }
.ecoute-lien::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  transition: left 0s;
}
.ecoute-lien:hover::after { left: 120%; transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.brique__liens .ecoute-lien { margin-left: auto; font-size: 14px; }
.brique__liens .ecoute-lien i { width: 24px; height: 24px; }
.prop-nowplaying__toggle { box-shadow: none; }
