/* ============================================================
   CacheBoost — Site vitrine
   Design: Option B3 — Vert Performance
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
    --primary:        #16A34A;
    --primary-dark:   #15803D;
    --primary-light:  #DCFCE7;
    --primary-xlight: #F0FDF4;
    --accent:         #0EA5E9;
    --accent-light:   #E0F2FE;
    --white:          #FFFFFF;
    --surface:        #F9FAFB;
    --text:           #0F172A;
    --text-secondary: #374151;
    --muted:          #6B7280;
    --border:         #E5E7EB;
    --border-green:   #BBF7D0;
    --radius:         12px;
    --radius-lg:      20px;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:         0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:      0 12px 40px rgba(0,0,0,.10);
    --transition:     0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* évite le zoom iOS sur les inputs — supprime un CLS mobile */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    /* Outfit Fallback en premier : métriques calquées → 0 shift au swap */
    font-family: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-secondary); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 1rem;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* Sections below-the-fold : rendu différé → améliore LCP et TBT */
section.problem,
section.cms,
section.faq-section,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-logo-dot { color: var(--primary); }
.nav-logo-text { display: flex; flex-direction: column; line-height: 0.9; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    padding: 6px 12px;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--surface); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-login {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    padding: 6px 12px;
    border-radius: 8px;
    transition: color var(--transition);
}
.nav-login:hover { color: var(--text); }

.lang-switch {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 8px;
    transition: all var(--transition);
}
.lang-switch { transition: color var(--transition), border-color var(--transition); }
.lang-switch:hover { color: var(--primary); border-color: var(--primary); }

.nav-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}
body.menu-open .nav-overlay { display: block; }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--white);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 1.25rem 1.25rem 2rem;
    z-index: 100;
    transition: right 0.25s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}
.mobile-menu.open { right: 0; }
.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    align-self: flex-end;
    padding: 4px;
    margin-bottom: 0.5rem;
}
.mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: 8px;
    transition: background var(--transition);
}
.mobile-menu a:hover { background: var(--surface); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    /* Propriétés explicites : évite d'animer width/height/margin qui causent des reflows */
    transition: background-color var(--transition), color var(--transition),
                border-color var(--transition), box-shadow var(--transition),
                transform var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary { will-change: transform; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(22,163,74,.3); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { font-size: 1.0625rem; padding: 13px 28px; border-radius: 14px; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    padding: 6rem 0 5rem;
    text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, #dcfce7 0%, transparent 70%);
}

.hero h1 { margin-bottom: 1.25rem; }

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 560px;
    margin: 0 auto 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-green);
    flex-wrap: wrap;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ── Section headers ─────────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.0625rem; }

/* ── Problem section ─────────────────────────────────────────── */
.problem { background: var(--surface); }

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.problem-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: box-shadow var(--transition);
}
.problem-card:hover { box-shadow: var(--shadow); }

.problem-icon {
    width: 44px;
    height: 44px;
    background: #FEF2F2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.problem-card h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }

/* ── How it works ────────────────────────────────────────────── */
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

.step h3 { font-size: 1.125rem; }
.step p  { font-size: 0.9375rem; }

/* ── Feature cards ───────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    /* contain évite les reflows en cascade sur les autres cards */
    contain: layout style;
    will-change: transform;
}
.feature-card:hover {
    border-color: var(--border-green);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.feature-card p  { font-size: 0.9rem; }

/* ── CMS compatibility ───────────────────────────────────────── */
.cms { background: var(--surface); }

.cms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.cms-badge {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}
.cms-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-xlight);
}

/* ── CTA band ────────────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    text-align: center;
    padding: 5rem 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.cta-band p  { color: rgba(255,255,255,.8); margin: 0.75rem auto 2rem; max-width: 440px; font-size: 1.0625rem; }

/* ── Page heroes (inner pages) ───────────────────────────────── */
.page-hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, #dcfce7 0%, transparent 70%);
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .hero-subtitle { margin-bottom: 0; }

/* ── Features page ───────────────────────────────────────────── */
.feature-group { margin-bottom: 5rem; }
.feature-group:last-child { margin-bottom: 0; }

.feature-group-header { margin-bottom: 2.5rem; }
.feature-group-header h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.5rem; }

.feature-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: box-shadow var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-name  { font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 0.5rem; }
.pricing-price { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 0.25rem; }
.pricing-price sup { font-size: 1.25rem; vertical-align: super; }
.pricing-period { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.75rem; }
.pricing-quota  { font-size: 2rem; font-weight: 800; line-height: 1.1; margin-bottom: 0.25rem; }
.pricing-quota-unit { font-size: 0.8rem; font-weight: 500; color: var(--muted); display: block; margin-bottom: 1rem; }
.pricing-desc   { font-size: 0.9rem; color: var(--muted); padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.pricing-ai-feature { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: #ae3ec9; margin-bottom: 0.75rem; }
.hero .pricing-ai-feature { margin-bottom: 2.5rem; }
.pricing-ai-feature svg { width: 14px; height: 14px; flex-shrink: 0; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 2rem; }
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.pricing-features li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--primary-light);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2316A34A'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.pricing-card .btn { width: 100%; justify-content: center; }

.pricing-all-features {
    margin-bottom: 3rem;
    text-align: center;
}
.pricing-all-features-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.pricing-features-shared {
    list-style: none;
    display: inline-grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.625rem 2rem;
    text-align: left;
}
.pricing-features-shared li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.pricing-features-shared li::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: var(--primary-light);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2316A34A'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.pricing-free-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0.875rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}
.pricing-free-info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--muted);
}
.pricing-free-name { font-weight: 700; color: var(--text); }
.pricing-free-quota { font-weight: 600; color: var(--text); }
.pricing-free-sep { color: var(--border); }
.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-sm { font-size: 0.8125rem; padding: 0.375rem 0.875rem; }

