/* Aislemate – page de présentation. S'appuie sur les variables de thème d'app.css. */

[data-theme="dark"], :root {
    --heading: #f9fafb;
    --lead: #a1a5b0;
    --alt: #0d0f14;
    --plan-bg: #14122b;
    --plan-text: #e0e7ff;
    --indigo-border: #312e81;
    --sky-bg: #0c2233; --sky-text: #7dd3fc;
    --pink-bg: #2b1a2e; --pink-text: #f0abfc;
    --red-bg: #2b1215; --red-text: #fca5a5;
    --big-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
[data-theme="light"] {
    --heading: #0b1020;
    --lead: #4b5563;
    --alt: #ffffff;
    --plan-bg: #eef2ff;
    --plan-text: #312e81;
    --indigo-border: #c7d2fe;
    --sky-bg: #e0f2fe; --sky-text: #075985;
    --pink-bg: #fae8ff; --pink-text: #86198f;
    --red-bg: #fee2e2; --red-text: #991b1b;
    --big-shadow: 0 24px 48px rgba(17, 24, 39, .10);
}

.landing { font-size: 16px; line-height: 1.6; overflow-x: hidden; }
.landing *, .landing { transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.band { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* En-tête */
.l-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
.l-header .wrap { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.l-header .brand { padding: 0; font-size: 18px; }
.l-nav { display: flex; flex-wrap: wrap; gap: 28px; flex: 1; justify-content: center; }
.l-nav a { color: var(--label); font-size: 15px; }
.l-nav a:hover { color: var(--text); }
.l-actions { display: flex; gap: 12px; align-items: center; }
.l-actions .login { color: var(--text); font-weight: 500; font-size: 15px; }
.btn-lg { height: 52px; padding: 0 24px; border-radius: 12px; font-size: 16px; }
.landing .btn { transition: transform .15s ease, filter .15s ease, background-color .35s, border-color .35s, color .35s; }
.landing .btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* Accroche */
.hero { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.pill { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--indigo-text); background: var(--indigo-bg); border: 1px solid var(--indigo-border); border-radius: 999px; padding: 6px 14px; }
.hero h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; color: var(--heading); }
.hero .lead { font-size: 19px; color: var(--lead); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: var(--muted); }
.trust span { display: flex; align-items: center; gap: 8px; }

/* Démo du chat (toujours claire, comme sur une boutique) */
.demo { flex: 1 1 400px; max-width: 460px; margin: 0 auto; position: relative; }
.demo-glow { position: absolute; inset: 40px -20px -20px 40px; border-radius: 28px; background: var(--accent); filter: blur(48px); }
.chat { position: relative; background: #fff; color: #111827; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; transition: none; }
.chat * { transition: none; }
.chat-head { background: var(--accent); color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-head strong { display: block; font-size: 16px; }
.chat-head small { color: #e0e7ff; font-size: 13px; }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #f9fafb; font-size: 14px; }
.msg-user { align-self: flex-end; max-width: 80%; background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 14px; }
.msg-bot { align-self: flex-start; max-width: 85%; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px 16px 16px 4px; padding: 10px 14px; line-height: 1.5; }
.typing { display: flex; gap: 4px; overflow: hidden; }
.typing i { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: #9ca3af; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.cards { display: flex; gap: 10px; }
.p-card { flex: 1; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; }
.p-photo { height: 110px; background: #eef0f4; position: relative; display: grid; place-items: center; color: #9ca3af; }
.ribbon { position: absolute; top: 8px; left: 8px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 2px 7px; }
.p-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.p-info strong { font-size: 13px; }
.p-price { font-weight: 700; color: var(--accent); white-space: nowrap; }
.p-price s { color: #6b7280; font-weight: 400; font-size: 12px; }
.p-cta { text-align: center; background: var(--accent); color: #fff; border-radius: 8px; padding: 7px; font-size: 12px; font-weight: 600; }
.chat-foot { padding: 12px 14px; border-top: 1px solid #e5e7eb; display: flex; gap: 8px; }
.chat-foot span:first-child { flex: 1; border: 1px solid #d1d5db; border-radius: 10px; padding: 9px 12px; font-size: 13px; color: #6b7280; }
.chat-foot span:last-child { background: var(--accent); color: #fff; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 600; }

/* Arguments */
.points { padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.points strong { display: block; font-size: 17px; color: var(--title, var(--heading)); }
.points span { font-size: 15px; color: var(--muted); }

/* Questions qui défilent */
.ticker { padding-top: 56px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.ticker p { text-align: center; font-size: 15px; color: var(--subtle); }
.ticker-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.chip { flex: 0 0 auto; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--label); font-size: 15px; white-space: nowrap; }

/* Sections */
.section { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-head.center { align-items: center; text-align: center; max-width: none; }
.kicker { font-size: 14px; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: .08em; }
.section h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--heading); }
.section-head p { font-size: 18px; color: var(--lead); }

.features, .steps, .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature, .step { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature h3, .step h3 { font-size: 19px; font-weight: 700; color: var(--heading); }
.feature p, .step p { font-size: 15px; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.i-indigo { background: var(--indigo-bg); color: var(--link); }
.i-amber { background: var(--amber-bg); color: var(--amber-text); }
.i-green { background: var(--ok-bg); color: var(--ok-text); }
.i-sky { background: var(--sky-bg); color: var(--sky-text); }
.i-pink { background: var(--pink-bg); color: var(--pink-text); }
.i-red { background: var(--red-bg); color: var(--red-text); }
.steps { margin: 0; padding: 0; list-style: none; }
.step-n { width: 40px; height: 40px; border-radius: 20px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; animation: ring 2.4s ease-out infinite; }

.lift { transition: transform .25s ease, box-shadow .25s ease, background-color .35s, border-color .35s, color .35s; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > .section-head { flex: 1 1 380px; min-width: 0; }
.mock { flex: 1 1 520px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--big-shadow); }
.mock-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mock-stats div { background: var(--row); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.mock-stats span { font-size: 12px; color: var(--muted); }
.mock-stats strong { font-size: 26px; font-weight: 700; }
.mock-meter { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.mock-meter i { display: block; height: 100%; background: #34d399; width: 0; }
.is-visible .mock-meter i, .no-observer .mock-meter i { animation: fill 1.6s cubic-bezier(.2, .7, .2, 1) .3s both; }

.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.plan.featured { background: var(--plan-bg); border: 2px solid var(--accent); }
.plan.featured .plan-desc, .plan.featured .per { color: var(--indigo-text); }
.plan.featured ul { color: var(--plan-text); }
.plan-flag { position: absolute; top: -14px; left: 32px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.plan-name { font-size: 18px; font-weight: 700; color: var(--heading); }
.plan-desc { font-size: 15px; color: var(--muted); }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--heading); }
.per { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--label); }
.plan .btn { margin-top: auto; height: 48px; }

.faq { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; }
.faq summary { cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; color: var(--heading); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 15px; color: var(--muted); }

.final { padding-bottom: 112px; }
.final > div { background: var(--accent); border-radius: 28px; padding: 64px 48px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.final h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: #fff; max-width: 720px; }
.final p { font-size: 18px; color: #e0e7ff; max-width: 560px; }
.final .btn { background: #fff; color: #1e1b4b; border-color: #fff; height: 54px; padding: 0 28px; }

.l-footer { border-top: 1px solid var(--line); }
.l-footer .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; color: var(--subtle); }
.l-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.l-footer a { color: var(--muted); }

@media (max-width: 900px) {
    .features, .steps, .plans, .points { grid-template-columns: minmax(0, 1fr); }
    .l-nav { display: none; }
    .hero { padding-top: 48px; gap: 48px; }
    .section { padding-top: 72px; padding-bottom: 72px; }
    .wrap { padding-left: 20px; padding-right: 20px; }
}

/* Animations */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes glow { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: .75; transform: scale(1.06); } }
@keyframes typing { 0% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; } 12%, 85% { opacity: 1; max-height: 44px; } 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -12px; } }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .55); } 70% { box-shadow: 0 0 0 14px rgba(99, 102, 241, 0); } 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } }

.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
.pop { animation: pop .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
.typing { animation: typing 1.1s ease both; animation-delay: var(--d, 0s); }
.float { animation: float 6s ease-in-out infinite; }
.demo-glow { animation: glow 5s ease-in-out infinite; }

/* Apparition au défilement (activée par le script quand le navigateur le permet) */
.has-observer .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), background-color .35s, border-color .35s, color .35s; transition-delay: var(--d, 0s); }
.has-observer .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .rise, .pop, .float, .demo-glow, .typing i, .ticker-track, .step-n, .mock-meter i { animation: none !important; }
    .typing { display: none; }
    .mock-meter i { width: 100%; }
    .has-observer .reveal { opacity: 1; transform: none; }
    .lift:hover, .landing .btn:hover { transform: none; }
}

/* Page de contact */
.contact { padding-top: 72px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.contact-intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-intro h1 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; color: var(--heading); }
.contact-intro .lead { font-size: 18px; color: var(--lead); max-width: 500px; }
.contact-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; }
.contact-points div { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.contact-points strong { color: var(--heading); }
.contact-points span:not(.icon) { color: var(--muted); }
.contact-faq { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; }
.contact-faq strong { color: var(--heading); margin-bottom: 2px; }
.contact-card { flex: 1 1 520px; min-width: 0; padding: 30px; box-shadow: var(--big-shadow); }
.contact-card h2 { font-size: 20px; font-weight: 700; color: var(--heading); }
.contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .contact-row { grid-template-columns: minmax(0, 1fr); } }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-sent { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 40px 10px; }
.contact-sent p { color: var(--muted); }
.check-big { width: 64px; height: 64px; border-radius: 32px; background: var(--ok-bg); color: var(--ok-text); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, .7, .2, 1) both; }
.contact select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.contact-points .icon { flex: 0 0 auto; }
.contact-card .card-note { margin-bottom: 16px; }
.plans-note { text-align: center; margin-top: 24px; color: var(--muted); font-size: 14px; }

/* Programme pilote */
.pilot { padding-bottom: 72px; }
.pilot-deal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pilot-deal > div { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.pilot-deal strong { color: var(--heading); font-size: 15px; }
.pilot-deal ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.pilot-deal b { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .pilot-deal { grid-template-columns: minmax(0, 1fr); } }
/* Cases à cocher : chaque case et son libellé côte à côte, sur 2 colonnes (1 sur mobile) */
.pilot-channels { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px 10px !important; margin-bottom: 0 !important; }
.pilot-channels label { font-weight: 400; }
@media (max-width: 640px) { .pilot-channels { grid-template-columns: auto minmax(0, 1fr); } }
.pilot-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .pilot-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pilot-steps { grid-template-columns: minmax(0, 1fr); } }
.pilot-banner { display: block; text-align: center; padding: 10px 16px; font-size: 14px; color: var(--indigo-text); background: var(--indigo-bg); border-bottom: 1px solid var(--indigo-border); text-decoration: none; }
.pilot-banner:hover { text-decoration: underline; }
.pilot-banner strong { font-weight: 700; }
#candidature { scroll-margin-top: 96px; }
