/* Archive Races — CanisTerra */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Inter:wght@400;500&display=swap');

.ct-archive-races {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.ct-archive-header {
  text-align: center;
  margin-bottom: 48px;
}

.ct-archive-header h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #6B4226;
  margin: 0 0 12px;
}

.ct-archive-header p {
  color: #666;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Alphabet */
.ct-alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 48px;
}

.ct-alpha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #C8A97E;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6B4226;
  text-decoration: none;
  background: #fff;
  transition: background 0.15s, color 0.15s;
}

.ct-alpha-all {
  width: auto;
  padding: 0 14px;
}

.ct-alpha-btn:hover,
.ct-alpha-btn.active {
  background: #6B4226;
  color: #fff;
  border-color: #6B4226;
}

/* Titre section */
.ct-races-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #3B5323;
  margin: 0 0 28px;
  padding-bottom: 10px;
  border-bottom: 2px solid #C8A97E;
}

/* Grille */
.ct-races-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ct-race-card {
  background: #fff;
  border: 1px solid #e0d8ce;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: #2C2C2C;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.15s;
}

.ct-race-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.ct-race-card-img {
  height: 180px;
  overflow: hidden;
  background: #e8ddd0;
}

.ct-race-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ct-race-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C8A97E;
}

.ct-race-card-img--placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.ct-race-card-body {
  padding: 18px;
  flex: 1;
}

.ct-race-card-body h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2C2C2C;
  margin: 0 0 6px;
}

.ct-race-card-groupe {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6B4226;
  background: #f5ede0;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.ct-race-card-body p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.ct-archive-cta {
  text-align: center;
  margin-top: 32px;
  color: #999;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .ct-races-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .ct-archive-races { padding: 32px 16px 60px; }
  .ct-races-grid { grid-template-columns: 1fr; }
  .ct-alpha-btn { width: 34px; height: 34px; font-size: 0.8rem; }
}
