/* ── Vitrine publique ───────────────────────────────────────────────────────
   Reprend les variables de style.css / branding.css : la vitrine suit donc le
   thème et la palette configurés pour l'instance, sans duplication de couleurs.
   Mise en page volontairement plus aérée que le portail : lecture longue par
   des visiteurs, pas consultation rapide par des membres. */

.pub-body {
  display: block;
  min-height: 100vh;
  background: var(--bg);
  line-height: 1.65;
}

/* ── Barre de navigation ── */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem clamp(1rem, 5vw, 3.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.pub-brand { display: flex; align-items: center; flex-shrink: 0; }
.pub-brand img { height: 34px; width: auto; display: block; }

.pub-nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.pub-nav-links::-webkit-scrollbar { display: none; }

.pub-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
}
.pub-nav-links a:hover,
.pub-nav-links a.active { color: var(--text); border-bottom-color: var(--accent); }

.pub-nav-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.pub-login-btn {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius, 6px);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
}
.pub-login-btn:hover { background: var(--accent-fill); color: #fff; }

/* ── Bandeau d'accueil ── */
.pub-hero {
  padding: clamp(3.5rem, 11vw, 7rem) clamp(1rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%,
      color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--bg);
}

.pub-hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
/* Logo en grand au-dessus du titre (réglage « Logo in the public site banner ») */
.pub-hero-logo { display: block; height: clamp(140px, 30vw, 220px); width: auto; margin: 0 auto 1.4rem; }
.pub-hero-logo[hidden] { display: none; }

.pub-hero-title {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.pub-hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.pub-hero-body { margin-top: 1.4rem; }
.pub-hero-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* Bandeau avec visuel : texte à gauche, image à droite. La classe n'est posée
   que si la section « hero » porte une image — sans elle, le bandeau garde sa
   présentation centrée. */
.pub-hero-visual:empty { display: none; }
.pub-hero-visual img { display: block; width: 100%; height: auto; }

.pub-hero.has-visual .pub-hero-inner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1180px;
  text-align: left;
}
.pub-hero.has-visual .pub-hero-text { flex: 1 1 54%; min-width: 0; }
.pub-hero.has-visual .pub-hero-visual { flex: 1 1 46%; min-width: 0; }
.pub-hero.has-visual .pub-hero-subtitle { margin-left: 0; }
.pub-hero.has-visual .pub-hero-actions { justify-content: flex-start; }

/* En dessous de deux colonnes lisibles, on repasse au bandeau centré d'origine
   avec le visuel en dessous du texte. */
@media (max-width: 860px) {
  .pub-hero.has-visual .pub-hero-inner {
    flex-direction: column;
    text-align: center;
    max-width: 780px;
  }
  .pub-hero.has-visual .pub-hero-subtitle { margin-inline: auto; }
  .pub-hero.has-visual .pub-hero-actions { justify-content: center; }
  .pub-hero.has-visual .pub-hero-visual { max-width: 460px; }
}

.pub-btn-primary, .pub-btn-ghost {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius, 6px);
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.pub-btn-primary { background: var(--accent-fill); color: #fff; }
.pub-btn-primary:hover { background: var(--accent-hover); }
.pub-btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.pub-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Sections ── */
.pub-section { padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 5vw, 3.5rem); }
.pub-section-alt { background: var(--surface); border-block: 1px solid var(--border); }
/* La section occupe l'écran, pas une colonne de 940 px perdue au milieu d'un
   grand moniteur. Ce qui gagne à s'étaler le fait — cartes, grilles, carte du
   monde, figures ; le texte courant, lui, garde sa mesure : au-delà d'une
   soixantaine de signes par ligne, l'œil ne retrouve plus le début de la
   suivante. */
.pub-section-inner { max-width: 1500px; margin: 0 auto; }
.pub-prose, .pub-section-lead { max-width: 72ch; }
/* Une figure flottante a besoin de la largeur de la colonne de texte, pas de
   celle de la section : on la laisse habiller la prose comme avant. */
.pub-prose-floated { max-width: 100%; }
.pub-prose-floated > *:not(.pub-section-image):not(figure) { max-width: 72ch; }

.pub-section-head { margin-bottom: 2rem; }
.pub-section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.pub-section-lead { color: var(--text-muted); font-size: 0.95rem; }
.pub-muted { color: var(--text-muted); font-size: 0.9rem; }

.pub-section-image {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 2rem;
}

/* Section texte + image : la figure flotte à droite et le texte l'habille.
   Le clearfix garde la figure dans le bloc de texte quand elle est plus haute
   que lui, sinon elle déborderait sur la section suivante. */
.pub-prose-floated::after { content: ''; display: block; clear: both; }
.pub-prose-floated .pub-section-image {
  float: right;
  width: 45%;
  max-width: 430px;
  max-height: none;
  height: auto;
  margin: 0.3rem 0 1.2rem clamp(1.5rem, 3vw, 2.5rem);
}
/* Trop étroit pour un habillage : la figure reprend toute la largeur. */
@media (max-width: 760px) {
  .pub-prose-floated .pub-section-image {
    float: none;
    width: 100%;
    max-width: none;
    margin: 1.5rem 0;
  }
}

/* Les titres de style.css sont en capitales : acceptable pour un intitulé de
   section, illisible pour un titre d'article scientifique ou une sous-partie
   de texte suivi. Ces niveaux-là reviennent donc à une casse normale. */
.pub-prose h3,
.pub-highlight h3,
.pub-paper-title,
.pub-modal-title {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
}

/* ── Prose (corps des sections et des news) ── */
.pub-prose { color: var(--text); font-size: 1rem; }
.pub-prose p { margin-bottom: 1rem; }
.pub-prose p:last-child { margin-bottom: 0; }
/* Respiration demandée par « --- » dans le texte d'une section : l'écart entre
   paragraphes est uniforme par ailleurs, ceci le double ponctuellement. */
.pub-prose-gap { height: 1.6rem; }
.pub-prose h3 {
  font-size: 1.12rem;
  margin: 1.8rem 0 0.7rem;
  color: var(--text);
}
.pub-prose ul { margin: 0 0 1rem 1.2rem; }
.pub-prose li { margin-bottom: 0.35rem; }
.pub-prose a { color: var(--accent); }
.pub-prose strong { color: var(--text); font-weight: 600; }
.pub-prose code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* ── Cartes « highlights » ── */
.pub-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.pub-highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 6px);
  padding: 1.2rem 1.3rem;
}
.pub-section-alt .pub-highlight { background: var(--bg); }
.pub-highlight h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--text); }
.pub-highlight p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ── News ── */
.pub-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.pub-news-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 6px);
  padding: 1.25rem;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.pub-news-card:hover { border-color: var(--accent); transform: translateY(-2px); }
