/* Portail marketing — charte APYJOB (maquette landing) */
body.portal-saas {
  --portal-ink: #1a2b23;
  --portal-lime-solid: #c5e641;
  --portal-accent: #1a2b23;
  --portal-accent-hover: #142017;
  --portal-accent-ink: #1a2b23;
  --portal-soft: rgba(197, 230, 65, 0.35);
  --portal-lime: #c5e641;
  --portal-why-bg: #ecefec;
  /* Offset ancres : header sticky (~72px + paddings) + marge de lecture */
  --portal-scroll-offset: 128px;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  color: #1a2b23;
}

body.portal-saas #candidats,
body.portal-saas #commercants,
body.portal-saas #fonctionnement,
body.portal-saas #pourquoi,
body.portal-saas #tarifs,
body.portal-saas #faq {
  scroll-margin-top: var(--portal-scroll-offset);
}

/* Bandeau d’information (édition supervision) — au-dessus du header */
body.portal-saas .portal-announcement {
  background: #0d281c;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 10px 16px;
  text-align: center;
}
body.portal-saas .portal-announcement__inner {
  max-width: 100%;
}
body.portal-saas .portal-announcement p {
  margin: 0 0 6px;
}
body.portal-saas .portal-announcement p:last-child {
  margin-bottom: 0;
}
body.portal-saas .portal-announcement ul,
body.portal-saas .portal-announcement ol {
  margin: 8px auto;
  padding-left: 1.35rem;
  text-align: left;
  max-width: 42rem;
}
body.portal-saas .portal-announcement li {
  margin-bottom: 4px;
}
body.portal-saas .portal-announcement a {
  color: #e8ff9a;
  font-weight: 600;
  text-decoration: underline;
}
body.portal-saas .portal-announcement a:hover {
  color: #fff;
}

