body {
  font-family: "Noto Serif", serif;
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
  padding: 60px;
  background: #f5efe3;
  color: black;
}

.navigation {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.navigation button {
  font-size: 20px;
  margin-right: 8px;
  padding: 6px 10px;
  border: 1px solid black;
  background: white;
  cursor: pointer;
}

.navigation button:hover {
  background: black;
  color: white;
}

article {
  display: none;
  max-width: 900px;
}

article.visible {
  display: block;
}

a {
  color: #2f5f9f;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ordinary {
  font-family: "Inter", sans-serif;
}

.almost {
  font-family: "Noto Serif", serif;
  font-style: italic;
}

/* Contourner */

#contourner {
  margin-left: 0;
  max-width: none;
  color: #111111;
}

#contourner.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background: white;
  z-index: -1;
}

#contourner.visible a {
  color: royalblue;
}

#contourner .ordinary-composition {
  width: 900px;
  margin: 10vh 0 0 0;
  transform-origin: left center;
}

#contourner.visible .ordinary-composition {
  animation: trebucher-caillou 5200ms ease-out forwards;
}

#contourner p {
  max-width: 850px;
  line-height: 1.45;
}

#contourner .ordinary-choices {
  margin-top: 35px;
}

#contourner .ordinary-choices a {
  display: block;
  max-width: 820px;
  line-height: 1.35;
  margin-top: 14px;
}

#contourner .ordinary-choices a:nth-of-type(2) {
  margin-top: 20px;
}

#contourner .stone-duck {
  display: inline-block;
  font-family: "DynaPuff", cursive;
  font-size: 0.95em;
  white-space: nowrap;
}

#contourner .stone-duck span {
  display: inline-block;
}

#contourner .stone-duck span:nth-child(1) {
  transform: rotate(-8deg) translateY(1px);
}

#contourner .stone-duck span:nth-child(2) {
  transform: rotate(5deg) translateY(-2px);
}

#contourner .stone-duck span:nth-child(3) {
  transform: rotate(-4deg) translateY(2px);
}

#contourner .stone-duck span:nth-child(4) {
  transform: rotate(7deg) translateY(-1px);
}

#contourner .stone-duck span:nth-child(5) {
  transform: rotate(-6deg) translateY(1px);
}

#contourner .stone-duck span:nth-child(6) {
  transform: rotate(4deg) translateY(-2px);
}

@keyframes trebucher-caillou {
  0%,
  62% {
    transform: translateY(0) rotate(0deg);
  }

  68% {
    transform: translateY(-12px) rotate(-0.6deg);
  }

  72% {
    transform: translateY(7px) rotate(0.45deg);
  }

  76% {
    transform: translateY(-4px) rotate(-0.25deg);
  }

  82%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
}
/* Fin ordinaire */

#fin1 {
  color: #111111;
}

#fin1.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background: white;
  z-index: -1;
}

#fin1.visible a {
  color: royalblue;
}

/* Toucher */

#toucher {
  margin-left: 0;
  max-width: none;
  color: #1f1b17;
}

#toucher.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #f5efe3;
  z-index: -1;
}

#toucher .touch-composition {
  width: 720px;
  margin: 0;
}

#toucher .touch-main {
  line-height: 1.5;
  margin: 0;
}

#toucher .touch-choices {
  margin-top: 55px;
}

#toucher .touch-choices a {
  display: block;
  max-width: 680px;
  line-height: 1.35;
  margin-top: 12px;
}

#toucher .touch-material {
  display: inline-block;
  font-family: inherit;
  font-style: normal;
}

#toucher .touch-bois {
  transform: translateY(-2px);
}

#toucher .touch-metal {
  transform: translateY(4px);
}

#toucher .touch-verre {
  transform: translateY(-5px);
}

/* Monde intérieur */

.inside {
  font-family: "Noto Serif", serif;
  color: #1f1b17;
}

