/* JEN Consult — site stylesheet
   Structure: tokens · base · icons · components (in page order). */

/* ---------- Design tokens ---------- */

:root {
  --ink: #14080E;
  --cream: #FAF9F3;
  --gold: #FFA900;
  --gold-light: #FFC756;
  --gold-pale: #FFD47E;
  --plum: #2A1A22;
  --grey: #545454;
  --grey-light: #7C7C7C;

  --font-display: 'League Spartan', sans-serif;
  --font-label: Montserrat, sans-serif;

  --ease-gate: cubic-bezier(.6, .05, .25, 1);
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Poppins, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

a {
  color: var(--ink);
  text-decoration: none;
}

/* :where() keeps this at class-level specificity so component classes can set their own link colors */
:where(a):hover {
  color: var(--grey);
}

input,
select,
textarea,
button {
  font-family: inherit;
}

::selection {
  background: var(--gold-pale);
}

/* ---------- Icons (the glyph itself is set inline through mask) ---------- */

.icon--16 { width: 16px; height: 16px; }
.icon--18 { width: 18px; height: 18px; }
.icon--20 { width: 20px; height: 20px; }
.icon--28 { width: 28px; height: 28px; }
.icon--30 { width: 30px; height: 30px; }
.icon--64 { width: 64px; height: 64px; }

.icon--ink { background: var(--ink); }
.icon--cream { background: var(--cream); }
.icon--gold { background: var(--gold); }

/* ---------- Page ---------- */

.page {
  min-height: 100vh;
  position: relative;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg,rgba(20,8,14,0.55) 0%,rgba(20,8,14,0.45) 40%,rgba(20,8,14,0.78) 100%),url('../img/citadelle.JPG') center 60%/cover no-repeat var(--ink);
  pointer-events: none;
}

.page-content {
  position: relative;
  z-index: 1;
  color: var(--cream);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.section {
  padding: 96px 24px;
  scroll-margin-top: 72px;
}

.section--tight-bottom {
  padding: 96px 24px 40px;
}

.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold-light);
}

.eyebrow--wide {
  letter-spacing: 0.2em;
}

.eyebrow--tight {
  letter-spacing: 0.04em;
}

.eyebrow--small {
  font-size: 12px;
}

.eyebrow--step {
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
}

.section-title--lg {
  font-size: clamp(34px,4.6vw,60px);
  line-height: 1;
}

.balance {
  text-wrap: balance;
}

.section-title--md {
  font-size: clamp(34px,4.4vw,56px);
  line-height: 1.02;
}

.accent {
  color: var(--gold);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px,6vw,80px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: transform .2s;
  background: var(--gold);
  color: var(--ink);
}

.btn-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-light);
  color: var(--ink);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
}

.spacer {
  flex: 1;
}

/* ---------- Gateway ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream);
  overflow: hidden;
  transition: opacity .6s ease;
}

.gate-panel {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  transition: clip-path .7s var(--ease-gate);
}

.gate-panel--student {
  background: var(--ink);
  color: var(--cream);
}

.gate-panel--business {
  background: var(--gold);
  color: var(--ink);
}

.gate-panel--about {
  background: #E4E2D9;
  color: var(--ink);
}

.gate-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-label--student {
  max-width: min(420px,80vw);
}

.gate-eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.gate-eyebrow--accent {
  color: var(--gold-light);
}

.gate-eyebrow--muted {
  color: var(--grey);
}

.gate-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px,4.6vw,68px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.gate-enter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.gate-enter--accent {
  color: var(--gold);
}

.gate-enter__arrow {
  transition: transform .3s;
}

.gate-emblem {
  position: absolute;
  transform: translate(-50%,-50%);
  transition: left .7s var(--ease-gate),top .7s var(--ease-gate);
  pointer-events: none;
}

.gate-emblem__hole {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: var(--cream);
  clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
}

.gate-emblem__logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-emblem__img {
  width: 100%;
  height: auto;
  display: block;
}

.gate-brand {
  position: absolute;
  top: 52px;
  left: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

/* ---------- Site header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(250,249,243,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20,8,14,0.08);
}

.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  width: auto;
  display: block;
}

.logo-img--h34 {
  height: 34px;
}

.logo-img--h20 {
  height: 20px;
}

.logo-img--h18 {
  height: 18px;
}

.logo-img--h30 {
  height: 30px;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav__link {
  font-size: 14px;
  font-weight: 600;
}

.site-header__cta {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(20,8,14,0.15);
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  border-top: 1px solid rgba(20,8,14,0.08);
  padding: 12px 24px 24px;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

.mobile-menu__link {
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  border-bottom: 1px solid rgba(20,8,14,0.06);
}

.mobile-menu__cta {
  margin-top: 18px;
  text-align: center;
  background: var(--gold);
  color: var(--ink);
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 24px 64px;
  background: transparent;
  color: var(--cream);
  position: relative;
}

.hero__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 0 56px;
}

.hero__inner--center {
  text-align: center;
}

.hero__inner--split {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,460px),1fr));
  gap: 40px;
  align-items: end;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 22px 0 0;
}

.hero__title--home {
  font-size: clamp(56px,11vw,148px);
  line-height: 0.9;
}

.hero__title--page {
  font-size: clamp(48px,8vw,112px);
  line-height: 0.92;
  text-wrap: balance;
}

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px,2.6vw,34px);
  letter-spacing: -0.01em;
  margin: 18px 0 0;
}

.hero__lead {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(16px,1.4vw,19px);
  line-height: 1.6;
  color: rgba(250,249,243,0.85);
  margin: 0;
  max-width: 520px;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- About: mission, intro, figures ---------- */

