/* ============================================================
   AI REVIEW TEMPLATE — Scoped Styles
   Tout est sous .review-master-container → zéro conflit thème.
   ============================================================ */

.review-master-container {
    --rmc-accent: #635bff;
    --rmc-accent-soft: rgba(99, 91, 255, 0.08);
    --rmc-accent-mid: rgba(99, 91, 255, 0.15);
    --rmc-accent-glow: rgba(99, 91, 255, 0.25);
    --rmc-bg: #ffffff;
    --rmc-surface: #f7f8fa;
    --rmc-surface-raised: #ffffff;
    --rmc-border: #e3e8ee;
    --rmc-border-subtle: #eef1f6;
    --rmc-text-primary: #0a2540;
    --rmc-text-secondary: #425466;
    --rmc-text-muted: #8898aa;
    --rmc-pro: #00d4aa;
    --rmc-pro-bg: rgba(0, 212, 170, 0.06);
    --rmc-con: #ff5e6c;
    --rmc-con-bg: rgba(255, 94, 108, 0.06);
    --rmc-radius: 16px;
    --rmc-radius-sm: 10px;
    --rmc-radius-xs: 6px;
    --rmc-shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.04), 0 1px 2px rgba(10, 37, 64, 0.02);
    --rmc-shadow-md: 0 4px 16px rgba(10, 37, 64, 0.06), 0 1px 3px rgba(10, 37, 64, 0.04);
    --rmc-shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.08), 0 4px 12px rgba(10, 37, 64, 0.04);
    --rmc-shadow-screenshot: 0 20px 60px rgba(10, 37, 64, 0.12), 0 8px 20px rgba(10, 37, 64, 0.06);

    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--rmc-text-primary);
    background: var(--rmc-bg);
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.review-master-container *,
.review-master-container *::before,
.review-master-container *::after {
    box-sizing: border-box;
}

.review-master-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- HERO ---- */
.rmc-hero {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--rmc-border);
}

.rmc-hero__logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--rmc-radius);
    border: 1px solid var(--rmc-border);
    overflow: hidden;
    background: var(--rmc-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--rmc-shadow-sm);
}

.rmc-hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.rmc-hero__info {
    flex: 1;
    min-width: 0;
}

.rmc-hero__title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--rmc-text-primary);
    margin: 0 0 6px;
    padding: 0;
}

.rmc-hero__subtitle {
    font-size: 1rem;
    color: var(--rmc-text-secondary);
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

.rmc-hero__cta {
    flex-shrink: 0;
}

/* ---- BUTTON ---- */
.rmc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--rmc-accent);
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: var(--rmc-radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(99, 91, 255, 0.3);
    white-space: nowrap;
    line-height: 1;
}

.rmc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 91, 255, 0.4);
    background: #5449e6;
    color: #ffffff !important;
    text-decoration: none !important;
}

.rmc-btn:active {
    transform: translateY(0);
}

.rmc-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rmc-btn--lg {
    padding: 16px 40px;
    font-size: 1.05rem;
    border-radius: 12px;
}

/* ---- TABLE DES MATIÈRES ---- */
.rmc-toc {
    margin: 32px 0 0;
    padding: 24px 28px;
    background: var(--rmc-surface);
    border: 1px solid var(--rmc-border-subtle);
    border-radius: var(--rmc-radius);
}

.rmc-toc__header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rmc-text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.rmc-toc__icon {
    width: 18px;
    height: 18px;
    stroke: var(--rmc-accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.rmc-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.rmc-toc__list li {
    counter-increment: toc;
    margin-bottom: 8px;
}

.rmc-toc__list li:last-child {
    margin-bottom: 0;
}

.rmc-toc__list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--rmc-text-secondary);
    text-decoration: none !important;
    padding: 8px 12px;
    border-radius: var(--rmc-radius-xs);
    transition: all 0.15s ease;
}

.rmc-toc__list li a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--rmc-accent);
    background: var(--rmc-accent-soft);
    padding: 3px 8px;
    border-radius: var(--rmc-radius-xs);
    flex-shrink: 0;
    min-width: 28px;
    text-align: center;
}

.rmc-toc__list li a:hover {
    background: var(--rmc-accent-soft);
    color: var(--rmc-accent);
}

