/* ==========================================================================
   voicetocell · landing
   Même nuit profonde que l'enregistreur : la lumière vient de la voix. L'accueil
   est une démo épinglée que le défilement fait jouer (et rembobiner).
   Charger base.css avant ce fichier.
   ========================================================================== */

/* Structure --------------------------------------------------------------- */

html { scroll-padding-top: 84px; }
html.has-menu { overflow: hidden; }

/* base.css fixe body à 100 % de hauteur : la landing défile, elle */
body.site {
    --head: 72px;
    --gutter: clamp(20px, 4.2vw, 56px);
    height: auto;
    min-height: 100%;
    overflow-x: clip;
}

.wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }

.section { position: relative; padding-block: clamp(84px, 9vw, 136px); }

.section__head { max-width: 780px; margin-bottom: clamp(44px, 5.5vw, 76px); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow--line { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow--line::before { content: ''; width: 28px; height: 1px; background: var(--light); box-shadow: 0 0 8px var(--glow); }

.section__title {
    margin: 20px 0 0;
    font: 300 clamp(38px, 5vw, 70px)/1.02 var(--serif);
    letter-spacing: -.032em;
    color: var(--text);
    text-wrap: balance;
}

.section__title em,
.cta-band__title em,
.demo__done-title em {
    padding-right: .04em;
    font-style: italic;
    color: var(--brand-to);
}

.section__lead {
    max-width: 38em;
    margin: 22px 0 0;
    font-size: clamp(15.5px, 1.2vw, 17.5px);
    line-height: 1.65;
    color: var(--text-2);
    text-wrap: pretty;
}

.section__head--center .section__lead { margin-inline: auto; }

.btn--lg { height: 50px; padding: 0 28px; font-size: 11.5px; }

/* En-tête ----------------------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--head);
    border-bottom: 1px solid transparent;
    transition: background-color .45s, border-color .45s, -webkit-backdrop-filter .45s, backdrop-filter .45s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgb(5 5 12 / .62);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
}

.site-header.is-open { border-bottom-color: var(--line); background: var(--void); }

.site-header__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    height: 100%;
}

.site-header__bar > .brand { justify-self: start; animation: fade-in 1s ease both; }

.site-nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }

.site-nav__link {
    position: relative;
    display: block;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .01em;
    text-decoration: none;
    transition: color .25s, background-color .25s;
}

.site-nav__link:hover { color: var(--text); background: rgb(150 160 255 / .07); }
.site-nav__link.is-current { color: var(--text); }

.site-nav__link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--lilac);
    box-shadow: 0 0 8px var(--violet);
    opacity: 0;
    transform: scale(0);
    transition: opacity .3s, transform .45s var(--ease-spring);
}

.site-nav__link.is-current::after { opacity: 1; transform: none; }

.site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }

.site-header__login {
    position: relative;
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color .25s;
}

.site-header__login::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--ease-out);
}

.site-header__login:hover { color: var(--text); }
.site-header__login:hover::after { transform: scaleX(1); transform-origin: left; }

.site-burger {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
}

.site-burger__lines { position: relative; display: block; width: 20px; height: 10px; }

.site-burger__lines i {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}

.site-burger__lines i:first-child { top: 0; }
.site-burger__lines i:last-child { top: 8.5px; }
.site-burger[aria-expanded="true"] .site-burger__lines i:first-child { top: 4.25px; transform: rotate(45deg); }
.site-burger[aria-expanded="true"] .site-burger__lines i:last-child { top: 4.25px; transform: rotate(-45deg); }

/* Menu mobile : sous l'en-tête, toute la hauteur restante */
.site-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    height: calc(100dvh - var(--head));
    padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--void);
    animation: fade-in .3s ease both;
}

.site-menu__list { margin: 0; padding: 0; list-style: none; }
.site-menu__list li { border-bottom: 1px solid var(--line); animation: rise .7s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); }

.site-menu__link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0;
    color: var(--text);
    font: 300 34px/1.1 var(--serif);
    letter-spacing: -.02em;
    text-decoration: none;
}

.site-menu__num { font: 400 10px/1 var(--mono); letter-spacing: .1em; color: var(--text-3); }
.site-menu__actions { display: grid; gap: 10px; animation: rise .7s var(--ease-out) .25s both; }

/* Accueil + démo épinglée ---------------------------------------------------- */

.demo { position: relative; height: 640svh; }

/* Ancre « Demo » : l'entretien vient de commencer */
.demo__anchor { position: absolute; top: calc((100% - 100svh) * .2 + 84px); left: 0; width: 1px; height: 1px; }

.demo__stage {
    --band: clamp(300px, 50svh, 580px);
    --desk-top: calc(var(--head) + var(--band) * .78);
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    isolation: isolate;
}

.demo__hero {
    position: absolute;
    z-index: 3;
    top: calc(var(--head) + clamp(24px, 6.5svh, 80px));
    left: 0;
    right: 0;
    width: min(1000px, 100% - var(--gutter) * 2);
    margin-inline: auto;
    text-align: center;
    opacity: calc(1 - var(--out, 0) * 1.3);
    transform: translate3d(0, calc(var(--out, 0) * -64px), 0) scale(calc(1 - var(--out, 0) * .04));
    transform-origin: 50% 0;
}

.demo__hero.is-gone { visibility: hidden; }

.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; animation: fade-in 1s ease .1s both; }
.hero__eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 10px var(--violet); animation: blink 2.6s ease-in-out infinite; }

.hero__title {
    margin: 22px 0 0;
    font: 300 clamp(42px, 6.3vw, 104px)/.98 var(--serif);
    letter-spacing: -.036em;
    color: var(--text);
}

.hero__line { display: block; animation: rise 1.1s var(--ease-out) .05s both; }
.hero__line + .hero__line { animation-delay: .16s; }

.hero__title em {
    display: inline-block;
    padding: 0 .07em .06em 0;
    font-style: italic;
    background: linear-gradient(100deg, #aebcff 0%, var(--lilac) 52%, var(--brand-to) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    max-width: 40em;
    margin: 24px auto 0;
    font-size: clamp(15.5px, 1.22vw, 18px);
    line-height: 1.6;
    color: var(--text-2);
    text-wrap: pretty;
    animation: rise 1.1s var(--ease-out) .26s both;
}

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; animation: rise 1.1s var(--ease-out) .34s both; }

.hero__note {
    margin: 18px 0 0;
    font: 400 9.5px/1.4 var(--mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
    animation: fade-in 1.2s ease .6s both;
}

/* Bandeau de la voix : centré sous le titre au repos (--rest), en haut pendant la démo */
.demo__voice {
    --t: 0;
    position: absolute;
    z-index: 1;
    top: var(--head);
    left: 0;
    right: 0;
    height: var(--band);
    transform: translate3d(0, calc(var(--rest, 0px) * (1 - var(--t))), 0);
    pointer-events: none;
}

.demo__voice::before {
    content: '';
    position: absolute;
    inset: -12% -5%;
    z-index: -1;
    background: radial-gradient(40% 46% at 50% 50%, rgb(40 36 150 / .26), transparent 72%);
}

.demo__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; animation: fade-in 1.8s ease .2s both; }

.demo__orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--orb-d, 200px);
    height: var(--orb-d, 200px);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    pointer-events: auto;
    translate: -50% -50%;
    -webkit-tap-highlight-color: transparent;
}

.demo__orb:focus-visible { outline: 1px solid rgb(210 184 255 / .7); outline-offset: 14px; }
.demo__orb.is-off { visibility: hidden; }

