/* =========================================================================
   Portfolio — Sarah Camara
   Chaque page reproduit la page du PDF (1440 × 810) : les éléments sont
   placés en pourcentage et la page garde toujours son format 16:9, quel que
   soit l'écran. 1 « px design » = var(--px).
   ========================================================================= */

@font-face {
  font-family: "Playfair Display";
  src: url("polices/playfair-display-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --fond-doc: #161a17;
  --marge: 26px;              /* espace autour de la page */
  --nav-h: 66px;              /* hauteur de la barre de navigation */
  --creme: #f3ecdc;
  --vert: #346137;
  --vert-fonce: #24462a;
  --ressort: cubic-bezier(.2, .9, .3, 1.25);
  --haut: 100vh;
  /* largeur de page : la page entière tient toujours à l'écran (format 16:9) */
  --W: min(calc(100vw - 2 * var(--marge)), calc((var(--haut) - var(--nav-h) - 2 * var(--marge)) * 16 / 9));
  color-scheme: dark;
}
@supports (height: 100svh) { :root { --haut: 100svh; } }

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

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  background: var(--fond-doc);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: fixed;
  inset: 0;
  margin: 0;
  background: var(--fond-doc);
  color: #d9d4c7;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ----- la scène : une page à la fois -------------------------------------- */

.scene {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: var(--nav-h);
  touch-action: pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
}
html.zoome .scene { touch-action: auto; }
.scene.glisse-souris { cursor: grabbing; }

.page {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--W);
  translate: -50% -50%;
  aspect-ratio: 16 / 9;
  background: #346137;
  overflow: hidden;
  container-type: inline-size;
  contain: layout paint;
  isolation: isolate;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 44px rgba(0, 0, 0, .5);
  --px: calc(100cqw / 1440);
  -webkit-tap-highlight-color: transparent;
  display: none;
}
.page.prete { display: block; visibility: hidden; }
.page.active, .page.entrante { display: block; visibility: visible; }
.page.active { z-index: 1; }
/* pendant une transition, la page qui arrive est posée sur l'autre : même fond
   vert, donc seuls les objets semblent se déplacer sur la table */
.page.entrante { z-index: 2; background: transparent; box-shadow: none; }
.scene.en-transition .page { pointer-events: none; }
.scene.en-transition .el { will-change: transform; }
.scene.en-transition .sp-cd .cd-disque,
.scene.en-transition .vis { transition: none !important; }

.page.avant-intro .el { opacity: 0; }

/* objets « fantômes » qui passent d'une page à l'autre */
.fantome { position: absolute; pointer-events: none; z-index: 0; }
.fantome > div { position: absolute; inset: 0; }
.fantome img { position: absolute; display: block; max-width: none; }
.fantome .cd-disque { position: absolute; inset: 0; }
.fantome .cd-disque img { inset: 0; width: 100%; height: 100%; clip-path: none !important; }
.cache-partage { visibility: hidden !important; }

/* téléphone en portrait : page bord à bord, au centre */
@media (max-width: 700px) and (orientation: portrait) {
  :root { --marge: 0px; --nav-h: 92px; }
  .page { box-shadow: none; }
}
/* téléphone en paysage : la page prend toute la hauteur, navigation sur les côtés */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --marge: 6px; --nav-h: 0px; }
}

/* ----- barre de navigation ----------------------------------------------- */

.nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-h);
  padding: 0 22px env(safe-area-inset-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e9e4d6;
  z-index: 10;
}
.nav button { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.nav-centre { display: flex; align-items: center; gap: 18px; }
.nav-fleche {
  width: 64px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  opacity: .85;
  transition: opacity .2s ease, transform .3s var(--ressort);
  -webkit-tap-highlight-color: transparent;
}
.nav-fleche img { width: 52px; height: auto; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.nav-prec img { transform: scaleX(-1); }
.nav-fleche:hover, .nav-fleche:focus-visible { opacity: 1; transform: translateX(4px) scale(1.06); }
.nav-prec:hover, .nav-prec:focus-visible { transform: translateX(-4px) scale(1.06); }
.nav-fleche:focus-visible { outline: 2px dashed rgba(243, 236, 220, .7); outline-offset: 2px; }
.nav-fleche:disabled { opacity: .18; cursor: default; transform: none; }

.nav-points { position: relative; display: flex; align-items: center; gap: 10px; height: 28px; }
.nav-points button {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(233, 228, 214, .32);
  transition: background-color .2s ease, transform .2s ease;
}
.nav-points button::before { content: ""; position: absolute; inset: -10px -5px; }
.nav-points button:hover { background: rgba(233, 228, 214, .7); transform: scale(1.25); }
.nav-points button::after {
  content: attr(data-titre);
  position: absolute;
  bottom: 20px;
  left: 50%;
  translate: -50% 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--creme);
  color: var(--vert-fonce);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, translate .2s ease;
}
.nav-points button:hover::after, .nav-points button:focus-visible::after { opacity: 1; translate: -50% 0; }
.nav-points button:focus-visible { outline: 2px solid var(--creme); outline-offset: 3px; }
.nav-curseur {
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 8px;
  margin: -4px 0 0 -8px;
  border-radius: 4px;
  background: var(--creme);
  pointer-events: none;
  translate: calc(var(--i, 0) * 18px) 0;
  box-shadow: 0 0 10px rgba(243, 236, 220, .35);
}

/* bouton « toutes les pages » (icône + numéro + titre de la page) */
.nav .nav-apercu {
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: calc(50% - 200px);
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  color: rgba(233, 228, 214, .9);
  transition: background-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav .nav-apercu:hover, .nav .nav-apercu:focus-visible, .nav .nav-apercu[aria-expanded="true"] {
  background: rgba(243, 236, 220, .1);
  color: #fff;
}
.nav .nav-apercu:focus-visible { outline: 2px dashed rgba(243, 236, 220, .7); outline-offset: 2px; }
.nav-grille { flex: none; width: 19px; height: 19px; fill: currentColor; opacity: .85; transition: transform .3s var(--ressort); }
.nav-apercu:hover .nav-grille { transform: scale(1.12); }
.nav-etat {
  display: flex;
  align-items: baseline;
  gap: 2px;
  min-width: 0;
  font-size: 15px;
  white-space: nowrap;
}
.nav-etat b { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--creme); }
.nav-total { color: rgba(233, 228, 214, .5); margin-right: 12px; }
.nav-titre { overflow: hidden; text-overflow: ellipsis; color: rgba(233, 228, 214, .78); }
.nav-pdf {
  position: absolute;
  right: 26px;
  top: 50%;
  translate: 0 -50%;
  font-size: 14px;
  color: #cfe3c9;
  text-decoration: none;
  border-bottom: 1px solid rgba(207, 227, 201, .35);
  white-space: nowrap;
}
.nav-pdf:hover, .nav-pdf:focus-visible { color: #fff; border-bottom-color: #fff; }

.astuce { display: none; }

@media (max-width: 860px) {
  .nav .nav-apercu { max-width: none; }
  .nav-titre, .nav-total { display: none; }
  .nav-pdf { font-size: 0; }
  .nav-pdf::before { content: "PDF"; font-size: 13px; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .nav { align-items: flex-start; padding-top: 8px; }
  .nav .nav-apercu { top: 26px; left: 4px; padding: 10px; }
  .nav-apercu .nav-etat { display: none; }
  .nav-pdf { top: 26px; right: 12px; }
  .nav-centre { gap: 6px; }
  .nav-fleche { width: 54px; }
  .nav-points { gap: 8px; }
  .nav-curseur { translate: calc(var(--i, 0) * 16px) 0; }
}
@media (max-width: 380px) and (orientation: portrait) {
  .nav-fleche { width: 44px; }
  .nav-fleche img { width: 40px; }
  .nav-points { gap: 6px; }
  .nav-curseur { translate: calc(var(--i, 0) * 14px) 0; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .astuce {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--nav-h) + (var(--haut) - var(--nav-h) - 100vw * 9 / 16) / 2 - 34px);
    margin: 0;
    padding: 0 22px;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: .02em;
    color: rgba(233, 228, 214, .5);
    pointer-events: none;
    transition: opacity .6s ease;
  }
  html.a-navigue .astuce { opacity: 0; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .nav { position: static; height: 0; padding: 0; }
  .nav-pdf, .nav-etat { display: none; }
  .nav .nav-apercu {
    position: fixed;
    left: max(8px, env(safe-area-inset-left));
    top: 8px;
    translate: none;
    padding: 9px;
    background: rgba(243, 236, 220, .08);
  }
  .nav-points { position: fixed; right: 10px; bottom: 10px; flex-direction: column; gap: 6px; height: auto; display: none; }
  .nav-centre { display: contents; }
  .nav-fleche {
    position: fixed;
    top: 50%;
    translate: 0 -50%;
    width: calc((100vw - var(--W)) / 2 - 4px);
    max-width: 64px;
    min-width: 34px;
  }
  .nav-fleche img { width: 100%; }
  .nav-prec { left: max(2px, env(safe-area-inset-left)); }
  .nav-suiv { right: max(2px, env(safe-area-inset-right)); }
}

/* ----- éléments --------------------------------------------------------- */

.el { position: absolute; pointer-events: none; }

.vis {
  position: absolute;
  inset: 0;
  transform-origin: var(--o, 50% 50%);
}

.el img {
  position: absolute;
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.hit { -webkit-touch-callout: none; -webkit-user-drag: none; }
span.hit { cursor: default; }
.hv-wiggle span.hit, .hv-balance span.hit, .hv-coucou span.hit,
.hv-pochette span.hit, .hv-sticker span.hit, .hv-tilt span.hit,
.hv-bulle span.hit, .hv-carte span.hit, .hv-brille span.hit, .hv-sortie span.hit { cursor: grab; }
[data-zoom] { cursor: zoom-in; }

/* l'élément survolé passe au premier plan */
.el:has(> .hit:hover), .el:has(> .hit:focus-visible), .el.touche { z-index: 30; }

.hit:focus-visible ~ .vis {
  outline: calc(var(--px) * 3) dashed rgba(255, 255, 255, .85);
  outline-offset: calc(var(--px) * 6);
}

/* ----- survols ---------------------------------------------------------- */

[class*="hv-"] > .vis {
  transition: transform .5s var(--ressort), filter .5s ease;
}

/* ombre portée commune */
.hv-pochette > .hit:hover ~ .vis, .hv-pochette.touche > .vis, .hv-pochette > .hit:focus-visible ~ .vis,
.hv-sticker > .hit:hover ~ .vis, .hv-sticker.touche > .vis,
.hv-tilt > .hit:hover ~ .vis, .hv-tilt.touche > .vis,
.hv-ecran > .hit:hover ~ .vis, .hv-ecran.touche > .vis, .hv-ecran > .hit:focus-visible ~ .vis,
.hv-affiche > .hit:hover ~ .vis, .hv-affiche.touche > .vis, .hv-affiche > .hit:focus-visible ~ .vis,
.hv-carte > .hit:hover ~ .vis, .hv-carte.touche > .vis,
.hv-bulle > .hit:hover ~ .vis, .hv-bulle.touche > .vis,
.hv-flash > .hit:hover ~ .vis, .hv-flash > .hit:focus-visible ~ .vis {
  filter: drop-shadow(0 calc(var(--px) * 18) calc(var(--px) * 16) rgba(0, 0, 0, .42));
}

/* pochettes d'albums : se redressent et se soulèvent */
.hv-pochette > .hit:hover ~ .vis, .hv-pochette.touche > .vis, .hv-pochette > .hit:focus-visible ~ .vis {
  transform: translateY(calc(var(--px) * -16)) rotate(calc(var(--a, 0deg) * -1)) scale(1.14);
}

/* extraits musicaux : la pochette reste soulevée pendant l'écoute */
.hv-pochette.joue-extrait > .vis {
  transform: translateY(calc(var(--px) * -16)) rotate(calc(var(--a, 0deg) * -1)) scale(1.14);
  filter: drop-shadow(0 calc(var(--px) * 18) calc(var(--px) * 16) rgba(0, 0, 0, .42));
}
.el.joue-extrait, .el.extrait-bloque { z-index: 30; }
/* étiquette « en écoute » sous la pochette (reste droite une fois la pochette redressée) */
.morceau {
  position: absolute;
  left: 50%;
  top: calc(100% + var(--px) * 6);
  translate: -50% 0;
  rotate: var(--a, 0deg);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: calc(var(--px) * 8);
  padding: calc(var(--px) * 7) calc(var(--px) * 14) calc(var(--px) * 7) calc(var(--px) * 11);
  border-radius: 999px;
  background: var(--creme);
  color: var(--vert-fonce);
  font: 700 max(9px, calc(var(--px) * 15)) / 1.15 "Playfair Display", Georgia, serif;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 calc(var(--px) * 6) calc(var(--px) * 18) rgba(0, 0, 0, .38);
  opacity: 0;
  scale: .8;
  pointer-events: none;
  transition: opacity .22s ease, scale .35s var(--ressort);
}
.morceau-artiste { opacity: .62; font-size: .86em; }
.joue-extrait .morceau, .extrait-bloque .morceau { opacity: 1; scale: 1; pointer-events: auto; }
.morceau:hover .morceau-titre { text-decoration: underline; text-underline-offset: .15em; }
.extrait-bloque .eq { display: none; }
.extrait-bloque .morceau::before { content: "▶"; font-size: .8em; }
.eq { display: inline-flex; align-items: flex-end; gap: max(1.5px, calc(var(--px) * 2.5)); height: .85em; }
.eq b {
  width: max(2px, calc(var(--px) * 3.5));
  height: 100%;
  border-radius: 1px;
  background: currentColor;
  transform: scaleY(.35);
  transform-origin: bottom;
}
.en-son .eq b { animation: eq .8s ease-in-out infinite; }
.en-son .eq b:nth-child(2) { animation-delay: -.28s; animation-duration: .7s; }
.en-son .eq b:nth-child(3) { animation-delay: -.52s; animation-duration: .9s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* portraits-stickers : se décollent en éventail */
.hv-sticker > .hit:hover ~ .vis, .hv-sticker.touche > .vis {
  transform: translateY(calc(var(--px) * -14)) rotate(calc((var(--d, 3) - 3) * 1.6deg)) scale(1.07);
}

/* polaroïds */
.hv-tilt > .hit:hover ~ .vis, .hv-tilt.touche > .vis {
  transform: translateY(calc(var(--px) * -10)) rotate(calc(var(--a, 0deg) * -.55)) scale(1.05);
}

/* captures d'écran, téléphone */
.hv-ecran > .hit:hover ~ .vis, .hv-ecran.touche > .vis, .hv-ecran > .hit:focus-visible ~ .vis {
  transform: translateY(calc(var(--px) * -10)) scale(1.04);
}

/* affiches */
.hv-affiche > .hit:hover ~ .vis, .hv-affiche.touche > .vis, .hv-affiche > .hit:focus-visible ~ .vis {
  transform: translateY(calc(var(--px) * -12)) rotate(calc(var(--a, 0deg) * -1)) scale(1.05);
}

/* disques du parcours : la carte se soulève, le nœud frétille */
.hv-carte > .hit:hover ~ .vis, .hv-carte.touche > .vis {
  transform: translateY(calc(var(--px) * -10)) rotate(-1.2deg);
}
.hv-carte .noeud { transform-origin: 58% 42%; }
.hv-carte > .hit:hover ~ .vis .noeud, .hv-carte.touche .noeud { animation: gigote .9s ease-in-out; }

/* bulles de compétences : gonflent depuis leur pointe */
.hv-bulle > .hit:hover ~ .vis, .hv-bulle.touche > .vis {
  transform: scale(1.1) rotate(-2deg);
}

/* liens texte / icônes */
.hv-lien > .hit:hover ~ .vis, .hv-lien.touche > .vis, .hv-lien > .hit:focus-visible ~ .vis {
  transform: translateY(calc(var(--px) * -3)) scale(1.05) rotate(-1deg);
  filter: drop-shadow(0 0 calc(var(--px) * 12) rgba(255, 255, 255, .35));
}

/* sommaire : la ligne glisse, une étoile apparaît */
.hv-glisse > .vis { transition: transform .35s var(--ressort); }
.hv-glisse > .vis::before {
  content: "";
  position: absolute;
  left: calc(var(--px) * -44);
  top: 50%;
  width: calc(var(--px) * 26);
  height: calc(var(--px) * 26);
  margin-top: calc(var(--px) * -14);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.6 4.6 2.6 7.6 6.8 9.1.9.3.9 1.3 0 1.6-4.2 1.5-6.2 4.5-6.8 9.3-.6-4.8-2.6-7.8-6.8-9.3-.9-.3-.9-1.3 0-1.6 4.2-1.5 6.2-4.5 6.8-9.1z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(0) rotate(-120deg);
  transition: transform .4s var(--ressort);
}
.hv-glisse > .hit:hover ~ .vis, .hv-glisse.touche > .vis, .hv-glisse > .hit:focus-visible ~ .vis {
  transform: translateX(calc(var(--px) * 18));
}
.hv-glisse > .hit:hover ~ .vis::before, .hv-glisse.touche > .vis::before,
.hv-glisse > .hit:focus-visible ~ .vis::before { transform: scale(1) rotate(0deg); }
.hv-glisse > .hit:focus-visible ~ .vis { outline: none; }

/* logo VibesofRnB : tourne comme un disque */
.hv-disque > .vis { transition: transform 1.4s cubic-bezier(.3, .6, .2, 1), filter .5s; }
.hv-disque > .hit:hover ~ .vis, .hv-disque.touche > .vis, .hv-disque > .hit:focus-visible ~ .vis {
  transform: rotate(360deg) scale(1.04);
  filter: drop-shadow(0 calc(var(--px) * 14) calc(var(--px) * 14) rgba(0, 0, 0, .4));
}

/* pochette du contact : le disque sort un peu */
.hv-sortie > .hit:hover ~ .vis, .hv-sortie.touche > .vis {
  transform: translateX(calc(var(--px) * -26));
}

/* logo SUPERSTAR : reflet lumineux */
#p7 .el-logo > .vis::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .75) 48%, rgba(255, 246, 214, .9) 50%, transparent 63%) 160% 0 / 260% 100% no-repeat;
  -webkit-mask: url("p07/logo.webp") center / 100% 100% no-repeat;
  mask: url("p07/logo.webp") center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
}
#p7 .el-logo > .hit:hover ~ .vis::after, #p7 .el-logo.touche > .vis::after,
#p7.vu .el-logo > .vis::after { animation: reflet 1.6s ease-in-out .9s 1 both; }
#p7 .el-logo > .hit:hover ~ .vis::after, #p7 .el-logo.touche > .vis::after { animation-delay: 0s; animation-name: reflet2; }
#p7 .el-logo > .hit:hover ~ .vis, #p7 .el-logo.touche > .vis { transform: scale(1.05) rotate(-2deg); }

/* appareil photo : flash */
.hv-flash > .hit:hover ~ .vis, .hv-flash > .hit:focus-visible ~ .vis { transform: translateY(calc(var(--px) * -6)) scale(1.025); }
.hv-flash.clic > .vis { animation: declic .45s ease-out; }
.flash {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.flash.go { animation: flash .7s ease-out; }

/* animations déclenchées (survol souris ou toucher), toujours jouées en entier */
.hv-wiggle.joue > .vis { animation: gigote .75s ease-in-out; }
.hv-balance.joue > .vis { animation: balance 2s cubic-bezier(.3, .1, .3, 1); }
.hv-coucou.joue > .vis { animation: coucou 1.6s cubic-bezier(.45, 0, .25, 1); }

/* ----- animations continues -------------------------------------------- */

.an-tourne > .vis { animation: tourne 16s linear infinite; will-change: transform; }
.an-scintille > .vis { animation: scintille 3.4s ease-in-out infinite; }
.an-pointe > .vis { animation: pointe 3s ease-in-out 1.2s infinite; }
.an-coeurs > .vis { transform-origin: 40% 60%; animation: battement 2.6s ease-in-out infinite; }
.an-notes > .vis { transform-origin: 50% 100%; }
.page:not(.visible) .an-tourne > .vis,
.page:not(.visible) .an-scintille > .vis,
.page:not(.visible) .an-pointe > .vis,
.page:not(.visible) .an-coeurs > .vis { animation-play-state: paused; }

/* ----- transitions et arrivée sur une page --------------------------------- */

/* point fixe des rotations pendant les transitions (balancier, disque qui roule) */
.el { transform-origin: var(--o, 50% 50%); }

/* petites touches jouées à chaque arrivée sur la page (classe .vu) */
.js .page:not(.vu) .in-trace { clip-path: inset(0 0 0 100%); }
.js .page.vu .in-trace { animation: in-trace 1.1s ease-in-out .15s both; }

/* étoiles du téléphone (compétences) : se remplissent une à une */
.js .page:not(.vu) .etoile { opacity: 0; transform: scale(.2); }
.js .etoile { transition: opacity .3s ease, transform .5s var(--ressort); transition-delay: calc(var(--d, 0) * 110ms + 250ms); }

/* ----- page 10 : lecteur audio ----------------------------------------- */

.sp-cd .cd-disque {
  position: absolute;
  transition: transform 1.1s cubic-bezier(.3, .7, .2, 1);
}
.sp-cd .cd-disque img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* au repos, seule la moitié d'origine est visible (identique au PDF) ;
     la découpe ne revient qu'une fois le disque rentré dans le boîtier */
  clip-path: inset(0 0 0 var(--bord));
  transition: clip-path 0s linear 1.1s;
}
.sp-cd .cd-boitier { position: absolute; }
.lecture-active .sp-cd .cd-disque img,
.sp-cd > .hit:hover ~ .vis .cd-disque img {
  clip-path: inset(0 0 0 0);
  transition-delay: 0s;
}
.lecture-active .sp-cd .cd-disque img {
  animation: tourne 2.4s linear infinite;
  animation-play-state: paused;
}
.en-lecture .sp-cd .cd-disque img { animation-play-state: running; }
.lecture-active .sp-cd .cd-disque { transform: translateX(calc(var(--px) * 24)); }
.sp-cd > .hit:hover ~ .vis .cd-disque,
#p10:has(.sp-qr > .hit:hover) .sp-cd .cd-disque { transform: translateX(calc(var(--px) * 10)); }
#p10:has(.sp-qr > .hit:hover) .sp-cd .cd-disque img { clip-path: inset(0 0 0 0); transition-delay: 0s; }
.lecture-active .sp-cd > .hit:hover ~ .vis .cd-disque,
#p10.lecture-active:has(.sp-qr > .hit:hover) .sp-cd .cd-disque { transform: translateX(calc(var(--px) * 30)); }

/* bouton lecture au survol du QR code */
.sp-qr > .vis::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l10.5-6.5z' fill='%23fff' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 56% 50% / 46% no-repeat;
  box-shadow: 0 0 0 calc(var(--px) * 5) #fff, 0 calc(var(--px) * 10) calc(var(--px) * 26) rgba(0, 0, 0, .4);
  opacity: 0;
  scale: .5;
  transition: opacity .25s ease, scale .4s var(--ressort);
}
.en-lecture .sp-qr > .vis::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6.5' y='5.5' width='4' height='13' rx='1' fill='%23fff'/%3E%3Crect x='13.5' y='5.5' width='4' height='13' rx='1' fill='%23fff'/%3E%3C/svg%3E");
  background-position: 50% 50%;
}
.sp-qr > .hit:hover ~ .vis::after, .sp-qr > .hit:focus-visible ~ .vis::after, .sp-qr.touche > .vis::after { opacity: 1; scale: 1; }
/* lecture automatique refusée par le navigateur (aucun clic encore) : on invite à cliquer */
.audio-bloque .sp-qr > .vis::after { opacity: 1; scale: 1; animation: appel-qr 1.6s ease-in-out infinite; }
@keyframes appel-qr { 0%, 100% { scale: 1; } 50% { scale: 1.1; } }
.sp-qr > .hit:focus-visible ~ .vis { outline: none; }

/* onde sonore : chaque barre suit l'audio */
.sp-onde i {
  position: absolute;
  display: block;
  background: var(--barre, #000);
  border-radius: 999px;
  height: calc(var(--h) * var(--k, 1));
  translate: 0 -50%;
  transition: height .5s cubic-bezier(.3, .7, .3, 1.2);
}
.en-lecture .sp-onde i { transition: height .09s linear; }

/* notes et cœurs : battent au rythme */
.en-lecture .an-notes > .vis {
  transform: translateY(calc(var(--px) * var(--e, 0) * -12)) rotate(calc(var(--e, 0) * -9deg));
  transition: transform .1s linear;
}
.en-lecture .an-coeurs > .vis {
  animation: none;
  transform: scale(calc(1 + var(--b, 0) * .32));
  transition: transform .08s linear;
}
.deja-lu .an-pointe > .vis { animation: none; }

/* lecteur dessiné : boutons et barre de progression */
.sp-lecteur .curseur {
  position: absolute;
  z-index: 2;
  transition: left .3s linear, top .3s linear;
}
.sp-lecteur .curseur img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-lecteur.glisse .curseur { transition: none; }
.sp-lecteur .bt, .sp-lecteur .bt-barre {
  position: absolute;
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: calc(var(--px) * 10);
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: background-color .2s, transform .15s;
}
.sp-lecteur .bt-barre { cursor: ew-resize; touch-action: none; }
/* halo lumineux derrière le bouton dessiné */
.sp-lecteur .bt::before {
  content: "";
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity .2s ease;
}
.sp-lecteur .bt:hover::before, .sp-lecteur .bt:focus-visible::before { opacity: .9; }
.sp-lecteur .bt:active { transform: scale(.9); }
.sp-lecteur .bt-barre:focus-visible, .sp-lecteur .bt:focus-visible { box-shadow: 0 0 0 calc(var(--px) * 2) rgba(255, 255, 255, .8); }
.page:not(.deja-lu) .sp-lecteur .bt[data-action="lecture"]::before { animation: appel 2.4s ease-in-out 1.5s infinite; }
.en-lecture .sp-lecteur .bt[data-action="lecture"]::before,
.page:not(.en-lecture) .sp-lecteur .bt[data-action="pause"].actif::before { opacity: .75; }

/* ----- mini-lecteur flottant ------------------------------------------- */

.mini {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + max(10px, env(safe-area-inset-bottom) - var(--nav-h)));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(430px, calc(100vw - 24px));
  padding: 7px 8px 7px 7px;
  background: var(--creme);
  color: var(--vert-fonce);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .08);
  transform: translate(-50%, 160%);
  opacity: 0;
  transition: transform .5s var(--ressort), opacity .3s ease;
}
.mini[hidden] { display: flex; visibility: hidden; }
.mini.visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
/* grand écran : la page est assez grande pour utiliser le lecteur dessiné */
@media (min-width: 901px) and (min-height: 561px) {
  .mini { display: none !important; }
}
/* téléphone en paysage : en haut, pour ne pas cacher les boutons de la page 10 */
@media (orientation: landscape) and (max-height: 500px) {
  .mini { bottom: auto; top: 4px; transform: translate(-50%, -160%); width: min(300px, calc(100vw - 180px)); gap: 8px; padding: 3px 4px 3px 3px; }
  .mini.visible { transform: translate(-50%, 0); }
  .mini-pp { width: 32px; height: 32px; }
  .mini-pp::after { inset: 8px; box-shadow: 0 0 0 1.5px #fff; }
  .mini-titre { font-size: 12px; }
  .mini-titre span { display: none; }
  .mini-barre { height: 12px; }
  .mini-barre::before, .mini-barre i { top: 5px; height: 3px; }
  .mini-temps { font-size: 11px; }
  .mini-x { width: 26px; height: 26px; font-size: 19px !important; }
}

.mini button { appearance: none; -webkit-appearance: none; border: 0; margin: 0; padding: 0; cursor: pointer; font: inherit; }

.mini-pp {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1d1d1d;
  overflow: hidden;
}
.mini-cd {
  position: absolute;
  inset: 0;
  background: url("p10/cd-disque.webp") center / cover;
  border-radius: 50%;
}
.mini.joue .mini-cd { animation: tourne 2.4s linear infinite; }
.mini-pp::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l10.5-6.5z' fill='%23fff' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 58% 50% / 58% no-repeat;
  box-shadow: 0 0 0 2px #fff;
}
.mini.joue .mini-pp::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6.5' y='5.5' width='4' height='13' rx='1' fill='%23fff'/%3E%3Crect x='13.5' y='5.5' width='4' height='13' rx='1' fill='%23fff'/%3E%3C/svg%3E");
  background-position: 50% 50%;
}

