/* Portail Apyjob (accueil) */
.portal-main {
  overflow-x: hidden;
}
.container--narrow {
  max-width: 720px;
}

/* Illustrations portail — déposez les fichiers dans assets/img/portal/ (voir PORTAL_ILLUSTRATIONS.txt) */
.portal-hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.portal-hero__copy {
  min-width: 0;
}

@media (min-width: 900px) {
  .portal-hero__grid {
    grid-template-columns: 1fr minmax(280px, 44%);
  }

  .portal-hero__copy .portal-eyebrow,
  .portal-hero__copy h1,
  .portal-hero__copy .portal-lead {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }

  .portal-hero__copy .portal-lead {
    max-width: 36rem;
  }

  .portal-hero__cta {
    justify-content: flex-start;
  }

  .portal-pills {
    justify-content: flex-start;
  }
}

.portal-illu {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  max-width: 100%;
}

.portal-illu__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.portal-illu__video {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  background: #0f1f13;
}

.portal-illu__video-fallback {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--muted, #5c6860);
}

.portal-illu--placeholder {
  min-height: 220px;
  box-sizing: border-box;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 42%, #f8fafc 100%);
  border: 1px dashed #cbd5e1;
}

.portal-illu--hero.portal-illu--placeholder {
  min-height: 280px;
}

@media (min-width: 900px) {
  .portal-illu--hero.portal-illu--placeholder {
    min-height: 320px;
  }
}

.portal-illu--section {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 2rem;
}

.portal-illu--section.portal-illu--placeholder {
  min-height: 200px;
}

.portal-illu--section-after-steps {
  margin-top: 2.5rem;
}

.portal-illu--candidats.portal-illu--placeholder {
  min-height: 260px;
}

.auth-page__illu {
  margin-bottom: 1.5rem;
}

.auth-page__illu.portal-illu--placeholder {
  min-height: 160px;
  border-radius: 12px;
}

/* Connexion / inscription espace entreprise — split type dashboard (sidebar #f9fafb, vert #062d20, lime) */
body.layout-public.merchant-auth {
  background: #fff;
  min-height: 100dvh;
}

.merchant-auth-split {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
}

.merchant-auth-split__aside {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 6vw, 56px) clamp(24px, 5vw, 48px);
  background: #f9fafb;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.merchant-auth-split__aside-pattern {
  position: absolute;
  inset: 0;
  background-color: #f9fafb;
  background-image: radial-gradient(ellipse 85% 55% at 18% 28%, rgba(212, 233, 94, 0.42), transparent 62%),
    radial-gradient(ellipse 55% 45% at 92% 78%, rgba(6, 45, 32, 0.07), transparent 55%),
    repeating-linear-gradient(
      104deg,
      transparent 0,
      transparent 20px,
      rgba(6, 45, 32, 0.028) 20px,
      rgba(6, 45, 32, 0.028) 21px
    );
  pointer-events: none;
}

.merchant-auth-split__aside-glow {
  position: absolute;
  width: min(420px, 90vw);
  height: min(420px, 70vh);
  right: -12%;
  bottom: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 233, 94, 0.32) 0%, transparent 68%);
  pointer-events: none;
}

.merchant-auth-split__aside-inner {
  position: relative;
  z-index: 1;
  max-width: 340px;
}

.merchant-auth-split__aside-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #062d20;
}

.merchant-auth-split__aside-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  color: #1a2e24;
}

.merchant-auth-split__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100dvh;
  background: #fff;
}

.merchant-auth-back {
  align-self: flex-start;
  margin: 14px 0 0 clamp(16px, 4vw, 40px);
  padding: 6px 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  text-decoration: none;
}

.merchant-auth-back:hover {
  color: #062d20;
  text-decoration: none;
}

.merchant-auth-header--split {
  background: transparent;
  border-bottom: none;
}

.merchant-auth-header__inner--split {
  max-width: 520px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 36px) 0;
  width: 100%;
}

.merchant-auth-tabs {
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 10px;
}

.merchant-auth-tabs__link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
}

.merchant-auth-tabs__link:hover {
  color: #062d20;
  text-decoration: none;
}