.demo__hint {
    position: absolute;
    top: calc(50% + var(--orb-d, 200px) / 2 + 30px);
    left: 0;
    right: 0;
    margin: 0;
    font: 500 9.5px/1 var(--mono);
    letter-spacing: .22em;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-3);
    opacity: calc(1 - var(--t) * 5);
    transition: color .4s, letter-spacing .6s var(--ease-out);
    animation: fade-in 1.4s ease .9s both;
}

.demo__voice:has(.demo__orb:hover) .demo__hint { color: var(--text); letter-spacing: .28em; }

.demo__hud {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    opacity: clamp(0, calc((var(--t) - .55) * 2.6), 1);
}

.demo-hud__clock { display: flex; flex-direction: column; gap: 8px; }

.demo-hud__time {
    font: 300 26px/1 var(--mono);
    font-stretch: 87.5%;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    text-shadow: 0 0 18px rgb(140 130 255 / .45);
}

.demo-hud__status { font-size: 12.5px; color: var(--text-2); }

.demo-hud__counters { display: grid; grid-template-columns: repeat(3, auto); gap: 0 24px; margin: 0; }
.demo-hud__counters > div { text-align: right; }

.demo-hud__counters dt {
    margin-bottom: 8px;
    font: 600 9px/1.2 var(--sans);
    font-stretch: 75%;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap;
}

.demo-hud__counters dd { margin: 0; font: 300 20px/1 var(--mono); font-stretch: 87.5%; color: var(--text-2); white-space: nowrap; }
.demo-hud__engine dd { font-size: 11.5px; line-height: 20px; letter-spacing: .04em; color: var(--ok); }

/* Fin de l'entretien : les rubans se posent, le message s'inscrit de part et d'autre du filament */
.demo__done {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(46px, 9svh, 92px);
    padding: 0 var(--gutter);
    text-align: center;
    opacity: var(--end, 0);
    transform: translate3d(0, calc((1 - var(--end, 0)) * 18px), 0);
    pointer-events: auto;
}

.demo__done.is-off { visibility: hidden; }

.demo__done-title {
    margin: 0;
    font: 300 clamp(28px, 3.3vw, 50px)/1.05 var(--serif);
    letter-spacing: -.025em;
    color: var(--text);
    text-shadow: 0 0 40px rgb(3 3 8 / .95);
    text-wrap: balance;
}

/* Le poste : transcription et cellules */
.demo__desk {
    position: absolute;
    z-index: 2;
    top: var(--desk-top);
    bottom: 64px;
    left: 0;
    right: 0;
    opacity: var(--in, 0);
    transform: translate3d(0, calc((1 - var(--in, 0)) * 60px), 0);
}

.demo__desk.is-off,
.demo__foot.is-off { visibility: hidden; }

.demo-desk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 20px;
    background: linear-gradient(180deg, rgb(12 12 28 / .8), rgb(7 7 15 / .95) 42%);
    box-shadow: 0 50px 100px -40px rgb(0 0 0 / .95), inset 0 1px 0 rgb(255 255 255 / .04);
}

.demo-script { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.demo-script__head { display: flex; align-items: center; gap: 14px; padding: 18px 28px 0; }

.demo-script__meta {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    font: 400 9.5px/1.4 var(--mono);
    letter-spacing: .04em;
    color: var(--text-3);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.demo-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px 5px 8px;
    border: 1px solid rgb(150 130 255 / .35);
    border-radius: 999px;
    font: 500 9px/1 var(--mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lilac);
    transition: color .4s, border-color .4s;
}

.demo-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: glow-pulse 1.4s ease-in-out infinite; }
.demo.is-ended .demo-live { border-color: rgb(127 232 192 / .35); color: var(--ok); }
.demo.is-ended .demo-live::before { animation: none; }

.demo-script__viewport {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34px, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 34px, #000 calc(100% - 18px), transparent 100%);
}

.demo-script__list { margin: 0; padding: 26px 28px 0; list-style: none; transition: transform .9s var(--ease-out); }

.demo-empty {
    position: absolute;
    top: 34px;
    left: 104px;
    margin: 0;
    font: italic 300 clamp(24px, 2.2vw, 34px)/1.1 var(--serif);
    letter-spacing: -.02em;
    color: var(--text-3);
    transition: opacity .5s, transform .7s var(--ease-out);
}

.demo-empty.is-off { opacity: 0; transform: translateY(-12px); }

.demo-seg {
    --voice: var(--voice-0);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 18px;
    margin-top: 12px;
    opacity: 0;
    transition: opacity .35s;
}

.demo-seg:first-child { margin-top: 0; }
.demo-seg.is-on { opacity: 1; }
.demo-seg[data-voice="1"] { --voice: var(--voice-1); }

.demo-seg__rail { padding-top: 18px; text-align: right; }

.demo-seg__time {
    font: 400 9.5px/1.2 var(--mono);
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
    color: var(--text-4);
    transition: color .6s;
}

.demo-seg.is-latest .demo-seg__time { color: var(--text-3); }

.demo-seg__body {
    min-width: 0;
    padding: 15px 0 4px 20px;
    border-left: 1px solid color-mix(in oklab, var(--voice) 28%, transparent);
    transition: border-color .8s, box-shadow .8s;
}

.demo-seg.is-latest .demo-seg__body { border-left-color: var(--voice); box-shadow: -8px 0 18px -14px var(--voice); }

.demo-seg__who {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font: 700 10.5px/1 var(--sans);
    font-stretch: 75%;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--voice);
}

.demo-seg__who::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.demo-seg__text {
    margin: 0;
    font: 350 clamp(17px, 1.28vw, 21px)/1.5 var(--serif);
    letter-spacing: -.004em;
    color: var(--text-2);
    text-wrap: pretty;
    transition: color 1.2s ease;
}

.demo-seg.is-latest .demo-seg__text { color: var(--text); }

.demo-seg .w { display: inline-block; opacity: 0; }
.demo-seg .w.is-on { opacity: 1; animation: word-in .85s var(--ease-out) var(--d, 0ms) both; }
.demo-seg .w.is-instant { animation: none; }
.demo-seg .w.is-vocab { text-decoration: underline dotted rgb(210 184 255 / .6); text-decoration-thickness: 1px; text-underline-offset: .24em; }

.demo-seg__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .45s, transform .6s var(--ease-out);
}

.demo-seg__tags.is-on { opacity: 1; transform: none; }

.demo-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    font: 500 9.5px/1 var(--mono);
    letter-spacing: .05em;
    color: var(--text-3);
    white-space: nowrap;
}

.demo-tag--ok { border-color: rgb(127 232 192 / .25); color: var(--ok); }
.demo-tag--cell { border-color: rgb(150 130 255 / .38); color: var(--lilac); }
.demo-tag--cell b { max-width: 30ch; overflow: hidden; font-weight: 500; color: var(--text); text-overflow: ellipsis; }

.demo-cells {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border-left: 1px solid var(--line);
    background: radial-gradient(120% 50% at 50% 0, rgb(40 36 130 / .16), transparent 70%), rgb(7 7 15 / .5);
}

.demo-cells__head { padding: 16px 22px 14px; border-bottom: 1px solid var(--line); }
.demo-cells__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.demo-cells__count { margin: 0; font: 300 28px/1 var(--serif); letter-spacing: -.02em; color: var(--text); }
.demo-cells__total { margin-left: 2px; font-size: 15px; color: var(--text-3); }

