/* ==========================================================================
   PROFILS PROFESSEURS — EMI-LAB
   Esthétique académique internationale (réf. furong-huang.com)
   Colonne unique · serif éditorial · liens bleus · zéro animation
   ========================================================================== */

/* Palette locale — bleu institutionnel, gris froids */
.emi-prof {
  --pf-ink:    #252525;   /* texte principal (ardoise FSJES) */
  --pf-soft:   #3f4654;   /* texte secondaire     */
  --pf-mute:   #6b7280;   /* métadonnées, labels  */
  --pf-line:   #e2e8f0;   /* filets (slate-200)   */
  --pf-link:   #0b6e87;   /* teal — liens         */
  --pf-link-h: #007ea4;   /* teal survol          */

  --pf-serif: 'Inter', system-ui, sans-serif;   /* serif retiré → 100% Inter */
  --pf-sans:  'Inter', system-ui, sans-serif;

  font-family: var(--pf-serif);
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) 100px;
  color: var(--pf-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.emi-prof * { box-sizing: border-box; }

/* Défilement fluide vers les ancres de la nav */
html { scroll-behavior: smooth; }

/* Les sections visées par la nav atterrissent sous l'en-tête éventuel du site */
.emi-prof [id] { scroll-margin-top: 96px; }

/* ── ANIMATION — révélation douce au scroll (réutilise reveal.js) ──────────── */
/* Le bloc est visible par défaut (no-JS friendly) ; n'agit que si js-reveal-ready */
.js-reveal-ready .emi-prof [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-reveal-ready .emi-prof [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .emi-prof [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ── EN-TÊTE ──────────────────────────────────────────────────────────────── */

.emi-prof-header {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 4vw, 40px);
}

.emi-prof-photo-wrap { line-height: 0; }

.emi-prof-photo {
  width: 100%;
  display: block;
  border: 1px solid var(--pf-line);
}

.emi-prof-intro { min-width: 0; }

.emi-prof-name {
  font-family: var(--pf-serif) !important;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem) !important;
  font-weight: 700 !important;
  color: var(--pf-ink) !important;
  margin: -4px 0 10px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.01em !important;
}

.emi-prof-grade {
  font-family: var(--pf-serif) !important;
  font-size: 1.2rem !important;
  color: var(--pf-ink) !important;
  margin: 0 0 10px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
}

.emi-prof-inst {
  font-family: var(--pf-sans) !important;
  font-size: 0.92rem !important;
  color: var(--pf-soft) !important;
  margin: 0 0 3px !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
}

.emi-prof-inst:last-of-type { margin-bottom: 18px !important; }

/* Liens d'en-tête — texte bleu séparé par des points */
.emi-prof-links {
  font-family: var(--pf-sans) !important;
  font-size: 0.92rem;
  color: var(--pf-mute);
  line-height: 1.9;
}

.emi-prof-link {
  color: var(--pf-link) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

.emi-prof-link:hover { color: var(--pf-link-h) !important; background-size: 100% 1px; }

.emi-prof-links .sep { color: #c6ced8; margin: 0 9px; }

/* ── NAVIGATION DE SECTIONS (ancres) ──────────────────────────────────────── */

.emi-prof-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  font-family: var(--pf-sans) !important;
  padding: 15px 0;
  margin-bottom: 8px;
  border-top: 2px solid var(--pf-link);   /* filet signature bordeaux */
  border-bottom: 1px solid var(--pf-line);
}

.emi-prof-nav a {
  font-size: 0.72rem !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600 !important;
  color: var(--pf-mute) !important;
  text-decoration: none !important;
}

.emi-prof-nav a:hover { color: var(--pf-ink) !important; }

/* ── SECTIONS (colonne unique) ────────────────────────────────────────────── */

.emi-prof-section {
  padding: clamp(34px, 4vw, 52px) 0 0;
}

.emi-prof-sh {
  font-family: var(--pf-sans) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.16em !important;
  color: var(--pf-mute) !important;
  margin: 0 0 20px !important;
  padding-bottom: 0 !important;
  line-height: 1.3 !important;
}

/* Corps de texte — registre éditorial */
.emi-prof-p {
  font-family: var(--pf-serif) !important;
  font-size: 1.13rem !important;
  line-height: 1.7 !important;
  color: var(--pf-soft) !important;
  margin: 0 0 16px !important;
  max-width: 68ch;
}

.emi-prof-p:last-child { margin-bottom: 0 !important; }
.emi-prof-p strong { color: var(--pf-ink); font-weight: 700; }

/* ── RECHERCHE — liste éditoriale numérotée ───────────────────────────────── */

.emi-prof-research {
  list-style: none !important;
  padding: 0 !important;
  margin: 4px 0 0 !important;
  counter-reset: pf-axis;
}

.emi-prof-research li {
  counter-increment: pf-axis;
  position: relative;
  padding: 16px 0 16px 52px !important;
  margin: 0 !important;
  border-top: 1px solid var(--pf-line) !important;
  font-family: var(--pf-serif) !important;
  font-size: 1.13rem !important;
  line-height: 1.55 !important;
  color: var(--pf-ink) !important;
}

.emi-prof-research li::before {
  content: counter(pf-axis, decimal-leading-zero);
  position: absolute;
  left: 0; top: 19px;
  font-family: var(--pf-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--pf-link);   /* numéros en bordeaux */
}

.emi-prof-research li span {
  display: block;
  font-family: var(--pf-sans);
  font-size: 0.92rem;
  color: var(--pf-soft);
  line-height: 1.55;
  margin-top: 4px;
}

/* ── PUBLICATIONS — style bibliographique ─────────────────────────────────── */

.emi-prof-pubs { margin: 0; padding: 0; list-style: none; }

.emi-prof-pub {
  padding: 14px 0;
  border-top: 1px solid var(--pf-line);
  font-family: var(--pf-serif) !important;
  font-size: 1.06rem !important;
  line-height: 1.55 !important;
  color: var(--pf-ink) !important;
  padding-left: 2.4em;
  text-indent: -2.4em;   /* retrait pendant, look citation */
}

.emi-prof-pub .yr { color: var(--pf-mute); font-variant-numeric: tabular-nums; }
.emi-prof-pub em  { color: var(--pf-soft); }
.emi-prof-pub a   { color: var(--pf-link) !important; text-decoration: none !important; }
.emi-prof-pub a:hover { text-decoration: underline !important; }

.emi-prof-note {
  font-family: var(--pf-sans) !important;
  font-size: 0.95rem !important;
  font-style: italic;
  color: var(--pf-mute) !important;
  margin: 0 !important;
  padding-top: 4px;
  line-height: 1.6 !important;
}

/* ── LIGNES DÉFINITION (nominations, enseignement) ────────────────────────── */

.emi-prof-dl { margin: 4px 0 0; padding: 0; }

.emi-prof-row {
  display: grid;
  grid-template-columns: 188px 1fr;
  gap: 4px 28px;
  padding: 15px 0;
  border-top: 1px solid var(--pf-line);
}

.emi-prof-row .k {
  font-family: var(--pf-sans) !important;
  font-size: 0.72rem !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--pf-mute) !important;
  padding-top: 4px;
  line-height: 1.5 !important;
}

.emi-prof-row .v {
  font-family: var(--pf-serif) !important;
  font-size: 1.1rem !important;
  color: var(--pf-ink) !important;
  line-height: 1.5 !important;
  margin: 0;
}

.emi-prof-row .v small {
  display: block;
  font-family: var(--pf-sans);
  font-size: 0.9rem;
  color: var(--pf-soft);
  margin-top: 3px;
  line-height: 1.5;
}

/* ── CONTACT ──────────────────────────────────────────────────────────────── */

.emi-prof-contact {
  font-family: var(--pf-serif) !important;
  font-size: 1.13rem !important;
  line-height: 1.9 !important;
  color: var(--pf-soft) !important;
  margin: 0 !important;
}

.emi-prof-contact a {
  color: var(--pf-link) !important;
  text-decoration: none !important;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

.emi-prof-contact a:hover { color: var(--pf-link-h) !important; background-size: 100% 1px; }

/* ── PIED ─────────────────────────────────────────────────────────────────── */

.emi-prof-foot {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 18px;
  border-top: 1px solid var(--pf-line);
  font-family: var(--pf-sans) !important;
  font-size: 0.8rem !important;
  color: var(--pf-mute) !important;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */

@media (max-width: 680px) {
  .emi-prof-header {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: clamp(32px, 8vw, 52px);
  }
  .emi-prof-photo-wrap { max-width: 150px; }
  .emi-prof-row { grid-template-columns: 1fr; gap: 4px; }
  .emi-prof-row .k { padding-top: 0; }
}

/* ==========================================================================
   OPTIMISATIONS PREMIUM DES PROFILS (teal + orange, sans toucher la structure)
   S'applique à toutes les fiches Pr. ; distinction spécifique au Directeur.
   ========================================================================== */

/* — Photo : carré net, coins arrondis, ombre douce, fin liseré — */
.emi-prof-photo-wrap { position: relative; }
.emi-prof-photo {
  border: none !important;
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(8, 59, 73, 0.14), 0 0 0 1px var(--pf-line);
}

/* — Nom : court filet d'accent orange (signature FSJES) — */
.emi-prof-name { position: relative; }
.emi-prof-name::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin-top: 16px;
  background: var(--clr-gold-700);
  border-radius: var(--radius-full);
}

/* — Grade un cran plus présent — */
.emi-prof-grade { color: var(--pf-ink) !important; font-weight: 500 !important; }

/* — Titres de section : teal + petit tiret pour le rythme de lecture — */
.emi-prof-sh {
  display: flex !important;
  align-items: center;
  gap: 12px;
  color: var(--pf-link) !important;
}
.emi-prof-sh::before {
  content: "";
  flex: 0 0 auto;
  width: 22px; height: 2px;
  background: var(--clr-navy-600);
  border-radius: var(--radius-full);
}

/* — Navigation d'ancres : soulignement orange animé au survol — */
.emi-prof-nav a { position: relative; }
.emi-prof-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--clr-gold-700);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease-out-quart);
}
.emi-prof-nav a:hover::after { transform: scaleX(1); }

