/* ==========================================================================
   Vocation & Talents — Direction artistique éditoriale
   Film d'accueil, images, compositions et déclinaisons responsive.
   ========================================================================== */

/* --- Film d'accueil ------------------------------------------------------- */

.hero-film {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  min-height: calc(100svh - var(--header-h));
  margin-top: var(--header-h);
  overflow: hidden;
  background: #062733;
  color: var(--c-paper);
}

.hero-film__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #062733;
}

.hero-film__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.82) contrast(1.04) brightness(0.9);
  transform: scale(1.01);
}

.hero-film__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 28, 37, 0.95) 0%, rgba(4, 28, 37, 0.79) 36%, rgba(4, 28, 37, 0.28) 72%, rgba(4, 28, 37, 0.52) 100%),
    linear-gradient(0deg, rgba(4, 28, 37, 0.86) 0%, rgba(4, 28, 37, 0.06) 58%, rgba(4, 28, 37, 0.28) 100%);
}

.hero-film__grain {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-film__inner {
  width: 100%;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy aside"
    "foot foot";
  align-content: end;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 1.35rem;
}

.hero-film__copy {
  grid-area: copy;
  max-width: 62rem;
  padding-top: clamp(3rem, 9vh, 8rem);
}

.hero-film .eyebrow--light {
  color: rgba(247, 248, 244, 0.76);
}

.hero-film__title {
  margin-top: 1.35rem;
  max-width: 12ch;
  font-size: clamp(3.15rem, 1.6rem + 5.6vw, 7.1rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--c-paper);
  text-wrap: balance;
}

.hero-film__title em {
  display: block;
  color: var(--c-lime-soft);
  font-weight: 400;
}

.hero-film__lead {
  margin-top: clamp(1.35rem, 2.5vw, 2rem);
  max-width: 53ch;
  font-size: clamp(1rem, 0.92rem + 0.3vw, 1.18rem);
  line-height: 1.65;
  color: rgba(247, 248, 244, 0.76);
}

.hero-film__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: clamp(1.6rem, 3vw, 2.25rem);
}

.hero-film__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0;
  color: var(--c-paper);
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(247, 248, 244, 0.4);
  transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}

.hero-film__link:hover {
  color: var(--c-lime-soft);
  border-color: var(--c-lime-soft);
}

.hero-film__link span {
  transition: transform var(--dur-2) var(--ease-out);
}

.hero-film__link:hover span {
  transform: translate(2px, -2px);
}

.hero-film__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-top: 1.15rem;
  border-top: 1px solid rgba(247, 248, 244, 0.2);
  font-size: 0.78rem;
  color: rgba(247, 248, 244, 0.66);
}

.hero-film__proof li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.hero-film__proof li + li::before {
  content: "";
  align-self: center;
  width: 4px;
  height: 4px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--c-lime);
}

.hero-film__proof strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-paper);
}

.hero-film__aside {
  grid-area: aside;
  align-self: end;
  width: min(17rem, 25vw);
  margin-bottom: 1.1rem;
  padding: 1.15rem;
  border: 1px solid rgba(247, 248, 244, 0.24);
  background: rgba(4, 28, 37, 0.44);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-film__aside-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(247, 248, 244, 0.58);
}

.hero-film__aside-label span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-lime);
  box-shadow: 0 0 0 4px rgba(157, 197, 87, 0.14);
}

.hero-film__aside-text {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.13rem;
  line-height: 1.28;
  color: var(--c-paper);
}

.film-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(247, 248, 244, 0.3);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-paper);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--dur-2) var(--ease-out);
}

.film-control:hover {
  background: var(--c-paper);
  border-color: var(--c-paper);
  color: var(--c-ink);
}

.film-control__icon {
  display: grid;
  place-items: center;
}

.film-control__play {
  display: none;
  margin-left: 1px;
}

.hero-film-paused .film-control__pause {
  display: none;
}

.hero-film-paused .film-control__play {
  display: block;
}

.hero-film__foot {
  grid-area: foot;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(247, 248, 244, 0.2);
  font-size: 0.68rem;
  color: rgba(247, 248, 244, 0.5);
}

