/* Shared shell layer for the refactored hero + chat frame */

body.fr_FR {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 214, 188, 0.96), transparent 24%),
    radial-gradient(circle at 88% 4%, rgba(255, 241, 220, 0.9), transparent 18%),
    radial-gradient(circle at 50% 18%, rgba(165, 48, 71, 0.12), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, #f7ede5 38%, #eddcd1 100%);
}

body.fr_FR::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 42%);
  opacity: 0.35;
}

header {
  margin: 24px auto 16px;
  padding: 0 16px;
  max-width: 1120px;
  position: relative;
  isolation: isolate;
}

header::before {
  content: "";
  position: absolute;
  inset: -34px 10px auto;
  height: 150px;
  border-radius: 48px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.9), transparent 34%),
    radial-gradient(circle at 78% 12%, rgba(214, 116, 103, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 233, 221, 0.08));
  filter: blur(14px);
  z-index: 0;
}

header::after {
  content: "";
  position: absolute;
  inset: 14px 18px auto;
  height: 112px;
  border-radius: 28px;
  border: 1px solid rgba(227, 192, 205, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  z-index: 0;
}

.js-shared-hero {
  position: relative;
  z-index: 1;
}

.hero-intro {
  display: block;
  max-width: none;
  margin: 0 auto 12px;
  color: #5c4037;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
}

.hero-intro::before {
  content: "Consultation privée";
  display: inline-block;
  margin: 0 auto 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 240, 244, 0.98), rgba(248, 201, 213, 0.95) 52%, rgba(233, 138, 167, 0.92));
  border: 1px solid rgba(214, 120, 150, 0.92);
  box-shadow: 0 14px 28px rgba(175, 84, 114, 0.16);
  color: #9f2f5c;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-banner {
  display: none;
}

#head-title {
  max-width: 930px;
  margin: 0 auto 18px;
  padding: 30px 30px 24px;
  border-radius: 38px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 1), rgba(255, 245, 248, 0.97) 40%, rgba(255, 231, 236, 0.99) 100%);
  border: 1px solid #efc0cf;
  box-shadow: 0 32px 76px rgba(126, 54, 80, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.98);
  overflow: hidden;
  position: relative;
}

#head-title::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #d45d7e, #eb8fa2 56%, #f2b3b3);
}

#head-title b {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  color: #b23763;
  font-size: clamp(27px, 3.9vw, 50px);
}

#head-title span {
  display: block;
  max-width: 640px;
  margin: 14px auto 0;
  color: #775761;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.66;
}

#head-title .head-kicker {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 12px;
  color: #7a5b65;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.52;
  white-space: nowrap;
}

#head-title .head-kicker::before {
  content: "Consultation privée";
  display: block;
  width: max-content;
  margin: 0 auto 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 240, 244, 0.98), rgba(248, 201, 213, 0.95) 52%, rgba(233, 138, 167, 0.92));
  border: 1px solid rgba(214, 120, 150, 0.92);
  box-shadow: 0 12px 24px rgba(175, 84, 114, 0.14);
  color: #9f2f5c;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-marquee {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 246, 248, 0.7));
  border: 1px solid rgba(240, 203, 213, 0.82);
  box-shadow: 0 18px 34px rgba(132, 70, 93, 0.1);
}

.hero-marquee__viewport {
  overflow: hidden;
  border-radius: 999px;
}

