/* Le Hub Immo — Tunnel public / connexion & inscription v2.
   Aucune règle ne s'applique à l'espace utilisateur ou aux annonces publiques. */
body.hub-auth-page{
  --auth-bg:#f7f9fd;--auth-paper:#fff;--auth-ink:#10213c;--auth-muted:#63738b;--auth-line:#e1e8f2;
  --auth-blue:#1e50e8;--auth-blue-dark:#133fc8;--auth-field:#fbfcff;--auth-aside:#0c2445;
  background:var(--auth-bg)!important;color:var(--auth-ink)!important;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,Arial,sans-serif;
}
html[data-theme="dark"] body.hub-auth-page{
  --auth-bg:#101b2d;--auth-paper:#17273f;--auth-ink:#f4f7ff;--auth-muted:#b0c0d5;--auth-line:#354866;
  --auth-blue:#5f88ff;--auth-blue-dark:#3970f5;--auth-field:#1b2f4a;--auth-aside:#0a1d39;
  background:var(--auth-bg)!important;color:var(--auth-ink)!important;
}
body.hub-auth-page *,body.hub-auth-page *::before,body.hub-auth-page *::after{box-sizing:border-box;}
body.hub-auth-page .hub-public-header{background:var(--auth-paper)!important;border-color:var(--auth-line)!important;box-shadow:none;}
body.hub-auth-page .hub-brand,body.hub-auth-page .hub-brand__text{color:var(--auth-ink)!important;}
body.hub-auth-page .hub-public-nav a{color:var(--auth-ink)!important;}
body.hub-auth-page .hub-public-nav a:hover{color:var(--auth-blue)!important;}
body.hub-auth-page .hub-public-actions .hub-btn--ghost{background:transparent!important;border:0!important;color:var(--auth-ink)!important;box-shadow:none;}
body.hub-auth-page .hub-public-actions .hub-btn--primary{background:#1e50e8!important;border-color:#1e50e8!important;color:#fff!important;box-shadow:none;}
body.hub-auth-page .hub-mobile-nav{background:var(--auth-paper);color:var(--auth-ink);border:1px solid var(--auth-line);}
/* Tunnel central : on réutilise les formulaires PHP existants sans toucher aux POST */
body.hub-auth-page main.container.hub-auth-shell{
  display:grid;grid-template-columns:minmax(0,1.17fr) minmax(300px,.83fr);gap:clamp(26px,4.7vw,66px);
  align-items:center;max-width:1150px;width:calc(100% - 48px);margin:0 auto;
  padding:clamp(54px,6vw,85px) 0 95px;min-height:calc(100vh - 210px);
}
body.hub-auth-page .hub-auth-primary{min-width:0;}
body.hub-auth-page .hub-auth-kicker{display:inline-flex;align-items:center;gap:8px;margin-bottom:15px;
  color:var(--auth-blue);font-size:11px;letter-spacing:.1em;font-weight:850;text-transform:uppercase;}
body.hub-auth-page .hub-auth-kicker:before{content:"";width:8px;height:8px;border-radius:50%;background:#2b5df1;box-shadow:0 0 0 5px rgba(43,93,241,.1);}
body.hub-auth-page .page-title{
  margin:0 0 12px;font-size:clamp(30px,3vw,43px);font-weight:850;letter-spacing:-.045em;
  line-height:1.15;color:var(--auth-ink)!important;
}
body.hub-auth-page .page-intro{font-size:14px;line-height:1.75;color:var(--auth-muted)!important;margin:0 0 25px;max-width:650px;}
body.hub-auth-page .page-intro strong{color:var(--auth-ink);font-weight:800;}
body.hub-auth-page .hub-auth-credits{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 25px;}
body.hub-auth-page .hub-auth-credits span{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;
  border:1px solid var(--auth-line);border-radius:20px;background:var(--auth-paper);
  font-size:11px;font-weight:750;color:var(--auth-ink);}
body.hub-auth-page .hub-auth-credits span:first-child{color:#137c5b;background:#e9f9f0;border-color:#cfeeda;}
html[data-theme="dark"] body.hub-auth-page .hub-auth-credits span:first-child{color:#82e1b7;background:#174439;border-color:#2e6254;}
body.hub-auth-page .form-card{
  max-width:none!important;width:100%;padding:clamp(23px,2.6vw,34px)!important;
  background:var(--auth-paper)!important;border:1px solid var(--auth-line)!important;
  border-radius:19px!important;box-shadow:0 16px 55px rgba(17,42,82,.055)!important;
  color:var(--auth-ink)!important;
}
body.hub-auth-page .form-section{padding:0;border:0;background:transparent;box-shadow:none;margin:0 0 22px;}
body.hub-auth-page .form-section h2{
  display:flex;align-items:center;gap:9px;font-size:17px;line-height:1.35;
  letter-spacing:-.025em;font-weight:820;color:var(--auth-ink)!important;margin:0 0 19px;
}
body.hub-auth-page .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 16px;}
body.hub-auth-page .form-field{min-width:0;margin:0!important;}
body.hub-auth-page .form-field-full{grid-column:1/-1;}
body.hub-auth-page .form-field label{display:block;margin:0 0 8px;font-size:12px;font-weight:740;color:var(--auth-ink)!important;line-height:1.4;}
body.hub-auth-page .form-field input,body.hub-auth-page .form-field select,body.hub-auth-page .form-field textarea{
  display:block;width:100%;min-width:0;min-height:45px;margin:0;
  padding:10px 12px;border-radius:10px!important;
  border:1px solid var(--auth-line)!important;background:var(--auth-field)!important;
  color:var(--auth-ink)!important;box-shadow:none!important;font:inherit;font-size:13px;
}
body.hub-auth-page input::placeholder{color:#8b9aaf;}
body.hub-auth-page input:focus,body.hub-auth-page select:focus{
  outline:none;border-color:#5b87ef!important;box-shadow:0 0 0 3px rgba(48,94,233,.12)!important;
}
body.hub-auth-page .form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0 0;padding:0;}
body.hub-auth-page .form-actions .btn,body.hub-auth-page .form-card .btn{
  min-height:44px;padding:11px 17px;border-radius:10px!important;
  font-weight:750;font-size:13px;text-align:center;text-decoration:none;line-height:1.3;
  box-shadow:none!important;
}
body.hub-auth-page .btn.btn-primary,body.hub-auth-page button.btn-primary{
  background:#1d4dea!important;border:1px solid #1d4dea!important;color:#fff!important;
}
body.hub-auth-page .btn.btn-primary:hover{background:#1642ce!important;}
body.hub-auth-page .btn.btn-ghost{
  background:var(--auth-paper)!important;border:1px solid var(--auth-line)!important;color:var(--auth-ink)!important;
}
body.hub-auth-page a.stat-link{color:var(--auth-blue)!important;font-size:12px;font-weight:750;text-decoration:none;}
body.hub-auth-page a.stat-link:hover{text-decoration:underline;}
body.hub-auth-page .card.card-error{background:#fff0f0!important;color:#ac2e39!important;border:1px solid #f3c9cd!important;border-radius:11px;box-shadow:none!important;padding:12px 15px;}
body.hub-auth-page .card.card-success{background:#eaf8f0!important;color:#086742!important;border:1px solid #c6ead6!important;border-radius:11px;box-shadow:none!important;padding:12px 15px;}
body.hub-auth-page .form-card>.card:not(.card-error):not(.card-success){background:var(--auth-bg)!important;border:1px solid var(--auth-line)!important;border-radius:11px;}
body.hub-auth-page .required{color:#d4475a;}
body.hub-auth-page .field-note{font-size:12px;color:var(--auth-muted);line-height:1.65;margin-top:10px;}
html[data-theme="dark"] body.hub-auth-page .card.card-error{background:#442735!important;color:#ffd5db!important;border-color:#7c3f55!important;}
html[data-theme="dark"] body.hub-auth-page .card.card-success{background:#164438!important;color:#b3ffdc!important;border-color:#2c6e55!important;}
/* Formulaires courts / formulaire d'inscription */
body.hub-auth-page:not(.hub-auth-register) main.hub-auth-shell{max-width:1060px;}
body.hub-auth-page:not(.hub-auth-register) .form-grid{grid-template-columns:1fr;}
body.hub-auth-page:not(.hub-auth-register) .form-card{max-width:510px!important;}
body.hub-auth-page:not(.hub-auth-register) .form-section{margin-bottom:0;}
body.hub-auth-page.hub-auth-register main.hub-auth-shell{
  max-width:1220px;grid-template-columns:minmax(0,1fr) minmax(310px,.49fr);
  align-items:start;padding-top:65px;
}
body.hub-auth-page.hub-auth-register .form-card{padding:clamp(20px,3vw,35px)!important;}
body.hub-auth-register .form-section + .form-section{
  border-top:1px solid var(--auth-line);padding-top:27px;margin-top:29px;
}
body.hub-auth-register .form-section:nth-of-type(1) .form-field:first-child{grid-column:1/-1;}
body.hub-auth-register .form-actions{padding-top:20px;border-top:1px solid var(--auth-line);}
body.hub-auth-register .form-actions .btn-primary{min-width:190px;}
/* Panneau rassurant à droite */
.hub-auth-aside{
  position:relative;overflow:hidden;align-self:stretch;min-height:425px;
  border:1px solid #244263;border-radius:23px;
  padding:clamp(27px,3.8vw,47px) clamp(22px,3vw,35px);
  background:radial-gradient(circle at 100% 0%,#204c96,transparent 54%),linear-gradient(155deg,#102b54,#091c35);
  color:#fff;box-shadow:0 20px 55px rgba(8,31,66,.11);
}
.hub-auth-aside:before{content:"";position:absolute;width:350px;height:350px;border-radius:50%;bottom:-230px;right:-130px;background:rgba(41,101,244,.22);}
.hub-auth-aside>*{position:relative;z-index:1;}
.hub-auth-aside-mark{width:44px;height:44px;display:grid;place-items:center;color:#fff;background:#2255e8;border-radius:13px;margin-bottom:36px;}
.hub-auth-aside .ui-icon{width:24px;height:24px;}
.hub-auth-aside-label{font-size:10px;letter-spacing:.1em;font-weight:800;color:#9dbeff;}
.hub-auth-aside h2{font-size:clamp(23px,2.35vw,31px);line-height:1.25;letter-spacing:-.04em;margin:13px 0 16px;font-weight:820;color:#fff!important;}
.hub-auth-aside>p{font-size:13px;color:#c5d3e9;line-height:1.85;margin:0 0 24px;}
.hub-auth-aside-features{display:grid;gap:11px;margin:22px 0 25px;}
.hub-auth-aside-features span{display:flex;gap:10px;align-items:center;font-size:12px;color:#e4edfa;font-weight:680;}
.hub-auth-aside-features span:before{content:"✓";display:grid;place-items:center;width:20px;height:20px;flex:none;border-radius:50%;color:#8ce8bd;background:rgba(15,157,111,.15);font-weight:900;}
.hub-auth-aside-link{display:inline-flex;gap:10px;align-items:center;font-size:12px;font-weight:800;color:#fff!important;
  padding:12px 15px;border-radius:10px;border:1px solid rgba(255,255,255,.25);text-decoration:none;}
.hub-auth-aside-link:hover{background:rgba(255,255,255,.1);}
body.hub-auth-register .hub-auth-aside{position:sticky;top:93px;align-self:start;}
body.hub-auth-page .site-footer{background:var(--auth-paper)!important;color:var(--auth-muted)!important;border-top:1px solid var(--auth-line)!important;}
body.hub-auth-page .site-footer a{color:var(--auth-blue)!important;}
html[data-theme="dark"] body.hub-auth-page .site-footer{background:#13233a!important;}
/* Coller aux couleurs du nouvel accueil quel que soit le mode de navigateur */
html[data-theme="dark"] body.hub-auth-page .hub-public-header{background:#142842!important;border-color:#2c4260!important;}
html[data-theme="dark"] body.hub-auth-page .hub-public-nav a{color:#f0f5ff!important;}
html[data-theme="dark"] body.hub-auth-page .hub-public-actions .hub-btn--ghost{color:#eaf1ff!important;}
html[data-theme="dark"] body.hub-auth-page .hub-public-actions .hub-btn--primary{color:#fff!important;}
html[data-theme="dark"] body.hub-auth-page .hub-brand__text{color:#f0f5ff!important;}
html[data-theme="dark"] body.hub-auth-page .hub-public-header .hub-public-nav.is-open{background:#172c48;border:1px solid #344d6c;}
@media(max-width:1080px){
 body.hub-auth-page main.container.hub-auth-shell{gap:25px;grid-template-columns:minmax(0,1fr) minmax(260px,.75fr);}
 body.hub-auth-page.hub-auth-register main.hub-auth-shell{grid-template-columns:minmax(0,1fr) minmax(250px,.48fr);}
 body.hub-auth-page .hub-auth-aside{padding:27px;}
}
@media(max-width:880px){
 body.hub-auth-page main.container.hub-auth-shell,
 body.hub-auth-page.hub-auth-register main.container.hub-auth-shell{
  display:flex;flex-direction:column;width:calc(100% - 36px);max-width:680px;min-height:0;
  padding:42px 0 66px;gap:28px;
 }
 body.hub-auth-page .hub-auth-primary{width:100%;}
 body.hub-auth-page .hub-auth-aside,body.hub-auth-page.hub-auth-register .hub-auth-aside{width:100%;min-height:auto;position:relative;top:auto;}
 body.hub-auth-page:not(.hub-auth-register) .form-card{max-width:none!important;}
 body.hub-auth-page .hub-auth-aside-mark{margin-bottom:18px;}
}
@media(max-width:570px){
 body.hub-auth-page main.container.hub-auth-shell,
 body.hub-auth-page.hub-auth-register main.container.hub-auth-shell{padding:31px 0 46px;}
 body.hub-auth-page .page-title{font-size:31px;}
 body.hub-auth-page .page-intro{font-size:13px;}
 body.hub-auth-page .form-card{padding:21px 17px!important;}
 body.hub-auth-page .form-grid{grid-template-columns:1fr;}
 body.hub-auth-register .form-section:nth-of-type(1) .form-field:first-child{grid-column:auto;}
 body.hub-auth-page .form-actions .btn{flex:1;}
 body.hub-auth-page .hub-auth-aside{padding:25px;}
 body.hub-auth-page .hub-public-header__inner{gap:7px;padding:0 12px;}
 body.hub-auth-page .hub-brand__text{font-size:15px;white-space:nowrap;}
 body.hub-auth-page .hub-brand__mark,body.hub-auth-page .hub-brand__mark .ui-icon{width:27px;height:27px;}
 body.hub-auth-page .hub-public-actions{display:none;}
 body.hub-auth-page .hub-mobile-nav{margin-left:auto;}
}

/* Correctifs finaux : priorite sur les anciennes regles globales dark. */
body.hub-auth-page .hub-public-nav .lh-mobile-nav-login,
body.hub-auth-page .hub-public-nav .lh-mobile-nav-cta { display:none; }
html[data-theme="dark"] body.hub-auth-page .form-card {
  background:var(--auth-paper)!important;color:var(--auth-ink)!important;
  border:1px solid var(--auth-line)!important;box-shadow:0 18px 50px rgba(2,13,31,.17)!important;
}
html[data-theme="dark"] body.hub-auth-page .form-section,
html[data-theme="dark"] body.hub-auth-page .form-card .form-section,
html[data-theme="dark"] body.hub-auth-page .form-grid {
  background:transparent!important;border-color:var(--auth-line)!important;color:var(--auth-ink)!important;
}
html[data-theme="dark"] body.hub-auth-page .form-field input,
html[data-theme="dark"] body.hub-auth-page .form-field select,
html[data-theme="dark"] body.hub-auth-page .form-field textarea {
  background:var(--auth-field)!important;color:var(--auth-ink)!important;
  border:1px solid var(--auth-line)!important;
}
html[data-theme="dark"] body.hub-auth-page .form-field label,
html[data-theme="dark"] body.hub-auth-page .form-section h2 {
  color:var(--auth-ink)!important;
}
html[data-theme="dark"] body.hub-auth-page .btn.btn-primary,
html[data-theme="dark"] body.hub-auth-page button.btn-primary,
html[data-theme="dark"] body.hub-auth-page .form-actions .btn.btn-primary {
  background:#2457ec!important;border-color:#2457ec!important;color:#fff!important;
}
html[data-theme="dark"] body.hub-auth-page .btn.btn-ghost,
html[data-theme="dark"] body.hub-auth-page .form-actions .btn.btn-ghost {
  background:#223752!important;border-color:#405472!important;color:#f0f5ff!important;
}
html[data-theme="dark"] body.hub-auth-page .form-card>.card:not(.card-error):not(.card-success) {
  background:#223752!important;border-color:var(--auth-line)!important;
}
body.hub-auth-page .support-widget-button,
html[data-theme="dark"] body.hub-auth-page .support-widget-button{
  background:#2455e8!important;color:#fff!important;
  box-shadow:0 12px 30px rgba(14,38,84,.22)!important;
}
@media(max-width:820px){
  body.hub-auth-page .hub-public-nav .lh-mobile-nav-login,
  body.hub-auth-page .hub-public-nav .lh-mobile-nav-cta{
    display:flex;align-items:center;justify-content:center;width:100%;min-height:42px;
    text-align:center;border-radius:9px;padding:10px;font-weight:800;
  }
  body.hub-auth-page .hub-public-nav .lh-mobile-nav-login{background:#ecf2ff;color:#1e4cda!important;}
  body.hub-auth-page .hub-public-nav .lh-mobile-nav-cta{background:#2351e7;color:#fff!important;}
  html[data-theme="dark"] body.hub-auth-page .hub-public-nav .lh-mobile-nav-login{background:#254269;color:#f0f5ff!important;}
  html[data-theme="dark"] body.hub-auth-page .hub-public-nav .lh-mobile-nav-cta{background:#2254e7;color:#fff!important;}
}