.mission {
  padding: 104px 24px 88px;
  scroll-margin-top: 72px;
}

.mission__body {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.mission__quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px,3.4vw,44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
  text-wrap: balance;
}

.about-intro {
  padding: 0 24px 88px;
}

.about-intro__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,440px),1fr));
  gap: 56px;
  align-items: center;
}

.about-intro__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px,4.4vw,56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.about-intro__text {
  color: rgba(250,249,243,0.82);
  line-height: 1.7;
  font-size: 16px;
  margin: 22px 0 0;
  max-width: 540px;
  text-wrap: pretty;
}

.about-intro__text--follow {
  margin: 14px 0 0;
}

.photo-frame {
  aspect-ratio: 16/10;
  border: 5px solid var(--cream);
  border-radius: 10px;
  overflow: hidden;
  background: var(--plum);
  box-shadow: 0 20px 50px rgba(20,8,14,0.35);
}

.order-1 {
  order: 1;
}

.order-2 {
  order: 2;
}

.stats {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(20px,4vw,64px);
  color: var(--cream);
  min-height: clamp(170px,14vw,240px);
  padding: 32px 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-width: 0;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px,4vw,56px);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.stat__label {
  white-space: pre-line;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: clamp(12px,1.1vw,16px);
  line-height: 1.35;
}

/* ---------- Values (flip cards) ---------- */

.values__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px,6vw,80px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(40px,5vw,64px);
  text-align: center;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr));
  gap: 28px;
}

.flip-card {
  perspective: 1200px;
  height: clamp(300px,26vw,360px);
  cursor: pointer;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}

.flip-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: var(--ink);
  border-radius: 24px;
  box-shadow: 0 24px 50px -24px rgba(20,8,14,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.flip-card__face--front {
  background: var(--cream);
  gap: 36px;
  padding: 32px;
}

.flip-card__face--back {
  transform: rotateY(180deg);
  background: var(--gold-light);
  gap: 16px;
  padding: 36px;
}

.flip-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px,2vw,28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.flip-card__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.flip-card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ---------- Poles and events (alternating photo / text rows) ---------- */

.section-head {
  max-width: 700px;
  margin-bottom: 56px;
}

.split-list {
  display: flex;
  flex-direction: column;
  gap: clamp(56px,8vw,112px);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,420px),1fr));
  gap: clamp(32px,5vw,72px);
  align-items: center;
}

.split__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px,4vw,52px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

.split__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(250,249,243,0.85);
  text-wrap: pretty;
}

/* ---------- Call-to-action cards ---------- */

.cta-cards {
  padding: 0 24px 96px;
}

.cta-cards__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,380px),1fr));
  gap: 16px;
}

.cta-card {
  text-align: left;
  border: 0;
  cursor: pointer;
  border-radius: 24px;
  padding: clamp(28px,4vw,44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s;
}

.cta-card--business {
  background: var(--gold);
  color: var(--ink);
}

.cta-card--student {
  background: var(--ink);
  color: var(--cream);
}

.cta-card__label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
}

