/* ══════════════════════════════════════════════════════════
   MJA — MAGISTÈRE JURISTE D'AFFAIRES · DJCE
   Global Design System
   Fonts: Cormorant Garamond (serif) · DM Sans (sans)
   Palette: #111 / #d90833 / #f5f4f2 / #e8e6e1
══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --black:   #111111;
  --white:   #ffffff;
  --red:     #d90833;
  --gray:    #777777;
  --light:   #f5f4f2;
  --border:  #e0ded9;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
  --nav-h:   64px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--black); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ══════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow .3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

/* Text logo fallback */
.nav-logo-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--black);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--gray);
  padding: 8px 12px;
  display: block;
  transition: color .2s;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--black); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 300;
  color: var(--gray);
  padding: 9px 20px;
  transition: color .15s, background .15s;
}

.dropdown li a:hover {
  color: var(--black);
  background: var(--light);
}

/* Nested dropdown */
.has-dropdown .has-dropdown { position: relative; }
.has-dropdown .has-dropdown .dropdown {
  left: 100%;
  top: -8px;
}

.nav-cta {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 9px 20px;
  border: 1px solid var(--black);
  color: var(--black);
  flex-shrink: 0;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--black);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform .3s, opacity .3s;
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--black);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.55);
}

.hero-img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2420 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 60%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 40px 80px;
  max-width: 1280px;
  margin: 0 auto;
  left: 0; right: 0;
}

.hero-label {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
  font-weight: 300;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: rgba(255,255,255,.75);
}

.hero-sub {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  margin-bottom: 32px;
  letter-spacing: .03em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 13px 28px;
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  display: inline-block;
  transition: background .2s, border-color .2s, transform .15s;
}

.btn-primary:hover {
  background: #b8062b;
  border-color: #b8062b;
}

.btn-ghost {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 13px 28px;
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  display: inline-block;
  transition: border-color .2s, background .2s;
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

/* ══════════════════════════════════════════════════════════
   SECTIONS — SHARED LAYOUT
══════════════════════════════════════════════════════════ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

.section-label {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  font-weight: 400;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--black);
  letter-spacing: -.01em;
  margin-bottom: 16px;
}

.section-rule {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin-bottom: 32px;
}

.section-rule.red { background: var(--red); }

.body-text {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.75;
  color: #333;
  max-width: 700px;
}

/* ── TWO-COLUMN LAYOUTS ──────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.two-col-wide {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
}

/* ── CONTENT BLOCK ───────────────────────────────────────── */
.content-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px;
}

.content-block h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════════════
   HIGHLIGHTS GRID
══════════════════════════════════════════════════════════ */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.highlight-item {
  background: var(--white);
  padding: 36px 32px;
  position: relative;
  transition: background .2s;
}

.highlight-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.highlight-item:hover { background: var(--light); }
.highlight-item:hover::before { transform: scaleX(1); }

.highlight-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 10px;
}

.highlight-text {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray);
}

/* ══════════════════════════════════════════════════════════
   NEWS GRID
══════════════════════════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 32px;
}

.news-card {
  background: var(--white);
  padding: 32px 28px;
  position: relative;
  transition: background .2s;
}

.news-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 28px; right: 28px;
  height: 1px;
  background: var(--border);
}

.news-card:hover { background: var(--light); }

.news-date {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  font-weight: 400;
}

.news-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--black);
  margin-bottom: 12px;
}

.news-excerpt {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--gray);
  margin-bottom: 20px;
}

.news-link {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}

.news-link:hover { gap: 10px; }

/* ══════════════════════════════════════════════════════════
   PARTNERS
══════════════════════════════════════════════════════════ */
.partners-section {
  background: var(--black);
  padding: 56px 0;
}

.partners-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.partners-label {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 28px;
  font-weight: 300;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.partner-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,.45);
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.1);
  transition: color .2s, border-color .2s;
  cursor: default;
}

.partner-name:hover {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.3);
}

/* ══════════════════════════════════════════════════════════
   DIRECTOR SECTION
══════════════════════════════════════════════════════════ */
.director-section {
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}

.director-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.director-quote {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: var(--black);
  border: none;
  padding: 0;
  position: relative;
}

