/* Passages gSFi — Groupe SF Immo SA */
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url(fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url(fonts/jost-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-display: swap; src: url(fonts/jost-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 500; font-display: swap; src: url(fonts/cormorant-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 600; font-display: swap; src: url(fonts/cormorant-latin-600-normal.woff2) format("woff2"); }

:root {
  --red: #ED1C24;
  --red-dark: #c4121a;
  --blue: #0F75BC;
  --blue-dark: #0b5a92;
  --ink: #1d2733;
  --ink-2: #4b5866;
  --ink-3: #7a8693;
  --line: #e3e7ec;
  --bg: #f5f6f8;
  --card: #ffffff;
  --ok: #1f8a5b;   --ok-bg: #e7f5ee;
  --warn: #a8650a; --warn-bg: #fdf3e2;
  --ko: #c4121a;   --ko-bg: #fde9ea;
  --info: #0b5a92; --info-bg: #e6f1fa;
  --neutral: #5d6873; --neutral-bg: #eef0f2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 45, .06), 0 2px 8px rgba(20, 30, 45, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { font-family: "Cormorant", Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; color: var(--red); margin: 0 0 .3em; }
.eyebrow a { color: inherit; }

/* Barre supérieure */
.topbar { background: #fff; border-bottom: 3px solid var(--red); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 12px 16px 0; display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand-logo { height: 54px; width: auto; display: block; margin-bottom: 10px; }
.brand-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .02em; position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 7px; height: 2px; background: var(--red); border-radius: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-weight: 600; font-size: .98rem; }
.brand-text em { font-family: "Cormorant", Georgia, serif; font-style: normal; font-size: .95rem; color: var(--ink-2); }
.mainnav { display: flex; gap: 2px; flex-wrap: wrap; width: 100%; border-top: 1px solid var(--line); padding: 6px 0; }
.mainnav a { color: var(--ink-2); padding: 7px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.mainnav a:hover { background: var(--bg); text-decoration: none; }
.mainnav a.active { color: var(--blue); background: var(--info-bg); }
.usermenu { display: flex; align-items: center; gap: 14px; font-size: .9rem; margin-left: auto; margin-bottom: 10px; }
.user-name { color: var(--ink); font-weight: 500; display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.user-role { font-size: .75rem; color: var(--ink-3); font-weight: 400; }
.pill { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 600; text-align: center; line-height: 20px; }

.container { max-width: 1120px; margin: 0 auto; padding: 24px 16px; width: 100%; }
.footer { border-top: 1px solid var(--line); background: #fff; color: var(--ink-3); font-size: .8rem; }
.footer-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding-top: 14px; padding-bottom: 14px; }

/* Cartes et grilles */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 3fr 2fr; align-items: start; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head p { margin: 0; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.metric-val { font-size: 1.6rem; font-weight: 500; line-height: 1.1; }
.metric-val small { font-size: 1rem; color: var(--ink-3); }
.metric-label { font-size: .82rem; color: var(--ink-3); margin-top: 4px; }
.metric-ok { color: var(--ok); } .metric-warn { color: var(--warn); } .metric-ko { color: var(--ko); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 500; font-size: .95rem; padding: 9px 16px; border-radius: 8px; border: 1px solid #cfd6dd; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none !important; line-height: 1.2; }
.btn:hover { background: var(--bg); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-sm { padding: 6px 11px; font-size: .85rem; }
.btn-lg { padding: 14px 18px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; }
.btn-link.danger { color: var(--ko); }
.btn[disabled] { opacity: .6; cursor: wait; }
form.inline { display: inline; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: block; font-weight: 500; font-size: .92rem; }
.form label > input, .form label > textarea, .form label > select { display: block; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=time], input[type=month], input:not([type]), textarea, select {
  font: inherit; font-weight: 400; font-size: 1rem; padding: 10px 12px; border: 1px solid #cfd6dd; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, textarea:focus, select:focus, .btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-weight: 600; padding: 0 6px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > label { flex: 1 1 160px; }
.row > .col-npa { flex: 0 0 110px; }
.form .check-line, .check-line { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.check-line input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.checklist { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 500; flex: 1 1 180px; }
.month-form select { width: auto; min-width: 170px; }

/* Alertes et badges */
.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: .95rem; border: 1px solid transparent; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #c4e6d4; }
.alert-error { background: var(--ko-bg); color: var(--ko); border-color: #f6c9cc; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #c6dff2; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 500; white-space: nowrap; vertical-align: middle; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-ko { background: var(--ko-bg); color: var(--ko); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral); }

.progress { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 8px 0 6px; min-width: 80px; }
.progress-fill { height: 100%; border-radius: 6px; }
.fill-ok { background: var(--ok); } .fill-warn { background: #e39a2d; } .fill-ko { background: var(--red); } .fill-info { background: var(--blue); } .fill-neutral { background: var(--ink-3); }

/* Tableaux */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.row-muted td { opacity: .55; }

/* Chronologie des passages */
.timeline { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.tl-date { flex: 0 0 92px; font-size: .9rem; font-weight: 500; }
.tl-body { flex: 1; }
.obs { margin: 6px 0 0; padding: 8px 10px; background: var(--bg); border-left: 3px solid var(--blue); border-radius: 4px; font-size: .9rem; color: var(--ink-2); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .88rem; }
.chip.active { border-color: var(--blue); background: var(--info-bg); color: var(--blue); font-weight: 500; }
.chip:hover { text-decoration: none; border-color: var(--blue); }

.building-card .bc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.building-card h2 { margin-bottom: .1em; }
.addr { color: var(--ink-2); margin: 0 0 .6em; }
.legend { margin-top: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 18px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
.plain { list-style: none; padding: 0; margin: 0 0 10px; } .plain li { padding: 4px 0; }

.credentials { border-color: var(--blue); }
.credentials pre { background: var(--bg); padding: 12px; border-radius: 8px; white-space: pre-wrap; font-size: .92rem; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Connexion */
.login-wrap { display: grid; place-items: center; min-height: 60vh; }
.login-card { width: 100%; max-width: 420px; }
.login-card h1 { font-size: 2.1rem; }

/* Scan */
.scan-card h1 { font-size: 1.9rem; margin-bottom: .1em; }
.geo-status { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--neutral-bg); color: var(--neutral); font-size: .92rem; }
.geo-status .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.geo-status[data-state=pending] .dot { animation: pulse 1.2s infinite; }
.geo-status[data-state=ok] { background: var(--ok-bg); color: var(--ok); }
.geo-status[data-state=fail] { background: var(--warn-bg); color: var(--warn); }
@keyframes pulse { 50% { opacity: .25; } }
.success-block { text-align: center; padding: 18px 0 6px; }
.success-block .check { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2.4rem; display: grid; place-items: center; }
.signed { margin-top: 14px; text-align: center; }

/* Affiches QR */
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.qr-poster { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--red); border-radius: var(--radius); padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.qp-brand { display: flex; align-items: center; gap: 10px; text-align: left; margin-bottom: 10px; }
.qp-title { font-family: "Cormorant", Georgia, serif; font-size: 1.6rem; font-weight: 600; margin: 6px 0 10px; color: var(--blue); }
.qp-code { width: 220px; height: 220px; }
.qp-code svg { width: 100%; height: 100%; display: block; }
.qp-name { font-weight: 600; font-size: 1.15rem; margin: 12px 0 0; }
.qp-addr { color: var(--ink-2); margin: 0 0 10px; }
.qp-help { font-size: .9rem; margin: 0 0 4px; }
.qp-contact { font-size: .78rem; color: var(--ink-3); margin: 0; }

.print-only { display: none; }

@media (max-width: 640px) {
  h1 { font-size: 1.65rem; }
  .brand-logo { height: 40px; }
  .user-role { display: none; }
  .mainnav { overflow-x: auto; flex-wrap: nowrap; }
  .mainnav a { white-space: nowrap; padding: 7px 10px; }
  .card { padding: 16px; }
  .tl-date { flex-basis: 78px; }
  .building-card .bc-head { flex-direction: column; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 11pt; }
  .topbar .mainnav, .usermenu, .footer, .no-print, .alert, .chips { display: none !important; }
  .print-only { display: block; }
  .print-title { font-weight: 600; margin-bottom: 8px; }
  .container { padding: 0; max-width: none; }
  .card, .metric { box-shadow: none; break-inside: avoid; }
  .page-qr .topbar { display: none; }
  .qr-sheet { display: block; }
  .qr-poster { height: 132mm; break-inside: avoid; page-break-inside: avoid; margin: 0 auto 6mm; width: 100%; border: 1px dashed #999; border-top: 8px solid var(--red); justify-content: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qp-code { width: 62mm; height: 62mm; }
  .badge, .progress-fill, .brand-mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* --- Version 2 : espaces concierge, demandes, urgences --- */
.grid-2.even { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2.even { grid-template-columns: 1fr 1fr; } }
.card.narrow-lg { max-width: 760px; }
.row > .col-sm { flex: 0 0 130px; }
.center { text-align: center; }
.input-sm { padding: 5px 8px !important; font-size: .85rem !important; width: 140px !important; display: inline-block !important; }
.cancel-form { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.row-new td { background: #f6fafe; }
.alert-urgent { background: #fff4f4; border: 1px solid #f6c9cc; border-left: 4px solid var(--red); color: var(--ink); }
.alert-urgent a { font-weight: 600; color: var(--red); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow); min-height: 96px; }
.tile:hover { border-color: var(--blue); text-decoration: none; }
.tile-icon { font-size: 1.6rem; line-height: 1; }
.tile-label { font-weight: 500; font-size: .95rem; }
.tile-urgent { border-color: #f6c9cc; background: #fff8f8; }
.periods { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.period { display: inline-flex; flex-direction: column; align-items: center; min-width: 46px; padding: 3px 6px; border-radius: 6px; font-size: .72rem; line-height: 1.2; border: 1px solid transparent; }
.period-label { opacity: .8; }
.period-val { font-weight: 600; font-size: .85rem; }
.period-ok { background: var(--ok-bg); color: var(--ok); }
.period-ko { background: var(--ko-bg); color: var(--ko); }
.period-warn { background: var(--warn-bg); color: var(--warn); }
.period-info { background: var(--info-bg); color: var(--info); }
.period-neutral { background: var(--neutral-bg); color: var(--neutral); }
.kind-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 6px 0 4px; }
@media (min-width: 760px) { .kind-grid { grid-template-columns: 1fr 1fr; } }
.kind-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fbfcfd; }
.kind-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.req-list li:last-child { border-bottom: 0; }
.req-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.doc-list { list-style: none; padding: 0; margin: 10px 0; }
.doc-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { display: block; width: 120px; height: 120px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb span { display: grid; place-items: center; height: 100%; padding: 8px; font-size: .8rem; text-align: center; }
.refused-block { text-align: center; padding: 18px 0 6px; }
.refused-block .cross { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--red); color: #fff; font-size: 2.2rem; display: grid; place-items: center; }
.freq-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.freq-row .freq-label { width: 90px; font-weight: 500; }
.freq-row input { width: 80px !important; }
.freq-row select { width: auto !important; }
.contractor-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .contractor-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .contractor-grid { grid-template-columns: 1fr 1fr 1fr; } }
.contractor-card { margin-bottom: 0; }
.contractor { padding: 9px 0; border-top: 1px solid var(--line); }
.contractor:first-of-type { border-top: 0; }
.c-phones { margin: 3px 0; }
.tel { font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.c-actions { display: flex; gap: 12px; margin-top: 4px; font-size: .85rem; }
.prefs { margin-bottom: 22px; }
h3 { font-size: 1rem; margin: 16px 0 8px; }
.qp-logo { width: 78%; max-width: 280px; height: auto; margin-bottom: 4px; }
elevenlabs-convai { z-index: 50; }
@media print { elevenlabs-convai { display: none !important; } .qp-logo { width: 60mm; } }
.bcards { display: grid; gap: 10px; }
@media (min-width: 760px) { .bcards { grid-template-columns: 1fr 1fr; } }
[hidden] { display: none !important; }

/* --- Version 3 --- */
input[type=date], input[type=time], input[type=month] { min-height: 44px; -webkit-appearance: none; appearance: none; }
input[type=file] { display: block; margin-top: 8px; padding: 10px; border: 1px dashed #cfd6dd; border-radius: 8px; width: 100%; background: #fbfcfd; font: inherit; font-size: .9rem; }
.form fieldset { gap: 14px; }
.form .row { row-gap: 14px; }
.form > .alert { margin-bottom: 0; }
.alert p { margin: 0 0 .35em; } .alert p:last-child { margin: 0; }
.login-intro { list-style: none; padding: 18px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line, #e5e7eb); display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.login-intro li { padding-left: 14px; border-left: 3px solid var(--red); line-height: 1.4; }
.forgot { margin-top: 18px; }
.metric-link { color: var(--ink); text-decoration: none !important; transition: border-color .15s; }
.metric-link:hover { border-color: var(--blue); }
.tiles-compact { grid-template-columns: repeat(2, 1fr) !important; margin-bottom: 8px; }
.tiles-compact .tile { min-height: 74px; padding: 12px; }
.vac-box { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 8px; background: var(--ok-bg); margin-bottom: 16px; }
.vac-box strong { color: var(--ok); }
.form .vac-box { margin-bottom: 0; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.req-list details > summary::after { content: "Détail ▾"; display: inline-block; margin-top: 4px; font-size: .8rem; color: var(--blue); }
.req-list details[open] > summary::after { content: "Masquer ▴"; }
.details-body { margin-top: 12px; padding: 12px 14px; background: var(--bg); border-radius: 8px; }
.details-body .kv { margin-bottom: 10px; }
.details-body .thumbs { margin-top: 10px; }
.check-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.row > .col-md { flex: 0 0 170px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.add-block { margin-top: 12px; }
.add-block > summary { margin-bottom: 12px; }
.add-block[open] > summary { margin-bottom: 14px; }
.contractor-mini li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.priority { border-left: 4px solid var(--red); }
.priority h3:first-of-type { margin-top: 4px; }
.concierge-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.concierge-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.concierge-card h3 { margin-top: 20px; }
h4 { font-size: .95rem; margin: 14px 0 6px; color: var(--ink-2); }
.maplink { white-space: nowrap; }
.doc-actions { display: inline-flex; gap: 12px; margin-left: 8px; font-size: .85rem; }
.doc-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 9px 0; }
.qr-regie { border-top-color: var(--blue); }
.qr-regie .qp-title { color: var(--red); }
.thumbs { margin-top: 6px; }
.card > h3:first-child { margin-top: 0; }
.footer-in span:last-child { text-align: right; }
@media (max-width: 640px) { .footer-in span:last-child { text-align: left; } .concierge-contact { align-items: flex-start; } }
@media print { .qr-regie { border-top-color: var(--blue) !important; } }

/* Impression des affiches QR : deux affiches par A4 sans débordement ni page blanche (v3.0.1) */
@media print {
  .page-qr .container, .page-qr main { padding: 0 !important; margin: 0 !important; }
  .qr-sheet { display: block; gap: 0; }
  .qr-poster { box-sizing: border-box; height: 130mm; width: 100%; margin: 0 0 9mm; padding: 7mm 10mm 6mm; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    border: 1px dashed #999; border-top: 8px solid var(--red); border-radius: 3mm; }
  .qr-poster:nth-child(2n) { margin-bottom: 0; break-after: page; page-break-after: always; }
  .qr-poster:last-child { margin-bottom: 0; break-after: auto; page-break-after: auto; }
  .qr-poster .qp-logo { width: 48mm; max-width: none; margin: 0; }
  .qr-poster .qp-title { font-size: 20pt; margin: 1mm 0 0; line-height: 1.1; }
  .qr-poster .qp-code { width: 58mm; height: 58mm; flex: 0 0 auto; }
  .qr-poster .qp-name { font-size: 13pt; margin: 0; line-height: 1.2; }
  .qr-poster .qp-addr { font-size: 10pt; margin: 0; }
  .qr-poster .qp-help { font-size: 9pt; margin: 0; line-height: 1.35; }
  .qr-poster .qp-contact { font-size: 8pt; margin: 0; }
}
.concierge-note { margin-top: 16px; border-left: 4px solid var(--red); font-size: .95rem; }
.card.narrow form + h2, .card.narrow .form + h2 { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
