/* ============================================================
   1A · INSTITUTIONNELLE A
   Charte centralisée dans :root ci-dessous.
   Couleurs phares : --navy #14203a · --gold #c2a25a · --text #46506a

   Sommaire :
     0. Variables (charte)    6. Carte du monde
     1. Base & layout         7. Expérience & institutions
     2. Sidebar               8. UN/CEFACT
     3. Boutons               9. Mandats
     4. Héro & intro         10. Animations · 11. Footer · 12. Responsive
     5. Stats & sections
   ============================================================ */

/* ============================================================
   0. VARIABLES — CHARTE GRAPHIQUE
   ============================================================ */
:root {
  /* — Marque — */
  --navy:           #14203a;   /* bleu marine — fond dominant */
  --gold:           #c2a25a;   /* doré — couleur d'accent */
  --gold-soft:      #d3c49a;   /* doré clair — eyebrow du héros */
  --white:          #ffffff;

  /* — Bleu marine : traits & bordures sur fond foncé (du + foncé au + clair) — */
  --navy-deep:      #1c2c4c;   /* surlignage de sélection */
  --navy-line-1:    #24304c;   /* bordures statband / carte consultant */
  --navy-line-2:    #2a3754;   /* bordures sidebar & nav mobile */
  --navy-line-3:    #34425f;   /* bordure bascule de langue */
  --navy-line-4:    #3c4a68;   /* bordure du logo */
  --navy-line-5:    #4a5a7a;   /* trait de navigation */
  --navy-line-6:    #8a9abf;   /* trait de navigation (survol) */

  /* — Textes sur fond clair (du + foncé au + clair) — */
  --text-strong:    #2c3a59;   /* titres de ligne (parcours, projets, mandats) */
  --text:           #46506a;   /* corps de texte */
  --text-soft:      #566179;   /* texte adouci (intro, UN/CEFACT) */
  --text-desc:      #6a7387;   /* descriptions */
  --text-faint:     #788297;   /* notes en italique */
  --text-mute:      #8089a0;   /* lieux de projets */

  /* — Gris-bleu atténués (libellés, badges, méta) — */
  --muted-1:        #8b94a8;
  --muted-2:        #8e9ab6;
  --muted-3:        #9aa3b8;
  --muted-4:        #9aa6c0;
  --muted-5:        #aab4cc;
  --muted-6:        #aeb9d2;
  --muted-7:        #cdd6e8;
  --text-on-navy:   #c7d0e2;   /* texte courant sur fond marine (sidebar, footer) */
  --grey:           #6a6a72;   /* gris neutre — bascule de langue inactive */

  /* — Carte du monde — */
  --map-land:       #d3dbea;   /* terres */
  --map-stroke:     #c3cfe1;   /* contours des terres */
  --map-label:      #26324d;   /* libellés des villes */

  /* — Fonds & bordures clairs (du + foncé au + clair) — */
  --hero-role:      #e7ecf6;   /* sous-titre du héros */
  --line-hover:     #cdd4e0;   /* bordure des lignes au survol */
  --line-1:         #dcdce2;   /* bordure bascule de langue */
  --line-2:         #e1e6ef;   /* séparateur UN/CEFACT */
  --line-3:         #e6ebf3;   /* bordures de la carte & des cartes lieux */
  --bg-grad-1:      #e6ecf5;   /* dégradé carte (fin) */
  --line-soft:      #eceef2;   /* séparateurs de lignes (parcours, projets) */
  --line-section:   #eef0f4;   /* séparateurs de sections */
  --bg-tint:        #eef2f8;   /* fonds teintés (carte, infobulle) */
  --bg-panel:       #f7f9fc;   /* panneaux & survols clairs */
  --bg-grad-0:      #fbfcfe;   /* dégradé carte (début) */

  /* — Couleurs ponctuelles — */
  --chev-blue:      #2c5fd6;   /* chevron « afficher le détail » */
  --border-ghost:   #3a486690; /* bordure bouton fantôme (marine translucide) */

  /* — Translucides & ombres — */
  --hover-light:    rgba(255,255,255,.07);  /* survol nav (clair) */
  --hover-light-2:  rgba(255,255,255,0.12); /* survol bouton fantôme */
  --on-light-70:    rgba(255,255,255,0.7);  /* chevron de défilement */
  --gold-12:        rgba(194,162,90,.12);   /* fond nav active (doré) */
  --shadow-black:   rgba(0,0,0,0.5);
  --shadow-deep-45: rgba(8,14,28,0.45);
  --shadow-deep-60: rgba(8,14,28,0.6);
  --shadow-deep-70: rgba(8,14,28,0.7);
  --shadow-navy-45: rgba(20,32,58,0.45);
  --shadow-navy-70: rgba(20,32,58,0.7);

  /* — Dégradé léger derrière le contenu du héros (lisibilité du texte) — */
  --hero-veil: linear-gradient(to top,
                 rgba(20,32,58,0.88) 0%,
                 rgba(20,32,58,0.58) 45%,
                 rgba(20,32,58,0)   80%);
}

