/* ============================================
   OUTILS AE — Design System
   ============================================ */

:root {
    --primary:      #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light:#eff6ff;
    --accent:       #059669;
    --accent-hover: #047857;
    --star:         #f59e0b;
    --star-empty:   #d1d5db;
    --featured:     #7c3aed;
    --danger:       #dc2626;
    --bg:           #f0f4f8;
    --surface:      #ffffff;
    --border:       #e2e8f0;
    --text:         #0f172a;
    --muted:        #64748b;
    --radius:       12px;
    --radius-sm:    8px;
    --shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --shadow-hover: 0 4px 12px rgba(0,0,0,.12), 0 8px 32px rgba(0,0,0,.1);
    --font:         'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ============ Layout ============ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }

/* ============ Navbar ============ */
.site-header {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav-inner { display: flex; align-items: center; height: 64px; gap: 8px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; margin-right: 8px; }
.logo-svg { display: block; flex-shrink: 0; }
.logo-text { font-size: 18px; font-weight: 500; color: var(--text); letter-spacing: -.3px; }
.logo-text strong { font-weight: 800; color: var(--primary); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; list-style: none; }

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s, background .2s;
    white-space: nowrap;
    cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg); text-decoration: none; }
.nav-link.active { color: var(--primary); font-weight: 600; }

.nav-chevron {
    width: 10px;
    height: 7px;
    flex-shrink: 0;
    transition: transform .25s;
    opacity: .5;
}
.nav-item.has-dropdown:hover .nav-chevron,
.nav-item.has-dropdown:focus-within .nav-chevron { transform: rotate(180deg); opacity: 1; }

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 280px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 300;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-inner { padding: 16px; }

.dropdown-header { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.dropdown-title { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.dropdown-sub { font-size: 12px; color: var(--muted); line-height: 1.4; display: block; }

.dropdown-tools { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }

.dropdown-tool-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s;
    color: var(--text);
}
.dropdown-tool-link:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.dropdown-tool-link:hover .dropdown-arrow { opacity: 1; transform: translateX(2px); }

.dropdown-tool-init {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
}
.dropdown-tool-name { font-size: 13px; font-weight: 600; flex: 1; }
.dropdown-arrow { width: 14px; height: 14px; opacity: 0; transition: opacity .15s, transform .15s; flex-shrink: 0; color: var(--muted); }

.dropdown-cta-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--primary-light);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: background .15s;
}
.dropdown-cta-link:hover { background: #dbeafe; text-decoration: none; color: var(--primary); }

/* Bouton CTA navbar */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(5,150,105,.3);
}
.nav-cta:hover { background: var(--accent-hover); text-decoration: none; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(5,150,105,.35); }

/* Hamburger mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    margin-left: auto;
    width: 40px;
    height: 40px;
    transition: border-color .2s;
}
.nav-toggle:hover { border-color: var(--primary); }
.toggle-bar {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s, width .3s;
    width: 100%;
}
.nav-toggle.open .toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open .toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay mobile */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 150;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .3s;
}
.nav-overlay.visible { opacity: 1; }

/* ============ Responsive Navbar ============ */
@media (max-width: 900px) {
    .nav-cta span { display: none; }
    .nav-cta { padding: 8px 12px; border-radius: 8px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .nav-overlay { display: block; pointer-events: none; }
    .nav-overlay.active { pointer-events: all; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--surface);
        z-index: 160;
        padding: 20px 16px 40px;
        overflow-y: auto;
        gap: 4px;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
    }
    .nav-links.open { display: flex; transform: translateX(0); }

    .nav-link { font-size: 16px; padding: 12px 16px; font-weight: 600; color: var(--text); }
    .nav-chevron { width: 12px; height: 9px; margin-left: auto; }

    .nav-dropdown {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--bg);
        border-radius: 10px;
        margin: 4px 0;
        opacity: 1;
        pointer-events: all;
        display: none;
    }
    .nav-item.has-dropdown.open .nav-dropdown { display: block; }
    .nav-item.has-dropdown.open .nav-chevron { transform: rotate(180deg); opacity: 1; }
    .dropdown-inner { padding: 12px; }
    .dropdown-header { display: none; }

    .nav-mobile-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--accent);
        color: #fff;
        font-weight: 700;
        font-size: 15px;
        padding: 14px;
        border-radius: 12px;
        text-decoration: none;
        margin-top: 16px;
    }
}