/* Vignette : pleine largeur en tête de carte, rognée au format 16/9 */
.pub-news-card.has-thumb { padding-top: 0; overflow: hidden; }
.pub-news-thumb { display: block; margin: 0 -1.25rem 0.5rem; aspect-ratio: 16 / 9; background: var(--border); overflow: hidden; }
.pub-news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Première page d'un article : le haut de la page (titre, auteurs) sur fond clair */
.pub-news-thumb.is-page { background: #fff; }
.pub-news-thumb.is-page img { object-position: top; }
.pub-news-figure { margin: 0 0 1.2rem; }
.pub-news-figure img { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: var(--radius, 6px);
  background: var(--border); }

.pub-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pub-card-title { font-size: 1.02rem; color: var(--text); line-height: 1.35; }
.pub-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pub-card-more { font-size: 0.82rem; color: var(--accent); margin-top: auto; }

.pub-more { display: block; margin: 1.6rem auto 0; }

/* ── Publications ── */
.pub-filters { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.pub-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius, 6px);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
}
.pub-section-alt .pub-input { background: var(--surface); }
.pub-input:focus { outline: none; border-color: var(--accent); }
#paperSearch { flex: 1; min-width: 220px; }
.pub-select { min-width: 130px; }

.pub-year-group { margin-bottom: 2rem; }
.pub-year-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 0.9rem;
}