/* — Liste recherche : surbrillance douce + numéro orange au survol — */
.emi-prof-research li { transition: background 0.2s ease; }
.emi-prof-research li:hover { background: var(--clr-navy-050); }
.emi-prof-research li:hover::before { color: var(--clr-gold-700) !important; }

/* — Contact : bloc en carte teal pâle (mise en valeur) — */
.emi-prof-contact {
  background: var(--wash-cool);
  border: 1px solid var(--pf-line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px) clamp(22px, 3vw, 30px) !important;
}

/* — Chips de mots-clés dans le héro (mots-clés thématiques) — */
.emi-prof--hero .emi-prof-tags,
.page-id-4224 .emi-prof-tags {
  display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 14px;
  position: relative; z-index: 1;
}
.emi-prof--hero .emi-prof-tag,
.page-id-4224 .emi-prof-tag {
  font-family: var(--pf-sans); font-size: 0.70rem; font-weight: 600;
  color: #fff; background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.26);
  padding: 3px 11px; border-radius: var(--radius-full); letter-spacing: 0.02em;
}

/* — Monogramme initiales (profils sans photo) — */
.emi-prof-photo--initials {
  aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0b6e87 0%, #2b94b3 100%);
  color: #fff; font-family: var(--pf-sans); font-weight: 700;
  font-size: 3.2rem; letter-spacing: 0.04em;
}

