/* ==========================================================================
   SUPPORT — feuille dédiée (refonte du 21/10/2026) : règles d'origine puis
   habillage « route de nuit ».
   ========================================================================== */


[hidden] { display: none !important; }
.sidebar-nav a { transition: all 0.3s ease; }
.sidebar-nav li.active a { border-left: 3px solid var(--accent-blue); }
.admin-badge { display: inline-block; padding: 1px 8px; background: rgba(var(--rgb-purple), 0.15); color: var(--accent-purple); border-radius: var(--radius-sm); font-size: var(--font-2xs); font-weight: var(--font-weight-bold); text-transform: uppercase; margin-left: auto; }
.page-header h1 { font-size: var(--font-5xl); font-weight: 800; color: var(--text-primary); }
.page-header h1 span { background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-header p { color: var(--text-secondary); font-size: var(--font-base); }
/* ============ BANDEAU STATISTIQUES ============ */
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 25px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; opacity: 0.85; background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple)); }
.stat-card.gold-card::before { background: linear-gradient(90deg, var(--accent-yellow), var(--accent-orange)); }
.stat-card.teal-card::before { background: linear-gradient(90deg, var(--accent-teal), var(--accent-green)); }
.stat-card.purple-card::before { background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink)); }
.stat-card:hover { transform: translateY(-4px); border-color: var(--accent-blue); box-shadow: var(--shadow-glow); }
.stat-card .stat-icon { font-size: var(--font-3xl); margin-bottom: 8px; }
.stat-card .stat-label { font-size: var(--font-xs); text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: var(--font-weight-semibold); }
.stat-card .stat-value { font-size: var(--font-4xl); font-weight: var(--font-weight-black); color: var(--text-primary); line-height: 1.2; margin-top: 2px; }
.stat-card .stat-value .unit { font-size: var(--font-base); color: var(--text-muted); font-weight: var(--font-weight-semibold); }
.stat-card .stat-sub { font-size: var(--font-xs); color: var(--text-secondary); margin-top: 4px; }
.star { color: #4b5563; font-size: var(--font-lg); }
.star.on { color: var(--accent-yellow); }
/* ============ LAYOUT 2 COLONNES ============ */
        .support-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.side-col { display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border-color); background: var(--bg-secondary); flex-wrap: wrap; }
.panel-head h2 { font-size: var(--font-xl); font-weight: var(--font-weight-bold); display: flex; align-items: center; gap: 8px; }
.count-pill { padding: 2px 10px; border-radius: var(--radius-md); background: rgba(var(--rgb-blue), 0.12); color: var(--accent-blue); font-size: var(--font-xs); font-weight: 800; border: 1px solid rgba(var(--rgb-blue), 0.2); }
/* ============ FILTRES ============ */
        .ticket-filters { padding: 14px 18px; border-bottom: 1px solid var(--border-color); }
