/* The hero video (Francis, 4 Nov 2026: video on the right of the hero, at a fair size, with a way to open it larger).
   One small component for every page: <figure class="hv" data-hv ...> (markup in assets/hero-video.js). Put class "hv-hero" on the
   hero section and wrap the words in <div class="hv-copy">: copy and buttons on the left, the film on the right; under the buttons,
   full width, on a phone. The film never plays by itself. */
.hv-hero .in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:clamp(20px,3.4vw,44px);align-items:center;text-align:left}
.hv-hero .hv-copy{min-width:0}
.hv-hero.hv-off .in{grid-template-columns:minmax(0,1fr)}
.hv-hero .hv-copy h1{margin-inline:0;max-width:20ch}
.hv-hero .hv-copy .sub{margin-inline:0}
.hv-hero .hv-copy .ov-ctas{justify-content:flex-start}
@media (max-width:820px){.hv-hero .in{grid-template-columns:minmax(0,1fr)}.hv-hero .hv-copy .ov-ctas .ov-btn{width:100%}}
.hv{margin:0;min-width:0;display:flex;flex-direction:column;gap:8px}
.hv[hidden]{display:none}
.hv-box{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:var(--navy);box-shadow:0 24px 54px -30px rgba(15,42,67,.55)}
.hv-box video,.hv-box iframe{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover;background:var(--navy)}
.hv-face{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;cursor:pointer;background:var(--navy) center/cover no-repeat;display:flex;align-items:center;justify-content:center}
.hv-face .hv-play,.hv-lb .hv-play{width:64px;height:64px;border-radius:50%;background:var(--gold-hi);color:var(--navy);display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.hv-face svg{width:26px;height:26px;margin-left:3px}
.hv-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:nowrap}
/* 1 Dec 2026 (review): the caption and the « Vidéo en anglais » tag share the row with « Agrandir la vidéo »; the caption gives way (an ellipsis) before the button can drop onto a row of its own */
.hv-row .hv-cap{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hv-row .hv-only{flex:none;white-space:nowrap}.hv-row .hv-larger{flex:none;white-space:nowrap}
.hv-cap{color:var(--muted);font-size:14px;font-weight:600}
.hv-larger{font:inherit;font-size:14.5px;font-weight:650;color:var(--navy);background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:8px 14px;min-height:40px;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.hv-larger:hover{border-color:var(--gold)}
.hv-larger svg{width:16px;height:16px}
.hv-larger:focus-visible,.hv-face:focus-visible,.hv-x:focus-visible{outline:3px solid var(--focus-out,#0F1B30);outline-offset:2px;box-shadow:0 0 0 2px var(--focus-in,#fff)}
.hv-lb{position:fixed;inset:0;z-index:1000;background:rgba(6,12,22,.88);display:flex;align-items:center;justify-content:center;padding:clamp(12px,3vw,40px)}
.hv-lb[hidden]{display:none}
.hv-lb-in{position:relative;width:min(1200px,100%,calc((100vh - 96px) * 16 / 9));}
.hv-lb .hv-box{box-shadow:0 30px 80px rgba(0,0,0,.6)}
.hv-x{position:absolute;right:0;top:-48px;font:inherit;font-weight:650;font-size:15px;color:#fff;background:transparent;border:1.5px solid rgba(255,255,255,.55);border-radius:999px;padding:7px 14px;min-height:40px;cursor:pointer}
.hv-x:hover{border-color:#fff}
body.hv-lock{overflow:hidden}
@media (max-width:820px){.hv-lb-in{width:100%}}
@media (max-width:480px){.hv-row:has(.hv-only) .hv-cap{display:none}}
@media (max-width:360px){.hv-row{gap:6px}.hv-row .hv-only{font-size:12px;padding:2px 8px;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.hv-row .hv-larger{font-size:13px;padding:6px 10px;gap:6px}.hv-row .hv-larger svg{display:none}}
