/* ============================================================
   PL REVIEW - Landing Page CSS
   Design: clean, modern, conversion-focused (inspired by avis-verifies.com / Airbnb)
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --pl-primary: #2563EB;
    --pl-primary-dark: #1D4ED8;
    --pl-accent: #7C3AED;
    --pl-text: #111827;
    --pl-text-light: #6B7280;
    --pl-bg: #FFFFFF;
    --pl-bg-subtle: #F9FAFB;
    --pl-bg-dark: #0F172A;
    --pl-border: #E5E7EB;
    --pl-success: #16A34A;
    --pl-radius: 12px;
    --pl-radius-lg: 16px;
    --pl-shadow: 0 1px 3px rgba(0,0,0,.08);
    --pl-shadow-lg: 0 10px 40px rgba(0,0,0,.1);
    --pl-transition: .25s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.lp-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--pl-text);
    background: var(--pl-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* --- Container --- */
.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    padding: 12px 24px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--pl-transition);
    white-space: nowrap;
}

.lp-btn-primary {
    background: var(--pl-primary);
    color: #fff;
    border-color: var(--pl-primary);
}
.lp-btn-primary:hover {
    background: var(--pl-primary-dark);
    border-color: var(--pl-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

.lp-btn-outline {
    background: transparent;
    color: var(--pl-text);
    border-color: var(--pl-border);
}
.lp-btn-outline:hover {
    border-color: var(--pl-primary);
    color: var(--pl-primary);
}

.lp-btn-lg {
    padding: 16px 32px;
    font-size: 17px;
    border-radius: 12px;
}

.lp-btn-white {
    background: #fff;
    color: var(--pl-primary);
    border-color: #fff;
}
.lp-btn-white:hover {
    background: #F0F4FF;
    transform: translateY(-1px);
}

/* ============================================================
   HEADER (sticky)
   ============================================================ */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pl-border);
    transition: box-shadow var(--pl-transition);
}
.lp-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
}

.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.lp-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--pl-text);
}
.lp-logo span {
    color: var(--pl-primary);
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.lp-nav a.lp-nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--pl-text-light);
    transition: color var(--pl-transition);
}
.lp-nav a.lp-nav-link:hover {
    color: var(--pl-text);
}

.lp-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================================
   HERO
   ============================================================ */
.lp-hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, #EFF6FF 0%, var(--pl-bg) 100%);
}

.lp-hero h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.lp-hero h1 span {
    color: var(--pl-accent);
}

.lp-hero-sub {
    font-size: 20px;
    line-height: 1.6;
    color: var(--pl-text-light);
    max-width: 620px;
    margin: 0 auto 40px;
}

.lp-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.lp-hero-img {
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--pl-radius-lg);
    box-shadow: var(--pl-shadow-lg);
    overflow: hidden;
}
.lp-hero-img img {
    width: 100%;
}

