/* ===== PAGE FILIÈRES — maquette fidèle ===== */

.filieres-hero { margin-top: 76px; }

.filieres-hero__stage {
  position: relative;
  min-height: clamp(400px, 48vw, 520px);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #002b1a;
}

.filieres-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.filieres-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    102deg,
    #002b1a 0%,
    #002b1a 34%,
    rgba(0, 43, 26, 0.94) 44%,
    rgba(0, 43, 26, 0.72) 56%,
    rgba(0, 43, 26, 0.35) 72%,
    rgba(0, 43, 26, 0.08) 88%,
    transparent 100%
  );
  pointer-events: none;
}

.filieres-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(400px, 48vw, 520px);
}

.filieres-hero__title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.02;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.filieres-hero__title span {
  display: block;
  color: var(--yellow);
  margin-top: 2px;
}

.filieres-hero__desc {
  font-size: clamp(.78rem, 1.1vw, .875rem);
  color: rgba(255,255,255,.85);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 30px;
}

.filieres-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.btn--outline-yellow {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--yellow);
  padding: 13px 26px;
}

.btn--outline-yellow:hover {
  background: rgba(255,204,0,.12);
}

/* Intro */
.filieres-intro {
  padding: 56px 0 48px;
  background: var(--white);
  text-align: center;
}

.filieres-intro__title {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 18px;
}

.filieres-intro__desc {
  font-size: .84rem;
  color: var(--gray-600);
  line-height: 1.8;
  max-width: 780px;
  margin: 0 auto 12px;
}

.filieres-intro__desc:last-child { margin-bottom: 0; }

/* Cartes étendues */
/* Section programmes fusionnée */
.filieres-programs {
  padding: 64px 0 72px;
  background: #f4f6f5;
}

.filieres-programs__head {
  text-align: center;
  margin-bottom: 28px;
}

.filieres-programs__eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--green-light);
  margin-bottom: 8px;
}

.filieres-programs__title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.filieres-programs__title span { color: var(--green-light); }