/* — Badge de grade/rôle en markup (réutilisable, ex. « PES depuis 2026 ») — */
.emi-prof-badge {
  display: inline-block;
  font-family: var(--pf-sans);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff;
  background: rgba(247, 148, 29, 0.95);
  padding: 5px 13px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

/* — DISTINCTION DIRECTEUR (page 4224 uniquement) : pastille auto « Directeur » — */
.page-id-4224 .emi-prof-intro::before {
  content: "Directeur du laboratoire";
  display: inline-block;
  font-family: var(--pf-sans);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
  background: rgba(247, 148, 29, 0.95);
  padding: 5px 13px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

/* ==========================================================================
   GABARIT « HÉRO » DE PROFIL — réutilisable via la classe .emi-prof--hero
   Directeur (4224) inclus via .page-id-4224 ; autres profils via --hero.
   ========================================================================== */
.page-id-4224 .emi-prof-header,
.emi-prof--hero .emi-prof-header {
  position: relative;
  grid-template-columns: 290px 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  margin-top: clamp(18px, 3vw, 34px);
  padding: clamp(30px, 4vw, 50px) !important;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background-color: #0b6e87 !important;   /* teal plein — garantit la lisibilité du texte blanc */
  background-image:
    linear-gradient(115deg, rgba(6,59,73,0.93) 0%, rgba(11,110,135,0.86) 52%, rgba(0,126,164,0.74) 100%),
    url('/wp-content/uploads/2026/03/research-center-crop.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: var(--shadow-xl);
}
.page-id-4224 .emi-prof-header::after,
.emi-prof--hero .emi-prof-header::after {
  content: ""; position: absolute; top: -120px; right: -90px;
  width: 380px; height: 380px; pointer-events: none;
  background: radial-gradient(circle, rgba(247,148,29,0.20) 0%, transparent 70%);
}
.page-id-4224 .emi-prof-photo-wrap,
.emi-prof--hero .emi-prof-photo-wrap { max-width: 290px; position: relative; z-index: 1; }
.page-id-4224 .emi-prof-photo,
.emi-prof--hero .emi-prof-photo {
  border-radius: var(--radius-xl) !important;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 20px 44px rgba(0,0,0,0.34), 0 0 0 4px rgba(255,255,255,0.92) !important;
}
.page-id-4224 .emi-prof-intro,
.emi-prof--hero .emi-prof-intro { position: relative; z-index: 1; }
.page-id-4224 .emi-prof-name, .page-id-4224 .emi-prof-grade,
.emi-prof--hero .emi-prof-name, .emi-prof--hero .emi-prof-grade { color: #fff !important; }
.page-id-4224 .emi-prof-inst,
.emi-prof--hero .emi-prof-inst { color: rgba(255,255,255,0.86) !important; }
.page-id-4224 .emi-prof-links,
.emi-prof--hero .emi-prof-links { color: rgba(255,255,255,0.70) !important; }
.page-id-4224 .emi-prof-link,
.emi-prof--hero .emi-prof-link { color: #ffd6a6 !important; }
.page-id-4224 .emi-prof-link:hover,
.emi-prof--hero .emi-prof-link:hover { color: #fff !important; }
.page-id-4224 .emi-prof-links .sep,
.emi-prof--hero .emi-prof-links .sep { color: rgba(255,255,255,0.40) !important; }
.page-id-4224 .emi-prof-intro::before {
  color: #fff !important;
  background: rgba(247,148,29,0.95) !important;
}

@media (max-width: 680px) {
  .page-id-4224 .emi-prof-header,
  .emi-prof--hero .emi-prof-header { grid-template-columns: 1fr; }
  .page-id-4224 .emi-prof-photo-wrap,
  .emi-prof--hero .emi-prof-photo-wrap { max-width: 200px; }
}

@media (prefers-reduced-motion: no-preference) {
  .page-id-4224 .emi-prof-header,
  .emi-prof--hero .emi-prof-header { animation: emi-fin-rise 0.8s var(--ease-out-quart) both; }
  .page-id-4224 .emi-prof-photo,
  .emi-prof--hero .emi-prof-photo  { animation: pf-photo-in 0.9s var(--ease-out-quart) both; }
  @keyframes pf-photo-in {
    from { opacity: 0; transform: translateX(-22px) scale(0.96); }
    to   { opacity: 1; transform: none; }
  }
}

/* ── CARTES DE CONTRIBUTIONS SCIENTIFIQUES (cliquables) ────────────────────── */
.emi-prof-pubcards { display: grid; gap: 14px; margin: 6px 0 0; }
.emi-prof-pubcard {
  display: block; text-decoration: none !important;
  background: #fff;
  border: 1px solid var(--pf-line);
  border-left: 3px solid var(--clr-navy-800);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: transform .25s var(--ease-out-quart),
              box-shadow .25s var(--ease-out-quart), border-color .25s ease;
}
.emi-prof-pubcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--clr-gold-700);
}
.emi-prof-pubcard-type {
  display: inline-block; font-family: var(--pf-sans);
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--clr-navy-700); background: var(--clr-navy-050);
  padding: 4px 11px; border-radius: var(--radius-full); margin-bottom: 11px;
}
.emi-prof-pubcard-title {
  font-family: var(--pf-sans) !important; font-size: 1.06rem !important; font-weight: 600 !important;
  color: var(--pf-ink) !important; line-height: 1.4 !important; margin: 0 0 8px !important;
}
.emi-prof-pubcard-meta {
  font-family: var(--pf-sans) !important; font-size: 0.9rem !important;
  color: var(--pf-mute) !important; line-height: 1.55 !important; margin: 0 !important;
}
.emi-prof-pubcard-meta strong { color: var(--pf-soft); font-weight: 600; }
.emi-prof-pubcard-go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 13px;
  font-family: var(--pf-sans); font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--clr-gold-700);
}
.emi-prof-pubcard-go::after { content: "↗"; font-size: 0.9em; }
.emi-prof-pubcard:hover .emi-prof-pubcard-go { color: var(--clr-gold-600); }

/* ==========================================================================
   SECTION MEMBRES — PAGES LISTING (emi-mbr-*)
   Page parent "Membres" et sous-pages : Permanents, Associés, Doctorants
   ========================================================================== */

.emi-mbr { font-family: var(--font-sans); max-width: 1200px; margin: 0 auto; }
.emi-mbr * { box-sizing: border-box; }

/* Hero -------------------------------------------------------------------- */
.emi-mbr-hero {
  background: linear-gradient(135deg, #060f1e 0%, #0b1c38 60%, #0d2242 100%);
  border-left: 4px solid var(--clr-gold-700);
  border-radius: var(--radius-2xl);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-10);
}

.emi-mbr-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(31, 99, 196,0.10) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.emi-mbr-hero-badge {
  display: inline-block;
  background: rgba(31, 99, 196,0.14);
  border: 1px solid rgba(31, 99, 196,0.4);
  color: rgba(31, 99, 196,0.9);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  position: relative; z-index: 1;
}

.emi-mbr-hero-title {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.9rem, 4vw, 2.9rem) !important;
  color: #ffffff !important;
  font-weight: var(--fw-semibold) !important;
  margin: 0 0 var(--space-3) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em !important;
  position: relative; z-index: 1;
}