.merchant-auth-tabs__link.is-active {
  background: #fff;
  color: #062d20;
  box-shadow: 0 1px 2px rgba(15, 31, 19, 0.08);
}

.merchant-auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px clamp(16px, 4vw, 40px) 48px;
}

.merchant-auth-main__inner {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.merchant-auth-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.merchant-auth-title {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #1a2e24;
  letter-spacing: -0.02em;
}

.merchant-auth-lead {
  margin: 0 0 22px;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}

.merchant-auth-panel .subtitle {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.55;
}

.merchant-auth-panel .subtitle strong {
  color: #1a2e24;
}

.merchant-auth-panel .alert {
  margin-bottom: 16px;
}

.merchant-auth-form {
  margin-top: 4px;
}

.merchant-auth-form--line .form-group {
  margin-bottom: 20px;
}

.merchant-auth-form--line label:not(.merchant-auth-consent__label) {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.merchant-auth-form--line input[type="text"],
.merchant-auth-form--line input[type="email"],
.merchant-auth-form--line input[type="password"] {
  padding: 10px 12px 12px;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
  box-shadow: none;
}

.merchant-auth-form--line input[type="text"]:focus,
.merchant-auth-form--line input[type="email"]:focus,
.merchant-auth-form--line input[type="password"]:focus {
  outline: none;
  border-bottom-color: #062d20;
  background: transparent;
  box-shadow: none;
}

.merchant-auth-consent {
  margin-bottom: 4px;
}

.merchant-auth-consent__label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: #374151;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.merchant-auth-consent__check {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #062d20;
}

.merchant-auth-consent__text a {
  color: #062d20;
  font-weight: 600;
  text-decoration: underline;
}

.merchant-auth-consent__text a:hover {
  text-decoration: none;
}

.merchant-auth-consent__optional {
  color: #6b7280;
  font-weight: 400;
}

.merchant-auth-form .form-group:last-of-type {
  margin-bottom: 12px;
}

.merchant-auth-form--line .form-group:last-of-type {
  margin-bottom: 20px;
}

.merchant-auth-actions {
  margin-top: 8px;
}

.merchant-auth-actions--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.merchant-auth-actions--row .btn {
  width: 100%;
}

.merchant-auth-actions--stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.merchant-auth-actions--stack .merchant-auth-alt-link {
  text-align: center;
}

.merchant-auth-alt-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #062d20;
  text-decoration: none;
}

.merchant-auth-alt-link:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .merchant-auth-split {
    grid-template-columns: 1fr;
  }

  .merchant-auth-split__aside {
    order: 2;
    min-height: 160px;
    border-right: none;
    border-top: 1px solid var(--border);
    align-items: center;
    padding: 24px 20px;
  }

  .merchant-auth-split__aside-inner {
    max-width: none;
  }

  .merchant-auth-split__aside-title {
    font-size: 1.05rem;
  }

  .merchant-auth-split__content {
    order: 1;
    min-height: 0;
  }

  .merchant-auth-actions--row {
    grid-template-columns: 1fr;
  }

  .merchant-auth-header__inner--split {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
}

@media (min-width: 768px) {
  .merchant-auth-header__inner--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}

