/* features.css — Viracash features page styles */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink: #0d0d0d;
    --paper: #fafaf7;
    --accent: #e63946;
    --accent-light: rgba(230,57,70,0.08);
    --muted: #6b7280;
    --muted-light: #9ca3af;
    --border: #e5e5e0;
    --card-bg: #f4f4ef;
    --card-hover: #eeeee8;
    --green: #16a34a;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }

/* ─── NAV ─────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250,250,247,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}
.nav-links a {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 7px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(230,57,70,0.3); }

/* ─── HAMBURGER ───────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(250,250,247,0.98);
    backdrop-filter: blur(12px);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu a.active { color: var(--accent); }
.btn-cta-mobile {
    margin-top: 0.5rem;
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

/* ─── PAGE LAYOUT ─────────────────────────── */
.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── HERO ────────────────────────────────── */
.features-hero {
    padding: 5rem 2rem 3.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.features-hero .section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}
.features-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.features-hero p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ─── SECTION HEADINGS ────────────────────── */
.section-block {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.section-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.7px;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* ─── FREE FEATURES GRID ─────────────────── */
.free-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.free-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.free-card-icon {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.free-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}
.free-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}
.badge-gratuit {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green);
    background: rgba(22,163,74,0.1);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    width: fit-content;
}

/* ─── DIVIDER ─────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    max-width: 1100px;
    margin: 0 auto 0;
}

/* ─── PREMIUM SECTION HEADER ──────────────── */
.premium-section-header {
    background: var(--ink);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.premium-section-header .badge-premium {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(230,57,70,0.15);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}
.premium-section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}
.premium-section-header p {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ─── PREMIUM FEATURES GRID ───────────────── */
.premium-grid-wrap {
    background: #f0efea;
    padding: 3rem 2rem;
}
.premium-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.premium-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}
.premium-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}
.premium-card-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.premium-card h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
    padding-top: 0.1rem;
}
.premium-card .desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}
.premium-card .example {
    font-size: 0.82rem;
    color: var(--ink);
    background: var(--card-bg);
    border-left: 3px solid var(--accent);
    padding: 0.6rem 0.9rem;
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
    font-style: italic;
}

/* ─── COMPARISON TABLE ────────────────────── */
.comparison-wrap {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.comparison-table thead {
    background: var(--ink);
    color: white;
}
.comparison-table thead th {
    padding: 1.1rem 1.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
}
.comparison-table thead th:nth-child(2),
.comparison-table thead th:nth-child(3) {
    text-align: center;
    width: 140px;
}
.comparison-table thead th:nth-child(3) {
    background: var(--accent);
}
.comparison-table tbody tr {
    border-bottom: 1px solid var(--border);
}
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:nth-child(even) { background: var(--card-bg); }
.comparison-table tbody td {
    padding: 0.9rem 1.4rem;
    font-size: 0.9rem;
}
.comparison-table tbody td:nth-child(2),
.comparison-table tbody td:nth-child(3) {
    text-align: center;
    font-size: 1.1rem;
}
.comparison-table tbody td:nth-child(3) {
    background: rgba(230,57,70,0.04);
    font-weight: 600;
}
.check { color: var(--green); }
.cross { color: #d1d5db; }
.premium-col-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
}
.recommended-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Mobile table scroll */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ─── CTA SECTION ─────────────────────────── */
.cta-section {
    background: var(--ink);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}
.cta-section h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.6rem;
}
.cta-section .price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0 1rem;
}
.price-old {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
    font-family: 'Space Grotesk', sans-serif;
}
.price-new {
    font-size: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: white;
    letter-spacing: -2px;
}
.price-once {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}
.cta-section .cta-guarantee {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 2rem;
}
.cta-section .cta-guarantee strong {
    color: rgba(255,255,255,0.8);
}
.btn-cta-big {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 1.1rem 2.8rem;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
}
.btn-cta-big:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(230,57,70,0.4);
    color: white;
}
.cta-sub {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ─── FOOTER ──────────────────────────────── */
footer {
    background: var(--ink);
    color: rgba(255,255,255,0.45);
    text-align: center;
    padding: 2rem;
    font-size: 0.82rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}
footer a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
footer a:hover { color: white; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 0.75rem; flex-wrap: wrap; }

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    nav .btn-primary { display: none; }

    .features-hero { padding: 3rem 1.5rem 2.5rem; }
    .section-block { padding: 3rem 1.5rem; }
    .premium-grid-wrap { padding: 2.5rem 1.5rem; }
    .comparison-wrap { padding: 3rem 1.5rem; }
    .cta-section { padding: 4rem 1.5rem; }

    .free-grid { grid-template-columns: 1fr 1fr; }
    .premium-grid { grid-template-columns: 1fr; }

    .comparison-table thead th { padding: 0.85rem 1rem; font-size: 0.85rem; }
    .comparison-table tbody td { padding: 0.75rem 1rem; }
}

@media (max-width: 480px) {
    .free-grid { grid-template-columns: 1fr; }
    .price-new { font-size: 2.4rem; }
}