/* =========================================================================
   Nataniel GZAIEL — Accueil, direction « affiche / zine », site caméléon
   Polices (chargées dans index.html) : Anybody, Young Serif, Hanken Grotesk
   Cette feuille ne sert qu'à l'accueil. Les autres pages gardent style.css
   tant que la direction n'est pas validée.
========================================================================= */

/* La couleur d'accent suit la photo affichée : elle est animable. */
@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #e9f23c;
}

:root {
  --ink: #0b0c0f;
  --ink-raised: #15171c;
  --paper: #efece4;
  --muted: #a9adb1;
  --accent: #e9f23c;
  --error: #f0a093;
  --line: rgba(239, 236, 228, 0.16);

  --font-display: "Anybody", "Arial Narrow", sans-serif;
  --font-serif: "Young Serif", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --wide: 1320px;

  --z-nav: 100;
  --z-menu: 110;
  --z-grain: 150;
  --z-toast: 300;
  --z-iris: 1000;

  transition: --accent 0.7s var(--ease);
  scrollbar-color: var(--accent) var(--ink);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Grain d'impression, posé sur toute la page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: var(--on-accent, var(--ink));
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 55;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: var(--z-toast);
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* =========================================================================
   Obturateur (ouverture de page et changement de page)
========================================================================= */

.iris-cover {
  display: none;
}

.is-entering .iris-cover {
  display: block;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-iris) - 1);
  background: var(--ink);
  /* Filet de sécurité : si le script ne démarre pas, le voile part tout seul. */
  animation: cover-out 0.4s 2.5s forwards;
}

@keyframes cover-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.iris {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-iris);
  pointer-events: none;
}

.iris[hidden] {
  display: none;
}

.iris .blades {
  fill: var(--ink);
}

.iris .edges {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

/* =========================================================================
   Navigation
========================================================================= */

header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
}

nav {
  display: flex;
  align-items: center;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 22px var(--gutter);
}

.nav-center-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  gap: 32px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  font-size: 33px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--paper);
}

/* Le sigle devant le nom : un « n » en serif dans une pastille. Il prend la couleur
   d'accent de la page, comme les étiquettes et les liens du menu. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
}

.logo-mark {
  flex: none;
  width: 1.3em;
  height: 1.3em;
}

.logo-mark circle {
  fill: var(--accent);
}

.logo-mark text {
  font-family: var(--font-serif);
  font-size: 84px;
  font-weight: 400;
  font-variation-settings: normal;
  text-transform: none;
  fill: var(--on-accent, var(--ink));
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(18px, 2.6vw, 38px);
}

nav ul a {
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 95;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline wavy transparent 2px;
  text-underline-offset: 7px;
  color: var(--paper);
  transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}

nav ul a:hover,
nav ul a.active {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 10px;
  background: var(--accent);
  color: var(--on-accent, var(--ink));
  border: 0;
  cursor: pointer;
  rotate: 3deg;
  transition: rotate 0.25s var(--ease);
}

.nav-toggle:hover {
  rotate: -3deg;
}

.nav-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Outils de la barre : Instagram et choix de la langue */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: clamp(18px, 2.6vw, 38px);
}

.nav-insta {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--paper);
  transition: color 0.25s var(--ease), rotate 0.25s var(--ease);
}

.nav-insta:hover {
  color: var(--accent);
  rotate: -8deg;
}

.nav-insta svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.nav-insta svg circle:last-child {
  fill: currentColor;
  stroke: none;
}

.lang-switch {
  display: flex;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 95;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: none;
  border: 1.5px solid color-mix(in srgb, var(--paper) 40%, transparent);
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}

.lang-switch:hover {
  border-color: var(--accent);
}

.lang-switch span {
  padding: 8px 8px 7px;
  line-height: 1;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

/* La langue affichée est surlignée. */
html[lang="fr"] .lang-switch [data-lang="fr"],
html[lang="en"] .lang-switch [data-lang="en"] {
  color: var(--on-accent, var(--ink));
  background: var(--accent);
}

/* =========================================================================
   Boutons et liens
========================================================================= */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-accent, var(--ink));
  background: var(--accent);
  border: 2px solid var(--accent);
  cursor: pointer;
  rotate: -1.5deg;
  transition: rotate 0.3s var(--ease), scale 0.15s var(--ease),
    background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

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

