/* =====================================================
   UMR AMES — feuille de style du site public
   Direction « Sahel lumineux » : sable, ocre, bleu profond.
   Polices libres (SIL OFL) hébergées sur le serveur.
   ===================================================== */

@font-face { font-family: "Figtree"; src: url("../polices/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../polices/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --sable: #f7f1e7;
  --blanc: #ffffff;
  --texte: #2b2420;
  --second: #665a50;
  --bleu: #1d4a66;
  --bleu-clair: #d6e3ec;
  --ocre: #9a4617;
  --ocre-fonce: #7d3810;
  --ocre-clair: #f2c9a8;
  --vert: #2d6a4e;
  --nuit: #231a14;
  --filet: #e6dccb;
  --titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --rayon: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--sable); color: var(--texte); font: 400 18px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocre); text-underline-offset: .2em; }
a:hover { color: var(--ocre-fonce); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }
.w { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.icone { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; flex: none; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--bleu); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.evitement:focus { top: 12px; color: #fff; }
main:focus { outline: none; }
[hidden] { display: none !important; }

/* ---------- En-tête ---------- */
header.site { background: var(--bleu); color: #fff; position: relative; z-index: 3; }
header.site.sur-photo { position: absolute; left: 0; right: 0; background: transparent; }
header.site .w { display: flex; align-items: center; gap: 28px; min-height: 80px; }
header.site a { color: inherit; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 800 20px/1 var(--titre); white-space: nowrap; }
/* Logo : cube tournant UMR AMES / ISGI */
.logo-cube-scene { width: 44px; height: 44px; perspective: 260px; flex: none; }
.logo-cube { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; animation: cube 9s infinite cubic-bezier(.5, 0, .5, 1); }
.logo-cube-scene:hover .logo-cube { animation-play-state: paused; }
.cube-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 9px; overflow: hidden; backface-visibility: hidden; }
.cube-face img { width: 38px; height: 38px; object-fit: contain; }
.cube-front { transform: rotateY(0deg) translateZ(22px); }
.cube-right { transform: rotateY(90deg) translateZ(22px); }
.cube-back { transform: rotateY(180deg) translateZ(22px); }
.cube-left { transform: rotateY(270deg) translateZ(22px); }
@keyframes cube { 0%, 20% { transform: rotateY(0deg); } 45%, 70% { transform: rotateY(-90deg); } 95%, 100% { transform: rotateY(-180deg); } }
nav.principal ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
nav.principal a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.sur-photo nav.principal a { text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
nav.principal a:hover, nav.principal a[aria-current="page"] { border-bottom-color: currentColor; }
.util { margin-left: auto; display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: 15px; }
.util a { text-decoration: none; }
.util a:hover { text-decoration: underline; }
.util .espace, .menu-mobile .espace { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .65); padding: 9px 16px; border-radius: 999px; }
.menu-mobile { display: none; margin-left: auto; position: relative; }
.menu-mobile summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .7); padding: 9px 16px; border-radius: 999px; background: rgba(24, 17, 12, .35); }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: var(--sable); color: var(--texte); border-radius: 16px; padding: 10px 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile li { border-bottom: 1px solid var(--filet); }
.menu-mobile li:last-child { border-bottom: 0; }
.menu-mobile a { display: block; padding: 12px 0; text-decoration: none; font-weight: 600; color: var(--texte); }
.menu-mobile a[aria-current="page"] { color: var(--ocre); }
.menu-mobile .espace { display: inline-block; margin: 10px 0; padding: 9px 16px; background: var(--bleu); color: #fff; border: 0; }

/* ---------- Ouverture de la page d'accueil ---------- */
.hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; color: #fff; background: var(--nuit); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 17, 12, .74) 0%, rgba(24, 17, 12, .5) 30%, rgba(24, 17, 12, .66) 55%, rgba(24, 17, 12, .93) 100%); }
.hero .w { position: relative; z-index: 2; width: 100%; padding-top: 160px; padding-bottom: 72px; }
.hero-texte { max-width: 840px; }
.etiquette { display: inline-block; font: 600 14px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; background: var(--sable); color: var(--bleu); padding: 8px 14px; border-radius: 999px; margin: 0 0 22px; }
.hero h1 { font: 800 clamp(38px, 5.4vw, 68px)/1.03 var(--titre); letter-spacing: -.025em; margin: 0 0 22px; }
.accroche { font-size: 21px; line-height: 1.5; margin: 0 0 30px; max-width: 36em; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; }
.credit { position: absolute; right: 32px; bottom: 18px; z-index: 2; font-size: 13px; margin: 0; background: rgba(24, 17, 12, .72); padding: 4px 12px; border-radius: 999px; }

.bouton { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 17px/1.1 var(--sans); padding: 16px 26px; border-radius: 999px; border: 2px solid transparent; }
.bouton.ocre { background: var(--ocre); color: #fff; }
.bouton.ocre:hover { background: var(--ocre-fonce); color: #fff; }
.bouton.clair { background: #fff; color: var(--texte); }
.bouton.clair:hover { background: var(--sable); color: var(--texte); }

.statut { background: var(--bleu); color: #fff; }
.statut .w { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; padding-top: 38px; padding-bottom: 38px; align-items: center; }
.statut p { margin: 0; font-size: 17px; }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.chiffres dt { font: 800 42px/1 var(--titre); }
.chiffres dd { margin: 6px 0 0; font-size: 15px; line-height: 1.35; color: var(--bleu-clair); }

/* ---------- Pages intérieures ---------- */
.bandeau { background: var(--bleu); color: #fff; padding: 56px 0 60px; }
.bandeau .surtitre { font: 600 14px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ocre-clair); margin: 0 0 12px; }
.bandeau h1 { font: 800 clamp(34px, 4.6vw, 56px)/1.05 var(--titre); letter-spacing: -.02em; margin: 0; max-width: 22em; }
.bandeau .chapeau { color: var(--bleu-clair); font-size: 20px; margin: 16px 0 0; max-width: 42em; }

.sous-menu { background: var(--blanc); border-bottom: 1px solid var(--filet); }
.sous-menu ul { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 14px 0; }
.sous-menu a { font-weight: 600; text-decoration: none; }
.sous-menu a:hover { text-decoration: underline; }

section.bloc { padding: 88px 0; }
section.bloc.blanc { background: var(--blanc); }
h2.titre { font: 800 clamp(30px, 3.4vw, 44px)/1.08 var(--titre); letter-spacing: -.02em; color: var(--bleu); margin: 0 0 16px; }
.sous-titre { font: 700 22px/1.3 var(--titre); color: var(--texte); margin: 44px 0 18px; }
.chapeau { font-size: 19px; color: var(--second); max-width: 42em; margin: 0 0 40px; }
.entete-section { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.entete-section h2.titre { margin: 0; }
.lien { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 30px; }
.entete-section .lien { margin-top: 0; }
.attenue { color: var(--second); }

/* Texte long (présentation, CIMPA, actualités) */
.colonnes { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; align-items: start; }
.texte { max-width: 44em; }
.texte > p:first-child { margin-top: 0; }
.texte h2 { font: 800 30px/1.15 var(--titre); color: var(--bleu); margin: 56px 0 16px; letter-spacing: -.015em; }
.texte h3 { font: 700 23px/1.25 var(--titre); margin: 36px 0 10px; }
.texte h4 { font: 700 19px/1.3 var(--titre); margin: 28px 0 4px; }
.texte h4 + p { margin-top: 4px; }
.texte ul { padding-left: 1.2em; }
.texte li { margin: 4px 0; }
.texte li::marker { color: var(--ocre); }
.texte em { color: var(--second); }
.texte strong { font-weight: 700; }
.illustration { margin: 28px 0; }
.illustration img { border-radius: var(--rayon); }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 24px 0; }
.galerie a { display: block; border-radius: 14px; overflow: hidden; background: var(--filet); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.galerie a:hover img { transform: scale(1.04); }
.tableau { overflow-x: auto; margin: 20px 0; border-radius: 14px; border: 1px solid var(--filet); background: var(--blanc); }
.tableau table { border-collapse: collapse; width: 100%; font-size: 16px; }
.tableau th, .tableau td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.tableau th { background: #efe6d6; font-weight: 600; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau td:first-child, .tableau th:first-child { text-align: right; width: 3.5em; color: var(--second); }

.reperes { background: var(--blanc); border-radius: var(--rayon); padding: 28px 30px; position: sticky; top: 24px; }
.reperes dl { margin: 0; }
.reperes div { padding: 14px 0; border-bottom: 1px solid var(--filet); }
.reperes div:first-child { padding-top: 0; }
.reperes div:last-child { border-bottom: 0; padding-bottom: 0; }
.reperes dt { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--second); }
.reperes dd { margin: 4px 0 0; }

/* ---------- Axes et pôles ---------- */
.mosaique { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.carte-axe { background: var(--blanc); border-radius: var(--rayon); padding: 32px; grid-column: span 4; }
.mosaique.poles .carte-axe { grid-column: span 6; }
.carte-axe h2, .carte-axe h3 { font: 700 24px/1.2 var(--titre); margin: 16px 0 10px; }
.carte-axe p:not(.pastille) { margin: 0; color: var(--second); font-size: 17px; }
.carte-axe.pole { background: transparent; border: 2px solid var(--bleu); }
.pastille, .carte-axe .pastille { display: inline-block; font: 700 14px/1 var(--titre); letter-spacing: .06em; color: #fff; background: var(--vert); padding: 7px 12px; border-radius: 999px; margin: 0; }
.carte-axe.pole .pastille { background: var(--bleu); color: #fff; }
.pastille.petite { font-size: 12px; padding: 5px 10px; margin-top: 8px; background: var(--bleu); }
.mosaique.detail .carte-axe p:not(.pastille) { color: var(--texte); }
section.blanc .carte-axe { background: var(--sable); }

/* ---------- Projets ---------- */
.projets { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.projet { background: var(--bleu); color: #fff; border-radius: var(--rayon); padding: 36px; }
.projet .num { font: 800 18px/1 var(--titre); color: var(--ocre-clair); margin: 0; }
.projet h2, .projet h3 { font: 700 24px/1.25 var(--titre); margin: 14px 0 10px; }
.projet p { margin: 0; color: var(--bleu-clair); font-size: 16px; }
.projet .texte-clair p { color: #fff; font-size: 17px; margin: 18px 0 0; }
.equipe-projet { margin: 22px 0 0; font-size: 16px; }
.equipe-projet dt { font-weight: 600; color: var(--ocre-clair); margin-top: 10px; }
.equipe-projet dd { margin: 2px 0 0; }
.mots-cles { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.mots-cles li { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.fiche .mots-cles li { background: var(--sable); color: var(--bleu); }

/* ---------- École CIMPA (accueil) ---------- */
.cimpa-accueil { display: grid; grid-template-columns: 6fr 6fr; gap: 48px; align-items: center; }
.cimpa-accueil img { border-radius: var(--rayon); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.etiquette-texte { font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--vert); margin: 0 0 10px; }
.sujet { font: 700 23px/1.3 var(--titre); margin: 0 0 20px; }
.infos { margin: 0 0 28px; }
.infos dt { font-size: 14px; color: var(--second); }
.infos dd { margin: 0 0 12px; font-weight: 600; }

/* ---------- Actualités ---------- */
.actus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.carte-actu { background: var(--sable); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
section.bloc:not(.blanc) .carte-actu { background: var(--blanc); }
.carte-actu .vignette { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.carte-actu .corps { padding: 24px 26px 28px; }
.carte-actu .meta { font-size: 15px; color: var(--second); margin: 0; }
.carte-actu .type { font-weight: 600; color: var(--vert); margin-left: 6px; }
.carte-actu h2, .carte-actu h3 { font: 700 21px/1.25 var(--titre); margin: 8px 0; }
.carte-actu h2 a, .carte-actu h3 a { color: var(--texte); text-decoration: none; }
.carte-actu h2 a:hover, .carte-actu h3 a:hover { color: var(--ocre); text-decoration: underline; }
.carte-actu p { margin: 0; color: var(--second); font-size: 16px; }
.actus.liste { grid-template-columns: repeat(2, 1fr); }
.article { max-width: 900px; }
.article .une img { border-radius: var(--rayon); max-height: 560px; width: auto; }

/* ---------- Institutions ---------- */
.institutions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.institutions li { background: var(--blanc); border-radius: var(--rayon); padding: 24px 14px; text-align: center; }
section.blanc .institutions li { background: var(--sable); }
.institutions img { height: 62px; width: auto; margin: 0 auto 12px; object-fit: contain; }
.institutions p { margin: 0; font-size: 15px; line-height: 1.35; }
.institutions a { color: var(--texte); }
.institutions .role { display: block; font-size: 13px; font-weight: 600; color: var(--vert); margin-top: 4px; }

/* ---------- Instances ---------- */
.instances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.instances > div { background: var(--sable); border-radius: var(--rayon); padding: 26px; }
.instances h3 { font: 700 20px/1.3 var(--titre); margin: 0 0 10px; color: var(--bleu); }
.instances ul { list-style: none; margin: 0; padding: 0; }
.instances li { padding: 6px 0; border-bottom: 1px solid var(--filet); }
.instances .role { font-size: 14px; color: var(--second); display: block; }

/* ---------- Publications ---------- */
.filtres { background: var(--blanc); border-radius: var(--rayon); padding: 20px 24px; margin-bottom: 36px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.filtres p { margin: 0; font-weight: 600; }
.filtres div { display: flex; flex-wrap: wrap; gap: 8px; }
.filtres button { font: 600 15px/1 var(--sans); padding: 10px 16px; border-radius: 999px; border: 2px solid var(--bleu); background: transparent; color: var(--bleu); cursor: pointer; }
.filtres button[aria-pressed="true"] { background: var(--bleu); color: #fff; }
.filtres .compte { font-weight: 400; color: var(--second); margin-left: auto; }
.annee h2 { font: 800 28px/1 var(--titre); color: var(--bleu); margin: 40px 0 12px; }
.annee:first-of-type h2 { margin-top: 0; }
ol.publications { list-style: none; margin: 0; padding: 0; }
ol.publications li { background: var(--blanc); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.pub-titre { font-weight: 600; margin: 0 0 4px; }
.pub-titre a { color: var(--texte); }
.pub-titre a:hover { color: var(--ocre); }
.pub-auteurs, .pub-revue { margin: 0; font-size: 16px; color: var(--second); }
.pub-revue { font-style: italic; }
.pub-axes { margin: 8px 0 0; display: flex; gap: 6px; }
.pub-axes span { font: 700 12px/1 var(--titre); letter-spacing: .05em; padding: 5px 9px; border-radius: 999px; background: var(--sable); color: var(--bleu); }

/* ---------- Membres ---------- */
.recherche-nom { background: var(--blanc); border-radius: var(--rayon); padding: 20px 24px; margin-bottom: 40px; }
.recherche-nom label { display: block; font-weight: 600; margin-bottom: 8px; }
.recherche-nom .champ { display: flex; align-items: center; gap: 10px; border: 2px solid var(--second); border-radius: 999px; padding: 0 18px; background: var(--blanc); max-width: 520px; }
.recherche-nom .champ:focus-within { border-color: var(--bleu); outline: 3px solid var(--bleu); outline-offset: 2px; }
.recherche-nom input { border: 0; font: inherit; padding: 12px 0; width: 100%; background: transparent; color: var(--texte); }
.recherche-nom input:focus { outline: none; }
.recherche-nom .compte { margin: 10px 0 0; color: var(--second); }
.recherche-nom .compte:empty { display: none; }
.groupe-membres { margin-bottom: 48px; }
.groupe-membres .nombre { color: var(--second); font-weight: 700; font-size: .7em; }
ul.membres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
ul.membres li { background: var(--blanc); border-radius: 18px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.initiales { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--bleu); color: #fff; display: grid; place-items: center; font: 700 17px/1 var(--titre); }
ul.membres .nom { font-weight: 700; margin: 0; line-height: 1.3; }
ul.membres .nom a { color: var(--texte); }
ul.membres .nom a:hover { color: var(--ocre); }
ul.membres .grade { margin: 2px 0 0; font-size: 15px; color: var(--vert); font-weight: 600; }
ul.membres .details { margin: 2px 0 0; font-size: 15px; color: var(--second); }
.legende { font-size: 15px; color: var(--second); }

/* ---------- Fiche chercheur ---------- */
.fiche { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.fiche-cote { background: var(--blanc); border-radius: var(--rayon); padding: 28px; }
.fiche-photo { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; margin-bottom: 18px; }
.fiche-cote .mots-cles { margin-top: 0; }
.fiche-liens { list-style: none; padding: 0; margin: 20px 0 0; }
.fiche-liens li { padding: 6px 0; border-bottom: 1px solid var(--filet); }
.metriques { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 0; text-align: center; }
.metriques dt { font-size: 13px; color: var(--second); }
.metriques dd { margin: 0; font: 800 28px/1.1 var(--titre); color: var(--bleu); }

/* ---------- Contact ---------- */
.contact-cartes { display: grid; gap: 18px; }
.contact-cartes .carte { background: var(--blanc); border-radius: var(--rayon); padding: 28px 30px; }
.contact-cartes .icone { width: 28px; height: 28px; color: var(--ocre); }
.contact-cartes h2 { font: 700 21px/1.3 var(--titre); margin: 10px 0 6px; }
.contact-cartes p { margin: 0; }
.gros-lien { font-size: 22px; font-weight: 600; word-break: break-word; }
.contact-cartes .attenue { margin-top: 8px; font-size: 16px; }
.page-contact .colonnes { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* ---------- Pied de page ---------- */
footer.site { background: var(--nuit); color: #f1e9dc; padding: 64px 0 36px; font-size: 16px; }
footer.site .w:first-child { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 40px; }
footer.site a { color: var(--ocre-clair); }
footer.site a:hover { color: #fff; }
footer.site p { margin: 0 0 6px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 0 0 6px; }
footer.site .attenue { color: #cbbfae; }
.pied-titre { font: 700 18px/1.3 var(--titre); color: #fff; margin-bottom: 12px !important; }
.pied-bas { margin-top: 44px; padding-top: 22px; border-top: 1px solid #4a3c31; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: #cbbfae; }
.pied-bas p { margin: 0; }

/* ---------- Couleurs des axes et des pôles ---------- */
.c-ern { --c: #1b7a4f; } .c-spe { --c: #b43c0c; } .c-giosi { --c: #8a5a00; } .c-msm { --c: #2f5fc4; } .c-iia { --c: #6d44c2; }
.carte-axe[class*="c-"] { border-top: 6px solid var(--c); }
.carte-axe.pole[class*="c-"] { border: 2px solid var(--c); border-top-width: 6px; }
.carte-axe[class*="c-"] .pastille, .pastille.petite[class*="c-"] { background: var(--c); color: #fff; }
.pub-axes span[class*="c-"] { background: var(--c); color: #fff; }
.filtres button[class*="c-"] { border-color: var(--c); color: var(--c); }
.filtres button[class*="c-"][aria-pressed="true"] { background: var(--c); color: #fff; }

/* ---------- Page Recherche : figure d'écoulement ---------- */
.figure-ecoulement { position: relative; overflow: hidden; background: #0c1b2a; padding: 88px 0 96px; }
.fond-figure { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.figure-ecoulement::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 27, 42, .96) 0%, rgba(12, 27, 42, .86) 45%, rgba(12, 27, 42, .2) 80%, rgba(12, 27, 42, 0) 100%); }
.figure-ecoulement .w { position: relative; z-index: 1; }
.figure-ecoulement .surtitre { color: #4fd1c5; }
.figure-ecoulement .chapeau { color: #e8eef3; }
.legende-figure { position: absolute; right: 32px; bottom: 14px; z-index: 1; margin: 0; max-width: 460px; text-align: right; font-size: 13px; line-height: 1.4; color: #c9d6e2; background: rgba(12, 27, 42, .9); padding: 6px 10px; border-radius: 8px; }
.sous-menu a[aria-current="page"] { color: var(--texte); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--ocre); }

/* ---------- École CIMPA : sommaire et parcours ---------- */
.titre-section { font: 800 clamp(28px, 3vw, 38px)/1.1 var(--titre); color: var(--bleu); margin: 0 0 20px; letter-spacing: -.015em; }
.texte.long > .titre-section + p { margin-top: 0; }
.cote { display: grid; gap: 20px; align-content: start; position: sticky; top: 24px; }
.cote .reperes { position: static; }
.sommaire { background: var(--blanc); border-radius: var(--rayon); padding: 22px 26px; }
.sommaire-titre { font-weight: 700; margin: 0 0 8px; }
.sommaire ol { margin: 0; padding-left: 1.3em; }
.sommaire li { margin: 4px 0; }
.sommaire li::marker { color: var(--second); }
.sommaire a { text-decoration: none; }
.sommaire a:hover { text-decoration: underline; }
.sommaire a[aria-current="page"] { color: var(--texte); font-weight: 700; }
.precedent-suivant { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--filet); }
.precedent-suivant a { display: block; max-width: 48%; text-decoration: none; font-weight: 600; }
.precedent-suivant a span { display: block; font-size: 14px; font-weight: 400; color: var(--second); }
.precedent-suivant .suiv { margin-left: auto; text-align: right; }
.precedent-suivant a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .figure-ecoulement { padding: 48px 0 110px; }
  .figure-ecoulement::after { background: rgba(12, 27, 42, .84); }
  .legende-figure { left: 20px; right: 20px; text-align: left; max-width: none; }
  .cote { position: static; order: -1; }
  .cimpa .reperes { display: none; }
}

/* ---------- Accueil : page d'entrée courte ---------- */
section.bloc.compact { padding: 64px 0; }
.chiffres a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(214, 227, 236, .5); }
.chiffres a:hover { color: #fff; border-bottom-color: #fff; }
.tuiles-axes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tuiles-axes .nom { overflow-wrap: anywhere; hyphens: auto; }
.tuiles-axes a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px 20px; background: var(--blanc); border-radius: 18px; border-top: 6px solid var(--c); text-decoration: none; color: var(--texte); transition: transform .2s ease, box-shadow .2s ease; }
.tuiles-axes a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(43, 36, 32, .12); color: var(--texte); }
.tuiles-axes .pastille { align-self: flex-start; background: var(--c); color: #fff; }
.tuiles-axes .nom { font: 700 18px/1.25 var(--titre); }
.tuiles-axes .type { margin-top: auto; font-size: 14px; color: var(--second); }
.deux-encarts { display: grid; grid-template-columns: 7fr 5fr; gap: 22px; }
.encart { display: grid; grid-template-columns: 5fr 6fr; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; text-decoration: none; color: var(--texte); }
.encart:hover { color: var(--texte); box-shadow: 0 10px 24px rgba(43, 36, 32, .12); }
.encart img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.encart-corps { display: flex; flex-direction: column; gap: 8px; padding: 28px; }
.encart-titre { font: 800 24px/1.15 var(--titre); color: var(--bleu); }
.encart .lien { margin-top: auto; padding-top: 8px; color: var(--ocre); }
.encart.bleu { grid-template-columns: 1fr; background: var(--bleu); color: #fff; }
.encart.bleu .encart-titre { color: #fff; }
.encart.bleu .etiquette-texte { color: var(--ocre-clair); }
.encart.bleu .lien { color: var(--ocre-clair); }
@media (max-width: 1100px) { .tuiles-axes { grid-template-columns: repeat(3, minmax(0, 1fr)); } .deux-encarts { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .tuiles-axes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tuiles-axes a { padding: 18px 14px; }
  .encart { grid-template-columns: 1fr; }
  .encart img { min-height: 0; aspect-ratio: 16 / 9; }
  section.bloc.compact { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) { .tuiles-axes a { transition: none; } .tuiles-axes a:hover { transform: none; } }

/* ---------- Page Recherche : figure produite par l'unité ---------- */
.figure-unite { background: #0c1b2a; }
.figure-unite .surtitre { color: #4fd1c5; }
.figure-unite .chapeau { color: #e8eef3; }
.figure-unite figure { margin: 32px 0 0; }
.figure-unite figure img { width: 100%; border-radius: 12px; background: #fff; }
.figure-unite figcaption { margin-top: 10px; font-size: 14px; color: #c9d6e2; }

/* ---------- Diaporamas ---------- */
.diapos { position: absolute; inset: 0; }
.diapo { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.diapo.actif { opacity: 1; visibility: visible; }
.hero .diapo .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* Couches : photos (avec leur voile et leur légende) < texte < boutons */
.diapos { z-index: 0; }
[data-diaporama] .w { z-index: 1; pointer-events: none; }
[data-diaporama] .w * { pointer-events: auto; }
.hero[data-diaporama]::after, .figure-ecoulement[data-diaporama]::after { display: none; }
.hero .diapo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 17, 12, .74) 0%, rgba(24, 17, 12, .5) 30%, rgba(24, 17, 12, .66) 55%, rgba(24, 17, 12, .93) 100%); }
.figure-ecoulement .diapo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 27, 42, .96) 0%, rgba(12, 27, 42, .86) 45%, rgba(12, 27, 42, .2) 80%, rgba(12, 27, 42, 0) 100%); }
.diapo-titre { position: absolute; z-index: 2; left: max(32px, calc((100% - 1240px) / 2 + 32px)); bottom: 18px; max-width: min(640px, calc(100% - 220px)); background: rgba(24, 17, 12, .78); color: #fff; padding: 8px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.diapo-titre a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.diapo-titre a:hover { color: var(--ocre-clair); }
.credit-photo { display: block; font-weight: 400; font-size: 12px; color: #e6dccb; margin-top: 2px; }
.diaporama-controles { position: absolute; z-index: 3; right: max(32px, calc((100% - 1240px) / 2 + 32px)); bottom: 18px; display: flex; align-items: center; gap: 8px; background: rgba(24, 17, 12, .78); color: #fff; padding: 6px; border-radius: 999px; }
.diaporama-controles button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.diaporama-controles button:hover { background: rgba(255, 255, 255, .15); }
.diaporama-controles span { font-size: 14px; padding: 0 4px; min-width: 3.5em; text-align: center; }
.diaporama-controles .i-lecture { display: none; }
.en-pause .i-pause { display: none; }
.en-pause .i-lecture { display: inline; }
.figure-ecoulement .diapo .fond-figure { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.figure-ecoulement .legende-figure { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; right: auto; left: max(32px, calc((100% - 1240px) / 2 + 32px)); text-align: left; max-width: min(620px, calc(100% - 200px)); z-index: 2; }
.figure-ecoulement .legende-figure strong { color: #fff; }
.figure-ecoulement .legende-figure .pastille { background: var(--c); color: #fff; font-size: 12px; padding: 5px 9px; }
.figure-ecoulement .legende-figure .note { flex-basis: 100%; font-size: 12px; }
.figure-ecoulement .diaporama-controles { background: rgba(12, 27, 42, .9); }
@media (max-width: 760px) {
  .diapo-titre { left: 20px; right: 20px; bottom: 76px; max-width: none; }
  .diaporama-controles { right: 20px; bottom: 16px; }
  .hero[data-diaporama] .w { padding-bottom: 170px; }
  .figure-ecoulement[data-diaporama] { padding-bottom: 180px; }
  .hero .diapo::after { background: linear-gradient(180deg, rgba(24, 17, 12, .8) 0%, rgba(24, 17, 12, .75) 50%, rgba(24, 17, 12, .93) 100%); }
  .figure-ecoulement .diapo::after { background: rgba(12, 27, 42, .84); }
  .figure-ecoulement .legende-figure { left: 20px; right: 20px; bottom: 72px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .diapo { transition: none; } .logo-cube { animation: none; } }

/* ---------- Pages d'équipe ---------- */
.fiche-equipe { background: var(--blanc); border-radius: var(--rayon); border-top: 6px solid var(--c); padding: 24px 28px; margin-bottom: 36px; }
.fiche-equipe .pastille { background: var(--c); color: #fff; }
.fiche-equipe dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 16px 0 0; }
.fiche-equipe dl div { display: contents; }
.fiche-equipe dt { font-weight: 600; color: var(--second); }
.fiche-equipe dd { margin: 0; }
.fiche-equipe .question { margin: 16px 0 0; font: 700 19px/1.4 var(--titre); color: var(--bleu); }
.equipe-page .texte h3 { color: var(--texte); }
.liste-membres { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.liste-membres li { background: var(--blanc); border-radius: 12px; padding: 10px 14px; margin: 0; }
.liste-membres .nom { font-weight: 700; display: block; }
.liste-membres .nom a { color: var(--texte); }
.liste-membres .grade { font-size: 15px; color: var(--second); }
.carte-axe .suite { margin-top: 14px; }
.carte-axe .suite .lien { margin-top: 0; }
ul.membres .badges { display: flex; gap: 6px; margin: 8px 0 0; }
ul.membres .badges .pastille { margin: 0; background: var(--c); color: #fff; text-decoration: none; }
.sommaire ul { margin: 0; padding-left: 1.1em; }
.sommaire ul a[aria-current="page"] { color: var(--texte); font-weight: 700; }
@media (max-width: 760px) { .liste-membres { grid-template-columns: 1fr; } }

/* ---------- Apparition douce au défilement ---------- */
.js .revele { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .revele.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .revele { opacity: 1; transform: none; transition: none; }
  .galerie img { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Écrans moyens ---------- */
@media (max-width: 1100px) {
  nav.principal ul { gap: 16px; }
  nav.principal a { font-size: 15px; }
  .carte-axe, .mosaique.poles .carte-axe { grid-column: span 6; }
  .institutions { grid-template-columns: repeat(3, 1fr); }
  ul.membres { grid-template-columns: repeat(2, 1fr); }
  .statut .w { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 980px) {
  nav.principal, .util { display: none; }
  .menu-mobile { display: block; }
}

/* ---------- Téléphones ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .w { padding: 0 20px; }
  header.site .w { min-height: 70px; }
  .hero { min-height: 0; }
  .hero .w { padding-top: 120px; padding-bottom: 76px; }
  .hero::after { background: linear-gradient(180deg, rgba(24, 17, 12, .8) 0%, rgba(24, 17, 12, .75) 50%, rgba(24, 17, 12, .93) 100%); }
  .accroche { font-size: 19px; }
  .credit { left: 20px; right: auto; }
  .chiffres { grid-template-columns: repeat(2, 1fr); }
  .chiffres dt { font-size: 36px; }
  section.bloc { padding: 60px 0; }
  .bandeau { padding: 40px 0 44px; }
  .bandeau .chapeau { font-size: 18px; }
  .carte-axe, .mosaique.poles .carte-axe { grid-column: 1 / -1; padding: 26px; }
  .projets, .cimpa-accueil, .actus, .actus.liste, .colonnes, .fiche, .page-contact .colonnes, .instances, footer.site .w:first-child { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .projet { padding: 28px; }
  .institutions { grid-template-columns: repeat(2, 1fr); }
  ul.membres { grid-template-columns: 1fr; }
  .reperes { position: static; }
  .filtres .compte { margin-left: 0; }
  .texte h2 { font-size: 26px; }
}

@media print {
  header.site, .menu-mobile, .sous-menu, .filtres, .recherche-nom, footer.site, .credit { display: none !important; }
  body { background: #fff; }
  .bandeau, .projet, .statut { background: none; color: #000; }
}