.demo-cells__summary {
    display: grid;
    margin: 8px 0 12px;
    font: 400 9.5px/1.5 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-3);
}

.demo-meter { position: relative; height: 2px; border-radius: 2px; background: var(--line-2); }

.demo-meter i {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: calc(var(--p, 0) * 100%);
    border-radius: inherit;
    background: var(--light);
    box-shadow: 0 0 12px rgb(140 120 255 / .8);
    transition: width 1.1s var(--ease-out);
}

.demo-cells__list { position: relative; flex: 1; min-height: 0; padding: 6px 0; overflow: hidden; }

.demo-cell { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 7px 22px; }

.demo-cell__ref {
    display: grid;
    place-items: center;
    height: 24px;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    font: 500 10.5px/1 var(--mono);
    color: var(--text-3);
    transition: color .5s, background .5s, border-color .5s, box-shadow .5s;
}

.demo-cell__body { min-width: 0; }

.demo-cell__q {
    margin: 4px 0 0;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-3);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.demo-cell__v {
    margin: 3px 0 0;
    overflow: hidden;
    font: 400 15.5px/1.35 var(--serif);
    color: var(--text);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.demo-cell__v:empty { display: none; }
.demo-cell__v .word { --voice: var(--lilac); }

.demo-cell.is-filled .demo-cell__ref {
    border-color: transparent;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: #fff;
    box-shadow: 0 0 16px -3px rgb(120 100 255 / .75);
}

.demo-cell.is-incoming .demo-cell__ref { border-color: var(--lilac); animation: await 1s ease-in-out infinite; }
.demo-cell.is-fresh .demo-cell__ref { animation: land .9s var(--ease-out); }

.demo-cell.is-fresh::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgb(110 100 255 / .2) 40%, rgb(169 220 255 / .14) 60%, transparent);
    background-size: 220% 100%;
    pointer-events: none;
    animation: cell-sweep 1.5s var(--ease-out) both, fade-out 1.4s ease 2.4s forwards;
}

.demo-file {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 14px 14px;
    padding: 10px 14px 10px 10px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: var(--deep-2);
    transition: border-color .6s, box-shadow .6s;
}

.demo-file__badge {
    flex: none;
    padding: 7px;
    border: 1px solid rgb(127 232 192 / .3);
    border-radius: 6px;
    background: rgb(127 232 192 / .08);
    font: 600 8.5px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ok);
}

.demo-file__text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.demo-file__name { overflow: hidden; font-size: 12.5px; color: var(--text); white-space: nowrap; text-overflow: ellipsis; }
.demo-file__state { font: 400 9px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); transition: color .5s; }

.demo-file__icon {
    flex: none;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--text-3);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .5s;
}

.demo.is-ended .demo-file { border-color: rgb(127 232 192 / .45); box-shadow: 0 0 26px -8px rgb(127 232 192 / .5); }
.demo.is-ended .demo-file__state { color: var(--ok); }
.demo.is-ended .demo-file__icon { stroke: var(--ok); animation: nudge 1.1s ease-in-out infinite alternate; }

/* Pied de scène : progression de l'entretien et sortie */
.demo__foot {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 64px;
    opacity: var(--in, 0);
}

.demo-progress { position: relative; flex: 1; height: 14px; }

.demo-progress__track { position: absolute; top: 6px; left: 0; right: 0; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line-2); }

.demo-progress__track i {
    position: absolute;
    inset: 0;
    background: var(--light);
    transform: scaleX(var(--k, 0));
    transform-origin: 0 50%;
}

.demo-progress__ticks i { position: absolute; top: 3px; width: 1px; height: 8px; background: var(--text-4); }

.demo-progress__ticks i.is-answer {
    top: 3px;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border: 1px solid var(--violet);
    border-radius: 50%;
    background: var(--void);
}

.demo__skip {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    font: 500 9.5px/1 var(--mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-3);
    text-decoration: none;
    transition: color .25s;
}

.demo__skip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.demo__skip:hover { color: var(--text); }
.demo__skip:hover svg { transform: translateY(2px); }

/* Sans JavaScript : l'accueil seul, sans la longue course de défilement */
@media (scripting: none) {
    .demo { height: auto; }
    .demo__stage { position: relative; height: auto; min-height: 100svh; }
}

.demo:not(.is-ready) :is(.demo__voice, .demo__desk, .demo__foot) { display: none; }

/* Mouvement réduit : l'état final, posé, sans épinglage */
@media (prefers-reduced-motion: reduce) {
    .demo.is-ready { height: auto; }

    .demo.is-ready .demo__stage {
        position: relative;
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        padding: calc(var(--head) + 48px) 0 72px;
        overflow: visible;
    }

    .demo.is-ready :is(.demo__hero, .demo__voice, .demo__desk) {
        position: relative;
        inset: auto;
        opacity: 1;
        transform: none;
        visibility: visible;
    }

    .demo.is-ready .demo__voice { margin-top: 24px; }
    .demo.is-ready .demo__hud { opacity: 1; }
    .demo.is-ready .demo__done { opacity: 1; transform: none; }
    .demo.is-ready .demo__desk { height: min(620px, 80svh); }
    .demo.is-ready .demo-script__viewport { overflow-y: auto; }
    .demo.is-ready :is(.demo__orb, .demo__hint, .demo__foot) { display: none; }
}

/* Étincelle « voice → cell » (voir cell-flight.js) */
.spark {
    --k: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 70;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 28%, var(--lilac) 52%, rgb(120 100 255 / 0) 72%);
    box-shadow: 0 0 18px 5px rgb(130 110 255 / .55);
    opacity: calc(1 - var(--k) * .24);
    pointer-events: none;
}

/* Mot écrit par streamText (voir text-stream.js) */
.word { display: inline-block; animation: word-in .85s var(--ease-out) both; animation-delay: var(--delay, 0ms); }

/* Compteur à rouleaux (voir odometer.js) */
.odometer { display: inline-flex; height: 1em; overflow: hidden; line-height: 1; font-variant-numeric: tabular-nums; vertical-align: top; }
.odometer__cell { display: block; height: 1em; overflow: hidden; }
.odometer__strip { display: flex; flex-direction: column; transition: transform .9s var(--ease-out); }
.odometer__strip > span { display: block; height: 1em; text-align: center; }

/* Comment ça marche ---------------------------------------------------------- */

.how::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(900px, 90vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-2), transparent);
    translate: -50% 0;
}

.flow {
    --icon: 76px;
    --gap: 16px;
    position: relative;
    padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: radial-gradient(80% 120% at 50% 0, rgb(40 36 130 / .14), transparent 60%), var(--deep);
}

.flow__zones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 var(--gap); margin-bottom: 30px; }

.flow__zone {
    position: relative;
    padding-bottom: 14px;
    font: 600 9.5px/1 var(--sans);
    font-stretch: 75%;
    letter-spacing: .22em;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-3);
}

/* Accolade discrète au-dessus des étapes de chaque zone */
.flow__zone::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 7px;
    border: 1px solid var(--line-2);
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
}

.flow__zone--wide { grid-column: span 2; }
.flow__zone--machine { color: var(--ok); }
.flow__zone--machine::after { border-color: rgb(127 232 192 / .3); }

.flow__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }

