/* ==========================================================
   Page d'accueil
   ========================================================== */
.home-hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; will-change: transform; z-index: 0; }
.blob.b1 { width: 460px; height: 460px; background: var(--brand-2); top: -140px; right: -80px; }
.blob.b2 { width: 360px; height: 360px; background: var(--html); bottom: -120px; left: -100px; opacity: .35; }
.blob.b3 { width: 260px; height: 260px; background: var(--js); top: 40%; right: 30%; opacity: .22; }
:root[data-theme="dark"] .blob { opacity: .28; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy h1 { font-size: clamp(2.8rem, 7.2vw, 5.4rem); line-height: .98; margin-bottom: 22px; }
.grad { background: linear-gradient(100deg, var(--html), var(--brand) 55%, var(--css)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 34px; }
.hero-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 4vw, 40px); flex-wrap: wrap; }
.hero-stats li { display: grid; }
.hero-stats b { font-size: 2.2rem; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

.hero-demo { background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.bubble { background: var(--ink); color: var(--bg); border-radius: 18px 18px 18px 4px; padding: 14px 18px; min-height: 96px; }
.bubble .who { font: 700 .66rem var(--mono); text-transform: uppercase; letter-spacing: .12em; opacity: .6; }
.bubble p { margin: 4px 0 0; font-size: 1.02rem; line-height: 1.5; }
.bubble .caret { display: inline-block; width: 2px; height: 1.1em; background: currentColor; margin-left: 2px; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.arrow-down { text-align: center; color: var(--brand); font-size: 1.4rem; font-weight: 800; line-height: 1; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.result { background: var(--bg-2); border: 1px dashed var(--line); border-radius: 18px; min-height: 150px; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; }
.result > * { animation: res-in .5s cubic-bezier(.2,.9,.3,1.2); }
@keyframes res-in { from { opacity: 0; transform: scale(.9) translateY(10px); } }
.hd-dots { display: flex; justify-content: center; gap: 8px; }
.hd-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: var(--line); cursor: pointer; transition: .3s; }
.hd-dots button[aria-selected="true"] { width: 26px; background: var(--brand); }
/* mini composants du hero */
.hd-tip { position: relative; }
.hd-tip .b { font: 650 .95rem var(--font); padding: .7em 1.2em; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); }
.hd-tip .t { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: #1b1a22; color: #fff; font-size: .8rem; padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.hd-tip .t::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #1b1a22; }
.hd-sw { display: flex; align-items: center; gap: 12px; font-weight: 650; }
.hd-sw .tr { width: 54px; height: 30px; border-radius: 99px; background: var(--brand); padding: 3px; }
.hd-sw .th { display: block; width: 24px; height: 24px; border-radius: 50%; background: #fff; transform: translateX(24px); animation: swing 3s ease-in-out infinite; }
@keyframes swing { 0%, 35% { transform: translateX(24px); } 50%, 85% { transform: translateX(0); } 100% { transform: translateX(24px); } }
.hd-toast { background: #1b1a22; color: #fff; padding: 12px 18px; border-radius: 12px; border-left: 4px solid var(--ok); font-weight: 600; box-shadow: var(--shadow); }
.hd-card { background: var(--surface); border-radius: 16px; overflow: hidden; width: 200px; box-shadow: var(--shadow-sm); animation: res-in .5s, bob 3s 0.5s ease-in-out infinite !important; }
.hd-card i { display: block; height: 70px; background: linear-gradient(135deg, #5b3df5, #ff6b3d); }
.hd-card div { padding: 10px 14px; font-weight: 700; font-size: .92rem; } .hd-card small { display: block; font-weight: 400; color: var(--muted); }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.marquee-strip { background: var(--ink); color: var(--bg); overflow: hidden; padding: 16px 0; transform: rotate(-1deg) scale(1.02); margin: -8px 0 8px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.marquee-track { display: flex; width: max-content; animation: marq 40s linear infinite; }
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { padding-right: 36px; font-weight: 750; font-size: 1.15rem; white-space: nowrap; color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 36px; letter-spacing: -.01em; }
.marquee-track a::after { content: "✦"; color: var(--js); }
.marquee-track a:hover { color: var(--js); }
@keyframes marq { to { transform: translateX(-50%); } }

.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.vs { border-radius: 22px; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.vs .tag { display: inline-block; font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: .3em .8em; border-radius: 999px; margin-bottom: 14px; }
.vs blockquote { margin: 0 0 16px; font-size: 1.2rem; line-height: 1.45; font-weight: 550; }
.vs ul { margin: 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 4px; font-size: .95rem; }
.vs-bad { border-style: dashed; border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.vs-bad .tag { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); } .vs-bad blockquote { font-style: italic; color: var(--muted); }
.vs-good { border-color: color-mix(in srgb, var(--ok) 55%, transparent); box-shadow: 0 10px 30px color-mix(in srgb, var(--ok) 14%, transparent); }
.vs-good .tag { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.vs mark { background: var(--brand-soft); color: var(--brand); padding: .05em .35em; border-radius: 6px; font-weight: 700; }
.vs-arrow { font-size: 2.2rem; font-weight: 800; color: var(--brand); }
@media (max-width: 860px) { .versus { grid-template-columns: 1fr; } .vs-arrow { transform: rotate(90deg); justify-self: center; } }

.layer-card a { display: inline-block; margin-top: 4px; font-weight: 650; }

.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.path a { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; }
.path a:hover { transform: translateX(8px); box-shadow: var(--shadow); border-color: var(--brand); }
.path .n { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; transition: .25s; }
.path a:hover .n { background: var(--brand); color: var(--on-brand); transform: rotate(-6deg) scale(1.08); }
.path h3 { margin: 0 0 2px; } .path p { margin: 0; color: var(--muted); font-size: .95rem; }
.path .go { font-size: 1.6rem; color: var(--brand); transition: transform .25s; } .path a:hover .go { transform: translateX(6px); }

.anatomy-fiche { list-style: none; counter-reset: f; margin: 0; padding: 0; display: grid; gap: 10px; }
.anatomy-fiche li { counter-increment: f; display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.anatomy-fiche li::before { content: counter(f); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }

.final-cta { text-align: center; padding: clamp(40px, 7vw, 80px) 24px; border-radius: 32px; color: #fff; background: linear-gradient(135deg, #5b3df5, #ff6b3d 85%); position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.12); right: -100px; top: -140px; }
.final-cta h2 { color: #fff; position: relative; } .final-cta p { opacity: .9; max-width: 46ch; margin: 0 auto 24px; position: relative; }
.final-cta .btn-light { background: #fff; color: #1b1a22; position: relative; font-size: 1.05rem; padding: .9em 1.7em; }
.final-cta .btn-light:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
