/* Ouverture des pages projets (grille vivante) : l'image entière à droite et le titre à gauche sur ordinateur ; l'image en haut et le titre dessous sur téléphone.
   Le trajet depuis le carrousel ou depuis « Next project » est un RAF explicite (projet.js, grille.js) : aucune animation de document du navigateur. */
@view-transition { navigation: none; }
.project-flight { position: fixed; inset: 0; z-index: 1000; overflow: hidden; touch-action: none; }
.project-flight__veil { position: absolute; inset: 0; background: var(--noir); }
.project-flight__frame { position: absolute; left: 0; top: 0; overflow: hidden; will-change: transform; }
.project-flight__frame img { position: absolute; left: 0; top: 0; max-width: none; display: block; will-change: transform; }
/* thème crème (page ouverte depuis une occurrence crème, et Next project qui le garde) : les mêmes variables, inversées ; les images ne changent pas */
html.theme-creme { --noir: #F6F5F2; --ivoire: #0B0B0B; --gris: #6B6A66; --trait: rgba(11, 11, 11, .12); }
html.theme-creme .propos p, html.theme-creme .recit dd, html.theme-creme .propos__phrase { color: #3A3936; }
html.theme-creme .planche img, html.theme-creme .planche video, html.theme-creme .suite__image { outline-color: rgba(11, 11, 11, .14); }
html.theme-creme .ouverture .ouverture__fin .meta { color: #4A4945; }
/* l'œuvre entière est gardée, affiches en hauteur comprises sur grand écran */
.ouverture { min-height: 680px; height: 100svh; background: var(--noir); isolation: isolate; }
.ouverture::before, .ouverture::after { display: none; }
.ouverture .ouverture__image {
  inset: auto; top: 50%; left: 72%;
  width: min(48vw, calc(72svh * var(--art-ratio)));
  height: auto; aspect-ratio: var(--art-ratio);
  transform: translate(-50%, -50%) !important;
  background-size: contain; background-position: center; background-color: transparent;
  will-change: auto;
}
.ouverture__film { display: none; }
.opening-title { position: absolute; left: var(--marge); top: 50%; transform: translateY(-50%); width: 43%; }
.opening-title .titre { font-size: clamp(56px, 8.5vw, 160px); line-height: .9; overflow-wrap: anywhere; margin: 28px 0 24px -.035em; }
.opening-title .meta { max-width: 36ch; }
.ouverture .ouverture__fin { opacity: 1; animation: none; bottom: 28px; }
.ouverture .ouverture__fin .meta { color: #aaa8a2; }
.ouverture + .presentation { padding-top: 80px; }
@media (max-width: 767px) {
  .ouverture { min-height: 720px; }
  .ouverture .ouverture__image {
    left: 50%; top: 90px; transform: translateX(-50%) !important;
    width: min(calc(100vw - 40px), calc(51svh * var(--art-ratio)));
  }
  .opening-title { top: auto; bottom: 78px; transform: none; width: calc(100% - 40px); }
  .opening-title .titre { font-size: clamp(46px, 14vw, 96px); margin: 12px 0; }
  .opening-title .meta { font-size: 10px; margin: 0; max-width: none; }
  .ouverture .ouverture__fin { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

html.en-trajet [data-suivant]:focus-visible, html.en-trajet [data-suivant] :focus-visible { outline: none; }   /* seulement pendant le trajet */
/* l'aperçu « Next project » garde son cadrage : la première image du trajet est identique à l'aperçu */
.suite__lien:hover .suite__image img, .suite__lien:focus-visible .suite__image img { transform: none; }