.pub-paper {
  padding: 0.9rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
}
.pub-paper:last-child { border-bottom: none; }
.pub-paper-title { font-size: 0.98rem; color: var(--text); line-height: 1.4; margin-bottom: 0.25rem; }
.pub-paper-authors { font-size: 0.86rem; color: var(--text-muted); }
.pub-paper-meta { font-size: 0.84rem; color: var(--text-muted); font-style: italic; margin-top: 0.15rem; }
.pub-paper-links { display: flex; gap: 0.9rem; margin-top: 0.4rem; flex-wrap: wrap; }
.pub-paper-links a { font-size: 0.8rem; color: var(--accent); text-decoration: none; }
.pub-paper-links a:hover { text-decoration: underline; }
.pub-paper-abstract {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--border);
}
.pub-abstract-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

/* ── Pied de page ── */
.pub-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1rem, 5vw, 3.5rem);
  background: var(--bg);
}
.pub-footer-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.pub-footer-logo { height: 30px; width: auto; opacity: 0.8; margin-bottom: 0.7rem; display: block; }
.pub-footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.pub-footer-links a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.pub-footer-links a:hover { color: var(--accent); }

/* ── Lecture d'une news ── */
.pub-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.pub-modal[hidden] { display: none; }

.pub-modal-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 6px);
  padding: 2rem;
  max-width: 660px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.pub-modal-title { font-size: 1.35rem; color: var(--text); margin: 0.3rem 0 1.2rem; line-height: 1.3; }
.pub-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.pub-modal-close:hover { color: var(--text); }

@media (max-width: 700px) {
  /* Les liens restent affichés et défilent horizontalement : les masquer
     laissait un visiteur sur téléphone sans aucun moyen de passer de News à
     Publications, qui sont des pages à part entière. */
  .pub-nav { gap: 0.7rem; flex-wrap: wrap; }
  .pub-nav-links { flex: 0 0 100%; gap: 0.9rem; order: 3; padding-bottom: 0.15rem; }
  .pub-nav-links a { font-size: 0.8rem; }
  .pub-nav-actions { margin-left: auto; }
  .pub-footer-inner { flex-direction: column; }
}

/* ── Pages dédiées (News, Publications) ─────────────────────────────────── */
.pub-page-head {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 5vw, 3.5rem) 0;
}

.pub-page-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* En-tête de section avec son lien « tout voir » à droite */
.pub-section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.pub-section-head-row .pub-btn-ghost { flex-shrink: 0; }

/* Sur l'accueil, les cartes d'actualité sont des liens vers /news */
a.pub-news-card { text-decoration: none; color: inherit; }

/* ── Carte du consortium ─────────────────────────────────────────────────── */
.pub-map { margin-top: 1.8rem; }

.pub-map-stats {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.pub-map-stat { display: flex; flex-direction: column; }
.pub-map-stat strong {
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--accent);
  font-weight: 700;
}
.pub-map-stat span { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.03em; }

.pub-map-frame { position: relative; }
.pub-map-svg { display: block; width: 100%; height: auto; }

/* Échelle des disques posée sur la carte, en bas à gauche (le Pacifique sud
   est vide) ; sous la carte sur téléphone, où elle couvrirait le Chili. */
.pub-map-legend {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  pointer-events: none;
}
@media (max-width: 760px) {
  .pub-map-legend { position: static; margin-top: 0.6rem; }
}
.pub-map-key { flex: 0 0 auto; }   /* taille posée par bubble-map.js */
.bmap-key-label { fill: var(--text); font-size: 10px; font-weight: 600; }

/* Les disques : l'aire dit le nombre de membres, le fil rattache au pays */
.bmap-dot { cursor: default; transition: fill-opacity 0.15s; }
.bmap-dot:hover { fill-opacity: 0.85; }
.bmap-dot-label { fill: var(--text); font-size: 10px; font-weight: 600; }

/* Repli textuel du même décompte : lisible sans la carte, et seule forme
   utilisable au lecteur d'écran ou si le CDN est injoignable. */
.pub-map-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
}
.pub-map-list li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.15rem 0.7rem;
  font-size: 0.82rem;
}
.pub-map-country { color: var(--text); }
.pub-map-count { color: var(--accent); font-weight: 600; }

.pub-map-tooltip {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text);
  box-shadow: 0 4px 14px var(--shadow);
}

/* ── Figures de la vitrine ──────────────────────────────────────────────────
   Déposées avec l'instance (instances/<slug>/site/figures/), chargées par
   site.js ; chaque figure porte ses propres styles. */
.pub-figure { clear: both; margin: 2.5rem 0 0; }