.hero-marquee__track {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-marquee__item {
  display: inline-block;
  white-space: nowrap;
  padding: 12px 20px;
  background: rgb(255, 191, 191);
  color: #7f1f48 !important;
  box-shadow: 0 16px 30px rgba(150, 82, 92, 0.14);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-right: 40px;
  will-change: transform;
  transform: translate3d(100%, 0, 0);
  animation: none;
}

.hero-marquee__item a {
  color: #cc0000 !important;
  font-weight: 800;
  text-decoration: none;
  margin: 0 10px;
}

.country-link {
  display: inline;
  vertical-align: baseline;
  white-space: nowrap;
}

.country-link__meta {
  display: inline;
  vertical-align: baseline;
}

.hero-marquee:hover .hero-marquee__item {
  animation-play-state: paused;
}

@keyframes hero-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes hero-marquee-scroll-fallback {
  from {
    transform: translate3d(var(--hero-marquee-start, 100%), 0, 0);
  }

  to {
    transform: translate3d(var(--hero-marquee-end, calc(-100% - 40px)), 0, 0);
  }
}

.chatbox {
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 0 12px;
  border-radius: 42px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 251, 0.99), rgba(249, 241, 236, 0.97));
  border: 1px solid #ead8cf;
  box-shadow: 0 46px 110px rgba(72, 40, 31, 0.18);
  overflow: visible;
  position: relative;
  isolation: isolate;
}

.chatbox::before {
  content: "";
  display: block;
  height: 18px;
  margin: -46px -18px 24px;
  background: linear-gradient(90deg, #d85f83, #eb95a7 62%, #f4c2c2);
}

.chatbox::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 30px;
  border: 1px solid rgba(225, 203, 194, 0.54);
  pointer-events: none;
}

.chat-stage {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 20px 4px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(240, 221, 213, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(131, 39, 66, 0.98), rgba(183, 84, 115, 0.96));
  box-shadow: 0 22px 38px rgba(114, 46, 69, 0.22);
  color: #fff6f8;
}

.chat-topbar__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.chat-topbar__avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(74, 18, 37, 0.26);
  object-fit: cover;
}

.chat-topbar__text strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.chat-topbar__text span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 244, 247, 0.84);
  font-size: 0.62rem;
  line-height: 1.32;
  white-space: nowrap;
  overflow-wrap: normal;
  letter-spacing: 0;
}

.chat-topbar__text:empty {
  display: none;
}

.chat-topbar__status {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
  min-width: 160px;
  flex: 0 1 160px;
}

.chat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #92e06d;
  box-shadow: 0 0 0 6px rgba(146, 224, 109, 0.14);
}

.chat-topbar__meta {
  color: rgba(255, 244, 247, 0.78);
  font-size: 0.84rem;
  line-height: 1.45;
}

.dialogboxes {
  max-width: 800px;
  margin-top: 12px;
  margin-left: auto;
  margin-right: auto;
}

.dialogboxes::before {
  content: none;
  display: none;
}

@media (min-width: 768px) {
  .anabelleimg.hidden-xs {
    display: none !important;
  }

  .dialogboxes {
    margin-left: 24px !important;
    margin-right: 24px !important;
  }
}

