/* ==========================================================================
   Reprogrammation-Moteurs.com - Premium Dark Racing Theme
   Prefix: repcom
   Fonts: Barlow + Montserrat
   Colors: Dark gray/black bg, #E63946 red, #FF6B35 orange accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- CSS Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --repcom-primary: #E63946;
    --repcom-primary-dark: #B71C1C;
    --repcom-primary-light: #FF6B6B;
    --repcom-accent: #FF6B35;
    --repcom-accent-light: #FF8F5E;
    --repcom-bg-dark: #0A0A0A;
    --repcom-bg-medium: #141414;
    --repcom-bg-card: #1A1A1A;
    --repcom-bg-card-hover: #222222;
    --repcom-text-primary: #F5F5F5;
    --repcom-text-secondary: #B0B0B0;
    --repcom-text-muted: #777777;
    --repcom-border: #2A2A2A;
    --repcom-border-light: #333333;
    --repcom-shadow: rgba(0, 0, 0, 0.4);
    --repcom-shadow-red: rgba(230, 57, 70, 0.15);
    --repcom-gradient-hero: linear-gradient(135deg, #0A0A0A 0%, #1A0A0A 50%, #0A0A0A 100%);
    --repcom-gradient-card: linear-gradient(145deg, #1A1A1A 0%, #141414 100%);
    --repcom-radius-sm: 6px;
    --repcom-radius-md: 12px;
    --repcom-radius-lg: 20px;
    --repcom-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--repcom-bg-dark);
    color: var(--repcom-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: var(--repcom-primary);
    text-decoration: none;
    transition: color var(--repcom-transition);
}

a:hover {
    color: var(--repcom-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Container --- */
.repcom-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.repcom-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.repcom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--repcom-border);
    transition: all var(--repcom-transition);
}

.repcom-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.repcom-logo {
    font-family: 'Barlow', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--repcom-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.repcom-logo span {
    color: var(--repcom-primary);
}

.repcom-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.repcom-nav a {
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--repcom-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding: 4px 0;
}

.repcom-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--repcom-primary);
    transition: width var(--repcom-transition);
}

.repcom-nav a:hover {
    color: var(--repcom-text-primary);
}

.repcom-nav a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.repcom-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--repcom-gradient-hero);
    padding-top: 72px;
    overflow: hidden;
}

.repcom-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.repcom-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--repcom-bg-dark) 0%, transparent 100%);
    pointer-events: none;
}

.repcom-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.repcom-hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(230, 57, 70, 0.12);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 50px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--repcom-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.repcom-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--repcom-text-primary) 0%, var(--repcom-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.repcom-hero h1 strong {
    -webkit-text-fill-color: var(--repcom-primary);
}

.repcom-hero-desc {
    font-size: 1.15rem;
    color: var(--repcom-text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.repcom-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--repcom-primary);
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--repcom-radius-sm);
    transition: all var(--repcom-transition);
    border: none;
    cursor: pointer;
}

.repcom-hero-cta:hover {
    background: var(--repcom-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--repcom-shadow-red);
}

/* --- Racing Stripe Decoration --- */
.repcom-stripe {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--repcom-primary) 20%, var(--repcom-accent) 80%, transparent 100%);
    opacity: 0.6;
}

/* --- Trust Badges --- */
.repcom-trust {
    padding: 60px 0;
    background: var(--repcom-bg-medium);
    border-top: 1px solid var(--repcom-border);
    border-bottom: 1px solid var(--repcom-border);
}

.repcom-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.repcom-trust-item {
    text-align: center;
    padding: 28px 20px;
    background: var(--repcom-gradient-card);
    border: 1px solid var(--repcom-border);
    border-radius: var(--repcom-radius-md);
    transition: all var(--repcom-transition);
}

.repcom-trust-item:hover {
    border-color: var(--repcom-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--repcom-shadow);
}

.repcom-trust-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.repcom-trust-number {
    font-family: 'Barlow', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--repcom-primary);
    margin-bottom: 4px;
}

