/* Invitation ronde. Le lien reste actif sans JavaScript. */
.callback-invite[hidden], .callback-panel[hidden], .callback-invite [data-callback-dismiss][hidden] { display: none; }
.callback-invite {
  --invite-size: 142px;
  position: fixed;
  z-index: 65;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: var(--invite-size);
  height: var(--invite-size);
  pointer-events: none;
}
.callback-invite :is(button, .callback-action), .callback-panel button { font: inherit; cursor: pointer; }
.callback-invite .callback-action {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid #17515b;
  border-radius: 50%;
  background: radial-gradient(ellipse at 32% 14%, #327780, #164e58 56%, #0d363f);
  box-shadow: inset 0 2px 2px #86afb1, inset 0 -4px 5px #092e36, 0 3px 0 #092e36, 0 7px 14px rgb(10 43 49 / 22%);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font: 700 13.5px/1.2 "Segoe UI", Arial, sans-serif;
  pointer-events: auto;
}
.callback-action svg { flex: none; width: 17px; height: 17px; color: #d3eded; }
.callback-action .callback-copy { display: grid; justify-items: center; font-weight: 600; }
.callback-copy > span { white-space: nowrap; }
.callback-copy strong { margin-top: 3px; color: #ffefcf; text-decoration: underline; text-underline-offset: 3px; }
.callback-invite .callback-action:hover { filter: brightness(1.08); }
.callback-invite .callback-action:active { transform: translateY(2px); }
.callback-invite .callback-dismiss {
  position: absolute;
  top: -9px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 12px, #688c91 12.5px 13.5px, transparent 14px);
  color: #163d44;
  font: 700 17px/1 Arial, sans-serif;
  pointer-events: auto;
}
.callback-invite .callback-dismiss:hover { color: #000; }
.callback-invite :focus-visible { outline: 3px solid #e58a63; outline-offset: 2px; }
.callback-panel :focus-visible { outline: 2px solid #164b55; outline-offset: 2px; }
@media (max-width: 720px), (max-height: 460px) {
  .callback-invite {
    --invite-size: 124px;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  .callback-invite .callback-action { gap: 4px; padding: 8px 10px; font-size: 12.5px; }
  .callback-action svg { width: 15px; height: 15px; }
}
.callback-panel {
  box-sizing: border-box;
  position: fixed;
  z-index: 75;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(390px, calc(100% - 32px));
  max-height: min(72vh, 640px);
  max-height: min(72dvh, 640px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e6c7b9;
  border-top: 4px solid #ec9776;
  border-radius: 16px;
  background: #fff;
  color: #203e44;
  padding: 20px;
  box-shadow: 0 8px 32px rgb(21 52 57 / 14%);
  font: 12px/1.45 "Segoe UI", Arial, sans-serif;
}
.callback-panel .callback-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.callback-panel h2 { margin: 1px 0 0; color: #17363d; font-size: 18.4px; line-height: 1.18; }
.callback-panel .callback-close { flex: none; width: 40px; height: 40px; margin: -6px -6px 0 0; color: #334d52; background: #f5f5f2; border: 0; border-radius: 50%; font-size: 17.6px; }
.callback-panel .intro { margin: 6px 0 16px; color: #476068; }
.callback-panel .row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.callback-panel .field { min-width: 0; margin-bottom: 11px; }
.callback-panel label { display: block; margin: 0 0 4px; font-weight: 650; font-size: 10.4px; }
.callback-panel .field input, .callback-panel textarea {
  box-sizing: border-box; width: 100%; min-width: 0; color: #203e44;
  background: white; border: 1px solid #abc1c2; border-radius: 8px; padding: 8px 10px; font: inherit;
}
.callback-panel textarea { min-height: 60px; resize: vertical; }
.callback-panel .callback-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 9.6px; font-weight: 400; }
.callback-panel .callback-consent input { flex: none; width: auto; margin: 3px 0 0; }
.callback-panel .submit { display: block; width: 100%; margin: 14px 0 0; padding: 11px 12px; border: 0; background: #164b55; color: white; border-radius: 9px; font-weight: 700; }
.callback-panel .legal { margin: 10px 0 0; font-size: 9.6px; line-height: 1.4; color: #53666b; }
.callback-panel .legal a { color: #164b55; text-decoration: underline; }
@media (max-width: 720px), (max-height: 460px) {
  .callback-panel {
    position: static; margin: 20px 12px 20px auto; width: min(390px, calc(100% - 24px));
    max-height: none; overflow: visible; scroll-margin-top: 16px;
  }
  .callback-panel .field input, .callback-panel textarea { font-size: 12.8px; }
}
@media (max-width: 380px) { .callback-panel .row { grid-template-columns: 1fr; gap: 0; } }
@media print { .callback-invite, .callback-panel { display: none; } }