.mini-info { flex: 1; min-width: 0; }
.mini-titre {
  display: block;
  color: var(--vert-fonce);
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 440px) {
  .mini-titre span { display: none; }
  .mini { gap: 10px; }
}
.mini-barre {
  position: relative;
  height: 18px;
  margin-top: 1px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}
.mini-barre::before, .mini-barre i {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  height: 4px;
  border-radius: 2px;
}
.mini-barre::before { right: 0; background: rgba(52, 97, 55, .2); }
.mini-barre i { width: 0; background: var(--vert); }
.mini-barre:focus-visible::before { box-shadow: 0 0 0 2px rgba(52, 97, 55, .6); }
.mini-temps {
  flex: none;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(36, 70, 42, .85);
}
.mini-x {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--vert-fonce);
  font-size: 24px !important;
  line-height: 1;
}
.mini-x:hover, .mini-x:focus-visible { background: rgba(52, 97, 55, .12); }

/* ----- visionneuse (affiches en grand) --------------------------------- */

.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: max(4vmin, 16px);
  background: rgba(9, 16, 11, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity .25s ease;
}
.visionneuse[hidden] { display: none; }
.visionneuse.ouverte { opacity: 1; }
.visionneuse img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65);
  transform: scale(.94);
  transition: transform .4s var(--ressort);
}
.visionneuse.ouverte img { transform: none; }
.vis-x {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--creme);
  color: var(--vert-fonce);
  font: 700 26px/1 "Playfair Display", Georgia, serif;
  cursor: pointer;
}

