/* Lexica.fr - Styles */

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-size: 1.25rem;
}

.navbar {
    background-color: #fff;
}

.card {
    border-radius: 0.75rem;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.badge {
    font-weight: 500;
}

.list-group-item-action:hover {
    background-color: #f0f7ff;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Fiche produit */
.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
}

.table td {
    vertical-align: middle;
}

/* Glossaire */
.terme-item {
    transition: background-color 0.15s;
}

/* Dark mode toggle */
.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    background: none;
    border: none;
    color: inherit;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}
.theme-toggle:hover {
    background-color: rgba(128,128,128,0.15);
}

/* Dark mode overrides */
[data-bs-theme="dark"] body {
    background-color: #1a1d20;
    color: #dee2e6;
}
[data-bs-theme="dark"] .card {
    background-color: #212529;
}
[data-bs-theme="dark"] .card-header {
    background-color: #2b3035 !important;
    color: #dee2e6;
    border-color: #373b3e;
}
[data-bs-theme="dark"] .card-header h2,
[data-bs-theme="dark"] .card-header h3 {
    color: #dee2e6;
}
[data-bs-theme="dark"] .navbar {
    background-color: #1a1d20 !important;
    border-color: #373b3e !important;
}
[data-bs-theme="dark"] .list-group-item {
    background-color: #212529;
    color: #dee2e6;
    border-color: #373b3e;
}
[data-bs-theme="dark"] .list-group-item-action:hover {
    background-color: #2c3034;
}
[data-bs-theme="dark"] footer {
    background-color: #1a1d20;
    border-color: #373b3e !important;
}
[data-bs-theme="dark"] .table {
    color: #dee2e6;
}
[data-bs-theme="dark"] .table th {
    color: #adb5bd;
    border-color: #373b3e;
}
[data-bs-theme="dark"] .table td {
    border-color: #373b3e;
}
[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}
[data-bs-theme="dark"] .text-primary {
    color: #6ea8fe !important;
}
[data-bs-theme="dark"] .bg-primary {
    background-color: #0d6efd !important;
}
[data-bs-theme="dark"] .alert-info {
    background-color: #1a2a3a;
    color: #8ac4ff;
    border-color: #2a4a6a;
}
[data-bs-theme="dark"] .border-top {
    border-color: #373b3e !important;
}
[data-bs-theme="dark"] .border-bottom {
    border-color: #373b3e !important;
}
[data-bs-theme="dark"] .form-control {
    background-color: #2b3035;
    border-color: #373b3e;
    color: #dee2e6;
}
[data-bs-theme="dark"] .badge.bg-secondary {
    background-color: #495057 !important;
    color: #dee2e6;
}
[data-bs-theme="dark"] .badge.bg-light {
    background-color: #373b3e !important;
    color: #dee2e6 !important;
}
[data-bs-theme="dark"] .list-group-item-action strong {
    color: #dee2e6;
}
[data-bs-theme="dark"] a {
    color: #6ea8fe;
}
[data-bs-theme="dark"] .h5, [data-bs-theme="dark"] h5 {
    color: #dee2e6;
}

/* Responsive */
@media (max-width: 768px) {
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Favoris / Historique */
#favorisHistorique .list-group-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}
#favorisHistorique .list-group-item .btn {
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
}
[data-bs-theme="dark"] #favorisHistorique .list-group-item-action:hover {
    background-color: #2c3136;
}