.word-place {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.word-homme {
  font-family: "Bayon", sans-serif;
}

.word-pipe {
  font-family: "Meie Script", cursive;
}

.word-square {
  font-family: "Russo One", sans-serif;
}

.word-stairs {
  font-family: "Orbitron", sans-serif;
}

.word-campbell {
  font-family: "Sonsie One", cursive;
}

.word-medieval {
  font-family: "MedievalSharp", cursive;
}

.word-bosch {
  font-family: "UnifrakturCook", cursive;
}

.word-duck {
  font-family: "DynaPuff", cursive;
}

.word-poker {
  font-family: "Alegreya SC", serif;
}

.word-watch {
  font-family: "Aubrey", serif;
}

/* Passer */

#passer {
  margin-left: 22vw;
  max-width: 720px;
  color: #f3e6c8;
}

#passer.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #cc8732;
  z-index: -1;
  animation: brume-fond-passer 1400ms ease-out forwards;
}

#passer.visible p,
#passer.visible a {
  animation: brume-texte-passer 1800ms ease-out forwards;
}

#passer a {
  display: inline-block;
  margin-top: 35px;
  color: #5a2415;
}

#passer p:nth-of-type(4) {
  margin-top: 70px;
}

#passer .word-place {
  display: inline-block;
  font-size: 2.4em;
  margin-left: 20px;
  letter-spacing: 0.12em;
  transform-origin: center center;
}

@keyframes brume-fond-passer {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes brume-texte-passer {
  0% {
    opacity: 0;
    filter: blur(7px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* A — La place */

#A {
  margin-left: 22vw;
  max-width: 760px;
  color: #f3e6c8;
}

#A.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #cc8732;
  z-index: -1;
  
}

#A p:nth-of-type(1) {
  max-width: 820px;
}

#A p:nth-of-type(2) {
  margin-top: 65px;
  margin-left: -8vw;
  max-width: 620px;
}

#A p:nth-of-type(3) {
  margin-top: 45px;
  margin-left: -8vw;
  max-width: 560px;
}

#A a {
  display: inline-block;
  margin-top: 150px;
  margin-left: -15vw;
  font-size: 0.95em;
  color: #5a2415;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

#A .word-place {
  display: inline-block;
  font-size: 1.7em;
  letter-spacing: 0.12em;
  transform: translateY(-4px);
}

#A .word-homme {
  display: inline-block;
  font-size: 1.7em;
  transform: translateY(-14px) scaleX(0.75) scaleY(1.35);
  transform-origin: center center;
}

#A.visible p,
#A.visible a {
  animation: regard-place 80200ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes regard-place {
  0% {
    transform: translateX(180px);
  }

  75% {
    transform: translateX(18px);
  }

  100% {
    transform: translateX(0);
  }
}

/* B — La pipe */

#B {
  margin-left: 10vw;
  margin-top: 11vh;
  max-width: 900px;
  color: #3b2417;
}

#B.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #f3f1df;
  z-index: -1;
}

#B.visible a {
  color: #6b351f;
}

#B p:nth-of-type(1) {
  max-width: 760px;
}

#B p:nth-of-type(2) {
  margin-top: 45px;
}

#B p:nth-of-type(3) {
  margin-top: 20px;
  margin-left: 2vw;
}

#B .choice-columns {
  display: flex;
  gap: 80px;
  margin-top: 65px;
  max-width: 900px;
}

#B .choice-columns a {
  width: 50%;
}

#B .word-pipe {
  display: inline-block;
  font-size: 2.2em;
}

#B .pipe-description span {
  display: block;
}

#B .pipe-description span:nth-child(1) {
  margin-left: 0;
}

#B .pipe-description span:nth-child(2) {
  margin-left: 35px;
}

#B .pipe-description span:nth-child(3) {
  margin-left: 80px;
}

/* C — Le carré noir */

#C {
  margin-left: 0;
  max-width: none;
  color: #111111;
}

#C.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #f0efe8;
  z-index: -1;
}

#C .square-composition {
  width: 520px;
  margin: 6vh auto 0 auto;
}

#C .square-core {
  width: 520px;
  transform-origin: center 48%;
  will-change: transform;
}