.btn:active {
  scale: 0.97;
}

.btn-secondary {
  rotate: 1deg;
  color: var(--paper);
  background: transparent;
  border-color: var(--paper);
}

.btn-secondary:hover {
  rotate: -1deg;
  color: var(--ink);
}

.btn-ink {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.btn-ink:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--ink);
}

.btn-outline-ink {
  rotate: 1deg;
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.btn-outline-ink:hover {
  rotate: -1deg;
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: underline wavy 2px;
  text-underline-offset: 7px;
}

.arrow-link::after {
  content: "";
  width: 30px;
  height: 14px;
  background: currentColor;
  -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);
}

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

/* Numéro du tirage : un grand chiffre en contour, de la couleur d'accent, à moitié
   caché derrière le coin. Il se compte tout seul, et rien ne passe devant la photo. */
body {
  counter-reset: tirage;
}

.compare {
  isolation: isolate;
  counter-increment: tirage;
}

.compare::before {
  content: counter(tirage, decimal-leading-zero);
  content: counter(tirage, 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(--accent);
  pointer-events: none;
  font-size: clamp(56px, 7vw, 104px);
}

/* =========================================================================
   Affiche d'ouverture
========================================================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  max-width: calc(var(--wide) + 2 * var(--gutter));
  min-height: 100svh;
  margin: 0 auto;
  padding: 112px var(--gutter) 56px;
}

.hero-copy {
  position: relative;
  z-index: 4;
}

.poster-title {
  display: flow-root;
  width: min(100%, 104svh);
  margin-bottom: 28px;
}

.poster-title .bl {
  display: inline-block;
  width: 0;
  height: 0;
}

.poster-title .fit {
  display: block;
  width: max-content;
  white-space: nowrap;
  line-height: 0.86;
  /* Tailles d'attente : home.js ajuste chaque ligne à la largeur exacte. */
  font-size: 11.4vw;
  animation: line-in 0.9s var(--ease) backwards;
}

.poster-title .l1 {
  font-weight: 300;
  font-variation-settings: "wdth" 150;
  font-size: 5.2vw;
  line-height: 1.06;
  animation-delay: 0.45s;
}

.poster-title .l2 {
  color: var(--accent);
  animation-delay: 0.55s;
}

.poster-title .l3 {
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  font-size: 4.9vw;
  line-height: 1.12;
  animation-delay: 0.65s;
}

.poster-title .l4 {
  font-size: 12vw;
  animation-delay: 0.75s;
}

@keyframes line-in {
  from {
    clip-path: inset(-0.4em 100% -0.4em 0);
    translate: -24px 0;
  }
  to {
    clip-path: inset(-0.4em -0.2em -0.4em 0);
    translate: 0 0;
  }
}

/* Même geste, rejoué quand l'affiche du dessus change de monde. */
@keyframes line-swap {
  from {
    clip-path: inset(-0.4em 100% -0.4em 0);
    translate: -24px 0;
  }
  to {
    clip-path: inset(-0.4em -0.2em -0.4em 0);
    translate: 0 0;
  }
}

.hero-sub {
  max-width: 44ch;
  margin-bottom: 28px;
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--paper);
}

/* Pile d'affiches */
.hero-pile {
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: center;
}

.pile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.pile:focus-visible {
  outline-offset: 18px;
}

.poster {
  position: absolute;
  inset: 0;
  display: block;
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, 0.9);
  transition: filter 0.6s var(--ease);
  animation: throw 0.9s var(--ease) backwards;
}

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

.poster[data-pos="0"] {
  z-index: 3;
  transform: rotate(-3deg);
  animation-delay: 0.75s;
}

