/* rb-modern-ui : composants partagés (publications, news, thèmes de recherche, groupe).
   Couleurs et polices réglables par site via les variables --rb-* (filtre PHP rb_ui_vars). */
:root {
  --rb-accent: #2b8ec4;
  --rb-accent-dark: #1f6f99;
  --rb-accent-soft: #e6f4fb;
  --rb-accent-light: #9fd6f2;
  --rb-accent-ring: rgba(43, 142, 196, .15);
  --rb-tint: #f6fafc;
  --rb-font: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --rb-font-display: Lato, sans-serif;
}
/* tourelab.fr : bloc publications [toure_publications] */
.tp-wrap {
  --tp-accent: var(--rb-accent);
  --tp-accent-soft: var(--rb-accent-soft);
  --tp-text: #23303a;
  --tp-muted: #5f6b75;
  --tp-line: #dfe7ec;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 40px;
  color: var(--tp-text);
  font-family: var(--rb-font);
  text-align: left;
}
.tp-toolbar {
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--tp-line);
  margin-bottom: 8px;
}
.tp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--tp-line);
  border-radius: 999px;
  padding: 10px 18px;
  background: #fff;
  color: var(--tp-muted);
  transition: border-color .15s, box-shadow .15s;
}
.tp-search:focus-within {
  border-color: var(--tp-accent);
  box-shadow: 0 0 0 3px var(--rb-accent-ring);
}
.tp-search input {
  flex: 1;
  border: 0 !important;
  outline: 0;
  padding: 0 !important;
  font-size: 16px;
  background: transparent !important;
  color: var(--tp-text);
  box-shadow: none !important;
}
.tp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tp-wrap .tp-chip {
  border: 1px solid var(--tp-line);
  background: #fff;
  color: var(--tp-muted);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
  transition: all .15s;
}
.tp-wrap .tp-chip:hover { border-color: var(--tp-accent); color: var(--tp-accent); background: #fff; }
.tp-wrap .tp-chip.is-active { background: var(--tp-accent); border-color: var(--tp-accent); color: #fff; }
.tp-count { margin: 10px 0 0; font-size: 13px; color: var(--tp-muted); }
.tp-year-title {
  font-size: 22px !important;
  font-weight: 300;
  color: var(--tp-accent) !important;
  margin: 28px 0 4px !important;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--tp-accent-soft);
}
.tp-items { list-style: none; margin: 0 !important; padding: 0 !important; }
.tp-item {
  padding: 14px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  transition: background .15s;
}
.tp-item:hover { background: var(--rb-tint); }
.tp-wrap .tp-title {
  font-size: 16.5px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  margin: 0 0 4px !important;
  color: var(--tp-text) !important;
  text-transform: none !important;
}
.tp-title a { color: inherit !important; text-decoration: none; }
.tp-title a:hover { color: var(--tp-accent) !important; text-decoration: underline; }
.tp-authors { margin: 0 0 2px !important; font-size: 14px; line-height: 1.5; color: var(--tp-muted); }
.tp-author:not(:last-of-type)::after { content: ", "; font-weight: 400; }
.tp-member strong { color: var(--tp-text); font-weight: 700; }
.tp-authors:not(.is-expanded) .tp-extra { display: none; }
.tp-authors:not(.is-expanded) .tp-extra + .tp-author:not(.tp-extra)::before { content: "… "; }
.tp-wrap .tp-more-authors {
  border: 0;
  background: none;
  padding: 0;
  color: var(--tp-accent);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.tp-meta { margin: 0 !important; font-size: 14px; color: var(--tp-muted); }
.tp-journal { color: var(--tp-text); }
.tp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tp-wrap .tp-btn {
  display: inline-block;
  border: 1px solid var(--tp-line);
  background: #fff;
  color: var(--tp-accent) !important;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .02em;
  text-decoration: none !important;
  cursor: pointer;
  transition: all .15s;
}
.tp-wrap .tp-btn:hover { background: var(--tp-accent-soft); border-color: var(--tp-accent); }
.tp-wrap .tp-btn-oa { color: #2e7d32 !important; }
.tp-wrap .tp-abs-toggle[aria-expanded="true"] { background: var(--tp-accent-soft); }
.tp-abstract {
  margin-top: 10px;
  padding: 12px 16px;
  border-left: 3px solid var(--tp-accent);
  background: var(--rb-tint);
  font-size: 14px;
  line-height: 1.6;
  color: var(--tp-text);
}
.tp-abstract p:last-child { margin-bottom: 0; }
.tp-empty { text-align: center; color: var(--tp-muted); padding: 30px 0; }
.tp-wrap [hidden] { display: none !important; }
@media (max-width: 767px) {
  .tp-wrap .tp-title { font-size: 15.5px !important; }
}
.tp-show-all-wrap { text-align: center; margin-top: 18px; }
.tp-wrap .tp-show-all {
  border: 1px solid var(--tp-accent);
  background: #fff;
  color: var(--tp-accent);
  border-radius: 999px;
  padding: 8px 24px;
  font-size: 15px;
  cursor: pointer;
  transition: all .15s;
}
.tp-wrap .tp-show-all:hover { background: var(--tp-accent); color: #fff; }

/* ---------- Grille d'actualités [toure_news] ---------- */
.tn-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px 40px;
  font-family: var(--rb-font);
  text-align: left;
}
.tn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.tn-wrap:not(.is-all) .tn-extra { display: none; }
.tn-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20, 60, 90, .08);
  transition: transform .2s, box-shadow .2s;
}
.tn-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 60, 90, .16); }
.tn-media { aspect-ratio: 16 / 10; background: var(--rb-accent-soft); overflow: hidden; }
.tn-media .tn-img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.tn-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; color: #23303a; }
.tn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tn-date, .tn-type {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.6;
}
.tn-date { background: var(--rb-accent-soft); color: var(--rb-accent-dark); }
.tn-type { background: #f1f1f1; color: #555; }
.tn-type-event { background: #fdf0e3; color: #a2581a; }
.tn-type-grant { background: #e8f5e9; color: #2e7d32; }
.tn-wrap .tn-title {
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  margin: 0 0 8px !important;
  color: #23303a !important;
  text-transform: none !important;
  text-align: left !important;
}
.tn-desc, .tn-full { font-size: 14.5px; line-height: 1.6; color: #4a5660; }
.tn-desc p, .tn-full p { margin: 0 0 8px !important; }
.tn-wrap .tn-more {
  align-self: flex-start;
  border: 0;
  background: none;
  padding: 0;
  margin-top: 4px;
  color: var(--rb-accent);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}
.tn-links { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; }
.tn-links a { color: var(--rb-accent) !important; font-size: 14px; font-weight: 500; text-decoration: none; }
.tn-links a:hover { text-decoration: underline; }
.tn-all-wrap { text-align: center; margin-top: 28px; }
.tn-wrap .tn-all {
  border: 1px solid var(--rb-accent);
  background: #fff;
  color: var(--rb-accent);
  border-radius: 999px;
  padding: 8px 24px;
  font-size: 15px;
  cursor: pointer;
  transition: all .15s;
}
.tn-wrap .tn-all:hover { background: var(--rb-accent); color: #fff; }
.tn-wrap [hidden] { display: none !important; }
@media (max-width: 1024px) { .tn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tn-grid { grid-template-columns: 1fr; } }
.tn-wrap.is-all .tn-all-wrap { display: none; }

/* Actualités plus anciennes : liste compacte avec miniatures */
.tn-wrap .tn-list-title {
  font-size: 20px !important;
  font-weight: 400 !important;
  color: #23303a !important;
  margin: 36px 0 12px !important;
  text-transform: none !important;
}
.tn-list { display: flex; flex-direction: column; gap: 12px; }
.tn-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 6px rgba(20, 60, 90, .07);
  transition: box-shadow .2s;
}
.tn-row:hover { box-shadow: 0 6px 16px rgba(20, 60, 90, .14); }
.tn-wrap .tn-row.tn-extra { display: none; }
.tn-row .tn-media {
  flex: 0 0 140px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}
.tn-row .tn-body { padding: 0; }
.tn-row .tn-tags { margin-bottom: 4px; }
.tn-wrap .tn-row .tn-title { font-size: 16px !important; margin-bottom: 4px !important; }
.tn-row .tn-desc { font-size: 14px; }
.tn-row:not(.is-open) .tn-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tn-row .tn-desc p { margin: 0 !important; }
.tn-row .tn-links { padding-top: 6px; }
@media (max-width: 640px) {
  .tn-row .tn-media { flex-basis: 96px; }
}
.tn-desc b, .tn-desc strong, .tn-full b, .tn-full strong { font-weight: 500; }
.tn-wrap .tn-list { gap: 0; }
.tn-wrap .tn-list > .tn-row { margin: 0 0 12px !important; }

/* ---------- Pages de thème de recherche [toure_science] ---------- */
.ts-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  color: #23303a;
  font-family: var(--rb-font);
  text-align: left;
}
.ts-back { display: inline-block; color: var(--rb-accent) !important; font-size: 14px; text-decoration: none; margin-bottom: 20px; }
.ts-back:hover { text-decoration: underline; }
.ts-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--rb-accent-soft), var(--rb-tint));
  border-radius: 16px;
  padding: 36px;
}
.ts-kicker { margin: 0 0 6px !important; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--rb-accent); font-weight: 500; }
.ts-wrap .ts-title {
  font-family: var(--rb-font-display) !important;
  font-size: clamp(30px, 4vw, 44px) !important;
  font-weight: 300 !important;
  line-height: 1.15 !important;
  margin: 0 0 10px !important;
  color: #23303a !important;
  text-transform: none !important;
}
.ts-lead { margin: 0 0 14px !important; font-size: 15px; color: #5f6b75; }
.ts-intro, .ts-intro p { font-size: 18px; line-height: 1.55; color: #3a4750; margin: 0 !important; }
.ts-hero-img { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(20, 60, 90, .12); }
.ts-hero-img .ts-img { display: block; width: 100% !important; height: auto !important; max-height: 360px; object-fit: contain; }
.ts-section { margin-top: 44px; }
.ts-wrap .ts-h2 {
  font-size: 22px !important;
  font-weight: 500 !important;
  color: #23303a !important;
  margin: 0 0 16px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rb-accent-soft);
  text-transform: none !important;
}
.ts-desc { max-width: 780px; font-size: 16.5px; line-height: 1.75; color: #3a4750; }
.ts-desc p { margin: 0 0 16px !important; }
.ts-desc em { color: #23303a; }
.ts-people { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ts-person { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e3ebf0; border-radius: 12px; padding: 10px 14px; }
.ts-person.is-alumni { opacity: .75; }
.ts-wrap .ts-avatar { width: 52px !important; height: 52px !important; border-radius: 50%; object-fit: cover; flex: 0 0 52px; }
.ts-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--rb-accent-soft); color: var(--rb-accent-dark); font-weight: 500; }
.ts-person-text { display: flex; flex-direction: column; line-height: 1.3; }
.ts-name { font-weight: 500; color: #23303a; }
.ts-role { font-size: 13px; color: #5f6b75; }
.ts-wrap .tp-lite { padding: 0; max-width: none; }
.ts-others-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ts-other { display: flex; align-items: center; gap: 14px; padding: 10px; background: #fff; border: 1px solid #e3ebf0; border-radius: 12px; color: #23303a !important; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.ts-other:hover { box-shadow: 0 8px 20px rgba(20, 60, 90, .12); transform: translateY(-2px); }
.ts-other img { width: 72px !important; height: 72px !important; object-fit: cover; border-radius: 8px; flex: 0 0 72px; }
.ts-other span { font-size: 14.5px; font-weight: 500; }
@media (max-width: 800px) {
  .ts-hero { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  .ts-intro, .ts-intro p { font-size: 16px; }
}
.ts-other span small { display: block; font-weight: 400; font-size: 13px; color: #5f6b75; margin-top: 2px; }
.ts-desc { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
/* Écran large : About (3/4) et Team (1/4) côte à côte */
@media (min-width: 1000px) {
  .ts-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .ts-split .ts-desc { max-width: none; }
  .ts-split .ts-team .ts-people { grid-template-columns: 1fr; }
  .ts-split .ts-team { position: sticky; top: 80px; }
}

/* ---------- Cartes "Research topics" de l'accueil [toure_topics] ---------- */
.tt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px 40px;
  font-family: var(--rb-font);
  text-align: left;
}
.tt-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  color: #23303a !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(20, 60, 90, .10);
  transition: transform .25s, box-shadow .25s;
}
.tt-card:hover, .tt-card:focus-visible { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(20, 60, 90, .20); }
.tt-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rb-accent-soft); }
.tt-media img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .5s; }
.tt-card:hover .tt-media img { transform: scale(1.05); }
.tt-num {
  position: absolute;
  left: 16px;
  bottom: 12px;
  font-family: var(--rb-font-display);
  font-weight: 300;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.tt-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.tt-title { font-family: var(--rb-font-display); font-size: 23px; font-weight: 400; line-height: 1.25; color: #23303a; }
.tt-lead { margin-top: 6px; font-size: 13.5px; color: var(--rb-accent); font-weight: 500; letter-spacing: .02em; }
.tt-intro { margin-top: 12px; font-size: 15px; line-height: 1.6; color: #4a5660; }
.tt-cta { margin-top: auto; padding-top: 18px; font-size: 14.5px; font-weight: 500; color: var(--rb-accent); }
.tt-cta span { display: inline-block; transition: transform .2s; }
.tt-card:hover .tt-cta span { transform: translateX(4px); }
@media (max-width: 1024px) { .tt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tt-grid { grid-template-columns: 1fr; gap: 18px; } }
.tt-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(10, 30, 45, .55), transparent); pointer-events: none; }
.tt-num { z-index: 1; }

/* ===== Research topics : tuiles image plein cadre (remplace le style "cartes blanches") ===== */
.tt-grid { gap: 22px; }
.tt-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  border-radius: 16px;
  background: #1d2b36;
  box-shadow: 0 10px 30px rgba(20, 60, 90, .22);
  isolation: isolate;
}
.tt-card:hover, .tt-card:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 60, 90, .32); }
.tt-media { position: absolute; inset: 0; aspect-ratio: auto; background: #1d2b36; z-index: -1; }
.tt-media img { filter: saturate(.9); }
.tt-card:hover .tt-media img { transform: scale(1.06); }
.tt-media::after {
  inset: 0;
  height: auto;
  background: linear-gradient(to top, rgba(8, 22, 34, .92) 0%, rgba(8, 22, 34, .55) 42%, rgba(8, 22, 34, .05) 72%);
}
.tt-num { left: auto; right: 20px; top: 16px; bottom: auto; font-size: 30px; opacity: .9; }
.tt-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 24px 22px;
  color: #fff;
}
.tt-title { color: #fff; font-size: 25px; font-weight: 400; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.tt-lead { color: var(--rb-accent-light); margin-top: 6px; }
.tt-intro {
  color: rgba(255, 255, 255, .88);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height .35s ease, opacity .3s ease, margin-top .3s ease;
}
.tt-cta { color: #fff; padding-top: 14px; margin-top: 0; }
.tt-cta { border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 14px; }
.tt-card:hover .tt-intro, .tt-card:focus-visible .tt-intro { max-height: 140px; opacity: 1; margin-top: 10px; }
/* Écrans tactiles (pas de survol) : l'accroche est toujours visible */
@media (hover: none) {
  .tt-intro { max-height: none; opacity: 1; margin-top: 10px; }
}
@media (max-width: 640px) { .tt-card { aspect-ratio: 4 / 4.2; } }
.tt-media::after {
  background:
    linear-gradient(to bottom, rgba(8, 22, 34, .45) 0%, rgba(8, 22, 34, 0) 22%),
    linear-gradient(to top, rgba(8, 22, 34, .92) 0%, rgba(8, 22, 34, .55) 42%, rgba(8, 22, 34, .05) 72%);
}
/* Dégradé plus léger : l'image reste visible, seul le bas est assombri pour le texte */
.tt-media::after {
  background:
    linear-gradient(to bottom, rgba(8, 22, 34, .22) 0%, rgba(8, 22, 34, 0) 18%),
    linear-gradient(to top, rgba(8, 22, 34, .72) 0%, rgba(8, 22, 34, .30) 32%, rgba(8, 22, 34, 0) 55%);
}
.tt-media img { filter: none; }
.tt-title, .tt-lead, .tt-cta { text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.tt-num { text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
/* Texte sur un bandeau en verre dépoli plutôt qu'un dégradé sombre */
.tt-media::after { background: linear-gradient(to bottom, rgba(8, 22, 34, .18) 0%, rgba(8, 22, 34, 0) 16%); }
.tt-body {
  left: 12px; right: 12px; bottom: 12px;
  padding: 16px 18px 14px;
  border-radius: 12px;
  background: rgba(14, 34, 48, .55);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .14);
}
.tt-title, .tt-lead, .tt-cta { text-shadow: none; }
.tt-title { font-size: 22px; }
.tt-cta { margin-top: 12px; padding-top: 10px; }

/* ---------- Groupe [rb_group] ---------- */
.rg-wrap { font-family: var(--rb-font); color: #23303a; text-align: left; }
.rg-section { margin: 0 0 40px; }
.rg-wrap .rg-h2 {
  font-family: var(--rb-font-display) !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  color: #23303a !important;
  margin: 0 0 18px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rb-accent-soft);
  text-transform: none !important;
}
.rg-grid { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.rg-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(20, 40, 60, .08); transition: transform .2s, box-shadow .2s; }
.rg-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(20, 40, 60, .15); }
.rg-media { display: block; aspect-ratio: 4 / 5; background: var(--rb-accent-soft); overflow: hidden; }
.rg-media .rg-photo { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 25%; display: block; transition: transform .4s; }
.rg-card:hover .rg-photo { transform: scale(1.04); }
.rg-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 34px; color: var(--rb-accent-dark); font-weight: 500; }
.rg-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.rg-wrap .rg-name { font-weight: 600; font-size: 15.5px; color: #23303a !important; text-decoration: none !important; line-height: 1.3; }
.rg-wrap .rg-name:hover { color: var(--rb-accent) !important; }
.rg-role { font-size: 13px; color: #5f6b75; }
.rg-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.rg-links a { font-size: 13px; font-weight: 500; color: var(--rb-accent) !important; text-decoration: none !important; }
.rg-links a:hover { text-decoration: underline !important; }
.rg-alumni { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.rg-alum { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid #e8ecef; border-radius: 12px; padding: 12px 14px; }
.rg-alum-media { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--rb-accent-soft); }
.rg-alum-media .rg-photo { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.rg-alum-media .rg-initials { font-size: 20px; }
.rg-alum-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rg-bio { font-size: 14px; line-height: 1.55; color: #4a5660; margin-top: 4px; text-align: justify; hyphens: auto; }
.rg-bio p { margin: 0 0 6px !important; }
.rg-alum:not(.is-open) .rg-bio { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rg-wrap .rg-more { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--rb-accent); font-size: 13.5px; cursor: pointer; text-decoration: underline; }
.rg-wrap [hidden] { display: none !important; }

/* Pages de thème : collaborateurs et financements */
.ts-collabs { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ts-collabs li { background: #fff; border: 1px solid #e3ebf0; border-left: 3px solid var(--rb-accent); border-radius: 8px; padding: 10px 14px; font-size: 14px; line-height: 1.45; }
.ts-collabs strong { display: block; font-weight: 500; color: #23303a; }
.ts-collabs span { color: #5f6b75; font-size: 13.5px; }
.ts-funds { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 12px; }
.ts-fund { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid #e3ebf0; border-radius: 10px; color: #23303a !important; text-decoration: none !important; }
a.ts-fund:hover { box-shadow: 0 6px 16px rgba(20, 40, 60, .1); }
.ts-fund img { width: auto !important; height: 40px !important; max-width: 90px; object-fit: contain; }
.ts-fund-text { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.ts-fund-text small { color: #5f6b75; font-size: 12.5px; }
/* Colonne étroite (ex. mollicalab) : la grille "About / Team" ne passe en 2 colonnes que si la place le permet */
.ts-wrap { container-type: inline-size; }
@container (max-width: 900px) { .ts-split { display: block !important; } .ts-split .ts-team { position: static !important; } }

/* ---------- Mise en page compacte quand le bloc est étroit (ex. colonne centrale de mollicalab) ---------- */
.tt-wrap, .tn-wrap { container-type: inline-size; }
@container (max-width: 760px) {
  .tt-grid { grid-template-columns: 1fr; gap: 16px; padding: 4px 0 20px; }
  .tt-card { aspect-ratio: 16 / 7; max-height: none; }
  .tt-body { left: 14px; right: auto; bottom: 14px; max-width: 70%; }
  .tt-title { font-size: 21px; }
  .tn-wrap { padding: 4px 0 20px; }
  .tn-grid { grid-template-columns: 1fr; gap: 14px; }
  .tn-card { flex-direction: row; }
  .tn-card .tn-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 170px; }
  .tn-card .tn-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .tn-card.is-open .tn-desc { display: block; }
}
@container (max-width: 480px) {
  .tt-card { aspect-ratio: 4 / 3; }
  .tt-body { max-width: none; right: 14px; }
  .tn-card { flex-direction: column; }
  .tn-card .tn-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
}

/* Collaborateurs : liste sobre (remplace les cartes à bordure) */
.ts-collabs { display: block !important; border-top: 1px solid #e8ecef; }
.ts-collabs li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px;
  background: none !important; border: 0 !important; border-bottom: 1px solid #e8ecef !important; border-radius: 0 !important;
  padding: 12px 2px !important; font-size: 15px;
}
.ts-c-who { display: flex; flex-direction: column; gap: 1px; }
.ts-collabs .ts-c-who strong { display: inline; font-weight: 600; color: #23303a; }
.ts-c-aff { color: #5f6b75 !important; font-size: 14px !important; }
.ts-c-topic { color: var(--rb-accent-dark); font-size: 14px; font-style: italic; text-align: right; }
@container (max-width: 600px) { .ts-c-topic { text-align: left; } }

/* ---------- Research topics, variante simple [toure_topics style="simple"] : une rangée par thème ---------- */
.tt-simple .tt-grid { display: flex !important; flex-direction: column; gap: 14px; padding: 6px 0 24px; max-width: none; }
.tt-simple .tt-card {
  position: static; display: flex; flex-direction: row; align-items: center; gap: 20px;
  aspect-ratio: auto !important; max-height: none; padding: 14px;
  background: #fff; border: 1px solid #e8ecef; border-radius: 12px;
  box-shadow: none; color: #23303a !important;
}
.tt-simple .tt-card:hover { transform: none; border-color: var(--rb-accent); box-shadow: 0 6px 18px rgba(20, 40, 60, .08); }
.tt-simple .tt-media { position: static; flex: 0 0 150px; width: 150px; height: 150px; aspect-ratio: auto; border-radius: 8px; background: #fff; z-index: auto; }
.tt-simple .tt-media::after, .tt-simple .tt-num { display: none; }
.tt-simple .tt-media img { object-fit: contain; transform: none !important; }
.tt-simple .tt-body {
  position: static; padding: 0; max-width: none; background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; color: #23303a;
}
.tt-simple .tt-title { color: #111 !important; font-size: 21px; font-weight: 600; text-shadow: none; }
.tt-simple .tt-lead { color: var(--rb-accent-dark); text-shadow: none; }
.tt-simple .tt-intro { max-height: none !important; opacity: 1 !important; margin-top: 6px !important; color: #4a5660; font-size: 15.5px; line-height: 1.5; }
.tt-simple .tt-cta { color: var(--rb-accent) !important; border-top: 0; margin-top: 8px; padding-top: 0; text-shadow: none; font-size: 15px; }
@container (max-width: 480px) {
  .tt-simple .tt-card { flex-direction: column; align-items: stretch; }
  .tt-simple .tt-media { width: 100%; flex-basis: auto; height: 180px; }
}
/* Variante simple, version dense */
.tt-simple .tt-grid { gap: 8px; padding: 4px 0 18px; }
.tt-simple .tt-card { gap: 16px; padding: 10px 14px 10px 10px; border-radius: 10px; }
.tt-simple .tt-media { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 6px; }
.tt-simple .tt-title { font-size: 18px; line-height: 1.25; }
.tt-simple .tt-intro { margin-top: 2px !important; font-size: 14.5px; line-height: 1.4; }
.tt-simple .tt-cta { margin-top: 4px; font-size: 14px; }
@container (max-width: 480px) {
  .tt-simple .tt-card { flex-direction: row; align-items: center; }
  .tt-simple .tt-media { width: 72px; height: 72px; flex-basis: 72px; }
}

/* ===== Colonne étroite : 3 cartes par ligne, denses (topics simples + news) ===== */
.tt-simple .tt-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tt-simple .tt-card { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.tt-simple .tt-media { width: 100%; height: 130px; flex: none; border-radius: 0; padding: 8px; box-sizing: border-box; border-bottom: 1px solid #eef1f3; }
.tt-simple .tt-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.tt-simple .tt-title { font-size: 16.5px; }
.tt-simple .tt-intro { font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tt-simple .tt-cta { margin-top: auto; padding-top: 8px; font-size: 13.5px; }
@container (max-width: 760px) {
  .tn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tn-card { flex-direction: column; }
  .tn-card .tn-media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .tn-card .tn-body { padding: 10px 12px 12px; }
  .tn-wrap .tn-card .tn-title { font-size: 15.5px !important; margin-bottom: 4px !important; }
  .tn-card .tn-desc { font-size: 13.5px; line-height: 1.45; -webkit-line-clamp: 3; }
  .tn-card .tn-date, .tn-card .tn-type { font-size: 11px; padding: 1px 8px; }
  .tn-card .tn-tags { margin-bottom: 6px; }
  .tn-card .tn-links { padding-top: 6px; }
}
@container (max-width: 480px) {
  .tt-simple .tt-grid, .tn-grid { grid-template-columns: 1fr; }
}
/* Topics simples : images plus grandes et plus visibles, cartes plus généreuses */
.tt-simple .tt-grid { gap: 14px; }
.tt-simple .tt-media { height: 190px; padding: 4px; background: #fff; }
.tt-simple .tt-media img { object-fit: contain; }
.tt-simple .tt-body { padding: 12px 14px 14px; }
.tt-simple .tt-title { font-size: 17.5px; }
.tt-simple .tt-intro { font-size: 14px; -webkit-line-clamp: 4; }

/* Topics simples : animation au survol (trait sous le titre, sous-titre, image, flèche) */
.tt-simple .tt-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tt-simple .tt-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(20, 40, 60, .12); }
.tt-simple .tt-title {
  background-image: linear-gradient(var(--rb-accent), var(--rb-accent));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size .35s ease, color .25s ease;
}
.tt-simple .tt-card:hover .tt-title { background-size: 100% 2px; color: var(--rb-accent-dark) !important; }
.tt-simple .tt-intro { transition: color .3s ease, transform .3s ease; }
.tt-simple .tt-card:hover .tt-intro { color: #23303a; transform: translateX(3px); }
.tt-simple .tt-media img { transition: transform .45s ease !important; }
.tt-simple .tt-card:hover .tt-media img { transform: scale(1.06) !important; }
.tt-simple .tt-cta span { display: inline-block; transition: transform .25s ease; }
.tt-simple .tt-card:hover .tt-cta span { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) {
  .tt-simple .tt-card, .tt-simple .tt-title, .tt-simple .tt-intro, .tt-simple .tt-media img, .tt-simple .tt-cta span { transition: none !important; }
  .tt-simple .tt-card:hover, .tt-simple .tt-card:hover .tt-intro, .tt-simple .tt-card:hover .tt-media img, .tt-simple .tt-card:hover .tt-cta span { transform: none !important; }
}
/* News en cartes : texte complet, jamais tronqué */
@container (max-width: 760px) {
  .tn-card .tn-desc { display: block !important; -webkit-line-clamp: unset; overflow: visible; }
}

/* ---------- Galerie [rb_gallery] ---------- */
.rgal-wrap { font-family: var(--rb-font); color: #23303a; text-align: left; }
.rgal-album { margin: 0 0 36px; }
.rgal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--rb-accent-soft); }
.rgal-wrap .rgal-title { font-family: var(--rb-font-display) !important; font-size: 21px !important; font-weight: 600 !important; margin: 0 !important; color: #23303a !important; text-transform: none !important; }
.rgal-meta { display: flex; gap: 6px; }
.rgal-date, .rgal-count { font-size: 12px; font-weight: 500; border-radius: 999px; padding: 2px 10px; }
.rgal-date { background: var(--rb-accent-soft); color: var(--rb-accent-dark); }
.rgal-count { background: #f1f2f3; color: #5f6b75; }
.rgal-grid { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rgal-album:not(.is-all) .rgal-extra { display: none; }
.rgal-item { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #eef1f3; }
.rgal-item a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.rgal-item .rgal-img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .35s ease, filter .35s ease; }
.rgal-item:hover .rgal-img { transform: scale(1.06); filter: brightness(1.05); }
.rgal-album:not(.is-all) .rgal-item[data-more]::after {
  content: attr(data-more);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 25, 35, .55); color: #fff; font-size: 26px; font-weight: 500; pointer-events: none;
}
.rgal-album:not(.is-all) .rgal-item[data-more] a { cursor: pointer; }
.rgal-wrap .rgal-grid .rgal-item:only-child { grid-column: span 2; aspect-ratio: 16 / 10; }
@container (max-width: 520px) { .rgal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rgal-wrap { container-type: inline-size; }
@media (max-width: 480px) { .rgal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Visionneuse */
html.rgal-open { overflow: hidden; }
.rgal-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(8, 12, 16, .94); display: flex; align-items: center; justify-content: center; }
.rgal-lb[hidden] { display: none !important; }
.rgal-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 92vw; max-height: 92vh; }
.rgal-fig img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.rgal-fig figcaption { color: rgba(255, 255, 255, .8); font: 14px var(--rb-font); }
.rgal-lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.rgal-lb button:hover, .rgal-lb button:focus-visible { background: rgba(255, 255, 255, .25); outline: none; }
.rgal-close { top: 16px; right: 16px; }
.rgal-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.rgal-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .rgal-prev, .rgal-next { top: auto; bottom: 16px; transform: none; } }
