/* ===== Administration Conscrits 2027 ===== */
:root { --nuit: #1b2a4a; --rouge: #c8102e; --or: #f2b134; --gris: #565d6d; --bordure: #d8dce6; --fond: #f3f5fa; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--fond); color: #1f2430; line-height: 1.5; }
a { color: var(--nuit); }
h1 { color: var(--nuit); font-size: 1.7rem; margin: 0 0 1rem; }
h2 { color: var(--nuit); font-size: 1.2rem; margin: 0 0 .8rem; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

.a-entete { background: var(--nuit); color: #fff; border-bottom: 4px solid var(--or); }
.a-entete__barre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; padding: .8rem 1.2rem; }
.a-marque { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; }
.a-marque span { background: var(--or); color: var(--nuit); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.a-compte { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; font-size: .95rem; }
.a-compte a { color: #fff; }
.a-onglets { display: flex; gap: .2rem; overflow-x: auto; padding: 0 1rem; }
.a-onglets a { color: #fff; text-decoration: none; padding: .7rem .9rem; white-space: nowrap; border-bottom: 3px solid transparent; font-weight: 600; font-size: .95rem; }
.a-onglets a[aria-current="page"], .a-onglets a:hover { border-bottom-color: var(--or); }
.a-compteur { background: var(--rouge); color: #fff; border-radius: 999px; padding: 0 .45rem; font-size: .78rem; }

.a-contenu { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.2rem 4rem; }
.a-boite { background: #fff; border: 1px solid var(--bordure); border-radius: 10px; padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; }
.a-boite--connexion { max-width: 440px; margin: 2rem auto; }
.a-boite--attention { border-left: 6px solid var(--or); }
.a-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.a-titre-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.a-titre-actions h1 { margin: 0; }
.a-aide { color: var(--gris); font-size: .92rem; margin: .2rem 0 .6rem; }
.a-sommaire { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.a-sommaire a { background: #fff; border: 1px solid var(--bordure); border-radius: 999px; padding: .4rem .9rem; text-decoration: none; font-weight: 600; }

.a-form { display: grid; gap: .9rem; }
.a-form label, .a-champ > label { display: grid; gap: .3rem; font-weight: 700; color: var(--nuit); }
.a-champ { display: grid; gap: .2rem; }
.a-champ .a-aide { margin: 0; font-weight: 400; }
input[type="text"], input[type="email"], input[type="url"], input[type="date"], input[type="number"], input[type="password"], input:not([type]), select, textarea {
  font: inherit; font-weight: 400; padding: .55rem .75rem; min-height: 44px; border: 2px solid var(--bordure); border-radius: 8px; background: #fff; width: 100%; color: #1f2430;
}
input:focus, select:focus, textarea:focus { border-color: var(--nuit); outline: none; box-shadow: 0 0 0 3px rgba(242,177,52,.45); }
input[type="file"] { font: inherit; font-weight: 400; }
.a-court { max-width: 110px; }
.a-case { display: flex !important; align-items: center; gap: .5rem; font-weight: 600 !important; grid-template-columns: none !important; }
.a-case input { width: 20px; height: 20px; }
.a-form--ligne { grid-template-columns: auto 1fr auto; align-items: center; }
@media (max-width: 640px) { .a-form--ligne { grid-template-columns: 1fr; } }
.a-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.a-image-actuelle { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: .3rem 0; }
.a-image-actuelle img { max-height: 120px; width: auto; border-radius: 6px; border: 1px solid var(--bordure); }

.a-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1.1rem; border-radius: 8px; border: 2px solid var(--nuit); background: var(--nuit); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; justify-self: start; }
.a-bouton:hover { background: #111c33; color: #fff; }
.a-bouton--second { background: #fff; color: var(--nuit); }
.a-bouton--second:hover { background: var(--fond); color: var(--nuit); }
.a-bouton--danger { background: #fff; color: #9e0c24; border-color: #9e0c24; }
.a-bouton--danger:hover { background: #9e0c24; color: #fff; }
.a-bouton--petit { min-height: 38px; padding: .3rem .8rem; font-size: .92rem; }

.a-alerte { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 600; }
.a-alerte--ok { background: #e5f4ea; color: #1d5b33; border: 1px solid #a8d5b6; }
.a-alerte--erreur { background: #fde8eb; color: #8a0d22; border: 1px solid #f2b5bf; }

.a-tableau-defile { overflow-x: auto; background: #fff; border: 1px solid var(--bordure); border-radius: 10px; margin-bottom: 1.2rem; }
.a-tableau { width: 100%; border-collapse: collapse; min-width: 640px; }
.a-tableau th, .a-tableau td { padding: .75rem 1rem; text-align: left; border-top: 1px solid var(--bordure); vertical-align: middle; }
.a-tableau thead th { background: var(--fond); border-top: none; font-size: .9rem; color: var(--gris); }
.a-cellule-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.a-cellule-actions form { margin: 0; }
.a-etat { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #eceef3; color: var(--gris); }
.a-etat--ok { background: #e5f4ea; color: #1d5b33; }
.a-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.a-chiffres { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }
.a-chiffres a { display: flex; flex-direction: column; padding: 1rem; background: var(--fond); border-radius: 8px; text-decoration: none; }
.a-chiffres strong { font-size: 1.8rem; color: var(--nuit); }
.a-chiffres span { color: var(--gris); font-size: .9rem; }

.a-photos { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.a-photos li { display: grid; gap: .5rem; background: var(--fond); padding: .7rem; border-radius: 8px; }
.a-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.a-photos label { display: grid; gap: .2rem; font-weight: 600; font-size: .9rem; }

.a-fiche-ligne { grid-template-columns: auto repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.a-pleine-largeur { grid-column: 1 / -1; }
.a-vignette { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; align-self: center; }
.a-vignette--ronde { border-radius: 50%; }
.a-vignette--logo { object-fit: contain; background: #fff; border: 1px solid var(--bordure); }
.a-initiale { display: grid; place-items: center; background: var(--nuit); color: #fff; font-weight: 800; font-size: 1.4rem; }
@media (max-width: 640px) { .a-fiche-ligne { grid-template-columns: 1fr; } }

.a-message--nouveau { border-left: 6px solid var(--rouge); }
.a-message__entete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.a-details summary { cursor: pointer; color: var(--nuit); font-weight: 600; }
.a-details form { margin-top: .7rem; }
.a-marque img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #fff; border: 2px solid var(--or); }
