/*
Theme Name: Pr. Said ZOUHAIR — Marrakech Académique
Theme URI: https://professeurzouhairsaid.com
Author: Pr. Said ZOUHAIR — FMPM · Université Cadi Ayyad
Description: Thème académique marocain élégant. Palette Rouge Marrakech, Vert Palmier, Crème, Or discret. Scientifique, humain, institutionnel.
Version: 4.2.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: zouhair-theme
Tags: academic, medical, morocco, elegant, responsive, light
*/

/* ═══════════════════════════════════════════════
/* ═══════════════════════════════════════════════
   DESIGN TOKENS — COULEURS HUMAINES & MINÉRALES
   Inspirées des pigments naturels nobles : argile de Marrakech,
   reliures en cuir, feuillage d'olivier, encre au carbone,
   pierre calcaire et dorure à la feuille d'ambre.
   (Zéro ton synthétique néon / AI-slop)
═══════════════════════════════════════════════ */
:root {
  /* ── Rouge Maroc Hex #C1272D (RVB : 193, 39, 45) ── */
  --rouge:         #C1272D;   /* Rouge Maroc officiel */
  --rouge-fonce:   #8E1B20;   /* Rouge Maroc profond */
  --rouge-clair:   #D63B41;   /* Rouge Maroc lumineux */
  --rouge-pale:    #FDF5F5;   /* Voile doux */
  --rouge-border:  rgba(193, 39, 45, 0.14);

  /* ── Vert Botanique, Olivier & Cyprès de l'Atlas ── */
  --vert:          #1B4F3A;   /* Feuille d'olivier & cyprès noble */
  --vert-fonce:    #123627;   /* Vert canopée profond */
  --vert-clair:    #2A7254;   /* Sauge médicinale */
  --vert-pale:     #EFF5F1;   /* Voile de menthe douce */
  --vert-border:   rgba(27, 79, 58, 0.14);

  /* ── Or d'Artisan & Feuille d'Ambre ── */
  --or:            #B38542;   /* Or antique minéral (chaleureux, non criard) */
  --or-clair:      #CCA258;   /* Reflet ambré patiné */
  --or-fonce:      #8D6429;   /* Bronze ancien */
  --or-pale:       #FAF6EC;   /* Lait ambré doux */
  --or-border:     rgba(179, 133, 66, 0.22);

  /* ── Fonds Organiques & Matières Naturelles ── */
  --creme:         #FAF8F4;   /* Parchemin vélin / Albâtre chaud */
  --beige:         #F2ECE2;   /* Pierre calcaire chaude */
  --beige-fonce:   #DFD7C7;   /* Sable d'oued compacté */
  --blanc:         #FFFFFF;   /* Blanc pur (réservé aux cartes) */

  /* ── Encres Humaines au Carbone (Zéro noir 100% numérique #000) ── */
  --noir:          #1A1715;   /* Encre de chine au carbone naturel */
  --noir-doux:     #2D2825;   /* Encre d'écriture séchée */
  --gris-moyen:    #57514D;   /* Gris pierre chaude */
  --gris-clair:    #827A73;   /* Cendre fine chaude */
  --gris-fin:      #D8D0C3;   /* Trait de plume fin */

  /* ── Sémantique ── */
  --bg:           var(--creme);
  --bg-alt:       var(--blanc);
  --bg-section:   var(--beige);
  --text:         var(--noir);
  --text-doux:    var(--gris-moyen);
  --text-fin:     var(--gris-clair);
  --border:       var(--beige-fonce);
  --border-fin:   var(--gris-fin);

  /* ── Typographies (Roboto pour FR & ANG / Tajawal pour AR) ── */
  --font-titre:   'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-corps:   'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-ui:      'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* ── Espacement ── */
  --s1: 0.25rem;  --s2: 0.5rem;   --s3: 0.75rem;
  --s4: 1rem;     --s5: 1.25rem;  --s6: 1.5rem;
  --s8: 2rem;     --s10: 2.5rem;  --s12: 3rem;
  --s16: 4rem;    --s20: 5rem;    --s24: 6rem;

  /* ── Courbes & transitions (ui-skills / Emil Kowalski) ── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-douce:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans-fast:  150ms cubic-bezier(0.16, 1, 0.3, 1);
  --trans-base:  220ms cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow:  350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Rayons ── */
  --r-xs: 4px;   --r-sm: 8px;   --r-md: 12px;
  --r-lg: 18px;  --r-xl: 26px;  --r-full: 9999px;

  /* ── Ombres stratifiées haute précision (anti-muddy) ── */
  --ombre-xs: 0 1px 2px rgba(26, 23, 21, 0.04);
  --ombre-sm: 0 2px 6px -1px rgba(26, 23, 21, 0.05), 0 1px 3px rgba(26, 23, 21, 0.03);
  --ombre-md: 0 8px 24px -4px rgba(26, 23, 21, 0.07), 0 2px 6px -1px rgba(26, 23, 21, 0.04);
  --ombre-lg: 0 16px 36px -6px rgba(26, 23, 21, 0.09), 0 4px 12px -2px rgba(26, 23, 21, 0.04);
  --ombre-xl: 0 24px 52px -10px rgba(26, 23, 21, 0.12), 0 8px 20px -3px rgba(26, 23, 21, 0.05);
  --ombre-rouge: 0 8px 26px -6px rgba(193, 39, 45, 0.28);
  --ombre-vert:  0 8px 26px -6px rgba(27, 79, 58, 0.24);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-corps);
  font-size: 1rem; line-height: 1.8;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════
   TYPOGRAPHIE
═══════════════════════════════════════════════ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-titre);
  font-weight: 700;
  line-height: 1.2;
  color: var(--noir);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; color: var(--text); }
p:last-child { margin-bottom: 0; }

.etiquette {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or);
  display: block;
  margin-bottom: var(--s3);
}

.filet-rouge {
  display: block;
  width: 40px; height: 2.5px;
  background: var(--rouge);
  border-radius: 2px;
  margin-bottom: var(--s5);
}
.filet-vert {
  display: block;
  width: 40px; height: 2.5px;
  background: var(--vert);
  border-radius: 2px;
  margin-bottom: var(--s5);
}
.filet-or {
  display: block;
  width: 40px; height: 2px;
  background: var(--or);
  border-radius: 2px;
  margin-bottom: var(--s5);
}

/* ═══════════════════════════════════════════════
   MISE EN PAGE
═══════════════════════════════════════════════ */
.container    { max-width: 1140px; margin: 0 auto; padding: 0 var(--s8); width: 100%; }
.container-sm { max-width: 840px;  margin: 0 auto; padding: 0 var(--s8); width: 100%; }
.container-xs { max-width: 660px;  margin: 0 auto; padding: 0 var(--s8); width: 100%; }