.poster[data-pos="1"] {
  z-index: 2;
  transform: translate(9%, -4%) rotate(5deg);
  filter: brightness(0.72);
  animation-delay: 0.6s;
}

.poster[data-pos="2"] {
  z-index: 1;
  transform: translate(-9%, 3%) rotate(-8deg);
  filter: brightness(0.5);
  animation-delay: 0.45s;
}

.poster.leaving {
  z-index: 4;
}

@keyframes throw {
  from {
    opacity: 0;
    transform: translate(60%, -70%) rotate(34deg);
  }
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 156%;
  translate: -50% -50%;
  rotate: calc(var(--turn, 0) * 1deg);
  overflow: visible;
  pointer-events: none;
}

.ring text {
  font-family: var(--font-serif);
  font-size: 31px;
  fill: var(--accent);
  transform-origin: 300px 300px;
  animation: spin 70s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pile-hint {
  position: absolute;
  right: -6%;
  bottom: -8%;
  z-index: 6;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  rotate: -7deg;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), scale 0.4s var(--ease);
}

.pile-used .pile-hint {
  opacity: 0;
  scale: 0.8;
}

/* =========================================================================
   Bandeau d'avis
========================================================================= */

.voices {
  padding: clamp(8px, 2vw, 24px) 0 clamp(24px, 4vw, 56px);
}

.wave {
  overflow: hidden;
}

.wave svg {
  display: block;
  width: max(100%, 1100px);
  margin-left: 50%;
  translate: -50% 0;
  overflow: visible;
}

.wave text {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 100;
  font-size: 54px;
  text-transform: uppercase;
  fill: var(--accent);
}

/* =========================================================================
   Offres et avant / après
========================================================================= */

.offers {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 7vw, 104px);
}

.section-title {
  margin-bottom: clamp(40px, 5vw, 72px);
  font-size: clamp(3.2rem, 11vw, 10.5rem);
  line-height: 0.84;
  font-variation-settings: "wdth" 50;
}

.offer {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 7vw, 110px);
  margin-bottom: clamp(64px, 7vw, 104px);
}

.offer-flip .compare {
  order: 2;
  rotate: 2.5deg;
}

.offer-copy h3 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7.4vw, 7rem);
  color: var(--accent);
}

.offer-copy p {
  max-width: 44ch;
  margin-bottom: 20px;
  font-size: clamp(17px, 1.35vw, 20px);
}

.compare {
  position: relative;
  width: min(100%, 390px);
  justify-self: center;
  rotate: -2.5deg;
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, 0.9);
  --pos: 50%;
}

.compare-final {
  width: 100%;
}

/* La photo est un lien vers l'offre */
.compare-link {
  display: block;
}

.compare-link:focus-visible {
  outline-offset: 8px;
}

.tag {
  position: absolute;
  top: 9%;
  left: -22px;
  z-index: 7;
  padding: 8px 14px;
  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(--on-accent, var(--ink));
  background: var(--accent);
  rotate: -7deg;
}

.offer-flip .tag {
  left: auto;
  right: -22px;
  rotate: 6deg;
}

/* Calque « photo brute », découpé comme une feuille déchirée (home.js) */
.compare-raw {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.compare-raw img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 4;
  width: 0;
  pointer-events: none;
}

.compare-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 46px;
  height: 46px;
  translate: -50% -50%;
  rotate: 45deg;
  background: var(--accent);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.8);
  transition: scale 0.25s var(--ease);
}

.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 26px;
  height: 12px;
  translate: -50% -50%;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 1 1 6l5 5M20 1l5 5-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 26 12' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 1 1 6l5 5M20 1l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.compare:hover .compare-handle::before {
  scale: 1.12;
}

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare:has(.compare-range:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}

