/* =============================================================================
   pages-data.css — Styles partagés pour les modules data-driven
   =============================================================================
   Utilisé par : tarifs, documents, info-administrative, examens, pfmp, contacts.
   Définit un système de cards, sections, tableaux réutilisables dans les modals.
   ============================================================================= */

/* =============================================================================
   PAGE COMPLÈTE (accès direct hors modal)
   ============================================================================= */
.dp-main {
  flex: 1;
  padding: 24px 20px;
}

.dp-page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dp-page-title {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--bg-tile-blue);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--bg-tile-blue);
}

/* =============================================================================
   WRAPPER COMMUN
   ============================================================================= */
.dp-wrap {
  padding: 4px;
}

.dp-intro {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 22px;
  padding-left: 14px;
  border-left: 3px solid var(--bg-tile-blue);
}

/* =============================================================================
   SECTIONS
   ============================================================================= */
.dp-section {
  margin-bottom: 28px;
}

.dp-section:last-child {
  margin-bottom: 0;
}

.dp-section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6a6a73;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ececf1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dp-section-icon {
  font-size: 18px;
}

/* =============================================================================
   GRILLE DE CARDS (utilisée pour tarifs, documents, etc.)
   ============================================================================= */
.dp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.dp-card {
  background: #fff;
  border: 1px solid #e3e3e8;
  border-radius: 8px;
  padding: 16px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.dp-card.clickable {
  cursor: pointer;
}

.dp-card.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.12);
  border-color: var(--bg-tile-blue);
}

.dp-card-icon {
  font-size: 24px;
  line-height: 1;
}

.dp-card-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6a6a73;
  font-weight: 700;
}

.dp-card-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--bg-tile-blue);
  line-height: 1.1;
}

.dp-card-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

.dp-card-meta {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

/* Card en surbrillance bleue (info importante) */
.dp-card.primary {
  background: linear-gradient(135deg, var(--bg-tile-blue), var(--bg-tile-blue-dark));
  color: #fff;
  border-color: transparent;
}

.dp-card.primary .dp-card-title,
.dp-card.primary .dp-card-value,
.dp-card.primary .dp-card-desc,
.dp-card.primary .dp-card-meta {
  color: #fff;
}

.dp-card.primary .dp-card-value {
  color: #fff;
}

/* =============================================================================
   TABLEAU CLASSIQUE
   ============================================================================= */
.dp-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e3e3e8;
}

.dp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dp-table thead th {
  background: #f7f8fa;
  color: #6a6a73;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #e3e3e8;
  font-weight: 700;
}

.dp-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #ececf1;
  color: #1b2735;
  line-height: 1.5;
}

.dp-table tbody tr:last-child td {
  border-bottom: none;
}

.dp-table tbody tr:hover {
  background: #f7f8fa;
}

.dp-table-amount {
  font-weight: 700;
  color: var(--bg-tile-blue);
  white-space: nowrap;
  text-align: right;
}

/* =============================================================================
   LISTE DE DOCUMENTS PDF
   ============================================================================= */
.dp-doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-doc-item {
  background: #fff;
  border: 1px solid #e3e3e8;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.dp-doc-item:hover {
  border-color: var(--bg-tile-blue);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dp-doc-icon {
  font-size: 28px;
  flex-shrink: 0;
}

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

.dp-doc-title {
  font-size: 15px;
  font-weight: 700;
  color: #1b2735;
  margin-bottom: 2px;
}

.dp-doc-meta {
  font-size: 12px;
  color: #6a6a73;
}

.dp-doc-action {
  flex-shrink: 0;
  background: var(--bg-tile-blue);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================================================
   ALERTES / NOTES
   ============================================================================= */
.dp-alert {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  color: #6e4f00;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.dp-alert.info {
  background: #e6f0fa;
  border-left-color: var(--bg-tile-blue);
  color: #00477f;
}

.dp-alert.success {
  background: #e6f4ea;
  border-left-color: #107c10;
  color: #137333;
}

/* =============================================================================
   ÉTAT VIDE
   ============================================================================= */
.dp-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-style: italic;
  background: #f7f8fa;
  border-radius: 8px;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 640px) {
  .dp-page-wrapper { padding: 20px; }
  .dp-page-title { font-size: 20px; }
  .dp-grid { grid-template-columns: 1fr; }
  .dp-doc-item { flex-wrap: wrap; }
  .dp-doc-action { width: 100%; text-align: center; margin-top: 6px; }
  .dp-table { font-size: 13px; }
  .dp-table thead th,
  .dp-table tbody td { padding: 10px 12px; }
}