.status-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.status-tab { padding: 7px 15px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-xl); cursor: pointer; font-size: var(--font-sm); font-weight: var(--font-weight-semibold); color: var(--text-secondary); transition: all 0.25s ease; font-family: 'Inter', sans-serif; }
.status-tab:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.status-tab.active { background: var(--accent-blue); color: var(--bg-primary); border-color: var(--accent-blue); }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 10px; }
.filter-grid select, .filter-grid input, .faq-search input, .field input, .field select, .field textarea { width: 100%; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: var(--font-md); }
.filter-grid select:focus, .filter-grid input:focus, .faq-search input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-blue); box-shadow: var(--focus-ring); }
.search-box { position: relative; }
.search-box i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: var(--font-sm); }
.search-box input { padding-left: 34px; }
.results-info { padding: 12px 18px 0; font-size: var(--font-sm); color: var(--text-muted); font-weight: var(--font-weight-semibold); }
/* ============ LISTE DES TICKETS ============ */
        .ticket-list { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.ticket-item { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px 16px; cursor: pointer; transition: all 0.3s ease; animation: cardIn 0.35s ease backwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ticket-item:hover { background: var(--bg-card-hover); border-color: var(--accent-blue); transform: translateX(3px); }
.ti-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ticket-id { font-size: var(--font-xs); font-weight: 800; color: var(--accent-blue); letter-spacing: 0.4px; background: rgba(var(--rgb-blue), 0.1); padding: 2px 9px; border-radius: var(--radius-sm); }
.ti-subject { font-size: var(--font-base); font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: 6px; }
.ti-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--font-xs); color: var(--text-muted); margin-bottom: 8px; }
.ti-date { margin-left: auto; font-size: var(--font-xs); color: var(--text-muted); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: var(--radius-sm); font-size: var(--font-2xs); font-weight: var(--font-weight-bold); text-transform: uppercase; letter-spacing: 0.4px; border: 1px solid currentColor; }
.p-basse { color: #9ca3af; background: rgba(156, 163, 175, 0.12); }
.p-normale { color: var(--accent-blue); background: rgba(var(--rgb-blue), 0.12); }
.p-haute { color: var(--accent-orange); background: rgba(var(--rgb-orange), 0.12); }
.p-critique { color: var(--accent-red); background: rgba(var(--rgb-red), 0.12); }
.s-open { color: var(--accent-blue); background: rgba(var(--rgb-blue), 0.12); }
.s-inprogress { color: var(--accent-purple); background: rgba(var(--rgb-purple), 0.12); }
.s-pending { color: var(--accent-yellow); background: rgba(var(--rgb-yellow), 0.12); }
.s-resolved { color: var(--accent-green); background: rgba(var(--rgb-green), 0.12); }
.s-closed { color: var(--text-muted); background: rgba(113, 128, 150, 0.12); }
.sla { font-size: var(--font-xs); font-weight: var(--font-weight-bold); display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-sm); }
.sla-ok { color: var(--accent-green); background: rgba(var(--rgb-green), 0.1); }
.sla-warn { color: var(--accent-orange); background: rgba(var(--rgb-orange), 0.12); }
.sla-late { color: var(--accent-red); background: rgba(var(--rgb-red), 0.12); }
.sla-neutral { color: var(--text-muted); background: rgba(var(--rgb-white), 0.04); }
.empty-state { text-align: center; padding: 45px 20px; color: var(--text-muted); }
.empty-state .big { font-size: var(--font-7xl); margin-bottom: 8px; }
.empty-state p { font-size: var(--font-md); font-weight: var(--font-weight-semibold); color: var(--text-secondary); }
.empty-state small { font-size: var(--font-xs); }
.empty-state .btn-primary, .empty-state .btn-ghost { margin: 14px auto 0; }
/* ============ FAQ ============ */
        .faq-search { padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.faq-list { max-height: 640px; overflow-y: auto; }
.faq-list::-webkit-scrollbar { width: 6px; }
.faq-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: var(--radius-xs); }
.faq-theme { padding: 12px 16px 4px; font-size: var(--font-2xs); text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: var(--font-weight-bold); }
.faq-item { border-bottom: 1px solid rgba(var(--rgb-border), 0.5); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: var(--font-md); font-weight: var(--font-weight-semibold); padding: 12px 16px; display: flex; gap: 10px; align-items: flex-start; transition: all 0.25s ease; }
.faq-q:hover { background: var(--bg-card-hover); color: var(--accent-blue); }
.faq-q .chev { margin-left: auto; color: var(--text-muted); font-size: var(--font-sm); transition: transform 0.3s ease; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--accent-blue); }
.faq-a { display: none; padding: 0 16px 14px; font-size: var(--font-sm); color: var(--text-secondary); animation: cardIn 0.3s ease; }
.faq-item.open .faq-a { display: block; }
.faq-a mark { background: rgba(var(--rgb-yellow), 0.3); color: var(--accent-yellow); border-radius: var(--radius-xs); padding: 0 2px; }
.faq-help { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border-color); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--font-xs); color: var(--text-muted); }
.vote-btn { background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-secondary); border-radius: var(--radius-sm); padding: 5px 10px; cursor: pointer; font-size: var(--font-xs); font-weight: var(--font-weight-bold); font-family: 'Inter', sans-serif; transition: all 0.25s ease; }
.vote-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.vote-btn.voted { border-color: var(--accent-green); color: var(--accent-green); }
.vote-btn.voted-down { border-color: var(--accent-red); color: var(--accent-red); }
.faq-ticket-link { margin-left: auto; color: var(--accent-blue); font-size: var(--font-xs); font-weight: var(--font-weight-bold); background: none; border: none; cursor: pointer; font-family: 'Inter', sans-serif; }
.faq-ticket-link:hover { text-decoration: underline; }
/* ============ CONTACTS ============ */
        .contact-block { padding: 14px 16px; border-bottom: 1px solid var(--border-color); }