/* Figure posée sur un côté, le texte de la section l'habillant. Le marqueur
   doit alors être placé assez haut dans le texte pour qu'il reste des
   paragraphes à faire remonter à côté d'elle. */
.pub-figure-right, .pub-figure-left {
  clear: none;
  width: 46%;
  margin-top: 0.2rem;
  margin-bottom: 1.2rem;
}
.pub-figure-right { float: right; margin-left: clamp(1.5rem, 3vw, 2.5rem); }
.pub-figure-left  { float: left;  margin-right: clamp(1.5rem, 3vw, 2.5rem); }
/* Trop étroit pour un habillage : la figure reprend toute la largeur. */
@media (max-width: 760px) {
  .pub-figure-right, .pub-figure-left {
    float: none; width: 100%; margin: 1.8rem 0 0;
  }
}
/* Le bloc de texte doit englober la figure flottante, sinon elle déborderait
   sur la section suivante quand elle est plus haute que le texte. */
.pub-prose::after { content: ''; display: block; clear: both; }
.pub-figure svg { display: block; width: 100%; height: auto; }
.pub-figure figcaption {
  color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; margin-top: 0.6rem;
}

/* Section vide de l'accueil : effacée (site.js, hidePublicBlock). Les liens
   « News » et « Publications » du menu et du pied de page restent, eux : le
   menu doit être le même sur toutes les pages, et ces pages existent toujours. */
html[data-empty-news] #news,
html[data-empty-publications] #publications { display: none !important; }

/* Types de news (site-common.js) */
.pub-nk-pill { display: inline-flex; align-self: flex-start; gap: 0.3rem; padding: 0.1rem 0.55rem; border-radius: 20px; font-size: 0.75rem;
  font-weight: 700; color: var(--accent-text, var(--accent)); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pub-nk-papers { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.pub-nk-paper { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); }
.pub-nk-paper span { font-size: 0.85rem; color: var(--text-muted); }
.pub-nk-links { display: flex; gap: 0.75rem; }
.pub-nk-event { margin: 0.75rem 0; }
.pub-nk-milestone { margin: 0.75rem 0; padding: 0.75rem 1rem; border-radius: 10px; background: var(--success-bg); font-weight: 700; font-size: 1.05rem; }

/* ── Sections et blocs de la page (site-render.js) ───────────────────────── */
.ps { position: relative; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 5vw, 3.5rem); }
.ps-sp-compact { padding-block: clamp(1.8rem, 4vw, 2.8rem); }
.ps-sp-roomy   { padding-block: clamp(4.5rem, 11vw, 8rem); }
.ps-inner { position: relative; max-width: 1500px; margin: 0 auto; }
.ps-w-narrow .ps-inner { max-width: 820px; }
.ps-w-full { padding-inline: clamp(0.75rem, 2vw, 1.5rem); }
.ps-w-full .ps-inner { max-width: none; }

/* Fonds : teinté, sombre, ou image assombrie pour garder le texte lisible.
   Le sombre redéfinit les couleurs du thème dans sa section seulement. */
.ps-bg-tint { background: var(--surface); border-block: 1px solid var(--border); }
.ps-bg-tint .pub-highlight, .ps-bg-tint .pb-card { background: var(--bg); }
.ps-bg-dark, .ps-bg-image {
  background-color: #0b1220; color: #e8edf5;
  --text: #e8edf5; --text-muted: #aab6c6; --border: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.06); --bg: rgba(255, 255, 255, 0.05);
}
.ps-bg-image { background-size: cover; background-position: center; }
.ps-bg-image::before { content: ''; position: absolute; inset: 0; background: rgba(5, 10, 20, 0.6); }
/* Bandeau : la lueur de l'ancien en-tête, sur le fond uni */
.ps-hero.ps-bg-plain {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--bg);
}