body.portal-saas .portal-top {
  background: #fff;
  border-bottom: none;
  box-shadow: none;
}
body.portal-saas .portal-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 72px;
  padding: 16px 0 18px;
}
body.portal-saas .portal-top__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
body.portal-saas .portal-top__brand:hover {
  text-decoration: none;
}
body.portal-saas .portal-top__brand-img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
body.portal-saas .portal-top__wordmark {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--portal-ink);
  position: relative;
  display: inline-block;
  line-height: 1;
  padding-bottom: 6px;
}
/* Arc citron sous « y » et « j » (apyjob) */
body.portal-saas .portal-top__wordmark::after {
  content: "";
  position: absolute;
  left: 0.38em;
  right: -0.06em;
  bottom: 0;
  height: 5px;
  border: 2px solid var(--portal-lime-solid);
  border-top: none;
  border-radius: 0 0 50% 50% / 0 0 120% 120%;
  box-sizing: border-box;
  pointer-events: none;
}
body.portal-saas .portal-top__nav {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  padding-top: 6px;
}
body.portal-saas .portal-top__nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2a332d;
  text-decoration: none;
  padding: 8px 2px;
  letter-spacing: 0.01em;
  border-radius: 4px;
  transition: color 0.15s ease;
}
body.portal-saas .portal-top__nav-link:hover {
  color: var(--portal-ink);
  text-decoration: none;
}
body.portal-saas .portal-top__nav-link:focus-visible {
  outline: 2px solid var(--portal-lime-solid);
  outline-offset: 3px;
}
body.portal-saas .portal-top__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
  margin-left: auto;
}
body.portal-saas .portal-top__cta-register,
body.portal-saas .portal-top__cta-enterprise {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
  padding: 15px 27px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
body.portal-saas .portal-top__cta-register {
  background: var(--portal-lime-solid);
  color: var(--portal-ink);
  border: 2px solid var(--portal-lime-solid);
}
body.portal-saas .portal-top__cta-register:hover {
  filter: brightness(0.96);
  text-decoration: none;
  color: var(--portal-ink);
}
body.portal-saas .portal-top__cta-enterprise {
  background: transparent;
  color: var(--portal-ink);
  border: 2px solid rgba(26, 43, 35, 0.35);
}
body.portal-saas .portal-top__cta-enterprise:hover {
  text-decoration: none;
  color: var(--portal-ink);
  background: rgba(26, 43, 35, 0.06);
  border-color: rgba(26, 43, 35, 0.45);
}
body.portal-saas .portal-top__cta-register:focus-visible,
body.portal-saas .portal-top__cta-enterprise:focus-visible {
  outline: 2px solid var(--portal-lime-solid);
  outline-offset: 3px;
}

/* ——— Menu mobile (barre flottante + panneau) ——— */
body.portal-saas .portal-top__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 43, 35, 0.35);
  background: transparent;
  color: var(--portal-ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
body.portal-saas .portal-top__menu-btn:hover {
  background: rgba(26, 43, 35, 0.06);
  border-color: rgba(26, 43, 35, 0.5);
}
body.portal-saas .portal-top__menu-btn:focus-visible {
  outline: 2px solid var(--portal-lime-solid);
  outline-offset: 3px;
}
body.portal-saas .portal-top__menu-btn-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
body.portal-saas .portal-top__menu-btn-lines span {
  display: block;
  height: 2px;
  background: var(--portal-ink);
  border-radius: 1px;
}
body.portal-saas .portal-top__menu-btn.is-open .portal-top__menu-btn-lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.portal-saas .portal-top__menu-btn.is-open .portal-top__menu-btn-lines span:nth-child(2) {
  opacity: 0;
}
body.portal-saas .portal-top__menu-btn.is-open .portal-top__menu-btn-lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
body.portal-saas .portal-top__menu-btn-lines span {
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.portal-saas .portal-top__mobile-login {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius:999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--portal-ink);
  border: 2px solid rgba(26, 43, 35, 0.32);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
body.portal-saas .portal-top__mobile-login:hover {
  background: rgba(26, 43, 35, 0.06);
  border-color: rgba(26, 43, 35, 0.45);
  text-decoration: none;
  color: var(--portal-ink);
}
body.portal-saas .portal-top__mobile-login:focus-visible {
  outline: 2px solid var(--portal-lime-solid);
  outline-offset: 2px;
}

body.portal-saas .portal-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.35s step-end;
}
body.portal-saas .portal-mobile-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s step-start;
}
body.portal-saas .portal-mobile-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 35, 28, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.38s ease;
}
body.portal-saas .portal-mobile-overlay.is-open .portal-mobile-overlay__backdrop {
  opacity: 1;
}

body.portal-saas .portal-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 0 12px 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
body.portal-saas .portal-mobile-overlay.is-open .portal-mobile-panel {
  pointer-events: auto;
}
body.portal-saas .portal-mobile-panel__surface {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #f9fbf9 0%, #f0f4f0 100%);
  border-radius: 0 0 32px 32px;
  border: 1px solid rgba(26, 43, 35, 0.1);
  border-top: none;
  box-shadow: 0 24px 56px rgba(13, 40, 28, 0.22);
  overflow: hidden;
  transform: translateY(calc(-100% - 24px));
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease;
}
body.portal-saas .portal-mobile-overlay.is-open .portal-mobile-panel__surface {
  transform: translateY(0);
  opacity: 1;
}

body.portal-saas .portal-mobile-panel__head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(26, 43, 35, 0.08);
}
body.portal-saas .portal-mobile-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 43, 35, 0.3);
  background: transparent;
  color: var(--portal-ink);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
body.portal-saas .portal-mobile-panel__close:hover {
  background: rgba(26, 43, 35, 0.06);
}
body.portal-saas .portal-mobile-panel__close:focus-visible {
  outline: 2px solid var(--portal-lime-solid);
  outline-offset: 2px;
}
body.portal-saas .portal-mobile-panel__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
body.portal-saas .portal-mobile-panel__brand-img {
  max-height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
body.portal-saas .portal-mobile-panel__wordmark {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--portal-ink);
  position: relative;
  padding-bottom: 5px;
  display: inline-block;
  line-height: 1;
}
body.portal-saas .portal-mobile-panel__wordmark::after {
  content: "";
  position: absolute;
  left: 0.38em;
  right: -0.06em;
  bottom: 0;
  height: 4px;
  border: 2px solid var(--portal-lime-solid);
  border-top: none;
  border-radius: 0 0 50% 50% / 0 0 120% 120%;
  pointer-events: none;
}
body.portal-saas .portal-mobile-panel__head-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--portal-ink);
  border: 2px solid rgba(26, 43, 35, 0.35);
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
body.portal-saas .portal-mobile-panel__head-cta:hover {
  background: rgba(26, 43, 35, 0.06);
  border-color: rgba(26, 43, 35, 0.45);
  text-decoration: none;
  color: var(--portal-ink);
}
body.portal-saas .portal-mobile-panel__head-cta:focus-visible {
  outline: 2px solid var(--portal-lime-solid);
  outline-offset: 2px;
}

