/* ─── Paramètres généraux ────────────────────────────────────────────── */

.param-body {
  display: flex; flex-direction: column;
  margin-top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow: hidden; background: var(--surface-2);
}

/* ─── Onglets ─── */
.param-tabs {
  display: flex; flex-wrap: wrap; gap: 2px;
  padding: 12px 20px 0;
  background: var(--surface);
  border-bottom: 2px solid #1a237e;
  flex-shrink: 0;
}

.param-tab {
  padding: 8px 18px; border: none; border-radius: 6px 6px 0 0;
  background: var(--surface-2); color: var(--text-2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); border-bottom: none;
  transition: background .15s, color .15s;
  margin-bottom: -2px;
}
.param-tab:hover  { background: #e8eaf6; color: #1a237e; }
.param-tab.active { background: var(--surface); color: #1a237e; border-color: #1a237e; border-bottom: 2px solid var(--surface); }

/* ─── Contenu ─── */
.param-content {
  flex: 1; overflow-y: auto; padding: 28px 32px;
}

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

.param-section-title {
  font-size: 14px; font-weight: 700; color: #1a237e;
  border-bottom: 2px solid #1a237e;
  padding-bottom: 6px; margin-bottom: 20px;
}

/* ─── Grille 2 colonnes pour dénomination ─── */
.param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px 24px;
  max-width: 860px;
}

/* ─── Lignes alignées pour horaire ─── */
.param-rows { display: flex; flex-direction: column; gap: 0; max-width: 560px; }
.param-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.param-row:last-child { border-bottom: none; }
.param-row-label { font-size: 13px; color: var(--text-1); flex: 1; padding-right: 20px; }

/* ─── Jours fériés ─── */
.feries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px; max-width: 860px;
}
.ferie-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: border-color .15s;
}
.ferie-item:hover { border-color: #9fa8da; }
.ferie-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: #1a237e; cursor: pointer; }
.ferie-label { flex: 1; font-size: 13px; color: var(--text-1); }
.ferie-date  { font-size: 11px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.ferie-mobile { color: #8e24aa; }

.ferie-item-custom { border-color: #9fa8da; background: #f3f4fd; }
.ferie-custom-badge {
  width: 18px; height: 18px; border-radius: 50%;
  background: #1a237e; color: #fff;
  font-size: 13px; font-weight: 700; line-height: 18px;
  text-align: center; flex-shrink: 0;
}
.ferie-del-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 13px; padding: 2px 4px;
  border-radius: 4px; flex-shrink: 0;
  transition: color .15s, background .15s;
}
.ferie-del-btn:hover { color: #e53935; background: #fce4ec; }

/* ─── Utilitaires inline extraits du HTML ─── */
.p-full-width   { grid-column: 1 / -1; }
.p-inline-group { display: flex; align-items: center; gap: 8px; }
.p-unit         { font-size: 13px; color: var(--text-2); }
.p-help-text    { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.p-section-mt   { margin-top: 24px; }
.p-row-separator{ border-top: 2px solid var(--border); margin-top: 8px; padding-top: 16px; }
.p-ferie-add-row{ display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
