/* ============================================================
   STYLE.CSS - Site News v2
   Ecole des Arches SA
   Styles pour l'interface d'administration
   ============================================================ */

/* --- Variables --- */
:root {
    --color-primary:  #0d6efd;
    --color-dark:     #212529;
    --color-light:    #f8f9fa;
    --color-border:   #dee2e6;
    --sidebar-width:  240px;
    --navbar-height:  56px;
}

/* --- Base --- */
body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
}

/* --- Navbar --- */
.navbar-brand img {
    filter: brightness(0) invert(1);
}

/* --- Cards --- */
.card {
    border-radius: 0.75rem;
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
}

/* --- Tables --- */
.table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

.table td {
    font-size: 0.875rem;
    vertical-align: middle;
}

/* --- Boutons --- */
.btn {
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.btn-group .btn {
    border-radius: 0.375rem !important;
}

/* --- Formulaires --- */
.form-control,
.form-select {
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

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

/* --- Badges --- */
.badge {
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* --- Preview box (detailsnews / detailsads) --- */
.preview-box {
    min-height: 200px;
}

/* --- Alerts --- */
.alert {
    border-radius: 0.75rem;
    border: none;
}

/* --- Navbar active link --- */
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #fff;
}

/* --- Responsive table fix --- */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.8rem;
    }
    .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
    }
}