/* Fond animé de Gaston (flutter/app/lib/shell/fond_blobs.dart, repris d'AuthBackdrop du socle) : trois formes floues aux
   couleurs du thème (--blob1 à 3), qui dérivent lentement derrière les pages. Mêmes tailles, positions, flous, durées et
   opacités que Gaston dans l'app (.10, .20, .07, multipliées par l'intensité du thème). Décoratives (aria-hidden),
   immobiles si le système demande moins d'animations, coupées par le réglage « Fond animé » (Yann, 22.11.2026 :
   « faudrait les avoir partout mais dire avec ou sans fonds animés »). */
#fond-anime { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#fond-anime span { position: absolute; border-radius: 50%; will-change: transform; animation: ease-in-out infinite alternate; }
#fond-anime span:nth-child(1) {
  width: clamp(420px, 46vw, 720px); aspect-ratio: 1; left: -10vw; top: -12vh; background: var(--blob1); filter: blur(90px);
  opacity: min(1, calc(.10 * var(--intensite-blobs))); animation-name: derive-1; animation-duration: 26s;
}
#fond-anime span:nth-child(2) {
  width: clamp(340px, 34vw, 560px); aspect-ratio: 1; right: -8vw; top: 18vh; background: var(--blob2); filter: blur(80px);
  opacity: min(1, calc(.20 * var(--intensite-blobs))); animation-name: derive-2; animation-duration: 34s;
}
#fond-anime span:nth-child(3) {
  width: clamp(380px, 40vw, 640px); aspect-ratio: 1; left: 18vw; bottom: -16vh; background: var(--blob3); filter: blur(100px);
  opacity: min(1, calc(.07 * var(--intensite-blobs))); animation-name: derive-3; animation-duration: 22s;
}
@keyframes derive-1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes derive-2 { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-16vw, 14vh) scale(.9); } }
@keyframes derive-3 { from { transform: translate(0, 0) scale(.95); } to { transform: translate(12vw, -16vh) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { #fond-anime span { animation: none; } }
html[data-fond="uni"] #fond-anime { display: none; }
/* Le contenu passe devant ; le menu, en verre, laisse deviner les formes (Gaston, surfaceVerre). */
main { position: relative; z-index: 1; }
#cote { z-index: 2; } /* déjà en position collante */
#cote { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