section { padding: var(--s24) 0; position: relative; }

.en-tete-section { margin-bottom: var(--s12); }
.en-tete-section.centre { text-align: center; }
.en-tete-section.centre .filet-rouge,
.en-tete-section.centre .filet-vert,
.en-tete-section.centre .filet-or { margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════
   BOUTONS & INTERACTIONS (Emil Kowalski principles)
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-ui);
  font-size: 0.88rem; font-weight: 700;
  padding: 0.75rem 1.65rem;
  border-radius: var(--r-sm);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
  letter-spacing: 0.015em;
  will-change: transform;
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-rouge {
  background: var(--rouge);
  color: var(--blanc);
  box-shadow: var(--ombre-rouge);
  border: 1px solid rgba(255,255,255,0.15);
}
@media (hover: hover) and (pointer: fine) {
  .btn-rouge:hover {
    background: var(--rouge-fonce);
    box-shadow: 0 10px 30px -4px rgba(139, 30, 30, 0.36);
    transform: translateY(-2px);
  }
}

.btn-vert {
  background: var(--vert);
  color: var(--blanc);
  box-shadow: var(--ombre-vert);
  border: 1px solid rgba(255,255,255,0.15);
}
@media (hover: hover) and (pointer: fine) {
  .btn-vert:hover {
    background: var(--vert-fonce);
    box-shadow: 0 10px 30px -4px rgba(30, 94, 67, 0.32);
    transform: translateY(-2px);
  }
}

.btn-contour {
  background: #FFFFFF;
  color: var(--noir);
  border: 1.5px solid var(--border);
  box-shadow: var(--ombre-xs);
}
@media (hover: hover) and (pointer: fine) {
  .btn-contour:hover {
    border-color: var(--rouge);
    color: var(--rouge);
    background: var(--rouge-pale);
    transform: translateY(-2px);
    box-shadow: var(--ombre-sm);
  }
}

.btn-blanc {
  background: var(--blanc);
  color: var(--rouge);
  border: 1.5px solid rgba(255,255,255,0.4);
  box-shadow: var(--ombre-sm);
}
@media (hover: hover) and (pointer: fine) {
  .btn-blanc:hover { background: var(--creme); transform: translateY(-2px); box-shadow: var(--ombre-md); }
}

/* ═══════════════════════════════════════════════
   HEADER — ROUGE MARRAKECH FROSTED GLASS
═══════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(139, 30, 30, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(212, 167, 106, 0.45);
  transition: box-shadow 240ms var(--ease-out), background-color 240ms ease;
}
.site-header.defilé {
  background: rgba(110, 20, 20, 0.98);
  box-shadow: 0 10px 30px -5px rgba(24, 22, 21, 0.2);
}

.header-interieur {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 72px; gap: var(--s6);
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: var(--s4); flex-shrink: 0; }
.logo-insigne {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212, 167, 106, 0.35);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 200ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-logo:hover .logo-insigne {
    background: rgba(255,255,255,0.18);
    border-color: var(--or-clair);
    transform: scale(1.05);
  }
}
.logo-insigne svg { width: 22px; height: 22px; fill: var(--or-clair); }
.logo-nom {
  font-family: var(--font-titre);
  font-size: 1.05rem; font-weight: 700;
  color: var(--blanc); line-height: 1.15;
  letter-spacing: -0.01em;
}
.logo-sous {
  font-family: var(--font-ui);
  font-size: 0.6rem; color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; margin-top: 2px;
}

/* Nav */
.nav-principale {
  display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center;
}
.nav-principale a {
  font-family: var(--font-ui);
  font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.82);
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-full);
  transition: background-color 150ms ease, color 150ms ease, transform 150ms var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  .nav-principale a:hover {
    color: var(--blanc);
    background: rgba(255,255,255,0.12);
  }
}
.nav-principale a.actif,
.nav-principale a[aria-current="page"] {
  color: var(--blanc);
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(212, 167, 106, 0.4);
}

.nav-contact {
  font-family: var(--font-ui);
  font-size: 0.8rem; font-weight: 700;
  background: rgba(212, 167, 106, 0.18);
  color: var(--blanc);
  border: 1.5px solid var(--or-clair);
  padding: 0.48rem 1.25rem;
  border-radius: var(--r-full);
  flex-shrink: 0;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-contact:hover {
    background: var(--or-clair);
    color: var(--noir);
    border-color: var(--or-clair);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(184, 139, 74, 0.3);
  }
}

/* ── Sélecteur de Langue : FR | AR | ANG ── */
.selecteur-lang {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(212, 167, 106, 0.38);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 2px;
  margin-left: 0.75rem;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}
.lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  padding: 4px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.05em;
  transition: all 180ms var(--ease-out);
  text-decoration: none;
  line-height: 1;
}
@media (hover: hover) and (pointer: fine) {
  .lang-opt:hover {
    color: var(--blanc);
    background: rgba(255, 255, 255, 0.14);
  }
}
.lang-opt.actif {
  color: var(--noir);
  background: var(--or-clair);
  font-weight: 800;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* Hamburger */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--r-xs);
  transition: background-color 150ms;
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.9); border-radius: 2px;
  transition: transform 240ms var(--ease-out), opacity 150ms;
}
.menu-toggle.ouvert span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.ouvert span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.ouvert span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   HERO — SOBRE, HUMAIN, MAROCAIN
═══════════════════════════════════════════════ */
.hero {
  min-height: 94vh;
  background: radial-gradient(circle at 85% 30%, rgba(184, 139, 74, 0.08) 0%, transparent 60%), #FFFFFF;
  display: flex; align-items: center;
  padding-top: 76px;
  position: relative; overflow: hidden;
}

/* Motif zellige discret */
.hero-motif {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(45deg, var(--rouge) 0, var(--rouge) 1px, transparent 0, transparent 48px),
    repeating-linear-gradient(-45deg, var(--vert) 0, var(--vert) 1px, transparent 0, transparent 48px);
  background-size: 36px 36px;
}

/* Bande décorative gauche */
.hero-bande {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--rouge) 30%, var(--or) 70%, var(--vert) 100%);
}

.hero-interieur {
  display: grid;
  grid-template-columns: 1.15fr 430px;
  gap: var(--s16); align-items: center;
  position: relative; z-index: 2;
  padding: 4.5rem 0;
}

