/* ============================================================
   AutelTECH - Feuille de style
   ============================================================ */
:root {
  --nav: #ffffff;
  --nav2: #f4f4f5;
  --nav-txt: #4a4f57;
  --accent: #e2001a;
  --accent-d: #b3000f;
  --bleu: #e2001a;
  --bleu-d: #b3000f;
  --fond: #f2f4f7;
  --carte: #ffffff;
  --bord: #dfe4ea;
  --bord2: #eceff3;
  --txt: #17181b;
  --txt2: #5c6a7d;
  --txt3: #8b97a8;
  --vert: #128a4a;
  --vert-f: #e6f5ec;
  --rouge: #e2001a;
  --rouge-f: #fdecec;
  --orange: #b26a00;
  --orange-f: #fff4e0;
  --r: 8px;
  --ombre: 0 1px 2px rgba(16,27,40,.06), 0 4px 12px rgba(16,27,40,.06);
  --ombre-f: 0 8px 32px rgba(16,27,40,.18);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 15px/1.5 "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
  color: var(--txt);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
[hidden] { display: none !important; }

/* ------------------------------------------------ connexion */
#ecranConnexion {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #0d1622 0%, #16283e 55%, #1d3350 100%);
}
.boiteConnexion {
  width: 400px; max-width: calc(100vw - 32px);
  background: var(--carte); border-radius: 14px; padding: 34px 32px 30px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.boiteConnexion .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.boiteConnexion h1 { font-size: 23px; margin: 0; letter-spacing: -.4px; }
.boiteConnexion p.sous { color: var(--txt2); font-size: 13.5px; margin: 6px 0 26px; }
.champConnexion { margin-bottom: 14px; }
.champConnexion label { display: block; font-size: 12.5px; font-weight: 600; color: var(--txt2); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
.champConnexion input { width: 100%; padding: 11px 13px; border: 1px solid var(--bord); border-radius: var(--r); }
.champConnexion input:focus { outline: 2px solid var(--bleu); outline-offset: -1px; border-color: var(--bleu); }

/* ------------------------------------------------ marque */
.marque { display: flex; align-items: center; gap: 11px; }
.marqueLogo {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: #fff; object-fit: contain; padding: 3px;
  box-shadow: 0 0 0 1px var(--bord2);
}
.marqueTxt strong { display: block; font-size: 15.5px; line-height: 1.15; letter-spacing: -.3px; text-transform: uppercase; }
.marqueTxt span { font-size: 11px; color: var(--txt3); text-transform: uppercase; letter-spacing: 1.1px; }

/* ------------------------------------------------ ossature */
#app { display: none; min-height: 100vh; flex-direction: column; }
#app.actif { display: flex; }

header.barre {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  height: 60px; padding: 0 18px;
  background: var(--nav); color: var(--txt);
  border-bottom: 1px solid var(--bord);
  box-shadow: 0 2px 10px rgba(16,27,40,.05);
}
header.barre .marqueTxt strong { color: var(--txt); }
header.barre .marqueTxt span { color: var(--txt3); }
.rechercheGlobale { flex: 1; max-width: 640px; position: relative; }
.rechercheGlobale input {
  width: 100%; height: 38px; padding: 0 36px 0 38px;
  border: 1px solid var(--bord); border-radius: 19px;
  background: var(--fond); color: var(--txt);
}
.rechercheGlobale input::placeholder { color: var(--txt3); }
.rechercheGlobale input:focus { outline: none; border-color: var(--accent); background: #fff; }
.rechercheGlobale .loupe { position: absolute; left: 13px; top: 10px; opacity: .55; }
.rechercheGlobale .vider {
  position: absolute; right: 6px; top: 6px; width: 26px; height: 26px;
  border: 0; border-radius: 50%; background: transparent; color: var(--txt3); cursor: pointer; font-size: 16px;
}
.rechercheGlobale .vider:hover { background: var(--bord2); color: var(--txt); }

.navPrinc { display: flex; gap: 2px; margin-left: auto; }
.navPrinc button {
  border: 0; background: transparent; color: var(--nav-txt); cursor: pointer;
  padding: 8px 13px; border-radius: var(--r); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 7px;
}
.navPrinc button:hover { background: var(--bord2); color: var(--txt); }
.navPrinc button.actif { background: var(--accent); color: #fff; }
.navPrinc button.navAdmin { border: 1px solid var(--accent); color: var(--accent); }
.navPrinc button.navAdmin:hover { background: var(--accent); color: #fff; }
.navPrinc button.navAdmin.actif { border-color: transparent; color: #fff; }
.navPrinc .badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px;
  background: #17181b; color: #fff; font-size: 11px; font-weight: 700;
}

.menuUser { position: relative; }
.menuUser > button {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--bord); cursor: pointer;
  background: #fff; color: var(--txt); padding: 5px 11px 5px 5px; border-radius: 20px;
}
.menuUser > button:hover { background: var(--bord2); }
.pastille {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px;
}
.menuUser .liste {
  position: absolute; right: 0; top: calc(100% + 8px); width: 240px;
  background: #fff; color: var(--txt); border-radius: 10px; box-shadow: var(--ombre-f);
  padding: 6px; z-index: 50;
}
.menuUser .liste .tete { padding: 10px 12px 12px; border-bottom: 1px solid var(--bord2); margin-bottom: 6px; }
.menuUser .liste .tete b { display: block; }
.menuUser .liste .tete span { font-size: 12.5px; color: var(--txt2); }
.menuUser .liste button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 9px 12px; border-radius: 6px; cursor: pointer; font-size: 14px;
}
.menuUser .liste button:hover { background: var(--fond); }

main { flex: 1; display: flex; align-items: flex-start; gap: 20px; padding: 20px; max-width: 1680px; width: 100%; margin: 0 auto; }
aside.filtres {
  width: 236px; flex: none; position: sticky; top: 80px;
  background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 4px 0 8px;
  box-shadow: var(--ombre);
}
aside.filtres h3 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--txt3);
  margin: 16px 15px 7px; font-weight: 700;
}
aside.filtres select, aside.filtres input {
  width: calc(100% - 30px); margin: 0 15px 4px; padding: 8px 10px;
  border: 1px solid var(--bord); border-radius: 6px; background: #fff;
}
aside.filtres .rz { margin: 12px 15px 4px; width: calc(100% - 30px); }
.section { flex: 1; min-width: 0; }

/* ------------------------------------------------ éléments */
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; box-shadow: var(--ombre); }
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  border: 1px solid var(--bord); background: #fff; color: var(--txt);
  padding: 8px 14px; border-radius: var(--r); cursor: pointer; font-weight: 600; font-size: 14px;
  white-space: nowrap;
}
.btn:hover { background: var(--fond); }
.btn.p { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.btn.p:hover { background: var(--bleu-d); }
.btn.a { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.a:hover { background: var(--accent-d); }
.btn.d { color: var(--rouge); border-color: #f1c9c9; }
.btn.d:hover { background: var(--rouge-f); }
.btn.v { background: var(--vert); border-color: var(--vert); color: #fff; }
.btn.v:hover { opacity: .88; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.large { width: 100%; padding: 11px; }

.etq {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
  background: var(--bord2); color: var(--txt2); text-transform: uppercase; letter-spacing: .4px;
}
.etq.v { background: var(--vert-f); color: var(--vert); }
.etq.o { background: var(--orange-f); color: var(--orange); }
.etq.r { background: var(--rouge-f); color: var(--rouge); }
.etq.b { background: #e8f1fe; color: var(--bleu); }
.etq.n { background: #e9edf3; color: #45536b; }

.dtc {
  display: inline-block; font-family: "Consolas", "SF Mono", monospace; font-weight: 700;
  background: #17263a; color: #ffd583; padding: 2px 7px; border-radius: 5px; font-size: 13px;
  letter-spacing: .5px;
}
.tag { display: inline-block; font-size: 12px; background: var(--fond); border: 1px solid var(--bord); color: var(--txt2); padding: 2px 8px; border-radius: 20px; }

.enteteSection { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.enteteSection h2 { font-size: 20px; margin: 0; letter-spacing: -.4px; }
.enteteSection .cpt { color: var(--txt2); font-size: 14px; }
.enteteSection .droite { margin-left: auto; display: flex; gap: 8px; }

/* ------------------------------------------------ liste des fiches */
.listeFiches { display: flex; flex-direction: column; gap: 10px; }
.ficheLigne {
  display: block; background: var(--carte); border: 1px solid var(--bord); border-left: 4px solid var(--bord);
  border-radius: 10px; padding: 13px 16px; cursor: pointer; box-shadow: var(--ombre);
  transition: border-color .12s, transform .06s;
}
.ficheLigne:hover { border-color: #c3ccd8; border-left-color: var(--accent); }
.ficheLigne:active { transform: translateY(1px); }
.ficheLigne.g-immobilisant { border-left-color: var(--rouge); }
.ficheLigne.g-elevee { border-left-color: #e8850c; }
.ficheLigne.g-moyenne { border-left-color: var(--accent); }
.ficheLigne.g-faible { border-left-color: #7ab648; }
.ficheLigne .l1 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ficheLigne .ref { font-family: Consolas, monospace; font-size: 12.5px; color: var(--txt3); font-weight: 700; }
.ficheLigne h4 { margin: 0; font-size: 16px; letter-spacing: -.2px; flex: 1; min-width: 200px; }
.ficheLigne .veh { color: var(--txt2); font-size: 13.5px; margin-top: 5px; }
.ficheLigne .l3 { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.ficheLigne .sym { color: var(--txt2); font-size: 13.5px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini { font-size: 12.5px; color: var(--txt3); display: inline-flex; align-items: center; gap: 4px; }

.vide { text-align: center; padding: 60px 20px; color: var(--txt2); }
.vide .ic { font-size: 40px; opacity: .35; margin-bottom: 10px; }
.vide h3 { margin: 0 0 6px; color: var(--txt); }

/* ------------------------------------------------ détail fiche */
.ficheDetail { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1180px) { .ficheDetail { grid-template-columns: 1fr; } }
.blocFiche { padding: 20px 22px; margin-bottom: 16px; }
.blocFiche > h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--txt3);
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--bord2); font-weight: 700;
}
.titreFiche { font-size: 25px; margin: 8px 0 10px; letter-spacing: -.7px; line-height: 1.25; }
.grilleInfos { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px 18px; }
.grilleInfos .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--txt3); font-weight: 700; }
.grilleInfos .v { margin-top: 2px; font-weight: 600; }
.grilleInfos .v.na { color: var(--txt3); font-weight: 400; }
.texteRiche { white-space: pre-wrap; line-height: 1.62; }
.texteRiche.etapes { counter-reset: e; }
table.pieces { width: 100%; border-collapse: collapse; font-size: 14px; }
table.pieces th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--txt3); padding: 0 10px 8px 0; border-bottom: 1px solid var(--bord2); }
table.pieces td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--bord2); }
table.pieces td.r { font-family: Consolas, monospace; font-weight: 700; }
.aside .blocFiche { padding: 16px 18px; }
.jauge { display: flex; gap: 3px; }
.jauge i { width: 100%; height: 6px; border-radius: 3px; background: var(--bord); }
.jauge i.on { background: var(--vert); }

/* documents */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.vignette {
  position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--bord); background: var(--fond); cursor: pointer;
}
.vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette:hover { border-color: var(--accent); }
.vignette .sup {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.62); color: #fff; cursor: pointer; display: none; line-height: 1;
}
.vignette:hover .sup { display: block; }
.vignette .pub { position: absolute; bottom: 4px; left: 4px; font-size: 10px; background: rgba(18,138,74,.92); color: #fff; padding: 1px 6px; border-radius: 10px; font-weight: 700; }
.docLigne {
  display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--bord);
  border-radius: 8px; margin-bottom: 8px; background: #fff;
}
.docLigne:hover { border-color: #c3ccd8; }
.docIco { width: 34px; height: 34px; border-radius: 7px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--txt2); }
.docIco.pdf { background: #c0392b; }
.docIco.img { background: #2d7d46; }
.docIco.xls { background: #1e7145; }
.docIco.doc { background: #235a9e; }
.docLigne .nom { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docLigne .meta { font-size: 12px; color: var(--txt3); font-weight: 400; }
.docBloc { border: 1px solid var(--bord); border-radius: 8px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.docBloc:hover { border-color: #c3ccd8; }
.docBloc .docLigne { border: 0; border-radius: 0; margin-bottom: 0; }
.docVisibilite { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-top: 1px solid var(--bord2); background: var(--fond); }
.zoneDepot {
  border: 2px dashed var(--bord); border-radius: 10px; padding: 22px; text-align: center;
  color: var(--txt2); cursor: pointer; background: #fbfcfd;
}
.zoneDepot:hover, .zoneDepot.survol { border-color: var(--bleu); background: #f2f7ff; color: var(--bleu); }

/* historique */
.histo { font-size: 13px; }
.histo li { list-style: none; padding: 8px 0 8px 14px; border-left: 2px solid var(--bord2); position: relative; }
.histo li::before { content: ''; position: absolute; left: -5px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--bord); }
.histo .d { color: var(--txt3); font-size: 12px; }

/* ------------------------------------------------ formulaire */
.ongletsForm { display: flex; gap: 4px; border-bottom: 1px solid var(--bord); margin-bottom: 20px; overflow-x: auto; }
.ongletsForm button {
  border: 0; background: none; padding: 11px 15px; cursor: pointer; font-weight: 600; color: var(--txt2);
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 14.5px;
}
.ongletsForm button:hover { color: var(--txt); }
.ongletsForm button.actif { color: var(--bleu); border-bottom-color: var(--bleu); }
.grilleForm { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 15px; }
.champ.pleine { grid-column: 1 / -1; }
.champ label { display: block; font-size: 12.5px; font-weight: 700; color: var(--txt2); margin-bottom: 5px; }
.champ label .opt { font-weight: 400; color: var(--txt3); }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--bord); border-radius: 6px; background: #fff; color: var(--txt);
}
.champ textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--bleu); outline-offset: -1px; border-color: var(--bleu); }
.champ .aide { font-size: 12px; color: var(--txt3); margin-top: 4px; }
.interne { border-left: 3px solid var(--accent); padding-left: 11px; }
.barreForm {
  position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center;
  background: var(--carte); border-top: 1px solid var(--bord); padding: 13px 22px; margin: 0 -22px -20px;
  border-radius: 0 0 10px 10px;
}
.barreForm .droite { margin-left: auto; display: flex; gap: 10px; }
.interrupteur { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.interrupteur input { display: none; }
.interrupteur .piste { width: 40px; height: 22px; border-radius: 12px; background: var(--bord); position: relative; transition: background .15s; flex: none; }
.interrupteur .piste::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.interrupteur input:checked + .piste { background: var(--vert); }
.interrupteur input:checked + .piste::after { transform: translateX(18px); }

/* lignes pièces */
.lignePiece { display: grid; grid-template-columns: 150px 1fr 70px 90px 34px; gap: 8px; margin-bottom: 8px; align-items: center; }
@media (max-width: 700px) { .lignePiece { grid-template-columns: 1fr 1fr; } }
.lignePiece input { padding: 7px 9px; }
.sup2 { border: 1px solid var(--bord); background: #fff; color: var(--rouge); width: 34px; height: 34px; border-radius: 6px; cursor: pointer; }
.sup2:hover { background: var(--rouge-f); }

/* ------------------------------------------------ tableau de bord */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tuile { padding: 16px 18px; }
.tuile .n { font-size: 30px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.tuile .l { font-size: 12.5px; color: var(--txt2); margin-top: 2px; }
.barres li { list-style: none; display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.barres .n2 { width: 150px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barres .b { flex: 1; height: 9px; background: var(--bord2); border-radius: 5px; overflow: hidden; }
.barres .b i { display: block; height: 100%; background: var(--bleu); border-radius: 5px; }
.barres .c { width: 34px; text-align: right; color: var(--txt2); font-weight: 600; font-size: 13px; }

/* ------------------------------------------------ tableau admin */
table.tab { width: 100%; border-collapse: collapse; }
table.tab th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--txt3); padding: 12px 14px; border-bottom: 1px solid var(--bord); }
table.tab td { padding: 11px 14px; border-bottom: 1px solid var(--bord2); }
table.tab tr:last-child td { border-bottom: 0; }
table.tab tr:hover td { background: #fafbfc; }

/* ------------------------------------------------ fenêtres */
.voile { position: fixed; inset: 0; background: rgba(13,22,34,.55); z-index: 110; display: flex; align-items: center; justify-content: center; padding: 20px; }
.fenetre { background: #fff; border-radius: 12px; box-shadow: var(--ombre-f); width: 520px; max-width: 100%; max-height: 90vh; overflow: auto; }
.fenetre .tete { padding: 18px 22px; border-bottom: 1px solid var(--bord2); display: flex; align-items: center; }
.fenetre .tete h3 { margin: 0; font-size: 17px; }
.fenetre .tete button { margin-left: auto; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--txt3); line-height: 1; }
.fenetre .corps { padding: 20px 22px; }
.fenetre .pied { padding: 14px 22px; border-top: 1px solid var(--bord2); display: flex; gap: 10px; justify-content: flex-end; }

.lightbox { position: fixed; inset: 0; background: rgba(8,12,18,.94); z-index: 95; display: flex; flex-direction: column; }
.lightbox .lbTete { display: flex; align-items: center; gap: 14px; padding: 12px 18px; color: #fff; }
.lightbox .lbTete .nom { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox .lbTete button { border: 1px solid #46586e; background: #1c2b3d; color: #fff; padding: 7px 13px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.lightbox .lbCorps { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 18px 18px; min-height: 0; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox iframe { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 6px; }

#alertes { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.alerte { background: #17263a; color: #fff; padding: 11px 18px; border-radius: 22px; box-shadow: var(--ombre-f); font-weight: 600; font-size: 14px; animation: mont .18s ease-out; }
.alerte.ko { background: var(--rouge); }
.alerte.oki { background: var(--vert); }
@keyframes mont { from { opacity: 0; transform: translateY(10px); } }

.bandeauClient { background: var(--orange-f); border: 1px solid #f0d9a8; color: var(--orange); padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }

.avertissementFiche { background: var(--fond); border: 1px dashed var(--bord); color: var(--txt2); padding: 10px 14px; border-radius: 8px; font-size: 12.5px; line-height: 1.5; margin-top: 16px; }

/* ------------------------------------------------ impression */
.enTetePrint { display: none; }

@media print {
  .enTetePrint {
    display: flex; align-items: baseline; gap: 12px;
    border-bottom: 2px solid var(--accent); padding-bottom: 6px; margin-bottom: 14px;
    font-size: 12px;
  }
  .enTetePrint span { margin-left: auto; color: #555; }
  header.barre, aside.filtres, .barreForm, .enteteSection .droite, .zoneDepot, #alertes, .noPrint { display: none !important; }
  body { background: #fff; }
  main { padding: 0; display: block; }
  .ficheDetail { display: block; }
  .carte { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .blocFiche { padding: 12px 0; }
  a[href]::after { content: ''; }
}

.btnFiltres { display: none; }

@media (max-width: 900px) {
  main { flex-direction: column; padding: 12px; }
  aside.filtres { width: 100%; position: static; display: none; margin-bottom: 4px; }
  aside.filtres.ouvert { display: block; }
  .btnFiltres { display: inline-flex; }
  header.barre { flex-wrap: wrap; height: auto; padding: 10px 12px; gap: 10px; }
  .rechercheGlobale { order: 3; flex-basis: 100%; max-width: none; }
  .navPrinc button span.lbl { display: none; }
}


/* ============================================================
   TABLEAU DE BORD v2 — à coller en fin de style.css
   ============================================================ */

@keyframes anFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes anHalo   { 0% { box-shadow: 0 0 0 0 rgba(18,138,74,.45); } 70% { box-shadow: 0 0 0 6px rgba(18,138,74,0); } 100% { box-shadow: 0 0 0 0 rgba(18,138,74,0); } }
@keyframes anGrow   { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.an { animation: anFadeUp .42s cubic-bezier(.22,.7,.3,1) both; animation-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  .an, .repartition i, .panneau .pastille { animation: none !important; }
}

/* ------------------------------------------------ grille du tableau de bord */
.accueilGrille { display: grid; grid-template-columns: minmax(0,1fr) 316px; gap: 22px; align-items: start; }
.colPrincipale { min-width: 0; }
.colLaterale { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 1100px) { .accueilGrille { grid-template-columns: 1fr; } .colLaterale { order: -1; } }

.enteteSection .salut { font-size: 25px; margin: 0; letter-spacing: -.6px; font-weight: 650; }
.enteteSection .salut + .cpt { display: block; margin-top: 3px; font-size: 13.5px; color: var(--txt2); }
.btnPrinc { box-shadow: 0 2px 8px rgba(226,0,26,.28); transition: background .16s, transform .16s, box-shadow .16s; }
.btnPrinc:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(226,0,26,.32); }
.btnPrinc:active { transform: translateY(0); }

.titreSurtitre { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--txt3); margin: 0 0 10px; font-weight: 700; }
.lienSuite { font-size: 13px; font-weight: 600; color: var(--txt2); transition: color .16s; }
.lienSuite:hover { color: var(--accent); text-decoration: none; }

/* ------------------------------------------------ cartes « ce qui vous attend » */
.grilleActions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 30px; }
@media (max-width: 760px) { .grilleActions { grid-template-columns: 1fr; } }

.carteAction {
  position: relative; overflow: hidden; background: var(--carte);
  border: 1px solid var(--bord); border-radius: 12px; box-shadow: 0 1px 2px rgba(16,27,40,.05);
  padding: 17px 19px; display: flex; flex-direction: column; gap: 11px; cursor: pointer;
  animation: anFadeUp .42s cubic-bezier(.22,.7,.3,1) both;
  transition: transform .18s cubic-bezier(.22,.7,.3,1), box-shadow .18s, border-color .18s;
}
.carteAction:nth-child(1) { animation-delay: .09s; }
.carteAction:nth-child(2) { animation-delay: .13s; }
.carteAction:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16,27,40,.11); border-color: #d4dae2; }
.carteAction::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bord); }
.carteAction.o::before { background: #c07a00; }
.carteAction.r::before { background: var(--rouge); }
.carteAction .l1 { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.carteAction .l1 .n { font-size: 29px; font-weight: 700; letter-spacing: -1.2px; line-height: 1; }
.carteAction .l1 .t { font-weight: 600; font-size: 14.5px; }
.carteAction .l1 .etq { margin-left: auto; }
.carteAction .d { font-size: 13px; color: var(--txt2); line-height: 1.5; }
.carteAction .l3 { display: flex; align-items: center; gap: 9px; margin-top: auto; }

/* ------------------------------------------------ panneaux latéraux */
.panneau {
  background: var(--carte); border: 1px solid var(--bord); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16,27,40,.05); padding: 17px 18px;
}
.panneau > h2 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--txt3);
  margin: 0 0 13px; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.panneau .pastille { width: 7px; height: 7px; border-radius: 50%; background: var(--vert); flex: none; animation: anHalo 2.4s ease-out infinite; }
.panneau .pied { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--bord2); display: flex; align-items: center; gap: 10px; }
.panneau .pied a { margin-left: auto; font-size: 12.5px; font-weight: 600; }

.listeUsers { display: flex; flex-direction: column; gap: 2px; }
.ligneUser { display: flex; align-items: center; gap: 11px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; transition: background .14s; }
.ligneUser:hover { background: var(--fond); }
.ligneUser .av {
  width: 29px; height: 29px; border-radius: 50%; flex: none; background: #45536b; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11.5px;
}
.ligneUser .av.moi { background: var(--accent); }
.ligneUser .av.cl { background: var(--txt3); }
.ligneUser .i { flex: 1; min-width: 0; }
.ligneUser .i .n { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligneUser .i .r { font-size: 11.5px; color: var(--txt3); }
.ligneUser .mini { font-variant-numeric: tabular-nums; }

.chiffreCle { display: flex; align-items: baseline; gap: 8px; }
.chiffreCle .n { font-size: 31px; font-weight: 700; letter-spacing: -1.4px; line-height: 1; }
.chiffreCle .u { font-size: 13px; color: var(--txt2); }
.chiffreCle .pc { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--vert); }

.repartition { display: flex; height: 6px; border-radius: 4px; overflow: hidden; background: var(--bord2); margin: 12px 0 14px; }
.repartition i { background: var(--c); transform-origin: left; animation: anGrow .8s cubic-bezier(.22,.7,.3,1) both; animation-delay: var(--d, 0s); }

.listeStats { display: flex; flex-direction: column; gap: 1px; }
.listeStats > div { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px solid var(--bord2); }
.listeStats .puce { width: 7px; height: 7px; border-radius: 2px; background: var(--c); flex: none; }
.listeStats .l { font-size: 13px; color: var(--txt2); flex: 1; }
.listeStats .v { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

.noteDiscrete {
  background: #e6e9ee; border: 1px solid #dfe3ea; color: var(--txt2);
  padding: 11px 14px; border-radius: 10px; font-size: 12px; line-height: 1.45;
}

/* ------------------------------------------------ lignes de fiches : survol plus vivant */
.accueilGrille .ficheLigne { transition: transform .18s cubic-bezier(.22,.7,.3,1), box-shadow .18s, border-color .18s; }
.accueilGrille .ficheLigne:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16,27,40,.1); }