/* ============ Hero ============ */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #0891b2 100%); color: #fff; padding: 72px 0 80px; text-align: center; }
.hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: #fbbf24; }
.hero p { font-size: 18px; opacity: .88; max-width: 620px; margin: 0 auto 36px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; }
.hero-stat span { font-size: 13px; opacity: .8; }

/* ============ Section titles ============ */
.section-header { margin-bottom: 32px; }
.section-header h2 { font-size: clamp(22px, 4vw, 32px); font-weight: 700; }
.section-header p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.section-header .see-all { float: right; font-size: 14px; font-weight: 500; color: var(--primary); }

/* ============ Category tabs ============ */
.cat-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-bottom: 32px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 100px; border: 2px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all .2s; text-decoration: none; }
.cat-tab:hover, .cat-tab.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); text-decoration: none; }

/* ============ Tool cards (catégorie / liste) ============ */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.tools-list { display: flex; flex-direction: column; gap: 16px; }

.tool-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); padding: 24px; transition: all .25s; position: relative; overflow: hidden; }
.tool-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tool-card.is-featured { border-color: var(--primary); border-width: 2px; }
.tool-card.is-featured::after { content: 'Recommandé'; position: absolute; top: 0; right: 0; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; padding: 5px 14px; border-radius: 0 var(--radius) 0 10px; letter-spacing: .5px; text-transform: uppercase; }

