.frise-cadre {
  padding: 0 var(--gout);
}
.frise-titre {
  position: relative;
  z-index: 3;
  margin: 14px 0 28px;
  font: 900 clamp(2rem, 1.1rem + 2.6vw, 3.6rem)/1 var(--titre);
  letter-spacing: -.022em;
}
.frise-titre > span {
  display: inline-block;
}
.marches {
  list-style: none;
  display: grid;
  gap: 80px;
  padding: 0;
  margin: 0;
}
.marche {
  display: grid;
  gap: 18px;
  align-content: start;
}
.marche-tete {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  font-weight: 900;
}
.marche-date {
  display: block;
  font: 900 clamp(2.4rem, 1.2rem + 4.4vw, 5.4rem)/.9 var(--titre);
  letter-spacing: -.026em;
}
.marche-titre {
  display: block;
  font: italic 800 clamp(1.6rem, 1.1rem + 1.7vw, 2.7rem)/1.02 var(--titre);
  letter-spacing: -.012em;
}
.marche-texte p {
  margin: 0 0 .6em;
}
.marche-lien {
  margin-top: 4px !important;
}
.marche-photo {
  margin: 0;
}
.marche-photo[data-forme=portrait] {
  width: min(62%, 330px);
}
.marche-photo[data-forme=paysage] {
  width: 100%;
  max-width: 760px;
}
.marche-photo--dessin .fenetre-cadre {
  background: var(--blanc);
}
.marche-photo .legende,
.marche-rendu .legende {
  margin-top: 8px;
}
.marche-rendu {
  --deborde: min(4%, var(--gout));
  margin: -10% 0 -6% calc(-1 * var(--deborde));
  width: calc(100% + 2 * var(--deborde));
  max-width: 820px;
}
.marche-rendu img {
  width: 100%;
  height: auto;
}
.marche-rendu .legende {
  padding-left: min(3.7%, var(--gout));
}
.frise-fin {
  padding: 88px 0 24px;
}
.frise-fin .marche-date {
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem);
}
.frise-voile,
.frise-zone,
.frise-reperes {
  display: none;
}
@media (min-width: 960px) {
  .frise-titre {
    margin: 28px 0 56px;
  }
  .marches {
    gap: 120px;
  }
  .marche {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: center;
  }
  .marche-texte {
    grid-column: 1 / span 5;
    grid-row: 1;
  }
  .marche-photo[data-forme=paysage] {
    grid-column: 6 / -1;
    grid-row: 1;
    max-width: none;
  }
  .marche-photo[data-forme=portrait] {
    grid-column: 8 / span 3;
    grid-row: 1;
    width: 100%;
  }
  .marche-rendu {
    grid-column: 6 / -1;
    grid-row: 1;
    width: 100%;
    margin: -6% 0 -4%;
    max-width: none;
  }
  .frise-fin {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    padding-top: 120px;
  }
  .frise-fin .marche-texte {
    grid-column: 1 / span 6;
  }
}
html:is(.frise-attente, .frise-active, .frise-immobile):not(.frise-chargee) .marche:not([data-marche="1"], [data-marche="2"], [data-marche="3"], [data-marche="4"]) .fenetre-cadre > img,
html:is(.frise-attente, .frise-active, .frise-immobile):not(.frise-chargee):not(.frise-suite) .marche:is([data-marche="3"], [data-marche="4"]) .fenetre-cadre > img,
html:is(.frise-attente, .frise-active, .frise-immobile):not(.frise-chargee) .marche-rendu > img,
html.frise-immobile:not(.frise-chargee) :is(.video-cadre, .suivante-image) img {
  translate: -20000px 0;
}
html.frise-active .frise,
html.frise-attente .frise {
  position: relative;
  height: 560vh;
  height: 560svh;
}
html.frise-active .frise-cadre,
html.frise-attente .frise-cadre {
  position: sticky;
  top: var(--barre-h);
  height: calc(100vh - var(--barre-h));
  height: calc(100svh - var(--barre-h));
  overflow: hidden;
  padding: 0;
  --tete: 48px;
  --zone: calc((100svh - var(--barre-h) - var(--tete)) * .56);
}
html.frise-active .frise-zone,
html.frise-attente .frise-zone {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--tete);
  height: var(--zone);
  pointer-events: none;
}
html.frise-active .marches,
html.frise-attente .marches {
  position: absolute;
  inset: 0;
  padding: 0;
  display: block;
}
html.frise-active .marche,
html.frise-active .frise-fin,
html.frise-attente .marche,
html.frise-attente .frise-fin {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
html.frise-active .frise-titre,
html.frise-attente .frise-titre {
  position: absolute;
  z-index: 4;
  left: var(--gout);
  right: var(--gout);
  top: 12px;
  margin: 0;
  font-size: clamp(19px, 5.4vw, 24px);
  line-height: 1.05;
  white-space: nowrap;
}
html.frise-active .frise-cadre::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--tete) + 16px);
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      var(--plateau) calc(100% - 16px),
      rgba(244, 243, 241, 0));
}
html.frise-active .marche-texte,
html.frise-attente .marche-texte {
  position: absolute;
  z-index: 3;
  left: var(--gout);
  right: var(--gout);
  top: calc(var(--tete) + var(--zone) + 6px);
  bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 18px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity var(--d-ui) var(--ui), transform 450ms var(--sortie);
}
html.frise-active .est-courant .marche-texte,
html.frise-attente .est-courant .marche-texte {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity var(--d-ui) var(--ui) 60ms, transform 450ms var(--sortie) 60ms;
}
html.frise-active .marche-tete,
html.frise-attente .marche-tete {
  margin-bottom: 10px;
  gap: 2px;
}
html.frise-active .marche-date,
html.frise-active .frise-fin .marche-date,
html.frise-attente .marche-date {
  font-size: clamp(2.3rem, 1rem + 5.2vw, 3rem);
}
html.frise-active .marche-titre,
html.frise-attente .marche-titre {
  font-size: clamp(1.45rem, .9rem + 2.4vw, 1.9rem);
}
html.frise-active .marche-texte p,
html.frise-attente .marche-texte p {
  font-size: var(--t-corps);
  line-height: 1.42;
  margin-bottom: .5em;
}
html.frise-active .marche-photo,
html.frise-attente .marche-photo {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  margin: 0;
  max-width: none;
  transform-origin: 0 0;
  will-change: transform;
  opacity: 0;
}
html.frise-active .marche-photo.est-placee {
  opacity: 1;
}
html.frise-attente .marche-photo .legende,
html.frise-attente .marche-rendu .legende {
  opacity: 0;
}
html.frise-active .marche-photo .legende {
  position: absolute;
  left: 0;
  top: 100%;
  width: max-content;
  max-width: 24rem;
  margin: 34px 0 0;
  font-size: 16px;
  line-height: 1.3;
  opacity: 0;
  transition: opacity var(--d-ui) var(--ui);
}
@media (min-width: 960px) {
  html.frise-active .marche.est-courant .marche-photo:not(.legende-hors) .legende {
    opacity: 1;
  }
}
html.frise-active .marche-rendu,
html.frise-attente .marche-rendu {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  margin: 0;
  max-width: none;
  transform-origin: 0 0;
  will-change: transform;
  opacity: 0;
}
html.frise-active .marche-rendu.est-placee {
  opacity: 1;
}
html.frise-active .marche-rendu.au-dessus {
  z-index: 3;
}
html.frise-active .marche-rendu .legende {
  position: absolute;
  left: 14%;
  top: 22%;
  margin: 0;
  padding: 0;
  font-size: 16px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--d-ui) var(--ui);
}
html.frise-active .marche-rendu.date-dessus .legende {
  top: 84%;
}
@media (min-width: 960px) {
  html.frise-active .marche--zenith.est-courant .marche-rendu:not(.legende-hors) .legende {
    opacity: 1;
  }
}
html.frise-active .frise-reperes {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
html.frise-active .frise-reperes li {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font: 800 16px/1.1 var(--titre);
  color: var(--encre);
  will-change: transform;
  transition: opacity 200ms var(--ui);
}
html.frise-active .frise-reperes li.est-cachee {
  opacity: 0;
}
html.frise-active .frise.sans-fondu :is(.frise-reperes li, .legende) {
  transition: none !important;
}
html.frise-active .frise-voile {
  display: block;
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: calc(var(--tete) + var(--zone) - 18px);
  bottom: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(244, 243, 241, 0) 0,
      var(--plateau) 18px);
}
@media (max-width: 959px) and (min-height: 760px) {
  html.frise-active .frise-cadre,
  html.frise-attente .frise-cadre {
    --zone: calc((100svh - var(--barre-h) - var(--tete)) * .6);
  }
}
@media (max-width: 959px) and (max-height: 720px) {
  html.frise-active .frise-cadre,
  html.frise-attente .frise-cadre {
    --tete: 42px;
    --zone: calc((100svh - var(--barre-h) - var(--tete)) * .55);
  }
  html.frise-active .frise-titre,
  html.frise-attente .frise-titre {
    top: 10px;
  }
  html.frise-active .marche-date,
  html.frise-active .frise-fin .marche-date,
  html.frise-attente .marche-date {
    font-size: 2.1rem;
  }
  html.frise-active .marche-titre,
  html.frise-attente .marche-titre {
    font-size: 1.4rem;
  }
  html.frise-active .marche-lien .btn {
    min-height: 48px;
  }
}
@media (max-width: 959px) and (max-height: 620px) {
  html.frise-active .frise-cadre,
  html.frise-attente .frise-cadre {
    --zone: calc((100svh - var(--barre-h) - var(--tete)) * .44);
  }
  html.frise-active .marche-date,
  html.frise-active .frise-fin .marche-date,
  html.frise-attente .marche-date {
    font-size: 1.85rem;
  }
  html.frise-active .marche-titre,
  html.frise-attente .marche-titre {
    font-size: 1.25rem;
  }
  html.frise-active .marche-texte p,
  html.frise-attente .marche-texte p {
    font-size: 18px;
    line-height: 1.38;
  }
  html.frise-active .marche-texte,
  html.frise-attente .marche-texte {
    bottom: 6px;
    padding-bottom: 6px;
  }
  html.frise-active .frise-fin .marche-texte {
    top: calc(var(--tete) + var(--zone) + 14px);
  }
}
@media (min-width: 960px) {
  html.frise-active .frise-cadre,
  html.frise-attente .frise-cadre {
    --tete: 0px;
    --zone: 100%;
    --col: min(34vw, 520px);
    --titre-haut: clamp(18px, 3.4vh, 40px);
    --titre-t: clamp(2.1rem, .9rem + 1.9vw, 3.1rem);
  }
  html.frise-active .frise-cadre::before {
    display: none;
  }
  html.frise-active .frise-zone,
  html.frise-attente .frise-zone {
    left: calc(var(--gout) + var(--col) + 32px);
    right: 0;
    top: 0;
    bottom: 0;
    height: auto;
  }
  html.frise-active .frise-titre,
  html.frise-attente .frise-titre {
    right: auto;
    width: var(--col);
    top: var(--titre-haut);
    font-size: var(--titre-t);
    line-height: 1;
    white-space: normal;
  }
  html.frise-active .frise-titre > span,
  html.frise-attente .frise-titre > span {
    display: block;
  }
  html.frise-active .marche-texte,
  html.frise-attente .marche-texte {
    left: var(--gout);
    right: auto;
    width: var(--col);
    top: calc(var(--titre-haut) + 2 * var(--titre-t) + 20px);
    bottom: 0;
    justify-content: center;
    padding-bottom: 28px;
  }
  html.frise-active .marche-tete,
  html.frise-attente .marche-tete {
    margin-bottom: 18px;
    gap: 6px;
  }
  html.frise-active .marche-date,
  html.frise-active .frise-fin .marche-date,
  html.frise-attente .marche-date {
    font-size: clamp(3.4rem, 1rem + 4.4vw, 5.6rem);
  }
  html.frise-active .marche-titre,
  html.frise-attente .marche-titre {
    font-size: clamp(1.9rem, 1rem + 1.6vw, 2.8rem);
  }
  html.frise-active .marche-texte p,
  html.frise-attente .marche-texte p {
    font-size: 20px;
    line-height: 1.5;
  }
  html.frise-active .frise-voile {
    top: 0;
    bottom: 0;
    right: auto;
    width: calc(var(--gout) + var(--col) + 112px);
    background:
      linear-gradient(
        90deg,
        var(--plateau) calc(100% - 64px),
        rgba(244, 243, 241, 0));
  }
}
@media (min-width: 960px) and (max-height: 780px) {
  html.frise-active .frise-cadre,
  html.frise-attente .frise-cadre {
    --titre-t: clamp(1.9rem, .8rem + 1.6vw, 2.6rem);
  }
  html.frise-active .marche-date,
  html.frise-active .frise-fin .marche-date,
  html.frise-attente .marche-date {
    font-size: clamp(3rem, 1rem + 3.4vw, 4.4rem);
  }
  html.frise-active .marche-titre,
  html.frise-attente .marche-titre {
    font-size: clamp(1.7rem, 1rem + 1.3vw, 2.3rem);
  }
  html.frise-active .marche-texte p,
  html.frise-attente .marche-texte p {
    font-size: 18.5px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .frise-titre > span {
    animation: histoire-monte 760ms var(--sortie) both;
  }
  .frise-titre > span + span {
    animation-delay: 90ms;
  }
}
@keyframes histoire-monte {
  from {
    opacity: 0;
    transform: translateY(.3em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.video {
  padding: var(--section) var(--gout) calc(var(--section) * .4);
  display: grid;
  gap: 22px;
  outline: none;
}
.video-titre {
  margin: 0;
  text-wrap: balance;
}
.video-texte p {
  margin-bottom: .5em;
}
.video-texte .atelier {
  font-weight: 750;
  max-width: 34ch;
}
.video-cadre {
  position: relative;
  background: var(--encre);
}
.video-cadre > img {
  transition: opacity 300ms var(--ui);
}
.video-cadre.est-lancee > img {
  opacity: 0;
}
.video-cadre iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.video-cadre {
  container-type: inline-size;
}
.video-lire {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end end;
  margin: 0;
  border: 0;
  background: transparent;
  --lire-m: max(10px, calc(7% - 28px));
  padding: 0 var(--lire-m) var(--lire-m) 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border-radius: inherit;
}
.lire-pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 56px;
  height: 56px;
  padding: 0 0 0 4px;
  border-radius: 999px;
  background: var(--blanc);
  color: var(--encre);
  border: 2px solid var(--encre);
  font: 750 18px/1 var(--texte);
  transition: transform 140ms var(--ui);
}
.lire-pastille > span {
  display: none;
}
.lire-triangle {
  flex: none;
}
@container (min-width: 600px) {
  .lire-pastille {
    width: auto;
    height: auto;
    min-height: 56px;
    padding: 0 22px 0 18px;
  }
  .lire-pastille > span {
    display: inline;
  }
}
.video-lire:hover .lire-pastille {
  transform: scale(1.05);
}
.video-lire:active .lire-pastille {
  transform: scale(.98);
}
.video-lire:focus-visible {
  outline: none;
}
.video-lire:focus-visible .lire-pastille {
  box-shadow: 0 0 0 3px var(--blanc), 0 0 0 6px var(--sommet);
}
.video-fenetre .legende {
  margin-top: 10px;
}
@media (min-width: 960px) {
  .video {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 28px;
    align-items: end;
    padding-top: 80px;
  }
  .video-titre {
    grid-column: 1 / -1;
    font-size: clamp(2.5rem, 1rem + 3.4vw, 4.6rem);
  }
  .video-fenetre {
    grid-column: 6 / -1;
    grid-row: 2;
  }
  .video-texte {
    grid-column: 1 / span 4;
    grid-row: 2;
    padding-bottom: 40px;
  }
  @container (min-width: 600px) {
    .video-lire {
      --lire-m: max(10px, calc(7% - 30px));
    }
    .lire-pastille {
      min-height: 60px;
      font-size: 19px;
      padding: 0 26px 0 20px;
    }
  }
}
.page-histoire .bande-inscription .stade {
  margin-top: 6px;
  line-height: 1.4;
}
.page-histoire .suivante {
  margin-bottom: var(--section);
}
@media (max-width: 420px) {
  .page-histoire .suivante {
    grid-template-areas: "quoi image" "nom nom" "phrase phrase";
  }
}
