/* Maintenance Crimson Factory */
:root {
	--red: #B80A0E;
	--red-soft: #FBE9E9;
	--bg: #F4F5F7;
	--card: #FFFFFF;
	--ink: #1D1D1F;
	--muted: #6B7078;
	--line: #E4E6EA;
	--amber: #9A5B0B;
	--amber-soft: #FDF1E1;
	--blue: #1F4F8F;
	--blue-soft: #E8F0FB;
	--green: #1E6B34;
	--green-soft: #E6F4EA;
	--r-lg: 14px;
	--r-sm: 9px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3 { font-family: "Hanken Grotesk", "DM Sans", system-ui, sans-serif; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: 28px; margin: 4px 0; }
h2 { font-size: 18px; margin: 0 0 14px; }
h3 { font-size: 15px; margin: 18px 0 8px; }
a { color: inherit; }
code, .secret { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { margin-left: auto; text-align: right; }
.text-red { color: var(--red); }
.error { color: var(--red); background: var(--red-soft); padding: 10px 12px; border-radius: var(--r-sm); }

/* Barre de navigation */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 0 24px; height: 60px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Hanken Grotesk", sans-serif; font-weight: 700; font-size: 17px; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.mainnav { display: flex; gap: 2px; overflow-x: auto; }
.mainnav a { padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; }
.mainnav a:hover { background: var(--bg); color: var(--ink); }
.mainnav a.is-active { color: var(--ink); background: var(--bg); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; text-align: center; }
.userbox { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
button.link { border: 0; background: none; padding: 0; color: var(--ink); font: inherit; text-decoration: underline; cursor: pointer; }

/* Page */
.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 40px; }
.page-narrow { max-width: 420px; padding-top: 10vh; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.pagehead .actions { display: flex; gap: 8px; }
.foot { max-width: 1240px; margin: 0 auto; padding: 0 24px 32px; color: var(--muted); font-size: 12.5px; }

.card { background: var(--card); border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-accent { border-left: 4px solid var(--red); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + .card, .grid2 + .grid2 { margin-top: 18px; }
.empty { color: var(--muted); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border-radius: var(--r-lg); padding: 16px 18px; }
.stat strong { display: block; font-family: "Hanken Grotesk", sans-serif; font-size: 26px; line-height: 1.15; }
.stat span { color: var(--muted); font-size: 13px; }
.stat-red strong { color: var(--red); }

/* Tableaux */
.tablewrap, .scroll { overflow-x: auto; }
.scroll { max-height: 420px; overflow-y: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr[data-href] { cursor: pointer; }
.table tbody tr[data-href]:hover td { background: #FAFAFB; }
.table-kv th { width: 55%; font-size: 14px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); padding: 9px 10px 9px 0; }
.is-muted { opacity: .55; }
.toolbar { margin-bottom: 12px; }
.toolbar input { width: 100%; max-width: 320px; }

/* Pastilles */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; background: var(--bg); color: var(--muted); }
.pill-critique { background: var(--red); color: #fff; }
.pill-important { background: var(--amber-soft); color: var(--amber); }
.pill-info { background: var(--blue-soft); color: var(--blue); }
.pill-ok { background: var(--green-soft); color: var(--green); }

/* Alertes */
.alert { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 10px; }
.alert-critique { border-left-color: var(--red); }
.alert-important { border-left-color: #E3A23B; }
.alert-info { border-left-color: #8DB0E0; }
.alert-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alert-detail { margin: 10px 0 0; padding: 10px 12px; background: var(--bg); border-radius: var(--r-sm); white-space: pre-wrap; word-break: break-word; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; color: #3A3D42; }
.alert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Formulaires */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], input[type=date], select, textarea {
	width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font: inherit; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(184,10,14,.25); border-color: var(--red); }
label { display: block; font-size: 13.5px; font-weight: 500; }
label > input, label > select, label > textarea { margin-top: 5px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
label.check input { width: auto; margin: 0; }
label.block { margin-top: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid h2 { margin: 10px 0 0; }
.inline { display: inline; }
.inline-form { display: flex; gap: 8px; margin: 14px 0 8px; }
.inline-form input { flex: 1; }
.inline-form select { width: auto; }
.danger-zone { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 14px "DM Sans", system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: #C9CCD2; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: #9C080B; border-color: #9C080B; }
.btn-ghost { background: transparent; }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Connexion */
.auth { background: var(--card); border-radius: var(--r-lg); padding: 32px; }
.auth .logo-mark { width: 40px; height: 40px; }
.auth form { display: grid; gap: 14px; margin-top: 18px; }
.secret { padding: 10px 12px; background: var(--bg); border-radius: var(--r-sm); font-size: 15px; letter-spacing: .04em; word-break: break-all; cursor: copy; }
.secret.small { font-size: 12.5px; letter-spacing: 0; }

/* Onglets */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.tabs a { padding: 7px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-weight: 500; }
.tabs a.is-active { background: var(--card); color: var(--ink); }
.tabs .spacer { flex: 1; }

/* Mises à jour groupées */
.group-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.group details { margin-top: 10px; }
.group summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
.site-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 16px; margin-top: 10px; }

/* Notifications */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 50; }
.toast { padding: 12px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 14px; max-width: 380px; transition: opacity .3s, transform .3s; }
.toast-erreur { background: var(--red); }
.toast.is-hiding { opacity: 0; transform: translateY(6px); }

@media (max-width: 760px) {
	.topbar { padding: 0 14px; gap: 10px; }
	.brand span, .userbox span { display: none; }
	.grid2 { grid-template-columns: 1fr; }
	.form-grid { grid-template-columns: 1fr; }
	.page { padding: 20px 14px; }
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Logo */
.logo-mark { width: 34px; height: 34px; }
.auth .logo-mark { width: 56px; height: 56px; }

/* Mode démonstration : montants floutés */
.demo-toggle { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 6px 12px; font: 500 13px "DM Sans", system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.demo-toggle:hover { border-color: #C9CCD2; }
.demo-toggle .when-on, body.is-demo .demo-toggle .when-off { display: none; }
body.is-demo .demo-toggle .when-on { display: inline; }
body.is-demo .demo-toggle { background: var(--ink); color: #fff; border-color: var(--ink); }
.userbox { margin-left: 0; }
body.is-demo .cost { filter: blur(7px); user-select: none; }

/* Gestion */
.exnav { display: flex; align-items: center; gap: 10px; }
.toolbar-split { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.toolbar-split .inline-form { margin: 0; }
.iv-table td { vertical-align: top; }
.iv-check { width: 34px; }
.check-btn { width: 24px; height: 24px; border: 2px solid #C9CCD2; border-radius: 7px; background: #fff; color: #fff; font-weight: 700; cursor: pointer; line-height: 1; padding: 0; }
.check-btn:hover { border-color: var(--red); }
.is-done .check-btn { background: var(--green); border-color: var(--green); }
.is-done td:nth-child(2) > :first-child, .is-done td:nth-child(2) { color: var(--muted); }
.nowrap { white-space: nowrap; }
.nowrap select { width: auto; padding: 5px 8px; font-size: 13px; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.cf-warn { padding: 10px 12px; background: var(--amber-soft); color: var(--amber); border-radius: var(--r-sm); margin: 12px 0; }

/* Sélection multiple */
.selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.group .table { margin-top: 10px; }
.add-site select { width: auto; max-width: 240px; }
@media (max-width: 760px) { .demo-toggle { padding: 6px 8px; font-size: 12px; } .bars { gap: 3px; } .bar-val { display: none; } }

/* Bandeaux d'état */
.banner { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-weight: 500; }
.banner-warn { background: var(--amber-soft); color: var(--amber); }
.banner-muted { background: #E9EAED; color: var(--muted); }


/* ==================================================================
 * Mise en page des fiches
 * ================================================================== */
select { appearance: none; -webkit-appearance: none; padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7078' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
input[type=date] { font-family: inherit; }
input::placeholder, textarea::placeholder { color: #9A9EA6; }

.crumb { display: inline-block; margin-bottom: 4px; color: var(--muted); text-decoration: none; font-size: 13.5px; }
.crumb:hover { color: var(--red); }
.subline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 14px; }
.subline a { color: var(--muted); }

.layout-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.layout-main > .card, .stack > .card { margin-bottom: 0; }
.stack { display: grid; gap: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }

.iv-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; margin-bottom: 16px; }
.iv-form select { width: 120px; }
.iv-form input[type=date] { width: 150px; }
.iv-form:has(select[name=site_id]) { grid-template-columns: minmax(0, 1fr) 140px auto auto auto; }

.lines { list-style: none; margin: 0 0 14px; padding: 0; }
.lines li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lines li:last-child { border-bottom: 0; }
.lines li > span:first-child { flex: 1; }
.lines a { text-decoration: none; color: var(--ink); }
.lines a:hover strong { color: var(--red); }

.icon-btn { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.icon-btn:hover { background: var(--red-soft); color: var(--red); }

.row-form { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 8px; }
.danger-zone.row-form { grid-template-columns: minmax(0, 1fr) auto; }
.form-stack { display: grid; gap: 12px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { margin: -4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-ghost { border-color: transparent; color: var(--muted); }
.btn-ghost:hover { border-color: var(--line); color: var(--ink); }

.empty-state { display: grid; gap: 4px; padding: 26px 20px; text-align: center; background: var(--bg); border-radius: var(--r-sm); }
.empty-state strong { font-family: "Hanken Grotesk", sans-serif; font-size: 15px; }
.empty-state span { color: var(--muted); font-size: 13.5px; }

.exnav .btn { width: 32px; padding: 6px 0; }
.demo-toggle { display: inline-flex; align-items: center; gap: 6px; }
.brand span { letter-spacing: -0.01em; }

@media (max-width: 980px) {
	.layout-main { grid-template-columns: 1fr; }
	.iv-form, .iv-form:has(select[name=site_id]) { grid-template-columns: 1fr 1fr; }
	.iv-form input[type=text] { grid-column: 1 / -1; }
	.iv-form select, .iv-form input[type=date] { width: 100%; }
}

.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.bar { display: grid; grid-template-rows: auto 150px auto; gap: 6px; text-align: center; }
.bar-track { position: relative; display: block; background: var(--bg); border-radius: 8px; overflow: hidden; }
.bar-fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #D0272C, var(--red)); border-radius: 8px 8px 0 0; }
.bar:hover .bar-fill { background: #8E0609; }
.bar-val { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-lbl { font-size: 12px; color: var(--muted); }
.link-add { border: 0; background: none; padding: 2px 6px; border-radius: 6px; color: var(--muted); font: 500 12.5px "DM Sans", system-ui, sans-serif; cursor: pointer; opacity: .55; }
tr:hover .link-add { opacity: 1; }
.link-add:hover { background: var(--red-soft); color: var(--red); }
#clients-table td:first-child a { text-decoration: none; }
#clients-table td:first-child a:hover strong { color: var(--red); }
.card > .empty + form, .card > p.empty + form { margin-top: 12px; }
@media (max-width: 760px) { .bar { grid-template-rows: auto 110px auto; } .bars { gap: 4px; } }

/* Hauteurs des barres (pas de style en ligne : politique de sécurité stricte) */
.bar-fill.h5 { height: 5%; }
.bar-fill.h10 { height: 10%; }
.bar-fill.h15 { height: 15%; }
.bar-fill.h20 { height: 20%; }
.bar-fill.h25 { height: 25%; }
.bar-fill.h30 { height: 30%; }
.bar-fill.h35 { height: 35%; }
.bar-fill.h40 { height: 40%; }
.bar-fill.h45 { height: 45%; }
.bar-fill.h50 { height: 50%; }
.bar-fill.h55 { height: 55%; }
.bar-fill.h60 { height: 60%; }
.bar-fill.h65 { height: 65%; }
.bar-fill.h70 { height: 70%; }
.bar-fill.h75 { height: 75%; }
.bar-fill.h80 { height: 80%; }
.bar-fill.h85 { height: 85%; }
.bar-fill.h90 { height: 90%; }
.bar-fill.h95 { height: 95%; }
.bar-fill.h100 { height: 100%; }

.grid2 { align-items: start; }

/* Bandeau du contrat de maintenance (fiche site) */
.contract-band { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 18px 22px; margin-bottom: 18px; background: #fff; border-radius: var(--r-lg); border-left: 4px solid var(--red); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.contract-band > div { display: grid; gap: 2px; min-width: 170px; }
.band-label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.contract-band strong { font-family: "Hanken Grotesk", sans-serif; font-size: 22px; line-height: 1.2; }
.band-sub { color: var(--muted); font-size: 13.5px; }
.contract-form { display: grid; grid-template-columns: 130px 170px auto; gap: 8px; align-items: end; justify-self: end; }
.contract-form label { font-size: 12px; color: var(--muted); }
@media (max-width: 980px) { .contract-band { grid-template-columns: 1fr 1fr; } .contract-form { grid-column: 1 / -1; justify-self: stretch; grid-template-columns: 1fr 1fr auto; } }

.nowrap select { min-width: 100px; padding-right: 28px; background-position: right 9px center; }

.deploy { margin: 0 0 16px; padding: 14px 16px; background: var(--bg); border-radius: var(--r-sm); }
.deploy p { margin: 0 0 10px; }

/* Parc : catégories et regroupement */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 13.5px; }
.chip span { color: var(--muted); font-size: 12px; }
.chip:hover { border-color: var(--red); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active span { color: rgba(255,255,255,.7); }
.chip-none { border-style: dashed; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.group-switch { display: inline-flex; align-items: center; gap: 4px; }
.group-switch a { padding: 5px 10px; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-size: 13.5px; }
.group-switch a.is-active { background: var(--bg); color: var(--ink); font-weight: 600; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 8px 10px; background: var(--bg); border-radius: var(--r-sm); }
.bulk-bar input[type=text] { width: 230px; padding: 6px 10px; }
.col-check { width: 28px; }
.group-row td { padding-top: 18px; background: #fff; border-bottom: 2px solid var(--ink); font-size: 14.5px; }
.cat-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #EEF0F3; color: #4A4F57; font-size: 11.5px; font-weight: 600; vertical-align: 1px; }

/* Hébergement */
.host-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; vertical-align: 1px; white-space: nowrap; }
.host-ours { background: var(--red-soft); color: var(--red); }
.host-client { background: #E8F0FB; color: #1F4F8F; }
.host-unknown { background: #F1F2F4; color: var(--muted); }
.chips-label { align-self: center; margin-right: 2px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.chips-host { margin-bottom: 8px; }
.chip-ours.is-active { background: var(--red); border-color: var(--red); }
.kv { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.kv th { width: 140px; padding: 7px 0; color: var(--muted); font-weight: 500; text-align: left; vertical-align: top; }
.kv td { padding: 7px 0; }
.kv tr + tr th, .kv tr + tr td { border-top: 1px solid var(--line); }
.host-form { grid-template-columns: minmax(0, 1fr) auto auto; }

/* Types d'intervention */
.kind { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #F1F2F4; color: #4A4F57; vertical-align: 1px; white-space: nowrap; }
.kind-correction { background: #FBE9E9; color: #B80A0E; }
.kind-integration { background: #EDE7F8; color: #5B3BA8; }
.kind-modification { background: #E8F0FB; color: #1F4F8F; }
.kind-maj { background: #E6F4EA; color: #1E6B34; }
.kind-sauvegarde { background: #FDF1E1; color: #9A5B0B; }
.kind-securite { background: #1D1D1F; color: #fff; }
.export-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.iv-form { grid-template-columns: minmax(0, 1fr) auto auto auto auto; }
.iv-form:has(select[name=site_id]) { grid-template-columns: minmax(0, 1fr) 140px auto auto auto auto; }
.iv-form select[name=kind] { width: 140px; }

/* Journal imprimable */
body.journal { background: #F4F5F7; }
.journal-page { max-width: 900px; margin: 32px auto; padding: 40px 44px; background: #fff; border-radius: 14px; }
.journal-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.journal-head { display: flex; align-items: center; gap: 28px; padding-bottom: 22px; border-bottom: 3px solid var(--red); }
.journal-brand { display: grid; justify-items: center; gap: 4px; font-weight: 700; font-size: 12px; color: var(--red); }
.journal-brand .logo-mark { width: 54px; height: 54px; }
.journal-head h1 { margin: 0 0 4px; font-size: 26px; }
.journal-head p { margin: 0; color: var(--muted); }
.journal-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.journal-summary div { display: grid; padding: 10px 16px; background: #F4F5F7; border-radius: 10px; }
.journal-summary strong { font-family: "Hanken Grotesk", sans-serif; font-size: 22px; }
.journal-summary span { color: var(--muted); font-size: 12.5px; }
.journal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.journal-table th { padding: 8px 10px; text-align: left; font-size: 12px; color: var(--muted); border-bottom: 2px solid var(--ink); }
.journal-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.journal-foot { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; text-align: center; }
@media print {
	body.journal { background: #fff; }
	.journal-page { margin: 0; padding: 0; border-radius: 0; max-width: none; }
	.journal-actions { display: none; }
	.journal-table tr { break-inside: avoid; }
	.kind { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.dom-ours { background: #FFF1E6; color: #A1430B; }

/* Mise à jour express */
.express-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.express-item { position: relative; cursor: pointer; }
.express-item input { position: absolute; opacity: 0; pointer-events: none; }
.express-item span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; transition: background .12s, border-color .12s; }
.express-item em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.express-item:hover span { border-color: var(--red); }
.express-item input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.express-item input:checked + span em { color: rgba(255,255,255,.8); }
.express-item input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.express-item .star { color: #D99A00; font-weight: 400; }
.express-item input:checked + span .star { color: #fff; }
.express-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.express-actions [data-express-go] { margin-left: auto; }

.host-provider { background: #EEF0F3; color: #3A3D42; }

.relay-box { display: grid; gap: 8px; padding: 12px 14px; background: var(--bg); border-radius: var(--r-sm); }
