/* ══════════════════════════════════════
   RACES DE CHIENS — Style principal
   ══════════════════════════════════════ */

:root {
    --rdc-accent: #c45d35;
    --rdc-accent-light: #fef0eb;
    --rdc-accent-dark: #a04a2a;
    --rdc-text: #2c2c2e;
    --rdc-text-dim: #6b6b6f;
    --rdc-bg: #faf9f6;
    --rdc-surface: #ffffff;
    --rdc-border: #e8e5df;
    --rdc-green: #4a8c6f;
    --rdc-red: #c0392b;
    --rdc-yellow: #d4a017;
    --rdc-radius: 10px;
    --rdc-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── Layout ── */
.rdc-layout {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}
.rdc-layout--wide { max-width: 1100px; }
.rdc-layout--narrow { max-width: 720px; }

.rdc-two-cols {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .rdc-two-cols { grid-template-columns: 1fr; }
    .rdc-sidebar { order: -1; }
}

/* ── Breadcrumb ── */
.rdc-breadcrumb {
    font-size: 13px;
    color: var(--rdc-text-dim);
    margin-bottom: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rdc-border);
}
.rdc-breadcrumb a { color: var(--rdc-accent); text-decoration: none; }
.rdc-breadcrumb a:hover { text-decoration: underline; }
.rdc-breadcrumb-sep { margin: 0 8px; color: var(--rdc-border); }

/* ── Article header ── */
.rdc-article-header { margin-bottom: 28px; }
.rdc-article-header h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--rdc-text);
}
.rdc-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--rdc-text-dim);
}
.rdc-article-hero { margin-bottom: 28px; border-radius: var(--rdc-radius); overflow: hidden; }
.rdc-article-hero img { width: 100%; height: auto; display: block; }

/* ── Type badges ── */
.rdc-type-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}
.rdc-type-badge--pillar { background: #f3effe; color: #7c5cbf; }
.rdc-type-badge--faq { background: #eef4fa; color: #3b6fa0; }

.rdc-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
    background: var(--rdc-accent-light);
    color: var(--rdc-accent);
}
.rdc-badge--outline {
    background: transparent;
    border: 1px solid var(--rdc-border);
    color: var(--rdc-text-dim);
}

/* ── Content styling ── */
.rdc-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rdc-border);
    color: var(--rdc-text);
}
.rdc-content h3 {
    font-size: 1.15rem;
    margin: 28px 0 12px;
    color: var(--rdc-text);
}
.rdc-content p { margin-bottom: 16px; line-height: 1.75; color: var(--rdc-text); }
.rdc-content ul, .rdc-content ol { margin: 0 0 16px 24px; line-height: 1.75; }
.rdc-content img { max-width: 100%; height: auto; border-radius: var(--rdc-radius); margin: 16px 0; }
.rdc-content a { color: var(--rdc-accent); text-decoration: underline; }
.rdc-content a:hover { color: var(--rdc-accent-dark); }

/* ── Callout boxes ── */
.rdc-callout {
    border-radius: var(--rdc-radius);
    padding: 20px 24px;
    margin: 24px 0;
    border-left: 4px solid;
}
.rdc-callout h2 { font-size: 1.1rem; margin: 0 0 12px; border: none; padding: 0; }
.rdc-callout--highlight { background: var(--rdc-accent-light); border-color: var(--rdc-accent); }
.rdc-callout--info { background: #eef4fa; border-color: #3b6fa0; }
.rdc-callout ul { margin: 8px 0 0 20px; }
.rdc-callout li { margin-bottom: 6px; }

/* ── Card grids ── */
.rdc-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0 32px;
}
.rdc-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rdc-card-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .rdc-card-grid { grid-template-columns: 1fr; }
    .rdc-card-grid--3 { grid-template-columns: 1fr 1fr; }
    .rdc-card-grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .rdc-card-grid--3, .rdc-card-grid--4 { grid-template-columns: 1fr; }
}