.faq-section { background: var(--surface); }

.faq-list { display: flex; flex-direction: column; gap: 1rem; max-width: 720px; margin: 0 auto; }

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}
.faq-q { font-weight: 600; margin-bottom: 0.5rem; }
.faq-a { font-size: 0.9375rem; color: var(--muted); }

/* ── Regions ─────────────────────────────────────────────────── */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.region-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.region-card.available { border-color: var(--border-green); }
.region-card { will-change: transform; contain: layout style; }
.region-card.available:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.region-card.coming-soon { opacity: 0.6; }

.region-flag { font-size: 2rem; line-height: 1; }
.region-name { font-weight: 700; font-size: 1.0625rem; }
.region-city { font-size: 0.875rem; color: var(--muted); }

.region-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    width: fit-content;
}
.region-status.available {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.region-status.coming-soon {
    background: #F3F4F6;
    color: var(--muted);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.why-card {
    border-left: 3px solid var(--primary);
    padding-left: 1.25rem;
}
.why-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.why-card p  { font-size: 0.9rem; }

/* ── Try/Registration ────────────────────────────────────────── */
.try-page {
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.try-left {
    padding: 4rem 3rem 4rem 0;
}

.try-left h1 { margin-bottom: 1rem; }
.try-left .hero-subtitle { margin: 0 0 2.5rem; text-align: left; }

.try-perks { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.try-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
}
.try-perks li::before {
    content: '✓';
    width: 22px;
    height: 22px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.try-right {
    padding: 4rem 0 4rem 3rem;
    border-left: 1px solid var(--border);
}

.try-free-upsell {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.try-free-upsell-title {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.try-free-upsell-plans {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.try-plan-pill {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.try-plan-pill:hover {
    border-color: var(--green);
    color: var(--green);
}

.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow);
}

.form-group { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.25rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.form-hint  { font-size: 0.8rem; color: var(--muted); }

.form-input {
    font-family: inherit;
    font-size: 0.9375rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    width: 100%;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-input::placeholder { color: #D1D5DB; }

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    cursor: pointer;
}
.form-check input[type=checkbox] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.link-green { color: var(--primary); font-weight: 600; }
.link-green:hover { text-decoration: underline; }

.form-footer { text-align: center; font-size: 0.875rem; color: var(--muted); margin-top: 1.25rem; }
.form-footer a { color: var(--primary); font-weight: 600; }

.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.alert-danger { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ── Plan summary (try page) ──────────────────────────────────── */
.plan-summary {
    background: var(--primary-light);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius);
    padding: 1rem 1.125rem;
    margin-bottom: 1.5rem;
}
.plan-summary-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.plan-summary-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}
.plan-summary-price {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-dark);
}
.plan-summary-period {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--muted);
}
.plan-summary-quota {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.plan-summary-trial {
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: 500;
}
.plan-billing-switch {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    opacity: 0.75;
}
.plan-billing-switch:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--text);
    color: #9CA3AF;
    padding: 4rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .nav-logo { color: #fff; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.9rem; max-width: 240px; line-height: 1.6; }

.footer-col h4 { color: #fff; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: #9CA3AF; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }

/* ── Legal / Terms page ──────────────────────────────────────── */
.legal-page { padding: 4rem 0 6rem; }

.legal-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.legal-header h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 0.5rem; }
.legal-header .legal-date { font-size: 0.875rem; color: var(--muted); }

.legal-body { max-width: 780px; }

.legal-article { margin-bottom: 2.5rem; }
.legal-article h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.875rem;
    padding-left: 0.875rem;
    border-left: 3px solid var(--primary);
}
.legal-article p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 0.75rem; }
.legal-article p:last-child { margin-bottom: 0; }
.legal-article ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.legal-article ul li { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }
.legal-article strong { color: var(--text); font-weight: 600; }

.legal-toc {
    background: var(--primary-xlight);
    border: 1px solid var(--border-green);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-bottom: 3rem;
}
.legal-toc h3 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--primary); margin-bottom: 0.75rem; }
.legal-toc ol { margin-left: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.legal-toc ol li { font-size: 0.875rem; color: var(--text-secondary); }
.legal-toc ol li a { color: var(--primary-dark); }
.legal-toc ol li a:hover { text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    font-size: 0.8125rem;
    color: #6B7280;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.cb-faq { padding: 4rem 0; }

.cb-faq__inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cb-faq__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.cb-faq__list { border-top: 1px solid var(--border); }

.cb-faq__item { border-bottom: 1px solid var(--border); }

.cb-faq__item > summary { list-style: none; }
.cb-faq__item > summary::-webkit-details-marker { display: none; }

.cb-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    gap: 1rem;
    user-select: none;
}

.cb-faq__question:hover { color: var(--primary); }

.cb-faq__icon {
    flex-shrink: 0;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.cb-faq__item[open] .cb-faq__icon { transform: rotate(180deg); }

.cb-faq__answer {
    padding-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.cb-faq__answer p + p { margin-top: 0.5rem; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links, .nav-login { display: none; }
    .nav-burger { display: flex; }
    .nav-actions { gap: 0.5rem; margin-left: auto; }
    .nav-actions .btn, .nav-actions .nav-login { display: none; }

    .hero { padding: 4rem 0 3rem; }
    .hero-stats { gap: 2rem; }

    .try-page {
        grid-template-columns: 1fr;
    }
    .try-left { padding: 3rem 0 0; }
    .try-right { border-left: none; border-top: 1px solid var(--border); padding: 2.5rem 0 3rem; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    section { padding: 3.5rem 0; }
}

/* ── Accessibilité : désactive les animations si l'utilisateur le préfère ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { text-align: center; justify-content: center; }
}
