/* Mobile (moins de 900 px), toutes les pages : barre du bas, menu plein écran, assistant en panneau, défilement natif. */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{padding-bottom:calc(84px + env(safe-area-inset-bottom));-webkit-tap-highlight-color:transparent}
html.mm-open,html.mm-open body{overflow:hidden}

/* barre fixe : Réserver une démo + bouton rond de l'assistant */
.mbar{display:flex;position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:30;gap:8px}
.mbar .mb-d{flex:1;height:56px;border-radius:14px;background:#0B0B0F;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:500;font-size:16px;box-shadow:0 12px 30px rgba(11,11,15,.3);text-decoration:none}
.mbar .mb-a{flex:0 0 56px;height:56px;border-radius:14px;border:0;background:#0B0B0F;display:flex;align-items:center;justify-content:center;box-shadow:0 12px 30px rgba(11,11,15,.3);cursor:pointer;outline:1px solid rgba(255,255,255,.22);outline-offset:-1px}
.mbar .mb-d{outline:1px solid rgba(255,255,255,.22);outline-offset:-1px}
.mbar .mb-d:active,.mbar .mb-a:active{transform:scale(.97)}

/* en-tête : le bouton Menu devient un burger */
nav.top .m-btn{width:42px;height:42px;padding:0;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:5px;font-size:0}
nav.top .m-btn i{display:block;width:16px;height:1.5px;background:#0B0B0F;transition:transform .4s}
html.mm-open nav.top .m-btn i:first-child{transform:translateY(3.3px) rotate(45deg)}
html.mm-open nav.top .m-btn i:last-child{transform:translateY(-3.3px) rotate(-45deg)}
html.mm-open nav.top{background:#fff}

/* menu plein écran */
.mmenu{display:flex;flex-direction:column;position:fixed;inset:0;z-index:45;background:#fff;padding:104px 22px 40px;overflow:auto;clip-path:inset(0 0 100% 0);visibility:hidden;transition:clip-path .6s cubic-bezier(.76,0,.24,1),visibility 0s .6s}
html.mm-open .mmenu{clip-path:inset(0 0 0 0);visibility:visible;transition:clip-path .6s cubic-bezier(.76,0,.24,1)}
.mmenu>a{font-size:34px;letter-spacing:-.04em;line-height:1.1;padding:14px 0;border-bottom:1px solid #E4E4EA;color:#0B0B0F;text-decoration:none}
.mmenu .mm-i{display:flex;gap:12px;margin-top:28px}
.mmenu .mm-i a{display:block;width:56px;height:56px}
.mmenu .mm-i img{width:56px;height:56px;border-radius:14px;box-shadow:0 8px 18px rgba(20,16,60,.18)}
.mmenu .mm-t{font-size:13px;color:#6B6B74;margin-top:22px}

/* assistant : la bulle disparaît, la conversation monte du bas */
.ai{left:0;right:0;bottom:0;pointer-events:none}
.ai .ai-b{display:none!important}
.ai .ai-panel{pointer-events:auto;position:fixed;left:0;right:0;bottom:0;width:100%;height:min(84svh,680px);max-height:calc(100svh - 72px);border-radius:24px 24px 0 0;border-left:0;border-right:0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom);transform:translateY(105%);transition:transform .55s cubic-bezier(.16,1,.3,1),opacity .3s,visibility 0s .55s}
.ai.open .ai-panel{transform:none;transition:transform .55s cubic-bezier(.16,1,.3,1),opacity .3s}
.ai .ai-in,.ai input{font-size:16px}
