/* =============================================================================
   Credit Score USA — France-USA-Net.Com
   Contraste fond clair/sombre · schéma 12 mois · tableau FICO/VantageScore
   ============================================================================= */

/* =============================================================================
   Credit Score USA — France-USA-Net.Com
   Contraste fond clair/sombre · schéma 12 mois · tableau FICO/VantageScore
   ============================================================================= */

.credit-page .travel-hero,
.credit-page .travel-hero-text,
.credit-page .travel-hero-text h1,
.credit-page .travel-hero-text .lead,
.credit-page .travel-hero-text .eyebrow {
  color: var(--guide-text-on-dark, #f1f5f9);
}

.credit-page .section-head h2 {
  color: var(--guide-text-on-dark, #f1f5f9);
}

.credit-page .prose,
.credit-page .prose p {
  color: var(--guide-text-muted-on-dark, #e2e8f0);
}

.credit-page .toc {
  background: var(--guide-surface-light, linear-gradient(145deg, #fdfbf8 0%, #fff 100%));
  border: 1px solid rgba(44, 95, 78, 0.18);
  color: var(--guide-text-muted-on-light, #3d3834);
}

.credit-page .toc-head h2 {
  color: var(--guide-accent, #2c5f4e);
}

.credit-page .toc-links a {
  color: var(--guide-link-on-light, #1d4ed8);
}

.credit-page .breadcrumb {
  color: var(--guide-text-muted-on-dark, #e2e8f0);
}

.credit-page .breadcrumb a {
  color: var(--guide-link-on-dark, #93c5fd);
}

.credit-page .credit-timeline-section,
.credit-page .credit-compare-section,
.credit-page .credit-checklist-section {
  scroll-margin-top: 90px;
}

/* Cartes claires sur fond sombre du main */
.credit-page .credit-panel {
  background: var(--guide-surface-light, linear-gradient(145deg, #fdfbf8 0%, #fff 100%));
  border: 1px solid rgba(44, 95, 78, 0.2);
  border-radius: var(--radius-md, 12px);
  padding: 22px 24px;
  color: var(--guide-text-muted-on-light, #3d3834);
  box-shadow: 0 2px 14px rgba(11, 16, 32, 0.06);
}

.credit-page .credit-panel h3 {
  color: var(--guide-accent, #2c5f4e);
  font-family: var(--font-title);
  margin: 0 0 10px;
}

.credit-page .credit-panel p,
.credit-page .credit-panel li {
  color: var(--guide-text-muted-on-light, #3d3834);
  line-height: 1.65;
}

.credit-page .credit-panel strong {
  color: var(--guide-text-on-light, #14110e);
}

.credit-page .credit-panel a {
  color: var(--guide-link-on-light, #1d4ed8);
}

/* Schéma 12 mois — timeline horizontale */
.credit-timeline {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  margin: 24px 0 12px;
  position: relative;
}

.credit-timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 4%;
  right: 4%;
  height: 4px;
  background: linear-gradient(90deg, var(--guide-accent, #2c5f4e), var(--guide-accent-gold, #f4d58a));
  border-radius: 4px;
  z-index: 0;
}

.credit-timeline-month {
  position: relative;
  z-index: 1;
  text-align: center;
  min-width: 0;
}

.credit-timeline-dot {
  width: 14px;
  height: 14px;
  margin: 21px auto 10px;
  background: var(--guide-accent-gold, #f4d58a);
  border: 3px solid var(--guide-accent, #2c5f4e);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(44, 95, 78, 0.15);
}

.credit-timeline-month.is-milestone .credit-timeline-dot {
  width: 18px;
  height: 18px;
  margin-top: 19px;
  background: var(--guide-accent, #2c5f4e);
  border-color: var(--guide-accent-gold, #f4d58a);
}

.credit-timeline-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--guide-accent-dark, #1a3d32);
  letter-spacing: 0.02em;
}

.credit-timeline-card {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.credit-timeline-phase {
  background: rgba(44, 95, 78, 0.07);
  border-left: 4px solid var(--guide-accent, #2c5f4e);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
}

.credit-timeline-phase h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--guide-accent-dark, #1a3d32);
}

.credit-timeline-phase p {
  margin: 0;
  font-size: 0.88rem;
  text-align: justify;
}

.credit-score-band {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(44, 95, 78, 0.12);
  color: var(--guide-accent-dark, #1a3d32);
}

/* Tableau FICO vs VantageScore */
.credit-compare-wrap {
  overflow-x: auto;
  margin-top: 16px;
  -webkit-overflow-scrolling: touch;
}

.credit-compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.credit-compare-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--guide-accent-dark, #1a3d32);
  padding-bottom: 10px;
}

.credit-compare-table th,
.credit-compare-table td {
  padding: 12px 14px;
  border: 1px solid rgba(44, 95, 78, 0.2);
  text-align: left;
  vertical-align: top;
  color: var(--guide-text-muted-on-light, #3d3834);
}

.credit-compare-table thead th {
  background: var(--guide-accent, #2c5f4e);
  color: #fff;
  font-weight: 700;
}

.credit-compare-table tbody tr:nth-child(even) {
  background: rgba(44, 95, 78, 0.05);
}

.credit-compare-table tbody th {
  background: rgba(44, 95, 78, 0.1);
  color: var(--guide-accent-dark, #1a3d32);
  font-weight: 600;
  width: 28%;
}

.credit-compare-table a {
  color: var(--guide-link-on-light, #1d4ed8);
  word-break: break-word;
}

/* Checklist téléchargeable */
.credit-checklist-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
}

.credit-checklist-box .checklist-preview {
  flex: 1 1 280px;
}

.credit-checklist-box ul {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
}

.credit-checklist-box li {
  padding: 4px 0 4px 26px;
  position: relative;
  font-size: 0.9rem;
}

.credit-checklist-box li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--guide-accent, #2c5f4e);
  font-weight: 700;
}

.credit-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--guide-accent, #2c5f4e), var(--guide-accent-dark, #1a3d32));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(44, 95, 78, 0.35);
  white-space: nowrap;
}

.credit-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 95, 78, 0.45);
}

.credit-download-btn:focus-visible {
  outline: 3px solid var(--guide-accent-gold, #f4d58a);
  outline-offset: 3px;
}

.credit-download-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.credit-source-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--guide-text-muted-on-light, #3d3834);
  font-style: italic;
}

@media (max-width: 900px) {
  .credit-timeline {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 16px;
  }

  .credit-timeline::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .credit-timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .credit-download-btn {
    width: 100%;
    justify-content: center;
  }
}