.contact-block:last-child { border-bottom: none; }
.contact-row { display: flex; gap: 12px; align-items: flex-start; }
.contact-ico { width: 42px; height: 42px; min-width: 42px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: var(--font-2xl); background: rgba(var(--rgb-white), 0.04); border: 1px solid var(--border-color); }
.contact-row h4 { font-size: var(--font-md); font-weight: var(--font-weight-bold); }
.contact-row p { font-size: var(--font-xs); color: var(--text-muted); }
.contact-row a { color: var(--accent-blue); text-decoration: none; font-size: var(--font-sm); font-weight: var(--font-weight-semibold); }
.contact-row a:hover { text-decoration: underline; }
.contact-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.link-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-secondary); font-size: var(--font-sm); font-weight: var(--font-weight-semibold); text-decoration: none; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.25s ease; }
.link-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); transform: translateY(-1px); }
.link-btn.primary { background: rgba(var(--rgb-blue), 0.12); color: var(--accent-blue); border-color: rgba(var(--rgb-blue), 0.25); }
.info-line { display: flex; justify-content: space-between; gap: 10px; font-size: var(--font-sm); color: var(--text-muted); padding: 3px 0; }
.info-line strong { color: var(--text-primary); font-weight: var(--font-weight-semibold); }
/* ============ PANNEAU GLISSANT : DÉTAIL TICKET ============ */
        .panel-backdrop { position: fixed; inset: 0; background: rgba(var(--rgb-bg-primary), 0.65); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 550; }
.panel-backdrop.open { opacity: 1; pointer-events: auto; }
.ticket-panel { position: fixed; top: 0; right: 0; height: 100vh; width: min(760px, 100%); background: var(--bg-secondary); border-left: 1px solid var(--border-color); transform: translateX(102%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 600; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.ticket-panel.open { transform: translateX(0); }
.tp-topbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); background: var(--bg-card); flex-wrap: wrap; }
.tp-head { padding: 16px 18px; border-bottom: 1px solid var(--border-color); background: var(--bg-card); }
.tp-head h2 { font-size: var(--font-2xl); font-weight: 800; margin: 8px 0; }
.tp-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tp-dates { font-size: var(--font-xs); color: var(--text-muted); }
.tp-body { flex: 1; overflow-y: auto; padding: 16px 18px 6px; }
.tp-body::-webkit-scrollbar { width: 6px; }
.tp-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: var(--radius-xs); }
.agent-note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 14px; background: rgba(var(--rgb-blue), 0.08); border: 1px dashed rgba(var(--rgb-blue), 0.35); border-radius: var(--radius-md); color: var(--accent-blue); font-size: var(--font-sm); font-weight: var(--font-weight-semibold); }
.thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.thread-row { display: flex; gap: 10px; max-width: 84%; animation: msgIn 0.3s ease; }
.thread-row.mine { margin-left: auto; flex-direction: row-reverse; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.thread-avatar { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--font-sm); font-weight: 800; color: var(--bg-primary); }
.thread-content { min-width: 0; }
.thread-author { font-size: var(--font-xs); font-weight: var(--font-weight-bold); margin-bottom: 3px; }
.thread-row.mine .thread-author { text-align: right; }
.thread-author small { color: var(--text-muted); font-weight: var(--font-weight-medium); }
.thread-bubble { background: var(--bg-card); border: 1px solid var(--border-color); padding: 10px 14px; border-radius: var(--radius-md); font-size: var(--font-md); white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-row.mine .thread-bubble { background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); color: var(--bg-primary); border-color: transparent; font-weight: var(--font-weight-medium); }
.thread-time { font-size: var(--font-2xs); color: var(--text-muted); margin-top: 4px; }
.thread-row.mine .thread-time { text-align: right; }
.thread-system { align-self: center; text-align: center; font-size: var(--font-xs); color: var(--text-secondary); background: rgba(var(--rgb-white), 0.04); border: 1px solid var(--border-color); padding: 6px 15px; border-radius: var(--radius-md); max-width: 88%; }
.tp-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 16px; }
.tp-foot { border-top: 1px solid var(--border-color); padding: 12px 18px; background: var(--bg-card); }
.composer { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { flex: 1; resize: none; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: var(--font-md); padding: 10px 12px; min-height: 44px; max-height: 130px; line-height: 1.4; }
.composer textarea:focus { outline: none; border-color: var(--accent-blue); box-shadow: var(--focus-ring); }
.composer-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: var(--font-2xs); color: var(--text-muted); }
/* ============ BOUTONS ============ */
        .btn-primary { padding: 11px 18px; border: none; border-radius: var(--radius-sm); cursor: pointer; font-family: 'Inter', sans-serif; background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange)); color: var(--bg-primary); font-size: var(--font-md); font-weight: var(--font-weight-bold); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.25s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--rgb-yellow), 0.25); }
