/* BGM — Modale « Prenons contact »
   Déclenchée par tout élément avec la classe .bgm-contact-trigger
   Charge company.main_phone et company.main_email depuis config.json */

.bgm-cm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.bgm-cm-backdrop.bgm-cm-open {
  opacity: 1;
  pointer-events: auto;
}

.bgm-cm {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 16px));
  width: min(92vw, 480px);
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #1f1d1a;
  border: 1px solid rgba(232, 119, 34, 0.30);
  border-radius: 14px;
  padding: 32px 28px 28px;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 60px rgba(48, 46, 44, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.bgm-cm-backdrop.bgm-cm-open .bgm-cm {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.bgm-cm::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(232, 119, 34, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bgm-cm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  font-family: 'Gravity', 'Public Sans', sans-serif;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 2;
}
.bgm-cm-close:hover {
  border-color: rgba(232, 119, 34, 0.5);
  color: #E87722;
}
.bgm-cm-close:focus-visible {
  outline: 2px solid #E87722;
  outline-offset: 2px;
}

.bgm-cm-eyebrow {
  font-family: 'Gravity', 'Public Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E87722;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.bgm-cm-title {
  font-family: 'Gravity', 'Public Sans', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}
.bgm-cm-sub {
  font-family: 'Gravity', 'Public Sans', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.bgm-cm-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.bgm-cm-opt {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  transition: all 0.18s ease;
}
.bgm-cm-opt:hover {
  border-color: rgba(232, 119, 34, 0.5);
  background: rgba(232, 119, 34, 0.06);
  transform: translateY(-1px);
}
.bgm-cm-opt:focus-visible {
  outline: 2px solid #E87722;
  outline-offset: 2px;
}

.bgm-cm-opt-ico {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 119, 34, 0.10);
  border-radius: 8px;
}
.bgm-cm-opt-text { flex: 1; min-width: 0; }
.bgm-cm-opt-label {
  font-family: 'Gravity', 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: block;
  margin-bottom: 2px;
}
.bgm-cm-opt-detail {
  font-family: 'Gravity', 'Public Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bgm-cm-opt-arrow {
  color: #E87722;
  font-weight: 700;
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.bgm-cm-opt:hover .bgm-cm-opt-arrow { transform: translateX(4px); }

@media (max-width: 480px) {
  .bgm-cm { padding: 28px 20px 20px; }
  .bgm-cm-opt { padding: 14px 14px; gap: 12px; }
  .bgm-cm-opt-ico { width: 36px; height: 36px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bgm-cm-backdrop, .bgm-cm, .bgm-cm-opt, .bgm-cm-opt-arrow { transition: none !important; }
  .bgm-cm-backdrop.bgm-cm-open .bgm-cm { transform: translate(-50%, -50%); }
}
