/*
 * Ajustements du gabarit Skote pour l'administration de la commune.
 * Les styles de base restent ceux de Skote (app.min.css).
 */

/* Lien d'évitement (RGAA) */
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; padding: .5rem 1rem; background: #fff; color: #556ee6; border-radius: .25rem; box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15); }

/* Logo : blason + nom de la commune */
.navbar-brand-box .logo-texte { display: inline-flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 1rem; color: #fff; letter-spacing: .02em; }
.navbar-brand-box .logo-texte small { font-size: .68rem; font-weight: 400; color: #a6b0cf; text-transform: uppercase; letter-spacing: .08em; }
.navbar-brand-box .logo img { object-fit: contain; }

/* Avatar par initiales */
span.header-profile-user { width: 36px; height: 36px; font-size: .8rem; vertical-align: middle; }

/* Titre de page : h1 au gabarit du h4 Skote */
.page-title-box h1 { font-weight: 600; text-transform: uppercase; }

/* Contour de focus visible partout (RGAA) */
a:focus-visible, button:focus-visible, .btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible, .form-check-input:focus-visible {
    outline: 2px solid #556ee6; outline-offset: 2px; box-shadow: none;
}
#main-content:focus, main:focus { outline: none; }

/* Moteur CRUD : tableaux et actions */
.crud .table > :not(caption) > * > * { padding: .65rem .75rem; }
.crud .table thead th { font-weight: 600; white-space: nowrap; }
.crud .table thead a { color: inherit; }
.crud .btn-sm { padding: .25rem .5rem; }
.crud .note-editor { border-color: var(--bs-border-color); }

/* Tableau de bord */
.mini-stats-wid .mini-stat-icon { width: 3rem; height: 3rem; }
.raccourci { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .5rem; border-radius: .5rem; border: 1px solid var(--bs-border-color); color: var(--bs-body-color); text-align: center; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.raccourci:hover, .raccourci:focus-visible { border-color: #556ee6; background: rgba(85, 110, 230, .06); color: var(--bs-body-color); transform: translateY(-2px); }
.raccourci .avatar-title { width: 2.75rem; height: 2.75rem; font-size: 1.35rem; }
.file-a-traiter .list-group-item { padding: .85rem 0; border-left: 0; border-right: 0; }
.file-a-traiter .list-group-item:first-child { border-top: 0; }
.evolution { font-size: .8rem; font-weight: 500; }
.barre-repartition { height: .5rem; border-radius: 1rem; background: var(--bs-secondary-bg); overflow: hidden; }
.barre-repartition > span { display: block; height: 100%; border-radius: 1rem; }
.table-classement td:first-child { width: 2rem; color: #74788d; }
.table-classement .text-truncate { max-width: 22rem; }

@media (prefers-reduced-motion: reduce) {
    .raccourci, .raccourci:hover { transition: none; transform: none; }
    .bx-tada { animation: none !important; }
}
