/*
 * CODE DIGITRANS 18/11/2026 : chargeur « radar » pour toute l'application.
 * Remplace l'apparence de i.loader (GPSWOX : loader.add() à chaque chargement en arrière-plan, listes, fenêtres, tableaux)
 * par un point et deux ondes dans la couleur du thème (--dt-acc, lue sur le bouton d'action par les mises en page ;
 * à défaut la couleur courante, qui est celle du thème dans .loading / #loading). Tailles : 52 px, grand 80 px, petit 20 px.
 * Chargé après la feuille du thème par Frontend/Layouts/partials/head.blade.php et Admin/Layouts/default.blade.php.
 * L'écran de chargement plein écran (#loading) a sa propre version avec un repère de position (partials/loading.blade.php).
 */
.loader { display: block; position: relative; margin: auto; width: 52px; height: 52px; color: var(--dt-acc, currentColor);
    background: radial-gradient(circle, currentColor 0 14%, transparent 15%); }
.loader.large { width: 80px; height: 80px; }
.loader.small { display: inline-block; vertical-align: middle; width: 20px; height: 20px; }

.loader:before, .loader:after,
.loader.large:before, .loader.large:after,
.loader.small:before, .loader.small:after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-sizing: border-box;
    border: 2px solid currentColor; border-radius: 50%; opacity: 0;
    -webkit-animation: dtChOnde 1.8s ease-out 0s infinite normal both; animation: dtChOnde 1.8s ease-out 0s infinite normal both;
}
.loader.small:before, .loader.small:after { border-width: 1.5px; }
.loader:after, .loader.large:after, .loader.small:after { -webkit-animation-delay: .9s; animation-delay: .9s; }

@-webkit-keyframes dtChOnde { 0% { -webkit-transform: scale(.2); opacity: .9; } 100% { -webkit-transform: scale(1); opacity: 0; } }
@keyframes dtChOnde { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .loader:before, .loader:after { -webkit-animation-duration: 6s; animation-duration: 6s; }
}