/* Bandeau institutionnel */
.hero-institution {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(139, 30, 30, 0.06);
  border: 1px solid rgba(139, 30, 30, 0.16);
  border-radius: var(--r-full);
  padding: 6px 16px;
  margin-bottom: 1.35rem;
  animation: apparaitreHaut 650ms var(--ease-out) 0.05s both;
}
.hero-institution svg { width: 14px; height: 14px; fill: var(--rouge); flex-shrink: 0; }
.hero-institution span {
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 700;
  color: var(--rouge); letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-titre {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  color: var(--noir); margin-bottom: 1rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  animation: apparaitreHaut 650ms var(--ease-out) 0.12s both;
}
.hero-titre .nom-accent {
  color: var(--rouge);
  display: block;
  font-weight: 700;
  font-style: normal;
}
.hero-grade {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-ui);
  font-size: 0.85rem; font-weight: 800;
  color: var(--or); letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s5);
  animation: apparaitreHaut 650ms var(--ease-out) 0.18s both;
}
.hero-grade::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1.5px;
  background: var(--or);
}
.hero-bio {
  font-family: var(--font-corps);
  font-size: 1.08rem; color: #4A4440;
  line-height: 1.85; max-width: 530px;
  margin-bottom: var(--s8);
  animation: apparaitreHaut 650ms var(--ease-out) 0.25s both;
}

.hero-actions {
  display: flex; gap: var(--s4); flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: apparaitreHaut 650ms var(--ease-out) 0.32s both;
}

/* Métriques sobres */
.hero-chiffres {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  padding-top: var(--s6);
  border-top: 1px solid var(--beige);
  animation: apparaitreHaut 650ms var(--ease-out) 0.4s both;
}
.chiffre-item {
  padding: 0 var(--s4) 0 0;
  border-right: 1px solid var(--beige);
}
.chiffre-item:last-child { border-right: none; padding-right: 0; }
.chiffre-val {
  font-family: var(--font-titre);
  font-size: 2.3rem; font-weight: 700;
  color: var(--rouge); line-height: 1;
  margin-bottom: 4px;
}
.chiffre-val sup {
  font-size: 1.1rem;
  vertical-align: super;
  color: var(--rouge);
}
.chiffre-val sup .chiffre-plus,
.chiffre-val sup:not(:has(*)) {
  font-size: 1.65rem;
  font-weight: 800;
  display: inline-block;
  line-height: 1;
}
.chiffre-label {
  font-family: var(--font-ui);
  font-size: 0.68rem; font-weight: 700;
  color: var(--gris-clair); letter-spacing: 0.07em;
  text-transform: uppercase; line-height: 1.35;
}

/* Photo hero */
.hero-photo-conteneur {
  position: relative;
  animation: apparaitreGauche 700ms var(--ease-out) 0.2s both;
}
.hero-photo-cadre {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px -10px rgba(24, 22, 21, 0.22), 0 0 0 1px rgba(184, 139, 74, 0.28);
  background: linear-gradient(180deg, #FBF8F2 0%, #EFE8DC 100%);
}
.hero-photo-cadre img {
  width: 100%; height: 530px;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform 450ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hero-photo-cadre:hover img {
    transform: scale(1.03);
  }
}
.hero-photo-vide {
  width: 100%; height: 530px;
  background: linear-gradient(160deg, var(--creme) 0%, var(--beige) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s4);
}
.hero-photo-vide svg { width: 56px; height: 56px; fill: var(--beige-fonce); }
.hero-photo-vide p { font-family: var(--font-ui); font-size: .78rem; color: var(--gris-clair); text-align: center; line-height: 1.5; }

/* Badge flottant sous la photo */
.hero-carte-flottante {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(179, 133, 66, 0.28);
  border-left: 4.5px solid var(--rouge);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--ombre-md);
  animation: douceFlottaison 6s ease-in-out infinite;
  will-change: transform, box-shadow;
}
.carte-flottante-label {
  font-family: var(--font-ui); font-size: 0.65rem;
  font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--or);
  margin-bottom: 3px;
}
.carte-flottante-titre {
  font-family: var(--font-ui); font-size: 0.85rem;
  font-weight: 700; color: var(--noir); line-height: 1.4;
}

/* Coin décoratif */
.coin-or {
  position: absolute;
  top: -8px; right: -8px;
  width: 50px; height: 50px;
  border-top: 2px solid var(--or-clair);
  border-right: 2px solid var(--or-clair);
  border-radius: 0 16px 0 0;
  pointer-events: none;
}
.coin-or.coin-bl {
  top: auto; right: auto;
  bottom: -8px; left: -8px;
  border-top: none; border-right: none;
  border-bottom: 2px solid var(--or-clair);
  border-left: 2px solid var(--or-clair);
  border-radius: 0 0 0 16px;
}

/* ═══════════════════════════════════════════════
   BANDE STATISTIQUES — OBSIDIENNE & OR MAROCAIN
═══════════════════════════════════════════════ */
.bande-stats {
  background: #161413;
  border-top: 1.5px solid rgba(212, 167, 106, 0.45);
  border-bottom: 1.5px solid rgba(212, 167, 106, 0.45);
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.bande-stats-interieur {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat-cellule {
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 300ms ease,
              filter 300ms ease,
              background-color 200ms ease,
              box-shadow 300ms ease;
  will-change: transform, filter, opacity;
  cursor: default;
}
.stat-cellule:last-child { border-right: none; }

@media (hover: hover) and (pointer: fine) {
  /* Au survol de la bande, flouter et estomper les autres statistiques */
  .bande-stats-interieur:hover .stat-cellule:not(:hover) {
    opacity: 0.35;
    filter: blur(2.5px);
    transform: scale(0.97);
  }
  /* Mettre en valeur la statistique survolée */
  .bande-stats-interieur .stat-cellule:hover {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    z-index: 3;
    border-radius: var(--r-sm);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  }
}

.stat-cellule::after {
  content: '';
  position: absolute; bottom: 0; left: 25%; right: 25%;
  height: 2.5px; background: var(--or-clair);
  transform: scaleX(0);
  transition: transform 240ms var(--ease-out);
}
.stat-cellule:hover::after { transform: scaleX(1); }
.stat-nombre {
  font-family: var(--font-titre);
  font-size: 2.4rem; font-weight: 700;
  color: var(--blanc); line-height: 1;
  margin-bottom: var(--s2);
}
.stat-nombre .plus {
  color: var(--blanc);
  font-size: 2.2rem;
  font-weight: 800;
  display: inline-block;
  margin-inline-end: 3px;
  vertical-align: baseline;
  line-height: 1;
}
.stat-libelle {
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}

/* ═══════════════════════════════════════════════
   À PROPOS — ÉDITORIAL & ACADÉMIQUE
═══════════════════════════════════════════════ */
.section-apropos { background: #FFFFFF; }
.grille-apropos { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s16); align-items: center; }

/* Affiliations */
.cartes-affil { display: flex; flex-direction: column; gap: var(--s3); margin-top: 2rem; }
.carte-affil {
  display: flex; align-items: flex-start; gap: var(--s4);
  padding: 1rem 1.25rem;
  background: var(--creme);
  border: 1px solid var(--beige);
  border-radius: var(--r-sm);
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease, border-color 200ms ease, background-color 200ms ease;
  cursor: default;
}
@media (hover: hover) and (pointer: fine) {
  .carte-affil:hover {
    background: #FFFFFF;
    border-left: 3.5px solid var(--rouge);
    box-shadow: var(--ombre-sm);
    transform: translateX(4px);
  }
}
.affil-icone {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--rouge); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.affil-icone.vert { background: var(--vert); }
.affil-icone svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.95); }
.affil-titre { font-family: var(--font-ui); font-size: 0.92rem; font-weight: 700; color: var(--noir); }
.affil-org   { font-family: var(--font-ui); font-size: 0.76rem; color: var(--gris-moyen); margin-top: 2px; line-height: 1.45; }

