/* =========================================================================
   Nataniel GZAIEL — Portfolio : le sommaire, quatre mondes, puis les collections
   Se charge après site.css et pages.css.
   Le fond animé des mondes est celui de l'accueil : ambiance.js le dessine
   dans la scène (.hero.stage), portfolio.js lui dit quel monde est à l'écran
   et fait défiler les bandes de tirages.
========================================================================= */

/* =========================================================================
   En-tête : le titre à gauche, le sommaire des collections à droite
========================================================================= */

.folio-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
}

.index-label {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.index ul {
  list-style: none;
}

.index a {
  --tint: var(--accent);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  outline-offset: 6px;
}

.index li:last-child a {
  border-bottom: 1px solid var(--line);
}

/* Un petit tirage devant chaque nom */
.index-thumb {
  width: 50px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  rotate: -5deg;
  box-shadow: 0 14px 22px -12px rgba(0, 0, 0, 0.9);
  transition: rotate 0.4s var(--ease), scale 0.4s var(--ease);
}

.index li:nth-child(even) .index-thumb {
  rotate: 4deg;
}

.index-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.index-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 50;
  font-size: clamp(2.2rem, 3.4vw, 3.3rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.3s var(--ease);
}

.index-go {
  width: 30px;
  height: 14px;
  background: var(--tint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h27M22 1.5 28 7l-6 5.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h27M22 1.5 28 7l-6 5.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: translate 0.3s var(--ease);
}

.index a:hover .index-name,
.index a:focus-visible .index-name {
  color: var(--tint);
}

.index a:hover .index-thumb,
.index a:focus-visible .index-thumb {
  rotate: 0deg;
  scale: 1.14;
}

.index a:hover .index-go {
  translate: 8px 0;
}

/* =========================================================================
   Les quatre mondes
========================================================================= */

.worlds {
  position: relative;
  isolation: isolate;
}

/* La scène reste collée à l'écran pendant que les quatre mondes défilent dessus. */
.stage {
  position: sticky;
  top: 0;
  z-index: -2;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
}

.stage .ambiance {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Le premier monde remonte par-dessus la scène, qui ne dépasse ainsi jamais de la section. */
.stage + .world {
  margin-top: -100svh;
}

/* La scène se fond dans la page en haut et en bas. */
.worlds::before,
.worlds::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  height: 26svh;
  pointer-events: none;
}

.worlds::before {
  top: 0;
  background: linear-gradient(var(--ink), transparent);
}

.worlds::after {
  bottom: 0;
  background: linear-gradient(transparent, var(--ink));
}

/* Un monde : son titre et son cartel, puis sa bande de tirages sur toute la largeur */
.world {
  --w: var(--accent);
  padding-top: clamp(40px, 5.5vw, 76px);
}

.world-pop {
  --w: #ff5fd2;
}

.world-goth {
  /* Bordeaux, choisi par Nataniel le 12 octobre 2026. C'est aussi la couleur d'accent
     de la page quand ce monde est à l'écran (data-accent) : le texte posé sur l'accent
     passe alors en clair (--on-accent, réglé par site.js). */
  --w: #8f1d2c;
}

.world-goth .strip-btn {
  color: var(--paper);
}

.world-fantasy {
  --w: #e6bd5c;
}

.world-japan {
  --w: #e0352b; /* rouge laque */
}

.world-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px clamp(24px, 3.4vw, 52px);
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.world-title {
  font-size: clamp(3rem, 7.4vw, 7.4rem);
  color: var(--w);
  text-shadow: 0 4px 34px rgba(11, 12, 15, 0.75);
}

.world .cartel {
  margin-bottom: 0.5em;
  border-left-color: var(--w);
}

.world:nth-of-type(even) .cartel {
  rotate: 1.2deg;
}

/* ---------- La bande de tirages ---------- */

.strip {
  /* Sur un écran étroit, les tirages rapetissent : le suivant dépasse toujours du bord. */
  --shot-h: min(clamp(300px, 52svh, 540px), 96vw);
  /* Le premier tirage s'aligne sur le titre, les suivants sortent de l'écran. */
  --edge: max(var(--gutter), calc((100% - var(--wide)) / 2));
  position: relative;
  display: flex;
  align-items: center;
  counter-reset: vue;
  gap: clamp(18px, 2.6vw, 44px);
  padding: 40px var(--edge) 56px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--edge);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--w) transparent;
}

/* Avec le script : plus de barre, on tire la bande ou on passe par les flèches. */
.strip.is-live {
  scrollbar-width: none;
  user-select: none;
}

.strip.is-live::-webkit-scrollbar {
  display: none;
}

