/* Booster Media — demande de devis sur place (lot C, 12/11/2026). Va avec devis-panneau.js. */

/* ---------- Icône d'appel dans l'en-tête (téléphone) ---------- */
.bm-appel-entete {
  margin-left: auto;
  margin-right: -10px;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d94358;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(217, 67, 88, .35);
  -webkit-tap-highlight-color: transparent;
}
.bm-appel-entete[hidden] { display: none; }
.bm-appel-entete:active { background: #b8364a; }
.bm-appel-entete:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Page contact : sous 16 px, l'iPhone zoome dans le champ ---------- */
.form-group input,
.form-group select,
.form-group textarea { font-size: 16px !important; }

/* ---------- Le panneau ---------- */
html.bm-panneau-ouvert { overflow: hidden; }

.bm-panneau {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px 16px;
  border: 0;
  background: transparent;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  color: #2b2b35;
}
.bm-panneau:not([open]) { display: none; }
.bm-panneau[open] { display: flex; align-items: flex-start; justify-content: center; }
.bm-panneau::backdrop { background: rgba(14, 22, 40, .74); }

.bm-panneau-boite {
  position: relative;
  box-sizing: border-box;
  width: min(540px, 100%);
  margin: auto 0;
  padding: 30px 30px 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(8, 12, 26, .45);
  font-family: 'Manrope', 'Manrope repli', system-ui, sans-serif;
  text-align: left;
}

.bm-panneau-fermer {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f4f1ec;
  color: #1e2d4a;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bm-panneau-fermer:hover { background: #e6e1d8; }
.bm-panneau-fermer:focus-visible { outline: 2px solid #d94358; outline-offset: 2px; }

.bm-panneau-sur {
  margin: 0 52px 8px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d94358;
}
.bm-panneau h2 {
  margin: 0 52px 8px 0;
  font-family: 'Plus Jakarta Sans', 'Plus Jakarta Sans repli', 'Manrope', system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #1e2d4a;
  text-transform: none;
}
.bm-panneau h2:focus { outline: none; }
.bm-panneau-texte {
  margin: 0;
  max-width: none;
  font-size: 15px;
  line-height: 1.55;
  color: #5e6573;
  opacity: 1;
}

/* le formulaire copié garde ses styles de page ; ici on retire sa carte et on passe en une colonne */
.bm-panneau .dc {
  max-width: none;
  margin: 18px 0 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.bm-panneau .dc-ligne,
.bm-panneau .dc-ligne.dc-ligne--3 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bm-panneau .dc-champ { margin-top: 12px; }
.bm-panneau .dc-ligne .dc-champ { margin-top: 0; grid-column: auto; }
.bm-panneau .dc-bas { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 16px; }
.bm-panneau .dc-bas button { justify-content: center; width: 100%; }
.bm-panneau .dc-tel { text-align: center; }

@media (max-width: 640px) {
  .bm-panneau { padding: 0; }
  .bm-panneau[open] { align-items: stretch; }
  .bm-panneau-boite {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 22px 18px 28px;
    border-radius: 0;
    box-shadow: none;
  }
  .bm-panneau h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .bm-panneau[open] .bm-panneau-boite { animation: bm-panneau-entree .22s ease-out both; }
  @keyframes bm-panneau-entree { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
