/* SELACV — Objets trouvés, registre commun Sécurité / Logistique — V1.0 (18/11/2026)
   Même feuille dans les deux applications ; seule la couleur d'accent change (--ot-accent). */
.ot {
  --ot-accent: #157885; --ot-accent-ink: #fff; --ot-accent-soft: #e6f2f3;
  --ot-paper: #fbfaf8; --ot-card: #fff; --ot-ink: #2b2622; --ot-muted: #7b7068; --ot-line: #e7e0d9; --ot-line-strong: #d6ccc2;
  --ot-tag: #f6efe2; --ot-tag-line: #dccfb8;
  --ot-warn: #9a5b00; --ot-warn-bg: #fff3dc; --ot-good: #2f7d4f; --ot-good-bg: #e7f4ea; --ot-alert: #b42318; --ot-alert-bg: #fdecea; --ot-blue: #2f63a8; --ot-blue-bg: #e9f0fb;
  --ot-radius: 14px;
  color: var(--ot-ink); font-size: 14px; line-height: 1.45;
}
.ot[data-ot-app="Sécurité"] { --ot-accent: #b51131; --ot-accent-soft: #fbe9ed; }
.ot[data-ot-app="Logistique"] { --ot-accent: #157885; --ot-accent-soft: #e4f1f2; }
.ot *, .ot *::before, .ot *::after { box-sizing: border-box; }
.ot [hidden] { display: none !important; }
.ot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ot button { font: inherit; color: inherit; cursor: pointer; }
.ot button:focus-visible, .ot input:focus-visible, .ot select:focus-visible, .ot textarea:focus-visible { outline: 2px solid var(--ot-accent); outline-offset: 2px; }

/* En-tête */
.ot .ot-hero { background: none; border: 0; box-shadow: none; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; padding: 4px 2px 18px; }
.ot .ot-hero h2.ot-title { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; color: var(--ot-ink); background: none; -webkit-text-fill-color: currentColor; }
.ot .ot-title { color: var(--ot-ink); }
.ot-hero-text p { margin: 6px 0 0; max-width: 62ch; color: var(--ot-muted); }
.ot-sync { font-size: 12.5px; }
.ot-sync .is-ok { color: var(--ot-good); font-weight: 700; }
.ot-sync .is-error { color: var(--ot-alert); }
.ot-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ot-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border: 1px solid var(--ot-line-strong); border-radius: 10px; background: var(--ot-card); font-weight: 650; }
.ot-btn:hover { border-color: var(--ot-accent); color: var(--ot-accent); }
.ot-btn.ot-primary { background: var(--ot-accent); border-color: var(--ot-accent); color: var(--ot-accent-ink); }
.ot-btn.ot-primary:hover { filter: brightness(1.08); color: var(--ot-accent-ink); }
.ot-btn.ot-danger { color: var(--ot-alert); }
.ot-btn.ot-danger:hover { border-color: var(--ot-alert); background: var(--ot-alert-bg); }
.ot-btn.ot-icon-only { width: 40px; padding: 0; justify-content: center; }
.ot-btn:disabled { opacity: .55; cursor: wait; }
.ot-link { border: 0; background: none; color: var(--ot-accent); font-weight: 650; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }

/* Indicateurs */
.ot-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ot-kpi { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border: 1px solid var(--ot-line); border-radius: var(--ot-radius); background: var(--ot-card); }
.ot-kpi b { grid-row: 1 / 3; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 1.4ch; }
.ot-kpi span { font-weight: 700; }
.ot-kpi small { color: var(--ot-muted); font-size: 12px; }
.ot-kpi:hover { border-color: var(--ot-line-strong); }
.ot-kpi.is-on { border-color: var(--ot-accent); box-shadow: inset 0 0 0 1px var(--ot-accent); }
.ot-kpi.is-warn b { color: var(--ot-warn); }
.ot-kpi.is-good b { color: var(--ot-good); }
.ot-kpi.is-alert { background: var(--ot-alert-bg); border-color: #f3b8b1; }
.ot-kpi.is-alert b { color: var(--ot-alert); }

/* Catégories (filtre) */
.ot-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ot .ot-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--ot-line); border-radius: 999px; background: var(--ot-card); font-size: 13px; }
.ot-chip svg { width: 16px; height: 16px; color: var(--ot-muted); }
.ot-chip b { font-size: 12px; color: var(--ot-muted); font-variant-numeric: tabular-nums; }
.ot-chip:hover { border-color: var(--ot-line-strong); }
.ot .ot-chip.is-on, .ot .ot-chip.is-on:hover { background: var(--ot-ink); border-color: var(--ot-ink); color: var(--ot-paper); }
.ot-chip.is-on svg, .ot-chip.is-on b { color: inherit; }