.portal-hero {
  position: relative;
  padding: 40px 0 56px;
  text-align: center;
  background: linear-gradient(180deg, rgba(210, 242, 120, 0.18) 0%, var(--bg) 52%);
}
.portal-hero__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  max-height: 420px;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(210, 242, 120, 0.35), transparent 70%);
  pointer-events: none;
}
.portal-hero__inner {
  position: relative;
}
.portal-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(210, 242, 120, 0.45);
  border-radius: 999px;
}
.portal-hero h1,
.portal-hero #portal-hero-title {
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.035em;
  color: var(--text);
}
.portal-lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 28px;
}
.portal-highlight {
  color: var(--brand);
  font-weight: 800;
}
.portal-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
.portal-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.portal-pills li {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--surface);
  border: 1px solid rgba(15, 31, 19, 0.12);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.portal-section {
  padding: 48px 0;
}
.portal-section--muted {
  background: #eef2f6;
}
.portal-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.portal-section__head--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.portal-section__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}
.portal-section__intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.portal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .portal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.portal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.portal-card:hover {
  border-color: rgba(15, 31, 19, 0.18);
  box-shadow: 0 6px 24px rgba(15, 31, 19, 0.08);
}
.portal-card__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(210, 242, 120, 0.4);
  color: var(--brand-dark);
}
.portal-card__icon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.portal-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.portal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.portal-split {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 800px) {
  .portal-split {
    grid-template-columns: 1fr 280px;
    gap: 48px;
  }
}
.portal-timeline {
  margin: 0;
  padding: 0 0 0 1.25rem;
  color: var(--text);
  line-height: 1.55;
}
.portal-timeline li {
  margin-bottom: 14px;
}
.portal-timeline li:last-child {
  margin-bottom: 0;
}
.portal-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(15, 31, 19, 0.1);
}
.portal-mock__screen {
  height: 200px;
  border-radius: 12px;
  background: linear-gradient(165deg, #002c1f 0%, #0f1f13 100%);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 12px;
}
.portal-mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.portal-mock__caption {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.portal-steps {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .portal-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
.portal-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  padding-top: 48px;
  box-shadow: var(--shadow);
}
.portal-step__num {
  position: absolute;
  top: 16px;
  left: 20px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-step h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.portal-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.portal-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.portal-faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.portal-faq__item summary {
  padding: 16px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.portal-faq__item summary::-webkit-details-marker {
  display: none;
}
.portal-faq__item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand);
  flex-shrink: 0;
}
.portal-faq__item[open] summary::after {
  content: "−";
}
.portal-faq__item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.portal-pricing {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}
.portal-pricing__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  box-shadow: var(--shadow);
  width: 100%;
  text-align: center;
}
.portal-pricing__eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
}
.portal-pricing__price {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--text);
}
.portal-pricing__amount {
  font-size: clamp(2.5rem, 8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
}
.portal-pricing__per {
  font-weight: 600;
  color: var(--muted);
  font-size: 1rem;
}
.portal-pricing__vat {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: left;
}
.portal-pricing__billed {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: left;
}
.portal-pricing__features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  text-align: left;
}
.portal-pricing__features li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.45;
}
.portal-pricing__features li:last-child {
  margin-bottom: 0;
}
.portal-pricing__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--success);
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.4;
}
.portal-pricing__compare {
  margin: 0 0 16px;
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: left;
  background: rgba(15, 31, 19, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.portal-pricing__compare strong {
  color: var(--text);
}
.portal-pricing__trial {
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: left;
}
.portal-pricing__trial strong {
  color: var(--text);
}
.portal-pricing__list {
  margin: 0 0 24px;
  padding-left: 1.2rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.portal-cta-band {
  background: linear-gradient(135deg, #002c1f 0%, #0f1f13 55%, #152618 100%);
  color: #fff;
  padding: 40px 0;
}
.portal-cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.portal-cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.portal-cta-band p {
  margin: 0;
  opacity: 0.92;
  font-size: 1rem;
  max-width: 480px;
}
.portal-footer {
  background: #0f1f13;
  color: #a3b0a3;
  padding: 40px 0 0;
  font-size: 0.9rem;
}
.portal-footer a {
  color: #e8ebe6;
  text-decoration: none;
}
.portal-footer a:hover {
  color: #d2f278;
  text-decoration: none;
}
.portal-footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 640px) {
  .portal-footer__grid {
    grid-template-columns: 1.4fr repeat(4, 1fr);
  }
}
.portal-footer__brand strong {
  color: #fff;
  font-size: 1.1rem;
}
.portal-footer__accent {
  color: #d2f278;
}
.portal-footer__brand p {
  margin: 8px 0 0;
  max-width: 280px;
  line-height: 1.45;
}
.portal-footer__logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 10px;
}
.portal-footer__title {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.portal-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.portal-footer__list li {
  margin-bottom: 8px;
}
.portal-footer__bottom {
  padding: 16px 0 24px;
  font-size: 0.85rem;
  color: #64748b;
}
.portal-footer__bottom p {
  margin: 0;
}