.btn-primary.small { padding: 9px 14px; font-size: var(--font-sm); }
.btn-ghost { padding: 9px 14px; border-radius: var(--radius-sm); cursor: pointer; background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-secondary); font-family: 'Inter', sans-serif; font-size: var(--font-sm); font-weight: var(--font-weight-semibold); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.25s ease; }
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.btn-ghost.danger { color: var(--accent-red); border-color: rgba(var(--rgb-red), 0.25); }
.btn-ghost.danger:hover { background: rgba(var(--rgb-red), 0.12); }
.btn-ghost.success { color: var(--accent-green); border-color: rgba(var(--rgb-green), 0.25); }
.btn-ghost.success:hover { background: rgba(var(--rgb-green), 0.12); }
.send-btn { width: 42px; height: 42px; min-width: 42px; border-radius: 50%; border: none; cursor: pointer; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); color: var(--bg-primary); font-size: var(--font-lg); transition: all 0.25s ease; }
.send-btn:hover { transform: scale(1.06); }
/* ============ MODALES ============ */
        .modal-overlay { position: fixed; inset: 0; background: rgba(var(--rgb-black), 0.7); backdrop-filter: blur(6px); z-index: 5000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 26px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; position: relative; animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-secondary); cursor: pointer; font-size: var(--font-base); transition: all 0.25s ease; }
.modal-close:hover { background: rgba(var(--rgb-red), 0.15); color: var(--accent-red); }
.modal-title { font-size: var(--font-2xl); font-weight: 800; margin-bottom: 4px; }
.modal-sub { font-size: var(--font-sm); color: var(--text-muted); margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: var(--font-xs); font-weight: var(--font-weight-bold); color: var(--text-secondary); margin-bottom: 6px; }
.field label .req { color: var(--accent-red); }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field .hint { font-size: var(--font-2xs); color: var(--text-muted); margin-top: 4px; }
.field-error { font-size: var(--font-xs); color: var(--accent-red); font-weight: var(--font-weight-semibold); margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent-red); }
.field.invalid .field-error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: var(--font-sm); color: var(--text-secondary); margin-bottom: 8px; }
.check-row input { width: auto; margin-top: 3px; accent-color: var(--accent-blue); }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.modal-actions .btn-primary, .modal-actions .btn-ghost { flex: 1; min-width: 140px; }
.rating-stars { display: flex; justify-content: center; gap: 10px; margin: 8px 0 4px; }
.rating-stars button { background: none; border: none; font-size: var(--font-6xl); color: #4b5563; cursor: pointer; transition: all 0.2s ease; line-height: 1; }
.rating-stars button:hover { transform: scale(1.15); }
.rating-stars button.on { color: var(--accent-yellow); text-shadow: 0 0 18px rgba(var(--rgb-yellow), 0.35); }
.rating-label { text-align: center; font-size: var(--font-sm); color: var(--text-secondary); font-weight: var(--font-weight-semibold); margin-bottom: 14px; }
/* ============ NOTIFICATIONS ============ */ .notification { border: 1px solid rgba(var(--rgb-white), 0.05); max-width: 400px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(50px); } }
/* ============ RESPONSIVE ============ */
        @media (max-width: 1100px) {
            .support-layout { grid-template-columns: 1fr; } .faq-list { max-height: none; }
        }
