/* H2B V80 — mise en page accueil, préférences de ville, dettes articles, aperçu */
.h2b-layout-split{display:flex!important;flex-wrap:wrap;align-items:stretch;gap:12px}
.h2b-layout-combined{display:flex!important;justify-content:flex-start;align-items:stretch;gap:12px}
.h2b-layout-hidden{display:none!important}
.h2b-registration-combined{box-sizing:border-box}
.h2b-registration-combined-sections{display:grid;gap:16px;width:100%}
.h2b-registration-combined .h2b-combined-section{min-width:0}
.h2b-registration-combined .h2b-combined-section+.h2b-combined-section{border-top:1px solid rgba(124,167,211,.18);padding-top:16px}

.h2b-location-preferences{display:grid;gap:9px;padding:12px 13px;border:1px solid rgba(83,166,255,.2);border-radius:14px;background:rgba(10,25,43,.58)}
.h2b-location-preferences>strong{font-size:.82rem;color:#f1f7ff}
.h2b-location-preferences>small{color:var(--muted);line-height:1.45}
.h2b-location-options{display:flex;gap:9px;flex-wrap:wrap}
.h2b-location-options label{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 11px;border:1px solid rgba(109,176,255,.22);border-radius:12px;background:rgba(7,17,30,.72);cursor:pointer;font-weight:700}
.h2b-location-options input{width:18px;height:18px;accent-color:#4da3ff}

.h2b-frame-sizing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.h2b-frame-sizing-grid>div{display:grid;gap:7px;padding:12px;border:1px solid rgba(145,174,214,.16);border-radius:14px;background:rgba(3,10,19,.42)}
.h2b-frame-sizing-grid strong{color:#eaf4ff;font-size:.83rem}
.h2b-frame-sizing-grid label{font-size:.72rem;margin:2px 0 0}
.h2b-frame-sizing-grid input[type="range"]{width:100%}
.h2b-frame-sizing-grid output{justify-self:end;color:#8bc7ff;font-size:.76rem;font-weight:800}

.h2b-preview-modal-card{width:min(1240px,96vw);max-height:94vh;overflow:hidden;display:flex;flex-direction:column}
.h2b-preview-device-bar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.h2b-preview-device-bar .active{border-color:rgba(68,157,255,.72);background:rgba(39,128,226,.18);color:#dff0ff}
.h2b-preview-scroll{overflow:auto;padding:12px;border:1px solid rgba(130,168,211,.16);border-radius:16px;background:rgba(1,7,14,.62);min-height:300px}
.h2b-preview-frame{margin:0 auto;transition:width .18s ease;max-width:100%;background:#07111d;border:1px solid rgba(141,180,225,.2);border-radius:18px;padding:14px;box-sizing:border-box}
.h2b-preview-frame.is-phone{width:390px}.h2b-preview-frame.is-tablet{width:768px}.h2b-preview-frame.is-desktop{width:1120px}
.h2b-preview-content .public-registration-info{margin:0;max-width:none}
.h2b-preview-content .registration-groups{display:flex!important;flex-wrap:wrap;gap:12px}
.h2b-preview-content .registration-group{box-sizing:border-box}

.h2b-article-debts-box{border-color:rgba(255,159,67,.28)!important}
.h2b-debt-total{font-size:1.1rem;color:#ffbd75}
.h2b-debt-list{display:grid;gap:8px;margin-top:12px}
.h2b-debt-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:11px 12px;border:1px solid rgba(255,255,255,.09);border-radius:13px;background:rgba(7,15,25,.68)}
.h2b-debt-item.is-paid{opacity:.62}
.h2b-debt-item strong{display:block;color:#fff}
.h2b-debt-item small{display:block;margin-top:3px;color:var(--muted);line-height:1.35}
.h2b-debt-amount{font-size:1rem;font-weight:900;color:#ffbd75;white-space:nowrap}
.h2b-debt-item.is-paid .h2b-debt-amount{color:#8de0b1}
.h2b-debt-actions{grid-column:1/-1;display:flex;gap:7px;flex-wrap:wrap}
.h2b-debt-status{display:inline-flex;margin-top:6px;padding:3px 7px;border-radius:999px;font-size:.7rem;font-weight:800;border:1px solid rgba(255,255,255,.12)}
.h2b-debt-status.open{color:#ffbd75;background:rgba(255,159,67,.09)}
.h2b-debt-status.paid{color:#8de0b1;background:rgba(61,195,120,.09)}

@media(max-width:900px){.h2b-frame-sizing-grid{grid-template-columns:1fr}.h2b-preview-frame.is-desktop{width:900px}}
@media(max-width:700px){
  #h2bRegistrationGroups.h2b-layout-split>.registration-group:not(.h2b-layout-hidden),#h2bRegistrationCombined:not(.h2b-layout-hidden){flex:1 1 100%!important;max-width:100%!important;min-height:0!important}
  .h2b-preview-frame.is-phone .registration-group{flex:1 1 100%!important;max-width:100%!important;min-height:0!important}
  .h2b-location-options{flex-direction:column}.h2b-location-options label{width:100%;box-sizing:border-box}
  .h2b-debt-item{grid-template-columns:1fr}.h2b-debt-amount{justify-self:start}
}