/* ============================================================
   1. BASE & LAYOUT
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  font-family: 'Noto Serif', serif;
  color: var(--text);
  line-height: 1.6;
}
::selection { background: var(--navy-deep); color: var(--white); }

.layout { display: flex; flex-wrap: wrap; align-items: flex-start; background: var(--white); }
.main { flex: 999 1 560px; min-width: 0; }

/* ============================================================
   2. SIDEBAR
   ============================================================ */
.sidebar {
  position: sticky; top: 0; align-self: flex-start;
  flex: 1 1 240px; max-width: 268px; min-width: 230px;
  height: 100vh;
  background: var(--navy); color: var(--text-on-navy);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 24px; overflow: auto;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark {
  width: 50px; height: 50px; flex: none;
  border-radius: 10px; border: 1.5px solid var(--navy-line-4);
  background-color: var(--white);
  background-image: url('../img/image.jpeg');
  background-repeat: no-repeat;
  background-size: 150%;
  background-position: center 18%;
}
.brand__name { font-family: 'Noto Sans', sans-serif; color: var(--white); font-size: 16px; line-height: 1.15; }

/* Bascule de langue */
.langtoggle {
  margin-left: auto; display: inline-flex;
  border: 1px solid var(--line-1); border-radius: 9px; overflow: hidden;
}
.langtoggle button {
  border: none; cursor: pointer; font-family: inherit;
  font-weight: 600; font-size: 13px; padding: 6px 14px;
  background: var(--white); color: var(--grey);
}
.langtoggle button.is-active { background: var(--navy); color: var(--white); }
.langtoggle--side {
  margin-left: 0; align-self: flex-start;
  border: 1px solid var(--navy-line-3); border-radius: 7px;
}
.langtoggle--side button { font-size: 12px; padding: 5px 12px; background: transparent; color: var(--muted-4); }
.langtoggle--side button.is-active { background: var(--gold); color: var(--navy); }

/* Navigation */
.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.nav-btn {
  background: transparent; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 13px; padding: 9px 10px;
  border-radius: 8px;
  font-family: 'Noto Serif', serif; font-size: 15.5px; font-weight: 500; letter-spacing: 0.2px;
  color: var(--text-on-navy);
  transition: background .18s ease, color .18s ease;
}
.nav-btn:hover { background: var(--hover-light); color: var(--white); }
.nav-btn .nav-line { width: 18px; height: 2px; background: var(--navy-line-5); transition: all .22s; flex: none; }
.nav-btn:hover .nav-line { width: 22px; background: var(--navy-line-6); }
.nav-btn.is-active { color: var(--white); background: var(--gold-12); }
.nav-btn.is-active .nav-line { width: 28px; background: var(--gold); }

.side-cta { margin-top: auto; display: flex; flex-direction: column; gap: 9px; }
.side-contact {
  border-top: 1px solid var(--navy-line-2); padding-top: 14px;
  font-size: 12px; color: var(--muted-2); line-height: 1.7;
}

/* ============================================================
   3. BOUTONS
   ============================================================ */
.btn {
  cursor: pointer; font-family: 'Noto Serif', serif; font-weight: 600;
  border-radius: 8px; letter-spacing: 0.3px;
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center; text-decoration: none;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease;
}
.btn--ghost-light { background: transparent; color: var(--text-on-navy); border: 1px solid var(--border-ghost); font-size: 13px; padding: 10px; }
.btn:hover { transform: translateY(-2px); }
.btn--ghost-light:hover { background: var(--hover-light-2); }
.btn, .nav-btn, .langtoggle button { -webkit-tap-highlight-color: transparent; }

/* ============================================================
   4. HÉRO & INTRO
   ============================================================ */
.hero {
  position: relative; scroll-margin-top: 60px;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding: clamp(40px,7vw,96px) clamp(26px,5vw,68px) clamp(28px,4vw,52px);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  transform-origin: center; will-change: transform, opacity;
  background-color: var(--navy);
  background-image: url('../img/image.jpeg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100%;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: none;
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 660px; color: var(--white);
  will-change: transform, opacity;
  animation: heroIn 1s cubic-bezier(.2,.7,.2,1) both;
}
/* Léger dégradé à bords doux posé derrière le texte (pas sur toute l'image) */
.hero__content::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -34px -70px -44px -54px;
  background: var(--hero-veil);
}
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.eyebrow {
  font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 700; margin-bottom: 18px;
}
.hero__name {
  margin: 0 0 18px; font-family: 'Noto Sans', sans-serif; font-weight: 700;
  font-size: clamp(36px,5.4vw,64px); line-height: 1.04; color: var(--white);
  text-shadow: 0 2px 30px var(--shadow-deep-45);
}
.hero__role { margin: 0 0 22px; font-size: clamp(16px,1.5vw,20px); color: var(--hero-role); max-width: 44ch; }

/* Au chargement, seuls l'eyebrow + le nom s'affichent : la photo reste dégagée.
   Le reste se révèle dès que l'on commence à faire défiler la page. */
.hero__role {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
}
.hero.is-scrolled .hero__role { opacity: 1; transform: none; }

/* Indicateur de défilement */
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px; pointer-events: none;
}
.hero__scroll-chev {
  width: 13px; height: 13px;
  border-right: 1.5px solid var(--on-light-70); border-bottom: 1.5px solid var(--on-light-70);
  transform: rotate(45deg); animation: chevBob 1.7s ease-in-out infinite;
}
@keyframes chevBob { 0%,100% { transform: rotate(45deg) translate(0,0); opacity: .55; } 50% { transform: rotate(45deg) translate(4px,4px); opacity: 1; } }