body.portal-saas .portal-mobile-panel__nav {
  display: flex;
  flex-direction: column;
  padding: 12px 8px 8px;
}
body.portal-saas .portal-mobile-panel__link {
  display: block;
  padding: 16px 22px;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: var(--portal-ink);
  text-decoration: none;
  border-radius: 14px;
  transition: background-color 0.15s ease;
}
body.portal-saas .portal-mobile-panel__link:hover {
  background: rgba(26, 43, 35, 0.06);
  text-decoration: none;
  color: var(--portal-ink);
}
body.portal-saas .portal-mobile-panel__link:focus-visible {
  outline: 2px solid var(--portal-lime-solid);
  outline-offset: -2px;
}

body.portal-saas .portal-mobile-panel__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 20px 22px;
  border-top: 1px solid rgba(26, 43, 35, 0.08);
}
body.portal-saas .portal-mobile-panel__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius:999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
body.portal-saas .portal-mobile-panel__cta--primary {
  background: var(--portal-lime-solid);
  color: var(--portal-ink);
  border: 2px solid var(--portal-lime-solid);
}
body.portal-saas .portal-mobile-panel__cta--primary:hover {
  filter: brightness(0.97);
  color: var(--portal-ink);
  text-decoration: none;
}
body.portal-saas .portal-mobile-panel__cta--ghost {
  background: transparent;
  color: var(--portal-ink);
  border: 2px solid rgba(26, 43, 35, 0.35);
}
body.portal-saas .portal-mobile-panel__cta--ghost:hover {
  background: rgba(26, 43, 35, 0.06);
  text-decoration: none;
  color: var(--portal-ink);
}

body.portal-saas.portal-mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
  body.portal-saas .portal-mobile-overlay__backdrop,
  body.portal-saas .portal-mobile-panel__surface,
  body.portal-saas .portal-top__menu-btn-lines span {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 899px) {
  body.portal-saas .site-header.site-header--portal.portal-top {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    /* Petit écart sous le bord du viewport une fois le menu sticky au scroll */
    top: 10px;
  }
  body.portal-saas .portal-top .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  body.portal-saas .portal-top__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px 10px;
    margin: 12px 0 8px;
    padding: 10px 12px 10px 10px;
    min-height: 0;
    flex-wrap: nowrap;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-radius:999px;
    border: 1px solid rgba(26, 43, 35, 0.1);
    box-shadow: 0 8px 32px rgba(13, 40, 28, 0.1);
  }
  body.portal-saas .portal-top__menu-btn {
    display: inline-flex;
  }
  body.portal-saas .portal-top__mobile-login {
    display: inline-flex;
  }
  body.portal-saas .portal-top__brand {
    justify-self: center;
    min-width: 0;
    max-width: 100%;
  }
  body.portal-saas .portal-top__brand-img {
    height: 36px;
    max-width: min(150px, 100%);
  }
  body.portal-saas .portal-top__wordmark {
    font-size: 1.45rem;
    padding-bottom: 4px;
  }
  body.portal-saas .portal-top__nav,
  body.portal-saas .portal-top__actions {
    display: none !important;
  }
}

