/* ===================================================================================== */
/* Fichier : css/settings.css                                                                      */
/* Description : Styles spécifiques de la vue Paramètres.                                              */
/* Contexte : Complète la charte générale avec les composants propres à la configuration métier.    */
/* Projet : Le Portail Podologue d'Alexis — PPA V2.10.0                                              */
/* Date : 26/08/2026                                                                            */
/* ===================================================================================== */
/* =============================================================================
   CHAPITRE 1 — CONTENEUR DE LA VUE PARAMÈTRES
   ============================================================================= */

/* Donne un fond légèrement distinct à la vue Paramètres. */
/* ===================================================================================== */
/* ZONE 1 - COMPOSANTS VISUELS DU PARAMÉTRAGE                                            */
/* ===================================================================================== */

.settings-view { /* Ouvre la règle CSS .settings-view. */
  /* Utilise un fond neutre pour distinguer la configuration de la consultation. */
  background: #f7f9fc; /* Définit la propriété background pour ce composant. */
  /* Arrondit le grand conteneur. */
  border-radius: 16px; /* Définit la propriété border-radius pour ce composant. */
} /* Ferme la règle CSS courante. */

/* =============================================================================
   CHAPITRE 2 — CARTES DE PARAMÉTRAGE
   ============================================================================= */

/* Harmonise les cartes du paramétrage. */
.settings-card { /* Ouvre la règle CSS .settings-card. */
  /* Renforce légèrement la bordure. */
  border-color: #d7dfec; /* Définit la propriété border-color pour ce composant. */
} /* Ferme la règle CSS courante. */

/* Met en évidence les identifiants techniques. */
.label-editor-key { /* Ouvre la règle CSS .label-editor-key. */
  /* Utilise une police monospace pour différencier clé interne et libellé visible. */
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* Définit la propriété font-family pour ce composant. */
} /* Ferme la règle CSS courante. */

/* =============================================================================
   CHAPITRE 3 — CONSTRUCTEUR DE ZONES
   ============================================================================= */

/* Signale visuellement une zone personnalisée. */
.custom-zone-editor { /* Ouvre la règle CSS .custom-zone-editor. */
  /* Ajoute un liseré bleu discret. */
  border-left: 4px solid var(--cyan); /* Définit la propriété border-left pour ce composant. */
} /* Ferme la règle CSS courante. */

/* =============================================================================
   PIED DE PAGE GÉNÉRAL
   ============================================================================= */

/* Fin des styles Paramètres du PPA V2.6. */
/* Toute nouvelle règle propre à la configuration doit être ajoutée ici. */
/* FIN DU FICHIER settings.css */


/* =============================================================================
   CHAPITRE 4 — ONGLETS DE PARAMÉTRAGE V2.9
   ============================================================================= */

.settings-tabs { /* Ouvre la règle CSS .settings-tabs. */
  display: flex; /* Définit la propriété display pour ce composant. */
  flex-wrap: wrap; /* Définit la propriété flex-wrap pour ce composant. */
  gap: 8px; /* Définit la propriété gap pour ce composant. */
  padding: 12px; /* Définit la propriété padding pour ce composant. */
  background: #ffffff; /* Définit la propriété background pour ce composant. */
  border: 1px solid #d7dfec; /* Définit la propriété border pour ce composant. */
  border-radius: 14px; /* Définit la propriété border-radius pour ce composant. */
} /* Ferme la règle CSS courante. */

.settings-tab { /* Ouvre la règle CSS .settings-tab. */
  min-height: 42px; /* Définit la propriété min-height pour ce composant. */
  padding: 0 16px; /* Définit la propriété padding pour ce composant. */
  border: 1px solid #d7dfec; /* Définit la propriété border pour ce composant. */
  border-radius: 10px; /* Définit la propriété border-radius pour ce composant. */
  background: #f7f9fc; /* Définit la propriété background pour ce composant. */
  color: #24365f; /* Définit la propriété color pour ce composant. */
  font-weight: 700; /* Définit la propriété font-weight pour ce composant. */
  cursor: pointer; /* Définit la propriété cursor pour ce composant. */
} /* Ferme la règle CSS courante. */

