/* Short homepage booking dialog, mobile bar, hero reassurance, header fit. */

/*
 * Canonical burger (#rec1119081471) stays visible — legacy page headers
 * are hidden by mvet-modern.js (.mvet-legacy-header) + IDs below.
 * Service funnel pages: drop the extra full-width CTA strip under the
 * burger (doubles the header; Appeler/Réserver live in hero + bookbar).
 */
html[data-mvet-funnel-page] #mvet-service-cta {
  display: none !important;
}

/* Known page-local Tilda headers / spacers (150px) — force-hide so every
   service page matches the compact 100px burger used on urgence. */
#rec1170019031,
#rec1170017956,
#rec1170018781,
#rec1313074821,
#rec1127301251,
#rec1127300966,
#rec1127301066,
#rec1127301626,
#rec1127860686,
#rec1127860876 {
  display: none !important;
}

/* /merci — no booking bar; confirmation page only. */
html body.t-body[data-tilda-page-alias='merci'] #mvet-bookbar,
html:has([data-tilda-page-alias='merci']) #mvet-bookbar,
body.mvet-merci #mvet-bookbar {
  display: none !important;
}
html body.t-body[data-tilda-page-alias='merci'].mvet-has-bookbar,
html:has([data-tilda-page-alias='merci']).mvet-has-bookbar,
body.mvet-merci.mvet-has-bookbar {
  padding-bottom: 0 !important;
}
/* Hero: Appeler with Réserver (stacked mobile / row desktop — JS). */
.mvet-hero-call {
  z-index: 25;
  box-sizing: border-box;
  pointer-events: none;
}
.mvet-hero-call__btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #0f766e;
  font: 700 18px/1.15 'TildaSans', Arial, sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  text-align: center;
}
/* Desktop urgence/dimanche-style row — match dimanche 16px CTAs. */
@media (min-width: 981px) {
  .mvet-hero-call--row .mvet-hero-call__btn {
    font-size: 16px;
    padding: 0 22px;
  }
  html[data-mvet-funnel-page='urgence'] .t-screenmin-980px a[data-mvet-funnel-wired].mvet-booking-cta,
  html[data-mvet-funnel-page='urgence'] .t-screenmin-980px a[data-mvet-funnel-wired] .tn-atom__button-text {
    font-size: 16px !important;
    line-height: 1.2 !important;
  }
  html[data-mvet-funnel-page='urgence'] .t-screenmin-980px a[data-mvet-funnel-wired] .mvet-cta-subtitle {
    font-size: 11px !important;
  }
}

#mvet-book,
#mvet-book * {
  box-sizing: border-box;
}
#mvet-book {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 30, 36, 0.55);
  padding: 16px;
}
#mvet-book.mvet-book-on { display: flex; }
#mvet-book .mvet-book-card {
  position: relative;
  width: min(560px, 100%);
  max-width: 100%;
  max-height: min(86vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  color: #0f2a3a;
  border-radius: 18px;
  padding: 22px 18px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  font-family: 'TildaSans', Arial, sans-serif;
  box-sizing: border-box;
}
@media (min-width: 720px) {
  #mvet-book { align-items: center; }
  #mvet-book .mvet-book-card {
    width: min(640px, calc(100vw - 48px));
    padding: 26px 22px 20px;
  }
}
#mvet-book h2 {
  margin: 0 36px 14px 0;
  font-size: 22px;
  line-height: 1.2;
  font-family: 'Spartan', 'TildaSans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
#mvet-book .mvet-book-x {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #0f2a3a;
}
#mvet-book .mvet-book-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#mvet-book .mvet-book-list--pets {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#mvet-book .mvet-book-list--pets > .mvet-book-choice {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#mvet-book .mvet-book-list--cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 720px) {
  #mvet-book .mvet-book-list--cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