.flow__node { --accent: var(--lilac); position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.flow__node--ai { --accent: #ff8fab; }
.flow__node--xlsx { --accent: var(--ok); }

.flow__icon {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: var(--icon);
    height: var(--icon);
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, var(--deep-3), var(--deep-2) 70%);
    color: var(--text-2);
    transition: color .5s, border-color .5s, box-shadow .6s, transform .7s var(--ease-spring);
}

.flow__node--ai .flow__icon,
.flow__node--xlsx .flow__icon { color: color-mix(in oklab, var(--accent) 70%, var(--text-2)); }

.flow__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flow__cut { stroke: var(--lilac); stroke-dasharray: 2 2.4; }
.flow__lit { fill: currentColor; stroke: none; opacity: .3; transition: opacity .5s; }

.flow__icon::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
}

.flow__voices { position: absolute; right: 13px; bottom: 15px; display: flex; gap: 3px; }
.flow__voices i { width: 5px; height: 5px; border-radius: 50%; background: var(--voice-0); box-shadow: 0 0 6px var(--voice-0); }
.flow__voices i + i { background: var(--voice-1); box-shadow: 0 0 6px var(--voice-1); }

.flow__node.is-active .flow__icon {
    color: var(--text);
    border-color: color-mix(in oklab, var(--accent) 65%, transparent);
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 8%, transparent), 0 0 36px -6px color-mix(in oklab, var(--accent) 70%, transparent);
    transform: scale(1.06);
}

.flow__node.is-active .flow__icon::after { animation: ring-out 1.3s var(--ease-out) both; }
.flow__node.is-active .flow__lit { opacity: 1; }

/* Connecteur : du bord d'une icône au bord de la suivante */
.flow__link {
    position: absolute;
    top: calc(var(--icon) / 2 - 1px);
    left: calc(50% + var(--icon) / 2 + 10px);
    width: calc(100% + var(--gap) - var(--icon) - 20px);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 9px);
}

.flow__link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background: var(--light);
    box-shadow: 0 0 10px var(--glow);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* Le paquet voyage avec son conteneur, aussi large que le connecteur */
.flow__run { position: absolute; inset: 0; transform: translateX(-100%); }

.flow__packet {
    position: absolute;
    top: 50%;
    right: 0;
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 19px;
    padding: 0 7px;
    border: 1px solid rgb(210 184 255 / .5);
    border-radius: 999px;
    background: var(--deep-3);
    box-shadow: 0 0 16px -2px var(--glow);
    color: var(--lilac);
    font: 600 8.5px/1 var(--mono);
    font-style: normal;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    translate: 50% -50%;
}

.flow__packet--dot {
    min-width: 0;
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    background: radial-gradient(circle, #fff 0 30%, var(--ice) 55%, transparent 72%);
    box-shadow: 0 0 14px 3px rgb(169 220 255 / .45);
}

.flow__packet--text { color: var(--voice-1); }
.flow__packet--cell { border-color: rgb(127 232 192 / .5); box-shadow: 0 0 16px -2px rgb(127 232 192 / .55); color: var(--ok); }

.flow__link.is-flowing .flow__run { animation: run-x 1s cubic-bezier(.55, 0, .25, 1) both; }
.flow__link.is-flowing .flow__packet { animation: packet 1s linear both; }
.flow__link.is-flowing::after { animation: trail-x 1.3s var(--ease-out) both; }

.flow__body { display: flex; flex: 1; flex-direction: column; width: 100%; margin-top: 24px; }
.flow__tag { display: none; }
.flow__title { margin: 0; font: 400 21px/1.15 var(--serif); letter-spacing: -.015em; color: var(--text); }
.flow__title span { font-size: .8em; color: var(--text-3); }
.flow__text { margin: 10px 0 18px; font-size: 13.5px; line-height: 1.55; color: var(--text-3); text-wrap: pretty; }

.flow__out {
    display: flex;
    justify-content: center;
    min-height: 34px;
    margin: auto 0 0;
    padding: 9px 10px;
    border: 1px dashed var(--line-2);
    border-radius: 8px;
    font: 400 10px/1.4 var(--mono);
    color: var(--text-3);
    transition: color .4s, border-color .4s, background-color .4s;
}

.flow__out .swap { max-width: 100%; }
.flow__out .swap > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.flow__node.is-active .flow__out {
    border-style: solid;
    border-color: color-mix(in oklab, var(--accent) 40%, transparent);
    background: color-mix(in oklab, var(--accent) 6%, transparent);
    color: var(--text);
}

/* Fonctionnalités (bento) ---------------------------------------------------- */

.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
        "live live diar vocab"
        "live live book book"
        "priv team pwa ai";
    gap: 16px;
}

.bento__card--live { grid-area: live; }
.bento__card--diar { grid-area: diar; }
.bento__card--vocab { grid-area: vocab; }
.bento__card--book { grid-area: book; }
.bento__card--priv { grid-area: priv; }
.bento__card--team { grid-area: team; }
.bento__card--pwa { grid-area: pwa; }
.bento__card--ai { grid-area: ai; }

.bento__card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--deep-2), var(--deep) 75%);
}

/* Halo qui suit le pointeur (--mx / --my posés par bento.js) */
.bento__card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgb(120 100 255 / .12), transparent 62%);
    opacity: 0;
    transition: opacity .45s;
}

.bento__card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgb(210 184 255 / 0);
    pointer-events: none;
    transition: box-shadow .45s;
}

.bento__card:hover::before { opacity: 1; }
.bento__card:hover::after { box-shadow: inset 0 0 0 1px rgb(210 184 255 / .14); }

.bento__visual { position: relative; display: grid; flex: 1; place-items: center; min-height: 170px; padding: 26px 24px 0; }
.bento__body { padding: 20px 24px 24px; }
.bento__title { margin: 0; font: 400 21px/1.2 var(--serif); letter-spacing: -.015em; color: var(--text); }
.bento__card--live .bento__title { font-size: clamp(24px, 2.1vw, 30px); }
.bento__text { max-width: 34em; margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text-3); text-wrap: pretty; }

/* Hors écran, plus rien ne bouge */
.bento__card:not(.is-playing) *,
.bento__card:not(.is-playing) *::before,
.bento__card:not(.is-playing) *::after { animation-play-state: paused !important; }

/* Transcription en direct */
.bx-live {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    align-self: stretch;
    width: 100%;
    padding-top: 8px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%);
    mask-image: linear-gradient(to bottom, transparent, #000 38%);
}

.bx-live__list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }

.bx-seg { --voice: var(--voice-0); display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 14px; }
.bx-seg[data-voice="1"] { --voice: var(--voice-1); }
.bx-seg.is-entering { animation: seg-in .6s var(--ease-out) both; }
.bx-seg.is-leaving { animation: fade-out .45s ease forwards; }

.bx-seg__time { padding-top: 15px; font: 400 9px/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--text-4); text-align: right; }

.bx-seg__body { min-width: 0; padding: 12px 0 2px 18px; border-left: 1px solid color-mix(in oklab, var(--voice) 32%, transparent); transition: border-color .6s, box-shadow .6s; }
.bx-seg:last-child .bx-seg__body { border-left-color: var(--voice); box-shadow: -8px 0 18px -14px var(--voice); }

.bx-seg__who {
    display: block;
    margin-bottom: 7px;
    font: 700 9.5px/1 var(--sans);
    font-stretch: 75%;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--voice);
}

.bx-seg__text { margin: 0; font: 350 clamp(17px, 1.45vw, 21px)/1.45 var(--serif); color: var(--text-2); text-wrap: pretty; transition: color 1s; }
.bx-seg:last-child .bx-seg__text { color: var(--text); }

.bx-live__listening {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 30px;
    margin-left: 68px;
    padding-left: 18px;
    border-left: 1px solid var(--violet);
    font: 500 9px/1 var(--mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lilac);
    opacity: 0;
    transition: opacity .3s;
}

