/* ==========================================================
   Image & Data Science Team — Arnaud Demortière
   Feuille de style unique pour tout le site
   ========================================================== */

/* Polices hébergées sur le site (aucun appel à Google Fonts) — licences dans fonts/ */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/inter-400.woff") format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/inter-500.woff") format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/inter-600.woff") format("woff")}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/source-serif-4-600.woff") format("woff")}

:root {
  --ink: #14212b;
  --ink-soft: #46555f;
  --paper: #ffffff;
  --paper-alt: #f3f6f8;
  --line: #dde4e9;
  --accent: #0b6e8a;       /* bleu pétrole */
  --accent-dark: #084f64;
  --accent-warm: #e08a1e;  /* rappel "énergie" */
  --radius: 10px;
  --max: 1120px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; }
.brand-sub { font-size: .8rem; color: var(--ink-soft); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: .5rem .75rem; border-radius: 6px;
  text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500;
}
.main-nav a:hover { background: var(--paper-alt); }
.main-nav a[aria-current="page"] { color: var(--accent); background: #e6f2f6; }

.socials { display: flex; gap: .4rem; }
.socials a {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--ink-soft); border: 1px solid var(--line);
}
.socials a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 42px; height: 42px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); margin: auto; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-right { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.25rem; }
  .header-right.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .socials { margin-top: .8rem; }
}
@media (min-width: 961px) {
  .header-right { display: flex; align-items: center; gap: 1.2rem; }
}

/* ---------- Bandeau d'accueil ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(224,138,30,.35), transparent 60%),
    linear-gradient(135deg, #0a2a38 0%, #0b4f66 55%, #0b6e8a 100%);
}
.hero::after { /* trame discrète type "image scientifique" */
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; opacity: .85; margin-bottom: .8rem; }
.hero h1 { max-width: 18ch; }
.hero p.lead { font-size: 1.15rem; max-width: 60ch; opacity: .92; }
.hero .btns { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

.btn {
  display: inline-block; padding: .75rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: #fff; color: var(--accent-dark); }
.btn-primary:hover { background: #e6f2f6; color: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* En-tête de page intérieure */
.page-head { background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.page-head .container { padding-block: 3rem 2.2rem; }
.page-head p { color: var(--ink-soft); max-width: 70ch; margin: 0; }

/* ---------- Sections ---------- */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--paper-alt); }
.prose { max-width: 72ch; }

.grid-2 { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1.2fr 1fr; } }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: .8rem; }
.card .more { margin-top: auto; font-weight: 600; font-size: .92rem; text-decoration: none; }
.tag {
  display: inline-block;
  align-self: flex-start; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent-dark); background: #e6f2f6; padding: .2rem .55rem; border-radius: 4px; margin-bottom: .8rem;
}

.figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.figure figcaption { font-size: .85rem; color: var(--ink-soft); padding: .6rem .9rem; }

.facts { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; padding: 0; list-style: none; margin: 1rem 0 1.5rem; }
.facts li { font-size: .95rem; }
.facts strong { color: var(--accent-dark); }

