/* StyleLanding.css — styles spécifiques à start.php
   (le reste vient de StyleIndex.css : .hero, .bento, .privacy-section, .btn, etc.) */

/* ============ Anti-overflow horizontal global ============ */
html, body {
    overflow-x: hidden !important;
    overflow-x: clip !important;
    max-width: 100vw;
    width: 100%;
    margin: 0;
    padding: 0;
}
body {
    background:
        radial-gradient(1200px 600px at 50% -100px, rgba(124, 80, 255, 0.06), transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%);
    background-attachment: fixed;
}

/* main et toute la chaîne d'ancêtres de la landing : largeur fluide stricte */
main,
.lp-step,
.lp-step section,
.lp-step .container,
.lp-step .lp-split-grid,
.lp-step .lp-split-screens,
.lp-step .lp-split-form,
.lp-step .lp-form-card,
.lp-step .lp-form-card form,
.lp-step .features-section .container,
.lp-step .privacy-section .container,
.lp-step .faq-section .container,
.lp-step .lp-final-cta {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Inputs : ne jamais déborder du form */
.lp-form-card input,
.lp-form-card button {
    max-width: 100%;
    box-sizing: border-box;
}

/* Sectioning défensif — main fournit le clip horizontal */
main { overflow-x: clip; }

.lp-step { width: 100%; }

/* Toutes les sections internes héritent du fond du body — pas de seam */
.lp-step .hero,
.lp-step .features-section,
.lp-step .privacy-section,
.lp-step .faq-section,
.lp-step .cta-band-section {
    background: transparent !important;
}

/* ============ Section split : carousel + form ============ */
.lp-split-section {
    padding: 48px 16px 80px;
    background: transparent;
}
.lp-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
}
@media (min-width: 960px) {
    .lp-split-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        gap: 40px;
    }
}
.lp-split-screens h2 {
    margin: 0 0 8px;
    font-family: "LtpR", Inter, sans-serif;
    font-size: clamp(1.4rem, 2.6vw, 1.7rem);
}
.lp-split-screens .lead {
    color: #555;
    margin: 0 0 20px;
    font-size: 0.96rem;
}
.lp-split-form {
    display: flex;
    justify-content: center;
}

/* ============ Form card (réutilisé dans la colonne droite) ============ */
.lp-form-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(80, 60, 200, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 44px 40px 40px;
    max-width: 520px;
    width: 100%;
    margin-top: 55px;

}
.lp-form-card h2 {
    margin: 0 0 8px;
    font-family: "LtpR", Inter, sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
    color: #1b1b1b;
}
.lp-form-card .lead {
    margin: 0 0 24px;
    color: #555;
    font-size: 0.98rem;
}
.lp-form-card label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 0.92rem;
}
.lp-form-card input[type="text"],
.lp-form-card input[type="email"],
.lp-form-card input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d8d5e8;
    border-radius: 10px;
    font-size: 0.98rem;
    font-family: inherit;
    background: #fafaff;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
}
.lp-form-card input:focus {
    outline: none;
    border-color: #6d4d9a;
    box-shadow: 0 0 0 3px rgba(109, 77, 154, 0.12);
}
.lp-form-card .field-hint {
    font-size: 0.82rem;
    color: #888;
    margin: 4px 0 6px;
}
.lp-form-card .pwd-field {
    position: relative;
}
.lp-form-card .pwd-field input {
    padding-right: 44px;
}
.lp-form-card .pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 6px;
    cursor: pointer;
    color: #6d4d9a;
}
.lp-form-card .pwd-toggle svg {
    width: 22px;
    height: 22px;
}
.lp-submit-btn {
    margin-top: 22px;
    width: 100%;
}
.lp-msg {
    margin-top: 14px;
    font-size: 0.92rem;
    text-align: center;
    min-height: 1.2em;
}

/* ============ Carousel de screenshots ============ */
.lp-screens-track-wrap {
    position: relative;
    padding: 6px 0 0;
}
.lp-screens-track {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 2px 18px;
    scrollbar-width: none;
    box-sizing: border-box;
}
.lp-screens-track::-webkit-scrollbar { display: none; }