.bx-live__listening.is-on { opacity: 1; }

.bx-bars { display: inline-flex; align-items: center; gap: 3px; height: 22px; }

.bx-bars i {
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--ice), var(--violet));
    box-shadow: 0 0 8px rgb(140 120 255 / .5);
    animation: bars .46s ease-in-out infinite alternate;
}

.bx-bars i:nth-child(2) { animation-duration: .38s; animation-delay: -.2s; }
.bx-bars i:nth-child(3) { animation-duration: .52s; animation-delay: -.1s; }
.bx-bars i:nth-child(4) { animation-duration: .34s; animation-delay: -.3s; }
.bx-bars i:nth-child(5) { animation-duration: .48s; animation-delay: -.05s; }
.bx-bars i:nth-child(6) { animation-duration: .4s; animation-delay: -.25s; }
.bx-bars i:nth-child(7) { animation-duration: .56s; animation-delay: -.15s; }

/* Diarisation */
.bx-diar { width: 100%; }

.bx-diar__now {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font: 700 10px/1 var(--sans);
    font-stretch: 75%;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-2);
}

.bx-diar__now i { --c: var(--voice-0); width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); transition: background .3s, box-shadow .3s; }

.bx-diar__lanes { position: relative; display: grid; gap: 10px; }

.bx-lane { --voice: var(--voice-0); display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; }
.bx-lane[data-voice="1"] { --voice: var(--voice-1); }
.bx-lane[data-voice="2"] { --voice: var(--voice-2); }

.bx-lane__name { font: 500 9px/1 var(--mono); color: var(--voice); }
.bx-lane__track { position: relative; height: 16px; border-radius: 5px; background: rgb(150 160 255 / .04); }

.bx-lane__track i {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: var(--a);
    width: calc(var(--b) - var(--a));
    border-radius: 999px;
    background: color-mix(in oklab, var(--voice) 30%, transparent);
    transition: background-color .25s, box-shadow .25s;
}

.bx-lane__track i.is-on { background: var(--voice); box-shadow: 0 0 14px -2px var(--voice); }

.bx-diar__sweep { position: absolute; top: -6px; bottom: -6px; left: 32px; right: 0; pointer-events: none; transform: translateX(calc(var(--x, 0) * 100%)); }
.bx-diar__sweep i { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: linear-gradient(transparent, #fff 30%, #fff 70%, transparent); box-shadow: 0 0 8px rgb(255 255 255 / .6); }

/* Vocabulaire */
.bx-vocab { width: 100%; }
.bx-vocab__line { margin: 0; font: 350 19px/1.5 var(--serif); color: var(--text-2); }
.bx-vocab__line.is-entering { animation: fade-up .5s var(--ease-out) both; }

.bx-vocab__slot { position: relative; display: inline-grid; vertical-align: bottom; }
.bx-vocab__slot > * { grid-area: 1 / 1; text-align: center; transition: opacity .5s, transform .6s var(--ease-out), filter .5s; }

.bx-vocab__slot s {
    color: var(--text-3);
    text-decoration: underline wavy rgb(255 122 147 / .7);
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

.bx-vocab__slot b { font-weight: 450; color: var(--lilac); text-shadow: 0 0 18px rgb(148 102 255 / .6); opacity: 0; transform: translateY(.45em); filter: blur(5px); }
.bx-vocab__slot.is-fixed s { opacity: 0; transform: translateY(-.45em); filter: blur(4px); }
.bx-vocab__slot.is-fixed b { opacity: 1; transform: none; filter: none; }

.bx-vocab__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }

.bx-vocab__chips li {
    padding: 6px 9px;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    font: 500 10px/1 var(--mono);
    color: var(--text-3);
    transition: color .4s, border-color .4s, background-color .4s, box-shadow .4s;
}

.bx-vocab__chips li.is-on { border-color: rgb(150 130 255 / .45); background: rgb(150 130 255 / .08); box-shadow: 0 0 16px -6px var(--glow); color: var(--lilac); }

/* Classeur */
.bx-sheet {
    width: 100%;
    max-width: 580px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: var(--void);
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9);
}

.bx-sheet__bar { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.bx-sheet__ref { min-width: 26px; font: 500 10px/1 var(--mono); color: var(--text-2); }
.bx-sheet__fx { padding: 0 9px; border-inline: 1px solid var(--line); font: italic 400 13px/32px var(--serif); color: var(--text-3); }
.bx-sheet__formula { min-width: 0; overflow: hidden; font-size: 12px; color: var(--text); white-space: nowrap; }

.bx-sheet__grid { display: grid; grid-template-columns: 30px minmax(0, .85fr) minmax(0, 1.4fr); }

.bx-sheet__grid > span {
    position: relative;
    display: block;
    height: 30px;
    padding: 0 10px;
    overflow: hidden;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    line-height: 30px;
    color: var(--text-2);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bx-sheet__grid > span:nth-child(3n) { border-right: 0; }

.bx-sheet__grid > .bx-sheet__corner,
.bx-sheet__grid > .bx-sheet__col,
.bx-sheet__grid > .bx-sheet__row {
    padding: 0;
    background: var(--deep-2);
    font: 500 9.5px/30px var(--mono);
    color: var(--text-3);
    text-align: center;
}

.bx-sheet__grid > .bx-sheet__col { height: 22px; line-height: 22px; }
.bx-sheet__grid > .is-head { font: 600 9.5px/30px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.bx-sheet__grid > .is-answer { font: 400 13.5px/30px var(--serif); color: var(--text); transition: background-color .5s, color .45s; }
.bx-sheet__grid > .is-clearing { color: transparent; }
.bx-sheet__grid > .is-answer .word { --voice: var(--ok); }
.bx-sheet__grid > .is-active { background: rgb(127 232 192 / .06); box-shadow: inset 0 0 0 1.5px var(--ok); }

.bx-sheet__grid > .is-fresh::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgb(127 232 192 / .16) 45%, transparent);
    background-size: 220% 100%;
    animation: cell-sweep 1.3s var(--ease-out) both;
}

.bx-sheet__tabs { display: flex; gap: 2px; height: 28px; padding: 0 8px; background: var(--deep-2); }
.bx-sheet__tabs span { display: flex; align-items: center; padding: 0 12px; font-size: 10.5px; color: var(--text-3); }
.bx-sheet__tabs .is-on { border-bottom: 2px solid var(--ok); background: var(--void); color: var(--ok); }

/* Confidentialité */
.bx-term { width: 100%; overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: var(--void); }
.bx-term__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.bx-term__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.bx-term__bar span { margin-left: 8px; font: 400 9px/1 var(--mono); letter-spacing: .04em; color: var(--ok); }

.bx-term__log {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
    height: 116px;
    margin: 0;
    padding: 12px 12px 14px;
    overflow: hidden;
    list-style: none;
    font: 400 10px/1.3 var(--mono);
    color: var(--text-2);
}

.bx-term__log li { display: flex; flex: none; gap: 8px; white-space: nowrap; }
.bx-term__log li.is-entering { animation: fade-up .45s var(--ease-out) both; }
.bx-term__log b { font-weight: 400; color: var(--violet); }
.bx-term__log span { margin-left: auto; color: var(--text-3); }
.bx-term__log .is-ok span { color: var(--ok); }

/* Équipe */
.bx-team { width: 100%; }
.bx-team__faces { display: flex; min-height: 44px; margin: 0; padding: 0 0 0 8px; list-style: none; }

.bx-team__faces li {
    --c: var(--voice-0);
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: -8px;
    border: 2px solid var(--deep-2);
    border-radius: 50%;
    background: color-mix(in oklab, var(--c) 22%, var(--deep-3));
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--c) 40%, transparent);
    color: var(--c);
    font: 650 11px/1 var(--sans);
    letter-spacing: .04em;
}