.compare-label {
  position: absolute;
  bottom: 14px;
  z-index: 3;
  padding: 5px 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

.compare-label.is-raw {
  left: 14px;
  color: var(--ink);
  background: var(--paper);
}

.compare-label.is-final {
  right: 14px;
  z-index: 1;
  color: var(--on-accent, var(--ink));
  background: var(--accent);
}

.express {
  width: fit-content;
  max-width: min(100%, 760px);
  margin: 0 auto;
  padding: 22px clamp(20px, 3vw, 36px);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  rotate: 1.2deg;
}

.express a {
  font-weight: 700;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* =========================================================================
   Avis
========================================================================= */

.quote {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(32px, 4vw, 56px) var(--gutter) clamp(64px, 8vw, 112px);
}

.quote figure {
  position: relative;
  max-width: 1000px;
  margin-left: clamp(0px, 9vw, 150px);
}

.quote blockquote::before {
  content: "«";
  display: block;
  margin-bottom: -0.1em;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 50;
  font-size: clamp(5rem, 10vw, 8.5rem);
  line-height: 0.7;
  color: var(--accent);
}

.quote blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  line-height: 1.2;
}

.quote figcaption {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

/* =========================================================================
   Tarif de lancement : une feuille de couleur collée sur la page
========================================================================= */

.launch {
  padding: 0 var(--gutter) clamp(56px, 7vw, 96px);
}

.launch-sheet {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) clamp(22px, 6vw, 88px);
  color: var(--on-accent, var(--ink));
  background: var(--accent);
  rotate: -1deg;
}

.launch-sheet ::selection {
  background: var(--ink);
  color: var(--accent);
}

.launch-sheet :focus-visible {
  outline-color: var(--ink);
}

.launch-sheet h2 {
  max-width: 13em;
  margin-bottom: clamp(24px, 4vw, 48px);
  font-size: clamp(2.7rem, 8.6vw, 8rem);
  line-height: 0.88;
  font-variation-settings: "wdth" 50;
}

.launch-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 42ch));
  gap: 16px clamp(24px, 4vw, 64px);
  margin-bottom: clamp(28px, 4vw, 44px);
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 500;
}

.launch-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  text-transform: uppercase;
  line-height: 1;
}

.tickets {
  display: flex;
  gap: 8px;
}

.tickets i {
  width: 30px;
  height: 46px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 38%, 82% 50%, 100% 62%, 100% 100%, 0 100%, 0 62%, 18% 50%, 0 38%);
}

.tickets i:nth-child(odd) {
  rotate: -4deg;
}

.tickets i:nth-child(even) {
  rotate: 5deg;
}

/* =========================================================================
   Pied de page
========================================================================= */

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  padding: 6px 0;
  text-underline-offset: 4px;
  transition: color 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Ligne des prestations et des guides, au-dessus des liens légaux */