#mvet-book button.mvet-book-choice,
#mvet-book a.mvet-book-choice {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  text-decoration: none;
  border: 1px solid #d7e3e6;
  background: #f7fbfb;
  color: #0f2a3a;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  overflow: hidden;
}
#mvet-book a.mvet-book-choice--service {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
#mvet-book a.mvet-book-choice--service small {
  display: block;
  font-weight: 550;
  font-size: 13px;
  color: #4b6470;
}
#mvet-book a.mvet-book-choice--card,
#mvet-book button.mvet-book-choice--card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 0;
  min-height: 88px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
#mvet-book .mvet-book-choice__media {
  flex: 0 1 108px;
  width: 108px;
  max-width: 34%;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px 0 0 12px;
  background: #e8f2f3;
  box-sizing: border-box;
}
#mvet-book .mvet-book-choice__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#mvet-book .mvet-book-choice__text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#mvet-book .mvet-book-choice__text strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}
#mvet-book button.mvet-book-choice small,
#mvet-book a.mvet-book-choice small,
#mvet-book .mvet-book-choice__text small {
  display: block;
  margin-top: 3px;
  font-weight: 500;
  font-size: 12px;
  color: #3d5560;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
#mvet-book .mvet-book-secondary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}
#mvet-book .mvet-book-secondary a {
  color: #0f766e;
  font-size: 14px;
  font-weight: 650;
}
#mvet-book .mvet-book-back {
  border: 0;
  background: transparent;
  color: #0f766e;
  font: inherit;
  font-weight: 700;
  padding: 0 0 10px;
  cursor: pointer;
}
#mvet-book .mvet-book-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  color: #9a3412;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

/* Top CTA on service pages */
#mvet-service-cta {
  position: relative;
  z-index: 5;
  background: #0f766e;
  color: #fff;
  font-family: 'TildaSans', Arial, sans-serif;
}
#mvet-service-cta .mvet-service-cta__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
#mvet-service-cta .mvet-service-cta__book,
#mvet-service-cta .mvet-service-cta__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font: 700 15px/1.2 'TildaSans', Arial, sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-sizing: border-box;
}
#mvet-service-cta .mvet-service-cta__book {
  background: #fff;
  color: #0f766e;
}
#mvet-service-cta .mvet-service-cta__call {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
/* Urgence / dimanche : Appeler first → primary visual. */
#mvet-service-cta .mvet-service-cta__inner > .mvet-service-cta__call:first-child {
  background: #fff;
  color: #0f766e;
  border: 0;
}
#mvet-service-cta .mvet-service-cta__inner > .mvet-service-cta__call:first-child + .mvet-service-cta__book {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.mvet-reassure {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 18px 24px 22px;
  text-align: center;
  color: #0f2a3a;
  background: #fff;
  font-family: 'TildaSans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  box-sizing: border-box;
}
@media (max-width: 980px) {
  .mvet-reassure {
    padding: 20px 20px 28px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
    text-align: center;
    color: #0f2a3a;
    background: #f7fbfb;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e6eef0;
  }
}

.mvet-social-footer {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: min(520px, calc(100% - 32px)) !important;
  margin: 36px auto 96px !important;
  justify-content: center !important;
}
.mvet-social-footer .mvet-hero-social__intro {
  color: #0f2a3a !important;
  text-shadow: none !important;
}