.emi-mbr-hero-desc {
  font-size: var(--text-base) !important;
  color: rgba(255,255,255,0.62) !important;
  max-width: 600px;
  margin: 0 0 var(--space-8) !important;
  line-height: 1.75 !important;
  position: relative; z-index: 1;
}

.emi-mbr-hero-meta {
  display: flex;
  gap: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  flex-wrap: wrap;
  position: relative; z-index: 1;
}

.emi-mbr-hero-stat { display: flex; flex-direction: column; gap: 2px; }
.emi-mbr-hero-stat-n {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--clr-gold-700);
  font-weight: var(--fw-semibold);
  line-height: 1;
}
.emi-mbr-hero-stat-l {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: var(--fw-medium);
}

/* Grille membres ---------------------------------------------------------- */
.emi-mbr-section-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.emi-mbr-section-title {
  font-family: var(--font-serif) !important;
  font-size: var(--text-2xl) !important;
  color: var(--clr-navy-800) !important;
  font-weight: var(--fw-semibold) !important;
  margin: 0 !important;
  white-space: nowrap;
}

.emi-mbr-section-rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--clr-gold-700) 0%, transparent 100%);
}

.emi-mbr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-14);
}

@media (max-width: 980px) { .emi-mbr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .emi-mbr-grid { grid-template-columns: 1fr; } }