#C.visible .square-core {
  animation: aspiration-carre-lente 14000ms cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

#C .square-before {
  width: 520px;
  margin: 0;
  font-size: 1.34em;
  line-height: 1.02;
  font-weight: 700;
}

#C .square-word {
  display: block;
  width: 520px;
  height: 78px;
  margin: 4px 0 0 0;
  overflow: visible;
}

#C .word-square-svg {
  font-family: "Russo One", sans-serif;
  font-size: 82px;
  fill: black;
}

#C .square-after {
  width: 520px;
  margin-top: 92px;
  font-size: 0.95em;
  line-height: 1.5;
}

#C .square-return {
  width: 520px;
  margin-top: 35px;
  margin-bottom: 8px;
  font-size: 0.9em;
}

#C a {
  display: inline-block;
  margin-top: 4px;
}

@keyframes aspiration-carre-lente {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.045);
  }
}

/* D — L’escalier */

#D {
  margin-left: 0;
  max-width: none;
  color: #202020;
}

#D.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #d8d6cf;
  z-index: -1;
}

#D .stairs-composition {
  position: relative;
  width: 950px;
  height: 660px;
  margin: 4vh auto 0 auto;
  transform-origin: center center;
  will-change: transform, filter, opacity;
}

#D.visible .stairs-composition {
  animation: vertige-zoom-escalier 5200ms cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

#D .stairs-block {
  position: absolute;
  max-width: 430px;
  line-height: 1.35;
}

#D .stairs-block-1 {
  top: 35px;
  left: 130px;
  transform: rotate(-4deg);
}

#D .stairs-block-2 {
  top: 135px;
  left: 420px;
  transform: rotate(5deg);
  max-width: 360px;
}

#D .stairs-block-3 {
  top: 260px;
  left: 70px;
  transform: rotate(6deg);
  max-width: 420px;
}

#D .stairs-block-4 {
  top: 335px;
  left: 470px;
  transform: rotate(-5deg);
  max-width: 380px;
}

#D .stairs-block-5 {
  top: 460px;
  left: 300px;
  transform: rotate(2deg);
  max-width: 430px;
}

#D .stairs-choices a {
  position: absolute;
  display: block;
  max-width: 340px;
  line-height: 1.35;
}

#D .stairs-choices a:nth-of-type(1) {
  left: 100px;
  bottom: -55px;
  transform: rotate(-6deg);
}

#D .stairs-choices a:nth-of-type(2) {
  right: 30px;
  bottom: 10px;
  transform: rotate(5deg);
  max-width: 300px;
}

#D .word-stairs {
  display: inline-block;
  font-size: 1.3em;
  transform: translateY(-2px);
}

#D .word-homme {
  display: inline-block;
  font-size: 1.55em;
  transform: rotate(5deg) translateY(-10px) scaleX(0.78) scaleY(1.3);
  transform-origin: center center;
}

@keyframes vertige-zoom-escalier {
  0% {
    transform: scale(0.985) rotate(-1.2deg);
    filter: blur(1px);
    opacity: 0.82;
  }

  38% {
    transform: scale(1.028) rotate(1.1deg);
    filter: blur(0.45px);
    opacity: 1;
  }

  72% {
    transform: scale(1.012) rotate(-0.25deg);
    filter: blur(0.15px);
  }

  100% {
    transform: scale(1) rotate(0deg);
    filter: blur(0);
    opacity: 1;
  }
}

/* E — La soupe Campbell */

#E {
  margin-left: 8vw;
  margin-top: 12vh;
  max-width: 1000px;
  color: #231b18;
}

#E.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      #b62d22 0%,
      #b62d22 24%,
      #f1e8dc 24%,
      #f1e8dc 100%
    );
  z-index: -1;
}

#E.visible a {
  color: #2f5f9f;
}

#E p:nth-of-type(1) {
  color: #fff4e6;
  font-size: 0.95em;
  margin-top: -6vh;
  margin-bottom: 95px;
}

#E p:nth-of-type(2) {
  max-width: 920px;
  font-size: 1.15em;
  line-height: 1.45;
}