/* ----- vue d'ensemble : toutes les pages ---------------------------------- */

.apercu {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  background: rgba(15, 18, 16, 0);
  transition: background-color .38s ease;
  --col: min(290px, calc((100vw - 140px) / 4), calc(((var(--haut) - 150px) / 3 - 44px) * 16 / 9));
}
.apercu[hidden] { display: none; }
.apercu.ouvert { background: rgba(15, 18, 16, .988); }
.apercu-tete { opacity: 0; transition: opacity .25s ease; }
.apercu.ouvert .apercu-tete { opacity: 1; }
.apercu-volant {
  position: fixed;
  z-index: 5;
  margin: 0;
  border-radius: 3px;
  transform-origin: 0 0;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.apercu-volant.anime { transition: transform .5s cubic-bezier(.3, .8, .25, 1); }
.apercu-tete {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 18px 0 30px;
}
.apercu-tete h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(233, 228, 214, .55);
}
.apercu-x {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 236, 220, .08);
  color: var(--creme);
  font: 700 26px/1 "Playfair Display", Georgia, serif;
  cursor: pointer;
  transition: background-color .2s ease;
}
.apercu-x:hover, .apercu-x:focus-visible { background: rgba(243, 236, 220, .18); outline: none; }
.apercu-grille {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 18px 28px max(34px, env(safe-area-inset-bottom));
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, var(--col));
  justify-content: center;
  align-content: center;
  gap: 30px 24px;
}
.apercu-grille li { opacity: 0; transition: opacity .35s ease; transition-delay: calc(var(--k, 0) * 26ms + 60ms); }
.apercu.ouvert .apercu-grille li { opacity: 1; }
.apercu-grille button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.apercu-grille img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  background: var(--vert);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  transform-origin: 0 0;
  transition: transform .3s var(--ressort), box-shadow .3s ease;
}
.apercu-grille button:hover img, .apercu-grille button:focus-visible img {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55);
}
.apercu-grille button:focus-visible img { outline: 2px dashed rgba(243, 236, 220, .75); outline-offset: 4px; }
.apercu-grille span {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 11px;
  font-size: 15px;
  color: rgba(233, 228, 214, .7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.apercu-grille span b { font-size: 13px; color: rgba(233, 228, 214, .45); font-variant-numeric: tabular-nums; }
.apercu-grille [aria-current] img { outline: 2px solid var(--creme); outline-offset: 5px; }
.apercu-grille [aria-current] span, .apercu-grille [aria-current] span b { color: var(--creme); }

@media (max-width: 899px) {
  .apercu-grille { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-content: start; gap: 22px 16px; padding: 14px 16px 30px; }
  .apercu-tete { padding-left: 18px; }
  .apercu-grille span { font-size: 13px; margin-top: 8px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .apercu-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ----- Linktree « vivant » (page 9) --------------------------------------- */

.linktree {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  background: rgba(9, 16, 11, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: background-color .4s ease, backdrop-filter .4s ease, -webkit-backdrop-filter .4s ease;
}
.linktree[hidden] { display: none; }
.linktree.ouvert { background: rgba(9, 16, 11, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lt-tel {
  position: relative;
  height: min(86vh, 760px);
  height: min(86svh, 760px);
  transform-origin: 0 0;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
}
.lt-tel.anime { transition: transform .55s cubic-bezier(.3, .8, .25, 1); }
.lt-cadre { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.lt-ecran { position: absolute; overflow: hidden; border-radius: 3px; background: #23492e; z-index: 1; }
.lt-capture { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .45s ease; }
.lt-vivant {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  opacity: 0;
  transition: opacity .45s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: var(--lt-texte, #fff);
  background: var(--lt-fond, #23492e);
  padding: 26px 14px 22px;
  text-align: center;
}
.lt-vivant::-webkit-scrollbar { display: none; }
.linktree.charge .lt-vivant { opacity: 1; }
.linktree.charge .lt-capture { opacity: 0; }
.lt-avatar { display: block; width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .1); }
.lt-nom { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.lt-desc { margin: 6px auto 0; max-width: 260px; font-size: 13px; line-height: 1.4; opacity: .85; }
.lt-reseaux { display: flex; justify-content: center; gap: 12px; margin: 12px 0 18px; }
.lt-reseaux a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; transition: transform .2s ease, background-color .2s ease; }
.lt-reseaux a:hover, .lt-reseaux a:focus-visible { transform: scale(1.12); background: rgba(255, 255, 255, .12); outline: none; }
.lt-reseaux svg { width: 22px; height: 22px; fill: currentColor; }
.lt-liens { display: flex; flex-direction: column; gap: 12px; }
.lt-lien {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 7px 46px;
  border-radius: 16px;
  background: var(--lt-bouton, #3d7753);
  color: var(--lt-texte, #fff);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: transform .25s ease, filter .2s ease, opacity .35s ease;
  transition-delay: calc(var(--k, 0) * 55ms + 120ms), 0s, calc(var(--k, 0) * 55ms + 120ms);
}
.linktree.charge .lt-lien { opacity: 1; transform: none; }
.lt-lien:hover, .lt-lien:focus-visible { filter: brightness(1.12); transform: scale(1.02); outline: none; transition-delay: 0s; }
.lt-lien:active { transform: scale(.98); }
.lt-lien img { position: absolute; left: 7px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.lt-lien img.icone { padding: 8px; filter: invert(1); opacity: .9; }
.lt-lien.vedette { flex-direction: column; padding: 8px 8px 14px; gap: 10px; }
.lt-lien.vedette img { position: static; translate: none; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 11px; }
.lt-pied { margin: 22px 0 0; font-size: 11px; opacity: .6; letter-spacing: .02em; }
.lt-ouvrir {
  position: absolute;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  translate: -50% 0;
  color: rgba(243, 236, 220, .8);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 236, 220, .3);
  opacity: 0;
  transition: opacity .3s ease .25s;
}
.lt-ouvrir:hover, .lt-ouvrir:focus-visible { color: #fff; border-bottom-color: #fff; outline: none; }
.lt-x {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--creme);
  color: var(--vert-fonce);
  font: 700 26px/1 "Playfair Display", Georgia, serif;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s ease .2s;
}
.linktree.ouvert .lt-ouvrir, .linktree.ouvert .lt-x { opacity: 1; }
/* petits écrans en hauteur : le Linktree s'affiche en panneau, sans le cadre du téléphone */
@media (max-height: 560px) {
  .lt-tel { height: calc(var(--haut) - 24px); aspect-ratio: auto !important; width: min(380px, calc(100vw - 150px)); filter: none; }
  .lt-cadre { display: none; }
  .lt-ecran { inset: 0 !important; width: auto !important; height: auto !important; border-radius: 18px; }
  .lt-ouvrir { left: auto; right: 14px; translate: none; bottom: 14px; }
}

/* ----- images clés ------------------------------------------------------ */

@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes scintille {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(7deg); }
}
@keyframes gigote {
  0%, 100% { transform: rotate(0deg); }
  18% { transform: rotate(-8deg); }
  38% { transform: rotate(7deg); }
  58% { transform: rotate(-4deg); }
  78% { transform: rotate(2deg); }
}
@keyframes balance {
  0% { transform: rotate(0deg); }
  14% { transform: rotate(7deg); }
  34% { transform: rotate(-5deg); }
  54% { transform: rotate(3deg); }
  74% { transform: rotate(-1.4deg); }
  100% { transform: rotate(0deg); }
}
@keyframes coucou {
  0%, 100% { transform: none; }
  38%, 62% { transform: translateX(calc(var(--px) * 125)); }
}
@keyframes pointe {
  0%, 55%, 100% { transform: none; }
  68% { transform: translate(calc(var(--px) * 12), calc(var(--px) * 6)); }
  80% { transform: none; }
  88% { transform: translate(calc(var(--px) * 7), calc(var(--px) * 3.5)); }
}
@keyframes battement {
  0%, 30%, 100% { transform: scale(1); }
  10% { transform: scale(1.14); }
  20% { transform: scale(1.03); }
}
@keyframes appel {
  0%, 70%, 100% { opacity: 0; }
  35% { opacity: .85; }
}
@keyframes reflet { 0% { opacity: 1; background-position: 160% 0; } 100% { opacity: 1; background-position: -60% 0; } }
@keyframes reflet2 { 0% { opacity: 1; background-position: 160% 0; } 100% { opacity: 1; background-position: -60% 0; } }
@keyframes flash { 0% { opacity: .92; } 100% { opacity: 0; } }
@keyframes declic {
  0%, 100% { transform: none; }
  30% { transform: scale(.97) rotate(-1deg); }
}

@keyframes in-pop {
  0% { opacity: 0; transform: scale(.55) rotate(-9deg); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes in-drop {
  0% { opacity: 0; transform: translateY(calc(var(--px) * -70)) rotate(-7deg); }
  45% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes in-up {
  0% { opacity: 0; transform: translateY(calc(var(--px) * 34)); }
  100% { opacity: 1; transform: none; }
}
@keyframes in-left {
  0% { opacity: 0; transform: translateX(calc(var(--px) * -60)); }
  100% { opacity: 1; transform: none; }
}
@keyframes in-right {
  0% { opacity: 0; transform: translateX(calc(var(--px) * 70)); }
  100% { opacity: 1; transform: none; }
}
@keyframes in-deal {
  0% { opacity: 0; transform: translate(calc(var(--px) * -60), calc(var(--px) * 50)) rotate(-28deg) scale(.8); }
  50% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes in-bulle {
  0% { opacity: 0; transform: scale(0); }
  40% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes in-balance {
  0% { opacity: 0; transform: rotate(-24deg); }
  12% { opacity: 1; }
  30% { transform: rotate(13deg); }
  50% { transform: rotate(-6.5deg); }
  68% { transform: rotate(3deg); }
  84% { transform: rotate(-1.2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes in-roule {
  0% { opacity: 0; transform: translateX(calc(var(--px) * -260)) rotate(-200deg); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes in-roule-d {
  0% { opacity: 0; transform: translateX(calc(var(--px) * 260)) rotate(200deg); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes in-trace {
  0% { opacity: 1; clip-path: inset(0 0 0 100%); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* ----- confort -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}

@media print {
  html, body { position: static; height: auto; overflow: visible; background: #fff; }
  .scene { position: static; }
  .page { position: relative; left: auto; top: auto; translate: none; display: block !important;
          visibility: visible !important; width: 100%; box-shadow: none; break-after: page; }
  .mini, .nav, .astuce, .visionneuse { display: none !important; }
  .el { transform: none !important; opacity: 1 !important; }
  @page { size: landscape; margin: 0; }
}
