/* N. — style iOS : bleu, verre dépoli, coins arrondis, ressorts. Les noms de variables sont partagés avec admin.css et legal.css. */
@font-face{font-family:'Geist';src:url(/fonts/geist-latin.woff2) format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'Sora';src:url(/fonts/sora-600.woff2) format('woff2');font-weight:600;font-display:swap}

:root{
  --paper:#fff;
  --ink:#0b1220;
  --mute:#5b6577;
  --line:rgba(11,18,32,.1);
  --wash:#f2f4f8;
  --blue:#0a66ff;
  --blue-d:#0050d6;
  --blue-soft:#e6efff;
  --pink:var(--blue);
  --pink-ink:#d92d3f;
  --sans:'Geist',-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',system-ui,sans-serif;
  --mono:var(--sans);
  --pad:clamp(1.25rem,5vw,3rem);
  --bar:60px;
  --sky-h:980px;
  --ease:cubic-bezier(.32,.72,0,1);
  --spring:cubic-bezier(.34,1.45,.64,1);
}
*{box-sizing:border-box;margin:0}
[hidden]{display:none!important}
html{color-scheme:light;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{background:var(--paper);color:var(--ink);font:400 1rem/1.55 var(--sans);-webkit-font-smoothing:antialiased;min-height:100vh;overflow-x:hidden}
body.locked{overflow:hidden}
a{color:inherit}
img,svg{display:block;max-width:100%}
::selection{background:var(--blue);color:#fff}
:focus-visible{outline:3px solid rgba(10,102,255,.55);outline-offset:3px;border-radius:8px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:var(--pad);top:-4rem;background:var(--ink);color:#fff;padding:.6rem 1rem;border-radius:99px;font:600 .875rem var(--sans);z-index:100}
.skip:focus{top:.6rem}

/* ---------- boutons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font:600 .9375rem/1 var(--sans);letter-spacing:-.005em;text-decoration:none;cursor:pointer;border:0;background:var(--blue);color:#fff;padding:.9rem 1.4rem;border-radius:999px;transition:background-color .2s,color .2s,transform .4s var(--spring);-webkit-tap-highlight-color:transparent}
.btn:hover{background:var(--blue-d)}
.btn:active{transform:scale(.96)}
.btn[disabled]{opacity:.4;cursor:not-allowed;transform:none}
.btn-ghost,.btn-light{background:var(--wash);color:var(--ink)}
.btn-ghost:hover,.btn-light:hover{background:#e4e8ef}
.btn-dark{background:var(--ink);color:#fff}
.btn-dark:hover{background:#1c2638}
.btn-lg{padding:1.05rem 1.75rem;font-size:1rem}
.btn-sm{padding:.65rem 1.05rem;font-size:.875rem}
.btn-xs{padding:.45rem .8rem;font-size:.8125rem}
.btn-block{display:flex;width:100%}
.btn .count{background:#fff;color:var(--blue);padding:.15rem .5rem;border-radius:99px;font-size:.75rem;line-height:1.2}
.text-btn,.btn-text{font:600 .9375rem/1 var(--sans);background:none;border:0;color:var(--blue);cursor:pointer;padding:.3rem 0;text-decoration:none}
.text-btn:hover,.btn-text:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
.icon-btn{display:inline-grid;place-items:center;width:38px;height:38px;border:0;background:var(--wash);color:var(--ink);cursor:pointer;border-radius:50%;transition:background-color .2s,transform .4s var(--spring)}
.icon-btn:hover{background:#e4e8ef}
.icon-btn:active{transform:scale(.9)}
.icon-btn svg{width:18px;height:18px;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- barre du haut : transparente sur le ciel, verre dépoli ensuite ---------- */
.topbar{position:fixed;inset:0 0 auto 0;z-index:30;transition:background-color .35s,box-shadow .35s}
.topbar.scrolled{background:rgba(255,255,255,.72);-webkit-backdrop-filter:saturate(180%) blur(22px);backdrop-filter:saturate(180%) blur(22px);box-shadow:0 .5px 0 var(--line)}
.topbar-in{display:flex;align-items:center;justify-content:space-between;max-width:72rem;margin:0 auto;height:var(--bar);padding:0 var(--pad)}
.brand{display:inline-flex;align-items:center;text-decoration:none}
.brand{gap:.55rem}
.brand img{height:28px;width:auto}
.brand-name{font:600 1.125rem/1 'Sora',var(--sans);letter-spacing:-.045em;color:var(--ink);white-space:nowrap}
.topbar:not(.scrolled) .brand-name{color:#fff}
@media(max-width:360px){.brand-name{display:none}}
.topbar .logo-dark{display:none}
.topbar.scrolled .logo-light{display:none}
.topbar.scrolled .logo-dark{display:block}
.nav{display:flex;align-items:center;gap:clamp(1rem,3vw,2rem)}
.nav .link{font:500 .9375rem/1 var(--sans);text-decoration:none;color:rgba(255,255,255,.94);padding:.5rem 0;transition:color .25s,opacity .2s}
.nav .link:hover{opacity:.7}
.topbar.scrolled .nav .link{color:var(--ink)}
.topbar:not(.scrolled) .nav .btn{background:#fff;color:var(--blue)}
.topbar:not(.scrolled) .nav .btn .count{background:var(--blue);color:#fff}
@media(max-width:600px){.nav .link{display:none}}

/* ---------- invitation aux notifications ---------- */
.notif-prompt{position:fixed;left:50%;transform:translateX(-50%);bottom:max(.75rem,env(safe-area-inset-bottom));z-index:25;width:min(34rem,calc(100% - 1.5rem));display:flex;align-items:center;gap:.75rem;background:rgba(255,255,255,.86);-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);border-radius:24px;padding:.9rem .9rem .9rem 1.15rem;box-shadow:0 18px 50px rgba(8,20,60,.2),0 0 0 .5px var(--line)}
.notif-prompt>div{flex:1;min-width:0}
.notif-prompt b{display:block;font-weight:600;margin-bottom:.1rem}
.notif-prompt p{font-size:.9375rem;color:var(--mute);margin-bottom:.65rem}

/* ---------- accueil : ciel WebGL qui se fond dans le blanc ---------- */
main{position:relative}
.sky{position:absolute;top:0;left:0;right:0;height:var(--sky-h);overflow:hidden;z-index:0;background:#3a67ea;-webkit-mask-image:linear-gradient(#000 0,#000 88%,transparent 100%);mask-image:linear-gradient(#000 0,#000 88%,transparent 100%)}
.sky canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 1s ease}
.sky.ready canvas{opacity:1}
.sky.no-gl{background:#7da3f5}
.sky.no-gl canvas{display:none}

.hero{position:relative;z-index:1;text-align:center;padding:calc(var(--bar) + clamp(3.5rem,10vw,6.5rem)) var(--pad) 0}
.hero-in{max-width:50rem;margin:0 auto}
.hero h1{color:#fff;font-weight:600;font-size:clamp(2.6rem,7.4vw,5rem);line-height:1.02;letter-spacing:-.045em;text-wrap:balance;text-shadow:0 2px 44px rgba(12,38,140,.3)}
.hero .lead{max-width:34rem;margin:1.5rem auto 0;font-size:clamp(1.0625rem,2vw,1.25rem);line-height:1.5;color:rgba(255,255,255,.94);text-shadow:0 1px 24px rgba(12,38,140,.35);text-wrap:pretty}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.75rem 1.75rem;margin-top:2.1rem}
.hero .btn-text{color:#fff;text-shadow:0 1px 16px rgba(12,38,140,.4)}

/* ---------- démonstration animée ---------- */
.demo-sec{position:relative;z-index:1;max-width:62rem;margin:clamp(3rem,7vw,4.75rem) auto 0;padding:0 var(--pad)}
.demo-win{background:#fff;border-radius:26px;overflow:hidden;box-shadow:0 40px 90px rgba(18,50,150,.2),0 0 0 .5px rgba(11,18,32,.1)}
.demo-bar{position:relative;display:flex;align-items:center;justify-content:center;height:46px;background:rgba(246,247,250,.9);border-bottom:.5px solid var(--line)}
.demo-dots{position:absolute;left:18px;display:flex;gap:7px}
.demo-dots i{width:11px;height:11px;border-radius:50%;background:#d9dde5}
.demo-url{font:500 .8125rem/1 var(--sans);color:var(--mute);background:#e9ecf2;border-radius:99px;padding:.45rem 1.1rem}
.demo-stage{position:relative;container-type:inline-size;overflow:hidden;background:#fff;transition:opacity .6s ease}
.demo-stage.fade{opacity:0}
@media(max-width:640px){.sky{--sky-h:860px}}
.demo-caption{margin-top:1.1rem;text-align:center;font-size:.875rem;color:var(--mute)}

.bk{position:relative;padding:3.2cqw 3.6cqw 3.6cqw;color:#2a1d14;font-family:var(--sans)}
.bk .g{opacity:0;filter:blur(7px);transform:translateY(1.2cqw);transition:opacity .5s ease,filter .6s ease,transform .8s var(--ease)}
.bk .g.on{opacity:1;filter:none;transform:none}
.bk-nav{display:flex;align-items:center;gap:2.4cqw;font-size:max(9.5px,1.45cqw);color:#7a6b5d}
.bk-nav b{font-size:max(12px,2cqw);color:#2a1d14;letter-spacing:-.03em;margin-right:auto}
.bk-pill{font-style:normal;font-weight:600;background:#f3ede4;color:#2a1d14;border-radius:99px;padding:.55em 1.1em}
.bk-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:3cqw;align-items:center;margin-top:max(34px,5.2cqw)}
.bk-title{position:relative;font-size:max(17px,4.5cqw);font-weight:650;line-height:1.05;letter-spacing:-.04em;min-height:2.1em;color:#2a1d14}
.bk-title .sel{background:rgba(10,102,255,.24);border-radius:.15em}
.bk-title .caret::after{content:"";display:inline-block;width:.07em;height:.9em;margin-left:.04em;background:var(--blue);vertical-align:-.1em}
.bk-sub{margin-top:1.2cqw;font-size:max(10px,1.55cqw);line-height:1.5;color:#7a6b5d}
.bk-btn{position:relative;display:inline-block;margin-top:2cqw;padding:.95em 1.7em;border-radius:99px;background:#3a3a3c;color:#fff;font-weight:600;font-size:max(10px,1.5cqw);transition:opacity .35s ease,transform .6s var(--spring),background-color .7s ease}
.bk-btn.warm{background:#c8652e}
.bk-photo{position:relative;aspect-ratio:3/2;border-radius:2.2cqw;overflow:hidden;background:#f1e6d6}
.bk-photo img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;transition:opacity .8s ease,transform 1s var(--ease)}
.bk-photo .ph-b{opacity:0;transform:scale(1.07)}
.bk-photo.swap .ph-a{opacity:0;transform:scale(.97)}
.bk-photo.swap .ph-b{opacity:1;transform:none}
.bk-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6cqw;margin-top:3.2cqw}
.bk-card{border-radius:1.8cqw;background:#faf7f2;padding:1cqw;font-size:max(9.5px,1.25cqw);box-shadow:0 0 0 .5px rgba(42,29,20,.08)}
/* remarques du client : pastille posée sur la page, qui passe à « Corrigé » */
.note{position:absolute;z-index:3;display:inline-grid;padding:.6em 1.1em;border-radius:99px;background:#fff;color:var(--blue);font:600 max(10px,1.35cqw)/1 var(--sans);font-style:normal;letter-spacing:0;white-space:nowrap;pointer-events:none;box-shadow:0 8px 24px rgba(18,50,150,.22),0 0 0 .5px var(--line);opacity:0;transform:translateY(6px) scale(.9);transition:opacity .35s ease,transform .6s var(--spring),background-color .4s,color .4s}
.note span{grid-area:1/1;text-align:center;transition:opacity .3s}
.note .ok{opacity:0}
.note.show{opacity:1;transform:none}
.note.done{background:var(--blue);color:#fff}
.note.done .q{opacity:0}
.note.done .ok{opacity:1}
.note.gone{opacity:0;transform:translateY(-6px)}
.note[data-note=title]{left:0;bottom:calc(100% + 1.2cqw)}
.note[data-note=btn]{left:calc(100% + 1.6cqw);top:50%;margin-top:-1.6cqw}
.note[data-note=photo]{left:1.8cqw;bottom:1.8cqw}
.bk-card .pic{aspect-ratio:16/10;border-radius:1.3cqw;overflow:hidden;background:#efe6d8}
.bk-card .pic img{display:block;width:100%;height:100%;object-fit:cover;margin:0;border-radius:0}
.bk-card .row{display:flex;align-items:center;justify-content:space-between;gap:.6em;margin-top:.9cqw;padding:0 .3cqw}
.bk-card b{display:block;font-weight:600;letter-spacing:-.01em}
.bk-card span{color:#7a6b5d}
.bk-banner{display:flex;align-items:center;justify-content:space-between;gap:2cqw;margin-top:2.4cqw;padding:1.5cqw 2cqw;border-radius:1.8cqw;background:#2a1d14;color:#f6efe6;font-size:max(10px,1.45cqw)}
.bk-banner p{margin:0}
.bk-banner b{font-weight:600}
.bk-banner span{flex:none;padding:.5em 1.1em;border-radius:99px;background:#f6efe6;color:#2a1d14;font-weight:600}
.bk-foot{display:flex;flex-wrap:wrap;justify-content:center;gap:.4em 2.4cqw;margin-top:2.4cqw;font-size:max(9.5px,1.35cqw);color:#7a6b5d}
.bk-foot span{display:inline-flex;align-items:center;gap:.45em}
.bk-foot svg{width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

@keyframes cur-tap{40%{transform:scale(.82)}}
@keyframes cur-ring{0%{opacity:1;transform:scale(.2)}100%{opacity:0;transform:scale(1.5)}}

@keyframes msg-pop{from{opacity:0;transform:translateY(8px) scale(.85)}to{opacity:1;transform:none}}
@keyframes dot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-2px)}}

/* ---------- sections ---------- */
.sec{max-width:72rem;margin:0 auto;padding:clamp(4.5rem,10vw,8rem) var(--pad) 0}
.sec>h2{text-align:center;font-weight:600;font-size:clamp(2rem,4.8vw,3.25rem);line-height:1.05;letter-spacing:-.045em;text-wrap:balance}
.sec-body{margin-top:clamp(2rem,4vw,3rem)}

.price-card{background:var(--wash);border-radius:36px;padding:clamp(2.25rem,6vw,4rem) var(--pad);text-align:center}
.price{font-weight:600;font-size:clamp(4.5rem,15vw,9.5rem);line-height:.9;letter-spacing:-.06em;color:var(--blue);white-space:nowrap}
.price-note{margin:1.4rem auto 0;max-width:30rem;font-size:1.125rem;color:var(--mute);text-wrap:balance}

.spec{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}
.spec-item{background:var(--wash);border-radius:28px;padding:1.6rem 1.6rem 1.75rem}
.spec-item h3{font-size:1.125rem;font-weight:600;letter-spacing:-.02em;margin-bottom:.5rem}
.spec-item p{color:var(--mute);max-width:26rem}
@media(max-width:700px){.spec{grid-template-columns:1fr}}

.steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.steps li{background:var(--wash);border-radius:28px;padding:1.5rem 1.4rem 1.7rem}
.steps .n{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--blue);color:#fff;font:600 .875rem/1 var(--sans);margin-bottom:1.1rem}
.steps h3{font-size:1.125rem;font-weight:600;letter-spacing:-.02em;line-height:1.25;margin-bottom:.5rem}
.steps p{color:var(--mute);font-size:.9375rem}
@media(max-width:980px){.steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.steps{grid-template-columns:1fr}}

.close{max-width:72rem;margin:clamp(4.5rem,10vw,8rem) auto 0;padding:0 var(--pad)}
.close-card{background:var(--blue);color:#fff;border-radius:40px;text-align:center;padding:clamp(3rem,8vw,5.5rem) var(--pad)}
.close h2{font-weight:600;font-size:clamp(2rem,5.4vw,3.75rem);line-height:1.03;letter-spacing:-.045em;max-width:18ch;margin:0 auto;text-wrap:balance}
.close p{max-width:30rem;margin:1.25rem auto 0;font-size:1.125rem;color:rgba(255,255,255,.88);text-wrap:balance}
.close .hero-actions{margin-top:2rem}
.close .btn{background:#fff;color:var(--blue)}
.close .btn:hover{background:#eef3ff}
.close .btn-text{color:#fff}

.footer{font-size:.875rem;color:var(--mute)}
.footer a{text-decoration:none}
.footer a:hover{color:var(--blue)}

.js .reveal{opacity:0;transform:translateY(22px);transition:opacity .8s var(--ease),transform .8s var(--ease);transition-delay:var(--d,0s)}
.js .reveal.in{opacity:1;transform:none}

/* ---------- chat : feuille arrondie à droite (ordinateur), plein écran (mobile) ---------- */
.chat-root{position:fixed;inset:0;z-index:60}
.chat-backdrop{position:absolute;inset:0;background:rgba(10,20,45,.32);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;transition:opacity .35s ease}
.chat-root.open .chat-backdrop{opacity:1}
.chat-sheet{position:absolute;top:max(.75rem,env(safe-area-inset-top));right:.75rem;bottom:.75rem;width:min(27rem,calc(100% - 1.5rem));display:flex;flex-direction:column;overflow:hidden;border-radius:30px;background:rgba(255,255,255,.9);-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px);box-shadow:0 30px 90px rgba(8,20,60,.32),0 0 0 .5px var(--line);transform:translateX(calc(100% + 1.5rem));transition:transform .55s var(--ease);outline:0}
.chat-root.open .chat-sheet{transform:none}
@media(max-width:640px){
  .chat-sheet{top:.5rem;left:0;right:0;bottom:0;width:100%;height:auto;border-radius:30px 30px 0 0;transform:translateY(100%)}
}
.chat-head{position:relative;display:flex;align-items:center;gap:.8rem;flex:none;height:68px;padding:0 .9rem 0 1.15rem;border-bottom:.5px solid var(--line)}
.chat-head>img{height:26px;width:auto}
.chat-id{flex:1;min-width:0;line-height:1.25}
.chat-id b{display:block;font-weight:600;letter-spacing:-.01em}
.chat-id small{display:block;font-size:.75rem;color:var(--mute)}
.chat-menu{position:absolute;right:.9rem;top:60px;z-index:5;min-width:15rem;overflow:hidden;border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 18px 50px rgba(8,20,60,.24),0 0 0 .5px var(--line)}
.chat-menu button{display:block;width:100%;text-align:left;font:500 .9375rem/1 var(--sans);padding:1rem 1.1rem;background:none;border:0;border-bottom:.5px solid var(--line);cursor:pointer;color:var(--ink)}
.chat-menu button:last-child{border-bottom:0}
.chat-menu button:hover{background:var(--wash)}
.chat-body{flex:1;min-height:0;display:flex;flex-direction:column}
.chat-view{flex:1;min-height:0;display:flex;flex-direction:column}
.view-start,.view-confirm{overflow-y:auto;padding:clamp(1.5rem,5vw,2rem) 1.35rem 1.5rem}
.chat-view h2{font-weight:600;font-size:clamp(1.75rem,5vw,2.1rem);line-height:1.05;letter-spacing:-.04em}
.chat-view>p{margin-top:.75rem;color:var(--mute);max-width:26rem}
.confirm-check{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--blue-soft);color:var(--blue);margin-bottom:1.25rem}
.confirm-check svg{width:24px;height:24px;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.confirm-text{color:var(--ink)!important}
.confirm-notif{margin:1.5rem 0 1rem;padding:1.1rem;border-radius:22px;background:var(--wash)}
.confirm-notif b{display:flex;align-items:center;gap:.5rem;font-weight:600}
.confirm-notif p{margin:.5rem 0 .9rem;font-size:.9375rem;color:var(--mute)}
.view-confirm>.btn{margin-top:.6rem}
.online-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--blue)}

.start-form{display:flex;flex-direction:column;gap:1.1rem;margin-top:1.5rem}
.field{display:block}
.field>span{display:block;font:600 .8125rem/1 var(--sans);margin-bottom:.5rem;color:var(--mute)}
.field input,.field textarea{width:100%;font:inherit;font-size:1rem;color:var(--ink);background:var(--wash);border:0;border-radius:16px;padding:.9rem 1rem;outline:0;resize:vertical;transition:box-shadow .2s,background-color .2s}
.field input::placeholder,.field textarea::placeholder{color:#8d95a5}
.field input:focus,.field textarea:focus{background:#fff;box-shadow:0 0 0 2px var(--blue)}
.chips{display:flex;flex-wrap:wrap;gap:.45rem}
.chip{font:500 .875rem/1 var(--sans);padding:.65rem .95rem;border:0;background:var(--blue-soft);color:var(--blue);cursor:pointer;border-radius:99px;transition:background-color .2s,transform .4s var(--spring)}
.chip:hover{background:#d6e5ff}
.chip:active{transform:scale(.95)}
.form-error{font:500 .875rem/1.45 var(--sans);color:var(--pink-ink);background:#fdecee;border-radius:14px;padding:.7rem .9rem}
.form-note{font-size:.875rem;color:var(--mute)}

.msg-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:1rem 1rem .5rem}
.msg-list:empty::before{content:"Aucun message pour l'instant.";display:block;font-size:.9375rem;color:var(--mute);padding:1rem 0;text-align:center}
.day-sep{display:flex;justify-content:center;margin:1.1rem 0 .7rem;font:500 .75rem/1 var(--sans);color:var(--mute)}
.msg{display:flex;margin:.3rem 0}
.msg.out{justify-content:flex-end}
.msg-group{max-width:82%;display:flex;flex-direction:column;gap:.25rem;min-width:0}
.msg.out .msg-group{align-items:flex-end}
.bubble{padding:.6rem .95rem;border-radius:20px;font-size:.9688rem;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;animation:bubble-in .45s var(--spring) both}
.msg.out .bubble{background:var(--blue);color:#fff;border-bottom-right-radius:6px;transform-origin:bottom right}
.msg.in .bubble{background:#e9ebf0;color:var(--ink);border-bottom-left-radius:6px;transform-origin:bottom left}
@keyframes bubble-in{from{opacity:0;transform:translateY(6px) scale(.9)}to{opacity:1;transform:none}}
.msg-meta{display:flex;gap:.5rem;font:400 .6875rem/1 var(--sans);color:var(--mute);padding:0 .3rem}
.msg-meta .vu{color:var(--blue);font-weight:600}
.msg-attachments{display:flex;flex-direction:column;gap:.4rem;align-items:inherit}
.msg-image{display:block;padding:0;border:0;border-radius:20px;overflow:hidden;background:var(--wash);cursor:zoom-in}
.msg-image img{display:block;max-width:min(15rem,60vw);max-height:15rem;object-fit:cover}
.msg-file{display:flex;align-items:center;gap:.65rem;border-radius:18px;padding:.65rem .85rem;text-decoration:none;font-size:.875rem;background:var(--wash);color:var(--ink)}
.msg-file small{display:block;font-size:.75rem;color:var(--mute)}
.msg-file:hover{background:#e4e8ef}
.file-icon{display:inline-grid;place-items:center;flex:none}
.file-icon svg{stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.thread-foot{flex:none;border-top:.5px solid var(--line)}
.typing-row{display:flex;align-items:center;gap:.6rem;padding:.55rem 1.1rem 0;font-size:.75rem;color:var(--mute)}
.typing-dots{display:inline-flex;gap:3px}
.typing-dots i{width:6px;height:6px;border-radius:50%;background:#8b93a3;animation:blink 1.1s ease-in-out infinite}
.typing-dots i:nth-child(2){animation-delay:.15s}
.typing-dots i:nth-child(3){animation-delay:.3s}
@keyframes blink{0%,60%,100%{opacity:.3}30%{opacity:1}}
.attachment-previews{display:flex;flex-wrap:wrap;gap:.45rem;padding:.65rem 1rem 0}
.attach-chip{display:inline-flex;align-items:center;gap:.5rem;max-width:100%;border-radius:14px;background:var(--wash);padding:.3rem .35rem .3rem .3rem;font:500 .75rem/1.2 var(--sans)}
.attach-chip img{width:30px;height:30px;object-fit:cover;border-radius:9px}
.attach-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:9rem}
.attach-chip button{display:grid;place-items:center;width:24px;height:24px;border:0;border-radius:50%;background:none;color:var(--ink);cursor:pointer}
.attach-chip button:hover{background:#e0e4ec}
.composer{display:flex;align-items:flex-end;gap:.5rem;padding:.75rem 1rem}
.composer textarea{flex:1;min-width:0;max-height:110px;font:inherit;font-size:1rem;color:var(--ink);border:0;border-radius:22px;background:var(--wash);padding:.65rem 1rem;resize:none;outline:0;line-height:1.4;transition:box-shadow .2s,background-color .2s}
.composer textarea:focus{background:#fff;box-shadow:0 0 0 2px var(--blue)}
.send-btn{display:grid;place-items:center;width:40px;height:40px;flex:none;border:0;background:var(--blue);color:#fff;cursor:pointer;border-radius:50%;transition:background-color .2s,transform .4s var(--spring),opacity .2s}
.send-btn:hover{background:var(--blue-d)}
.send-btn:active{transform:scale(.9)}
.send-btn:disabled{opacity:.3;cursor:not-allowed;transform:none}
.send-btn:disabled:hover{background:var(--blue)}
.send-btn svg{width:19px;height:19px;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.upload-progress{height:3px;margin:0 1rem;border-radius:2px;background:var(--wash);overflow:hidden}
.upload-progress span{display:block;height:100%;width:0;background:var(--blue);border-radius:2px;transition:width .15s linear}
.composer-note{padding:0 1.15rem max(.75rem,env(safe-area-inset-bottom));font-size:.75rem;color:var(--mute)}
.notif-inline{flex:none;display:flex;align-items:center;gap:.75rem;margin:0 .75rem .75rem;padding:.7rem .8rem .7rem 1rem;border-radius:20px;background:var(--wash)}
.notif-inline p{flex:1;font-size:.8125rem;line-height:1.4}

.lightbox{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:1rem;background:rgba(8,14,30,.86);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.lightbox img{max-width:min(94vw,1100px);max-height:86vh;object-fit:contain;background:var(--paper);border-radius:18px}
.lightbox-close{position:absolute;top:1rem;right:1rem;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;cursor:pointer}
.lightbox-close:hover{background:rgba(255,255,255,.3)}
.lightbox-close svg{width:20px;height:20px;stroke-width:1.9;stroke-linecap:round}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:max(1.25rem,env(safe-area-inset-bottom));z-index:95;max-width:calc(100vw - 2rem);background:rgba(11,18,32,.92);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#fff;font:500 .9rem/1.4 var(--sans);padding:.8rem 1.2rem;border-radius:99px;text-align:center}

/* ---------- vie : entrée du hero, confettis, prix en rouleaux, comparatif, cartes ---------- */
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.hero h1{animation:rise .9s var(--ease) .05s both}
.hero .lead{animation:rise .9s var(--ease) .2s both}
.hero-actions{animation:rise .9s var(--ease) .35s both}
.demo-win{animation:rise 1s var(--ease) .5s both}

.fx-canvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:90}
.party-word{display:inline-block;color:var(--blue);transform-origin:50% 80%}
@keyframes wob{0%{transform:scale(1)}35%{transform:scale(1.14) rotate(-3deg)}65%{transform:scale(.97) rotate(1.5deg)}100%{transform:scale(1)}}
.js .reveal.in .party-word{animation:wob 1s var(--spring) .3s both}

/* chiffres du prix : trois rouleaux */
.slot-num{display:inline-flex;height:1em;line-height:1;vertical-align:-.075em}
.rl{position:relative;display:block;height:1em;overflow-y:clip;overflow-x:visible;clip-path:inset(0 -.2em)}
.rl-s{display:block;height:1em;visibility:hidden}
.rl-strip{position:absolute;left:0;right:0;top:0;display:block;will-change:transform}
.rl-c{display:block;height:1em;line-height:1;text-align:center}
.price{transition:transform .7s var(--spring)}
.price.settled{animation:wob .9s var(--spring) both}

/* cartes du bloc prix et des étapes */
.spec-item,.steps li{transition:background-color .3s,box-shadow .3s}
.spec-item:hover,.steps li:hover{background:#fff;box-shadow:0 18px 50px rgba(18,50,150,.14),0 0 0 .5px var(--line)}
.js .reveal.in.tilt{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--ty,0px))}
.js .reveal.in.tilt.live{transition:transform .12s linear,background-color .3s,box-shadow .3s,opacity .8s var(--ease)}
.js .reveal.in.tilt.rest{transition:transform .8s var(--spring),background-color .3s,box-shadow .3s,opacity .8s var(--ease)}

.spec-item .ic{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--blue-soft);margin-bottom:1.1rem}
.spec-item .ic svg{width:24px;height:24px}
.spec-item .ic svg *{fill:none;stroke:var(--blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.js .spec-item .ic svg *{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.2s var(--ease) .35s}
.js .spec-item.in .ic svg *{stroke-dashoffset:0}

.js .steps li .n{transform:scale(.3);opacity:0;transition:transform .8s var(--spring) calc(.25s + var(--i,0) * .14s),opacity .4s ease calc(.25s + var(--i,0) * .14s)}
.js .steps li.in .n{transform:none;opacity:1}

/* comparatif */
.cmp{display:grid;grid-template-columns:1.3fr 1fr;gap:1rem;align-items:stretch}
.cmp-card{border-radius:32px;padding:clamp(1.5rem,3.5vw,2.25rem)}
.cmp-tag{font:600 .8125rem/1 var(--sans);color:var(--mute);margin-bottom:1.25rem}
.cmp-them{background:var(--wash)}
.cmp-them ul{list-style:none;padding:0}
.cmp-them li{display:flex;justify-content:space-between;gap:1rem;padding:.9rem 0;border-bottom:.5px solid var(--line);font-size:1rem}
.cmp-them li span{color:var(--ink)}
.cmp-them li b{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.cmp-total{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding-top:1.2rem}
.cmp-total span{font-weight:600}
.cmp-total b{font-size:clamp(1.9rem,4vw,2.6rem);font-weight:600;letter-spacing:-.04em;font-variant-numeric:tabular-nums;transition:color .4s}
.cmp-total b.bad{color:var(--pink-ink);animation:wob .8s var(--spring) both}
.cmp.armed .cmp-them li{opacity:0;transform:translateY(12px) scale(.97)}
.cmp.armed .cmp-them li.on{opacity:1;transform:none;transition:opacity .35s ease,transform .7s var(--spring)}
.cmp-us{background:var(--blue);color:#fff;display:flex;flex-direction:column}
.cmp-us .cmp-tag{color:rgba(255,255,255,.8)}
.cmp-big{font-size:clamp(3.5rem,8vw,5.25rem);font-weight:600;letter-spacing:-.06em;line-height:.95}
.cmp-sub{margin-top:.6rem;color:rgba(255,255,255,.88)}
.cmp-list{list-style:none;padding:0;margin-top:1.5rem;display:grid;gap:.7rem}
.cmp-list li{display:flex;align-items:center;gap:.65rem;font-size:.9688rem}
.cmp-list svg{flex:none;width:20px;height:20px;padding:3px;border-radius:50%;background:rgba(255,255,255,.2);fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.cmp-save{margin-top:auto;padding-top:1.5rem;font-weight:600}
.cmp.armed .cmp-us{transform:scale(.97);opacity:.55;transition:transform .9s var(--spring),opacity .5s ease}
.cmp.armed.done .cmp-us{transform:none;opacity:1}
.cmp.armed .cmp-save{opacity:0;transition:opacity .5s ease .25s}
.cmp.armed.done .cmp-save{opacity:1}
.cmp-note{margin-top:1rem;text-align:center;font-size:.8125rem;color:var(--mute)}
@media(max-width:820px){.cmp{grid-template-columns:1fr}}

/* contact par e-mail */
.close .btn.btn-glass{background:rgba(255,255,255,.18);color:#fff;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.close .btn.btn-glass:hover{background:rgba(255,255,255,.28)}
.mail-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.6rem 1.1rem;margin-top:1.75rem!important;font-size:.9375rem!important}
.mail-line a{color:#fff;text-decoration:underline;text-decoration-color:rgba(255,255,255,.45);text-underline-offset:4px}
.mail-line a:hover{text-decoration-color:#fff}
.copy-btn{font:600 .8125rem/1 var(--sans);color:#fff;background:rgba(255,255,255,.18);border:0;border-radius:99px;padding:.5rem .85rem;cursor:pointer;transition:background-color .2s,transform .4s var(--spring)}
.copy-btn:hover{background:rgba(255,255,255,.3)}
.copy-btn:active{transform:scale(.92)}
.form-note a{color:var(--blue)}

/* démo : fermeture de la fenêtre de chat */

/* étapes : une scène animée par carte (elle se joue une fois à l'apparition ; sans animation, l'état final est visible) */
.steps li{display:flex;flex-direction:column;padding:0;overflow:hidden}
.steps .v{position:relative;container-type:inline-size;aspect-ratio:25/17;overflow:hidden}
.steps .hd{display:flex;align-items:center;gap:.7rem;padding:1.15rem 1.3rem 0}
.steps .hd .n{margin:0;flex:none;width:32px;height:32px;font-size:.8125rem}
.steps .hd h3{margin:0;font-size:1.0625rem}
.steps li>p{margin:0;padding:.55rem 1.3rem 1.45rem}

/* scènes : texte et mouvement seulement */
.steps .v>*{margin-inline:8cqw}
.steps .v{display:grid;align-content:center;background:var(--blue);color:#fff;font-family:'Sora',var(--sans);font-weight:600;letter-spacing:-.04em}
@property --p{syntax:'<integer>';initial-value:100;inherits:false}
.ty{font-size:5.2cqw;line-height:1.3}
.ty span{display:block;width:max-content}
.ty i{display:inline-block;width:.1em;height:.95em;margin-left:.15em;vertical-align:-.12em;background:#fff}
.pc{display:grid;gap:5cqw}
.pc b{font-size:21cqw;line-height:1;letter-spacing:-.06em;font-variant-numeric:tabular-nums;counter-reset:p var(--p)}
.pc b::after{content:counter(p) "\00a0%"}
.pc .bar{height:2.2cqw;border-radius:99px;background:rgba(255,255,255,.28);overflow:hidden}
.pc .bar i{display:block;height:100%;border-radius:inherit;background:#fff;transform-origin:left}
.pc small{display:grid;font-size:3.6cqw;letter-spacing:-.01em;font-weight:600}
.pc small span{grid-area:1/1}
.pc .a{opacity:0}
.cs{display:grid;gap:3cqw;justify-items:start}
.c{display:flex;align-items:baseline;gap:2cqw;padding:2.4cqw 4.4cqw;border-radius:99px;border:1.5px solid rgba(255,255,255,.6);background:#fff;color:var(--blue);font-size:4.4cqw;letter-spacing:-.025em;line-height:1.2}
.c em{font-style:normal;font-size:3.1cqw;letter-spacing:0;opacity:.55}
.lv{display:grid;justify-items:center;gap:4cqw;text-align:center}
.lv b{display:flex;align-items:center;gap:3.4cqw;font-size:12.5cqw;line-height:1;letter-spacing:-.055em}
.lv>span{font-size:4.4cqw;letter-spacing:-.01em;opacity:.85}
.dot{position:relative;flex:none;width:4.6cqw;height:4.6cqw;border-radius:50%;background:#fff}
.dot::before,.dot::after{content:"";position:absolute;inset:0;border-radius:50%;border:1.5px solid #fff;opacity:0}

@keyframes ty-in{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
@keyframes blink{50%{opacity:0}}
@keyframes pc-n{from{--p:0}}
@keyframes pc-bar{from{transform:scaleX(0)}}
@keyframes pc-a{0%,85%{opacity:1}100%{opacity:0}}
@keyframes pc-z{from{opacity:0;transform:translateY(40%)}to{opacity:1;transform:none}}
@keyframes c-in{0%{opacity:0;transform:translateX(14px) scale(.94);background:transparent;color:#fff}25%,60%{opacity:1;transform:none;background:transparent;color:#fff}100%{opacity:1;transform:none;background:#fff;color:var(--blue)}}
@keyframes c-em{from{opacity:0}to{opacity:.55}}
@keyframes lv-in{from{opacity:0;transform:translateY(10px) scale(.92)}to{opacity:1;transform:none}}
@keyframes ring{from{transform:scale(1);opacity:.75}to{transform:scale(4.6);opacity:0}}
.steps li.in .ty span:nth-child(1){animation:ty-in 1.3s steps(21) .5s both}
.steps li.in .ty span:nth-child(2){animation:ty-in 1.7s steps(26) 1.9s both}
.steps li.in .ty i{animation:blink 1s steps(2) 3.6s infinite both}
.steps li.in .pc b{animation:pc-n 2.6s cubic-bezier(.3,.7,.25,1) .4s both}
.steps li.in .pc .bar i{animation:pc-bar 2.6s cubic-bezier(.3,.7,.25,1) .4s both}
.steps li.in .pc .a{animation:pc-a 3s linear .1s both}
.steps li.in .pc .z{animation:pc-z .6s var(--ease) 3s both}
.steps li.in .c{animation:c-in 2s var(--ease) var(--t) both}
.steps li.in .c em{animation:c-em .4s ease calc(var(--t) + 1.4s) both}
.steps li.in .lv b{animation:lv-in .8s var(--spring) .4s both}
.steps li.in .lv>span{animation:lv-in .8s var(--ease) 1s both}
.steps li.in .dot::before,.steps li.in .dot::after{animation:ring 2.6s ease-out 1s infinite}
.steps li.in .dot::after{animation-delay:2.3s}

/* cartes sous le prix : une ligne par carte sur téléphone */
@media(max-width:700px){
  .spec{gap:.75rem}
  .spec-item{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:1rem;align-items:start;padding:1.15rem 1.2rem;border-radius:24px}
  .spec-item .ic{grid-row:1/span 2;margin:0;width:42px;height:42px}
  .spec-item h3{margin-bottom:.15rem;font-size:1.0625rem}
  .spec-item p{font-size:.9375rem;line-height:1.45}
  .price-card{border-radius:30px}
}

/* mer en bas de page : shader WebGL, et vagues CSS si WebGL est absent */
.footer{position:relative;margin-top:clamp(4rem,9vw,7rem);overflow:hidden}
.sea{position:absolute;left:0;right:0;bottom:0;height:clamp(150px,19vw,240px);pointer-events:none}
.sea canvas{display:none}
.sea.gl canvas{display:block;position:absolute;inset:0;width:100%;height:100%}
.sea.gl .wave{display:none}
.wave{position:absolute;left:0;bottom:0;width:100%;background-repeat:repeat-x;background-position:0 100%;animation:drift linear infinite}
.w1{height:100%;--tile:-1400px;background-size:1400px 100%;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 100' preserveAspectRatio='none'%3E%3Cpath fill='%230a66ff' fill-opacity='.10' d='M0 60C233 0 467 0 700 60C933 120 1167 120 1400 60V100H0Z'/%3E%3C/svg%3E");animation-duration:48s}
.w2{height:72%;--tile:1100px;background-size:1100px 100%;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 100' preserveAspectRatio='none'%3E%3Cpath fill='%230a66ff' fill-opacity='.17' d='M0 60C233 0 467 0 700 60C933 120 1167 120 1400 60V100H0Z'/%3E%3C/svg%3E");animation-duration:34s}
.w3{height:44%;--tile:-900px;background-size:900px 100%;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 100' preserveAspectRatio='none'%3E%3Cpath fill='%230a66ff' fill-opacity='.9' d='M0 60C233 0 467 0 700 60C933 120 1167 120 1400 60V100H0Z'/%3E%3C/svg%3E");animation-duration:24s}
@keyframes drift{from{background-position:0 100%}to{background-position:var(--tile) 100%}}
.sea.paused .wave{animation-play-state:paused}
.footer-in{position:relative;z-index:2;max-width:72rem;margin:0 auto;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.75rem 2rem;padding:2.5rem var(--pad) clamp(6.5rem,14vw,10rem);font-size:.875rem;color:var(--mute)}
.footer-in nav{display:flex;flex-wrap:wrap;gap:.4rem 1.5rem}

/* prix : ligne « puis 40 € par an » */
.price-then{margin:.9rem 0 0;font-size:clamp(1.0625rem,2.4vw,1.375rem);letter-spacing:-.01em;color:var(--mute)}
.price-then b{font-weight:600;color:var(--ink)}
.cmp-then{margin:.55rem 0 0;font-size:.9375rem;line-height:1.4;color:rgba(255,255,255,.82)}

/* démo : panneau latéral (liste de création, puis chat) et page plus aérée */

/* titres : mots révélés un à un (flou puis net) */
.w{display:inline-block}
.js .reveal.words{opacity:1;transform:none}
.js .reveal:not(.in) .w{opacity:0}
.reveal.in .w{animation:wd .75s var(--ease) calc(var(--w) * .06s + .1s) both}
@keyframes wd{from{opacity:0;filter:blur(8px);transform:translateY(.3em)}}

/* questions : <details> natif, ouverture animée */
:root{interpolate-size:allow-keywords}
.faq{max-width:46rem;margin-inline:auto;display:grid;gap:.6rem}
.faq details{border-radius:24px;background:var(--wash);transition:background-color .3s,box-shadow .3s}
.faq details:hover,.faq details[open]{background:#fff;box-shadow:0 14px 40px rgba(18,50,150,.1),0 0 0 .5px var(--line)}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.15rem 1.4rem;cursor:pointer;list-style:none;font-weight:600;font-size:1.0625rem;letter-spacing:-.015em;border-radius:24px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";flex:none;width:28px;height:28px;border-radius:50%;background:var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/62% no-repeat;transition:transform .45s var(--spring)}
.faq details[open] summary::after{transform:rotate(135deg)}
.faq summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.faq details::details-content{block-size:0;overflow:clip;transition:block-size .4s var(--ease),content-visibility .4s allow-discrete}
.faq details[open]::details-content{block-size:auto}
.faq details p{margin:0;padding:0 1.4rem 1.3rem;color:var(--mute);max-width:38rem}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.001ms!important;animation:none!important;scroll-behavior:auto!important}
}