/* Intro : le texte prend la place de la photo */
.intro { padding: clamp(40px,6vw,86px) clamp(26px,5vw,68px) clamp(20px,3vw,40px); }
.hero__candidacy { margin: 0; max-width: 72ch; font-size: clamp(15px,1.45vw,18px); color: var(--text-soft); line-height: 1.75; }

/* ============================================================
   5. STATS & EN-TÊTES DE SECTION
   ============================================================ */
.statband { background: var(--navy); color: var(--white); padding: clamp(30px,4vw,48px) clamp(26px,5vw,68px); border-bottom: 1px solid var(--navy-line-1); }
.statband__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 28px; }
.stat { border-left: 2px solid var(--gold); padding-left: 18px; }
.stat-n { font-family: 'Noto Sans', sans-serif; font-size: clamp(26px,3vw,38px); font-weight: 700; line-height: 1; color: var(--white); }
.stat-l { font-size: 12.5px; color: var(--muted-6); margin-top: 7px; letter-spacing: 0.4px; }

.section { scroll-margin-top: 60px; padding: clamp(27px,3vw,50px) clamp(26px,5vw,68px); }
.section--bordered { border-bottom: 1px solid var(--line-section); }
.sechead { margin-bottom: 38px; }
.sechead__title {
  position: relative; display: inline-block; margin: 0; padding-bottom: 12px;
  font-family: 'Noto Sans', sans-serif; font-size: clamp(25px,3vw,34px); color: var(--navy); font-weight: 700;
}
.sechead__title::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .8s cubic-bezier(.2,.7,.2,1) .15s;
}
.sechead.is-visible .sechead__title::after { width: 54px; }

/* ============================================================
   6. CARTE DU MONDE (FORMATION)
   ============================================================ */
.wmap-wrap { margin: 4px 0 40px; }
.wmap-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.wmap-cap__title { font-family: 'Noto Sans', sans-serif; font-size: clamp(16px,1.7vw,20px); color: var(--navy); }
.wmap-cap__hint { font-size: 12px; letter-spacing: 0.4px; color: var(--muted-3); }
.wmap-cap__hint::before { content: "— "; }