@media (max-width: 768px) {
            .sidebar { width: 60px; } .sidebar-header h2, .vtc-tagline, .sidebar-nav a span:not(.icon), .user-details, .logout-btn span:not(.icon), .admin-badge { display: none; }
            .sidebar-nav a { justify-content: center; padding: 12px; border-radius: 0; } .sidebar-nav .icon { margin: 0; font-size: var(--font-3xl); } .main-content { margin-left: 60px; padding: 15px; }
            .stats-grid, .filter-grid, .field-row { grid-template-columns: 1fr; } .notification { bottom: 15px; right: 15px; left: 15px; max-width: none; font-size: var(--font-md); }
            .panel-head { align-items: flex-start; } .ticket-panel { width: 100%; } .thread-row { max-width: 94%; } .tp-body { padding: 12px 12px 6px; }
        }
        /* ============ LOT 4 : ÉTATS ET FINITIONS ============ */
        .status-tab:focus-visible, .vote-btn:focus-visible, .faq-q:focus-visible,
        .link-btn:focus-visible, .modal-close:focus-visible, .btn-primary:focus-visible,
        .btn-ghost:focus-visible, .faq-ticket-link:focus-visible, .ticket-item:focus-visible,
        .rating-stars button:focus-visible, .send-btn:focus-visible, .contact-row a:focus-visible {
            outline: var(--focus-ring-outline);
            outline-offset: 2px;
        }
        .btn-primary:disabled, .btn-ghost:disabled, .link-btn:disabled,
        .vote-btn:disabled, .send-btn:disabled, .faq-q:disabled {
            opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none;
        }
        /* Statuts de ticket : le libellé texte porte déjà le sens ; deux états
           d'attente reçoivent en plus un contour discontinu, indépendant de la
           couleur. */
        .s-pending, .s-closed { border-style: dashed; }
        /* Panneaux et modales : mêmes ombres que le reste du hub. */
        .panel, .stat-card { box-shadow: var(--shadow-sm); }
        .modal-box { box-shadow: var(--shadow-lg); }
        .faq-q:hover { box-shadow: var(--shadow-sm); }
        /* Lisibilité des réponses et des bulles du fil. */
        .faq-a { line-height: 1.65; }
        .thread-bubble { line-height: 1.5; }
        .star, .sla { letter-spacing: 0.1px; }
    
/* Habillage « route de nuit » (21/10/2026). */
.page-header h1 { font-family: 'Barlow Condensed','Inter',sans-serif; font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; color: var(--text-primary); }
.page-header h1 span { color: var(--accent-ambre); }
.stat-card, .panel { border-radius: var(--radius-lg); border: 1px solid rgba(var(--rgb-white),.07); background: linear-gradient(165deg, rgba(var(--rgb-bg-card),.85), rgba(var(--rgb-bg-sidebar),.85)); }
.stat-card { position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent-ambre), transparent); }
.stat-card .stat-value { font-family: 'Barlow Condensed','Inter',sans-serif; font-size: var(--font-4xl); font-weight: 800; color: var(--text-primary); }
.star { color: rgba(var(--rgb-white),.25); } .star.on { color: var(--accent-ambre); }
.status-tab { border-radius: var(--radius-full); background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border-color); }
.status-tab.active { color: var(--text-primary); border-color: rgba(var(--rgb-ambre),.55); background: rgba(var(--rgb-ambre),.12); }
.filter-grid select, .filter-grid input, .faq-search input, .field input, .field select, .field textarea { border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-primary); }
.filter-grid select:focus-visible, .filter-grid input:focus-visible, .faq-search input:focus-visible, .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent-ambre); box-shadow: var(--focus-ring); }
.ticket-item { border-radius: var(--radius-md); border-bottom-color: rgba(var(--rgb-white),.06); } .ticket-item:hover { background: rgba(var(--rgb-white),.03); }
.faq-item { border-radius: var(--radius-md); border: 1px solid rgba(var(--rgb-white),.07); background: rgba(var(--rgb-white),.02); }
.ticket-panel, .modal-box { border-radius: var(--radius-xl); border: 1px solid var(--border-color); background: var(--bg-card); }
.thread-bubble { border-radius: var(--radius-lg); background: rgba(var(--rgb-white),.04); color: var(--text-secondary); }
.thread-row.mine .thread-bubble { background: rgba(var(--rgb-ambre),.14); border: 1px solid rgba(var(--rgb-ambre),.25); color: var(--text-primary); }
.btn-primary, .send-btn { border-radius: var(--radius-full); border: 0; background: linear-gradient(135deg, var(--accent-ambre), var(--accent-orange)); color: #1b1202; font-weight: 800; }
.btn-ghost, .link-btn, .vote-btn { border-radius: var(--radius-full); border: 1px solid var(--border-color); background: rgba(var(--rgb-white),.03); color: var(--text-secondary); }
.notification { border-radius: var(--radius-md); }
@media (prefers-reduced-motion: reduce) { .stat-card, .panel, .ticket-item, .btn-primary { transition: none !important; } }