.strip.is-moving {
  scroll-snap-type: none;
}

/* Chaque tirage pend par le haut : il se balance quand la bande défile. */
.strip li {
  --k: 0.8;
  flex: none;
  counter-increment: vue;
  rotate: calc(var(--swing, 0deg) * var(--k));
  transform-origin: 50% 0;
  scroll-snap-align: start;
}

.strip li:nth-child(3n + 2) {
  --k: 1.15;
}

.strip li:nth-child(3n) {
  --k: 1;
}

.strip a {
  --tilt: -1.4deg;
  position: relative;
  display: block;
  isolation: isolate;
  rotate: var(--tilt);
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, 0.9);
  cursor: zoom-in;
  outline-offset: 6px;
  transition: rotate 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.strip li:nth-child(3n + 2) a {
  --tilt: 1.1deg;
}

.strip li:nth-child(3n) a {
  --tilt: -0.5deg;
}

.strip a:hover,
.strip a:focus-visible {
  z-index: 2;
  rotate: 0deg;
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.95), 0 0 0 3px var(--w);
}

/* Le cadre de couleur sert aussi de repère au clavier. */
.strip a:focus-visible {
  outline: none;
}

/* Derrière le coin de chaque tirage, son numéro dans la bande, en contour de la
   couleur du monde. Rien ne passe devant la photo. */
.strip a::before {
  content: counter(vue, decimal-leading-zero);
  content: counter(vue, decimal-leading-zero) / "";
  position: absolute;
  top: -0.5em;
  right: -0.2em;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 50;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--w);
  pointer-events: none;
  top: -0.46em;
  font-size: clamp(48px, 5vw, 72px);
}

.strip img {
  width: auto;
  max-width: none;
  height: var(--shot-h);
  background: var(--ink-raised);
}

/* Photo horizontale (repérée par portfolio.js) : elle tient dans un écran étroit. */
.strip .is-wide img {
  height: min(var(--shot-h), 56vw);
}

/* ---------- Les commandes de la bande (créées par portfolio.js) ----------
   Sous le premier tirage, dans l'alignement du titre. */

.strip-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: -20px auto 0;
  padding: 0 var(--gutter);
}

.strip-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: var(--w);
  border: 2px solid var(--w);
  cursor: pointer;
  rotate: -3deg;
  transition: rotate 0.25s var(--ease), scale 0.15s var(--ease),
    background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.strip-btn:hover {
  rotate: 3deg;
  background: var(--paper);
  border-color: var(--paper);
}

.strip-btn:active {
  scale: 0.94;
}

.strip-next {
  rotate: 3deg;
}

.strip-next:hover {
  rotate: -3deg;
}

.strip-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strip-count {
  min-width: 4.2em;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  font-size: 14px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums lining-nums;
  text-align: center;
  text-shadow: 0 2px 14px rgba(11, 12, 15, 0.9);
}

/* ---------- Monde pop : parasites d'écran (validés tels quels) ---------- */

.glitch:hover img,
.glitch.is-glitching img {
  animation: glitch 0.6s steps(1) both;
}