/* Smooth scroll */
.review-master-container {
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 24px;
}

/* ---- QUICK SUMMARY ---- */
.rmc-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    margin: 32px 0 0;
    background: var(--rmc-accent-soft);
    border: 1px solid var(--rmc-accent-mid);
    border-radius: var(--rmc-radius);
    position: relative;
    overflow: hidden;
}

.rmc-summary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--rmc-accent);
    border-radius: 4px 0 0 4px;
}

.rmc-summary__content {
    flex: 1;
    min-width: 0;
}

.rmc-summary__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rmc-accent);
    background: rgba(99, 91, 255, 0.1);
    padding: 4px 10px;
    border-radius: var(--rmc-radius-xs);
    margin-bottom: 10px;
}

.rmc-summary__text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--rmc-text-secondary);
    margin: 0;
}

.rmc-summary__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.rmc-summary__score {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.rmc-summary__score-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--rmc-accent);
    line-height: 1;
}

.rmc-summary__score-max {
    font-size: 1rem;
    color: var(--rmc-text-muted);
}

.rmc-btn--sm {
    padding: 10px 20px;
    font-size: 0.82rem;
    border-radius: 8px;
}

/* ---- SCORE GRID ---- */
.rmc-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 40px 0;
}

.rmc-score-card {
    background: var(--rmc-surface);
    border: 1px solid var(--rmc-border-subtle);
    border-radius: var(--rmc-radius);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.rmc-score-card:hover {
    border-color: var(--rmc-accent-glow);
    box-shadow: var(--rmc-shadow-md);
    transform: translateY(-2px);
}

.rmc-score-card--highlight {
    background: var(--rmc-accent-soft);
    border-color: var(--rmc-accent-mid);
    position: relative;
    overflow: hidden;
}

.rmc-score-card--highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rmc-accent);
    border-radius: 3px 3px 0 0;
}

.rmc-score-card__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rmc-text-muted);
    margin-bottom: 12px;
}

.rmc-score-card__value {
    font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--rmc-text-primary);
    line-height: 1;
}

.rmc-score-card--highlight .rmc-score-card__value {
    color: var(--rmc-accent);
}

.rmc-score-card__value--text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.rmc-score-card__suffix {
    font-size: 1.1rem;
    color: var(--rmc-text-muted);
    margin-left: 2px;
}

/* ---- SCREENSHOT ---- */
.rmc-screenshot {
    padding: 0 0 48px;
}

.rmc-screenshot__frame {
    border-radius: var(--rmc-radius);
    overflow: hidden;
    border: 1px solid var(--rmc-border);
    box-shadow: var(--rmc-shadow-screenshot);
    background: var(--rmc-surface);
}

.rmc-screenshot__topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--rmc-surface);
    border-bottom: 1px solid var(--rmc-border-subtle);
}

.rmc-screenshot__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--rmc-border);
}

.rmc-screenshot__dot:nth-child(1) { background: #ff5f57; }
.rmc-screenshot__dot:nth-child(2) { background: #febc2e; }
.rmc-screenshot__dot:nth-child(3) { background: #28c840; }

.rmc-screenshot__frame img {
    width: 100%;
    display: block;
}

/* ---- SECTION LABELS ---- */
.rmc-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rmc-text-muted);
    margin-bottom: 20px;
}

.rmc-section-label::before {
    content: '';
    width: 16px;
    height: 2px;
    background: var(--rmc-accent);
    border-radius: 2px;
}

/* ---- PRICING ---- */
.rmc-pricing {
    padding: 0 0 40px;
}

.rmc-pricing__card {
    background: var(--rmc-surface);
    border: 1px solid var(--rmc-border-subtle);
    border-radius: var(--rmc-radius);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.rmc-pricing__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rmc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.rmc-pricing__value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rmc-text-primary);
}

/* ---- CONTENT (Gutenberg body) ---- */
.rmc-content {
    padding: 0 0 40px;
}

.rmc-content__body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--rmc-text-secondary);
}

.rmc-content__body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rmc-text-primary);
    margin: 32px 0 12px;
    letter-spacing: -0.02em;
}

.rmc-content__body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rmc-text-primary);
    margin: 24px 0 8px;
}

.rmc-content__body p {
    margin: 0 0 16px;
}

