/* Hero film on the home page (live 2026-11-24): a large rounded frame in the site's card style, sound tried first,
   muted autoplay with "Tap for sound" when the browser refuses, captions off by default, small CC, replay and sound
   controls. Sizing is pure CSS (no layout shift); the hero narrows down to the film: headline, line, Let's chat, film. */
.hero { padding-top: clamp(96px, 8vw, 108px); }
/* centred, each row narrower than the one above: headline, supporting line, Let's chat, then the film */
.hero__copy { gap: 18px; max-width: none; }
.hero__sub { max-width: min(36rem, 88%); margin-inline: auto; text-wrap: balance; }
.hero__act { flex-direction: column; justify-content: center; align-items: center; gap: 0; margin-top: 4px; }
.hero__act .c-btn { justify-content: center; text-align: center; padding: 8px 34px; }
html[lang^="fr"] .hero__h1 { font-size: clamp(30px, 4.1vw, 62px); }
@media (max-width: 960px) { html[lang^="fr"] .hero__h1 .h1-l, html[lang^="fr"] .hero__h1 em { display: block; } html[lang^="fr"] .hero__h1 br { display: none; } html[lang^="fr"] .hero__h1 { font-size: clamp(27px, 6vw, 48px); } }
@media (max-width: 760px) {
  .hero__h1 { font-size: clamp(34px, 10.6vw, 42px); }
  html[lang^="fr"] .hero__h1 { font-size: clamp(25px, 7.3vw, 30px); }
  .hero__sub { max-width: min(270px, 78%); font-size: 16px; }
}
.hero .hero__note { margin: 18px auto 0; text-align: center; font-size: 14px; color: #6A6E78; }
.hero .hero__note + .trust { margin-top: 8px; }
.film { --film-ease: cubic-bezier(0.23, 1, 0.32, 1); --film-top: 470px; position: relative; margin: clamp(22px, 2.6vw, 34px) auto 0;
  width: min(100%, 1200px, max(var(--film-min, 760px), calc((100svh - var(--film-top)) * 16 / 9))); }
html[lang^="fr"] .film { --film-top: 500px; --film-min: 720px; }
.film__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: #161618;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 0 0 1px rgba(18, 20, 28, .07), 0 34px 80px -28px rgba(18, 20, 28, .45), 0 12px 30px -18px rgba(11, 119, 184, .35);
  isolation: isolate; }