.hero-film__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(247, 248, 244, 0.78);
  font-size: 0.71rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-film__scroll i {
  position: relative;
  display: block;
  width: 3.1rem;
  height: 1px;
  overflow: hidden;
  background: rgba(247, 248, 244, 0.24);
}

.hero-film__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-lime);
  transform: translateX(-100%);
  animation: film-scroll 2.8s var(--ease-in-out) infinite;
}

@keyframes film-scroll {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* --- En-tête de section éditorial ---------------------------------------- */

.section-head__aside {
  flex: 0 1 27rem;
  max-width: 30rem;
}

.section-head__aside p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--c-body);
}

/* --- Introduction éditoriale --------------------------------------------- */

.intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}

.intro-split__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--c-paper2);
  aspect-ratio: 4 / 3.15;
}

.intro-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.86) contrast(1.02);
  transition: transform 1.1s var(--ease-out);
}

.intro-split__media:hover img {
  transform: scale(1.025);
}

.intro-split__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(6, 39, 51, 0.68), transparent);
  pointer-events: none;
}

.intro-split__media figcaption {
  position: absolute;
  z-index: 1;
  left: clamp(1rem, 2.4vw, 2rem);
  right: clamp(1rem, 2.4vw, 2rem);
  bottom: clamp(1rem, 2.4vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: rgba(247, 248, 244, 0.8);
  font-size: 0.75rem;
}

.intro-split__media figcaption span {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-lime-soft);
}

.intro-split__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
}

.intro-split__copy h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.8rem);
  line-height: 1.06;
}

.intro-split__copy h2 em {
  color: var(--c-teal);
}

.intro-split__copy p {
  max-width: 48ch;
  color: var(--c-body);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-top: 0.5rem;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.fact-strip > div {
  padding: 1rem 1rem 1rem 0;
}

.fact-strip > div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--c-line);
}

.fact-strip dt {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}

.fact-strip dd {
  margin: 0.35rem 0 0;
  font-size: 0.69rem;
  line-height: 1.4;
  color: var(--c-muted);
}

.intro-split + .principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.75rem, 5vw, 5rem);
  border-top: 1px solid var(--c-line);
}

.intro-split + .principles .principle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.5rem clamp(1rem, 2.4vw, 2rem) 1.75rem 0;
  border-bottom: 0;
  transition: background-color var(--dur-3) var(--ease-out), padding-left var(--dur-3) var(--ease-out);
}

.intro-split + .principles .principle:last-child {
  padding-right: 0;
}

.intro-split + .principles .principle + .principle {
  padding-left: clamp(1rem, 2.4vw, 2rem);
  border-left: 1px solid var(--c-line);
}

.intro-split + .principles .principle:hover {
  padding-left: clamp(1rem, 2.4vw, 2rem);
  background: rgba(157, 197, 87, 0.06);
}

.intro-split + .principles .principle h3 {
  font-size: 1.2rem;
}

.intro-split + .principles .principle p {
  font-size: 0.875rem;
}

/* --- Images d'entreprise et de candidats -------------------------------- */

.enterprise__media {
  width: 100%;
  margin: 0 0 0.5rem;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: rgba(247, 248, 244, 0.06);
  aspect-ratio: 16 / 9.5;
}

.enterprise__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(0.72) contrast(1.04) brightness(0.86);
  transition: transform 1.1s var(--ease-out);
}

.enterprise__media:hover img {
  transform: scale(1.025);
}

.enterprise__media figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: rgba(247, 248, 244, 0.46);
  background: rgba(4, 28, 37, 0.6);
}

.candidates__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.candidates__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: rgba(247, 248, 244, 0.06);
  aspect-ratio: 4 / 3.2;
}

.candidates__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 1.1s var(--ease-out);
}

.candidates__media:hover img {
  transform: scale(1.025);
}

.candidates__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  background: linear-gradient(to top, rgba(6, 39, 51, 0.74), transparent);
  pointer-events: none;
}

.candidates__media figcaption {
  position: absolute;
  z-index: 1;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--c-paper);
}

