/* landing.css — la page d'accueil publique de Shiftly.
 *
 * Même identité que l'app : encre + citron sur des gris à peine violacés,
 * Geist. Feuille autonome (pas de Tailwind) : la page doit s'afficher vite.
 * Les animations servent à montrer le produit ; « Réduire les animations »
 * les coupe toutes, le contenu reste.
 */

:root {
    --ink: #121016;
    --ink-2: #2c2a32;
    --lime: #c9f24b;
    --lime-soft: #effbc9;
    --canvas: #eeedf3;
    --surface: #fff;
    --tile: #f4f3f8;
    --line: #e9e8ee;
    --body: #3d3b45;
    --muted: #6b6975;
    --dim: #a3a1ad;
    --warn: #86490a;
    --warn-bg: #fdf0de;
    --warn-solid: #e38b17;
    --blue: #3a78c2;
    --blue-bg: #eaf2fb;
    --plum: #8f5c9e;
    --plum-bg: #f6f0f8;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --r-lg: 28px;
    --r-md: 20px;
    --wrap: 1200px;
    --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Geist', system-ui, -apple-system, sans-serif;
    font-size: 16px; line-height: 1.55;
    color: var(--body);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: 999px;
    background: var(--ink); color: #fff; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--dim); }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px;
    border: 0; border-radius: 999px;
    font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
    transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, box-shadow 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); box-shadow: 0 10px 24px -10px rgba(18, 16, 22, 0.5); }