/* Hero elements — invisible au load, le JS les anime */
.hero-el {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    will-change: transform, opacity, filter;
}
.hero-el.hero-loaded {
    /* Transition d'apparition au chargement (une seule fois) */
    transition: opacity .8s cubic-bezier(.16,1,.3,1),
                transform .8s cubic-bezier(.16,1,.3,1),
                filter .8s cubic-bezier(.16,1,.3,1);
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
/* Quand le scroll prend le relais, on desactive la transition CSS */
.hero-el.hero-scroll {
    transition: none;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.lp-stats {
    background: var(--pl-bg-dark);
    padding: 48px 0;
}

.lp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.lp-stat-number {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.lp-stat-label {
    font-size: 15px;
    color: rgba(255,255,255,.65);
    font-weight: 500;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.lp-section {
    padding: 96px 0;
}
.lp-section-alt {
    background: var(--pl-bg-subtle);
}

.lp-section-header {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 64px;
}
.lp-section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.lp-section-header p {
    font-size: 18px;
    color: var(--pl-text-light);
    line-height: 1.6;
}

/* ============================================================
   FEATURES (alternating text/image)
   ============================================================ */
.lp-feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}
.lp-feature-block:last-child {
    margin-bottom: 0;
}

.lp-feature-block:nth-child(even) {
    direction: rtl;
}
.lp-feature-block:nth-child(even) > * {
    direction: ltr;
}

.lp-feature-text {
    max-width: 480px;
}

.lp-feature-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pl-primary);
    background: #EFF6FF;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.lp-feature-text h3 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.lp-feature-text p {
    font-size: 17px;
    color: var(--pl-text-light);
    line-height: 1.7;
}

.lp-feature-img {
    border-radius: var(--pl-radius-lg);
    overflow: hidden;
    box-shadow: var(--pl-shadow-lg);
    background: var(--pl-bg-subtle);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder for missing images */
.lp-feature-img .lp-placeholder {
    font-size: 48px;
    opacity: .3;
}

/* ============================================================
   PRICING
   ============================================================ */
.lp-pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.lp-toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--pl-text-light);
    cursor: pointer;
    transition: color var(--pl-transition);
}
.lp-toggle-label.active {
    color: var(--pl-text);
}

.lp-toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--pl-border);
    border-radius: 14px;
    cursor: pointer;
    transition: background var(--pl-transition);
}
.lp-toggle-switch.active {
    background: var(--pl-primary);
}
.lp-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--pl-transition);
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.lp-toggle-switch.active::after {
    transform: translateX(24px);
}

.lp-save-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--pl-success);
    background: #ECFDF5;
    padding: 4px 10px;
    border-radius: 20px;
}

.lp-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto 48px;
}

.lp-plan-card {
    background: var(--pl-bg);
    border: 2px solid var(--pl-border);
    border-radius: var(--pl-radius-lg);
    padding: 40px 32px;
    transition: box-shadow var(--pl-transition), border-color var(--pl-transition);
    position: relative;
}
.lp-plan-card:hover {
    box-shadow: var(--pl-shadow-lg);
}

.lp-plan-card.featured {
    border-color: var(--pl-primary);
}

.lp-plan-featured-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pl-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.lp-plan-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.lp-plan-price {
    margin-bottom: 24px;
}
.lp-plan-price .amount {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}
.lp-plan-price .period {
    font-size: 16px;
    color: var(--pl-text-light);
    font-weight: 500;
}
.lp-plan-yearly-note {
    font-size: 13px;
    color: var(--pl-text-light);
    margin-top: 4px;
}

.lp-plan-features {
    list-style: none;
    margin-bottom: 32px;
}
.lp-plan-features li {
    padding: 8px 0;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--pl-border);
}
.lp-plan-features li:last-child {
    border-bottom: none;
}
.lp-plan-features li::before {
    content: '✓';
    color: var(--pl-success);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.lp-plan-features li.disabled {
    color: var(--pl-text-light);
    text-decoration: line-through;
}
.lp-plan-features li.disabled::before {
    content: '—';
    color: var(--pl-text-light);
}

.lp-plan-cta {
    width: 100%;
}

/* Agency box */
.lp-agency-box {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: var(--pl-radius-lg);
    padding: 48px;
    text-align: left;
    color: #fff;
}
.lp-agency-box h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}
.lp-agency-box p {
    color: rgba(255,255,255,.7);
    font-size: 16px;
    margin-bottom: 24px;
}

.lp-agency-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.lp-agency-table th {
    color: #94A3B8;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.lp-agency-table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #E2E8F0;
    text-align: left;
}
.lp-agency-table td:last-child {
    text-align: right;
}
.lp-agency-table tr:last-child td {
    border-bottom: none;
}
.lp-plan-price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--pl-text-muted, #6B7280);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.lp-step {
    text-align: center;
    position: relative;
}

.lp-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--pl-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

/* Connector line between steps */
.lp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 36px);
    width: calc(100% - 72px);
    height: 2px;
    background: var(--pl-border);
}