.footer-pages {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 100%;
  gap: 4px 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.footer-pages a {
  padding: 6px 0;
  color: var(--paper);
  text-underline-offset: 4px;
  transition: color 0.25s var(--ease);
}

.footer-pages a:hover {
  color: var(--accent);
}

/* =========================================================================
   Éléments créés par script.js : message et bandeau cookies
========================================================================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: var(--z-toast);
  max-width: min(90vw, 420px);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  translate: -50% 16px;
  rotate: -1deg;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), translate 0.3s var(--ease);
}

.toast.visible {
  opacity: 1;
  translate: -50% 0;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: var(--z-toast);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: 560px;
  margin-left: auto;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--paper);
  background: var(--ink-raised);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
}

.cookie-banner p {
  flex: 1 1 260px;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
}

.cookie-banner .btn {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 13px;
  rotate: none;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 104px;
    gap: 72px;
  }

  .poster-title {
    width: 100%;
  }

  .poster-title .fit {
    font-size: 18vw;
  }

  .poster-title .l1 {
    font-size: 8.3vw;
  }

  .poster-title .l3 {
    font-size: 7.8vw;
  }

  .poster-title .l4 {
    font-size: 19vw;
  }

  .hero-pile {
    max-width: min(66vw, 320px);
    margin-bottom: 48px;
  }

  .offer {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare {
    width: min(82%, 380px);
  }

  .offer-flip .compare {
    order: 0;
  }

  .tag {
    left: -14px;
  }

  .offer-flip .tag {
    right: -14px;
  }

  .launch-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote figure {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: var(--z-menu);
  }

  .nav-tools {
    position: relative;
    z-index: var(--z-menu);
    gap: 6px;
    margin-left: 12px;
  }

  .nav-toggle {
    margin-left: 12px;
  }

  nav ul {
    position: fixed;
    inset: 0;
    z-index: var(--z-nav);
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 96px var(--gutter) 40px;
    background: var(--ink);
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease), visibility 0s 0.5s;
  }

  nav ul.active {
    visibility: visible;
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.5s var(--ease), visibility 0s;
  }

  nav ul a {
    padding: 4px 0;
    font-weight: 900;
    font-variation-settings: "wdth" 50;
    font-size: clamp(3rem, 17vw, 5rem);
    letter-spacing: 0;
    line-height: 1;
    text-decoration-thickness: 3px;
  }

  .logo {
    position: relative;
    z-index: var(--z-menu);
  }

  .wave text {
    font-size: 46px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Téléphones : la barre garde le logo, Instagram, la langue et le menu sur une ligne. */
@media (max-width: 480px) {
  .logo {
    gap: 0.3em;
    font-size: 25px;
  }

  .logo-mark {
    width: 1.15em;
    height: 1.15em;
  }

  .nav-tools,
  .nav-toggle {
    margin-left: 8px;
  }

  /* Le bouton ne montre que la langue vers laquelle il bascule. */
  html[lang="fr"] .lang-switch [data-lang="fr"],
  html[lang="en"] .lang-switch [data-lang="en"] {
    display: none;
  }
}

@media (max-width: 350px) {
  .logo {
    gap: 0.25em;
    font-size: 21px;
  }

  .logo-mark {
    width: 1.1em;
    height: 1.1em;
  }
}

/* =========================================================================
   Animations réduites : plus de mouvement, les couleurs et états restent.
========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .ring {
    rotate: none;
  }
}

.nowrap {
  white-space: nowrap;
}

/* =========================================================================
   SITE CAMÉLÉON
   Le cadre reste noir. Chaque monde impose sa police, sa couleur et son
   animation : pop, noir et blanc, fantaisie sombre, jardin japonais.
========================================================================= */

:root {
  --font-goth: "Jacquard 24", "UnifrakturMaguntia", "Old English Text MT", serif;
  --font-fantasy: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --font-japan: "Zen Tokyo Zoo", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

.logo {
  line-height: 40px;
}

/* ---------- Affiche d'ouverture : les deux grandes lignes changent de monde ---------- */

.hero[data-world="goth"] .poster-title :is(.l2, .l4) {
  /* Gothique brodée, façon écusson de veste. Jamais tout en capitales : illisible. */
  font-family: var(--font-goth);
  font-weight: 400;
  font-variation-settings: normal;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
}

/* La ligne de couleur prend le bordeaux du monde (voir portfolio.css). */
.hero[data-world="goth"] .poster-title .l2 {
  color: #8f1d2c;
}

.hero[data-world="goth"] .poster-title :is(.l2, .l4)::first-letter {
  text-transform: uppercase;
}

.hero[data-world="fantasy"] .poster-title :is(.l2, .l4) {
  /* Petites capitales, façon affiche de film. Serrées ici, pour gagner en hauteur. */
  font-family: var(--font-fantasy);
  font-weight: 600;
  font-variation-settings: normal;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

/* Une grande capitale en tête de ligne : c'est elle qui donne la hauteur. */
.hero[data-world="fantasy"] .poster-title :is(.l2, .l4)::first-letter {
  text-transform: uppercase;
}

.hero[data-world="japan"] .poster-title :is(.l2, .l4) {
  /* Capitales rayées, façon enseigne (choisies par Nataniel le 12 octobre 2026). */
  font-family: var(--font-japan);
  font-weight: 400;
  font-variation-settings: normal;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.12;
}

/* Le bouton principal suit le bordeaux du monde noir et blanc. */
.hero[data-world="goth"] .btn:not(.btn-secondary) {
  color: var(--paper);
  background: #8f1d2c;
  border-color: #8f1d2c;
}

.hero[data-world="goth"] .btn:not(.btn-secondary):hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

/* 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. */
.hero[data-world="fantasy"] .poster-title .l2 {
  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. */
.hero[data-world="fantasy"] .poster-title .l2::before,
.hero[data-world="fantasy"] .poster-title .l2::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;
}

.hero[data-world="fantasy"] .poster-title .l2::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) {
  .hero[data-world="fantasy"] .poster-title .l2,
  .hero[data-world="fantasy"] .poster-title .l2::before,
  .hero[data-world="fantasy"] .poster-title .l2::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) {
  .hero[data-world="fantasy"] .poster-title .l2:hover {
    animation: or-embrase 1.9s ease-in-out infinite;
  }

  .hero[data-world="fantasy"] .poster-title .l2: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;
  }

  .hero[data-world="fantasy"] .poster-title .l2: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;
  }
}

