/*
 * Feuille de style des pages publiques (chargée via importmap).
 *
 * Les couleurs des composants (cartes, tableaux, champs, modales...) sont
 * gérées par Bootstrap 5.3 selon le thème actif (attribut data-bs-theme sur
 * <html>) et par les variables --gb-* définies dans base.html.twig.
 * Ne pas forcer de couleur fixe ici : elle casserait l'un des deux thèmes.
 */

:root {
    --primary-color: #5a4fcf;
    --primary-dark: #3f38a8;
    --primary-light: #776be8;
    --border-radius: 0.375rem;
    --transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Barre de défilement adaptée au thème */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gb-surface-2, #f1f1f1);
}

::-webkit-scrollbar-thumb {
    background: var(--gb-text-muted, #adb5bd);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gb-text-soft, #6c757d);
}

/* Impression : toujours en clair */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .card {
        background-color: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
    }

    .btn,
    .theme-toggle {
        display: none !important;
    }
}
