* { box-sizing: border-box; }
body { margin: 0; font-family: 'Manrope', system-ui, sans-serif; color: #18212F; background: #FBF8F4; }
a { color: #C2410C; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid #C2410C; outline-offset: 2px; }

.ecran-centre { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.carte-connexion { width: 100%; max-width: 400px; background: #fff; border: 1px solid #ECE4DA; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.carte-connexion h1 { margin: 0; font-size: 22px; }

.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 230px; background: #FFFFFF; color: #4A3B30; border-right: 1px solid #ECE4DA; padding: 22px 14px; display: flex; flex-direction: column; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 10px; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: #C2410C; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.brand-n { font-weight: 800; color: #231A14; font-size: 15px; line-height: 1.2; }
.brand-s { font-size: 12px; color: #8A7666; }
.side-l { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #A08B7A; padding: 10px 12px 2px; }
.navg { display: flex; flex-direction: column; gap: 3px; }
.nav { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #4A3B30; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; text-decoration: none; }
.nav:hover { background: #FFF1E6; color: #9A3412; }
.nav.on { background: #C2410C; color: #fff; }
.nav.ent.on { background: #FFEDD5; color: #7C2D12; box-shadow: inset 3px 0 0 #C2410C; }
.nav.bientot { color: #A08B7A; }
.nav-t { flex: 1; min-width: 0; }
.nav small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #A08B7A; }
.dot { min-width: 22px; height: 22px; border-radius: 99px; background: #B42318; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.ent-sq { width: 26px; height: 26px; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.side-foot { margin-top: auto; padding: 12px; border-radius: 12px; background: #FFF7ED; font-size: 12px; color: #6B5646; border: 1px solid #FBE3CC; display: flex; flex-direction: column; gap: 8px; }
.side-foot b { color: #231A14; }
.side-foot .liens { display: flex; gap: 6px; flex-wrap: wrap; }
.side-foot .liens a, .side-foot .liens button { color: #9A3412; background: #FFEDD5; border: 0; border-radius: 8px; padding: 0 10px; min-height: 36px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 820px) { .navg { flex-direction: row; flex-wrap: wrap; } .nav { width: auto; } }

.main { flex: 999 1 560px; min-width: 0; padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 20px; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.crumb { font-size: 13px; font-weight: 700; color: #5B6576; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.sub { margin: 4px 0 0; font-size: 14px; color: #5B6576; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: #C2410C; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: #9A3412; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn2 { min-height: 44px; padding: 0 14px; border: 1px solid #DDD3C7; border-radius: 10px; background: #fff; color: #18212F; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn2:hover { background: #F4F5F7; }
.btn2.danger { color: #A61B12; }
.btn-petit { min-height: 36px; padding: 0 10px; font-size: 12px; }

.av { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; flex: none; }
.av-sm { width: 28px; height: 28px; font-size: 11px; }

.card { background: #fff; border: 1px solid #ECE4DA; border-radius: 14px; padding: 20px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.card-h h2 { margin: 0; font-size: 16px; font-weight: 800; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .grid4, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cols2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .grid4, .grid3 { grid-template-columns: minmax(0, 1fr); } .main { padding: 18px 16px 40px; } }

.kpi { background: #fff; border: 1px solid #ECE4DA; border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi-l { font-size: 13px; color: #5B6576; font-weight: 700; }
.kpi-v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi-s { font-size: 12px; color: #5B6576; }
.alerte { color: #A61B12; font-weight: 700; }
.ok { color: #166534; font-weight: 700; }
.muted { color: #5B6576; font-size: 13px; }
.petit { display: block; font-size: 12px; color: #5B6576; font-weight: 600; }
.strong { font-weight: 700; }

.row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #F3EEE7; }
.row-t { flex: 1; min-width: 0; }
.row-t strong { display: block; font-size: 14px; }
.row-t span { font-size: 12px; color: #5B6576; }
.row-d { font-size: 12px; text-align: right; }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.b-fait { background: #DCFCE7; color: #166534; }
.b-encours { background: #E8EEFD; color: #1E40AF; }
.b-afaire { background: #F3EEE7; color: #3F4855; }
.b-retard { background: #FDECEA; color: #A61B12; }
.b-role { background: #F3EEE7; color: #3F4855; }

.chk { width: 44px; height: 44px; flex: none; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.chk span { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #8F99A7; display: flex; align-items: center; justify-content: center; color: #fff; }
.chk.on span { background: #C2410C; border-color: #C2410C; }
.chk[disabled] { cursor: default; opacity: .5; }

.barw { flex: 1; height: 10px; background: #F3EEE7; border-radius: 99px; overflow: hidden; display: block; }
.bar { height: 100%; background: #C2410C; border-radius: 99px; display: block; }
.eq { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; }
.eq-n { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; min-width: 0; }
.num { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; white-space: nowrap; }

.tw { overflow-x: auto; }
.th, .tr { display: grid; gap: 12px; align-items: center; padding: 0 8px 0 0; grid-template-columns: 44px minmax(220px, 1fr) 130px 130px 150px 92px 118px; min-width: 940px; }
.th { font-size: 12px; color: #5B6576; font-weight: 700; min-height: 40px; border-bottom: 1px solid #ECE4DA; }
.tr { font-size: 14px; min-height: 60px; border-bottom: 1px solid #F3EEE7; padding-top: 6px; padding-bottom: 6px; }
.actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }

.pjl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .pjl { grid-template-columns: minmax(0, 1fr); } }
.pj-list { display: flex; flex-direction: column; gap: 10px; }
.pj { text-align: left; background: #fff; border: 1px solid #ECE4DA; border-radius: 14px; padding: 16px; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.pj:hover { border-color: #8A94A3; }
.pj.on { border-color: #C2410C; box-shadow: inset 0 0 0 1px #C2410C; }
.pj strong { font-size: 15px; }
.pj-meta { font-size: 12px; color: #5B6576; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pj-p { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; }
.pj-info { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: #5B6576; margin: 0 0 10px; }
.pj-info b { color: #18212F; }

.emp { background: #fff; border: 1px solid #ECE4DA; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.emp-top { display: flex; gap: 12px; align-items: center; }
.emp-top strong { display: block; font-size: 15px; }
.emp-top span { font-size: 12px; color: #5B6576; }
.emp-st { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.st { background: #F4F5F7; border-radius: 10px; padding: 8px 4px; text-align: center; }
.st b { display: block; font-size: 17px; font-weight: 800; }
.st span { font-size: 11px; color: #4B5563; font-weight: 600; }
.st.rouge b { color: #A61B12; }
.acces { font-size: 12px; color: #3F4855; background: #F4F5F7; border-radius: 10px; padding: 10px 12px; line-height: 1.6; word-break: break-word; }

.ec { background: #fff; border: 1px solid #ECE4DA; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ec-h { display: flex; gap: 12px; align-items: center; }
.ec-h strong { display: block; font-size: 16px; }
.ec-h span { font-size: 12px; color: #5B6576; }
.ec-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ec-g div { background: #F4F5F7; border-radius: 10px; padding: 10px 12px; }
.ec-g b { display: block; font-size: 16px; font-weight: 800; }
.ec-g span { font-size: 12px; color: #4B5563; font-weight: 600; }

.form { border-color: #C2410C; box-shadow: inset 0 0 0 1px #C2410C; }
.form-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
@media (max-width: 640px) { .form-g { grid-template-columns: minmax(0, 1fr); } }
.fld { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld input, .fld select, .fld textarea { min-height: 44px; border: 1px solid #B9C1CC; border-radius: 10px; padding: 0 12px; font-size: 14px; font-weight: 500; color: #18212F; background: #fff; width: 100%; }
.fld textarea { padding: 10px 12px; min-height: 80px; resize: vertical; }
.couleurs { display: flex; gap: 8px; flex-wrap: wrap; }
.couleurs label { width: 44px; height: 44px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.couleurs input { width: 18px; height: 18px; min-height: 0; accent-color: #fff; }
.form-a { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.note { font-size: 12px; color: #5B6576; margin: 12px 0 0; line-height: 1.5; }
.vide { font-size: 13px; color: #5B6576; padding: 14px; text-align: center; border: 1px dashed #C5CCD5; border-radius: 12px; margin: 8px 0 0; }
.erreur { color: #A61B12; font-weight: 700; font-size: 13px; margin: 0; }
.resultat { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.resultat code { font-size: 16px; font-weight: 800; background: #fff; padding: 2px 8px; border-radius: 6px; }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #18212F; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10; }
#toast.vu { opacity: 1; }
#toast.err { background: #A61B12; }

/* Version 2 : priorités, étapes, modèles */
.b-haute { background: #FDECEA; color: #A61B12; }
.b-moyenne { background: #FEF3C7; color: #854D0E; }
.b-basse { background: #F3EEE7; color: #3F4855; }
.infos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.petit-i { font-size: 12px; color: #5B6576; font-weight: 600; }
.lien-etapes { margin-top: 6px; min-height: 32px; padding: 0 10px; border: 1px solid #DDD3C7; border-radius: 8px; background: #fff; color: #C2410C; font-size: 12px; font-weight: 800; cursor: pointer; }
.lien-etapes:hover { background: #FFEDD5; }
.tr.fini .strong { color: #5B6576; text-decoration: line-through; text-decoration-color: #9AA4B2; }
.etapes-bloc { min-width: 940px; padding: 8px 12px 12px 56px; border-bottom: 1px solid #F3EEE7; background: #F8F9FB; display: flex; flex-direction: column; gap: 4px; }
.etape { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 14px; color: #18212F; cursor: pointer; }
.etape:hover { background: #F3EEE7; }
.etape[disabled] { cursor: default; }
.etape.on span:last-child { color: #5B6576; text-decoration: line-through; }
.etape-c { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 2px solid #8F99A7; display: flex; align-items: center; justify-content: center; color: #fff; }
.etape.on .etape-c { background: #C2410C; border-color: #C2410C; }
.mod-c { border: 1px solid #ECE4DA; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.mod-c strong { font-size: 14px; }
.mod-c .tools { margin-top: auto; }

/* Version 3 : fiche de tâche, difficultés, fichiers, commentaires, historique, rapports, impression */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.attente { color: #A16207; font-weight: 700; }
.b-bloquee { background: #FEF3C7; color: #854D0E; }
.b-com-difficulte { background: #FEF3C7; color: #854D0E; }
.b-com-reponse { background: #DCFCE7; color: #166534; }
.b-com-relance { background: #E8EEFD; color: #1E40AF; }
.alerte-card { border-color: #FCD34D; background: #FFFBEB; }
.lien-tache { color: #18212F; font-weight: 700; text-decoration: none; }
.lien-tache:hover { color: #C2410C; text-decoration: underline; }
.row-t .lien-tache { display: block; font-size: 14px; }
.tr .lien-tache { font-size: 14px; }
.ent-logo { background: #fff; border: 1px solid #ECE4DA; overflow: hidden; padding: 0; }
.ent-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fiche-g { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .fiche-g { grid-template-columns: minmax(0, 1fr); } }
.fiche-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
@media (max-width: 560px) { .fiche { grid-template-columns: minmax(0, 1fr); } }
.fiche dt { font-size: 12px; color: #5B6576; font-weight: 700; margin-bottom: 4px; }
.fiche dd { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.etapes-fiche { display: flex; flex-direction: column; gap: 4px; }
.pieces { display: flex; flex-direction: column; gap: 10px; }
.piece { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; border: 1px solid #ECE4DA; border-radius: 12px; padding: 10px; }
.piece .tools { grid-column: 1 / -1; }
.piece-img, .piece-ico { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #F4F5F7; display: flex; align-items: center; justify-content: center; color: #5B6576; }
.piece-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.piece-t { min-width: 0; word-break: break-word; }
.piece-t b { font-size: 14px; }
.coms { display: flex; flex-direction: column; gap: 12px; }
.com { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.com-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.com-h b { font-size: 13px; }
.com p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-line; word-break: break-word; }
.com-difficulte p { background: #FFFBEB; border-left: 3px solid #FCD34D; padding: 6px 10px; border-radius: 0 8px 8px 0; }
.histo { display: flex; flex-direction: column; }
.h-jour { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #5B6576; margin: 12px 0 4px; }
.h-jour:first-child { margin-top: 0; }
.h-ligne { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid #F3EEE7; font-size: 14px; line-height: 1.45; }
.h-heure { font-variant-numeric: tabular-nums; color: #5B6576; font-weight: 700; font-size: 13px; }
table.rap { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.rap th { text-align: left; font-size: 12px; color: #5B6576; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid #ECE4DA; }
table.rap td { padding: 11px 12px; border-bottom: 1px solid #F3EEE7; }
table.rap .r { text-align: right; font-variant-numeric: tabular-nums; }
.print-only { display: none; }

@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .no-print, .side, #toast, form, .lien-etapes, .actions, .chk { display: none !important; }
  .print-only { display: block; font-size: 11px; color: #5B6576; margin-bottom: 8px; }
  .app { display: block; min-height: 0; }
  .main { padding: 0; gap: 12px; }
  .card, .kpi, .ec, .emp, .mod-c, .piece { break-inside: avoid; box-shadow: none; }
  .fiche-g, .cols2 { grid-template-columns: minmax(0, 1fr); }
  .tw { overflow: visible; }
  .th, .tr { min-width: 0; grid-template-columns: minmax(0, 1fr) 110px 120px 130px 80px; }
  .th > span:first-child, .tr > span:last-child, .th > span:last-child { display: none; }
  a { color: #18212F; text-decoration: none; }
}

/* Version 4.1 : abonnement, administration, avancement, repère orange */
.bandeau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-radius: 12px; background: #E8EEFD; color: #1E3A8A; font-size: 14px; }
.bandeau.b-orange { background: #FEF3C7; color: #854D0E; }
.bandeau.b-rouge { background: #FDECEA; color: #8A1A12; }
.b-autre { background: #FEF3C7; color: #92400E; }
.autre { color: #A16207; font-weight: 700; }
.b-st-essai { background: #E8EEFD; color: #1E40AF; }
.b-st-actif, .b-st-illimite { background: #DCFCE7; color: #166534; }
.b-st-accompagne { background: #F1E8FA; color: #5B2A86; }
.b-st-lecture_seule { background: #FEF3C7; color: #854D0E; }
.b-st-expire, .b-st-suspendu { background: #FDECEA; color: #A61B12; }
.mini-pct { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #3F4855; min-width: 110px; }
.mini-pct .barw { width: 60px; flex: none; height: 6px; }
.avancement { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 4px 0 16px; padding: 12px; background: #F8F9FB; border-radius: 10px; }
.avancement .pj-p { flex: 1; min-width: 180px; }
.grid-adm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .grid-adm { grid-template-columns: minmax(0, 1fr); } }
.adm { background: #fff; border: 1px solid #ECE4DA; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.adm-actions { align-items: flex-end; padding-top: 12px; border-top: 1px solid #F3EEE7; }
.adm-actions .fld { max-width: 170px; }

/* Version 4.2 : clients, comptabilité, documents, modules */
.in { color: #166534; } .out { color: #A61B12; }
.filtres a.pill { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #18212F; }
.filtres a.pill.on { color: #fff; }
.b-doc-brouillon { background: #F3EEE7; color: #3F4855; }
.b-doc-a_valider { background: #FEF3C7; color: #854D0E; }
.b-doc-valide, .b-doc-accepte { background: #E8EEFD; color: #1E40AF; }
.b-doc-envoye { background: #E0F2FE; color: #075985; }
.b-doc-refuse, .b-doc-annule { background: #FDECEA; color: #A61B12; }
.b-doc-facture, .b-doc-payee, .b-doc-paye { background: #DCFCE7; color: #166534; }
.b-doc-partiel { background: #FEF3C7; color: #854D0E; }
.b-etape-prospect { background: #F3EEE7; color: #3F4855; } .b-etape-proposition { background: #E8EEFD; color: #1E40AF; }
.b-etape-negociation { background: #FEF3C7; color: #854D0E; } .b-etape-client { background: #DCFCE7; color: #166534; } .b-etape-perdu { background: #FDECEA; color: #A61B12; }
table.rap td .petit { display: block; }
.lignes-doc input { width: 100%; min-height: 40px; border: 1px solid #B9C1CC; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 14px; }
.lignes-doc input.r { text-align: right; }
.lignes-doc td { padding: 6px 6px; }
.totaux { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 14px; }
.totaux b { display: inline-block; min-width: 140px; text-align: right; }
.totaux input { min-height: 36px; border: 1px solid #B9C1CC; border-radius: 8px; padding: 0 6px; font: inherit; text-align: right; }
.totaux .ttc { font-size: 17px; font-weight: 800; }
.chk-compta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; min-height: 36px; padding: 0 8px; border: 1px solid #DDD3C7; border-radius: 10px; background: #fff; cursor: pointer; }
.chk-compta input { width: 18px; height: 18px; }
.lien { font-size: 13px; font-weight: 700; color: #C2410C; text-decoration: none; }
.liste-mod { margin: 0; padding-left: 20px; line-height: 1.9; font-size: 14px; }
.doc-g { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .doc-g { grid-template-columns: minmax(0, 1fr); } }
.feuille { position: relative; background: #fff; border: 1px solid #ECE4DA; border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 18px; font-size: 13px; color: #18212F; overflow: hidden; }
@media (max-width: 560px) { .feuille { padding: 18px; } }
.filigrane { position: absolute; inset: 40% -10% auto; text-align: center; transform: rotate(-18deg); font-size: 54px; font-weight: 800; color: rgba(166, 27, 18, .10); pointer-events: none; letter-spacing: .1em; }
.f-tete { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid #18212F; padding-bottom: 16px; }
.f-ent { display: flex; gap: 12px; align-items: flex-start; }
.f-ent > div, .f-titre, .f-client { display: flex; flex-direction: column; gap: 2px; }
.f-logo { width: 64px; height: 64px; object-fit: contain; }
.f-nom { font-size: 17px; }
.f-titre { text-align: right; align-items: flex-end; }
.f-titre h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: .04em; }
.f-client { align-self: flex-end; min-width: 240px; border: 1px solid #DDD3C7; border-radius: 8px; padding: 10px 14px; }
.f-client b { font-size: 15px; }
.f-objet { margin: 0; }
.f-lignes { width: 100%; border-collapse: collapse; }
.f-lignes th { background: #18212F; color: #fff; text-align: left; padding: 8px 10px; font-size: 12px; }
.f-lignes td { padding: 8px 10px; border-bottom: 1px solid #ECE4DA; }
.f-lignes .r, .f-lignes th.r { text-align: right; }
.f-totaux { align-self: flex-end; min-width: 280px; display: flex; flex-direction: column; }
.f-totaux div { display: flex; justify-content: space-between; gap: 20px; padding: 6px 10px; border-bottom: 1px solid #F3EEE7; }
.f-totaux .ttc { background: #F4F5F7; font-size: 15px; font-weight: 800; }
.f-lettres, .f-notes { margin: 0; line-height: 1.6; white-space: pre-line; }
.f-mentions { border-top: 1px solid #DDD3C7; padding-top: 10px; font-size: 11px; color: #3F4855; text-align: center; white-space: pre-line; }
@media print {
  .doc-g { display: block; }
  .feuille { border: 0; padding: 0; border-radius: 0; }
  .feuille + * { display: none; }
  .f-lignes th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .f-totaux .ttc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-g ~ *, .top .tools { display: none !important; }
}
.mod { background: #fff; border: 1px solid #ECE4DA; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mod.on { border-color: #C2410C; box-shadow: inset 0 0 0 1px #C2410C; }
.mod strong { font-size: 15px; }
.mod p { margin: 0; font-size: 13px; color: #4B5563; line-height: 1.5; flex: 1; }
.mod-s { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #5B6576; }
.mod .btn, .mod .btn2 { align-self: flex-start; }
.base { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.base span { font-size: 13px; font-weight: 700; background: #FFEDD5; color: #9A3412; border-radius: 999px; padding: 6px 12px; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #DDD3C7; background: #fff; color: #18212F; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.pill:hover { border-color: #6B7585; }
.pill.on { background: #18212F; color: #fff; border-color: #18212F; }
.pill .dot { background: #B42318; }
.kbw { overflow-x: auto; padding-bottom: 6px; }
.kb { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; min-width: 940px; }
.kb-col { background: #E9ECF0; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.kb-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 0; }
.kb-h strong { font-size: 14px; }
.kb-n { font-size: 12px; font-weight: 800; background: #fff; border-radius: 999px; padding: 2px 9px; }
.kb-tot { font-size: 12px; color: #4B5563; padding: 0 4px 2px; font-weight: 600; }
.kb-c { background: #fff; border-radius: 12px; padding: 14px; border: 1px solid #DDE1E7; display: flex; flex-direction: column; gap: 8px; }
.kb-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: #5B6576; }
.src { font-size: 11px; font-weight: 700; color: #3F4855; background: #F3EEE7; border-radius: 6px; padding: 3px 7px; align-self: flex-start; }
.kb-v { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kb-btn { min-height: 44px; border: 1px solid #DDD3C7; background: #fff; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 700; color: #C2410C; cursor: pointer; padding: 0 10px; }
.kb-btn:hover { background: #FFEDD5; }

/* Version 4.3 : en-tête imprimé avec logo, identité, module Éducation */
.ent-print { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 2px solid #18212F; color: #18212F; }
.ep-logo { max-height: 64px; max-width: 160px; object-fit: contain; flex: none; }
.ep-t { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #3F4855; min-width: 0; }
.ep-t b { font-size: 16px; color: #18212F; }
.entete-globale .ep-date { display: block; margin-top: 6px; font-size: 10px; color: #5B6576; text-align: right; }
.apercu-entete { border: 1px dashed #DDD3C7; border-radius: 12px; padding: 16px; background: #fff; }
.sous-titre { margin: 16px 0 4px; font-size: 14px; }
.btn-attention { border-color: #B42318; color: #B42318; }
.signatures { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 8px; }
.signatures span { flex: 1; text-align: center; font-size: 12px; color: #3F4855; border-top: 1px solid #DDD3C7; padding-top: 6px; min-height: 60px; }
.feuille .fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.notes-grille td, .notes-grille th { white-space: nowrap; }
.notes-grille th .lien { margin-left: 4px; color: #A61B12; font-size: 16px; }
.note-in { width: 72px; min-height: 40px; text-align: right; padding: 0 8px; border: 1px solid #DDD3C7; border-radius: 8px; font: inherit; }
.note-in:focus { outline: 2px solid #C2410C; outline-offset: 1px; }
.appel-sel { min-height: 40px; border-radius: 8px; border: 1px solid #DDD3C7; padding: 0 8px; font: inherit; background: #fff; }
.appel-sel.absent { border-color: #B42318; background: #FEF3C7; font-weight: 700; }
.emploi td { vertical-align: top; min-width: 120px; }
.creneau { display: flex; flex-direction: column; gap: 2px; background: #FFEDD5; border-radius: 8px; padding: 6px 8px; margin-bottom: 4px; font-size: 12px; position: relative; }
.creneau span { color: #3F4855; }
.creneau .lien { position: absolute; top: 2px; right: 6px; color: #A61B12; }
@media (max-width: 640px) {
  .feuille .fiche { grid-template-columns: minmax(0, 1fr); }
  .signatures { flex-direction: column; }
}
@media print {
  .print-only.entete-globale { font-size: 11px; margin-bottom: 14px; }
  .main:has(.feuille) > .entete-globale { display: none !important; }
  .ep-logo, .ent-print { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bulletins > .feuille { display: flex !important; break-after: page; }
  .bulletins > .feuille:last-child { break-after: auto; }
  .creneau { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .note-in { border: 0; width: auto; }
}

/* Version 4.4 : module BTP, modules payants */
.mod .badge { align-self: flex-start; }
.bar.rouge { background: #B42318; }
.b-ch-preparation { background: #F3EEE7; color: #3F4855; }
.b-ch-en_cours { background: #E8EEFD; color: #1E40AF; }
.b-ch-suspendu { background: #FEF3C7; color: #854D0E; }
.b-ch-receptionne_provisoire, .b-ch-receptionne_definitif { background: #DCFCE7; color: #166534; }
.b-ch-clos { background: #F3EEE7; color: #5B6576; }
.b-eng-disponible { background: #F3EEE7; color: #3F4855; }
.b-eng-en_service { background: #DCFCE7; color: #166534; }
.b-eng-en_panne { background: #FDECEA; color: #A61B12; }
.b-eng-hors_service { background: #F3EEE7; color: #5B6576; }
.b-sit-brouillon, .b-dep-a_valider { background: #FEF3C7; color: #854D0E; }
.b-sit-validee, .b-dep-valide { background: #E8EEFD; color: #1E40AF; }
.b-sit-payee, .b-dep-paye { background: #DCFCE7; color: #166534; }
.b-dep-refuse { background: #FDECEA; color: #A61B12; }
.onglets-ch { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.onglets-ch .pill { flex: none; }
.dqe tr.lot td { background: #F3F5F8; }
.dqe tr.st td { font-size: 12px; color: #3F4855; }
.rap tfoot td { border-top: 2px solid #18212F; }
tr.inactif td { color: #8A93A0; }
.vignettes { display: flex; flex-wrap: wrap; gap: 10px; }
.vign { width: 120px; height: 120px; border-radius: 10px; overflow: hidden; border: 1px solid #ECE4DA; display: block; }
.vign img { width: 100%; height: 100%; object-fit: cover; display: block; }
.semaine td, .semaine th { text-align: center; }
.semaine td:first-child, .semaine th:first-child { text-align: left; }
.f-lignes.sit th, .f-lignes.sit td { font-size: 11px; padding: 6px 5px; }
.journal-t td { vertical-align: top; font-size: 12px; }
.feuille ol, .feuille ul { margin: 0; padding-left: 20px; }
@media (max-width: 640px) {
  .vign { width: calc(50% - 5px); height: 140px; }
}
@media print {
  .f-lignes.sit th, .f-lignes.sit td { font-size: 9px; padding: 3px; }
  .vign { width: 30%; height: auto; break-inside: avoid; }
  .onglets-ch { display: none !important; }
}
.formule { border: 1px solid #ECE4DA; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.formule p { margin: 0; font-size: 13px; color: #4B5563; line-height: 1.5; }
.formule .btn, .formule .btn2 { align-self: flex-start; }

/* Version 4.7 : modules Immobilier, Commerce, Services, Artisanat, Événementiel */
.b-bien-libre { background: #DCFCE7; color: #166534; }
.b-bien-loue { background: #E8EEFD; color: #1E40AF; }
.b-bien-reserve { background: #FEF3C7; color: #854D0E; }
.b-bien-vendu, .b-bien-indisponible { background: #F3EEE7; color: #5B6576; }
.b-cmd-recue { background: #F3EEE7; color: #3F4855; }
.b-cmd-en_production { background: #E8EEFD; color: #1E40AF; }
.b-cmd-prete { background: #FEF3C7; color: #854D0E; }
.b-cmd-livree { background: #DCFCE7; color: #166534; }
.b-cmd-annulee { background: #F3EEE7; color: #8A93A0; }
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(180px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.pipe-col { background: #F3F5F8; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.pipe-h { display: flex; justify-content: space-between; font-size: 13px; color: #3F4855; }
.pipe-c { background: #fff; border: 1px solid #ECE4DA; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pipe-c span { color: #5B6576; font-size: 12px; }
.caisse { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grille-prod { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.prod-btn { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border: 1px solid #ECE4DA; border-radius: 12px; background: #fff; cursor: pointer; font: inherit; min-height: 84px; }
.prod-btn:hover { border-color: #C2410C; background: #FFF7ED; }
.prod-btn span { font-weight: 700; color: #C2410C; }
.prod-btn small { color: #5B6576; font-size: 11px; }
.prod-btn.vide { opacity: .45; cursor: not-allowed; }
.qte-ctl { display: flex; align-items: center; gap: 6px; }
.qte-ctl b { min-width: 28px; text-align: center; }
.total-caisse { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 10px; padding-top: 12px; border-top: 2px solid #18212F; }
.total-caisse b { font-size: 26px; }
.btn-large { width: 100%; min-height: 54px; font-size: 17px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { font-size: 12px; font-weight: 700; color: #5B6576; text-align: center; padding: 4px 0; }
.cal-j { min-height: 86px; border: 1px solid #ECE4DA; border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; min-width: 0; }
.cal-j.vide { border: 0; }
.cal-j.auj { border-color: #C2410C; box-shadow: inset 0 0 0 1px #C2410C; }
.cal-e { display: block; padding: 2px 5px; border-radius: 5px; font-size: 11px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-confirme { background: #DCFCE7; color: #166534; }
.cal-devis { background: #FEF3C7; color: #854D0E; }
.cal-termine { background: #F3EEE7; color: #3F4855; }
.lignes-cmd select, .lignes-cmd input { min-height: 40px; border: 1px solid #DDD3C7; border-radius: 8px; padding: 0 8px; font: inherit; width: 100%; }
.contrat p { line-height: 1.55; margin: 6px 0; }
.ticket { max-width: 420px; margin: 0 auto; }
@media (max-width: 900px) { .caisse { grid-template-columns: minmax(0, 1fr); } .caisse-panier { order: -1; } }
@media (max-width: 640px) {
  .cal-j { min-height: 54px; } .cal-e { font-size: 10px; padding: 1px 3px; }
  .grille-prod { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { grid-template-columns: repeat(6, 78vw); }
}
@media print {
  .ticket { max-width: 80mm; font-size: 11px; }
  .cal-e, .b-bien-libre, .b-cmd-livree { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Version 5 : projets en colonnes, guides, tableaux personnalisés, champs en plus, point du jour, page d'accueil */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.kanban:not(.taches) { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kanban .kb-col { min-height: 120px; transition: background .15s; }
.kanban .kb-col.survol { background: #FFEDD5; outline: 2px dashed #C2410C; }
.kanban .kb-h span { font-size: 12px; font-weight: 800; background: #fff; border-radius: 999px; padding: 2px 9px; }
.kanban .kb-c[draggable=true] { cursor: grab; }
.kanban .kb-c.glisse { opacity: .5; }
.kanban .kb-c.retard { border-left: 4px solid #B42318; }
.kanban .kb-c strong { font-size: 14px; line-height: 1.3; }
.kanban .kb-c .tools { gap: 6px; }
.kb-l { display: flex; align-items: center; gap: 8px; }
.kb-l .av { width: 24px; height: 24px; font-size: 10px; }
.kb-onglets { display: none; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .kb-onglets { display: flex; }
  .kanban.taches { grid-template-columns: minmax(0, 1fr); }
  .kanban.taches .kb-col:not(.actif) { display: none; }
}
@media print { .kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kanban .kb-col { display: flex !important; } }

.guide-c { background: #fff; border: 1px solid #ECE4DA; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
a.guide-c:hover { border-color: #C2410C; }
.guide-c strong { font-size: 16px; }
.guide { font-size: 15px; line-height: 1.65; max-width: 760px; }
.guide p { margin: 0 0 12px; }
.guide h3 { font-size: 17px; margin: 22px 0 8px; }
.guide h3:first-child { margin-top: 0; }
.g-ol, .g-ul { margin: 0 0 14px; padding-left: 22px; }
.g-ol li, .g-ul li { margin-bottom: 6px; }
.g-coches { list-style: none; margin: 0 0 14px; padding: 0; }
.g-coches label { display: flex; gap: 10px; align-items: flex-start; min-height: 40px; padding: 6px 0; cursor: pointer; }
.g-coches input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: none; }
.g-edit { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.bandeau.b-vert { background: #DCFCE7; color: #166534; }
.point-jour .grid4 { margin-bottom: 4px; }
.lien-retour { background: none; border: 0; color: #C2410C; font-weight: 700; cursor: pointer; padding: 8px 0; min-height: 40px; text-align: left; }

/* Page d'accueil publique */
.vitrine { background: #fff; color: #18212F; }
.v-cont { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.v-etroit { max-width: 760px; }
.v-haut { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid #ECE4DA; }
.v-barre { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.v-marque { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.v-nav { display: flex; gap: 20px; margin-left: auto; }
.v-nav a { color: #3F4855; font-weight: 700; font-size: 14px; text-decoration: none; }
.v-nav a:hover { color: #C2410C; }
.v-hero { background: radial-gradient(ellipse at 85% 10%, #FED7AA 0%, rgba(254,215,170,0) 55%), linear-gradient(170deg, #FFFBF5 0%, #FFF1E2 100%); color: #231A14; padding: 64px 0 72px; }
.v-hero-g { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.v-sur { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 800; color: #C2410C; margin: 0 0 12px; }
.v-hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 18px; font-weight: 800; }
.v-hero h1 em { font-style: normal; color: #C2410C; }
.v-lead { font-size: 18px; line-height: 1.6; color: #5C4636; margin: 0 0 26px; max-width: 560px; }
.v-hero .btn2 { background: #fff; color: #9A3412; border-color: #FDBA74; }
.v-hero .btn2:hover { background: #FFF7ED; }
.v-gros { min-height: 52px; padding: 0 22px; font-size: 15px; }
.v-petit { font-size: 13px; color: #8A7666; margin: 16px 0 0; }
.v-ecran { background: #FBF8F4; color: #18212F; border-radius: 16px; padding: 16px; box-shadow: 0 24px 60px rgba(124,45,18,.18); border: 1px solid #F5DCC4; position: relative; }
.v-ecran-h { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; }
.v-ecran-h span { width: 10px; height: 10px; border-radius: 50%; background: #DDD3C7; }
.v-ecran-h b { margin-left: 8px; }
.v-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.v-kpis div { background: #fff; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.v-kpis small, .v-kb small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #5B6576; }
.v-kpis b { font-size: 18px; font-variant-numeric: tabular-nums; }
.v-rouge { color: #A61B12; }
.v-kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v-kb > div { background: #E9ECF0; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.v-kb p { margin: 0; background: #fff; border-radius: 8px; padding: 8px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.v-kb i { display: block; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #C2410C var(--p), #DDE1E7 var(--p)); margin-top: 6px; }
.v-kb .v-ok { color: #166534; text-decoration: line-through; text-decoration-color: #86EFAC; }
.v-fictif { position: absolute; right: 14px; bottom: -26px; margin: 0; font-size: 11px; color: #A08B7A; }
.v-clair .v-fictif { color: #5B6576; }
.v-bloc { padding: 72px 0; }
.v-clair { background: #FFF7ED; }
.v-bloc h2, .v-fin h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.01em; margin: 0 0 12px; }
.v-intro { font-size: 16px; color: #5B6576; margin: 0 0 28px; max-width: 680px; line-height: 1.6; }
.v-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.v-grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v-carte { border: 1px solid #ECE4DA; border-radius: 14px; padding: 20px; }
.v-carte h3, .v-point h3 { margin: 0 0 8px; font-size: 16px; }
.v-carte p, .v-point p { margin: 0; color: #5B6576; font-size: 14px; line-height: 1.55; }
.v-point { padding: 4px 0 4px 16px; border-left: 3px solid #C2410C; }
.v-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.v-liste { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.55; color: #3F4855; }
.v-liste li { padding-left: 26px; position: relative; }
.v-liste li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 7px; border-left: 2.5px solid #C2410C; border-bottom: 2.5px solid #C2410C; transform: rotate(-45deg); }
.v-liste b { color: #18212F; }
.v-ecran-2 { box-shadow: 0 16px 40px rgba(124,45,18,.12); background: #fff; border: 1px solid #ECE4DA; }
.v-ligne { display: flex; justify-content: space-between; margin: 0; padding: 10px 0; border-bottom: 1px solid #F3EEE7; font-size: 14px; }
.v-ligne span { color: #5B6576; }
.v-demande { margin-top: 14px; background: #FFFBEB; border: 1px solid #FCD34D; border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.5; display: flex; flex-direction: column; gap: 10px; }
.v-tarifs { align-items: stretch; }
.v-tarif { background: #fff; border: 1px solid #ECE4DA; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.v-tarif h3 { margin: 0; font-size: 20px; }
.v-tarif .btn { align-self: flex-start; margin-top: auto; }
.v-tarif-on { border: 2px solid #C2410C; }
.v-etiq { position: absolute; top: -12px; left: 24px; background: #C2410C; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.v-prix { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.35; }
.v-prix small { font-size: 14px; font-weight: 600; color: #5B6576; }
.v-faq { border-bottom: 1px solid #ECE4DA; }
.v-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; padding: 18px 0; min-height: 44px; list-style-position: outside; }
.v-faq p { margin: 0 0 18px; color: #5B6576; line-height: 1.6; }
.v-fin { background: linear-gradient(135deg, #C2410C 0%, #7C2D12 100%); color: #fff; padding: 64px 0; text-align: center; }
.v-fin .tools { justify-content: center; margin-top: 20px; }
.v-fin .btn { background: #fff; color: #9A3412; }
.v-fin .btn2 { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.v-pied { padding: 20px 0; font-size: 13px; color: #5B6576; }
.v-pied .v-cont { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
@media (max-width: 960px) {
  .v-hero-g, .v-deux { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .v-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-grille-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .v-cont { padding: 0 16px; }
  .v-nav { display: none; }
  .v-barre .tools { margin-left: auto; }
  .v-hero { padding: 40px 0 56px; }
  .v-lead { font-size: 16px; }
  .v-grille, .v-grille-3 { grid-template-columns: minmax(0, 1fr); }
  .v-bloc { padding: 48px 0; }
  .v-hero .tools .v-gros { flex: 1 1 100%; }
  .v-kb p { font-size: 11px; padding: 6px; }
  .v-kpis b { font-size: 15px; }
}

.v-fin .btn:hover { background: #FFF7ED; }

/* Version 6 : formules */
.formules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.formules .formule { background: #fff; position: relative; padding: 18px 16px; }
.formules .formule strong { font-size: 17px; }
.formule-prix { font-size: 22px; font-weight: 800; color: #9A3412; line-height: 1.1; font-variant-numeric: tabular-nums; }
.formules .formule .liste-mod { margin: 4px 0 0; font-size: 13px; }
.formules .formule .btn, .formules .formule .btn2 { margin-top: auto; align-self: stretch; }
.formule-phare { border: 2px solid #C2410C; }
.formule-on { border: 2px solid #166534; background: #F0FDF4 !important; }
.formule-on .v-etiq { background: #166534; }
.formules .v-etiq { left: 14px; }
@media (max-width: 1200px) { .formules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .formules { grid-template-columns: minmax(0, 1fr); } }
.v-tarifs-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.v-tarifs-5 .v-tarif { padding: 22px 18px; gap: 12px; }
.v-tarifs-5 .v-prix { font-size: 22px; color: #9A3412; }
.v-tarifs-5 .v-liste { font-size: 14px; gap: 10px; }
@media (max-width: 1100px) { .v-tarifs-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .v-tarifs-5 { grid-template-columns: minmax(0, 1fr); } }
.b-st-gratuit { background: #DCFCE7; color: #166534; }

/* Version 6 : RH et paie */
.eval-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 4px; }
.eval-c { border: 1px solid #ECE4DA; border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.eval-c legend { font-weight: 700; font-size: 13px; padding: 0 4px; }
.eval-c label { position: relative; }
.eval-c input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.eval-c label span, .eval-c label { cursor: pointer; }
.eval-c label { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; border: 1px solid #DDD3C7; border-radius: 10px; font-weight: 700; background: #fff; }
.eval-c label:has(input:checked) { background: #C2410C; border-color: #C2410C; color: #fff; }
.eval-c label:has(input:focus-visible) { outline: 2px solid #9A3412; outline-offset: 2px; }
@media (max-width: 760px) { .eval-g { grid-template-columns: minmax(0, 1fr); } }
.form-inclus { border-top: 1px solid #F3EEE7; border-bottom: 1px solid #F3EEE7; padding: 10px 0 12px; margin-bottom: 10px; }
.form-inclus .card-h { display: none; }
.bulletin .bulletin-id { margin: 8px 0 14px; }
.attestation p { font-size: 15px; line-height: 1.8; }

/* Version 6 : modules Transport, Restauration, Agriculture, Beauté, Tontines, résidences meublées */
.ec.eteint { opacity: .6; }
.cal-sej td, .cal-sej th { text-align: center; padding: 6px 4px; font-size: 12px; min-width: 56px; }
.cal-sej td:first-child, .cal-sej th:first-child { text-align: left; min-width: 150px; }
.cal-sej td.occ { background: #FFEDD5; }
.cal-sej td.occ a { color: #9A3412; font-weight: 700; text-decoration: none; }
.cal-sej td.libre { background: #F0FDF4; }
.menu-boutons { display: flex; flex-direction: column; gap: 12px; }
.menu-boutons .btn2 { min-height: 44px; }
.btn2.du-jour { border-color: #C2410C; background: #FFF7ED; }
.carte-menu .menu-l { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dotted #DDD3C7; }
.carte-menu .menu-l small { display: block; color: #6B5646; font-size: 12px; }
.cuisine-c { border-left: 4px solid #C2410C; }

/* ---------- Version 7 : cloche, notifications, dépenses, validations, tarifs ---------- */
.cloche { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid #DDD3C7; border-radius: 10px; background: #fff; color: #4B5563; text-decoration: none; }
.cloche:hover { color: #C2410C; border-color: #C2410C; }
.cloche.on { color: #C2410C; }
.cloche .dot { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; font-size: 10px; }
.nav .dot { margin-left: auto; }
.notif { align-items: flex-start; }
.notif-i { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 99px; background: #F3EEE8; color: #9A4A0B; display: inline-flex; align-items: center; justify-content: center; }
.notif-neuve { background: #FFF7ED; border-radius: 10px; }
.notif-neuve .notif-i { background: #C2410C; color: #fff; }
.lien-recu { align-self: flex-start; background: none; border: 0; padding: 4px 0; min-height: 32px; color: #C2410C; font-weight: 700; font-size: 13px; cursor: pointer; text-align: left; }
.lien-recu:hover { text-decoration: underline; }
.accord { border: 2px solid #C2410C; }
.coche { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; margin: 4px 0 8px; line-height: 1.4; }
.coche input { width: 20px; height: 20px; margin-top: 1px; accent-color: #C2410C; flex: 0 0 auto; }
.formule-resume .btn { align-self: flex-start; }
.tarifs a.v-marque { text-decoration: none; color: inherit; }
.t-haut { padding-bottom: 8px; }
.t-haut h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 8px 0 14px; letter-spacing: -.02em; }
.t-haut h1 em { font-style: normal; color: #C2410C; }
.t-etat { margin-top: 22px; display: inline-flex; background: #fff; border: 1px solid #ECE4DA; border-left: 4px solid #C2410C; border-radius: 12px; padding: 14px 18px; }
.t-etat div { display: flex; flex-direction: column; gap: 2px; }
.t-etat small { color: #6B7280; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.t-etat b { font-size: 18px; }
.t-etat span { color: #4B5563; font-size: 14px; }
.t-actuelle { border: 2px solid #18212F; }
.t-actuelle .v-etiq { background: #18212F; }
.v-tarif .btn2 { align-self: flex-start; margin-top: auto; }
.t-calc h2, .t-payer h2 { margin: 0 0 14px; }
.t-tab { margin-top: 12px; }
.t-tab td[data-estim], .t-tab td[data-estim-an] { font-weight: 800; white-space: nowrap; }
.t-bientot { background: #FFF7ED; border: 1px dashed #C2410C; border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: #9A4A0B; }
.t-payer .btn { align-self: flex-start; }
.t-payer, .t-calc { display: flex; flex-direction: column; }
@media (max-width: 720px) {
  .cloche { width: 40px; height: 40px; }
  .t-etat { display: flex; }
  .t-tab th:nth-child(3), .t-tab td:nth-child(3) { white-space: normal; }
}
.tarifs .v-deux { align-items: start; gap: 24px; }
.t-calc { min-width: 0; }
.t-calc table.rap { min-width: 0; }
@media (max-width: 560px) { .t-tab th, .t-tab td { padding: 8px 6px; font-size: 13px; } }
/* v8 */
.plus-options { margin: 6px 0 4px; }
.plus-options summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--accent, #C2410C); padding: 8px 0; }
.lien-mini { background: none; border: 0; color: #7A6F63; text-decoration: underline; font-size: 12px; cursor: pointer; padding: 6px 4px; }
.btn-plus { min-width: 40px; font-size: 18px; line-height: 1; }
.stock-t tr.stock-bas td { background: #FEF2F2; }
.stock-t .petit { display: block; color: #8A7F73; font-size: 11px; }
.reste-caisse b { color: #B91C1C; }
.signatures > div { flex: 1; display: flex; flex-direction: column; gap: 4px; text-align: center; font-size: 13px; }
.apercu-import { border: 1px dashed #DDD3C7; border-radius: 12px; padding: 12px; margin-top: 10px; }
.mat-jour { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
@media (max-width: 560px) { .mat-jour { grid-template-columns: 1fr 90px; } }
.contrat-type h3 { font-size: 14px; margin: 14px 0 4px; } .contrat-type p { margin: 0 0 6px; line-height: 1.5; }
/* Formule gratuite */
body.formule-gratuite a[href*="wa.me/"]:not([data-libre])::before { content: "🔒 "; }
.cadenas h2 { display: flex; align-items: center; gap: 6px; }
.pill.verrou { opacity: .75; }
.pill.verrou::after { content: " 🔒"; }
@media print {
  body.formule-gratuite::after { content: "Document fait avec BaraPro · gestion d’entreprise"; position: fixed; bottom: 4mm; left: 0; right: 0; text-align: center; font-size: 9pt; color: #6B6259; }
}
[hidden] { display: none !important; }

/* v9 : facturation des modules, calendrier, bon de cuisine, feuille d'appel */
.situation-l { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 10px; font-size: 14px; color: #5B6576; }
.situation-l b { color: #1F2937; margin-left: 4px; }
.situation-l b.alerte { color: #B42318; } .situation-l b.ok { color: #15803D; }
tr.ligne-retard td:first-child { box-shadow: inset 3px 0 0 #B42318; }
tr.ligne-retard .lien-tache { color: #B42318; }
tr.surligne td, section.card.surligne { background: #FFF7ED; }
.cal-num { background: none; border: 0; font: inherit; font-weight: 700; text-align: left; padding: 2px 4px; min-height: 28px; cursor: pointer; border-radius: 6px; color: inherit; }
.cal-num:hover, .cal-num:focus-visible { background: #FFEDD5; }
.cal-j.choisi { border-color: #1F2937; box-shadow: inset 0 0 0 1px #1F2937; background: #FFFBF5; }
.cal-loc { background: #E0F2FE; color: #075985; }
.btn2.on { background: #FEF3C7; border-color: #D97706; }
.row.versement { flex-wrap: wrap; }
.bon-cuisine { max-width: 80mm; margin: 0 auto; font-size: 16px; }
.bon-cuisine h2 { font-size: 18px; margin: 0 0 4px; }
.bon-l { padding: 6px 0; border-bottom: 1px dashed #CBBFB1; font-size: 17px; }
.bon-l small { display: block; font-size: 13px; color: #5B6576; }
.feuille-appel .f-lignes td { height: 22px; }
.feuille-appel .f-lignes td:nth-child(n+3) { min-width: 18px; border-left: 1px solid #E5DCD1; }
@media print { .feuille-appel { font-size: 10pt; } .bon-cuisine { max-width: none; } }
.form.form-inclus { box-shadow: none; border-left: 0; border-right: 0; border-color: #F3EEE7; border-radius: 0; }
table.rap.compact { min-width: 0; }