.wmap {
  position: relative; width: 100%; overflow: visible;
  background: radial-gradient(130% 150% at 28% 6%, var(--bg-grad-0) 0%, var(--bg-tint) 58%, var(--bg-grad-1) 100%);
  border: 1px solid var(--line-3); border-radius: 16px; box-shadow: inset 0 1px 0 var(--white);
}
/* Rogne uniquement la carte (zoom) ; l'infobulle, hors de ce cadre, n'est pas coupée */
.wmap-clip { overflow: hidden; border-radius: inherit; }
.wmap svg { display: block; width: 100%; height: auto; }
.wmap-land { fill: var(--map-land); stroke: var(--map-stroke); stroke-width: 0.5; stroke-linejoin: round; }

.wmap-marker {
  cursor: pointer; opacity: 0; transform: translateY(-12px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.wmap-wrap.is-visible .wmap-marker { opacity: 1; transform: none; }
/* Halo doré : met en évidence la zone (pays) visée par le marqueur */
.wmap-halo {
  fill: var(--gold); opacity: .25; filter: blur(1.6px);
  transform-box: fill-box; transform-origin: center;
  animation: haloPulse 2.6s ease-in-out infinite;
  transition: opacity .25s ease;
}
.wmap-marker:hover .wmap-halo, .wmap-marker.is-hot .wmap-halo { opacity: .5; }
@keyframes haloPulse {
  0%, 100% { opacity: .16; transform: scale(calc(var(--mk, 1) * .9)); }
  50%      { opacity: .34; transform: scale(calc(var(--mk, 1) * 1.1)); }
}
/* --mk : facteur de taille des marqueurs (réduit au zoom, voir focusCity) */
.wmap-dot {
  fill: var(--navy); stroke: var(--white); stroke-width: 1.3;
  transform-box: fill-box; transform-origin: center;
  transform: scale(var(--mk, 1));
  transition: fill .2s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.wmap-marker:hover .wmap-dot, .wmap-marker.is-hot .wmap-dot { fill: var(--gold); }
.wmap-label {
  font-family: 'Noto Serif', serif; font-weight: 700; font-size: 11px; fill: var(--map-label);
  paint-order: stroke; stroke: var(--bg-tint); stroke-width: 3px; stroke-linejoin: round;
}
.wmap-marker:hover .wmap-label, .wmap-marker.is-hot .wmap-label { fill: var(--navy); }

.wmap-tip {
  position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  background: var(--navy); color: var(--bg-tint); padding: 9px 12px; border-radius: 9px;
  font-size: 12px; line-height: 1.5; width: max-content; max-width: 240px;
  box-shadow: 0 16px 36px -12px var(--shadow-deep-60);
  opacity: 0; visibility: hidden; transition: opacity .16s ease;
}
.wmap-tip.show { opacity: 1; visibility: visible; }
.wmap-tip__city { font-family: 'Noto Sans', sans-serif; color: var(--white); font-size: 13.5px; margin-bottom: 5px; }
.wmap-tip b { color: var(--muted-7); font-weight: 700; }
.wmap-tip__tag { font-family: 'Noto Sans', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wmap-tip__tag--degree { color: var(--gold-soft); }
.wmap-tip__tag--cert   { color: var(--muted-6); }
.wmap-tip::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--navy);
}

.wmap-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 14px; margin-top: 18px; }
.wmap-loc {
  border: 1px solid var(--line-3); border-radius: 12px; padding: 15px 16px; background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.wmap-loc:hover, .wmap-loc.is-hot {
  transform: translateY(-3px); border-color: var(--gold);
  box-shadow: 0 16px 30px -20px var(--shadow-navy-45);
}
.wmap-loc__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wmap-loc__city { font-family: 'Noto Sans', sans-serif; font-size: 16.5px; color: var(--navy); }
.wmap-loc__badge {
  flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--navy); color: var(--muted-6); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .25s ease, color .25s ease;
}
.wmap-loc:hover .wmap-loc__badge, .wmap-loc.is-hot .wmap-loc__badge { background: var(--gold); color: var(--navy); }
.wmap-loc__country { font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted-3); font-weight: 600; margin-top: 3px; }
.wmap-loc__items { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.wmap-loc__item { display: flex; gap: 10px; font-size: 13.5px; color: var(--text); line-height: 1.4; }
.wmap-loc__yr { flex: none; min-width: 40px; font-family: 'Noto Sans', sans-serif; font-weight: 700; color: var(--muted-1); }
.wmap-loc__main { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.wmap-loc__txt { overflow-wrap: anywhere; }
/* Étiquette de type — diplôme (doré) vs certification (bleu) */
.wmap-tag {
  flex: none; font-family: 'Noto Sans', sans-serif;
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 999px; line-height: 1.65;
  border: 1px solid currentColor;
}
.wmap-tag--degree { color: var(--gold); }
.wmap-tag--cert   { color: var(--chev-blue); }

/* ============================================================
   7. EXPÉRIENCE & INSTITUTIONS
   ============================================================ */
.collabel { font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted-3); font-weight: 700; margin-bottom: 16px; }
.collabel--mt { margin: 34px 0 16px; }

.parc-row { border-top: 1px solid var(--line-soft); padding: 13px 0; }
.parc-period { font-family: 'Noto Sans', sans-serif; font-size: 14px; color: var(--gold); font-weight: 600; }
.parc-text { font-size: 15px; color: var(--text-strong); font-weight: 600; }
.parc-desc { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--text-desc); }