/* --- Image éditoriale pleine largeur ------------------------------------- */

.section--media {
  padding-block: 0;
  margin-block: clamp(3rem, 7vw, 6.5rem);
}

.wide-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--c-ink);
  aspect-ratio: 16 / 7.1;
  min-height: 20rem;
  isolation: isolate;
}

.wide-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  filter: saturate(0.78) contrast(1.04) brightness(0.82);
}

.wide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 28, 37, 0.82), rgba(4, 28, 37, 0.08) 70%),
    linear-gradient(0deg, rgba(4, 28, 37, 0.45), transparent 55%);
  pointer-events: none;
}

.wide-media figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.9rem;
  width: 100%;
  height: 100%;
  padding: clamp(1.4rem, 4vw, 3.5rem);
}

.wide-media figcaption p {
  max-width: 23ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.1rem + 2.3vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--c-paper);
}

.wide-media figcaption small {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: rgba(247, 248, 244, 0.48);
}

/* --- En-tête de page avec image ----------------------------------------- */

.page-hero--media {
  min-height: clamp(28rem, 55vh, 37rem);
  display: flex;
  align-items: center;
}

.page-hero--media .page-hero__inner {
  width: 100%;
  max-width: none;
  padding-right: 0;
}

.page-hero--media h1 {
  max-width: 13ch;
}

.page-hero__media {
  position: absolute;
  z-index: 0;
  inset: var(--header-h) 0 0 auto;
  width: 40%;
  margin: 0;
  overflow: hidden;
  background: var(--c-paper2);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: saturate(0.82) contrast(1.02);
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--c-paper) 0%, rgba(247, 248, 244, 0) 38%),
    linear-gradient(0deg, rgba(6, 39, 51, 0.26), transparent 55%);
  pointer-events: none;
}

.page-hero__media figcaption {
  position: absolute;
  z-index: 1;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2rem);
  max-width: 22ch;
  padding: 0.45rem 0.65rem;
  background: rgba(6, 39, 51, 0.56);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: rgba(247, 248, 244, 0.82);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
}

/* --- Image du cabinet ----------------------------------------------------- */

.cabinet-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--c-paper2);
  aspect-ratio: 4 / 3.15;
}

.cabinet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(0.8) contrast(1.02);
  transition: transform 1.1s var(--ease-out);
}

.cabinet-photo:hover img {
  transform: scale(1.025);
}

.cabinet-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(to top, rgba(6, 39, 51, 0.56), transparent);
  pointer-events: none;
}

.cabinet-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 0.85rem;
  font-size: 0.66rem;
  color: rgba(247, 248, 244, 0.78);
}

/* --- Images des expertises ---------------------------------------------- */

.expertise-detail__media {
  position: relative;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0.5rem;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--c-paper2);
  aspect-ratio: 16 / 7;
}

.expertise-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(0.84) contrast(1.02);
}

