:root {
    --vert: #1f4e3d; --vert-2: #2d6a53; --vert-clair: #e8f0ec; --or: #b08a3c; --or-clair: #f6efe0;
    --fond: #f4f6f5; --texte: #1d2522; --bordure: #dfe5e2; --largeur-menu: 260px;
}
body { font-family: 'Cairo', system-ui, sans-serif; background: var(--fond); color: var(--texte); font-size: .95rem; }
.app { display: flex; min-height: 100vh; }
.barre-laterale { width: var(--largeur-menu); background: var(--vert); color: #fff; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.marque { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1rem; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.marque img { background: #fff; border-radius: 10px; padding: 6px 10px; max-width: 170px; }
.marque span { font-weight: 700; font-size: .95rem; color: var(--or-clair); }
.menu { padding: .5rem 0 2rem; }
.menu .lien, .menu summary { display: block; padding: .55rem 1.1rem; color: rgba(255,255,255,.88); text-decoration: none; cursor: pointer; font-weight: 600; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; float: inline-end; opacity: .6; transition: transform .2s; }
.menu details[open] summary::after { transform: rotate(180deg); }
.menu i { width: 1.4rem; text-align: center; margin-inline-end: .35rem; color: var(--or); }
.menu .lien:hover, .menu summary:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu .lien.actif { background: var(--or); color: #fff; }
.menu .lien.actif i { color: #fff; }
.menu .lien.sous { padding-inline-start: 3rem; font-weight: 400; font-size: .9rem; }
.principal { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.barre-haut { background: #fff; border-bottom: 1px solid var(--bordure); padding: .6rem 1.25rem; display: flex; align-items: center; position: sticky; top: 0; z-index: 20; }
.titre-page { font-size: 1.2rem; font-weight: 700; margin: 0; color: var(--vert); }
.contenu { padding: 1.25rem; max-width: 1400px; width: 100%; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.pastille { position: absolute; top: -4px; inset-inline-end: -6px; font-size: .65rem; }
.notifs { width: 340px; max-height: 460px; overflow-y: auto; padding: 0; }
.notif { white-space: normal; border-bottom: 1px solid #f0f0f0; padding: .5rem 1rem; }
.notif.non-lue { background: var(--or-clair); }
.carte { background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: 1.1rem 1.25rem; margin-bottom: 1.1rem; }
.carte > h2, .carte-titre { font-size: 1.05rem; font-weight: 700; color: var(--vert); margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
.tuile { background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: 1rem; display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; height: 100%; transition: box-shadow .15s, transform .15s; }
.tuile:hover { box-shadow: 0 6px 18px rgba(31,78,61,.12); transform: translateY(-2px); color: inherit; }
.tuile .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--vert-clair); color: var(--vert); font-size: 1.25rem; flex-shrink: 0; }
.tuile .nb { font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--vert); }
.tuile.alerte .ic { background: var(--or-clair); color: var(--or); }
.tuile.alerte .nb { color: var(--or); }
.btn-primary { background: var(--vert); border-color: var(--vert); }
.btn-primary:hover, .btn-primary:focus { background: var(--vert-2); border-color: var(--vert-2); }
.btn-outline-primary { color: var(--vert); border-color: var(--vert); }
.btn-outline-primary:hover { background: var(--vert); border-color: var(--vert); }
.btn-or { background: var(--or); border-color: var(--or); color: #fff; }
.btn-or:hover { background: #967431; color: #fff; }
.table { --bs-table-bg: transparent; }
.table thead th { background: var(--vert-clair); color: var(--vert); font-weight: 700; white-space: nowrap; border-bottom: 0; }
.table td { vertical-align: middle; }
.form-label { font-weight: 600; font-size: .9rem; }
.statut { font-size: .78rem; padding: .3em .7em; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.statut-1 { background: #fff4d6; color: #8a6200; } .statut-2 { background: #dcf3e5; color: #17663a; }
.statut-3 { background: #fde2e1; color: #a52a24; } .statut-4 { background: #eceff1; color: #4b5960; } .statut-5 { background: #e3ecfb; color: #234f9c; }
.chaine { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.chaine .etape { padding: .3rem .75rem; border-radius: 20px; background: #eef1ef; font-size: .82rem; font-weight: 600; }
.chaine .etape.faite { background: #dcf3e5; color: #17663a; } .chaine .etape.courante { background: var(--or); color: #fff; }
.chaine .fl { color: #9aa7a1; }
.chronologie { list-style: none; padding: 0; margin: 0; position: relative; }
.chronologie li { position: relative; padding-inline-start: 1.6rem; padding-bottom: .9rem; }
.chronologie li::before { content: ''; position: absolute; inset-inline-start: .45rem; top: .4rem; bottom: -.2rem; width: 2px; background: var(--bordure); }
.chronologie li:last-child::before { display: none; }
.chronologie li::after { content: ''; position: absolute; inset-inline-start: .15rem; top: .35rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--vert); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--vert); }
.chronologie li.refus::after { background: #c0392b; box-shadow: 0 0 0 1px #c0392b; }
.chronologie li.annul::after { background: #7f8c8d; box-shadow: 0 0 0 1px #7f8c8d; }
.infos-def dt { font-weight: 600; color: #5b6b64; font-size: .85rem; }
.infos-def dd { margin-bottom: .7rem; }
.solde { border: 1px dashed var(--or); background: var(--or-clair); border-radius: 10px; padding: .6rem .9rem; text-align: center; }
.solde .v { font-size: 1.4rem; font-weight: 700; color: var(--vert); }
.page-connexion { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, var(--vert) 0%, #163a2d 60%, #0f2a20 100%); padding: 1rem; }
.page-connexion .boite { background: #fff; border-radius: 16px; padding: 2rem; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.matrice th, .matrice td { text-align: center; } .matrice td:first-child, .matrice th:first-child { text-align: start; }
[dir=ltr] .ltr-only { direction: ltr; } .dir-ltr { direction: ltr; unicode-bidi: isolate; } span.dir-ltr { display: inline-block; } input.dir-ltr, textarea.dir-ltr, select.dir-ltr { text-align: left; }
@media (max-width: 991.98px) {
    .barre-laterale { position: fixed; inset-inline-start: 0; z-index: 40; transform: translateX(100%); transition: transform .2s; }
    [dir=ltr] .barre-laterale { transform: translateX(-100%); }
    .barre-laterale.ouverte { transform: none !important; }
    .contenu { padding: 1rem; }
}
@media print { .barre-laterale, .barre-haut, .no-print { display: none !important; } }
