/* courses.css — styles spécifiques (design system commun dans base.css) */
.courses-hero { background: var(--sla-pink); padding: 4rem 3rem; color: white; }
.courses-hero h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 60px; text-transform: uppercase; line-height: 0.95; margin-bottom: 0.75rem; }
.courses-hero p { font-size: 17px; opacity: 0.9; max-width: 760px; line-height: 1.65; }

/* photo des coureurs (montagnes en fond) en début de page */
.courses-photo { height: 340px; overflow: hidden; }
.courses-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.format-card { background: white; border-radius: 14px; overflow: hidden; border: 0.5px solid #E2E6EA; margin-bottom: 24px; }
.format-header { padding: 1.5rem 2rem; display: flex; align-items: flex-start; gap: 1.25rem; border-bottom: 1px solid #F0F2F5; }
.format-rank { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 48px; line-height: 1; color: var(--sla-pink); min-width: 52px; }
.format-rank.blue { color: var(--sla-blue-dark); }
.format-rank.green { color: #3B6D11; }
.format-title-block { flex: 1; }
.format-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 26px; text-transform: uppercase; color: var(--sla-dark); }
.format-tagline { font-size: 14px; color: #888; margin-top: 3px; line-height: 1.5; }
.difficulty-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; align-self: flex-start; }
.diff-hard { background: #FCEEF5; color: var(--sla-pink); }
.diff-medium { background: #EBF3F8; color: var(--sla-blue-dark); }
.diff-easy { background: #EAF3DE; color: #3B6D11; }
.format-stats { padding: 1.5rem 2rem; display: grid; gap: 16px; }
.format-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fstat-val { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 900; color: var(--sla-dark); line-height: 1; }
.fstat-key { font-size: 11px; color: #999; margin-top: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.format-desc { background: var(--sla-gray); border-radius: 8px; padding: 14px 16px; font-size: 14px; color: #555; line-height: 1.65; }
.format-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 5px; font-size: 12px; font-weight: 700; background: white; border: 1px solid #E2E6EA; color: #555; }
.boucle-timeline { background: var(--sla-gray); border-radius: 12px; padding: 1.5rem 2rem; margin-top: 0.5rem; }
.boucle-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; color: #666; }
.boucle-row { display: flex; gap: 5px; flex-wrap: wrap; }
.boucle-chip { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 5px; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.5px; }
.boucle-chip.pink { background: var(--sla-dark); color: white; }
.boucle-chip.blue { background: var(--sla-blue-dark); color: white; }
.format-cta { margin-top: 2px; }
.format-link a { color: var(--sla-pink); font-weight: 700; font-size: 14px; text-decoration: none; }
.format-link a:hover { text-decoration: underline; }

.cta-band {
  background: var(--sla-dark); padding: 3rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-band h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 34px; text-transform: uppercase; color: white; }
.cta-band h2 span { color: var(--sla-yellow); }
.cta-band p { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 4px; }
.cta-band-btns { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* gallery strip */
.photo-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 3rem 3rem;
}
.photo-strip-item { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.photo-strip-item:hover img { transform: scale(1.03); }
.photo-strip-item.tall { aspect-ratio: 3/4; }

/* ── RESPONSIVE (mobile / tablette) ── */
@media (max-width: 860px) {
  .courses-hero { padding: 3rem 1.25rem; }
  .courses-hero h1 { font-size: 42px; }
  .courses-photo { height: 220px; }
  .format-header { flex-wrap: wrap; padding: 1.25rem; }
  .format-stats { padding: 1.25rem; }
  .format-stats-row { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 2.5rem 1.25rem; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); padding: 0 1.25rem 2.5rem; }
}
@media (max-width: 520px) {
  .courses-hero h1 { font-size: 34px; }
  .courses-hero p, .page-hero p { font-size: 15px; }
  .format-name { font-size: 22px; }
  .cta-band h2 { font-size: 28px; }
}
