/* Bloc contact départements — fixe à droite, slide au hover */

.dept-contact-fixed {
  --dept-contact-accent: #1b8ee9;
  --dept-contact-accent-soft: rgba(27, 142, 233, 0.12);
  position: fixed;
  top: 50%;
  right: 0;
  left: auto;
  z-index: 9980;
  transform: translateY(-50%) translateX(calc(100% - 52px));
  width: min(300px, calc(100vw - 24px));
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dept-contact-fixed:hover,
.dept-contact-fixed:focus-within {
  transform: translateY(-50%) translateX(0);
}

.dept-contact-fixed__inner {
  position: relative;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 16px 58px;
  border-radius: 18px 0 0 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-right: none;
  box-shadow:
    -12px 16px 40px rgba(0, 0, 0, 0.16),
    -2px 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

/* Onglet visible quand le panneau est rentré */
.dept-contact-fixed__tab {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dept-contact-accent);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(27, 142, 233, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
}

.dept-contact-fixed:hover .dept-contact-fixed__tab,
.dept-contact-fixed:focus-within .dept-contact-fixed__tab {
  transform: translateY(-50%) scale(0.96);
}

.dept-contact-fixed__title {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dept-contact-accent);
}

.dept-contact-fixed__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f4f8fc;
  color: #132033;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

a.dept-contact-fixed__item:hover,
a.dept-contact-fixed__item:focus-visible {
  background: #e8f3fc;
  color: #132033;
  transform: translateX(-2px);
}

.dept-contact-fixed__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dept-contact-accent-soft);
  color: var(--dept-contact-accent);
  font-size: 0.85rem;
}

.dept-contact-fixed__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dept-contact-fixed__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8699;
}

.dept-contact-fixed__value {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: #132033;
  word-break: break-word;
}

/* Variantes départements */
.faience-page .dept-contact-fixed {
  --dept-contact-accent: #b4783c;
  --dept-contact-accent-soft: rgba(180, 120, 60, 0.12);
}

.faience-page .dept-contact-fixed__item {
  background: #faf6f1;
}

.faience-page a.dept-contact-fixed__item:hover,
.faience-page a.dept-contact-fixed__item:focus-visible {
  background: #f3ebe1;
}

.faience-page .dept-contact-fixed__tab {
  box-shadow: 0 8px 18px rgba(180, 120, 60, 0.35);
}

.armatures-page .dept-contact-fixed {
  --dept-contact-accent: #3f9a4f;
  --dept-contact-accent-soft: rgba(63, 154, 79, 0.12);
}

.armatures-page .dept-contact-fixed__item {
  background: #f2f8f3;
}

.armatures-page a.dept-contact-fixed__item:hover,
.armatures-page a.dept-contact-fixed__item:focus-visible {
  background: #e6f3e9;
}

.armatures-page .dept-contact-fixed__tab {
  box-shadow: 0 8px 18px rgba(63, 154, 79, 0.35);
}

/* Mobile : onglet + panneau depuis la droite, au-dessus de WhatsApp */
@media (max-width: 991px) {
  .dept-contact-fixed {
    top: auto;
    bottom: 88px;
    right: 0;
    transform: translateX(calc(100% - 52px));
    width: min(280px, calc(100vw - 20px));
  }

  .dept-contact-fixed:hover,
  .dept-contact-fixed:focus-within {
    transform: translateX(0);
  }

  .dept-contact-fixed__inner {
    padding: 14px 14px 14px 54px;
  }
}

@media (max-width: 575px) {
  .dept-contact-fixed {
    bottom: 84px;
  }
}

body .gf-whatsapp-btn {
  z-index: 9999;
}
