/* Kestok — site vitrine. Mêmes couleurs que l'application (indigo), police Onest. */
:root {
  --navy: #161d55; --navy-2: #1f2870; --navy-3: #2b379a; --soft: #e6e8f6; --pale: #f2f3fb;
  --ink: #171a2c; --ink-2: #4f5569; --muted: #697087; --line: #e7e9f0; --page: #f6f7fb; --card: #fff;
  --green: #0b7a52; --green-bg: #e2f3eb; --amber: #a85f00; --amber-bg: #fbefd9; --red: #b3302a; --red-bg: #f8e3e1;
  --paper: #fbf6e9; --pen: #1d3f8f;
  --shadow: 0 2px 8px rgba(27,35,79,.05), 0 1px 2px rgba(27,35,79,.04);
  --shadow-lg: 0 30px 60px -20px rgba(22,29,85,.28), 0 12px 24px -12px rgba(22,29,85,.18);
  --r: 14px; --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--page); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-3); }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.12; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid #8591e9; outline-offset: 3px; border-radius: 6px; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 22px; border-radius: 11px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px -6px rgba(22,29,85,.55); }
.btn.primary:hover { background: #222d76; }
.btn.light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.white { background: #fff; color: var(--navy); }
.btn.ghost-w { color: #fff; border-color: rgba(255,255,255,.35); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn svg { flex-shrink: 0; }

/* ---------- en-tête ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(246,247,251,.82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(22,29,85,.4); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 900; font-size: 19px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.brand b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: -3px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: #fff; color: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.lang:hover { background: #fff; }
.login { color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 10px; }

/* ---------- héros ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 90px; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto 35%; height: 760px; background: radial-gradient(closest-side, rgba(43,55,154,.16), transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #1a9b6e; box-shadow: 0 0 0 4px rgba(26,155,110,.18); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(26,155,110,.05); } }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 900; margin: 20px 0 18px; }
.hero h1 .word { display: inline-block; }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.fine { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fine span { display: inline-flex; align-items: center; gap: 6px; }
.fine svg { color: var(--green); }

.stage { position: relative; height: 540px; }
.dev-desk { position: absolute; right: -4%; top: 30px; width: 96%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.dev-desk .bar { height: 26px; background: #eef0f6; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.dev-desk .bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d7e3; }
.dev-phone { position: absolute; left: -2%; bottom: -10px; width: 29%; max-height: 470px; overflow: hidden; border-radius: 30px; padding: 9px; background: #12152a; box-shadow: var(--shadow-lg); }
.dev-phone img { border-radius: 22px; }
.float { animation: float 7s ease-in-out infinite; }
.float.slow { animation-duration: 9s; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.toast { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(22,29,85,.45); font-size: 14.5px; min-width: 240px; opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.toast.on { opacity: 1; transform: none; }
.toast .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; }
.toast .ic.g { background: var(--green-bg); color: var(--green); } .toast .ic.a { background: var(--amber-bg); color: var(--amber); } .toast .ic.i { background: var(--soft); color: var(--navy-3); }
.toast b { display: block; font-size: 15px; } .toast small { color: var(--muted); font-size: 13px; }
.toast-slot { position: absolute; right: 0; bottom: 40px; width: 290px; height: 70px; }
.toast-slot .toast { right: 0; bottom: 0; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-3); margin-bottom: 14px; }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(32px, 3.8vw, 46px); font-weight: 850; font-weight: 800; }
.sec-head p { font-size: 18.5px; color: var(--ink-2); margin-top: 16px; }

/* vidéo */
.video-sec { padding: 20px 0 96px; }
.video-box { position: relative; border-radius: 22px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-box .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(22,29,85,.35), rgba(22,29,85,.05)); border: 0; cursor: pointer; transition: opacity .3s; color: #fff; font: inherit; }
.video-box .play span { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 16px; border-radius: 99px; background: #fff; color: var(--navy); font-weight: 800; font-size: 17px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); }
.video-box .play span i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; }
.video-box.playing .play { opacity: 0; pointer-events: none; }
.video-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; color: var(--muted); font-size: 15px; }
.video-cap button { border: 0; background: none; font: inherit; color: var(--navy-3); font-weight: 700; cursor: pointer; padding: 0; }

/* avant / après */
.ba { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ba-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.notebook { position: relative; background: var(--paper); border-radius: 6px 16px 16px 6px; padding: 34px 34px 34px 64px; box-shadow: var(--shadow-lg); transform: rotate(-2deg); font-family: 'Caveat', 'Comic Sans MS', cursive; color: var(--pen); font-size: 27px; line-height: 1.32;
  background-image: repeating-linear-gradient(180deg, transparent 0 34px, rgba(29,63,143,.14) 34px 35px), linear-gradient(90deg, transparent 46px, rgba(179,48,42,.35) 46px 48px, transparent 48px); }
.notebook h4 { margin: 0 0 6px; font-size: 32px; font-weight: 700; }
.notebook .ln { position: relative; width: max-content; max-width: 100%; }
.notebook .ln::after { content: ''; position: absolute; left: -4px; right: -6px; top: 54%; height: 2.5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.6,.1,.3,1); border-radius: 2px; }
.notebook.in .ln::after { transform: scaleX(1); }
.notebook.in .ln:nth-child(2)::after { transition-delay: .3s } .notebook.in .ln:nth-child(3)::after { transition-delay: .55s } .notebook.in .ln:nth-child(4)::after { transition-delay: .8s }
.notebook.in .ln:nth-child(5)::after { transition-delay: 1.05s } .notebook.in .ln:nth-child(6)::after { transition-delay: 1.3s } .notebook.in .ln:nth-child(7)::after { transition-delay: 1.55s }
.notebook .q { color: var(--red); }
.fixes { display: grid; gap: 14px; }
.fix { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--page); }
.fix .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-bg); color: var(--green); }
.fix q { display: block; font-style: italic; color: var(--muted); margin-bottom: 4px; quotes: '« ' ' »' '“' '”'; }
.fix p { font-weight: 600; }

