/* ============================================================
   HOTELIUM — APP CSS (Espace Client SaaS)
   Slate & Emerald — Layout sidebar + composants dashboard
   ============================================================ */

/* ── Design tokens app ──────────────────────────────────────── */
:root {
  --sidebar-w:     252px;
  --topbar-h:      60px;
  --sidebar-bg:    #f8fafc;
  --sidebar-text:  #64748b;
  --sidebar-hover: #f1f5f9;
  --sidebar-active:#10b981;
  --sidebar-active-bg: #ecfdf5;

  --app-bg:        #f8fafc;
  --card-bg:       #ffffff;
  --border:        #e2e8f0;
  --border-light:  #f1f5f9;
  --ink:           #0f172a;
  --ink-2:         #475569;
  --ink-3:         #94a3b8;

  --emerald:       #10b981;
  --emerald-hover: #059669;
  --emerald-soft:  #d1fae5;
  --emerald-glow:  0 0 20px rgba(16,185,129,0.25);

  --red:           #ef4444;
  --red-soft:      #fee2e2;
  --amber:         #f59e0b;
  --amber-soft:    #fef3c7;
  --blue:          #3b82f6;
  --blue-soft:     #dbeafe;

  --radius:        16px;
  --radius-sm:     8px;
  --shadow-sm:     0 2px 10px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.10);

  --transition:    150ms cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset app ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Inter', 'Outfit', sans-serif;
  background: var(--app-bg);
  color: var(--ink);
  line-height: 1.5;
}

/* ── App shell ───────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — Style aérien, blanc, premium (Godly × TailAdmin)
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-light);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  /* Ombre très douce à droite pour la profondeur */
  box-shadow: 1px 0 0 var(--border-light), 4px 0 24px rgba(15,23,42,.03);
}

/* ── Logo ─────────────────────────────────────────────────────── */
.sidebar-logo {
  padding: 22px 20px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

/* SVG du logo (identique à la vitrine) */
.sidebar-logo svg.logo-svg {
  width: 28px; height: 28px;
  color: var(--emerald);
  flex-shrink: 0;
}

.sidebar-logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sidebar-logo-wordmark .logo-sub {
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1;
}

/* Rétro-compat legacy */
.sidebar-logo-mark { display: none; }
.sidebar-logo-text { display: none; }
.sidebar-logo img  { display: none; }

/* ── Nav ──────────────────────────────────────────────────────── */
.sidebar-nav {
  flex: 1;
  padding: 20px 14px 8px;
}

.nav-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8d3de;
  padding: 14px 10px 6px;
  display: block;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.845rem;
  font-weight: 500;
  line-height: 1.4;
  transition: background 120ms ease, color 120ms ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  margin-bottom: 1px;
}

.nav-item:hover {
  background: #f8fafc;
  color: var(--ink);
}

.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--emerald);
  font-weight: 600;
}

.nav-item svg, .nav-item .nav-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 120ms ease;
}
.nav-item:hover svg,   .nav-item:hover .nav-icon   { opacity: 0.85; }
.nav-item.active svg,  .nav-item.active .nav-icon   { opacity: 1;    color: var(--emerald); }

/* ── Sidebar footer / profil ──────────────────────────────────── */
.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* Profil → lien /account.html */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 120ms ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.sidebar-user:hover {
  background: #f8fafc;
  border-color: var(--border-light);
}

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--emerald-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.user-info { flex: 1; min-width: 0; }

.user-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.user-email {
  font-size: 0.68rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-top: 1px;
}

/* ── Main wrapper ────────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Top bar ─────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-breadcrumb {
  font-size: 0.9rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
}

.topbar-breadcrumb a:hover { color: var(--emerald); }
.topbar-breadcrumb .sep { color: var(--ink-3); }
.topbar-breadcrumb .current { color: var(--ink); font-weight: 500; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink-2);
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--app-bg);
  color: var(--ink);
}

/* ── Page content ────────────────────────────────────────────── */
.page-content {
  padding: 36px 32px;
  flex: 1;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--ink-2);
  margin-top: 4px;
}

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--emerald);
  color: #fff;
}

.btn-primary:hover {
  background: var(--emerald-hover);
  box-shadow: var(--emerald-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--app-bg);
  border-color: var(--ink-3);
}

.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #fca5a5;
}

.btn-danger:hover {
  background: var(--red);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: none;
}

.btn-ghost:hover {
  background: var(--app-bg);
  color: var(--ink);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Cartes ──────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

/* ── KPI Cards ───────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}

.kpi-unit {
  font-size: 0.8rem;
  color: var(--ink-2);
}

.kpi-trend {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-trend.up   { color: var(--red); }
.kpi-trend.down { color: var(--emerald); }

/* ── Badges Note (A→E) ───────────────────────────────────────── */
.badge-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  flex-shrink: 0;
}

