/* Avant le JavaScript (et tant que React ne rend rien) : spinner discret, affiché après 200 ms. */
html, body { margin: 0; background: #fff; }
html[data-theme='dark'], html[data-theme='dark'] body { background: #0f1318; }
#root:empty, #root:has(> [data-ssr-summary]:only-child) { min-height: 100vh; display: grid; place-items: center; }
#root:empty::before, #root:has(> [data-ssr-summary]:only-child)::before {
  content: ""; box-sizing: border-box; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(10, 137, 212, 0.18); border-top-color: #0a89d4;
  opacity: 0; animation: boot-in 0s linear 0.2s forwards, boot-spin 0.8s linear infinite;
}
html[data-theme='dark'] #root:empty::before, html[data-theme='dark'] #root:has(> [data-ssr-summary]:only-child)::before { border-color: rgba(10, 137, 212, 0.28); border-top-color: #3aa7e6; }
#prerender ~ #root:empty { display: none; }
@keyframes boot-in { to { opacity: 1; } }
@keyframes boot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  #root:empty::before, #root:has(> [data-ssr-summary]:only-child)::before { animation: boot-in 0s linear 0.2s forwards; border-color: rgba(10, 137, 212, 0.18); border-top-color: #0a89d4; border-right-color: #0a89d4; }
}
/* Résumé SEO des vitrines rendu par le serveur dans #root : lisible par les robots, masqué visuellement jusqu'au
   premier rendu de React (qui le remplace), sans clignotement. noscript.css le rend visible sans JavaScript. */
[data-ssr-summary] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