.cta-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px,3.6vw,48px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cta-card__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Business: services carousel and detail modal ---------- */

.services-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.services-head__text {
  max-width: 640px;
}

.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 8px;
  margin: 0 -2px;
}

.carousel__slide {
  position: relative;
  flex: 0 0 clamp(260px,30vw,384px);
  aspect-ratio: 3/4.4;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--plum);
}

.carousel__shade {
  position: absolute;
  inset: 0 0 auto 0;
  height: 55%;
  background: linear-gradient(180deg,rgba(20,8,14,0.72),rgba(20,8,14,0));
  pointer-events: none;
}

.carousel__open {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--cream);
}

.carousel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px,2.6vw,36px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.carousel__plus {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}

.carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.carousel__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(250,249,243,0.3);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20,8,14,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(16px,6vh,64px) 16px;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 28px;
  padding: clamp(28px,5vw,56px);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__tag {
  color: #B87700;
}

.modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px,4.4vw,52px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 12px 0 0;
}

.modal__subtitle {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  margin-top: 32px;
  color: var(--grey);
}

.modal__list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
}

.modal__item {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  padding: 14px 0;
  border-top: 1px solid rgba(20,8,14,0.1);
}

.modal__check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  background: var(--gold);
}

.modal__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

/* ---------- Business: projects ---------- */

.projects-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,360px),1fr));
  gap: 20px;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(20,8,14,0.07);
  transition: transform .25s,box-shadow .25s;
}

.project-card__media {
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(135deg,var(--cream) 0 12px,#F7FFE0 12px 24px);
  position: relative;
  overflow: hidden;
}

.project-card__media-tag {
  font-family: ui-monospace,Menlo,monospace;
  font-size: 11px;
  color: var(--grey-light);
  background: var(--cream);
  padding: 5px 9px;
  border-radius: 6px;
}

.project-card__body {
  padding: 24px;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.tag--filled {
  font-weight: 600;
  background: var(--gold-pale);
  color: var(--ink);
}

.tag--outline {
  font-weight: 500;
  border: 1px solid rgba(20,8,14,0.12);
  color: var(--grey);
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 16px 0 10px;
}

.project-card__desc {
  margin: 0;
  color: var(--grey);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Business: process timeline ---------- */

.process-head {
  max-width: 700px;
  margin-bottom: 16px;
}

.process__scroller {
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -24px;
  padding: max(72px, calc(290px - 20vw)) 24px 0;
}

.process__stage {
  position: relative;
  min-width: 900px;
  aspect-ratio: 1640/660;
}

.process__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.process-step {
  position: absolute;
  width: 22%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.55;
  transition: opacity .4s;
}

.process-step--start {
  left: 6.1%;
  bottom: 60.6%;
  transform: translateX(-12px);
  align-items: flex-start;
  text-align: left;
}

.process-step--middle {
  left: 43.9%;
  bottom: 60.6%;
  transform: translateX(-50%);
  align-items: center;
  text-align: center;
}

.process-step--end {
  left: 93.9%;
  top: 59.1%;
  transform: translateX(calc(-100% + 12px));
  align-items: flex-end;
  text-align: right;
}

.process-step__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.process-step__row--start {
  justify-content: flex-start;
}

.process-step__row--center {
  justify-content: center;
}

.process-step__row--end {
  justify-content: flex-end;
}

.process-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px,2.2vw,30px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.process-step__badge {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  transform: rotate(-4deg);
}

.process-step__text {
  margin: 0;
  color: rgba(250,249,243,0.76);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Timeline dots, set to "reached" by the walker animation (SVG circles on desktop) */
.process__dot {
  fill: var(--ink);
}

.process__dot[data-reached="true"] {
  fill: var(--gold-light);
}

/* Vertical timeline, rendered instead of the horizontal one on small screens */
.process-vertical {
  position: relative;
  padding-top: 80px; /* room for the walker above the first step */
}

.process-vertical__walker-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.process-vertical__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 44px 52px;
  opacity: 0.55;
  transition: opacity .4s;
}

/* Dotted line from this step's dot down to the next one */
.process-vertical__step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: -10px;
  left: 13px;
  border-left: 3px dotted rgba(250,249,243,0.35);
}

.process-vertical__dot {
  position: absolute;
  top: 2px;
  left: 6px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--gold-light);
  border-radius: 50%;
  background: var(--ink);
}

.process-vertical__dot[data-reached="true"] {
  background: var(--gold-light);
}

/* ---------- Students: photo strip, recruitment, team ---------- */

.photo-strip {
  padding: 24px 0 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(16px,2.4vw,36px);
}

.photo-strip__row {
  display: flex;
  width: max-content;
  will-change: transform;
}

.photo-strip__item {
  flex: 0 0 auto;
  width: clamp(260px,25vw,480px);
  aspect-ratio: 3/2;
  margin-right: clamp(16px,2.4vw,44px);
}

.join__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.join__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px,4.6vw,56px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.join__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream);
  text-align: justify;
  hyphens: auto;
}