/* --- Déclinaisons -------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero-film__aside {
    width: 15rem;
  }

  .hero-film__title {
    max-width: 11ch;
  }
}

@media (max-width: 980px) {
  .hero-film__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "aside"
      "foot";
    align-content: end;
  }

  .hero-film__aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1rem;
    width: 100%;
    max-width: 34rem;
    margin-bottom: 0.25rem;
    padding: 0.85rem 1rem;
  }

  .hero-film__aside-label {
    flex-basis: 100%;
  }

  .hero-film__aside-text {
    flex: 1 1 14rem;
    margin-top: 0;
    font-size: 1rem;
  }

  .film-control {
    margin-top: 0;
  }

  .hero-film__title {
    max-width: 12ch;
    font-size: clamp(3.3rem, 8.8vw, 5.8rem);
  }

  .intro-split,
  .enterprise__grid,
  .candidates__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro-split {
    align-items: start;
  }

  .intro-split__media {
    aspect-ratio: 16 / 10;
  }

  .intro-split__copy h2 {
    max-width: 15ch;
  }

  .intro-split + .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro-split + .principles .principle,
  .intro-split + .principles .principle + .principle,
  .intro-split + .principles .principle:hover {
    padding: 1.25rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--c-line);
  }

  .enterprise__media {
    max-width: 100%;
    aspect-ratio: 16 / 8.5;
  }

  .enterprise__head {
    position: static;
  }

  .candidates__side {
    max-width: 44rem;
  }

  .candidates__media {
    aspect-ratio: 16 / 10;
  }

  .candidates__media img {
    object-position: center 30%;
  }

  .page-hero--media {
    display: block;
    min-height: 0;
  }

  .page-hero--media .page-hero__inner {
    max-width: 100%;
    padding-right: 0;
  }

  .page-hero__media {
    position: relative;
    inset: auto;
    width: calc(100% + (var(--gutter) * 2));
    height: clamp(12rem, 30vw, 18rem);
    margin: clamp(1.75rem, 4vw, 2.5rem) calc(var(--gutter) * -1) 0;
    clip-path: none;
  }

  .page-hero__media::after {
    background: linear-gradient(0deg, rgba(6, 39, 51, 0.3), transparent 55%);
  }
}

@media (max-width: 680px) {
  .hero-film {
    min-height: calc(100svh - var(--header-h));
  }

  .hero-film__inner {
    min-height: calc(100svh - var(--header-h));
    padding-top: 1.5rem;
    gap: 1.25rem;
  }

  .hero-film__copy {
    padding-top: clamp(2rem, 8vh, 4rem);
  }

  .hero-film__title {
    margin-top: 1rem;
    font-size: clamp(2.85rem, 13vw, 4rem);
    max-width: 10ch;
  }

  .hero-film .eyebrow {
    position: relative;
    display: block;
    max-width: 100%;
    padding-left: 1.15rem;
    line-height: 1.55;
  }

  .hero-film .eyebrow::before {
    position: absolute;
    left: 0;
    top: 0.55em;
  }

  .hero-film .eyebrow::after {
    display: none;
  }

  .hero-film__lead {
    margin-top: 1.1rem;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-film__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.35rem;
  }

  .hero-film__actions .btn {
    width: 100%;
    justify-content: space-between;
  }

  .hero-film__link {
    align-self: flex-start;
  }

  .hero-film__proof {
    gap: 0.45rem 1rem;
    margin-top: 1.35rem;
    font-size: 0.7rem;
  }

  .hero-film__proof li:nth-child(3) {
    display: none;
  }

  .hero-film__aside {
    max-width: none;
    padding: 0.75rem 0.85rem;
  }

  .hero-film__aside-text {
    display: none;
  }

  .film-control {
    padding: 0.42rem 0.65rem;
  }

  .hero-film__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.62rem;
  }

  .hero-film__credit {
    display: none;
  }

  .fact-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact-strip > div,
  .fact-strip > div + div {
    padding: 0.85rem 0;
    border-left: 0;
  }

  .fact-strip > div + div {
    border-top: 1px solid var(--c-line);
  }

  .fact-strip dt {
    font-size: 1.3rem;
  }

  .wide-media {
    aspect-ratio: 4 / 4.2;
    min-height: 23rem;
  }

  .wide-media figcaption {
    padding: 1.2rem;
  }

  .wide-media figcaption p {
    font-size: clamp(1.6rem, 7.5vw, 2.3rem);
  }

  .wide-media::after {
    background:
      linear-gradient(0deg, rgba(4, 28, 37, 0.9), rgba(4, 28, 37, 0.08) 75%),
      linear-gradient(90deg, rgba(4, 28, 37, 0.4), transparent 70%);
  }

  .expertise-detail__media {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-film__video {
    display: none;
  }

  .hero-film__media {
    background: #062733 url("../video/recrutement-sequence-poster.jpg") center / cover no-repeat;
  }

  .hero-film__grain {
    display: none;
  }

  .hero-film__scroll i::after {
    animation: none;
    transform: translateX(0);
  }

  .hero-film__title,
  .hero-film__lead {
    animation: none;
  }
}

@media (max-width: 680px) and (prefers-reduced-motion: reduce) {
  .hero-film__media {
    background-image: url("../video/recrutement-sequence-mobile.jpg");
  }
}
