/* KYPER Estate, vente : écrans de l'agence (accueil, biens, fiche, affaires, agenda, acquéreurs, offres). Couleurs = rôles du thème (--k-*), aucune couleur d'agence codée en dur.
   Auteur : SynthiA-ZRS (rédigé par Claude, session estate-dynasty), 29.11.2026. Maquettes validées par Damien le 29.11.2026. */
#estate-view{--e-fond:var(--k-fond,#F6F4EF);--e-surf:var(--k-surface,#FFFFFF);--e-douce:var(--k-surface-douce,#F1EEE7);--e-txt:var(--k-texte,#272626);--e-doux:var(--k-texte-doux,#66625C);--e-bord:var(--k-bordure,#E5E0D6);--e-btn:var(--k-bouton,#272626);--e-tbtn:var(--k-texte-bouton,#FFFFFF);--e-acc:var(--k-accent,#272626);--e-tacc:var(--k-texte-accent,#FFFFFF);--e-acc3:var(--k-accent-3,#F1EEE7);--e-ok:#1E6B3A;--e-okf:#E6F2EA;--e-att:#8A5300;--e-attf:#FFF1D9;--e-inf:#2E5675;--e-inff:#E8EFF5;color:var(--e-txt);font-variant-numeric:tabular-nums}
#estate-view *{box-sizing:border-box}
.est-top{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:0 0 20px}
.est-top h2{font-size:24px;margin:0 0 4px;letter-spacing:-.01em}
.est-sub{color:var(--e-doux);margin:0}
.est-acts{display:flex;gap:10px;flex-wrap:wrap}
#estate-view .est-btn{box-shadow:none;width:auto;height:44px;align-self:flex-end;background:var(--e-btn);color:var(--e-tbtn);border:0;border-radius:12px;padding:10px 18px;font:inherit;font-weight:600;cursor:pointer;min-height:44px}
#estate-view .est-btn2{box-shadow:none;width:auto;height:44px;align-self:flex-end;background:var(--e-surf);color:var(--e-txt);border:1px solid var(--e-doux);border-radius:12px;padding:9px 16px;font:inherit;cursor:pointer;min-height:44px}
#estate-view .est-lien{box-shadow:none;width:auto;height:auto;min-height:0;background:none;border:0;padding:0;font:inherit;font-weight:600;color:var(--e-txt);text-decoration:underline;text-decoration-color:var(--e-acc);text-underline-offset:3px;cursor:pointer}
.est-grid{display:grid;gap:18px}.est-g4{grid-template-columns:repeat(4,minmax(0,1fr))}.est-g3{grid-template-columns:repeat(3,minmax(0,1fr))}.est-g2{grid-template-columns:minmax(0,1.8fr) minmax(0,1fr)}
.est-grid>*{min-width:0}
.est-card{background:var(--e-surf);border:1px solid var(--e-bord);border-radius:14px;padding:20px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.est-ch{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.est-ch h3{margin:0;font-size:16px}
.est-kpi b{display:block;font-size:28px;line-height:1.1}
.est-kpi span{color:var(--e-doux);font-size:13.8px}
.est-kpi{border-top:3px solid var(--e-acc)}
.est-tw{overflow-x:auto}
#estate-view table{width:100%;border-collapse:collapse}
#estate-view th{text-align:left;font-size:13.8px;color:var(--e-doux);font-weight:600;padding:10px 12px;border-bottom:1px solid var(--e-bord);white-space:nowrap}
#estate-view td{padding:12px;border-bottom:1px solid var(--e-douce);vertical-align:middle}
.est-t{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:3px 10px;font-size:13.8px;font-weight:600;white-space:nowrap;background:var(--e-douce);color:var(--e-doux)}
.est-t.ok{background:var(--e-okf);color:var(--e-ok)}.est-t.att{background:var(--e-attf);color:var(--e-att)}.est-t.inf{background:var(--e-inff);color:var(--e-inf)}
.est-prop{padding:0;overflow:hidden;cursor:pointer;text-align:left;font:inherit;color:inherit}
.est-ph{height:150px;background:radial-gradient(120% 90% at 30% 20%,#4A4743,#2F2D2A 55%,#1F1E1C);color:#FFFDFA;display:flex;align-items:flex-end;padding:10px;font-size:13.8px;position:relative}
.est-ph .est-t{position:absolute;top:10px;left:10px}
.est-pb{padding:14px 16px 16px}
.est-px{font-size:18px;font-weight:700}
.est-pl{color:var(--e-doux);font-size:13.8px}
.est-pf{display:flex;justify-content:space-between;margin-top:10px;padding-top:10px;border-top:1px solid var(--e-douce);font-size:13.8px;color:var(--e-doux)}
.est-kan{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.est-col{background:var(--e-douce);border-radius:14px;padding:10px;min-height:120px}
.est-col h3{font-size:13.8px;margin:2px 4px;display:flex;justify-content:space-between}
.est-col small{display:block;color:var(--e-doux);margin:0 4px 8px;font-size:13.8px}
.est-kc{background:var(--e-surf);border:1px solid var(--e-bord);border-radius:12px;padding:10px;margin-bottom:8px;font-size:13.8px}
.est-kc b{display:block}
.est-kc select{margin-top:8px}
.est-match{height:8px;border-radius:999px;background:var(--e-douce);overflow:hidden;width:90px}
.est-match span{display:block;height:100%;background:var(--e-acc)}
.est-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}
.est-form label{display:flex;flex-direction:column;gap:6px;font-size:13.8px;font-weight:600}
.est-form .large{grid-column:1/-1}
#estate-view input,#estate-view select,#estate-view textarea{font:inherit;border:1px solid var(--e-doux);border-radius:12px;padding:9px 12px;background:var(--e-surf);color:var(--e-txt);width:100%;min-height:44px}
.est-note{font-size:13.8px;color:var(--e-doux);margin:12px 0 0}
.est-erreur{color:#A12626;font-weight:600}
.est-vide{color:var(--e-doux);padding:18px;text-align:center;border:1px dashed var(--e-bord);border-radius:12px}
.est-jour{border-left:3px solid var(--e-acc);padding:8px 12px;margin-bottom:8px;background:var(--e-surf);border-radius:8px}
@media(max-width:1100px){.est-g4{grid-template-columns:repeat(2,minmax(0,1fr))}.est-g3{grid-template-columns:repeat(2,minmax(0,1fr))}.est-kan{grid-template-columns:repeat(6,minmax(200px,1fr));overflow-x:auto}}
@media(max-width:700px){.est-g4,.est-g3,.est-g2,.est-form{grid-template-columns:minmax(0,1fr)}#estate-view table{min-width:560px}}

#estate-view .est-tabs{display:flex;gap:4px;border-bottom:1px solid var(--e-bord);margin:0 0 18px;overflow-x:auto}
#estate-view .est-tab{box-shadow:none;border-radius:0;width:auto;height:auto;border-top:0;border-left:0;border-right:0;background:none;border:0;border-bottom:3px solid transparent;padding:10px 14px;font:inherit;font-weight:500;color:var(--e-doux);cursor:pointer;white-space:nowrap;min-height:44px}
#estate-view .est-tab.on{color:var(--e-txt);border-bottom-color:var(--e-acc);font-weight:700}

.est-sem{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;overflow-x:auto}
@media(max-width:1100px){.est-sem{grid-template-columns:repeat(7,minmax(150px,1fr))}}
.est-jr{background:var(--e-douce);border-radius:12px;padding:8px;min-height:120px;display:flex;flex-direction:column;gap:6px}
.est-jr.auj{box-shadow:inset 0 3px 0 var(--e-acc);background:var(--e-acc3)}
.est-jh{font-weight:700;display:flex;justify-content:space-between;align-items:baseline}
.est-jh small{color:var(--e-doux);font-weight:400;font-size:13.8px}
.est-rien{color:var(--e-doux);font-size:13.8px}
.est-ev{background:var(--e-surf);border:1px solid var(--e-bord);border-left:4px solid var(--e-acc);border-radius:8px;padding:6px 8px;display:flex;flex-direction:column;gap:2px;font-size:13.8px}
.est-ev.estimation{border-left-color:var(--e-doux)}.est-ev.signature{border-left-color:var(--e-txt)}
.est-ev em{font-style:normal;color:var(--e-doux)}
.est-ev select{min-height:36px;padding:4px 8px;margin-top:4px;font-size:13.8px}
.est-legende{display:flex;gap:14px;font-size:13.8px;color:var(--e-doux)}
.est-legende i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;background:var(--e-acc)}
.est-legende i.estimation{background:var(--e-doux)}.est-legende i.signature{background:var(--e-txt)}

/* remplace les styles en ligne (interdits par la politique de sécurité du serveur) */
#estate-view .est-m0{margin:0}#estate-view .est-mt18{margin-top:18px}#estate-view .est-mt14{margin-top:14px}
#estate-view .est-chk{width:auto;min-height:0}#estate-view .est-w240{max-width:240px}
#estate-view .est-h2fiche{margin:0 0 4px;font-size:22px}#estate-view .est-droite{justify-content:flex-end}
#estate-view .est-phgrand{height:200px;border-radius:14px}
#estate-view .est-fcom{grid-template-columns:1fr auto;align-items:end;margin:0}
#estate-view .est-petit{font-size:13.8px}#estate-view .est-doux{color:var(--e-doux)}
#estate-view .est-labrow{flex-direction:row;align-items:center;gap:10px}
#estate-view .est-img{width:100%;object-fit:cover;border-radius:12px;display:block}
#estate-view .est-fond{background-size:cover;background-position:center}
#estate-view{background:transparent;border:0;box-shadow:none;padding:0}
#estate-view .est-score{display:flex;align-items:center;gap:8px}

#estate-view .est-palettes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
#estate-view .est-palette{background:var(--e-surf);border:1px solid var(--e-bord);border-radius:12px;padding:10px;text-align:left;font:inherit;color:var(--e-txt);cursor:pointer;display:flex;flex-direction:column;gap:8px;min-height:44px;height:auto;box-shadow:none}
#estate-view .est-palette[aria-pressed="true"]{border-color:var(--e-txt);box-shadow:0 0 0 2px var(--e-acc)}
#estate-view .est-pastilles{display:flex;height:34px;border-radius:8px;overflow:hidden}
#estate-view .est-pastille{flex:1}
#estate-view .est-jr.auj .est-jh small{color:var(--e-txt)}

#estate-view .est-per{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
@media(max-width:700px){#estate-view .est-per{grid-template-columns:minmax(0,1fr)}}
#estate-view textarea{min-height:160px;line-height:1.5}

#estate-view .est-prepa{margin-bottom:18px;border-left:4px solid var(--e-acc)}
#estate-view .est-prepa-liste{list-style:none;margin:0;padding:0}
#estate-view .est-prepa-liste li{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--e-douce);flex-wrap:wrap}
#estate-view .est-prepa-n{width:32px;height:32px;border-radius:50%;background:var(--e-douce);display:grid;place-items:center;font-weight:700;flex:none}
#estate-view .est-prepa-liste li.fait .est-prepa-n{background:var(--e-okf);color:var(--e-ok)}
#estate-view .est-prepa-t{flex:1;min-width:200px;display:flex;flex-direction:column}
#estate-view .est-btn2[aria-pressed="true"]{background:var(--e-acc);color:var(--e-tacc);border-color:var(--e-acc)}
#estate-view .est-acts{flex-wrap:wrap}
.est-t.bad{background:#FBE5E5;color:#8A1F1F}

/* Connexion et bienvenue d'une agence (métier immobilier) : panneau sombre aux couleurs de la navigation, logo lisible, bouton lisible. Ne touche aucun autre métier. */
html[data-marque="client"][data-metier="immobilier"][data-marque-variante="atelier"] .login-brand{background:var(--k-navigation);color:var(--k-texte-navigation)}
html[data-marque="client"][data-metier="immobilier"][data-marque-variante="atelier"] .login-brand h1{color:var(--k-texte-navigation)}
html[data-marque="client"][data-metier="immobilier"][data-marque-variante="atelier"] .login-brand p{color:var(--k-texte-navigation);opacity:.82}
html[data-marque="client"][data-metier="immobilier"][data-marque-variante="atelier"] .login-form button.primary{background:var(--k-bouton);color:var(--k-texte-bouton)}
html[data-marque="client"][data-metier="immobilier"][data-marque-variante="atelier"] .login-form button.primary::after{background:var(--k-navigation)}
html[data-marque="client"][data-metier="immobilier"] .accept-logo{display:block;width:150px;height:auto;background:var(--k-navigation);padding:14px 18px;border-radius:10px;margin:0 0 18px}

/* Recherche instantanée de l'agence */
#barre-recherche.est-rech{position:relative}
.est-rech-liste{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:30;background:var(--k-surface,#fff);border:1px solid var(--k-bordure,#E5E0D6);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.14);padding:6px;max-height:min(60vh,420px);overflow:auto}
.est-rech-ligne{display:grid;grid-template-columns:92px 1fr auto;gap:10px;align-items:center;width:100%;text-align:left;background:none;border:0;border-radius:8px;padding:9px 10px;cursor:pointer;color:var(--k-texte,#272626)}
.est-rech-ligne:hover,.est-rech-ligne[aria-selected="true"]{background:var(--k-surface-douce,#F1EEE7)}
.est-rech-fam{font-size:max(12px,calc(13px / var(--k-echelle,1)));letter-spacing:.04em;text-transform:uppercase;color:var(--k-texte-doux,#66625C)}
.est-rech-ligne small{color:var(--k-texte-doux,#66625C)}
.est-rech-vide{margin:0;padding:12px;color:var(--k-texte-doux,#66625C)}

/* Mode présentation (plein écran, pour recevoir un client) */
.est-presentation{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;background:var(--k-navigation,#272626);color:var(--k-texte-navigation,#FFFDFA)}
.est-pres-photo{flex:1;min-height:0;background-size:cover;background-position:center;background-color:var(--k-surface-douce,#F1EEE7);transition:opacity .35s ease}
.est-pres-photo.vide{background-image:none}
.est-pres-bas{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding:28px 48px 12px;flex-wrap:wrap}
.est-pres-bas h2{margin:0 0 6px;font-family:var(--k-serif,Georgia,serif);font-size:clamp(26px,3.4vw,44px);font-weight:500;letter-spacing:.02em}
.est-pres-bas p{margin:0;opacity:.85}
.est-pres-faits{margin-top:6px!important;color:var(--k-accent,#FFC054);opacity:1!important}
.est-pres-prix{font-family:var(--k-serif,Georgia,serif);font-size:clamp(26px,3.2vw,42px);color:var(--k-accent,#FFC054)}
.est-pres-desc{margin:0;padding:0 48px 28px;max-width:90ch;opacity:.8;line-height:1.55}
.est-pres-x{position:absolute;top:18px;right:18px;z-index:2;background:rgba(0,0,0,.55);color:#fff;border:1px solid rgba(255,255,255,.5);border-radius:999px;padding:10px 20px;cursor:pointer}
.est-pres-nav{position:absolute;top:40%;z-index:2;width:52px;height:52px;border-radius:50%;border:1px solid rgba(255,255,255,.5);background:rgba(0,0,0,.45);color:#fff;font-size:28px;cursor:pointer}
.est-pres-prec{left:18px}.est-pres-suiv{right:18px}
@media(max-width:700px){.est-pres-bas{padding:18px 20px 8px}.est-pres-desc{padding:0 20px 20px}}
@media (prefers-reduced-motion:reduce){.est-pres-photo{transition:none}}

/* Configuration obligatoire de l'agence */
#estate-view .est-cfg{display:grid;grid-template-columns:260px 1fr;gap:20px;align-items:start}
#estate-view .est-cfg-etapes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
#estate-view .est-cfg-etapes li.en-cours .est-cfg-nav{font-weight:700}
#estate-view .est-cfg-etapes li.fait .est-prepa-n{background:var(--e-okf);color:var(--e-ok)}
#estate-view .est-cfg-nav{display:flex;align-items:center;gap:10px;background:none;border:0;cursor:pointer;text-align:left;padding:6px 0}
#estate-view .est-cfg-nav:disabled{opacity:.5;cursor:default}
#estate-view .est-cfg-case{display:flex;align-items:center;gap:8px;padding:6px 0}
#estate-view .est-cfg-cases{border:0;padding:0;margin:0 0 12px}
#estate-view .est-cfg-cases>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:2px 16px}
#estate-view .est-cfg-tete{margin-bottom:14px}
@media(max-width:800px){#estate-view .est-cfg{grid-template-columns:1fr}}
#estate-view .est-cfg-form{display:flex;flex-direction:column;gap:14px;grid-template-columns:none}
#estate-view .est-cfg-form label:not(.est-cfg-case){display:flex;flex-direction:column;gap:6px}
#estate-view .est-cfg-form .est-grid{gap:14px}