/* Carte membre ------------------------------------------------------------ */
.emi-mbr-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-stone);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.4s cubic-bezier(0.22,1,0.36,1),
    border-color 0.3s ease;
}

.emi-mbr-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(6,15,30,0.14), 0 4px 12px rgba(6,15,30,0.08);
  border-color: var(--clr-gold-700);
}

.emi-mbr-card-photo-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--clr-navy-700), var(--clr-navy-500));
}

.emi-mbr-card-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

.emi-mbr-card:hover .emi-mbr-card-photo { transform: scale(1.05); }

.emi-mbr-card-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(6,15,30,0.55) 100%);
  transition: opacity 0.4s ease;
}

/* Initiales si pas de photo */
.emi-mbr-card-initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.7);
}

/* Badge rôle spécial (ex : Directeur) affiché en permanence */
.emi-mbr-card-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--clr-gold-700);
  color: var(--clr-navy-900);
  font-size: 9px;
  font-weight: var(--fw-bold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  z-index: 2;
  pointer-events: none;
}

/* Badge "Voir le profil" au hover */
.emi-mbr-card-cta {
  position: absolute;
  bottom: var(--space-4); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--clr-gold-700);
  color: var(--clr-navy-900) !important;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  text-decoration: none !important;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1);
  z-index: 2;
}