@media (max-width: 767px) {
  header {
    margin: 12px auto 8px;
    padding: 0 10px;
  }

  header::before {
    inset: -8px 10px auto;
    height: 214px;
    border-radius: 28px;
    filter: blur(14px);
  }

  header::after {
    inset: 10px 18px auto;
    height: 168px;
    border-radius: 24px;
  }

  .hero-intro {
    display: block;
    width: calc(100% - 18px);
    max-width: 280px;
    margin: 0 auto 8px !important;
    padding: 0 4px;
    box-sizing: border-box;
    font-size: 0.78rem;
    line-height: 1.42;
    text-align: center !important;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #744652;
  }

  .hero-intro::before {
    content: none;
  }

  #head-title {
    margin-bottom: 9px;
    padding: 18px 13px 14px;
    border-radius: 24px;
    font-size: clamp(26px, 7.6vw, 40px);
    background: radial-gradient(circle at top, rgba(255, 255, 255, 1), rgba(255, 245, 248, 0.97) 40%, rgba(255, 231, 236, 0.99) 100%);
    border: 1px solid #efc0cf;
    box-shadow: 0 24px 48px rgba(126, 54, 80, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.98);
  }

  #head-title::before {
    background: linear-gradient(90deg, #d45d7e, #eb8fa2 56%, #f2b3b3);
  }

  #head-title::after {
    background: radial-gradient(circle, rgba(224,118,149,0.22), transparent 68%);
  }

  #head-title b {
    color: #b23763;
  }

  #head-title span {
    display: block;
    max-width: 25ch;
    margin: 8px auto 0;
    color: #7b5d67;
    font-size: 0.85rem;
    line-height: 1.42;
  }

  #head-title .head-kicker {
    width: 100%;
    max-width: 36ch;
    margin: 0 auto 8px;
    font-size: 0.72rem;
    line-height: 1.32;
    white-space: normal;
    text-wrap: balance;
    color: #7a5b65;
  }

  #head-title .head-kicker::before {
    display: block;
    width: max-content;
    margin: 0 auto 8px;
    padding: 6px 10px;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, rgba(255,240,244,.98), rgba(248,201,213,.95) 52%, rgba(233,138,167,.92));
    border: 1px solid rgba(214,120,150,.92);
    box-shadow: 0 10px 18px rgba(175, 84, 114, 0.12);
    color: #9f2f5c;
  }

  .hero-marquee {
    padding: 10px 6px 8px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,246,248,.7));
    border: 1px solid rgba(240,203,213,0.82);
    box-shadow: 0 14px 28px rgba(132, 70, 93, 0.08);
  }

  .hero-marquee__item {
    padding: 10px 12px;
    padding-right: 28px;
    font-size: 12px;
    line-height: 1.35;
    background: rgb(255, 191, 191);
    color: #7f1f48 !important;
  }

  .chatbox {
    border-radius: 24px;
    padding: 8px 8px 10px;
    background: linear-gradient(180deg, rgba(255, 252, 251, 0.99), rgba(249, 241, 236, 0.97));
    border: 1px solid #ead8cf;
    box-shadow: 0 30px 64px rgba(72, 40, 31, 0.12);
  }

  .chatbox::before {
    margin: -20px -12px 12px;
    height: 8px;
    background: linear-gradient(90deg, #d85f83, #eb95a7 62%, #f4c2c2);
  }

  .chatbox::after {
    inset: 8px;
    border-radius: 18px;
    border: 1px solid rgba(225, 203, 194, 0.5);
  }

  .chat-stage {
    padding: 8px 8px 4px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.64), rgba(255,255,255,0.28));
    border: 1px solid rgba(240,221,213,0.76);
  }

  .chat-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 13px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(131,39,66,.98), rgba(183,84,115,.96));
    box-shadow: 0 18px 28px rgba(114,46,69,0.18);
  }

  .chat-topbar__identity {
    width: 100%;
    align-items: center;
    gap: 9px;
  }

  .chat-topbar__avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 3px solid rgba(255,255,255,0.86);
    box-shadow: 0 10px 20px rgba(74,18,37,0.18);
  }

  .chat-topbar__text {
    min-width: 0;
    width: 100%;
  }

  .chat-topbar__text strong {
    font-size: 0.98rem;
    line-height: 1.22;
  }

  .chat-topbar__text span {
    color: rgba(255,244,247,0.82);
  }

  .chat-topbar__status {
    width: 100%;
    justify-items: start;
    text-align: left;
    min-width: 0;
    flex: 1 1 auto;
    gap: 6px;
  }

  .chat-pill {
    white-space: normal;
    font-size: 0.72rem;
    line-height: 1.25;
    background: rgba(255,255,255,0.16);
    color: #fff;
  }

  .chat-pill::before {
    background: #92e06d;
    box-shadow: 0 0 0 6px rgba(146,224,109,0.12);
  }

  .chat-topbar__meta {
    font-size: 0.76rem;
    line-height: 1.38;
    overflow-wrap: anywhere;
    color: rgba(255,244,247,0.78);
  }

  .dialogboxes {
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
  }

  .dialogboxes::before {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    padding: 9px 12px;
    margin: 0 0 12px;
    border-radius: 16px;
    font-size: 0.68rem;
    line-height: 1.35;
    letter-spacing: 0.05em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee__item {
    animation: none;
  }
}