#E a {
  display: inline-block;
  vertical-align: top;
  max-width: 360px;
  margin-top: 90px;
  line-height: 1.35;
}

#E a:nth-of-type(1) {
  margin-left: 0;
}

#E a:nth-of-type(2) {
  margin-left: 90px;
}

#E .word-campbell {
  display: inline-block;
  font-size: 1.8em;
  margin: 0 10px;
  transform: translateY(6px);
}

/* F — Goûter la soupe */

#F {
  margin-left: 0;
  max-width: none;
  color: #231b18;
}

#F.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      #f1e8dc 0%,
      #f1e8dc 68%,
      #b62d22 68%,
      #b62d22 100%
    );
  z-index: -1;
}

#F .soup-taste {
  max-width: 820px;
  color: #231b18;
}

#F .hidden-door {
  position: fixed;
  right: 9vw;
  bottom: 12vh;
  max-width: 360px;
  color: #fff4e6;
}

#F .hidden-door p {
  margin-bottom: 25px;
}

#F .hidden-door a {
  display: inline-block;
  color: #fff4e6;
}

/* F2 — Bosch */

#F2 {
  margin-left: 0;
  max-width: none;
  color: #f3e4bd;
}

#F2.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #21170f;
  z-index: -1;
}

#F2.visible a {
  color: #d9e6d8;
  text-shadow: 0 0 7px rgba(217, 230, 216, 0.2);
}

#F2 .bosch-composition {
  position: relative;
  width: 1080px;
  min-height: 600px;
  margin: 2vh auto 0 auto;
}

#F2 p {
  max-width: 760px;
  line-height: 1.28;
}

#F2 .bosch-creatures {
  margin-top: 28px;
  margin-left: 7vw;
  max-width: 760px;
  color: #f0d39a;
  text-shadow: 0 0 9px rgba(240, 211, 154, 0.22);
}

#F2 .bosch-plain {
  margin-top: 34px;
  margin-left: 2vw;
  max-width: 840px;
  color: #ead7a3;
  text-shadow: 0 0 8px rgba(234, 215, 163, 0.2);
}

#F2 .bosch-man {
  margin-top: 42px;
  margin-left: 16vw;
  max-width: 420px;
  transform: none;
  color: #f7ead0;
  text-shadow: 0 0 10px rgba(247, 234, 208, 0.26);
}

#F2 .bosch-list {
  margin-top: 14px;
  margin-left: 16vw;
  line-height: 1.15;
  max-width: 220px;
  transform: none;
  color: #f7ead0;
  text-shadow: 0 0 10px rgba(247, 234, 208, 0.26);
}

#F2 .bosch-exit {
  margin-top: 28px;
  margin-left: 6vw;
  color: #f3e4bd;
}

#F2 .bosch-choices {
  position: relative;
  height: 150px;
  margin-top: 22px;
}

#F2 .bosch-choices a {
  position: absolute;
  display: block;
  max-width: 390px;
  line-height: 1.28;
}

#F2 .bosch-choices a:nth-of-type(1) {
  left: 24vw;
  top: -28px;
  transform: rotate(-5deg);
}

#F2 .bosch-choices a:nth-of-type(2) {
  right: -4vw;
  top: 50px;
  transform: rotate(3deg);
}

#F2 .word-medieval {
  display: inline-block;
  font-size: 1.35em;
  color: #d76b45;
  text-shadow: 0 0 8px rgba(215, 107, 69, 0.35);
  transform: rotate(-4deg) translateY(-3px);
}

#F2 .word-bosch {
  display: inline-block;
  font-size: 1.35em;
  color: #9fc67b;
  text-shadow: 0 0 8px rgba(159, 198, 123, 0.28);
  transform: rotate(3deg) translateY(-4px);
}

#F2 .word-homme {
  display: inline-block;
  font-size: 1.5em;
  color: #ffffff;
  text-shadow: 0 0 9px rgba(255, 255, 255, 0.28);
  transform: translateY(-8px) scaleX(0.78) scaleY(1.25);
  transform-origin: center center;
}

