/* ============================================================
   SEO Pilot - Landing Page
   ============================================================ */

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

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
    background: #ffffff;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Layout ---- */
.section-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.75rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: #1e40af;
}

.nav-btn-outline {
    padding: 0.5rem 1.25rem !important;
    border: 1.5px solid #3b82f6 !important;
    border-radius: 8px;
    color: #3b82f6 !important;
    font-weight: 600 !important;
    transition: all 0.15s !important;
}

.nav-btn-outline:hover {
    background: #eff6ff;
}

.nav-btn-primary {
    padding: 0.5rem 1.25rem !important;
    background: #3b82f6;
    border-radius: 8px;
    color: white !important;
    font-weight: 600 !important;
    transition: all 0.15s !important;
}

.nav-btn-primary:hover {
    background: #2563eb;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 7rem 0 4rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f8fafc 100%);
}

.hero-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    background: #22c55e;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.btn-hero-primary:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    background: #3b82f6;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-hero-secondary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.hero-hint {
    font-size: 0.85rem;
    color: #94a3b8;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* ============================================================
   AVANTAGES
   ============================================================ */
.avantages {
    padding: 5rem 0;
    background: #ffffff;
}

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.avantage-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.avantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.avantage-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: #eff6ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.avantage-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.avantage-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

/* ============================================================
   FONCTIONNALITES
   ============================================================ */
.fonctionnalites {
    padding: 5rem 0;
    background: #f8fafc;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 5rem;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.feature-reverse {
    grid-template-columns: 1.2fr 1fr;
}

.feature-block.feature-reverse .feature-text {
    order: 2;
}

.feature-block.feature-reverse .feature-image {
    order: 1;
}

.feature-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-badge.badge-green {
    background: #f0fdf4;
    color: #16a34a;
}

.feature-badge.badge-purple {
    background: #faf5ff;
    color: #7c3aed;
}

.feature-badge.badge-orange {
    background: #fff7ed;
    color: #ea580c;
}

.feature-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}

.feature-image img {
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
    padding: 5rem 0;
    background: #ffffff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 820px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card-pro {
    border-color: #f59e0b;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 1.25rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.pricing-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: #3b82f6;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.pricing-badge-pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pricing-price {
    margin-bottom: 2rem;
}

.pricing-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.pricing-period {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.6rem 0 0.6rem 2rem;
    position: relative;
    font-size: 0.95rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
    font-size: 1.1rem;
}

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

.btn-pricing-primary {
    display: block;
    padding: 0.9rem 2rem;
    background: #3b82f6;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 10px;
    transition: all 0.2s;
    text-align: center;
}

.btn-pricing-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-pricing-secondary {
    display: block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #22c55e;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid #22c55e;
    border-radius: 10px;
    transition: all 0.15s;
    text-align: center;
}

.btn-pricing-pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-pricing-pro:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.btn-pricing-secondary:hover {
    background: #f0fdf4;
}

.pricing-hint {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ============================================================
   ADD-ONS
   ============================================================ */
.addons-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.addon-card {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
}

.addon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.addon-card-highlight {
    border-color: #fde68a;
}

.addon-card-highlight:hover {
    border-color: #f59e0b;
    box-shadow: 0 16px 48px rgba(245, 158, 11, 0.12);
}

.addon-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
}

.addon-card-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 12px;
    color: #2563eb;
}

.addon-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.2rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.addon-badge-free {
    background: #f0fdf4;
    color: #16a34a;
}

.addon-badge-pro {
    background: #fffbeb;
    color: #d97706;
}

.addon-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.addon-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    flex-grow: 1;
}

.addon-card-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
    transition: color 0.15s;
}

.addon-card:hover .addon-card-link {
    color: #1d4ed8;
}

.addon-card-highlight .addon-card-link {
    color: #d97706;
}

.addon-card-highlight:hover .addon-card-link {
    color: #b45309;
}

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

.btn-addons-all {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid #3b82f6;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-addons-all:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.landing-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3.5rem 0 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #1e293b;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.6rem;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: #64748b;
    transition: color 0.15s;
}

.footer-bottom a:hover {
    color: #94a3b8;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.feature-image img,
.hero-image img {
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-image img:hover,
.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    padding: 2rem;
    animation: lightbox-fade-in 0.2s ease;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    animation: lightbox-scale-in 0.25s ease;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes lightbox-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightbox-scale-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .avantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-block,
    .feature-block.feature-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-block.feature-reverse .feature-text {
        order: 1;
    }

    .feature-block.feature-reverse .feature-image {
        order: 2;
    }

    .footer-top {
        flex-direction: column;
    }

    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .avantages-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .pricing-amount {
        font-size: 2.5rem;
    }

    .addons-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-nav {
        flex-direction: column;
        gap: 2rem;
    }
}