.join__cta {
  display: flex;
  margin-top: 8px;
}

.team-head {
  max-width: 700px;
  margin-bottom: 44px;
}

.team-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.team-group-title {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}

.team-group-title--primary {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.team-group-title--secondary {
  font-size: 24px;
  letter-spacing: -0.01em;
}

.team-group-line {
  flex: 1;
  height: 1px;
  background: rgba(250,249,243,0.3);
}

.team-group-count {
  font-family: ui-monospace,Menlo,monospace;
  font-size: 12px;
  color: rgba(250,249,243,0.7);
  white-space: nowrap;
}

.board-grid {
  display: grid;
  gap: 32px 20px;
}

.board-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.board-card__photo {
  display: block;
  aspect-ratio: 4/5;
  width: 100%;
  margin-bottom: 10px;
}

.board-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.board-card__role {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  color: var(--gold-light);
}

.board-card__link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 14px;
  color: rgba(250,249,243,0.8);
}

.team-group {
  margin-top: 72px;
}

.team-grid {
  display: grid;
  gap: 24px 16px;
}

.member-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-card__photo {
  display: block;
  aspect-ratio: 1/1;
  width: 100%;
  margin-bottom: 8px;
}

.member-card__link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 13px;
  color: rgba(250,249,243,0.8);
}

.member-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}

.member-card__role {
  font-size: 13.5px;
  color: var(--gold-light);
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  z-index: 1;
  padding: 96px 24px;
  color: var(--cream);
  scroll-margin-top: 72px;
}

.contact__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,400px),1fr));
  gap: 48px;
  align-items: start;
}

.contact__intro {
  color: rgba(250,249,243,0.72);
  line-height: 1.65;
  margin: 20px 0 0;
  font-size: 16px;
  max-width: 460px;
}

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

.contact__item {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--cream);
  font-size: 15px;
}

.contact__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(250,249,243,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  background: var(--cream);
  color: var(--ink);
  border-radius: 24px;
  padding: clamp(24px,3vw,40px);
}

.contact-form__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
}

.contact-form__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 16px;
  margin-top: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field__label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--grey);
}

.form-control {
  border-radius: 10px;
  border: 1px solid rgba(20,8,14,0.15);
  background: #FFFFFF;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.form-control--input {
  height: 48px;
  padding: 0 14px;
}

.form-control--select {
  height: 48px;
  padding: 0 12px;
}

.form-control--area {
  padding: 12px 14px;
  resize: vertical;
}

.contact-form__submit {
  margin-top: 24px;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s;
}

.contact-form__note {
  font-size: 12.5px;
  color: var(--grey-light);
  margin: 14px 0 0;
  text-align: center;
}

.contact-form__success {
  padding: 48px 8px;
  text-align: center;
}

.contact-form__badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #DBEBC0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form__success-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
}

.contact-form__success-text {
  color: var(--grey);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 360px;
}

.contact-form__reset {
  margin-top: 28px;
  border: 1.5px solid rgba(20,8,14,0.2);
  background: transparent;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Partners ---------- */

.partners {
  position: relative;
  z-index: 1;
  padding: 88px 0 72px;
  color: var(--cream);
  background: linear-gradient(180deg,rgba(20,8,14,0) 0%,rgba(20,8,14,0.6) 45%,var(--ink) 100%);
}

.partners__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px,5.6vw,76px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(36px,5vw,64px);
  text-align: center;
  padding: 0 24px;
  text-wrap: balance;
}

.partners__carousel {
  position: relative;
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 clamp(56px,8vw,140px);
}