.badge-note.A { background: #d1fae5; color: #065f46; }
.badge-note.B { background: #dcfce7; color: #166534; }
.badge-note.C { background: #fef9c3; color: #854d0e; }
.badge-note.D { background: #ffedd5; color: #9a3412; }
.badge-note.E { background: #fee2e2; color: #991b1b; }
.badge-note.N { background: #f1f5f9; color: #94a3b8; }

.badge-note-lg {
  width: 56px; height: 56px;
  font-size: 1.75rem;
  border-radius: 14px;
}

/* ── Badges status ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-green  { background: var(--emerald-soft); color: #065f46; }
.badge-amber  { background: var(--amber-soft);  color: #92400e; }
.badge-red    { background: var(--red-soft);    color: #991b1b; }
.badge-blue   { background: var(--blue-soft);   color: #1e40af; }
.badge-gray   { background: #f1f5f9; color: #475569; }

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Tableau hôtels ──────────────────────────────────────────── */
.hotel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hotel-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  cursor: pointer;
}

.hotel-card:hover {
  border-color: var(--emerald);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.hotel-card-info {
  flex: 1;
  min-width: 0;
}

.hotel-card-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.hotel-card-meta {
  font-size: 0.8rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hotel-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hotel-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Stars ───────────────────────────────────────────────────── */
.stars {
  display: flex;
  gap: 2px;
  color: var(--amber);
}

.star { font-size: 0.75rem; }
.star.empty { color: #cbd5e1; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
}

thead {
  background: #f8fafc;
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

/* ── Formulaires ─────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.form-label .required { color: var(--red); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--card-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

.form-input::placeholder { color: var(--ink-3); }
.form-hint { font-size: 0.75rem; color: var(--ink-3); }
.form-error { font-size: 0.75rem; color: var(--red); }

/* ── Auth pages ──────────────────────────────────────────────── */
.auth-bg {
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.auth-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
  top: -200px; right: -200px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-logo-mark {
  width: 40px; height: 40px;
  background: var(--emerald);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; color: #fff;
}

.auth-logo-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--ink-2);
  margin-bottom: 28px;
}

.auth-divider {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-3);
  margin: 20px 0;
  position: relative;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-2);
  margin-top: 20px;
}

.auth-footer a {
  color: var(--emerald);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

/* ── Alertes / Toasts ────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-success { background: var(--emerald-soft); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: var(--red-soft);     color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: var(--amber-soft);   color: #92400e; border: 1px solid #fcd34d; }
.alert-info    { background: var(--blue-soft);    color: #1e40af; border: 1px solid #93c5fd; }

/* ── Modals ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.6);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.modal-close {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  background: var(--app-bg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--ink-2);
  transition: all var(--transition);
}

.modal-close:hover { background: var(--border); color: var(--ink); }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* ── Loading skeleton ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 0.875rem;
  color: var(--ink-2);
  margin-bottom: 24px;
  max-width: 360px;
  margin-inline: auto;
}

/* ── Download center ─────────────────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.download-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
}

.download-card:hover {
  border-color: var(--emerald);
  box-shadow: var(--shadow-md);
}

.download-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.download-icon.excel { background: #dcfce7; }
.download-icon.pdf   { background: #fee2e2; }
.download-icon.json  { background: #dbeafe; }

.download-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.download-desc {
  font-size: 0.78rem;
  color: var(--ink-2);
}

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover { color: var(--ink); }

.tab-btn.active {
  color: var(--emerald);
  border-bottom-color: var(--emerald);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Hamburger (mobile) ──────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-wrapper {
    margin-left: 0;
  }

  .topbar { padding: 0 16px; }
  .page-content { padding: 16px; }

  .hamburger { display: flex; }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hotel-card { flex-wrap: wrap; }
  .hotel-card-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 28px 20px; }
}

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Utils ───────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-emerald { color: var(--emerald); }
.text-red     { color: var(--red); }
.text-muted   { color: var(--ink-2); }
.font-bold    { font-weight: 700; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.gap-2 { gap: 8px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ── Plan 1 — Responsive tables mobile ──────────────────────── */
@media (max-width: 768px) {
  .app-table thead { display: none; }
  .app-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    background: white;
  }
  .app-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
    font-size: 0.875rem;
  }
  .app-table td:last-child { border-bottom: none; }
  .app-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted, #64748b);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

/* ── Plan 1 — Sidebar overlay mobile ────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* Sidebar transition fluide */
.sidebar, .app-sidebar {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 768px) {
  .sidebar, .app-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 100;
    transform: translateX(-100%);
  }
  .sidebar.open, .app-sidebar.open { transform: translateX(0); }
}

/* ── Plan 3 — Barre de progression multi-étapes ─────────────── */
.audit-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 12px 0 4px;
}
.audit-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
}
.audit-step::after {
  content: '›';
  margin: 0 6px;
  color: var(--border);
  font-size: 1rem;
}
.audit-step:last-child::after { display: none; }
.audit-step .step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.audit-step.active { color: var(--emerald); }
.audit-step.active .step-dot { background: var(--emerald); }
.audit-step.done { color: var(--ink-2); }
.audit-step.done .step-dot { background: var(--emerald-soft); border: 1.5px solid var(--emerald); }

/* ── Plan 3 — Card premium ──────────────────────────────────── */
.premium-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 24px;
}
.premium-card .card-title { color: #e2e8f0; }
.premium-card p { color: #94a3b8; font-size: 0.875rem; margin: 8px 0 16px; }
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.3);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* ── Plan 4 — Design System tokens ──────────────────────────── */
:root {
  --bg-app:        #F8FAFC;
  --bg-card:       #FFFFFF;
  --sidebar-width: 240px;
  --topbar-height: 64px;
  --font-data:     'Inter', monospace;
}

.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--topbar-height) 1fr;
  min-height: 100vh;
  background: var(--bg-app);
}

.app-topbar {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 10;
}

.app-sidebar-layout {
  grid-column: 1;
  grid-row: 1 / -1;
  background: white;
  border-right: 1px solid #E2E8F0;
  padding: 1.5rem 0;
}

.app-main {
  grid-column: 2;
  grid-row: 2;
  padding: 2rem;
  overflow-y: auto;
}

.app-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Inter pour les données numériques */
.data-value, .app-table td, .kpi-number {
  font-family: var(--font-data);
}