@media (min-width: 900px) {
  /*
   * Desktop : grille 3 colonnes (1fr | auto | 1fr) pour logo / nav centrée / CTA à droite.
   * Réinitialise order:3, flex:1 0 100% et tout position:absolute du flux flex de base.
   */
  body.portal-saas .portal-top__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 24px;
    row-gap: 0;
    padding: 8px 8px 10px;
    min-height: 64px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  body.portal-saas .portal-top__menu-btn,
  body.portal-saas .portal-top__mobile-login {
    display: none !important;
  }
  body.portal-saas .portal-top__brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    order: 0;
    min-width: 0;
  }
  body.portal-saas .portal-top__nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    position: static;
    left: auto;
    top: auto;
    right: auto;
    transform: none;
    z-index: auto;
    order: 0;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding-top: 0;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px 28px;
    display: flex !important;
    box-sizing: border-box;
    overflow: hidden;
  }
  body.portal-saas .portal-top__actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin-left: 0;
    order: 0;
    min-width: 0;
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px 12px;
    justify-content: flex-end;
  }
  body.portal-saas .site-header.site-header--portal.portal-top {
    background: #fff;
    top: 0;
  }
  body.portal-saas .portal-mobile-overlay {
    display: none !important;
  }
}

body.portal-saas .portal-why {
  position: relative;
  background: var(--portal-why-bg);
  padding: 2.75rem 0 3.25rem;
}
body.portal-saas .portal-why .container {
  position: relative;
}
body.portal-saas .portal-why__title {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--portal-ink);
}
body.portal-saas .portal-why__grid {
  display: grid;
  gap: 28px 20px;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  body.portal-saas .portal-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  body.portal-saas .portal-why__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}
body.portal-saas .portal-why__card {
  text-align: center;
  padding: 0 8px;
}
body.portal-saas .portal-why__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--portal-lime-solid);
  color: var(--portal-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.portal-saas .portal-why__icon svg {
  flex-shrink: 0;
}
body.portal-saas .portal-why__card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--portal-ink);
}
body.portal-saas .portal-why__card-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #5c6860;
}

