/* RelaisImmo — finition header beta, mobile-first.
   Uniquement #ri-beta-header. Aucune modification de la landing, formulaires ou JS. */
#ri-beta-header.ri-login-topbar {
  position:relative;isolation:isolate;
  display:block;min-height:0;height:auto;padding:0;
  background:linear-gradient(105deg,#0c1a35 0%,#0e2243 62%,#102b53 100%);
  color:#f8fbff;border-bottom:1px solid rgba(157,201,255,.22);
  box-shadow:0 6px 24px rgba(5,18,43,.16);
}
#ri-beta-header::after {
  content:"";position:absolute;inset:auto 0 0;height:2px;pointer-events:none;
  background:linear-gradient(90deg,transparent 0%,#3b8ce5 25%,#9bd5ff 49%,#3b8ce5 72%,transparent 100%);
  opacity:.52;
}
#ri-beta-header .rb-top-inner {
  display:flex;flex-direction:column;justify-content:center;align-items:stretch;
  gap:10px;width:100%;max-width:1400px;margin-inline:auto;
  padding:12px 14px 10px;
}
#ri-beta-header .rb-top-brand {
  display:flex;flex:1 1 auto;min-width:0;width:100%;align-items:center;justify-content:space-between;gap:8px;
}
#ri-beta-header .rb-pill {
  position:relative;flex:none;display:inline-flex;align-items:center;gap:6px;
  padding:6px 9px;border:1px solid rgba(127,190,255,.44);border-radius:7px;
  background:rgba(66,132,209,.12);color:#d8ebff;
  font-size:9px;font-weight:850;letter-spacing:.075em;white-space:nowrap;
}
#ri-beta-header .rb-pill::before {width:6px;height:6px;flex-basis:6px;background:#76d5ff;box-shadow:0 0 6px rgba(94,204,255,.5);}
#ri-beta-header .rb-pill::after {display:none;}
#ri-beta-header .rb-pill-full{display:none;}
#ri-beta-header .rb-pill-short{display:inline;}
#ri-beta-header .rb-top-side{width:100%;min-width:0;flex:1 1 auto;display:block;}
/* La zone de contact est indépendante du logo et de la pastille. */
#ri-beta-header .rb-top-actions{
  display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  align-items:stretch;width:100%;gap:7px;white-space:normal;
}
#ri-beta-header .rb-top-actions>a{
  display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;
  min-height:43px;margin:0;padding:10px 7px;white-space:nowrap;
  text-decoration:none;font-size:11px;font-weight:750;line-height:1.2;
  border-radius:9px;border:1px solid rgba(157,192,235,.22);
  background:rgba(255,255,255,.04);color:#f5f9ff;
  transition:background .18s,border-color .18s,transform .18s;
}
#ri-beta-header .rb-top-actions .rb-action-icon{
  width:16px;height:16px;flex:0 0 16px;fill:none;stroke:#79bdff;
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
#ri-beta-header .rb-top-actions .rb-phone{font-size:10px;letter-spacing:0;font-weight:750;}
#ri-beta-header .rb-top-actions .rb-header-action.primary{
  background:#fff;color:#102d53;border-color:#fff;font-weight:850;
  box-shadow:0 4px 14px rgba(3,11,32,.15);
}
#ri-beta-header .rb-top-actions .rb-header-action.primary .rb-action-icon{stroke:#2879d1;}
#ri-beta-header .rb-top-actions>a:hover{background:rgba(128,181,244,.15);border-color:rgba(157,204,251,.56);}
#ri-beta-header .rb-top-actions .rb-header-action.primary:hover{background:#e9f3ff;border-color:#e9f3ff;}
#ri-beta-header .rb-top-actions>a:focus-visible{outline:3px solid #9bd4ff;outline-offset:2px;}
#ri-beta-header .rb-header-contact-menu{display:none!important;}
/* Éléments du menu ancien conservés dans le HTML en secours, mais jamais affichés. */
@media(min-width:480px){
  #ri-beta-header .rb-top-inner{padding:13px 20px 11px;gap:11px;}
  #ri-beta-header .rb-pill{font-size:10px;padding:7px 11px;}
  #ri-beta-header .rb-pill-full{display:inline;}
  #ri-beta-header .rb-pill-short{display:none;}
  #ri-beta-header .rb-top-actions{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:9px;}
  #ri-beta-header .rb-top-actions>a{font-size:12px;min-height:45px;}
  #ri-beta-header .rb-top-actions .rb-phone{font-size:12px;}
}
@media(min-width:720px){
  #ri-beta-header .rb-top-actions{grid-template-columns:auto auto auto auto;gap:0;}
  #ri-beta-header .rb-top-actions>a{
    min-height:42px;padding:9px 17px;border:0;border-radius:0;
    background:transparent;box-shadow:none;
  }
  #ri-beta-header .rb-top-actions>a:nth-child(1),
  #ri-beta-header .rb-top-actions>a:nth-child(3){border-right:1px solid rgba(148,177,213,.28);}
  #ri-beta-header .rb-top-actions .rb-header-action.primary{
    margin-left:9px;margin-right:8px;border-radius:10px;padding:10px 16px;
    box-shadow:0 4px 14px rgba(3,11,32,.16);
  }
}
@media(min-width:1200px){
  #ri-beta-header .rb-top-inner{
    flex-direction:row;align-items:center;justify-content:space-between;
    gap:12px;min-height:76px;padding:12px 20px;
  }
  #ri-beta-header .rb-top-brand{width:auto;flex:0 1 auto;justify-content:flex-start;gap:18px;}
  #ri-beta-header .rb-top-side{width:auto;flex:0 1 auto;}
  #ri-beta-header .rb-top-actions{width:auto;display:flex;justify-content:flex-end;align-items:center;gap:0;}
  #ri-beta-header .rb-top-actions>a{font-size:12px;padding-inline:13px;}
  #ri-beta-header .rb-top-actions .rb-phone{font-size:12px;}
  #ri-beta-header .rb-top-actions .rb-header-action.primary{padding-inline:14px;margin-left:7px;margin-right:7px;}
}
@media(min-width:1200px) and (max-width:1300px){
  #ri-beta-header .rb-top-inner{padding-inline:15px;gap:8px;}
  #ri-beta-header .rb-top-brand{gap:10px;}
  #ri-beta-header .rb-top-actions>a{padding-inline:9px;font-size:11px;gap:6px;}
  #ri-beta-header .rb-top-actions .rb-header-action.primary{padding-inline:11px;}
}
@media(max-width:359px){
  #ri-beta-header .rb-top-inner{padding-inline:11px;}
  #ri-beta-header .rb-pill{font-size:8px;padding:5px 7px;}
  #ri-beta-header .rb-top-actions>a{font-size:10px;gap:5px;padding-inline:4px;}
  #ri-beta-header .rb-top-actions .rb-phone{font-size:9.3px;}
  #ri-beta-header .rb-top-actions .rb-action-icon{width:14px;height:14px;flex-basis:14px;}
}
@media(prefers-reduced-motion:reduce){
  #ri-beta-header .rb-top-actions>a{transition:none;}
  #ri-beta-header .rb-pill::before{animation:none;}
}