.director-quote::before {
  content: '\201C';
  font-size: 5rem;
  line-height: 0;
  position: absolute;
  top: 28px;
  left: -28px;
  color: var(--red);
  opacity: .3;
  font-style: normal;
}

.director-attr {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 300;
  color: var(--gray);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-style: normal;
  line-height: 1.6;
}

.director-attr strong {
  display: block;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 3px;
  font-size: .88rem;
}

/* ── STATS ───────────────────────────────────────────────── */
.admission-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admission-stat-mini {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px;
}

.admission-stat-mini .num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}

.admission-stat-mini .label {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 300;
  color: var(--gray);
  letter-spacing: .04em;
}

/* ══════════════════════════════════════════════════════════
   ADMISSION PAGE
══════════════════════════════════════════════════════════ */
.admission-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── STEPS ───────────────────────────────────────────────── */
.steps {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--black);
}

.step-content p, .step-content li {
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 300;
  line-height: 1.7;
  color: #444;
}

.date-tag {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--red);
  border: 1px solid rgba(217,8,51,.25);
  background: rgba(217,8,51,.04);
  padding: 4px 10px;
}

/* ── TAGS ────────────────────────────────────────────────── */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .04em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  color: var(--gray);
  background: var(--light);
}

/* ── DIPLOMAS LIST ───────────────────────────────────────── */
.diplomas-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
}

.diplomas-list li {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.diplomas-list li strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--black);
}

/* ══════════════════════════════════════════════════════════
   CONTACT BAR
══════════════════════════════════════════════════════════ */
.contact-bar {
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.contact-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-bar h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 8px;
  color: var(--black);
}

.contact-bar p {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.6;
}

.contact-bar-label {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  font-weight: 500;
}

.contact-detail {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 300;
  line-height: 1.7;
  color: #444;
}

.contact-detail a {
  color: var(--red);
  font-weight: 400;
}

.contact-detail a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer {
  background: var(--black);
  padding: 28px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 300;
  color: rgba(255,255,255,.35);
  letter-spacing: .03em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 300;
  color: rgba(255,255,255,.4);
  letter-spacing: .04em;
  transition: color .2s;
}

.footer-links a:hover {
  color: rgba(255,255,255,.8);
}

/* ══════════════════════════════════════════════════════════
   SCROLL-REVEAL ANIMATIONS
══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

/* ══════════════════════════════════════════════════════════
   PAGE BANNERS (inner pages)
══════════════════════════════════════════════════════════ */
.page-banner {
  background: var(--black);
  padding: 140px 40px 72px;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: attr(data-title);
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 300;
  color: rgba(255,255,255,.035);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.page-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-banner-eyebrow {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.page-banner h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.page-banner h1 em {
  font-style: italic;
  color: rgba(255,255,255,.6);
}

.page-banner-rule {
  width: 48px;
  height: 2px;
  background: var(--red);
  margin-top: 28px;
}

/* ══════════════════════════════════════════════════════════
   PROFILE CARDS (Promotions)
══════════════════════════════════════════════════════════ */
.promo-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px 96px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.profile-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  background: var(--light);
}

.profile-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94), filter .4s ease;
  filter: grayscale(15%);
}

.profile-card:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,5,5,.92) 0%, rgba(10,5,5,.55) 45%, transparent 75%);
  opacity: 0;
  transition: opacity .35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 16px;
}

.profile-card:hover .card-overlay { opacity: 1; }

.card-name {
  font-family: var(--serif);
  font-size: .88rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 10px;
  transform: translateY(8px);
  transition: transform .35s ease .05s;
}

.profile-card:hover .card-name { transform: translateY(0); }

.card-actions {
  display: flex;
  gap: 6px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .35s ease .1s, opacity .35s ease .1s;
}

.profile-card:hover .card-actions { transform: translateY(0); opacity: 1; }

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s;
  cursor: pointer;
  white-space: nowrap;
}

.card-btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.7); }
.card-btn.linkedin-btn:hover { background: rgba(10,102,194,.7); border-color: rgba(10,102,194,.9); }

/* Img placeholder for profile cards */
.img-placeholder {
  width: 100%; height: 100%;
  background: #e8e5e0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
}

