.hero {
position: relative;
width: 100%;
height: calc(100 * var(--vp-unit));
background-color: var(--color-white);
}
@media (prefers-reduced-motion: no-preference) {
.hero {
height: calc(200 * var(--vp-unit));
}
}
@media (hover: none) {
.mode-allege .hero {
height: calc(100 * var(--vp-unit));
}
}
@keyframes hero-reduction {
from { transform: scale(1); }
to { transform: scale(var(--hero-scale-final, 1)); }
}
@keyframes hero-moitie-gauche {
from { translate: 0 0; }
to { translate: -180% 0; }
}
@keyframes hero-moitie-droite {
from { translate: 0 0; }
to { translate: 180% 0; }
}
@keyframes hero-titre-fondu {
from { opacity: 1; }
to { opacity: 0; }
}
@keyframes hero-arrondi {
0% { --hero-radius-fraction: 0; }
12.5% { --hero-radius-fraction: 0.125; }
25% { --hero-radius-fraction: 0.25; }
37.5% { --hero-radius-fraction: 0.375; }
50% { --hero-radius-fraction: 0.5; }
62.5% { --hero-radius-fraction: 0.625; }
75% { --hero-radius-fraction: 0.75; }
87.5% { --hero-radius-fraction: 0.875; }
100% { --hero-radius-fraction: 1; }
}
@supports (animation-timeline: view()) and (timeline-scope: none) {
@media (prefers-reduced-motion: no-preference) {
body.mode-navigateur .hero {
height: calc(100lvh + 100 * var(--vp-unit));
margin-bottom: calc(100 * var(--vp-unit) - 100lvh);
view-timeline: --hero block;
view-timeline-inset: 0;
}
body.mode-navigateur .hero__sticky {
height: 100lvh;
}
body.mode-navigateur .hero__media {
animation: hero-reduction cubic-bezier(0.333333, 0.666667, 0.666667, 1) both, hero-arrondi linear both;
animation-timeline: --hero, --hero;
animation-range: exit-crossing 0% exit-crossing calc(100 * var(--vp-unit)), exit-crossing 0% exit-crossing calc(40 * var(--vp-unit));
}
body.mode-navigateur .hero__title-half--left {
animation: hero-moitie-gauche cubic-bezier(0.333333, 0, 0.666667, 0) both, hero-titre-fondu linear both;
}
body.mode-navigateur .hero__title-half--right {
animation: hero-moitie-droite cubic-bezier(0.333333, 0, 0.666667, 0) both, hero-titre-fondu linear both;
}
body.mode-navigateur .hero__title-half {
animation-timeline: --hero, --hero;
animation-range: exit-crossing 0% exit-crossing calc(62 * var(--vp-unit)), exit-crossing calc(56 * var(--vp-unit)) exit-crossing calc(62 * var(--vp-unit));
}
}
}
.hero__sticky {
position: sticky;
top: 0;
height: calc(100 * var(--vp-unit));
overflow: hidden;
}
.hero__media {
position: absolute;
inset: 0;
overflow: hidden;
transform-origin: center center;
border-radius: calc(
var(--radius-md) * var(--hero-radius-fraction, 0) / var(--hero-scale-final, 1)
);
}
.hero__media-el {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
@media (prefers-reduced-motion: reduce) {
.hero__media-el--video {
display: none;
}
}
.hero__overlay {
position: absolute;
inset: 0;
background-color: color-mix(in srgb, var(--color-black) 30%, transparent);
}
.hero__content {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 0 48px;
}
.hero__spacer {
width: 100%;
height: 48px;
flex-shrink: 0;
}
.hero__title {
width: 100%;
font-family: var(--font-display);
font-weight: var(--font-weight-book);
font-size: 48px;
line-height: 1;
letter-spacing: 2.88px;
text-align: center;
color: var(--color-white);
white-space: nowrap;
}
.hero__title-half {
display: inline-block;
}
@media (max-width: 1039px) {
.hero__title {
white-space: normal;
}
.hero__title-half {
display: block;
}
}
@media (max-width: 767px) {
.hero__media-el--video {
opacity: 0;
transition: opacity var(--duration-slow) var(--easing-out);
}
.hero__media-el--video.hero__media-el--lecture {
opacity: 1;
}
}
