/* Un cadre clair continu ; l’agenda conserve toute la place disponible. */
:is(.tr-home,.case-page) .calendar-dialog {
  width: min(1040px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px); margin: auto; padding: 0;
  border: 1px solid transparent; border-radius: 28px; overflow: hidden;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(125deg, #edcb7c99, #efa6bd80 34%, #b6a0d580 65%, #80bfe699) border-box;
  box-shadow: 0 32px 120px #0006; color: #0b2536;
}
:is(.tr-home,.case-page) .calendar-dialog::backdrop { background: #03101dc7; backdrop-filter: blur(8px); }
/* Surface invisible et inerte : Calendly attend sinon de disposer d'une zone visible. */
:is(.tr-home,.case-page) .calendar-dialog:not([open]) {
  display: block; position: fixed; inset: 0; z-index: -1;
  margin: auto; opacity: 0; pointer-events: none;
}
:is(.tr-home,.case-page) .calendar-dialog-panel {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%; max-height: none; border: 0; border-radius: 27px;
  background: #fff; box-shadow: none;
}
:is(.tr-home,.case-page) .calendar-dialog-head {
  gap: 24px; min-height: 118px; padding: 24px 30px;
  color: #0b2536; background: #fff; border-bottom: 1px solid #0b25360d;
}
:is(.tr-home,.case-page) .calendar-dialog-person { gap: 18px; }
:is(.tr-home,.case-page) .calendar-dialog-person > img {
  width: 62px; height: 62px; border: 3px solid #fff; border-radius: 22px;
  box-shadow: 0 0 0 1px #0b253612; object-position: 50% 35%;
}
:is(.tr-home,.case-page) .calendar-dialog-person > div > span {
  color: var(--tr-texte-sur-clair); font-size: 12px; font-weight: 500;
  line-height: 1.5; letter-spacing: 0; text-transform: none;
}
:is(.tr-home,.case-page) .calendar-dialog-person h2 {
  margin: 5px 0 0; color: #0b2536; font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.15;
}
:is(.tr-home,.case-page) .calendar-dialog-person p {
  margin: 8px 0 0; color: var(--tr-texte-sur-clair); font-size: 13px; font-weight: 450;
  line-height: 1.5; text-transform: none; letter-spacing: 0;
}
:is(.tr-home,.case-page) .calendar-dialog-close {
  width: 44px; height: 44px; color: #0b2536; background: #0b253606;
  border: 1px solid #0b253614; box-shadow: none; transform: none;
}
:is(.tr-home,.case-page) .calendar-dialog-close:hover { background: #0b253610; transform: none; }
:is(.tr-home,.case-page) .calendar-frame-shell { min-height: 0; height: 100%; width: 100%; background: #fff; }
:is(.tr-home,.case-page) .calendar-frame-shell iframe { height: 100%; width: 100%; background: #fff; }
:is(.tr-home,.case-page) .calendar-loader { background: #fff; color: #0b2536; gap: 0; }
:is(.tr-home,.case-page) .calendar-loader > span {
  width: 34px; height: 34px; margin-bottom: 20px; border-width: 2px;
  border-color: #0b253610; border-top-color: #638fa5; border-right-color: #c5aad3;
}
:is(.tr-home,.case-page) .calendar-loader strong { font-size: 17px; font-weight: 650; }
:is(.tr-home,.case-page) .calendar-loader small { margin-top: 10px; color: var(--tr-texte-sur-clair); font-size: 13px; }
:is(.tr-home,.case-page) .calendar-dialog-fallback {
  min-height: 44px; padding: 12px 20px; gap: 8px; background: #fafbfaff;
  border-top: 1px solid #0b25360d; color: var(--tr-texte-sur-clair); font-size: 11px; line-height: 1.5;
}
:is(.tr-home,.case-page) .calendar-frame-shell.is-delayed ~ .calendar-dialog-fallback { color: #0b536e; text-decoration: underline; }
:is(.tr-home,.case-page) .calendar-retry {
  margin-top: 22px; padding: 11px 22px; border: 1px solid #0b253622;
  border-radius: 999px; background: #0b2536; color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 650; line-height: 1.4; cursor: pointer;
}
:is(.tr-home,.case-page) .calendar-retry[hidden] { display: none; }
:is(.tr-home,.case-page) .calendar-dialog :is(a, button):focus-visible { outline: 3px solid #548ba2; outline-offset: 3px; }
@media (max-width: 760px) {
  :is(.tr-home,.case-page) .calendar-dialog { width: calc(100vw - 24px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); border-radius: 22px; }
  :is(.tr-home,.case-page) .calendar-dialog-panel { height: 100%; border-radius: 21px; }
  :is(.tr-home,.case-page) .calendar-dialog-head { min-height: 102px; gap: 12px; padding: 18px; }
  :is(.tr-home,.case-page) .calendar-dialog-person { gap: 12px; }
  :is(.tr-home,.case-page) .calendar-dialog-person > img { width: 46px; height: 46px; border-radius: 16px; }
  :is(.tr-home,.case-page) .calendar-dialog-person > div > span { font-size: 11px; }
  :is(.tr-home,.case-page) .calendar-dialog-person h2 { max-width: none; margin-top: 5px; font-size: 22px; }
  :is(.tr-home,.case-page) .calendar-dialog-person p { display: none; }
  :is(.tr-home,.case-page) .calendar-dialog-close { width: 40px; height: 40px; }
  :is(.tr-home,.case-page) .calendar-dialog-fallback { padding: 12px 18px; font-size: 11px; }
}
@media (max-width: 480px) {
  :is(.tr-home,.case-page) .calendar-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  :is(.tr-home,.case-page) .calendar-dialog-panel { border-radius: 0; }
  :is(.tr-home,.case-page) .calendar-dialog-head { padding: 16px 14px; }
  :is(.tr-home,.case-page) .calendar-dialog-person > img { display: none; }
  :is(.tr-home,.case-page) .calendar-dialog-person h2 { font-size: 23px; }
  :is(.tr-home,.case-page) .calendar-dialog-fallback { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  :is(.tr-home,.case-page) .calendar-frame-shell iframe, :is(.tr-home,.case-page) .calendar-loader { transition: none; }
  :is(.tr-home,.case-page) .calendar-loader > span { animation: none; }
}