.rdc-card-mini {
    display: block;
    background: var(--rdc-surface);
    border: 1px solid var(--rdc-border);
    border-radius: var(--rdc-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--rdc-text);
    transition: box-shadow 0.2s, transform 0.2s;
}
.rdc-card-mini:hover {
    box-shadow: var(--rdc-shadow);
    transform: translateY(-2px);
}
.rdc-card-mini img { width: 100%; height: 180px; object-fit: cover; display: block; }
.rdc-card-mini h3 { font-size: 0.95rem; padding: 12px 16px 4px; margin: 0; }
.rdc-card-mini p { font-size: 0.82rem; color: var(--rdc-text-dim); padding: 0 16px 12px; margin: 0; }
.rdc-card-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--rdc-accent);
    padding: 8px 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Silo cards ── */
.rdc-silo-card {
    display: block;
    background: var(--rdc-surface);
    border: 1px solid var(--rdc-border);
    border-radius: var(--rdc-radius);
    padding: 24px;
    text-decoration: none;
    color: var(--rdc-text);
    transition: all 0.2s;
}
.rdc-silo-card:hover { border-color: var(--rdc-accent); box-shadow: var(--rdc-shadow); }
.rdc-silo-card h2, .rdc-silo-card h3 { font-size: 1rem; margin: 0 0 4px; }
.rdc-silo-card p { font-size: 0.85rem; color: var(--rdc-text-dim); margin: 0; }
.rdc-silo-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.rdc-silo-count { font-size: 0.8rem; color: var(--rdc-text-dim); }
.rdc-silo-card--featured { border-color: var(--rdc-accent); background: var(--rdc-accent-light); }

/* ── Race hero ── */
.rdc-race-hero { margin-bottom: 32px; }
.rdc-race-hero-img { border-radius: var(--rdc-radius); overflow: hidden; margin-bottom: 20px; }
.rdc-race-hero-img img { width: 100%; height: auto; display: block; max-height: 500px; object-fit: cover; }
.rdc-race-hero h1 { font-size: 2.2rem; margin-bottom: 8px; }
.rdc-race-badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Race identity card ── */
.rdc-race-card { margin-bottom: 32px; }
.rdc-race-card h2 { font-size: 1.3rem; margin-bottom: 16px; }
.rdc-race-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.rdc-race-card-item {
    background: var(--rdc-bg);
    border: 1px solid var(--rdc-border);
    border-radius: 8px;
    padding: 12px 16px;
}
.rdc-race-card-label { display: block; font-size: 0.75rem; color: var(--rdc-text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.rdc-race-card-value { font-size: 0.95rem; font-weight: 600; color: var(--rdc-text); }

/* ── Rating bars ── */
.rdc-ratings { margin: 24px 0 32px; max-width: 500px; }
.rdc-rating-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rdc-rating-label { flex: 0 0 130px; font-size: 0.85rem; color: var(--rdc-text-dim); }
.rdc-rating-bar { flex: 1; height: 10px; background: var(--rdc-border); border-radius: 5px; overflow: hidden; }
.rdc-rating-fill { height: 100%; background: var(--rdc-accent); border-radius: 5px; transition: width 0.5s ease; }
.rdc-rating-value { flex: 0 0 35px; font-size: 0.8rem; color: var(--rdc-text-dim); text-align: right; }

/* ── FAQ accordion ── */
.rdc-faq-section { margin: 40px 0; }
.rdc-faq-section > h2 { font-size: 1.4rem; margin-bottom: 16px; }
.rdc-faq-list { border: 1px solid var(--rdc-border); border-radius: var(--rdc-radius); overflow: hidden; }
.rdc-faq-item { border-bottom: 1px solid var(--rdc-border); }
.rdc-faq-item:last-child { border-bottom: none; }
.rdc-faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}
.rdc-faq-item summary:hover { background: var(--rdc-bg); }
.rdc-faq-item summary::-webkit-details-marker { display: none; }
.rdc-faq-item summary::after { content: '+'; margin-left: auto; font-size: 1.2rem; color: var(--rdc-text-dim); }
.rdc-faq-item[open] summary::after { content: '−'; }
.rdc-faq-answer { padding: 0 20px 16px; font-size: 0.9rem; line-height: 1.7; color: var(--rdc-text); }
.rdc-faq--ok { border-left: 3px solid var(--rdc-green); }
.rdc-faq--no { border-left: 3px solid var(--rdc-red); }
.rdc-faq--warn { border-left: 3px solid var(--rdc-yellow); }
.rdc-faq-status-icon { font-size: 1.1rem; }

/* ── Product cards (guide) ── */
.rdc-top3 { margin: 24px 0 40px; }
.rdc-top3 h2 { font-size: 1.4rem; margin-bottom: 16px; }
.rdc-top3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .rdc-top3-grid { grid-template-columns: 1fr; } }
.rdc-top3-card {
    background: var(--rdc-surface);
    border: 1px solid var(--rdc-border);
    border-radius: var(--rdc-radius);
    padding: 24px;
    text-align: center;
}
.rdc-top3-winner { border-color: var(--rdc-accent); box-shadow: 0 4px 20px rgba(196,93,53,0.12); }
.rdc-top3-medal { font-size: 2rem; margin-bottom: 8px; }
.rdc-top3-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.rdc-top3-note { font-size: 0.9rem; margin-bottom: 4px; }
.rdc-top3-prix { font-size: 0.85rem; color: var(--rdc-text-dim); margin-bottom: 12px; }
.rdc-stars { color: var(--rdc-yellow); letter-spacing: 1px; }