/* fonctions */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 28px 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfd3ea; }
.feat .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--soft); color: var(--navy-3); margin-bottom: 18px; }
.feat h3 { font-size: 20px; font-weight: 750; font-weight: 700; margin-bottom: 8px; }
.feat p { color: var(--ink-2); font-size: 16px; }

/* le soir : chiffres qui comptent */
.night { background: var(--navy); color: #fff; overflow: hidden; position: relative; }
.night::before { content: ''; position: absolute; width: 700px; height: 700px; right: -200px; top: -260px; background: radial-gradient(closest-side, rgba(120,135,255,.28), transparent); }
.night .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; }
.night .eyebrow { color: #aab3ff; }
.night h2 { font-size: clamp(32px, 3.8vw, 46px); font-weight: 800; }
.night p { color: #c8cdf0; font-size: 18.5px; margin-top: 16px; }
.summary { background: #fff; color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.summary .head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.summary .head .wa { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #25d366; color: #fff; }
.summary .head b { display: block; } .summary .head small { color: var(--muted); }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fig { padding: 16px; border-radius: 13px; background: var(--page); border: 1px solid var(--line); }
.fig span { display: block; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.fig strong { display: block; white-space: nowrap; font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.fig.g strong { color: var(--green); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-top: 18px; padding: 0 4px; }
.bars i { flex: 1; border-radius: 7px 7px 3px 3px; background: var(--soft); height: 8%; transition: height 1s cubic-bezier(.2,.8,.2,1); }
.bars i:last-child { background: var(--navy-3); }
.summary.in .bars i { height: var(--h); }
.days { display: flex; gap: 10px; padding: 6px 4px 0; } .days span { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }

/* appareils (onglets) */
.devices .tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 13px; background: #fff; border: 1px solid var(--line); margin-bottom: 30px; box-shadow: var(--shadow); }
.devices .tabs button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 15.5px; color: var(--ink-2); padding: 10px 18px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; position: relative; overflow: hidden; }
.devices .tabs button.on { background: var(--navy); color: #fff; }
.devices .tabs button .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.6); width: 0; }
.devices .tabs button.on .prog { animation: prog 5s linear forwards; }
.devices.paused .tabs button.on .prog { animation: none; width: 0; }
@keyframes prog { to { width: 100%; } }
.dev-view { position: relative; height: 620px; display: grid; place-items: center; }
.dev-view figure { position: absolute; margin: 0; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.dev-view figure.on { opacity: 1; transform: none; pointer-events: auto; }
.dev-view .f-desk { width: min(940px, 100%); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }
.dev-view .f-tab { width: 430px; padding: 12px; border-radius: 30px; background: #12152a; box-shadow: var(--shadow-lg); max-height: 610px; overflow: hidden; }
.dev-view .f-tab img { border-radius: 18px; }
.dev-view .f-mob { width: 262px; padding: 10px; border-radius: 36px; background: #12152a; box-shadow: var(--shadow-lg); }
.dev-view .f-mob img { border-radius: 27px; }
.dev-note { text-align: center; color: var(--muted); margin-top: 22px; font-size: 16px; }

/* métiers */
.trades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trade { padding: 26px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.trade:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trade .emo { font-size: 34px; line-height: 1; margin-bottom: 16px; display: block; }
.trade h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.trade p { color: var(--ink-2); font-size: 15.5px; }

/* étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.steps::before { content: ''; position: absolute; top: 27px; left: 8%; right: 8%; height: 3px; background: var(--line); border-radius: 3px; }
.steps::after { content: ''; position: absolute; top: 27px; left: 8%; height: 3px; width: 0; background: var(--navy-3); border-radius: 3px; transition: width 1.6s cubic-bezier(.4,.1,.2,1) .2s; }
.steps.in::after { width: 84%; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step .num { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: #fff; border: 3px solid var(--line); font-weight: 800; font-size: 20px; color: var(--muted); position: relative; z-index: 1; transition: background .4s, border-color .4s, color .4s; }
.steps.in .step .num { background: var(--navy); border-color: var(--navy); color: #fff; }
.steps.in .step:nth-child(2) .num { transition-delay: .7s } .steps.in .step:nth-child(3) .num { transition-delay: 1.4s }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 16px; }
.agent { margin: 44px auto 0; max-width: 720px; text-align: center; padding: 18px 22px; border-radius: 14px; background: var(--pale); border: 1px dashed #c7cce9; color: var(--ink-2); }

/* prix */
.pricing { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.period { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 13px; background: var(--page); border: 1px solid var(--line); margin: 0 auto 36px; }
.period button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 15.5px; color: var(--ink-2); padding: 9px 18px; border-radius: 9px; cursor: pointer; }
.period button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(23,26,44,.14); }
.period .save { font-size: 12px; font-weight: 800; color: var(--green); background: var(--green-bg); padding: 2px 7px; border-radius: 99px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.plan { padding: 32px 30px; border-radius: 22px; border: 1px solid var(--line); background: var(--page); position: relative; }
.plan.pro { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-lg); }
.plan .tag { position: absolute; top: 22px; right: 22px; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.15); color: #fff; }
.plan h3 { font-size: 22px; font-weight: 800; }
.plan .for { color: var(--muted); font-size: 15px; margin-top: 4px; }
.plan.pro .for { color: #c8cdf0; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 4px; }
.price strong { font-size: 46px; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; transition: opacity .2s; }
.price span { color: var(--muted); font-weight: 600; } .plan.pro .price span { color: #c8cdf0; }
.price-note { font-size: 14px; color: var(--muted); min-height: 21px; } .plan.pro .price-note { color: #c8cdf0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 16px; }
.plan li svg { flex-shrink: 0; margin-top: 3px; color: var(--green); } .plan.pro li svg { color: #7ee2b8; }
.plan .btn { width: 100%; }
.plans-note { text-align: center; color: var(--muted); margin-top: 26px; font-size: 15.5px; }

/* questions */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-lg); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 17.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--pale); display: grid; place-items: center; transition: transform .3s; color: var(--navy-3); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* appel final */
.final { padding: 40px 0 96px; }
.final-box { position: relative; overflow: hidden; border-radius: 28px; background: var(--navy); color: #fff; padding: 64px 48px; text-align: center; }
.final-box::before, .final-box::after { content: ''; position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(120,135,255,.35), transparent); width: 520px; height: 520px; }
.final-box::before { left: -180px; top: -260px; animation: drift 14s ease-in-out infinite; } .final-box::after { right: -200px; bottom: -280px; animation: drift 18s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate(60px, 40px); } }
.final-box > * { position: relative; }
.final-box h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 900; }
.final-box p { color: #c8cdf0; font-size: 18.5px; margin: 16px auto 0; max-width: 34em; }
.final-box .cta { justify-content: center; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.trust > div { display: flex; gap: 12px; align-items: flex-start; }
.trust .ic { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--navy-3); }
.trust b { display: block; font-size: 15.5px; } .trust small { color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer a { color: var(--ink-2); text-decoration: none; } footer a:hover { color: var(--ink); text-decoration: underline; }
footer .right { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }

/* WhatsApp flottant */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transform: scale(0); transition: transform .35s cubic-bezier(.2,1.4,.4,1); }
.wa-float.on { transform: scale(1); }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- apparition au défilement ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s } .rv.d2 { transition-delay: .16s } .rv.d3 { transition-delay: .24s } .rv.d4 { transition-delay: .32s } .rv.d5 { transition-delay: .4s }
.hero .rv { transition-duration: .9s; }
.no-js .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .toast { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- tablette ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .hero .wrap, .ba-grid, .night .wrap { grid-template-columns: 1fr; }
  .stage { height: 460px; max-width: 640px; margin: 0 auto; width: 100%; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .trades { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .notebook { max-width: 520px; }
}
/* ---------- téléphone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .dev-view { height: 560px; } .dev-view .f-mob { width: 240px; }
  .dev-desk { right: -12%; top: 10px; width: 108%; }
  .dev-phone { width: 36%; max-height: 330px; left: 0; }
  .wrap { padding: 0 18px; }
  .top .wrap { height: 62px; gap: 10px; }
  .login { display: none; }
  .top .btn.sm { padding: 0 13px; }
  .hero { padding: 30px 0 60px; }
  .hero .lead { font-size: 17.5px; }
  .cta .btn { flex: 1 1 100%; }
  .stage { height: 360px; }
  .toast-slot { right: 0; left: auto; bottom: 10px; width: 250px; }
  .toast { min-width: 0; font-size: 13.5px; }
  section { padding: 70px 0; }
  .sec-head { margin-bottom: 34px; }
  .feat-grid, .trades, .steps, .plans, .trust, .figs { grid-template-columns: 1fr; }
  .figs { grid-template-columns: 1fr 1fr; }
  .fig { padding: 13px; } .fig strong { font-size: 21px; } .summary { padding: 18px; }
  .video-cap button { align-self: flex-start; }
  .steps::before, .steps::after { display: none; }
  .step { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 0 16px; padding: 0; }
  .step .num { margin: 0; grid-row: span 2; }
  .notebook { padding: 26px 22px 26px 52px; font-size: 23px; }
  .dev-view { height: 520px; }
  .devices .tabs { display: flex; width: 100%; } .devices .tabs button { flex: 1; justify-content: center; padding: 10px 6px; font-size: 14px; }
  .dev-view .f-tab { width: 300px; max-height: 500px; }
  .dev-view .f-mob { width: 240px; }
  .final-box { padding: 44px 22px; border-radius: 22px; }
  footer .right { margin-left: 0; }
  .video-cap { flex-direction: column; gap: 6px; }
}

/* ---------- restaurants et maquis ---------- */
.resto { background: linear-gradient(180deg, #fff7ee 0%, #fffaf4 60%, var(--page) 100%); border-top: 1px solid #f3e4d2; }
.resto .eyebrow { color: #b4530a; }
.r-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.r-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: rs; }
.r-steps button { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid transparent; background: transparent; font: inherit; color: var(--ink); cursor: pointer; transition: background .3s, border-color .3s, box-shadow .3s; }
.r-steps button .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fdebd8; color: #b4530a; transition: background .3s, color .3s; }
.r-steps button b { display: block; font-size: 18px; margin-bottom: 2px; }
.r-steps button small { display: block; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s ease, opacity .35s ease; }
.r-steps button.on { background: #fff; border-color: #f0dcc6; box-shadow: 0 18px 40px -24px rgba(120,60,10,.35); }
.r-steps button.on .ic { background: #b4530a; color: #fff; }
.r-steps button.on small { max-height: 140px; opacity: 1; }
.r-steps button:not(.on):hover { background: rgba(255,255,255,.6); }
.r-steps .prog { position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px; background: #f3c79a; transform-origin: left; transform: scaleX(0); }
.r-steps button.on .prog { animation: rprog 6s linear forwards; }
.resto.paused .r-steps .prog { animation: none !important; transform: scaleX(0); }
@keyframes rprog { to { transform: scaleX(1); } }
.r-view { position: relative; height: 560px; display: grid; place-items: center; }
.r-view figure { position: absolute; margin: 0; opacity: 0; transform: translateX(24px) scale(.98); transition: opacity .55s ease, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.r-view figure.on { opacity: 1; transform: none; pointer-events: auto; }
.r-view .r-desk { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.r-view .r-mob { width: 262px; padding: 10px; border-radius: 36px; background: #12152a; box-shadow: var(--shadow-lg); }
.r-view .r-mob img { border-radius: 27px; }
.r-extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.rx { display: flex; gap: 12px; padding: 18px; border-radius: 15px; background: #fff; border: 1px solid #f0e2d1; }
.rx .ic { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: #fdebd8; color: #b4530a; }
.rx b { display: block; font-size: 15.5px; } .rx small { color: var(--ink-2); font-size: 14px; line-height: 1.45; display: block; margin-top: 2px; }
.r-cta { text-align: center; margin-top: 34px; }
.trade a { font-weight: 700; }
@media (max-width: 1020px) { .r-grid { grid-template-columns: 1fr; } .r-view { height: 520px; } .r-extras { grid-template-columns: 1fr 1fr; } .nav a { padding: 8px 9px; } }
@media (max-width: 640px) { .r-view { height: 300px; } .r-view .r-mob { width: 150px; padding: 6px; border-radius: 22px; } .r-view .r-mob img { border-radius: 17px; } .r-extras { grid-template-columns: 1fr; } .r-grid { gap: 22px; } .r-steps button { padding: 13px 12px; } .r-steps button b { font-size: 16.5px; } }
@media (max-width: 640px) { .r-grid { display: flex; flex-direction: column-reverse; align-items: stretch; } .r-view { width: 100%; height: 330px; } }