.emi-mbr-card:hover .emi-mbr-card-cta {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.emi-mbr-card-body {
  padding: var(--space-5) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  border-top: 1px solid var(--clr-linen);
}

.emi-mbr-card-role {
  font-size: 10px !important;
  color: var(--clr-gold-700) !important;
  font-weight: var(--fw-bold) !important;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin: 0 !important;
}

.emi-mbr-card-name {
  font-family: var(--font-serif) !important;
  font-size: var(--text-lg) !important;
  color: var(--clr-navy-800) !important;
  font-weight: var(--fw-semibold) !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em;
}

/* Carte sans lien (lien absent) — désactive la CTA */
.emi-mbr-card--no-link .emi-mbr-card-cta { display: none; }

/* État vide (Associés / Doctorants) --------------------------------------- */
.emi-mbr-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 8vw, 96px) var(--space-8);
  border: 2px dashed var(--clr-stone);
  border-radius: var(--radius-2xl);
  background: linear-gradient(160deg, var(--clr-cream) 0%, var(--clr-white) 100%);
}

.emi-mbr-empty-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--clr-navy-050), var(--clr-cream));
  border: 2px solid var(--clr-stone);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-6);
}

.emi-mbr-empty-title {
  font-family: var(--font-serif) !important;
  font-size: var(--text-xl) !important;
  color: var(--clr-navy-800) !important;
  font-weight: var(--fw-semibold) !important;
  margin: 0 0 var(--space-3) !important;
}

.emi-mbr-empty-desc {
  font-size: var(--text-sm) !important;
  color: var(--clr-ink-muted) !important;
  max-width: 480px;
  line-height: 1.75 !important;
  margin: 0 0 var(--space-6) !important;
}

.emi-mbr-empty-badge {
  display: inline-block;
  background: var(--clr-navy-050);
  border: 1px solid var(--clr-navy-100);
  color: var(--clr-navy-700) !important;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  text-decoration: none !important;
}

/* Responsive hero --------------------------------------------------------- */
@media (max-width: 700px) {
  .emi-mbr-hero { padding: var(--space-8) var(--space-5); border-radius: var(--radius-xl); }
  .emi-mbr-hero-title { font-size: 1.8rem !important; }
  .emi-mbr-hero-meta { gap: var(--space-4); }
}