.partners__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.partners__nav--prev {
  left: clamp(8px,2vw,32px);
}

.partners__nav--next {
  right: clamp(8px,2vw,32px);
}

.partners__viewport {
  overflow: hidden;
}

.partners__track {
  display: flex;
  gap: 24px;
  transition: transform .6s var(--ease-gate);
}

.partner-card {
  aspect-ratio: 2/1;
  background: #FFFFFF;
  border-radius: 8px;
  padding: clamp(16px,2vw,28px);
  display: flex;
}

.partner-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: brightness(1.06) contrast(1.08);
}

.partners__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}

.partners__dot {
  width: 38px;
  height: 12px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s;
}

/* ---------- Site footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  border-top: 1px solid rgba(250,249,243,0.1);
  color: rgba(250,249,243,0.7);
  padding: 64px 24px 32px;
}

.site-footer__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr));
  gap: 40px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__socials {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.site-footer__social {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(250,249,243,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.site-footer__list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.site-footer__list--text {
  font-size: 14px;
}

.site-footer__list--loose {
  line-height: 1.5;
}

.site-footer__legal-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
}

.site-footer__link {
  color: rgba(250,249,243,0.75);
}

.text-sm {
  font-size: 14px;
}

.site-footer__credit-link {
  color: var(--gold-light);
}

.site-footer__legal-link {
  color: var(--gold-light);
}

.site-footer__bottom {
  max-width: 1240px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(250,249,243,0.1);
  font-size: 13px;
}

.contact-form__success-text--fallback {
  margin-top: 14px;
  font-size: 14px;
}

.contact-form__success-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

/* ---------- Photos ---------- */

.photo-frame,
.photo-strip__item,
.board-card__photo,
.member-card__photo {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.photo-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-img[src=""] {
  display: none;
}

.board-card__photo,
.board-card__photo .photo-img { border-radius: 18px; }
.member-card__photo,
.member-card__photo .photo-img { border-radius: 14px; }
.photo-strip__item,
.photo-strip__item .photo-img { border-radius: 6px; }

/* ---------- Static-site layer: icons, states, responsive switches ---------- */

[hidden] { display: none !important; }

.icon {
  display: inline-block;
  flex: none;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-image: var(--m);
  mask-image: var(--m);
}

.i-arrow-right { --m: url(/img/icons/arrow-right.svg); }
.i-arrow-left { --m: url(/img/icons/arrow-left.svg); }
.i-check { --m: url(/img/icons/check.svg); }
.i-linkedin { --m: url(/img/icons/linkedin.svg); }
.i-graduation-cap { --m: url(/img/icons/graduation-cap.svg); }
.i-briefcase { --m: url(/img/icons/briefcase.svg); }
.i-handshake { --m: url(/img/icons/handshake.svg); }
.i-plus { --m: url(/img/icons/plus.svg); }
.i-x { --m: url(/img/icons/x.svg); }
.i-chevron-left { --m: url(/img/icons/chevron-left.svg); }
.i-chevron-right { --m: url(/img/icons/chevron-right.svg); }
.i-mail { --m: url(/img/icons/mail.svg); }
.i-phone { --m: url(/img/icons/phone.svg); }
.i-map-pin { --m: url(/img/icons/map-pin.svg); }
.i-instagram { --m: url(/img/icons/instagram.svg); }
.i-facebook { --m: url(/img/icons/facebook.svg); }
.i-menu { --m: url(/img/icons/menu.svg); }

.modal__check {
  -webkit-mask: url(/img/icons/check.svg) center / contain no-repeat;
  mask: url(/img/icons/check.svg) center / contain no-repeat;
}

/* Gateway: shown only on the first visit of a session, and only with JavaScript */
.gate { display: none; }
.gate-on .gate { display: block; }
.gate-on, .gate-on body { overflow: hidden; }
.gate-panel { display: block; }

/* Header */
.site-nav__link { color: var(--grey-light); transition: color .2s; }
.site-nav__link:hover, .site-nav__link.is-active { color: var(--ink); }
.site-header__cta:hover { background: var(--ink); color: var(--cream); }
.menu-toggle { display: none; }
.mobile-menu { max-height: calc(100vh - 72px); overflow-y: auto; }

.lang-switch { display: flex; gap: 2px; align-items: center; }
.lang-switch__item { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--grey-light); padding: 6px 7px; border-radius: 6px; }
.lang-switch__item:hover { color: var(--ink); }
.lang-switch__item[aria-current] { color: var(--ink); background: rgba(20,8,14,0.07); }

