/* Ultimate Tidy Up Together : site de présentation, dans le style des menus du jeu (boutons « bonbon », titres en
   Luckiest Guy, nuit violette et néons du Bidouf Club).
   (08/11, demandes de Matetos : « de grosses animations, des effets de motion design ultra stylés, au scroll et sur
   les éléments cliquables », puis « penser le site pour le téléphone avant tout, des animations en pagaille ».)
   Le site est d'abord fait pour le téléphone ; les @media (min-width: 901px) l'adaptent au grand écran.
   Les animations qui suivent le doigt lisent des variables posées par animations.js (--a, --t, --e, --q, --d…) ; sans
   JavaScript, ou avec « réduire les animations », elles valent leur état d'arrivée : tout est visible et immobile. */
@font-face {
  font-family: "Luckiest Guy";
  src: url("polices/LuckiestGuy-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --nuit: #120a2e;
  --nuit-2: #1d1050;
  --violet: #8b3dff;
  --violet-clair: #c9a2ff;
  --rose: #ff5fd2;
  --cyan: #3fd8ff;
  --jaune: #ffc21a;
  --orange: #ff8a1a;
  --texte: #f3eeff;
  --texte-doux: #c8bde8;
  --contour: #0b0626;
  /* Le ressort des apparitions (dépasse un peu, puis revient) et la glissade des rideaux. */
  --ressort: cubic-bezier(.18, 1.35, .32, 1);
  --glissade: cubic-bezier(.77, 0, .18, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, #3a1c8f 0%, var(--nuit) 55%) fixed, var(--nuit);
  color: var(--texte);
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
/* Ce qui arrive de côté ne doit pas élargir la page sur téléphone avant d'apparaître. « clip » coupe sans créer de
   zone de défilement : les cartes collantes (sticky) continuent de marcher. */
main, .pied { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); }

h1, h2, h3, .titre, .bouton, .barre-liens a, .pastilles li, .bientot, .bandeau {
  font-family: "Luckiest Guy", "Segoe UI Black", Impact, sans-serif;
  font-weight: normal;
  letter-spacing: .02em;
}

/* --- Ouverture : un rideau violet, la boule de poils qui rebondit, puis le rideau remonte en vague -------------------- */
.ouverture { display: none; }
.anim-pret .ouverture {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(circle at 50% 45%, #6a2fe0, #1a0c48 70%);
  transition: transform 1s var(--glissade);
  /* (secours : si le script ne vient pas, le rideau part tout seul) */
  animation: ouverture-secours 0s 4s forwards;
}
.ouverture::after {  /* le bas du rideau : une vague */
  content: ""; position: absolute; left: 0; right: 0; bottom: -79px; height: 80px;
  background: radial-gradient(60px 46px at 60px 0, #1a0c48 98%, transparent 100%) -10px 0 / 120px 80px repeat-x;
}
.ouverture.partie { transform: translateY(-112%); }
.ouverture-boule {
  width: 110px; height: 110px;
  background: url("images/curseur_boule.png") center / contain no-repeat;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5));
  animation: boule-rebond .5s cubic-bezier(.3, 0, .7, 1) infinite alternate;
}
@keyframes boule-rebond {
  from { transform: translateY(-40px) scale(.95, 1.05); }
  to { transform: translateY(20px) scale(1.18, .8); }
}
@keyframes ouverture-secours { to { visibility: hidden; } }

/* --- Boules de poils qui flottent en profondeur ; elles prennent la couleur du mode affiché (--teinte) ------------- */
@property --teinte { syntax: "<color>"; inherits: true; initial-value: #8b45ff; }
.fond-poils {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  transition: --teinte 1s ease;
}
.fond-poils::before {  /* la lueur du mode affiché, sur tout l'écran */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  background: radial-gradient(ellipse 90% 60% at 50% 55%, color-mix(in srgb, var(--teinte) 34%, transparent), transparent 75%);
}
.fond-poils.teinte::before { opacity: 1; }
.fond-poils span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--teinte) 62%, transparent),
    color-mix(in srgb, var(--teinte) 18%, transparent) 58%, transparent 70%);
  animation: poil-flotte 14s ease-in-out infinite;
}
.fond-poils span:nth-child(1) { width: 380px; height: 380px; left: -120px; top: 110vh; }
.fond-poils span:nth-child(2) { width: 220px; height: 220px; right: -60px; top: 160vh; animation-delay: -4s; }
.fond-poils span:nth-child(3) { width: 300px; height: 300px; left: 60%; top: 260vh; animation-delay: -8s; }
.fond-poils span:nth-child(4) { width: 160px; height: 160px; left: 12%; top: 330vh; animation-delay: -2s; }
.fond-poils span:nth-child(5) { width: 420px; height: 420px; right: -160px; top: 420vh; animation-delay: -6s; }
.fond-poils span:nth-child(6) { width: 200px; height: 200px; left: 30%; top: 520vh; animation-delay: -10s; }
@keyframes poil-flotte { 50% { translate: 30px -40px; scale: 1.08; } }

.progression {
  position: fixed; left: 0; top: 0; z-index: 40; width: 100%; height: 5px;
  transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--violet), var(--rose), var(--cyan), var(--jaune));
  box-shadow: 0 0 12px rgba(255, 95, 210, .6);
}
/* (09/11) Au bout de la barre, une boule de poils qui roule en suivant le défilement (elle annule l'étirement de la barre). */
.progression::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 20px; height: 20px; margin-right: -10px;
  background: url("images/curseur_boule.png") center / contain no-repeat; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5));
  transform: scaleX(calc(1 / max(var(--p, 0), .001))) rotate(calc(var(--p, 0) * 2160deg));
}

/* --- Barre du haut ------------------------------------------------------------------------------- */
.barre {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  background: rgba(18, 10, 46, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(139, 61, 255, .45);
  transition: padding .35s ease, background .35s ease;
}
.barre.reduite { padding: 5px 14px; background: rgba(18, 10, 46, .92); }
.barre-logo { display: block; scale: calc(1 + var(--battement, 0) * .1); }
.barre-logo img { height: 40px; width: auto; transition: height .35s ease, transform .35s var(--ressort); }
.barre.reduite .barre-logo img { height: 34px; }
.barre-logo:hover img { transform: rotate(-4deg) scale(1.08); }
.barre-liens { display: none; gap: 22px; margin-left: auto; }
.barre-liens a {
  position: relative; color: var(--texte); text-decoration: none; font-size: 19px; text-shadow: 0 2px 0 var(--contour);
  display: inline-block; transition: color .2s, transform .3s var(--ressort);
}
.barre-liens a::after {  /* le trait qui se dessine sous le lien */
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--jaune), var(--rose));
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--glissade);
}
.barre-liens a:hover, .barre-liens a.actif { color: var(--jaune); transform: translateY(-2px) rotate(-2deg); }
.barre-liens a:hover::after, .barre-liens a.actif::after { transform: scaleX(1); transform-origin: left; }
/* (09/11, demande de Matetos) Le menu n'apparaît qu'une fois tout le site descendu (site.js) : on ne saute pas le
   booster ni les tableaux du club. Sa place reste réservée (la barre ne bouge pas) ; à l'ouverture, les liens tombent
   un par un. */
html.menu-cache .barre-liens { visibility: hidden; pointer-events: none; }
html.menu-cache .barre-liens a { opacity: 0; transform: translateY(-26px) rotate(-8deg); }
.barre-liens.arrivee a { animation: lien-arrive .7s var(--ressort) both; }
.barre-liens.arrivee a:nth-child(2) { animation-delay: .08s; }
.barre-liens.arrivee a:nth-child(3) { animation-delay: .16s; }
.barre-liens.arrivee a:nth-child(4) { animation-delay: .24s; }
.barre-liens.arrivee a:nth-child(5) { animation-delay: .32s; }
.barre-liens.arrivee a:nth-child(6) { animation-delay: .4s; }
@keyframes lien-arrive { from { opacity: 0; transform: translateY(-26px) rotate(-8deg) scale(.6); } }

/* --- Les boutons du jeu (08/11, demande de Matetos : « reprendre les mêmes boutons que dans le jeu ») : les pilules des
   menus (assets/ui/boutons_pilule), étirées par le milieu comme dans le jeu (widgets.gd, dessiner_pilule) : les bouts
   gardent leur forme, le milieu s'allonge avec le texte. Le disque de gauche porte l'icône (centre à 0,63 × 0,535 de la
   hauteur) ; le texte est en Luckiest Guy, en capitales blanches, au gros contour de la couleur du bouton. Comme dans les
   menus, ils flottent un peu et grossissent au survol (×1,06). ---------------------------------------------------- */