.lp-screen-card {
    flex: 0 0 100%;
    border-radius: 18px;
    background: linear-gradient(160deg, #f1edff 0%, #e7e0ff 60%, #d9d0ff 100%);
    position: relative;
    scroll-snap-align: center;
    overflow: hidden;
    isolation: isolate;
}
/* Cadre image avec ratio fixe, l'image est contenue (pas de crop) */
.lp-screen-card > img {
    display: block;
    width: calc(100% - 36px);
    margin: 18px 18px 0;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    object-position: center;
    border-radius: 5px;
    box-sizing: border-box;
    background: #ffffff5e;
}
/* Label sous l'image (pas par-dessus) */
.lp-screen-label {
    display: block;
    padding: 12px 18px 16px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.1px;
    color: #3a2a6a;
    text-align: center;
}
/* Placeholder décoratif si pas d'image */
.lp-screen-card:not(:has(> img)) {
    aspect-ratio: 16 / 10;
}
.lp-screen-card:not(:has(> img))::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 12px;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(124, 80, 255, 0.06) 0 12px,
            rgba(124, 80, 255, 0.02) 12px 24px
        );
    border: 1px dashed rgba(124, 80, 255, 0.25);
}

/* Boutons de navigation */
.lp-screens-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(124, 80, 255, 0.18);
    background: #fff;
    font-size: 22px;
    line-height: 1;
    color: #6d4d9a;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(80, 60, 200, 0.18);
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.lp-screens-btn:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 10px 24px rgba(80, 60, 200, 0.25);
    background: #faf8ff;
}
.lp-screens-btn-prev { left: -10px; }
.lp-screens-btn-next { right: -10px; }

/* Indicateurs (dots) */
.lp-screens-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}
.lp-screens-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(124, 80, 255, 0.22);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s, width 0.18s;
}
.lp-screens-dot.is-active {
    background: #6d4d9a;
    width: 22px;
    border-radius: 999px;
}

@media (max-width: 720px) {
    .lp-screens-btn { display: none; }
}

/* ============ CTA finale — remonte vers le form ============ */
.lp-final-cta-section {
    padding: 72px 16px 96px;
    background: transparent;
    text-align: center;
}
.lp-final-cta {
    max-width: 720px;
    margin: 0 auto;
}
.lp-final-cta h2 {
    margin: 0 0 10px;
    font-family: "LtpR", Inter, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: #1b1b1b;
}
.lp-final-cta p {
    margin: 0 0 28px;
    color: #555;
    font-size: 1rem;
}
.lp-final-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(97, 44, 255, 0.25);
    transition: transform 0.18s, box-shadow 0.18s;
}
.lp-final-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(97, 44, 255, 0.32);
}
.lp-final-cta-arrow {
    display: inline-block;
    transition: transform 0.18s;
}
.lp-final-cta-btn:hover .lp-final-cta-arrow {
    transform: translateY(-3px);
}

/* Scroll fluide pour les ancres internes */
html { scroll-behavior: smooth; }