.repcom-trust-label {
    font-size: 0.85rem;
    color: var(--repcom-text-muted);
    font-weight: 500;
}

/* --- Section Common --- */
.repcom-section {
    padding: 80px 0;
}

.repcom-section-dark {
    background: var(--repcom-bg-medium);
}

.repcom-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
}

.repcom-section-title span {
    color: var(--repcom-primary);
}

.repcom-section-subtitle {
    text-align: center;
    color: var(--repcom-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Services Grid --- */
.repcom-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.repcom-service-card {
    padding: 36px 28px;
    background: var(--repcom-gradient-card);
    border: 1px solid var(--repcom-border);
    border-radius: var(--repcom-radius-md);
    transition: all var(--repcom-transition);
    position: relative;
    overflow: hidden;
}

.repcom-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--repcom-primary), var(--repcom-accent));
    opacity: 0;
    transition: opacity var(--repcom-transition);
}

.repcom-service-card:hover {
    border-color: var(--repcom-primary);
    transform: translateY(-6px);
    box-shadow: 0 16px 50px var(--repcom-shadow);
}

.repcom-service-card:hover::before {
    opacity: 1;
}

.repcom-service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.1);
    border-radius: var(--repcom-radius-sm);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.repcom-service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--repcom-text-primary);
}

.repcom-service-card p {
    font-size: 0.9rem;
    color: var(--repcom-text-secondary);
    line-height: 1.7;
}

/* --- Articles Grid --- */
.repcom-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.repcom-article-card {
    background: var(--repcom-gradient-card);
    border: 1px solid var(--repcom-border);
    border-radius: var(--repcom-radius-md);
    overflow: hidden;
    transition: all var(--repcom-transition);
}

.repcom-article-card:hover {
    border-color: var(--repcom-border-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--repcom-shadow);
}

.repcom-article-thumb {
    height: 200px;
    background: linear-gradient(135deg, var(--repcom-bg-card) 0%, var(--repcom-bg-medium) 100%);
    position: relative;
    overflow: hidden;
}

.repcom-article-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--repcom-bg-card) 0%, transparent 100%);
}

.repcom-article-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    background: var(--repcom-primary);
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    z-index: 2;
}

.repcom-article-body {
    padding: 24px;
}

.repcom-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--repcom-text-muted);
}

.repcom-article-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.repcom-article-card h3 a {
    color: var(--repcom-text-primary);
}

.repcom-article-card h3 a:hover {
    color: var(--repcom-primary);
}

.repcom-article-excerpt {
    font-size: 0.88rem;
    color: var(--repcom-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.repcom-article-link {
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--repcom-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.repcom-article-link:hover {
    color: var(--repcom-accent);
}

/* --- CTA Section --- */
.repcom-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1A0505 0%, #0A0A0A 50%, #1A0505 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.repcom-cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.repcom-cta-section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.repcom-cta-section p {
    color: var(--repcom-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.repcom-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: var(--repcom-primary);
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--repcom-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--repcom-transition);
}

.repcom-btn-primary:hover {
    background: var(--repcom-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--repcom-shadow-red);
}

.repcom-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: transparent;
    color: var(--repcom-primary);
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--repcom-primary);
    border-radius: var(--repcom-radius-sm);
    cursor: pointer;
    transition: all var(--repcom-transition);
}

.repcom-btn-outline:hover {
    background: var(--repcom-primary);
    color: #fff;
}

/* --- Footer --- */
.repcom-footer {
    padding: 60px 0 30px;
    background: var(--repcom-bg-medium);
    border-top: 1px solid var(--repcom-border);
}

