/*
 * Le film de bienvenue du collectif Hayāa.
 * Le bouton « Voir le film » de la page « Deviens membre », l'onglet « Le film » de l'espace membre, et la fenêtre du film.
 * Le code est dans film.js.
 */

/* ---------- Le bouton « Voir le film » (visiteuse) ---------- */
.hm-film-row { margin-top: 18px; }
.hm-film-pill {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 7px 20px 7px 7px;
  border: 1.5px solid var(--lilas, #939af8); border-radius: 99px;
  background: rgba(147, 154, 248, .14); color: var(--lin, #fcfcfc);
  font: 600 15px/1.2 var(--body, 'Poppins', sans-serif);
  cursor: pointer;
  box-shadow: 0 0 22px rgba(147, 154, 248, .22);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hm-film-pill:hover { background: rgba(147, 154, 248, .26); box-shadow: 0 0 30px rgba(147, 154, 248, .38); transform: translateY(-1px); }
.hm-film-pill:focus-visible { outline: 2px solid var(--lin, #fcfcfc); outline-offset: 3px; }
.hm-film-play {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--rose, #e389e8); color: var(--deep, #16161f);
  box-shadow: 0 0 14px rgba(227, 137, 232, .55);
}
.hm-film-play svg { width: 15px; height: 15px; margin-left: 2px; }
.hm-film-pill small {
  font: 700 11px/1 var(--mono, 'Space Mono', monospace); letter-spacing: .06em;
  text-transform: uppercase; color: var(--lilas-2, #b7afff);
}

/* ---------- L'onglet « Le film » (membre) ---------- */
.hm-chip-film { gap: 8px; color: var(--lin, #fcfcfc); border-color: rgba(227, 137, 232, .55); }
.hm-chip-film svg { width: 11px; height: 11px; color: var(--rose, #e389e8); }
.hm-toc .hm-toc-film { background: rgba(227, 137, 232, .2); color: var(--rose, #e389e8); }
.hm-toc .hm-toc-film svg { width: 11px; height: 11px; margin-left: 2px; }

/* ---------- La fenêtre du film ---------- */
html.hm-film-ouvert { overflow: hidden; }
.hm-film {
  --res: 210px;
  position: fixed; inset: 0; z-index: 430;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(12, 12, 22, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hm-film[hidden] { display: none; }
.hm-film.is-member { --res: 120px; }
.hm-film.is-vertical { --res: 230px; }
.hm-film.is-vertical.is-member { --res: 120px; }
.hm-film-boite {
  display: flex; flex-direction: column; gap: 14px;
  width: min(1100px, calc(100vw - 32px), calc((100vh - var(--res)) * 16 / 9));
  width: min(1100px, calc(100vw - 32px), calc((100dvh - var(--res)) * 16 / 9));
}
.hm-film.is-vertical .hm-film-boite {
  width: min(calc(100vw - 32px), calc((100vh - var(--res)) * 9 / 16));
  width: min(calc(100vw - 32px), calc((100dvh - var(--res)) * 9 / 16));
}
.hm-film-haut { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hm-film-titre {
  margin: 0;
  font: 400 clamp(20px, 2.6vw, 30px)/1.05 var(--display, 'Anton', sans-serif);
  text-transform: uppercase; color: var(--lin, #fcfcfc);
}
.hm-film-titre span {
  display: block; margin-bottom: 7px;
  font: 700 11px/1 var(--mono, 'Space Mono', monospace); letter-spacing: .12em;
  color: var(--rose, #e389e8);
}
.hm-film-x {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line, rgba(255, 255, 255, .11)); border-radius: 50%;
  background: rgba(255, 255, 255, .06); color: var(--lin, #fcfcfc);
  cursor: pointer;
}
.hm-film-x svg { width: 20px; height: 20px; }
.hm-film-x:hover { background: rgba(255, 255, 255, .14); }
.hm-film-x:focus-visible { outline: 2px solid var(--lin, #fcfcfc); outline-offset: 3px; }
.hm-film-video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border-radius: 18px; background: #000;
  box-shadow: 0 0 0 1px var(--line, rgba(255, 255, 255, .11)), 0 24px 60px rgba(0, 0, 0, .5);
}
.hm-film.is-vertical .hm-film-video { aspect-ratio: 9 / 16; }
.hm-film-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.hm-film-bas p { margin: 0; font: 400 14px/1.45 var(--body, 'Poppins', sans-serif); color: var(--mute, #cfd3e2); }
.hm-film.is-vertical .hm-film-bas { flex-direction: column; text-align: center; }
.hm-film.is-fini .hm-film-bas .hm-btn { box-shadow: 0 0 0 4px rgba(215, 241, 61, .25), 0 0 34px rgba(215, 241, 61, .45); }

@media (max-width: 480px) {
  .hm-film { padding: 12px; }
  .hm-film-pill { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-film-pill { transition: none; }
  .hm-film-pill:hover { transform: none; }
}