/* Registre */
.ot-register { padding: 16px; border: 1px solid var(--ot-line); border-radius: calc(var(--ot-radius) + 4px); background: var(--ot-paper); }
.ot-toolbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.ot-toolbar label { display: grid; gap: 4px; font-size: 12px; font-weight: 650; color: var(--ot-muted); }
.ot .ot-toolbar select, .ot .ot-search input { height: 40px; border: 1px solid var(--ot-line-strong); border-radius: 10px; background: var(--ot-card); color: var(--ot-ink); font: inherit; font-size: 14px; padding: 0 10px; }
.ot-search { position: relative; flex: 1 1 300px; display: flex !important; align-items: center; }
.ot-search svg { position: absolute; left: 12px; color: var(--ot-muted); }
.ot .ot-search input { width: 100%; padding-left: 38px !important; }
.ot .ot-search svg { z-index: 1; pointer-events: none; }
.ot-count { margin: 12px 2px 10px; font-size: 12.5px; color: var(--ot-muted); }
.ot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; }

/* Étiquette : talon perforé à la couleur du campus, avec le pictogramme de la catégorie ; fiche à droite */
.ot-tag { --campus: var(--ot-accent); --campus-ink: #fff; --campus-soft: var(--ot-accent-soft);
  display: grid; grid-template-columns: 112px 1fr; padding: 0; border: 1px solid var(--ot-line); border-radius: 12px; background: var(--ot-card); text-align: left; overflow: hidden; transition: border-color .15s, transform .15s; }