#mvet-bookbar {
  display: none;
}
@media (max-width: 980px) {
  #mvet-bookbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100060;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
    align-items: stretch;
    box-sizing: border-box;
  }
  #mvet-bookbar a,
  #mvet-bookbar button {
    flex: 1 1 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0;
    border-radius: 12px;
    min-height: 48px;
    height: 48px;
    padding: 0 10px !important;
    margin: 0;
    box-sizing: border-box !important;
    font: 700 14px/1.2 'TildaSans', Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
  }
  #mvet-bookbar .mvet-bar-book {
    background: #0f766e;
    color: #fff;
  }
  #mvet-bookbar .mvet-bar-call {
    background: #fff;
    color: #0f766e;
    border: 2px solid #0f766e !important;
    line-height: 1.2 !important;
  }
  /* Urgence: Appeler first → primary visual on the call button. */
  body.mvet-bookbar-call-first #mvet-bookbar .mvet-bar-call {
    background: #0f766e;
    color: #fff;
    border: 0 !important;
  }
  body.mvet-bookbar-call-first #mvet-bookbar .mvet-bar-book {
    background: #fff;
    color: #0f766e;
    border: 2px solid #0f766e !important;
  }
  body.mvet-has-bookbar { padding-bottom: 74px; }
  body.mvet-has-bookbar #mvet-contact-root { bottom: 86px; }
  body.mvet-book-open #mvet-bookbar { display: none; }
  body.mvet-book-open #mvet-contact-root { bottom: 20px; }

  /*
   * Compact mobile header + matching spacer.
   * Tilda ships a 150px empty spacer (#rec1121808786) under the fixed strip.
   * After packing the strip to 100px, that spacer must shrink too or it leaves
   * a useless white band above the teal hero.
   */
  /* Fixed strip only — do NOT set height on #rec1119081471 itself (it must
     stay out of document flow; the spacer below reserves the offset). */
  html body #rec1119081471 .t396__artboard,
  html body #rec1119081471 .t396__filter,
  html body #rec1119081471 .t396__carrier {
    height: 100px !important;
    min-height: 100px !important;
  }
  /* Homepage spacer matches compact burger height (100px). */
  html body #rec1121808786,
  html body #rec1121808786 .t396__artboard,
  html body #rec1121808786 .t396__filter,
  html body #rec1121808786 .t396__carrier {
    height: 100px !important;
    min-height: 100px !important;
  }
  html body #rec1119081471 .tn-elem[data-elem-id="1750680131697"] {
    display: none !important;
  }
  html body #rec1119081471 .tn-elem[data-elem-id="1750576925274"] {
    top: 10px !important;
  }
  html body #rec1119081471 .tn-elem[data-elem-id="1750664405852"],
  html body #rec1119081471 .tn-elem[data-elem-id="1750664426162"],
  html body #rec1119081471 .tn-elem[data-elem-id="1750664437516"] {
    top: 14px !important;
  }
  html body #rec1119081471 .tn-elem[data-elem-id="1678362089816"] {
    top: 50px !important;
    height: 40px !important;
  }

  /* Homepage hero — pull the title up (urgence uses other recs).
     The "Réservez" label is a flex child of the white pill. An artboard
     top offset (the old 148px) drops the words out of the card on phones. */
  html body #rec1119131981 .tn-elem[data-elem-id="1684938027811"] {
    top: 18px !important;
  }
  html body #rec1119131981 .t396__elem-flex[data-elem-id="1715090907831"] {
    top: initial !important;
    left: initial !important;
  }
  /* Photo is already placed by the flex group under the pill.
     An artboard top (the old 248px) drops the dog and cat below the fold. */
  html body #rec1119131981 .tn-elem[data-elem-id="1750576020472"] {
    top: 0 !important;
  }

  /* /merci — hide paw GIF overlapping confirmation; tighten title under image. */
  html body #rec733923655 .tn-elem[data-elem-id="1713179363058"] {
    display: none !important;
  }
  html body #rec733923655 .tn-elem[data-elem-id="1684938027811"] {
    top: 420px !important;
  }
}

/*
 * Homepage hero pets — desktop (#rec1118895206).
 * Tilda parks the dog+cat at ~147–176px so only heads clear the teal fold.
 * Raise + stretch to the artboard floor; keep overflow clipped by #allrecords.
 */
