.home-hero-page > main {
  overflow-x: clip;
}

.home-hero-page [data-chatbot-root] > [data-chatbot-trigger]:first-of-type {
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
}

.home-hero-page [data-chatbot-root] > [data-chatbot-trigger]:first-of-type > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.home-hero-page [data-chatbot-root] > [data-chatbot-trigger]:nth-of-type(2) {
  display: none;
}

.home-hero {
  --hero-ink: #101a3d;
  --hero-body: #414e60;
  --hero-blue: #073df4;
  --hero-gutter: clamp(1rem, 3.5vw, 3rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.6rem, 6.6vw, 6.25rem) var(--hero-gutter) clamp(3rem, 6vw, 5.25rem);
  background-color: #eaf8fc;
  color: var(--hero-ink);
  scroll-margin-top: 4.5rem;
}

.home-hero__backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.home-hero__intro {
  display: grid;
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.home-hero__title {
  max-width: 25ch;
  margin: 0;
  color: var(--hero-ink);
  font: 700 clamp(2.125rem, 6.4vw, 5.75rem)/1.06 Inter, system-ui, sans-serif;
  letter-spacing: -0.057em;
  text-wrap: balance;
}

.home-hero__title > span {
  display: block;
}

.home-hero__accent {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.home-hero__accent img {
  position: absolute;
  inset-inline: 1%;
  top: 101%;
  width: 98%;
  height: auto;
  pointer-events: none;
}

.home-hero__description {
  max-width: 66ch;
  margin: clamp(1.9rem, 3vw, 2.8rem) 0 0;
  color: var(--hero-body);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.home-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: clamp(1.6rem, 3vw, 2.55rem);
}

.home-hero__cta {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem clamp(1.2rem, 2.6vw, 2.15rem);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 700;
  line-height: 1.3;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-hero__cta--primary {
  background-color: var(--hero-blue);
  color: #fff;
}

.home-hero__cta--primary:hover {
  background-color: #0b2ec0;
  box-shadow: 0 7px 20px rgb(7 61 244 / 18%);
}

.home-hero__cta--secondary {
  border-color: #30b3b6;
  background-color: rgb(255 255 255 / 69%);
  color: var(--hero-ink);
}

.home-hero__cta--secondary:hover {
  border-color: #169091;
  background-color: #fff;
}

.home-hero__cta--secondary img {
  flex: 0 0 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
}

.home-hero :focus-visible {
  outline: 2px solid var(--hero-blue);
  outline-offset: 5px;
}

.home-hero__trial {
  margin: 1rem 0 0;
  color: #4b5b6e;
  font-size: 0.9rem;
  line-height: 1.5;
}

.home-hero__demo {
  max-width: 82rem;
  margin: clamp(2.75rem, 5vw, 4.5rem) auto 0;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  border: 2px solid rgb(255 255 255 / 82%);
  border-radius: clamp(1.5rem, 4vw, 3.5rem);
  background-color: rgb(180 229 254 / 36%);
  box-shadow: inset 0 1px 8px rgb(255 255 255 / 40%), 0 20px 65px rgb(53 110 151 / 10%);
  scroll-margin-top: 5.25rem;
  animation: home-hero-demo-intro 510ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes home-hero-demo-intro {
  from {
    opacity: 0.84;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero__toggle {
  position: relative;
  display: flex;
  width: fit-content;
  min-height: 2.9rem;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.65vw, 1.25rem);
  margin: 0 auto clamp(1rem, 3vw, 2rem);
  padding: 0.35rem 0.45rem 0.35rem clamp(0.65rem, 2vw, 1.3rem);
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(26 75 121 / 6%);
  color: var(--hero-ink);
  cursor: pointer;
  font-size: clamp(0.72rem, 1.25vw, 0.95rem);
  font-weight: 700;
  line-height: 1.2;
}

.home-hero__toggle input,
.home-hero__announcement {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.home-hero__toggle:has(input:focus-visible) {
  outline: 2px solid var(--hero-blue);
  outline-offset: 4px;
}

.home-hero__toggle-state {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.275rem 0.6rem;
  border-radius: 999px;
  background: #eef1f5;
  color: #3e4d63;
  white-space: nowrap;
}

.home-hero__toggle-track {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.125rem;
  align-items: center;
  border-radius: 999px;
  background: #596b81;
  transition: background-color 160ms ease;
}

.home-hero__toggle-track::before {
  width: 0.81rem;
  height: 0.81rem;
  margin-inline: 0.17rem;
  border-radius: 50%;
  background: #fff;
  content: '';
  transition: transform 160ms ease;
}

.home-hero__toggle:has(input:checked) .home-hero__toggle-state {
  background: #daf8ef;
  color: #164b43;
}

.home-hero__toggle:has(input:checked) .home-hero__toggle-track {
  background: #087f65;
}

.home-hero__toggle:has(input:checked) .home-hero__toggle-track::before {
  transform: translateX(0.69rem);
}

.home-hero__demo:has(input:checked) .home-hero__disabled,
.home-hero__demo:not(:has(input:checked)) .home-hero__enabled {
  display: none;
}

.home-hero__calendars {
  --agenda-gap: clamp(0.8rem, 3.1vw, 2.5rem);
  --agenda-heading: 3.6rem;
  --agenda-row: 4.85rem;
  --agenda-edge: clamp(0.7rem, 2.4vw, 1.7rem);
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--agenda-gap);
}

.home-hero__agenda {
  min-width: 0;
  padding: 0 var(--agenda-edge) 0.65rem;
  border: 1px solid rgb(255 255 255 / 96%);
  border-radius: clamp(1rem, 2.25vw, 1.9rem);
  background: rgb(252 254 255 / 92%);
  box-shadow: 0 14px 35px rgb(46 110 159 / 11%);
}

.home-hero__agenda-heading {
  display: flex;
  min-width: 0;
  height: var(--agenda-heading);
  align-items: center;
  gap: clamp(0.35rem, 1vw, 0.65rem);
  margin: 0;
  font-size: clamp(0.92rem, 1.7vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.home-hero__agenda-heading img {
  width: clamp(1.15rem, 2.15vw, 1.8rem);
  height: auto;
}

.home-hero__agenda-heading .home-hero__doctolib {
  width: clamp(4.85rem, 9vw, 7.85rem);
}

.home-hero__slot {
  display: grid;
  min-width: 0;
  height: var(--agenda-row);
  grid-template-columns: clamp(4.05rem, 9vw, 7rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.3rem, 0.8vw, 0.75rem);
  border-top: 1px solid #e3edf7;
}

.home-hero__time {
  color: #526276;
  font-size: clamp(0.76rem, 1.18vw, 0.98rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.home-hero__event {
  display: grid;
  min-width: 0;
  min-height: 3.15rem;
  align-content: center;
  gap: 0.12rem;
  padding: 0.45rem clamp(0.45rem, 1.35vw, 0.9rem);
  border-inline-start: 4px solid #218df0;
  border-radius: 0.65rem;
  background: #e1efff;
  color: #132542;
  font-size: clamp(0.76rem, 1.2vw, 0.94rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.home-hero__event strong {
  font-weight: 650;
}

.home-hero__event small {
  color: #33445c;
  font-size: 0.82em;
  font-weight: 500;
}

.home-hero__event--blocked {
  border-color: #7a8fa5;
  background: #e7edf4;
}

.home-hero__event--available {
  border-color: #9ec5b5;
  background: #eef6f2;
}

.home-hero__event--booking {
  border-color: #16aa86;
  background: #d7f4e8;
}

.home-hero__connector {
  --pulse-travel: calc(var(--agenda-gap) + var(--agenda-edge) - 0.5rem);
  position: absolute;
  z-index: 1;
  top: calc(1px + var(--agenda-heading) + 1.5 * var(--agenda-row));
  left: 50%;
  width: calc(var(--pulse-travel) + 0.5rem);
  height: 2px;
  border-radius: 2px;
  background: #49bdad;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.home-hero__connector::before,
.home-hero__connector::after,
.home-hero__connector > span {
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border: 1px solid #e9fffa;
  border-radius: 50%;
  background: #31bfa8;
  content: '';
}

.home-hero__connector::before {
  left: 0;
}

.home-hero__connector::after,
.home-hero__connector > span {
  right: 0;
}

.home-hero__connector > span {
  z-index: 1;
  background: #fff;
  box-shadow: 0 0 12px 3px #4cdbc3;
  opacity: 0;
}

@media (min-width: 64.0625rem) {
  .home-hero__cta {
    min-width: 18rem;
  }
}

@media (min-width: 64.0625rem) and (max-height: 62rem) {
  .home-hero {
    padding-block: clamp(2.5rem, 6.5vh, 4.25rem) 3rem;
  }

  .home-hero__title {
    font-size: min(5.2vw, 8.7vh, 4.55rem);
  }

  .home-hero__description {
    margin-top: 1.9rem;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
  }

  .home-hero__actions {
    margin-top: 1.75rem;
  }

  .home-hero__demo {
    margin-top: clamp(2rem, 5vh, 3rem);
    padding: clamp(1.3rem, 3vh, 2rem);
  }

  .home-hero__toggle {
    margin-bottom: 1.2rem;
  }

  .home-hero__calendars {
    --agenda-heading: 3.15rem;
    --agenda-row: 4.3rem;
  }
}

@media (max-width: 46rem) {
  .home-hero__calendars {
    --agenda-heading: 3.05rem;
    --agenda-row: 5rem;
  }

  .home-hero__slot {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 0.3rem;
  }

  .home-hero__event {
    min-height: 2.7rem;
  }

  .home-hero__connector {
    top: calc(var(--agenda-heading) + 1.5 * var(--agenda-row) + 0.55rem);
  }
}

@media (max-width: 29rem) {
  .home-hero {
    padding-top: 2.9rem;
  }

  .home-hero__title {
    font-size: clamp(1.82rem, 8.9vw, 2.125rem);
  }

  .home-hero__actions {
    width: min(100%, 20rem);
    gap: 0.65rem;
  }

  .home-hero__cta {
    width: 100%;
    min-height: 2.9rem;
  }

  .home-hero__demo {
    margin-top: 2.15rem;
  }

  .home-hero__calendars {
    --agenda-edge: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero *,
  .home-hero *::before,
  .home-hero *::after {
    animation: none !important;
    transition: none !important;
  }
}
