/* ==========================================================================
   Reprogrammation-Moteurs.fr - Technical Blue Engineering Theme
   Prefix: repfra
   Fonts: Rajdhani + Roboto
   Colors: #1a73e8 blue, #0d47a1 dark blue, #00BCD4 cyan accent
   ========================================================================== */

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

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

:root {
    --repfra-primary: #1a73e8;
    --repfra-primary-dark: #0d47a1;
    --repfra-primary-light: #4a90e2;
    --repfra-accent: #00BCD4;
    --repfra-accent-dark: #0097A7;
    --repfra-bg-body: #F0F4F8;
    --repfra-bg-white: #FFFFFF;
    --repfra-bg-light: #E8EDF2;
    --repfra-bg-dark: #0d1b2a;
    --repfra-bg-darker: #081422;
    --repfra-text-dark: #1B2838;
    --repfra-text-body: #4A5568;
    --repfra-text-light: #718096;
    --repfra-text-white: #F7FAFC;
    --repfra-border: #D2D6DC;
    --repfra-border-light: #E2E8F0;
    --repfra-shadow: rgba(26, 115, 232, 0.08);
    --repfra-shadow-lg: rgba(0, 0, 0, 0.1);
    --repfra-gradient-hero: linear-gradient(160deg, #0d1b2a 0%, #1a365d 50%, #0d1b2a 100%);
    --repfra-gradient-blue: linear-gradient(135deg, #1a73e8, #0d47a1);
    --repfra-radius-sm: 8px;
    --repfra-radius-md: 14px;
    --repfra-radius-lg: 24px;
    --repfra-transition: 0.35s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--repfra-text-dark);
}

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

a:hover {
    color: var(--repfra-primary-dark);
}

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

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

.repfra-container-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.repfra-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--repfra-border-light);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

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

.repfra-logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--repfra-text-dark);
    letter-spacing: 0.02em;
}

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

.repfra-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.repfra-nav a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--repfra-text-body);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
}

.repfra-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--repfra-primary);
    transition: all var(--repfra-transition);
    transform: translateX(-50%);
}

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

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

/* --- Hero Section --- */
.repfra-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--repfra-gradient-hero);
    padding-top: 68px;
    overflow: hidden;
}

.repfra-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

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

.repfra-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.repfra-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(26, 115, 232, 0.15);
    border: 1px solid rgba(26, 115, 232, 0.3);
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--repfra-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.repfra-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--repfra-text-white);
    margin-bottom: 18px;
    line-height: 1.1;
}

.repfra-hero h1 strong {
    color: var(--repfra-accent);
}

.repfra-hero-desc {
    font-size: 1.1rem;
    color: rgba(247, 250, 252, 0.7);
    line-height: 1.8;
    margin-bottom: 36px;
}

.repfra-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--repfra-gradient-blue);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--repfra-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--repfra-transition);
}

.repfra-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 115, 232, 0.3);
    color: #fff;
}

.repfra-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.repfra-hero-box {
    width: 100%;
    max-width: 460px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--repfra-radius-lg);
}

.repfra-hero-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.repfra-hero-stat:last-child {
    border-bottom: none;
}

.repfra-hero-stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--repfra-accent);
}

.repfra-hero-stat-label {
    font-size: 0.88rem;
    color: rgba(247, 250, 252, 0.6);
}

/* --- Technical Line Divider --- */
.repfra-tech-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--repfra-primary), var(--repfra-accent), var(--repfra-primary), transparent);
    opacity: 0.4;
}

/* --- Trust Section --- */
.repfra-trust {
    padding: 50px 0;
    background: var(--repfra-bg-white);
    border-bottom: 1px solid var(--repfra-border-light);
}

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

.repfra-trust-item {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--repfra-radius-md);
    transition: all var(--repfra-transition);
}

.repfra-trust-item:hover {
    background: var(--repfra-bg-light);
}

.repfra-trust-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    background: rgba(26, 115, 232, 0.08);
    border-radius: 50%;
    font-size: 1.4rem;
}

.repfra-trust-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--repfra-primary);
}

.repfra-trust-label {
    font-size: 0.82rem;
    color: var(--repfra-text-light);
    font-weight: 500;
}

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

