/* Le film « Joris » en histoire illustrée, pour la version anglaise (04/12/2026, pages/film-en.mjs) : les dessins du film,
   un lent mouvement de caméra, les répliques en anglais aux instants des sous-titres, le passage des écrans redessiné. */
.fe { container-type: inline-size; cursor: default; }
.fe-ecran { position: absolute; inset: 0; overflow: hidden; background: #0B1A33; }
.fe-affiche { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .8s ease; }
.fe.parti .fe-affiche { opacity: 0; }
.fe-p { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.fe-p img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: var(--x, 50%) var(--y, 50%); transform: scale(1.02); }
.fe-p.on { opacity: 1; }
.fe-p.on img { animation: fe-camera var(--d, 8s) linear both; }
@keyframes fe-camera { from { transform: scale(1.02); } to { transform: scale(1.11); } }
.fe.arrete .fe-p img { animation-play-state: paused; }

/* les répliques */
.fe-sts { position: absolute; left: 0; right: 0; bottom: 6%; z-index: 3; display: grid; justify-items: center; align-items: end; pointer-events: none; }
.fe-st { grid-area: 1 / 1; margin: 0; max-width: 80%; font-size: clamp(12.5px, 2.1cqw, 25px); line-height: 1.5; text-align: center; opacity: 0; transition: opacity .15s linear; }
.fe-st.on { opacity: 1; }
.fe-st span { display: inline; padding: .22em .62em; border-radius: .38em; background: rgba(10, 16, 34, .74); color: #fff; font: 500 clamp(12.5px, 2.1cqw, 25px)/1.5 'Outfit', 'Segoe UI', system-ui, sans-serif; letter-spacing: .005em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.fe-st.clair span { background: none; color: #5f6476; font-weight: 400; }

/* le passage des écrans, sur le dessin flouté */
.fe-montage { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif; }
.fe-montage.on { opacity: 1; }
.fe-flou { position: absolute; left: -4%; top: -4%; width: 108%; height: 108%; }
.fe-flou img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fe-carte { position: absolute; opacity: 0; transform: translateY(1.4cqw); transition: opacity .45s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.fe-carte.on { opacity: 1; transform: none; }
.fe-bulle { margin: 0; max-width: 31cqw; padding: 1.1cqw 1.6cqw; border-radius: 1.3cqw; font-size: 1.85cqw; line-height: 1.4; box-shadow: 0 1.2cqw 3cqw rgba(0, 0, 0, .3); }
.fe-chat { right: 18%; top: 25%; }
.fe-chat2 { left: 17%; top: 48%; }
.fe-bulle.toi { background: #2c55b3; color: #fff; border-bottom-right-radius: .3cqw; }
.fe-bulle.jo { background: #f8f4ec; color: #1a2040; border-bottom-left-radius: .3cqw; }
.fe-ecr { left: 26%; top: 9%; width: 48%; height: 72%; display: flex; border-radius: 1cqw; overflow: hidden; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .45); }
.fe-form { flex: 1.9; background: linear-gradient(160deg, #fff 60%, #eef0f6); padding: 1.8cqw 2.2cqw; display: flex; flex-direction: column; gap: 1cqw; font-size: 1.35cqw; color: #1a2040; }
.fe-url { margin: 0 0 .5cqw; font-size: 1.05cqw; color: #8a8fa3; }
.fe-form b { font-size: 2.25cqw; font-weight: 600; }
.fe-form small { font-size: 1.2cqw; color: #6a6f82; margin-top: -.5cqw; }
.fe-champ { display: block; height: 3.1cqw; border: 1px solid #dfe1ea; border-radius: .6cqw; padding: 0 1cqw; line-height: 3.1cqw; font-size: 1.3cqw; }
.fe-btn { align-self: flex-start; margin-top: .4cqw; padding: .8cqw 1.6cqw; border-radius: .6cqw; background: #2c55b3; color: #fff; font-size: 1.3cqw; font-weight: 600; }
.fe-cote { flex: 1; background: #0e1d3e; color: #dfe4f3; padding: 1.8cqw 1.7cqw; font-size: 1.3cqw; line-height: 1.45; }
.fe-cote small { display: block; font-size: 1.05cqw; letter-spacing: .18em; color: #E5B86A; font-weight: 600; margin-bottom: .8cqw; }
.fe-cote p { margin: 0 0 1cqw; }
.fe-cote i { font-style: normal; font-size: 1.1cqw; color: #9aa6c8; }
.fe-pret { left: 50%; top: 31%; margin-left: -18cqw; width: 36cqw; display: flex; align-items: center; gap: 1.4cqw; padding: 1.5cqw 1.8cqw; border-radius: 1.2cqw; background: #f8f4ec; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .4); }
.fe-ic { flex: none; width: 5cqw; height: 5cqw; border-radius: 1cqw; background: #142057; display: grid; place-items: center; }
.fe-ic svg { width: 2.6cqw; height: 2.6cqw; }
.fe-pret p { margin: 0; display: flex; flex-direction: column; }
.fe-pret b { font-size: 2.5cqw; font-weight: 600; color: #1a2040; }
.fe-pret small { font-size: 1.4cqw; color: #6a6f82; }
.fe-accord { left: 50%; top: 31%; margin-left: -18cqw; width: 36cqw; padding: 1.6cqw 1.8cqw 1.8cqw; border-radius: 1.2cqw; background: #f8f4ec; text-align: center; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .4); }
.fe-accord small { display: block; font-size: 1.1cqw; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #b8862b; }
.fe-accord b { display: block; margin: .8cqw 0 1.5cqw; font-size: 2.2cqw; font-weight: 500; color: #1a2040; }
.fe-accord strong { font-weight: 700; }
.fe-accord p { margin: 0; display: flex; justify-content: center; gap: 1cqw; font-size: 1.3cqw; }
.fe-accord p span { padding: .75cqw 1.5cqw; border-radius: .5cqw; background: #e6e2da; color: #4a4f60; }
.fe-accord p .oui { background: #1f8a4c; color: #fff; font-weight: 600; }
.fe-coffre { left: 50%; top: 26%; margin-left: -18cqw; width: 36cqw; padding: 1.8cqw 2cqw; border-radius: 1.2cqw; background: #f8f4ec; text-align: center; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .4); }
.fe-cad svg { width: 4cqw; height: 4cqw; }
.fe-coffre b { display: block; margin-top: .6cqw; font-size: 2.2cqw; font-weight: 500; line-height: 1.3; color: #1a2040; }
.fe-coffre small { display: block; margin-top: .7cqw; font-size: 1.35cqw; color: #6a6f82; }

/* la fin : le logo, comment ce film a été fait, le logo et l'invitation */
.fe-fin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(120% 95% at 50% 42%, #fcfaf5, #efe7d7); opacity: 0; transition: opacity .7s ease; font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif; }
.fe-fin.on { opacity: 1; }
.fe-lg { display: block; aspect-ratio: 3 / 1; }
.fe-lg img { display: block; width: 100%; height: auto; }
.fe-logo .fe-lg { width: 34%; }
.fe-faite { justify-content: flex-start; padding-top: 6%; }
.fe-sur { margin: 0 0 2.2cqw; font-size: 1.2cqw; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #b8862b; }
.fe-grille { display: grid; grid-template-columns: repeat(4, 11.5cqw); gap: 1.7cqw 2.4cqw; }
.fe-grille span { display: block; aspect-ratio: 16 / 9; border-radius: .5cqw; overflow: hidden; box-shadow: 0 .7cqw 1.6cqw rgba(30, 24, 10, .28); }
.fe-grille img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fe-par { margin: 2.4cqw 0 0; font-size: 1.6cqw; color: #1a2040; }
.fe-logo2 .fe-lg { width: 25%; }
.fe-logo2 p { margin: 1.6cqw 0 6%; font-size: 2.4cqw; color: #1a2040; }

/* les commandes */
.fe-barre { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 3px; background: rgba(255, 255, 255, .16); opacity: 0; transition: opacity .3s; pointer-events: none; }
.fe-barre i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #E5B86A; }
.fe.parti .fe-barre { opacity: 1; }
.fe-pause { position: absolute; right: 14px; top: 14px; z-index: 4; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: rgba(11, 26, 51, .62); color: #F7F3EC; display: none; place-items: center; cursor: pointer; opacity: .78; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fe-pause:hover, .fe-pause:focus-visible { opacity: 1; }
.fe-pause:focus-visible { outline: 2px solid #E9C88A; outline-offset: 2px; }
.fe-pause svg { width: 14px; height: 14px; fill: currentColor; }
.fe-pause .i-lire { display: none; }
.fe.joue .fe-pause { display: grid; }
.fe.arrete .fe-pause .i-pause { display: none; }
.fe.arrete .fe-pause .i-lire { display: block; margin-left: 2px; }
.fe.joue .lecture, .fe.parti .duree { display: none; }
/* l'histoire finie : le bouton pour la revoir, sous le logo, sans voile */
.fe.parti:not(.joue) .lecture { background: none; place-items: end center; padding-bottom: 8%; }
.fe.parti:not(.joue) .lecture span { background: #0B1A33; box-shadow: 0 10px 26px rgba(11, 26, 51, .25); }
.fe.parti:not(.joue) .lecture svg { fill: #fff; }
.fe.joue .fe-ecran { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .fe-p.on img { animation: none; } .fe-carte { transition: opacity .3s ease; transform: none; } }
@media (max-width: 599px) { .fe-pause { right: 10px; top: 10px; width: 32px; height: 32px; } }
/* petit écran (téléphone) : les cartes et les textes de la fin grandissent pour rester lisibles, le bouton « revoir » rapetisse */
@container (max-width: 600px) {
  .fe-bulle { max-width: 64cqw; padding: 1.8cqw 2.8cqw; border-radius: 2.4cqw; font-size: 3.5cqw; }
  .fe-bulle.toi { border-bottom-right-radius: .6cqw; }
  .fe-bulle.jo { border-bottom-left-radius: .6cqw; }
  .fe-chat { right: 14%; top: 9%; }
  .fe-chat2 { left: 6%; top: 42%; }
  .fe-ecr { left: 13%; width: 74%; top: 5%; height: 66%; border-radius: 2cqw; }
  .fe-cote, .fe-url, .fe-form span:nth-of-type(3) { display: none; }
  .fe-form { padding: 2.6cqw 3.4cqw; gap: 1.5cqw; font-size: 2.9cqw; }
  .fe-form b { font-size: 4.2cqw; }
  .fe-form small { font-size: 2.6cqw; margin-top: -1cqw; }
  .fe-champ { height: 5.4cqw; line-height: 5.4cqw; border-radius: 1cqw; padding: 0 1.8cqw; font-size: 2.9cqw; }
  .fe-btn { margin-top: 0; padding: 1.3cqw 2.6cqw; border-radius: 1cqw; font-size: 2.9cqw; }
  .fe-pret, .fe-accord, .fe-coffre { scale: 1.7; }
  .fe-pret { top: 30%; }
  .fe-accord { top: 27%; }
  .fe-coffre { top: 22%; }
  .fe-pret small, .fe-coffre small { font-size: 1.8cqw; }
  .fe-accord small { font-size: 1.4cqw; }
  .fe-accord p { font-size: 1.6cqw; }
  .fe-logo .fe-lg { width: 42%; }
  .fe-faite { padding-top: 3.5%; }
  .fe-sur { margin-bottom: 2cqw; font-size: 2.5cqw; }
  .fe-grille { grid-template-columns: repeat(4, 13cqw); gap: 1.8cqw 2.2cqw; }
  .fe-par { margin-top: 2cqw; font-size: 3.2cqw; }
  .fe-logo2 { justify-content: flex-start; padding-top: 12%; }
  .fe-logo2 .fe-lg { width: 36%; }
  .fe-logo2 p { margin: 2.4cqw 0 0; font-size: 4cqw; }
  .fe.parti:not(.joue) .lecture { padding-bottom: 5%; }
  .fe.parti:not(.joue) .lecture span { width: 46px; height: 46px; border-radius: 12px; }
  .fe.parti:not(.joue) .lecture svg { width: 18px; height: 18px; }
}