@media (min-width: 981px) {
  html body #rec1118895206 .tn-elem[data-elem-id="1750576020472"] {
    top: 70px !important;
    left: auto !important;
    right: 0 !important;
    width: min(54vw, 740px) !important;
    height: 530px !important;
  }
  html body #rec1118895206 .tn-elem[data-elem-id="1750576020472"] .tn-atom,
  html body #rec1118895206 .tn-elem[data-elem-id="1750576020472"] .tn-atom__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: right bottom !important;
  }
}

html.mvet-paid-landing .tn-elem[data-elem-id="1750680131697"] {
  display: none !important;
}

/*
 * Desktop: Tilda's fixed header + spacer are 180px, but the logo/phone/flags
 * strip only needs ~150px (or ~100px when the app banner is hidden). The
 * leftover white under the phone is trimmed here.
 */
@media (min-width: 981px) {
  html.mvet-desktop-burger #rec1118894521 .t396__artboard,
  html.mvet-desktop-burger #rec1118894521 .t396__filter,
  html.mvet-desktop-burger #rec1122217671,
  html.mvet-desktop-burger #rec1122217671 .t396__artboard {
    height: 150px !important;
  }

  html.mvet-paid-landing.mvet-desktop-burger #rec1119081471 .t396__artboard,
  html.mvet-paid-landing.mvet-desktop-burger #rec1119081471 .t396__filter {
    height: 100px !important;
  }
  html.mvet-paid-landing.mvet-desktop-burger #rec1119081471 .tn-elem[data-elem-id="1750576925274"] {
    top: 20px !important;
  }
  html.mvet-paid-landing.mvet-desktop-burger #rec1119081471 .tn-elem[data-elem-id="1750664405852"],
  html.mvet-paid-landing.mvet-desktop-burger #rec1119081471 .tn-elem[data-elem-id="1750664426162"],
  html.mvet-paid-landing.mvet-desktop-burger #rec1119081471 .tn-elem[data-elem-id="1750664437516"] {
    top: 26px !important;
  }
  html.mvet-paid-landing.mvet-desktop-burger #rec1119081471 .tn-elem[data-elem-id="1678362089816"] {
    top: 20px !important;
  }
  html.mvet-paid-landing.mvet-desktop-burger #rec1118894521 .t396__artboard,
  html.mvet-paid-landing.mvet-desktop-burger #rec1118894521 .t396__filter,
  html.mvet-paid-landing.mvet-desktop-burger #rec1122217671,
  html.mvet-paid-landing.mvet-desktop-burger #rec1122217671 .t396__artboard {
    height: 100px !important;
  }
}

/* Let the address sit above the pin without moving Tilda's cards. */
html body .t-popup .mvet-loc-three .tn-elem[data-elem-id="1770894528777000001"],
html body .t-popup .mvet-loc-three .tn-elem[data-elem-id="1770894547268000001"],
html body .t-popup .mvet-loc-three .tn-elem[data-elem-id="1770894562155000001"],
html body .t-popup .mvet-loc-three .tn-elem[data-elem-id="1770894528777000002"],
html body .t-popup .mvet-loc-three .tn-elem[data-elem-id="1770894547268000002"],
html body .t-popup .mvet-loc-three .tn-elem[data-elem-id="1770894562155000002"] {
  z-index: 6 !important;
}
html body .t-popup .mvet-loc-three .tn-elem[data-elem-id="1770894528777000001"] .tn-atom,
html body .t-popup .mvet-loc-three .tn-elem[data-elem-id="1770894547268000001"] .tn-atom,
html body .t-popup .mvet-loc-three .tn-elem[data-elem-id="1770894562155000001"] .tn-atom,
html body .t-popup .mvet-loc-three .tn-elem[data-elem-id="1770894528777000002"] .tn-atom,
html body .t-popup .mvet-loc-three .tn-elem[data-elem-id="1770894547268000002"] .tn-atom,
html body .t-popup .mvet-loc-three .tn-elem[data-elem-id="1770894562155000002"] .tn-atom {
  white-space: normal !important;
  line-height: 1.3 !important;
}