.ot-tag:hover { border-color: var(--ot-line-strong); transform: translateY(-1px); }
.ot-tag-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px; background: var(--campus); color: var(--campus-ink); border-right: 2px dashed rgba(255,255,255,.55); }
.ot-hole { position: absolute; top: 10px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ot-paper); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.ot .ot-tag-stub svg.ot-stub-cat { width: 52px; height: 52px; margin-top: 8px; stroke-width: 1.5; }
.ot-tag-stub em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; opacity: .92; }
.ot-tag-body { display: grid; gap: 7px; padding: 13px 15px; min-width: 0; }
.ot-tag-head { display: flex; gap: 10px; align-items: flex-start; }
.ot-tag-head > span:first-child { flex: 1; min-width: 0; display: grid; }
.ot-tag-head b { font-size: 16px; line-height: 1.25; }
.ot-tag-head small { color: var(--ot-muted); font-size: 12.5px; }
.ot-tag-desc { color: var(--ot-ink); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ot-tag-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ot-muted); }
.ot-tag-meta span, .ot-due { display: inline-flex; gap: 5px; align-items: center; }
.ot-tag-meta .ot-when { color: var(--ot-ink); font-weight: 650; }
.ot-tag-meta svg, .ot-due svg { width: 14px; height: 14px; }
.ot-tag-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 7px; border-top: 1px solid var(--ot-line); font-size: 12.5px; }
.ot-due { color: var(--ot-muted); font-weight: 650; }
.ot-from { font-size: 11.5px; color: var(--ot-muted); }
.ot-tag.is-late .ot-due { color: var(--ot-warn); }
.ot-tag.is-alert { border-color: #f3b8b1; box-shadow: inset 0 0 0 1px #f3b8b1; }
.ot-tag.is-alert .ot-due { color: var(--ot-alert); }
.ot-tag.is-done { background: var(--ot-paper); }
.ot-tag.is-done .ot-tag-stub { filter: grayscale(.85); opacity: .6; }
.ot-state { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ot-state.s-deposit { background: var(--ot-blue-bg); color: var(--ot-blue); }
.ot-state.s-notified { background: var(--ot-warn-bg); color: var(--ot-warn); }
.ot-state.s-returned { background: var(--ot-good-bg); color: var(--ot-good); }
.ot-state.s-transferred, .ot-state.s-closed { background: var(--ot-line); color: var(--ot-muted); }
.ot-empty { grid-column: 1 / -1; display: grid; gap: 4px; justify-items: center; padding: 40px 16px; border: 1px dashed var(--ot-line-strong); border-radius: 12px; color: var(--ot-muted); text-align: center; }
.ot-empty b { color: var(--ot-ink); font-size: 15px; }
.ot-empty.is-error b { color: var(--ot-alert); }

/* Fenêtres — même construction que les fiches des autres sites (événement, ticket, main courante) :
   talon de date à la couleur du campus, en-tête teinté, bouton rond de fermeture, faits clés, deux colonnes, barre d'actions. */
.ot-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 20px 16px; background: #2a1d1599; backdrop-filter: blur(3px); }
.ot[data-ot-app="Sécurité"] .ot-modal { background: #2b0a1499; }
.ot-modal[hidden] { display: none; }
body.ot-modal-open { overflow: hidden; }
.ot-dialog { --campus: var(--ot-accent); --campus-ink: #fff; --campus-soft: var(--ot-accent-soft);
  width: min(1560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: 0 auto; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: var(--ot-card); color: var(--ot-ink); box-shadow: 0 34px 90px #3c281e55; }
@media (prefers-reduced-motion: no-preference) { .ot-modal:not([hidden]) .ot-dialog { animation: otOpen .22s ease-out; } @keyframes otOpen { from { opacity: 0; transform: translateY(10px) scale(.985); } } }
/* Couleurs des campus, comme dans les listes de chaque application */
.ot[data-ot-app="Logistique"] .ot-dialog.campus-citadelle, .ot[data-ot-app="Logistique"] .ot-tag.campus-citadelle { --campus: #e85262; --campus-soft: #fdeef0; }
.ot[data-ot-app="Logistique"] .ot-dialog.campus-cathedrale, .ot[data-ot-app="Logistique"] .ot-tag.campus-cathedrale { --campus: #e8bf50; --campus-ink: #3a2e00; --campus-soft: #fdf6e2; }
.ot[data-ot-app="Logistique"] .ot-dialog.campus-saint-charles, .ot[data-ot-app="Logistique"] .ot-tag.campus-saint-charles { --campus: #438fd8; --campus-soft: #eaf3fc; }
.ot[data-ot-app="Logistique"] .ot-dialog.campus-saint-leu, .ot[data-ot-app="Logistique"] .ot-tag.campus-saint-leu { --campus: #32c878; --campus-ink: #04220f; --campus-soft: #e9f9f0; }
.ot[data-ot-app="Logistique"] .ot-dialog.campus-teinturerie, .ot[data-ot-app="Logistique"] .ot-tag.campus-teinturerie { --campus: #916fd0; --campus-soft: #f2edfa; }
.ot[data-ot-app="Sécurité"] .ot-dialog.campus-citadelle, .ot[data-ot-app="Sécurité"] .ot-tag.campus-citadelle { --campus: #dc2626; --campus-soft: #fdeceb; }
.ot[data-ot-app="Sécurité"] .ot-dialog.campus-cathedrale, .ot[data-ot-app="Sécurité"] .ot-tag.campus-cathedrale { --campus: #eab308; --campus-ink: #3a2e00; --campus-soft: #fdf6dc; }
.ot[data-ot-app="Sécurité"] .ot-dialog.campus-saint-charles, .ot[data-ot-app="Sécurité"] .ot-tag.campus-saint-charles { --campus: #2563eb; --campus-soft: #eaf0fd; }
.ot[data-ot-app="Sécurité"] .ot-dialog.campus-saint-leu, .ot[data-ot-app="Sécurité"] .ot-tag.campus-saint-leu { --campus: #16a34a; --campus-soft: #e8f6ed; }
.ot[data-ot-app="Sécurité"] .ot-dialog.campus-teinturerie, .ot[data-ot-app="Sécurité"] .ot-tag.campus-teinturerie { --campus: #7c3aed; --campus-soft: #f1ebfd; }
.ot .ot-dialog-head { flex: none; display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--ot-line); border-radius: 0; background: var(--campus-soft); box-shadow: none; }
.ot-stub { display: flex; flex-direction: column; justify-content: center; min-width: 150px; padding: 20px 26px; background: var(--campus); color: var(--campus-ink); text-align: center; }
.ot-stub span { font-size: 13px; font-weight: 700; }
.ot-stub span:first-child::first-letter { text-transform: uppercase; }
.ot-stub strong { margin: 4px 0; font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.ot-stub-icon { align-items: center; gap: 8px; }
.ot-stub-icon svg { width: 40px; height: 40px; stroke-width: 1.6; }
.ot-head-text { align-self: center; min-width: 0; padding: 20px 26px; }
.ot-kind { margin: 0 0 6px; color: var(--ot-muted); font-size: 14px; font-weight: 700; }
.ot .ot-head-text h3.ot-title { margin: 0; color: var(--ot-ink) !important; font-size: clamp(22px, 2.4vw, 30px) !important; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ot-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ot-badges:empty { display: none; }
.ot-badge { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--ot-line); border-radius: 999px; background: #faf7f5; color: #5a4d43; font-size: 12px; font-weight: 800; white-space: nowrap; }
.ot-badge.is-amber { border-color: #f6e08f; background: #fffbea; color: #8a6400; }
.ot-badge.is-danger { border-color: #f3b4b4; background: #fff0f0; color: #b91c1c; }
.ot .ot-close { align-self: start; display: grid; place-items: center; width: 40px; height: 40px; margin: 16px 16px 0 0; padding: 0; border: 1px solid var(--ot-line); border-radius: 50%; background: #fff; color: var(--ot-ink); font-size: 16px; line-height: 1; box-shadow: none; }
.ot .ot-close:hover { background: #f8f0ed; }
.ot-dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 22px 28px 26px; }
.ot-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; border: 1px solid var(--ot-line); border-radius: 12px; }
.ot-fact { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 14px 18px; }
.ot-fact + .ot-fact { border-left: 1px solid var(--ot-line); }
.ot-fact > span { color: var(--ot-muted); font-size: 12px; font-weight: 700; }
.ot-fact strong { font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.ot-fact small { color: var(--ot-muted); font-size: 13px; }
.ot-fiche-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr); gap: 26px; align-items: start; }
.ot .ot-dialog-foot { flex: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 28px; border-top: 1px solid var(--ot-line); background: #faf7f5; }
.ot-dialog-foot > div { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ot .ot-dialog-foot .ot-btn { min-height: 0; padding: 10px 16px; border-color: var(--ot-line); border-radius: 12px; font-size: 14px; font-weight: 800; }
.ot .ot-dialog-foot .ot-btn.ot-primary { border-color: var(--ot-accent); }
.ot .ot-dialog-foot .ot-btn.ot-danger { border-color: #f3a5a5; background: #fff5f5; color: #b91c1c; }
.ot-msg { flex: 1 1 280px; margin: 0; color: var(--ot-alert); font-weight: 650; font-size: 13px; }
.ot-step { margin: 0 0 18px; padding: 0; border: 0; }
.ot-step legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 800; color: var(--ot-ink); }
.ot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.ot-grid + .ot-grid { margin-top: 10px; }
.ot-grid label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--ot-muted); }
.ot-grid .ot-wide { grid-column: 1 / -1; }
.ot-grid input, .ot-grid select, .ot-grid textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--ot-line-strong); border-radius: 10px; background: var(--ot-card); color: var(--ot-ink); font: inherit; font-size: 14px; }
.ot-grid textarea { resize: vertical; }
.ot .ot-grid input, .ot .ot-grid select, .ot .ot-grid textarea, .ot .ot-toolbar select, .ot .ot-search input { font-weight: 500; }
.ot input::placeholder, .ot textarea::placeholder { color: var(--ot-muted); opacity: .8; font-weight: 400; }
.ot-grid input:disabled, .ot-grid select:disabled, .ot-grid textarea:disabled { background: var(--ot-paper); }
.ot-check { display: flex !important; align-items: center; gap: 8px; color: var(--ot-ink) !important; font-weight: 600 !important; }
.ot-check input { width: 18px; min-height: 18px; accent-color: var(--ot-accent); }
.ot-exit { padding: 12px; border-radius: 12px; background: var(--ot-good-bg); }
.ot-exit[hidden] { display: none; }
.ot-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.ot-cat-tile { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border: 1px solid var(--ot-line); border-radius: 12px; background: var(--ot-card); font-size: 12.5px; font-weight: 650; text-align: center; line-height: 1.2; }
.ot-cat-tile svg { width: 26px; height: 26px; color: var(--ot-accent); }
.ot-cat-tile:hover { border-color: var(--ot-line-strong); background: var(--ot-paper); }
.ot .ot-cat-tile[aria-pressed="true"] { border-color: var(--ot-accent) !important; background: var(--ot-accent-soft) !important; background-image: none !important; color: var(--ot-ink) !important; box-shadow: inset 0 0 0 1px var(--ot-accent) !important; }
.ot .ot-cat-tile[aria-pressed="true"] svg { color: var(--ot-accent) !important; }
.ot .ot-cat-tile[aria-pressed="true"] span { color: var(--ot-ink) !important; -webkit-text-fill-color: currentColor; }
.ot-cat-tile[data-pick-cat="sensible"] svg { color: var(--ot-alert); }
.ot-types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ot-types[hidden] { display: none; }

/* Colonne de droite : consigne du type choisi et suivi */
.ot-form-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; position: sticky; top: 0; }
.ot-advice { padding: 18px 20px; border: 1px solid var(--ot-line); border-radius: 14px; background: var(--campus-soft); }
.ot-history { padding-top: 18px; border-top: 1px solid var(--ot-line); }
.ot-advice h4, .ot-history h4 { margin: 0; font-size: 15px; font-weight: 800; }
.ot-advice-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.ot-advice-head svg { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--ot-accent-soft); color: var(--ot-accent); }
.ot-advice-head small { color: var(--ot-muted); font-weight: 650; }
.ot-advice-head.is-alert svg { background: var(--ot-alert-bg); color: var(--ot-alert); }
.ot-advice dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.ot-advice dt { font-size: 11.5px; color: var(--ot-muted); font-weight: 650; }
.ot-advice dd { margin: 0; font-weight: 700; }
.ot-advice p { margin: 0 0 8px; }
.ot-advice ul { margin: 0; padding-left: 18px; color: var(--ot-ink); }
.ot-advice li + li { margin-top: 4px; }
.ot-muted { color: var(--ot-muted); }
.ot-history ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; max-height: 320px; overflow-y: auto; }
.ot-history li { display: grid; gap: 1px; padding-left: 12px; border-left: 2px solid var(--ot-line-strong); }
.ot-history time { font-size: 11.5px; color: var(--ot-muted); font-weight: 650; }
.ot-history small { color: var(--ot-muted); font-size: 11.5px; }

/* Consigne */
.ot-procedure { width: min(1400px, calc(100vw - 32px)); }
.ot-procedure .ot-proc-table { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ot-proc-body { display: block; }
.ot-procedure .ot-stub { background: var(--ot-accent); color: var(--ot-accent-ink); }
.ot-proc-body h4 { margin: 20px 0 10px; font-size: 15px; }
.ot-proc-lead { margin: 0; padding: 14px 16px; border-left: 4px solid var(--ot-accent); border-radius: 10px; background: var(--ot-accent-soft); }
.ot-proc-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ot-proc-main article { padding: 14px; border: 1px solid var(--ot-line); border-radius: 12px; }
.ot-proc-main strong, .ot-proc-table strong { display: block; }
.ot-proc-main small, .ot-proc-table small { display: block; color: var(--ot-muted); font-weight: 650; margin: 2px 0 6px; }
.ot-proc-main p, .ot-proc-table p { margin: 0; }
.ot-proc-checks { margin: 0; padding-left: 20px; }
.ot-proc-checks li + li { margin-top: 5px; }
.ot-proc-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ot-proc-table article { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--ot-line); border-radius: 12px; }
.ot-proc-table article.is-alert { background: var(--ot-alert-bg); border-color: #f3b8b1; }
.ot-proc-icon svg { width: 32px; height: 32px; padding: 6px; border-radius: 9px; background: var(--ot-accent-soft); color: var(--ot-accent); }
.ot-proc-table ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.ot-proc-table em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--ot-muted); }

@media (max-width: 900px) {
  .ot-fiche-grid, .ot-facts { grid-template-columns: 1fr; }
  .ot-fact + .ot-fact { border-left: 0; border-top: 1px solid var(--ot-line); }
  .ot-form-side { position: static; }
  .ot-proc-main, .ot-proc-table { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ot-modal { padding: 0; }
  .ot-dialog { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
  .ot .ot-dialog-head { grid-template-columns: 1fr auto; }
  .ot-stub { grid-column: 1 / -1; grid-row: 2; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; min-width: 0; padding: 10px 18px; text-align: left; }
  .ot-stub strong { margin: 0; font-size: 26px; }
  .ot-dialog-body { padding: 16px 18px 20px; }
  .ot .ot-dialog-foot { padding: 12px 18px; }
}
@media (max-width: 560px) {
  .ot-grid { grid-template-columns: 1fr; }
  .ot-list { grid-template-columns: 1fr; }
  .ot-tag { grid-template-columns: 84px 1fr; }
  .ot .ot-tag-stub svg.ot-stub-cat { width: 40px; height: 40px; }
  .ot-hero h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .ot-tag { transition: none; } .ot-tag:hover { transform: none; } }

/* Thème sombre (Sécurité : html[data-theme="dark"]) */
html[data-theme="dark"] .ot {
  --ot-paper: #1d1719; --ot-card: #261e21; --ot-ink: #f3e7ea; --ot-muted: #b7a5aa; --ot-line: #3d3135; --ot-line-strong: #54444a;
  --ot-tag: #33282b; --ot-tag-line: #5a4a4f; --ot-accent-soft: #3a2027;
  --ot-warn: #f0b35a; --ot-warn-bg: #3a2c17; --ot-good: #7fd19b; --ot-good-bg: #1d3326; --ot-alert: #ff8a80; --ot-alert-bg: #3d1f1d; --ot-blue: #9cc0f0; --ot-blue-bg: #1f2b3d;
}
html[data-theme="dark"] .ot[data-ot-app="Sécurité"] { --ot-accent: #f37c94; --ot-accent-ink: #21181a; }
html[data-theme="dark"] .ot .ot-dialog { --campus-soft: #2a171d; background: #1d1316; }
html[data-theme="dark"] .ot .ot-dialog-foot { background: #21151a; }
html[data-theme="dark"] .ot .ot-close { border-color: #5a3a43; background: #261a1e; color: var(--ot-ink); }
html[data-theme="dark"] .ot .ot-badge { background: #261a1e; border-color: #5a3a43; color: #e7d3d8; }
