:root {
  --fond: #f3f5f9; --carte: #fff; --trait: #dde2ea; --texte: #1b2430; --doux: #667085;
  --bleu: #1d4ed8; --bleu-clair: #e8eefc; --rouge: #b42318; --rouge-clair: #fde8e6;
  --orange: #b45309; --orange-clair: #fdf0d9; --vert: #067647; --vert-clair: #dcf5e7; --gris-clair: #eceff3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 14px/1.45 "Segoe UI", Tahoma, Arial, sans-serif; }
[dir=rtl] body { font-size: 15px; }
h2 { margin: 0 0 12px; font-size: 21px; } h3 { margin: 18px 0 8px; font-size: 15px; } h4 { margin: 16px 0 6px; }
a { color: var(--bleu); }
button, input, select, textarea { font: inherit; color: inherit; }
button, .btn { cursor: pointer; border: 1px solid var(--trait); background: #fff; border-radius: 7px; padding: 7px 13px; text-decoration: none; color: var(--texte); display: inline-block; }
button:hover, .btn:hover { background: var(--gris-clair); }
button.principal { background: var(--bleu); border-color: var(--bleu); color: #fff; font-weight: 600; } button.principal:hover { background: #173fb0; }
button.danger { color: var(--rouge); } button.petit, .btn.petit { padding: 3px 9px; font-size: 12.5px; }
button.x { border: 0; background: transparent; color: var(--doux); }
input, select, textarea { border: 1px solid var(--trait); border-radius: 7px; padding: 7px 9px; background: #fff; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--bleu-clair); border-color: var(--bleu); }
textarea { resize: vertical; }

.login { max-width: 380px; margin: 9vh auto; background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; padding: 30px; }
.login h1 { margin: 0 0 4px; font-size: 24px; } .login p { color: var(--doux); margin: 0 0 20px; }
.login label, .form label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 13px; }
.login button.principal { width: 100%; margin-top: 20px; padding: 10px; } .login .langue { text-align: center; margin-top: 16px; }
.erreur { color: var(--rouge); margin-top: 10px; min-height: 20px; }

header.barre { background: #14213d; color: #fff; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 54px; position: sticky; top: 0; z-index: 5; }
header.barre .titre { font-size: 17px; font-weight: 700; white-space: nowrap; }
header.barre nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
header.barre nav a { color: #c9d3e6; text-decoration: none; padding: 8px 11px; border-radius: 7px; white-space: nowrap; position: relative; }
header.barre nav a.actif { background: #25375e; color: #fff; font-weight: 600; }
header.barre button { background: transparent; border-color: #3b4c73; color: #fff; white-space: nowrap; } header.barre button:hover { background: #25375e; }
.cloche { position: relative; font-size: 17px; } .cloche.sonne { animation: secoue .5s infinite; background: #7a1226 !important; }
@keyframes secoue { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.pastille { position: absolute; top: -7px; inset-inline-end: -7px; background: #e11d48; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; min-width: 19px; padding: 1px 5px; text-align: center; }
.pastille.p-msg { top: 0; } .pastille.p-in { position: static; display: inline-block; margin-inline-start: 6px; }

main { padding: 18px 20px 40px; max-width: 1400px; margin: auto; }
.entete { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; } .entete h2 { margin: 0; }
.tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.tuile { background: var(--carte); border: 1px solid var(--trait); border-radius: 11px; padding: 12px 16px; border-inline-start: 5px solid var(--trait); text-decoration: none; color: var(--texte); }
.tuile:hover { box-shadow: 0 2px 10px rgba(16,24,40,.08); } .tuile b { display: block; font-size: 28px; line-height: 1.1; } .tuile span { color: var(--doux); font-size: 13px; }
.tuile.retard { border-inline-start-color: var(--rouge); } .tuile.retard b { color: var(--rouge); } .tuile.jour { border-inline-start-color: var(--orange); }
.tuile.sem { border-inline-start-color: var(--bleu); } .tuile.fait { border-inline-start-color: var(--vert); }
.deux { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 11px; padding: 14px 16px; } .carte h3:first-child { margin-top: 0; }
.filtres { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; } .filtres select { width: auto; } .filtres input[type=search] { width: auto; min-width: 240px; flex: 1; max-width: 360px; }
.doux { color: var(--doux); } .rouge { color: var(--rouge); font-weight: 600; } .orange { color: var(--orange); font-weight: 600; } .pad { padding: 14px; } .droite { text-align: end; white-space: nowrap; }

table.liste { width: 100%; border-collapse: collapse; background: var(--carte); border: 1px solid var(--trait); border-radius: 11px; overflow: hidden; }
table.liste th { text-align: start; background: #eef1f6; padding: 9px 11px; font-size: 12.5px; color: #475467; white-space: nowrap; }
table.liste td { padding: 9px 11px; border-top: 1px solid var(--trait); vertical-align: top; }
table.liste tr[data-id] { cursor: pointer; } table.liste tr[data-id]:hover { background: #f7f9fc; }
table.liste tr.fini td { color: #98a2b3; } .carte table.liste { border: 0; }
.t-titre { font-weight: 600; } .t-sous { color: var(--doux); font-size: 12.5px; } .num { font-variant-numeric: tabular-nums; white-space: nowrap; color: #475467; font-weight: 600; }
.puce { display: inline-block; border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--gris-clair); color: #475467; }
.s-BROUILLON { background: #eceff3; } .s-ENCOURS { background: var(--bleu-clair); color: var(--bleu); } .s-ATTENTE, .p-HAUTE { background: var(--orange-clair); color: var(--orange); }
.s-TERMINEE, .p-BASSE { background: var(--vert-clair); color: var(--vert); } .s-ANNULEE { background: #f2f4f7; color: #98a2b3; text-decoration: line-through; }
.s-retard, .p-URGENTE { background: var(--rouge-clair); color: var(--rouge); }
.progres { background: #e4e8ef; border-radius: 6px; height: 7px; width: 90px; display: inline-block; vertical-align: middle; overflow: hidden; } .progres i { display: block; height: 100%; background: var(--vert); }
.av small { margin-inline-start: 6px; color: var(--doux); }
.notif { padding: 8px 0; border-top: 1px solid var(--trait); cursor: pointer; } .notif:hover { background: #f7f9fc; }

.retour { display: inline-block; margin-bottom: 8px; text-decoration: none; }
.fiche-tete { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 12px; } .fiche-tete h2 { margin: 6px 0 4px; }
.fiche-act { display: flex; gap: 8px; align-items: center; } .fiche-act select { width: auto; font-weight: 600; }
.onglets { display: flex; gap: 2px; border-bottom: 1px solid var(--trait); margin-bottom: 0; overflow-x: auto; }
.onglets a { padding: 9px 14px; text-decoration: none; color: var(--doux); border-bottom: 3px solid transparent; white-space: nowrap; } .onglets a.actif { color: var(--bleu); border-bottom-color: var(--bleu); font-weight: 600; }
#onglet { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; min-height: 260px; }
.grille-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; } .grille-info small { display: block; color: var(--doux); }
.desc { white-space: pre-wrap; margin: 0; }
ul.etapes { list-style: none; padding: 0; margin: 10px 0; } ul.etapes li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--trait); }
ul.etapes li label { flex: 1; display: flex; gap: 8px; align-items: center; cursor: pointer; } ul.etapes li.ok span { text-decoration: line-through; color: var(--doux); }
.ligne { display: flex; gap: 8px; }
.col { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--trait); }
.niveaux { margin-top: 14px; padding: 10px; background: var(--fond); border-radius: 8px; line-height: 1.8; }
.avatar { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--bleu-clair); color: var(--bleu); font-size: 11px; font-weight: 700; align-items: center; justify-content: center; flex: none; vertical-align: middle; }
.depot { border: 2px dashed var(--trait); border-radius: 10px; padding: 18px; text-align: center; margin-bottom: 12px; } .depot.sur { border-color: var(--bleu); background: var(--bleu-clair); }
.remarque { border-top: 1px solid var(--trait); padding: 10px 0; } .remarque p { margin: 6px 0 0; white-space: pre-wrap; } .r-tete { display: flex; gap: 8px; align-items: center; } .r-tete .x { margin-inline-start: auto; }
.journal { padding: 4px 0; } .j-ligne { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--trait); } .j-ligne:first-child { border-top: 0; } .j-ic { font-size: 18px; width: 26px; text-align: center; }

.msg-grille { display: grid; grid-template-columns: 320px 1fr; gap: 14px; align-items: start; }
.liste-conv { padding: 0; max-height: 72vh; overflow: auto; } .conv { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--trait); text-decoration: none; color: var(--texte); }
.conv:hover { background: #f7f9fc; } .conv.actif { background: var(--bleu-clair); } .c-txt { min-width: 0; flex: 1; } .c-txt .t-sous { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat { display: flex; flex-direction: column; height: 68vh; margin: -14px -16px; } .chat.integre { height: 60vh; }
.chat-tete { padding: 10px 16px; border-bottom: 1px solid var(--trait); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chat-fil { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: #f8f9fc; }
.bulle { max-width: 72%; background: #fff; border: 1px solid var(--trait); border-radius: 12px; padding: 7px 11px; align-self: flex-start; }
.bulle.moi { align-self: flex-end; background: var(--bleu-clair); border-color: #c9d7fb; } .bulle b { display: block; font-size: 12px; color: var(--bleu); }
.b-txt { white-space: pre-wrap; word-break: break-word; } .bulle small { color: var(--doux); font-size: 11px; }
.chat-saisie { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--trait); } .chat-saisie textarea { resize: none; }

.voile { position: fixed; inset: 0; background: rgba(16,24,40,.45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px; overflow: auto; z-index: 20; }
.modale { background: #fff; border-radius: 13px; width: 100%; max-width: 460px; box-shadow: 0 20px 50px rgba(0,0,0,.3); } .modale.large { max-width: 760px; }
.m-tete { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--trait); font-size: 16px; } .m-corps { padding: 6px 18px 18px; }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; } .info { background: var(--orange-clair); padding: 8px 10px; border-radius: 8px; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; } .grille3 { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 12px; }
label.coche { display: flex; gap: 8px; align-items: center; font-weight: 400 !important; cursor: pointer; margin: 5px 0 !important; } label.coche.gras { font-weight: 600 !important; }
.droits label.coche { align-items: flex-start; } .droits span { display: flex; flex-direction: column; }
.liste-coches { max-height: 220px; overflow: auto; border: 1px solid var(--trait); border-radius: 8px; padding: 4px 10px; }
.aff { border: 1px solid var(--trait); border-radius: 8px; padding: 6px 10px; max-height: 280px; overflow: auto; }
.aff-l { display: flex; gap: 12px; align-items: center; padding: 3px 0; flex-wrap: wrap; } .aff-l .coche { flex: 1; min-width: 180px; } .aff-l select { width: auto; padding: 3px 6px; } .aff-l .radio { font-weight: 400; margin: 0; white-space: nowrap; display: flex; gap: 4px; }
#toasts { position: fixed; bottom: 18px; inset-inline-end: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 40; }
.toast { background: #14213d; color: #fff; padding: 10px 16px; border-radius: 9px; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: 360px; } .toast.err { background: var(--rouge); }

@media (max-width: 800px) {
  .tuiles { grid-template-columns: 1fr 1fr; } .deux, .msg-grille, .grille2, .grille3, .grille-info { grid-template-columns: 1fr; }
  main { padding: 12px 10px 30px; } table.liste { display: block; overflow-x: auto; } .fiche-tete { flex-direction: column; } .bulle { max-width: 90%; }
  header.barre .titre { display: none; } .chat { height: 62vh; }
}

.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.chips a { border: 1px solid var(--trait); border-radius: 20px; padding: 2px 12px; cursor: pointer; font-size: 12.5px; background: #fff; user-select: none; }
.chips a:hover { background: var(--gris-clair); } .chips a.actif { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.cat-box { background: var(--fond); border: 1px solid var(--trait); border-radius: 10px; padding: 4px 12px 10px; margin-top: 10px; }
.cat-res { max-height: 190px; overflow: auto; background: #fff; border: 1px solid var(--trait); border-radius: 8px; padding: 4px 10px; }
.cat-it { padding: 6px 4px; border-top: 1px solid var(--trait); cursor: pointer; } .cat-it:first-of-type { border-top: 0; } .cat-it:hover, .cat-it.on { background: var(--bleu-clair); }
.barre-pj { margin: 0 0 10px; } .depot .t-sous { margin-top: 8px; }
.bloc { margin-bottom: 16px; } .bloc h3 { margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.btn.principal { background: var(--bleu); border-color: var(--bleu); color: #fff; } .tuile.msg { border-inline-start-color: #e11d48; } .tuile.msg b { color: #e11d48; }
tr[data-conv] { cursor: pointer; } tr[data-conv]:hover { background: #f7f9fc; }

.rapport-barre { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.rapport { background: #fff; border: 1px solid var(--trait); border-radius: 6px; padding: 18mm 16mm; max-width: 210mm; margin: auto; }
.rapport h1 { margin: 2px 0; font-size: 22px; } .rapport h2 { font-size: 15px; border-bottom: 2px solid #14213d; padding-bottom: 3px; margin: 20px 0 8px; }
.r-entete { display: flex; justify-content: space-between; gap: 14px; border-bottom: 3px solid #14213d; padding-bottom: 10px; } .r-entete small { text-transform: uppercase; color: var(--doux); letter-spacing: .05em; }
.r-info { border-collapse: collapse; width: 100%; margin-top: 10px; } .r-info th { text-align: start; width: 32%; color: #475467; font-weight: 600; padding: 3px 8px 3px 0; vertical-align: top; } .r-info td { padding: 3px 0; }
.r-etapes { list-style: none; padding: 0; margin: 0; } .r-etapes li { padding: 2px 0; }
.rapport table.liste { border: 0; border-radius: 0; } .rapport table.liste td { padding: 4px 8px; font-size: 13px; }
.rapport .remarque { padding: 6px 0; break-inside: avoid; } .rapport .remarque p { margin: 2px 0 0; }
.annexe { margin-top: 24px; } .annexe img, .pdf-page { display: block; max-width: 100%; height: auto; margin: 0 auto 10px; border: 1px solid var(--trait); }
@media print {
  header.barre, .no-print, #toasts, #modales { display: none !important; }
  body { background: #fff; } main { padding: 0 !important; max-width: none !important; }
  .rapport { border: 0; padding: 0; max-width: none; } .annexe { break-before: page; margin-top: 0; }
  .annexe img, .pdf-page { max-height: 255mm; width: auto; border: 0; break-inside: avoid; margin: 0 auto; }
  .pdf-page + .pdf-page { break-before: page; }
  @page { size: A4; margin: 14mm; }
}

/* ===== Fenêtres et formulaires : affichage moderne ===== */
:root { --rayon: 14px; --ombre: 0 24px 60px -12px rgba(16,24,40,.35), 0 0 0 1px rgba(16,24,40,.04); --accent: #2f5bea; --accent-2: #6d4aff; }
.voile { background: rgba(15,23,42,.45); backdrop-filter: blur(6px) saturate(120%); -webkit-backdrop-filter: blur(6px) saturate(120%); animation: fondu .18s ease; padding: 5vh 12px; }
.modale { border-radius: 18px; box-shadow: var(--ombre); overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; animation: monte .22s cubic-bezier(.2,.9,.3,1.1); border: 0; }
.modale.large { max-width: 820px; }
@keyframes fondu { from { opacity: 0; } } @keyframes monte { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.m-tete { background: linear-gradient(120deg, #14213d, #243b73 60%, #3a4fa6); color: #fff; padding: 16px 22px; border: 0; font-size: 17px; align-items: center; letter-spacing: .01em; flex: none; }
.m-tete .x { color: #dbe4ff; background: rgba(255,255,255,.12); border-radius: 50%; width: 30px; height: 30px; padding: 0; line-height: 1; font-size: 14px; } .m-tete .x:hover { background: rgba(255,255,255,.25); }
.m-corps { padding: 6px 22px 0; overflow: auto; background: #fbfcfe; flex: 1; }
.m-corps > form, .m-corps > div { padding-bottom: 4px; }
.form label, .login label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #475467; margin: 16px 0 6px; }
.form label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
label.coche, .form label.coche { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--texte); }
input, select, textarea { border: 1.5px solid #d6dce6; border-radius: 10px; padding: 10px 12px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
input:hover, select:hover, textarea:hover { border-color: #b4bfd0; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,91,234,.15); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 17px; height: 17px; box-shadow: none; }
input[type=search] { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; padding-inline-start: 36px; }
[dir=rtl] input[type=search] { background-position: right 12px center; }
textarea { min-height: 44px; }
button, .btn { border-radius: 10px; font-weight: 500; transition: background .15s, box-shadow .15s, transform .05s; }
button:active, .btn:active { transform: translateY(1px); }
button.principal, .btn.principal { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: 0; box-shadow: 0 4px 12px -2px rgba(47,91,234,.45); padding: 9px 18px; }
button.principal:hover, .btn.principal:hover { background: linear-gradient(135deg, #2750d6, #5b39f0); box-shadow: 0 6px 16px -2px rgba(47,91,234,.55); }
.actions { position: sticky; bottom: 0; margin: 18px -22px 0; padding: 14px 22px; background: rgba(251,252,254,.92); backdrop-filter: blur(6px); border-top: 1px solid #e4e8ef; }
.modale .grille2, .modale .grille3 { gap: 0 14px; }
.cat-box { background: linear-gradient(180deg, #eef3ff, #f6f8ff); border: 1px solid #d5e0ff; border-radius: 14px; padding: 6px 14px 12px; }
.cat-box > label { color: var(--accent) !important; }
.cat-res { border-radius: 10px; border-color: #d5e0ff; } .cat-it { border-radius: 8px; transition: background .12s; } .cat-it.on { background: #e1eaff; box-shadow: inset 3px 0 0 var(--accent); }
.chips a { border-radius: 999px; padding: 4px 13px; transition: all .12s; } .chips a:hover { border-color: var(--accent); color: var(--accent); background: #fff; } .chips a.actif { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 8px -2px rgba(47,91,234,.5); }
.aff, .liste-coches { border-radius: 12px; border: 1.5px solid #d6dce6; background: #fff; padding: 6px 12px; }
.aff-l { padding: 7px 8px; border-radius: 10px; transition: background .12s; } .aff-l.on { background: #eef3ff; } .aff-l select { padding: 5px 8px; border-radius: 8px; }
.avatar { background: linear-gradient(135deg, #dbe6ff, #e9defd); color: #3b3fa8; }
.droits label.coche { padding: 8px 10px; border-radius: 10px; border: 1px solid #e4e8ef; background: #fff; margin: 6px 0 !important; transition: border-color .12s, background .12s; } .droits label.coche:hover { border-color: #b8c8ff; background: #f6f8ff; }
.info { border-radius: 10px; border-inline-start: 4px solid var(--orange); }
.login { border: 0; border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(20,33,61,.35); padding: 36px 32px; }
.login h1 { background: linear-gradient(120deg, #14213d, #3a4fa6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.toast { border-radius: 12px; animation: monte .2s ease; border-inline-start: 4px solid #7aa2ff; } .toast.err { border-inline-start-color: #ffb4ab; }
.carte { border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
@media (max-width: 800px) { .voile { padding: 0; align-items: flex-end; } .modale, .modale.large { max-width: none; border-radius: 18px 18px 0 0; max-height: 94vh; } }

.env-liste { max-height: 260px; } .env-liste .gras { font-weight: 700; margin: 8px 0 2px; text-transform: uppercase; letter-spacing: .04em; }
label.coche.inactif { opacity: .5; } .env-res { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

.onglets.cats { margin-bottom: 10px; } .onglets.cats a { font-weight: 600; }
.chips.statuts { margin: 0 0 12px; } .chips.statuts a b { margin-inline-start: 4px; opacity: .75; } .chips.statuts a.alerte:not(.actif) { color: var(--rouge); border-color: #f3b8b2; }
.cl-proc { padding: 5px 0; border-top: 1px solid var(--trait); display: flex; justify-content: space-between; gap: 8px; } .actions .espace { flex: 1; }

/* identité INFOFISC */
.logo-pill { background: #fff; border-radius: 9px; padding: 4px 10px; display: flex; align-items: center; flex: none; } .logo-pill img { height: 28px; width: auto; display: block; }
.logo-login { display: block; width: 230px; max-width: 80%; margin: 0 auto 14px; } .login h1 { text-align: center; }
.signature { text-align: center; color: var(--doux); font-size: 12px; margin-top: 18px; }
.pied { text-align: center; color: var(--doux); font-size: 12px; padding: 14px 10px 22px; }
.logo-rapport { display: block; height: 52px; width: auto; margin: 0 0 8px; }
@media print { .rapport::after { content: "INFOFISC · Hassan BAKHOUCH"; display: block; margin-top: 14mm; text-align: center; font-size: 10px; color: #667085; } }
@media (max-width: 800px) { header.barre .titre { display: none; } .logo-pill img { height: 24px; } }

.defile { overflow-x: auto; } table.matrice th { font-size: 11.5px; white-space: normal; text-align: center; min-width: 84px; } table.matrice th:first-child, table.matrice td:first-child { text-align: start; min-width: 150px; }
table.matrice td { text-align: center; } table.matrice td:first-child { text-align: start; } table.matrice td select { width: auto; padding: 3px 6px; font-size: 12.5px; }
.mdp-box { display: flex; gap: 10px; align-items: center; background: #0f172a; color: #fff; border-radius: 12px; padding: 14px 18px; margin: 12px 0; } .mdp-box code { font-size: 24px; letter-spacing: .08em; flex: 1; user-select: all; }
.actions-ligne { white-space: nowrap; } tr.alerte-l td { background: #fff4f2; } #adm.carte { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }

.info-secu { background: #eef3ff; border: 1px solid #d5e0ff; color: #2b3f86; border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; font-size: 13px; }
.voile.viewer { padding: 2vh 2vw; align-items: stretch; background: rgba(8,12,24,.72); }
.viewer-box { background: #2a3040; border-radius: 14px; width: 100%; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; box-shadow: var(--ombre); overflow: hidden; }
.viewer-tete { display: flex; gap: 12px; align-items: center; padding: 10px 16px; background: #14213d; color: #fff; flex: none; } .viewer-tete .t-sous { color: #b8c4e6; } .viewer-tete .espace { flex: 1; }
.viewer-tete button, .viewer-tete .btn { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.viewer-corps { overflow: auto; padding: 16px; flex: 1; user-select: none; -webkit-user-select: none; }
.viewer-corps canvas.pdf-page { display: block; margin: 0 auto 14px; max-width: 100%; height: auto; background: #fff; border: 0; box-shadow: 0 4px 18px rgba(0,0,0,.4); pointer-events: none; }
.viewer-corps .chargement { color: #cdd5ec; text-align: center; margin-top: 40px; }
