/* Data Transparency Index v1 — FR + MX */

.dti-hero {
  padding: 120px 0 48px;
  background: linear-gradient(165deg, #121820 0%, #1a2430 50%, #1e2a36 100%);
  position: relative;
  overflow: hidden;
}

.dti-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 80% 15%, rgba(184, 160, 122, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

.dti-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.dti-badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(184, 160, 122, 0.15);
  border: 1px solid rgba(184, 160, 122, 0.35);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
}

.dti-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 780px;
}

.dti-hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.dti-lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 0 24px;
}

.dti-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.dti-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: -28px 0 40px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .dti-kpi-strip { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
}

.dti-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
}

.dti-kpi-value {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.dti-kpi-label {
  font-size: 12px;
  color: var(--text-muted);
}

.dti-answer {
  background: linear-gradient(135deg, rgba(184, 160, 122, 0.08) 0%, rgba(224, 120, 48, 0.05) 100%);
  border: 1px solid rgba(184, 160, 122, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
}

.dti-answer-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold);
  margin-bottom: 8px;
}

.dti-body h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 48px 0 12px;
}

.dti-body h2:first-child {
  margin-top: 0;
}

.dti-body p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 16px;
}

.dti-criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0 32px;
}

@media (max-width: 640px) {
  .dti-criteria-grid { grid-template-columns: 1fr; }
}

.dti-criterion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}

.dti-criterion strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.dti-criterion span {
  font-size: 13px;
  color: var(--text-muted);
}

.dti-criterion .dti-weight {
  float: right;
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
}

.dti-table-wrap {
  overflow-x: auto;
  margin: 20px 0 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.dti-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dti-table th,
.dti-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.dti-table th {
  background: var(--surface-alt, #f8f6f2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.dti-table tr:last-child td {
  border-bottom: none;
}

.dti-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.dti-score.excellent { background: rgba(16, 185, 129, 0.15); color: #059669; }
.dti-score.bon { background: rgba(20, 184, 166, 0.15); color: #0d9488; }
.dti-score.moyen { background: rgba(200, 134, 10, 0.15); color: #b45309; }
.dti-score.faible { background: rgba(239, 68, 68, 0.12); color: #dc2626; }

.dti-bar {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.dti-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #e07830);
}

.dti-highlights {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  padding-left: 18px;
}

.dti-highlights li {
  margin-bottom: 4px;
}

.dti-download {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.dti-download a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.dti-download a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.dti-cta {
  text-align: center;
  padding: 40px 24px;
  margin-top: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a2430 0%, #243040 100%);
  color: var(--ivory);
}

.dti-cta h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.dti-cta p {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 20px;
}

.dti-loading {
  color: var(--text-muted);
  font-style: italic;
}

.dti-updated {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