@keyframes glitch {
  0% {
    filter: url(#rgbSplitA);
    translate: 7px 0;
  }
  12% {
    filter: url(#rgbSplitB);
    translate: -9px 2px;
    scale: 1.01 1;
  }
  24% {
    filter: url(#rgbSplitA);
    translate: 3px -1px;
  }
  38% {
    filter: none;
    translate: 0 0;
  }
  54% {
    filter: url(#rgbSplitB);
    translate: -5px 0;
  }
  68% {
    filter: url(#rgbSplitA);
    translate: 4px 1px;
  }
  82%,
  100% {
    filter: none;
    translate: 0 0;
    scale: 1;
  }
}

.world-pop .world-title:hover,
.world-pop .world-title.is-glitching {
  animation: glitch-text 0.6s steps(1) both;
}

@keyframes glitch-text {
  0% {
    text-shadow: -6px 0 #19f0ff, 6px 0 #ffe53b;
    translate: 4px 0;
  }
  14% {
    text-shadow: 5px 2px #19f0ff, -5px -2px #ffe53b;
    translate: -6px 0;
  }
  28% {
    text-shadow: -3px 0 #19f0ff, 3px 0 #ffe53b;
    translate: 2px 0;
  }
  40% {
    text-shadow: none;
    translate: 0 0;
  }
  56% {
    text-shadow: 7px 0 #19f0ff, -7px 0 #ffe53b;
    translate: -3px 0;
  }
  70%,
  100% {
    text-shadow: none;
    translate: 0 0;
  }
}

/* ---------- Monde noir et blanc : gothique brodée, façon écusson de veste ----------
   Les trois polices ci-dessous ont été choisies par Nataniel le 12 octobre 2026. */

.world-goth .world-title {
  font-family: var(--font-goth);
  font-weight: 400;
  font-variation-settings: normal;
  font-size: clamp(3rem, 7.4vw, 7.6rem);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
}

/* Lettres qui flottent, comme un objet posé au sol dans Minecraft : chacune monte,
   redescend vers la terre, puis remonte, à son propre rythme.
   Deux dosages règlent le mouvement : --seules (chaque lettre à son rythme) et
   --ensemble (le mot entier d'un bloc). Au survol, l'un descend à zéro pendant que
   l'autre monte : les lettres se rapprochent en douceur au lieu de sauter. */
@property --seules {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

@property --ensemble {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.world-goth .world-title {
  --seules: 1;
  --ensemble: 0;
  transition: --seules 0.9s ease-in-out, --ensemble 0.9s ease-in-out;
}

.world-goth .world-title:hover {
  --seules: 0;
  --ensemble: 1;
}

.world-goth .world-title .mot {
  display: inline-block;
  white-space: nowrap;
  animation: flotte-ensemble 2.8s ease-in-out infinite;
}

.world-goth .world-title .lettre {
  display: inline-block;
  animation: flotte 2.8s ease-in-out infinite;
  /* Un décalage différent pour chaque lettre, sans régularité visible. */
  animation-delay: calc(mod(var(--i) * 0.83s, 2.8s) * -1);
}

@keyframes flotte {
  0%,
  100% {
    translate: 0 calc(var(--seules) * 0.07em);
  }
  50% {
    translate: 0 calc(var(--seules) * -0.1em);
  }
}

@keyframes flotte-ensemble {
  0%,
  100% {
    translate: 0 calc(var(--ensemble) * 0.07em);
  }
  50% {
    translate: 0 calc(var(--ensemble) * -0.1em);
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-goth .world-title .mot,
  .world-goth .world-title .lettre {
    animation: none;
  }
}

/* ---------- Monde fantaisie sombre ---------- */

/* Petites capitales espacées, façon affiche de film. */
.world-fantasy .world-title {
  font-family: var(--font-fantasy);
  font-weight: 500;
  font-variation-settings: normal;
  font-size: clamp(2rem, 4.6vw, 5rem);
  text-transform: lowercase;
  letter-spacing: 0.16em;
  line-height: 1.06;
}

/* Lettres d'or frappées par le soleil, comme un titre de film de fantasy.
   Trois couches dans les lettres : le métal poli (clair en haut, ligne d'ombre au
   milieu, reflet en bas) dont la lumière monte et descend, une nappe de soleil qui
   traverse lentement, puis un éclat vif. Le halo grossit quand la lumière passe, et
   deux étoiles s'allument sur le métal. */
.world-fantasy .world-title {
  position: relative;
  color: transparent;
  background:
    linear-gradient(105deg, transparent 30%, rgba(255, 253, 240, 0.96) 50%, transparent 70%) -60% 0 / 30% 100% no-repeat,
    radial-gradient(closest-side, rgba(255, 238, 176, 0.8), transparent) -200% 0 / 60% 100% no-repeat,
    linear-gradient(180deg, #fff4c8 0%, #f2d079 24%, #c9972f 47%, #7c4d12 55%, #d8ab4b 72%, #fbe7a4 100%) 0 20% / 100% 240%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 1px rgba(48, 26, 2, 0.9)) drop-shadow(0 0 20px rgba(230, 189, 92, 0.38)) brightness(1);
  animation: or-soleil 9s ease-in-out infinite;
}

@keyframes or-soleil {
  0% {
    background-position: -60% 0, -200% 0, 0 20%;
    filter: drop-shadow(0 2px 1px rgba(48, 26, 2, 0.9)) drop-shadow(0 0 20px rgba(230, 189, 92, 0.38)) brightness(1);
  }
  22% {
    filter: drop-shadow(0 2px 1px rgba(48, 26, 2, 0.9)) drop-shadow(0 0 34px rgba(255, 214, 120, 0.62)) brightness(1.16);
  }
  45% {
    background-position: -60% 0, 350% 0, 0 80%;
    filter: drop-shadow(0 2px 1px rgba(48, 26, 2, 0.9)) drop-shadow(0 0 20px rgba(230, 189, 92, 0.38)) brightness(1);
  }
  52% {
    background-position: -60% 0, 350% 0, 0 80%;
  }
  62% {
    filter: drop-shadow(0 2px 1px rgba(48, 26, 2, 0.9)) drop-shadow(0 0 30px rgba(255, 232, 164, 0.72)) brightness(1.3);
  }
  72% {
    background-position: 160% 0, 350% 0, 0 55%;
    filter: drop-shadow(0 2px 1px rgba(48, 26, 2, 0.9)) drop-shadow(0 0 20px rgba(230, 189, 92, 0.38)) brightness(1);
  }
  100% {
    background-position: 160% 0, 350% 0, 0 20%;
    filter: drop-shadow(0 2px 1px rgba(48, 26, 2, 0.9)) drop-shadow(0 0 20px rgba(230, 189, 92, 0.38)) brightness(1);
  }
}

/* Les étoiles : un point blanc et deux traits en croix, qui naissent et s'éteignent. */
.world-fantasy .world-title::before,
.world-fantasy .world-title::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 9%;
  width: 0.62em;
  height: 0.62em;
  pointer-events: none;
  background:
    radial-gradient(circle, #fff 0 7%, rgba(255, 240, 190, 0.9) 12%, transparent 38%),
    linear-gradient(90deg, transparent, #fff8dc 50%, transparent) center / 100% 5% no-repeat,
    linear-gradient(0deg, transparent, #fff8dc 50%, transparent) center / 5% 100% no-repeat;
  scale: 0;
  opacity: 0;
  animation: or-etoile 9s ease-in-out infinite;
}

.world-fantasy .world-title::before {
  top: 38%;
  left: 68%;
  width: 0.44em;
  height: 0.44em;
  animation-delay: -5.4s;
}

@keyframes or-etoile {
  0%,
  14%,
  100% {
    scale: 0;
    opacity: 0;
    rotate: 0deg;
  }
  7% {
    scale: 1;
    opacity: 1;
    rotate: 45deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-fantasy .world-title,
  .world-fantasy .world-title::before,
  .world-fantasy .world-title::after {
    animation: none;
  }
}

/* Au survol, l'or s'embrase : un trait de lumière s'ouvre à l'horizontale au milieu
   des lettres et une grande étoile s'allume en son centre, une seule fois ; l'éclat
   repasse sans arrêt et le halo double tant que la souris reste. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .world-fantasy .world-title:hover {
    animation: or-embrase 1.9s ease-in-out infinite;
  }

  .world-fantasy .world-title:hover::after {
    top: 54%;
    left: 50%;
    width: 104%;
    height: 0.06em;
    translate: -50% -50%;
    rotate: 0deg;
    background: linear-gradient(90deg, transparent, rgba(255, 226, 150, 0.7) 22%, #fffbe9 50%, rgba(255, 226, 150, 0.7) 78%, transparent);
    filter: blur(0.5px) drop-shadow(0 0 0.12em #ffd978);
    /* Une seule fois : le trait s'ouvre, brille, puis s'éteint pour de bon. */
    animation: or-trait 1.3s ease-out both;
  }

  .world-fantasy .world-title:hover::before {
    top: 54%;
    left: 50%;
    width: 1em;
    height: 1em;
    translate: -50% -50%;
    /* Une seule apparition : l'étoile naît, brille, puis s'éteint pour de bon. */
    animation: or-astre 1.3s ease-out both;
  }
}

@keyframes or-embrase {
  0% {
    background-position: -60% 0, 50% 0, 0 55%;
    filter: drop-shadow(0 2px 1px rgba(48, 26, 2, 0.9)) drop-shadow(0 0 26px rgba(255, 220, 140, 0.6)) brightness(1.14);
  }
  50% {
    background-position: 50% 0, 50% 0, 0 30%;
    filter: drop-shadow(0 2px 1px rgba(48, 26, 2, 0.9)) drop-shadow(0 0 44px rgba(255, 232, 164, 0.86)) brightness(1.38);
  }
  100% {
    background-position: 160% 0, 50% 0, 0 55%;
    filter: drop-shadow(0 2px 1px rgba(48, 26, 2, 0.9)) drop-shadow(0 0 26px rgba(255, 220, 140, 0.6)) brightness(1.14);
  }
}

@keyframes or-trait {
  0% {
    scale: 0 1;
    opacity: 0;
  }
  30% {
    scale: 1 1;
    opacity: 1;
  }
  100% {
    scale: 1.04 1;
    opacity: 0;
  }
}

@keyframes or-astre {
  0% {
    scale: 0;
    opacity: 0;
    rotate: 0deg;
  }
  30% {
    scale: 1.25;
    opacity: 1;
    rotate: 40deg;
  }
  100% {
    scale: 0;
    opacity: 0;
    rotate: 90deg;
  }
}

/* ---------- Monde jardin japonais ---------- */

/* Capitales rayées, façon enseigne. */
.world-japan .world-title {
  font-family: var(--font-japan);
  font-weight: 400;
  font-variation-settings: normal;
  font-size: clamp(1.9rem, 4.6vw, 5rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

/* Les fils de la police s'allument peu à peu, comme un néon : la lumière avance de
   gauche à droite dans les lettres, reste allumée, puis s'éteint et recommence. */
.world-japan .world-title {
  --neon-on: #ff4a3c;
  --neon-off: #55140f;
  color: transparent;
  /* Devant : un point de lumière blanche là où passe la souris (--mx, --my, posés par le script). */
  background:
    radial-gradient(circle 0.95em at var(--mx, -99em) var(--my, -99em), #fff 0, #ffe6da 26%, rgba(255, 170, 140, 0.6) 55%, transparent 100%) 0 0 / 100% 100% no-repeat,
    linear-gradient(90deg, var(--neon-on) 0 46%, #fff3ea 50%, var(--neon-off) 54% 100%) 100% 0 / 320% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  animation: neon-fil 7s linear infinite;
}

@keyframes neon-fil {
  0% {
    background-position: 0 0, 100% 0;
    filter: drop-shadow(0 0 0 transparent);
    opacity: 1;
  }
  52% {
    background-position: 0 0, 0 0;
    filter: drop-shadow(0 0 14px var(--neon-on));
    opacity: 1;
  }
  60%,
  84% {
    background-position: 0 0, 0 0;
    filter: drop-shadow(0 0 22px var(--neon-on));
    opacity: 1;
  }
  100% {
    background-position: 0 0, 0 0;
    filter: drop-shadow(0 0 0 transparent);
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-japan .world-title {
    background-position: 0 0, 0 0;
    animation: none;
  }
}

/* =========================================================================
   Les collections : trois affiches collées au mur
========================================================================= */

.wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  list-style: none;
}

.wall li:nth-child(2) {
  margin-top: clamp(0px, 6vw, 88px);
}

.wall-item {
  --tint: var(--accent);
  display: block;
  text-decoration: none;
  outline-offset: 12px;
}

.wall-item .print {
  display: block;
  width: 88%;
  transition: rotate 0.5s var(--ease), translate 0.5s var(--ease);
}

.wall-item .print::before {
  -webkit-text-stroke-color: var(--tint);
}

.wall li:nth-child(2) .print {
  margin-left: auto;
  rotate: 3deg;
}

.wall li:nth-child(3) .print {
  rotate: -1deg;
}

.wall-item:hover .print {
  rotate: 0deg;
  translate: 0 -8px;
}

.wall-name {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: -0.46em;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 50;
  font-size: clamp(3.2rem, 6.4vw, 6.2rem);
  line-height: 0.86;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 4px 30px rgba(11, 12, 15, 0.8);
  transition: color 0.3s var(--ease);
}

.wall-item:hover .wall-name {
  color: var(--tint);
}

.wall-text {
  display: block;
  max-width: 34ch;
  margin: 14px 0 8px;
}

.wall-item .arrow-link {
  color: var(--tint);
}

.wall-item:hover .arrow-link::after {
  translate: 8px 0;
}

/* =========================================================================
   Écrans étroits
========================================================================= */

@media (max-width: 900px) {
  .folio-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .index {
    max-width: 440px;
  }

  /* Le titre, puis le cartel */
  .world-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .world .cartel {
    margin-bottom: 0;
  }

  .wall {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }

  .wall li:nth-child(2) {
    margin-top: 0;
  }

  .wall-item .print {
    width: min(78%, 360px);
  }

  .wall-name {
    font-size: clamp(3.2rem, 17vw, 6rem);
  }
}

/* =========================================================================
   Réactions au survol des éléments fixes
   Rien ici n'est cliquable : le curseur ne change pas, aucune couleur de bouton.
   Les choses réagissent comme du papier ou de l'encre : un titre se penche, une
   étiquette frétille, un numéro sort de derrière sa photo. Seulement à la souris,
   et seulement si le visiteur n'a pas demandé moins de mouvement.
========================================================================= */

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* Le numéro derrière chaque tirage de la bande sort un peu plus */
  .strip a::before {
    transition: translate 0.5s var(--ease);
  }

  .strip a:hover::before {
    translate: 7px -9px;
  }

  /* Le cartel d'un monde se redresse (voir pages.css). Son titre ne se penche pas :
     chaque monde a sa propre réaction au survol. */
  .world .cartel:hover {
    rotate: 0deg;
  }
}
