/* Feuille de style des pages (nom de travail : config/product.toml), d'après docs/maquettes/README.md. Pas de pictogrammes, pas de badges. */
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; }
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/IBMPlexSans-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; }
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/IBMPlexSans-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; }
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; }

:root {
  --bg: #F3F5F7; --surface: #FFFFFF; --text: #17202A; --muted: #5B6775; --border: #D5DBE1; --accent: #0E5A6C;
  --class-a: #0B4F8A; --class-b: #2466A8; --class-c: #5F6B78; --class-d: #B5540A; --class-e: #8F1D1D;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 15px; line-height: 1.45; }
a { color: var(--accent); }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
header.top { background: var(--surface); border-bottom: 1px solid var(--border); }
header.top .inner { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
header.top .brand { font-weight: 600; color: var(--accent); text-decoration: none; }
header.top nav a { margin-right: 16px; color: var(--text); text-decoration: none; }
header.top nav a:hover { text-decoration: underline; }
header.top .account { margin-left: auto; color: var(--muted); font-size: 14px; }
header.top .account form { display: inline; }
.banner { background: #FFF4E5; border-bottom: 1px solid #E6C9A3; color: #5A3B0A; padding: 8px 24px; text-align: center; font-size: 14px; }
main { max-width: 1180px; margin: 24px auto; padding: 0 24px; }
footer { max-width: 1180px; margin: 32px auto; padding: 16px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
h1 { font-size: 24px; font-weight: 600; margin: 0 0 16px; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 20px; margin-bottom: 20px; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 820px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
td.num, th.num { text-align: right; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.score { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 44px; font-weight: 500; line-height: 1; }
.klass { display: inline-block; min-width: 36px; padding: 4px 10px; border-radius: 4px; color: #fff; font-weight: 600; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.class-A { background: var(--class-a); } .class-B { background: var(--class-b); } .class-C { background: var(--class-c); } .class-D { background: var(--class-d); } .class-E { background: var(--class-e); }
.text-class-A { color: var(--class-a); } .text-class-B { color: var(--class-b); } .text-class-C { color: var(--class-c); } .text-class-D { color: var(--class-d); } .text-class-E { color: var(--class-e); }
.reserves li { padding: 4px 0; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.steps .n { font-family: "IBM Plex Mono", ui-monospace, monospace; color: var(--muted); }
.steps .v { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; white-space: nowrap; }
.formula { font-family: "IBM Plex Mono", ui-monospace, monospace; padding: 10px 0 0; }
form.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, select, textarea, button { font: inherit; }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=number], input[type=date], select, textarea { padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; background: #fff; color: var(--text); min-width: 180px; }
button { padding: 8px 14px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; cursor: pointer; }
button.secondary { background: #fff; color: var(--accent); }
.error { background: #FBEAEA; border: 1px solid #E3B4B4; color: #6B1F1F; padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; }
.notice { background: #EAF3F5; border: 1px solid #BBD6DC; color: #0E5A6C; padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; }
.status-accepted { color: #2E6B2E; } .status-rejected { color: var(--class-e); } .status-file_rejected { color: var(--class-e); font-weight: 600; }
.tabs a { margin-right: 16px; padding-bottom: 6px; text-decoration: none; color: var(--muted); }
.tabs a.active { color: var(--text); border-bottom: 2px solid var(--accent); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; }
/* Guichet de garanties (lot 5), d'après docs/maquettes/Dossier.dc.html */
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.summary { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.actions form { display: inline; }
.note { padding: 10px 14px; border: 1px dashed #B5540A; border-radius: 6px; background: #FFF7EE; color: #7A3A05; font-size: 13px; margin-bottom: 16px; }
ol.statuses { list-style: none; margin: 0 0 20px; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
ol.statuses li { flex: 1 1 140px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
ol.statuses li .bar { height: 6px; border-radius: 3px; background: #E3E7EB; }
ol.statuses li.done { color: var(--text); } ol.statuses li.done .bar { background: #9FB9C2; }
ol.statuses li.current { color: var(--accent); font-weight: 700; } ol.statuses li.current .bar { background: var(--accent); }
ol.statuses li .when { font-size: 12px; color: var(--muted); font-weight: 400; }
.grid.steps-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.step-card h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.step-card .headline { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-card dl.facts { font-size: 13px; }
.quote { border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; margin-bottom: 16px; background: var(--surface); }
.quote.chosen { border: 2px solid var(--accent); }
.quote .kind { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.kind-interested { background: #EEF4EE; color: #1E5A2A; } .kind-info_request { background: #FFF7EE; color: #7A3A05; } .kind-refusal { background: #FBEAEA; color: #6B1F1F; }
.progress { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.progress a { padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; text-decoration: none; color: var(--muted); font-size: 13px; background: var(--surface); }
.progress a.current { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.progress a.filled { color: var(--text); }
form.stacked { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 16px; }
form.stacked .wide { grid-column: 1 / -1; }
form.stacked textarea { min-height: 70px; width: 100%; }
.figure { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 28px; font-weight: 500; }
.figure-label { font-size: 13px; color: var(--muted); }
/* Brouillon de dépôt (lot 5 ter) : table large à défilement, cellules en défaut, correction au clic (draft.js) */
.table-scroll { overflow-x: auto; }
table.draft th, table.draft td, table.grid th, table.grid td { white-space: nowrap; font-size: 13px; padding: 6px 8px; }
table.draft td.cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; font-family: "IBM Plex Mono", ui-monospace, monospace; }
table.draft td.cell[data-editable] { cursor: text; }
table.draft td.cell[data-editable]:hover, table.draft td.cell[data-editable]:focus { outline: 1px solid var(--accent); }
table.draft td.is-error { background: #FBEAEA; box-shadow: inset 0 0 0 1px #E3B4B4; }
table.draft tr.row-abandoned td { color: var(--muted); text-decoration: line-through; }
table.draft tr.row-abandoned td.actions-cell { text-decoration: none; }
table.draft .cell-input { width: 100%; min-width: 120px; padding: 4px 6px; font: inherit; }
table.draft .actions-cell form.inline { margin-top: 4px; }
table.grid input { min-width: 110px; width: 100%; padding: 4px 6px; }
.counts { font-family: "IBM Plex Mono", ui-monospace, monospace; margin: 0 0 12px; }
ul.problems { font-size: 13px; padding-left: 18px; }
.is-error-field label { color: var(--class-e); font-weight: 600; }
/* Complément du lot 5 ter (point 7) : infobulle « ? » portant le nom officiel de la nomenclature ; cases à cocher des classes */
.help { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--muted); color: var(--muted); font-size: 11px; line-height: 14px; text-align: center; cursor: help; margin-left: 4px; font-weight: 600; }
label.check { display: inline-block; margin-right: 10px; color: var(--text); font-size: 14px; }
/* Point 6 du complément : filtres sur une ligne, « Filtres élargis » repliés, listes à choix multiples, en-têtes triables, pagination */
.fields { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
details.more { margin-top: 10px; }
details.more summary { cursor: pointer; color: var(--accent); font-size: 14px; }
details.more .fields { margin-top: 10px; }
select[multiple] { min-height: 92px; }
th.sortable a { color: inherit; text-decoration: none; }
th.sortable a:hover { text-decoration: underline; }
th[aria-sort] a { color: var(--text); font-weight: 600; }
.sort-mark { font-size: 11px; }
.results-line { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
p.pagination { margin: 0 0 12px; }