body.portal-saas .portal-illu--hero-curve,
body.portal-saas .portal-illu--hero-curve.portal-illu--placeholder {
  --hero-illus-radius: clamp(72px, 11vw, 132px);
  position: relative;
  margin: 0;
  border: none;
  box-shadow: none;
  border-top-left-radius: var(--hero-illus-radius);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  overflow: hidden;
  filter: drop-shadow(0 20px 48px rgba(26, 43, 35, 0.12));
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: min(52vh, 420px);
  width: 100%;
}
@media (min-width: 900px) {
  body.portal-saas .portal-illu--hero-curve,
  body.portal-saas .portal-illu--hero-curve.portal-illu--placeholder {
    min-height: min(76vh, 680px);
  }
}
body.portal-saas .portal-illu--hero-curve .portal-illu__img,
body.portal-saas .portal-illu--hero-curve .portal-illu__video {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

body.portal-saas .portal-hero__grid {
  gap: 1.45rem;
}

@media (min-width: 900px) {
  body.portal-saas .portal-hero__grid {
    grid-template-columns: 1fr minmax(300px, 46%);
    align-items: stretch;
    gap: 1.65rem 1.75rem;
  }
  body.portal-saas .portal-hero__copy {
    align-self: center;
  }
}

body.portal-saas a {
  color: var(--portal-accent-hover);
}

body.portal-saas a:hover {
  color: var(--portal-accent);
}

/* Ancres en .btn : couleurs bouton, pas le lien bleu hérité */
body.portal-saas .btn--primary,
body.portal-saas .btn--primary:is(a) {
  color: #fff;
}

body.portal-saas .btn--lime,
body.portal-saas .btn--lime:is(a) {
  color: var(--forest, #0f1f13);
}

body.portal-saas .btn--light,
body.portal-saas .btn--light:is(a) {
  color: var(--forest, #0f1f13);
}

body.portal-saas .btn--primary:hover,
body.portal-saas .btn--primary:focus-visible {
  color: #fff;
}

body.portal-saas .btn--light:hover,
body.portal-saas .btn--light:focus-visible,
body.portal-saas .btn--lime:hover,
body.portal-saas .btn--lime:focus-visible {
  color: var(--forest, #0f1f13);
}

body.portal-saas .logo {
  color: #0f1f13;
}

body.portal-saas .logo span {
  color: var(--portal-lime);
}

body.portal-saas .site-header--portal,
body.portal-saas .site-header.portal-top {
  background: #fff;
  border-bottom: none;
  box-shadow: none;
}

body.portal-saas .site-header__nav {
  border-top-color: #e5e7eb;
}

body.portal-saas .site-header__link {
  color: #4b5563;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

body.portal-saas .site-header__link:hover {
  color: #111827;
  background: #f3f4f6;
  text-decoration: none;
}

body.portal-saas .nav-actions .btn--ghost {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #4b5563;
  font-weight: 500;
}

body.portal-saas .nav-actions .btn--ghost:hover {
  background: #f3f4f6;
  color: #111827;
  border: none;
}

body.portal-saas .nav-actions .btn--primary {
  background: var(--portal-accent);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 31, 19, 0.12);
}

body.portal-saas .nav-actions .btn--primary:hover {
  background: var(--portal-accent-hover);
  filter: none;
}

body.portal-saas .portal-hero {
  padding: 36px 0 0;
  background: #fff;
  position: relative;
  overflow: visible;
}
body.portal-saas .portal-hero::before,
body.portal-saas .portal-hero::after {
  display: none;
}

body.portal-saas .portal-hero__glow {
  display: none;
}

body.portal-saas .portal-eyebrow {
  background: var(--portal-soft);
  color: var(--portal-accent-ink);
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.portal-saas .portal-hero h1,
body.portal-saas .portal-hero #portal-hero-title {
  color: var(--portal-ink);
}

body.portal-saas .portal-lead {
  color: #5c6860;
}
body.portal-saas .portal-lead--tagline {
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--portal-ink);
  margin: 0 0 10px;
  max-width: 36rem;
}
body.portal-saas .portal-lead--tagline strong {
  font-weight: 800;
}
body.portal-saas .portal-lead--body {
  margin: 0 0 20px;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 36rem;
}

body.portal-saas .portal-hero__cta .btn--primary {
  background: var(--portal-ink);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(20, 34, 23, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
}

body.portal-saas .portal-hero__cta .btn--primary:hover {
  background: #0d1a12;
  filter: none;
}

body.portal-saas .portal-hero__cta-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

body.portal-saas .portal-hero__cta .btn--ghost {
  border: 1.5px solid var(--portal-ink) !important;
  border-radius: 50px !important;
  background: #fff !important;
  color: var(--portal-ink) !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px !important;
  box-shadow: none !important;
}

body.portal-saas .portal-hero__play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--portal-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-left: 3px;
  color: var(--portal-ink);
}

body.portal-saas .portal-hero__cta .btn--ghost:hover {
  border-color: var(--portal-ink) !important;
  background: rgba(197, 230, 65, 0.22) !important;
  color: var(--portal-ink) !important;
}

body.portal-saas .portal-hero__cta {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  max-width: 22.5rem;
  gap: 14px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
}
body.portal-saas .portal-hero__cta .btn {
  justify-content: center;
}
@media (min-width: 900px) {
  body.portal-saas .portal-hero__cta {
    margin-left: 0;
    margin-right: 0;
  }
}

body.portal-saas .portal-pills li {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  box-shadow: none;
  font-weight: 500;
}

body.portal-saas .portal-section--muted {
  background: #f1f5f9;
}

body.portal-saas .portal-section__head h2 {
  color: #111827;
}

body.portal-saas .portal-section__intro {
  color: #6b7280;
}

body.portal-saas .portal-card {
  border-radius: 16px;
  border-color: #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.portal-saas .portal-card:hover {
  border-color: rgba(210, 242, 120, 0.75);
  box-shadow: 0 10px 40px rgba(15, 31, 19, 0.08);
}

body.portal-saas .portal-mock {
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

body.portal-saas .portal-mock__screen {
  background: linear-gradient(165deg, #002c1f 0%, #0f1f13 100%);
}

body.portal-saas .portal-step {
  border-radius: 16px;
  border-color: #e5e7eb;
}

body.portal-saas .portal-step__num {
  background: var(--portal-accent);
  border-radius: 8px;
}

body.portal-saas .portal-faq__item {
  border-radius: 12px;
  border-color: #e5e7eb;
}

body.portal-saas .portal-faq__item summary::after {
  color: var(--portal-accent);
}

body.portal-saas .portal-pricing__card {
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 28px 40px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

body.portal-saas .portal-pricing__card .btn--primary {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: inline-flex;
  border-radius: 999px;
  background: var(--portal-lime);
  color: var(--portal-accent) !important;
}

body.portal-saas .portal-pricing__card .btn--primary:hover {
  filter: brightness(0.96);
}

body.portal-saas .portal-pricing__eyebrow {
  color: var(--portal-accent-hover);
}

body.portal-saas .portal-pricing__amount {
  color: #0f1f13;
}

body.portal-saas .portal-pricing__vat {
  color: #6b7280;
}

body.portal-saas .portal-pricing__billed {
  color: #6b7280;
}

body.portal-saas .portal-pricing__compare {
  background: rgba(15, 23, 42, 0.04);
  border-color: #e5e7eb;
}

body.portal-saas .portal-pricing__trial {
  color: #6b7280;
}

body.portal-saas .portal-pricing--grid {
  display: grid;
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 920px) {
  body.portal-saas .portal-pricing--grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.9fr);
    gap: 28px;
  }
}

body.portal-saas .portal-pricing__card--stretch {
  max-width: none;
}

body.portal-saas .portal-pricing__card--campaign {
  align-self: start;
}

body.portal-saas .portal-pricing-tier-table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

body.portal-saas .portal-pricing-tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

body.portal-saas .portal-pricing-tier-table th,
body.portal-saas .portal-pricing-tier-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eef0ef;
}

body.portal-saas .portal-pricing-tier-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  font-weight: 700;
  background: #f9fafb;
}

body.portal-saas .portal-pricing-tier-table tbody th {
  font-weight: 700;
  color: #0f1f13;
}

body.portal-saas .portal-pricing-tier-table tbody tr:last-child th,
body.portal-saas .portal-pricing-tier-table tbody tr:last-child td {
  border-bottom: none;
}

body.portal-saas .portal-pricing-tier-table td:nth-child(n + 3),
body.portal-saas .portal-pricing-tier-table th:nth-child(n + 3) {
  text-align: right;
  white-space: nowrap;
}

body.portal-saas .portal-pricing-estimator {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 31, 19, 0.04);
  border: 1px solid #e8ebe8;
}

body.portal-saas .portal-pricing-estimator__label {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.35;
}

body.portal-saas .portal-pricing-estimator__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

body.portal-saas .portal-pricing-estimator__step {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: #0f1f13;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.portal-saas .portal-pricing-estimator__step:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

body.portal-saas .portal-pricing-estimator__value {
  min-width: 7.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f1f13;
}

body.portal-saas .portal-pricing-estimator__result {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #374151;
}

body.portal-saas .portal-pricing-estimator__year {
  color: #6b7280;
  font-weight: 500;
}

body.portal-saas .portal-pricing__note {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.45;
}

body.portal-saas .portal-pricing__note--muted {
  color: #4b5563;
}

body.portal-saas .portal-pricing__spontaneous {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #12311f;
  background: rgba(210, 242, 120, 0.34);
  border: 1px solid rgba(122, 154, 40, 0.25);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
}

body.portal-saas .portal-pricing__note--warn {
  color: #6b4c1a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
}

body.portal-saas .portal-pricing__price--campaign {
  margin-bottom: 8px;
}

body.portal-saas .portal-pricing__price--campaign .portal-pricing__amount {
  font-size: clamp(2rem, 5vw, 2.65rem);
}

body.portal-saas .portal-pricing__campaign-lead {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.45;
}

body.portal-saas .portal-pricing__features--compact {
  margin-bottom: 20px;
}

body.portal-saas .portal-pricing__card-secondary {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
}

body.portal-saas .portal-cta-band {
  background: var(--portal-ink);
  padding: 48px 0;
}

body.portal-saas .portal-cta-band .btn--light {
  background: var(--portal-lime-solid);
  color: var(--portal-ink);
  border-radius: 999px;
  box-shadow: 0 2px 16px rgba(209, 244, 64, 0.45);
}

body.portal-saas .portal-cta-band .btn--light:hover {
  filter: brightness(0.96);
}

body.portal-saas .portal-footer {
  background: var(--portal-ink);
  color: #b8c4b9;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 52px 0 0;
}

body.portal-saas .portal-footer a {
  color: #e8ebe6;
}

body.portal-saas .portal-footer a:hover {
  color: var(--portal-lime);
}

body.portal-saas .portal-footer__brand strong {
  color: #fff;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

body.portal-saas .portal-footer__accent {
  color: var(--portal-lime);
}

body.portal-saas .portal-footer__title {
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
}

body.portal-saas .portal-footer__grid--apy {
  display: grid;
  gap: 32px 28px;
  grid-template-columns: 1fr;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 720px) {
  body.portal-saas .portal-footer__grid--apy {
    grid-template-columns: minmax(200px, 1.2fr) repeat(3, 1fr);
    align-items: start;
  }
}
@media (min-width: 640px) {
  body.portal-saas .portal-footer__grid--apy.portal-footer__grid {
    grid-template-columns: minmax(200px, 1.2fr) repeat(3, 1fr);
  }
}
body.portal-saas .portal-footer__tagline {
  margin: 12px 0 0;
  max-width: 280px;
  line-height: 1.5;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}
body.portal-saas .portal-footer__wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  display: inline-block;
}
body.portal-saas .portal-footer__wordmark-apy {
  color: #fff;
}
body.portal-saas .portal-footer__wordmark-apy::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 4px;
  max-width: 3.2em;
  border-radius: 2px;
  background: var(--portal-lime-solid);
}
body.portal-saas .portal-footer__logo--on-dark {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
body.portal-saas .portal-footer__bottom--apy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 28px;
}
body.portal-saas .portal-footer__bottom--apy p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
body.portal-saas .portal-footer__social {
  display: flex;
  align-items: center;
  gap: 14px;
}
body.portal-saas .portal-footer__social-link {
  color: #fff;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.portal-saas .portal-footer__social-link:hover {
  opacity: 1;
  color: var(--portal-lime-solid);
}
body.portal-saas .portal-footer a.portal-footer__muted {
  color: rgba(255, 255, 255, 0.45);
}
body.portal-saas .portal-footer a.portal-footer__muted:hover {
  color: rgba(255, 255, 255, 0.75);
}

body.portal-saas .portal-footer__grid {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.portal-saas .portal-footer__bottom {
  color: #7a8a7c;
}

body.portal-saas .skip-link:focus {
  border: 1px solid #e5e7eb;
}

body.portal-saas .portal-illu--placeholder {
  border-color: #e2e8f0;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 45%, #fff 100%);
}

body.portal-saas figure.portal-illu {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

@media (min-width: 900px) {
  body.portal-saas .container {
    max-width: 1120px;
  }
}

/* Pages légales (mentions, vie privée, CGU) */
body.portal-saas .legal-page {
  padding-top: 0.5rem;
  padding-bottom: 3.5rem;
}
body.portal-saas .legal-page--muted {
  background: var(--portal-why-bg);
}
body.portal-saas .legal-page h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--portal-ink);
}

body.portal-saas .legal-prose {
  max-width: 40rem;
  color: #3d4a42;
  font-size: 0.98rem;
  line-height: 1.68;
}
body.portal-saas .legal-prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--portal-ink);
  letter-spacing: -0.02em;
}
body.portal-saas .legal-prose h2:first-of-type {
  margin-top: 1.25rem;
}
body.portal-saas .legal-prose p {
  margin: 0 0 0.95rem;
}
body.portal-saas .legal-prose ul,
body.portal-saas .legal-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}
body.portal-saas .legal-prose li {
  margin-bottom: 0.35rem;
}
body.portal-saas .legal-prose .legal-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1.25rem;
}
body.portal-saas .legal-prose a {
  color: var(--portal-accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.portal-saas .legal-prose a:hover {
  color: var(--portal-accent);
}