#F2 .creature {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

#F2 .chevalier {
  color: #d89b52;
  text-shadow: 0 0 7px rgba(216, 155, 82, 0.3);
  transform: rotate(-5deg) translateY(-4px);
}

#F2 .escargot {
  color: #78b8ad;
  text-shadow: 0 0 8px rgba(120, 184, 173, 0.32);
  transform: rotate(4deg) translateY(6px);
  font-size: 1.08em;
}

#F2 .lapin {
  color: #d85c43;
  text-shadow: 0 0 8px rgba(216, 92, 67, 0.34);
  transform: rotate(-8deg) translateY(-6px);
}

#F2 .singe {
  color: #c4864c;
  text-shadow: 0 0 7px rgba(196, 134, 76, 0.28);
  transform: rotate(7deg) translateY(5px);
}

#F2 .poissons {
  color: #7bb9c9;
  text-shadow: 0 0 8px rgba(123, 185, 201, 0.35);
  transform: rotate(-4deg) translateY(7px);
  font-size: 1.12em;
}

#F2 .oiseau {
  color: #9eb6d8;
  text-shadow: 0 0 8px rgba(158, 182, 216, 0.32);
  transform: rotate(5deg) translateY(-8px);
}

#F2 .instruments {
  color: #d07044;
  text-shadow: 0 0 8px rgba(208, 112, 68, 0.34);
  transform: rotate(-3deg) translateY(5px);
  font-size: 1.08em;
}

#F2.visible .bosch-composition p {
  opacity: 0;
  animation: chute-bosch 10600ms cubic-bezier(0.18, 0.72, 0.22, 1) forwards;
}

#F2.visible .bosch-composition p:nth-of-type(1) {
  --fall-x: -18px;
  --fall-y: -180px;
  --fall-rotate: -7deg;
  animation-delay: 0ms;
}

#F2.visible .bosch-creatures {
  --fall-x: 46px;
  --fall-y: -260px;
  --fall-rotate: 8deg;
  animation-delay: 180ms;
}

#F2.visible .bosch-plain {
  --fall-x: -52px;
  --fall-y: -230px;
  --fall-rotate: -6deg;
  animation-delay: 90ms;
}

#F2.visible .bosch-man {
  --fall-x: 28px;
  --fall-y: -210px;
  --fall-rotate: 5deg;
  animation-delay: 420ms;
}

#F2.visible .bosch-list {
  --fall-x: -24px;
  --fall-y: -160px;
  --fall-rotate: -4deg;
  animation-delay: 540ms;
}

#F2.visible .bosch-exit {
  --fall-x: 34px;
  --fall-y: -190px;
  --fall-rotate: 4deg;
  animation-delay: 680ms;
}

#F2.visible .bosch-choices a {
  opacity: 0;
}

#F2.visible .bosch-choices a:nth-of-type(1) {
  animation: chute-bosch-fish 3800ms cubic-bezier(0.18, 0.72, 0.22, 1) forwards;
  animation-delay: 760ms;
}

#F2.visible .bosch-choices a:nth-of-type(2) {
  animation: chute-bosch-stairs 4000ms cubic-bezier(0.18, 0.72, 0.22, 1) forwards;
  animation-delay: 620ms;
}