.repfra-section-white {
    background: var(--repfra-bg-white);
}

.repfra-section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 12px;
    color: var(--repfra-text-dark);
}

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

.repfra-section-subtitle {
    text-align: center;
    color: var(--repfra-text-light);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

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

.repfra-service-card {
    padding: 32px 26px;
    background: var(--repfra-bg-white);
    border: 1px solid var(--repfra-border-light);
    border-radius: var(--repfra-radius-md);
    transition: all var(--repfra-transition);
    position: relative;
}

.repfra-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--repfra-gradient-blue);
    border-radius: 0 0 var(--repfra-radius-md) var(--repfra-radius-md);
    opacity: 0;
    transition: opacity var(--repfra-transition);
}

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

.repfra-service-card:hover::after {
    opacity: 1;
}

.repfra-service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 115, 232, 0.08);
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 1.4rem;
    color: var(--repfra-primary);
}

.repfra-service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

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

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

.repfra-article-card {
    background: var(--repfra-bg-white);
    border: 1px solid var(--repfra-border-light);
    border-radius: var(--repfra-radius-md);
    overflow: hidden;
    transition: all var(--repfra-transition);
}

.repfra-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px var(--repfra-shadow-lg);
}

.repfra-article-thumb {
    height: 180px;
    background: linear-gradient(145deg, var(--repfra-bg-light) 0%, var(--repfra-bg-body) 100%);
    position: relative;
}

.repfra-article-category {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    background: var(--repfra-gradient-blue);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 6px;
}

.repfra-article-body {
    padding: 22px;
}

.repfra-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: var(--repfra-text-light);
}

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

.repfra-article-card h3 a {
    color: var(--repfra-text-dark);
}

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

.repfra-article-excerpt {
    font-size: 0.86rem;
    color: var(--repfra-text-light);
    line-height: 1.7;
    margin-bottom: 14px;
}

.repfra-article-link {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--repfra-primary);
    text-transform: uppercase;
}

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

/* --- CTA Section --- */
.repfra-cta-section {
    padding: 80px 0;
    background: var(--repfra-gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.repfra-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(26, 115, 232, 0.1) 0%, transparent 60%);
}

.repfra-cta-section h2 {
    font-size: 2.2rem;
    color: var(--repfra-text-white);
    margin-bottom: 14px;
    position: relative;
}

.repfra-cta-section p {
    color: rgba(247, 250, 252, 0.65);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.repfra-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--repfra-gradient-blue);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--repfra-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--repfra-transition);
}

.repfra-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 115, 232, 0.3);
    color: #fff;
}

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

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

/* --- Footer --- */
.repfra-footer {
    padding: 56px 0 28px;
    background: var(--repfra-bg-dark);
    color: var(--repfra-text-white);
}

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

.repfra-footer-brand {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.repfra-footer-brand span {
    color: var(--repfra-accent);
}

.repfra-footer-desc {
    font-size: 0.86rem;
    color: rgba(247, 250, 252, 0.5);
    line-height: 1.7;
}

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

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

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

.repfra-footer-links a {
    font-size: 0.86rem;
    color: rgba(247, 250, 252, 0.5);
    transition: color var(--repfra-transition);
}

.repfra-footer-links a:hover {
    color: var(--repfra-accent);
}

.repfra-footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(247, 250, 252, 0.35);
}

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

.repfra-single-header {
    max-width: 780px;
    margin: 0 auto 36px;
    text-align: center;
}

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

.repfra-breadcrumb a {
    color: var(--repfra-text-light);
}

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

.repfra-breadcrumb .repfra-sep {
    color: var(--repfra-border);
}

.repfra-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    font-size: 0.84rem;
    color: var(--repfra-text-light);
}

.repfra-single h1 {
    font-size: 2.6rem;
    line-height: 1.15;
}

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

.repfra-content h2 {
    font-size: 1.5rem;
    margin: 44px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--repfra-border-light);
    color: var(--repfra-text-dark);
}

.repfra-content h3 {
    font-size: 1.2rem;
    margin: 28px 0 10px;
    color: var(--repfra-primary-dark);
}

.repfra-content p {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.8;
}

