
/* =============================================================================
   RACES DE CHIENS - Styles
   ============================================================================= */

/* Hero race */
.eci-inner-hero--race { background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%); color: white; }
.eci-inner-hero--race .eci-breadcrumbs, .eci-inner-hero--race .eci-breadcrumbs a { color: rgba(255,255,255,0.75); }
.eci-inner-hero--race .eci-breadcrumbs a:hover { color: #fff; }
.eci-inner-hero--race .eci-inner-hero-subtitle { color: rgba(255,255,255,0.9); }
.eci-inner-hero--archive { background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%); color: white; }
.eci-inner-hero--archive .eci-breadcrumbs, .eci-inner-hero--archive .eci-breadcrumbs a { color: rgba(255,255,255,0.75); }
.eci-inner-hero--archive .eci-breadcrumbs a:hover { color: #fff; }
.eci-inner-hero--archive .eci-inner-hero-subtitle { color: rgba(255,255,255,0.9); }

/* Niveau badges */
.eci-niveau--facile { background: #16a34a; color: #fff; }
.eci-niveau--moyen { background: #f59e0b; color: #fff; }
.eci-niveau--difficile { background: #ef4444; color: #fff; }

.eci-niveau-badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

/* =============================================================================
   SINGLE RACE LAYOUT
   ============================================================================= */

.eci-single-race { padding: 3rem 0; }

.eci-race-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .eci-race-layout { grid-template-columns: 1fr; }
}

.eci-race-featured-image { margin-bottom: 2rem; border-radius: 12px; overflow: hidden; }
.eci-race-img { width: 100%; height: auto; display: block; }

/* Sidebar card */
.eci-race-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.eci-race-card-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--eci-vert, #16a34a);
}

/* Specs list */
.eci-race-specs { margin: 0; }

.eci-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.eci-spec-row:last-child { border-bottom: none; }
.eci-spec-row dt { font-weight: 500; color: #6b7280; font-size: 0.9rem; }
.eci-spec-row dd { margin: 0; font-weight: 600; color: #111827; font-size: 0.9rem; text-align: right; }

/* CTA card */
.eci-race-card--cta {
    background: linear-gradient(135deg, #065f46, #047857);
    color: #fff;
    border: none;
}
.eci-race-card--cta h4 { color: #fff; margin: 0 0 0.5rem; font-size: 1.05rem; }
.eci-race-card--cta p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin: 0 0 1rem; }
.eci-race-card--cta .btn-primary {
    background: #fff;
    color: #065f46 !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: opacity 0.2s;
}
.eci-race-card--cta .btn-primary:hover { opacity: 0.9; }

/* Similar races */
.eci-race-similar-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.eci-race-similar-list li { margin-bottom: 0.75rem; }
.eci-race-similar-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #111827;
    font-weight: 500;
    transition: color 0.2s;
}
.eci-race-similar-list a:hover { color: var(--eci-vert, #16a34a); }
.eci-race-similar-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }

/* Blocks warning/tips */
.eci-race-block {
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}
.eci-race-block h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.eci-race-block p { margin: 0; font-size: 0.95rem; line-height: 1.6; }

.eci-race-block--warning { background: #fef3c7; border-left: 4px solid #f59e0b; }
.eci-race-block--tips { background: #ecfdf5; border-left: 4px solid #16a34a; }

/* =============================================================================
   ARCHIVE RACE - FILTRES + GRILLE
   ============================================================================= */

.eci-race-filters { padding: 1.5rem 0 0; }

.eci-filters-bar {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.eci-filter-group { display: flex; flex-direction: column; gap: 0.3rem; }
.eci-filter-group label { font-size: 0.8rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.03em; }
.eci-filter-group select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
    min-width: 160px;
}
.eci-filter-group select:focus { border-color: var(--eci-vert, #16a34a); outline: none; box-shadow: 0 0 0 2px rgba(22,163,74,0.15); }

.eci-filter-reset {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #6b7280;
    transition: all 0.2s;
}
.eci-filter-reset:hover { background: #e5e7eb; color: #111; }

.eci-race-count { font-size: 0.9rem; color: #6b7280; margin: 1rem 0 0; }

/* Grid */
.eci-race-archive { padding: 2rem 0 3rem; }

.eci-race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .eci-race-grid { grid-template-columns: 1fr; }
    .eci-filters-bar { flex-direction: column; }
    .eci-filter-group select { min-width: 100%; }
}

/* Card item */
.eci-race-card-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.eci-race-card-item:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }

.eci-race-card-link { text-decoration: none; color: inherit; display: block; }

.eci-race-card-image { position: relative; aspect-ratio: 3/2; overflow: hidden; background: #f3f4f6; }
.eci-race-thumb { width: 100%; height: 100%; object-fit: cover; }
.eci-race-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: #d1d5db; }

.eci-race-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.2em 0.6em;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.eci-race-card-body { padding: 1rem 1.25rem 1.25rem; }

.eci-race-card-item .eci-race-card-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #111827;
}

.eci-race-card-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.eci-race-tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.15em 0.5em;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.eci-race-card-excerpt { font-size: 0.85rem; color: #6b7280; margin: 0; line-height: 1.5; }

/* CTA section (reuse from existing) */
.eci-cta-section { padding: 3rem 0; background: #f9fafb; }
.eci-cta-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.eci-cta-box h2 { margin: 0 0 0.5rem; font-family: var(--font-heading, 'Outfit', sans-serif); }
.eci-cta-box p { color: #6b7280; margin: 0 0 1.5rem; }
.eci-cta-box .btn-primary {
    display: inline-block;
    background: var(--eci-vert, #16a34a);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.eci-cta-box .btn-primary:hover { background: var(--eci-vert-dark, #15803d); }
