:root {
  --marine: #0F2F47; --bleu: #135E96; --bleu-h: #0D4670; --laiton: #F2C14E; --laiton-f: #C08A12;
  --fond: #F3F6F8; --surface: #FFFFFF; --bord: #D8E0E6; --bord-2: #C9D5DE; --ligne: #E9EEF2;
  --texte: #0F1E2A; --texte-2: #4A5D6C; --sel: #EDF4FA; --hover: #F4F8FB; --danger: #B23A2B;
  --champ: #FFFFFF; --lecture: #F7F9FA; --kpi4: #0F2F47;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bleu: #5AA5DB; --bleu-h: #7DB9E4; --fond: #0E1A24; --surface: #15232F; --bord: #2A3B49; --bord-2: #34495A;
    --ligne: #223240; --texte: #E6EDF2; --texte-2: #A3B5C3; --sel: #1B3347; --hover: #1A2B39; --danger: #F08A7C;
    --champ: #102029; --lecture: #192A37; --kpi4: #B9CCDB;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bleu: #5AA5DB; --bleu-h: #7DB9E4; --fond: #0E1A24; --surface: #15232F; --bord: #2A3B49; --bord-2: #34495A;
  --ligne: #223240; --texte: #E6EDF2; --texte-2: #A3B5C3; --sel: #1B3347; --hover: #1A2B39; --danger: #F08A7C;
  --champ: #102029; --lecture: #192A37; --kpi4: #B9CCDB;
  color-scheme: dark;
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 15px/1.5 "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: var(--bleu); text-decoration: none; }
a:hover { color: var(--bleu-h); }
:focus-visible { outline: 3px solid var(--laiton-f); outline-offset: 2px; }
img { max-width: 100%; }

/* En-tête blanc avec logo (charte) */
.top { background: #FFFFFF; border-bottom: 1px solid #D8E0E6; color: #0F1E2A; }
.top-in { max-width: 1360px; margin: 0 auto; padding: 10px clamp(16px, 3vw, 32px); display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 14px; align-items: center; color: inherit; }
.brand:hover { color: inherit; }
.logo { height: 48px; width: auto; display: block; }
.sep { width: 1px; height: 36px; background: #D8E0E6; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt strong { font-size: 17px; color: #1F3D6B; }
.brand-txt span { font-size: 13px; color: #4A5D6C; }
.who { display: flex; gap: 10px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #0F2F47; color: #F2C14E; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.who-txt { display: flex; flex-direction: column; line-height: 1.25; }
.who-txt span:first-child { font-weight: 600; font-size: 14px; }
.who-txt span:last-child { font-size: 12px; color: #4A5D6C; }
.top .btn-2 { background: #FFFFFF; color: #0F1E2A; border-color: #C9D5DE; }
@media (max-width: 620px) { .who-txt, .sep, .brand-txt { display: none; } .logo { height: 40px; } .top-in { flex-wrap: nowrap; } }

.demo .btn.btn-2 { margin-left: 10px; min-height: 36px; background: #FFFFFF; color: #4A3300; border-color: #E0C27A; }
.demo { background: #FBEFD9; color: #4A3300; border-bottom: 1px solid #E8CF94; padding: 10px clamp(16px, 3vw, 32px); font-size: 14px; text-align: center; }

main { max-width: 1360px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 32px) 56px; outline: none; }
.loading { color: var(--texte-2); padding: 40px 0; text-align: center; }

/* Boutons : cibles de 44 px minimum */
.btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; justify-content: center; cursor: pointer; text-align: center; }
.btn-1 { background: #135E96; color: #FFFFFF; }
.btn-1:hover { background: #0D4670; color: #FFFFFF; }
.btn-2 { background: var(--surface); color: var(--texte); border-color: var(--bord-2); }
.btn-2:hover { background: var(--hover); color: var(--texte); }
.btn-sm { min-height: 40px; padding: 0 12px; font-weight: 500; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* Titre de page */
.crumbs { font-size: 14px; color: var(--texte-2); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs strong { color: var(--texte); }
.page-head { margin: 10px 0 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.page-head h1 { margin: 0; font-size: 28px; line-height: 1.2; color: var(--texte); }
.page-head p { margin: 4px 0 0; color: var(--texte-2); max-width: 70ch; }

/* Indicateurs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.kpi .bar { width: 10px; height: 40px; border-radius: 5px; flex: none; }
.kpi b { display: block; font-size: 26px; line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--texte-2); }

/* Liste + fiche */
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.panel { background: var(--surface); border: 1px solid var(--bord); border-radius: 16px; overflow: hidden; }
.list { flex: 999 1 620px; min-width: 0; }
.filters { padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-bottom: 1px solid var(--ligne); }
.search { flex: 1 1 220px; display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--bord-2); border-radius: 12px; background: var(--champ); }
.search input { flex: 1; min-width: 0; border: none; outline: none; font: inherit; background: transparent; color: var(--texte); }
.search:focus-within { outline: 3px solid var(--laiton-f); outline-offset: 2px; }
.chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 20px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--bord-2); background: var(--surface); color: var(--texte); }
.chip:hover { border-color: var(--bleu); }
.chip[aria-pressed="true"] { background: #0F2F47; border-color: #0F2F47; color: #FFFFFF; }
.chip small { opacity: .75; font-size: 12px; margin-left: 4px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { background: var(--lecture); text-align: left; font-size: 13px; font-weight: 700; color: var(--texte-2); padding: 10px 12px; border-bottom: 1px solid var(--bord); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--ligne); font-size: 14px; vertical-align: middle; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--hover); }
tbody tr.on td { background: var(--sel); }
tbody tr.on td:first-child { box-shadow: inset 4px 0 0 var(--bleu); }
.num { border: none; background: none; padding: 6px 0; min-height: 36px; font: inherit; font-weight: 700; color: var(--bleu); cursor: pointer; white-space: nowrap; }
.sub { font-size: 12px; color: var(--texte-2); }
.nowrap { white-space: nowrap; }
.empty { padding: 32px 20px; text-align: center; color: var(--texte-2); }
.empty .btn { margin-top: 12px; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.prio { display: inline-block; min-width: 32px; text-align: center; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.p-P1 { background: #C0392B; color: #FFFFFF; } .p-P2 { background: #A85A12; color: #FFFFFF; }
.p-P3 { background: #F2C14E; color: #3A2A00; } .p-P4 { background: #E3E9EE; color: #3E4F5C; }
.s-Nouveau { background: #E3EEF7; color: #135E96; } .s-Assigné { background: #ECE7F7; color: #5B3FA6; }
.s-En-cours { background: #DFF1E6; color: #1E6B3F; } .s-En-attente { background: #FBEFD9; color: #8A5A00; }
.s-Résolu, .s-Fermé { background: #E3E9EE; color: #3E4F5C; }
.sla-ok { color: #1E6B3F; } .sla-risk, .sla-late { color: var(--danger); font-weight: 700; } .sla-pause { color: #8A5A00; } .sla-done { color: var(--texte-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sla-ok { color: #7FCB9C; } :root:not([data-theme="light"]) .sla-pause { color: #E6B65C; } }
.unassigned { color: var(--danger); font-weight: 600; }

/* Fiche de l'incident */
.fiche { flex: 1 1 380px; min-width: 300px; max-width: 100%; }
.fiche-head { padding: 16px 18px; background: #0F2F47; color: #FFFFFF; }
.fiche-head .ids { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fiche-head .ids strong { color: #F2C14E; }
.fiche-head h2 { font-size: 18px; margin: 6px 0 2px; line-height: 1.3; }
.fiche-head p { margin: 0; font-size: 13px; color: #B9CCDB; }
.actions { padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--ligne); }
.form-mini { padding: 14px 18px; border-bottom: 1px solid var(--ligne); background: var(--lecture); display: flex; flex-direction: column; gap: 10px; }
.form-mini .row { display: flex; flex-wrap: wrap; gap: 8px; }
.fiche-body { padding: 4px 18px 18px; }
.calc { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--lecture); font-size: 13px; color: var(--texte-2); }
.calc strong { color: var(--texte); }
.fiche-body h3 { margin: 18px 0 6px; font-size: 13px; font-weight: 700; color: var(--texte-2); }
dl.kv { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 12px; font-size: 14px; }
dl.kv dt { color: var(--texte-2); }
dl.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
ol.log { margin: 0; padding: 0 0 0 14px; list-style: none; display: flex; flex-direction: column; gap: 10px; border-left: 2px solid var(--bord); }
ol.log li { font-size: 14px; }
ol.log .meta { font-size: 12px; color: var(--texte-2); }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.req { color: var(--danger); }
.fld { min-height: 46px; padding: 10px 12px; border: 1px solid var(--bord-2); border-radius: 12px; font: inherit; font-size: 15px; background: var(--champ); color: var(--texte); width: 100%; }
textarea.fld { min-height: 110px; resize: vertical; }
.fld[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13px; font-weight: 600; }
.hint { color: var(--texte-2); font-size: 13px; }
.form-card { max-width: 860px; }
.form-card .inner { padding: 24px clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 16px; }
fieldset.choices { margin: 0; padding: 0; border: none; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
fieldset.choices legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.choice { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 8px 14px; border: 1px solid var(--bord-2); border-radius: 12px; cursor: pointer; background: var(--champ); }
.choice:hover { border-color: var(--bleu); }
.choice input { width: 20px; height: 20px; accent-color: #135E96; flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--bleu); background: var(--sel); }
.preview { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--lecture); border: 1px solid var(--bord); }
.preview p { margin: 0; font-size: 14px; color: var(--texte-2); }
.preview p strong { color: var(--texte); }
.form-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 16px clamp(18px, 3vw, 28px); border-top: 1px solid var(--ligne); background: var(--lecture); }

.done { max-width: 640px; margin: 24px auto; padding: 28px clamp(18px, 3vw, 32px); text-align: left; }
.done h1 { margin: 0 0 8px; font-size: 24px; }
.done .big { font-size: 34px; font-weight: 700; color: var(--bleu); margin: 4px 0 10px; }
.done p { color: var(--texte-2); margin: 0 0 10px; }
.done .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.notice { max-width: 640px; margin: 32px auto; padding: 24px clamp(18px, 3vw, 28px); }
.notice h1 { margin: 0 0 8px; font-size: 22px; }
.notice p { color: var(--texte-2); margin: 0 0 14px; }
.notice .err-box { padding: 12px 14px; border-radius: 10px; background: #FBE9E6; color: #7A2015; font-size: 14px; margin-bottom: 14px; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: calc(100% - 32px); background: #0F2F47; color: #FFFFFF; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px rgba(15, 47, 71, .25); opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }
.toast.bad { background: #7A2015; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

td.who-cell { min-width: 120px; }
/* Sur téléphone : chaque incident devient une carte */
@media (max-width: 640px) {
  .list table, .list tbody, .list tr, .list td { display: block; }
  .list thead { display: none; }
  .list tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--ligne); }
  .list tbody tr.on { background: var(--sel); box-shadow: inset 4px 0 0 var(--bleu); }
  .list tbody tr.on td, .list tbody tr:hover td { background: transparent; }
  .list tbody tr.on td:first-child { box-shadow: none; }
  .list td { border: none; padding: 0; min-width: 0 !important; }
  .list td:nth-child(2) { flex-basis: 100%; order: -1; }
  .list .num { min-height: 32px; padding: 0; }
  .list td.hide-m { display: none; }
}

/* Choix du thème : Automatique, Clair, Sombre */
.hdr-right { display: flex; gap: 10px; align-items: center; }
.theme-wrap { position: relative; }
.theme-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 340px; max-width: calc(100vw - 32px); background: var(--surface); color: var(--texte); border: 1px solid var(--bord); border-radius: 16px; box-shadow: 0 12px 32px rgba(15, 47, 71, .18); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.theme-head { padding: 2px 4px 4px; }
.theme-head strong { display: block; font-size: 16px; }
.theme-head span { font-size: 13px; color: var(--texte-2); }
#theme-list { display: flex; flex-direction: column; gap: 6px; }
.theme-opt { min-height: 64px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--bord); background: var(--surface); color: var(--texte); font: inherit; display: flex; gap: 12px; align-items: center; text-align: left; cursor: pointer; transition: background-color .15s, border-color .15s; }
.theme-opt:hover { background: var(--hover); border-color: var(--bleu); }
.theme-opt[aria-checked="true"] { border: 2px solid var(--bleu); }
.theme-opt .pv { flex: none; width: 64px; height: 44px; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #C9D5DE; }
.theme-opt .pv i { height: 12px; background: #FFFFFF; border-bottom: 1px solid #D8E0E6; }
.theme-opt .pv b { flex: 1; display: flex; gap: 4px; align-items: center; padding: 0 6px; }
.theme-opt .pv b span { width: 14px; height: 14px; border-radius: 4px; }
.theme-opt .pv b em { flex: 1; height: 6px; border-radius: 3px; }
.theme-opt .txt { flex: 1; min-width: 0; }
.theme-opt .txt strong { display: block; font-size: 15px; }
.theme-opt .txt small { display: block; font-size: 13px; color: var(--texte-2); }
.theme-opt .ok { flex: none; color: var(--bleu); visibility: hidden; }
.theme-opt[aria-checked="true"] .ok { visibility: visible; }
body { transition: background-color .2s, color .2s; }
@media (prefers-reduced-motion: reduce) { body, .theme-opt { transition: none; } }
@media (max-width: 620px) { .theme-wrap .btn { padding: 0 10px; } }
:root[data-theme="dark"] .sla-ok { color: #7FCB9C; }
:root[data-theme="dark"] .sla-pause { color: #E6B65C; }
@media (max-width: 620px) { .theme-panel { position: fixed; left: 16px; right: 16px; top: calc(70px + env(safe-area-inset-top, 0px)); width: auto; max-width: none; } }

/* ---------- En-tête : raccourcis, menus et profil ---------- */
.hdr-nav { display: flex; gap: 8px; align-items: center; }
.hdr-link { color: #1F3D6B; font-size: 14px; font-weight: 600; padding: 0 6px; min-height: 40px; display: inline-flex; align-items: center; }
.hdr-link:hover { color: #0D4670; text-decoration: underline; }
.top .hdr-btn { background: #FFFFFF; color: #0F1E2A; border-color: #C9D5DE; }
.top .hdr-btn:hover { background: #F4F8FB; }
.pop-wrap { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 320px; max-width: calc(100vw - 32px); background: var(--surface); color: var(--texte); border: 1px solid var(--bord); border-radius: 16px; box-shadow: 0 12px 32px rgba(15, 47, 71, .18); padding: 14px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.pop strong { font-size: 16px; }
.pop-empty { margin: 0; padding: 12px; border-radius: 12px; background: var(--lecture); border: 1px dashed var(--bord-2); font-size: 14px; color: var(--texte-2); }
.pop-empty b { color: var(--texte); }
.prof-id { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--texte-2); padding-bottom: 8px; border-bottom: 1px solid var(--ligne); }
.prof-id strong { color: var(--texte); font-size: 16px; }
.prof-id b { color: var(--texte); }
.pop-link { min-height: 40px; display: flex; align-items: center; padding: 0 10px; border-radius: 10px; color: var(--texte); font-weight: 600; font-size: 14px; }
.pop-link:hover { background: var(--hover); color: var(--texte); }
.avatar-btn { border: none; padding: 0; background: none; border-radius: 50%; cursor: pointer; display: block; }
.avatar-btn .avatar { width: 44px; height: 44px; }
.avatar-btn:hover .avatar { background: #1B4566; }
@media (max-width: 900px) { .hdr-btn .lbl { display: none; } .hdr-btn { padding: 0 10px; } .hdr-link { font-size: 13px; } }
@media (max-width: 620px) {
  .top-in { flex-wrap: wrap; }
  .hdr-right { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .hdr-link { display: none; }
  .pop { position: fixed; left: 16px; right: 16px; top: calc(70px + env(safe-area-inset-top, 0px)); width: auto; max-width: none; }
}

/* ---------- Accueil ---------- */
.hero { background: #0F2F47; color: #FFFFFF; border-radius: 18px; padding: clamp(18px, 3vw, 28px); margin: 6px 0 18px; }
.hero h1 { margin: 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; }
.hero p { margin: 6px 0 14px; color: #DCE7F0; }
.hero-search { display: flex; gap: 10px; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 14px; background: var(--surface); color: var(--texte); border: 3px solid #F2C14E; }
.hero-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--texte); }
.hero-search:focus-within { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.notice-dept { padding: 12px 16px; border-radius: 12px; background: #FBEFD9; border: 1px solid #E8CF94; color: #4A3300; font-size: 14px; margin: 0 0 16px; }
.btn-plombier { width: 100%; min-height: 80px; padding: 0 24px; border-radius: 16px; background: #F2C14E; color: #3A2A00; font-size: 22px; font-weight: 700; display: flex; gap: 14px; align-items: center; justify-content: center; margin-bottom: 18px; transition: background-color .15s; }
.btn-plombier:hover { background: #E8B43A; color: #3A2A00; }
.sec-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.sec { margin-bottom: 12px; }
.sec-head { width: 100%; min-height: 60px; padding: 10px 18px; border: none; background: transparent; color: var(--texte); font: inherit; display: flex; gap: 12px; align-items: center; text-align: left; cursor: pointer; transition: background-color .15s; }
.sec-head:hover { background: var(--hover); }
.sec-head > span:nth-child(2) { flex: 1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sec-head strong { font-size: 18px; }
.sec-head .chev { color: var(--bleu); flex: none; transition: transform .15s; }
.sec-open .sec-head .chev { transform: rotate(90deg); }
.sec-open .sec-head { background: var(--lecture); border-bottom: 1px solid var(--ligne); }
.sec-adm { padding: 2px 8px; border-radius: 8px; background: #0F2F47; color: #FFFFFF; font-size: 12px; font-weight: 600; }
.sec-n { min-width: 28px; height: 28px; border-radius: 14px; background: var(--lecture); border: 1px solid var(--bord); font-size: 13px; font-weight: 700; color: var(--texte-2); display: flex; align-items: center; justify-content: center; }
.tiles { padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tiles-page { padding: 0; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--bord); border-radius: 16px; padding: 18px; color: var(--texte); display: flex; flex-direction: column; gap: 12px; min-height: 150px; transition: border-color .15s, background-color .15s; }
.tile:hover { border-color: var(--bleu); background: var(--hover); color: var(--texte); }
.tile-c { min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
.t-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.t-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.ic-dark { background: #0F2F47; color: #FFFFFF; }
.ic-soft { background: #E3EEF7; color: #135E96; }
.ic-warm { background: #FBEFD9; color: #8A5A00; }
:root[data-theme="dark"] .ic-soft { background: #1B3347; color: #7DB9E4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ic-soft { background: #1B3347; color: #7DB9E4; } }
.t-badge { padding: 3px 9px; border-radius: 8px; border: 1px solid var(--bord-2); background: var(--lecture); color: var(--texte-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.t-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-txt strong { font-size: 16px; }
.t-txt span { font-size: 14px; color: var(--texte-2); }
.t-txt em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--bleu); margin-top: 4px; }
.t-soon { display: inline-block; align-self: flex-start; margin-top: 6px; padding: 2px 8px; border-radius: 8px; background: #E3E9EE; color: #3E4F5C !important; font-size: 12px !important; font-weight: 600; }
@media (max-width: 560px) { .tiles-2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tile, .sec-head, .sec-head .chev, .btn-plombier { transition: none; } }