/* Photo à propos */
.photo-apropos-cadre {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ombre-xl);
  position: relative;
  background: var(--creme);
  border: 1px solid var(--beige);
}
.photo-apropos-cadre img {
  width: 100%; height: 530px; object-fit: cover; object-position: top center;
  display: block; transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .photo-apropos-cadre:hover img { transform: scale(1.025); }
}
.photo-apropos-superp {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24,22,21,0.78) 0%, rgba(24,22,21,0.2) 35%, transparent 60%);
  pointer-events: none;
}
.photo-apropos-legende {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.75rem;
}
.photo-apropos-legende h4 { font-family: var(--font-titre); font-size: 1.15rem; color: #FFFFFF; margin-bottom: 4px; }
.photo-apropos-legende p  { font-family: var(--font-ui); font-size: 0.78rem; color: rgba(255,255,255,0.75); }

/* ═══════════════════════════════════════════════
   DOMAINES DE RECHERCHE — CARTES ÉLÉGANTES
═══════════════════════════════════════════════ */
.section-recherche { background: var(--creme); }
.grille-recherche { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.carte-recherche {
  background: #FFFFFF;
  border: 1px solid var(--beige);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-color 220ms ease;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.carte-recherche::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--vert);
  transform: scaleX(0); transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .carte-recherche:hover {
    box-shadow: 0 12px 32px -6px rgba(24, 22, 21, 0.08);
    transform: translateY(-5px);
    border-color: rgba(30, 94, 67, 0.25);
  }
  .carte-recherche:hover::before { transform: scaleX(1); }
  .carte-recherche:hover .rc-icone { background: var(--vert); }
  .carte-recherche:hover .rc-icone svg { fill: #FFFFFF; }
}
.rc-icone {
  width: 50px; height: 50px;
  background: var(--vert-pale); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: background-color 200ms ease;
}
.rc-icone svg { width: 22px; height: 22px; fill: var(--vert); transition: fill 200ms ease; }
.rc-titre { font-family: var(--font-titre); font-size: 1.15rem; color: var(--noir); margin-bottom: 0.6rem; line-height: 1.25; }
.rc-desc  { font-family: var(--font-corps); font-size: 0.88rem; color: var(--gris-moyen); line-height: 1.65; flex: 1; }
.rc-mots  { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.25rem; }
.rc-mot {
  font-family: var(--font-ui); font-size: 0.65rem; font-weight: 700;
  color: var(--vert); background: var(--vert-pale);
  border-radius: var(--r-full); padding: 3px 10px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   ÉVÉNEMENT MAJEUR : INAUGURATION ROYALE
═══════════════════════════════════════════════ */
.section-event-royal {
  background: var(--creme);
  padding: 0 0 4.5rem;
  position: relative;
}
.event-royal-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FDFBF7 100%);
  border: 1px solid rgba(179, 135, 66, 0.28);
  border-left: 5px solid var(--rouge);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(193, 39, 45, 0.05), 0 3px 12px rgba(0, 0, 0, 0.03);
  padding: 2.75rem 3rem;
  position: relative;
  overflow: hidden;
}
.event-royal-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(179, 135, 66, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.event-royal-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}
.event-royal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--or-pale);
  color: #8C6228;
  border: 1px solid rgba(179, 135, 66, 0.35);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.1rem;
}
.event-royal-badge svg {
  color: var(--or);
  flex-shrink: 0;
}
.event-royal-title {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rouge-fonce);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.event-royal-text {
  font-family: var(--font-corps);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--noir);
  margin-bottom: 1.4rem;
  font-weight: 500;
}
.event-royal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.event-royal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gris-moyen);
  background: var(--creme);
  border: 1px solid var(--beige-fonce);
  padding: 4px 12px;
  border-radius: 6px;
}
.event-royal-tag svg {
  color: var(--rouge);
}
.event-royal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-event-royal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-fonce) 100%);
  color: #ffffff !important;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(193, 39, 45, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-event-royal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(193, 39, 45, 0.35);
  color: #ffffff !important;
}
.event-royal-media {
  position: relative;
}
.event-royal-media-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(179, 135, 66, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  background: #000000;
}
.event-royal-media-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.event-royal-media-frame:hover img {
  transform: scale(1.02);
}
.event-royal-media-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(28, 25, 23, 0.82);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rouge-clair);
  display: inline-block;
  animation: pulseAnimation 2s infinite ease-in-out;
}
@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(214, 59, 65, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(214, 59, 65, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(214, 59, 65, 0); }
}

@media (max-width: 900px) {
  .event-royal-card {
    padding: 2rem 1.75rem;
  }
  .event-royal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .event-royal-title {
    font-size: 1.3rem;
  }
}