.bx-team__faces li.is-entering { animation: pop-in .55s var(--ease-spring) both; }
.bx-team__faces li.is-leaving { animation: fade-out .4s ease forwards; }
.bx-team__faces .bx-team__invite { --c: var(--text-3); border: 1px dashed var(--text-4); background: none; box-shadow: none; font-size: 16px; font-weight: 400; }

.bx-team__seats { margin: 18px 0 12px; font-size: 13px; color: var(--text-3); }
.bx-team__seats b { margin-right: 4px; font: 300 28px/1 var(--serif); color: var(--text); }
.bx-team__bar { height: 3px; overflow: hidden; border-radius: 3px; background: var(--line-2); }
.bx-team__bar i { display: block; width: calc(var(--p) * 100%); height: 100%; background: var(--light); transition: width .8s var(--ease-out); }

/* Application installable */
.bx-pwa { position: relative; display: grid; place-items: center; width: 100%; min-height: 176px; }

.bx-phone {
    position: relative;
    display: grid;
    place-items: center;
    width: 92px;
    height: 170px;
    border: 1.5px solid var(--line-2);
    border-radius: 20px;
    background: linear-gradient(180deg, var(--deep-3), var(--void));
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9), inset 0 0 0 4px var(--void);
}

.bx-phone__notch { position: absolute; top: 9px; left: 50%; width: 26px; height: 5px; margin-left: -13px; border-radius: 3px; background: var(--deep-3); }
.bx-phone__rings { position: relative; width: 48px; height: 48px; }

.bx-phone__rings i {
    position: absolute;
    inset: 0;
    border: 1.5px solid var(--brand-purple);
    border-radius: 46% 54% 52% 48%;
    animation: ring-sway 6s ease-in-out infinite alternate;
}

.bx-phone__rings i:nth-child(2) { inset: 5px; border-radius: 53% 47% 49% 51%; animation-duration: 4.6s; animation-direction: alternate-reverse; }

.bx-phone__rings i:nth-child(3) {
    inset: 11px;
    border: 2px solid var(--brand-lilac);
    box-shadow: 0 0 14px rgb(193 158 249 / .45);
    animation: ring-breathe 3.2s ease-in-out infinite;
}

.bx-phone__hint { position: absolute; bottom: 20px; font: 500 6px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }

.bx-pwa__toast {
    position: absolute;
    bottom: 4px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 6px 6px 8px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: rgb(19 19 38 / .94);
    box-shadow: 0 20px 40px -12px rgb(0 0 0 / .85);
    font-size: 11px;
    color: var(--text);
    white-space: nowrap;
    translate: -50% 0;
    animation: toast-loop 6.4s var(--ease-out) infinite;
}

.bx-pwa__toast img { border-radius: 6px; }
.bx-pwa__toast b { padding: 6px 8px; border-radius: 7px; background: var(--text); color: var(--void); font: 650 9px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }

/* IA intégrée */
.bx-flow { display: grid; grid-template-columns: auto minmax(10px, 1fr) auto minmax(10px, 1fr) auto; align-items: start; width: 100%; }
.bx-node { display: flex; flex-direction: column; align-items: center; gap: 9px; }

.bx-node svg {
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--line-2);
    border-radius: 13px;
    background: var(--deep-3);
    fill: none;
    stroke: #ff8fab;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: node-glow 3.6s ease-in-out infinite;
}

.bx-node b { max-width: 70px; font: 500 9px/1.3 var(--mono); color: var(--text-3); text-align: center; }
.bx-node--ai svg { stroke: var(--lilac); animation-delay: 1.2s; }
.bx-node--xl svg { stroke: var(--ok); animation-delay: 2.4s; }

.bx-wire {
    position: relative;
    height: 6px;
    margin: 19px 4px 0;
    overflow: hidden;
    background: linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat;
}

.bx-wire i { position: absolute; inset: 0; animation: wire 3.6s linear infinite; }
.bx-wire i::after { content: ''; position: absolute; top: 0; right: 0; width: 14px; height: 6px; border-radius: 3px; background: var(--lilac); box-shadow: 0 0 10px var(--violet); }
.bx-wire ~ .bx-wire i { animation-delay: 1.2s; }

/* Tarifs ---------------------------------------------------------------- */

.pricing::before {
    content: '';
    position: absolute;
    inset: 10% 0 auto;
    z-index: -1;
    height: 70%;
    background: radial-gradient(50% 60% at 50% 50%, rgb(60 50 200 / .12), transparent 70%);
    pointer-events: none;
}

.plan {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    max-width: 1060px;
    margin: 0 auto;
    border-radius: 28px;
    background: var(--deep);
    box-shadow: 0 50px 130px -50px rgb(91 70 255 / .5);
}

/* Liseré lumineux en dégradé */
.plan::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(140deg, rgb(183 196 255 / .55), rgb(148 102 255 / .28) 30%, var(--line) 55%, rgb(210 184 255 / .32));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.plan__main { padding: clamp(28px, 4vw, 52px); }

.plan__side {
    padding: clamp(28px, 4vw, 52px);
    border-left: 1px solid var(--line);
    border-radius: 0 28px 28px 0;
    background: radial-gradient(90% 60% at 100% 0, rgb(60 50 200 / .14), transparent 70%), var(--deep-2);
}

.period {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    min-inline-size: 0;
    margin: 0 0 34px;
    padding: 4px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--void);
}

.period__option { position: relative; z-index: 1; cursor: pointer; }
.period__option input { position: absolute; opacity: 0; pointer-events: none; }

.period__option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 20px;
    border-radius: 999px;
    font: 600 12.5px/1 var(--sans);
    letter-spacing: .02em;
    color: var(--text-3);
    white-space: nowrap;
    transition: color .35s;
}

.period__option:hover span { color: var(--text); }
.period__option input:checked + span { color: #fff; }
.period__option input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }

.period__save { padding: 4px 6px; border-radius: 999px; background: rgb(127 232 192 / .14); font: 600 9px/1 var(--mono); font-style: normal; color: var(--ok); }

.period__thumb {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 0 20px -4px var(--glow);
    transition: transform .55s var(--ease-spring);
}

.period:has(input[value="year"]:checked) .period__thumb { transform: translateX(100%); }

.plan__name { margin: 0; font: 700 11px/1 var(--sans); font-stretch: 75%; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); }
.plan__name span { color: var(--lilac); }

.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 16px 0 0; }

.plan__amount {
    padding-bottom: .04em;
    font: 300 clamp(56px, 6vw, 86px)/1 var(--serif);
    letter-spacing: -.04em;
    font-variant-numeric: lining-nums;
    color: var(--text);
}

.plan__per { font-size: 14px; color: var(--text-2); }
.plan__note { margin: 10px 0 0; font: 400 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

.seats { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.seats__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.seats__label { font: 600 10.5px/1 var(--sans); font-stretch: 75%; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); }

.seats__stepper { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--void); }

.seats__btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--deep-3);
    color: var(--text);
    cursor: pointer;
    transition: background-color .2s, transform .15s var(--ease-out), opacity .2s;
}

