/* Rubrique Support (firmwares) + back-office */
.support-page { background: #f5f7fa; min-height: 60vh; color: #111827; font-family: inherit; }
.support-hero { background: linear-gradient(238deg, #FAF8F1 0%, #F6F3EF 99.66%); color: #1F1F1F; padding: 6rem 1.25rem 2.5rem; text-align: center; }
@media (min-width: 1024px) { .support-hero { padding-top: 134px; } }
.support-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; margin: 0 0 .5rem; color: #1F1F1F; }
.support-hero p { max-width: 42rem; margin: 0 auto; color: #4b5563; line-height: 1.5; }
.support-wrap { max-width: 56rem; margin: 0 auto; padding: 2rem 1rem 3rem; }

.support-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.support-chip { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid #0f2a44; color: #0f2a44; background: #ffffff; text-decoration: none; font-weight: 600; }
.support-chip:hover { background: #e8eef5; }
.support-chip.active { background: #0f2a44; color: #ffffff; }
.support-chip:focus-visible, .support-btn:focus-visible, .admin-btn:focus-visible, .admin-input:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }

.support-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.support-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #ffffff;
  border: 1px solid #d1d9e3; border-radius: 12px; padding: 1rem 1.25rem; }
.support-info { display: flex; flex-direction: column; min-width: 0; }
.support-ref { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.support-meta { color: #4b5563; font-size: .9rem; margin-top: .15rem; }
.support-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 9rem;
  padding: .6rem 1.1rem; border-radius: 10px; background: #1d4ed8; color: #ffffff; font-weight: 600; text-decoration: none; }
.support-btn:hover { background: #1e40af; }
.support-empty { background: #ffffff; border: 1px dashed #9ca3af; border-radius: 12px; padding: 1.25rem; color: #374151; }

@media (max-width: 640px) {
  .support-item { flex-direction: column; align-items: stretch; text-align: left; }
  .support-btn { width: 100%; }
  .support-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; }
  .support-chip { flex-shrink: 0; }
}

/* ---- Back-office ---- */
.admin-body { margin: 0; background: #f5f7fa; color: #111827; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.45; }
.admin-wrap { max-width: 60rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.admin-top h1 { font-size: 1.4rem; margin: 0; }
.admin-card { background: #ffffff; border: 1px solid #d1d9e3; border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.admin-card h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
.admin-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.admin-field { display: flex; flex-direction: column; gap: .3rem; }
.admin-field label { font-weight: 600; font-size: .92rem; }
.admin-input { min-height: 44px; padding: .5rem .7rem; border: 1px solid #6b7280; border-radius: 8px; font: inherit; background: #ffffff; color: #111827; width: 100%; box-sizing: border-box; }
.admin-hint { font-size: .85rem; color: #4b5563; }
.admin-btn { min-height: 44px; padding: .55rem 1.1rem; border-radius: 8px; border: 0; font: inherit; font-weight: 600; cursor: pointer; background: #1d4ed8; color: #ffffff; }
.admin-btn:hover { background: #1e40af; }
.admin-btn.danger { background: #b91c1c; }
.admin-btn.danger:hover { background: #991b1b; }
.admin-btn.ghost { background: #ffffff; color: #111827; border: 1px solid #6b7280; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.admin-alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 600; }
.admin-alert.success { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.admin-alert.error { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
.admin-item { background: #ffffff; border: 1px solid #d1d9e3; border-radius: 12px; margin-bottom: .75rem; }
.admin-item summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; min-height: 44px; }
.admin-item summary::-webkit-details-marker { display: none; }
.admin-item summary:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.admin-item-body { padding: 0 1rem 1rem; border-top: 1px solid #e5e7eb; padding-top: 1rem; }
.admin-tag { display: inline-block; font-size: .85rem; background: #e8eef5; color: #0f2a44; border-radius: 6px; padding: .15rem .5rem; }
.admin-warn { color: #92400e; font-weight: 600; }
.admin-table-empty { color: #374151; padding: .5rem 0; }
.admin-form-inline { display: inline; }

/* Barre de progression d'envoi (back-office) */
.upload-progress { display: none; margin-top: .75rem; }
.upload-bar { height: 10px; width: 0; background: #1d4ed8; border-radius: 6px; transition: width .2s; }
.upload-text { display: block; margin-top: .35rem; font-size: .9rem; color: #374151; }

/* Filtre par dimension : fondu sans rechargement */
.support-item { transition: opacity .35s ease; }
.support-item.is-out { opacity: 0; }
.support-item[hidden] { display: none; }
