/* SeLoger · dépôt d'annonce · composants du design system (Figma DFtGqfuiFjG7drRwjWza1x) */
:root{
  --rouge:#E30513; --rouge-appui:#B8040F; --rouge-50:#FDEBEF;
  --texte:#323232; --texte-2:#646464; --texte-off:#929292; --inverse:#fff;
  --page:#fff; --subtil:#F9F9F9; --neutre:#EAEAEA; --info:#FDF2E4; --contraste:#141414;
  --bord:#C9CACE; --bord-champ:#AEAEAE; --sep:#E0E0E0; --focus:#323232;
  --erreur:#D03C38; --succes:#006D31; --systeme:#0178FF; --systeme-texte:#0062D1;
  --dpe-a:#00A06D; --dpe-b:#52B153; --dpe-c:#A5CC74; --dpe-d:#F4E70F; --dpe-e:#F0B40F; --dpe-f:#EB8235; --dpe-g:#D7221F;
  --ges-a:#A4DBF8; --ges-b:#8CB4D3; --ges-c:#7792B1; --ges-d:#606F8F; --ges-e:#4D5271; --ges-f:#393551; --ges-g:#281B35;
  --ombre:0 2px 8px rgba(0,0,0,.16); --ombre-forte:0 4px 16px rgba(0,0,0,.16);
  --font:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --sortie:cubic-bezier(.23,1,.32,1); --tiroir:cubic-bezier(.32,.72,0,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:var(--font);color:var(--texte);background:#ECECEC;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;-webkit-user-select:none;user-select:none}
input,textarea{font:inherit;color:inherit}
img{display:block;max-width:100%;height:auto}
/* Focus clavier : contour #323232 + 2 px de blanc */
:focus-visible{outline:2px solid var(--focus);outline-offset:2px;box-shadow:0 0 0 2px #fff}
h1[tabindex="-1"]:focus{outline:none;box-shadow:none}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Zone de toucher de 44 px autour des petits boutons (taille visuelle inchangée) */
.hit{position:relative}
.hit::after{content:"";position:absolute;inset:-6px}

/* Téléphone */
.phone{position:relative;display:block;width:360px;height:min(760px,calc(100vh - 72px));height:min(760px,calc(100dvh - 72px));min-height:560px;background:var(--page);border-radius:28px;overflow:hidden;box-shadow:0 0 0 10px #1d1d1d,0 20px 60px rgba(0,0,0,.35)}
.below{display:flex;gap:16px;font-size:13px;color:var(--texte-2)}
.below button{text-decoration:underline}
@media (max-width:420px){body{padding:0;background:var(--page)}.phone{width:100%;height:100vh;height:100dvh;border-radius:0;box-shadow:none}.below{display:none}}
.screen{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--page)}
.scroll{flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.scroll::-webkit-scrollbar{display:none}
.pad{padding:0 16px}
/* Pas de transition de page à page : écartée en 2021, elle ralentissait le parcours. .anim-in reste le déclencheur des micro-interactions */
.anim-in,.anim-back{animation:none}
@keyframes slideIn{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
@keyframes slideBack{from{transform:translateX(-24px);opacity:0}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes fadeOut{to{opacity:0}}

/* Typographie (styles de texte) */
.t-xl{font-size:28px;line-height:36px;font-weight:700}
.t-l{font-size:24px;line-height:32px;font-weight:700}
.t-m{font-size:18px;line-height:24px;font-weight:700}
.t-sub{font-size:18px;line-height:24px;font-weight:500}
.t-body{font-size:16px;line-height:24px}
.t-body-m{font-size:16px;line-height:24px;font-weight:500}
.t-body-b{font-size:16px;line-height:24px;font-weight:700}
.t-s{font-size:14px;line-height:20px}
.t-s-m{font-size:14px;line-height:20px;font-weight:500}
.t-cap{font-size:12px;line-height:16px}
.muted{color:var(--texte-2)}
.center{text-align:center}
.link{text-decoration:underline;font-weight:500}
.inline-link{display:inline;padding:0;font:inherit;font-weight:500;color:inherit;text-decoration:underline;text-align:inherit}

/* Icônes (masques PNG exportés du Figma) */
.ic{display:inline-block;width:20px;height:20px;flex:none;background:currentColor;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.ic-24{width:24px;height:24px}.ic-16{width:16px;height:16px}

/* Navigation / En-tête du parcours + barre de progression en 4 rubriques */
.flow-head{position:relative;z-index:3;flex:none;height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:var(--page)}
.flow-head .back{width:44px;height:44px;margin-left:-12px;display:grid;place-items:center;border-radius:50%}
.flow-head .back.close{margin:0 -10px 0 0}
.flow-head .quit{min-height:44px;font-size:16px;color:var(--texte-2)}
.flow-head--dark{background:transparent;color:#fff}
.flow-head--dark .quit{color:#fff}
.progress{position:absolute;left:0;right:0;bottom:0;height:4px;display:flex;gap:2px}
.progress .seg{flex:1;background:var(--neutre);overflow:hidden}
.progress .seg i{display:block;height:100%;background:var(--rouge);transform-origin:left center;transition:transform .3s var(--sortie)}
.flow-head--dark .progress .seg{background:rgba(255,255,255,.35)}
.site-head{flex:none;height:52px;display:flex;align-items:center;gap:14px;padding:0 16px;box-shadow:0 1px 0 var(--sep)}
.site-head>button{width:32px;height:32px;margin-left:-4px;display:grid;place-items:center}
.site-head .logo{height:22px;width:auto}
.site-head .sp{flex:1}
.badge-ic{position:relative;display:inline-flex}
.badge-ic b{position:absolute;top:-6px;right:-10px;min-width:20px;height:16px;padding:0 4px;border-radius:8px;background:var(--rouge);color:#fff;font-size:11px;line-height:16px;font-weight:700;text-align:center}

/* Fil d'Ariane (bouton texte Rubrique · Étape) + récapitulatif */
.crumb{display:inline-flex;align-items:center;gap:4px;min-height:44px;max-width:calc(100% - 24px);padding:0 4px;margin:4px 12px 0;border-radius:8px;font-size:14px;line-height:20px;color:var(--texte-2);text-align:left}
.crumb-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crumb .ic{transition:transform .2s var(--sortie)}
.crumb.open .ic{transform:rotate(180deg)}
.crumb+.q{padding-top:4px}
.recap{position:absolute;left:16px;right:16px;top:104px;z-index:30;max-height:calc(100% - 120px);overflow:auto;background:var(--page);border-radius:16px;box-shadow:var(--ombre-forte);padding:16px 16px 8px;transform-origin:top left;animation:recapIn .2s var(--sortie)}
@keyframes recapIn{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@keyframes recapOut{to{opacity:0;transform:translateY(-6px)}}
.recap.is-leaving{animation:recapOut .15s ease-in forwards}
.recap h2{display:flex;align-items:center;gap:12px;font-size:18px;line-height:24px;font-weight:700;margin:4px 0 8px}
.recap h2.off{color:var(--texte-off)}
.recap-row{display:flex;align-items:center;gap:12px;width:100%;min-height:36px;padding:4px 0;text-align:left;font-size:16px;line-height:24px}
.recap-row .lbl{flex:1;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.recap-row.todo{color:var(--texte-off);cursor:default}
.recap-row.cur{font-weight:700}
.dot{width:20px;height:20px;border-radius:50%;flex:none;display:grid;place-items:center;border:1.5px solid var(--bord)}
.dot.ok{background:var(--succes);border-color:var(--succes);color:#fff}
.dot.ok::after{content:"";width:9px;height:5px;border:2px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
.dot.cur{border:2px solid var(--rouge)}
.dot.cur::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--rouge)}
.dot.sec-off{background:var(--texte-off);border-color:var(--texte-off)}
.scrim{position:absolute;inset:0;z-index:20;background:rgba(0,0,0,.32);animation:fade .2s}
.scrim.is-leaving{animation:fadeOut .15s ease-in forwards}

/* Question */
.q{padding:16px 16px 0}
.q .eyebrow{font-size:14px;line-height:20px;color:var(--texte-2);margin-bottom:8px}
.q h1{font-size:20px;line-height:28px;font-weight:700}
.body{padding:32px 16px 24px;display:flex;flex-direction:column;gap:16px}
.lead{font-size:16px;line-height:24px}

/* Actions / Bouton */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 16px;border-radius:24px;border:1px solid transparent;font-size:16px;line-height:24px;font-weight:700;transition:background-color .2s,border-color .2s;white-space:nowrap}
.btn--primary{background:var(--rouge);color:#fff}
.btn--primary:active{background:var(--rouge-appui)}
.btn--primary:disabled{background:var(--neutre);color:var(--texte-off);cursor:not-allowed}
.btn--secondary{background:var(--page);border-color:var(--texte);color:var(--texte)}
.btn--secondary:active{background:var(--neutre)}
.btn--ghost-dark{color:#fff;font-weight:500}
.btn--ghost-dark:active{background:rgba(255,255,255,.16)}
.btn--small{height:32px;padding:0 12px;font-size:14px;line-height:20px;font-weight:500;border-radius:16px}
.btn--block{width:100%}
.btn-text{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:16px;line-height:24px;font-weight:700;text-decoration:underline;border-radius:4px}
.btn-text[aria-disabled=true]{color:var(--texte-2);text-decoration:none;font-weight:500;cursor:default}
.social{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:48px;border-radius:24px;border:1px solid var(--bord);background:#fff;font-weight:700;font-size:16px}
.social img{width:20px;height:20px}
.social--apple{background:#000;border-color:#000;color:#fff}
.social--apple .ic{background:#fff}
.or{display:flex;align-items:center;gap:16px;font-size:14px;color:var(--texte-2)}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--sep)}
.hr{height:1px;background:var(--sep)}
.btn-progress{position:relative;overflow:hidden}
.btn-progress i{position:absolute;left:0;top:0;bottom:0;background:rgba(0,0,0,.18);transition:width .2s linear}
.btn-progress span{position:relative}

/* Pied d'écran */
.foot{flex:none;padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));background:var(--page);display:flex;flex-direction:column;gap:12px}
.foot.shadow{box-shadow:0 -1px 0 var(--sep)}
.foot-note{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:20px;color:var(--texte-2)}
.foot-note .ic{margin-top:2px}
.breakdown{font-size:14px;line-height:20px;color:var(--texte-2)}
.breakdown b{font-size:16px;line-height:24px;color:var(--texte)}

/* Formulaires / Champ texte */
.field{display:flex;flex-direction:column;gap:8px}
.field label,.label{font-size:16px;line-height:24px}
.input{display:flex;align-items:center;gap:8px;height:56px;padding:0 16px;border:1px solid var(--bord-champ);border-radius:12px;background:#fff;transition:border-color .15s,box-shadow .15s}
.input input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:18px;line-height:26px;height:100%}
.input input:focus-visible{outline:none;box-shadow:none}
.input input::placeholder,.textarea textarea::placeholder{color:var(--texte-2);opacity:1}
.input .unit{color:var(--texte-2);font-size:16px}
.input:focus-within{border:2px solid var(--focus);padding:0 15px}
.input--s{height:48px;max-width:200px}
.field.err .input{border:2px solid var(--erreur);padding:0 15px}
.msg{font-size:14px;line-height:20px;color:var(--texte-2)}
.field.err .msg{color:var(--erreur)}
.eye{width:44px;height:44px;display:grid;place-items:center;margin-right:-12px;border-radius:50%}
.crit{display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px;color:var(--texte-2)}
.crit .ic{width:16px;height:16px}
.crit.ok{color:var(--succes)}
.phone-field .flag{display:flex;align-items:center;gap:6px;padding-right:12px;margin-right:4px;border-right:1px solid var(--sep);height:32px}
.phone-field .flag img{width:12px;height:20px;object-fit:cover;border-radius:2px}
.textarea{position:relative;border:1px solid var(--bord-champ);border-radius:12px;background:#fff}
.textarea:focus-within{border:2px solid var(--focus);margin:-1px}
.textarea textarea{display:block;width:100%;height:180px;min-height:180px;border:0;outline:0;resize:none;overflow:hidden;padding:16px;font-size:16px;line-height:26px;background:none}
.textarea textarea:focus-visible{outline:none;box-shadow:none}
.textarea.gen-in{animation:genIn .24s ease-out}
@keyframes genIn{from{opacity:.3}to{opacity:1}}
.count{text-align:right;font-size:12px;line-height:16px;color:var(--texte-2)}
.suggestions{display:flex;flex-direction:column;gap:8px}
.chip{display:flex;align-items:center;gap:8px;text-align:left;width:100%;min-height:44px;padding:10px 12px;border-radius:12px;background:var(--subtil);font-size:14px;line-height:20px}
.warn{display:flex;gap:8px;align-items:flex-start;padding:12px;border-radius:12px;background:var(--rouge-50);font-size:14px;line-height:20px}
.warn .ic{margin-top:2px}
.warn[hidden],.msg[hidden],[hidden]{display:none!important}

/* Ligne case à cocher / Option radio */
.checks{display:flex;flex-direction:column}
.check-row{display:flex;align-items:center;gap:12px;min-height:56px;font-size:16px;line-height:24px;cursor:pointer;user-select:none}
.check-row input{position:absolute;opacity:0;pointer-events:none}
.box{width:20px;height:20px;flex:none;border-radius:3px;border:1.5px solid var(--texte);display:grid;place-items:center;transition:background-color .15s}
.check-row input:checked+.box{background:var(--rouge);border-color:var(--rouge)}
.check-row input:checked+.box::after{content:"";width:10px;height:5px;border:2px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
.check-row input:focus-visible+.box{outline:2px solid var(--focus);outline-offset:2px}
.check-row .lbl{flex:1}
.av-item{display:flex;flex-direction:column}
.av-sub{padding:0 0 0 32px}
.av-sub.field{gap:8px}
.av-sub.field label{font-size:14px;line-height:20px;color:var(--texte-2)}
.radios{display:flex;flex-direction:column;gap:16px}
.radio-opt{position:relative;display:flex;align-items:center;gap:12px;min-height:56px;padding:0 16px;border:1px solid var(--bord);border-radius:12px;font-size:16px;line-height:24px;cursor:pointer;transition:border-color .15s}
.radio-opt input{position:absolute;opacity:0}
.radio{width:20px;height:20px;border-radius:50%;border:1.5px solid var(--texte);flex:none;display:grid;place-items:center}
.radio-opt input:checked~.radio{border:2px solid var(--rouge)}
.radio-opt input:checked~.radio::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--rouge)}
.radio-opt:has(input:checked){border:2px solid var(--rouge);padding:0 15px}
.radio-opt input:focus-visible~.radio{outline:2px solid var(--focus);outline-offset:2px}
.group-title{font-size:16px;line-height:24px;font-weight:700;margin-top:8px}

/* Compteur */
.counter-row{display:flex;align-items:center;justify-content:space-between;min-height:48px;font-size:16px}
.counter{display:flex;align-items:center;gap:16px}
.counter button{width:32px;height:32px;border-radius:8px;background:var(--neutre);display:grid;place-items:center}
.counter button:disabled{opacity:.4;cursor:not-allowed}
.counter output{min-width:16px;text-align:center;font-size:16px}

/* Carte type de bien / Choix illustré large */
.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.type-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:120px;gap:8px;padding:16px 8px 14px;border:1px solid var(--bord);border-radius:12px;background:#fff;font-size:16px;transition:border-color .15s,box-shadow .15s}
.type-card img{width:112px;height:56px;object-fit:contain}
.type-card.on{border:2px solid var(--rouge);padding:15px 7px 11px}
.choice-big{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px;border:1px solid var(--bord);border-radius:12px;background:#fff;font-size:16px;font-weight:500}
.choice-big img{width:160px;height:151px;object-fit:contain}
.choice-big.on{border:2px solid var(--rouge);padding:15px}
/* Retour de sélection, une seule fois, avant le passage automatique à l'écran suivant */
.type-card.just.on{border:1px solid var(--bord);padding:16px 8px 12px}
.choice-big.just.on{border:1px solid var(--bord);padding:16px}
.type-card.just::after,.choice-big.just::after{content:"";position:absolute;inset:-1px;border:2px solid var(--rouge);border-radius:12px;pointer-events:none;animation:fade .15s ease-out both}
.type-card.just img,.choice-big.just img{animation:imgIn .16s var(--sortie) both}
.radio-opt.just input:checked~.radio::after{animation:dotIn .16s var(--sortie) both}
@keyframes imgIn{from{transform:scale(.96)}to{transform:none}}
@keyframes dotIn{from{transform:scale(.4)}to{transform:none}}

/* Modale plein écran, feuille d'actions, encart info, toast */
.modal{position:absolute;inset:0;z-index:40;background:var(--page);display:flex;flex-direction:column;animation:up .25s var(--sortie)}
@keyframes up{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
@keyframes modalOut{to{opacity:0;transform:translateY(30px)}}
.modal.is-leaving,.gallery.is-leaving{animation:modalOut .2s ease-in forwards}
.modal-head{display:flex;align-items:center;gap:4px;height:56px;padding:0 16px}
.modal-head h2{font-size:18px;line-height:24px;font-weight:700}
.modal-head .close{width:44px;height:44px;margin-left:auto;margin-right:-12px;display:grid;place-items:center;border-radius:50%}
.modal ul{padding-left:20px;margin-top:12px;display:flex;flex-direction:column;gap:4px}
.sheet-wrap{position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;justify-content:flex-end;padding:8px}
.sheet-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.4);animation:fade .2s}
.sheet-panel{position:relative;animation:sheetIn .3s var(--tiroir)}
@keyframes sheetIn{from{transform:translateY(calc(100% + 8px))}to{transform:none}}
@keyframes sheetOut{to{transform:translateY(calc(100% + 8px))}}
.sheet-wrap.is-leaving .sheet-backdrop{animation:fadeOut .2s forwards}
.sheet-wrap.is-leaving .sheet-panel{animation:sheetOut .2s var(--tiroir) forwards}
.sheet{background:rgba(255,255,255,.96);border-radius:14px;overflow:hidden;margin-bottom:8px}
.sheet button{display:block;width:100%;height:56px;font-size:18px;color:var(--systeme-texte);border-top:1px solid var(--sep)}
.sheet button:first-child{border-top:0}
.sheet.cancel button{font-weight:700}
.info-box{padding:16px;border-radius:12px;background:var(--info);font-size:14px;line-height:20px}
.info-box b{font-weight:700}
.ext{display:inline-flex;align-items:center;gap:4px;min-height:44px;font-size:14px;line-height:20px;color:var(--texte-2);text-decoration:underline;align-self:flex-start}
.ext .ic{width:14px;height:14px}
.toast{position:absolute;left:16px;right:16px;bottom:88px;z-index:50;display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:12px;background:var(--contraste);color:#fff;font-size:14px;line-height:20px;animation:up .2s var(--sortie)}
.toast span{flex:1}
.toast button{min-height:44px;margin:-12px -8px;padding:0 8px;font-weight:700;color:#fff;text-decoration:underline}
.toast--low{bottom:auto;top:60px} /* écrans sans pied (accueil) : en haut, loin du bouton principal */
@keyframes toastOut{to{opacity:0;transform:translateY(8px)}}
.toast.is-leaving{animation:toastOut .15s ease-in forwards}

/* Loyer : estimation et jauge */
.estim{display:flex;flex-direction:column;gap:8px}
.gauge{position:relative;height:8px;margin:12px 8px 6px;border-radius:4px;background:#fff}
.gauge span{position:absolute;top:50%;transform:translate(-50%,-50%)}
.g-est{display:inline-block;width:4px;height:20px;border-radius:2px;background:var(--texte)}
.g-cap{display:inline-block;width:0;height:24px;border-left:2px dashed var(--erreur)}
.g-you{display:inline-block;width:16px;height:16px;border-radius:50%;background:var(--rouge);border:2px solid #fff;box-shadow:var(--ombre)}
.g-legend{list-style:none;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:14px;line-height:20px}
.g-legend li{display:flex;align-items:center;gap:8px}
.g-legend i{flex:none}
.g-legend .g-est{height:14px}
.g-legend .g-cap{height:14px}
.g-legend .g-you{width:12px;height:12px;box-shadow:none;border:0}
.reveal{display:contents}
.reveal.is-revealing>*{animation:revealIn .22s var(--sortie) both}
.reveal.is-revealing>:nth-child(2){animation-delay:40ms}
.reveal.is-revealing>:nth-child(3){animation-delay:80ms}
.reveal.is-revealing>:nth-child(4){animation-delay:120ms}
.reveal.is-revealing>:nth-child(5){animation-delay:160ms}
.reveal.is-revealing>:nth-child(n+6){animation:none}
@keyframes revealIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Aide à la rédaction */
.assist{display:flex;gap:12px;padding:16px;border-radius:12px;background:var(--subtil)}
.assist.fade-in{animation:fade .15s ease-out}
.assist img{width:40px;height:40px;flex:none}
.assist .t-body-b{margin-bottom:2px}
.assist .btn{margin-top:12px;background:#fff;box-shadow:var(--ombre)}
.assist.loading img{animation:wiggle 1s infinite}
@keyframes wiggle{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}
.dots::after{content:"";animation:dots 1.2s infinite}
@keyframes dots{0%{content:""}33%{content:"."}66%{content:".."}100%{content:"..."}}

/* Photos : grille 2 colonnes, photo principale en tête sur toute la largeur */
.photos-grid{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tile{position:relative;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:var(--subtil);touch-action:none;transition:box-shadow .15s}
.photos-grid .tile:first-child{grid-column:1/-1;aspect-ratio:3/2}
.tile img{width:100%;height:100%;object-fit:cover;pointer-events:none}
.tile.fade-in{animation:fade .2s ease-out}
.tile .tbtn{position:absolute;width:32px;height:32px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:var(--ombre)}
.tile .handle{top:8px;left:8px;cursor:grab}
.tile .star{top:8px;right:8px}
.tile .del{bottom:8px;right:8px}
.tile .star.on{color:var(--rouge)}
.tile .main-badge{position:absolute;left:8px;bottom:12px;padding:2px 8px;border-radius:12px;background:var(--rouge);color:#fff;font-size:12px;line-height:16px;font-weight:700}
.tile.is-up img{filter:blur(6px) brightness(.65);transform:scale(1.08)}
.tile .up{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:12px;line-height:16px;font-weight:700;color:#fff}
.tile .bar{width:70%;max-width:120px;height:4px;border-radius:2px;background:rgba(255,255,255,.4)}
.tile .bar i{display:block;height:100%;border-radius:2px;background:#fff;transition:width .2s linear}
.tile.dragging{box-shadow:var(--ombre-forte);opacity:.95}
.tile.ghost{aspect-ratio:auto}
.tile.slot{outline:2px dashed var(--bord-champ);outline-offset:-2px;background:var(--subtil)}
.tile.slot>*{visibility:hidden}
.gallery{position:absolute;inset:0;z-index:40;background:#000;display:flex;flex-direction:column;animation:up .25s var(--sortie)}
.gallery-head{display:flex;align-items:center;justify-content:space-between;height:52px;padding:0 8px;color:#fff;font-size:16px}
.gallery-head h2{font-size:16px;font-weight:500}
.gallery-head button{min-height:44px;padding:0 8px;color:#4FA3FF;font-weight:700}
.gallery-head .gal-cancel{font-weight:400}
.gallery-head button:disabled{opacity:.4;cursor:default}
.gallery-grid{flex:1;overflow:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:2px;align-content:start}
.gallery-grid button{position:relative;aspect-ratio:1}
.gallery-grid img{width:100%;height:100%;object-fit:cover}
.gallery-grid .sel{position:absolute;right:6px;bottom:6px;width:22px;height:22px;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,.2)}
.gallery-grid .on .sel{background:var(--systeme)}
.gallery-grid .on .sel::after{content:"";position:absolute;left:5px;top:3px;width:7px;height:10px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg)}
.gallery-grid .on img{opacity:.8}

/* Sélecteur de classe (DPE / GES) : couleur pleine, lettre contrastée, sélection agrandie + contour + coche */
.scale{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;padding:6px 0}
.scale button{position:relative;height:44px;border-radius:12px;font-weight:700;font-size:16px;background:var(--c);color:var(--ink);transition:transform .15s var(--sortie)}
.scale button.on{transform:scale(1.08);outline:2px solid var(--texte);outline-offset:2px;z-index:1}
.scale button.on::after{content:"";position:absolute;top:-8px;right:-8px;width:16px;height:16px;border-radius:50%;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23323232'/%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.scale-legend{display:flex;justify-content:space-between;font-size:12px;line-height:16px;color:var(--texte-2);margin-top:8px}

/* Champ avec suggestions */
.suggest{border:1px solid var(--bord-champ);border-top:0;border-radius:0 0 12px 12px;margin-top:-9px;overflow:hidden;background:#fff}
.suggest button{display:block;width:100%;text-align:left;padding:12px 16px;font-size:16px;border-top:1px solid var(--sep)}
.suggest button:focus-visible{background:var(--neutre);outline-offset:-2px}

/* Code SMS */
.sms{display:flex;gap:8px;justify-content:center;margin:24px 0 16px}
.sms input{width:40px;height:48px;border:0;border-bottom:2px solid var(--bord);text-align:center;font-size:24px;outline:0;background:none}
.sms input:focus{border-color:var(--rouge)}
.sms input.filled{border-color:var(--texte)}
.sms.err input{border-color:var(--erreur)}
.sms-err{margin-top:-8px;font-size:14px;line-height:20px;color:var(--erreur);text-align:center}

/* Annonce */
.carousel{position:relative;height:234px;background:var(--subtil)}
.carousel .track{display:flex;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.carousel .track::-webkit-scrollbar{display:none}
.carousel img{flex:none;width:100%;height:100%;object-fit:cover;scroll-snap-align:start}
.carousel .count-badge{position:absolute;left:16px;bottom:12px;padding:2px 8px;border-radius:12px;background:rgba(0,0,0,.6);color:#fff;font-size:12px;line-height:20px}
.thumbs{display:flex;gap:8px;padding:8px 16px 0;overflow-x:auto;scrollbar-width:none}
.thumbs::-webkit-scrollbar{display:none}
.thumb{flex:none;width:72px;height:54px;padding:0;border-radius:12px;overflow:hidden;position:relative}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb::after{content:"";position:absolute;inset:0;border-radius:12px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);transition:box-shadow .16s var(--sortie)}
.thumb[aria-current=true]::after{box-shadow:inset 0 0 0 2px var(--texte),inset 0 0 0 4px var(--page)}
.thumb:active img{filter:brightness(.88)}
.ad-sec{padding:24px 16px;border-bottom:1px solid var(--sep);display:flex;flex-direction:column;gap:12px}
.ad-sec h2{font-size:18px;line-height:24px;font-weight:700}
.ad-sec h2.t-l{font-size:24px;line-height:32px}
.sec-h{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.edit-link{flex:none;display:inline-flex;align-items:center;min-height:44px;margin:-9px -8px -9px 0;padding:0 8px;border-radius:4px;font-size:14px;line-height:20px;font-weight:700;text-decoration:underline}
.feat{display:flex;align-items:center;gap:12px;font-size:16px;line-height:24px}
.owner{display:flex;align-items:center;justify-content:space-between;padding:16px;border-radius:12px;box-shadow:var(--ombre)}
.owner img{width:40px;height:40px}
.tag{display:inline-block;margin-top:4px;padding:2px 8px;border-radius:12px;background:var(--neutre);color:var(--texte);font-size:12px;line-height:16px}
.bars{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;align-items:end}
.bars span{height:8px;border-radius:2px}
.bars span.on{height:24px;display:grid;place-items:center;font-size:12px;font-weight:700}
.map{height:180px;border-radius:12px;overflow:hidden;position:relative}
.map img{width:100%;height:100%;object-fit:cover}
.map .zone{position:absolute;left:50%;top:50%;width:110px;height:110px;margin:-55px 0 0 -55px;border-radius:50%;background:rgba(227,5,19,.2);border:2px solid var(--rouge)}

/* Vérification */
.illu-c{display:flex;justify-content:center;padding:32px 0 8px}
.id-row{display:flex;align-items:center;gap:16px;width:100%;min-height:80px;padding:16px;border:1px solid var(--bord);border-radius:12px;text-align:left;font-size:16px;line-height:24px}
.id-row img{width:48px;height:48px;object-fit:contain}
.id-row .lbl{flex:1}
.tip{display:flex;align-items:center;gap:16px;font-size:16px;line-height:24px}
.tip img{width:40px;height:40px;margin:4px}
.camera{position:absolute;inset:0;background:#2b2b2b url(img/fond_camera.webp) center/cover}
/* Voile sombre derrière l'en-tête et la consigne (texte blanc ≥ 4,5:1 même sur une photo claire) */
.cam-scrim{position:absolute;left:0;right:0;top:0;height:240px;background:linear-gradient(rgba(0,0,0,.55) 0,rgba(0,0,0,.55) 55%,rgba(0,0,0,0) 100%);pointer-events:none}
.capture-frame{position:absolute;left:32px;right:32px;top:50%;transform:translateY(-10%);aspect-ratio:1.58}
.capture-frame::before,.capture-frame::after{content:"";position:absolute;inset:-8px;border:3px solid #fff;border-radius:6px;-webkit-mask:linear-gradient(#000 0 0) top left/24px 24px no-repeat,linear-gradient(#000 0 0) top right/24px 24px no-repeat,linear-gradient(#000 0 0) bottom left/24px 24px no-repeat,linear-gradient(#000 0 0) bottom right/24px 24px no-repeat}
.capture-frame img{width:100%;height:100%;object-fit:cover;border-radius:6px;opacity:0;transform:scale(.92) rotate(-2deg);transition:opacity .5s,transform .6s}
.capture-frame.got img{opacity:1;transform:none}
.cam-hint{position:absolute;left:16px;right:16px;top:72px;color:#fff;text-align:center;font-weight:700;font-size:18px;line-height:24px;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.flash{position:absolute;inset:0;background:#fff;animation:flash .35s forwards;pointer-events:none}
@keyframes flash{from{opacity:.9}to{opacity:0}}
.doc-card{position:relative;margin:16px 0;border-radius:12px;overflow:hidden;box-shadow:var(--ombre)}
.doc-card img{width:100%}
.doc-card .veil{position:absolute;inset:0;background:rgba(255,255,255,.8);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:12px}
.doc-card .bar{width:120px;height:4px;border-radius:2px;background:var(--neutre)}
.doc-card .bar i{display:block;height:100%;border-radius:2px;background:var(--rouge)}
.selfie-zone{position:absolute;inset:52px 0 0;overflow:hidden}
.selfie{position:absolute;inset:0;background:#222 url(img/selfie.webp) 50% 30%/cover}
.selfie-zone .selfie{transition:background-position 1.2s ease}
.selfie-zone .selfie.left{background-position:44% 30%}
.selfie-zone .selfie.right{background-position:56% 30%}
.selfie-mask{position:absolute;inset:52px 0 0;background:radial-gradient(ellipse 112px 150px at 50% 47%,transparent 98%,rgba(30,30,30,.72) 100%)}
.selfie-ring{position:absolute;left:50%;top:47%;width:228px;height:304px;margin:-152px 0 0 -114px;border-radius:50%;border:2px dashed rgba(255,255,255,.9);box-shadow:0 0 0 1200px rgba(30,30,30,.72)}
.turn{position:absolute;top:47%;margin-top:-20px;width:40px;height:40px;display:grid;place-items:center;color:#fff;opacity:0;transition:opacity .3s}
.turn.left{left:12px;opacity:1;animation:nudgeL 1s ease-in-out infinite}
.turn.right{right:12px;opacity:1;transform:scaleX(-1);animation:nudgeR 1s ease-in-out infinite}
@keyframes nudgeL{50%{translate:-6px 0}}@keyframes nudgeR{50%{translate:6px 0}}
.on-photo{position:absolute;left:16px;right:16px;color:#fff;text-align:center;text-shadow:0 1px 4px rgba(0,0,0,.4)}
.analyse img{width:96px;height:96px;animation:wiggle 1s infinite}

/* Fin du dépôt */
.fin{display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px 16px;text-align:center}
.fin-ill{width:160px;height:auto;animation:finIll .5s var(--sortie) both}
.fin-txt{display:flex;flex-direction:column;gap:16px;width:100%}
.fin-txt>*{animation:finTxt .3s var(--sortie) both;animation-delay:calc(120ms + var(--i,0)*60ms)}
@keyframes finIll{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
@keyframes finTxt{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.ad-card{display:flex;align-items:center;gap:12px;padding:8px;border-radius:12px;box-shadow:var(--ombre);text-align:left}
.ad-card img{flex:none;width:96px;height:72px;border-radius:4px;object-fit:cover}
.ad-card .crop-box{flex:none;width:96px;height:72px;border-radius:4px;overflow:hidden}
.ad-card .crop-box img{border-radius:0}
.ad-card>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.timeline{list-style:none;display:flex;flex-direction:column;text-align:left}
.timeline li{position:relative;display:flex;gap:12px;padding-bottom:16px}
.timeline li:last-child{padding-bottom:0}
.timeline li:not(:last-child)::before{content:"";position:absolute;left:9px;top:26px;bottom:4px;width:2px;background:var(--sep)}
.timeline .dot{margin-top:2px}
.timeline li:not(.cur) .t-body-b{font-weight:500;color:var(--texte-2)}

/* Accueil */
.hero{background:linear-gradient(#C3F2FA,#D9F8FD);padding:24px 16px 0}
.hero h1{font-size:24px;line-height:32px;font-weight:700}
.home-card{position:relative;margin:24px 4px -96px;padding:16px 16px 24px;background:#fff;border-radius:4px;box-shadow:var(--ombre-forte)}
.home-card h2,.home-more h2{font-size:24px;line-height:32px;font-weight:700}
.home-card h2 .k,.home-more h2 .k{display:block;font-weight:400}
.redline{width:24px;height:4px;background:var(--rouge);margin:16px 0}
.home-card ul{list-style:none;display:flex;flex-direction:column;gap:8px;margin-bottom:24px;font-size:16px}
.home-more{padding:120px 16px 32px}
.cand{margin:16px 10px 0;padding:2px 0;border-radius:4px;box-shadow:0 4px 12px rgba(0,0,0,.08);background:#fff;font-size:12px;line-height:16px}
.cand>div{display:grid;grid-template-columns:minmax(0,1fr) 64px 76px 12px;gap:8px;align-items:center;padding:6px 12px;border-top:1px solid var(--sep)}
.cand>.cand-head{border-top:0;color:#707070}
.cand .ic{width:12px;height:12px;color:var(--texte-off)}
.cand .is-fav{position:relative;margin:0 -10px;padding:8px 22px;font-size:14px;line-height:20px;border-radius:4px;background:#fff;box-shadow:0 8px 16px rgba(0,0,0,.12);border-top:0}
.cand .is-fav+div{border-top:0}
.cand .is-fav .ic{color:#E5A800}

/* Compte */
.auth{display:flex;flex-direction:column;align-items:center;gap:16px;padding:40px 16px 24px}
.auth .logo{height:33px;width:auto;margin-bottom:8px}
.auth .stack{width:100%;display:flex;flex-direction:column;gap:16px}
.auth .links{text-align:center;font-size:16px;line-height:24px;display:flex;flex-direction:column;gap:8px}
.auth .links button{font-weight:700;min-height:44px}
.legal{font-size:12px;line-height:16px;color:var(--texte-2)}

.is-drag,.is-drag *{user-select:none;-webkit-user-select:none}
.photos-grid img{-webkit-user-drag:none;user-select:none}
.tile,.flow-head,.main-badge{user-select:none;-webkit-user-select:none}
/* Intégrée dans une page du portfolio (iframe) : fond transparent */
.embedded,.embedded body{background:transparent}
.embedded .below{color:#9A9A9A}
.embedded .below select{background:#131316;color:#E8E8E8;border:1px solid #2A2A30;border-radius:6px;padding:4px 6px}

/* Barre d'état du téléphone (cadre sur ordinateur et écrans isolés) */
.sb{position:absolute;top:0;left:0;right:0;height:28px;display:flex;align-items:center;justify-content:space-between;padding:0 22px 0 26px;font-size:13px;font-weight:700;background:var(--page);color:var(--texte);z-index:5;font-variant-numeric:tabular-nums}
.sb .r{display:flex;gap:6px;align-items:center}
.sb .bars{display:flex;gap:2px;align-items:flex-end;height:10px}.sb .bars i{width:3px;background:currentColor;border-radius:1px}
.sb .bat{width:22px;height:11px;border:1.5px solid currentColor;border-radius:3px;padding:1px}.sb .bat i{display:block;height:100%;width:75%;background:currentColor;border-radius:1px}
.phone .screen{top:28px}
.phone[data-dark] .sb{background:#000;color:#fff}
@media (max-width:420px){.sb{display:none}.phone .screen{top:0}html.solo .sb{display:flex}html.solo .phone .screen{top:28px}}
/* Écran isolé (?solo=…) intégré dans une étape de la page projet */
html.solo body{padding:0;display:block;background:transparent}
html.solo .phone{width:360px;height:760px;min-height:0;border-radius:0;box-shadow:none}
html.solo .below{display:none}
/* Avant de commencer */
.prep{list-style:none;display:flex;flex-direction:column;gap:16px}
.prep li{display:flex;gap:16px;align-items:center}
.prep-ill{flex:none;width:40px;height:40px;object-fit:contain}
/* Dépôt en cours, sur l'accueil */
.resume{margin:16px;padding:16px;border:1px solid var(--bord);border-radius:12px;display:flex;flex-direction:column;gap:8px}
.resume-bar{height:4px;background:var(--neutre);border-radius:2px;overflow:hidden;margin:4px 0 8px}
.resume-bar i{display:block;height:100%;background:var(--rouge)}
.resume .btn-text{color:var(--rouge)}

/* État « appui » du design system (pas de survol sur mobile) : fond #EAEAEA, rouge foncé pour le bouton principal et les liens */
.choice-big,.type-card,.radio-opt,.social,.chip,.crumb,.counter button,.tbtn,.btn,.recap-row,.suggest button,.id-row,.btn-text,.edit-link,.back,.eye,.close{transition:background-color .1s}
.choice-big:active,.type-card:active,.radio-opt:active,.check-row:active,.social:not(.social--apple):active,.chip:active,.crumb:active,.tile .tbtn:active,.recap-row:not(.todo):active,.suggest button:active,.btn-text:not([aria-disabled=true]):active,.assist .btn:active,.id-row:active,.edit-link:active,.flow-head:not(.flow-head--dark) .back:active,.eye:active,.modal-head .close:active{background:var(--neutre)}
.flow-head--dark .back:active{background:rgba(255,255,255,.16)}
.link:active,.inline-link:active{color:var(--rouge-appui)}
.counter button:not(:disabled):active{background:#DCDCDC}
button,label{-webkit-tap-highlight-color:transparent}
/* Lecture automatique (?auto) : hero de la page projet, non interactif, un doigt montre chaque geste */
html.auto .phone{pointer-events:none}
.finger{position:fixed;left:-22px;top:-22px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.35);border:2px solid rgba(255,255,255,.7);box-shadow:0 0 0 1px rgba(0,0,0,.16),0 2px 10px rgba(0,0,0,.25);opacity:0;pointer-events:none;z-index:50;transition:transform 1s cubic-bezier(.45,0,.25,1),opacity .4s;transform:translate(180px,560px)}
.finger.on{opacity:1}
.finger::after{content:"";position:absolute;inset:-2px;border-radius:50%;border:2px solid rgba(255,255,255,.7);box-shadow:0 0 0 1px rgba(0,0,0,.12);opacity:0}
.finger.down::after{animation:tap .4s ease-out}
@keyframes tap{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.8)}}
.is-pressed.choice-big,.is-pressed.type-card,.is-pressed.radio-opt,.is-pressed.check-row,.is-pressed.chip,.is-pressed.btn-text{background:var(--neutre)}
.is-pressed.btn--primary{background:var(--rouge-appui)}
.counter button.is-pressed{background:#DCDCDC}

/* Mouvement réduit : on garde les fondus (opacité seule), sans translation ni échelle ; pas de flash de capture */
@media (prefers-reduced-motion:reduce){
  @keyframes slideIn{from{opacity:0}to{opacity:1}}
  @keyframes slideBack{from{opacity:0}to{opacity:1}}
  @keyframes up{from{opacity:0}to{opacity:1}}
  @keyframes modalOut{to{opacity:0}}
  @keyframes sheetIn{from{opacity:0}to{opacity:1}}
  @keyframes sheetOut{to{opacity:0}}
  @keyframes recapIn{from{opacity:0}to{opacity:1}}
  @keyframes recapOut{to{opacity:0}}
  @keyframes toastOut{to{opacity:0}}
  @keyframes finIll{from{opacity:0}to{opacity:1}}
  @keyframes finTxt{from{opacity:0}to{opacity:1}}
  @keyframes revealIn{from{opacity:0}to{opacity:1}}
  @keyframes imgIn{from{opacity:1}to{opacity:1}}
  @keyframes dotIn{from{opacity:1}to{opacity:1}}
  .assist.loading img,.analyse img,.turn,.finger.down::after{animation:none!important}
  .flash{display:none!important}
  .progress .seg i,.crumb .ic,.capture-frame img,.selfie-zone .selfie,.scale button,.finger{transition-property:opacity,background-color,border-color,color!important}
  .capture-frame img{transform:none}
  .scale button.on{transform:none}
}

/* Visionneuse photo (lightbox, d'après « Lightbox Grid » de kokonutui, MIT) : dans l'écran du téléphone, fond sombre, commandes blanches */
.car-ph{flex:none;display:block;width:100%;height:100%;padding:0;scroll-snap-align:start;overflow:hidden}
.car-ph img{transition:filter .1s}
.car-ph:active img{filter:brightness(.88)}
.car-ph:focus-visible{outline-offset:-4px}
.tile .tview{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;transition:background-color .1s}
.tile .tview:active{background:rgba(0,0,0,.12)}
.tile .tview:focus-visible{outline-offset:-4px}
.lb-src{opacity:0}
.lb{position:absolute;inset:0;z-index:45;overflow:hidden;color:#fff;touch-action:none;-webkit-user-select:none;user-select:none}
.lb.is-leaving{pointer-events:none}
.lb-backdrop{position:absolute;inset:0;background:#000}
.lb-stage{position:absolute;overflow:hidden;transform-origin:50% 50%;will-change:transform,clip-path,opacity}
.lb-stage img{width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none}
.lb-ui{position:absolute;inset:0;pointer-events:none}
.lb-close,.lb-bar{pointer-events:auto}
.lb-close{position:absolute;top:6px;right:4px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.14);color:#fff;transition:background-color .1s}
.lb-close:active{background:rgba(255,255,255,.28)}
.lb-cap{position:absolute;left:16px;right:16px;text-align:center;font-size:14px;line-height:20px;color:rgba(255,255,255,.72);font-variant-numeric:tabular-nums}
.lb-cap b{color:#fff;font-weight:700}
.lb-bar{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;height:136px;padding:16px}
.lb-main{background:#fff;color:var(--contraste)}
.lb-main:active{background:var(--neutre)}
.lb-del{border-color:#fff;color:#fff}
.lb-del:active{background:rgba(255,255,255,.16)}
.lb :focus-visible{outline-color:#fff;box-shadow:0 0 0 2px #000}
.lb~.toast{box-shadow:0 0 0 1px rgba(255,255,255,.18)}

/* Cercle qui pulse sur l'élément clé quand la page projet envoie la démo à une étape */
.hint{position:absolute;z-index:40;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;border:3px solid var(--rouge);pointer-events:none;animation:hintPulse 1.1s var(--sortie) 3 both}
.hint--on-red{border-color:#fff}
@keyframes hintPulse{0%{opacity:0;transform:scale(.6)}30%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.5)}}
@media (prefers-reduced-motion:reduce){.hint{animation:hintFade 2.4s linear both}@keyframes hintFade{0%,80%{opacity:1}100%{opacity:0}}}

/* ?guided=1 : seul l'écran, l'appareil est dessiné par la page projet */
html.guided .phone{box-shadow:none;border-radius:0}
/* Démo intégrée (écran isolé, hero, démo guidée) : jamais de barres de défilement autour de l'écran.
   Le document dépassait d'1 px (761 px) ; avec les barres classiques de Windows, cela en affichait deux. */
html.solo,html.solo body{overflow:hidden}

/* Revue design system 22/10 : valeurs alignées sur Figma */
.field+.counter-row{margin-top:8px}
.body.auth-form{padding-top:8px;gap:24px}
.auth-form .crit,.auth-form .field+.btn-text{margin-top:-16px}
.t-s.center+.btn-text{margin-top:-12px}
.prep+.t-s{margin-top:8px}
.auth h1.t-l,.fin-txt h1.t-l{font-size:20px;line-height:28px}
.ad-sec h2.t-l{font-size:24px;line-height:32px}
.t-para{font-size:16px;line-height:26px}

/* Micro-interactions (24/10) : discrètes, au service du geste ; les illustrations 3D « ballon » se posent avec un léger rebond.
   Toutes jouent une seule fois (entrée d'écran vers l'avant, ou drapeau « une seule fois » côté JS), jamais pendant un simple nouveau rendu,
   et n'arrêtent jamais la saisie. --ressort reprend la courbe SETTLE de la visionneuse (app.js). */
:root{--ressort:cubic-bezier(.3,1.25,.5,1)}

/* 1. Illustrations qui se posent à l'arrivée sur un écran (vers l'avant seulement), légèrement décalées.
   Propriétés individuelles scale/translate : elles s'ajoutent aux transform existants (wiggle, imgIn) sans les écraser. */
@keyframes illuIn{from{opacity:0;scale:.86;translate:0 6px}to{opacity:1;scale:1;translate:0 0}}
.anim-in :is(.prep-ill,.type-card img,.choice-big img,.illu-c img,.id-row img,.tip img,.assist:not(.loading) img){animation:illuIn .3s var(--ressort) both;animation-delay:calc(60ms + var(--k,0)*35ms)}
.anim-in .analyse img{animation:illuIn .3s var(--ressort) 60ms both,wiggle 1s infinite}
.prep li:nth-child(2),.type-grid>:nth-child(2){--k:1}
.prep li:nth-child(3),.type-grid>:nth-child(3){--k:2}
.prep li:nth-child(4),.type-grid>:nth-child(4){--k:3}
.prep li:nth-child(5),.type-grid>:nth-child(5){--k:4}
.prep li:nth-child(6),.type-grid>:nth-child(6){--k:5}
.choice-big+.choice-big,.id-row+.id-row,.tip+.tip{--k:1}
.id-row+.id-row+.id-row,.tip+.tip+.tip{--k:2}

/* 2. Cartes illustrées : légère compression à l'appui, puis la carte choisie se regonfle (le rendu remplace la carte au relâché) */
.type-card,.choice-big{transition:background-color .1s,transform .16s var(--sortie)}
.type-card:active,.is-pressed.type-card{transform:scale(.97)}
.choice-big:active,.is-pressed.choice-big{transform:scale(.98)}
.type-card.just{animation:relacheCarte .26s var(--ressort) both}
.choice-big.just{animation:relacheGrande .26s var(--ressort) both}
@keyframes relacheCarte{from{transform:scale(.97)}to{transform:none}}
@keyframes relacheGrande{from{transform:scale(.98)}to{transform:none}}

/* 3. Case à cocher : la coche apparaît en grandissant (transition, réversible) ; après un nouveau rendu (Avantages), même effet par animation */
.check-row .box::after{content:"";width:10px;height:5px;border:2px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px) scale(.5);opacity:0;transition:opacity .1s,transform .18s var(--ressort)}
.check-row input:checked+.box::after{opacity:1;transform:rotate(-45deg) translate(1px,-1px)}
.check-row.ticked input:checked+.box{animation:caseOn .15s ease-out}
.check-row.ticked input:checked+.box::after{animation:coche .18s var(--ressort)}
.check-row.ticked+.av-sub{animation:revealIn .22s var(--sortie) both}
@keyframes caseOn{from{background-color:transparent;border-color:var(--texte)}}
@keyframes coche{from{opacity:0;transform:rotate(-45deg) translate(1px,-1px) scale(.5)}}

/* 4. Compteur : le nouveau chiffre arrive du bas (+) ou du haut (−) */
.counter output.bump-up{animation:compteHaut .18s var(--sortie)}
.counter output.bump-down{animation:compteBas .18s var(--sortie)}
@keyframes compteHaut{from{opacity:0;transform:translateY(6px)}}
@keyframes compteBas{from{opacity:0;transform:translateY(-6px)}}

/* 5. Photo envoyée : le voile flou de l'envoi se lève (au lieu d'un fondu depuis le vide) */
.tile.fade-in{animation:none}
.tile.fade-in img{animation:devoile .3s var(--sortie) both}
@keyframes devoile{from{filter:blur(6px) brightness(.65);transform:scale(1.08)}to{filter:none;transform:none}}

/* 6. Fin du dépôt : l'étape « Vérification en cours » respire trois fois, une fois le texte posé */
.timeline li.cur .dot{position:relative}
.timeline li.cur .dot::before{content:"";position:absolute;inset:-2px;border-radius:inherit;border:2px solid var(--rouge);opacity:0;pointer-events:none;animation:enCours 1.6s var(--sortie) .9s 3}
@keyframes enCours{from{opacity:.6;transform:scale(1)}to{opacity:0;transform:scale(1.9)}}

/* Mouvement réduit : pas d'échelle ni de translation ; on garde les fondus et les changements de couleur */
@media (prefers-reduced-motion:reduce){
  .anim-in :is(.prep-ill,.type-card img,.choice-big img,.illu-c img,.id-row img,.tip img,.assist:not(.loading) img){animation:none}
  .type-card,.choice-big{transition:background-color .1s}
  .type-card:active,.is-pressed.type-card,.choice-big:active,.is-pressed.choice-big{transform:none}
  .type-card.just,.choice-big.just{animation:none}
  .check-row .box::after{transform:rotate(-45deg) translate(1px,-1px);transition:opacity .1s}
  @keyframes coche{from{opacity:0}}
  @keyframes compteHaut{from{opacity:0}}
  @keyframes compteBas{from{opacity:0}}
  @keyframes devoile{from{filter:blur(6px) brightness(.65)}to{filter:none}}
  .timeline li.cur .dot::before{animation:none}
}

/* Carte à préparer (DS commun 24/10) : liste dans une carte bordée */
.prep{padding:16px;border:1px solid var(--bord);border-radius:12px}

/* Recadrage d'une photo (27/10) : cadre fixe 4:3, la photo glisse et se zoome dessous */
.lb-row{display:flex;gap:8px}
.lb-row .btn{flex:1;min-width:0}
.crop{position:absolute;inset:0;z-index:46;display:flex;flex-direction:column;background:#000;color:#fff;-webkit-user-select:none;user-select:none}
.crop-head{position:relative;height:56px;display:flex;align-items:center;justify-content:center;flex:none}
.crop-head h2{font-size:18px;line-height:24px;font-weight:700}
.crop-head .lb-close{left:4px;right:auto}
.crop-stage{position:relative;flex:1;display:grid;place-items:center;overflow:hidden;touch-action:none;cursor:grab}
.crop-stage.is-grab{cursor:grabbing}
.crop-stage:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.crop-frame{position:relative;width:calc(100% - 32px);aspect-ratio:4/3}
.crop-frame img{width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none;transform-origin:50% 50%}
.crop-grid{position:absolute;inset:0;border:1px solid #fff;border-radius:12px;box-shadow:0 0 0 999px rgba(0,0,0,.62);pointer-events:none;
  background:linear-gradient(90deg,transparent calc(33.33% - .5px),rgba(255,255,255,.35) calc(33.33% - .5px),rgba(255,255,255,.35) calc(33.33% + .5px),transparent calc(33.33% + .5px),transparent calc(66.66% - .5px),rgba(255,255,255,.35) calc(66.66% - .5px),rgba(255,255,255,.35) calc(66.66% + .5px),transparent calc(66.66% + .5px)),
  linear-gradient(transparent calc(33.33% - .5px),rgba(255,255,255,.35) calc(33.33% - .5px),rgba(255,255,255,.35) calc(33.33% + .5px),transparent calc(33.33% + .5px),transparent calc(66.66% - .5px),rgba(255,255,255,.35) calc(66.66% - .5px),rgba(255,255,255,.35) calc(66.66% + .5px),transparent calc(66.66% + .5px))}
.crop-stage.is-grab .crop-grid{border-color:rgba(255,255,255,.9)}
.crop-hint{flex:none;padding:0 16px;text-align:center;font-size:14px;line-height:20px;color:rgba(255,255,255,.72)}
.crop-zoom{flex:none;display:flex;align-items:center;gap:12px;height:44px;margin:8px 16px 0;color:#fff}
.crop-zoom input{flex:1;accent-color:#fff;height:44px;margin:0}
.crop .lb-bar{position:static;height:auto;flex:none}