.rdc-product-details { margin-bottom: 40px; }
.rdc-product-card {
    background: var(--rdc-surface);
    border: 1px solid var(--rdc-border);
    border-radius: var(--rdc-radius);
    padding: 24px;
    margin-bottom: 16px;
}
.rdc-product-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.rdc-product-rang { font-size: 0.85rem; color: var(--rdc-text-dim); margin-right: 8px; }
.rdc-product-card h3 { display: inline; font-size: 1.1rem; }
.rdc-product-note { font-size: 0.9rem; }
.rdc-product-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .rdc-product-body { grid-template-columns: 1fr; } }
.rdc-product-pros ul, .rdc-product-cons ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: 0.9rem; }
.rdc-product-pros li, .rdc-product-cons li { margin-bottom: 4px; }
.rdc-product-prix { font-weight: 600; color: var(--rdc-accent); grid-column: 1 / -1; }

/* ── Buttons ── */
.rdc-btn {
    display: inline-block;
    background: var(--rdc-accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.rdc-btn:hover { background: var(--rdc-accent-dark); color: #fff; }
.rdc-btn-large { padding: 14px 32px; font-size: 1rem; }
.rdc-cta-center { text-align: center; margin: 24px 0; }

/* ── Sidebar ── */
.rdc-sidebar-box {
    background: var(--rdc-bg);
    border: 1px solid var(--rdc-border);
    border-radius: var(--rdc-radius);
    padding: 20px;
    margin-bottom: 16px;
}
.rdc-sidebar-box h3 { font-size: 0.95rem; margin-bottom: 12px; }
.rdc-sidebar-list { list-style: none; padding: 0; }
.rdc-sidebar-list li { margin-bottom: 8px; font-size: 0.85rem; }
.rdc-sidebar-list a { color: var(--rdc-text); text-decoration: none; }
.rdc-sidebar-list a:hover { color: var(--rdc-accent); }
.rdc-sidebar--sticky { position: sticky; top: 100px; }

/* ── TOC (Table of Contents) ── */
.rdc-toc {
    background: var(--rdc-bg);
    border: 1px solid var(--rdc-border);
    border-radius: var(--rdc-radius);
    padding: 20px 24px;
    margin-bottom: 32px;
}
.rdc-toc h2 { font-size: 1rem; margin: 0 0 12px; border: none; padding: 0; }
.rdc-toc ol { margin: 0; padding-left: 20px; }
.rdc-toc li { margin-bottom: 6px; font-size: 0.9rem; }
.rdc-toc a { color: var(--rdc-text); text-decoration: none; }
.rdc-toc a:hover { color: var(--rdc-accent); }

/* ── Home hero ── */
.rdc-hero {
    text-align: center;
    padding: 60px 20px 48px;
}
.rdc-hero h1 { font-size: 2.4rem; line-height: 1.3; margin-bottom: 16px; }
.rdc-hero h1 em { font-style: normal; color: var(--rdc-accent); }
.rdc-hero p { font-size: 1.1rem; color: var(--rdc-text-dim); max-width: 600px; margin: 0 auto; }

@media (max-width: 768px) {
    .rdc-hero h1 { font-size: 1.6rem; }
    .rdc-article-header h1 { font-size: 1.5rem; }
    .rdc-race-hero h1 { font-size: 1.6rem; }
}

/* ── Home sections ── */
.rdc-home-silos, .rdc-home-races, .rdc-home-articles { margin-bottom: 48px; }
.rdc-home-races h2, .rdc-home-articles h2 { font-size: 1.4rem; margin-bottom: 16px; }

.rdc-race-thumb {
    display: block;
    text-decoration: none;
    color: var(--rdc-text);
    text-align: center;
    transition: transform 0.2s;
}
.rdc-race-thumb:hover { transform: translateY(-4px); }
.rdc-race-thumb img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--rdc-radius); margin-bottom: 8px; }
.rdc-race-thumb h3 { font-size: 0.9rem; margin: 0; }

/* ── CTA Banner ── */
.rdc-cta-banner {
    background: var(--rdc-accent-light);
    border: 2px solid var(--rdc-accent);
    border-radius: var(--rdc-radius);
    padding: 48px 32px;
    text-align: center;
    margin: 48px 0;
}
.rdc-cta-banner h2 { font-size: 1.6rem; margin-bottom: 8px; }
.rdc-cta-banner p { color: var(--rdc-text-dim); margin-bottom: 20px; }

/* ── Silo header ── */
.rdc-silo-header { margin-bottom: 32px; }
.rdc-silo-header h1 { font-size: 2rem; margin-bottom: 12px; }
.rdc-silo-intro { font-size: 1.05rem; color: var(--rdc-text-dim); line-height: 1.7; max-width: 700px; }

/* ── Races archive grid ── */
.rdc-races-grid { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.rdc-race-list-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--rdc-surface);
    border: 1px solid var(--rdc-border);
    border-radius: var(--rdc-radius);
    padding: 12px;
    text-decoration: none;
    color: var(--rdc-text);
    transition: box-shadow 0.2s;
}
.rdc-race-list-card:hover { box-shadow: var(--rdc-shadow); }
.rdc-race-list-img { flex: 0 0 120px; }
.rdc-race-list-img img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.rdc-race-list-info h2 { font-size: 1.05rem; margin: 0 0 4px; }
.rdc-race-list-specs { display: flex; gap: 12px; font-size: 0.8rem; color: var(--rdc-text-dim); margin-bottom: 4px; }
.rdc-race-list-char { font-size: 0.85rem; color: var(--rdc-text-dim); margin: 0; }