/* Projets (pages IA / batteries) */
.project { padding-block: 2rem; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project h2 { font-size: 1.45rem; }

/* ---------- Équipe ---------- */
.member { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .member { grid-template-columns: 260px 1fr; } }
.member-photo { border-radius: var(--radius); background: var(--paper-alt); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.member .role { color: var(--accent-dark); font-weight: 600; margin-bottom: 1rem; }
.people { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.person { text-align: center; }
.person img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto .7rem; background: var(--paper-alt); }
.person .name { font-weight: 600; }
.person .pos { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Publications ---------- */
.pub-tools { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1.5rem; }
.pub-tools input {
  flex: 1 1 280px; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 8px; font: inherit;
}
.pub-tools select { padding: .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.pub-count { color: var(--ink-soft); font-size: .9rem; }
.pub-year { font-family: var(--font-serif); font-size: 1.3rem; margin: 2rem 0 .8rem; padding-bottom: .3rem; border-bottom: 2px solid var(--accent); display: inline-block; }
ol.pubs { list-style: none; padding: 0; margin: 0; }
ol.pubs li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.pubs .title { font-weight: 600; display: block; }
.pubs .authors { color: var(--ink-soft); font-size: .93rem; }
.pubs .journal { font-style: italic; font-size: .93rem; }
.pubs .doi { font-size: .85rem; margin-left: .4rem; }

/* ---------- Actualités / liens presse ---------- */
.news-list { display: grid; gap: 1rem; }
.news-item { display: flex; gap: 1rem; align-items: baseline; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.news-item:hover { border-color: var(--accent); }
.news-item .src { flex: 0 0 150px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); font-weight: 600; }
@media (max-width: 600px) { .news-item { flex-direction: column; gap: .2rem; } .news-item .src { flex: none; } }

/* ---------- Partenaires & pied de page ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem; justify-content: center; }
.partners img { height: 64px; width: auto; filter: grayscale(.2); }
.partners a:hover img { filter: none; }

.site-footer { background: #0a2a38; color: #c9d6de; font-size: .95rem; }
.site-footer .container { padding-block: 3rem 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h3 { color: #fff; font-family: var(--font-sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #fff; }
.site-footer address { font-style: normal; }
.site-footer .socials a { border-color: rgba(255,255,255,.25); color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #8ea3b0; }

.todo { /* repère visible uniquement en local pour le contenu à compléter */
  border-left: 4px solid var(--accent-warm); background: #fff7ec; padding: .8rem 1rem; border-radius: 4px; font-size: .92rem; color: #6b4a14;
}

.pubs .num { color: var(--accent-dark); font-weight: 600; margin-right: .25rem; }
.pubs strong { color: var(--ink); }
ol.refs { padding-left: 1.4rem; font-size: .93rem; color: var(--ink-soft); }
ol.refs li { margin-bottom: .5rem; }
a.figure { display: block; }
.segmentpy { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; background: var(--paper-alt); padding: 1rem 1.2rem; border-radius: var(--radius); }
.segmentpy img { width: 110px; height: auto; }
.partners img { max-width: 220px; object-fit: contain; }
.muted { color: var(--ink-soft); margin-bottom: 2rem; }
.people { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2rem 1.25rem; }
.person img { width: 132px; height: 132px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.person .pos:empty, .person .links:empty { display: none; }
.person .links { margin-top: .35rem; display: flex; gap: .5rem; justify-content: center; font-size: .82rem; }
.member-photo { aspect-ratio: 1; }
.group-title { font-family: var(--font-sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark); margin: 2.5rem 0 1.2rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.people { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.1rem 1.2rem; }
.person h3.name { font-family: var(--font-sans); font-size: 1.05rem; margin: 0 0 .2rem; }
.person .pos { color: var(--accent-dark); font-weight: 600; font-size: .85rem; margin-bottom: .6rem; }
.person .topic { font-size: .9rem; margin: 0 0 .5rem; line-height: 1.45; }
.person .meta { font-size: .8rem; color: var(--ink-soft); margin: 0; line-height: 1.45; }

/* Research page */
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.subnav a { padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.subnav a:hover { border-color: var(--accent); color: var(--accent-dark); }
.project { scroll-margin-top: 90px; }
.subs { display: grid; gap: .75rem; }
details.sub { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
details.sub > summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; display: flex; gap: .8rem; align-items: flex-start; min-height: 44px; }
details.sub > summary::-webkit-details-marker { display: none; }
details.sub > summary::before { content: "+"; flex: 0 0 1.4rem; height: 1.4rem; border-radius: 50%; background: #e6f2f6; color: var(--accent-dark); display: grid; place-items: center; font-weight: 700; line-height: 1; margin-top: .1rem; }
details.sub[open] > summary::before { content: "−"; }
details.sub > summary:hover { color: var(--accent-dark); }
.sub-body { padding: 0 1.2rem 1.2rem 3.4rem; max-width: 80ch; }
@media (max-width: 600px) { .sub-body { padding-left: 1.2rem; } }

/* Publications : filtres, types, actions */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.pub-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: -.5rem 0 1rem; }
.chip { font: inherit; font-size: .9rem; font-weight: 500; padding: .5rem 1rem; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pub-type { display: inline-block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: .1rem .45rem; border-radius: 4px; margin-right: .3rem; vertical-align: .1em; }
.pub-type-journal { background: #e6f2f6; color: var(--accent-dark); }
.pub-type-preprint { background: #fff1dc; color: #7a4a06; }
.pub-type-conference { background: #eef0f2; color: #3d4852; }
.pub-type-chapter { background: #f0eafa; color: #4b2f7a; }
.pub-acts { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .45rem; }
.pub-act { font: inherit; font-size: .85rem; font-weight: 500; color: var(--accent); background: none; border: 0; padding: .35rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.pub-act:hover { color: var(--accent-dark); }

/* Accessibilité (revue ui-ux-pro-max) */
html { scroll-padding-top: 96px; }               /* le focus et les ancres ne passent pas sous l'en-tête fixe */
:focus-visible { outline: 3px solid var(--accent-warm); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .hero :focus-visible { outline-color: #fff; }
.socials a { width: 44px; height: 44px; }
.nav-toggle { width: 44px; height: 44px; }
.main-nav a { min-height: 44px; display: flex; align-items: center; }
.card .more { padding: .4rem 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.pubs strong.tm { color: var(--accent-dark); font-weight: 600; }

/* Accueil : bandeau plus fin (-30 %), image à gauche et plus grande, axes sur 3 colonnes */
.hero .container { padding-block: clamp(2.45rem, 6.3vw, 4.55rem); }
.hero p.lead { margin-bottom: 0; }
.hero .btns { margin-top: 1.2rem; }
@media (min-width: 860px) { .grid-2.about { grid-template-columns: 1.25fr 1fr; gap: 3rem; } }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hero .container { padding-block: clamp(2rem, 3.6vw, 2.75rem); }
.hero h1 { max-width: none; margin-bottom: .35em; }
.hero .eyebrow { margin-bottom: .5rem; }
.hero p.lead { max-width: 72ch; }
@media (min-width: 860px) { .grid-2.about { grid-template-columns: 1.4fr 1fr; align-items: start; } .grid-2.about .figure { position: sticky; top: 96px; } }

/* Accueil : image dans le bandeau, à gauche du texte */
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 3rem; } }
@media (max-width: 859px) { .hero-img { max-width: 560px; } }
.hero h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.about .prose { max-width: 78ch; }
section.hero { padding-block: 0; }
.hero .container.hero-grid { padding-block: clamp(2rem, 4vw, 3rem); }
/* Accueil : bloc "About" plus compact, texte sur toute la largeur */
section.about-section { padding-block: clamp(1.75rem, 3.5vw, 2.75rem); }
.about .prose { max-width: none; }
.about h2 { margin-bottom: .45em; }
.about p { margin-bottom: .8em; }

/* En-têtes des pages intérieures : même bandeau bleu que l'accueil */
.page-head {
  position: relative; overflow: hidden; color: #fff; border-bottom: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(224,138,30,.35), transparent 60%),
    linear-gradient(135deg, #0a2a38 0%, #0b4f66 55%, #0b6e8a 100%);
}
.page-head::after {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.page-head .container { position: relative; z-index: 1; padding-block: clamp(2rem, 4vw, 3rem); }
.page-head h1 { color: #fff; }
.page-head p { color: rgba(255,255,255,.9); }
.page-head a { color: #fff; }
.page-head :focus-visible { outline-color: #fff; }
.page-head .subnav a { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); color: #fff; }
.page-head .subnav a:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }

/* Page Research : vue d'ensemble des 6 axes */
section.axes-section { padding-bottom: 0; }
section.axes-section h2 { margin-bottom: 1.25rem; }

/* ---------- Bouton mode sombre ---------- */
.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-left: .4rem;
  color: var(--ink-soft); background: none; border: 1px solid var(--line); cursor: pointer; padding: 0;
}
.theme-toggle:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (max-width: 860px) { .theme-toggle { margin: .8rem 0 0; } }

/* ---------- Mode sombre ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e4ecf0;
  --ink-soft: #a7b6c0;
  --paper: #0e171d;
  --paper-alt: #142129;
  --line: #273a46;
  --accent: #5cc0dd;
  --accent-dark: #8fd3e7;
  --accent-warm: #f0a24a;
}
[data-theme="dark"] .site-header { background: rgba(14,23,29,.96); }
[data-theme="dark"] .main-nav a[aria-current="page"] { background: rgba(92,192,221,.15); }
[data-theme="dark"] .card,
[data-theme="dark"] .news-item,
[data-theme="dark"] .person,
[data-theme="dark"] details.sub,
[data-theme="dark"] .chip,
[data-theme="dark"] .subnav a,
[data-theme="dark"] .pub-tools input,
[data-theme="dark"] .pub-tools select { background: var(--paper-alt); color: var(--ink); }
[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0e171d; }
[data-theme="dark"] .socials a:hover,
[data-theme="dark"] .theme-toggle:hover { color: #0e171d; }
[data-theme="dark"] .tag,
[data-theme="dark"] .pub-type-journal,
[data-theme="dark"] details.sub > summary::before { background: rgba(92,192,221,.15); color: var(--accent-dark); }
[data-theme="dark"] .pub-type-preprint { background: rgba(240,162,74,.18); color: #f4c48a; }
[data-theme="dark"] .pub-type-conference { background: rgba(255,255,255,.08); color: #c9d4db; }
[data-theme="dark"] .pub-type-chapter { background: rgba(170,140,230,.18); color: #cdb8f2; }
[data-theme="dark"] .todo { background: rgba(240,162,74,.12); color: #f4c48a; }
[data-theme="dark"] .person img { box-shadow: 0 0 0 4px var(--paper-alt), 0 0 0 5px var(--line); }
[data-theme="dark"] .site-footer { background: #081419; }
/* Les logos partenaires et les figures restent sur fond clair pour rester lisibles */
[data-theme="dark"] .partners a { background: #fff; border-radius: 8px; padding: .4rem .7rem; }
[data-theme="dark"] .figure { background: #fff; }
[data-theme="dark"] .figure figcaption { background: var(--paper-alt); color: var(--ink-soft); }
[data-theme="dark"] .btn-primary { color: #084f64; }
[data-theme="dark"] .btn-primary:hover { color: #084f64; }
@media (max-width: 860px) {
  [data-theme="dark"] .header-right { background: var(--paper); }
}

/* Page Research : le texte des axes occupe toute la largeur entre les marges */
.project .prose { max-width: none; }
.partners img[src$="logo-hauts-de-france.png"] { max-width: 270px; }

/* Page News : revue de presse */
.press-item strong { display: block; font-weight: 600; margin-bottom: .25rem; }
.press-txt { display: block; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.press-intro { max-width: none; margin-bottom: 1.2rem; }

/* Page Research : image en haut à gauche du bloc, le texte l'entoure */
.project.has-fig { display: flow-root; }
.project.has-fig .project-fig { float: left; width: min(40%, 440px); margin: .3rem 2rem 1rem 0; }
.project.has-fig .project-fig img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
  .project.has-fig .project-fig { float: none; width: 100%; margin: 0 0 1.2rem; }
}
