/* ═══════════════════════════════════════════════════════════
   Emma Landing — Styles
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue:        #2563eb;
    --blue-dark:   #1d4ed8;
    --blue-light:  #eff6ff;
    --green:       #16a34a;
    --amber:       #d97706;
    --red:         #dc2626;
    --purple:      #7c3aed;

    --gray-50:   #f8fafc;
    --gray-100:  #f1f5f9;
    --gray-200:  #e2e8f0;
    --gray-300:  #cbd5e1;
    --gray-400:  #94a3b8;
    --gray-500:  #64748b;
    --gray-600:  #475569;
    --gray-700:  #334155;
    --gray-800:  #1e293b;
    --gray-900:  #0f172a;

    --radius:    12px;
    --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    color: var(--gray-700);
    background: #fff;
    line-height: 1.6;
}

/* ── Navigation ─────────────────────────────────────────────── */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-100);
    padding: 0 24px;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -1px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-logo span {
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-400);
    margin-left: 6px;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 4px;
    flex: 1;
    list-style: none;
}

.nav-links a {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.nav-links a:hover { background: var(--gray-100); color: var(--gray-900); }

.nav-cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-outline {
    background: #fff;
    color: var(--blue);
    border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue-light); }

.btn-ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.3);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e3a8a 100%);
    color: #fff;
    padding: 96px 24px 104px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.9);
    font-size: 13px;
    font-weight: 500;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(30px, 5.5vw, 56px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
}

.hero h1 em {
    font-style: normal;
    color: #93c5fd;
}

.hero > .hero-inner > p {
    font-size: 18px;
    color: rgba(255,255,255,.8);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.35);
    font-size: 22px;
    animation: bounce 2s ease-in-out infinite;
    user-select: none;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Layout helpers ─────────────────────────────────────────── */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

section { padding: 88px 0; }
section:nth-child(even) { background: var(--gray-50); }

/* ── Section labels ─────────────────────────────────────────── */

.section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--blue);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.5px;
    line-height: 1.15;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 540px;
    margin: 0 auto 52px;
    line-height: 1.7;
}

/* ── Feature cards ──────────────────────────────────────────── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 34px;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ── Steps ──────────────────────────────────────────────────── */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
}

.step-num {
    width: 56px;
    height: 56px;
    background: var(--blue);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

.step h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ── Pricing section ────────────────────────────────────────── */

#tarifs { background: var(--gray-50); }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 0;
}

.plan-card {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px 18px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.plan-card.featured {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37,99,235,.08), var(--shadow-md);
}

.plan-badge-featured {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-emoji {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}

.plan-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.plan-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.plan-price-sub {
    font-size: 11px;
    color: var(--gray-400);
    margin-bottom: 16px;
    min-height: 16px;
}

.plan-divider {
    border: none;
    border-top: 1px solid var(--gray-100);
    margin: 0 0 16px;
}

.plan-features {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
}

.plan-features li {
    font-size: 12.5px;
    color: var(--gray-600);
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.45;
}

.plan-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}

.plan-features li.no::before {
    content: '✕';
    color: var(--gray-300);
}

.plan-features li.no {
    color: var(--gray-400);
}

.plan-cta {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 8px 12px;
}

.plans-footer-note {
    text-align: center;
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 28px;
    line-height: 1.7;
}

.plans-footer-note a { color: var(--blue); text-decoration: none; }
.plans-footer-note a:hover { text-decoration: underline; }

/* ── Download / CTA section ─────────────────────────────────── */

.download-section {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    padding: 88px 24px;
    text-align: center;
}

.download-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 44px 0;
}

.dl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    position: relative;
}

.dl-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: 13px;
    color: var(--gray-600);
    font-size: 20px;
}

.dl-step-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.09);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dl-step-label {
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    max-width: 90px;
    line-height: 1.4;
}

.download-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────────── */

.footer {
    background: var(--gray-900);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 36px 24px;
    text-align: center;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 6px;
}

.footer p {
    font-size: 13px;
    color: var(--gray-500);
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: none;
    transition: color .15s;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
    margin-top: 18px;
    font-size: 12px;
    color: var(--gray-600) !important;
}

/* ── Spinner ─────────────────────────────────────────────────── */

.spinner-wrap {
    text-align: center;
    padding: 44px;
    color: var(--gray-400);
    font-size: 14px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .plans-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    section { padding: 60px 0; }
    .hero { padding: 64px 20px 80px; }
    .plans-grid { grid-template-columns: 1fr 1fr; }
    .dl-step:not(:last-child)::after { display: none; }
    .download-steps { gap: 20px; }
}

@media (max-width: 520px) {
    .plans-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .nav-cta .btn-outline { display: none; }
    .steps-grid { gap: 32px; }
}