@keyframes chute-bosch {
  0% {
    opacity: 0;
    filter: blur(3px);
    transform: translate(var(--fall-x), var(--fall-y)) rotate(var(--fall-rotate));
  }

  28% {
    opacity: 1;
    filter: blur(1.5px);
    transform: translate(
      calc(var(--fall-x) * -0.45),
      36px
    ) rotate(calc(var(--fall-rotate) * -0.7));
  }

  54% {
    filter: blur(0.8px);
    transform: translate(
      calc(var(--fall-x) * 0.22),
      -16px
    ) rotate(calc(var(--fall-rotate) * 0.35));
  }

  78% {
    filter: blur(0.25px);
    transform: translate(
      calc(var(--fall-x) * -0.08),
      6px
    ) rotate(calc(var(--fall-rotate) * -0.12));
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes chute-bosch-fish {
  0% {
    opacity: 0;
    filter: blur(3px);
    transform: translate(-70px, -260px) rotate(18deg);
  }

  30% {
    opacity: 1;
    filter: blur(1.4px);
    transform: translate(34px, 42px) rotate(-14deg);
  }

  56% {
    filter: blur(0.7px);
    transform: translate(-16px, -18px) rotate(-1deg);
  }

  78% {
    filter: blur(0.25px);
    transform: translate(8px, 7px) rotate(-7deg);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: rotate(-5deg);
  }
}

@keyframes chute-bosch-stairs {
  0% {
    opacity: 0;
    filter: blur(3px);
    transform: translate(80px, -300px) rotate(-16deg);
  }

  30% {
    opacity: 1;
    filter: blur(1.4px);
    transform: translate(-38px, 46px) rotate(14deg);
  }

  56% {
    filter: blur(0.7px);
    transform: translate(18px, -16px) rotate(1deg);
  }

  78% {
    filter: blur(0.25px);
    transform: translate(-7px, 8px) rotate(5deg);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: rotate(3deg);
  }
}


/* G — Le canard jaune */

#G {
  margin-left: 0;
  max-width: none;
  color: #102838;
}

#G.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #8fb8c4;
  z-index: -1;
  animation: apparition-fond-canard 2s ease-out forwards;
}

#G.visible a {
  color: #174f73;
}

#G .duck-composition {
  position: relative;
  width: 1100px;
  height: 650px;
  margin: 4vh auto 0 auto;
}

#G.visible .duck-composition {
  animation:
    apparition-canard 2s ease-out forwards,
    balancement-canard 2s ease-out forwards;
}

#G .duck-horizon {
  position: absolute;
  top: 95px;
  left: 120px;
  width: 760px;
  font-size: 0.95em;
  letter-spacing: 0.02em;
}

#G .duck-water {
  position: absolute;
  top: 225px;
  left: 150px;
  width: 520px;
  font-size: 0.9em;
  transform: rotate(-2deg);
}

#G .duck-word {
  position: absolute;
  top: 250px;
  left: 190px;
  margin: 0;
}

#G .word-duck {
  display: inline-block;
  font-family: "DynaPuff", cursive;
  font-size: 4.2em;
  line-height: 0.9;
  color: #e5ae1a;
  text-shadow: 0 2px 0 rgba(74, 50, 0, 0.2);
  transform: rotate(-1deg);
  transform-origin: center center;
}

#G .duck-quay {
  position: absolute;
  top: 430px;
  left: 120px;
  width: 760px;
  font-size: 0.95em;
  transform: rotate(1deg);
}

#G .duck-door {
  position: absolute;
  top: 535px;
  right: 160px;
  font-size: 0.95em;
}

#G .duck-door a {
  position: static;
}

@keyframes apparition-fond-canard {
  0% {
    opacity: 0;
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes apparition-canard {
  0% {
    opacity: 0;
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes balancement-canard {
  0% {
    rotate: 0deg;
  }

  30% {
    rotate: 4deg;
  }

  60% {
    rotate: -4deg;
  }

  100% {
    rotate: 0deg;
  }
}

/* H — Les chiens jouent au poker */

#H {
  margin-left: 0;
  max-width: none;
  color: #f4efe2;
}

#H.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #173824;
  z-index: -1;
}

#H.visible a {
  color: #f4efe2;
  text-decoration-color: rgba(244, 239, 226, 0.75);
}

#H .poker-composition {
  position: relative;
  width: 900px;
  height: 620px;
  margin: 8vh auto 0 auto;
}

#H .poker-card {
  position: absolute;
  box-sizing: border-box;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

#H .poker-card-main {
  width: 520px;
  top: 90px;
  left: 210px;
  transform: rotate(-2deg);
  z-index: 3;
}

#H .poker-card-left {
  width: 340px;
  top: 305px;
  left: 105px;
  transform: rotate(-11deg);
  z-index: 2;
  line-height: 1.35;
}

