/* ==========================================================================
   Sticky call bar (inc/05-callbar.php)
   Fixed to the bottom on every page so the phone number is always one tap away.
   ========================================================================== */
.rcallbar{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  background:var(--ink);border-top:3px solid var(--signal);
  box-shadow:0 -6px 24px rgba(6,24,47,.28);
}
.rcallbar__in{
  width:100%;max-width:var(--max);margin-inline:auto;
  padding:.7rem var(--gut);
  display:flex;align-items:center;gap:.75rem 1.25rem;
}

.rcallbar__tx{margin-right:auto;line-height:1.25;min-width:0}
.rcallbar__tx b{display:block;font-size:var(--t-sm);font-weight:800;color:#fff;letter-spacing:-.01em}
.rcallbar__tx span{display:block;font-size:var(--t-xs);color:var(--tx-inv-mute);font-weight:600}

/* The number must never wrap: a wrapped number makes the bar three lines tall
   and it then covers the end of the page.
   align-self:stretch makes both buttons exactly the same height whatever their
   font size, so they line up instead of sitting 4px apart. */
.rimas .rcallbar__tel,.rimas .rcallbar__devis{white-space:nowrap;align-self:stretch}
.rimas .rcallbar__tel{flex:none;padding:.75rem 1.4rem;font-size:1.05rem}
.rimas .rcallbar__devis{flex:none;padding:.75rem 1.2rem;font-size:.8rem}
.rcallbar__sm{display:none}

/* Reserve room so the bar never covers the end of the page.
   The space is added INSIDE the footer, not as body padding: body padding sits
   below the footer and shows as a white strip under it. */
body.has-rcallbar .rftr{padding-bottom:6.5rem}

@media (max-width:760px){
  .rcallbar__in{padding:.5rem var(--gut);gap:.5rem;align-items:stretch}
  .rcallbar__tx{display:none}
  /* The phone takes the room left over; the secondary button shrinks to a
     short label so the pair always fits inside the bar. */
  .rimas .rcallbar__tel{flex:1 1 auto;min-width:0;justify-content:center;padding:.8rem .6rem;font-size:.98rem;letter-spacing:.01em}
  .rimas .rcallbar__devis{flex:0 1 auto;min-width:0;padding:.8rem .75rem;font-size:.7rem;letter-spacing:.03em}
  .rcallbar__lg{display:none}
  .rcallbar__sm{display:inline}
  body.has-rcallbar .rftr{padding-bottom:5.5rem}
}

@media (max-width:330px){
  .rimas .rcallbar__devis{display:none}
}

@media print{
  .rcallbar{display:none}
  body.has-rcallbar .rftr{padding-bottom:0}
}
