/* ==========================================================================
   Apeeness · page d'accueil (landing page), préfixe .lp-
   Monde « panneau d'affichage » : liège sable, feuilles épinglées, bandeau vert tableau.
   Animations en CSS ; apparition au défilement via reveal_controller.js.
   Tout est désactivé avec « réduire les animations ».
   ========================================================================== */

.lp { 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-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.01em; line-height: 1.05; }

/* En-tête collant */
.lp-header { position: sticky; top: 0; z-index: 50; background: rgba(233, 225, 211, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-strong); }
.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: .5rem; }
/* Le sourire sous « ee » allonge le logo vers le bas : on le descend de 12 % pour centrer les lettres sur les boutons */
.lp-header .brand-wordmark { transform: translateY(12%); }
/* « Se connecter » bien visible : bouton encadré à côté de l'essai gratuit */
.lp-login { border-color: var(--primary); color: var(--primary); font-weight: 650; }
.lp-login:hover { background: var(--primary-soft); color: var(--primary-hover); }
.lp-login .icon { width: 16px; height: 16px; }
@media (max-width: 900px) { .lp-nav { display: none; } }
/* Téléphone : un seul bouton, « Se connecter » (l'essai gratuit reste proposé juste en dessous dans l'accroche) */
@media (max-width: 640px) {
    .lp-trial { display: none; }
    .lp-header .brand-wordmark { height: 32px; }
    .lp-login { background: var(--primary); border-color: var(--primary); color: #fff; }
    .lp-login:hover { background: var(--primary-hover); color: #fff; }
}

/* Bouton « Découvrir » suivi du logo, aligné sur la ligne de base du texte */
.lp-discover-logo { height: 1.55em; width: auto; margin-block: -.25em; transform: translateY(12%); }
.lp-discover .brand-wordmark-light { display: inline-block; }

/* Accroche */
.lp-hero { position: relative; padding: 4.5rem 0 4rem; }
.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-hero h1 { font-family: var(--font-display); font-stretch: 72%; font-weight: 900; font-size: clamp(2.8rem, 6.6vw, 5.2rem); letter-spacing: -.015em; line-height: .98; margin-bottom: 1.4rem; animation: lp-up .7s .08s ease both; }
.lp-hero h1 em { font-style: normal; color: var(--primary); }
.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-strong); border-radius: 6px; box-shadow: var(--shadow-lg); transform: rotate(-1deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.lp-mockup:hover .lp-window { transform: rotate(0); }
@media (max-width: 960px) { .lp-window { transform: none; } }
.lp-window-body { display: flex; min-height: 300px; border-radius: 6px; overflow: hidden; }
.lp-mini-sidebar { display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 1rem .7rem; background: var(--board); }
.lp-mini-sidebar .lp-mini-logo { width: 28px; height: 28px; border-radius: 8px; margin-bottom: .3rem; }
.lp-mini-sidebar i { width: 26px; height: 8px; border-radius: 4px; background: rgba(243, 239, 226, .18); }
.lp-mini-sidebar i.active { background: var(--chalk-yellow); }
.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 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: var(--pin-blue); } .a2 { background: var(--pin-orange); } .a3 { background: var(--pin-green); } .a4 { background: #7d8079; }
.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: var(--primary); 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 { border-radius: 4px; background: var(--surface); backdrop-filter: none; border-color: var(--border-strong); }
.lp-float-1 { rotate: 2deg; } .lp-float-2 { rotate: -2.5deg; } .lp-float-3 { rotate: 1.5deg; }
.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-mockup { margin-bottom: 2.4rem; } .lp-float-1 { left: auto; right: 10px; bottom: -46px; } .lp-mini-sidebar { display: none; } }

/* Bandeau défilant */
.lp-marquee { position: relative; background: var(--board); overflow: hidden; padding: 1rem 0; }
/* Bandeau plein d'un bord à l'autre : seuls les mots s'estompent, sur une largeur fixe, quelle que soit la largeur de l'écran */
.lp-marquee::before, .lp-marquee::after { content: ""; position: absolute; inset-block: 0; width: 3rem; z-index: 1; pointer-events: none; }
.lp-marquee::before { left: 0; background: linear-gradient(90deg, var(--board), transparent); }
.lp-marquee::after { right: 0; background: linear-gradient(270deg, var(--board), transparent); }
.lp-marquee-track { display: flex; width: max-content; animation: lp-marquee 40s linear infinite; }
.lp-marquee span { padding: 0 1.6rem; color: var(--chalk); font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: 1.15rem; white-space: nowrap; display: flex; align-items: center; gap: 1.6rem; }
.lp-marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; margin-right: -1.6rem; margin-left: 1.6rem; flex: none; background: var(--chalk-yellow); opacity: .6; }