.film__poster, .film__poster img, .film__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.film__video { opacity: 0; transition: opacity 240ms ease; background: transparent; }
.film.is-ready .film__video { opacity: 1; }
.film__frame:focus-visible { outline: 3px solid #0B77B8; outline-offset: 4px; }

/* controls: small dark glass pills, bottom right; they never cover the film's own type for long */
.film__ctrls { position: absolute; right: 14px; top: 14px; display: flex; gap: 8px; z-index: 3; }
.film__btn { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(22, 22, 24, .42); color: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  font: 600 12.5px/1 var(--body); letter-spacing: .01em; cursor: pointer; transition: transform 160ms var(--film-ease), background-color 160ms ease; }
.film__btn svg { width: 14px; height: 14px; flex: none; }
.film__btn--icon { width: 32px; padding: 0; justify-content: center; }
.film__btn:active { transform: scale(0.97); }
.film__btn:focus-visible { outline: 2px solid #4CB6F7; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .film__btn:hover { background: rgba(22, 22, 24, .72); color: #fff; } .film__ccbtn[aria-pressed="true"]:hover { background: #fff; color: #161618; } }
.film__ccbtn[aria-pressed="false"] .film__cc { opacity: .72; }
.film__ccbtn[aria-pressed="true"] { background: rgba(255, 255, 255, .92); color: #161618; border-color: transparent; }
.film__btn .film__on { display: none; }
.film.is-unmuted .film__sound .film__off { display: none; }
.film.is-unmuted .film__sound .film__on { display: inline; }
.film__replay { display: none; }
.film.is-started .film__replay { display: inline-flex; }

/* the big play button: only when we do not autoplay (reduced motion, data saver, autoplay refused) */
.film__play { position: absolute; left: 50%; top: 79%; transform: translate(-50%, -50%); z-index: 3; display: none;
  height: 46px; padding: 0 20px 0 16px; font-size: 15px; color: #fff; background: rgba(22, 22, 24, .72); }
.film__play:active { transform: translate(-50%, -50%) scale(0.97); }
.film.is-manual:not(.is-started) .film__play { display: inline-flex; }
.film.is-manual:not(.is-started) .film__ctrls { display: none; }
.film.is-ended .film__replay { background: #fff; color: #161618; border-color: #fff; }

/* thin progress line, transform only */
.film__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgba(255, 255, 255, .12); }
.film__bar i { display: block; height: 100%; background: #4CB6F7; transform-origin: 0 50%; transform: scaleX(0); }

/* captions: off by default (the film opens as a mood piece); CC shows our own line inside the frame, bottom centre, on a dark rounded backing (no native track UI) */
.film__cap { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; width: max-content; max-width: min(86%, 46rem);
  margin: 0; text-align: center; font: 600 clamp(14px, 1.2vw, 18px)/1.5 var(--body); color: #fff; pointer-events: none; }
.film__cap span { background: rgba(22, 22, 24, .74); padding: 3px 10px; border-radius: 7px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.film__cap:empty, .film__cap.is-off { display: none; }
.film__script { margin: 14px auto 0; max-width: 40rem; text-align: center; font-size: 14px; color: #6A6E78; }
.film__script summary { display: inline-block; cursor: pointer; padding: 6px 10px; border-radius: 8px; color: #4A4E58; font-weight: 500;
  text-decoration: underline; text-decoration-color: rgba(74, 78, 88, .35); text-underline-offset: 3px; list-style: none; }
.film__script summary::-webkit-details-marker { display: none; }
.film__script summary:focus-visible { outline: 2px solid #0B77B8; outline-offset: 2px; }
.film__script div { text-align: left; margin-top: 8px; padding: 18px 22px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 20, 28, .07); }
.film__script p { margin: 0 0 8px; color: #3A3E48; line-height: 1.55; }
.film__script p:last-child { margin: 0; }
.hero .trust { margin-top: 18px; justify-content: center; }
.hero__fan { margin-top: clamp(30px, 4vw, 56px); }

@media (max-width: 760px) {
  .film { width: min(100%, calc((100svh - 96px) * 9 / 16)); }
  html[lang="fr"] .film { width: min(100%, calc((100svh - 96px) * 9 / 16)); }
  .film__frame { aspect-ratio: 9 / 16; border-radius: 20px; }
  .film__ctrls { right: 10px; top: 10px; gap: 6px; }
  .film__cap { bottom: 16px; font-size: 14px; }
  html[lang^="fr"] .film { width: min(100%, calc((100svh - 96px) * 9 / 16)); }
  .film__btn { height: 32px; padding: 0 11px; font-size: 12.5px; }
  .film__btn--icon { width: 32px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .film__video { transition: none; }
  .film__btn { transition: none; }
}

/* "Tap for sound": shown only when the browser refused to start with sound; the first tap or click on the film turns
   sound on and restarts from the top. Clear and centred near the bottom, not a tiny icon. */
.film__tap { position: absolute; left: 50%; bottom: 26px; z-index: 4; display: none; align-items: center; gap: 10px;
  -webkit-appearance: none; appearance: none; height: 48px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #161618; font: 700 15px/1 var(--head); letter-spacing: -.005em; cursor: pointer; white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .4);
  transform: translateX(-50%); transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms ease; }
.film__tap svg { width: 18px; height: 18px; flex: none; }
.film__tap:active { transform: translateX(-50%) scale(0.97); }
.film__tap:focus-visible { outline: 2px solid #4CB6F7; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .film__tap:hover { background: #fff; } }
.film.is-tap .film__tap { display: inline-flex; animation: film-tap-in 320ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes film-tap-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%); } }
.film.is-tap .film__sound { display: none; }
.film.is-tap .film__frame { cursor: pointer; }
.film.is-tap .film__cap { bottom: 90px; }
.film__t-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .film__t-touch { display: none; } .film__t-mouse { display: inline; } }
@media (max-width: 760px) { .film__tap { bottom: auto; top: 58px; height: 46px; font-size: 15px; } }
@media (min-width: 761px) { .film__tap { height: 52px; padding: 0 24px 0 20px; font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .film.is-tap .film__tap { animation: none; } }
