/* Tokens & mobile hero/header fixes for Astro SSR (dispojob.com parity) */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.vitrine-root {
  --vitrine-font-heading: Manrope, system-ui, sans-serif;
  --vitrine-dark: #0a141a;
  --vitrine-ink: #2a2e31;
  --vitrine-green: #379e7e;
  --vitrine-coral: #f06449;
  --vitrine-blue: #3b82f6;
  --vitrine-yellow: #f5b942;
  --vitrine-pink: #e6005c;
  --vitrine-gutter: clamp(1rem, 4vw, 1.75rem);
  --marketing-header-offset: 84px;
  /* Espacements site (multiples de 4px) */
  --vitrine-space-1: 0.25rem;
  --vitrine-space-2: 0.5rem;
  --vitrine-space-3: 0.75rem;
  --vitrine-space-4: 1rem;
  --vitrine-space-5: 1.25rem;
  --vitrine-space-6: 1.5rem;
  --vitrine-space-7: 1.75rem;
  --vitrine-space-8: 2rem;
}

.marketing-header.is-menu-open .marketing-header__mobile:not([hidden]) {
  display: grid !important;
}

/* Sous-menus mobile (JS) — styles non-scopés en secours + parité dispojob.com */
.marketing-header__mobile-children {
  display: grid !important;
  gap: 0;
  padding: 0 0 0.5rem 0.75rem;
  width: 100%;
}

.marketing-header .marketing-header__mobile-children .marketing-header__mobile-child {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.25rem;
  color: var(--dj-ink, #2a2e31);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.35;
  border-bottom: 1px solid color-mix(in srgb, var(--dj-ink, #2a2e31) 6%, white);
}

.marketing-header .marketing-header__mobile-children .marketing-header__mobile-child:hover {
  color: var(--dj-green, #379e7e);
}

.marketing-header .marketing-header__dropdown-heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.65rem 0.85rem 0.15rem 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--dj-ink, #2a2e31) 55%, white);
}

.marketing-header .marketing-header__dropdown-heading img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@media (max-width: 1099px) {
  .marketing-header.is-menu-open .marketing-header__mobile {
    position: fixed;
    top: var(--marketing-header-offset, 84px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
  }
}

/* Header sur hero : fond blanc + menu sombre au scroll (classe posée par dispojob-interactions.js) */
.marketing-header.marketing-header--over-hero.is-light.is-scrolled,
.marketing-header.marketing-header--over-hero.is-light.is-menu-open {
  background: #fff;
  color: var(--dj-ink, #2a2e31);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--dj-ink, #2a2e31) 8%, white);
}

@media (max-width: 767px) {
  .marketing-header--over-hero.is-light:not(.is-menu-open):not(.is-scrolled) .marketing-header__logo {
    filter: none;
  }

  .acc-hero {
    padding-top: calc(4.75rem + env(safe-area-inset-top, 0px));
  }

  .acc-hero__media img {
    object-position: 50% 22%;
  }

  .acc-hero__title {
    font-size: clamp(2.15rem, 9vw, 2.75rem) !important;
    line-height: 1.05 !important;
  }

  .acc-hero__body {
    font-size: 1rem;
  }
}

.vitrine-sector-cards__track,
.acc-sectors__grid {
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

@media (max-width: 1099px) {
  .marketing-header__dropdown--mega.is-open {
    display: none !important;
  }
}

@media (min-width: 1100px) {
  .marketing-header__item.has-children {
    position: relative;
  }

  /* Pont souris entre le lien nav et le panneau (gap ~0.85rem du CSS Dispojob) */
  .marketing-header__item.has-children.is-open::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -0.5rem;
    right: -0.5rem;
    z-index: 25;
    height: 1.35rem;
  }

  .marketing-header__dropdown--mega.is-open {
    z-index: 24;
    /* Zone cliquable continue : le padding comble le trou sous la barre */
    top: 100% !important;
    padding-top: 0.85rem;
    margin-top: 0;
  }

  .marketing-header:has(.marketing-header__dropdown--mega.is-open) .marketing-header__inner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.85rem;
    z-index: 23;
  }

  .marketing-header__item.has-children:focus-within .marketing-header__dropdown--mega,
  .marketing-header__dropdown--mega.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Cercles décoratifs inline : diamètre ≤ 50 % de la hauteur du texte (1em) */
.vitrine-root {
  --vitrine-decor-dot-size: 0.5em;
}

.vitrine-dot,
.vitrine-dot--green,
.vitrine-dot--yellow,
.vitrine-dot--blue,
.vitrine-dot--coral,
.vitrine-dot--pink {
  display: inline-block !important;
  width: var(--vitrine-decor-dot-size) !important;
  height: var(--vitrine-decor-dot-size) !important;
  max-width: var(--vitrine-decor-dot-size) !important;
  max-height: var(--vitrine-decor-dot-size) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin-left: 0.12em;
  vertical-align: 0.12em;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
  line-height: 0;
  font-size: 0;
  padding: 0;
  border: 0;
}

/* Tarifs (fallback HTML scrapé avec ● dans span.pink) */
.tarifs-maquette span.pink {
  display: inline-block;
  width: var(--vitrine-decor-dot-size);
  height: var(--vitrine-decor-dot-size);
  max-width: var(--vitrine-decor-dot-size);
  max-height: var(--vitrine-decor-dot-size);
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  vertical-align: 0.12em;
  margin-left: 0.06em;
  border-radius: 50%;
  background-color: var(--pink, #ef0050);
  overflow: hidden;
}

/* Puces décoratives dans les titres (px → em, plafond 0.5em) */
:is(
    h1,
    h2,
    h3,
    h4,
    .dj-h1,
    .dj-h2,
    .acc-hero__title,
    .acc-bundle__value-title,
    .acc-bundle__stats-title,
    .acc-sectors__title,
    .vitrine-home-final__title,
    .si-hero__title
  )
  :is([class*="__dot"], [class*="title-dot"]):not(.acc-bundle__bead):not(.dj-action-dot):not(.ta-plan__dot):not(
    .dot
  ):not([class*="motif__dot"]) {
  width: var(--vitrine-decor-dot-size) !important;
  height: var(--vitrine-decor-dot-size) !important;
  max-width: var(--vitrine-decor-dot-size) !important;
  max-height: var(--vitrine-decor-dot-size) !important;
}

/* Pages secteurs — typo & espacements (grille 4px, parité dispojob.com) */
.vitrine-root .si-story__article {
  margin-inline: auto;
  text-align: center;
}

.vitrine-root .si-story__article p {
  margin-bottom: var(--vitrine-space-5);
}

.vitrine-root .si-story__article p:last-child {
  margin-bottom: 0;
}

.vitrine-root .si-closer[data-article] .si-closer__inner {
  margin-inline: auto;
  text-align: center;
}

.vitrine-root .si-closer[data-article] .si-section-title,
.vitrine-root .si-closer[data-article] .si-closer__text {
  text-align: center;
}

.vitrine-root .si-section-title.si-center {
  margin-bottom: var(--vitrine-space-7);
}

.vitrine-root .si-closer[data-article] .si-section-title,
.vitrine-root .si-change .si-section-title {
  margin-bottom: var(--vitrine-space-6);
}

.vitrine-root .si-closer[data-article] .si-closer__text {
  margin-bottom: var(--vitrine-space-5);
}

.vitrine-root .si-enjeux__card-copy p {
  margin-top: var(--vitrine-space-2);
}