/* Parcours — bouton afficher / masquer le détail */
.parc-toggle {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'Noto Sans', sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: .02em; color: var(--gold); transition: color .2s ease;
}
.parc-toggle:hover { color: var(--navy); }
.parc-toggle__chev { font-size: 9px; color: var(--chev-blue); transition: transform .25s ease; }
.parc-toggle[aria-expanded="true"] .parc-toggle__chev { transform: rotate(180deg); }
.parc-desc-wrap { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.parc-desc-wrap.is-open { max-height: 600px; }
.parc-list { max-width: 760px; }

/* Consultant — grande carte dorée contenant une ligne continue qui défile */
.inst-carousel {
  position: relative;
  background: var(--navy);
  border: 1px solid var(--navy-line-1); border-radius: 18px;
  padding: 14px clamp(14px, 3vw, 26px);
  box-shadow: 0 18px 40px -22px var(--shadow-navy-70);
}
.inst-carousel__viewport { overflow: hidden; }
.inst-track {
  display: flex; width: max-content;
  animation: instScroll 15s linear infinite;
}
.inst-carousel:hover .inst-track { animation-play-state: paused; }
@keyframes instScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* liste doublée → boucle sans rupture */
}
@media (prefers-reduced-motion: reduce) {
  .inst-track { animation: none; }
}

.inst {
  flex: 0 0 auto; margin-right: 0;
  background: transparent; border: none; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 8px 0; min-height: 0;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), color .28s ease;
}
.inst:hover { transform: translateY(-2px); }
.inst:hover .inst__name { color: var(--gold); }
.inst__name { font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.2; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.6px; }
/* Point de séparation à égale distance entre chaque institution */
.inst::before {
  content: "•"; margin: 0 14px;
  color: var(--gold); font-weight: 700; font-size: 13px;
}

/* ============================================================
   7b. PROJETS INTERNATIONAUX — carrousel auto-défilant (gauche → droite)
   ============================================================ */
.proj-carousel {
  position: relative;
  background: var(--navy);
  border: 1px solid var(--navy-line-1); border-radius: 18px;
  padding: 16px clamp(14px, 3vw, 26px);
  box-shadow: 0 18px 40px -22px var(--shadow-navy-70);
  max-width: 960px; margin: 8px auto 0;
}
.proj-carousel__viewport { overflow: hidden; }
.proj-track {
  display: flex; width: max-content;
  animation: projScroll 22s linear infinite;
}
/* Pause au survol pour laisser le temps de lire un projet. */
.proj-carousel:hover .proj-track { animation-play-state: paused; }
@keyframes projScroll {
  from { transform: translateX(-50%); }   /* gauche → droite, boucle sans rupture */
  to   { transform: translateX(0); }
}

.proj-card {
  flex: 0 0 auto;
  display: flex; align-items: center;
  padding: 6px 0;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
/* Puce dorée de séparation entre chaque projet (comme « Consultant »). */
.proj-card::before {
  content: "•"; margin: 0 18px;
  color: var(--gold); font-weight: 700; font-size: 13px;
}
.proj-card__body { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.proj-card:hover { transform: translateY(-2px); }
.proj-card:hover .proj-card__title { color: var(--gold); }
.proj-card__title {
  font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.2;
  white-space: nowrap; text-transform: uppercase; letter-spacing: 0.6px;
  transition: color .28s ease;
}
.proj-card__place {
  font-size: 11px; font-weight: 600; color: var(--gold); line-height: 1.2;
  white-space: nowrap; letter-spacing: .02em;
}

@media (prefers-reduced-motion: reduce) {
  .proj-track { animation: none; }
}

/* ============================================================
   7c. MESSAGE DE CANDIDATURE — texte + vidéo
   ============================================================ */
.cand-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 52px); align-items: start;
  max-width: 1040px;
}
.cand-text .hero__candidacy { margin: 0; white-space: pre-line; }

