/* =============================================
   CanisTerra — Page d'accueil
   ============================================= */

/* ---- Variables ---- */
:root {
  --ct-brun:    #6B4226;
  --ct-vert:    #3B5323;
  --ct-sable:   #C8A97E;
  --ct-ivoire:  #F5F0E8;
  --ct-texte:   #2C2C2C;
  --ct-blanc:   #ffffff;
}

/* ---- Reset zone home ---- */
#canisterra-home {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ct-texte);
  background: var(--ct-ivoire);
}

/* ---- Conteneur ---- */
.ct-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =====================
   HERO
   ===================== */
.ct-hero {
  background: linear-gradient(160deg, #2C1A0E 0%, #3B2210 60%, #4a2e18 100%);
  color: var(--ct-blanc);
  padding: 100px 32px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ct-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8A97E' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.ct-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.ct-hero-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ct-sable);
  margin-bottom: 20px;
  border: 1px solid var(--ct-sable);
  padding: 5px 14px;
  border-radius: 2px;
}

.ct-hero-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--ct-blanc);
  line-height: 1.15;
  margin: 0 0 20px;
}

.ct-hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin: 0 0 40px;
}

.ct-hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Boutons ---- */
.ct-btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--ct-sable);
  color: #1a0e07 !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 3px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
}

.ct-btn-primary:hover {
  background: #d9bb8e;
  transform: translateY(-1px);
}

.ct-btn-secondary {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: var(--ct-blanc) !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 3px;
  transition: border-color 0.2s, background 0.2s;
}

.ct-btn-secondary:hover {
  border-color: var(--ct-sable);
  background: rgba(200,169,126,0.1);
}

/* =====================
   STATS
   ===================== */
.ct-stats {
  background: var(--ct-vert);
  padding: 40px 32px;
}

.ct-stats-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.ct-stat {
  text-align: center;
  color: var(--ct-blanc);
}

.ct-stat-number {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ct-sable);
  line-height: 1;
  margin-bottom: 6px;
}

.ct-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
}

/* =====================
   PILIERS
   ===================== */
.ct-pillars {
  padding: 80px 0;
  background: var(--ct-ivoire);
}

.ct-section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--ct-brun);
  text-align: center;
  margin: 0 0 12px;
}

.ct-section-sub {
  text-align: center;
  color: #666;
  font-size: 1.05rem;
  margin: 0 0 48px;
}

.ct-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ct-pillar {
  background: var(--ct-blanc);
  border: 1px solid #e8ddd0;
  border-radius: 6px;
  padding: 32px 28px;
  text-decoration: none !important;
  color: var(--ct-texte);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: block;
}

.ct-pillar:hover {
  border-color: var(--ct-sable);
  box-shadow: 0 4px 20px rgba(107,66,38,0.1);
  transform: translateY(-2px);
}

.ct-pillar-icon {
  width: 40px;
  height: 40px;
  color: var(--ct-brun);
  margin-bottom: 18px;
}

.ct-pillar-icon svg {
  width: 100%;
  height: 100%;
}

.ct-pillar h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ct-texte);
  margin: 0 0 12px;
}

.ct-pillar p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.65;
  margin: 0 0 16px;
}

.ct-pillar-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ct-vert);
}

/* =====================
   RACES À LA UNE
   ===================== */
.ct-featured-races {
  padding: 80px 0;
  background: #ede8df;
}

.ct-races-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.ct-race-card {
  background: var(--ct-blanc);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--ct-texte);
  border: 1px solid #e0d8ce;
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

.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;
}

.ct-race-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ct-sable);
}

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

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

.ct-race-card-body h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ct-texte);
  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: var(--ct-brun);
  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.55;
  margin: 0;
}

.ct-section-cta {
  text-align: center;
}

/* =====================
   PHILOSOPHIE
   ===================== */
.ct-philosophy {
  padding: 80px 0;
  background: var(--ct-ivoire);
}

.ct-philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.ct-philosophy-text h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--ct-brun);
  margin: 0 0 20px;
  line-height: 1.3;
}

.ct-philosophy-text p {
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1em;
}

.ct-philosophy-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ct-value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ct-value-icon {
  font-size: 1.2rem;
  color: var(--ct-sable);
  margin-top: 2px;
  flex-shrink: 0;
}

.ct-value strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ct-texte);
  margin-bottom: 4px;
}

.ct-value p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

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

  .ct-philosophy-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .ct-hero {
    padding: 70px 20px 60px;
  }

  .ct-container {
    padding: 0 20px;
  }

  .ct-pillars,
  .ct-featured-races,
  .ct-philosophy {
    padding: 56px 0;
  }

  .ct-pillars-grid,
  .ct-races-grid {
    grid-template-columns: 1fr;
  }

  .ct-stats-grid {
    gap: 32px;
  }

  .ct-hero-cta {
    flex-direction: column;
    align-items: center;
  }
}
