/* =========================================================================
   Nataniel GZAIEL — Socle commun, direction « affiche / zine », site caméléon
   Polices (chargées dans chaque page) : Anybody, Young Serif, Hanken Grotesk
   Chargée par toutes les pages sauf l'accueil, avec pages.css (et
   portfolio.css pour le portfolio). L'accueil garde home.css, qui contient
   les mêmes règles de base : une retouche de la navigation, des boutons ou
   du pied de page se fait donc dans les deux fichiers.
   Règles de design : voir DESIGN.md à la racine du projet.
========================================================================= */

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

  --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-overlay: 200;
  --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;
}

.nowrap {
  white-space: nowrap;
}

/* =========================================================================
   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;
  line-height: 40px;
  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:disabled {
  opacity: 0.6;
  cursor: wait;
}

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

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

.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, dans l'ordre de la page, et rien
   ne passe devant la photo. */
body {
  counter-reset: tirage;
}

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

.compare::before,
.taped::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);
}

/* Étiquette collée sur une photo ou un bloc */
.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;
}

/* =========================================================================
   Titres de section et apparition des lignes de titre
========================================================================= */

.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;
}

@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;
  }
}

/* =========================================================================
   Tarif de lancement : une feuille noire cernée de la couleur d'accent
   (accueil et page Services)
========================================================================= */

.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(--paper);
  background: var(--ink-raised);
  border: 2px solid var(--accent);
  rotate: -1deg;
}

.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;
  color: var(--accent);
}

.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: 400;
}

.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(--accent);
  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;
}

/* Note en pointillés : une précision posée en travers de la page */
.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(--paper);
  background: var(--ink-raised);
  border: 2px dashed color-mix(in srgb, var(--paper) 45%, transparent);
  rotate: 1.2deg;
}

.express a {
  font-weight: 700;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  color: var(--accent);
}

/* =========================================================================
   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 site.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) {
  .tag {
    left: -14px;
  }

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

@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);
  }

  /* Menu ouvert : la page derrière ne défile plus. */
  html.menu-open {
    overflow: hidden;
  }

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

/* 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.
   Le reste est dans pages.css, portfolio.css et home.css (accueil).
========================================================================= */

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

  .page-title :is(.thin, .mid):hover,
  .launch-sheet h2:hover {
    transform: skewX(-7deg);
  }

  /* La grande ligne d'un titre de page s'étire : ses lettres s'élargissent */
  .page-title .lead {
    transition: font-variation-settings 0.6s var(--ease);
  }

  .page-title .lead:hover {
    font-variation-settings: "wdth" 62;
  }

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