/* SeLoger · dossier de location · ce qui est propre au parcours (Figma ZzJqOsANgxxz1KcnEPKeBS, pages 1:11 à 1:13).
   Les composants communs (boutons, champs, cases, compteur, toast, téléphone) viennent de ../../seloger/demo-parcours/style.css. */
:root{--violet-1:#5B6DB9;--violet-2:#9686C2;--encart:linear-gradient(127deg,var(--violet-1),var(--violet-2))}

/* Formulaires : valeur saisie en 18/26 (feuille commune) ; la liste déroulante suit */
.input.is-off{background:var(--neutre);border-color:#DADADA;color:var(--texte-off)}
.field.is-off label{color:var(--texte-off)}
.input select{flex:1;min-width:0;height:100%;border:0;outline:0;background:none;font:inherit;font-size:18px;line-height:26px;color:inherit;-webkit-appearance:none;appearance:none;cursor:pointer}
.input:has(select){position:relative}
.input:has(select) .ic{pointer-events:none}
.input .flag{display:flex;align-items:center;gap:8px;align-self:stretch;margin-left:-16px;padding:0 16px;border-right:1px solid var(--bord-champ)}
.input .flag i{width:8px;height:16px;border-radius:2px;background:linear-gradient(90deg,#002395 33%,#fff 33% 66%,#ED2939 66%);box-shadow:0 0 0 .5px rgba(0,0,0,.5)}
.input.tel{gap:16px}

/* Barre retour et fermer (48 px) + barre de progression en 4 rubriques */
.bar{flex:none;height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:var(--page)}
.bar button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;margin:0 -12px}
.bar .sp{flex:1}
.prog{flex:none;height:4px;display:flex;gap:2px}
.prog span{flex:1;background:var(--neutre);overflow:hidden}
.prog i{display:block;height:100%;background:var(--rouge);transform-origin:left center;transition:transform .4s var(--sortie)}

/* Parcours / En-tête d'étape : illustration 56, puis Étape n sur 4, titre, phrase */
.step-head{padding:24px 16px 0;display:flex;flex-direction:column}
.step-head img{width:56px;height:56px;object-fit:contain;object-position:left center;margin-bottom:16px}
.step-head .n{font-size:14px;line-height:20px;color:var(--texte-2)}
.step-head h1{font-size:20px;line-height:28px;font-weight:700;margin:8px 0}
.step-head p{font-size:16px;line-height:24px;color:var(--texte-2)}
.content{padding:32px 16px 24px;display:flex;flex-direction:column;gap:32px}
.block{display:flex;flex-direction:column;gap:16px}
.block>h2{font-size:18px;line-height:24px;font-weight:700}
.fields{display:flex;flex-direction:column;gap:24px}

/* Option radio compacte (3 sur une ligne) */
.compact{display:flex;flex-wrap:wrap;gap:8px}
.compact label{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;white-space:nowrap;cursor:pointer;transition:border-color .15s}
.compact input{position:absolute;opacity:0}
.compact .radio{border-color:var(--texte-off)}
.compact label:has(input:checked){border-color:var(--rouge)}
.compact input:checked~.radio{border:2px solid var(--rouge)}
.compact input:checked~.radio::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--rouge);animation:dotIn .16s var(--sortie) both}
.compact input:focus-visible~.radio{outline:2px solid var(--focus);outline-offset:2px}

/* Compteur v2 (Nombre d'enfants, Nombre de colocataires) */
.count-f{display:flex;flex-direction:column;gap:8px;align-items:flex-start;font-size:16px;line-height:24px}
.counter{gap:8px}
.counter output{min-width:24px}
.counter button[data-a="dec"]{background:var(--subtil)}
.counter button:disabled{opacity:1;color:var(--texte-off)}

/* Montant + corbeille ; Lien d'ajout */
.amount{display:flex;gap:12px;align-items:flex-end}
.amount .field{flex:1}
.amount .del{width:44px;height:56px;margin-right:-10px;display:grid;place-items:center}
.add-link{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;min-height:44px;padding:4px 0;font-size:16px;line-height:24px;font-weight:500}
.add-link .ic{width:20px;height:20px}

/* Zone de texte */
.textarea textarea{height:160px;min-height:160px;padding:12px 16px;line-height:26px}
.ta-count{margin-top:8px;font-size:12px;line-height:16px;color:var(--texte-2)}

/* Cartes : Pourquoi, Ce qu'il vous faut (Contenu/Carte à préparer), réassurance, Visale */
.card{padding:16px;border:1px solid var(--bord);border-radius:12px;display:flex;flex-direction:column;gap:12px}
.card h2{font-size:18px;line-height:24px;font-weight:700}
.card>p{font-size:16px;line-height:24px;color:var(--texte-2)}
.card-prep{gap:16px}
.card-prep .prep{padding:0;border:0}
.reassure{display:flex;align-items:center;gap:12px;padding:16px;border-radius:12px;background:var(--info);font-size:14px;line-height:20px}
.reassure img{width:32px;height:32px;flex:none}
.visale{display:flex;gap:12px;padding:16px;border-radius:12px;background:var(--info)}
.visale img{width:48px;height:48px;flex:none}
.visale div{display:flex;flex-direction:column;gap:4px}
.visale p{font-size:14px;line-height:20px;color:var(--texte-2)}
.visale button{align-self:flex-start;font-size:14px;line-height:20px;font-weight:700;text-decoration:underline;min-height:24px}

/* Accueil du parcours depuis une annonce */
.welcome{padding:24px 16px 24px;display:flex;flex-direction:column;gap:16px}
.welcome>img{width:120px;height:120px}
.welcome h1{font-size:20px;line-height:28px;font-weight:700}

/* Annonce : formulaire de contact */
.listing{display:flex;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--sep)}
.listing img{width:72px;height:56px;border-radius:8px;object-fit:cover;flex:none}
.listing b{display:block;font-size:16px;line-height:24px}
.listing span{font-size:14px;line-height:20px;color:var(--texte-2)}
.contact{padding:24px 16px 32px;display:flex;flex-direction:column;gap:24px}
.contact>h1{font-size:16px;line-height:24px;font-weight:700}
.advertiser{display:flex;align-items:center;gap:12px}
.advertiser .av{width:48px;height:48px;border-radius:50%;background:var(--neutre);display:grid;place-items:center;font-weight:500;color:var(--texte-2);flex:none}
.advertiser b{display:block;font-size:16px;line-height:24px}
.advertiser span{display:block;font-size:14px;line-height:20px;color:var(--texte-2)}
.advertiser small{display:block;font-size:12px;line-height:16px;color:var(--texte-2)}
.sep{height:1px;background:var(--sep)}
.contact .fields{gap:16px}
.msg-link{display:flex;gap:8px;font-size:14px;line-height:20px;font-weight:500;align-self:flex-start;min-height:24px}
.msg-link span{font-weight:400;color:var(--texte-2)}
.legal{font-size:12px;line-height:16px;color:var(--texte-2)}
.contact .check-row{min-height:48px}

