﻿/* Écran de démarrage (index.html) : servi tel quel, avant le code de l'application. Extrait de index.html pour la CSP
   (`style-src 'self'` sans 'unsafe-inline', docs/securite/CSP-CLIENT.md). Couleurs propres à cet écran (avant les jetons). */
html, body { background: #0e1c3f; margin: 0; }
/* Écran de chargement : affiché dès le premier octet, retiré quand l'application s'affiche */
#boot { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 1.1rem; padding: 1.5rem; text-align: center; color: #e8eefc; font: 15px/1.5 'Segoe UI', system-ui, sans-serif; background: #0e1c3f; transition: opacity .15s ease; }
#boot.done { opacity: 0; pointer-events: none; }
#boot .boot-brand { display: grid; place-items: center; min-height: 52px; }
#boot .boot-brand.text { display: block; font-size: 1.9rem; font-weight: 700; }
#boot .boot-logo { display: block; width: min(286px, 62vw); height: auto; margin-bottom: .5rem; opacity: 0; transition: opacity .25s ease; }
#boot .boot-logo.ready { opacity: 1; }
#boot .boot-track { width: min(320px, 70vw); height: 6px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .14); }
#boot .boot-bar { height: 100%; width: 4%; border-radius: inherit; background: linear-gradient(90deg, #22d3ee, #6c8cff); transition: width .35s ease-out; position: relative; overflow: hidden; }
#boot .boot-bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-100%); animation: boot-shine 1.4s ease-in-out infinite; }
#boot .boot-msg { min-height: 1.5em; margin: 0; color: #b6c4ea; font-size: .9rem; }
#boot .boot-more { max-width: 34rem; margin: 0; color: #8fa0cf; font-size: .82rem; }
#boot .boot-more code { word-break: break-all; color: #ffb0b8; }
#boot ul { margin: .4rem 0 0; padding: 0; list-style: none; }
#boot button { margin-top: .2rem; padding: .55rem 1.3rem; border: 0; border-radius: 999px; font: inherit; font-weight: 650; color: #06222a; background: #22d3ee; cursor: pointer; }
#boot button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#boot.failed .boot-track { display: none; }
#boot.failed .boot-msg { font-size: 1.2rem; font-weight: 700; color: #e8eefc; }
@keyframes boot-shine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { #boot .boot-bar::after { animation: none; } #boot { transition: none; } }
/* message sans JavaScript */
.nojs { color: #e8eefc; font: 15px system-ui, sans-serif; padding: 2rem; }
