/* ============================================================
   ARTERE e-Commerce — Page Recrutement
   Composants spécifiques (s'appuie sur styles.css)
   ============================================================ */

/* ---------- HERO Recrutement : illustration en fond plein cadre, sans bordure ---------- */
.rec-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #f3f3f4 0%, #eff0f1 60%, #eaeaec 100%);
}
.rec-hero-bg {
  background:
    linear-gradient(
      100deg,
      #f4f4f5 0%,
      #f4f4f5 48%,
      rgba(245, 245, 246, 0.96) 56%,
      rgba(250, 250, 251, 0.5) 66%,
      rgba(255, 255, 255, 0) 76%
    ),
    url("../recrutement-hero.png") no-repeat right center / auto 90%,
    #ffffff;
}
.rec-hero-bg .hero-grid {
  grid-template-columns: 1fr;
  min-height: clamp(460px, 44vw, 620px);
  align-items: center;
}
.rec-hero-bg .hero-copy {
  max-width: 520px;
  position: relative;
  z-index: 2;
}
.rec-hero h1 {
  font-size: clamp(2rem, 2.95vw, 2.85rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0.5rem 0 0;
  max-width: 12ch;
}
.rec-hero .lead {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
}
@media (max-width: 1000px) {
  .rec-hero-bg {
    background:
      linear-gradient(
        180deg,
        #f5f5f6 0%,
        #f5f5f6 44%,
        rgba(247, 247, 248, 0.72) 56%,
        rgba(255, 255, 255, 0) 74%
      ),
      url("../recrutement-hero.png") no-repeat center bottom / min(500px, 92%)
        auto,
      #ffffff;
  }
  .rec-hero-bg .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: 0;
    padding: 52px 28px min(66vw, 400px);
  }
  .rec-hero-bg .hero-copy {
    max-width: none;
    margin: 0 auto;
  }
  .rec-hero-bg .hero-cta {
    justify-content: center;
  }
}

/* visuel : photo équipe encadrée + accents flottants */
.rec-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 28px 18px 0;
}
.rec-photo {
  width: 100%;
  max-width: 560px;
  height: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
/* cartes flottantes décoratives (univers 3D ARTERE) */
.rec-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  z-index: 3;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.rec-float .dot {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.rec-float .dot svg {
  width: 17px;
  height: 17px;
}
.rec-float--tl {
  top: 6px;
  left: -6px;
}
.rec-float--bl {
  bottom: 24px;
  left: -22px;
}
.rec-cube {
  position: absolute;
  border-radius: 6px;
  z-index: 2;
}
.rec-cube--a {
  width: 46px;
  height: 46px;
  background: linear-gradient(150deg, #e1241c, #bf1a14);
  box-shadow: 0 14px 30px rgba(225, 36, 28, 0.32);
  top: -12px;
  right: 38px;
  transform: rotate(8deg);
}
.rec-cube--b {
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  bottom: -10px;
  right: 120px;
  transform: rotate(-10deg);
}

/* ---------- Cartes 4 colonnes (Pourquoi nous rejoindre) ---------- */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.cards-4 .card {
  padding: 30px 26px;
}
.cards-4 .card .badge {
  width: 58px;
  height: 58px;
}
.cards-4 .card .badge svg {
  width: 28px;
  height: 28px;
}
.cards-4 .card h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  min-height: 2.5em;
}
.cards-4 .card p {
  margin-top: 0.65rem;
  font-size: 0.93rem;
}

/* ---------- Pourquoi nous rejoindre : parcours vertical à dégradé ---------- */
.join-lead {
  max-width: 60ch;
  margin: 1.1rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.04rem;
}
.join-journey {
  position: relative;
  max-width: 880px;
  margin: 54px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* colonne de gauche : épine dorsale en dégradé (réinterprétation du « funnel ») */
.join-journey::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 34px;
  bottom: 34px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    #9e140f 0%,
    #c71d16 26%,
    #e1241c 52%,
    #ee5a52 76%,
    #f58982 100%
  );
  transform: translateX(-50%);
  z-index: 0;
}
.join-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
}
.join-step:last-child {
  padding-bottom: 0;
}
.join-marker {
  display: flex;
  justify-content: center;
}
.join-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 12px 26px rgba(190, 26, 20, 0.3);
  border: 3px solid #fff;
}
.join-dot svg {
  width: 27px;
  height: 27px;
}
.join-step:nth-child(1) .join-dot {
  background: linear-gradient(150deg, #a5160f, #7e0f0a);
}
.join-step:nth-child(2) .join-dot {
  background: linear-gradient(150deg, #c71d16, #a5160f);
}
.join-step:nth-child(3) .join-dot {
  background: linear-gradient(150deg, #e1241c, #c71d16);
}
.join-step:nth-child(4) .join-dot {
  background: linear-gradient(150deg, #ee5a52, #e1241c);
}
.join-step:nth-child(5) .join-dot {
  background: linear-gradient(150deg, #f58982, #ee5a52);
}
.join-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 28px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.join-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #dcdcdf;
}
.join-no {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--brand);
  text-transform: uppercase;
}
.join-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 3px;
  line-height: 1.25;
}
.join-card p {
  color: var(--muted);
  margin-top: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.62;
}

/* ---------- Profils recherchés (chips) ---------- */
.profil-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 46px;
}
.profil-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.profil-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #dcdcdf;
}
.profil-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
}
/* profil cliquable : mène vers la fiche de poste détaillée */
.profil-chip--link {
  color: var(--brand);
  border-color: var(--brand);
}
.profil-chip--link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}
.profil-chip--link:hover {
  background: var(--brand);
  color: #fff;
}
.profil-chip--link:hover::before {
  background: #fff;
}
.profil-chip--link:hover svg {
  transform: translateX(3px);
}