.bouton {
  --h: 58px;                        /* la hauteur du bouton : tout le reste en découle */
  --g: calc(var(--h) * 1.07);       /* le bout gauche, avec son disque */
  --d: calc(var(--h) * .5);         /* le bout droit */
  --pilule: url("images/boutons/avec_bleu.webp");
  --tranche-g: 178; --tranche-d: 83; /* les mêmes bouts, en pixels de l'image (600 × 166) */
  --contour: #0a0f4d; --lueur: #6fc2ff;
  position: relative; isolation: isolate; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); min-width: calc(var(--h) * 3.4); margin: 0; padding: 0 calc(var(--h) * .06) 0 0;
  border-style: solid; border-color: transparent; border-width: 0 var(--d) 0 var(--g);
  border-image-source: var(--pilule);
  border-image-slice: 0 var(--tranche-d) 0 var(--tranche-g) fill;
  border-image-width: 0 var(--d) 0 var(--g);
  border-image-repeat: stretch;
  background: none;
  font-family: "Luckiest Guy", "Segoe UI Black", Impact, sans-serif; font-size: min(calc(var(--h) * .38), 4.3vw);
  line-height: 1; letter-spacing: .03em; color: #fff; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  -webkit-text-stroke: calc(var(--h) * .085) var(--contour); paint-order: stroke fill;
  text-shadow: 0 calc(var(--h) * .055) 0 var(--contour);
  cursor: pointer;
  /* Aimanté (animations.js : --ax, --ay), il grossit au survol et s'écrase au clic. */
  transform: translate3d(var(--ax, 0px), var(--ay, 0px), 0) scale(var(--sc, 1));
  transition: transform .3s var(--ressort), filter .25s ease;
  animation: bouton-flotte 3s ease-in-out infinite;
}
.bouton:nth-of-type(2n) { animation-delay: -1.5s; }
@keyframes bouton-flotte { 50% { translate: 0 -6px; } }
.bouton-texte { position: relative; top: calc(var(--h) * -.035); }  /* (comme dans le jeu : un peu au-dessus du milieu) */
/* L'icône, posée sur le disque. Une image (le logo Discord, déjà rond) remplit le disque ; un dessin est plus petit. */
.bouton-icone {
  position: absolute; top: calc(var(--h) * .535); left: calc(var(--h) * .63 - var(--g)); width: calc(var(--h) * .7); height: calc(var(--h) * .7);
  translate: -50% -50%; display: grid; place-items: center; pointer-events: none;
  transition: transform .4s var(--ressort);
}
.bouton-icone img { width: 100%; height: 100%; filter: drop-shadow(0 calc(var(--h) * .03) calc(var(--h) * .04) rgba(0, 0, 0, .35)); }
.bouton-icone svg { width: 66%; height: 66%; overflow: visible; filter: drop-shadow(0 calc(var(--h) * .035) 0 var(--contour)); }
.bouton:hover .bouton-icone { transform: rotate(-12deg) scale(1.12); }
/* L'éclat qui traverse la pilule de temps en temps (et au survol), sous le texte. */
.bouton::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 7%; bottom: 12%; left: calc(var(--g) * -.9); right: calc(var(--d) * -.8); border-radius: 999px;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%) -220% 0 / 55% 100% no-repeat;
  animation: bouton-eclat 5s ease 2.4s infinite;
}
@keyframes bouton-eclat { 0%, 78% { background-position: -220% 0; } 100% { background-position: 320% 0; } }
.bouton:hover { --sc: 1.1; filter: brightness(1.07) drop-shadow(0 0 calc(var(--h) * .2) var(--lueur)); }
.bouton:hover::after { animation: bouton-eclat-survol .8s ease forwards; }
@keyframes bouton-eclat-survol { from { background-position: -220% 0; } to { background-position: 320% 0; } }
.bouton:active { --sc: .95; }
/* Les couleurs : bleu (Discord), orange (le jaune des boutons du jeu) ; « sans » : la pilule sans disque. */
.bouton-orange { --pilule: url("images/boutons/avec_orange.webp"); --tranche-g: 171; --tranche-d: 80; --contour: #8c330a; --lueur: #ffc14a; }
.bouton.sans-icone { --g: var(--d); --pilule: url("images/boutons/sans_bleu.webp"); --tranche-g: 82; --tranche-d: 82; min-width: calc(var(--h) * 2.6); }
.bouton-orange.sans-icone { --pilule: url("images/boutons/sans_orange.webp"); }
/* Le bouton rond de la barre du haut : le logo Discord des menus du jeu. */
.bouton-rond {
  display: block; flex: none; width: 46px; height: 46px; margin-left: auto; border-radius: 50%;
  transition: transform .35s var(--ressort), filter .25s ease; animation: bouton-flotte 3s ease-in-out infinite;
}
.bouton-rond img { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.bouton-rond:hover { transform: scale(1.12) rotate(-8deg); filter: drop-shadow(0 0 12px #6fc2ff); }
.barre.reduite .bouton-rond { width: 40px; height: 40px; }

/* La gelée : au toucher ou au clic, ce qui réagit s'écrase puis rebondit (propriété « scale », qui s'ajoute aux
   autres transformations). */
.ecrase { animation: gelee .55s var(--ressort); }
@keyframes gelee {
  0% { scale: 1; }
  25% { scale: 1.12 .86; }
  50% { scale: .94 1.08; }
  75% { scale: 1.03 .97; }
  100% { scale: 1; }
}

/* --- Accueil ------------------------------------------------------------------------------------- */
.accueil {
  position: relative; min-height: 88svh;
  display: grid; place-items: center;
  padding: 40px 16px 140px; overflow: hidden;
}
.accueil-fond {
  position: absolute; inset: -20px;
  background: url("images/photos/magasin_1.webp") center / cover;
  filter: blur(calc(6px + var(--sortie, 0) * 8px)) saturate(1.2) brightness(calc(.55 - var(--sortie, 0) * .25));
  transform: scale(calc(1.05 + var(--sortie, 0) * .3));
}
.anim-pret .accueil-fond { animation: fond-arrive 2.4s cubic-bezier(.2, .7, .2, 1) .3s both; }
@keyframes fond-arrive { from { transform: scale(1.45) rotate(2deg); opacity: 0; } }
.accueil::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 10, 46, .1) 40%, var(--nuit) 100%);
}
/* En descendant, le contenu de l'accueil recule, rapetisse et s'efface (animations.js : --sortie, de 0 à 1). */
.accueil-contenu {
  position: relative; z-index: 1; text-align: center; max-width: 900px;
  transform: translateY(calc(var(--sortie, 0) * -160px)) scale(calc(1 - var(--sortie, 0) * .22));
  opacity: calc(1 - var(--sortie, 0) * 1.4);
}
/* Le logo de l'intro : il jaillit de loin en tournant, flashe, s'écrase, rebondit, et un éclat le traverse ; derrière,
   des rayons tournent (animations.js fait gicler la peinture au moment de l'impact). */
.logo-scene { position: relative; display: grid; place-items: center; }
.accueil-rayons {
  position: absolute; left: 50%; top: 50%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; z-index: -1;
  pointer-events: none; opacity: 0; transform: scale(.3);
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 90, .16) 0 7deg, transparent 7deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 34%);
  mask-image: radial-gradient(circle, #000 0, transparent 34%);
  transition: opacity 1s ease .3s, transform 1.4s var(--ressort) .3s;
}
.logo-scene:has(.accueil-logo.vu) .accueil-rayons { opacity: 1; transform: scale(1); animation: rayons-tournent 28s linear infinite; }
@keyframes rayons-tournent { to { rotate: 360deg; } }
.accueil-logo {
  position: relative; width: min(760px, 92vw); margin: 0 auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .5)); scale: calc(1 + var(--battement, 0) * .05);
}
.anim-pret .accueil-logo.vu:not(.fini) { animation: logo-entree 1.3s linear both; }
@keyframes logo-entree {
  0% { transform: translateY(-40px) scale(0) rotate(-28deg); opacity: 0; filter: brightness(4) blur(10px); }
  28% { transform: translateY(0) scale(1.28) rotate(7deg); opacity: 1; filter: brightness(2.2) blur(0); }
  40% { transform: scale(1.18, .78) rotate(-2deg); filter: brightness(1.4); }
  54% { transform: scale(.9, 1.12) rotate(-4deg); filter: brightness(1.1); }
  68% { transform: scale(1.06, .95) rotate(2deg); filter: none; }
  82% { transform: scale(.98, 1.02) rotate(-.6deg); }
  100% { transform: none; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .5)); }
}
.accueil-logo.fini { animation: flotte 4s ease-in-out infinite; }
.logo-scene::after {  /* l'éclat qui traverse le logo une fois posé */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .75) 48%, transparent 60%) -150% 0 / 60% 100% no-repeat;
  -webkit-mask: url("images/logo.webp") center / contain no-repeat;
  mask: url("images/logo.webp") center / contain no-repeat;
}
.logo-scene:has(.accueil-logo.vu)::after { animation: logo-eclat 1.1s ease .9s, logo-eclat 1.1s ease 6s infinite; }
@keyframes logo-eclat { 0% { opacity: 1; background-position: -150% 0; } 100% { opacity: 1; background-position: 250% 0; } }
/* Tant que l'intro joue, la page ne défile pas (animations.js : .verrou, puis .libre). */
/* (seulement sur html : sur body, ça ferait de body une zone de défilement et la barre du haut ne collerait plus) */
html.verrou { overflow: hidden; }
html.verrou body { overflow: visible; touch-action: none; }
.anim-pret:not(.libre) .descendre { visibility: hidden; }
.libre .descendre { animation: descendre-arrive .8s var(--ressort); }
@keyframes descendre-arrive { from { transform: translateY(30px) scale(.4); } }
@keyframes flotte { 50% { translate: 0 -10px; rotate: -.8deg; } }
.accroche {
  font-family: "Luckiest Guy", sans-serif;
  font-size: clamp(25px, 4vw, 42px); line-height: 1.15;
  margin: 18px 0 18px;
  text-shadow: 0 3px 0 var(--contour), 0 0 18px rgba(0, 0, 0, .6);
}
.accroche span { color: var(--jaune); }
.pastilles { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pastilles li {
  padding: 6px 15px 8px; font-size: 16px;
  border-radius: 999px; border: 3px solid #2b0f6b;
  background: linear-gradient(180deg, #a565ff, #6d24e6);
  box-shadow: 0 3px 0 #2b0f6b;
  text-shadow: 0 2px 0 #2b0f6b;
}
.pastilles li.fini { transition: transform .35s var(--ressort); }
.pastilles li.fini:hover { transform: translateY(-5px) rotate(-4deg) scale(1.1); }
.pastilles li:nth-child(even).fini:hover { transform: translateY(-5px) rotate(4deg) scale(1.1); }
.boutons { display: flex; flex-direction: column; align-items: stretch; gap: 16px; max-width: 420px; margin: 0 auto; }
.boutons .bouton { justify-content: center; }
.bientot { margin-top: 22px; color: var(--texte-doux); font-size: 17px; text-shadow: 0 2px 0 var(--contour); }
/* (24/11, demande de Matetos : « le bouton d'inscription en haut, plus explicite, comme celui de la fin du site ») L'inscription de
   l'accueil : une pilule sombre au liseré doré, le champ de l'adresse et le bouton orange dedans, et son étiquette (la cloche,
   « Préviens-moi à la sortie ») posée sur le bord du haut. Au téléphone, la pilule prend toute la largeur ; sous 360 px, le
   bouton passe sous le champ. */
.inscription-haut { --h-haut: 58px; position: relative; min-width: 0; margin-top: 10px; }
.formulaire-haut {
  position: relative; flex-wrap: nowrap; align-items: center; gap: 6px; height: var(--h-haut); padding: 0 3px 0 4px;
  border-radius: 999px; border: 3px solid #ffc14a;
  background: linear-gradient(180deg, rgba(44, 20, 104, .92), rgba(20, 9, 58, .94));
  box-shadow: 0 0 0 3px #8c330a, 0 0 22px rgba(255, 193, 74, .4), inset 0 3px 10px rgba(0, 0, 0, .45);
  transition: box-shadow .3s ease;
}
.formulaire-haut:focus-within { box-shadow: 0 0 0 3px #8c330a, 0 0 32px rgba(255, 193, 74, .9), inset 0 3px 10px rgba(0, 0, 0, .45); }
.formulaire-haut input[type="email"] {
  flex: 1 1 0; min-width: 0; max-width: none; align-self: stretch; height: auto; padding: 0 6px 0 16px;
  border: 0; border-radius: 999px; background: none; box-shadow: none; font-size: 17px;
}
.formulaire-haut input[type="email"]:focus { box-shadow: none; transform: none; }
.formulaire-haut input::placeholder { color: rgba(243, 238, 255, .62); }
.formulaire-haut .bouton { --h: calc(var(--h-haut) - 14px); flex: none; min-width: 0; animation: none; }
.inscription-haut-etiquette {
  position: absolute; left: 20px; top: 0; z-index: 1; translate: 0 -64%;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px;
  font: 13px/1 "Luckiest Guy", "Segoe UI Black", sans-serif; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: #fff;
  background: linear-gradient(180deg, #ffb53a, #ff7a12); border: 2px solid #8c330a; box-shadow: 0 2px 0 #8c330a; text-shadow: 0 1px 0 #8c330a;
}
.inscription-haut-etiquette svg { width: 15px; height: 15px; flex: none; transform-origin: 50% 12%; animation: cloche 2.6s ease-in-out 1s infinite; }
@keyframes cloche { 0%, 66%, 100% { rotate: 0deg; } 72% { rotate: 20deg; } 78% { rotate: -17deg; } 84% { rotate: 11deg; } 90% { rotate: -6deg; } }
.inscription-haut .formulaire-message { min-height: 0; margin: 10px 0 0; text-shadow: 0 2px 0 var(--contour); }
.inscription-haut .formulaire-message:empty { display: none; }
@media (max-width: 359px) {
  .formulaire-haut { flex-wrap: wrap; height: auto; padding: 14px 8px 8px; border-radius: 28px; }
  .formulaire-haut input[type="email"] { flex-basis: 100%; height: 44px; padding: 0 10px; text-align: center; }
  .formulaire-haut .bouton { width: 100%; }
}
/* La petite souris qui invite à descendre. */
.descendre {
  position: absolute; left: 50%; bottom: 112px; z-index: 2; width: 30px; height: 48px; margin-left: -15px;
  border: 3px solid rgba(255, 255, 255, .75); border-radius: 18px;
  opacity: calc(1 - var(--sortie, 0) * 4);
}
.descendre span {
  position: absolute; left: 50%; top: 8px; width: 6px; height: 10px; margin-left: -3px; border-radius: 3px;
  background: var(--jaune); animation: molette 1.6s ease-in-out infinite;
}
@keyframes molette { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* --- Bandeaux qui défilent, à cheval sur le bas de l'accueil (animations.js les fait glisser) ---------------------- */
.bandeaux { position: relative; z-index: 3; height: 120px; margin: -104px 0 0; pointer-events: none; }
.bandeau {
  position: absolute; left: -6%; right: -6%; overflow: hidden; white-space: nowrap;
  padding: 12px 0 10px; font-size: clamp(22px, 3vw, 34px); text-transform: uppercase;
  border-block: 4px solid; box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.bandeau-1 { top: 18px; rotate: -3deg; color: #6a2000; border-color: #9a3a02; background: linear-gradient(90deg, #ffd84a, #ffb326, #ffd84a); }
.bandeau-2 { top: 66px; rotate: 2deg; color: #fff; border-color: #2b0f6b; background: linear-gradient(90deg, #7a2cf0, #a565ff, #7a2cf0); text-shadow: 0 3px 0 #2b0f6b; }
.bandeau-piste { display: inline-block; will-change: transform; }
.bandeau i { font-style: normal; display: inline-block; margin: 0 .55em; color: var(--rose); animation: tourne 3s linear infinite; }
.bandeau-2 i { color: var(--jaune); }
@keyframes tourne { to { rotate: 360deg; } }

/* --- Blocs ---------------------------------------------------------------------------------------- */
.bloc { position: relative; isolation: isolate; max-width: 1180px; margin: 0 auto; padding: 54px 16px 10px; scroll-margin-top: 56px; }
.titre {
  font-size: clamp(34px, 5vw, 54px); text-align: center; margin: 0 0 16px;
  color: var(--jaune);
  text-shadow: 0 4px 0 #8a2d00, 0 0 22px rgba(255, 170, 0, .35);
  -webkit-text-stroke: 2px #8a2d00;
}
.titre-image { width: min(400px, 76vw); margin: 0 auto 18px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
@keyframes titre-respire { 50% { scale: 1.04; rotate: 1deg; } }
.intro { max-width: 760px; margin: 0 auto 30px; text-align: center; color: var(--texte-doux); font-size: 18px; }

/* Les titres en fourrure (MODE, MAP) arrivent de très près, penchés et flous, et se posent en suivant le doigt. */
.titre-scrub { display: grid; place-items: center; margin-bottom: 14px; }
.titre-scrub .titre-image { margin: 0; animation: titre-respire 3.4s ease-in-out infinite; }
.anim-pret .titre-scrub .titre-image {
  transform: translateY(calc((1 - var(--a, 1)) * 90px)) scale(calc(3.4 - var(--a, 1) * 2.4)) rotate(calc((1 - var(--a, 1)) * -28deg));
  opacity: calc(var(--a, 1) * 1.8 - .2);
}
/* Un mot géant, juste dessiné, qui glisse derrière la section pendant qu'on descend (--t). */
.mot-geant {
  position: absolute; left: 0; top: 0; z-index: -1; white-space: nowrap; pointer-events: none; user-select: none;
  font: clamp(96px, 26vw, 280px)/1 "Luckiest Guy", sans-serif; text-transform: uppercase; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 2px rgba(201, 162, 255, .16);
  transform: translateX(calc(8% - var(--t, .3) * 52%)) skewX(calc(var(--v, 0) * -20deg));
}
.mot-neon { -webkit-text-stroke: 2px rgba(255, 110, 220, .22); }

/* --- Apparitions au défilement (animations.js : .vu quand l'élément entre dans l'écran, .fini une fois arrivé) ---- */
[data-anim] {
  transition: transform 1.15s var(--ressort), opacity .7s ease, filter 1s ease;
  transition-delay: calc(var(--rang, 0) * 90ms);
}
.anim-pret [data-anim]:not(.vu) { opacity: 0; }
/* (09/11, Tobias : « accentuer toutes les animations ») Tout arrive de plus loin, plus penché, plus petit. */
.anim-pret [data-anim="monte"]:not(.vu) { transform: translateY(120px) rotate(-5deg) scale(.9); }
.anim-pret [data-anim="pop"]:not(.vu) { transform: scale(.1) rotate(-28deg); }
.anim-pret [data-anim="tombe"]:not(.vu) { transform: translateY(-190px) rotate(-42deg) scale(.3); }
.anim-pret [data-anim="tombe"]:nth-child(even):not(.vu) { transform: translateY(-190px) rotate(42deg) scale(.3); }
[data-anim="tombe"] { transition: transform .8s var(--ressort), opacity .25s ease; }
.anim-pret [data-anim="gauche"]:not(.vu) { transform: translateX(-240px) rotate(-9deg) scale(.88); }
.anim-pret [data-anim="droite"]:not(.vu) { transform: translateX(240px) rotate(9deg) scale(.88); }
.anim-pret [data-anim="flou"]:not(.vu) { transform: scale(1.3); filter: blur(26px); }
.anim-pret [data-anim="lettres"]:not(.vu), .anim-pret [data-anim="neon"]:not(.vu) { opacity: 1; }
/* Une fois arrivés, les éléments réagissent vite (survol). */
[data-anim].fini { transition: transform .35s var(--ressort), box-shadow .3s ease, filter .3s ease; transition-delay: 0s; }

/* Les lettres (animations.js les met chacune dans un span) tombent une à une en tournant. */
.mot { display: inline-block; white-space: nowrap; }
.lettre { display: inline-block; }
.anim-pret .lettre {
  transform: translateY(1.5em) rotate(30deg) scale(.15); opacity: 0;
  transition: transform .8s var(--ressort), opacity .35s ease;
  transition-delay: calc(var(--i) * 26ms + var(--rang, 0) * 90ms + 150ms);
}
.anim-pret .lettre:nth-child(even) { transform: translateY(-1.2em) rotate(-30deg) scale(.15); }  /* (une sur deux tombe d'en haut) */
.anim-pret .vu .lettre { transform: none; opacity: 1; }

/* --- Modes : les cartes arrivent penchées et s'empilent (animations.js : --e = arrivée de la carte, de 0 à 1 ;
   --q = recouverte par la suivante, de 0 à 1). L'article reste droit (il colle en haut) ; c'est .mode-carte qui bouge. */
/* L'en-tête MODE reste collé sous la barre pendant que les cartes s'empilent en dessous. */
.bloc-modes { --barre: 46px; --entete: 96px; }
.bloc-modes .titre-scrub {
  position: sticky; top: var(--barre); z-index: 4; height: var(--entete); margin: 0 -16px 8px; padding: 6px 0 12px;
  background: linear-gradient(180deg, rgba(18, 10, 46, .96) 62%, rgba(18, 10, 46, 0));
}
.bloc-modes .titre-image { width: auto; height: calc(var(--entete) - 18px); }
.pile-modes { display: flex; flex-direction: column; gap: 26svh; padding: 2svh 0 12svh; }
.mode { position: sticky; top: calc(var(--barre) + var(--entete) + var(--k) * 13px); }
.mode-carte {
  position: relative; display: grid; gap: 6px; padding: 10px 10px 18px; border-radius: 28px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--couleur) 34%, #1d1050), #170c42 72%);
  border: 4px solid var(--couleur);
  box-shadow: 0 0 0 4px var(--fonce), 0 0 46px color-mix(in srgb, var(--couleur) 42%, transparent), 0 26px 50px rgba(0, 0, 0, .5);
  transform-origin: 50% 0;
}
.anim-pret .mode-carte {
  transform: perspective(1400px) translateY(calc((1 - var(--e, 1)) * 170px)) rotateX(calc((1 - var(--e, 1)) * 38deg))
    rotate(calc((1 - var(--e, 1)) * var(--penche, 0deg) * 1.9)) scale(calc((1 - var(--q, 0) * .12) * (.7 + var(--e, 1) * .3)));
}
/* (09/11) En se posant sur la pile, la carte s'écrase un peu et rebondit. */
.mode.pose .mode-carte { animation: carte-pose .6s var(--ressort); }
@keyframes carte-pose { 25% { scale: 1.05 .92; } 55% { scale: .97 1.04; } 80% { scale: 1.01 .99; } }
.mode-carte::after {  /* l'ombre de la carte qui la recouvre */
  content: ""; position: absolute; inset: -4px; border-radius: 28px; pointer-events: none;
  background: #0b0626; opacity: calc(var(--q, 0) * .62);
}
.mode-image { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 11; max-height: 34svh; width: 100%; }
.mode-image img { width: 100%; height: 100%; object-fit: cover; }
.anim-pret .mode-image img { transform: scale(calc(1.7 - var(--e, 1) * .7)) rotate(calc((1 - var(--e, 1)) * var(--penche, 0deg) * -2)); }
.mode-texte { display: grid; justify-items: center; gap: 4px; }
.mode-logo { width: min(90%, 400px); margin-top: -48px; position: relative; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.anim-pret .mode-logo { transform: scale(calc(.1 + var(--e, 1) * .9)) rotate(calc((1 - var(--e, 1)) * -48deg)); }
.mode.pose .mode-logo { animation: logo-saut .8s var(--ressort); }
@keyframes logo-saut {
  0% { translate: 0 0; rotate: 0deg; scale: 1; }
  30% { translate: 0 -20px; rotate: -5deg; scale: 1.14; }
  60% { translate: 0 3px; rotate: 3deg; scale: .96; }
  100% { translate: 0 0; rotate: 0deg; scale: 1; }
}
.mode p { margin: 0 8px; text-align: center; font-size: 16.5px; line-height: 1.4; color: var(--texte); }

/* --- Maps, 1 : le booster (09/11, Tobias : « que le booster s'ouvre comme un vrai booster, avec un glissement de gauche
   à droite sur le booster pour laisser les cartes s'échapper » ; « des cartes comme de vraies cartes à collectionner, avec
   l'illustration de la map et un descriptif en bas » ; « une animation selon la rareté : plus la carte est rare, plus
   elle est stylée »). On arrive dessus et la page se bloque. On déchire la bande du haut en glissant de gauche à droite
   (animations.js : les trois morceaux du sachet et --p, l'avancée de la déchirure) ; la lumière sort de la fente, les
   cartes s'échappent du sachet, qui tombe. On les retourne une à une, de la plus commune à la plus rare, et plus elle
   est rare, plus son arrivée est spectaculaire. Sans animation : les cartes, face visible, les unes à côté des autres. */
.booster-zone { max-width: 900px; margin: 0 auto 6svh; scroll-margin-top: 46px; }
.booster-aide {
  margin: 0 auto 10px; text-align: center; font: 22px/1.2 "Luckiest Guy", sans-serif; letter-spacing: .02em; color: var(--jaune);
  text-shadow: 0 3px 0 #8a2d00, 0 0 18px rgba(255, 170, 0, .4); min-height: 2.4em; display: grid; place-items: center;
  position: relative; z-index: 31;  /* (au-dessus du voile de la légendaire) */
}
.anim-pret .booster-aide { animation: aide-pulse 1.6s ease-in-out infinite; }
.booster-aide.change { animation: aide-change .5s var(--ressort); }
@keyframes aide-pulse { 50% { scale: 1.06; } }
@keyframes aide-change { from { scale: .5; opacity: 0; } }
.collection { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.collection .carte-map { width: min(240px, 44vw); }
.anim-pret .collection { position: relative; display: block; height: min(72svh, 640px); transition: height 1s var(--glissade); }
.anim-pret .collection.vide { height: 0; }
.anim-pret .collection .carte-map { position: absolute; left: 50%; top: 52%; width: min(60vw, 36svh, 290px); translate: -50% -50%; }

/* Les cartes : elles ont les proportions du cadre du dos dessiné par Matetos (944 × 1373). Tout ce qui est dedans se
   mesure en largeur de carte (cqw) : la carte est la même en grand, en petit dans le tas, ou sans animation. */
.carte-map { position: relative; display: block; aspect-ratio: 944 / 1373; color: #fff; container-type: inline-size; perspective: 1400px; }
.carte-map.cachee { opacity: 0; }
.carte-interieur { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(180deg); }
.anim-pret .carte-map:not(.retournee) .carte-interieur { transform: none; }
.carte-dos, .carte-face { position: absolute; inset: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
/* (24/11) Dans le booster, le côté tourné vers nous est dit par animations.js (.cote-face : la face ; sinon le dos) et l'autre
   est masqué : le dos animé ne peut plus passer par-dessus la face, quel que soit le rendu 3D du navigateur. */
.anim-pret .collection .carte-map:not(.cote-face) .carte-face, .anim-pret .collection .carte-map.cote-face .carte-dos { visibility: hidden; }
/* Le dos des cartes (08/11, demande de Matetos : « un dos de cartes personnalisé, chaque élément animé, du fond au
   personnage, en passant par les bulles, les étoiles et les vaguelettes, pour une carte premium ») : les calques
   dessinés pour le site (images/booster/, recopiés par animations.js depuis le <template id="gabarit-dos">). Le fond
   bleu et ses rayons tournent, les vagues ondulent chacune à son rythme, le Bidouf randonneur flotte en saluant, les
   bulles montent en se déformant, les étoiles scintillent, et un reflet holographique traverse le cadre doré. Sans
   animation : l'image entière. (09/11) Si ces images manquent, animations.js met le dos dessiné ici (.dessine). */
.carte-dos {
  border-radius: 4.2% / 2.9%; box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  background: url("images/booster/dos.webp") center / 100% 100% no-repeat;
}
.carte-dos.anime { background: none; }
.carte-dos > * { position: absolute; pointer-events: none; }
.carte-dos > img { left: var(--x); top: var(--y); width: var(--l); height: auto; max-width: none; }
.carte-dos > .dos-cadre { left: 0; top: 0; width: 100%; height: 100%; }
.dos-fond {
  left: var(--i-g); top: var(--i-h); right: var(--i-d); bottom: var(--i-b); border-radius: 7% / 4.5%; overflow: hidden;
  background: radial-gradient(circle at 50% 44%, #b4f0ff 0, #45b4ff 20%, #2477ee 48%, #164bc8 76%, #0e2f92);
}
.dos-fond::before {  /* les rayons, qui tournent lentement */
  content: ""; position: absolute; left: 50%; top: 44%; width: 300%; aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .22) 0 4deg, transparent 4deg 13deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 30%, transparent 62%);
  mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 30%, transparent 62%);
  animation: dos-rayons 28s linear infinite;
}
.dos-fond::after {  /* la lueur du milieu, qui respire */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 44%, rgba(255, 255, 255, .6), rgba(160, 230, 255, .2) 26%, transparent 50%);
  animation: dos-lueur 3.2s ease-in-out infinite;
}
@keyframes dos-rayons { to { rotate: 360deg; } }
@keyframes dos-lueur { 50% { opacity: .35; scale: 1.15; } }
.dos-vague { transform-origin: 50% 50%; animation: dos-vague calc(4.6s + var(--k) * .8s) ease-in-out calc(var(--k) * -1.3s) infinite alternate; }
@keyframes dos-vague {
  from { transform: translate(-3%, 2%) rotate(-6deg) scale(.96); }
  to { transform: translate(3%, -2%) rotate(6deg) scale(1.05); }
}
.dos-perso { transform-origin: 50% 92%; animation: dos-perso 3.4s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(8, 20, 80, .45)); }
@keyframes dos-perso {
  0%, 100% { transform: translateY(0) rotate(-2.5deg) scale(1); }
  30% { transform: translateY(-3%) rotate(1deg) scale(1.02, .99); }
  50% { transform: translateY(-5%) rotate(3deg) scale(.99, 1.03); }
  75% { transform: translateY(-2%) rotate(0deg) scale(1.01); }
}
.dos-bulle { animation: dos-bulle calc(4.2s + var(--k) * .65s) ease-in-out calc(var(--k) * -.9s) infinite; }
@keyframes dos-bulle {
  0%, 100% { transform: translate(0, 0) scale(1, 1); }
  25% { transform: translate(7%, -9%) scale(1.07, .94); }
  50% { transform: translate(-5%, -16%) scale(.95, 1.06); }
  75% { transform: translate(6%, -7%) scale(1.05, .96); }
}
.dos-etoile { animation: dos-etoile calc(1.5s + var(--k) * .24s) ease-in-out calc(var(--k) * -.37s) infinite; }
@keyframes dos-etoile {
  0%, 100% { transform: scale(.45) rotate(0deg); opacity: .45; }
  50% { transform: scale(1.2) rotate(45deg); opacity: 1; }
}
.dos-reflet {  /* le reflet holographique qui traverse la carte */
  inset: 0; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, .85) 46%, rgba(130, 255, 240, .55) 53%, transparent 66%) -160% 0 / 230% 100% no-repeat;
  animation: dos-reflet 4.4s ease-in-out infinite;
}
@keyframes dos-reflet { 0%, 38% { background-position: -160% 0; } 100% { background-position: 260% 0; } }
/* Le dos dessiné (09/11) : cadre doré, fond bleu et ses rayons, semis d'étoiles qui glisse, logo qui flotte, boule de
   poils qui rebondit, étoiles qui scintillent. */
.carte-dos.dessine {
  border-radius: 5cqw;
  background: linear-gradient(150deg, #fff3a0, #ffc21a 22%, #fff8d0 40%, #e59a12 60%, #ffe680 80%, #b8780a);
  box-shadow: 0 0 0 .7cqw rgba(12, 6, 32, .7), 0 4cqw 9cqw rgba(0, 0, 0, .5);
}
.carte-dos.dessine > .dos-fond { border-radius: 3.6cqw; }
.dd-motif {
  left: 5.5%; top: 4%; right: 5.5%; bottom: 4%; border-radius: 3.6cqw; opacity: .5;
  background:
    radial-gradient(circle, #fff 0 .55cqw, transparent .9cqw) 0 0 / 9cqw 9cqw,
    radial-gradient(circle, #b8f3ff 0 .4cqw, transparent .7cqw) 4.5cqw 4.5cqw / 9cqw 9cqw;
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent 24%, #000 62%); mask: radial-gradient(circle at 50% 46%, transparent 24%, #000 62%);
  animation: dd-motif 9s linear infinite;
}
@keyframes dd-motif { to { background-position: 9cqw 9cqw, 13.5cqw 13.5cqw; } }
.carte-dos > img.dd-logo { left: 8%; top: 31%; width: 84%; filter: drop-shadow(0 1.5cqw 2cqw rgba(8, 20, 80, .6)); animation: dd-logo 3.4s ease-in-out infinite; }
@keyframes dd-logo { 50% { transform: translateY(-4%) rotate(-3deg) scale(1.05); } }
.carte-dos > img.dd-boule { left: 39%; top: 61%; width: 22%; filter: drop-shadow(0 1.5cqw 1.5cqw rgba(8, 20, 80, .5)); animation: dd-boule .55s cubic-bezier(.3, 0, .7, 1) infinite alternate; }
@keyframes dd-boule { from { transform: translateY(-16%) scale(.95, 1.05); } to { transform: translateY(10%) scale(1.14, .86); } }
.dd-etoile {
  left: var(--x); top: var(--y); width: var(--l); aspect-ratio: 1;
  background: radial-gradient(circle, #fff 0 18%, #fff3a0 34%, transparent 68%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: dos-etoile calc(1.5s + var(--k) * .3s) ease-in-out calc(var(--k) * -.4s) infinite;
}
.dd-cadre {
  inset: 0; border-radius: 5cqw;
  box-shadow: inset 0 0 0 1cqw #fff3a0, inset 0 0 0 2cqw #b8780a, inset 0 0 0 2.6cqw rgba(255, 255, 255, .55), inset 0 0 5cqw 3cqw rgba(0, 0, 30, .35);
}
/* (une carte retournée ou rangée ne montre plus son dos : ses animations s'arrêtent) */
.carte-map.retournee .carte-dos *, .carte-map.retournee .carte-dos ::before, .carte-map.retournee .carte-dos ::after,
.collection.vide .carte-dos * { animation-play-state: paused; }

/* La face : une vraie carte à collectionner. Le cadre (aux couleurs de la rareté), puis, dans le panneau à la couleur de
   la map : le nom et le numéro, l'illustration de la map, son genre, le descriptif (l'histoire de la cinématique
   d'ouverture et une réplique du jeu), et le pied (rareté, série). */
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.carte-face {
  transform: rotateY(180deg); padding: 3.4cqw; border-radius: 5cqw;
  background: var(--cadre-carte, linear-gradient(135deg, #f6f7ff, #b9bcd6 22%, #ffffff 42%, #8e91ad 62%, #eef0fa 82%, #a5a8c4));
  box-shadow: 0 0 0 .7cqw rgba(12, 6, 32, .7), 0 4cqw 9cqw rgba(0, 0, 0, .5);
}
.cf-dedans {
  position: relative; isolation: isolate; height: 100%; display: flex; flex-direction: column; gap: 2cqw;
  padding: 2.6cqw 2.8cqw 2.4cqw; border-radius: 3cqw; overflow: hidden;
  background:
    radial-gradient(120% 55% at 50% 0, color-mix(in srgb, var(--couleur) 45%, #fff) 0, transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--couleur) 82%, #fff), var(--couleur) 30%, var(--fonce));
  box-shadow: inset 0 0 0 .5cqw rgba(255, 255, 255, .4), inset 0 -4cqw 8cqw rgba(0, 0, 0, .3);
}
.cf-dedans::before {  /* de fines rayures en biais, comme le carton des cartes */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14; pointer-events: none;
  background: repeating-linear-gradient(135deg, #fff 0 1.2cqw, transparent 1.2cqw 3.6cqw);
}
.cf-entete { display: flex; align-items: center; gap: 2cqw; }
.carte-nom {
  flex: 1; min-width: 0; padding: 1.5cqw 3cqw 1.9cqw; border-radius: 99cqw;
  font: 7.4cqw/1 "Luckiest Guy", sans-serif; letter-spacing: .02em; color: #fff; text-align: left;
  background: rgba(12, 6, 32, .55); box-shadow: inset 0 -.6cqw 0 rgba(0, 0, 0, .25);
  text-shadow: 0 .6cqw 0 var(--fonce); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.carte-nom.nom-long { font-size: 6.1cqw; }  /* (24/11 : « Christmas Market » tient en entier) */
.cf-numero {
  flex: none; display: grid; place-items: center; width: 12cqw; aspect-ratio: 1; border-radius: 50%;
  font: 4.2cqw/1 "Luckiest Guy", sans-serif; color: var(--fonce);
  background: radial-gradient(circle at 35% 30%, #fff, #eceaff 55%, #b9bcd6);
  box-shadow: 0 .7cqw 0 rgba(0, 0, 0, .35), inset 0 0 0 .5cqw rgba(0, 0, 0, .12);
}
.cf-art {
  position: relative; display: block; flex: none; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2.2cqw; background: #000;
  border: 1.3cqw solid #fff; box-shadow: 0 0 0 .6cqw rgba(12, 6, 32, .55), 0 1.6cqw 3.2cqw rgba(0, 0, 0, .45);
}
.cf-art img { width: 100%; height: 100%; object-fit: cover; }
.cf-art img.sombre { filter: brightness(1.45) saturate(1.1); }
.cf-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.cf-type {
  align-self: center; position: relative; z-index: 1; margin-top: -4.6cqw; padding: 1.1cqw 4cqw 1.4cqw; border-radius: 99cqw;
  font: 3.7cqw/1 "Luckiest Guy", sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: var(--fonce); background: linear-gradient(180deg, #fff, #e9e4ff);
  box-shadow: 0 0 0 .5cqw var(--fonce), 0 .9cqw 0 .5cqw rgba(0, 0, 0, .25);
}
.cf-texte {
  flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.8cqw; overflow: hidden;
  padding: 2.4cqw 3.4cqw; border-radius: 2.4cqw; text-align: left;
  font: 600 4.15cqw/1.32 system-ui, "Segoe UI", Roboto, Arial, sans-serif; color: #2a1a5e;
  background: linear-gradient(180deg, #fffdf6, #f1eaff);
  box-shadow: inset 0 0 0 .6cqw color-mix(in srgb, var(--couleur) 55%, #fff), 0 1.2cqw 2.4cqw rgba(0, 0, 0, .3);
}
.cf-texte em {
  display: block; padding-top: 1.6cqw; border-top: .4cqw dashed color-mix(in srgb, var(--couleur) 65%, #c8bde8);
  font-style: italic; font-weight: 700; text-align: center; color: color-mix(in srgb, var(--fonce) 80%, #2a1a5e);
}
.cf-pied { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; }
.carte-rarete {
  flex: none; white-space: nowrap; font: 3.6cqw/1 "Luckiest Guy", sans-serif; letter-spacing: .05em; text-transform: uppercase;
  padding: 1cqw 2.8cqw 1.3cqw; border-radius: 99cqw; color: #2b2b44; background: linear-gradient(180deg, #ffffff, #b9bcd6);
  border: .5cqw solid #4a4d6e;
}
.cf-serie { min-width: 0; font: 700 2.7cqw/1.1 system-ui, "Segoe UI", sans-serif; color: rgba(255, 255, 255, .92); text-shadow: 0 .3cqw 0 rgba(0, 0, 0, .45); text-align: right; }
.carte-face::after {  /* le reflet qui traverse la carte quand elle se retourne */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; mix-blend-mode: overlay; opacity: .85;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .85) 45%, rgba(120, 255, 240, .5) 52%, transparent 65%) -120% 0 / 250% 100% no-repeat;
}
.carte-map.retournee .carte-face::after { animation: holo 1.1s ease .35s; }
@keyframes holo { to { background-position: 220% 0; } }
/* Les raretés (24/11, demande de Matetos : « une seule légendaire, deux épiques, trois rares, les autres communes » ; leurs
   couleurs suivent celles du jeu, scripts/raretes.gd : bleu, violet, or). Commune : cadre argent, sans reflet. Rare : cadre
   bleu holographique qui ondule, illustration aux reflets arc-en-ciel. Épique : cadre violet et rose qui ondule, lueur
   violette. Légendaire (Ultimate Tidy Up, la carte mystère, la seule vraiment spectaculaire) : cadre or et arc-en-ciel,
   panneau bronze, toute la carte en holo, paillettes qui scintillent, nom qui grésille. Les reflets suivent la souris sur la
   carte en grand (--mx, --my, animations.js), sinon ils bougent tout seuls. */
.rarete-rare .carte-face {
  --cadre-carte: linear-gradient(120deg, #b8f3ff, #3fd8ff 16%, #ffffff 28%, #6f8bff 44%, #9ef0ff 58%, #1d6be6 74%, #b8f3ff) 0 0 / 300% 300%;
  box-shadow: 0 0 0 .7cqw #0b2f6e, 0 0 6cqw rgba(63, 216, 255, .55), 0 4cqw 9cqw rgba(0, 0, 0, .5);
  animation: cadre-ondule 6s linear infinite;
}
.rarete-rare .carte-rarete { color: #fff; background: linear-gradient(180deg, #6fe3ff, #1d6be6); border-color: #0b2f6e; text-shadow: 0 .4cqw 0 #0b2f6e; }
.rarete-epique .carte-face {
  --cadre-carte: linear-gradient(120deg, #f3dcff, #b65cff 16%, #ffffff 28%, #7a2ee6 42%, #ff9bf0 56%, #5a14c4 72%, #f3dcff) 0 0 / 300% 300%;
  box-shadow: 0 0 0 .7cqw #3a0b6e, 0 0 6.5cqw rgba(182, 92, 255, .7), 0 4cqw 9cqw rgba(0, 0, 0, .5);
  animation: cadre-ondule 5s linear infinite;
}
@keyframes cadre-ondule { to { background-position: 300% 300%; } }
.rarete-epique .carte-nom { background: linear-gradient(180deg, rgba(84, 20, 150, .9), rgba(40, 6, 80, .9)); text-shadow: 0 .6cqw 0 #24064a, 0 0 2cqw rgba(214, 139, 255, .8); }
.rarete-epique .cf-art { border-color: #f3dcff; }
.rarete-epique .carte-rarete { color: #fff; background: linear-gradient(180deg, #e7b0ff, #8b3dff); border-color: #3a0b6e; text-shadow: 0 .4cqw 0 #3a0b6e; }
.rarete-legendaire .carte-face {
  --cadre-carte: linear-gradient(120deg, #fff3a0, #ffb326 14%, #fff8d0 26%, #ff9a12 40%, #ffe680 52%, #ff5fd2 66%, #ffd84a 80%, #fff3a0) 0 0 / 300% 300%;
  box-shadow: 0 0 0 .7cqw #7a3a00, 0 0 7cqw #ffd84a, 0 0 15cqw rgba(255, 95, 210, .55), 0 4cqw 9cqw rgba(0, 0, 0, .5);
  animation: cadre-ondule 3.5s linear infinite;
}
.rarete-legendaire .cf-dedans { background: radial-gradient(120% 60% at 50% 0, rgba(255, 200, 60, .6), transparent 70%), linear-gradient(180deg, #7a4a06, #3a2205 48%, #160b02); }
.rarete-legendaire .carte-nom {
  text-align: center; letter-spacing: .3em; color: #fff3a0; background: linear-gradient(180deg, rgba(122, 58, 0, .92), rgba(46, 20, 0, .92));
  text-shadow: 0 .6cqw 0 #3a1a00, 0 0 2.4cqw rgba(255, 216, 74, .9); animation: gresille 2.4s steps(1) infinite;
}
@keyframes gresille { 0%, 86%, 100% { translate: 0 0; } 88% { translate: -1cqw 0; } 90% { translate: 1.2cqw 0; } 92% { translate: 0 0; } }
.rarete-legendaire .cf-art { border-color: #fff3a0; }
.rarete-legendaire .cf-type { color: #4a2600; background: linear-gradient(180deg, #fff8d6, #ffd84a); box-shadow: 0 0 0 .5cqw #4a2600, 0 0 3cqw rgba(255, 216, 74, .85); }
.rarete-legendaire .cf-texte { background: linear-gradient(180deg, #fffcef, #ffefc4); }
.rarete-legendaire .carte-rarete {
  color: #fff; border-color: #7a3a00; text-shadow: 0 .4cqw 0 #7a3a00;
  background: linear-gradient(90deg, #ff5fd2, #ffd84a, #7dff3a, #3fd8ff, #ff5fd2) 0 0 / 200% 100%; animation: arc-en-ciel 2s linear infinite;
}
@keyframes arc-en-ciel { to { background-position: 200% 0; } }
.rarete-rare .cf-art::after, .rarete-epique .cf-art::after, .rarete-legendaire .cf-art::after, .rarete-legendaire .cf-dedans::after {
  opacity: .4; mix-blend-mode: color-dodge;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .75), transparent 42%),
    repeating-linear-gradient(110deg, #ff5fd2 0%, #ffd84a 6%, #7dff3a 12%, #3fd8ff 18%, #8b3dff 24%, #ff5fd2 30%) var(--mx) var(--my) / 400% 400%;
  animation: holo-bouge 5s ease-in-out infinite alternate;
}
.rarete-epique .cf-art::after {  /* (le reflet de l'épique, violet et rose) */
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .75), transparent 42%),
    repeating-linear-gradient(110deg, #ff5fd2 0%, #b65cff 8%, #6f8bff 16%, #e7b0ff 24%, #ff5fd2 32%) var(--mx) var(--my) / 400% 400%;
}
.rarete-legendaire .cf-dedans::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: .3;
  background:
    radial-gradient(circle, #fff 0 .35cqw, transparent .6cqw) 0 0 / 5cqw 5cqw,
    radial-gradient(circle, #fff 0 .25cqw, transparent .5cqw) 2.5cqw 1.7cqw / 7cqw 6cqw,
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .6), transparent 45%),
    repeating-linear-gradient(110deg, #ff5fd2 0%, #ffd84a 6%, #7dff3a 12%, #3fd8ff 18%, #8b3dff 24%, #ff5fd2 30%) var(--mx) var(--my) / 400% 400%;
  animation: holo-bouge 4s ease-in-out infinite alternate, paillettes 1.2s steps(2) infinite;
}
@keyframes holo-bouge { from { --mx: 15%; --my: 25%; } to { --mx: 85%; --my: 75%; } }
@keyframes paillettes { 50% { opacity: .18; } }
.carte-map.suit .cf-art::after { animation: none; }
.carte-map.suit .cf-dedans::after { animation: paillettes 1.2s steps(2) infinite; }

/* La carte en grand, tenue au milieu : elle se balance doucement (au doigt) ou penche vers la souris (animations.js pose
   alors « rotate » et .suit). */
.carte-map.tenue .carte-interieur { animation: balance 2.8s ease-in-out infinite alternate; }
.carte-map.tenue.suit .carte-interieur { animation: none; transition: rotate .15s ease-out; }
@keyframes balance { from { rotate: .35 1 0 9deg; } to { rotate: .35 -1 0 9deg; } }
/* L'attente avant de la retourner : rare, elle tremble et s'illumine de bleu ; épique, elle tremble plus longtemps et
   s'illumine de violet ; légendaire, l'écran s'assombrit, elle s'élève, tremble de plus en plus fort et la lumière dorée
   déborde de partout. */
.carte-map.charge-rare .carte-interieur { animation: tremble-rare .75s linear both; }
.carte-map.charge-rare .carte-dos { animation: lueur-rare .75s ease-in both; }
@keyframes tremble-rare {
  0%, 100% { translate: 0 0; } 15% { translate: -1.2cqw .4cqw; } 30% { translate: 1.4cqw -.4cqw; } 45% { translate: -1.8cqw 0; }
  60% { translate: 2cqw .6cqw; } 75% { translate: -2.2cqw -.5cqw; } 90% { translate: 1.6cqw 0; }
}
@keyframes lueur-rare { to { filter: brightness(1.5) drop-shadow(0 0 4cqw #3fd8ff) drop-shadow(0 0 9cqw rgba(63, 216, 255, .7)); } }
.carte-map.charge-epique .carte-interieur { animation: tremble-rare 1.05s linear both; }
.carte-map.charge-epique .carte-dos { animation: lueur-epique 1.05s ease-in both; }
@keyframes lueur-epique { to { filter: brightness(1.6) saturate(1.2) drop-shadow(0 0 4.5cqw #b65cff) drop-shadow(0 0 11cqw rgba(214, 139, 255, .75)); } }
.carte-map.charge-legendaire .carte-interieur { animation: tremble-legendaire 1.6s cubic-bezier(.4, 0, 1, 1) both; }
.carte-map.charge-legendaire .carte-dos { animation: lueur-legendaire 1.6s ease-in both; }
@keyframes tremble-legendaire {
  0% { translate: 0 0; scale: 1; }
  10% { translate: -.6cqw -1cqw; } 20% { translate: .8cqw -2cqw; } 30% { translate: -1.2cqw -3cqw; scale: 1.02; }
  40% { translate: 1.6cqw -3.6cqw; } 50% { translate: -2cqw -4.4cqw; scale: 1.04; } 60% { translate: 2.6cqw -5cqw; }
  70% { translate: -3cqw -5.6cqw; scale: 1.06; } 80% { translate: 3.4cqw -6cqw; } 90% { translate: -3.8cqw -6.4cqw; scale: 1.08; }
  100% { translate: 0 -6.6cqw; scale: 1.1; }
}
@keyframes lueur-legendaire {
  to { filter: brightness(2.1) saturate(1.3) drop-shadow(0 0 5cqw #ffd84a) drop-shadow(0 0 14cqw rgba(255, 95, 210, .8)); }
}

/* Le voile qui assombrit tout pour la légendaire, et les rayons derrière la carte retournée (blancs pour une commune, bleus
   pour une rare, violets pour une épique, dorés et doublés pour la légendaire). */
.booster-voile, .booster-rayons { display: none; }
.anim-pret .booster-voile {
  display: block; position: absolute; left: 50%; top: 52%; z-index: 30; width: 300vmax; aspect-ratio: 1; translate: -50% -50%;
  pointer-events: none; opacity: 0; transition: opacity .7s ease;
  background: radial-gradient(circle, rgba(18, 6, 46, .4) 0, rgba(6, 2, 20, .9) 22%);
}
.booster-voile.on { opacity: 1; }
.anim-pret .booster-rayons {
  --rayon: rgba(111, 227, 255, .45); --lueur-rayons: rgba(111, 227, 255, .5);
  display: block; position: absolute; left: 50%; top: 52%; z-index: 50; width: min(170vmax, 2400px); aspect-ratio: 1; translate: -50% -50%;
  pointer-events: none; opacity: 0; scale: .2; transition: opacity .5s ease, scale .9s var(--ressort);
  background: radial-gradient(circle, var(--lueur-rayons) 0, transparent 22%), repeating-conic-gradient(from 0deg, var(--rayon) 0 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 16%, transparent 40%);
  mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 16%, transparent 40%);
  animation: rayons-tournent 16s linear infinite;
}
.anim-pret .booster-rayons::after {  /* (légendaire) une deuxième couronne, rose, qui tourne dans l'autre sens */
  content: ""; position: absolute; inset: 12%; border-radius: 50%; opacity: 0; transition: opacity .5s ease;
  background: repeating-conic-gradient(from 8deg, rgba(255, 95, 210, .45) 0 3deg, transparent 3deg 12deg);
  animation: rayons-tournent 9s linear infinite reverse;
}
.booster-rayons.on { opacity: 1; scale: 1; }
.booster-rayons.blanc { --rayon: rgba(255, 255, 255, .28); --lueur-rayons: rgba(255, 255, 255, .35); }
.booster-rayons.epique { --rayon: rgba(190, 110, 255, .55); --lueur-rayons: rgba(231, 176, 255, .7); animation-duration: 11s; }
.booster-rayons.legendaire { --rayon: rgba(255, 216, 74, .6); --lueur-rayons: rgba(255, 236, 160, .85); animation-duration: 6s; }
.booster-rayons.legendaire::after { opacity: 1; }

/* L'annonce de la rareté : elle tombe lettre par lettre sur la carte retournée, puis s'envole. */
.annonce-rarete {
  position: absolute; left: 0; right: 0; top: 66%; z-index: 80; margin: 0; text-align: center; pointer-events: none; opacity: 0;
  font: 40px/1 "Luckiest Guy", sans-serif; letter-spacing: .04em; color: #fff; -webkit-text-stroke: 3px #2b0f6b; paint-order: stroke fill;
  text-shadow: 0 5px 0 #2b0f6b, 0 0 24px rgba(0, 0, 0, .55);
}
.annonce-rarete .l { display: inline-block; white-space: pre; }
.annonce-rarete.montre { animation: annonce 1.6s var(--ressort) both; }
.annonce-rarete.montre .l { animation: annonce-lettre .55s var(--ressort) calc(var(--i) * 40ms) both; }
.annonce-rarete.rare { font-size: 50px; color: #9ef0ff; -webkit-text-stroke-color: #0b2f6e; text-shadow: 0 5px 0 #0b2f6e, 0 0 30px rgba(63, 216, 255, .95); }
.annonce-rarete.epique { font-size: min(54px, 13vw); color: #f3dcff; -webkit-text-stroke-color: #3a0b6e; text-shadow: 0 6px 0 #3a0b6e, 0 0 32px rgba(182, 92, 255, .95); }
.annonce-rarete.epique.montre { animation-duration: 2s; }
.annonce-rarete.epique.montre .l { animation: annonce-lettre .55s var(--ressort) calc(var(--i) * 45ms) both; }
.annonce-rarete.legendaire { font-size: min(60px, 9.6vw); -webkit-text-stroke-color: #4a1600; text-shadow: 0 6px 0 #4a1600, 0 0 34px #ffd84a, 0 0 70px #ff5fd2; }
.annonce-rarete.legendaire .l { color: hsl(calc(var(--i) * 32deg + 35deg) 100% 66%); }
.annonce-rarete.legendaire.montre { animation-duration: 3s; }
.annonce-rarete.legendaire.montre .l { animation: annonce-lettre .6s var(--ressort) calc(var(--i) * 55ms) both, annonce-saute .9s ease-in-out calc(.7s + var(--i) * 60ms) 2; }
/* (24/11) Un mot ne se coupe pas : on ne passe à la ligne qu'entre deux mots (animations.js, .m). */
.annonce-rarete .m { display: inline-block; white-space: nowrap; }
@keyframes annonce {
  0% { opacity: 0; transform: scale(.3) rotate(-10deg); } 14% { opacity: 1; transform: scale(1.18) rotate(3deg); }
  26% { transform: scale(1) rotate(-3deg); } 84% { opacity: 1; transform: scale(1) rotate(-3deg); }
  100% { opacity: 0; transform: translateY(-50px) scale(1.12) rotate(-3deg); }
}
@keyframes annonce-lettre { from { opacity: 0; transform: translateY(-1.3em) rotate(-25deg) scale(.2); } }
@keyframes annonce-saute { 50% { transform: translateY(-.28em) scale(1.12); } }

/* Les étincelles, confettis et éclats (animations.js) : par-dessus tout. */
.particule { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; }
.particule.etoile { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.particule.eclat { clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.particule.confetti { border-radius: 2px; }
.particule.rond { border-radius: 50%; }
.flash-ecran {
  position: fixed; inset: 0; z-index: 95; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #fff 0, #fff8dc 35%, rgba(255, 230, 160, .75) 70%, rgba(255, 150, 230, .5));
}

/* Le sachet : il flotte, penche vers la souris (--rx, --ry), un reflet le traverse et des étoiles scintillent autour. On
   peut le saisir n'importe où ; glisser vers la droite déchire la bande du haut (touch-action : le doigt qui glisse de
   côté ne fait pas défiler la page). */
.booster {
  position: absolute; left: 50%; top: 52%; z-index: 40; width: min(70vw, 44svh, 340px); aspect-ratio: 854 / 1460; margin: 0; padding: 0;
  translate: -50% -50%; border: 0; background: none; display: none; perspective: 900px; container-type: inline-size;
  cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  filter: drop-shadow(0 0 30px rgba(190, 90, 255, .75)) drop-shadow(0 20px 30px rgba(0, 0, 0, .5));
}
.booster:active { cursor: grabbing; }
.anim-pret .booster { display: block; animation: booster-flotte 2.6s ease-in-out infinite; }
.booster[hidden] { display: none !important; }
.booster.tire, .booster.ouvert { animation: none; }
@keyframes booster-flotte { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
.booster:hover { filter: drop-shadow(0 0 44px rgba(255, 210, 90, .95)) drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.booster-sachet {
  position: absolute; inset: 0; display: block; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ressort);
}
.booster.tire .booster-sachet { transition-duration: .15s; }
.booster.indice .booster-sachet { animation: indice-secoue .5s ease-in-out; }
@keyframes indice-secoue { 20% { translate: -3cqw 0; rotate: -2deg; } 50% { translate: 3cqw 0; rotate: 2deg; } 80% { translate: -1.5cqw 0; rotate: -1deg; } }
.sachet-morceau { position: absolute; inset: 0; display: block; pointer-events: none; }
.sachet-lambeau { z-index: 2; filter: drop-shadow(0 2cqw 2cqw rgba(20, 0, 50, .45)); }
.sachet-lambeau::after {  /* l'envers argenté de la bande, qui se voit de plus en plus en la soulevant */
  content: ""; position: absolute; inset: 0; opacity: calc(var(--p, 0) * .55);
  background: linear-gradient(180deg, #f4eaff, #b9a6e8 70%, #8e7ad0);
}
.sachet-art { position: absolute; inset: 0; display: block; }
.sachet-art.image img { width: 100%; height: 100%; display: block; }
.sachet-art.image .sa-reflet {
  -webkit-mask: url("images/booster/booster.webp") center / 100% 100% no-repeat; mask: url("images/booster/booster.webp") center / 100% 100% no-repeat;
}
/* Le sachet dessiné : bords du haut et du bas sertis en dents de scie (le masque), pochette métallisée. */
.sachet-art.dessin {
  --z: 4.4cqw;
  -webkit-mask:
    conic-gradient(from 135deg at 50% 0, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / var(--z) calc(var(--z) / 2) repeat-x,
    conic-gradient(from -45deg at 50% 100%, #0000, #000 1deg 89deg, #0000 90deg) 0 100% / var(--z) calc(var(--z) / 2) repeat-x,
    linear-gradient(#000 0 0) 0 50% / 100% calc(100% - var(--z) + 1px) no-repeat;
  mask:
    conic-gradient(from 135deg at 50% 0, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / var(--z) calc(var(--z) / 2) repeat-x,
    conic-gradient(from -45deg at 50% 100%, #0000, #000 1deg 89deg, #0000 90deg) 0 100% / var(--z) calc(var(--z) / 2) repeat-x,
    linear-gradient(#000 0 0) 0 50% / 100% calc(100% - var(--z) + 1px) no-repeat;
}
.sachet-art > * { position: absolute; display: block; pointer-events: none; }
.sa-fond {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 0, 50, .5), transparent 13%, rgba(255, 255, 255, .14) 50%, transparent 87%, rgba(20, 0, 50, .5)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 2cqw, transparent 2cqw 4cqw),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 2cqw, transparent 2cqw 4cqw),
    radial-gradient(120% 70% at 50% 47%, #ffa6ea 0, #d64dff 24%, #7a2cf0 50%, #3a138f 76%, #1d0a52);
}
.sa-rayons {
  left: 50%; top: 47%; width: 180cqw; aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 160, .4) 0 6deg, transparent 6deg 16deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, .5) 20%, transparent 44%);
  mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, .5) 20%, transparent 44%);
  animation: rayons-tournent 20s linear infinite;
}
.sa-logo { left: 10%; top: 15.2%; width: 80%; filter: drop-shadow(0 1cqw 1.4cqw rgba(20, 0, 60, .65)); }
.sa-eventail { left: 50%; top: 31.5%; width: 0; height: 0; }
.sa-eventail img {
  position: absolute; left: -15cqw; top: 0; width: 30cqw; max-width: none; aspect-ratio: 944 / 1373; object-fit: cover; border-radius: 2.4cqw;
  border: 1.4cqw solid #fff; box-shadow: 0 1.5cqw 3cqw rgba(20, 0, 60, .55); transform-origin: 50% 130%;
  animation: eventail 3.2s ease-in-out infinite;
}
.sa-eventail img:nth-child(1) { --r: -17deg; translate: -14cqw 3.5cqw; }
.sa-eventail img:nth-child(2) { --r: 0deg; z-index: 1; animation-delay: -1s; }
.sa-eventail img:nth-child(3) { --r: 17deg; translate: 14cqw 3.5cqw; animation-delay: -2s; }
@keyframes eventail { 0%, 100% { rotate: var(--r); } 50% { rotate: calc(var(--r) * 1.25); translate: var(--tx, 0) -1.5cqw; } }
.sa-eventail img:nth-child(1) { --tx: -14cqw; } .sa-eventail img:nth-child(3) { --tx: 14cqw; }
.sa-titre { left: 17%; top: 55.5%; width: 66%; rotate: -4deg; filter: drop-shadow(0 1.2cqw 1.2cqw rgba(20, 0, 60, .6)); }
.sa-booster {
  left: 0; right: 0; top: 71.5%; text-align: center; font: 13cqw/1 "Luckiest Guy", sans-serif; letter-spacing: .04em; text-transform: uppercase;
  color: transparent; background: linear-gradient(180deg, #fff6c8, #ffd84a 45%, #ff9a12) text; -webkit-background-clip: text;
  -webkit-text-stroke: 1.3cqw #4a1590; paint-order: stroke fill; rotate: -4deg;
  filter: drop-shadow(0 1.1cqw 0 #2b0f6b) drop-shadow(0 0 3cqw rgba(255, 210, 90, .55));
}
.sa-edition {
  left: 0; right: 0; top: 84.5%; text-align: center; font: 3.3cqw/1 "Luckiest Guy", sans-serif; letter-spacing: .07em;
  text-transform: uppercase; color: #fff3a0; text-shadow: 0 .45cqw 0 #2b0f6b;
}
.sa-badge {
  right: 3%; top: 25%; width: 22cqw; aspect-ratio: 1; display: grid; place-content: center; text-align: center;
  font: 3.4cqw/1 "Luckiest Guy", sans-serif; letter-spacing: .03em; color: #fff; text-transform: uppercase; text-shadow: 0 .4cqw 0 #8c0a2a;
  background: radial-gradient(circle at 40% 35%, #ffb36a, #ff4a6a 58%, #c4123e);
  clip-path: polygon(50.0% 0.0%, 60.6% 10.4%, 75.0% 6.7%, 79.0% 21.0%, 93.3% 25.0%, 89.6% 39.4%, 100.0% 50.0%, 89.6% 60.6%, 93.3% 75.0%, 79.0% 79.0%, 75.0% 93.3%, 60.6% 89.6%, 50.0% 100.0%, 39.4% 89.6%, 25.0% 93.3%, 21.0% 79.0%, 6.7% 75.0%, 10.4% 60.6%, 0.0% 50.0%, 10.4% 39.4%, 6.7% 25.0%, 21.0% 21.0%, 25.0% 6.7%, 39.4% 10.4%);
  rotate: 12deg; animation: badge-bat 1.4s ease-in-out infinite;
}
.sa-badge b { display: block; font-size: 9.5cqw; font-weight: normal; line-height: .95; }
@keyframes badge-bat { 50% { scale: 1.1; rotate: 4deg; } }
.sa-boule { left: 77%; top: 73.5%; width: 19cqw; filter: drop-shadow(0 1.2cqw 1.2cqw rgba(20, 0, 60, .5)); animation: dd-boule .5s cubic-bezier(.3, 0, .7, 1) infinite alternate; }
.sa-serti {
  left: 0; right: 0; height: 7%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 1cqw, rgba(60, 0, 90, .22) 1cqw 2.2cqw),
    linear-gradient(180deg, #ffe0fa, #e2b2ff 40%, #b07aff 72%, #8a52e8);
}
.sa-serti-haut { top: 0; box-shadow: inset 0 -.7cqw 0 rgba(40, 0, 80, .35); }
.sa-serti-bas { bottom: 0; box-shadow: inset 0 .7cqw 0 rgba(40, 0, 80, .35); }
.sa-reflet {
  inset: 0; mix-blend-mode: soft-light;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .95) 44%, rgba(255, 220, 255, .7) 50%, transparent 64%) -170% 0 / 80% 100% no-repeat;
  animation: booster-reflet 3s ease-in-out infinite;
}
@keyframes booster-reflet { 55%, 100% { background-position: 280% 0; } }
/* (dans la bande et le lambeau, on ne voit que le haut du sachet ; dans le corps, que le bas) */
.sachet-bande .sachet-art > :not(.sa-fond, .sa-rayons, .sa-serti-haut, .sa-reflet, img:not([class])),
.sachet-lambeau .sachet-art > :not(.sa-fond, .sa-rayons, .sa-serti-haut, .sa-reflet, img:not([class])),
.sachet-corps .sa-serti-haut { display: none; }
/* La fente : la lumière qui sort de la déchirure, de plus en plus forte (--p), et ses rayons qui montent.
   (24/11, Matetos : « l'effet de lumière ne coïncide pas avec l'ouverture du booster ») Elle va exactement d'un bord à l'autre
   du sachet, à la hauteur de la déchirure, et s'arrête au bout de la déchirure (--p) : le dessin de Matetos a des marges
   transparentes de 3,4 % de chaque côté (--bord-g, --bord-d, mesurées sur booster.webp à 13 % de sa hauteur) ; le sachet dessiné
   n'en a pas. Ni la lumière ni ses rayons ne débordent sur les côtés (clip-path : on ne coupe que la gauche et la droite). */
.booster { --bord-g: 0%; --bord-d: 0%; }
.booster:has(.sachet-art.image) { --bord-g: 3.4%; --bord-d: 3.5%; }
.sachet-fente {
  position: absolute; left: var(--bord-g); top: 13%; z-index: 3; height: 0; pointer-events: none;
  width: clamp(0%, calc(var(--p, 0) * 100% - var(--bord-g)), calc(100% - var(--bord-g) - var(--bord-d)));
  clip-path: inset(-400cqw 0 -30cqw 0);
}
.sachet-fente::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1.4cqw; height: 2.8cqw; border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 10%, #fff6c0 50%, #fff 90%, rgba(255, 255, 255, .2));
  box-shadow: 0 0 4cqw 1.6cqw rgba(255, 230, 140, .95), 0 0 11cqw 4cqw rgba(255, 150, 230, .55);
  opacity: min(1, calc(var(--p, 0) * 4));
}
.sachet-fente::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34cqw; transform-origin: 50% 100%;
  background: linear-gradient(0deg, rgba(255, 244, 190, .85), rgba(255, 200, 240, .25) 60%, transparent);
  -webkit-mask: repeating-linear-gradient(100deg, #000 0 2.6cqw, transparent 2.6cqw 6.4cqw); mask: repeating-linear-gradient(100deg, #000 0 2.6cqw, transparent 2.6cqw 6.4cqw);
  opacity: min(1, calc(var(--p, 0) * 1.6)); animation: fente-rayons .9s ease-in-out infinite alternate;
}
@keyframes fente-rayons { from { transform: scaleY(.65); } to { transform: scaleY(1.15); } }
.booster.ouvert .sachet-fente { width: calc(100% - var(--bord-g) - var(--bord-d)); }
.booster.ouvert .sachet-fente::after { height: 150cqw; transition: height .6s cubic-bezier(.2, .8, .3, 1); }
/* Le guide : la ligne pointillée à déchirer, les ciseaux, les flèches, et le doigt fantôme qui montre le geste. */
.sachet-guide { position: absolute; left: 4%; right: 4%; top: 13%; z-index: 4; height: 0; pointer-events: none; transition: opacity .3s ease; }
.guide-ligne {
  position: absolute; left: 0; right: 0; top: -.35cqw; height: .7cqw;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .95) 0 2.4cqw, transparent 2.4cqw 4cqw);
  filter: drop-shadow(0 0 .8cqw rgba(255, 255, 255, .9)); animation: guide-defile .7s linear infinite;
}
@keyframes guide-defile { to { background-position: 4cqw 0; } }
.guide-ciseaux { position: absolute; left: -3cqw; top: -5.2cqw; width: 10.4cqw; height: 10.4cqw; color: #fff; filter: drop-shadow(0 .5cqw 0 #2b0f6b); animation: ciseaux 1.4s ease-in-out infinite; }
.guide-ciseaux svg { width: 100%; height: 100%; }
@keyframes ciseaux { 50% { translate: 5cqw 0; } }
.guide-fleches {
  position: absolute; right: 0; top: -12cqw; font: 9cqw/1 "Luckiest Guy", sans-serif; letter-spacing: -.12em; color: #fff3a0;
  text-shadow: 0 .6cqw 0 #2b0f6b; animation: fleches 1s ease-in-out infinite;
}
@keyframes fleches { 50% { translate: 2.4cqw 0; opacity: .55; } }
.guide-doigt {
  position: absolute; left: 0; top: -4.5cqw; width: 9cqw; height: 9cqw; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 0 32%, rgba(255, 255, 255, .45) 52%, transparent 72%);
  box-shadow: 0 0 3cqw 1cqw rgba(255, 255, 255, .55);
}
.booster.indice .guide-doigt { animation: doigt-glisse 1.3s cubic-bezier(.45, 0, .2, 1) 2; }
@keyframes doigt-glisse { 0% { opacity: 0; left: -2%; scale: 1.5; } 14% { opacity: 1; scale: 1; } 82% { opacity: 1; left: 88%; } 100% { opacity: 0; left: 92%; scale: .8; } }
.booster.entame .sachet-guide, .booster.ouvert .sachet-guide { opacity: 0; }
/* Les miettes de papier qui s'échappent de la déchirure. */
.miette { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; border-radius: .5cqw; }
/* Les étincelles autour du sachet. */
.booster-etincelles { position: absolute; inset: 0; pointer-events: none; transition: opacity .3s ease; }
.booster-etincelles i {
  position: absolute; left: var(--x); top: var(--y); width: var(--l); aspect-ratio: 1;
  background: radial-gradient(circle, #fff 0 16%, #fff3a0 32%, rgba(255, 210, 90, 0) 66%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: dos-etoile calc(1.3s + var(--k) * .2s) ease-in-out calc(var(--k) * -.4s) infinite;
}
.booster-etincelles i:nth-child(even) { background: radial-gradient(circle, #fff 0 16%, #b8f3ff 32%, rgba(120, 220, 255, 0) 66%); }
.booster.entame .booster-etincelles, .booster.ouvert .booster-etincelles { opacity: 0; }
/* L'explosion (et la légendaire) : un éclair blanc qui grossit, et des rayons qui tournent. */
.collection::before, .collection::after {
  content: ""; position: absolute; left: 50%; top: 52%; pointer-events: none; z-index: 35; opacity: 0;
}
.collection::after { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, #ffd84a 50%, transparent 70%); }
.collection::before {
  width: 900px; height: 900px; margin: -450px 0 0 -450px;
  background: repeating-conic-gradient(rgba(255, 230, 140, .55) 0 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 60%); mask-image: radial-gradient(circle, #000 0, transparent 60%);
}
.collection.flash::after { animation: flash-explosion .8s ease-out; }
.collection.flash::before { animation: rayons-explosion 1.4s ease-out; }
@keyframes flash-explosion { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(40); } }
@keyframes rayons-explosion { 0% { opacity: 0; transform: scale(.2) rotate(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3) rotate(80deg); } }

/* --- Maps, 2 : le petit tas. La scène colle à l'écran ; en descendant, la carte du dessus est balayée hors de l'écran
   pour montrer la suivante, et les photos de sa map arrivent dessous (animations.js : --a = arrivée du tas, --s = carte
   balayée, de 0 à 1 ; --e = photos qui arrivent, --l = photos qui partent). Sans animation : les photos à la suite. -- */
.chapitre-nom {
  display: inline-block; margin: 0; padding: 7px 20px 9px; font-size: 24px; line-height: 1.1; color: #fff; white-space: nowrap;
  border-radius: 999px; border: 4px solid var(--fonce);
  background: linear-gradient(180deg, color-mix(in srgb, var(--couleur) 70%, #fff), var(--couleur) 55%, color-mix(in srgb, var(--couleur) 72%, #000));
  box-shadow: 0 5px 0 var(--fonce), 0 12px 26px rgba(0, 0, 0, .4);
  text-shadow: 0 2px 0 var(--fonce), 0 0 1px var(--fonce);
}
.tas-cartes { display: none; }
.tas-carte .carte-face { transform: none; }
.tas-groupe { text-align: center; margin: 0 auto 50px; max-width: 560px; }
.tas-accroche {
  margin: 10px 0 12px; font: 19px/1.25 "Luckiest Guy", sans-serif; letter-spacing: .02em; color: #fff;
  text-shadow: 0 3px 0 var(--fonce), 0 0 18px color-mix(in srgb, var(--couleur) 50%, transparent);
}
.tas-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tas-photos img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px;
  border: 3px solid var(--couleur); box-shadow: 0 0 0 3px var(--fonce), 0 12px 24px rgba(0, 0, 0, .45);
}
.tas-photos img:first-child { grid-column: span 2; }
.tas-sombre .tas-photos img { filter: brightness(1.4) saturate(1.15); }
.anim-pret .tas-maps { height: calc(var(--n, 5) * 80svh + 60svh); }  /* (24/11 : 10 cartes, --n dans index.html) */
.anim-pret .tas-scene {
  position: sticky; top: 46px; height: calc(100svh - 46px); display: grid; grid-template-rows: auto 1fr; gap: 6px; padding: 8px 0 12px;
}
.anim-pret .tas-cartes { display: block; position: relative; height: min(24svh, 190px); }
.anim-pret .tas-carte {
  --m: calc(var(--k) - (var(--n, 5) - 1) / 2);  /* (sa place dans le tas, depuis le milieu) */
  position: absolute; left: 50%; top: 50%; height: 100%; width: auto; translate: -50% -50%; z-index: calc(20 - var(--k));
  transform: translateY(calc((1 - var(--a, 1)) * -60vh)) translateX(calc(var(--s, 0) * -150vw + var(--m) * 3px))
    rotate(calc(var(--m) * 2deg + (1 - var(--a, 1)) * 60deg - var(--s, 0) * 75deg)) scale(calc(1 - var(--s, 0) * .35));
}
.anim-pret .tas-maps:not(.pret) .tas-scene { visibility: hidden; }  /* (tant que le booster n'est pas vidé) */
.anim-pret .tas-carte { transition: opacity .4s ease; }
.anim-pret .tas-groupes { position: relative; }
.anim-pret .tas-groupe {
  position: absolute; inset: 0; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: calc(var(--e, 0) * (1 - var(--l, 0)));
  transform: translateX(calc((1 - var(--e, 0)) * 60% - var(--l, 0) * 60%)) rotate(calc((1 - var(--e, 0)) * 5deg - var(--l, 0) * 5deg));
}
.anim-pret .tas-photos { width: 100%; }
.anim-pret .tas-photos img { transform: translateY(calc((1 - var(--e, 0)) * 120px)) rotate(calc((1 - var(--e, 0)) * 12deg)) scale(calc(.75 + var(--e, 0) * .25)); }
.anim-pret .tas-photos img:nth-child(2) { transform: translateY(calc((1 - var(--e, 0)) * 200px)) rotate(calc((1 - var(--e, 0)) * -18deg)) scale(calc(.7 + var(--e, 0) * .3)); }
.anim-pret .tas-photos img:nth-child(3) { transform: translateY(calc((1 - var(--e, 0)) * 270px)) rotate(calc((1 - var(--e, 0)) * 18deg)) scale(calc(.7 + var(--e, 0) * .3)); }

/* --- L'écran des drapeaux (11/11, avant l'ouverture) : le logo, « Choisis ta langue », et deux drapeaux qui flottent au vent.
   Il n'existe que si le script de la page a posé .choix-langue (sinon : pas d'écran, la page s'ouvre directement). Le drapeau
   choisi saute, l'autre s'efface, puis l'écran s'efface sur le rideau de l'ouverture (site.js : .partie). */
.langue { display: none; }
html.choix-langue { overflow: hidden; }
.choix-langue .langue {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-content: center; justify-items: center; gap: clamp(18px, 4.5vh, 40px);
  padding: 24px 16px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 36%, #3b1d8f 0%, #1d1050 46%, #120a2e 82%);
}
.choix-langue .ouverture { animation: none; }  /* (le rideau attend derrière qu'on ait choisi) */
.langue-logo { width: min(320px, 66vw); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); animation: langue-logo 1s var(--ressort) both; }
.langue-question {
  margin: 0; font: clamp(30px, 7.4vw, 54px)/1.05 "Luckiest Guy", sans-serif; letter-spacing: .02em; color: var(--jaune);
  -webkit-text-stroke: 2px #8a2d00; text-shadow: 0 4px 0 #8a2d00, 0 0 22px rgba(255, 170, 0, .35);
  animation: langue-monte .8s var(--ressort) .2s both;
}
.langue-question span {
  display: block; margin-top: 10px; font-size: .56em; color: var(--violet-clair); -webkit-text-stroke: 0; text-shadow: 0 3px 0 #2a0f6e;
}
.langue-drapeaux { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(22px, 7vw, 64px); }
.drapeau {
  display: grid; justify-items: center; gap: 16px; text-decoration: none; color: #fff; -webkit-tap-highlight-color: transparent;
  font: clamp(21px, 4.8vw, 30px)/1 "Luckiest Guy", sans-serif; letter-spacing: .03em; text-shadow: 0 3px 0 var(--contour);
  animation: langue-drapeau .85s var(--ressort) .35s both; outline: none;
}
.drapeau + .drapeau { animation-delay: .48s; }
.drapeau-tissu {
  position: relative; display: block; width: clamp(128px, 36vw, 210px); aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 5px #fff, 0 0 0 10px var(--contour), 0 20px 36px rgba(0, 0, 0, .5);
  transform-origin: 0 50%; animation: drapeau-flotte 2.8s ease-in-out infinite;
  transition: scale .4s var(--ressort), box-shadow .3s ease;
}
.drapeau + .drapeau .drapeau-tissu { animation-delay: -1.4s; }
.drapeau-tissu svg { display: block; width: 100%; height: 100%; }
.drapeau-tissu::after {  /* les plis du tissu : une lumière et une ombre qui courent */
  content: ""; position: absolute; inset: 0; pointer-events: none; background-size: 240% 100%;
  background-image: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, .38) 30%, transparent 42%, transparent 58%, rgba(0, 0, 0, .22) 70%, transparent 82%);
  animation: drapeau-plis 2.8s ease-in-out infinite;
}
.drapeau + .drapeau .drapeau-tissu::after { animation-delay: -1.4s; }
.drapeau:hover .drapeau-tissu, .drapeau:focus-visible .drapeau-tissu {
  scale: 1.1; box-shadow: 0 0 0 5px var(--jaune), 0 0 0 10px #8a2d00, 0 0 46px rgba(255, 194, 26, .6), 0 20px 36px rgba(0, 0, 0, .5);
}
.drapeau:hover .drapeau-nom, .drapeau:focus-visible .drapeau-nom { color: var(--jaune); }
.drapeau:active .drapeau-tissu { scale: .92; }
@keyframes drapeau-flotte {
  0%, 100% { transform: perspective(520px) rotateY(-12deg) skewY(-2.5deg); }
  50% { transform: perspective(520px) rotateY(12deg) skewY(2.5deg); }
}
@keyframes drapeau-plis { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes langue-logo { from { opacity: 0; transform: translateY(-70px) scale(.35) rotate(-14deg); } }
@keyframes langue-monte { from { opacity: 0; transform: translateY(44px) scale(.8); } }
@keyframes langue-drapeau { from { opacity: 0; transform: translateY(90px) scale(.3) rotate(16deg); } }
.langue.partie { animation: langue-part .5s ease .3s forwards; pointer-events: none; }
.langue.partie .drapeau.choisi { animation: drapeau-choisi .55s var(--ressort) both; }
.langue.partie .drapeau:not(.choisi), .langue.partie .langue-question { transition: opacity .25s ease, transform .3s ease; opacity: 0; transform: scale(.7); }
@keyframes drapeau-choisi { 0% { transform: none; } 45% { transform: scale(1.28) rotate(-4deg); } 100% { transform: scale(1.18); } }
@keyframes langue-part { to { opacity: 0; transform: scale(1.05); } }

/* --- Bidouf : la vitrine où il essaie ses cosmétiques (10/11) ----------------------------------------------------------
   La vidéo (le Bidouf du jeu qui tourne sur son socle, ses tenues qui changent dans un nuage) dans un cadre comme les cartes ;
   le nom du cosmétique qui arrive (animations.js : .montre), et les trois catégories, celle qui passe allumée (.actif). */
.bloc-bidouf { padding-bottom: 46px; }
.titre-bidouf { color: var(--violet-clair); text-shadow: 0 4px 0 #3b1580, 0 0 22px rgba(160, 100, 255, .5); -webkit-text-stroke: 2px #3b1580; }
.vitrine-bidouf { display: grid; justify-items: center; gap: 44px; }
.vitrine {
  position: relative; width: min(100%, 420px); aspect-ratio: 4 / 5; border-radius: 30px; background: #160b3c;
  border: 4px solid var(--violet-clair);
  box-shadow: 0 0 0 4px #2a0f6e, 0 0 50px rgba(139, 61, 255, .5), 0 26px 50px rgba(0, 0, 0, .5);
}
.vitrine-video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
/* (à cheval sur le bord du bas : il ne cache ni les chaussures, ni le chapeau) */
.vitrine-nom {
  position: absolute; left: 50%; top: 100%; z-index: 2; margin: 0; display: flex; align-items: center; gap: 8px;
  width: max-content; padding: 5px 18px 5px 8px; border-radius: 999px; translate: -50% -50%; white-space: nowrap; pointer-events: none;
  background: rgba(18, 10, 46, .85); border: 3px solid var(--jaune); box-shadow: 0 0 0 3px #6a3a00, 0 8px 22px rgba(0, 0, 0, .45);
  font: 19px/1 "Luckiest Guy", sans-serif; letter-spacing: .03em; color: #fff;
  opacity: 0;
}
.vitrine-nom.montre { animation: vitrine-nom .7s var(--ressort) both; }
@keyframes vitrine-nom {
  from { opacity: 0; transform: translateY(18px) scale(.4) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}
.vitrine-icones { display: flex; flex: none; }
.vitrine-icones img { width: 40px; height: 40px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.vitrine-icones img + img { margin-left: -10px; }
.vitrine-texte { padding-top: 3px; }
.vitrine-categories { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vitrine-categories li {
  padding: 9px 16px 7px; border-radius: 999px; background: rgba(29, 16, 80, .85); border: 3px solid rgba(201, 162, 255, .3);
  font: 17px/1 "Luckiest Guy", sans-serif; letter-spacing: .03em; color: var(--texte-doux);
}
.vitrine-categories li.fini { transition: color .3s ease, border-color .3s ease, box-shadow .3s ease, scale .5s var(--ressort); }
.vitrine-categories b { font-weight: normal; color: var(--jaune); margin-right: 3px; }
.vitrine-categories li.actif { color: #fff; border-color: var(--jaune); scale: 1.1; box-shadow: 0 0 22px rgba(255, 194, 26, .45); }

/* --- Bidouf Club ---------------------------------------------------------------------------------------- */
#club { position: relative; isolation: isolate; scroll-margin-top: 56px; }
.club-entete { padding-bottom: 0; }
.titre-club {
  color: #ff8be6; text-shadow: 0 4px 0 #6a0f6e, 0 0 22px rgba(255, 80, 220, .45); -webkit-text-stroke: 2px #6a0f6e;
  scale: calc(1 + var(--battement, 0) * .06);
}
/* L'enseigne au néon s'allume en grésillant, puis bourdonne de temps en temps. */
.anim-pret .titre-club:not(.vu) { color: #4a2a55; text-shadow: none; -webkit-text-stroke: 2px #2a0f30; }
.anim-pret .titre-club.vu { animation: neon-allume 1.5s steps(1) both, neon-bourdonne 6s 1.5s infinite; }
@keyframes neon-allume {
  0%, 12%, 22%, 40% { color: #4a2a55; text-shadow: none; }
  8%, 18%, 30%, 52%, 100% { color: #ff8be6; text-shadow: 0 4px 0 #6a0f6e, 0 0 26px rgba(255, 80, 220, .8), 0 0 60px rgba(255, 80, 220, .45); }
}
@keyframes neon-bourdonne {
  0%, 92%, 100% { color: #ff8be6; text-shadow: 0 4px 0 #6a0f6e, 0 0 26px rgba(255, 80, 220, .8), 0 0 60px rgba(255, 80, 220, .45); }
  94%, 97% { color: #b65aa3; text-shadow: 0 4px 0 #6a0f6e; }
}
/* --- Les tableaux qui défilent : Bidouf Club et liens du club (08/11, demande de Matetos : une section pour chacun,
   « plus d'animation et de motion design »). Sans animation : les tableaux les uns sous les autres. Avec : la scène colle à
   l'écran pendant que la section défile, et animations.js pose sur chaque tableau --in (son arrivée, de 0 à 1 : le
   rideau ou la peinture passe), --e (son image arrive), --t (son texte arrive), --u (son avancée pendant qu'il est à
   l'écran) et --out (le suivant le recouvre) ; .actif tant qu'il est à l'écran (les animations qui tournent en boucle). */
.defile { max-width: 1180px; margin: 0 auto; padding: 24px 16px 0; }
.tableau { position: relative; margin: 0 0 64px; text-align: center; }
.tableau-rideau, .tableau-mot, .boule-disco, .notes, .faisceaux { display: none; }
.tableau-cadre {
  position: relative; overflow: hidden; border-radius: 24px; background: #170b3f;
  border: 4px solid var(--neon, #ff6fdc);
  box-shadow: 0 0 0 4px var(--neon-fonce, #5a0a55), 0 0 40px color-mix(in srgb, var(--neon, #ff6fdc) 55%, transparent), 0 24px 50px rgba(0, 0, 0, .5);
}
.tableau-cadre img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tableau-texte { position: relative; z-index: 3; max-width: 640px; margin: 14px auto 0; }
.tableau-texte h3, .jeux-titre {
  display: inline-block; margin: 0 0 8px; padding: 6px 22px 9px; border-radius: 999px;
  font-size: clamp(24px, 3.2vw, 40px); line-height: 1.1; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--neon, #ff6fdc) 70%, #fff), var(--neon, #ff6fdc) 55%, color-mix(in srgb, var(--neon, #ff6fdc) 70%, #000));
  border: 4px solid var(--neon-fonce, #5a0a55);
  box-shadow: 0 5px 0 var(--neon-fonce, #5a0a55), 0 0 30px color-mix(in srgb, var(--neon, #ff6fdc) 60%, transparent);
  text-shadow: 0 3px 0 var(--neon-fonce, #5a0a55);
}
.tableau-texte p {
  margin: 0 auto; max-width: 560px; padding: 10px 18px; border-radius: 18px;
  font-size: clamp(16px, 1.6vw, 21px); font-weight: 700; line-height: 1.4; color: #fff;
  background: rgba(12, 6, 32, .82); box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.tableau-danse { --neon: #ff6fdc; --neon-fonce: #5a0a55; }
.tableau-bar { --neon: #3fd8ff; --neon-fonce: #0b3f6e; }
.tableau-jeux { --neon: #ffc21a; --neon-fonce: #7a3a00; }
/* Le bar : les canettes du jeu, à leurs vraies proportions (08/11 : « qu'elles gardent leur format initial »), qui
   flottent autour de la photo. */
.canettes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 18px; }
.canette { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; }
.canette img { height: var(--canette-h, 110px); width: auto; filter: drop-shadow(0 0 14px rgba(63, 216, 255, .55)) drop-shadow(0 10px 12px rgba(0, 0, 0, .5)); }
/* Les mini-jeux : des cartes (photo et légende). */
.jeux { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 10px; }
.jeu {
  margin: 0; padding: 6px 6px 9px; border-radius: 18px; background: #1b0f45; text-align: center;
  border: 4px solid var(--couleur); box-shadow: 0 0 0 3px #0b0626, 0 0 26px color-mix(in srgb, var(--couleur) 55%, transparent);
}
.jeu-image { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.jeu-image > img { width: 100%; height: 100%; object-fit: cover; }
.jeu-bido .jeu-image { background: radial-gradient(circle at 50% 60%, #ff8be6, #8b3dff 70%, #2b0f6b); }
.jeu-bido .jeu-image > img {
  position: absolute; left: 50%; top: 56%; width: 34%; height: auto; object-fit: contain;
  transform-origin: 50% 130%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45));
  transform: translate(-50%, -50%) rotate(calc((var(--c) - 2) * 13deg));
  transition: transform .6s var(--ressort);
}
.jeu-bido.grand .jeu-image > img { transform: translate(-50%, -50%) rotate(calc((var(--c) - 2) * 24deg)) translateY(-6%); }
.jeu figcaption { display: grid; gap: 2px; margin-top: 6px; }
.jeu strong { font: 20px/1.1 "Luckiest Guy", sans-serif; font-weight: normal; letter-spacing: .02em; color: var(--couleur); text-shadow: 0 2px 0 #0b0626; }
.jeu figcaption span { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--texte-doux); }

/* Avec l'animation : la scène collée, les tableaux empilés dedans. */
.anim-pret .defile { max-width: none; padding: 0; height: calc((var(--battements, 3) + 1) * (100svh - 46px)); }
.anim-pret .scene-collee {
  position: sticky; top: 46px; height: calc(100svh - 46px); overflow: hidden; isolation: isolate;
  opacity: calc(1 - var(--depart, 0));  /* (en partant par le haut, elle s'efface : pas de bord net) */
}
.anim-pret .tableau {
  position: absolute; inset: 0; margin: 0; visibility: hidden; isolation: isolate;  /* (chaque tableau recouvre tout le précédent) */
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 4vw 24px;
}
.anim-pret .tableau.present { visibility: visible; }
/* Le fond du tableau : opaque dès que le rideau a couvert l'écran (il cache le tableau d'avant). */
.anim-pret .tableau::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse 80% 60% at 50% 45%, color-mix(in srgb, var(--neon) 26%, #170b3f), #120a2e 75%);
  opacity: clamp(0, (var(--in, 1) - .5) * 1000, 1);
  /* (fondu en haut et en bas : pas de bord net quand la scène arrive ou s'en va) */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 6%, #000 92%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 6%, #000 92%, transparent);
}
/* Le rideau : une bande de la couleur du tableau, penchée, qui traverse l'écran de gauche à droite. */
.anim-pret .tableau-rideau {
  display: block; position: absolute; top: -10%; bottom: -10%; left: 0; width: 160%; z-index: 20; pointer-events: none;
  background: linear-gradient(90deg, var(--neon-fonce), var(--neon) 30%, color-mix(in srgb, var(--neon) 60%, #fff) 50%, var(--neon) 70%, var(--neon-fonce));
  transform: translateX(calc(-170% + var(--in, 1) * 280%)) skewX(-14deg);
}
.anim-pret .tableau-rideau::after {  /* les rayures du rideau */
  content: ""; position: absolute; inset: 0; opacity: .25;
  background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(255, 255, 255, .7) 40px 52px);
}
/* Le mot géant, derrière : il glisse pendant que le tableau est à l'écran. */
.anim-pret .tableau-mot {
  display: block; position: absolute; left: 0; top: 50%; z-index: -1; white-space: nowrap; pointer-events: none; user-select: none;
  font: clamp(120px, 26vw, 460px)/1 "Luckiest Guy", sans-serif; text-transform: uppercase; letter-spacing: .02em;
  color: color-mix(in srgb, var(--neon) 16%, transparent); -webkit-text-stroke: 3px color-mix(in srgb, var(--neon) 55%, transparent);
  transform: translate(calc(18vw - var(--u, 0) * 46vw), -50%) scale(calc(1.5 - var(--e, 1) * .5));
  opacity: var(--e, 1);
}
/* Le cadre de la photo : il arrive de bas, penché et petit ; la photo zoome doucement pendant qu'on la regarde ; quand le
   tableau suivant arrive, il recule et s'assombrit. */
.anim-pret .tableau-cadre {
  width: min(92vw, (100svh - 46px - 260px) * 1.778, 1200px); flex: none;
  transform: translateY(calc((1 - var(--e, 1)) * 60vh + var(--out, 0) * -10vh)) rotate(calc((1 - var(--e, 1)) * -18deg + var(--out, 0) * 7deg))
    scale(calc((.4 + var(--e, 1) * .6) * (1 - var(--out, 0) * .2)));
  filter: brightness(calc(1 - var(--out, 0) * .45));
}
.anim-pret .tableau-cadre img { transform: scale(calc(1.2 - var(--u, 0) * .14)) translateX(calc(var(--u, 0) * -2.5%)); }
/* (au téléphone : la photo en hauteur, recadrée sur son milieu, pour remplir l'écran) */
@media (max-width: 640px) {
  .anim-pret .tableau-cadre, .anim-pret .tableau-bar .tableau-cadre { width: min(88vw, (100svh - 46px - 280px) * .8); }
  .anim-pret .tableau-cadre img { aspect-ratio: 4 / 5; }
}
.anim-pret .tableau-texte {
  margin-top: -30px;
  transform: translateY(calc((1 - var(--t, 1)) * 40vh)) rotate(calc((1 - var(--t, 1)) * 12deg));
  opacity: calc(var(--t, 1) * 1.5);
}
.anim-pret .tableau-texte h3 { transform: rotate(calc(-3deg - (1 - var(--t, 1)) * 25deg)) scale(calc(.2 + var(--t, 1) * .8)); }
/* La piste : les faisceaux du DJ balaient la photo, la boule à facettes descend, des notes s'envolent. */
.anim-pret .faisceaux {
  display: block; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0; transform-origin: 50% -10%;
  background: conic-gradient(from 150deg at 50% -10%, transparent 0 6deg, rgba(255, 110, 230, .32) 6deg 10deg, transparent 10deg 18deg,
    rgba(110, 220, 255, .28) 18deg 22deg, transparent 22deg 31deg, rgba(255, 230, 110, .28) 31deg 35deg, transparent 35deg 44deg,
    rgba(150, 255, 120, .25) 44deg 48deg, transparent 48deg);
  transition: opacity .6s ease;
}
.tableau-danse.actif .faisceaux { opacity: 1; animation: faisceaux 3.6s ease-in-out infinite alternate; }
@keyframes faisceaux { from { rotate: -16deg; } to { rotate: 16deg; } }
/* (24/11, Matetos : « la boule à facettes tourne avec son fil, c'est bizarre ») La boule descend au bout de son fil, qui reste
   immobile ; seules ses facettes tournent, autour de l'axe du fil (comme une vraie boule : elles défilent de gauche à droite
   sous l'éclat de la lumière, qui lui ne bouge pas). Le fil (::before) et la boule (::after) sont deux calques de la même
   pièce, qui ne tourne plus. */
.anim-pret .boule-disco {
  --facette: clamp(9px, 1vw, 15px);
  display: block; position: absolute; left: 50%; top: 0; z-index: 4; width: clamp(70px, 8vw, 130px); aspect-ratio: 1; margin-left: calc(clamp(70px, 8vw, 130px) / -2);
  border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 30px rgba(255, 255, 255, .6), 0 0 80px rgba(255, 110, 230, .5);
  transform: translateY(-160%); transition: transform 1s var(--ressort);
}
.anim-pret .boule-disco::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 3px; height: 60vh; margin-left: -1.5px; background: rgba(255, 255, 255, .5); }
.anim-pret .boule-disco::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff 0 7%, rgba(255, 255, 255, .55) 13%, transparent 24%),      /* l'éclat, fixe */
    radial-gradient(circle at 50% 50%, transparent 38%, rgba(30, 14, 70, .38) 62%, rgba(14, 6, 40, .82) 74%),  /* le volume */
    linear-gradient(90deg, rgba(40, 30, 90, .55) 0 1px, transparent 1px) 0 0 / var(--facette) 100%,   /* les joints, verticaux */
    linear-gradient(0deg, rgba(40, 30, 90, .55) 0 1px, transparent 1px) 0 0 / 100% var(--facette),    /* et horizontaux */
    repeating-conic-gradient(#f4f4ff 0 25%, #9a9ac4 0 50%) 0 0 / calc(var(--facette) * 2) calc(var(--facette) * 2),  /* les facettes */
    linear-gradient(90deg, #d9d9f2, #ffd8f6 30%, #c7f3ff 60%, #e8e8ff);
}
.tableau-danse.actif .boule-disco::after { animation: boule-tourne 2.4s linear infinite; }
@keyframes boule-tourne {
  to { background-position: 0 0, 0 0, calc(var(--facette) * 2) 0, 0 0, calc(var(--facette) * 2) 0, 0 0; }
}
.tableau-danse.actif .boule-disco { transform: translateY(45%); }
.anim-pret .notes { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.notes i {
  position: absolute; bottom: 8%; font: normal clamp(28px, 3vw, 48px)/1 system-ui, sans-serif; color: #ff8be6; opacity: 0;
  text-shadow: 0 0 14px currentColor;
}
.notes i:nth-child(1) { left: 8%; } .notes i:nth-child(2) { left: 20%; color: #6fe3ff; } .notes i:nth-child(3) { left: 33%; color: #ffd84a; }
.notes i:nth-child(4) { right: 30%; color: #8cff70; } .notes i:nth-child(5) { right: 17%; } .notes i:nth-child(6) { right: 6%; color: #6fe3ff; }
.tableau-danse.actif .notes i { animation: note-monte 3s ease-out infinite; }
.tableau-danse.actif .notes i:nth-child(2n) { animation-delay: -1s; } .tableau-danse.actif .notes i:nth-child(3n) { animation-delay: -2s; }
@keyframes note-monte {
  0% { opacity: 0; transform: translateY(0) rotate(-10deg) scale(.6); } 15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-60vh) rotate(20deg) scale(1.2); }
}
/* Le bar : les canettes jaillissent autour de la photo (une à une), puis flottent. */
.anim-pret .tableau-bar { --canette-h: clamp(56px, 9svh, 86px); }
.anim-pret .canettes { position: absolute; inset: 0; z-index: 5; display: block; margin: 0; pointer-events: none; }
.anim-pret .canette { position: absolute; opacity: 0; }
.anim-pret .canette:nth-child(1) { left: 8%; top: 5%; } .anim-pret .canette:nth-child(2) { left: 42%; top: 3%; }
.anim-pret .canette:nth-child(3) { right: 8%; top: 5%; } .anim-pret .canette:nth-child(4) { left: 8%; bottom: 3%; }
.anim-pret .canette:nth-child(5) { left: 37%; bottom: 2%; } .anim-pret .canette:nth-child(6) { left: 64%; bottom: 4%; }  /* (pas sous le bouton de la musique) */
.tableau-bar.actif .canette {
  opacity: 1; animation: canette-jaillit .9s var(--ressort) calc(var(--k) * 150ms + 150ms) both, canette-flotte 3.2s ease-in-out calc(var(--k) * -.55s) infinite;
}
@keyframes canette-jaillit {
  0% { opacity: 0; transform: translateY(90px) scale(0) rotate(-120deg); }
  60% { opacity: 1; transform: translateY(-26px) scale(1.4) rotate(16deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes canette-flotte { 50% { translate: 0 -12px; rotate: 5deg; } }
/* Les mini-jeux : chaque carte arrive de la droite en grand au milieu, puis rejoint l'éventail (animations.js). */
.anim-pret .jeux-titre { position: absolute; top: 3%; left: 50%; z-index: 6; transform: translateX(-50%) rotate(-3deg) scale(var(--t, 1)); margin: 0; }
.anim-pret .jeux { position: absolute; inset: 12% 0 0; display: block; margin: 0; }
.anim-pret .jeu { position: absolute; left: 50%; top: 50%; width: clamp(120px, 15vw, 270px); opacity: 0; transform: translate(-50%, -50%); }
.anim-pret .jeu figcaption span { opacity: var(--c, 0); }
.anim-pret .jeu.grand { box-shadow: 0 0 0 3px #0b0626, 0 0 46px color-mix(in srgb, var(--couleur) 80%, transparent), 0 30px 60px rgba(0, 0, 0, .6); }
/* (24/11, demande de Matetos) La tuile de Bidouf Splash, qui ferme l'éventail : l'illustration du jeu de peinture, des coulures
   rose et vert qui tombent du haut, deux taches qui débordent du cadre en haut (les taches de l'ancienne section Splash) et le logo
   posé en bas. */
.jeu-splash { position: relative; isolation: isolate; background: linear-gradient(180deg, #3a0b2c, #1b0f45); }
.jeu-splash::before, .jeu-splash::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1;
  -webkit-mask: url("images/splash/tache_1.svg") center / contain no-repeat; mask: url("images/splash/tache_1.svg") center / contain no-repeat;
}
.jeu-splash::before { left: -16%; top: -14%; width: 52%; background: radial-gradient(circle at 40% 35%, #b9ff8f, #5be82f 60%, #1d5a0a); rotate: -18deg; }
.jeu-splash::after {
  right: -13%; top: -12%; width: 40%; background: radial-gradient(circle at 40% 35%, #ff8fd0, #ff3d9a 60%, #a3105a); rotate: 24deg;
  -webkit-mask-image: url("images/splash/tache_3.svg"); mask-image: url("images/splash/tache_3.svg");
}
.jeu-splash .jeu-image > img.jeu-logo {
  position: absolute; left: 50%; bottom: 5%; width: 66%; height: auto; object-fit: contain; translate: -50% 0;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55)); rotate: -4deg;
}
.splash-taches { position: absolute; inset: 0; pointer-events: none; }
.splash-taches i {
  position: absolute; top: -2px; width: var(--l); height: var(--h); border-radius: 0 0 999px 999px; background: var(--c);
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .18), 0 2px 4px rgba(0, 0, 0, .3); transform-origin: top;
}
.splash-taches i::after {  /* la goutte qui pend au bout */
  content: ""; position: absolute; left: 50%; bottom: -38%; width: 130%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: inherit;
}
.splash-taches i:nth-child(1) { left: 6%; --l: 7%; --h: 22%; --c: #ff3d9a; }
.splash-taches i:nth-child(2) { left: 22%; --l: 4%; --h: 12%; --c: #7dff3a; }
.splash-taches i:nth-child(3) { left: 47%; --l: 9%; --h: 30%; --c: #ff3d9a; }
.splash-taches i:nth-child(4) { left: 70%; --l: 5%; --h: 16%; --c: #7dff3a; }
.splash-taches i:nth-child(5) { left: 86%; --l: 7%; --h: 24%; --c: #ff3d9a; }
.anim-pret .tableau-jeux.actif .splash-taches i { animation: coule 2.6s ease-in-out calc(var(--k, 0) * -.4s) infinite alternate; }
.splash-taches i:nth-child(2n) { --k: 2; } .splash-taches i:nth-child(3n) { --k: 3; }
@keyframes coule { from { scale: 1 .7; } to { scale: 1 1.15; } }
.jeu-splash strong { -webkit-text-stroke: 1px #7a0a45; }

/* --- Les liens du club (24/11, demande de Matetos : « une nouvelle section, les liens avec les PNJ » ; dans l'esprit des liens du
   jeu, façon Persona). L'en-tête : une tuile penchée, noire et rose, avec un gros cœur et cinq étoiles. Puis un tableau par PNJ,
   comme au club (--in, --e, --t, --u, --out, .actif : animations.js) : une bande penchée de sa couleur, son buste détouré qui
   arrive en coupure, la photo de son lien en instantané penché, une bulle avec sa réplique, et sa carte (arcane, nom, rôle,
   histoire, rang). Quand le tableau est à l'écran (.actif), tout s'enchaîne en temps réel : les étoiles éclatent une à une,
   « LIEN RENFORCÉ ! » tamponne la carte, il lève le pouce au milieu des cœurs, et sa récompense du rang 5 arrive. Le dernier
   tableau : la carte d'amitié et ses cinq cœurs. Sans animation : tout est visible, les tableaux à la suite. ----------------- */
.bloc-liens {
  position: relative; isolation: isolate; scroll-margin-top: 56px;
  --coeur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 3 20 18.4'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
  --etoile: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.liens-entete { text-align: center; padding-bottom: 0; }
.mot-liens { -webkit-text-stroke: 2px rgba(255, 115, 166, .2); }
/* La tuile du titre. */
.liens-tuile { position: relative; isolation: isolate; width: fit-content; margin: 8px auto 26px; padding: 26px 44px 20px; }
.liens-tuile::before {  /* la plaque : noire, rayée de rose, bord blanc, ombre décalée (façon Persona) */
  content: ""; position: absolute; inset: 0; z-index: -1; border: 5px solid #fff; border-radius: 6px;
  background: repeating-linear-gradient(-55deg, rgba(255, 95, 162, .22) 0 10px, transparent 10px 22px), #0b0626;
  box-shadow: 10px 10px 0 #ff5fa2, 18px 18px 0 #0b0626, 0 0 50px rgba(255, 95, 162, .45);
  transform: skewX(-10deg) rotate(-3deg);
}
.liens-tuile-coeur {
  position: absolute; right: -34px; top: -38px; z-index: -2; width: clamp(80px, 11vw, 140px); aspect-ratio: 20 / 18.4;
  background: radial-gradient(circle at 35% 30%, #ffc2dc, #ff5fa2 45%, #c4136a);
  -webkit-mask: var(--coeur) center / contain no-repeat; mask: var(--coeur) center / contain no-repeat;
  rotate: 14deg; filter: drop-shadow(0 6px 0 #6e0a35); animation: coeur-bat 1.3s ease-in-out infinite;
}
@keyframes coeur-bat { 0%, 100% { scale: 1; } 15% { scale: 1.16; } 30% { scale: .96; } 45% { scale: 1.1; } }
.titre-liens {
  margin: 0; font-size: clamp(40px, 7vw, 88px); line-height: 1; color: #fff; rotate: -3deg;
  -webkit-text-stroke: 2px #0b0626; paint-order: stroke fill; text-shadow: 4px 4px 0 #ff5fa2, 8px 8px 0 #0b0626;
}
.liens-tuile-etoiles { display: flex; justify-content: center; gap: 8px; margin-top: 12px; rotate: -3deg; }
.liens-tuile-etoiles i, .lien-etoiles i {
  display: block; width: 26px; aspect-ratio: 1; clip-path: var(--etoile);
  background: radial-gradient(circle at 40% 35%, #fff6c8, #ffd84a 40%, #ff9a12);
}
.anim-pret .liens-tuile.vu .liens-tuile-etoiles i { animation: etoile-eclate .5s var(--ressort) calc(.5s + var(--k, 0) * .12s) both; }
.liens-tuile-etoiles i:nth-child(2), .lien-etoiles i:nth-child(2) { --k: 1; }
.liens-tuile-etoiles i:nth-child(3), .lien-etoiles i:nth-child(3) { --k: 2; }
.liens-tuile-etoiles i:nth-child(4), .lien-etoiles i:nth-child(4) { --k: 3; }
.liens-tuile-etoiles i:nth-child(5), .lien-etoiles i:nth-child(5) { --k: 4; }
@keyframes etoile-eclate { 0% { scale: 0; rotate: -90deg; } 60% { scale: 1.5; rotate: 15deg; } 100% { scale: 1; rotate: 0deg; } }

/* Un tableau de PNJ, sans animation : la photo, le buste et sa bulle, la carte, à la suite. */
.tableau-lien { --neon-clair: color-mix(in srgb, var(--neon) 55%, #fff); display: grid; gap: 14px; text-align: left; }
.lien-bandes, .lien-coeurs { display: none; }
.lien-photo { margin: 0; }
.lien-photo img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #170b3f;
  border: clamp(6px, .6vw, 12px) solid #fff; box-shadow: 0 0 0 4px #0b0626, 12px 14px 0 var(--neon-fonce), 0 24px 46px rgba(0, 0, 0, .5);
}
.lien-photo.absente { display: none; }  /* (tant que la photo n'est pas là : animations.js) */
.lien-duo { position: relative; display: flex; align-items: flex-end; gap: 10px; }
.lien-buste { position: relative; flex: none; width: min(46%, 300px); aspect-ratio: 600 / 560; }
.lien-buste > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.buste-apres { opacity: 0; }
.lien-bulle {
  position: relative; align-self: center; margin: 0; padding: 14px 20px; border-radius: 26px; background: #fff; color: #170b3f;
  font: italic 800 clamp(16px, 1.45vw, 30px)/1.3 system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  border: 4px solid #0b0626; box-shadow: 6px 6px 0 var(--neon), 0 16px 30px rgba(0, 0, 0, .45);
}
.lien-bulle::before {  /* la pointe, vers la tête du PNJ (en bas à gauche) */
  content: ""; position: absolute; left: 12%; bottom: -27px; width: 34px; height: 27px; background: #0b0626;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.lien-bulle::after { content: ""; position: absolute; left: calc(12% + 4px); bottom: -17px; width: 22px; height: 18px; background: #fff; clip-path: polygon(0 0, 100% 0, 0 100%); }
.lien-carte {
  position: relative; padding: clamp(16px, 1.5vw, 38px) clamp(18px, 1.7vw, 42px); border-radius: 26px; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--neon) 30%, rgba(20, 10, 50, .92)), rgba(14, 6, 40, .94) 55%);
  border: 4px solid var(--neon); box-shadow: 0 0 0 4px #0b0626, 0 0 40px color-mix(in srgb, var(--neon) 45%, transparent), 0 24px 50px rgba(0, 0, 0, .5);
}
.lien-carte::before {  /* le reflet du verre bonbon */
  content: ""; position: absolute; inset: 6px 6px auto; height: 38%; border-radius: 20px 20px 50% 50% / 20px 20px 30px 30px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent);
}
.lien-arcane {
  display: inline-block; margin: 0 0 6px; padding: 4px 14px 5px; border-radius: 4px; rotate: -3deg; background: #0b0626; color: #fff;
  font: clamp(13px, .95vw, 22px)/1.2 "Luckiest Guy", sans-serif; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--neon);
}
.lien-nom {
  margin: 0; font-size: clamp(32px, 3.3vw, 86px); line-height: 1; color: #fff;
  -webkit-text-stroke: 2px var(--neon-fonce); paint-order: stroke fill; text-shadow: 0 4px 0 var(--neon-fonce), 0 0 26px color-mix(in srgb, var(--neon) 60%, transparent);
}
.lien-role { margin: 2px 0 8px; font: clamp(15px, 1.1vw, 27px)/1.2 "Luckiest Guy", sans-serif; letter-spacing: .04em; color: var(--neon-clair); }
.lien-histoire { margin: 0 0 12px; font-size: clamp(15px, 1.1vw, 26px); font-weight: 600; line-height: 1.4; color: var(--texte); }
.lien-rang { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.lien-etoiles { display: flex; gap: 4px; }
.lien-etoiles i { width: clamp(24px, 1.9vw, 46px); filter: drop-shadow(0 2px 0 #7a3a00); }
.lien-rang b { font: clamp(20px, 1.55vw, 38px)/1 "Luckiest Guy", sans-serif; font-weight: normal; letter-spacing: .04em; color: #ffd84a; text-shadow: 0 3px 0 #7a3a00; }
.lien-tampon {
  display: inline-block; padding: 6px 12px 7px; border: 3px solid #ff5fa2; border-radius: 8px; rotate: -8deg;
  font: clamp(14px, 1.1vw, 27px)/1 "Luckiest Guy", sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #ff8fc1;
  background: rgba(255, 95, 162, .14); box-shadow: 0 0 18px rgba(255, 95, 162, .5);
}
.lien-recompense {
  display: grid; gap: 2px; margin: 12px 0 0; padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 216, 74, .1); border: 2px solid rgba(255, 216, 74, .55);
  font-size: clamp(14px, 1vw, 24px); font-weight: 700; line-height: 1.3; color: var(--texte);
}
.lien-titre { font: clamp(15px, 1.15vw, 28px)/1.15 "Luckiest Guy", sans-serif; letter-spacing: .02em; color: #ffd84a; text-shadow: 0 2px 0 #7a3a00; }
/* La carte d'amitié (le dernier tableau) : comme dans le jeu (liens/carte_amitie.gd), au verre rose, le bandeau, l'ami dans son
   médaillon (sa tête dépasse), ses cinq cœurs, son compte et son bonus. */
.carte-amitie {
  position: relative; display: grid; justify-items: center; gap: 10px; width: min(100%, 520px); margin: 30px auto 0;
  padding: 44px 26px 24px; border-radius: 30px; text-align: center;
  background: linear-gradient(170deg, rgba(255, 115, 166, .32), rgba(40, 8, 34, .94) 60%);
  border: 4px solid #ff73a6; box-shadow: 0 0 0 4px #0b0626, 0 0 50px rgba(255, 115, 166, .45), 0 26px 50px rgba(0, 0, 0, .5);
}
.amitie-bandeau {
  position: absolute; top: 0; left: 50%; translate: -50% -55%; margin: 0; padding: 8px 26px 10px; border-radius: 999px; white-space: nowrap;
  font: clamp(20px, 2vw, 32px)/1 "Luckiest Guy", sans-serif; letter-spacing: .03em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #ffa8cb, #ff5fa2 55%, #c4136a); border: 4px solid #6e0a35; box-shadow: 0 5px 0 #6e0a35;
  text-shadow: 0 3px 0 #6e0a35;
}
.amitie-medaillon {
  position: relative; width: clamp(130px, 14vw, 210px); aspect-ratio: 1; margin-top: 14px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffc2dc, #ff73a6 55%, #c4136a);
  box-shadow: 0 0 0 5px #fff, 0 0 0 9px #6e0a35, 0 0 40px rgba(255, 115, 166, .6);
}
.amitie-medaillon img {  /* l'ami : coupé par le rond en bas, sa tête qui dépasse en haut */
  position: absolute; left: 50%; bottom: 0; width: 128%; max-width: none; translate: -50% 0;
  -webkit-mask: radial-gradient(circle at 50% calc(100% - 39%), #000 39%, transparent calc(39% + 1px)), linear-gradient(#000 0 0) top / 100% 55% no-repeat;
  mask: radial-gradient(circle at 50% calc(100% - 39%), #000 39%, transparent calc(39% + 1px)), linear-gradient(#000 0 0) top / 100% 55% no-repeat;
}
.amitie-coeurs { display: flex; gap: 8px; }
.amitie-coeurs i, .lien-coeurs i {
  display: block; width: clamp(34px, 3vw, 52px); aspect-ratio: 20 / 18.4;
  background: radial-gradient(circle at 35% 30%, #ffd0e3, #ff5fa2 45%, #c4136a);
  -webkit-mask: var(--coeur) center / contain no-repeat; mask: var(--coeur) center / contain no-repeat;
}
.amitie-coeurs i { filter: drop-shadow(0 3px 0 #6e0a35); }
.amitie-coeurs i:nth-child(2) { --k: 1; } .amitie-coeurs i:nth-child(3) { --k: 2; } .amitie-coeurs i:nth-child(4) { --k: 3; } .amitie-coeurs i:nth-child(5) { --k: 4; }
.amitie-compte { margin: 0; font: clamp(22px, 2vw, 32px)/1 "Luckiest Guy", sans-serif; letter-spacing: .04em; color: #ffc2dc; text-shadow: 0 3px 0 #6e0a35; }
.amitie-bonus {
  margin: 0; padding: 8px 16px; border-radius: 14px; font-size: clamp(14px, 1.1vw, 19px); font-weight: 800; color: #eaffd8;
  background: rgba(125, 255, 58, .14); border: 2px solid rgba(125, 255, 58, .6);
}
.tableau-amis .tableau-texte { text-align: center; }

/* Avec l'animation : la scène des liens. Sur grand écran, le buste à gauche sur toute la hauteur, la photo et la carte à droite. */
.anim-pret .tableau-lien:not(.tableau-amis) {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "duo photo" "duo carte"; align-items: stretch; justify-content: stretch; gap: 2.4svh 3vw;
  padding: 3svh 5vw max(3.4svh, 78px);  /* (en bas : la place du bouton rond de la musique) */
}
.anim-pret .lien-bandes {  /* la bande penchée de sa couleur, derrière le buste */
  display: block; position: absolute; top: -12%; bottom: -12%; left: -8vw; width: 58vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle, rgba(0, 0, 0, .22) 28%, transparent 32%) 0 0 / 14px 14px,
    linear-gradient(90deg, var(--neon-fonce), var(--neon) 18%, var(--neon-clair) 50%, var(--neon) 82%);
  border-right: 16px solid #0b0626; box-shadow: 14px 0 0 var(--neon-clair);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35), #000 40%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35), #000 40%);
  transform: translateX(calc((1 - var(--e, 1)) * -70vw + var(--u, 0) * 2vw)) skewX(-14deg);
  opacity: .9;
}
.anim-pret .lien-duo {
  grid-area: duo; display: block; min-height: 0; container-type: size;
  --hb: min(108cqh, 1040px, 100cqw); --bas: calc(-1 * max(3.4svh, 78px)); --gauche: -2vw;  /* (la hauteur du buste, son bas, sa gauche) */
}
.anim-pret .lien-buste {
  position: absolute; left: var(--gauche); bottom: var(--bas); height: var(--hb); width: calc(var(--hb) * 600 / 560); max-width: none;
  transform: translateX(calc((1 - var(--e, 1)) * -100vw)) rotate(calc((1 - var(--e, 1)) * -12deg)) scale(calc(1 + var(--u, 0) * .03));
  transform-origin: 50% 100%; filter: drop-shadow(14px 0 0 rgba(11, 6, 38, .55)) drop-shadow(0 20px 30px rgba(0, 0, 0, .45));
}
.anim-pret .lien-bulle {
  position: absolute; left: calc(var(--gauche) + var(--hb) * .55); bottom: calc(var(--hb) * .9 + var(--bas));
  width: max-content; max-width: min(560px, calc(100% + 5vw - var(--hb) * .55));
  transform: scale(calc(.2 + var(--t, 1) * .8)) rotate(calc(-3deg + (1 - var(--t, 1)) * -20deg)); transform-origin: 0 100%;
  opacity: calc(var(--t, 1) * 1.4);
}
.anim-pret .lien-photo {
  grid-area: photo; align-self: end; justify-self: center; width: min(100%, 44svh * 16 / 9); min-height: 0;
  transform: translate(calc((1 - var(--e, 1)) * 55vw), calc((1 - var(--e, 1)) * -30vh)) rotate(calc(3deg + (1 - var(--e, 1)) * 24deg));
}
.anim-pret .lien-photo img { transform: scale(calc(1.12 - var(--u, 0) * .08)); }
.anim-pret .lien-photo { overflow: visible; }
.anim-pret .lien-carte {
  grid-area: carte; align-self: start; width: min(100%, 980px); justify-self: center;
  transform: translateY(calc((1 - var(--t, 1)) * 100vh)) rotate(calc((1 - var(--t, 1)) * 10deg - 1deg));
}
/* (sans photo, en attendant : la carte prend la place, au milieu à droite) */
.anim-pret .tableau-lien:has(.lien-photo.absente) { grid-template-areas: "duo carte" "duo carte"; }
.anim-pret .tableau-lien:has(.lien-photo.absente) .lien-carte { align-self: center; }
/* En temps réel, quand le tableau est à l'écran : les étoiles, le tampon, le pouce levé, les cœurs, la récompense. */
.anim-pret .lien-etoiles i { background: rgba(255, 255, 255, .14); filter: none; }
.anim-pret .tableau-lien.actif .lien-etoiles i { animation: etoile-pleine .5s var(--ressort) calc(.35s + var(--k, 0) * .17s) both; }
@keyframes etoile-pleine {
  0% { scale: 1; background: rgba(255, 255, 255, .14); filter: none; }
  1% { background: radial-gradient(circle at 40% 35%, #fff6c8, #ffd84a 40%, #ff9a12); }
  55% { scale: 1.6; rotate: 20deg; filter: drop-shadow(0 0 10px #ffd84a); }
  100% { scale: 1; rotate: 0deg; background: radial-gradient(circle at 40% 35%, #fff6c8, #ffd84a 40%, #ff9a12); filter: drop-shadow(0 2px 0 #7a3a00); }
}
.anim-pret .lien-rang b, .anim-pret .lien-tampon, .anim-pret .lien-recompense { opacity: 0; }
.anim-pret .tableau-lien.actif .lien-rang b { animation: rang-arrive .5s var(--ressort) 1.2s both; }
.anim-pret .tableau-lien.actif .lien-tampon { animation: tampon-lien .45s cubic-bezier(.3, 0, .5, 1.4) 1.35s both; }
.anim-pret .tableau-lien.actif .lien-recompense { animation: recompense-arrive .6s var(--ressort) 1.7s both; }
@keyframes rang-arrive { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }
@keyframes tampon-lien { 0% { opacity: 0; scale: 3; rotate: -30deg; } 70% { opacity: 1; scale: .9; } 100% { opacity: 1; scale: 1; rotate: -8deg; } }
@keyframes recompense-arrive { from { opacity: 0; transform: translateX(60px) rotate(4deg); } to { opacity: 1; transform: none; } }
.anim-pret .tableau-lien.actif .buste-avant { animation: buste-part .3s ease 1.35s both; }
.anim-pret .tableau-lien.actif .buste-apres { animation: buste-arrive .7s var(--ressort) 1.35s both; }
@keyframes buste-part { to { opacity: 0; } }
@keyframes buste-arrive { 0% { opacity: 0; transform: scale(.92) translateY(3%); } 30% { opacity: 1; } 60% { transform: scale(1.05) translateY(-2%); } 100% { opacity: 1; transform: none; } }
.anim-pret .lien-coeurs { display: block; position: absolute; left: 50%; top: 30%; width: 0; height: 0; pointer-events: none; }
.anim-pret .lien-coeurs i { position: absolute; left: -20px; top: 0; opacity: 0; width: clamp(28px, 2.6vw, 50px); filter: drop-shadow(0 3px 0 #6e0a35); }
.lien-coeurs i:nth-child(1) { --dx: -170%; --dy: -260%; --r: -22deg; --k: 0; } .lien-coeurs i:nth-child(2) { --dx: 120%; --dy: -320%; --r: 18deg; --k: 1; }
.lien-coeurs i:nth-child(3) { --dx: -320%; --dy: -120%; --r: -30deg; --k: 2; } .lien-coeurs i:nth-child(4) { --dx: 300%; --dy: -180%; --r: 26deg; --k: 3; }
.lien-coeurs i:nth-child(5) { --dx: -40%; --dy: -420%; --r: 6deg; --k: 4; } .lien-coeurs i:nth-child(6) { --dx: 420%; --dy: -40%; --r: 34deg; --k: 5; }
.anim-pret .tableau-lien.actif .lien-coeurs i { animation: coeur-monte 1.5s cubic-bezier(.2, .8, .3, 1) calc(1.4s + var(--k) * .09s) both; }
@keyframes coeur-monte {
  0% { opacity: 0; transform: translate(0, 0) scale(.2); }
  25% { opacity: 1; transform: translate(calc(var(--dx) * .7), calc(var(--dy) * .7)) scale(1.25) rotate(var(--r)); }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) - 120%)) scale(.9) rotate(var(--r)); }
}
/* La carte d'amitié, avec l'animation : elle arrive de bas en tournant ; ses cœurs se remplissent un à un. */
.anim-pret .carte-amitie { transform: translateY(calc((1 - var(--e, 1)) * 60vh)) rotate(calc((1 - var(--e, 1)) * -14deg - 2deg)); }
.anim-pret .amitie-coeurs i { background: rgba(255, 255, 255, .16); filter: none; }
.anim-pret .tableau-amis.actif .amitie-coeurs i { animation: coeur-plein .55s var(--ressort) calc(.4s + var(--k, 0) * .2s) both; }
@keyframes coeur-plein {
  0% { scale: 1; background: rgba(255, 255, 255, .16); filter: none; }
  1% { background: radial-gradient(circle at 35% 30%, #ffd0e3, #ff5fa2 45%, #c4136a); }
  55% { scale: 1.55; filter: drop-shadow(0 0 12px #ff5fa2); }
  100% { scale: 1; background: radial-gradient(circle at 35% 30%, #ffd0e3, #ff5fa2 45%, #c4136a); filter: drop-shadow(0 3px 0 #6e0a35); }
}
.anim-pret .tableau-amis.actif .amitie-medaillon { animation: medaillon-saute .6s var(--ressort) 1.5s; }
@keyframes medaillon-saute { 40% { scale: 1.12; rotate: -4deg; } }
.anim-pret .amitie-bonus, .anim-pret .amitie-compte { opacity: 0; }
.anim-pret .tableau-amis.actif .amitie-compte { animation: rang-arrive .5s var(--ressort) 1.45s both; }
.anim-pret .tableau-amis.actif .amitie-bonus { animation: recompense-arrive .6s var(--ressort) 1.7s both; }
/* Au téléphone : la photo en haut, le buste et sa bulle au milieu, la carte en bas (elle passe devant le bas du buste). */
@media (max-width: 640px) {
  .anim-pret .tableau-lien:not(.tableau-amis) {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "photo" "duo" "carte";
    gap: 1.2svh; padding: 1.6svh 4vw 64px;  /* (en bas : la place du bouton rond de la musique) */
  }
  .anim-pret .tableau-lien:has(.lien-photo.absente) { grid-template-areas: "duo" "duo" "carte"; }
  .anim-pret .lien-photo { width: min(86vw, 24svh * 16 / 9); }
  .anim-pret .lien-bandes { left: -34vw; width: 96vw; }
  .anim-pret .lien-duo { --hb: min(120cqh, 100cqw); --bas: -64px; --gauche: -8vw; }
  .anim-pret .lien-bulle {
    left: calc(var(--gauche) + var(--hb) * .8); bottom: calc(var(--hb) * .45 + var(--bas)); max-width: calc(100% + 4vw - var(--hb) * .8);
    padding: 8px 12px; border-width: 3px; font-size: 14px;
  }
  .lien-bulle::before { left: -21px; bottom: 30%; width: 24px; height: 22px; clip-path: polygon(100% 0, 0 60%, 100% 100%); }
  .lien-bulle::after { left: -13px; bottom: calc(30% + 4px); width: 17px; height: 14px; clip-path: polygon(100% 0, 0 60%, 100% 100%); }
  .lien-carte { padding: 12px 15px 13px; border-radius: 20px; }
  .lien-nom { font-size: 30px; }
  .lien-role { margin-bottom: 5px; }
  .lien-histoire { margin-bottom: 8px; font-size: 14px; line-height: 1.35; }
  .lien-etoiles i { width: 22px; }
  .lien-recompense { margin-top: 8px; padding: 6px 10px; font-size: 13px; }
  .liens-tuile { padding: 20px 26px 16px; }
  .liens-tuile-coeur { right: -18px; top: -30px; }
}

/* --- Les écrans de fin : l'inscription et la presse (08/11, demande de Matetos : « qu'ils correspondent un peu plus au
   reste du site, avec des animations en motion design »). Ils reprennent le reste du site : mots géants, néons, Bidouf
   randonneur des cartes, bulles et étoiles du booster, rideau de couleur, pastilles qui éclatent. ------------------- */
.mot-sortie { -webkit-text-stroke: 2px rgba(255, 194, 26, .2); }
.mot-presse { -webkit-text-stroke: 2px rgba(63, 216, 255, .2); }
.anim-pret [data-anim="scene"]:not(.vu) { opacity: 1; }
.inscription-scene { position: relative; display: grid; align-items: center; gap: 6px; max-width: 1180px; margin: 0 auto; }
/* Le rideau doré qui traverse l'écran quand on arrive. */
.final-rideau { display: none; }
.anim-pret .final-rideau {
  display: block; position: absolute; top: -40px; bottom: -40px; left: 0; width: 140vw; z-index: 20; pointer-events: none;
  background: linear-gradient(90deg, #7a3a00, #ffb326 30%, #fff3a0 50%, #ffb326 70%, #7a3a00);
  transform: translateX(-160vw) skewX(-14deg);
}
.anim-pret .inscription-scene.vu .final-rideau { animation: final-rideau 1.2s var(--glissade) both; }
@keyframes final-rideau { from { transform: translateX(-160vw) skewX(-14deg); } to { transform: translateX(110vw) skewX(-14deg); } }
/* Le Bidouf randonneur sur son soleil, ses bulles et ses étoiles, et le tampon « Bientôt sur Steam ». */
.inscription-bidouf { position: relative; width: min(74vw, 340px); aspect-ratio: 1; margin: 0 auto; }
.inscription-soleil { position: absolute; inset: -22%; border-radius: 50%; pointer-events: none; }
.inscription-soleil::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 200, 80, .4) 0 6deg, transparent 6deg 16deg);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 68%); mask: radial-gradient(circle, #000 0, transparent 68%);
  animation: rayons-tournent 26s linear infinite;
}
.inscription-soleil::after {
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 160, .8), rgba(255, 150, 60, .3) 55%, transparent 72%);
  animation: dos-lueur 3s ease-in-out infinite;
}
.inscription-perso {
  position: absolute; left: 4%; top: 4%; width: 92%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
  animation: dos-perso 3.4s ease-in-out infinite;
}
.deco { position: absolute; left: var(--x); top: var(--y); width: var(--l); max-width: none; pointer-events: none; }
.deco-bulle { animation: dos-bulle calc(4.4s + var(--k) * .7s) ease-in-out calc(var(--k) * -1s) infinite; }
.deco-etoile { animation: dos-etoile calc(1.5s + var(--k) * .3s) ease-in-out calc(var(--k) * -.5s) infinite; }
.tampon {
  position: absolute; right: -6%; bottom: 2%; z-index: 3; padding: 8px 16px 10px; rotate: -10deg; white-space: nowrap;
  font: clamp(17px, 2vw, 26px)/1 "Luckiest Guy", sans-serif; letter-spacing: .03em; color: #fff; text-transform: uppercase;
  background: linear-gradient(180deg, #ff6a6a, #d61f3c); border: 4px dashed rgba(255, 255, 255, .85); border-radius: 14px;
  box-shadow: 0 0 0 4px #7a0a1e, 0 10px 24px rgba(0, 0, 0, .45); text-shadow: 0 2px 0 #7a0a1e;
  animation: tampon-respire 2.4s ease-in-out infinite;
}
@keyframes tampon-respire { 50% { translate: 0 -4px; } }
/* L'arrivée : le Bidouf jaillit de sa carte, son soleil s'ouvre, bulles et étoiles éclatent, le tampon s'écrase, puis la
   carte du formulaire se retourne. */
.anim-pret .inscription-bidouf { transition: transform 1s var(--ressort) .35s, opacity .4s ease .35s; }
.anim-pret .inscription-scene:not(.vu) .inscription-bidouf { transform: translateY(60%) scale(.15) rotate(-40deg); opacity: 0; }
.anim-pret .inscription-soleil { transition: scale 1.2s var(--ressort) .6s; }
.anim-pret .inscription-scene:not(.vu) .inscription-soleil { scale: 0; }
.anim-pret .deco { transition: scale .7s var(--ressort) calc(.8s + var(--k) * .15s); }
.anim-pret .inscription-scene:not(.vu) .deco { scale: 0; }
.anim-pret .tampon { transition: scale .5s cubic-bezier(.5, 0, .3, 1.6) 1.5s, opacity .2s ease 1.5s; }
.anim-pret .inscription-scene:not(.vu) .tampon { scale: 3.4; opacity: 0; }
.anim-pret .inscription-scene .carte-inscription { transition: transform 1.1s var(--ressort) .7s, opacity .5s ease .7s; transform-origin: 0 50%; }
.anim-pret .inscription-scene:not(.vu) .carte-inscription { transform: perspective(1200px) rotateY(-80deg) translateX(10%); opacity: 0; }
/* La carte du formulaire : un liseré lumineux qui tourne autour, le bouton qui palpite. */
.carte-inscription, .presse-carte {
  background: linear-gradient(180deg, rgba(60, 120, 255, .28), rgba(30, 50, 170, .3));
  border: 3px solid rgba(110, 200, 255, .7);
  border-radius: 26px;
  box-shadow: 0 0 24px rgba(63, 216, 255, .25), inset 0 0 30px rgba(63, 216, 255, .12);
}
.carte-inscription { position: relative; max-width: 760px; margin: 0 auto; padding: 30px 20px; text-align: center; overflow: hidden; isolation: isolate; }
.inscription-scene .formulaire .bouton { animation: bouton-flotte 3s ease-in-out infinite, bouton-palpite 2.6s ease-in-out 2s infinite; }
@keyframes bouton-palpite { 0%, 70%, 100% { filter: none; } 80% { filter: brightness(1.15) drop-shadow(0 0 16px #ffc14a); } }
.carte-inscription::before {
  content: ""; position: absolute; inset: -50%; z-index: -2;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 60%, var(--jaune), var(--rose), var(--cyan), transparent 85%);
  animation: lisere-tourne 5s linear infinite;
}
.carte-inscription::after {
  content: ""; position: absolute; inset: 4px; z-index: -1; border-radius: 22px;
  background: linear-gradient(180deg, #25146a, #191058);
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes lisere-tourne { to { --angle: 360deg; } }
.carte-inscription > p { color: var(--texte-doux); margin: 0 0 18px; }
.formulaire { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.formulaire input {
  flex: 1 1 260px; max-width: 380px; padding: 15px 20px; font-size: 17px; color: #fff;
  border-radius: 999px; border: 3px solid rgba(110, 200, 255, .8);
  background: rgba(8, 10, 50, .7); outline: none; transition: border-color .2s, box-shadow .3s, transform .3s var(--ressort);
}
.formulaire input:focus { border-color: var(--jaune); box-shadow: 0 0 18px rgba(255, 194, 26, .55); transform: scale(1.03); }
.formulaire-message { min-height: 1.5em; margin: 14px 0 0; font-weight: 600; color: var(--jaune); }
.petit-texte { font-size: 15px; color: var(--texte-doux); margin: 10px 0 0; }

/* --- Presse et créateurs : la pellicule qui défile, puis deux cartes au néon ---------------------------------------- */
.titre-presse { color: #6fe3ff; text-shadow: 0 4px 0 #0b2f6e, 0 0 24px rgba(63, 216, 255, .5); -webkit-text-stroke: 2px #0b2f6e; }
.pellicule {
  position: relative; margin: 6px -16px 40px; padding: 30px 0; rotate: -3deg; overflow: hidden;
  background: #0b0626; box-shadow: 0 0 0 3px #2b0f6b, 0 18px 40px rgba(0, 0, 0, .55);
}
.pellicule::before, .pellicule::after {  /* les perforations de la pellicule */
  content: ""; position: absolute; left: 0; right: 0; z-index: 2; height: 14px;
  background: linear-gradient(90deg, rgba(243, 238, 255, .9) 0 12px, transparent 12px 24px) 0 0 / 24px 100% repeat-x;
  -webkit-mask: linear-gradient(#000, #000); border-radius: 3px; opacity: .8;
}
.pellicule::before { top: 8px; } .pellicule::after { bottom: 8px; }
.pellicule-piste { display: flex; gap: 14px; width: max-content; }
.pellicule-piste img {
  height: clamp(100px, 15vw, 220px); width: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px;
  border: 3px solid #f3eeff; box-shadow: 0 0 18px rgba(139, 61, 255, .45);
}
.anim-pret .pellicule-piste { animation: pellicule 46s linear infinite; }
.pellicule:hover .pellicule-piste { animation-play-state: paused; }
@keyframes pellicule { to { transform: translateX(-50%); } }
.presse { display: grid; grid-template-columns: 1fr; gap: 22px; }
.presse-carte {
  position: relative; padding: 26px 22px 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--neon) 22%, #1d1050), #140a3c 80%);
  border: 4px solid var(--neon);
  box-shadow: 0 0 0 4px var(--neon-fonce), 0 0 40px color-mix(in srgb, var(--neon) 45%, transparent), 0 24px 50px rgba(0, 0, 0, .45);
}
.presse-carte.fini:hover { transform: translateY(-6px) rotate(-.8deg); }
.presse-carte h3 {
  display: inline-block; margin: 0 0 12px; padding: 6px 18px 9px; border-radius: 999px; font-size: clamp(21px, 2.2vw, 28px); color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--neon) 70%, #fff), var(--neon) 55%, color-mix(in srgb, var(--neon) 70%, #000));
  border: 4px solid var(--neon-fonce); box-shadow: 0 5px 0 var(--neon-fonce); text-shadow: 0 3px 0 var(--neon-fonce); rotate: -2deg;
}
.presse-carte p { color: var(--texte); line-height: 1.6; }
.presse-faits { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.presse-faits li {
  padding: 6px 14px 8px; border-radius: 999px; font: 15px/1.2 "Luckiest Guy", sans-serif; letter-spacing: .02em; color: #fff;
  background: linear-gradient(180deg, #a565ff, #6d24e6); border: 3px solid #2b0f6b; box-shadow: 0 3px 0 #2b0f6b; text-shadow: 0 2px 0 #2b0f6b;
}
.presse-faits li:nth-child(2n) { background: linear-gradient(180deg, #6fe3ff, #1d6be6); border-color: #0b2f6e; box-shadow: 0 3px 0 #0b2f6e; text-shadow: 0 2px 0 #0b2f6e; }
.anim-pret .presse-faits li { transition: scale .6s var(--ressort) calc(.6s + var(--k) * .14s), rotate .6s var(--ressort) calc(.6s + var(--k) * .14s); }
.anim-pret .presse-carte:not(.vu) .presse-faits li { scale: 0; rotate: -50deg; }
.presse-faits li:hover { scale: 1.08; rotate: -3deg; }
/* « REC » qui clignote, comme une caméra qui tourne. */
.presse-rec {
  position: absolute; top: -17px; right: 20px; display: flex; align-items: center; gap: 7px; padding: 4px 11px 5px; border-radius: 8px;
  font: 15px/1 "Luckiest Guy", sans-serif; letter-spacing: .08em; color: #fff; background: rgba(12, 6, 32, .8); border: 2px solid #ff4a6a;
}
.presse-rec i { width: 11px; height: 11px; border-radius: 50%; background: #ff2a4a; box-shadow: 0 0 10px #ff2a4a; animation: rec 1.1s steps(1) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.presse-createurs .bouton { margin-top: 6px; }

/* --- Pied ----------------------------------------------------------------------------------------- */
.pied { text-align: center; padding: 60px 20px 100px; color: var(--texte-doux); font-size: 14px; }
.pied-logo { width: 220px; margin: 0 auto 10px; opacity: .85; }

/* --- La musique : un bouton rond en bas à droite (musique.js), qui bat en rythme (--battement) ------------------ */
.musique {
  position: fixed; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  width: 60px; height: 60px; padding: 0; border-radius: 50%; cursor: pointer; color: #fff;
  display: grid; place-items: center;
  border: 4px solid #1d2380; background: linear-gradient(180deg, #8f9bff, #4f5bdd);
  box-shadow: 0 5px 0 #1d2380, inset 0 4px 0 rgba(255, 255, 255, .4), 0 12px 26px rgba(0, 0, 0, .45);
  transform: scale(calc(1 + var(--battement, 0) * .16));
  transition: transform .08s linear, filter .2s ease;
}
.musique[hidden] { display: none; }
.musique:hover { filter: brightness(1.1); }
.musique::before {  /* l'onde qui invite à toucher, tant qu'on ne l'a jamais touché */
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid #8f9bff; pointer-events: none;
  animation: musique-appel 1.8s ease-out infinite;
}
.musique.touche::before { animation: none; opacity: 0; }
@keyframes musique-appel { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.musique-barres { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.musique-barres i { width: 5px; height: 35%; border-radius: 3px; background: #fff; box-shadow: 0 2px 0 #1d2380; }
.musique-barres i:nth-child(2) { height: 70%; }
.musique-barres i:nth-child(3) { height: 50%; }
.musique-barres i:nth-child(4) { height: 85%; }
.musique.joue .musique-barres i { animation: barre-son .8s ease-in-out infinite alternate; }
.musique.joue .musique-barres i:nth-child(2) { animation-delay: -.2s; }
.musique.joue .musique-barres i:nth-child(3) { animation-delay: -.5s; }
.musique.joue .musique-barres i:nth-child(4) { animation-delay: -.35s; }
@keyframes barre-son { from { height: 18%; } to { height: 100%; } }
.musique:not(.joue)::after {  /* le trait « coupé » */
  content: ""; position: absolute; width: 46px; height: 5px; border-radius: 3px; background: #ff4a6a;
  rotate: -45deg; box-shadow: 0 0 0 2px #1d2380;
}

/* --- Éclaboussures du toucher et du clic (animations.js) ------------------------------------------------------- */
.giclee { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; border-radius: 50%; }
.onde { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; border-radius: 50%; border: 4px solid; }

/* --- Curseur : la boule de poils du jeu (curseur.js). Le curseur du système est caché ; sans le script, l'image
   de la boule sert quand même de curseur. --------------------------------------------------------------------- */
html { cursor: url("images/curseur_boule_32.png") 6 6, auto; }
a, button, label { cursor: url("images/curseur_boule_32.png") 6 6, pointer; }
html.curseur-boule, html.curseur-boule * { cursor: none !important; }
html.curseur-boule input { cursor: text !important; }
/* (24/11, Matetos : « sur l'écran du choix de la langue, le curseur n'apparaît pas ») La boule passe au-dessus de TOUT, l'écran
   des drapeaux compris (z-index 2000) : le curseur du système est caché, elle est le seul curseur. */
.curseur-toile, .curseur-image { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 3000; }
.curseur-toile { width: 100vw; height: 100vh; }
.curseur-image { transform-origin: center; opacity: 0; transition: opacity .15s; }

/* --- Grand écran ------------------------------------------------------------------------------------ */
@media (min-width: 641px) {
  body { font-size: 17px; }
  .barre { gap: 24px; padding: 10px 24px; }
  .barre.reduite { padding: 5px 24px; }
  .barre-logo img { height: 42px; }
  .bouton { --h: 72px; }
  .boutons { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 26px; max-width: none; }
  .accueil-contenu { width: min(100%, 1000px); max-width: none; }  /* (24/11 : la place pour le bouton Discord et l'inscription côte à côte) */
  .inscription-haut { --h-haut: 72px; flex: 0 1 540px; margin-top: 0; }
  .inscription-haut-etiquette { left: 26px; font-size: 14px; }
  .accueil { min-height: 92vh; padding: 60px 20px 150px; }
  .descendre { bottom: 120px; }
  .bandeaux { height: 150px; margin-top: -118px; }
  .bandeau-2 { top: 80px; }
  .bloc { padding: 70px 20px 20px; scroll-margin-top: 60px; }
  .intro { font-size: 19px; margin-bottom: 34px; }
  .carte-inscription { padding: 34px 30px; }
  .presse { grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
  .presse-carte { padding: 30px 30px 28px; }
  .presse-createurs { margin-top: 48px; }  /* (un peu plus bas que sa voisine : les deux cartes se répondent) */
  .pellicule { margin: 10px -20px 50px; }
  .musique { right: 22px; bottom: 22px; }
}
@media (min-width: 901px) {
  /* Bidouf : la vitrine à gauche, les catégories à droite, l'une sous l'autre. */
  .vitrine-bidouf { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 64px; }
  .vitrine { width: auto; height: min(72vh, 660px); }
  .vitrine-nom { font-size: 24px; }
  .vitrine-icones img { width: 50px; height: 50px; }
  .vitrine-categories { flex-direction: column; align-items: flex-start; gap: 18px; }
  .vitrine-categories li { font-size: 24px; padding: 13px 26px 10px; }
  .barre-liens { display: flex; }
  .barre .bouton-rond { margin-left: 0; }
  /* Modes : la carte se couche à l'horizontale (image à gauche, logo et texte à droite). */
  .bloc-modes { --barre: 46px; --entete: 112px; }
  .bloc-modes .titre-scrub { margin: 0 -20px 10px; }
  .pile-modes { gap: 30vh; }
  .mode { top: calc(var(--barre) + var(--entete) + var(--k) * 18px); }
  .mode-carte {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 30px;
    max-width: 980px; margin: 0 auto; padding: 18px 34px 18px 18px;
  }
  .mode-image { aspect-ratio: 1; max-height: min(50vh, 420px); }
  .mode-logo { width: 100%; margin: 0 0 12px; }
  .mode p { font-size: 21px; }
  /* Maps : l'affiche colle à l'écran d'un côté pendant que les photos passent de l'autre (un côté sur deux). */
  /* Maps : le tas à gauche, les photos à droite. */
  .anim-pret .tas-scene { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-rows: 1fr; align-items: center; gap: 40px; max-width: 1150px; margin: 0 auto; }
  .anim-pret .tas-cartes { height: min(52vh, 420px); }
  .anim-pret .tas-groupe { justify-content: center; max-width: none; }
  .chapitre-nom { font-size: 32px; }
  .tas-accroche { font-size: 24px; }
  .tas-photos { gap: 14px; }
  .annonce-rarete { font-size: 54px; } .annonce-rarete.rare { font-size: 64px; } .annonce-rarete.epique { font-size: 72px; } .annonce-rarete.legendaire { font-size: 84px; }
  /* Club : au bar, la photo un peu plus étroite et les canettes en deux colonnes, de part et d'autre, collées au cadre
     (leurs places sont comptées depuis le milieu de l'écran et la largeur du cadre, --cadre-l). */
  .anim-pret .tableau-bar {
    --cadre-l: min(62vw, (100svh - 46px - 260px) * 1.778, 1100px);
    --canette-h: clamp(80px, 12vh, 170px); --canette-l: calc(var(--canette-h) * .375);
  }
  .anim-pret .tableau-bar .tableau-cadre { width: var(--cadre-l); }
  .anim-pret .canette:nth-child(-n+3) { right: auto; bottom: auto; }
  .anim-pret .canette:nth-child(n+4) { left: auto; bottom: auto; }
  .anim-pret .canette:nth-child(1) { left: calc(50% - var(--cadre-l) / 2 - var(--canette-l) * 2.4); top: calc(50% - var(--cadre-l) * .34); }
  .anim-pret .canette:nth-child(2) { left: calc(50% - var(--cadre-l) / 2 - var(--canette-l) * 3.4); top: calc(50% - var(--cadre-l) * .1); }
  .anim-pret .canette:nth-child(3) { left: calc(50% - var(--cadre-l) / 2 - var(--canette-l) * 2.2); top: calc(50% + var(--cadre-l) * .14); }
  .anim-pret .canette:nth-child(4) { right: calc(50% - var(--cadre-l) / 2 - var(--canette-l) * 2.4); top: calc(50% - var(--cadre-l) * .36); }
  .anim-pret .canette:nth-child(5) { right: calc(50% - var(--cadre-l) / 2 - var(--canette-l) * 3.4); top: calc(50% - var(--cadre-l) * .12); }
  .anim-pret .canette:nth-child(6) { right: calc(50% - var(--cadre-l) / 2 - var(--canette-l) * 2.2); top: calc(50% + var(--cadre-l) * .12); }
  /* Les liens du club, sans animation : la photo à gauche, le buste, sa bulle et la carte à droite. Avec : la carte d'amitié à
     gauche, son texte à droite. */
  .tableau-lien:not(.tableau-amis) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "photo duo" "photo carte"; align-items: center; }
  .lien-photo { grid-area: photo; } .lien-duo { grid-area: duo; } .lien-carte { grid-area: carte; }
  .anim-pret .tableau-amis { flex-direction: row; gap: 5vw; }
  .anim-pret .tableau-amis .carte-amitie { margin: 0; width: min(40vw, 560px); }
  .anim-pret .tableau-amis .tableau-texte { max-width: 520px; margin: 0; text-align: left; }
  .anim-pret .tableau-amis .tableau-texte p { margin: 0; }
  /* L'inscription : le Bidouf et son soleil à gauche, la carte du formulaire à droite. */
  .inscription-scene { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; }
  .inscription-bidouf { width: min(100%, 440px); }
}
/* Les grands écrans (1440p et plus) : les cartes des modes et les maps prennent plus de place. */
@media (min-width: 1500px) and (min-height: 1000px) {
  .mode-carte { max-width: min(1320px, 90vw); }
  .mode-image { max-height: min(56vh, 660px); }
  .mode p { font-size: 25px; }
  .anim-pret .tas-scene { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); max-width: min(1700px, 92vw); }
  .anim-pret .tas-cartes { height: min(56vh, 600px); }
  .tas-groupe, .anim-pret .tas-groupe { max-width: 1100px; }
  .chapitre-nom { font-size: 40px; }
  .tas-accroche { font-size: 30px; }
  .anim-pret .collection { height: min(70svh, 860px); }
  .anim-pret .collection .carte-map { width: min(48vw, 42svh, 410px); }
  .booster { width: min(56vw, 50svh, 480px); }
  .jeu strong { font-size: 24px; }
  /* (24/11) La carte d'amitié des liens du club, plus grande. */
  .anim-pret .tableau-amis .carte-amitie { width: min(36vw, 720px); padding: 56px 34px 30px; }
  .amitie-medaillon { width: 260px; }
  .amitie-coeurs i { width: 64px; }
  .amitie-bandeau { font-size: 40px; }
  .amitie-compte { font-size: 40px; }
  .amitie-bonus { font-size: 24px; }
  .anim-pret .tableau-amis .tableau-texte { max-width: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  .langue, .langue *, .langue *::after { animation: none !important; transition: none !important; }
  * { animation: none !important; transition: none !important; }
  .ouverture { display: none !important; }
}