/* ═══════════════════════════════════════════════
   PUBLICATIONS — TABLEAU ACADÉMIQUE
═══════════════════════════════════════════════ */
.section-pubs { background: #FFFFFF; }
.barre-filtre {
  display: flex; align-items: center; gap: var(--s3);
  flex-wrap: wrap; margin-bottom: 2rem;
}
.champ-recherche {
  flex: 1; min-width: 240px;
  display: flex; align-items: center; gap: 10px;
  background: var(--creme);
  border: 1.5px solid var(--beige-fonce);
  border-radius: var(--r-sm);
  padding: 0 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.champ-recherche:focus-within {
  border-color: var(--rouge);
  box-shadow: 0 0 0 3px rgba(139, 30, 30, 0.1);
  background: #FFFFFF;
}
.champ-recherche svg { width: 16px; height: 16px; fill: none; stroke: var(--gris-clair); stroke-width: 2; flex-shrink: 0; }
.champ-recherche input {
  width: 100%; padding: 0.7rem 0;
  background: transparent; border: none; outline: none;
  font-family: var(--font-ui); font-size: 0.88rem; color: var(--noir);
}
.pastilles { display: flex; gap: var(--s2); flex-wrap: wrap; }
.pastille {
  font-family: var(--font-ui); font-size: 0.74rem; font-weight: 700;
  color: var(--gris-moyen); background: var(--creme);
  border: 1.5px solid var(--beige-fonce);
  border-radius: var(--r-full);
  padding: 5px 14px; cursor: pointer;
  transition: all 150ms ease;
}
.pastille.actif, .pastille:hover { background: var(--rouge); color: var(--blanc); border-color: var(--rouge); }

.tableau-pubs-enveloppe {
  border: 1px solid var(--beige);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ombre-sm);
  background: #FFFFFF;
}
.tableau-pubs { width: 100%; border-collapse: collapse; }
.tableau-pubs thead { background: var(--rouge); }
.tableau-pubs th {
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #FFFFFF; padding: 14px 18px; text-align: left;
}
.tableau-pubs tbody tr {
  border-bottom: 1px solid var(--beige);
  transition: background-color 150ms ease, border-left-color 150ms ease;
  border-left: 3px solid transparent;
}
.tableau-pubs tbody tr:last-child { border-bottom: none; }
.tableau-pubs tbody tr:hover {
  background-color: #FFF8F7;
  border-left-color: var(--rouge);
}
.tableau-pubs td { padding: 14px 18px; vertical-align: middle; }
.badge-annee {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  color: var(--rouge); background: var(--rouge-pale);
  border: 1px solid var(--rouge-border);
  border-radius: var(--r-xs); padding: 3px 8px;
}
.titre-pub { font-family: var(--font-titre); font-size: 0.95rem; font-weight: 700; color: var(--noir); line-height: 1.45; }
.journal-pub { font-family: var(--font-ui); font-size: 0.75rem; color: var(--gris-moyen); font-style: italic; margin-top: 3px; }
.lien-doi {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--vert); transition: color 150ms ease;
}
.lien-doi:hover { color: var(--rouge); text-decoration: underline; }
.badge-index {
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.04em; padding: 3px 9px; border-radius: var(--r-full);
}
.index-intl { background: var(--vert-pale); color: var(--vert); }
.index-non  { background: var(--creme); color: var(--gris-clair); }

