/* Écran de démarrage (téléphone et application installée) : logo qui apparaît en fondu, anneau qui se trace, nom lettre par lettre.
   Affiché seulement quand <html> porte la classe has-splash (posée tout de suite dans <head>), une fois par session. Voir public/ot-anim.js. */
#splash { display: none; }
html.has-splash #splash { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(160deg, #f7f8fa 0%, #eceef1 50%, #dfe2e7 100%); color: #1c1c1e; font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif); }
#splash .sp-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0; }
#splash .sp-orb.a { width: 70vmax; height: 70vmax; left: -25vmax; top: -30vmax; background: #fff; }
#splash .sp-orb.b { width: 55vmax; height: 55vmax; right: -22vmax; bottom: -22vmax; background: #c9ced6; }
#splash .sp-orb.c { width: 36vmax; height: 36vmax; left: 30vw; top: 46vh; background: #eadfd0; }
#splash .sp-center { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
#splash .sp-logo { position: relative; width: 132px; height: 132px; display: flex; align-items: center; justify-content: center; }
#splash .sp-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#splash .sp-ring circle { fill: none; stroke: #1c1c1e; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; opacity: .85; }
#splash .sp-mark { width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 2.6rem; font-weight: 800; color: #2b2d31; background: rgba(255, 255, 255, .8); box-shadow: 0 12px 34px rgba(40, 46, 60, .16), inset 0 1px 0 #fff; opacity: 0; }
#splash .sp-mark img { width: 100%; height: 100%; object-fit: contain; }
#splash .sp-name { display: flex; font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; min-height: 1.9rem; }
#splash .sp-name span { display: inline-block; opacity: 0; white-space: pre; }
#splash .sp-dots { display: flex; gap: 7px; height: 8px; }
#splash .sp-dots i { width: 7px; height: 7px; border-radius: 50%; background: #1c1c1e; opacity: 0; }
/* sans bibliothèque (échec de chargement) : simple fondu */
#splash.sp-plain .sp-mark, #splash.sp-plain .sp-name span, #splash.sp-plain .sp-orb { opacity: 1; transition: opacity .5s ease; }
#splash.sp-out { opacity: 0; transition: opacity .45s ease; }
@media (prefers-reduced-motion: reduce) { html.has-splash #splash { display: none; } }