.repfra-content ul, .repfra-content ol {
    margin: 0 0 22px 22px;
}

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

.repfra-content blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    background: rgba(26, 115, 232, 0.04);
    border-left: 4px solid var(--repfra-primary);
    border-radius: 0 var(--repfra-radius-sm) var(--repfra-radius-sm) 0;
    font-style: italic;
}

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

.repfra-content a {
    color: var(--repfra-primary);
    border-bottom: 1px solid rgba(26, 115, 232, 0.25);
}

.repfra-content a:hover {
    border-bottom-color: var(--repfra-primary);
}

.repfra-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--repfra-radius-sm);
    overflow: hidden;
}

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

.repfra-content th {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    background: var(--repfra-bg-light);
    color: var(--repfra-text-dark);
}

/* --- Related Articles --- */
.repfra-related {
    margin-top: 60px;
    padding-top: 44px;
    border-top: 1px solid var(--repfra-border-light);
}

.repfra-related h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    border-bottom: none;
    text-align: center;
}

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

.repfra-related-card {
    padding: 22px;
    background: var(--repfra-bg-white);
    border: 1px solid var(--repfra-border-light);
    border-radius: var(--repfra-radius-md);
    transition: all var(--repfra-transition);
}

.repfra-related-card:hover {
    border-color: var(--repfra-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--repfra-shadow);
}

.repfra-related-card h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.repfra-related-card h3 a {
    color: var(--repfra-text-dark);
}

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

.repfra-related-card p {
    font-size: 0.8rem;
    color: var(--repfra-text-light);
    margin: 0;
}

/* --- Schema --- */
.repfra-schema {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .repfra-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .repfra-hero-visual {
        display: none;
    }

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

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

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

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

@media (max-width: 768px) {
    .repfra-nav {
        display: none;
    }

    .repfra-hero h1 {
        font-size: 2.2rem;
    }

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

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

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

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

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

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

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

    .repfra-section-title {
        font-size: 1.7rem;
    }

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

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

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

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

/* --- Utilities --- */
.repfra-text-center { text-align: center; }
.repfra-text-blue { color: var(--repfra-primary); }
.repfra-text-cyan { color: var(--repfra-accent); }
.repfra-mt-1 { margin-top: 8px; }
.repfra-mt-2 { margin-top: 16px; }
.repfra-mt-3 { margin-top: 24px; }
.repfra-mb-1 { margin-bottom: 8px; }
.repfra-mb-2 { margin-bottom: 16px; }
.repfra-mb-3 { margin-bottom: 24px; }
.repfra-mb-4 { margin-bottom: 32px; }

/* --- Animations --- */
@keyframes repfra-slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.repfra-animate {
    animation: repfra-slideUp 0.5s ease-out forwards;
}

/* --- Progress Bar --- */
.repfra-progress {
    position: fixed;
    top: 68px;
    left: 0;
    height: 3px;
    background: var(--repfra-gradient-blue);
    z-index: 999;
}

/* --- Tags --- */
.repfra-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.repfra-tag {
    padding: 4px 12px;
    background: var(--repfra-bg-light);
    border-radius: 50px;
    font-size: 0.76rem;
    color: var(--repfra-text-light);
    transition: all var(--repfra-transition);
}

.repfra-tag:hover {
    background: rgba(26, 115, 232, 0.08);
    color: var(--repfra-primary);
}

/* --- TOC --- */
.repfra-toc {
    padding: 22px 26px;
    background: var(--repfra-bg-light);
    border-radius: var(--repfra-radius-md);
    margin-bottom: 36px;
}

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

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

.repfra-toc li {
    margin-bottom: 6px;
}

.repfra-toc a {
    font-size: 0.86rem;
    color: var(--repfra-text-body);
    border-bottom: none;
}

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

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

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

.repfra-back-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
}

/* --- Info Box --- */
.repfra-info-box {
    padding: 20px 24px;
    background: rgba(26, 115, 232, 0.04);
    border: 1px solid rgba(26, 115, 232, 0.15);
    border-radius: var(--repfra-radius-sm);
    margin: 24px 0;
}

.repfra-info-box strong {
    color: var(--repfra-primary);
}

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