.ps-head { margin-bottom: 2rem; }
.ps-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--text);
  letter-spacing: -0.01em; margin-bottom: 0.4rem;
}
.ps-title-hero { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.ps-lead { color: var(--text-muted); font-size: 0.95rem; max-width: 72ch; }
.ps-hero .ps-lead { font-size: clamp(1rem, 2.2vw, 1.22rem); max-width: 620px; }
.ps-hero .ps-head { margin-bottom: 1.4rem; }
.ps-col > .ps-head { margin-bottom: -0.4rem; }
.ps-al-left .pub-hero-logo { margin-left: 0; }

.ps-al-center { text-align: center; }
.ps-al-center .ps-lead, .ps-al-center .pub-prose { margin-inline: auto; }
.ps-al-center .pb-buttons, .ps-al-center .pb-stats { justify-content: center; }
.ps-al-center .pb-cards { text-align: left; }

.ps-cols { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.ps-c-1-1   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ps-c-2-1   { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ps-c-1-2   { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.ps-c-1-1-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ps-hero .ps-cols { align-items: center; }
.ps-col { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.ps-col:empty { display: none; }

/* Sur téléphone, les colonnes passent l'une sous l'autre, dans l'ordre */
@media (max-width: 760px) {
  .ps-cols { grid-template-columns: minmax(0, 1fr) !important; }
  .ps-only-desktop { display: none; }
}
@media (min-width: 761px) { .ps-only-mobile { display: none; } }

.pb-text-large { font-size: 1.15rem; }
.pb-image { margin: 0; }
.pb-image img { display: block; width: 100%; height: auto; }
.pb-image figcaption { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.55rem; line-height: 1.45; }
.pb-credit { font-style: italic; }
.pb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.pb-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius, 6px); padding: 1.2rem 1.3rem; color: inherit; text-decoration: none;
}
.pb-card h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--text); }
.pb-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; white-space: pre-line; }
.pb-card-link { transition: border-color 0.15s, transform 0.15s; }
.pb-card-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.pb-stats { display: flex; flex-wrap: wrap; gap: 1.4rem clamp(2rem, 5vw, 3.5rem); }
.pb-stat { display: flex; flex-direction: column; }
.pb-stat strong { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; color: var(--accent); font-weight: 700; }
.pb-stat span { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.02em; }
.pb-buttons { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.pb-more { display: inline-block; margin-top: 1.4rem; }
.pb-feed .pub-paper-list { max-width: 100%; }
.pb-placeholder {
  border: 1px dashed var(--border); border-radius: 8px; padding: 1rem;
  color: var(--text-muted); font-size: 0.85rem; text-align: center;
}

/* Prévisualisation dans l'éditeur : on vise, on sélectionne */
.is-site-preview [data-sid] { cursor: pointer; }
.is-site-preview [data-bid] { outline: 1px dashed transparent; outline-offset: 5px; border-radius: 4px; }
.is-site-preview [data-bid]:hover { outline-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.is-site-preview .is-selected { outline: 2px solid var(--accent) !important; outline-offset: 5px; }
.is-site-preview .ps.is-selected { outline-offset: -3px; }
.ps-hidden { opacity: 0.45; }
.ps-hidden::after {
  content: 'Hidden'; position: absolute; top: 0.6rem; right: 0.8rem; font-size: 0.72rem;
  padding: 0.15rem 0.5rem; border-radius: 10px; background: var(--surface); color: var(--text-muted);
}

/* Menu et pied de page réglables (éditeur : Menu and footer) */
.pub-nav-cta {
  padding: 0.45rem 0.95rem; border-radius: 6px; font-size: 0.85rem; text-decoration: none; white-space: nowrap;
  background: var(--accent-fill); color: #fff;
}
.pub-nav-cta:hover { background: var(--accent-hover); }
.pub-footer-cols { display: flex; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; }
.pub-footer-col { display: flex; flex-direction: column; gap: 0.4rem; min-width: 140px; }
.pub-footer-col h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 0.2rem; }
.pub-footer-col a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.pub-footer-col a:hover { color: var(--accent); }
#footerNote p { margin: 0 0 0.4rem; }
#footerNote a { color: var(--accent); }
@media (max-width: 600px) { .pub-nav-cta { display: none; } }

/* Frise */
.pb-timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 1.4rem; }
.pb-timeline li { position: relative; }
.pb-timeline li::before {
  content: ''; position: absolute; left: calc(-1.6rem - 7px); top: 0.25rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
}
.pb-timeline li.is-done::before { background: var(--accent); border-color: var(--accent); }
.pb-timeline li.is-current::before { background: var(--bg); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.pb-tl-date { display: block; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.15rem; }
.pb-tl-title { display: block; color: var(--text); font-size: 1.02rem; }
.pb-timeline p { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.92rem; white-space: pre-line; }
.ps-al-center .pb-timeline { text-align: left; max-width: 640px; margin-inline: auto; }
/* Frise horizontale : passé à gauche, futur à droite ; la ligne passe par les
   pastilles, posées au-dessus de chaque étape. Verticale sur téléphone. */
@media (min-width: 761px) {
  .pb-timeline-h {
    flex-direction: row; border-left: 0; padding: 0; gap: 1.2rem;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  }
  .ps-al-center .pb-timeline-h { max-width: none; }
  .pb-timeline-h li { padding-top: 1.7rem; }
  .pb-timeline-h li::before { left: 0; top: 0; }
  /* Le trait relie chaque pastille à la suivante (et file au-delà de la dernière) */
  .pb-timeline-h li::after {
    content: ''; position: absolute; top: 6px; left: 16px; right: -1.2rem; height: 2px;
    background: var(--border);
  }
  .pb-timeline-h li:last-child::after { right: 0; background: linear-gradient(90deg, var(--border), transparent); }
  .pb-timeline-h li.is-done::after { background: var(--accent); }
}

/* Chiffres clés empilés, à côté d'un texte ; « large » pour les mettre en avant */
.pb-stats-column { flex-direction: column; gap: 0.9rem; }
.pb-stats-column .pb-stat { flex-direction: row; align-items: baseline; gap: 0.7rem; }
.pb-stats-large .pb-stat strong { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
.pb-stats-large .pb-stat span { font-size: 0.95rem; }
/* Bloc pleine largeur sous les colonnes */
/* Titre dans la première colonne : les chiffres d'en face se calent à droite */
@media (min-width: 761px) {
  .ps-head-col .ps-col:last-child:not(:first-child) .pb-stats:not(.pb-stats-column) { justify-content: flex-end; text-align: right; }
}
.ps-wide { margin-top: clamp(1.5rem, 4vw, 2.6rem); display: flex; flex-direction: column; gap: 1.6rem; }

/* Logos */
.pb-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.2rem, 4vw, 2.6rem); }
.pb-logos li { display: flex; align-items: center; }
.pb-logos img { display: block; width: auto; height: auto; max-width: 180px; max-height: 56px; object-fit: contain; }
.pb-logos-small img { max-height: 36px; max-width: 120px; }
.pb-logos-large img { max-height: 84px; max-width: 240px; }
.pb-logos.is-mono img { filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s; }
.pb-logos.is-mono a:hover img, .pb-logos.is-mono a:focus-visible img { filter: none; opacity: 1; }
.pb-logos span { color: var(--text-muted); font-weight: 600; }
.ps-bg-dark .pb-logos.is-mono img, .ps-bg-image .pb-logos.is-mono img { filter: grayscale(1) brightness(1.6); }