/* ---------- Ce que vous trouverez ici ---------- */
.find-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.find-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 56px 28px 26px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.find-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #dcdcdf;
}
.find-ic {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1.5px solid var(--line);
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  color: var(--brand);
}
.find-ic svg {
  width: 28px;
  height: 28px;
}
.find-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.find-card p {
  color: var(--muted);
  margin-top: 0.4rem;
  font-size: 0.93rem;
}
.find-card .chevron {
  position: absolute;
  right: 22px;
  bottom: 22px;
  color: var(--brand);
  width: 20px;
  height: 20px;
}
/* variante intégrée à une fiche de poste (colonne étroite) : empilé */
.find-grid--job {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}
.find-grid--job .find-card {
  padding: 24px 52px 24px 24px;
}

/* ---------- Notre processus de recrutement ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 54px;
  position: relative;
}
.proc-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 14px;
}
.proc-disc {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: var(--brand);
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}
.proc-disc svg {
  width: 46px;
  height: 46px;
}
.proc-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.proc-step h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-top: 0.25rem;
}
.proc-step p {
  color: var(--muted);
  margin-top: 0.55rem;
  font-size: 0.95rem;
  max-width: 30ch;
}
/* connecteur en pointillés entre les disques */
.proc-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 54px;
  left: calc(50% + 64px);
  right: calc(-50% + 64px);
  height: 0;
  border-top: 2px dashed #cfd0d3;
  z-index: 1;
}
.proc-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 48px;
  right: calc(-50% + 60px);
  z-index: 1;
  border-left: 7px solid #cfd0d3;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ---------- Témoignages ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testi-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 34px 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testi-quote {
  position: relative;
  padding-left: 34px;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.6;
}
.testi-quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--brand);
  font-family: Georgia, serif;
  font-weight: 700;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}
.testi-meta .name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.testi-meta .role {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- CTA Recrutement (bannière sur footer) ---------- */
.rec-cta .cta-copy h2 {
  max-width: 18ch;
}
.rec-cta .cta-illus {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  overflow: hidden;
}
.rec-cta .cta-illus img {
  max-width: 100%;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-4 .card h3 {
    min-height: 0;
  }
}
@media (max-width: 980px) {
  .rec-visual {
    justify-content: center;
    padding: 8px 28px 26px;
  }
  .rec-photo {
    max-width: 520px;
    height: 360px;
  }
  .rec-float--bl {
    left: 0;
  }
  .find-grid {
    grid-template-columns: 1fr;
  }
  .process {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .proc-step:not(:last-child)::after,
  .proc-step:not(:last-child)::before {
    display: none;
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .cards-4 {
    grid-template-columns: 1fr;
  }
  .rec-photo {
    height: 300px;
  }
  .join-step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }
  .join-journey::before {
    left: 24px;
  }
  .join-dot {
    width: 48px;
    height: 48px;
  }
  .join-dot svg {
    width: 23px;
    height: 23px;
  }
  .join-card {
    padding: 18px 20px;
  }
}
