/* Career page · Final-year internships (PFE) 2026–2027
   Used only by carriere.html and en/career.html — safe to delete together with them. */

.pfe-section {
  padding-top: 80px;
}

.pfe-group {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.pfe-group + .pfe-group {
  margin-top: 56px;
}

.pfe-group__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 0 0 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6eaf0;
  color: var(--text-on-light);
  font-family: "Sora", sans-serif;
  font-size: 26px;
}

.pfe-group__title span {
  color: #5c6475;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

/* Topic accordion */
.pfe-topic {
  border: 1px solid #e3e8ee;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 29, 0.045);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  scroll-margin-top: 130px;
}

.pfe-topic:hover,
.pfe-topic[open] {
  border-color: rgba(34, 199, 189, 0.5);
  box-shadow: 0 18px 46px rgba(0, 0, 29, 0.09);
}

.pfe-topic summary {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 40px;
  gap: 22px;
  align-items: start;
  padding: 26px 28px;
  cursor: pointer;
  list-style: none;
}

.pfe-topic summary::-webkit-details-marker {
  display: none;
}

.pfe-topic summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -4px;
  border-radius: var(--radius-md);
}

.pfe-topic__num {
  display: inline-flex;
  justify-content: center;
  padding: 7px 0;
  border-radius: 10px;
  color: #fff;
  background: var(--gradient);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.pfe-topic__head {
  display: grid;
  gap: 7px;
}

.pfe-topic__title {
  color: var(--text-on-light);
  font-family: "Sora", sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.pfe-topic__sub {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.pfe-topic__lead {
  max-width: 860px;
  color: #4f505a;
  font-size: 16px;
  line-height: 1.65;
}

.pfe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pfe-meta span {
  padding: 4px 11px;
  border-radius: 999px;
  color: #1f4e6b;
  background: rgba(34, 199, 189, 0.1);
  font-size: 13px;
  font-weight: 600;
}

.pfe-topic__toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #dfe5ec;
  border-radius: 50%;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.pfe-topic__toggle::before,
.pfe-topic__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  margin: -1px 0 0 -6.5px;
  border-radius: 2px;
  background: var(--text-on-light);
  transition: transform 0.3s var(--ease-out-quint), background 0.3s ease;
}

.pfe-topic__toggle::after {
  transform: rotate(90deg);
}

.pfe-topic summary:hover .pfe-topic__toggle {
  border-color: var(--primary);
}

.pfe-topic[open] .pfe-topic__toggle {
  border-color: transparent;
  background: var(--gradient);
}

.pfe-topic[open] .pfe-topic__toggle::before,
.pfe-topic[open] .pfe-topic__toggle::after {
  background: #fff;
}

.pfe-topic[open] .pfe-topic__toggle::after {
  transform: rotate(0deg);
}

.pfe-topic__body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
  gap: 36px;
  margin: 0 28px 28px calc(28px + 84px + 22px);
  padding-top: 24px;
  border-top: 1px solid #e9edf2;
}

.pfe-topic__body h3 {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pfe-topic__body p {
  margin: 0 0 20px;
  color: #4f505a;
  line-height: 1.65;
}

.pfe-topic__list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.pfe-topic__list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
  color: #3e4150;
  line-height: 1.6;
}

.pfe-topic__list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.pfe-practice {
  padding: 18px 20px;
  border-radius: 14px;
  background: #0c1828;
}

.pfe-practice span {
  display: block;
  margin-bottom: 6px;
  color: var(--finance-gold);
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pfe-topic__body .pfe-practice p {
  margin: 0;
  color: #e6edf5;
}

.pfe-topic__side {
  padding: 22px;
  border-radius: 14px;
  background: #f6f9fb;
}

.pfe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pfe-tags li {
  padding: 5px 11px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  color: var(--text-on-light);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* Apply */
.pfe-apply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: center;
  margin-top: 72px;
  padding: 44px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 199, 189, 0.26), transparent 38%),
    linear-gradient(160deg, #07111f 0%, #0c1828 60%, #050914 100%);
  box-shadow: var(--shadow);
}

.pfe-apply h2 {
  margin: 0 0 26px;
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
}

.pfe-steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pfe-steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.pfe-steps b {
  flex: 0 0 auto;
  min-width: 38px;
  color: var(--finance-gold);
  font-family: "Sora", sans-serif;
  font-size: 22px;
  line-height: 1.2;
}

.pfe-steps h3 {
  margin: 0 0 4px;
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 17px;
}

.pfe-steps p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.pfe-steps code {
  padding: 1px 7px;
  border-radius: 6px;
  color: #b8fff8;
  background: rgba(34, 199, 189, 0.14);
  font-size: 14px;
}

.pfe-apply__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.pfe-apply__qr img {
  width: 160px;
  height: 160px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}

.pfe-apply__qr p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .pfe-topic__body,
  .pfe-apply {
    grid-template-columns: 1fr;
  }

  .pfe-topic__body {
    margin-left: 28px;
  }

  .pfe-apply {
    padding: 32px 26px;
  }
}

@media (max-width: 620px) {
  .pfe-topic summary {
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 12px;
    padding: 20px;
  }

  .pfe-topic__num {
    justify-self: start;
    padding: 5px 11px;
  }

  .pfe-topic__head {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .pfe-topic__toggle {
    grid-column: 2;
    grid-row: 1;
    width: 38px;
    height: 38px;
  }

  .pfe-topic__title {
    font-size: 19px;
  }

  .pfe-topic__body {
    margin: 0 20px 20px;
  }
}

/* PDF catalogue */
.pfe-catalogue {
  margin-top: 72px;
  scroll-margin-top: 130px;
}

.pfe-catalogue__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: 26px;
}

.pfe-catalogue__head p {
  max-width: 640px;
  margin: 12px 0 0;
  color: #4f505a;
  line-height: 1.65;
}

.pfe-catalogue__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.pfe-catalogue__actions .gradient-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pfe-catalogue__actions .gradient-button svg {
  width: 18px;
  height: 18px;
}

.pfe-catalogue__open {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pfe-catalogue__viewer {
  display: block;
  width: 100%;
  height: min(80vh, 760px);
  border: 1px solid #e3e8ee;
  border-radius: var(--radius-md);
  background: #f6f9fb;
  box-shadow: 0 18px 46px rgba(0, 0, 29, 0.09);
}

/* Phones don't display PDFs inline: keep only the buttons */
@media (max-width: 760px) {
  .pfe-catalogue__viewer {
    display: none;
  }
}