/* Sections */
.lp-section { padding: 5.5rem 0; }
.lp-section-alt { background: var(--surface-muted); 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; }

/* 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 { position: relative; padding: 1.8rem 1.6rem 1.6rem; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.lp-pain .stat-icon { margin-bottom: 1rem; }
.lp-pain h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.lp-pain p { margin: 0; color: var(--text-muted); line-height: 1.6; }
.lp-pains-answer { display: flex; align-items: center; justify-content: center; gap: .6rem; max-width: 760px; margin: 2.5rem auto 0; padding: 1rem 1.4rem; border-radius: 999px; background: var(--success-soft); color: var(--primary-ink); font-weight: 600; text-align: left; }
.lp-pains-answer .icon { flex: none; width: 20px; height: 20px; stroke-width: 3; }
@media (max-width: 640px) { .lp-pains-answer { border-radius: var(--radius-lg); align-items: flex-start; } }

/* 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.7rem 1.5rem 1.5rem; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.lp-feature:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.lp-feature .stat-icon { margin-bottom: 1rem; transition: transform .3s ease; }
.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: 6px; background: var(--board); }
.lp-bubble { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; background: var(--surface); border-radius: 4px; box-shadow: var(--shadow); }
.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, var(--border-strong) 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: 6px; background: var(--chalk-yellow); color: var(--board); font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.9rem; font-weight: 900; box-shadow: var(--shadow); }
.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-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.4rem 2rem 2rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.lp-plan-ribbon { position: absolute; top: 14px; right: -10px; rotate: 4deg; padding: .35rem .9rem; border-radius: 3px; background: var(--chalk-yellow); color: var(--board); font-size: .82rem; font-weight: 800; white-space: nowrap; box-shadow: var(--shadow); }
.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-prices { display: grid; gap: .9rem; margin-bottom: 1.5rem; }
.lp-price { display: grid; gap: .35rem; justify-items: center; text-align: center; padding: 1.1rem 1rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-muted); }
.lp-price-best { border-color: var(--primary); background: var(--surface); box-shadow: var(--shadow); }
.lp-price-label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; }
.lp-amount { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: clamp(2.8rem, 8vw, 3.6rem); font-weight: 900; line-height: 1; }
.lp-unit { color: var(--text-muted); font-weight: 600; margin-left: .3rem; }
.lp-price small { display: block; color: var(--text-muted); font-size: .88rem; }
.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: 6px; padding: 0 1.2rem; transition: box-shadow .2s ease, border-color .2s ease; }
.lp-faq details[open] { box-shadow: var(--shadow); border-color: var(--border-strong); }
.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; padding-top: .9rem; border-top: 1px solid var(--border); color: var(--text-muted); line-height: 1.6; }

/* Appel final */
.lp-final { position: relative; overflow: hidden; text-align: center; padding: 4.5rem 2rem; border-radius: 8px; color: var(--chalk); background: var(--board); box-shadow: var(--shadow-lg); }
.lp-final h2 { color: var(--chalk); position: relative; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.lp-final p { position: relative; color: var(--chalk-muted); font-size: 1.1rem; max-width: 560px; margin: .6rem auto 2rem; }
.lp-btn-light { position: relative; background: var(--chalk-yellow); color: var(--board); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5); }
.lp-btn-light:hover { background: #fec865; color: var(--board); 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-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; }
}

/* Vidéo de présentation */
.lp-video-section { padding-bottom: 3rem; }
.lp-video-section .lp-section-head { margin-bottom: 2rem; }
.lp-video { max-width: 920px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 18px 44px rgba(27, 47, 102, .16); background: #1b2f66; }
.lp-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.lp-title-logo { height: 1em; width: auto; vertical-align: -.265em; margin-right: .1em; }
.lp-video-title .brand-wordmark-light { display: inline-block; }