/* Questions fréquentes */
.pb-faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.pb-faq details { border-bottom: 1px solid var(--border); }
.pb-faq summary {
  cursor: pointer; padding: 1rem 2rem 1rem 0; color: var(--text); font-weight: 600; list-style: none; position: relative;
}
.pb-faq summary::-webkit-details-marker { display: none; }
.pb-faq summary::after { content: '+'; position: absolute; right: 0.2rem; top: 0.9rem; font-size: 1.2rem; color: var(--accent); }
.pb-faq details[open] summary::after { content: '–'; }
.pb-faq .pub-prose { padding: 0 0 1rem; color: var(--text-muted); }
.ps-al-center .pb-faq { text-align: left; max-width: 760px; margin-inline: auto; }

/* Citation */
.pb-quote { margin: 0; }
.pb-quote blockquote {
  margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.45; color: var(--text);
  font-family: Georgia, 'Times New Roman', serif; font-style: italic;
}
.pb-quote blockquote::before { content: '“'; display: block; font-size: 3rem; line-height: 0.6; color: var(--accent); margin-bottom: 0.4rem; }
.pb-quote figcaption { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.1rem; }
.ps-al-center .pb-quote figcaption { justify-content: center; }
.pb-quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.pb-quote figcaption > span { display: flex; flex-direction: column; text-align: left; }
.pb-quote figcaption strong { color: var(--text); }
.pb-quote figcaption span span { color: var(--text-muted); font-size: 0.88rem; }