/* 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;
}

.hero[data-world="goth"] .poster-title :is(.l2, .l4) {
  --seules: 1;
  --ensemble: 0;
  transition: --seules 0.9s ease-in-out, --ensemble 0.9s ease-in-out;
}

.hero[data-world="goth"] .poster-title :is(.l2, .l4):hover {
  --seules: 0;
  --ensemble: 1;
}

.hero[data-world="goth"] .poster-title .mot {
  display: inline-block;
  white-space: nowrap;
  animation: flotte-ensemble 2.8s ease-in-out infinite;
}

.hero[data-world="goth"] .poster-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) {
  .hero[data-world="goth"] .poster-title .mot,
  .hero[data-world="goth"] .poster-title .lettre {
    animation: none;
  }
}

/* La première lettre de la ligne garde sa capitale, même découpée. */
.hero[data-world="goth"] .poster-title .mot:first-child .lettre:first-child {
  text-transform: uppercase;
}

/* 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. */
.hero[data-world="japan"] .poster-title .l2 {
  --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) {
  .hero[data-world="japan"] .poster-title .l2 {
    background-position: 0 0, 0 0;
    animation: none;
  }
}

/* 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. */
.hero[data-world="japan"] .poster-title .l4 {
  --neon-on: #f2efe8;
  --neon-off: #4b4a47;
  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;
}

@media (prefers-reduced-motion: reduce) {
  .hero[data-world="japan"] .poster-title .l4 {
    background-position: 0 0, 0 0;
    animation: none;
  }
}

/* Pendant le changement de monde, l'animation d'arrivée de la ligne passe d'abord. */
.hero[data-world="japan"] .poster-title.is-swapping :is(.l2, .l4) {
  animation: line-swap 0.7s var(--ease) backwards, neon-fil 7s linear infinite;
}

/* Monde pop : de temps en temps, la ligne saute comme un écran d'arcade mal réglé.
   Deux fantômes de couleur (cyan et rose) se décalent une fraction de seconde. */
.hero[data-world="pop"] .poster-title .l2 {
  animation: line-in 0.9s var(--ease) 0.55s backwards, pop-saut 6s steps(1, end) 2.4s infinite;
}

.hero[data-world="pop"] .poster-title .l4 {
  animation: line-in 0.9s var(--ease) 0.75s backwards, pop-saut 6s steps(1, end) 5.1s infinite;
}

.hero[data-world="pop"] .poster-title.is-swapping .l2 {
  animation: line-swap 0.7s var(--ease) 0.05s backwards, pop-saut 6s steps(1, end) 2.4s infinite;
}

.hero[data-world="pop"] .poster-title.is-swapping .l4 {
  animation: line-swap 0.7s var(--ease) 0.15s backwards, pop-saut 6s steps(1, end) 5.1s infinite;
}