/* ═══════════════════════════════════════════════
   CONFÉRENCES — TIMELINE ÉLÉGANTE
═══════════════════════════════════════════════ */
.section-conf { background: var(--creme); }
.timeline-conf { position: relative; padding-left: 3.5rem; }
.timeline-conf::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--rouge) 0%, var(--or) 50%, var(--vert) 100%);
  opacity: 0.45;
}
.item-conf {
  position: relative; margin-bottom: 1.5rem;
}
.point-conf {
  position: absolute;
  left: calc(-3.5rem + 16px);
  top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  background: #FFFFFF; border: 3px solid var(--rouge);
  border-radius: 50%;
  transition: transform 200ms var(--ease-out), background-color 200ms ease;
  box-shadow: 0 0 0 3px rgba(139,30,30,0.12);
}
.item-conf:hover .point-conf { transform: translateY(-50%) scale(1.3); background: var(--rouge); }
.carte-conf {
  background: #FFFFFF;
  border: 1px solid var(--beige);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 1.25rem; align-items: center;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-left-color 220ms ease;
  box-shadow: var(--ombre-xs);
  border-left: 3.5px solid transparent;
}
@media (hover: hover) and (pointer: fine) {
  .carte-conf:hover {
    box-shadow: 0 10px 28px -6px rgba(24, 22, 21, 0.08);
    transform: translateX(6px);
    border-left-color: var(--rouge);
  }
}
.date-conf-boite {
  background: var(--rouge); border-radius: 10px;
  padding: 0.6rem 0; text-align: center; min-width: 58px;
  box-shadow: 0 4px 12px rgba(139,30,30,0.2);
}
.date-conf-jour { font-family: var(--font-titre); font-size: 1.45rem; font-weight: 700; color: #FFFFFF; line-height: 1; display: block; }
.date-conf-mois { font-family: var(--font-ui); font-size: 0.62rem; font-weight: 800; color: rgba(255,255,255,0.7); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-top: 2px; }
.date-conf-an   { font-family: var(--font-mono); font-size: 0.62rem; color: rgba(255,255,255,0.5); display: block; }
.info-conf {}
.nom-conf { font-family: var(--font-titre); font-size: 1.05rem; font-weight: 700; color: var(--noir); margin-bottom: 0.4rem; line-height: 1.35; }
.meta-conf { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.badge-role {
  font-family: var(--font-ui); font-size: 0.65rem; font-weight: 700;
  padding: 3px 10px; border-radius: var(--r-full);
  letter-spacing: 0.04em;
}
.role-invite { background: var(--rouge-pale); color: var(--rouge); border: 1px solid var(--rouge-border); }
.role-mod    { background: #EFF6FF; color: #1D4ED8; }
.role-inter  { background: var(--vert-pale); color: var(--vert); }
.lieu-conf {
  font-family: var(--font-ui); font-size: 0.78rem; color: var(--gris-moyen);
  display: flex; align-items: center; gap: 4px;
}
.lieu-conf svg { width: 12px; height: 12px; fill: var(--gris-clair); }
.badge-type-conf {
  font-family: var(--font-ui); font-size: 0.65rem; font-weight: 700;
  padding: 4px 12px; border-radius: var(--r-full); white-space: nowrap;
  align-self: flex-start;
}
.type-intl { background: var(--rouge); color: #FFFFFF; }
.type-natl { background: var(--creme); color: var(--gris-moyen); border: 1px solid var(--beige-fonce); }

/* ═══════════════════════════════════════════════
   THÈSES
═══════════════════════════════════════════════ */
.section-theses { background: var(--blanc); }
.grille-theses { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
.carte-these {
  background: var(--creme);
  border: 1px solid var(--beige);
  border-radius: var(--r-md);
  padding: var(--s6);
  position: relative; overflow: hidden;
  transition: all 240ms var(--ease-out);
}
.carte-these::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--vert);
  transform: scaleY(0); transform-origin: top;
  transition: transform 260ms var(--ease-out);
}
.carte-these:hover { background: var(--blanc); box-shadow: var(--ombre-md); border-color: var(--vert-border); transform: translateY(-3px); }
.carte-these:hover::before { transform: scaleY(1); }
.these-annee {
  display: inline-block;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  color: var(--vert); background: var(--vert-pale);
  border: 1px solid var(--vert-border);
  border-radius: var(--r-xs); padding: 2px 9px; margin-bottom: var(--s3);
}
.these-titre { font-family: var(--font-titre); font-size: .98rem; font-weight: 700; color: var(--noir); line-height: 1.4; margin-bottom: var(--s4); }
.these-meta-tableau { display: grid; gap: var(--s2); }
.these-meta-ligne { display: flex; gap: var(--s3); align-items: flex-start; }
.these-meta-cle {
  font-family: var(--font-ui); font-size: .62rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--gris-clair); min-width: 86px; padding-top: 2px; flex-shrink: 0;
}
.these-meta-val { font-family: var(--font-ui); font-size: .82rem; color: var(--gris-moyen); line-height: 1.5; }
.these-meta-val strong { color: var(--noir); font-weight: 600; }
.badge-mention {
  font-family: var(--font-ui); font-size: .68rem; font-weight: 700;
  padding: 3px 10px; border-radius: var(--r-full);
}

/* ═══════════════════════════════════════════════
   PAGE EN LIGNE
═══════════════════════════════════════════════ */
.enligne-entete {
  background: var(--rouge);
  padding: calc(68px + 4rem) 0 4rem;
  position: relative; overflow: hidden;
  border-bottom: 3px solid var(--or);
}
.enligne-motif {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px
  ), repeating-linear-gradient(
    0deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px
  );
  pointer-events: none;
}
.enligne-entete h1 { color: var(--blanc); }
.enligne-entete p  { color: rgba(255,255,255,.65); max-width: 680px; margin-top: var(--s5); font-size: .98rem; line-height: 1.85; }

.onglets-enligne {
  display: flex; gap: var(--s3); flex-wrap: wrap;
  padding: var(--s6) 0; border-bottom: 2px solid var(--beige);
  margin-bottom: var(--s10);
}
.onglet {
  font-family: var(--font-ui); font-size: .8rem; font-weight: 700;
  color: var(--gris-moyen); padding: 0.55rem 1.2rem;
  border: 1.5px solid var(--beige-fonce);
  border-radius: var(--r-sm); cursor: pointer;
  transition: all 150ms;
  display: flex; align-items: center; gap: var(--s2);
}
.onglet svg { width: 13px; height: 13px; fill: currentColor; }
.onglet.actif, .onglet:hover { background: var(--rouge); color: var(--blanc); border-color: var(--rouge); }

.grille-enligne { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.carte-enligne {
  background: var(--blanc);
  border: 1px solid var(--beige);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 240ms var(--ease-out);
  display: flex; flex-direction: column;
}
.carte-enligne:hover { box-shadow: var(--ombre-lg); transform: translateY(-5px); }
.enligne-img {
  width: 100%; height: 175px;
  object-fit: cover; background: var(--creme);
  flex-shrink: 0;
}
.enligne-img-vide {
  width: 100%; height: 175px;
  background: linear-gradient(135deg, var(--creme) 0%, var(--beige) 100%);
  display: flex; align-items: center; justify-content: center;
}
.enligne-img-vide svg { width: 36px; height: 36px; fill: var(--gris-fin); }
.enligne-corps { padding: var(--s5); flex: 1; display: flex; flex-direction: column; }
.enligne-type {
  font-family: var(--font-ui); font-size: .62rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--rouge); margin-bottom: var(--s3);
  display: flex; align-items: center; gap: 5px;
}
.enligne-type svg { width: 11px; height: 11px; fill: currentColor; }
.enligne-titre { font-family: var(--font-titre); font-size: .98rem; font-weight: 700; color: var(--noir); line-height: 1.4; margin-bottom: var(--s3); flex: 1; }
.enligne-pied { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--beige); }
.enligne-date { font-family: var(--font-ui); font-size: .7rem; color: var(--gris-clair); }
.enligne-lien {
  font-family: var(--font-ui); font-size: .75rem; font-weight: 700;
  color: var(--rouge); display: flex; align-items: center; gap: 3px;
  transition: gap 150ms;
}
.enligne-lien:hover { gap: 7px; }
.enligne-lien svg { width: 11px; height: 11px; fill: currentColor; }

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.section-contact { background: var(--creme); }
.grille-contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s16); align-items: start; }
.profils-contact { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s8); }
.lien-profil {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--blanc); border: 1px solid var(--beige);
  border-radius: var(--r-sm);
  transition: all 200ms var(--ease-out);
}
.lien-profil:hover { box-shadow: var(--ombre-sm); border-left: 3px solid var(--rouge); transform: translateX(3px); }
.profil-icone {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.profil-nom { font-family: var(--font-ui); font-size: .88rem; font-weight: 700; color: var(--noir); }
.profil-url { font-family: var(--font-ui); font-size: .7rem; color: var(--gris-moyen); margin-top: 1px; }
.profil-fleche { margin-left: auto; color: var(--gris-fin); transition: all 180ms; font-size: .9rem; }
.lien-profil:hover .profil-fleche { color: var(--rouge); transform: translateX(3px); }

/* ═══════════════════════════════════════════════
   PIED DE PAGE
═══════════════════════════════════════════════ */
.pied-page {
  background: #141211;
  padding: 4.5rem 0 2.5rem;
  border-top: 2px solid var(--or-clair);
  color: #FFFFFF;
}
.pied-grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s12); margin-bottom: 3.5rem; }
.pied-desc {
  font-family: var(--font-corps); font-size: 0.92rem;
  color: rgba(255,255,255,0.6); line-height: 1.8; margin-top: 1.25rem; max-width: 320px;
}
.pied-col-titre {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--or-clair);
  margin-bottom: 1.25rem;
}
.pied-liens { display: flex; flex-direction: column; gap: 0.65rem; }
.pied-liens a { font-family: var(--font-ui); font-size: 0.85rem; color: rgba(255,255,255,0.65); transition: color 150ms ease, transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .pied-liens a:hover { color: #FFFFFF; transform: translateX(3px); }
}
.pied-bas {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap; gap: var(--s4);
}
.pied-copy { font-family: var(--font-ui); font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.pied-liens-bas { display: flex; gap: var(--s6); }
.pied-liens-bas a { font-family: var(--font-ui); font-size: 0.76rem; color: rgba(255,255,255,0.5); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .pied-liens-bas a:hover { color: var(--or-clair); }
}

/* ═══════════════════════════════════════════════
   ENTÊTE DE PAGE
═══════════════════════════════════════════════ */
.entete-page {
  background: linear-gradient(135deg, var(--blanc) 0%, var(--creme) 100%);
  padding: calc(68px + 3rem) 0 3rem;
  border-bottom: 3px solid var(--or);
  position: relative; overflow: hidden;
}
.entete-page::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--rouge);
}
.fil-ariane { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s4); }
.fil-ariane, .fil-ariane a { font-family: var(--font-ui); font-size: .73rem; color: var(--gris-moyen); }
.fil-ariane a:hover { color: var(--rouge); }
.fil-ariane svg { width: 10px; height: 10px; fill: none; stroke: var(--gris-clair); stroke-width: 2; }
.entete-page h1 { color: var(--noir); }
.entete-page-desc { font-family: var(--font-ui); font-size: .98rem; color: var(--gris-moyen); margin-top: var(--s4); max-width: 600px; line-height: 1.7; }