.seats__btn:hover { background: var(--indigo); }
.seats__btn:active { transform: scale(.9); }
.seats__btn:disabled { opacity: .35; cursor: not-allowed; }
.seats__btn:disabled:hover { background: var(--deep-3); }
.seats__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.seats__input {
    width: 50px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    font: 400 18px/1 var(--mono);
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: var(--text);
    -moz-appearance: textfield;
    appearance: textfield;
}

.seats__input::-webkit-inner-spin-button,
.seats__input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.seats__input:focus-visible { outline: 2px solid var(--lilac); outline-offset: 0; }

.seats__range {
    --fill: 0%;
    width: 100%;
    height: 22px;
    margin: 20px 0 0;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.seats__range:focus-visible { outline: none; }

.seats__range::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--blue), var(--violet)) 0 0 / var(--fill) 100% no-repeat, var(--line-2);
}

.seats__range::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -7.5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgb(148 102 255 / .3), 0 0 16px var(--glow);
    transition: box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.seats__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--lilac), 0 0 16px var(--glow); }
.seats__range::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line-2); }
.seats__range::-moz-range-progress { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.seats__range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgb(148 102 255 / .3), 0 0 16px var(--glow); }
.seats__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--lilac); }

.plan__total { display: flex; flex-direction: column; gap: 8px; margin: 26px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--deep-2); }
.plan__total-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font: 300 34px/1 var(--serif); letter-spacing: -.02em; color: var(--text); }
.plan__total-per { font: 400 13px/1 var(--sans); letter-spacing: 0; color: var(--text-3); }
.plan__total-detail { margin: 0; font-size: 12.5px; color: var(--text-3); }
.plan__total-detail b { font-weight: 500; color: var(--ok); }

.plan__fine { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; text-align: center; color: var(--text-3); }

.plan__side-title { margin: 0 0 22px; font: 700 10.5px/1 var(--sans); font-stretch: 75%; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); }

.plan__features { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.plan__features li { position: relative; padding-left: 32px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }

.plan__features li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid rgb(127 232 192 / .3);
    border-radius: 50%;
    background: rgb(127 232 192 / .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe8c0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.plan__compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }

.plan__compare p {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color .4s, background-color .4s, box-shadow .4s;
}

.plan__compare span { font: 600 9.5px/1 var(--sans); font-stretch: 75%; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.plan__compare b { font: 400 21px/1.1 var(--serif); color: var(--text); }
.plan__compare small { font-size: 11.5px; line-height: 1.4; color: var(--text-3); }
.plan__compare .is-best small { color: var(--ok); }
.plan__compare .is-current { border-color: rgb(210 184 255 / .4); background: rgb(150 130 255 / .06); box-shadow: 0 0 24px -10px var(--glow); }

.pricing__legal { margin: 28px 0 0; font-size: 12.5px; text-align: center; color: var(--text-3); }
.pricing__legal a,
.faq__answer a { color: var(--lilac); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* FAQ ------------------------------------------------------------------- */

.faq__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(40px, 7vw, 120px); }
.faq__head { position: sticky; top: calc(var(--head) + 40px); margin-bottom: 0; }
.faq__head .section__lead a { color: var(--lilac); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.faq__list { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 2px 24px 0;
    list-style: none;
    font: 400 clamp(18px, 1.5vw, 21px)/1.35 var(--serif);
    letter-spacing: -.01em;
    color: var(--text);
    cursor: pointer;
    transition: color .25s;
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--lilac); }
.faq__item summary:focus-visible { outline-offset: 6px; border-radius: 4px; }

.faq__item summary::after {
    content: '';
    flex: none;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background:
        linear-gradient(var(--text-2), var(--text-2)) center / 11px 1.5px no-repeat,
        linear-gradient(var(--text-2), var(--text-2)) center / 1.5px 11px no-repeat;
    transition: transform .5s var(--ease-spring), border-color .3s, background-color .3s;
}

.faq__item[open] summary::after { border-color: rgb(210 184 255 / .6); transform: rotate(45deg); }

.faq__answer { max-width: 40em; padding: 0 56px 26px 0; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.faq__answer p { margin: 0; }
.faq__answer p + p { margin-top: 12px; }

/* Ouverture fluide, là où le navigateur sait animer jusqu'à « auto » */
.faq__item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .55s var(--ease-out), content-visibility .55s allow-discrete;
}

.faq__item[open]::details-content { block-size: auto; }

/* Appel à l'action final ------------------------------------------------- */

.cta-band { position: relative; padding: clamp(24px, 4vw, 56px) 0 clamp(110px, 12vw, 170px); overflow: hidden; text-align: center; }

.cta-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(900px, 90vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-2), transparent);
    translate: -50% 0;
}

.cta-band__orb { position: relative; height: clamp(250px, 30vw, 380px); }
.cta-band__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

.cta-band__hit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--orb-d, 200px);
    height: var(--orb-d, 200px);
    border-radius: 50%;
    translate: -50% -50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cta-band__title { max-width: 14em; margin: 0 auto; font: 300 clamp(40px, 5.6vw, 82px)/1 var(--serif); letter-spacing: -.035em; color: var(--text); text-wrap: balance; }
.cta-band__lead { max-width: 34em; margin: 24px auto 0; font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Pied de page ------------------------------------------------------------ */

.site-footer { padding: 60px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--deep); }

.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); align-items: start; gap: 40px; }
.site-footer__tagline { max-width: 26em; margin: 20px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }

.site-footer__nav ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { color: var(--text-2); font-size: 14px; text-decoration: none; transition: color .25s; }
.site-footer__nav a:hover { color: var(--text); }

.site-footer__legal { font-size: 12.5px; line-height: 1.6; text-align: right; color: var(--text-3); }
.site-footer__legal p { margin: 0 0 8px; }
.site-footer__legal a { color: var(--text-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-footer__legal a:hover { color: var(--text); }

/* Apparitions au défilement (voir reveal.js) ------------------------------ */

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
        transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
        transition-delay: calc(var(--i, 0) * 90ms);
    }

    [data-reveal].is-in { opacity: 1; transform: none; }
}

/* Animations ---------------------------------------------------------------- */