.settings-tab.active { /* Ouvre la règle CSS .settings-tab.active. */
  background: #0b1b61; /* Définit la propriété background pour ce composant. */
  border-color: #0b1b61; /* Définit la propriété border-color pour ce composant. */
  color: #ffffff; /* Définit la propriété color pour ce composant. */
} /* Ferme la règle CSS courante. */

.settings-panel { /* Ouvre la règle CSS .settings-panel. */
  display: none; /* Définit la propriété display pour ce composant. */
  gap: 16px; /* Définit la propriété gap pour ce composant. */
} /* Ferme la règle CSS courante. */

.settings-panel.active { /* Ouvre la règle CSS .settings-panel.active. */
  display: grid; /* Définit la propriété display pour ce composant. */
} /* Ferme la règle CSS courante. */

.settings-profile-grid { /* Ouvre la règle CSS .settings-profile-grid. */
  display: grid; /* Définit la propriété display pour ce composant. */
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* Définit la propriété grid-template-columns pour ce composant. */
  gap: 14px; /* Définit la propriété gap pour ce composant. */
} /* Ferme la règle CSS courante. */

.settings-information { /* Ouvre la règle CSS .settings-information. */
  padding: 14px; /* Définit la propriété padding pour ce composant. */
  background: #f3f7fd; /* Définit la propriété background pour ce composant. */
  border: 1px solid #d7dfec; /* Définit la propriété border pour ce composant. */
  border-radius: 10px; /* Définit la propriété border-radius pour ce composant. */
  color: #53627f; /* Définit la propriété color pour ce composant. */
} /* Ferme la règle CSS courante. */

/* =============================================================================
   CHAPITRE 5 — NUMÉRO DE DOSSIER
   ============================================================================= */

.record-inline-card { /* Ouvre la règle CSS .record-inline-card. */
  display: inline-flex; /* Définit la propriété display pour ce composant. */
  align-items: center; /* Définit la propriété align-items pour ce composant. */
  gap: 10px; /* Définit la propriété gap pour ce composant. */
  margin: 0 0 14px 0; /* Définit la propriété margin pour ce composant. */
  padding: 8px 12px; /* Définit la propriété padding pour ce composant. */
  background: #eef5ff; /* Définit la propriété background pour ce composant. */
  border: 1px solid #d4e1f3; /* Définit la propriété border pour ce composant. */
  border-radius: 10px; /* Définit la propriété border-radius pour ce composant. */
  color: #53627f; /* Définit la propriété color pour ce composant. */
} /* Ferme la règle CSS courante. */

.record-inline-card strong { /* Ouvre la règle CSS .record-inline-card strong. */
  color: #0b1b61; /* Définit la propriété color pour ce composant. */
} /* Ferme la règle CSS courante. */

@media (max-width: 760px) { /* Ouvre les adaptations responsive pour cette largeur d’écran. */
  .settings-tabs { /* Ouvre la règle CSS .settings-tabs. */
    flex-direction: column; /* Définit la propriété flex-direction pour ce composant. */
  } /* Ferme la règle CSS courante. */

  .settings-tab { /* Ouvre la règle CSS .settings-tab. */
    width: 100%; /* Définit la propriété width pour ce composant. */
    text-align: left; /* Définit la propriété text-align pour ce composant. */
  } /* Ferme la règle CSS courante. */

  .settings-profile-grid { /* Ouvre la règle CSS .settings-profile-grid. */
    grid-template-columns: 1fr; /* Définit la propriété grid-template-columns pour ce composant. */
  } /* Ferme la règle CSS courante. */
} /* Ferme la règle CSS courante. */

/* =============================================================================
   PIED DE PAGE GÉNÉRAL V2.9
   ============================================================================= */

/* Fin des styles spécifiques à la V2.9. */
/* ===================================================================================== */
/* FIN DU FICHIER : css/settings.css                                                                      */
/* ===================================================================================== */

/* =============================================================================
   ➜ CHAPITRE 6 — MODÈLE DE CONSULTATION V2.10.0
   ============================================================================= */