.filieres-programs__lead {
  font-size: .84rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.filieres-programs .program-list:not([hidden]) {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.filieres--page {
  padding-bottom: 48px;
}

.filieres--page .filieres__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .filieres--page .filieres__grid,
  .filieres-programs .program-list:not([hidden]) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .filieres--page .filieres__grid,
  .filieres-programs .program-list:not([hidden]) {
    grid-template-columns: 1fr;
  }
}


.filiere-card--extended {
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}

.filiere-card--extended .filiere-card__body {
  text-align: left;
  padding: 0 16px 22px;
}

.filiere-card--extended .filiere-card__title {
  text-align: center;
  font-size: .9rem;
  margin-bottom: 14px;
}

.filiere-card__title--darkgreen { color: #1b5e20; }
.filiere-card__icon--darkgreen { background: #1b5e20; }
.filiere-card__link--darkgreen { color: #1b5e20; border-color: #1b5e20; }
.filiere-card__link--darkgreen:hover { background: #1b5e20; color: #fff; }

.filiere-card__block h4 {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 7px;
}

.filiere-card__block--debouches h4 { color: inherit; }
.filiere-card__block--debouches--orange h4 { color: #e8893a; }
.filiere-card__block--debouches--blue h4 { color: #3498db; }
.filiere-card__block--debouches--green h4 { color: #43a047; }
.filiere-card__block--debouches--darkgreen h4 { color: #1b5e20; }

.filiere-card__block ul {
  list-style: none;
  font-size: .67rem;
  color: #333;
  line-height: 1.6;
}

.filiere-card__block li::before {
  content: '•';
  color: #333;
  margin-right: 5px;
}

.filiere-card__duration {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 600;
  margin: 10px 0 12px;
}

.filiere-card__duration--orange { color: #e8893a; }
.filiere-card__duration--blue { color: #3498db; }
.filiere-card__duration--green { color: #43a047; }
.filiere-card__duration--darkgreen { color: #1b5e20; }

.filiere-card--extended .filiere-card__link {
  width: 100%;
  max-width: 220px;
  justify-content: center;
  margin-top: 6px;
}

.filiere-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}

.filiere-card__actions .filiere-card__link {
  margin-top: 0;
}

.filiere-card__actions .btn {
  display: inline-flex;
  width: 100%;
  max-width: 220px;
  justify-content: center;
  text-align: center;
  margin: 0;
}

.filiere-card--extended .filiere-card__body p {
  min-height: 0;
  margin-bottom: 0;
}

.filiere-card--extended .filiere-card__icon {
  margin: -22px auto 12px;
}

.filiere-detail__badge.filiere-card__icon {
  margin: 0;
  position: absolute;
}

/* Détail filières */
.filiere-details {
  padding: 0 0 72px;
  background: var(--white);
}

.filiere-details__box {
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  background: var(--white);
}

.filiere-details__title {
  text-align: center;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--green-dark);
  padding: 32px 24px 8px;
}

.filiere-details__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #e8893a;
  margin: 10px auto 0;
  border-radius: 2px;
}

.filiere-detail {
  border-top: 1px solid var(--gray-200);
}

.filiere-detail__row {
  display: grid;
  grid-template-columns: 130px minmax(140px, 180px) 1fr 1fr 46px;
  gap: 22px;
  align-items: center;
  padding: 18px 22px;
}

.filiere-detail__media {
  position: relative;
  width: 130px;
  height: 88px;
  flex-shrink: 0;
}

.filiere-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.filiere-detail__badge {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.filiere-detail__head h3 {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.25;
}

.filiere-detail__head h3.color-orange { color: #e8893a; }
.filiere-detail__head h3.color-blue { color: #3498db; }
.filiere-detail__head h3.color-green { color: #43a047; }
.filiere-detail__head h3.color-darkgreen { color: #1b5e20; }

.filiere-detail__col h4 {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 7px;
}

.filiere-detail__col ul {
  list-style: none;
  font-size: .67rem;
  color: #333;
  line-height: 1.55;
}

.filiere-detail__col li {
  padding-left: 0;
}

.filiere-detail__col li::before {
  content: '•';
  margin-right: 5px;
  color: #333;
}

.filiere-detail__col--checks li::before { content: none; }

.filiere-detail__col--checks li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 2px;
}

.filiere-detail__col--checks li svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.filiere-detail__toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #002b1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .25s, background .2s;
}

.filiere-detail__toggle:hover { background: var(--green-light); }
.filiere-detail.is-open .filiere-detail__toggle { transform: rotate(180deg); }

.filiere-detail__panel {
  display: none;
  padding: 0 22px 16px 174px;
  font-size: .76rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.filiere-detail.is-open .filiere-detail__panel { display: block; }

/* Support emploi */
.filieres-support {
  position: relative;
  padding: 64px 0;
  background: #004225;
  overflow: hidden;
}

.filieres-support::before {
  content: '';
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: 200px;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none'%3E%3Cpath d='M50 10C30 10 15 30 15 50c0 25 35 45 35 45s35-20 35-45C85 30 70 10 50 10z' stroke='white' stroke-width='1.5' opacity='.08'/%3E%3C/svg%3E") no-repeat;
  opacity: .6;
  pointer-events: none;
}

.filieres-support__title {
  text-align: center;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 40px;
  line-height: 1.35;
}

.filieres-support__title em {
  font-style: normal;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}

.filieres-support__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
}

.support-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.support-card__icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.support-card__body h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.support-card__body ul {
  list-style: none;
  font-size: .74rem;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
}

.support-card__body li::before {
  content: '•';
  color: var(--yellow);
  margin-right: 6px;
}

/* Opportunités */
.filieres-opps {
  padding: 64px 0;
  background: var(--white);
}

.filieres-opps__title {
  text-align: center;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 36px;
  line-height: 1.35;
}

.filieres-opps__title em {
  font-style: normal;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}

.filieres-opps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.opp-card {
  background: #f4f6f5;
  border-radius: 14px;
  padding: 24px 18px;
  text-align: left;
  border: 1px solid var(--gray-200);
}

.opp-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid var(--gray-200);
}

.opp-card h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.opp-card p {
  font-size: .72rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Stats avec fond photo */
.filieres-stats {
  position: relative;
  padding: 56px 0;
  overflow: hidden;
}

.filieres-stats__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.filieres-stats__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.filieres-stats__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 24, .88);
  z-index: 1;
}

.filieres-stats .container {
  position: relative;
  z-index: 2;
}

.filieres-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* CTA bannière */
.filieres-cta {
  padding: 48px 0 56px;
  background: var(--white);
}

.filieres-cta__inner {
  background: var(--yellow);
  border-radius: 22px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 32px;
  box-shadow: 0 8px 28px rgba(0, 66, 37, 0.12);
}

.filieres-cta__logo {
  flex-shrink: 0;
  padding: 5px;
  border: 2px solid var(--green-dark);
  border-radius: 50%;
  line-height: 0;
  background: rgba(255, 255, 255, 0.35);
}

.filieres-cta__logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}

.filieres-cta__copy h2 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.35;
  margin-bottom: 6px;
}

.filieres-cta__highlight {
  color: var(--green-dark);
  font-weight: 800;
}

.filieres-cta__copy p {
  font-size: .76rem;
  color: rgba(0, 40, 24, 0.78);
  line-height: 1.6;
  max-width: 520px;
}

.filieres-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.filieres-cta__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  white-space: nowrap;
  min-width: 210px;
}

.filieres-cta__actions .btn--green {
  background: var(--green-dark);
  color: var(--white);
  border: none;
}

.filieres-cta__actions .btn--green:hover {
  background: var(--green-light);
  filter: none;
}

.btn--outline-green {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
  padding: 13px 26px;
}

.btn--outline-green:hover {
  background: rgba(0, 66, 37, 0.08);
}

.filieres-cta__actions .btn--outline-green svg {
  stroke: var(--green-dark);
}

@media (max-width: 1100px) {
  .filiere-detail__row {
    grid-template-columns: 110px 1fr 44px;
    grid-template-rows: auto auto auto;
  }
  .filiere-detail__media { grid-row: 1 / 4; width: 110px; height: 100px; }
  .filiere-detail__head { grid-column: 2; }
  .filiere-detail__col { grid-column: 2; }
  .filiere-detail__toggle { grid-column: 3; grid-row: 1 / 4; align-self: center; }
  .filiere-detail__panel { padding-left: 22px; }
  .filieres-opps__grid { grid-template-columns: repeat(2, 1fr); }
  .filieres-support__grid { grid-template-columns: 1fr; }
  .filieres-cta__inner { grid-template-columns: 1fr; text-align: center; }
  .filieres-cta__logo { justify-self: center; }
  .filieres-cta__actions { align-items: center; }
}

@media (max-width: 900px) {
  .filieres-hero__stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
    background: #002b1a;
  }
  .filieres-hero__bg {
    position: relative;
    display: block;
    width: 100%;
    height: 220px;
    flex-shrink: 0;
  }
  .filieres-hero__overlay {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 220px;
    background: linear-gradient(to bottom, rgba(0, 43, 26, 0.05) 0%, rgba(0, 43, 26, 0.55) 100%);
  }
  .filieres-hero__content {
    min-height: 0;
    padding: 28px 24px 36px;
  }
  .filieres-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .filieres-opps__grid,
  .filieres-stats__grid { grid-template-columns: 1fr; }
  .filiere-detail__row { grid-template-columns: 1fr; }
  .filiere-detail__media { width: 100%; height: 140px; }
  .filiere-detail__badge { right: 12px; }
}
