/* Admin Bogey Rénovation — isolated static file, never bundled by Astro */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body.adm-body { font-family: system-ui, -apple-system, sans-serif; background: #f1f5f9; color: #0f172a; min-height: 100vh; }

.adm-gate {
  position: fixed; inset: 0;
  background: #0f172a;
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.adm-gate.hidden { display: none; }
.adm-gate-box {
  background: white; border-radius: 16px; padding: 2rem;
  width: 100%; max-width: 340px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.adm-gate-logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.adm-gate-sub { font-size: 0.875rem; color: #64748b; margin-bottom: 1.5rem; }
.adm-gate-box input {
  width: 100%; border: 2px solid #e2e8f0; border-radius: 10px;
  padding: 0.75rem 1rem; font-size: 1rem; margin-bottom: 0.75rem;
  transition: border-color 0.15s;
}
.adm-gate-box input:focus { outline: none; border-color: #F27720; }
.adm-btn-primary {
  width: 100%; background: #F27720; color: white; border: none;
  border-radius: 10px; padding: 0.875rem; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: background 0.15s;
}
.adm-btn-primary:hover { background: #D9620A; }
.adm-gate-error { color: #dc2626; font-size: 0.8125rem; margin-top: 0.5rem; display: none; }

.adm-header {
  background: #0f172a; color: white;
  padding: 0.875rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: sticky; top: 0; z-index: 100;
}
.adm-header-title { font-size: 0.9375rem; font-weight: 700; }
.adm-header-meta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.adm-modified-count {
  font-size: 0.75rem; background: #F27720; color: white;
  border-radius: 20px; padding: 0.2rem 0.625rem; font-weight: 600;
  display: none;
}
.adm-autosave { font-size: 0.75rem; color: #4ade80; font-weight: 600; display: none; }

.adm-toolbar {
  background: white; border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.adm-toolbar label { font-size: 0.8125rem; font-weight: 600; color: #475569; white-space: nowrap; }
.adm-filter {
  flex: 1; min-width: 160px;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  padding: 0.5rem 0.75rem; font-size: 0.875rem;
  background: #f8fafc; cursor: pointer;
}
.adm-btn-ghost {
  border: 1.5px solid #e2e8f0; background: white; border-radius: 8px;
  padding: 0.5rem 0.875rem; font-size: 0.8125rem; cursor: pointer;
  color: #64748b; white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.adm-btn-ghost:hover { border-color: #94a3b8; color: #0f172a; }

.adm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
}
@media (max-width: 480px) {
  .adm-grid { grid-template-columns: 1fr; padding: 0.75rem; gap: 0.75rem; }
}

.adm-card {
  background: white; border-radius: 14px; overflow: hidden;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.adm-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.adm-card-img { width: 100%; height: auto; display: block; }
.adm-card-body { padding: 0.875rem; }

.adm-card-meta { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.625rem; flex-wrap: wrap; }
.adm-num {
  font-size: 0.65rem; font-weight: 700; color: white;
  background: #94a3b8; border-radius: 4px;
  padding: 0.1rem 0.375rem; flex-shrink: 0; letter-spacing: 0.02em;
}
.adm-card-modified .adm-num { background: #F27720; }
.adm-filename { font-size: 0.775rem; font-weight: 700; color: #0f172a; word-break: break-all; }
.adm-badge {
  font-size: 0.6rem; font-weight: 700; color: #92400e;
  background: #fef3c7; border-radius: 4px; padding: 0.1rem 0.35rem; flex-shrink: 0;
}

.adm-divider { border: none; border-top: 1px solid #f1f5f9; margin: 0.625rem 0; }

.adm-field { margin-bottom: 0.625rem; }
.adm-field-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #94a3b8; margin-bottom: 0.3rem; display: block;
}

.adm-select {
  width: 100%; border: 1.5px solid #e2e8f0; border-radius: 8px;
  padding: 0.45rem 0.625rem; font-size: 0.8125rem;
  background: #f8fafc; cursor: pointer; color: #0f172a;
  font-weight: 500; transition: border-color 0.15s;
}
.adm-select:focus { outline: none; border-color: #F27720; }

.adm-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.adm-pill {
  border: 1.5px solid #e2e8f0; background: #f8fafc;
  border-radius: 20px; padding: 0.25rem 0.625rem;
  font-size: 0.725rem; font-weight: 500; color: #475569;
  cursor: pointer; transition: all 0.15s; user-select: none; line-height: 1.4;
}
.adm-pill:hover { border-color: #F27720; color: #F27720; background: #fff7f0; }
.adm-pill.active { border-color: #F27720; background: #F27720; color: white; font-weight: 600; }

.adm-toast {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  background: #0f172a; color: white; border-radius: 10px;
  padding: 0.7rem 1.1rem; font-size: 0.8125rem;
  opacity: 0; transition: opacity 0.25s; pointer-events: none; z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.adm-toast.show { opacity: 1; }