/* Aperçu repliable : seul un extrait du message est visible, le reste via « Lire plus » */
.cand-text__body { position: relative; overflow: hidden; max-height: 2000px; transition: max-height .5s ease; }
.cand-text__body:not(.is-open) { max-height: 5.4em; }
.cand-text__body:not(.is-open)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.6em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--white));
  pointer-events: none;
}
.cand-more {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'Noto Sans', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .02em; color: var(--gold); transition: color .2s ease;
}
.cand-more:hover { color: var(--navy); }
.cand-more__chev { font-size: 9px; color: var(--chev-blue); transition: transform .25s ease; }
.cand-more[aria-expanded="true"] .cand-more__chev { transform: rotate(180deg); }
.cand-video { margin: 0; }
.cand-video__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px;
  background:
    radial-gradient(120% 120% at 28% 18%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(145deg, var(--navy) 0%, #11203b 100%);
  border: 1px solid var(--navy-line-1);
  box-shadow: 0 22px 48px -26px var(--shadow-navy-70);
  display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.cand-video__play {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.5);
  transition: transform .3s ease;
}
.cand-video__play::before {
  content: ""; display: block;
  border-style: solid; border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent var(--navy);
  margin-left: 4px;
}
.cand-video__frame:hover .cand-video__play { transform: scale(1.06); }
.cand-video__label {
  font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--white); opacity: .68; font-weight: 600;
}

/* ============================================================
   7e. CERTIFICATS PROFESSIONNELS — cartes
   ============================================================ */
.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 1.8vw, 20px); max-width: 920px;
}
.cert-card {
  position: relative; padding: 20px 22px;
  background: linear-gradient(160deg, var(--white) 0%, var(--bg-panel) 100%);
  border: 1px solid var(--line-3); border-radius: 14px;
  box-shadow: 0 12px 26px -22px var(--shadow-navy-45), 0 2px 6px -4px var(--shadow-navy-45);
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.cert-card:hover {
  transform: translateY(-3px); border-color: var(--gold);
  box-shadow: 0 22px 42px -22px var(--shadow-navy-70);
}
.cert-card__year { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--gold); }
.cert-card__title { margin-top: 7px; font-size: 14.5px; font-weight: 700; color: var(--text-strong); line-height: 1.4; }

/* ============================================================
   7f. AUTRES RÉALISATIONS — ouvrages & publications
   ============================================================ */
.book-list { max-width: 820px; }
.book-row {
  display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline;
  border-top: 1px solid var(--line-soft); padding: 12px 0;
}
.book-row:first-child { border-top: none; }
.book-title { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.book-meta { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-mute); }

/* Éléments « à compléter » (placeholders) */
.is-placeholder .cert-card__title,
.is-placeholder .book-title { font-style: italic; color: var(--text-mute); font-weight: 600; }
.cert-card.is-placeholder { border-style: dashed; background: var(--bg-panel); box-shadow: none; }

@media (max-width: 760px) {
  .cand-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   8. UN/CEFACT
   ============================================================ */
.unc-card {
  background: var(--bg-panel); border-left: 3px solid var(--text-strong); padding: clamp(24px,3vw,36px);
  transition: box-shadow .35s ease, transform .35s ease;
}
.unc-card:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -28px var(--shadow-navy-45); }
.unc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 26px; }
.unc-period { font-family: 'Noto Sans', sans-serif; font-size: 17px; color: var(--gold); }
.unc-text { font-size: 14.5px; color: var(--text-soft); margin-top: 4px; }
.unc-def { border-top: 1px solid var(--line-2); margin-top: 24px; padding-top: 18px; font-style: italic; font-size: 14px; color: var(--text-faint); }

/* ============================================================
   9. MANDATS
   ============================================================ */
.mand-row { display: grid; grid-template-columns: 150px 1fr; gap: 22px; border-top: 1px solid var(--line-soft); padding: 15px 0; align-items: baseline; }
.mand-period { font-family: 'Noto Sans', sans-serif; font-size: 14.5px; color: var(--muted-1); }
.mand-text { font-size: 15.5px; color: var(--text-strong); }
.mand-list { max-width: 820px; }
.mand-list .mand-row:first-child { border-top: none; }

