/* ==========================================================================
   Kiorga · page d'accueil (landing page), préfixe .lp-
   Animations en CSS ; apparition au défilement via reveal_controller.js.
   Tout est désactivé avec « réduire les animations ».
   ========================================================================== */

.lp { --lp-violet: #8b5cf6; --lp-pink: #ec4899; overflow-x: clip; background: var(--bg); }
.lp-container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.lp-narrow { max-width: 780px; }
.lp .btn-lg { padding: .8rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.lp .btn-lg .icon { width: 18px; height: 18px; }
.lp .btn-block { display: flex; width: 100%; justify-content: center; }
.lp h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.025em; line-height: 1.15; }

/* En-tête collant */
.lp-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 247, 251, .75); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(230, 231, 239, .7); }
.lp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.lp-nav { display: flex; gap: 1.6rem; }
.lp-nav a { color: var(--text-muted); font-weight: 550; font-size: .93rem; position: relative; }
.lp-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transition: transform .25s ease; }
.lp-nav a:hover { color: var(--text); }
.lp-nav a:hover::after { transform: scaleX(1); }
.lp-header-actions { display: flex; gap: .4rem; }
@media (max-width: 900px) { .lp-nav { display: none; } }
@media (max-width: 420px) { .lp-header-actions .btn-ghost { display: none; } }

/* Accroche */
.lp-hero { position: relative; padding: 4.5rem 0 4rem; }
.lp-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: lp-drift 18s ease-in-out infinite alternate; }
.lp-blob-1 { width: 520px; height: 520px; background: #c7d2fe; top: -160px; left: -140px; }
.lp-blob-2 { width: 460px; height: 460px; background: #f5d0fe; top: 40px; right: -160px; animation-delay: -6s; }
.lp-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 960px) { .lp-hero-grid { grid-template-columns: 1fr; gap: 3rem; } .lp-hero-text { text-align: center; } }

.lp-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem .35rem .6rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: .85rem; font-weight: 600; color: var(--primary-ink); margin-bottom: 1.4rem; animation: lp-up .7s ease both; }
.lp-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(21, 128, 61, .5); animation: lp-ping 2s ease-out infinite; }
.lp-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.035em; line-height: 1.07; margin-bottom: 1.2rem; animation: lp-up .7s .08s ease both; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--primary), var(--lp-violet), var(--lp-pink), var(--primary)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lp-shine 8s linear infinite; }
.lp-lead { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; margin: 0 0 2rem; animation: lp-up .7s .16s ease both; }
.lp-cta { display: flex; flex-wrap: wrap; gap: .75rem; animation: lp-up .7s .24s ease both; }
.lp-reassure { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--text-muted); font-size: .88rem; animation: lp-up .7s .32s ease both; }
.lp-reassure li { display: flex; align-items: center; gap: .35rem; }
.lp-reassure .icon { width: 16px; height: 16px; color: var(--success); stroke-width: 3; }
@media (max-width: 960px) { .lp-lead { margin-inline: auto; } .lp-cta, .lp-reassure { justify-content: center; } }