@keyframes fade-out { to { opacity: 0; } }
@keyframes seg-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes cell-sweep { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes await { 50% { box-shadow: 0 0 14px -2px var(--glow); } }
@keyframes nudge { to { transform: translateY(2px); } }
@keyframes bars { from { transform: scaleY(.22); } to { transform: scaleY(1); } }
@keyframes run-x { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes run-y { from { transform: translateY(-100%); } to { transform: translateY(0); } }

@keyframes word-in {
    0% { opacity: 0; color: var(--voice); filter: blur(8px); text-shadow: 0 0 18px var(--voice); transform: translateY(.35em); }
    55% { opacity: 1; color: var(--voice); filter: blur(0); text-shadow: 0 0 14px var(--voice); }
    100% { opacity: 1; filter: none; text-shadow: none; transform: none; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgb(210 184 255 / .5), 0 0 10px var(--violet); }
    50% { box-shadow: 0 0 0 5px rgb(210 184 255 / 0), 0 0 4px var(--violet); }
}

@keyframes land {
    0% { box-shadow: 0 0 0 0 rgb(210 184 255 / .9), 0 0 24px 2px rgb(150 130 255 / .9); transform: scale(1.18); }
    100% { box-shadow: 0 0 0 14px rgb(210 184 255 / 0), 0 0 16px -3px rgb(120 100 255 / .75); transform: none; }
}

@keyframes ring-out {
    0% { opacity: .9; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.55); }
}

@keyframes packet {
    0% { opacity: 0; }
    12%, 82% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes trail-x {
    0% { opacity: .9; transform: scaleX(0); }
    65% { opacity: .75; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(1); }
}

@keyframes trail-y {
    0% { opacity: .9; transform: scaleY(0); }
    65% { opacity: .75; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(1); }
}

@keyframes node-glow {
    0%, 32%, 100% { border-color: var(--line-2); box-shadow: none; }
    8%, 20% { border-color: rgb(210 184 255 / .55); box-shadow: 0 0 22px -4px var(--glow); }
}

@keyframes wire {
    0% { opacity: 0; transform: translateX(-100%); }
    4% { opacity: 1; }
    30% { opacity: 1; transform: translateX(0); }
    33%, 100% { opacity: 0; transform: translateX(0); }
}

@keyframes toast-loop {
    0%, 14% { opacity: 0; transform: translateY(14px) scale(.96); }
    24%, 78% { opacity: 1; transform: none; }
    90%, 100% { opacity: 0; transform: translateY(8px); }
}

/* Écrans moyens ------------------------------------------------------------ */

@media (max-width: 1100px) {
    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "live live"
            "diar vocab"
            "book book"
            "priv team"
            "pwa ai";
    }

    .bento__card--live { min-height: 460px; }
}

@media (max-width: 960px) {
    .site-header__bar { grid-template-columns: minmax(0, 1fr) auto; }
    .site-nav,
    .site-header__login { display: none; }
    .site-burger { display: grid; }

    .plan { grid-template-columns: minmax(0, 1fr); }
    .plan__side { border-top: 1px solid var(--line); border-left: 0; border-radius: 0 0 28px 28px; }

    .faq__inner { grid-template-columns: minmax(0, 1fr); }
    .faq__head { position: static; }

    .site-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-footer__brand { grid-column: 1 / -1; }
    .site-footer__legal { text-align: left; }
}

/* Schéma vertical ----------------------------------------------------------- */

@media (max-width: 900px) {
    .flow { --icon: 60px; --gap: 30px; padding: 28px 22px; }
    .flow__zones { display: none; }
    .flow__steps { grid-template-columns: minmax(0, 1fr); }
    .flow__node { flex-direction: row; align-items: flex-start; gap: 18px; text-align: left; }
    .flow__icon svg { width: 24px; height: 24px; }
    .flow__voices { right: 9px; bottom: 11px; }
    .flow__body { flex: 1; min-width: 0; margin-top: 0; }

    .flow__tag {
        display: block;
        margin: 4px 0 8px;
        font: 600 9px/1 var(--sans);
        font-stretch: 75%;
        letter-spacing: .22em;
        text-transform: uppercase;
        color: var(--text-3);
    }

    .flow__node--machine .flow__tag { color: var(--ok); }
    .flow__out { justify-content: flex-start; }

    .flow__link {
        top: calc(var(--icon) + 8px);
        left: calc(var(--icon) / 2 - 1px);
        width: 2px;
        height: calc(100% + var(--gap) - var(--icon) - 16px);
        background: repeating-linear-gradient(180deg, var(--line-2) 0 4px, transparent 4px 9px);
    }

    .flow__link::after { transform: scaleY(0); transform-origin: 50% 0; }
    .flow__run { transform: translateY(-100%); }
    .flow__packet { top: auto; right: auto; bottom: 0; left: 50%; translate: -50% 50%; }
    .flow__link.is-flowing .flow__run { animation-name: run-y; }
    .flow__link.is-flowing::after { animation-name: trail-y; }
}

/* Petits écrans -------------------------------------------------------------- */

@media (max-width: 760px) {
    .demo__stage { --band: clamp(230px, 34svh, 330px); --desk-top: calc(var(--head) + var(--band) * .8); }

    .demo__hero { top: calc(var(--head) + clamp(18px, 4svh, 40px)); }
    .hero__title { margin-top: 18px; }
    .hero__lead { margin-top: 18px; }
    .hero__actions { margin-top: 24px; }
    .hero__actions .btn--lg { height: 46px; padding: 0 20px; font-size: 10.5px; }
    .hero__note { margin-top: 14px; }

    .demo__hud { top: 12px; }
    .demo-hud__time { font-size: 20px; }
    .demo-hud__status { font-size: 11.5px; }
    .demo-hud__counters { grid-template-columns: auto; }
    .demo-hud__counters > div:not(:first-child) { display: none; }
    .demo-hud__counters dd { font-size: 18px; }

    .demo__desk { bottom: 52px; }
    .demo-desk { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; border-radius: 16px; }

    .demo-script__head { gap: 10px; padding: 14px 16px 0; }
    .demo-script__meta { display: none; }
    .demo-script__list { padding: 22px 16px 0; }
    .demo-empty { top: 28px; left: 16px; font-size: 24px; }

    .demo-seg { grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; }
    .demo-seg__rail { padding-top: 13px; }
    .demo-seg__time { font-size: 8.5px; }
    .demo-seg__body { padding: 10px 0 2px 14px; }
    .demo-seg__who { margin-bottom: 6px; font-size: 9.5px; }
    .demo-seg__text { font-size: 16px; line-height: 1.45; }
    .demo-tag { padding: 4px 6px; font-size: 8.5px; }
    .demo-tag--cell b { max-width: 20ch; }

    .demo-cells { border-top: 1px solid var(--line); border-left: 0; }
    .demo-cells__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; }
    .demo-cells__top { gap: 10px; }
    .demo-cells__count { font-size: 22px; }
    .demo-cells__total { font-size: 12px; }
    .demo-cells__summary { flex: 1; margin: 0; text-align: right; }
    .demo-meter { flex-basis: 100%; margin-top: 4px; }
    .demo-cells__list { display: grid; flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 2px 8px; }
    .demo-cell { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 5px 12px; }
    .demo-cell__ref { height: 20px; border-radius: 5px; font-size: 9px; }
    .demo-cell__q { margin-top: 2px; font-size: 10.5px; }
    .demo-cell__v { margin-top: 1px; font-size: 13px; }
    .demo-cell__v:empty { display: block; height: 1.35em; }
    .demo-file { display: none; }

    .demo__foot { gap: 18px; height: 52px; }
    .demo__done { gap: 56px; }
    .demo__done-title { font-size: 26px; }

    .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "live" "diar" "vocab" "book" "priv" "team" "pwa" "ai"; gap: 12px; }
    .bento__card { min-height: 0; }
    .bento__card--live { min-height: 440px; }
    .bento__visual { min-height: 160px; padding: 22px 20px 0; }
    .bento__body { padding: 18px 20px 22px; }
    .bx-sheet__grid { grid-template-columns: 26px minmax(0, .8fr) minmax(0, 1.3fr); }
    .bx-sheet__grid > span { padding: 0 8px; font-size: 11px; }
    .bx-sheet__grid > .is-answer { font-size: 12.5px; }

    .plan__compare { grid-template-columns: minmax(0, 1fr); }
    .faq__answer { padding-right: 0; }

    .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .site-footer__legal { text-align: left; }
}

@media (max-width: 560px) {
    body.site { --head: 62px; }
    .site-header__cta { display: none; }
    .hero__eyebrow-more { display: none; }
    .brand__mark { width: 34px; height: 34px; }
    .brand__name { font-size: 19px; }
    .period { display: grid; width: 100%; }
    .period__option span { padding: 0 12px; }
    .seats__row { flex-wrap: wrap; }
    .plan__total-amount { font-size: 30px; }
}