#H .poker-card-right {
  width: 370px;
  top: 300px;
  left: 510px;
  transform: rotate(7deg);
  z-index: 1;
  line-height: 1.35;
}

#H .word-poker {
  display: block;
  margin-top: 18px;
  font-size: 1.75em;
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: #f8f1df;
  text-transform: uppercase;
}

#H .card-red {
  color: #b72a21;
  text-shadow: 0 0 6px rgba(183, 42, 33, 0.25);
}

#H.visible .poker-card-main {
  animation: jeter-carte-main 620ms cubic-bezier(0.12, 0.82, 0.22, 1) forwards;
}

#H.visible .poker-card-left {
  animation: jeter-carte-gauche 520ms cubic-bezier(0.12, 0.82, 0.22, 1) forwards;
  animation-delay: 220ms;
}

#H.visible .poker-card-right {
  animation: jeter-carte-droite 560ms cubic-bezier(0.12, 0.82, 0.22, 1) forwards;
  animation-delay: 260ms;
}

@keyframes jeter-carte-main {
  0% {
    opacity: 0;
    transform: translate(-160px, -120px) rotate(-18deg) scale(1.08);
  }

  72% {
    opacity: 1;
    transform: translate(8px, 5px) rotate(1deg) scale(1);
  }

  100% {
    opacity: 1;
    transform: rotate(-2deg) scale(1);
  }
}

@keyframes jeter-carte-gauche {
  0% {
    opacity: 0;
    transform: translate(-220px, 90px) rotate(-28deg) scale(1.08);
  }

  68% {
    opacity: 1;
    transform: translate(12px, -6px) rotate(-7deg) scale(1);
  }

  100% {
    opacity: 1;
    transform: rotate(-11deg) scale(1);
  }
}

@keyframes jeter-carte-droite {
  0% {
    opacity: 0;
    transform: translate(240px, 80px) rotate(24deg) scale(1.08);
  }

  68% {
    opacity: 1;
    transform: translate(-10px, -5px) rotate(4deg) scale(1);
  }

  100% {
    opacity: 1;
    transform: rotate(7deg) scale(1);
  }
}

/* Fin 2 — Retour ordinaire */

#fin2 {
  color: #111111;
}

#fin2.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #f5efe3;
  z-index: -1;
  animation: brume-fond-fin2 1400ms ease-out forwards;
}

#fin2.visible p {
  animation: brume-texte-fin2 1700ms ease-out forwards;
}

@keyframes brume-fond-fin2 {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes brume-texte-fin2 {
  0% {
    opacity: 0;
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* FIN — Fin */

#FIN {
  margin-left: 0;
  max-width: none;
  color: #241d17;
}

#FIN.visible::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #f2ead6;
  z-index: -1;
  animation: brume-fond-fin 1600ms ease-out forwards;
}

#FIN.visible .final-composition p {
  animation: brume-texte-fin 1900ms ease-out forwards;
}

#FIN .final-composition {
  position: relative;
  width: 760px;
  min-height: 620px;
  margin: 8vh auto 0 auto;
}

#FIN p {
  line-height: 1.55;
}

#FIN .final-first {
  max-width: 620px;
  margin-left: 0;
  font-style: italic;
  letter-spacing: 0.01em;
}

#FIN .final-second {
  max-width: 680px;
  margin-top: 70px;
  margin-left: 70px;
}

#FIN .final-third {
  max-width: 650px;
  margin-top: 80px;
  margin-left: 20px;
}

#FIN .word-watch {
  display: inline-block;
  font-family: "Aubrey", serif;
  font-size: 1.7em;
  line-height: 0.85;
  font-weight: normal;
  letter-spacing: 0.03em;
  transform: translateY(8px) rotate(-2deg) scaleY(1.18);
}

#FIN .final-watch {
  font-size: 1.9em;
  transform: translateY(9px) rotate(-4deg) scaleX(1.05) scaleY(1.12);
}

@keyframes brume-fond-fin {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes brume-texte-fin {
  0% {
    opacity: 0;
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}