/* EDB Tickets 1.1.0
 * .edbt-pub : formulaire public et page de suivi (clair, lisible sur téléphone).
 * .edbt-eq  : écrans de l'équipe, aspect Cockpit (panneau gris, inscriptions blanches, voyants, police B612). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.edbt-body { margin: 0; min-height: 100vh; }
.edbt-body img { max-width: 100%; height: auto; }
.edbt-body button, .edbt-body input, .edbt-body select, .edbt-body textarea { font: inherit; color: inherit; }
.edbt-piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* =========================== Public =========================== */
.edbt-pub {
    --navy: #0b2545; --ink: #1d2733; --muted: #5d6b7a; --line: #d9e0e7; --bg: #eef2f6; --card: #fff;
    --ok: #146c43; --err: #b42318; --amber: #b25e00; --focus: #2563eb;
    background: var(--bg); color: var(--ink);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.edbt-pub a { color: var(--navy); }
.edbt-entete { background: var(--navy); color: #fff; padding: 14px 16px; }
.edbt-marque { display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; color: #fff !important; text-decoration: none; }
.edbt-marque b { font-size: 18px; letter-spacing: .02em; }
.edbt-marque span { font-size: 14px; opacity: .85; }
.edbt-main { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; display: grid; gap: 16px; }
.edbt-carte { background: var(--card); border-radius: 10px; padding: 22px; box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 0 0 1px var(--line); min-width: 0; }
.edbt-pub h1 { font-size: 24px; line-height: 1.25; margin: 0 0 8px; color: var(--navy); }
.edbt-pub h2 { font-size: 19px; margin: 0 0 12px; color: var(--navy); }
.edbt-intro { margin: 0 0 18px; color: var(--muted); }
.edbt-form p { margin: 0 0 14px; }
.edbt-form label, .edbt-form legend { display: block; font-weight: 600; margin-bottom: 5px; }
.edbt-form input[type=text], .edbt-form input[type=email], .edbt-form select, .edbt-form textarea {
    width: 100%; padding: 11px 12px; border: 1px solid #b9c4cf; border-radius: 6px; background: #fff; font-size: 16px; min-height: 46px;
}
.edbt-form textarea { resize: vertical; min-height: 140px; }
.edbt-form input:focus-visible, .edbt-form select:focus-visible, .edbt-form textarea:focus-visible, .edbt-pub .edbt-btn:focus-visible, .edbt-pub a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.edbt-form input[type=file] { width: 100%; padding: 10px; border: 1px dashed #b9c4cf; border-radius: 6px; background: #f7f9fb; font-size: 15px; }
.edbt-form small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.edbt-pj-err { display: block; color: var(--err); font-size: 14px; margin-top: 4px; }
.edbt-req { color: var(--err); }
.edbt-fac { font-weight: 400; color: var(--muted); font-size: 14px; }
.edbt-bloc { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
.edbt-bloc > legend { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0; margin: 4px 0 10px; }
.edbt-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.edbt-urg { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.edbt-urg-l { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.edbt-urg-o { position: relative; margin: 0 !important; font-weight: 400 !important; cursor: pointer; }
.edbt-urg-o input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.edbt-urg-o span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 11px; border: 1px solid #b9c4cf; border-radius: 6px; border-left-width: 5px; background: #fff; }
.edbt-urg-o small { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.35; }
.edbt-urg-o.is-basse span { border-left-color: #8fa3b5; }
.edbt-urg-o.is-normale span { border-left-color: #2f7fd0; }
.edbt-urg-o.is-haute span { border-left-color: #e08a00; }
.edbt-urg-o.is-bloquante span { border-left-color: #c8102e; }
.edbt-urg-o input:checked + span { background: #eaf2fc; box-shadow: 0 0 0 2px var(--navy); border-color: var(--navy); }
.edbt-urg-o input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.edbt-legal { font-size: 13.5px; color: var(--muted); }
.edbt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 0 !important; }
.edbt-pub .edbt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 22px; border: 0; border-radius: 6px; background: var(--navy); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.edbt-pub .edbt-btn:hover { background: #13386b; }
.edbt-pub .edbt-btn[disabled] { opacity: .7; cursor: progress; }
.edbt-pub .edbt-btn-2 { background: #fff; color: var(--navy) !important; box-shadow: inset 0 0 0 2px var(--navy); }
.edbt-pub .edbt-btn-2:hover { background: #eaf2fc; }
.edbt-erreur, .edbt-ok, .edbt-attention { margin: 0 0 14px; padding: 12px 14px; border-radius: 6px; font-size: 15px; }
.edbt-erreur { background: #fdecea; color: #7a1a12; border-left: 4px solid var(--err); }
.edbt-ok { background: #e6f4ec; color: #0c4a2c; border-left: 4px solid var(--ok); }
.edbt-attention { background: #fff4e0; color: #6b3a00; border-left: 4px solid #e08a00; }
.edbt-muet { color: var(--muted); }
.edbt-pied { font-size: 13.5px; color: var(--muted); text-align: center; margin: 0; }
.edbt-ref { font-family: ui-monospace, "B612 Mono", SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .02em; }
.edbt-ref-l { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
.edbt-statut, .edbt-urgence, .edbt-cat { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.edbt-pub .edbt-statut { background: #e3e8ee; color: #2c3a48; }
.edbt-pub .edbt-statut.is-nouveau { background: #e0ecfb; color: #0f4c99; }
.edbt-pub .edbt-statut.is-en_cours { background: #e7e3fb; color: #4b2aa8; }
.edbt-pub .edbt-statut.is-attente { background: #fff0d6; color: #7a4300; }
.edbt-pub .edbt-statut.is-resolu { background: #dcf3e5; color: #0c5a33; }
.edbt-frise { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 16px 0; padding: 0; counter-reset: e; }
.edbt-frise li { position: relative; padding-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }
.edbt-frise li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: #dfe5eb; }
.edbt-frise li.is-fait::before { background: #7fb2e5; }
.edbt-frise li.is-ici::before { background: var(--navy); }
.edbt-frise li.is-ici { color: var(--ink); font-weight: 700; }
.edbt-frise li.is-attente::before { background: #e08a00; }
.edbt-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; margin: 0 0 14px; }
.edbt-meta div { min-width: 0; }
.edbt-meta dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.edbt-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.edbt-desc { overflow-wrap: anywhere; border-top: 1px solid var(--line); padding-top: 12px; }
.edbt-desc p { margin: 0 0 10px; }
.edbt-fil { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.edbt-msg { padding: 12px 14px; border-radius: 8px; min-width: 0; overflow-wrap: anywhere; }
.edbt-pub .edbt-msg.is-equipe { background: #eef4fb; border-left: 4px solid var(--navy); }
.edbt-pub .edbt-msg.is-demandeur { background: #f6f7f9; border-left: 4px solid #a9b6c3; margin-left: 24px; }
.edbt-msg-h { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.edbt-msg-h time { color: var(--muted); font-size: 13px; }
.edbt-msg-c p { margin: 0 0 8px; }
.edbt-msg-c p:last-child { margin-bottom: 0; }
.edbt-pj { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.edbt-pj a { display: flex; align-items: center; gap: 10px; max-width: 280px; padding: 6px 10px 6px 6px; border-radius: 6px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; }
.edbt-pj img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; background: #eee; flex: none; }
.edbt-pdf { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 4px; background: #c8102e; color: #fff; font: 700 13px system-ui, sans-serif; }
.edbt-pj-n { display: flex; flex-direction: column; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.edbt-pj-n small { color: var(--muted); font-size: 12.5px; }
.edbt-mes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.edbt-mes li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) {
    .edbt-carte { padding: 16px; }
    .edbt-pub h1 { font-size: 21px; }
    .edbt-2 { grid-template-columns: 1fr; }
    .edbt-urg-l { grid-template-columns: 1fr 1fr; }
    .edbt-pub .edbt-msg.is-demandeur { margin-left: 10px; }
    .edbt-actions .edbt-btn { width: 100%; }
}

/* =========================== Équipe (aspect Cockpit) =========================== */
.edbt-eq {
    --panel: #5b6670; --panel-lo: #4a545d; --edge: #3b444c; --glare: #2a3238; --well: #11161a;
    --placard: #eef1f2; --placard-dim: #c3cbd1; --amber: #f5a623; --cyan: #4fd1e8; --magenta: #e040fb; --vert: #3ecf6e; --rouge: #ff5a5a;
    background: #1d2328; color: var(--placard);
    font: 15px/1.5 'B612', system-ui, sans-serif;
}
.edbt-eq a { color: inherit; }
.edbt-cadre { width: min(1280px, calc(100vw - 32px)); margin: 16px auto 40px; border-radius: 10px; overflow: hidden;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px), var(--panel);
    box-shadow: inset 0 0 0 1px var(--edge), 0 10px 30px rgba(0,0,0,.35); }
.edbt-visiere { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 18px; background: linear-gradient(#323b42, var(--glare)); border-bottom: 2px solid #1d2328; }
.edbt-marque-eq { display: flex; align-items: baseline; gap: 10px; }
.edbt-marque-eq b { font-size: 18px; letter-spacing: .04em; }
.edbt-marque-eq span:not(.edbt-voyant) { font-size: 13px; color: var(--placard-dim); }
.edbt-voyant { width: 10px; height: 10px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 8px var(--vert); align-self: center; }
.edbt-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.edbt-nav a { padding: 8px 12px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 4px; text-decoration: none; color: var(--placard-dim); font-size: 14px; }
.edbt-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.edbt-nav a[aria-current] { background: #1d2328; color: #fff; box-shadow: inset 0 -3px 0 var(--magenta); }
.edbt-qui { font-size: 13px; color: var(--placard-dim); }
.edbt-eq-main { padding: 16px 18px 6px; display: grid; gap: 16px; min-width: 0; }
.edbt-panneau { background: var(--glare); border-radius: 8px; padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--edge); min-width: 0; }
.edbt-eq h1 { font-size: 22px; margin: 0 0 6px; line-height: 1.25; overflow-wrap: anywhere; }
.edbt-eq h2 { font-size: 15px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--placard-dim); }
.edbt-titre-l { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 10px; }
.edbt-note { color: var(--placard-dim); font-size: 14px; margin: 0; }
.edbt-eq .edbt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 4px; background: var(--placard); color: #1d2328 !important; font: 700 14px 'B612', sans-serif; text-decoration: none; cursor: pointer; }
.edbt-eq .edbt-btn:hover { background: #fff; }
.edbt-eq .edbt-btn-2 { background: transparent; color: var(--placard) !important; box-shadow: inset 0 0 0 1px #7b8892; }
.edbt-eq .edbt-btn-2:hover { background: rgba(255,255,255,.08); }
.edbt-eq .edbt-btn-danger { background: #b42318; color: #fff !important; }
.edbt-eq :focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.edbt-lien { color: var(--cyan) !important; }
.edbt-flash { margin: 0; padding: 10px 14px; border-radius: 4px; font-size: 14px; }
.edbt-flash.is-ok { background: #123b26; border-left: 4px solid #3ecf8e; }
.edbt-flash.is-err { background: #4a1616; border-left: 4px solid var(--rouge); }
.edbt-puces { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.edbt-puce { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 12px; border-radius: 18px; background: #1d2328; color: var(--placard-dim) !important; text-decoration: none; font-size: 13.5px; box-shadow: inset 0 0 0 1px var(--edge); }
.edbt-puce span { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: #3b444c; color: var(--placard); font: 700 12px 'B612 Mono', monospace; }
.edbt-puce:hover { color: #fff !important; }
.edbt-puce.is-on { background: var(--placard); color: #1d2328 !important; }
.edbt-puce.is-on span { background: #1d2328; color: var(--placard); }
.edbt-puce.is-alerte span { background: var(--amber); color: #1a1000; }
.edbt-filtres { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(5, minmax(120px, 1fr)); gap: 10px; align-items: end; padding: 12px; border-radius: 6px; background: rgba(0,0,0,.22); }
.edbt-filtres label span { display: block; font-size: 12px; color: var(--placard-dim); margin-bottom: 3px; }
.edbt-eq input[type=text], .edbt-eq input[type=search], .edbt-eq input[type=number], .edbt-eq input[type=date], .edbt-eq select, .edbt-eq textarea {
    width: 100%; min-height: 40px; padding: 7px 10px; border-radius: 4px; border: 1px solid #1d2328; background: var(--well); color: var(--placard); font: 14px 'B612', sans-serif;
}
.edbt-eq textarea { resize: vertical; line-height: 1.5; }
.edbt-eq input[type=file] { width: 100%; font-size: 13px; color: var(--placard-dim); }
.edbt-eq input[readonly] { color: var(--placard-dim); }
.edbt-f-b { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.edbt-compte { margin: 12px 0 8px; font-size: 13.5px; color: var(--placard-dim); }
.edbt-vide { padding: 18px; text-align: center; color: var(--placard-dim); background: rgba(0,0,0,.2); border-radius: 6px; margin: 0; }
.edbt-table-w { overflow-x: auto; border-radius: 6px; background: var(--well); box-shadow: inset 0 0 0 1px #1d2328; }
.edbt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.edbt-table th { text-align: left; font-weight: 700; font-size: 12.5px; color: var(--placard-dim); text-transform: uppercase; letter-spacing: .05em; padding: 0; border-bottom: 1px solid #2c343a; white-space: nowrap; }
.edbt-table th a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; text-decoration: none; }
.edbt-table th a:hover { color: #fff; background: rgba(255,255,255,.04); }
.edbt-table th[aria-sort=ascending], .edbt-table th[aria-sort=descending] { color: var(--cyan); }
.edbt-fleche { font-size: 11px; opacity: .55; }
.edbt-table th[aria-sort=ascending] .edbt-fleche, .edbt-table th[aria-sort=descending] .edbt-fleche { opacity: 1; }
.edbt-table td { padding: 10px 12px; border-bottom: 1px solid #1f262b; vertical-align: top; }
.edbt-t-cats th { padding: 10px 12px; }
.edbt-ligne { cursor: pointer; }
.edbt-ligne:hover td { background: rgba(79,209,232,.06); }
.edbt-ligne.is-resolu td, .edbt-ligne.is-ferme td { color: var(--placard-dim); }
.edbt-c-ref .edbt-ref { color: var(--magenta); white-space: nowrap; }
.edbt-c-titre a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.edbt-c-titre a:hover { text-decoration: underline; }
.edbt-c-titre small { display: block; color: var(--placard-dim); font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.edbt-a-repondre { display: inline-block; margin-top: 4px; font-style: normal; font-size: 12px; color: #1a1000; background: var(--amber); padding: 1px 7px; border-radius: 3px; }
.edbt-c-date { white-space: nowrap; font-size: 13px; color: var(--placard-dim); }
.edbt-eq .edbt-muet { color: var(--placard-dim); } /* 1.1.2 : limité à l'équipe (variables définies là seulement) */
.edbt-eq .edbt-ref { font-family: 'B612 Mono', monospace; }
.edbt-eq .edbt-statut { background: #3b444c; color: var(--placard); }
.edbt-eq .edbt-statut.is-nouveau { background: #1f5fa8; color: #fff; }
.edbt-eq .edbt-statut.is-en_cours { background: #6b3fd0; color: #fff; }
.edbt-eq .edbt-statut.is-attente { background: var(--amber); color: #1a1000; }
.edbt-eq .edbt-statut.is-resolu { background: #1f6f4a; color: #fff; }
.edbt-eq .edbt-statut.is-ferme { background: #3b444c; color: var(--placard-dim); }
.edbt-eq .edbt-urgence { background: transparent; box-shadow: inset 0 0 0 1px #6d7a84; color: var(--placard-dim); }
.edbt-eq .edbt-urgence.is-haute { box-shadow: inset 0 0 0 1px var(--amber); color: #ffd27a; }
.edbt-eq .edbt-urgence.is-bloquante { background: #b42318; box-shadow: none; color: #fff; }
.edbt-eq .edbt-cat { background: #1d2328; color: var(--placard-dim); font-weight: 400; }
.edbt-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 12px; font-size: 14px; }
.edbt-pages a { color: var(--cyan); }
.edbt-retour { margin: 0; font-size: 14px; }
.edbt-retour a { color: var(--cyan); }
.edbt-fiche { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.edbt-fiche-p, .edbt-fiche-a { display: grid; gap: 16px; min-width: 0; }
.edbt-eq .edbt-desc { border-top: 1px solid var(--edge); }
.edbt-eq .edbt-msg.is-equipe { background: #1f3346; border-left: 4px solid var(--cyan); }
.edbt-eq .edbt-msg.is-demandeur { background: #23292e; border-left: 4px solid #8a97a1; }
.edbt-eq .edbt-msg.is-interne { background: #3a3220; border-left: 4px solid var(--amber); }
.edbt-eq .edbt-msg-h time { color: var(--placard-dim); }
.edbt-tag-int, .edbt-tag-pub { font-size: 11px; padding: 1px 7px; border-radius: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.edbt-tag-int { background: var(--amber); color: #1a1000; }
.edbt-tag-pub { background: #1f5fa8; color: #fff; }
.edbt-eq .edbt-pj a { background: #1d2328; border-color: var(--edge); }
.edbt-eq .edbt-pj li.is-interne a { border-color: var(--amber); }
.edbt-eq .edbt-pj-n small { color: var(--placard-dim); }
.edbt-eq label { display: block; font-size: 12.5px; color: var(--placard-dim); margin-bottom: 4px; }
.edbt-eq p { margin: 0 0 12px; }
.edbt-eq small { display: block; font-size: 12px; color: var(--placard-dim); margin-top: 3px; }
.edbt-aide { font-size: 12.5px; color: var(--placard-dim); }
.edbt-type { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; }
.edbt-type legend { font-size: 12.5px; color: var(--placard-dim); padding: 0; margin-bottom: 6px; }
.edbt-type-o { position: relative; margin: 0 !important; cursor: pointer; }
.edbt-type-o input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.edbt-type-o span { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 5px; background: #1d2328; box-shadow: inset 0 0 0 1px var(--edge); color: var(--placard); height: 100%; }
.edbt-type-o span b { font-size: 14px; }
.edbt-type-o small { margin: 0; }
.edbt-type-o.is-pub input:checked + span { box-shadow: inset 0 0 0 2px var(--cyan); background: #1f3346; }
.edbt-type-o.is-int input:checked + span { box-shadow: inset 0 0 0 2px var(--amber); background: #3a3220; }
.edbt-type-o input:focus-visible + span { outline: 2px solid var(--magenta); outline-offset: 2px; }
.edbt-repondre-eq { border-top: 1px solid var(--edge); padding-top: 14px; }
.edbt-repondre-eq.is-interne textarea { border-color: var(--amber); }
.edbt-eq .edbt-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.edbt-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.edbt-dl { margin: 0 0 12px; display: grid; gap: 6px; }
.edbt-dl div { display: grid; grid-template-columns: 82px 1fr; gap: 8px; font-size: 14px; }
.edbt-dl dt { color: var(--placard-dim); }
.edbt-dl dd { margin: 0; overflow-wrap: anywhere; }
.edbt-copie { display: flex; gap: 6px; }
.edbt-copie input { flex: 1; min-width: 0; font-size: 12px !important; }
.edbt-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 360px; overflow-y: auto; font-size: 13px; }
.edbt-hist li { display: grid; gap: 1px; padding-left: 10px; border-left: 2px solid var(--edge); }
.edbt-hist time { font: 12px 'B612 Mono', monospace; color: var(--placard-dim); }
.edbt-hist small { margin: 0; }
.edbt-danger { box-shadow: inset 0 0 0 1px #6b2a2a; }
.edbt-danger form { margin: 0; }
.edbt-eq code { font: 12px 'B612 Mono', monospace; color: var(--placard-dim); overflow-wrap: anywhere; }
.edbt-t-cats input[type=text] { min-width: 160px; }
.edbt-t-cats .edbt-copie { min-width: 260px; }
.edbt-connexion form p { margin-bottom: 10px; }
.edbt-connexion input[type=submit] { padding: 9px 18px; border: 0; border-radius: 4px; background: var(--placard); color: #1d2328; font: 700 15px 'B612', sans-serif; cursor: pointer; }
@media (max-width: 1000px) {
    .edbt-fiche { grid-template-columns: 1fr; }
    .edbt-filtres { grid-template-columns: 1fr 1fr; }
    .edbt-f-q { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .edbt-cadre { width: 100%; margin: 0; border-radius: 0; }
    .edbt-visiere { padding: 10px 16px; }
    .edbt-nav { margin-left: 0; width: 100%; }
    .edbt-nav a { flex: 1 1 auto; justify-content: center; background: rgba(0,0,0,.18); }
    .edbt-qui { display: none; }
    .edbt-eq-main { padding: 12px 16px 6px; }
    .edbt-panneau { padding: 14px; }
    .edbt-filtres { grid-template-columns: 1fr; }
    .edbt-f-b .edbt-btn { flex: 1 1 auto; }
    .edbt-type, .edbt-eq .edbt-2, .edbt-3 { grid-template-columns: 1fr; }
    /* Liste : chaque ticket devient une carte. */
    .edbt-table-w { background: transparent; box-shadow: none; overflow: visible; }
    .edbt-table:not(.edbt-t-cats) thead { display: block; }
    .edbt-table:not(.edbt-t-cats) thead tr { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
    .edbt-table:not(.edbt-t-cats) th { border: 0; }
    .edbt-table:not(.edbt-t-cats) th a { padding: 6px 9px; border-radius: 4px; background: #1d2328; font-size: 11.5px; min-height: 34px; }
    .edbt-table tbody, .edbt-table tr, .edbt-table td { display: block; }
    .edbt-table tbody { display: grid; gap: 10px; }
    .edbt-ligne { display: grid !important; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 12px; border-radius: 6px; background: var(--well); box-shadow: inset 0 0 0 1px #2c343a; }
    .edbt-ligne td { padding: 0; border: 0; }
    .edbt-ligne td:not(.edbt-c-ref):not(.edbt-c-titre)::before { content: attr(data-l) " : "; color: var(--placard-dim); font-size: 12px; }
    .edbt-ligne .edbt-c-ref { grid-column: 1 / -1; }
    .edbt-ligne .edbt-c-titre { grid-column: 1 / -1; margin-bottom: 4px; }
    .edbt-ligne td { font-size: 13.5px; }
    .edbt-t-cats thead { display: none; }
    .edbt-t-cats tr { padding: 10px; margin-bottom: 8px; border-radius: 6px; background: var(--well); }
    .edbt-t-cats td { padding: 4px 0; border: 0; }
    .edbt-t-cats td::before { content: attr(data-l); display: block; font-size: 12px; color: var(--placard-dim); }
    .edbt-t-cats .edbt-copie, .edbt-t-cats input[type=text] { min-width: 0; }
}

/* 1.1.0 : tickets internes, échéance, suiveurs */
.edbt-eq input[type=date] { color-scheme: dark; }
.edbt-interne { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1.6;
    background: transparent; color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); white-space: nowrap; vertical-align: middle; }
.edbt-ligne.is-int td:first-child { box-shadow: inset 3px 0 0 var(--cyan); }
.edbt-ech { display: inline-block; font-size: 13px; color: var(--placard-dim); white-space: nowrap; }
.edbt-ech.is-jour { color: #ffd27a; font-weight: 700; }
.edbt-ech.is-retard { color: #fff; background: #b42318; padding: 1px 7px; border-radius: 3px; font-weight: 700; }
.edbt-c-ech { white-space: nowrap; }
.edbt-titre-l .edbt-btn-nouveau { margin-left: auto; }
.edbt-bandeau-int { margin: 8px 0 12px !important; padding: 8px 12px; border-radius: 4px; font-size: 13.5px; background: #15303a; border-left: 4px solid var(--cyan); }
.edbt-tag-eq { font-size: 11px; padding: 1px 7px; border-radius: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #15303a; color: var(--cyan); }
.edbt-suiv-l { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.edbt-suiv-l li { padding: 3px 10px; border-radius: 14px; background: #1d2328; font-size: 13px; }
.edbt-suiv-l li.is-moi { box-shadow: inset 0 0 0 1px var(--cyan); }
.edbt-suiv-l small { display: inline; margin: 0; }
.edbt-suiveurs form { margin: 0 0 8px; }
.edbt-eq .edbt-btn-suivre { background: var(--cyan); color: #06222a !important; }
.edbt-eq .edbt-btn-suivre:hover { background: #8de6f3; }
.edbt-form-int .edbt-type { margin-top: 4px; }
.edbt-case label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--placard); cursor: pointer; min-height: 40px; }
.edbt-case input { width: 18px; height: 18px; accent-color: var(--cyan); }
.edbt-eq .edbt-req { color: var(--rouge); } /* 1.1.2 */
@media (max-width: 1000px) {
    .edbt-filtres { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
    .edbt-filtres { grid-template-columns: 1fr 1fr; }
    .edbt-titre-l .edbt-btn-nouveau { margin-left: 0; width: 100%; }
    /* Cartes : jamais plus larges que l'écran (les dates longues passent à la ligne). */
    .edbt-table:not(.edbt-t-cats) { display: block; width: 100%; }
    .edbt-ligne { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
    .edbt-ligne td { min-width: 0; overflow-wrap: anywhere; }
    .edbt-ligne .edbt-c-date, .edbt-ligne .edbt-c-ech, .edbt-ligne .edbt-ech { white-space: normal; }
    .edbt-ligne.is-int td:first-child { box-shadow: none; }
    .edbt-ligne.is-int { box-shadow: inset 0 0 0 1px #2c343a, inset 4px 0 0 var(--cyan) !important; }
    .edbt-form-int .edbt-actions .edbt-btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
    .edbt-filtres { grid-template-columns: 1fr; }
}
/* 1.2.0 : Exporter et transmettre */
.edbt-transmettre textarea { width: 100%; box-sizing: border-box; min-height: 0; }
.edbt-transmettre .edbt-case { display: flex; gap: 8px; align-items: center; font-weight: normal; }
.edbt-transmettre .edbt-alerte { border-left: 4px solid #c9821b; background: #fdf6e9; color: #5a3b06; padding: 6px 10px; border-radius: 4px; }
