/* ══════════════════════════════════════════
   HOME PAGE — Fanny Corpet
   ══════════════════════════════════════════ */

/* ── Hero ── */

.home-hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--green-dark);
  overflow: hidden;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  max-width: 50%;
  padding: calc(var(--nav-height) + 2rem) 5rem 3rem;
}

.home-hero__content .hero-eyebrow {
  animation: fadeUp 0.7s ease-out 0.2s both;
}

.home-hero__content .hero-title {
  animation: fadeUp 0.7s ease-out 0.4s both;
}

.home-hero__content .hero-sub {
  animation: fadeUp 0.7s ease-out 0.6s both;
}

.home-hero__content .hero-actions {
  animation: fadeUp 0.7s ease-out 0.8s both;
}

.home-hero__photo img {
  animation: fadeIn 1.2s ease-out 0.3s both;
}

.home-hero .hero-title {
  color: var(--cream);
}

.home-hero .hero-title em {
  color: var(--salmon);
}

.home-hero__sub {
  color: rgba(245, 237, 227, 0.7);
}

.home-hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  /* Contient la photo quand un zoom est appliqué depuis l'admin. */
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
}

.home-hero__photo img {
  /* Largeur libre : la boîte de l'image épouse la photo, sans bandes vides.
     La photo est donc entière à zoom 100 %. */
  height: 100%;
  width: auto;
  max-width: none;
  filter: grayscale(15%);
  /* Décalage vers la gauche, piloté depuis l'admin. */
  margin-right: var(--photo-shift, 0%);
  /* Fondu porté par l'image : il colle aux vrais bords de la photo,
     donc plus de bord net quelle que soit sa largeur. Le bord droit n'est
     fondu que si la photo est décalée (sinon --photo-fade-right vaut 0). */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--photo-fade, 25%), #000 calc(100% - var(--photo-fade-right, 0%)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--photo-fade, 25%), #000 calc(100% - var(--photo-fade-right, 0%)), transparent 100%);
}


/* ── Parcours ── */

.home-parcours {
  background-color: var(--cream);
}

.home-parcours__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: left;
}

.home-parcours__card {
  background-color: var(--white);
  padding: 2rem 1.8rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-parcours__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.home-parcours__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: rgba(11, 61, 46, 0.08);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.home-parcours__company {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.home-parcours__role {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--salmon);
  margin-bottom: 12px;
}

.home-parcours__desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}


/* ── Offres (triptyque) ── */

.home-offres {
  background: var(--cream-dark);
}

.home-offres__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: left;
}

.home-offres__card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-offres__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.home-offres__card--featured {
  background-color: var(--green-dark);
}

.home-offres__card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: normal;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.home-offres__card--featured .home-offres__card-title {
  color: var(--cream);
}

.home-offres__card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 24px;
}

.home-offres__card--featured .home-offres__card-desc {
  color: rgba(245, 237, 227, 0.7);
}

.home-offres__card-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--salmon);
}


/* ── Responsive ── */

@media (max-width: 900px)  {
.home-hero {
    min-height: auto;
  }
.home-hero__content {
    max-width: 100%;
    min-height: auto;
    padding: calc(var(--nav-height) + 2rem) 1.5rem 3rem;
  }
.home-hero__photo {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 400px;
    justify-content: center;
  }
.home-hero__photo img {
    margin-right: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
.home-parcours__grid {
    grid-template-columns: repeat(2, 1fr);
  }
.home-offres__grid {
    grid-template-columns: 1fr;
  }
.home-cta__box {
    padding: 3rem 2rem;
  }
}

@media (max-width: 600px)  {
.home-parcours__grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 1rem;
    padding-bottom: 1rem;
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    scrollbar-width: none;
  }
.home-parcours__grid::-webkit-scrollbar {
    display: none;
  }
.home-parcours__card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
}
