/* Landing Proceda */
.lp-page {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    scroll-behavior: smooth;
}

.lp-page section[id] {
    scroll-margin-top: 5.5rem;
}

.lp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 0.375rem 0.875rem;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.375rem;
    border-radius: 0.625rem;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.lp-btn-dark {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.lp-btn-dark:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.lp-btn-outline {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.lp-btn-outline:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.lp-btn-brand {
    background: #2563eb;
    color: #fff;
}

.lp-btn-brand:hover {
    background: #1d4ed8;
}

.lp-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 30px rgba(15, 23, 42, 0.04);
}

.lp-card-glow {
    position: relative;
    overflow: hidden;
}

.lp-card-glow::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(16, 185, 129, 0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.lp-mock {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.lp-stat {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #0f172a;
}

.lp-stat-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.375rem;
}

.lp-hero-grid {
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Calculateur */
.lp-calc {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .lp-calc {
        grid-template-columns: 1fr 1.1fr;
        align-items: stretch;
    }
}

.lp-calc-sliders {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lp-range-row {
    margin-bottom: 1.25rem;
}

.lp-range-row label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

.lp-range-row output {
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.lp-range {
    width: 100%;
    height: 6px;
    accent-color: #2563eb;
    cursor: pointer;
}

.lp-calc-result {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 260px;
}

.lp-calc-hero {
    font-size: clamp(2.75rem, 8vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0;
    color: #fff;
}

.lp-calc-hero-unit {
    font-size: 0.45em;
    font-weight: 700;
    opacity: 0.85;
}

.lp-calc-sub {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.lp-calc-hours {
    margin: 1.25rem 0 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #6ee7b7;
}

.lp-calc-roi {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
    color: #94a3b8;
}

.lp-calc-roi span {
    font-weight: 700;
    color: #e2e8f0;
}

/* Téléphone + démo animée */
.lp-phone-wrap {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

.lp-phone {
    width: min(100%, 300px);
    border: 10px solid #0f172a;
    border-radius: 2.25rem;
    background: #f8fafc;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.lp-phone-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
}

.lp-phone-notch {
    width: 88px;
    height: 22px;
    margin: 0 auto;
    background: #0f172a;
    border-radius: 0 0 1rem 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
}

.lp-phone-notch span {
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: #334155;
}

.lp-phone-home {
    height: 4px;
    width: 96px;
    margin: 0.625rem auto 0.5rem;
    border-radius: 999px;
    background: #cbd5e1;
}

.lp-demo {
    position: relative;
    min-height: 400px;
    background: #fff;
    padding-bottom: 2rem;
}

.lp-demo-stage {
    position: absolute;
    inset: 0;
    padding: 0.75rem 0.875rem 2.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
    background: #fff;
    pointer-events: none;
}

.lp-demo-stage.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
}

.lp-mail-inbox-header {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.lp-mail-row {
    display: flex;
    gap: 0.625rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.lp-mail-row.is-unread {
    background: #f8fafc;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 0.5rem;
}

.lp-mail-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-mail-open-meta {
    font-size: 0.6875rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.lp-mail-open-meta strong {
    color: #0f172a;
    font-weight: 600;
}

.lp-mail-body {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.55;
}

.lp-demo-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 1rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    background: #2563eb;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    position: relative;
}

.lp-demo-cta.is-pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 0.75rem;
    border: 2px solid rgba(37, 99, 235, 0.45);
    animation: lp-pulse 1.2s ease infinite;
}

@keyframes lp-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.lp-portal-head {
    text-align: center;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1rem;
}

.lp-portal-head p:first-child {
    font-size: 0.6875rem;
    color: #64748b;
}

.lp-portal-head p:last-child {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
}

.lp-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 0.875rem;
    padding: 1.5rem 1rem;
    text-align: center;
    background: #f8fafc;
}

.lp-upload-zone.is-filled {
    border-color: #2563eb;
    background: #eff6ff;
}

.lp-upload-bar-wrap {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    margin-top: 1rem;
    overflow: hidden;
}

.lp-upload-bar {
    height: 100%;
    width: 0;
    background: #2563eb;
    border-radius: 999px;
    transition: width 1.8s ease;
}

.lp-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 320px;
    padding: 1rem;
}

.lp-success-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    animation: lp-pop 0.5s ease;
}

@keyframes lp-pop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.lp-demo-cursor {
    position: absolute;
    bottom: 28%;
    right: 22%;
    width: 2rem;
    height: 2rem;
    z-index: 30;
    pointer-events: none;
    transition: transform 0.7s ease, opacity 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.lp-demo-cursor.is-tapping {
    transform: translate(-40px, 20px) scale(0.92);
}

.lp-demo-cursor.is-hidden {
    opacity: 0;
}

.lp-demo-dots {
    position: absolute;
    bottom: 0.25rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0;
    background: linear-gradient(transparent, #fff 40%);
    z-index: 10;
}

.lp-demo-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
}

.lp-demo-dot.is-active {
    background: #2563eb;
    width: 18px;
}

/* Feed registre */
.lp-feed {
    position: relative;
    padding-left: 1.5rem;
}

.lp-feed::before {
    content: "";
    position: absolute;
    left: 0.4375rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(180deg, #2563eb, #10b981);
    border-radius: 999px;
}

.lp-feed-item {
    position: relative;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateX(-6px);
}

.lp-feed-item--in {
    animation: lp-feed-in 0.5s ease forwards;
}

@keyframes lp-feed-in {
    to { opacity: 1; transform: translateX(0); }
}

.lp-feed-item::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 1.125rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #2563eb;
    box-shadow: 0 0 0 3px #eff6ff;
}

.lp-feed-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 0.875rem 1rem;
    display: grid;
    gap: 0.375rem;
}

.lp-feed-card time {
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
    color: #64748b;
}

.lp-feed-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
}

.lp-feed-tag--relance { background: #eff6ff; color: #1d4ed8; }
.lp-feed-tag--depot { background: #ecfdf5; color: #047857; }
.lp-feed-tag--rne { background: #fffbeb; color: #b45309; }
.lp-feed-tag--export { background: #f1f5f9; color: #475569; }

/* Sous-traitants schéma */
.lp-st-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.lp-st-node {
    width: 100%;
    max-width: 280px;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-align: center;
}

.lp-st-node--principal {
    border-color: #2563eb;
    background: #eff6ff;
}

.lp-st-branch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

.lp-st-connector {
    width: 2px;
    height: 1rem;
    background: #cbd5e1;
}

.lp-faq summary {
    cursor: pointer;
    list-style: none;
}

.lp-faq summary::-webkit-details-marker {
    display: none;
}

.lp-faq[open] summary .lp-faq-chevron {
    transform: rotate(180deg);
}

@media (max-width: 639px) {
    .lp-btn-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-btn-wrap .lp-btn {
        width: 100%;
    }

    .lp-demo-stage.is-active {
        min-height: 400px;
    }

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

@media (min-width: 640px) {
    .lp-nav .lp-btn-dark {
        padding-inline: 1rem;
        font-size: 0.875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-demo-stage,
    .lp-upload-bar,
    .lp-demo-cta.is-pulse::after,
    .lp-feed-item--in,
    .lp-success-icon {
        animation: none !important;
        transition: none !important;
    }
}

/* Boucle produit */
.lp-loop {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.lp-loop-step {
    flex: 0 0 min(100%, 9.5rem);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 1rem 0.875rem;
    text-align: center;
}

.lp-loop-icon {
    display: block;
    font-size: 1.375rem;
    margin-bottom: 0.375rem;
}

.lp-loop-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.375rem;
}

.lp-loop-desc {
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #64748b;
    margin: 0;
}

.lp-loop-arrow {
    flex: 0 0 auto;
    align-self: center;
    color: #cbd5e1;
    font-size: 1.125rem;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .lp-loop {
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
    }

    .lp-loop-step {
        flex: 0 1 10.5rem;
    }
}

/* Tableau comparatif */
.lp-compare-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem 1.25rem;
}

.lp-compare th,
.lp-compare td {
    vertical-align: top;
}

@media (max-width: 479px) {
    .lp-compare thead {
        display: none;
    }

    .lp-compare tr {
        display: block;
        padding: 0.75rem 0;
        border-top: 1px solid #f1f5f9;
    }

    .lp-compare td {
        display: block;
        border: none;
        padding: 0.25rem 0;
    }

    .lp-compare td:first-child::before {
        content: "Sans : ";
        font-weight: 600;
        color: #94a3b8;
    }

    .lp-compare td:last-child::before {
        content: "Avec : ";
        font-weight: 600;
        color: #047857;
    }
}

/* Fiche dossier associé */
.lp-dossier-card {
    border-left: 3px solid #ef4444;
}

/* Chronologie relances */
.lp-chrono {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid #e2e8f0;
    margin-left: 0.5rem;
}

.lp-chrono li {
    position: relative;
    padding: 0 0 1rem 1.25rem;
    font-size: 0.875rem;
    color: #334155;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lp-chrono li::before {
    content: "";
    position: absolute;
    left: -0.4375rem;
    top: 0.35rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 3px #eff6ff;
}

.lp-chrono li:last-child {
    padding-bottom: 0;
}

.lp-chrono time {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #64748b;
    min-width: 3rem;
}

/* Chaîne Excel vs Proceda */
.lp-flow-chain {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-flow-chain li {
    position: relative;
    padding: 0.375rem 0 0.375rem 1.25rem;
}

.lp-flow-chain li::before {
    content: "↓";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-size: 0.75rem;
    top: 0.5rem;
}

.lp-flow-chain li:first-child::before {
    content: "·";
    top: 0.375rem;
}