@media (max-width: 999px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: flex; }
}

@media (min-width: 1000px) {
  .mobile-menu, .process-vertical { display: none !important; }
}

@media (max-width: 999px) {
  .process__scroller { display: none; }
}

/* Hover & focus states */
.btn-pill { transition: background .2s, color .2s; }
.btn-pill:hover { background: var(--cream); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); color: var(--ink); }
.cta-card { display: flex; flex-direction: column; transition: transform .2s; }
.cta-card:hover { transform: translateY(-4px); }
.carousel__plus:hover { transform: scale(1.08); }
.carousel__arrow:hover { background: rgba(250,249,243,0.1); }
.partners__nav:hover { opacity: 1; }
.project-card { transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(20,8,14,0.4); }
.board-card__link, .member-card__link, .contact__item { transition: color .2s; }
.board-card__link:hover, .member-card__link:hover, .contact__item:hover { color: var(--gold-light); }
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,169,0,0.2); }
.contact-form__submit:hover { background: var(--gold-light); }
.site-footer__link:hover, .site-footer__legal-link:hover { color: var(--gold); }
.site-footer__social:hover { background: var(--gold); }
.flip-card:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Layout that used to depend on the window width */
.board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); max-width: var(--maxw); }
@media (max-width: 699px) {
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(var(--cols-m), minmax(0, 1fr)); max-width: var(--maxw-m); }
}

/* Legal pages */
.hero--legal { min-height: 0; padding-bottom: 0; }
.hero__title--legal { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.03em; margin: 0; }
.legal__body { max-width: 780px; line-height: 1.75; color: rgba(250,249,243,0.88); }
.legal__body h2 { font-family: var(--font-display); font-size: 26px; margin: 44px 0 10px; color: var(--cream); }
.legal__body a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.legal__body ul { padding-left: 22px; }

/* Accessibility: skip link */
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .15s; }
.skip-link:focus { top: 12px; }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250; max-width: 720px; margin: 0 auto; display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; background: var(--ink); color: var(--cream); border: 1px solid rgba(250,249,243,0.18); border-radius: 14px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(20,8,14,0.5); font-size: 14px; line-height: 1.55; }
.cookie__text { margin: 0; flex: 1 1 320px; }
.cookie__text a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 10px; }
.cookie__btn { cursor: pointer; font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--gold); background: transparent; color: var(--cream); }
.cookie__btn:hover { background: var(--gold); color: var(--ink); }
.site-footer__legal-link--btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }

.legal__body { background: rgba(20,8,14,0.82); border: 1px solid rgba(250,249,243,0.1); border-radius: 18px; padding: clamp(24px, 4vw, 48px); }
.legal__body > :first-child, .legal__body h2:first-child { margin-top: 0; }

/* Narrow screens: keep the header inside the viewport */
.lang-switch--menu { display: none; justify-content: center; margin-top: 18px; }
.lang-switch--menu .lang-switch__item { font-size: 14px; padding: 8px 12px; }
@media (max-width: 699px) {
  .site-header__inner { padding: 0 16px; gap: 12px; }
  .site-header .site-header__inner > .lang-switch { display: none; }
  .lang-switch--menu { display: flex; }
  .mobile-menu { padding: 12px 16px 24px; }
}
@media (max-width: 380px) {
  .site-header__brand .logo-img--h20 { height: 17px; }
}

.legal__body { overflow-wrap: anywhere; }

/* Mobile / tablet (single-column layout): in "Nos pôles" and "Nos événements", the photo comes after its text */
@media (max-width: 952px) {
  #poles .split .split__text,
  #evenements .split .split__text { order: 1; }
  #poles .split .photo-frame,
  #evenements .split .photo-frame { order: 2; }
}

/* Policy pages: tables and long documents */
.legal__body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal__body td, .legal__body th { border: 1px solid rgba(255,255,255,.18); padding: 10px 12px; vertical-align: top; text-align: left; }
.legal__body td p { margin: 0 0 8px; }
.legal__body h3 { margin-top: 24px; }
@media (max-width: 699px) { .legal__body table, .legal__body tbody, .legal__body tr, .legal__body td { display: block; width: 100%; } }