/* Autopromo / Encart dossier (dégradé violet) */
.encart{display:flex;justify-content:space-between;align-items:center;padding:12px;border-radius:12px;background:var(--encart);color:#fff}
.encart>div{display:flex;flex-direction:column;gap:8px;max-width:237px}
.encart b{font-size:16px;line-height:24px}
.encart p{font-size:14px;line-height:20px}
.encart button{align-self:flex-start;margin-top:8px;height:48px;padding:0 20px;border-radius:24px;background:#fff;color:var(--texte);font-weight:500;font-size:16px}
.encart img{width:80px;height:72px;flex:none}

/* Formulaires / Dossier joint : état Joint (dégradé) ou Non joint (gris) */
.joint{display:flex;align-items:center;gap:12px;padding:16px;border-radius:12px;background:var(--encart);color:#fff;transition:background-color .2s}
.joint>div{flex:1;display:flex;flex-direction:column;gap:8px}
.joint b{font-size:16px;line-height:24px}
.joint p{font-size:14px;line-height:20px}
.joint button{align-self:flex-start;font-size:14px;line-height:20px;font-weight:700;text-decoration:underline;color:inherit;min-height:24px}
.joint img{width:72px;height:72px;flex:none}
.joint.off{background:var(--subtil);color:var(--texte);border:1px solid var(--bord);padding:15px}
.joint.off img{width:48px;height:48px;order:-1}
.joint.off>div{gap:2px}
.joint.off p{color:var(--texte-2)}
.joint.off button{color:var(--rouge);order:2;align-self:center}

/* Fin : dossier créé, dossier envoyé */
.done{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px 16px 16px;gap:24px}
.done img{width:150px;height:156px}
.done.created{padding-top:88px;gap:32px}
.done.created img{width:115px;height:120px}
.done h1{font-size:20px;line-height:28px;font-weight:700;margin-bottom:12px}
.done.sent h1{margin-bottom:8px}
.done p{font-size:16px;line-height:24px;color:var(--texte-2)}
.done.sent p{color:var(--texte)}
.done .info-box{text-align:left;width:100%}
.done .info-box button{font-weight:700;text-decoration:underline;font-size:14px}

/* Micro-interactions propres au dossier : discrètes, une seule fois, jamais pendant la saisie */
.anim-in :is(.step-head img,.welcome>img,.card-prep .prep-ill,.reassure img,.visale img){animation:illuIn .3s var(--ressort) both;animation-delay:calc(60ms + var(--k,0)*35ms)}
.anim-in .done img{animation:posee .5s var(--ressort) 80ms both}
@keyframes posee{from{opacity:0;scale:.7;translate:0 12px}to{opacity:1;scale:1;translate:0 0}}
.anim-in .done :is(h1,p,.info-box){animation:finTxt .3s var(--sortie) both;animation-delay:calc(220ms + var(--i,0)*60ms)}
.joint.swap{animation:jointIn .32s var(--ressort) both}
.joint.swap img{animation:illuIn .32s var(--ressort) 60ms both}
@keyframes jointIn{from{opacity:.4;scale:.97}to{opacity:1;scale:1}}
.reveal{animation:revealIn .24s var(--sortie) both}
@keyframes revealIn{from{opacity:0;translate:0 -6px}to{opacity:1;translate:0 0}}
@media (prefers-reduced-motion:reduce){
  .anim-in :is(.step-head img,.welcome>img,.card-prep .prep-ill,.reassure img,.visale img),.anim-in .done img,.joint.swap img{animation:none}
  .joint.swap,.reveal{animation:fade .2s both}
  .anim-in .done :is(h1,p,.info-box){animation:fade .2s both}
  .prog i{transition:none}
}
/* Illustrations 3D : détourées au plus près, posées dans le cadre du Figma sans déformation */
:is(.welcome>img,.reassure img,.visale img,.encart img,.joint img,.done img){object-fit:contain}

/* ---------- Côté propriétaire : candidatures (Figma 29:4), filtres (162:529), fiche candidat (29:772) ---------- */
:root{--tag-neutre:#FDF2E4;--tag-neutre-t:#323232;--tag-foyer:#F4F4FF;--tag-foyer-t:#3D438F;--tag-emploi:#EAF2FC;--tag-emploi-t:#1D4E89;--tag-revenus:#E6F4EA;--tag-revenus-t:#0B5A2E;--tag-garant:#FFF3DC;--tag-garant-t:#7A4B00}
.av-s{width:28px;height:28px;border-radius:50%;background:var(--neutre);display:grid;place-items:center;font-size:11px;font-weight:500;color:var(--texte-2)}
.own{padding:24px 16px 96px;display:flex;flex-direction:column;gap:16px}
.back-l{display:inline-flex;align-items:center;gap:4px;font-size:14px;line-height:20px;font-weight:500;min-height:24px;align-self:flex-start}
.own-t{display:flex;flex-direction:column;gap:8px}
.own-t h1{font-size:20px;line-height:28px;font-weight:700}
.own-t p{font-size:14px;line-height:20px;color:var(--texte-2)}
.tabs{display:flex;gap:24px;border-bottom:1px solid var(--sep)}
.tabs button{padding:12px 0;font-size:14px;line-height:20px;color:var(--texte-2);border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs [aria-selected="true"]{color:var(--texte);font-weight:500;border-color:var(--texte)}
.compteur,.vide{font-size:14px;line-height:20px;color:var(--texte-2)}
.cdts{display:flex;flex-direction:column;gap:12px}
.cdt{padding:16px;border:1px solid var(--bord);border-radius:12px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.cdt-h{display:flex;align-items:center;gap:8px;width:100%}
.cdt-h .dot{width:8px;height:8px;border-radius:50%;background:var(--rouge);flex:none}
.cdt-n{flex:1;text-align:left;font-size:16px;line-height:24px;font-weight:700}
.cdt-n::after{content:"";position:absolute;inset:0}
.cdt{position:relative}
.cdt-h .hit{position:relative;z-index:1;width:32px;height:32px;display:grid;place-items:center;margin:-6px -6px -6px 0;color:var(--texte)}

.badge-dc{display:inline-flex;align-items:center;gap:4px;padding:4px 8px 4px 6px;border-radius:4px;background:var(--contraste);color:#fff;font-size:12px;line-height:16px;font-weight:500}
.infos{display:flex;flex-wrap:wrap;gap:12px}
.infos>div{width:140px;display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.infos dt{font-size:12px;line-height:16px;color:var(--texte-2)}
.ctag{display:inline-block;padding:4px 8px;border-radius:4px;font-size:14px;line-height:20px;background:var(--tag-neutre);color:var(--tag-neutre-t)}
.ctag--foyer{background:var(--tag-foyer);color:var(--tag-foyer-t)}
.ctag--emploi{background:var(--tag-emploi);color:var(--tag-emploi-t)}
.ctag--revenus{background:var(--tag-revenus);color:var(--tag-revenus-t)}
.ctag--garant{background:var(--tag-garant);color:var(--tag-garant-t)}
.cdt-m{width:100%;font-size:14px;line-height:20px;color:var(--texte-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cdt-t{font-size:12px;line-height:16px;color:var(--texte-2)}
.fab{position:absolute;right:16px;bottom:24px;height:48px;padding:0 24px;box-shadow:0 4px 12px rgba(0,0,0,.08);z-index:2;gap:8px}
.fab b{min-width:20px;height:20px;border-radius:10px;background:#fff;color:var(--rouge);font-size:12px;display:grid;place-items:center}

/* Tiroir de filtres */
.voile{position:absolute;inset:0;background:rgba(0,0,0,.5);z-index:5}
.drawer{position:absolute;left:0;right:0;bottom:0;top:64px;z-index:6;background:var(--page);border-radius:16px 16px 0 0;padding:8px 16px 0;display:flex;flex-direction:column;gap:16px}
.voile.in{animation:fade .2s both}
.drawer.in{animation:drawerIn .32s var(--sortie) both}
@keyframes drawerIn{from{translate:0 100%}to{translate:0 0}}
.handle{align-self:center;width:40px;height:4px;border-radius:2px;background:var(--neutre)}
.dr-h{display:flex;justify-content:space-between;align-items:center}
.dr-h h2{font-size:20px;line-height:28px;font-weight:700}
.dr-h button{font-size:14px;line-height:20px;text-decoration:underline;min-height:24px}
.dr-b{flex:1;overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column}
.dr-n{font-size:14px;line-height:20px;color:var(--texte-2);margin-bottom:4px}
.acc{padding:12px 0;border-bottom:1px solid var(--sep)}
.acc .check-row{min-height:24px}
.acc-h{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;min-height:44px}
.acc-h>span{display:flex;flex-direction:column}
.acc-h b{font-size:16px;line-height:24px}
.acc-h span span{font-size:14px;line-height:20px;color:var(--texte-2)}
.acc-h span span.on{color:var(--rouge)}
.acc-b{display:flex;flex-direction:column;gap:8px;padding-top:8px;animation:revealIn .2s var(--sortie) both}
.dr-f{padding:24px 0;padding-bottom:max(24px,env(safe-area-inset-bottom));border-top:1px solid var(--sep);margin:0 -16px;padding-left:16px;padding-right:16px}

/* Fiche candidat */
.fiche{padding:24px 16px 32px;display:flex;flex-direction:column;gap:32px}
.fi-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:-16px}
.fi-top .hit{width:44px;height:44px;display:grid;place-items:center;margin:-10px}
.ident{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.ident h1{font-size:20px;line-height:28px;font-weight:700}
.recu{font-size:12px;line-height:16px;color:var(--texte-2)}
.ident>p{font-size:14px;line-height:20px}
.tags{display:flex;flex-wrap:wrap;gap:8px}
.fsec{display:flex;flex-direction:column;gap:16px}
.fsec h2{font-size:18px;line-height:24px;font-weight:700}
.fsec>p{font-size:16px;line-height:24px}
.fsec .sub{font-size:14px;line-height:20px;color:var(--texte-2);margin-top:4px}
.icard,.rcard{border:1px solid var(--sep);border-radius:12px;overflow:hidden}
.inds{display:flex}
.ind{flex:1;padding:16px;display:flex;flex-direction:column;gap:4px}
.ind+.ind{border-left:1px solid var(--sep)}
.ind img{height:40px;width:auto;align-self:flex-start;object-fit:contain;margin-bottom:4px}
.ind .l,.ipres .l{font-size:14px;line-height:20px;font-weight:500}
.ind .v{font-size:18px;line-height:24px;font-weight:700}
.ind .nt{font-size:12px;line-height:16px;color:var(--texte-2)}
.ipres{padding:16px;border-top:1px solid var(--sep);display:flex;flex-direction:column;gap:4px;font-size:16px;line-height:24px}
.rh{padding:16px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.rh b{font-size:16px;line-height:24px}
.rl{width:100%;display:flex;align-items:center;gap:8px;padding:14px 16px;border-top:1px solid var(--sep);font-size:14px;line-height:20px;text-align:left}
.rl b{margin-left:auto;font-weight:500}
.fi-actions{border-top:1px solid var(--sep);padding:12px 16px 16px}
.anim-in .ind img{animation:illuIn .3s var(--ressort) both;animation-delay:calc(80ms + var(--k,0)*40ms)}
@media (prefers-reduced-motion:reduce){.drawer.in,.voile.in{animation:fade .2s both}.anim-in .ind img{animation:none}}

/* Hero de la page projet : la candidature arrive en tête de liste chez le propriétaire */
.cdt.is-new{animation:cdtIn .6s var(--ressort) both}
.cdt.is-new::before{content:"";position:absolute;inset:-1px;border-radius:12px;box-shadow:0 0 0 2px var(--rouge);opacity:0;animation:cdtRing 2.4s ease-out .2s both;pointer-events:none}
@keyframes cdtIn{from{opacity:0;translate:0 -16px;scale:.97}to{opacity:1;translate:0 0;scale:1}}
@keyframes cdtRing{0%{opacity:0}12%{opacity:1}70%{opacity:1}100%{opacity:0}}
html.hero-mode .fab{display:none}
@media (prefers-reduced-motion:reduce){.cdt.is-new,.cdt.is-new::before{animation:none}}

/* Landing du dossier (Figma 67:9023) : bandeau ciel et maison, carte de création */
.landing{min-height:620px;padding:32px 16px;background:#d6f9fc url(img/landing_bandeau.webp) center top/360px 620px no-repeat}
.land-card{display:flex;flex-direction:column;padding:24px 16px;border-radius:12px;background:var(--page);box-shadow:var(--ombre)}
.land-card h1{font-size:20px;line-height:28px;font-weight:700;text-align:center}
.land-sub{margin-top:2px;font-size:18px;line-height:26px;color:var(--texte-2);text-align:center}
.land-card h2{margin:24px 0 12px;font-size:18px;line-height:24px;font-weight:700}
.land-card .btn{margin-top:24px}

/* Mon dossier, vu par le locataire (Figma 197:27214) : la fiche que lit le propriétaire, avec « Modifier » par rubrique */
.mon-dossier{gap:24px}
.pg-head{display:flex;align-items:center;gap:16px}
.pg-head img{width:56px;height:auto;flex:none}
.pg-head h1{font-size:24px;line-height:32px;font-weight:700}
.ident-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%}
.ident-n{font-size:20px;line-height:28px;font-weight:700}
.mon-dossier .fsec{gap:12px}
.rub{display:flex;align-items:center;justify-content:space-between;gap:16px}
.rub h2{font-size:18px;line-height:24px;font-weight:700}
.lnk-mod,.lnk-del{position:relative;font-size:14px;line-height:20px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.lnk-mod::after{content:"";position:absolute;inset:-12px -8px}
.lnk-del{align-self:flex-start;font-size:16px;line-height:24px;font-weight:500;min-height:44px}
.coords{font-size:14px;line-height:22px}
.mon-dossier .rl{cursor:default}

/* Robustesse (audit 25/10) : textes longs, 200 %, montants */
.ident>p,.coords{overflow-wrap:anywhere;min-width:0}
.toast span{min-width:0;overflow-wrap:anywhere}
.btn{height:auto;min-height:48px;padding-block:12px;white-space:normal;text-align:center}
.btn--small{min-height:32px;padding-block:6px}
.tabs{overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{flex:none}
.amount .field{min-width:0}
.ident-h{flex-wrap:wrap}
.recu{flex:none;white-space:nowrap}
.cdt-h{align-items:flex-start}
.cdt-h .dot{margin-top:8px}
td .ctag--revenus{white-space:nowrap}
html.hero-mode .btn{transition:background-color .2s,transform .16s}