.repcom-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.repcom-footer-brand {
    font-family: 'Barlow', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.repcom-footer-brand span {
    color: var(--repcom-primary);
}

.repcom-footer-desc {
    font-size: 0.88rem;
    color: var(--repcom-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.repcom-footer h4 {
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--repcom-text-primary);
    margin-bottom: 20px;
}

.repcom-footer-links {
    list-style: none;
}

.repcom-footer-links li {
    margin-bottom: 10px;
}

.repcom-footer-links a {
    font-size: 0.88rem;
    color: var(--repcom-text-secondary);
    transition: color var(--repcom-transition);
}

.repcom-footer-links a:hover {
    color: var(--repcom-primary);
}

.repcom-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--repcom-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--repcom-text-muted);
}

/* --- Single Article --- */
.repcom-single {
    padding-top: 100px;
    padding-bottom: 80px;
}

.repcom-single-header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.repcom-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.82rem;
    color: var(--repcom-text-muted);
}

.repcom-breadcrumb a {
    color: var(--repcom-text-muted);
}

.repcom-breadcrumb a:hover {
    color: var(--repcom-primary);
}

.repcom-breadcrumb span.repcom-sep {
    color: var(--repcom-border-light);
}

.repcom-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--repcom-text-muted);
}

.repcom-single-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.repcom-single h1 {
    font-size: 2.8rem;
    line-height: 1.15;
}

/* --- Article Content --- */
.repcom-content {
    max-width: 760px;
    margin: 0 auto;
}

.repcom-content h2 {
    font-size: 1.6rem;
    margin: 48px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--repcom-border);
    color: var(--repcom-text-primary);
}

.repcom-content h3 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
    color: var(--repcom-text-primary);
}

.repcom-content p {
    margin-bottom: 20px;
    color: var(--repcom-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.repcom-content ul, .repcom-content ol {
    margin: 0 0 24px 24px;
    color: var(--repcom-text-secondary);
}

.repcom-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.repcom-content blockquote {
    margin: 32px 0;
    padding: 20px 28px;
    background: rgba(230, 57, 70, 0.05);
    border-left: 4px solid var(--repcom-primary);
    border-radius: 0 var(--repcom-radius-sm) var(--repcom-radius-sm) 0;
    color: var(--repcom-text-secondary);
    font-style: italic;
}

.repcom-content strong {
    color: var(--repcom-text-primary);
    font-weight: 600;
}

.repcom-content a {
    color: var(--repcom-primary);
    border-bottom: 1px solid rgba(230, 57, 70, 0.3);
}

.repcom-content a:hover {
    color: var(--repcom-accent);
    border-bottom-color: var(--repcom-accent);
}

.repcom-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
}

.repcom-content th, .repcom-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--repcom-border);
    font-size: 0.92rem;
}

.repcom-content th {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    color: var(--repcom-text-primary);
    background: var(--repcom-bg-card);
}

.repcom-content td {
    color: var(--repcom-text-secondary);
}

/* --- Related Articles --- */
.repcom-related {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--repcom-border);
}

.repcom-related h2 {
    font-size: 1.6rem;
    margin-bottom: 28px;
    border-bottom: none;
    text-align: center;
}

.repcom-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.repcom-related-card {
    padding: 24px;
    background: var(--repcom-bg-card);
    border: 1px solid var(--repcom-border);
    border-radius: var(--repcom-radius-md);
    transition: all var(--repcom-transition);
}

.repcom-related-card:hover {
    border-color: var(--repcom-primary);
    transform: translateY(-3px);
}

.repcom-related-card h3 {
    font-size: 1rem;
    margin: 0 0 8px;
}

.repcom-related-card h3 a {
    color: var(--repcom-text-primary);
}

.repcom-related-card h3 a:hover {
    color: var(--repcom-primary);
}

.repcom-related-card p {
    font-size: 0.82rem;
    color: var(--repcom-text-muted);
    margin: 0;
}