.consultation-model-settings-card { overflow: hidden; }
.settings-card-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.consultation-model-editor { display: grid; gap: 16px; margin-top: 16px; }
.consultation-model-page-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.consultation-model-page-tab { min-height: 52px; padding: 8px 10px; border: 1px solid #d7dfec; border-radius: 10px; background: #f7f9fc; color: #24365f; font-weight: 700; cursor: pointer; text-align: left; }
.consultation-model-page-tab span { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; border-radius: 50%; background: #e9eef8; }
.consultation-model-page-tab.active { background: #0b1b61; color: #fff; border-color: #0b1b61; }
.consultation-model-page-tab.active span { background: #fff; color: #0b1b61; }
.consultation-page-editor { display: grid; gap: 14px; }
.consultation-page-title-editor { padding: 14px; border: 1px solid #d7dfec; border-radius: 12px; background: #f8faff; }
.consultation-section-list { display: grid; gap: 12px; }
.consultation-section-editor { border: 1px solid #d7dfec; border-radius: 12px; background: #fff; overflow: hidden; }
.consultation-section-editor > summary { padding: 14px; cursor: pointer; font-weight: 800; color: #0b1b61; background: #f7f9fc; }
.consultation-section-editor > summary span { margin-left: 8px; color: #6b7892; font-size: .85em; font-weight: 600; }
.consultation-section-body { display: grid; gap: 12px; padding: 14px; }
.consultation-section-title { max-width: 720px; }
.consultation-field-list { display: grid; gap: 10px; }
.consultation-field-card { display: grid; gap: 12px; padding: 14px; border: 1px solid #e0e6f0; border-radius: 10px; background: #fff; }
.consultation-field-card.locked { grid-template-columns: 1fr auto; align-items: center; background: #fafbfc; }
.consultation-field-card.locked small { display: block; margin-top: 4px; color: #7b879e; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.consultation-field-locked { color: #6b7892; font-size: .85rem; }
.consultation-field-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.consultation-field-heading code { padding: 7px 9px; border-radius: 7px; background: #eef2f8; color: #53627f; font-size: .78rem; }
.consultation-field-modes { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px; border-radius: 9px; background: #f7f9fc; }
.consultation-field-modes label { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; font-weight: 650; cursor: pointer; }
.consultation-options-editor { display: grid; gap: 8px; padding: 10px; border: 1px dashed #cbd5e5; border-radius: 9px; }
.consultation-options-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.consultation-options-list { display: grid; gap: 7px; }
.consultation-option-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 38px; gap: 7px; align-items: center; }
.consultation-option-handle { color: #7d899f; text-align: center; }
.consultation-option-row input { min-width: 0; }
.consultation-option-remove { min-height: 38px; border: 1px solid #d7dfec; border-radius: 8px; background: #fff; cursor: pointer; font-size: 1.25rem; }
.consultation-limit-field { max-width: 260px; }
.button.compact { min-height: 36px; padding: 0 10px; }

/* Contrôles générés dans la consultation. */
.ppa-model-cell { display: flex; align-items: stretch; justify-content: center; min-width: 0; }
.ppa-model-cell > input,
.ppa-model-cell > select,
.ppa-model-cell > .ppa-multi-select { width: 100%; min-width: 0; }
.ppa-multi-select { position: relative; width: 100%; }
.ppa-multi-select-summary { min-height: 42px; padding: 9px 34px 9px 11px; border: 1px solid #cfd8e6; border-radius: 8px; background: #fff; cursor: pointer; list-style: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppa-multi-select-summary::-webkit-details-marker { display: none; }
.ppa-multi-select-summary::after { content: "▾"; position: absolute; right: 12px; top: 10px; }
.ppa-multi-select-panel { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); display: grid; gap: 4px; padding: 8px; max-height: 240px; overflow-y: auto; border: 1px solid #cfd8e6; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(20, 35, 70, .14); }
.ppa-multi-select-option { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 5px 7px; border-radius: 7px; cursor: pointer; }
.ppa-multi-select-option:hover { background: #f2f6fc; }

@media (max-width: 900px) {
  .consultation-model-page-tabs { grid-template-columns: 1fr 1fr; }
  .consultation-field-heading { grid-template-columns: 1fr; }
  .consultation-field-heading code { justify-self: start; }
}

@media (max-width: 600px) {
  .consultation-model-page-tabs { grid-template-columns: 1fr; }
  .consultation-field-card.locked { grid-template-columns: 1fr; }
  .consultation-field-modes { display: grid; grid-template-columns: 1fr; }
  .settings-card-actions { width: 100%; }
  .settings-card-actions .button { flex: 1 1 100%; }
}

/* ==============================================================================
   FIN DU FICHIER — css/settings.css — Version 2.10.0
   ============================================================================= */
