/* Secteurs (page « jobs ») ------------------------------------------------- */

/* Hero vidéo */
.sect-hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--white);
  min-height: clamp(560px, 80vh, 820px); display: flex; align-items: flex-end;
}
.sect-hero__shade { background: linear-gradient(180deg, rgba(9, 9, 2, .5) 0%, rgba(9, 9, 2, .15) 30%, rgba(9, 9, 2, .75) 100%); }
.sect-hero__inner {
  position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(120px, 14vw, 200px) var(--gutter) clamp(64px, 8vw, 112px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
.sect-hero__title { display: flex; flex-direction: column; gap: 18px; }
.sect-hero__h1 { font-size: clamp(36px, 4.6vw, 66px); line-height: 1.02; font-weight: 600; letter-spacing: -.015em; color: var(--white); }
.sect-hero__aside { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.sect-hero__smile { width: 110px; }
.sect-hero__text { line-height: 1.7; max-width: 560px; }

/* 4 secteurs prioritaires */
.prio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.prio-card { display: flex; flex-direction: column; background: var(--gray); border-radius: var(--radius-lg); overflow: hidden; }
.prio-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.prio-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); will-change: transform; }
@media (hover: hover) {
  .prio-card:hover .prio-card__img { transform: scale(1.1); }
}
.prio-card__body { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 44px); }
.prio-card__num { align-self: flex-start; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--yellow); font-size: 13px; font-weight: 700; }
.prio-card__title { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; font-weight: 600; letter-spacing: -.015em; }
.prio-card__text { font-size: 16px; line-height: 1.65; max-width: 540px; }
.prio-card__roles { display: flex; flex-direction: column; margin-top: 4px; border-top: 1px solid rgba(9, 9, 2, .12); }
.prio-card__roles li { padding: 12px 0; border-bottom: 1px solid rgba(9, 9, 2, .12); font-size: 15px; font-weight: 500; }

/* Bascule candidat / employeur */
.mode-switch {
  display: flex; flex-shrink: 0; padding: 4px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--white);
}
.mode-switch__btn {
  padding: 10px 18px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink);
  font: 700 14px var(--font); white-space: nowrap; cursor: pointer; transition: background .25s, color .25s;
}
.mode-switch__btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* Liste des secteurs + panneau du secteur actif */
.sect-browser { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.sect-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sect-list__item {
  display: flex; align-items: center; gap: 20px; width: 100%; padding: 20px 4px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink);
  text-align: left; cursor: pointer; opacity: .6; transition: opacity .25s, padding .25s;
}
.sect-list__item:hover, .sect-list__item[aria-pressed="true"] { opacity: 1; }
.sect-list__item[aria-pressed="true"] { padding-left: 16px; }
.sect-list__num { font-size: 13px; font-weight: 600; min-width: 28px; }
.sect-list__name { flex: 1; font-size: clamp(19px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.sect-list__item > span:last-child { font-size: 20px; }

.sect-panel {
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: clamp(28px, 3vw, 44px); border-radius: var(--radius-lg); background: var(--yellow);
}
.sect-panel__title { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; font-weight: 600; letter-spacing: -.015em; }
.sect-panel .text { line-height: 1.6; }
.sect-panel__roles { display: flex; flex-wrap: wrap; gap: 8px; }
.sect-panel__roles li { padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid rgba(9, 9, 2, .2); font-size: 14px; font-weight: 600; }
.sect-panel__cta { align-self: flex-start; margin-top: 8px; padding: 14px 24px; white-space: normal; text-align: center; }
.sect-panel__cta:hover { opacity: 1; }

/* Offres d'emploi (réutilisé par l'archive des emplois) */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.job-card {
  display: flex; flex-direction: column; gap: 18px; height: 100%; min-height: 200px;
  padding: 28px; border-radius: var(--radius); background: var(--gray);
}
.job-card__title { font-size: clamp(20px, 1.6vw, 23px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; align-content: flex-start; }
.job-card__meta li { padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid rgba(9, 9, 2, .2); font-size: 13px; font-weight: 600; }
.job-card__more { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; }

.job-empty {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); background: var(--gray);
}
.job-empty__smile { width: 96px; }
.job-empty__text { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
@media (max-width: 899px) {
  .job-empty { grid-template-columns: 1fr; justify-items: start; }
  .job-empty .btn { white-space: normal; text-align: center; }
}

/* Autres secteurs */
.other-box {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); border: 1.5px solid var(--ink);
  transition: background .3s;
}
.other-box:hover { background: var(--gray); }
.other-box__text { display: flex; flex-direction: column; gap: 14px; }
.other-box__title { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; font-weight: 600; letter-spacing: -.015em; }
.other-box__btn { justify-self: start; }

.other-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line);
}
.other-cta__text { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.other-cta__title { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.other-cta__text p { font-size: 16px; line-height: 1.6; }

@media (max-width: 479px) {
  .other-box__btn, .other-cta .btn { white-space: normal; }
}

/* Offres puis autres secteurs : évite un double espacement blanc */
#offres + #autres { padding-top: 0; }
