/* Job2Main — page de clôture / remerciements */

:root {
  --j2m-blue: #2592ff;
  --j2m-blue-deep: #0d6fd4;
  --j2m-ink: #0c1a2e;
  --j2m-ink-soft: #3a4a5c;
  --j2m-cream: #f7f9fc;
  --j2m-line: rgba(12, 26, 46, 0.12);
  --j2m-font-display: "Baloo 2", "Baloo", system-ui, sans-serif;
  --j2m-font-body: "Almarai", system-ui, sans-serif;
}

/* Masquer tous les CTA / actions commerciales */
body.j2m-farewell #floatingCart,
body.j2m-farewell .header-actions-action--cta,
body.j2m-farewell .header-nav,
body.j2m-farewell .header-burger,
body.j2m-farewell .header-menu-nav,
body.j2m-farewell .header-display-mobile .header-actions,
body.j2m-farewell .header-actions-action--social,
body.j2m-farewell .language-picker-desktop,
body.j2m-farewell .language-picker-mobile,
body.j2m-farewell .sqs-block-button,
body.j2m-farewell .button-block,
body.j2m-farewell .newsletter-block,
body.j2m-farewell .newsletter-form-wrapper,
body.j2m-farewell a[data-j2m],
body.j2m-farewell a[href*="job2main-webapp"],
body.j2m-farewell a[href^="mailto:"] {
  display: none !important;
}

body.j2m-farewell .header-layout-branding-center .header-title {
  flex: 1 1 auto;
  width: 100% !important;
  justify-content: center;
}

/* ——— Farewell blocks ——— */
.j2m-farewell-wrap {
  font-family: var(--j2m-font-body);
  color: var(--j2m-ink);
}

.j2m-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.j2m-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.j2m-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: j2m- ken 28s ease-in-out infinite alternate;
}

.j2m-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 18, 32, 0.5) 0%, rgba(8, 18, 32, 0.72) 42%, rgba(8, 18, 32, 0.92) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 146, 255, 0.22), transparent 60%);
}

.j2m-hero__content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2.5rem));
  padding: 6rem 0 4.5rem;
  text-align: center;
}

.j2m-hero__brand,
.j2m-hero__title,
.j2m-hero__lead,
.j2m-hero h1,
.j2m-hero p {
  color: #ffffff !important;
}

.j2m-hero__brand {
  font-family: var(--j2m-font-display);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  animation: j2m-rise 0.9s ease forwards 0.15s;
}

.j2m-hero__title {
  font-family: var(--j2m-font-display);
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: j2m-rise 0.9s ease forwards 0.35s;
}

.j2m-hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  max-width: 38rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
  opacity: 0;
  animation: j2m-rise 0.9s ease forwards 0.55s;
}

.j2m-section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.25rem;
}

.j2m-section--cream {
  background: var(--j2m-cream);
}

.j2m-section--ink {
  background: var(--j2m-ink);
  color: #fff;
}

.j2m-section__inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.j2m-section__eyebrow {
  font-family: var(--j2m-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--j2m-blue);
  margin: 0 0 0.75rem;
}

.j2m-section--ink .j2m-section__eyebrow {
  color: #7ec4ff;
}

.j2m-section__title {
  font-family: var(--j2m-font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.j2m-section__text {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--j2m-ink-soft);
  max-width: 42rem;
  margin: 0;
}

.j2m-section--ink .j2m-section__text {
  color: rgba(255, 255, 255, 0.82);
}

.j2m-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.j2m-stat {
  text-align: center;
  padding: 1.5rem 0.75rem;
  border-top: 1px solid var(--j2m-line);
}

.j2m-stat__value {
  font-family: var(--j2m-font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--j2m-blue);
  margin: 0 0 0.5rem;
}

.j2m-stat__label {
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--j2m-ink-soft);
  margin: 0;
}

.j2m-thanks {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.j2m-thanks__item {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.j2m-thanks__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.j2m-thanks__item h3 {
  font-family: var(--j2m-font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.j2m-thanks__item p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 40rem;
}

.j2m-bridge {
  text-align: center;
  padding: 3rem 1.25rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--j2m-line);
}

.j2m-bridge__title {
  font-family: var(--j2m-font-display);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--j2m-ink);
}

.j2m-bridge__text {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--j2m-ink-soft);
  line-height: 1.55;
}

@keyframes j2m-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes j2m-ken {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 700px) {
  .j2m-stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .j2m-stat {
    padding: 1.25rem 0;
  }

  .j2m-hero__content {
    padding-bottom: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .j2m-hero__media img,
  .j2m-hero__brand,
  .j2m-hero__title,
  .j2m-hero__lead {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