/* ═══════════════════════════════════════════════
   ANIMATIONS & MICRO-INTERACTIONS (UI-UX-PRO-MAX)
   Transitions douces, accélération matérielle,
   rythme naturel et respect strict de l'accessibilité
═══════════════════════════════════════════════ */
@keyframes douceFlottaison {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 12px 28px -6px rgba(26, 23, 21, 0.12), 0 0 0 1px rgba(179, 133, 66, 0.25);
  }
  50% {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px -8px rgba(26, 23, 21, 0.18), 0 0 0 1px rgba(179, 133, 66, 0.38);
  }
}

@keyframes ondeVerte {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(27, 79, 58, 0.5); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 7px rgba(27, 79, 58, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(27, 79, 58, 0); }
}

@keyframes apparaitreHaut {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes apparaitreGauche {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes apparaitreFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes apparaitreScale {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── État initial géré avec no-js pour éviter tout scintillement ou blocage ── */
html:not(.no-js) [data-anim] {
  opacity: 0;
  will-change: opacity, transform;
}
html:not(.no-js) [data-anim].visible {
  animation: apparaitreHaut 540ms var(--ease-out) both;
}
html:not(.no-js) [data-anim="gauche"].visible  { animation-name: apparaitreGauche; }
html:not(.no-js) [data-anim="fade"].visible    { animation-name: apparaitreFade; }
html:not(.no-js) [data-anim="scale"].visible   { animation-name: apparaitreScale; }

/* ── Stagger fluide en cascade sur les cartes et grilles ── */
html:not(.no-js) [data-decale] > * {
  opacity: 0;
  will-change: opacity, transform;
}
html:not(.no-js) [data-decale].visible > * {
  animation: apparaitreHaut 500ms var(--ease-out) both;
}
html:not(.no-js) [data-decale].visible > *:nth-child(1)  { animation-delay:   0ms; }
html:not(.no-js) [data-decale].visible > *:nth-child(2)  { animation-delay:  65ms; }
html:not(.no-js) [data-decale].visible > *:nth-child(3)  { animation-delay: 130ms; }
html:not(.no-js) [data-decale].visible > *:nth-child(4)  { animation-delay: 195ms; }
html:not(.no-js) [data-decale].visible > *:nth-child(5)  { animation-delay: 260ms; }
html:not(.no-js) [data-decale].visible > *:nth-child(6)  { animation-delay: 325ms; }
html:not(.no-js) [data-decale].visible > *:nth-child(7)  { animation-delay: 390ms; }
html:not(.no-js) [data-decale].visible > *:nth-child(8)  { animation-delay: 455ms; }
html:not(.no-js) [data-decale].visible > *:nth-child(9)  { animation-delay: 520ms; }
html:not(.no-js) [data-decale].visible > *:nth-child(10) { animation-delay: 585ms; }

/* ── Micro-interactions tactiles & survol des cartes ── */
.carte-recherche,
.carte-affil,
.stat-card,
.stat-cellule,
.chiffre-item,
.photo-apropos-cadre {
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .carte-recherche:hover {
    transform: translateY(-3px);
    box-shadow: var(--ombre-md);
    border-color: rgba(179, 133, 66, 0.4);
  }
  .carte-recherche:hover .rc-icone {
    background: var(--vert);
    color: var(--blanc);
    transform: scale(1.06);
  }
  .carte-recherche:hover .rc-icone svg {
    fill: var(--blanc);
  }
  .carte-affil:hover {
    transform: translateY(-2px);
    box-shadow: var(--ombre-sm);
    border-color: rgba(193, 39, 45, 0.35);
  }
  .stat-cellule:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--ombre-xs);
  }
  .tableau-pubs tbody tr:hover,
  .pub-row:hover,
  .these-row:hover,
  .conf-row:hover {
    background-color: #F6F1E7 !important;
  }
}

/* ═══════════════════════════════════════════════
   RETOUR EN HAUT
═══════════════════════════════════════════════ */
.retour-haut {
  position: fixed; bottom: var(--s8); right: var(--s8);
  width: 44px; height: 44px;
  background: var(--rouge); color: var(--blanc);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--ombre-rouge); z-index: 90;
  opacity: 0; transform: translateY(10px) scale(0.95);
  transition: opacity 240ms, transform 240ms var(--ease-out);
  pointer-events: none; cursor: pointer;
}
.retour-haut.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.retour-haut:hover { background: var(--rouge-fonce); transform: translateY(-2px) scale(1.05); }
.retour-haut svg { width: 17px; height: 17px; fill: var(--blanc); }