.img-placeholder-icon {
  width: 40px; height: 40px;
  opacity: .25;
}

/* ══════════════════════════════════════════════════════════
   BUREAU — ROLE CARDS
══════════════════════════════════════════════════════════ */
.bureau-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 48px;
}

.bureau-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .25s;
}

.bureau-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.07); }

.bureau-card-photo {
  aspect-ratio: 1 / 1;
  background: var(--light);
  overflow: hidden;
  position: relative;
}

.bureau-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(10%);
  transition: filter .3s;
}

.bureau-card:hover .bureau-card-photo img { filter: grayscale(0%); }

.bureau-card-body {
  padding: 20px;
}

.bureau-card-role {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 6px;
}

.bureau-card-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 8px;
}

.bureau-card-links {
  display: flex;
  gap: 8px;
}

.bureau-card-link {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 400;
  transition: color .2s;
}

.bureau-card-link:hover { color: var(--red); }

/* ══════════════════════════════════════════════════════════
   ACCORDION (FAQ)
══════════════════════════════════════════════════════════ */
.accordion {
  max-width: 800px;
  margin-top: 40px;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:first-child {
  border-top: 1px solid var(--border);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-header:hover .accordion-question { color: var(--red); }

.accordion-question {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--black);
  line-height: 1.4;
  transition: color .2s;
}

.accordion-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--black);
  transition: transform .3s ease, opacity .3s ease;
}

.accordion-icon::before {
  width: 14px; height: 1.5px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 1.5px; height: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-item.open .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}

.accordion-item.open .accordion-body {
  max-height: 600px;
}

.accordion-content {
  padding: 0 0 24px;
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 300;
  line-height: 1.75;
  color: #444;
}

.accordion-content p + p { margin-top: .8em; }
.accordion-content a { color: var(--red); }
.accordion-content a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   FORM STYLES
══════════════════════════════════════════════════════════ */
.form-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 40px 96px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.form-grid .full-width { grid-column: 1 / -1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--black);
}

.form-label .req { color: var(--red); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 300;
  color: var(--black);
  background: var(--light);
  border: 1px solid var(--border);
  padding: 12px 16px;
  outline: none;
  appearance: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--black);
  background: var(--white);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23777' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-hint {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 300;
  color: var(--gray);
  margin-top: 3px;
}

.form-submit {
  margin-top: 28px;
}

.form-note {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 300;
  color: var(--gray);
  margin-top: 14px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   ENSEIGNEMENTS — TABLE OVERRIDES
══════════════════════════════════════════════════════════ */
.enseignements-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px;
}

.year-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
  gap: 0;
}

.year-tab {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--gray);
  padding: 16px 28px;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}

.year-tab:hover { color: var(--black); }
.year-tab.active { color: var(--black); border-bottom-color: var(--red); font-weight: 500; }

.year-panel { display: none; }
.year-panel.active { display: block; }

.cours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: .84rem;
}

.cours-table th {
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gray);
  text-align: left;
  padding: 12px 16px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.cours-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-weight: 300;
  line-height: 1.65;
  color: #333;
}

.cours-table tr:hover td { background: var(--light); }

.cours-table td:first-child { font-weight: 500; color: var(--black); }

.cours-semester-label {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin: 36px 0 12px;
}

/* ══════════════════════════════════════════════════════════
   ANCIENNES PROMOTIONS — TIMELINE
══════════════════════════════════════════════════════════ */
.promos-index {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 40px 96px;
}

.promo-year-group {
  margin-bottom: 4px;
}

.promo-year-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--black);
  transition: background .2s, border-color .2s;
  position: relative;
}

.promo-year-link::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform .25s ease;
}

.promo-year-link:hover { background: var(--light); border-color: #ccc; }
.promo-year-link:hover::before { transform: scaleY(1); }

.promo-year-link .year { font-size: 1.3rem; }
.promo-year-link .arrow { color: var(--red); font-size: .9rem; }

/* ══════════════════════════════════════════════════════════
   MÉMOIRES
══════════════════════════════════════════════════════════ */
.memoires-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
}