.card-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.logo-placeholder { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.tool-logo img { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; border: 1px solid var(--border); }

.card-meta { flex: 1; min-width: 0; }
.card-meta h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.card-rating { display: flex; align-items: center; gap: 8px; }
.stars { display: inline-flex; gap: 2px; }
.star { font-size: 16px; }
.star.full  { color: var(--star); }
.star.half  { color: var(--star); opacity: .6; }
.star.empty { color: var(--star-empty); }
.rating-num { font-size: 13px; font-weight: 600; color: var(--muted); }

.card-desc { font-size: 14px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }

.card-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.card-price strong { font-size: 20px; font-weight: 800; color: var(--text); }
.prix-desc { font-size: 13px; color: var(--muted); }
.badge-free { background: #d1fae5; color: #065f46; padding: 2px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.badge-trial { background: #d1fae5; color: #065f46; padding: 2px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }

.pros-list { margin-bottom: 16px; }
.pros-list li, .cons-list li { font-size: 13px; padding: 3px 0; display: flex; gap: 8px; align-items: flex-start; }
.pro-icon { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.con-icon { color: var(--danger); flex-shrink: 0; }

.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: all .2s; white-space: nowrap; text-decoration: none; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; color: #fff; transform: translateY(-1px); }
.btn-secondary { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--border); color: var(--text); font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: var(--radius-sm); background: transparent; cursor: pointer; transition: all .2s; white-space: nowrap; text-decoration: none; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ============ Pick Cards — Meilleurs choix ============ */
.pick-list { display: flex; flex-direction: column; gap: 16px; }

.pick-card { background: var(--surface); border-radius: 16px; border: 1px solid var(--border); display: grid; grid-template-columns: 100px 1fr 200px; gap: 0; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.pick-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,.1); transform: translateY(-2px); }
.pick-card.top-pick { border-color: var(--primary); border-width: 2px; }

.pick-left { background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px 16px; border-right: 1px solid var(--border); }
.pick-rank-num { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.pick-logo-box { width: 60px; height: 60px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pick-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.pick-logo-init { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 20px; }

.pick-center { padding: 24px 28px; }
.pick-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.pick-name { font-size: 20px; font-weight: 800; color: var(--text); }
.pick-tag { font-size: 10px; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 3px 9px; border-radius: 100px; text-transform: uppercase; letter-spacing: .4px; }
.pick-top-badge { font-size: 10px; font-weight: 700; color: #5b21b6; background: #ede9fe; padding: 3px 9px; border-radius: 100px; text-transform: uppercase; letter-spacing: .4px; }

.pick-score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pick-score-num { font-size: 14px; font-weight: 700; color: var(--text); }
.pick-score-track { width: 100px; height: 5px; background: var(--border); border-radius: 100px; overflow: hidden; }
.pick-score-fill { height: 100%; background: var(--accent); border-radius: 100px; }
.pick-score-of { font-size: 12px; color: var(--muted); }

.pick-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }

.pick-pros { display: flex; flex-direction: column; gap: 5px; }
.pick-pro { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text); line-height: 1.4; }
.pick-check { width: 17px; height: 17px; border-radius: 50%; background: #d1fae5; flex-shrink: 0; margin-top: 1px; position: relative; }
.pick-check::before { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 5px; border-left: 2px solid #059669; border-bottom: 2px solid #059669; transform: translate(-50%, -60%) rotate(-45deg); }

.pick-right { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 24px; border-left: 1px solid var(--border); text-align: center; }
.pick-price-amount { font-size: 28px; font-weight: 900; color: var(--text); line-height: 1; }
.pick-price-free { font-size: 22px; font-weight: 900; color: var(--accent); }
.pick-price-period { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pick-trial { font-size: 12px; font-weight: 600; color: var(--accent); background: #d1fae5; padding: 5px 12px; border-radius: 100px; }
.btn-pick { display: flex; align-items: center; justify-content: center; width: 100%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 16px; border-radius: 10px; text-decoration: none; transition: all .2s; }
.btn-pick:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-pick-ghost { font-size: 13px; color: var(--muted); text-decoration: none; font-weight: 500; }
.btn-pick-ghost:hover { color: var(--primary); text-decoration: none; }

/* ============ Review Page (avis) ============ */
.rv-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 40px 0; }
.rv-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.rv-main {}
.rv-sidebar { position: sticky; top: 80px; }

.rv-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.rv-breadcrumb a { color: var(--muted); }
.rv-breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.rv-breadcrumb span { margin: 0 6px; }

.rv-tool-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.rv-logo-wrap { width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rv-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.rv-logo-init { width: 72px; height: 72px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 24px; flex-shrink: 0; }
.rv-tool-title h1 { font-size: clamp(22px, 3.5vw, 32px); font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.rv-badges { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rv-badge-rec { font-size: 11px; font-weight: 700; color: #5b21b6; background: #ede9fe; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: .3px; }
.rv-badge-cat { font-size: 11px; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 4px 10px; border-radius: 100px; }

.rv-score-block { display: flex; align-items: center; gap: 24px; background: var(--bg); border-radius: 14px; padding: 20px 24px; margin-bottom: 20px; }
.rv-score-big { font-size: 52px; font-weight: 900; color: var(--primary); line-height: 1; flex-shrink: 0; }
.rv-score-info { }
.rv-score-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.rv-criteria { display: flex; flex-direction: column; gap: 8px; }
.rv-criterion { display: flex; align-items: center; gap: 10px; }
.rv-crit-label { font-size: 12px; color: var(--muted); width: 80px; flex-shrink: 0; }
.rv-crit-track { flex: 1; height: 6px; background: var(--border); border-radius: 100px; overflow: hidden; max-width: 160px; }
.rv-crit-fill { height: 100%; background: var(--primary); border-radius: 100px; }
.rv-crit-num { font-size: 12px; font-weight: 700; color: var(--text); width: 26px; }

.rv-desc { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }

.rv-section-title { font-size: 20px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }

.rv-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.rv-box { border-radius: 12px; padding: 20px; }
.rv-box-pros { background: #f0fdf4; border: 1px solid #86efac; }
.rv-box-cons { background: #fff7f7; border: 1px solid #fca5a5; }
.rv-box-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; }
.rv-box-pros .rv-box-head { color: #15803d; }
.rv-box-cons .rv-box-head { color: #dc2626; }
.rv-item { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 13px; color: var(--text); line-height: 1.5; }
.rv-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; }
.rv-dot-pro { background: #dcfce7; }
.rv-dot-con { background: #fee2e2; }
.rv-dot-pro::before { content: ''; width: 8px; height: 5px; border-left: 2px solid #16a34a; border-bottom: 2px solid #16a34a; transform: rotate(-45deg) translateY(-1px); display: block; }
.rv-dot-con::before { content: ''; width: 7px; height: 7px; border-left: 2px solid #dc2626; border-top: 2px solid #dc2626; transform: rotate(45deg); display: block; margin-left: 1px; }

.rv-verdict { background: linear-gradient(135deg, #0f2a6e 0%, #1e40af 100%); color: #fff; border-radius: 16px; padding: 28px 32px; margin: 32px 0; display: flex; gap: 24px; align-items: center; }
.rv-verdict-score { font-size: 56px; font-weight: 900; line-height: 1; flex-shrink: 0; opacity: .9; }
.rv-verdict-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.rv-verdict-body p { font-size: 14px; opacity: .82; line-height: 1.6; }

/* Sidebar card */
.rv-sidebar-card { background: var(--surface); border: 2px solid var(--border); border-radius: 16px; overflow: hidden; }
.rv-sidebar-top { background: var(--primary); color: #fff; padding: 22px 20px; text-align: center; }
.rv-sidebar-top .price { font-size: 34px; font-weight: 900; line-height: 1; }
.rv-sidebar-top .price-free { font-size: 26px; font-weight: 900; }
.rv-sidebar-top .period { font-size: 13px; opacity: .75; margin-top: 3px; }
.rv-sidebar-top .trial { margin-top: 10px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.15); padding: 4px 12px; border-radius: 100px; display: inline-block; }
.rv-sidebar-body { padding: 16px 20px; }
.rv-info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.rv-info-row:last-child { border-bottom: none; }
.rv-info-label { color: var(--muted); }
.rv-info-value { font-weight: 600; }
.rv-sidebar-cta { padding: 4px 20px 20px; }
.rv-cta-main { display: flex; align-items: center; justify-content: center; width: 100%; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; padding: 14px; border-radius: 10px; text-decoration: none; transition: all .2s; margin-bottom: 10px; }
.rv-cta-main:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.rv-cta-secondary { display: flex; align-items: center; justify-content: center; width: 100%; border: 1.5px solid var(--border); color: var(--text); font-weight: 600; font-size: 13px; padding: 10px; border-radius: 10px; text-decoration: none; transition: all .2s; }
.rv-cta-secondary:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.rv-no-commit { text-align: center; font-size: 11px; color: var(--muted); margin-top: 10px; }

/* ============ Comparison table ============ */
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th { background: var(--primary); color: #fff; padding: 14px 16px; text-align: left; font-size: 13px; font-weight: 600; white-space: nowrap; }
.compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--primary-light); }
.compare-table .rank { font-weight: 800; color: var(--primary); font-size: 16px; }
.compare-table .tool-name { font-weight: 700; }
.compare-table .check { color: var(--accent); font-weight: 700; }
.compare-table .cross { color: var(--star-empty); }
.table-cta { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #fff; padding: 7px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; transition: background .2s; }
.table-cta:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }

/* ============ Category page hero ============ */
.cat-hero { background: var(--primary-light); border-bottom: 1px solid var(--border); padding: 48px 0; }
.cat-hero .icon { font-size: 48px; margin-bottom: 12px; }
.cat-hero h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.cat-hero p { color: var(--muted); font-size: 17px; max-width: 620px; }

/* ============ Tool detail page ============ */
.tool-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 48px 0; }
.tool-hero-inner { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.tool-hero-info { flex: 1; min-width: 280px; }
.tool-hero-info h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.tool-hero-box { background: var(--bg); border-radius: var(--radius); padding: 24px; min-width: 280px; flex-shrink: 0; }
.detail-ratings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.detail-rating { text-align: center; }
.detail-rating strong { display: block; font-size: 24px; font-weight: 800; color: var(--primary); }
.detail-rating span { font-size: 12px; color: var(--muted); }

.prose { max-width: 720px; }
.prose h2 { font-size: 22px; font-weight: 700; margin: 32px 0 16px; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; }
.prose p { margin-bottom: 16px; line-height: 1.7; color: var(--text); }
.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 6px; line-height: 1.6; }

/* ============ Article cards ============ */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.article-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; box-shadow: var(--shadow); transition: all .25s; }
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.article-card .cat-badge { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.article-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--primary); text-decoration: none; }
.article-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.article-card .read-more { font-size: 13px; font-weight: 600; color: var(--primary); }

/* ============ Breadcrumb ============ */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ============ Pros/Cons section ============ */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.pros-box, .cons-box { border-radius: var(--radius); padding: 20px; }
.pros-box { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons-box { background: #fef2f2; border: 1px solid #fecaca; }
.pros-box h4 { color: #15803d; margin-bottom: 12px; font-size: 15px; }
.cons-box h4 { color: #b91c1c; margin-bottom: 12px; font-size: 15px; }
.pros-box ul { list-style: none; }
.pros-box li { padding: 4px 0; font-size: 14px; display: flex; gap: 8px; }
.pros-box .pro-icon { color: #16a34a; }
.cons-box ul { list-style: none; }
.cons-box li { padding: 4px 0; font-size: 14px; display: flex; gap: 8px; }
.cons-box .con-icon { color: #dc2626; }

/* ============ Info box ============ */
.info-box { background: var(--primary-light); border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 24px 0; font-size: 14px; }
.info-box strong { color: var(--primary); }

/* ============ 404 ============ */
.page-404 { text-align: center; padding: 80px 20px; }
.page-404 .code { font-size: 80px; font-weight: 800; color: var(--border); line-height: 1; margin-bottom: 16px; }
.page-404 h1 { font-size: 28px; margin-bottom: 12px; }
.page-404 p { color: var(--muted); margin-bottom: 32px; }

/* ============ Admin ============ */
.admin-wrap { max-width: 960px; margin: 40px auto; padding: 0 20px; }
.admin-header { background: var(--primary-dark); color: #fff; padding: 16px 24px; border-radius: var(--radius) var(--radius) 0 0; display: flex; justify-content: space-between; align-items: center; }
.admin-body { background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); padding: 24px; }
.admin-nav { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-nav a { padding: 8px 16px; background: var(--bg); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text); }
.admin-nav a:hover, .admin-nav a.active { background: var(--primary); color: #fff; text-decoration: none; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font); background: var(--surface); color: var(--text); transition: border-color .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-save { background: var(--primary); color: #fff; border: none; padding: 11px 24px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; }
.btn-save:hover { background: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; border: none; padding: 7px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th { text-align: left; padding: 10px 12px; background: var(--bg); font-size: 13px; font-weight: 600; border-bottom: 2px solid var(--border); }
table.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
table.admin-table tr:hover td { background: var(--primary-light); }
.badge-pub { background: #d1fae5; color: #065f46; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.badge-draft { background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 700; }

/* ============ Footer ============ */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 56px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text strong { color: #60a5fa; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.affiliation-notice { font-size: 12px !important; color: rgba(255,255,255,.5) !important; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-sm); padding: 10px !important; }
.footer-links h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: rgba(255,255,255,.65); font-size: 14px; transition: color .2s; }
.footer-links ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px; z-index: 99; gap: 4px; }
    .nav-links.open { display: flex; }
    .nav-links li a { padding: 10px 16px; display: block; }
    .tools-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .pros-cons-grid { grid-template-columns: 1fr; }
    .detail-ratings { grid-template-columns: repeat(3,1fr); }
    .form-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .tool-hero-inner { flex-direction: column; }
}