/* ── Filters ── */
.rdc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rdc-filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    border: 1px solid var(--rdc-border);
    text-decoration: none;
    color: var(--rdc-text-dim);
    background: var(--rdc-surface);
    transition: all 0.2s;
}
.rdc-filter-btn:hover, .rdc-filter-btn--active { background: var(--rdc-accent); color: #fff; border-color: var(--rdc-accent); }

/* ── Pagination ── */
.rdc-pagination { margin: 32px 0; text-align: center; }
.rdc-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.rdc-pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid var(--rdc-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--rdc-text);
    font-size: 0.9rem;
}
.rdc-pagination .page-numbers.current { background: var(--rdc-accent); color: #fff; border-color: var(--rdc-accent); }

/* ── Races similaires ── */
.rdc-races-similaires { margin: 40px 0; }
.rdc-races-similaires h2 { font-size: 1.3rem; margin-bottom: 16px; }

/* ── Related section ── */
.rdc-related { margin: 40px 0; }
.rdc-related h2 { font-size: 1.3rem; margin-bottom: 16px; }

/* ── Pillar-specific ── */
.rdc-pillar-intro { font-size: 1.05rem; line-height: 1.8; margin-bottom: 24px; color: var(--rdc-text); }
.rdc-satellites { margin: 40px 0; }
.rdc-satellites h2 { font-size: 1.3rem; margin-bottom: 16px; }

/* ── Stars ── */
.rdc-stars {
    color: #d4a017;
    letter-spacing: 2px;
    font-size: 1.1em;
    line-height: 1;
    display: inline-block;
}

.rdc-star-half {
    display: inline-block;
    position: relative;
    color: #ddd;
}
.rdc-star-half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    width: 50%;
    color: #d4a017;
}