/* Lien évitement */
.lien-evitement {
  position: absolute; top: -100%; left: 1rem; z-index: 999;
  background: var(--rouge); color: var(--blanc);
  font-family: var(--font-ui); font-weight: 700;
  padding: .5rem 1rem; border-radius: var(--r-sm);
}
.lien-evitement:focus { top: 1rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--creme); }
::-webkit-scrollbar-thumb { background: var(--beige-fonce); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gris-clair); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-interieur { grid-template-columns: 1fr; gap: var(--s12); }
  .hero-photo-conteneur { max-width: 440px; margin: 0 auto; }
  .grille-recherche { grid-template-columns: repeat(2, 1fr); }
  .bande-stats-interieur { grid-template-columns: repeat(3, 1fr); }
  .grille-apropos { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .grille-enligne { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: var(--s16) 0; }
  .container, .container-sm, .container-xs { padding: 0 var(--s5); }

  .nav-principale {
    display: none; position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--rouge-fonce);
    flex-direction: column; align-items: flex-start;
    padding: var(--s4);
    border-bottom: 3px solid var(--or);
    gap: 2px; box-shadow: var(--ombre-lg);
  }
  .nav-principale.ouverte { display: flex; animation: apparaitreHaut 250ms var(--ease-out); }
  .nav-principale a { width: 100%; padding: .75rem 1rem; }
  .nav-principale a::after { display: none; }
  .nav-contact { display: none; }
  .menu-toggle { display: flex; }

  .hero-chiffres { grid-template-columns: repeat(2, auto); gap: var(--s4); }
  .chiffre-item:nth-child(2) { border-right: none; }
  .grille-recherche { grid-template-columns: 1fr; }
  .carte-conf { grid-template-columns: 1fr; gap: var(--s3); }
  .date-conf-boite { width: fit-content; padding: var(--s2) var(--s4); }
  .grille-theses { grid-template-columns: 1fr; }
  .grille-contact { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
  .bande-stats-interieur { grid-template-columns: repeat(2, 1fr); }
  .grille-enligne { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .bande-stats-interieur { grid-template-columns: 1fr 1fr; }
  .barre-filtre { flex-direction: column; align-items: stretch; }
  .hero-chiffres { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════
   PAGES JSON — Articles / Conférences / Thèses /
   Ouvrages / Médias (v4.1)
   ═══════════════════════════════════════════════ */

.pub-motscles {
  font-family: var(--font-ui);
  font-size: .68rem;
  color: var(--gris-clair);
  margin-top: 4px;
  font-style: italic;
}
.note-json {
  font-family: var(--font-ui);
  font-size: .74rem;
  color: var(--gris-clair);
  margin-top: var(--s6);
  text-align: center;
}
.note-json code {
  background: var(--creme);
  border: 1px solid var(--beige);
  border-radius: var(--r-xs);
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--rouge);
}
.badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: var(--r-full);
  background: var(--rouge-pale);
  color: var(--rouge);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
}
.badge-nature {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .66rem;
  font-weight: 700;
  color: var(--vert);
  background: var(--vert-pale);
  border: 1px solid rgba(47,107,79,.18);
  border-radius: var(--r-full);
  padding: 3px 10px;
  white-space: nowrap;
}

/* ── Ouvrages : grille de couvertures ── */
.grille-ouvrages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--s8) var(--s6);
}
.ouvrage-carte {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease-out);
}
.ouvrage-carte:hover { transform: translateY(-6px); }
.ouvrage-couv {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--ombre-md, 0 12px 30px -12px rgba(43,43,43,.4));
  background: var(--creme);
  border-left: 5px solid var(--rouge);
}
.ouvrage-couv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ouvrage-couv-vide {
  display: flex;
  background: linear-gradient(135deg, #8E1B20 0%, var(--rouge) 55%, #b38b59 130%);
  border-left: 5px solid var(--or, #B38B59);
}
.ouvrage-couv-texte {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s5) var(--s4);
  color: #fff;
  width: 100%;
}
.ouvrage-couv-titre {
  font-family: var(--font-titre);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.3;
}
.ouvrage-couv-annee {
  font-family: var(--font-mono);
  font-size: .74rem;
  opacity: .82;
  letter-spacing: .05em;
}
.ouvrage-info { padding-top: var(--s4); }
.ouvrage-titre {
  font-family: var(--font-titre);
  font-size: .9rem;
  font-weight: 700;
  color: var(--noir);
  line-height: 1.35;
}
.ouvrage-editeur {
  font-family: var(--font-ui);
  font-size: .74rem;
  color: var(--gris-moyen);
  margin-top: 3px;
}
.ouvrage-badge-annee {
  display: inline-block;
  margin-top: var(--s3);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  color: var(--vert);
  background: var(--vert-pale);
  border-radius: var(--r-full);
  padding: 2px 9px;
}

/* ── Médias : grille de cartes ── */
.grille-medias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s6);
}
.media-carte {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--blanc);
  border: 1px solid var(--beige);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow .22s var(--ease-out), transform .22s var(--ease-out);
}
.media-carte:hover {
  box-shadow: var(--ombre-md, 0 18px 40px -18px rgba(43,43,43,.35));
  transform: translateY(-4px);
}
.media-visuel {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--creme);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-visuel-vide {
  background: repeating-linear-gradient(45deg, var(--creme), var(--creme) 12px, #f0e9df 12px, #f0e9df 24px);
}
.media-type-badge {
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  font-family: var(--font-ui);
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  background: var(--rouge);
  border-radius: var(--r-xs);
  padding: 3px 9px;
}
.media-corps { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
.media-source {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--vert);
  margin-bottom: 4px;
}
.media-titre {
  font-family: var(--font-titre);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--noir);
  line-height: 1.35;
}
.media-pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--s4);
}
.media-date {
  font-family: var(--font-ui);
  font-size: .74rem;
  color: var(--gris-clair);
}
.media-lien {
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 700;
  color: var(--rouge);
}

@media (max-width: 600px) {
  .grille-ouvrages { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .tableau-pubs { font-size: .82rem; }
}

/* ═══════════════════════════════════════════════
   SUPPORT ARABE & RTL (RIGHT-TO-LEFT)
═══════════════════════════════════════════════ */
html[dir="rtl"],
html.rtl,
body.is-rtl {
  --font-titre: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-corps: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-ui:    'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  direction: rtl;
  text-align: right;
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html.rtl h1,
html.rtl h2,
html.rtl h3,
html.rtl h4,
html.rtl .logo-nom,
html.rtl .hero-titre {
  font-family: 'Tajawal', sans-serif;
}

html.rtl .nav-principale,
html.rtl .logo-sous,
html.rtl .hero-grade,
html.rtl .carte-flottante-label,
html.rtl .etiquette,
html.rtl .btn,
html.rtl .badge-annee,
html.rtl .lang-opt,
html.rtl .stat-libelle {
  font-family: 'Tajawal', sans-serif;
}

html.rtl .selecteur-lang {
  margin-left: 0;
  margin-right: 0.75rem;
}

html.rtl .hero-bande {
  left: auto;
  right: 0;
}

html.rtl .hero-carte-flottante {
  border-left: 1px solid rgba(179, 133, 66, 0.28);
  border-right: 4.5px solid var(--rouge);
}

html.rtl .hero-institution svg {
  margin-left: 6px;
  margin-right: 0;
}

html.rtl .en-tete-section .filet-rouge,
html.rtl .en-tete-section .filet-vert {
  margin-right: 0;
  margin-left: auto;
}

html.rtl .chiffre-item {
  padding: 0 0 0 var(--s4);
  border-right: none;
  border-left: 1px solid var(--beige);
}

html.rtl .chiffre-item:last-child {
  border-left: none;
  padding-left: 0;
}

html.rtl .stat-cellule {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

html.rtl .stat-cellule:last-child {
  border-left: none;
}

html.rtl .photo-apropos-legende {
  text-align: right;
}

html.rtl .tableau-pubs th,
html.rtl .tableau-pubs td {
  text-align: right;
}

html.rtl .tableau-pubs th[style*="text-align:center"],
html.rtl .tableau-pubs td[style*="text-align:center"] {
  text-align: center;
}

html.rtl .retour-haut {
  right: auto;
  left: var(--s8);
}

html.rtl .carte-recherche::before {
  transform-origin: right;
}

html.rtl .lien-profil {
  text-align: right;
}
html.rtl .lien-profil:hover {
  border-left-color: var(--beige);
  border-right: 3px solid var(--rouge);
  transform: translateX(-3px);
}
html.rtl .profil-fleche {
  margin-left: 0;
  margin-right: auto;
}
html.rtl .lien-profil:hover .profil-fleche {
  transform: translateX(-3px);
}
html.rtl .pied-desc {
  text-align: right;
}

@media (max-width: 991px) {
  html.rtl .nav-principale {
    right: auto;
    left: 0;
    transform: translateX(-100%);
  }
  html.rtl .nav-principale.ouverte {
    transform: translateX(0);
  }
}