.rmc-content__body ul,
.rmc-content__body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.rmc-content__body a {
    color: var(--rmc-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rmc-content__body a:hover {
    color: #5449e6;
}

/* ---- PROS / CONS ---- */
.rmc-verdict {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-bottom: 48px;
}

.rmc-verdict__col {
    border-radius: var(--rmc-radius);
    padding: 28px;
    border: 1px solid var(--rmc-border-subtle);
}

.rmc-verdict__col--pro {
    background: var(--rmc-pro-bg);
    border-color: rgba(0, 212, 170, 0.15);
}

.rmc-verdict__col--con {
    background: var(--rmc-con-bg);
    border-color: rgba(255, 94, 108, 0.15);
}

.rmc-verdict__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.rmc-verdict__heading--pro { color: #00b894; }
.rmc-verdict__heading--con { color: #e74c5e; }

.rmc-verdict__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rmc-verdict__icon--pro { background: rgba(0, 212, 170, 0.15); }
.rmc-verdict__icon--con { background: rgba(255, 94, 108, 0.15); }

.rmc-verdict__icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.rmc-verdict__icon--pro svg { stroke: #00b894; }
.rmc-verdict__icon--con svg { stroke: #e74c5e; }

.rmc-verdict__list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--rmc-text-secondary);
}

.rmc-verdict__list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

.rmc-verdict__list li:last-child {
    margin-bottom: 0;
}

.rmc-verdict__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.rmc-verdict__col--pro .rmc-verdict__list li::before {
    background: var(--rmc-pro);
}

.rmc-verdict__col--con .rmc-verdict__list li::before {
    background: var(--rmc-con);
}

/* ---- BOTTOM CTA ---- */
.rmc-bottom-cta {
    text-align: center;
    padding: 40px 0 56px;
    border-top: 1px solid var(--rmc-border);
}

.rmc-bottom-cta__text {
    font-size: 0.9rem;
    color: var(--rmc-text-muted);
    margin-bottom: 20px;
}

/* ---- RELATED REVIEWS ---- */
.rmc-related {
    padding: 40px 0 56px;
    border-top: 1px solid var(--rmc-border);
}

.rmc-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.rmc-related__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--rmc-surface);
    border: 1px solid var(--rmc-border-subtle);
    border-radius: var(--rmc-radius);
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.2s ease;
}

.rmc-related__card:hover {
    border-color: var(--rmc-accent-glow);
    box-shadow: var(--rmc-shadow-md);
    transform: translateY(-2px);
}

.rmc-related__logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--rmc-radius-sm);
    border: 1px solid var(--rmc-border-subtle);
    overflow: hidden;
    background: var(--rmc-surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rmc-related__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.rmc-related__info {
    flex: 1;
    min-width: 0;
}

.rmc-related__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--rmc-text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rmc-related__meta {
    font-size: 0.78rem;
    color: var(--rmc-text-muted);
}

.rmc-related__score {
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.rmc-related__score-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--rmc-accent);
    line-height: 1;
}

.rmc-related__score-max {
    font-size: 0.75rem;
    color: var(--rmc-text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 680px) {
    .review-master-container {
        padding: 0 16px;
    }

    .rmc-hero {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 32px 0 28px;
    }

    .rmc-hero__logo {
        width: 68px;
        height: 68px;
    }

    .rmc-hero__title {
        font-size: 1.55rem;
    }

    .rmc-summary {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px 22px;
    }

    .rmc-summary__side {
        flex-direction: row;
        gap: 16px;
    }

    .rmc-toc {
        padding: 20px 20px;
    }

    .rmc-toc__list li a {
        padding: 6px 8px;
        font-size: 0.84rem;
    }

    .rmc-scores {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 28px 0;
    }

    .rmc-score-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        text-align: left;
    }

    .rmc-score-card__label {
        margin-bottom: 0;
    }

    .rmc-score-card__value {
        font-size: 1.8rem;
    }

    .rmc-verdict {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 32px;
    }

    .rmc-verdict__col {
        padding: 22px;
    }

    .rmc-pricing__card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .rmc-screenshot {
        padding-bottom: 32px;
    }

    .rmc-bottom-cta {
        padding: 32px 0 40px;
    }

    .rmc-related__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