/* --- Schema / SEO Hidden --- */
.repcom-schema {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .repcom-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .repcom-articles {
        grid-template-columns: repeat(2, 1fr);
    }

    .repcom-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .repcom-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .repcom-hero h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .repcom-header-inner {
        height: 60px;
    }

    .repcom-nav {
        display: none;
    }

    .repcom-hero {
        min-height: 70vh;
    }

    .repcom-hero h1 {
        font-size: 2rem;
    }

    .repcom-hero-desc {
        font-size: 1rem;
    }

    .repcom-services {
        grid-template-columns: 1fr;
    }

    .repcom-articles {
        grid-template-columns: 1fr;
    }

    .repcom-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .repcom-footer-grid {
        grid-template-columns: 1fr;
    }

    .repcom-single h1 {
        font-size: 1.8rem;
    }

    .repcom-related-grid {
        grid-template-columns: 1fr;
    }

    .repcom-section {
        padding: 50px 0;
    }

    .repcom-section-title {
        font-size: 1.8rem;
    }

    .repcom-footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .repcom-cta-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .repcom-hero h1 {
        font-size: 1.6rem;
    }

    .repcom-trust-grid {
        grid-template-columns: 1fr;
    }

    .repcom-container {
        padding: 0 16px;
    }

    .repcom-article-body {
        padding: 16px;
    }

    .repcom-service-card {
        padding: 24px 20px;
    }
}

/* --- Utility Classes --- */
.repcom-text-center { text-align: center; }
.repcom-text-red { color: var(--repcom-primary); }
.repcom-text-orange { color: var(--repcom-accent); }
.repcom-mt-1 { margin-top: 8px; }
.repcom-mt-2 { margin-top: 16px; }
.repcom-mt-3 { margin-top: 24px; }
.repcom-mt-4 { margin-top: 32px; }
.repcom-mb-1 { margin-bottom: 8px; }
.repcom-mb-2 { margin-bottom: 16px; }
.repcom-mb-3 { margin-bottom: 24px; }
.repcom-mb-4 { margin-bottom: 32px; }

/* --- Animations --- */
@keyframes repcom-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.repcom-animate {
    animation: repcom-fadeInUp 0.6s ease-out forwards;
}

/* --- Reading Progress Bar --- */
.repcom-progress {
    position: fixed;
    top: 72px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--repcom-primary), var(--repcom-accent));
    z-index: 999;
    transition: width 0.1s linear;
}

/* --- Tag Cloud --- */
.repcom-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.repcom-tag {
    padding: 5px 14px;
    background: var(--repcom-bg-card);
    border: 1px solid var(--repcom-border);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--repcom-text-muted);
    transition: all var(--repcom-transition);
}

.repcom-tag:hover {
    border-color: var(--repcom-primary);
    color: var(--repcom-primary);
}

/* --- Table of Contents --- */
.repcom-toc {
    padding: 24px 28px;
    background: var(--repcom-bg-card);
    border: 1px solid var(--repcom-border);
    border-radius: var(--repcom-radius-md);
    margin-bottom: 40px;
}

.repcom-toc h4 {
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    color: var(--repcom-primary);
}

.repcom-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.repcom-toc li {
    margin-bottom: 8px;
}

.repcom-toc a {
    font-size: 0.88rem;
    color: var(--repcom-text-secondary);
    border-bottom: none;
}

.repcom-toc a:hover {
    color: var(--repcom-primary);
}

/* --- Divider --- */
.repcom-divider {
    height: 1px;
    background: var(--repcom-border);
    margin: 48px 0;
}

/* --- Back to top --- */
.repcom-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--repcom-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--repcom-transition);
    z-index: 900;
}

.repcom-back-top.repcom-visible {
    opacity: 1;
    visibility: visible;
}

.repcom-back-top:hover {
    background: var(--repcom-primary-dark);
    transform: translateY(-3px);
}

/* Article thumbnail images */
.repcom-article-thumb { display:block; position:relative; overflow:hidden; border-radius:12px 12px 0 0; aspect-ratio:16/9; }
.repcom-article-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.repcom-article-card:hover .repcom-article-thumb img { transform:scale(1.05); }
.repcom-article-category { position:absolute; top:12px; left:12px; z-index:2; }
