:root{
  --bg:#0b1220; --card:#0f172a; --head:#111827;
  --text:#e5e7eb; --muted:#94a3b8; --border:#1f2937;
  --accent:#8ab4ff; --accent-2:#c9a679;
}
*{box-sizing:border-box}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial; background:var(--bg); background-image:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.00)); color:var(--text); padding:16px;}
a{color:var(--accent); text-decoration:none}
a:hover{opacity:.9}
.wrap{max-width:1100px;margin:0 auto}
.card, fieldset{background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00)); border:1px solid var(--border); border-radius:14px; padding:16px; box-shadow:0 8px 24px rgba(0,0,0,.35); margin-bottom:16px;}
legend,h1,h2{color:#f8fafc; letter-spacing:.2px}
legend{border-left:4px solid var(--accent-2); padding:0 8px}
.grid{display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:12px}
.grid.two{grid-template-columns: 1fr 1fr}
label{display:block; font-size:12px; color:var(--muted); margin-bottom:6px}
input[type=text],input[type=date],input[type=number],input[type=time],select{
  width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:#0b1220; color:var(--text);
}
input::placeholder{color:#6b7280}
.actions{display:flex; gap:12px; justify-content:flex-end; margin-top:12px}
.btn{background:var(--accent); color:#0b1220; border:none; padding:10px 14px; border-radius:12px; font-weight:700; cursor:pointer}
.btn.secondary{background:#111827; color:#e5e7eb; border:1px solid var(--border)}
.tbl{width:100%; border-collapse:separate; border-spacing:0; background:var(--card); border:1px solid var(--border); border-radius:12px; overflow:hidden}
.tbl th,.tbl td{padding:10px 12px; border-bottom:1px solid var(--border); text-align:left; font-size:14px}
.tbl th{background:#0b1325; color:#dbeafe}
.tbl tr:nth-child(even) td{background:#0d1527}
.alert{padding:10px 12px; border-radius:12px; margin-bottom:12px}
.alert.error{background:#3b1120; color:#fecaca; border:1px solid #7f1d1d}
.alert.notice{background:#072635; color:#bae6fd; border:1px solid #0ea5e9}
.icons{display:flex; gap:8px; font-size:18px}
.badge{display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius:999px; background:#111827; border:1px solid var(--border)}
.badge .em{font-size:16px}
/* highlight discret pour tenants overall */
.is-overall{ box-shadow: inset 0 -2px 0 0 rgba(201,166,121,.35); }

/* Mise en avant douce pour tenants Overall */
.is-overall{ position:relative; }
.is-overall::after{
  content:""; position:absolute; inset:-2px; border-radius:8px; pointer-events:none;
  border:1px solid rgba(201,166,121,.65); box-shadow:0 0 0 2px rgba(201,166,121,.12);
}
.icons img.em{ width:18px; height:18px; vertical-align:middle; display:inline-block; }
.icons img.em:hover{ filter: drop-shadow(0 0 3px rgba(124,193,255,.8)); }
/* idem en thème chic */
.site-header .main-nav{ display:flex; gap:12px; align-items:center; }
#themeToggle.btn.small{ margin-left:auto; }
.site-header .main-nav{ display:flex; gap:12px; align-items:center; }
.site-header .main-nav .welcome{ margin-left:8px; }
#themeToggle.btn.small{ margin-left:auto; }
CSSsudo tee -a /var/www/ski25-admin/public/css/admin-chic.css > /dev/null <<'CSS'
.site-header .main-nav{ display:flex; gap:12px; align-items:center; }
.site-header .main-nav .welcome{ margin-left:8px; }
#themeToggle.btn.small{ margin-left:auto; }
/* Titres page édition */
.page-title{ font-size:28px; line-height:1.2; margin:0; letter-spacing:.2px; color:#e6effa; }
.page-subtitle{ margin:4px 0 14px; color:#9fb3cc; }

/* Header admin : fond intégré dark */
.site-header{ background:#0b1424; border-bottom:1px solid #233044; }
.site-header .brand, .site-header a, .site-header .welcome{ color:#e6effa !important; }
.site-header a.btn.small{ background:#1b2b45; color:#e6effa; border:1px solid #2a3b56; }
.page-title{ font-size:28px; line-height:1.2; margin:0; letter-spacing:.2px; color:#e6effa; }
.page-subtitle{ margin:4px 0 14px; color:#9fb3cc; }
.page-title{ font-size:28px; line-height:1.2; margin:0; letter-spacing:.2px; color:#e6effa; }
.page-subtitle{ margin:4px 0 14px; color:#9fb3cc; }

.img-thumb{
  max-width:450px;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:6px;
  display:block;
}

/* ===== Boutons actions tables (colonne de droite) ===== */
.table td:last-child a,
.table td:last-child button,
td.actions a, td.actions button {
  display:inline-block;
  padding:.35rem .55rem;
  border-radius:18px;
  text-decoration:none;
  font-size:.875rem;
  line-height:1;
  border:1px solid transparent;
  transition:filter .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* Thème sombre */
:root[data-theme="dark"] .table td:last-child a,
:root[data-theme="dark"] td.actions a,
:root[data-theme="dark"] .table td:last-child button,
:root[data-theme="dark"] td.actions button {
  background:#3a66ff;       /* accent */
  color:#fff;
  border-color:#2b5cff;
}
:root[data-theme="dark"] .table td:last-child a:hover,
:root[data-theme="dark"] td.actions a:hover,
:root[data-theme="dark"] .table td:last-child button:hover,
:root[data-theme="dark"] td.actions button:hover {
  filter:brightness(1.08);
}

/* Thème clair */
:root[data-theme="light"] .table td:last-child a,
:root[data-theme="light"] td.actions a,
:root[data-theme="light"] .table td:last-child button,
:root[data-theme="light"] td.actions button {
  background:#2b5cff;
  color:#fff;
  border-color:#224fe0;
}
:root[data-theme="light"] .table td:last-child a:hover,
:root[data-theme="light"] td.actions a:hover,
:root[data-theme="light"] .table td:last-child button:hover,
:root[data-theme="light"] td.actions button:hover {
  filter:brightness(1.06);
}

/* Si tes “pills” avaient une classe (chip/badge), on homogénéise */
.chip, .badge {
  border-radius:999px;
  padding:.25rem .5rem;
}

/* Thème sombre — boutons primaires */
.btn-primary {
  background-color: #4d7aff; /* bleu glacier clair */
}

.btn-primary:hover {
  background-color: #6d96ff;
}

.btn-primary:active {
  background-color: #3a5ccc;
}

.btn-primary {
  text-shadow: 0 0 4px rgba(255,255,255,0.15);
}

/* Dark theme — secondary buttons */
.btn-secondary {
  background: #1b2547;        /* deep blue slab */
  color: #e8edff;             /* ice white/blue */
  border-color: #2c3a74;
}
.btn-secondary:hover {
  background: #223061;
  border-color: #384a8f;
}
.btn-secondary:active {
  background: #1a2a58;
}