/* ============================================================
   10. ANIMATIONS AU SCROLL & SURVOLS
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Survol des lignes de liste */
.parc-row, .mand-row {
  padding-left: 0;
  transition: background-color .3s ease, padding-left .3s ease, border-color .3s ease;
}
.parc-row:hover, .mand-row:hover {
  background-color: var(--bg-panel); padding-left: 14px; border-color: var(--line-hover);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__content, .hero__bg,
  .hero__role { transition: none !important; animation: none !important; transform: none !important; opacity: 1 !important; }
  .hero__scroll-chev { animation: none; }
  .wmap-marker { opacity: 1 !important; transform: none !important; transition: none !important; }
  .wmap-halo { animation: none; transform: scale(var(--mk, 1)); }
  html { scroll-behavior: auto; }
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.footer { background: var(--navy); color: var(--text-on-navy); padding: clamp(34px,4vw,52px) clamp(26px,5vw,68px); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end; }
.footer__name { font-family: 'Noto Sans', sans-serif; color: var(--white); font-size: 24px; }
.footer__note { font-size: 13.5px; color: var(--muted-2); margin-top: 8px; max-width: 60ch; }
.footer__contact { font-size: 13.5px; color: var(--muted-6); text-align: right; line-height: 1.8; }

/* ============================================================
   12. RESPONSIVE
   ============================================================ */

/* Tablette & mobile : sidebar -> barre supérieure */
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .main { flex: 1 1 auto; width: 100%; min-width: 0; }

  .sidebar {
    position: sticky; top: 0; z-index: 150;
    flex: none; width: 100%; max-width: none; min-width: 0;
    height: auto; min-height: 0; overflow: visible;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px;
    padding: 11px clamp(16px,4vw,28px);
    box-shadow: 0 8px 22px -14px var(--shadow-deep-70);
  }
  .brand { gap: 10px; }
  .brand__mark { width: 40px; height: 40px; font-size: 15px; }
  .brand__name { font-size: 14px; }

  .langtoggle--side { margin-left: auto; align-self: center; }

  .nav {
    order: 3; flex-basis: 100%; margin-top: 2px;
    flex-direction: row; gap: 7px;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 1px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-btn {
    flex: none; gap: 0; padding: 7px 13px;
    border: 1px solid var(--navy-line-2); border-radius: 999px;
    white-space: nowrap; font-size: 13.5px; color: var(--muted-5);
  }
  .nav-btn .nav-line { display: none; }
  .nav-btn.is-active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

  .side-cta, .side-contact { display: none; }

  /* Portrait : remplit tout le héros sans laisser de bande sous l'image */
  .hero__bg { background-size: cover; }

  /* décalage d'ancrage sous la barre collante */
  .hero, .section { scroll-margin-top: 96px; }
}

/* Mobile */
@media (max-width: 560px) {
  /* Héros : portrait en plein cadre, texte aligné en bas sous le visage */
  .hero {
    min-height: 86vh; min-height: 86svh;
    align-items: flex-end;
    padding-bottom: clamp(34px, 8vw, 54px);
  }
  .hero__overlay {
    background: none;
  }
  .hero__name { font-size: clamp(28px, 8vw, 38px); }
  .hero__role { font-size: 15.5px; margin-bottom: 22px; }
  .hero__scroll { display: none; }

  .inst { padding: 7px 0; }
  .inst__name { font-size: 12.5px; }

  .mand-row { grid-template-columns: 1fr; gap: 3px; padding: 12px 0; }

  /* Carte : zoomée sur les marqueurs via viewBox (JS) ; libellés masqués -> la légende prend le relais */
  .wmap-label { display: none; }
  .wmap { min-height: 132px; }
  .wmap-cap { flex-direction: column; gap: 3px; }
  .wmap-cap__hint::before { content: ""; }

  /* Cartes de légende : une colonne pleine largeur, texte qui ne déborde pas */
  .wmap-legend { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .wmap-loc { padding: 14px 15px; }
  .wmap-loc__item { min-width: 0; }
  .wmap-loc__item > span { min-width: 0; overflow-wrap: anywhere; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__contact { text-align: left; }
}

/* Petits mobiles */
@media (max-width: 380px) {
  .brand__name { font-size: 13px; }
  .nav-btn { padding: 6px 11px; font-size: 13px; }
  .statband__grid { grid-template-columns: 1fr 1fr; }
}