/* ============ Step verify (6 inputs) ============ */
.lp-verify-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px 64px;
    background: transparent;
}
.lp-verify-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 50px rgba(80, 60, 200, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 52px 48px 44px;
    max-width: 520px;
    width: 100%;
    text-align: center;
}
.lp-verify-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 14px;
}
.lp-verify-card h1 {
    margin: 0 0 10px;
    font-family: "LtpR", Inter, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1b1b1b;
}
.lp-verify-card p {
    color: #555;
    margin: 0 0 26px;
    font-size: 0.96rem;
    line-height: 1.55;
}
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 22px;
}
.code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    border: 1.5px solid #d8d5e8;
    border-radius: 10px;
    background: #fafaff;
    color: #1b1b1b;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s;
    font-family: "JetBrains Mono", "Inter", monospace;
}
.code-input:focus {
    outline: none;
    border-color: #6d4d9a;
    box-shadow: 0 0 0 3px rgba(109, 77, 154, 0.16);
    transform: translateY(-1px);
}
.lp-verify-btn { width: 100%; }
.lp-resend {
    margin-top: 22px;
    font-size: 0.92rem;
    color: #555;
}
.lp-link-btn {
    background: none;
    border: 0;
    color: #6d4d9a;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.lp-link-btn:disabled {
    color: #aaa;
    cursor: not-allowed;
    text-decoration: none;
}
.lp-resend-timer {
    color: #999;
    font-size: 0.85rem;
}
.lp-back {
    margin-top: 22px;
    font-size: 0.88rem;
}
.lp-back a {
    color: #888;
    text-decoration: none;
}
.lp-back a:hover { color: #6d4d9a; }

/* ============ Adaptations mobile / tablette ============ */
@media (max-width: 959px) {
    /* Hero — équilibré, pas écrasé */
    .lp-step .hero { padding-top: 36px !important; padding-bottom: 28px !important; }
    .lp-step .hero .page-h1 {
        font-size: clamp(2.2rem, 9vw, 3rem) !important;
        line-height: 1.05 !important;
        margin-bottom: 14px !important;
    }
    .lp-step .hero .lead {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 18px !important;
    }
    .lp-step .hero .eyebrow {
        font-size: 0.82rem !important;
        margin-bottom: 14px !important;
    }
    .lp-step .trust-bar {
        gap: 10px !important;
        font-size: 0.78rem !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    .lp-step .trust-bar span { white-space: nowrap; }

    /* Section split : single column, padding cohérent avec les autres sections */
    .lp-split-section { padding: 24px 0 32px; }
    .lp-split-grid { gap: 28px; }

    /* Les 2 cards (carousel + form) doivent avoir EXACTEMENT la même empreinte visuelle */
    .lp-split-screens,
    .lp-split-form {
        width: 100%;
    }

    /* ===== FORM CARD sur mobile ===== */
    .lp-form-card {
        margin-top: 0;
        padding: 24px 18px 22px;
        border-radius: 14px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0 6px 20px rgba(80, 60, 200, 0.08);
    }
    .lp-form-card h2 { font-size: 1.25rem; }
    .lp-form-card .lead { font-size: 0.88rem; margin-bottom: 14px; }
    .lp-form-card label { font-size: 0.85rem; margin-top: 10px; margin-bottom: 4px; }
    .lp-form-card input[type="text"],
    .lp-form-card input[type="email"],
    .lp-form-card input[type="password"] {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    .lp-submit-btn { margin-top: 16px; padding: 12px 18px; font-size: 0.95rem; }

    /* ===== CAROUSEL CARDS sur mobile ===== */
    .lp-split-screens h2 { font-size: 1.15rem; margin-bottom: 2px; }
    .lp-split-screens .lead { font-size: 0.85rem; margin-bottom: 10px; }
    .lp-screens-track-wrap { padding: 0; overflow: hidden; }
    .lp-screens-track { gap: 12px; padding: 4px 0 14px; }
    .lp-screen-card {
        border-radius: 14px;
        box-shadow: 0 6px 20px rgba(80, 60, 200, 0.08);
    }
    .lp-screen-card > img {
        width: calc(100% - 16px);
        margin: 8px 8px 0;
        aspect-ratio: 16 / 10;
        border-radius: 4px;
    }
    .lp-screen-label {
        font-size: 0.78rem;
        padding: 8px 12px 10px;
    }
    .lp-screens-dots { margin-top: 2px; }

    /* Sections content — laisse respirer les blocs */
    .lp-step .features-section,
    .lp-step .privacy-section,
    .lp-step .faq-section {
        padding: 56px 0 !important;
    }
    .lp-step .features-section h2,
    .lp-step .privacy-section h2,
    .lp-step .faq-section h2 {
        font-size: clamp(1.6rem, 6.5vw, 2.1rem);
        line-height: 1.2;
        margin-bottom: 8px;
    }
    .lp-step .features-section .lead,
    .lp-step .privacy-banner .lead,
    .lp-step .faq-section .lead {
        font-size: 0.98rem !important;
        line-height: 1.55;
    }

    /* Bento — cards plus généreuses */
    .lp-step .bento { gap: 14px !important; margin-top: 28px !important; }
    .lp-step .bento-card { padding: 24px 20px !important; border-radius: 16px !important; }
    .lp-step .bento-card h3 { font-size: 1.05rem !important; }
    .lp-step .bento-card p { font-size: 0.92rem !important; line-height: 1.55 !important; }

    /* Privacy — moins de padding interne */
    .lp-step .privacy-banner { padding: 28px 22px !important; border-radius: 18px !important; }

    /* FAQ — items lisibles */
    .lp-step .faq-item h3 { font-size: 1rem !important; }
    .lp-step .faq-item p  { font-size: 0.92rem !important; line-height: 1.55 !important; }

    /* CTA finale */
    .lp-final-cta-section { padding: 48px 0 64px; }
    .lp-final-cta h2 { font-size: clamp(1.4rem, 5.5vw, 1.8rem); }
    .lp-final-cta p { font-size: 0.95rem; margin-bottom: 20px; }
    .lp-final-cta-btn { padding: 13px 24px; font-size: 1rem; }
}

@media (max-width: 540px) {
    /* Verify step */
    .lp-verify-section { padding: 20px 12px 40px; }
    .lp-verify-card { padding: 28px 18px 24px; border-radius: 14px; }
    .lp-verify-card h1 { font-size: 1.25rem; }
    .lp-verify-card p { font-size: 0.88rem; margin-bottom: 18px; }
    .code-input { width: 38px; height: 48px; font-size: 1.25rem; }
    .code-inputs { gap: 6px; }

    /* Logos marquee compacts */
    .lp-step .logos-marquee .carousel-item img {
        width: 26px !important;
        height: 26px !important;
    }
    .lp-step .logos-marquee .carousel-item { padding: 5px 9px !important; }
    .lp-step .logos-marquee .carousel-item span { font-size: 0.74rem !important; }
}