.lp-step h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}
.lp-step p {
    font-size: 14px;
    color: var(--pl-text-light);
    line-height: 1.6;
    max-width: 200px;
    margin: 0 auto;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.lp-faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.lp-faq-item {
    border-bottom: 1px solid var(--pl-border);
}
.lp-faq-item:first-child {
    border-top: 1px solid var(--pl-border);
}

.lp-faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--pl-text);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
}
.lp-faq-q:hover {
    color: var(--pl-primary);
}

.lp-faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pl-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--pl-text-light);
    transition: transform var(--pl-transition);
}
.lp-faq-item.open .lp-faq-icon {
    transform: rotate(45deg);
}

.lp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
}
.lp-faq-item.open .lp-faq-a {
    max-height: 300px;
}

.lp-faq-a-inner {
    padding: 0 0 20px;
    font-size: 15px;
    color: var(--pl-text-light);
    line-height: 1.7;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.lp-cta-final {
    padding: 96px 0;
    background: linear-gradient(135deg, var(--pl-primary) 0%, var(--pl-accent) 100%);
    text-align: center;
    color: #fff;
}

.lp-cta-final h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.lp-cta-final p {
    font-size: 18px;
    opacity: .85;
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.lp-cta-final-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.lp-footer {
    background: var(--pl-bg-dark);
    padding: 48px 0;
    text-align: center;
    color: rgba(255,255,255,.5);
    font-size: 14px;
}
.lp-footer a {
    color: rgba(255,255,255,.7);
    transition: color var(--pl-transition);
}
.lp-footer a:hover {
    color: #fff;
}
.lp-footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
}

/* ============================================================
   SCROLL ANIMATIONS — JS scroll-linked bidirectionnel
   Le JS gere 100% du transform/opacity/filter.
   Le CSS ici ne definit que les etats initiaux noscript et le hover.
   ============================================================ */

/* Etat initial noscript fallback */
.anim { opacity: 0; }

/* Screenshot image hover — seulement box-shadow (transform gere par scroll JS) */
.lp-feature-img img {
    transition: box-shadow .4s ease;
}
.lp-feature-img img:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,.12) !important;
}

/* Plan card hover lift — pas de transition sur transform (gere par scroll JS) */
.lp-plan-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,.1) !important;
}

/* Step number pulse — declenche par JS quand progress > 0.9 */
@keyframes step-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,99,235,.4); }
    70%  { box-shadow: 0 0 0 14px rgba(37,99,235,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}
.step-pulsed .lp-step-num {
    animation: step-pulse .8s ease-out .4s;
}

/* Stat number shimmer — declenche par JS via classe .stat-shimmer */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.stat-shimmer .lp-stat-number {
    background: linear-gradient(90deg, #fff 40%, rgba(255,255,255,.5) 50%, #fff 60%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 1.2s ease .2s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .lp-header-inner {
        height: 60px;
    }

    .lp-nav {
        display: none;
    }

    .lp-hero {
        padding: 64px 0 48px;
    }
    .lp-hero h1 {
        font-size: 32px;
    }
    .lp-hero-sub {
        font-size: 17px;
    }

    .lp-stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .lp-stat-number {
        font-size: 32px;
    }

    .lp-section {
        padding: 64px 0;
    }

    .lp-feature-block {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 56px;
    }
    .lp-feature-block:nth-child(even) {
        direction: ltr;
    }
    .lp-feature-text {
        max-width: 100%;
    }

    .lp-plans {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .lp-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
    .lp-step:not(:last-child)::after {
        display: none;
    }

    .lp-agency-box {
        padding: 32px 24px;
    }

    .lp-cta-final {
        padding: 64px 0;
    }
}

@media (max-width: 480px) {
    .lp-container {
        padding: 0 16px;
    }

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

    .lp-steps {
        grid-template-columns: 1fr;
    }

    .lp-plan-card {
        padding: 32px 24px;
    }
}