/* Maquette de l'application */
.lp-mockup { position: relative; animation: lp-up .9s .2s ease both; }
.lp-window { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 40px 80px -24px rgba(49, 46, 129, .35), var(--shadow); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .6s ease; }
.lp-mockup:hover .lp-window { transform: perspective(1400px) rotateY(0) rotateX(0); }
@media (max-width: 960px) { .lp-window { transform: none; } }
.lp-window-bar { display: flex; align-items: center; gap: 6px; padding: .7rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface-muted); }
.lp-window-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.lp-window-bar > span:nth-child(2) { background: #fbbf24; }
.lp-window-bar > span:nth-child(3) { background: #34d399; }
.lp-window-url { margin-left: .8rem; flex: 1; max-width: 260px; padding: .2rem .7rem; border-radius: 6px; background: var(--surface); color: var(--text-faint); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-window-body { display: flex; min-height: 300px; }
.lp-mini-sidebar { display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 1rem .7rem; border-right: 1px solid var(--border); background: #fbfbfe; }
.lp-mini-sidebar .brand-mark { width: 28px; height: 28px; font-size: .8rem; border-radius: 8px; margin-bottom: .3rem; }
.lp-mini-sidebar i { width: 26px; height: 8px; border-radius: 4px; background: var(--border); }
.lp-mini-sidebar i.active { background: var(--primary); }
.lp-mini-main { flex: 1; padding: 1.1rem 1.2rem; min-width: 0; }
.lp-mini-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .8rem; }
.lp-mini-head small { display: block; color: var(--text-faint); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.lp-mini-head strong { font-size: 1.05rem; }
.lp-avatars { display: flex; }
.lp-avatars b, .lp-mini-comment b, .lp-bubble b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: .62rem; font-weight: 700; border: 2px solid var(--surface); flex: none; }
.lp-avatars b + b { margin-left: -8px; }
.a1 { background: #6366f1; } .a2 { background: #f59e0b; } .a3 { background: #10b981; } .a4 { background: #94a3b8; }
.lp-progress { height: 6px; border-radius: 6px; background: var(--surface-muted); overflow: hidden; margin-bottom: 1rem; }
.lp-progress span { display: block; height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--lp-violet)); animation: lp-progress 8s ease-in-out infinite; }
.lp-mini-tasks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.lp-mini-tasks li { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 10px; font-size: .84rem; }
.lp-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); color: transparent; flex: none; animation: lp-check 8s ease infinite; }
.lp-check .icon { width: 11px; height: 11px; stroke-width: 3.5; }
.lp-line { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-line::after { content: ""; position: absolute; left: 0; top: 50%; height: 1.5px; width: 100%; background: var(--text-faint); transform: scaleX(0); transform-origin: left; animation: lp-strike 8s ease infinite; }
.lp-mini-tasks .t2 .lp-check, .lp-mini-tasks .t2 .lp-line::after { animation-delay: 1.2s; }
.lp-mini-tasks .t3 .lp-check, .lp-mini-tasks .t3 .lp-line::after { animation-delay: 2.4s; }
.lp-mini-tasks .t4 .lp-check, .lp-mini-tasks .t4 .lp-line::after { animation-delay: 3.6s; }
.lp-mini-comment { display: flex; gap: .55rem; align-items: flex-start; padding: .6rem .7rem; border-radius: 10px; background: var(--surface-muted); font-size: .8rem; }
.lp-mini-comment p { margin: 0; color: var(--text-muted); }
.lp mark { background: var(--primary-soft); color: var(--primary-ink); padding: 0 .25rem; border-radius: 4px; font-weight: 600; }

.lp-float { position: absolute; display: flex; align-items: center; gap: .65rem; padding: .65rem .9rem .65rem .65rem; border-radius: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .8rem; line-height: 1.3; white-space: nowrap; }
.lp-float .stat-icon { width: 34px; height: 34px; border-radius: 10px; }
.lp-float .stat-icon .icon { width: 17px; height: 17px; }
.lp-float strong { display: block; font-size: .84rem; }
.lp-float small { color: var(--text-muted); }
.lp-float-1 { left: -38px; bottom: 34px; animation: lp-float 6s ease-in-out infinite, lp-pop 8s ease infinite; }
.lp-float-2 { right: -26px; top: 64px; animation: lp-float 7s -2s ease-in-out infinite; }
.lp-float-3 { right: 20px; bottom: -26px; animation: lp-float 6.5s -4s ease-in-out infinite; }
@media (max-width: 1100px) { .lp-float-1 { left: -12px; } .lp-float-2 { right: -8px; } }
@media (max-width: 560px) { .lp-float-2, .lp-float-3 { display: none; } .lp-float-1 { left: 8px; bottom: -22px; } .lp-mini-sidebar { display: none; } }

/* Bandeau défilant */
.lp-marquee { border-block: 1px solid var(--border); background: var(--surface); overflow: hidden; padding: .9rem 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lp-marquee-track { display: flex; width: max-content; animation: lp-marquee 40s linear infinite; }
.lp-marquee span { padding: 0 1.6rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 1.6rem; }
.lp-marquee span::after { content: "✦"; color: var(--lp-violet); font-size: .8rem; margin-right: -1.6rem; padding-left: 1.6rem; }

/* Sections */
.lp-section { padding: 5.5rem 0; }
.lp-section-alt { background: linear-gradient(180deg, var(--surface) 0%, #fbfbfe 100%); border-block: 1px solid var(--border); }
.lp-section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.lp-section-head p { color: var(--text-muted); font-size: 1.05rem; margin: .5rem 0 0; }
.lp-eyebrow { display: inline-block; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: .8rem; }

/* Avant / après */
.lp-pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .lp-pains { grid-template-columns: 1fr; } }
.lp-pain { display: grid; gap: .6rem; padding: 1.3rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.lp-pain-before { padding: .8rem 1rem; border-radius: 12px; background: var(--danger-soft); color: #8f1d22; font-size: .93rem; text-decoration: line-through; text-decoration-color: rgba(192, 38, 45, .45); }
.lp-pain-arrow { display: grid; place-items: center; color: var(--text-faint); }
.lp-pain-after { display: flex; gap: .5rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; background: var(--success-soft); color: #14532d; font-weight: 600; font-size: .93rem; }
.lp-pain-after .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; stroke-width: 3; }

/* Fonctionnalités */
.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 1000px) { .lp-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-features { grid-template-columns: 1fr; } }
.lp-feature { position: relative; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lp-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c7d2fe; }
.lp-feature .stat-icon { margin-bottom: 1rem; transition: transform .3s ease; }
.lp-feature:hover .stat-icon { transform: scale(1.1) rotate(-6deg); }
.lp-feature h3 { font-size: 1.02rem; }
.lp-feature p { margin: 0; color: var(--text-muted); font-size: .9rem; }

/* Zoom commissions */
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 900px) { .lp-split { grid-template-columns: 1fr; gap: 2.5rem; } }
.lp-split-text p { color: var(--text-muted); font-size: 1.05rem; }
.lp-checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .65rem; }
.lp-checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.lp-checklist .icon { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--success-soft); color: var(--success); stroke-width: 3.5; margin-top: 1px; }
.lp-thread { position: relative; display: grid; gap: .9rem; padding: 1.6rem; border-radius: 22px; background: linear-gradient(135deg, #eef2ff, #faf5ff); border: 1px solid #e0e7ff; }
.lp-bubble { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; background: var(--surface); border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.lp-bubble b { width: 34px; height: 34px; font-size: .7rem; }
.lp-bubble strong { font-size: .86rem; }
.lp-bubble p { margin: .15rem 0 0; font-size: .9rem; color: var(--text); }
.lp-bubble.b2 { margin-left: 1.5rem; }
.lp-bubble.b3 { margin-left: 3rem; }
.lp-bubble-mail { justify-self: end; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 999px; background: var(--success); color: #fff; font-size: .82rem; font-weight: 600; box-shadow: 0 10px 20px -8px rgba(21, 128, 61, .6); }
.lp-bubble-mail .icon { width: 15px; height: 15px; }
.lp-animate .lp-thread .lp-bubble, .lp-animate .lp-thread .lp-bubble-mail { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.lp-animate .lp-thread.is-visible .lp-bubble, .lp-animate .lp-thread.is-visible .lp-bubble-mail { opacity: 1; transform: none; }
.lp-animate .lp-thread.is-visible .b2 { transition-delay: .45s; }
.lp-animate .lp-thread.is-visible .b3 { transition-delay: .9s; }
.lp-animate .lp-thread.is-visible .lp-bubble-mail { transition-delay: 1.4s; }

/* Étapes */
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
.lp-steps::before { content: ""; position: absolute; top: 28px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, #c7d2fe 0 8px, transparent 8px 16px); }
@media (max-width: 860px) { .lp-steps { grid-template-columns: 1fr; } .lp-steps::before { display: none; } }
.lp-step { position: relative; text-align: center; padding: 0 1rem; }
.lp-step-num { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.1rem; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--lp-violet)); color: #fff; font-size: 1.3rem; font-weight: 800; box-shadow: 0 12px 24px -10px rgba(79, 70, 229, .7); position: relative; }
.lp-step h3 { font-size: 1.08rem; }
.lp-step p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* Tarifs */
.lp-pricing { display: grid; justify-items: center; gap: 2rem; }
.lp-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-muted); border: 1px solid var(--border); }
.lp-switch button { display: inline-flex; align-items: center; gap: .45rem; border: 0; background: transparent; padding: .55rem 1.2rem; border-radius: 999px; font: inherit; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.lp-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.lp-save { padding: .1rem .45rem; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: .75rem; font-weight: 700; }
.lp-plan { position: relative; width: 100%; max-width: 460px; padding: 2.2rem 2rem 2rem; border-radius: 24px; border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--primary), var(--lp-violet), var(--lp-pink)) border-box; box-shadow: 0 30px 60px -20px rgba(49, 46, 129, .3); }
.lp-plan-ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: .3rem .9rem; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--lp-violet)); color: #fff; font-size: .8rem; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 16px -6px rgba(79, 70, 229, .6); }
.lp-plan h3 { font-size: 1.3rem; text-align: center; margin-top: .4rem; }
.lp-plan-sub { text-align: center; color: var(--text-muted); margin: 0 0 1.4rem; font-size: .93rem; }
.lp-price { text-align: center; margin-bottom: 1.5rem; }
.lp-amount { font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.lp-unit { color: var(--text-muted); font-weight: 600; margin-left: .3rem; }
.lp-price small { display: block; margin-top: .5rem; color: var(--text-muted); font-size: .88rem; }
.lp-pricing[data-period="year"] .lp-price-month, .lp-pricing[data-period="month"] .lp-price-year { display: none; }
.lp-pricing .lp-price { animation: lp-up .4s ease both; }
.lp-plan-trial { text-align: center; color: var(--text-faint); font-size: .83rem; margin: .7rem 0 0; }
.lp-plan .lp-checklist { border-top: 1px solid var(--border); padding-top: 1.4rem; font-size: .93rem; }

/* FAQ */
.lp-faq { display: grid; gap: .7rem; }
.lp-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 1.2rem; transition: box-shadow .2s ease, border-color .2s ease; }
.lp-faq details[open] { box-shadow: var(--shadow); border-color: #c7d2fe; }
.lp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0; font-weight: 600; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary .icon { flex: none; color: var(--text-faint); transition: transform .25s ease; }
.lp-faq details[open] summary .icon { transform: rotate(180deg); color: var(--primary); }
.lp-faq details p { margin: 0 0 1.1rem; color: var(--text-muted); }

/* Appel final */
.lp-final { position: relative; overflow: hidden; text-align: center; padding: 4rem 2rem; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #4338ca, #7c3aed 55%, #c026d3); background-size: 200% 200%; animation: lp-shine 12s ease-in-out infinite alternate; }
.lp-final::before, .lp-final::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.lp-final::before { width: 320px; height: 320px; top: -140px; right: -80px; animation: lp-float 9s ease-in-out infinite; }
.lp-final::after { width: 220px; height: 220px; bottom: -110px; left: -60px; animation: lp-float 7s -3s ease-in-out infinite; }
.lp-final h2 { color: #fff; position: relative; }
.lp-final p { position: relative; opacity: .88; font-size: 1.1rem; max-width: 560px; margin: .4rem auto 2rem; }
.lp-btn-light { position: relative; background: #fff; color: var(--primary-ink); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .35); }
.lp-btn-light:hover { background: #fff; color: var(--primary); transform: translateY(-2px); }

/* Apparition au défilement */
.lp-animate [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0ms); }
.lp-animate [data-reveal].is-visible { opacity: 1; transform: none; }
.lp-animate .lp-feature.is-visible { transition: opacity .7s ease var(--delay, 0ms), transform .25s ease, box-shadow .25s ease, border-color .25s ease; }

@keyframes lp-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lp-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
@keyframes lp-shine { to { background-position: 300% 0; } }
@keyframes lp-ping { 70% { box-shadow: 0 0 0 8px rgba(21, 128, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); } }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lp-pop { 0%, 55% { opacity: 0; } 62%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lp-marquee { to { transform: translateX(-50%); } }
@keyframes lp-progress { 0%, 8% { width: 20%; } 20% { width: 40%; } 35% { width: 62%; } 50%, 90% { width: 100%; } 100% { width: 20%; } }
@keyframes lp-check {
    0%, 8% { background: transparent; border-color: var(--border-strong); color: transparent; transform: scale(1); }
    12% { transform: scale(1.25); }
    15%, 90% { background: var(--success); border-color: var(--success); color: #fff; transform: scale(1); }
    100% { background: transparent; border-color: var(--border-strong); color: transparent; }
}
@keyframes lp-strike { 0%, 10% { transform: scaleX(0); } 18%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
    .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
    .lp-window { transform: none; }
}