.btn-white { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-white:hover { background: var(--tile); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(18, 16, 22, 0.06); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #d5f46c; box-shadow: 0 12px 30px -10px rgba(201, 242, 75, 0.6); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--dim); }
.link:hover { text-decoration-color: var(--ink); }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding: 0 11px; border-radius: 999px;
    font-size: 12px; font-weight: 500; white-space: nowrap;
}
.chip-lime { background: var(--lime); color: var(--ink); }
.chip-ink { background: var(--ink); color: #fff; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    padding: 12px 0;
    transition: padding 0.3s var(--ease);
}
.nav-inner {
    max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
    display: flex; align-items: center; gap: 24px;
}
.nav::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(238, 237, 243, 0.78);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 1px 0 rgba(18, 16, 22, 0.06);
    opacity: 0; transition: opacity 0.3s;
    pointer-events: none;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { padding: 8px 0; }
.nav > * { position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -0.025em; }
.brand-mark { width: 34px; height: 34px; }
.brand-s { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .nav .brand-s { animation: draw 1.1s var(--ease) 0.1s both; }
.js .nav .brand-dot { transform-origin: 145px 30px; animation: dot 0.6s var(--spring) 0.9s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dot { from { transform: scale(0); } to { transform: none; } }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
    padding: 8px 14px; border-radius: 999px;
    color: var(--body); text-decoration: none; font-size: 15px; font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.is-active { background: rgba(18, 16, 22, 0.06); color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 6px; }
.nav-burger { display: none; }
@media (max-width: 1180px) { .nav-callback { display: none; } }
.mnav { display: none; }

@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .nav-burger {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
        width: 44px; height: 44px; margin-left: auto; padding: 0 12px;
        border: 0; border-radius: 999px; background: var(--surface);
    }
    .nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease); }
    .nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
    .nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
    .mnav:not([hidden]) {
        display: flex; flex-direction: column; gap: 2px;
        margin: 10px var(--gutter) 0; padding: 10px;
        border-radius: var(--r-md); background: var(--surface);
        box-shadow: 0 20px 40px -18px rgba(18, 16, 22, 0.3);
        animation: drop 0.3s var(--ease);
    }
    .mnav a { padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 500; }
    .mnav a:hover { background: var(--tile); }
    .mnav .btn { margin-top: 6px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ── Titres ──────────────────────────────────────────────────────────────── */
.tag {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 32px; padding: 6px 14px 6px 12px; text-align: left; line-height: 1.3; border-radius: 999px;
    background: var(--surface); color: var(--ink);
    font-size: 13px; font-weight: 500;
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #7ea11c; }
.live-dot::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    background: rgba(126, 161, 28, 0.35); animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.h2 {
    color: var(--ink);
    font-size: clamp(32px, 4.6vw, 54px); font-weight: 500;
    letter-spacing: -0.04em; line-height: 1.04;
    text-wrap: balance;
}
.lead { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 560px; text-wrap: pretty; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
section { scroll-margin-top: 72px; }

/* ── Apparitions au défilement ───────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 8px 0 96px; position: relative; }
.hero-frame { position: relative; padding: 48px 0 0; }
.hero-frame::before {
    /* Les lignes de créneaux, en fond : la signature de la page. */
    content: ''; position: absolute; inset: -60px 0 -200px; z-index: -1; pointer-events: none;
    background-image: repeating-linear-gradient(90deg, rgba(18, 16, 22, 0.045) 0 1px, transparent 1px 96px);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title {
    margin-top: 24px;
    color: var(--ink);
    font-size: clamp(40px, 6.6vw, 92px); font-weight: 500;
    letter-spacing: -0.055em; line-height: 1;
    text-wrap: balance;
}
.hero-title .w { display: inline-block; }
.js .hero-title .w { opacity: 0; transform: translateY(0.5em) rotate(4deg); transform-origin: left bottom; }
.hero-title .is-in .w, .hero-title.is-in .w { animation: word 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes word { to { opacity: 1; transform: none; } }
.hl { position: relative; display: inline-block; white-space: nowrap; }
.hl-line { position: absolute; left: 0; right: 0; bottom: -0.1em; width: 100%; height: 0.24em; overflow: visible; }
.hl-line path { fill: none; stroke: var(--lime); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .hl-line path { stroke-dashoffset: 1; }
.hero-title .is-in .hl-line path { transition: stroke-dashoffset 1s var(--ease) 0.9s; stroke-dashoffset: 0; }
@media (max-width: 560px) { .hl { white-space: normal; } .hl-line { display: none; } .hl { background: linear-gradient(transparent 74%, rgba(201, 242, 75, 0.85) 74% 90%, transparent 90%); } }

/* Le mot qui tourne : boutique, restaurant, hôtel… */
.rot, .hero-title .rot { display: inline-flex; align-items: center; gap: 0.16em; vertical-align: bottom; }
.rot-ico {
    position: relative; width: 0.86em; height: 0.86em; flex-shrink: 0; border-radius: 0.22em;
    background: var(--lime); color: var(--ink);
    transform: rotate(-6deg);
}
.rot-ico svg { position: absolute; inset: 0.17em; width: 0.52em; height: 0.52em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.55s var(--spring), opacity 0.3s; }
.rot-ico svg.out { transform: scale(0.3) rotate(-90deg); opacity: 0; }
.rot-ico svg.in-start { transform: scale(0.3) rotate(90deg); opacity: 0; }
.rot-words { position: relative; display: inline-block; height: 1.08em; overflow: hidden; color: var(--ink); transition: width 0.55s var(--ease); vertical-align: bottom; }
.rot-words span { position: absolute; left: 0; top: 0; white-space: nowrap; line-height: 1.08; transition: transform 0.6s var(--ease), opacity 0.4s; }
.rot-words span.up { transform: translateY(-105%); opacity: 0; }
.rot-words span.down { transform: translateY(105%); opacity: 0; }

.hero-sub { margin-top: 28px; font-size: 20px; max-width: 620px; color: var(--body); text-wrap: pretty; }
.hero-form {
    margin-top: 34px; width: min(520px, 100%);
    display: flex; align-items: center; gap: 6px;
    padding: 6px 6px 6px 20px; border-radius: 999px;
    background: #fff; box-shadow: 0 1px 0 rgba(18, 16, 22, 0.04), 0 20px 40px -24px rgba(18, 16, 22, 0.35);
    --d: 0.1s;
    transition: box-shadow 0.25s;
}
.hero-form:focus-within { box-shadow: 0 0 0 4px rgba(201, 242, 75, 0.6), 0 20px 40px -24px rgba(18, 16, 22, 0.35); }
.hero-form input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.hero-form input:focus { outline: none; }
.hero-form input::placeholder { color: var(--dim); }
.hero-form .btn { height: 46px; }
.hero-form.shake { animation: shake 0.4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.hero-points { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--muted); --d: 0.2s; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.hero-points a { color: var(--ink); font-weight: 500; text-underline-offset: 4px; text-decoration-color: var(--dim); }
.hero-points a:hover { text-decoration-color: var(--ink); }
.hero-demo { position: relative; z-index: 2; margin-top: 64px; display: flex; justify-content: center; }
.hero .day { width: 100%; max-width: 1040px; }

/* La journée */
.day {
    margin: 0; position: relative;
    padding: 20px; border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(18, 16, 22, 0.04), 0 40px 80px -40px rgba(18, 16, 22, 0.35);
    touch-action: pan-y;
    transform-origin: 50% 0;
}
/* La démo arrive inclinée et se redresse quand on descend vers elle. */
.js .hero .day {
    transform: perspective(1600px) rotateX(calc(var(--tilt, 1) * 18deg)) scale(calc(1 - var(--tilt, 1) * 0.06));
    opacity: calc(1 - var(--tilt, 1) * 0.12);
    will-change: transform;
}
.day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.day-where { display: flex; flex-direction: column; }
.day-store { color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.day-date { font-size: 13px; color: var(--muted); }
.day-clock {
    font-family: 'Geist Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums;
    font-size: 34px; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); line-height: 1;
}
.day-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.day-stats div { padding: 10px 12px; border-radius: 16px; background: var(--tile); display: flex; flex-direction: column; }
.day-stats b { color: var(--ink); font-size: 22px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.day-stats span { font-size: 12px; color: var(--muted); }
.day-stats div.is-late { background: var(--warn-bg); }
.day-stats div.is-late b, .day-stats div.is-late span { color: var(--warn); }

.day-board { position: relative; margin-top: 16px; padding-left: 64px; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.day-hours { position: relative; height: 24px; font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--dim); }
.day-hours span { position: absolute; transform: translateX(-50%); }
.day-rows { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 6px 0 4px; }
.day-rows::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 8));
}
.row { position: relative; height: 30px; }
.row-name {
    position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
    width: 54px; text-align: right;
    font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-plan, .bar-real {
    position: absolute; top: 4px; bottom: 4px; border-radius: 999px;
}
.bar-plan { box-shadow: inset 0 0 0 1.5px var(--line); background: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(18, 16, 22, 0.025) 5px 10px); transition: opacity 0.4s, transform 0.5s var(--spring); transform-origin: left center; }
.bar-plan.is-hidden { opacity: 0; transform: scaleX(0.4); }
.bar-plan.is-sick { box-shadow: inset 0 0 0 1.5px #f6cb8f; background: repeating-linear-gradient(-45deg, var(--warn-bg) 0 5px, #fff 5px 10px); }
.bar-plan.is-leave { box-shadow: inset 0 0 0 1.5px #b3cff0; background: var(--blue-bg); }
.bar-real { background: var(--ink); min-width: 0; transition: background-color 0.3s; }
.bar-real::after {
    /* Le bord vivant : la personne est là, maintenant. */
    content: ''; position: absolute; right: -3px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
    border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(201, 242, 75, 0.35);
    opacity: 0; transition: opacity 0.2s;
}
.bar-real.is-live::after { opacity: 1; }
.bar-real.is-done { background: #57555f; }
.bar-late {
    position: absolute; top: 4px; bottom: 4px; border-radius: 999px 0 0 999px;
    background: repeating-linear-gradient(-45deg, var(--warn-solid) 0 3px, #f4b762 3px 6px);
}
.row-tag {
    position: absolute; top: 50%; transform: translateY(-50%);
    height: 20px; padding: 0 8px; border-radius: 999px;
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 500; white-space: nowrap;
    opacity: 0; transition: opacity 0.3s;
    pointer-events: none;
}
.row-tag.is-on { opacity: 1; }
.row-tag.t-sick { background: var(--warn-bg); color: var(--warn); }
.row-tag.t-leave { background: var(--blue-bg); color: #224d80; }
.day-cursor {
    position: absolute; top: 26px; bottom: 0; left: 64px; width: 0;
    pointer-events: none;
    will-change: transform;
}
.day-cursor::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--ink); border-radius: 2px; }
.day-cursor span {
    position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
    border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--ink);
}
.day-feed { position: relative; margin-top: 16px; height: 104px; overflow: hidden; }
.ev {
    position: absolute; left: 0; right: 0;
    display: flex; align-items: center; gap: 10px;
    height: 48px; padding: 0 12px 0 8px; border-radius: 16px;
    background: var(--tile);
    font-size: 14px; color: var(--ink);
    transition: transform 0.5s var(--ease), opacity 0.4s;
}
.ev-time { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--muted); }
.ev-ico { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); }
.ev-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ev-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-text em { font-style: normal; color: var(--muted); }
.ev.k-ok .ev-ico { background: var(--lime); }
.ev.k-warn .ev-ico { background: var(--warn-bg); color: var(--warn); }
.ev.k-sick .ev-ico { background: var(--warn-bg); color: var(--warn); }
.ev.k-leave .ev-ico { background: var(--blue-bg); color: var(--blue); }
.ev.k-close { background: var(--ink); color: #fff; }
.ev.k-close .ev-time, .ev.k-close .ev-text em { color: var(--dim); }
.ev.k-close .ev-ico { background: var(--lime); color: var(--ink); }
.day-hint { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--dim); }
.day-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Essayer Shiftly ──────────────────────────────────────────────────────── */
.try-note { margin-top: 12px; font-size: 13px; color: var(--muted); --d: 0.15s; }
.try-error { margin-top: 12px; padding: 8px 14px; border-radius: 12px; background: #fdeceb; color: #952b19; font-size: 14px; }
.try-error-dark { position: relative; display: inline-block; }
.try-error.is-info { background: var(--lime-soft); color: var(--ink); }
.try-overlay {
    position: fixed; inset: 0; z-index: 200;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 24px; text-align: center;
    background: var(--ink); color: #fff;
    opacity: 0; transition: opacity 0.3s var(--ease);
}
.try-overlay[hidden] { display: none; }
.try-overlay.is-on { opacity: 1; }
/* La carte de chargement : un compteur qui roule, quatre étapes qui se
   remplissent l'une après l'autre, puis la coche. En sortant, la carte
   grandit et se floute : l'app prend sa place. */
.try-card { width: min(380px, 100%); position: relative; transition: transform 0.6s var(--ease), filter 0.5s var(--ease), opacity 0.5s var(--ease); }
.try-overlay.is-leaving .try-card { transform: scale(1.08); filter: blur(10px); opacity: 0; }
.try-head { display: flex; flex-direction: column; align-items: center; transition: transform 0.6s var(--ease), filter 0.5s var(--ease), opacity 0.4s var(--ease); }
.try-s { width: 44px; height: 44px; margin-bottom: 10px; }
.try-s path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.try-overlay.is-on .try-s path { animation: trydraw 1.1s var(--ease) forwards; }
.try-s circle { transform-origin: 145px 30px; transform: scale(0); }
.try-overlay.is-on .try-s circle { animation: trydot 0.5s var(--spring) 0.9s forwards; }
@keyframes trydraw { to { stroke-dashoffset: 0; } }
@keyframes trydot { to { transform: none; } }
.try-pct { font-size: clamp(64px, 12vw, 92px); font-weight: 500; letter-spacing: -0.06em; line-height: 1; color: #fff; display: flex; align-items: baseline; }
.try-pct-unit { font-size: 0.34em; letter-spacing: -0.02em; color: var(--lime); margin-left: 4px; }
.try-title { margin-top: 10px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.62); letter-spacing: -0.01em; }

.try-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; text-align: left; transition: filter 0.4s var(--ease), opacity 0.4s var(--ease); }
.try-list li {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px;
    opacity: 0; filter: blur(8px); transform: translateY(8px);
    transition: opacity 0.45s var(--ease), filter 0.45s var(--ease), transform 0.45s var(--ease);
}
.try-list li.is-in { opacity: 1; filter: none; transform: none; }
.try-label { font-size: 14px; color: #fff; }
.try-state { width: 18px; height: 18px; border-radius: 50%; position: relative; }
.try-list li.is-in .try-state { border: 2px solid rgba(255, 255, 255, 0.18); border-top-color: var(--lime); animation: tryspin 0.8s linear infinite; }
.try-list li.is-ok .try-state {
    border: 0; animation: trypop 0.42s var(--spring) both; background: var(--lime);
}
.try-list li.is-ok .try-state::after {
    content: ''; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px;
    border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@keyframes tryspin { to { transform: rotate(360deg); } }
@keyframes trypop { from { transform: scale(0.3); } to { transform: none; } }
.try-bar { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.try-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; transform-origin: left; transform: scaleX(0);
    background: linear-gradient(90deg, #8fd14f, var(--lime)); }

/* La fin : les étapes s'effacent dans le flou, la coche grossit avec un rebond. */
.try-done {
    position: absolute; left: 0; right: 0; bottom: 0; top: 150px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    opacity: 0; pointer-events: none;
}
.try-done p { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; color: #fff; opacity: 0; filter: blur(6px); transition: opacity 0.4s var(--ease) 0.25s, filter 0.4s var(--ease) 0.25s; }
.try-check { width: 76px; height: 76px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; transform: scale(0); position: relative; }
.try-check svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.try-check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.try-overlay.is-done .try-list { opacity: 0; filter: blur(10px); }
.try-overlay.is-done .try-done { opacity: 1; }
.try-overlay.is-done .try-check { animation: trycheck 0.55s var(--spring) forwards; }
.try-overlay.is-done .try-check path { animation: trydraw 0.4s var(--ease) 0.2s forwards; }
.try-overlay.is-done .try-done p { opacity: 1; filter: none; }
@keyframes trycheck { to { transform: none; } }
/* Une poignée d'éclats citron et blancs, qui partent de la coche. */
.try-spark { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 2px; background: var(--lime);
    animation: tryspark 0.9s var(--ease) forwards; }
.try-spark:nth-child(3n) { background: #fff; width: 5px; height: 5px; }
@keyframes tryspark {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(0.6); opacity: 0; }
}

/* ── Avant / après ───────────────────────────────────────────────────────── */
.versus { padding: 16px 0 112px; }
.versus-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: center; }
.vs-card { padding: 32px; border-radius: var(--r-lg); }
.vs-card h3 { margin-top: 14px; font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.vs-card ul { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.vs-card li { position: relative; padding-left: 32px; }
.vs-card li::before { content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.vs-chip { display: inline-flex; height: 28px; padding: 0 12px; align-items: center; border-radius: 999px; font-size: 13px; font-weight: 500; }
.vs-without { background: var(--surface); }
.vs-without h3 { color: var(--ink); }
.vs-without .vs-chip { background: var(--tile); color: var(--muted); }
.vs-without li { color: var(--muted); }
.vs-without li::before { background-color: #fdeceb; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b93620' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E"); }
.vs-without li span {
    /* Barré, une ligne après l'autre, quand la carte arrive. */
    background: linear-gradient(rgba(185, 54, 32, 0.6), rgba(185, 54, 32, 0.6)) 0 58% / 0 1.5px no-repeat;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    transition: background-size 0.5s var(--ease);
}
.vs-without.is-in li span { background-size: 100% 1.5px; }
.vs-with { background: var(--ink); color: #d6d5dd; transform-origin: center; }
.vs-with h3 { color: #fff; }
.vs-with .vs-chip { background: var(--lime); color: var(--ink); }
.vs-with li::before { background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121016' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); transform: scale(0); transition: transform 0.45s var(--spring); }
.vs-with.is-in li::before { transform: none; }
.vs-card li:nth-child(1)::before, .vs-without li:nth-child(1) span { transition-delay: 0.5s; }
.vs-card li:nth-child(2)::before, .vs-without li:nth-child(2) span { transition-delay: 0.62s; }
.vs-card li:nth-child(3)::before, .vs-without li:nth-child(3) span { transition-delay: 0.74s; }
.vs-card li:nth-child(4)::before, .vs-without li:nth-child(4) span { transition-delay: 0.86s; }
.vs-card li:nth-child(5)::before, .vs-without li:nth-child(5) span { transition-delay: 0.98s; }
.vs-card li:nth-child(6)::before, .vs-without li:nth-child(6) span { transition-delay: 1.1s; }
.vs-without li::before { transition: none; }
.vs-mid { width: 64px; height: 64px; }
.vs-mid svg { width: 100%; height: 100%; filter: drop-shadow(0 14px 24px rgba(18, 16, 22, 0.3)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(4deg); } }

/* ── Le mois (défilement) ────────────────────────────────────────────────── */
.story { padding: 96px 0; background: var(--surface); border-radius: 48px 48px 0 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
.story-steps { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.story-steps::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.story-steps::after {
    content: ''; position: absolute; left: 0; top: 8px; width: 2px; height: calc((100% - 16px) * var(--p, 0));
    background: var(--ink); border-radius: 2px;
}
.story-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; position: relative; opacity: 0.32; transition: opacity 0.5s var(--ease); }
.story-step:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 8px; }
.story-step:last-child { min-height: 54vh; }
.story-step.is-active { opacity: 1; }
.story-step::before {
    content: ''; position: absolute; left: -34px; top: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%;
    background: var(--surface); box-shadow: inset 0 0 0 2px var(--line);
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.4s var(--spring);
}
.story-step:first-child::before { top: 14px; }
.story-step.is-active::before { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); transform: scale(1.2); }
.story-when { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--muted); }
.story-step h3 { margin-top: 8px; color: var(--ink); font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.story-step p { margin-top: 12px; font-size: 17px; max-width: 460px; }

.story-stage { position: relative; }
.stage-card {
    position: sticky; top: calc(50vh - 220px);
    height: 440px; border-radius: var(--r-lg);
    background: var(--canvas); overflow: hidden;
}
.stage-progress { position: absolute; left: 24px; right: 24px; top: 18px; height: 3px; border-radius: 3px; background: rgba(18, 16, 22, 0.08); overflow: hidden; z-index: 2; }
.stage-progress i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.scene {
    position: absolute; inset: 0; padding: 44px 28px 28px;
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0; transform: translateY(24px) scale(0.98); pointer-events: none;
    transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.scene.is-on { opacity: 1; transform: none; }

/* Scène 1 : semaine */
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sc-title { color: var(--ink); font-weight: 600; }
.week { padding: 14px; border-radius: var(--r-md); background: var(--surface); }
.week-h, .week-r { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); gap: 5px; align-items: center; }
.week-h { font-size: 11px; color: var(--dim); text-align: center; margin-bottom: 6px; }
.week-r + .week-r { margin-top: 5px; }
.who { font-size: 13px; font-weight: 500; color: var(--ink); }
.week-r i { height: 26px; border-radius: 8px; background: var(--tile); transform: scale(0.6); opacity: 0; transition: transform 0.45s var(--spring), opacity 0.3s; transition-delay: calc(var(--k, 0) * 28ms); }
.scene.is-on .week-r i { transform: none; opacity: 1; }
.week-r i[data-t="m"] { background: var(--ink); }
.week-r i[data-t="a"] { background: #57555f; }
.week-r i[data-t="s"] { background: var(--lime); }
.week-r i[data-t="off"] { background: var(--tile); }
.week-r i.maybe { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--plum); }
.sc-foot { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-m { background: var(--ink); } .lg-a { background: #57555f; } .lg-s { background: var(--lime); }
.lg-maybe { box-shadow: inset 0 0 0 2px var(--plum); }
.sc-toast {
    align-self: center; margin-top: 16px; padding: 10px 16px; border-radius: 999px;
    background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
    opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.5s var(--spring); transition-delay: 0s;
}
.scene.is-on .sc-toast { opacity: 1; transform: none; transition-delay: 1.3s; }
.sc-prefill { transition: transform 0.3s var(--spring); }
.scene.is-on .sc-prefill { animation: tap 0.6s var(--ease) 0.15s; }
@keyframes tap { 40% { transform: scale(0.92); } 100% { transform: none; } }

/* Scène 2 : badge */
.badge-wrap { display: flex; align-items: center; justify-content: center; gap: 24px; }
.phone {
    position: relative; width: 168px; height: 300px; flex-shrink: 0;
    padding: 34px 18px 18px; border-radius: 32px;
    background: var(--ink); color: #fff; text-align: center; overflow: hidden;
    box-shadow: 0 30px 50px -24px rgba(18, 16, 22, 0.6);
}
.phone-notch { position: absolute; top: 10px; left: 50%; width: 52px; height: 14px; margin-left: -26px; border-radius: 999px; background: #000; }
.phone-name { font-weight: 600; font-size: 14px; }
.phone-sub { font-size: 11px; color: var(--dim); }
.qr { margin: 18px auto 0; width: 112px; height: 112px; padding: 8px; border-radius: 14px; background: #fff; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; }
.qr i { background: var(--ink); border-radius: 1px; }
.qr i.o { background: transparent; }
.scanline { position: absolute; left: 14px; right: 14px; top: 92px; height: 3px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 18px 4px rgba(201, 242, 75, 0.6); opacity: 0; }
.scene.is-on .scanline { animation: scan 1.6s var(--ease) 0.3s 2 alternate; }
@keyframes scan { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(124px); } }
.badge-log { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; max-width: 260px; }
.bl-head { align-self: flex-start; margin-bottom: 2px; }
.bl-row {
    display: grid; grid-template-columns: 10px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
    padding: 10px 14px; border-radius: 16px; background: var(--surface);
    opacity: 0; transform: translateX(20px); transition: opacity 0.4s, transform 0.6s var(--spring);
}
.bl-row b { color: var(--ink); font-weight: 600; font-size: 14px; }
.bl-row span:not(.bl-dot) { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--ink); }
.bl-row em { grid-column: 2 / 4; font-style: normal; font-size: 12px; color: var(--muted); }
.bl-row em.warn { color: var(--warn); }
.bl-dot { width: 10px; height: 10px; border-radius: 50%; grid-row: 1 / 3; }
.bl-dot.ok { background: #7ea11c; }
.bl-dot.warn { background: var(--warn-solid); }
.scene.is-on .bl-row { opacity: 1; transform: none; }
.scene.is-on .bl-1 { transition-delay: 0.9s; }
.scene.is-on .bl-2 { transition-delay: 1.4s; }
.scene.is-on .bl-3 { transition-delay: 1.9s; }

/* Scène 3 : demande */
.req { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.req-card {
    position: relative; width: min(320px, 100%);
    padding: 18px; border-radius: var(--r-md); background: var(--surface);
    box-shadow: 0 24px 40px -24px rgba(18, 16, 22, 0.35);
    transform: rotate(-2deg) translateY(10px); opacity: 0; transition: transform 0.7s var(--spring), opacity 0.4s;
}
.scene.is-on .req-card { transform: none; opacity: 1; }
.req-top { display: flex; align-items: center; gap: 10px; }
.req-top div { display: flex; flex-direction: column; }
.req-top b { color: var(--ink); font-size: 15px; }
.req-top span { font-size: 12px; color: var(--muted); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--tile); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.req-dates { margin-top: 12px; color: var(--ink); font-weight: 500; }
.req-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.req-actions span { height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; }
.req-no { background: var(--tile); color: var(--ink); }
.req-yes { background: var(--ink); color: #fff; }
.scene.is-on .req-yes { animation: tap 0.5s var(--ease) 1s; }
.req-stamp {
    position: absolute; right: 14px; top: 14px;
    padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--ink);
    font-size: 12px; font-weight: 600;
    opacity: 0; transform: scale(1.6) rotate(8deg); transition: opacity 0.2s, transform 0.5s var(--spring);
}
.scene.is-on .req-stamp { opacity: 1; transform: rotate(-4deg); transition-delay: 1.35s; }
.req-week { display: grid; grid-template-columns: repeat(5, 44px); gap: 6px; text-align: center; font-size: 11px; color: var(--dim); }
.req-week i { height: 30px; border-radius: 9px; background: var(--ink); transition: background-color 0.4s; }
.scene.is-on .req-week i { background: var(--blue-bg); box-shadow: inset 0 0 0 1.5px #b3cff0; }
.scene.is-on .req-week i:nth-of-type(1) { transition-delay: 1.6s; }
.scene.is-on .req-week i:nth-of-type(2) { transition-delay: 1.7s; }
.scene.is-on .req-week i:nth-of-type(3) { transition-delay: 1.8s; }
.scene.is-on .req-week i:nth-of-type(4) { transition-delay: 1.9s; }
.scene.is-on .req-week i:nth-of-type(5) { transition-delay: 2s; }
.req-note { font-size: 13px; color: var(--muted); opacity: 0; transition: opacity 0.4s; }
.scene.is-on .req-note { opacity: 1; transition-delay: 2.2s; }

/* Scène 4 : export */
.exp { padding: 16px; border-radius: var(--r-md); background: var(--surface); font-size: 13px; }
.exp-head, .exp-row { display: grid; grid-template-columns: 1.4fr 0.8fr 1.3fr 0.5fr 0.4fr; gap: 8px; padding: 9px 4px; }
.exp-head { font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); }
.exp-row { color: var(--ink); font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.5s var(--ease); }
.exp-row span:not(:first-child) { font-family: 'Geist Mono', monospace; font-size: 12px; }
.exp-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene.is-on .exp-row { opacity: 1; transform: none; }
.scene.is-on .exp-row:nth-child(2) { transition-delay: 0.25s; }
.scene.is-on .exp-row:nth-child(3) { transition-delay: 0.45s; }
.scene.is-on .exp-row:nth-child(4) { transition-delay: 0.65s; }
.scene.is-on .exp-row:nth-child(5) { transition-delay: 0.85s; }
.exp-files { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.file {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
    background: var(--lime); color: var(--ink); font-weight: 500;
    opacity: 0; transform: scale(0.85); transition: opacity 0.3s, transform 0.5s var(--spring);
}
.file svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.file-ink { background: var(--ink); color: #fff; }
.scene.is-on .file { opacity: 1; transform: none; transition-delay: 1.15s; }
.scene.is-on .file-ink { transition-delay: 1.35s; }

/* ── Fonctions ───────────────────────────────────────────────────────────── */
.features { padding: 112px 0; background: var(--surface); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
    position: relative; overflow: hidden;
    padding: 28px; border-radius: var(--r-lg); background: var(--canvas);
    display: flex; flex-direction: column;
}
.tile h3 { color: var(--ink); font-size: 22px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.tile p { margin-top: 8px; font-size: 15px; color: var(--body); }
.tile .chip { align-self: flex-start; margin-bottom: 14px; }
.tile-wide { grid-column: span 4; flex-direction: row; gap: 28px; align-items: center; }
.tile-wide .tile-copy { flex: 1; }
.tile-stores { grid-column: span 2; }
.tile-prefs { grid-column: span 2; }
.tile-ink { grid-column: span 2; background: var(--ink); color: #d6d5dd; justify-content: space-between; }
.tile-ink p { color: #a3a1ad; }
.tile-agent { grid-column: span 2; }
.tile-report { grid-column: span 3; }
.bento .tile-report { grid-column: span 6; flex-direction: row; gap: 32px; align-items: center; }
.tile-report > h3, .tile-report > p { max-width: 420px; }
.quote { color: #fff !important; font-size: 30px !important; font-weight: 500; letter-spacing: -0.035em; line-height: 1.1 !important; margin-top: 0 !important; }
.quote span { color: var(--lime); }

/* Interrupteur */
.switch { margin-top: 20px; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; color: var(--ink); font-weight: 500; font-size: 15px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--dim); transition: background-color 0.25s; flex-shrink: 0; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(18, 16, 22, 0.25); transition: transform 0.4s var(--spring); }
.switch input:checked + .switch-ui { background: var(--ink); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--ink); outline-offset: 3px; }

.smooth { flex: 1; min-width: 0; padding: 20px; border-radius: var(--r-md); background: var(--surface); }
.smooth-line { position: relative; height: 112px; margin: 0 4px; }
.sm-axis { position: absolute; left: 0; right: 0; top: 55px; height: 2px; background: var(--line); }
.sm-tol { position: absolute; top: 47px; height: 18px; left: 20%; right: 20%; border-radius: 999px; background: var(--lime-soft); box-shadow: inset 0 0 0 1.5px #d6ec93; transition: opacity 0.3s; }
.sm-edge { position: absolute; left: var(--x); top: 68px; transform: translateX(-50%); font-size: 11px; color: var(--dim); white-space: nowrap; }
.sm-mark { position: absolute; left: var(--x); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); }
.sm-mark em { font-style: normal; }
.sm-mark b { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--ink); font-weight: 500; }
.sm-mark i { width: 12px; height: 12px; border-radius: 50%; }
.sm-badge { bottom: calc(100% - 62px); }
.sm-badge i { margin-top: 4px; background: var(--lime); box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4px var(--ink); }
.sm-plan { top: 50px; }
.sm-plan i { margin-bottom: 18px; background: var(--ink); box-shadow: 0 0 0 2.5px var(--surface); }
.smooth-out { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--tile); font-size: 14px; color: var(--muted); }
.smooth-out b { font-family: 'Geist Mono', monospace; font-size: 24px; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; display: inline-block; }
.smooth-out b.flip { animation: flip 0.45s var(--ease); }
@keyframes flip { 0% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(-12px); opacity: 0; } 55% { transform: translateY(12px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Magasins */
.switcher { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: var(--r-md); background: var(--surface); }
.sw-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border: 0; border-radius: 14px; background: transparent; text-align: left; transition: background-color 0.2s; }
.sw-item:hover { background: var(--tile); }
.sw-item i { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-style: normal; font-size: 12px; font-weight: 600; transition: background-color 0.3s, color 0.3s, transform 0.4s var(--spring); }
.sw-item span { flex: 1; color: var(--ink); font-weight: 600; font-size: 14px; }
.sw-item em { font-style: normal; font-size: 12px; color: var(--muted); }
.sw-item.is-current { background: var(--tile); }
.sw-item.is-current i { background: var(--lime); color: var(--ink); transform: rotate(-8deg); }

/* Préférences */
.prefs { margin-top: 18px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.prefs button {
    aspect-ratio: 1; border: 0; border-radius: 12px;
    background: var(--surface); color: var(--muted); font-weight: 600; font-size: 14px;
    transition: background-color 0.25s, color 0.25s, transform 0.35s var(--spring), box-shadow 0.25s;
}
.prefs button:active { transform: scale(0.88); }
.prefs button[data-v="ok"] { background: var(--ink); color: #fff; }
.prefs button[data-v="maybe"] { background: var(--plum-bg); color: var(--plum); box-shadow: inset 0 0 0 1.5px var(--plum); }
.prefs-legend { margin-top: 12px; display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.prefs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.prefs-legend i { width: 10px; height: 10px; border-radius: 3px; }
.pl-ok { background: var(--ink); }
.pl-maybe { background: var(--plum-bg); box-shadow: inset 0 0 0 1.5px var(--plum); }

/* Agent */
.chat { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 132px; }
.bubble { max-width: 92%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; min-height: 40px; }
.bubble:empty { visibility: hidden; }
.bubble.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; background: var(--surface); color: var(--ink); border-bottom-left-radius: 6px; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Rapport */
.paper {
    flex-shrink: 0; width: min(420px, 100%); margin-left: auto;
    padding: 18px; border-radius: 16px; background: var(--surface);
    box-shadow: 0 30px 50px -30px rgba(18, 16, 22, 0.4);
    transform: rotate(2deg) translateY(8px); transition: transform 0.7s var(--spring);
}
.tile-report:hover .paper, .tile-report.is-in .paper { transform: rotate(-1deg); }
.paper-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.paper-head svg { width: 26px; height: 26px; }
.paper-head span { color: var(--ink); font-weight: 600; font-size: 14px; flex: 1; }
.paper-head em { font-style: normal; font-size: 12px; color: var(--muted); }
.paper-kpis { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.paper-kpis span { display: flex; flex-direction: column; padding: 10px; border-radius: 12px; background: var(--tile); font-size: 11px; color: var(--muted); }
.paper-kpis b { color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.paper-bars { margin-top: 12px; height: 70px; display: flex; align-items: flex-end; gap: 8px; }
.paper-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 6px 6px 3px 3px; background: var(--ink); transform: scaleY(0.1); transform-origin: bottom; transition: transform 0.8s var(--spring); }
.paper-bars i:nth-child(4) { background: var(--lime); }
.tile-report.is-in .paper-bars i { transform: none; }
.tile-report.is-in .paper-bars i:nth-child(2) { transition-delay: 0.06s; }
.tile-report.is-in .paper-bars i:nth-child(3) { transition-delay: 0.12s; }
.tile-report.is-in .paper-bars i:nth-child(4) { transition-delay: 0.18s; }
.tile-report.is-in .paper-bars i:nth-child(5) { transition-delay: 0.24s; }
.tile-report.is-in .paper-bars i:nth-child(6) { transition-delay: 0.3s; }
.tile-report.is-in .paper-bars i:nth-child(7) { transition-delay: 0.36s; }

/* ── Tarifs ──────────────────────────────────────────────────────────────── */
.pricing { padding: 112px 0 96px; }
.price-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 40px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; height: 52px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--surface); }
.stepper-label { font-size: 15px; color: var(--muted); }
.stepper-label:last-child { margin-right: 10px; min-width: 64px; }
.stepper button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tile); color: var(--ink); font-size: 20px; line-height: 1; transition: background-color 0.2s, transform 0.3s var(--spring); }
.stepper button:hover:not(:disabled) { background: var(--line); }
.stepper button:active:not(:disabled) { transform: scale(0.88); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output { min-width: 34px; text-align: center; color: var(--ink); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper output.bump { animation: bump 0.4s var(--spring); }
@keyframes bump { 40% { transform: scale(1.3); } }
.billing { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: auto; height: 52px; padding: 6px; border-radius: 999px; background: var(--surface); }
.billing button { position: relative; z-index: 1; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 500; font-size: 15px; transition: color 0.3s; white-space: nowrap; }
.billing button[aria-checked="true"] { color: #fff; }
.billing button em { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12px; }
.billing-pill { position: absolute; z-index: 0; top: 6px; height: 40px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform 0.45s var(--ease), width 0.45s var(--ease); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.plan {
    position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.4s;
}
.plan h3 { color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.plan-for { margin-top: 6px; font-size: 14px; color: var(--muted); min-height: 44px; }
.plan-price { margin-top: 20px; display: flex; align-items: flex-end; gap: 10px; }
.plan-price b { color: var(--ink); font-size: 56px; font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 13px; color: var(--muted); line-height: 1.3; padding-bottom: 2px; }
.plan-total { margin-top: 10px; min-height: 22px; font-size: 14px; color: var(--ink); font-weight: 500; }
.plan .btn { margin-top: 20px; }
.plan-unlock { display: none; }
.plan-list { margin: 24px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); }
.plan-list li::before {
    content: ''; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
    background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121016' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan-list li.plus { color: var(--ink); font-weight: 500; }
.plan-list li.plus::before { display: none; }
.plan-badge {
    position: absolute; top: 24px; right: 24px;
    padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--ink);
    font-size: 12px; font-weight: 600;
    opacity: 0; transform: scale(0.7); transition: opacity 0.3s, transform 0.45s var(--spring);
}
.plan.is-reco { box-shadow: inset 0 0 0 2px var(--ink), 0 30px 60px -36px rgba(18, 16, 22, 0.45); transform: translateY(-6px); }
.plan.is-reco .plan-badge { opacity: 1; transform: none; }
.plan.is-reco .plan-list li::before { background-color: var(--lime); }
.plan.is-locked .plan-price, .plan.is-locked .plan-list, .plan.is-locked .plan-total { opacity: 0.45; }
.plan.is-locked [data-plan-cta] { display: none; }
.plan.is-locked .plan-unlock { display: inline-flex; }
.price-note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }

/* ── Questions ───────────────────────────────────────────────────────────── */
.faq { padding: 96px 0 112px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq .section-head { position: sticky; top: 100px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.faq summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 22px; color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121016' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: transform 0.4s var(--spring), background-color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--lime); }
.faq details p { padding: 0 22px 22px; font-size: 16px; max-width: 640px; }
.faq details[open] p { animation: drop 0.35s var(--ease); }

/* ── Dernier appel ───────────────────────────────────────────────────────── */
.final { padding: 0 var(--gutter) 24px; }
.final-inner {
    position: relative; overflow: hidden;
    max-width: calc(var(--wrap) - 2 * var(--gutter));
    padding: 88px 40px; border-radius: 40px; background: var(--ink); color: #fff; text-align: center;
}
.final-inner::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 96px);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 75%);
}
.final-s { position: relative; width: 72px; height: 72px; margin: 0 auto 28px; }
.final-s path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) 0.2s; }
.final-s circle { transform-origin: 145px 30px; transform: scale(0); transition: transform 0.6s var(--spring) 1.3s; }
.final-inner.is-in .final-s path { stroke-dashoffset: 0; }
.final-inner.is-in .final-s circle { transform: none; }
.final h2 { position: relative; color: #fff; font-size: clamp(34px, 5.4vw, 64px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; }
.final p { position: relative; margin-top: 16px; font-size: 18px; color: var(--dim); }

/* ── Pied de page ────────────────────────────────────────────────────────── */
.foot { padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-brand p { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 260px; }
.foot .brand { font-size: 17px; }
.foot .brand-mark { width: 28px; height: 28px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot h4 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.foot nav a, .foot-link { font-size: 14px; color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; }
.foot nav a:hover, .foot-link:hover { color: var(--ink); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px dashed var(--line); }
.foot-bottom p { font-size: 13px; color: var(--dim); }
.final .hero-form { margin: 32px auto 0; position: relative; }
.hero-form-dark { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.hero-form-dark input { color: #fff; }
.hero-form-dark input::placeholder { color: #8c8a96; }
.final-login { font-size: 14px !important; margin-top: 18px !important; }
.final-login a { color: #fff; text-underline-offset: 4px; }

/* ── Demande de démo ─────────────────────────────────────────────────────── */
.demo {
    width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
    padding: 0; border: 0; border-radius: var(--r-lg);
    background: var(--surface); color: var(--body);
    box-shadow: 0 40px 80px -30px rgba(18, 16, 22, 0.5);
}
.demo[open] { animation: pop 0.45s var(--ease); }
.demo::backdrop { background: rgba(18, 16, 22, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.demo-form { position: relative; padding: 28px; }
.demo h2 { color: var(--ink); font-size: 26px; font-weight: 500; letter-spacing: -0.03em; padding-right: 40px; }
.demo-sub { margin-top: 6px; font-size: 15px; color: var(--muted); }
.demo-sub span:not(:empty) { color: var(--ink); font-weight: 500; }
.demo-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tile); display: inline-flex; align-items: center; justify-content: center; }
.demo-close svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.field { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
    height: 46px; padding: 0 14px; border: 1.5px solid transparent; border-radius: 14px;
    background: var(--tile); color: var(--ink); font: inherit; font-size: 15px;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 16, 22, 0.08); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d4432c; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field textarea { height: auto; min-height: 64px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.field .opt { color: var(--dim); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--body); cursor: pointer; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); }
.consent a { color: var(--ink); text-underline-offset: 3px; }
.consent.is-invalid span { color: #952b19; }
.demo-done { text-align: center; padding: 12px 0 4px; }
.demo-done-ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--lime); display: flex; align-items: center; justify-content: center; animation: pop 0.5s var(--spring); }
.demo-done-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.link-light { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.link-light:hover { text-decoration-color: #fff; }
.demo-error { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: #fdeceb; color: #952b19; font-size: 14px; }
.demo .btn-block { margin-top: 22px; }
.demo-fine { margin-top: 10px; text-align: center; font-size: 12px; color: var(--dim); }

/* ── Écrans moyens ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile-wide, .bento .tile-report { grid-column: span 2; }
    .tile-stores, .tile-prefs, .tile-ink, .tile-agent { grid-column: span 1; }
    .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .plan.is-reco { transform: none; }
    .plan-for { min-height: 0; }
}

/* ── Téléphone ───────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    :root { --gutter: 16px; }
    .hero { padding: 4px 0 64px; }
    .hero-frame { padding: 28px 0 0; }
    .br-lg { display: none; }
    .hero-sub { font-size: 17px; }
    .hero-form { flex-direction: column; align-items: stretch; padding: 6px; border-radius: 24px; }
    .hero-form input { padding: 0 14px; text-align: center; }
    .hero-form .btn { width: 100%; }
    .hero-demo { margin-top: 44px; }
    .versus { padding: 8px 0 80px; }
    .versus-grid { grid-template-columns: 1fr; gap: 12px; }
    .vs-mid { margin: 0 auto; width: 48px; height: 48px; }
    .vs-card { padding: 24px; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: span 2; }
    .day { padding: 16px; border-radius: 24px; }
    .day-clock { font-size: 28px; }
    .day-board { padding-left: 52px; }
    .day-cursor { left: 52px; }
    .row-name { width: 44px; font-size: 12px; }
    .ev { font-size: 13px; }

    .story { padding: 72px 0; border-radius: 32px 32px 0 0; }
    .story-grid { grid-template-columns: 1fr; gap: 0; }
    .story-stage { order: -1; position: sticky; top: 64px; z-index: 2; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px; background: linear-gradient(var(--surface) 88%, transparent); }
    .stage-card { position: relative; top: 0; height: 330px; }
    .scene { padding: 36px 16px 16px; }
    .story-steps { padding-left: 24px; }
    .story-step, .story-step:first-child, .story-step:last-child { min-height: 52vh; justify-content: center; padding-top: 0; }
    .story-step:first-child::before { top: calc(50% - 7px); }
    .story-step::before { left: -30px; }
    .story-step p { font-size: 16px; }
    .phone { width: 132px; height: 236px; padding: 28px 12px 12px; border-radius: 26px; }
    .qr { width: 92px; height: 92px; margin-top: 12px; padding: 6px; }
    .scanline { top: 78px; }
    @keyframes scan { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(100px); } }
    .badge-wrap { gap: 12px; }
    .bl-row { padding: 8px 10px; }
    .week { padding: 10px; }
    .week-h, .week-r { grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 4px; }
    .week-r i { height: 22px; border-radius: 6px; }
    .exp { padding: 10px; font-size: 12px; }
    .exp-head, .exp-row { grid-template-columns: 1.3fr 0.8fr 1.4fr 0.45fr 0.4fr; gap: 4px; }
    .exp-row span:not(:first-child) { font-size: 11px; }
    .req-week { grid-template-columns: repeat(5, 38px); }

    .features { padding: 80px 0; }
    .bento { grid-template-columns: 1fr; }
    .tile-wide, .bento .tile-report, .tile-stores, .tile-prefs, .tile-ink, .tile-agent { grid-column: span 1; }
    .tile-wide, .bento .tile-report { flex-direction: column; align-items: stretch; }
    .tile { padding: 22px; }
    .smooth { width: 100%; }
    .paper { margin-left: 0; width: 100%; }

    .pricing { padding: 80px 0 72px; }
    .price-controls { flex-direction: column; }
    .billing button { padding: 0 14px; }
    .plan { padding: 24px; }
    .faq { padding: 72px 0 88px; }
    .faq-grid { grid-template-columns: 1fr; gap: 8px; }
    .faq .section-head { position: static; margin-bottom: 28px; }
    .faq summary { padding: 18px; font-size: 16px; }
    .faq details p { padding: 0 18px 18px; }
    .final-inner { padding: 64px 22px; border-radius: 32px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .demo-form { padding: 22px; }
}

/* ── Réduire les animations ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
    .js [data-reveal], .js .hero-title .w, .js .hero .day { opacity: 1 !important; transform: none !important; }
    .vs-with li::before { transform: none !important; }
    .vs-without li span { background-size: 100% 1.5px !important; }
    .vs-mid svg { animation: none !important; }
    .try-s path { stroke-dashoffset: 0 !important; }
    .try-s circle { transform: none !important; }
    .js .hl-line path, .final-s path { stroke-dashoffset: 0 !important; }
    .final-s circle { transform: none !important; }
    .live-dot::after { display: none; }
}