/* Vidéo */
.pb-video { margin: 0; }
.pb-video video { display: block; width: 100%; height: auto; border-radius: 10px; background: #000; }
.pb-video figcaption { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.55rem; }

/* Sélecteur de langue */
.pub-lang { display: flex; gap: 0.15rem; border: 1px solid var(--border); border-radius: 6px; padding: 0.15rem; }
.pub-lang a { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-muted); text-decoration: none; padding: 0.25rem 0.45rem; border-radius: 4px; }
.pub-lang a[aria-current] { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.pub-lang a:hover { color: var(--text); }

/* ── Réglages de mise en page (audit du 22/11/2026) ───────────────────── */
/* Le menu de la vitrine est un <nav> : il héritait de la barre du portail
   (fond, marges, bordure, collé en haut) et ses liens s'écartaient d'un bord
   à l'autre. Il redevient une simple rangée de liens, centrée. */
nav.pub-nav-links, nav.pub-lang {
  position: static; z-index: auto; background: none; border: 0; padding: 0; height: auto;
}
nav.pub-nav-links { justify-content: center; gap: clamp(1rem, 2.2vw, 2rem); }
nav.pub-lang { padding: 0.15rem; border: 1px solid var(--border); }
@media (max-width: 760px) { nav.pub-nav-links { justify-content: flex-start; } }

/* Libellé au-dessus d'un titre de section */
.ps-kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.6rem;
}
/* Colonnes centrées verticalement */
.ps-va-center .ps-cols { align-items: center; }
/* Hauteur : grande, ou tout l'écran (bandeau d'ouverture) */
.ps-h-tall, .ps-h-screen { display: flex; flex-direction: column; justify-content: center; }
.ps-h-tall { min-height: 70vh; }
.ps-h-screen { min-height: calc(100vh - 62px); min-height: calc(100svh - 62px); }
.ps-h-tall > .ps-inner, .ps-h-screen > .ps-inner { width: 100%; }
/* Fond « glow » : la lueur d'accent du bandeau, pour n'importe quelle section */
.ps-bg-glow {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--bg);
  border-block: 1px solid var(--border);
}
/* Texte sur toute la largeur de sa colonne */
.pb-text-full { max-width: none; }
/* Une figure posée à côté du texte : le texte prend la place qu'il faut pour
   l'habiller, la figure garde une taille lisible */
.pub-prose:has(> .pub-figure-right, > .pub-figure-left) { max-width: min(100%, 1100px); }
.pub-prose > .pub-figure-right, .pub-prose > .pub-figure-left { width: min(46%, 520px); min-width: 280px; }
/* Cartes : un nombre fixe par ligne, et une icône */
.pb-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pb-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .pb-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pb-cards-2, .pb-cards-3, .pb-cards-4 { grid-template-columns: minmax(0, 1fr); } }
.pb-card-icon { display: block; font-size: 1.6rem; line-height: 1; margin-bottom: 0.7rem; }
/* Aperçu d'actualité tiré d'une page d'article : la feuille posée sur la carte */
.pub-news-thumb.is-page { background: var(--surface); padding: 0.8rem 1.4rem 0; }
.pub-news-thumb.is-page img { border-radius: 4px 4px 0 0; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25); }
/* Chiffres clés sur téléphone : deux par ligne plutôt qu'une longue colonne */
@media (max-width: 760px) {
  .pb-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1rem; }
  .pb-stat strong { font-size: 1.55rem; }
  /* Empilés à côté d'un texte : en ligne sur téléphone, où le texte passe dessous */
  .pb-stats-column, .pb-stats[data-consortium-stats] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pb-stats-column .pb-stat { flex-direction: column; gap: 0; }
  .pb-stats-large .pb-stat strong { font-size: 2rem; }
}

/* Publications : la première page à côté de la référence */
.pub-paper.has-thumb { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.pub-paper-thumb {
  display: block; aspect-ratio: 8.5 / 11; overflow: hidden; border-radius: 4px; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); transition: transform 0.15s;
}
.pub-paper-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
a.pub-paper-thumb:hover { transform: translateY(-2px); }
@media (max-width: 600px) { .pub-paper.has-thumb { grid-template-columns: 72px minmax(0, 1fr); gap: 0.8rem; } }