.memoire-item {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.memoire-year {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  flex-shrink: 0;
  width: 40px;
}

.memoire-body {}

.memoire-title {
  font-family: var(--serif);
  font-size: .98rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 4px;
  transition: color .2s;
}

.memoire-item:hover .memoire-title { color: var(--red); }

.memoire-author {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 300;
  color: var(--gray);
}

/* ══════════════════════════════════════════════════════════
   PARTENARIAT ESSEC
══════════════════════════════════════════════════════════ */
.essec-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px;
}

/* ══════════════════════════════════════════════════════════
   DEVENIR PARTENAIRE
══════════════════════════════════════════════════════════ */
.partner-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}

.benefit-item {
  background: var(--white);
  padding: 32px 28px;
}

.benefit-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--red);
  opacity: .35;
  line-height: 1;
  margin-bottom: 14px;
}

.benefit-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 10px;
}

.benefit-text {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray);
}

/* ══════════════════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════════════════ */
.contact-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 96px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:first-child {
  padding-top: 0;
}

.contact-info-label {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 8px;
}

.contact-info-value {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.7;
  color: #333;
}

.contact-info-value a {
  color: var(--red);
}

.contact-info-value a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   MENTIONS LÉGALES
══════════════════════════════════════════════════════════ */
.legal-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 40px 96px;
}

.legal-section h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--black);
  margin: 36px 0 12px;
}

.legal-section h2:first-child { margin-top: 0; }

.legal-section p {
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 300;
  line-height: 1.75;
  color: #444;
  margin-bottom: .8em;
}

.legal-section a { color: var(--red); }
.legal-section a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   DÉBOUCHÉS — TESTIMONIAL
══════════════════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}

.testimonial-card {
  background: var(--white);
  padding: 36px 32px;
}

.testimonial-card blockquote {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: #333;
  border-left: 2px solid var(--red);
  padding-left: 20px;
  margin-bottom: 20px;
}

.testimonial-card cite {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 300;
  color: var(--gray);
  font-style: normal;
}

.testimonial-card cite strong {
  display: block;
  font-weight: 500;
  color: var(--black);
  font-size: .82rem;
  margin-bottom: 2px;
}

/* ══════════════════════════════════════════════════════════
   DESTINATIONS / STATS STRIP
══════════════════════════════════════════════════════════ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}

.stat-item {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 300;
  color: var(--gray);
  letter-spacing: .04em;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════
   TOAST (promo pages)
══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .06em;
  padding: 10px 20px;
  border-left: 2px solid var(--red);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 1000;
  white-space: nowrap;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .promo-grid { grid-template-columns: repeat(4, 1fr); }
  .bureau-grid { grid-template-columns: repeat(3, 1fr); }
  .highlights { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .two-col, .two-col-wide { grid-template-columns: 1fr; gap: 40px; }
  .director-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-bar-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .partner-benefits { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .admission-intro { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 800px) {
  .promo-grid { grid-template-columns: repeat(3, 1fr); }
  .bureau-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: var(--white); padding: 32px 24px; overflow-y: auto; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links > li > a { font-size: .82rem; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .dropdown { position: static; border: none; border-top: none; background: var(--light); padding: 4px 16px; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { display: block; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-inner { padding: 0 24px; }

  .hero-content { padding: 0 24px 60px; }
  .section { padding: 56px 24px; }
  .content-block { padding: 48px 24px; }
  .page-banner { padding: 120px 24px 56px; }
  .enseignements-block { padding: 48px 24px; }
  .promo-section { padding: 48px 16px 64px; }
  .form-section { padding: 48px 24px 64px; }
  .promos-index { padding: 48px 24px 64px; }
  .contact-layout { padding: 48px 24px 64px; }
  .legal-section { padding: 48px 24px 64px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }

  .promo-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .bureau-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ── Mobile dropdowns ── */
@media (max-width: 900px) {
  .nav-links .dropdown {
    display: none;
    position: static !important;
    background: var(--light, #f6f4f1);
    border-top: 1px solid var(--border, #e2e0db);
    padding: 4px 0;
    box-shadow: none;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    visibility: visible !important;
  }
  .has-dropdown.open > .dropdown { display: block !important; }
}

/* ── Hamburger animation ── */
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