@keyframes pop-saut {
  0%,
  9%,
  100% {
    text-shadow: none;
    translate: 0 0;
    clip-path: none;
  }
  1% {
    text-shadow: -0.05em 0 #19f0ff, 0.05em 0 #ff5fd2;
    translate: 0.02em 0;
  }
  2.5% {
    text-shadow: 0.04em 0.012em #19f0ff, -0.04em -0.012em #ff5fd2;
    translate: -0.035em 0;
    clip-path: inset(0 0 46% 0);
  }
  4% {
    text-shadow: -0.025em 0 #19f0ff, 0.025em 0 #ff5fd2;
    translate: 0.015em 0;
    clip-path: inset(38% 0 0 0);
  }
  5.5% {
    text-shadow: none;
    translate: 0 0;
    clip-path: none;
  }
  7% {
    text-shadow: 0.06em 0 #19f0ff, -0.06em 0 #ff5fd2;
    translate: -0.02em 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero[data-world="pop"] .poster-title :is(.l2, .l4) {
    animation: none;
  }
}

.poster-title.is-swapping .fit {
  animation: line-swap 0.7s var(--ease) backwards;
}

.poster-title.is-swapping .l1 {
  animation-delay: 0s;
}

.poster-title.is-swapping .l2 {
  animation-delay: 0.05s;
}

.hero[data-world="fantasy"] .poster-title.is-swapping .l2 {
  animation: line-swap 0.7s var(--ease) backwards, or-soleil 9s ease-in-out infinite;
  animation-delay: 0.05s, 0s;
}

.poster-title.is-swapping .l3 {
  animation-delay: 0.1s;
}

.poster-title.is-swapping .l4 {
  animation-delay: 0.15s;
}

.poster[data-pos="3"] {
  z-index: 0;
  transform: translate(6%, 5%) rotate(9deg);
  filter: brightness(0.38);
  animation-delay: 0.35s;
}

/* ---------- Cadre plus sombre : la couleur arrive en trait, plus en aplat ---------- */

.launch-sheet {
  color: var(--paper);
  background: var(--ink-raised);
  border: 2px solid var(--accent);
  clip-path: none;
}

.launch-sheet h2 {
  color: var(--accent);
}

.launch-sheet ::selection {
  background: var(--accent);
  color: var(--on-accent, var(--ink));
}

.launch-sheet :focus-visible {
  outline-color: var(--accent);
}

.launch-body {
  font-weight: 400;
}

.tickets i {
  background: var(--accent);
}

.btn-ink {
  color: var(--on-accent, var(--ink));
  background: var(--accent);
  border-color: var(--accent);
}

.btn-ink:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.btn-outline-ink {
  color: var(--paper);
  border-color: var(--paper);
}

.btn-outline-ink:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.express {
  padding: 22px clamp(20px, 3vw, 36px);
  color: var(--paper);
  background: var(--ink-raised);
  border: 2px dashed color-mix(in srgb, var(--paper) 45%, transparent);
  clip-path: none;
}

.express a {
  color: var(--accent);
}

/* =========================================================================
   Ambiances de l'affiche d'ouverture (dessinées par ambiance.js)
   Un canvas pleine largeur derrière le titre. Il se fond dans la page en bas.
========================================================================= */

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

.ambiance {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: 100%;
  translate: -50% 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 0, #000 78%, transparent 100%);
  mask-image: linear-gradient(#000 0, #000 78%, transparent 100%);
}

/* Le nom en haut de page ramène à l'accueil. Au survol, il le montre comme les liens
   du menu (il prend la couleur), se penche, et une petite étiquette « c'est moi ! »
   sort en douce de derrière lui. */
.logo {
  position: relative;
  transition: color 0.3s var(--ease), rotate 0.3s var(--ease);
}

.logo:hover,
.logo:focus-visible {
  color: var(--accent);
  rotate: -1.5deg;
}

@media (hover: hover) and (pointer: fine) {
  .logo::after {
    content: "c'est moi !";
    content: "c'est moi !" / "";
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    padding: 5px 8px 4px;
    font-family: var(--font-display);
    font-weight: 800;
    font-variation-settings: "wdth" 85;
    font-size: 11px;
    letter-spacing: 0.05em;
    line-height: 1.1;
    white-space: nowrap;
    color: var(--on-accent, var(--ink));
    background: var(--accent);
    translate: -16px -50%;
    rotate: 6deg;
    /* Cachée : elle se dévoile de gauche à droite, comme si elle sortait de derrière le nom */
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.35s var(--ease), translate 0.35s var(--ease);
    pointer-events: none;
  }

  html[lang="en"] .logo::after {
    content: "that's me!";
    content: "that's me!" / "";
  }

  .logo:hover::after,
  .logo:focus-visible::after {
    translate: 0 -50%;
    clip-path: inset(0);
    transition: clip-path 0.5s var(--ease) 0.3s, translate 0.5s var(--ease) 0.3s;
  }
}

/* =========================================================================
   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.
   Mêmes gestes que sur les pages intérieures (site.css).
========================================================================= */

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* Les titres réagissent chacun à leur façon. Ici : les lignes fines de l'affiche et
     le tarif de lancement se penchent, comme une affiche qu'on pousse du doigt. */
  .poster-title :is(.l1, .l3),
  .launch-sheet h2 {
    transform-origin: 0 100%;
    transition: transform 0.6s var(--ease);
  }

  .poster-title :is(.l1, .l3):hover,
  .launch-sheet h2:hover {
    transform: skewX(-7deg);
  }

  /* Les grandes lignes de l'affiche s'étirent : leurs lettres s'élargissent */
  .poster-title :is(.l2, .l4) {
    transition: font-variation-settings 0.6s var(--ease);
  }

  .poster-title :is(.l2, .l4):hover {
    font-variation-settings: "wdth" 63;
  }

  /* Dans les trois autres mondes, la ligne ne bouge pas au survol : chacun a sa propre
     réaction (lettres regroupées, lumière sous la souris, reflets d'or). */

  /* Les photos des deux offres mènent à l'offre : elles se redressent et grossissent à peine */
  .compare {
    transition: rotate 0.4s var(--ease), scale 0.4s var(--ease);
  }

  .compare:hover {
    rotate: 0deg;
    scale: 1.02;
  }

  /* Les titres des offres se vident : il ne reste que leur contour */
  .offer-copy h3 {
    -webkit-text-stroke: 2px transparent;
    transition: color 0.4s var(--ease), -webkit-text-stroke-color 0.4s var(--ease);
  }

  .offer-copy h3:hover {
    color: transparent;
    -webkit-text-stroke-color: var(--accent);
  }

  /* Le numéro derrière le coin de la photo sort un peu plus */
  .compare::before,
  .taped::before {
    transition: translate 0.5s var(--ease);
  }

  .compare:hover::before,
  .taped:hover::before {
    translate: 9px -12px;
  }

  /* Les étiquettes de couleur frétillent */
  .tag:hover,
  .price-launch:hover {
    animation: hover-wiggle 0.5s var(--ease);
  }

  /* Les tickets du tarif de lancement sautent un par un */
  .tickets i {
    transition: translate 0.3s var(--ease), rotate 0.3s var(--ease);
  }

  .tickets i:hover {
    translate: 0 -8px;
    rotate: 14deg;
  }

  /* La note en pointillés se remet droite */
  .express {
    transition: rotate 0.4s var(--ease);
  }

  .express:hover {
    rotate: 0deg;
  }
}

/* Titres « en vague » : site.js (ou home.js) découpe le titre en lettres, et les fait
   sauter l'une après l'autre quand la souris arrive dessus. */
.wave-word {
  display: inline-block;
  white-space: nowrap;
}

.wave-letter {
  display: inline-block;
}

.is-waving .wave-letter {
  animation: title-wave 0.5s var(--ease) calc(var(--i) * 28ms);
}

@keyframes title-wave {
  40% {
    translate: 0 -0.16em;
    color: var(--accent);
  }
}

@keyframes hover-wiggle {
  25% {
    transform: rotate(4deg);
  }
  55% {
    transform: rotate(-3deg);
  }
  80% {
    transform: rotate(1.5deg);
  }
}
