/* ==========================================================================
   GDR-GDM – feuille de style unique du site
   Mise en page : en-tête blanc avec logo, bandeau de titre gris-bleu,
   contenu sur une colonne lisible (≈ 70 caractères), tableaux plus larges.
   Aucune dépendance externe (ni police, ni script distant).
   ========================================================================== */

:root {
  color-scheme: light;
  --ink: #0c2340;        /* bleu marine du logo CNRS : titres, pied de page */
  --text: #1d2b3a;       /* texte courant */
  --muted: #586779;      /* texte secondaire */
  --paper: #ffffff;
  --wash: #f2f5f9;       /* fonds de bandeaux */
  --rule: #d7dde6;       /* filets */
  --accent: #ee7a12;     /* orange du logo GDR : repères, filets */
  --accent-ink: #a94f00; /* orange lisible en texte sur blanc */
  --link: #0a4a8c;

  --font-display: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --w-page: 68rem;
  --w-text: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 1.0625rem/1.65 var(--font-body);
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }

.wrap { max-width: var(--w-page); margin-inline: auto; padding-inline: 1.25rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* ---------- En-tête ---------- */
.site-header { border-bottom: 3px solid var(--accent); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: .9rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 62px; width: auto; }
.site-header ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; }
.site-header nav a {
  display: block; padding: .35rem 0; color: var(--ink); font-weight: 600; font-size: 1rem;
  text-decoration: none; border-bottom: 3px solid transparent;
}
.site-header nav a:hover { border-bottom-color: var(--rule); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------- Bandeau de titre ---------- */
.page-head { background: var(--wash); border-bottom: 1px solid var(--rule); padding-block: 2.5rem 2.25rem; }
.page-head h1 { max-width: 34ch; }
.lede { margin-top: .9rem; max-width: var(--w-text); font-size: 1.2rem; line-height: 1.5; color: var(--muted); }
.crumb { margin-bottom: .6rem; font-size: .95rem; }
.crumb span { color: var(--muted); }
.eyebrow, .axe-num, .next-label {
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink);
}

/* ---------- Accueil ---------- */
.hero { background: var(--wash); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 1rem 2.5rem; padding-block: 2.75rem; }
.hero h1 { margin-top: .6rem; font-size: clamp(2.1rem, 5vw, 3.25rem); }
.hero .lede { max-width: 34rem; }
.hero-fig { justify-self: end; }

.next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: 2rem; padding: 1.25rem 1.5rem;
  background: var(--paper); border: 1px solid var(--rule); border-left: 5px solid var(--accent); border-radius: 4px;
}
.block > .next { margin-top: 0; }
.next-title { margin-top: .2rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.next-meta { margin-top: .2rem; color: var(--muted); }
.next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.btn {
  display: inline-block; padding: .6rem 1.1rem; background: var(--ink); color: #fff; font-weight: 600;
  text-decoration: none; border-radius: 4px;
}
.btn:hover { background: #17375f; }

.block { margin-top: 3.25rem; }
.block > h2 { padding-bottom: .5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
main > .wrap:last-child { padding-bottom: 4.5rem; }
.page-head + .wrap > .block:first-child { margin-top: 2.25rem; }
.page-head + .wrap > .prose:first-child { margin-top: 2.25rem; }
.page-head + .wrap > .prose:first-child + .block { margin-top: 2rem; }

.prose { max-width: var(--w-text); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose li > ul { margin-top: .35rem; }
.prose li::marker { color: var(--accent); }

.axes { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.axes li { padding: 1.25rem 1.4rem 1.4rem; background: var(--wash); border-top: 3px solid var(--ink); }
.axes h3 { margin-top: .4rem; font-size: 1.3rem; }
.axes a { color: var(--ink); }

.org { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem 3rem; }
.org h3 { margin-bottom: .75rem; }
.org dl + h3 { margin-top: 2rem; }
.people dt { font-weight: 600; color: var(--ink); }
.people dd { color: var(--muted); font-size: .97rem; line-height: 1.45; }
.people dd + dt { margin-top: .8rem; }
.role { margin-left: .4rem; font-size: .8rem; font-weight: 600; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .05em; }
.plain { list-style: none; }

.stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1rem 1.5rem; margin-block: 1.5rem; }
.stats li { padding-top: .6rem; border-top: 3px solid var(--rule); color: var(--muted); font-size: .97rem; line-height: 1.4; }
.stats b { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.more { font-weight: 600; }
.more::after { content: " →"; }

/* ---------- Thèmes ---------- */
.with-toc { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 3.5rem; align-items: start; padding-top: 2.5rem; }
.toc { position: sticky; top: 1.5rem; font-size: .95rem; line-height: 1.4; }
.toc-title { font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.toc ul { list-style: none; }
.toc li { margin-top: .5rem; }
.toc ul ul { padding-left: .9rem; border-left: 2px solid var(--rule); margin-top: .5rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose h2 { margin-bottom: 1rem; }
.prose h3 { margin-top: 2.25rem; font-size: 1.35rem; }
.axe-section { margin-top: 3.5rem; padding-top: 2rem; border-top: 3px solid var(--ink); }
.axe-section h2 { margin-top: .3rem; font-size: 1.85rem; }
.subtitle { margin-top: .3rem; font-family: var(--font-display); font-style: italic; color: var(--muted); }
.subtitle + p { margin-top: 1rem; }
:target { scroll-margin-top: 1.5rem; }

/* ---------- Laboratoires ---------- */
.filter { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.filter + .block { margin-top: 2.25rem; }
.filter label { font-weight: 600; color: var(--ink); }
.filter input {
  flex: 1 1 16rem; max-width: 26rem; padding: .55rem .8rem; font: inherit; color: var(--text);
  background: var(--paper); border: 1px solid #9aa7b8; border-radius: 4px;
}
.filter p { flex-basis: 100%; }
[hidden] { display: none !important; }
.count {
  display: inline-block; margin-left: .4rem; padding: .05rem .55rem; vertical-align: .2em;
  font: 600 .85rem/1.5 var(--font-body); color: var(--ink); background: var(--wash); border: 1px solid var(--rule); border-radius: 999px;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); white-space: nowrap; }
tbody th { font-weight: 600; color: var(--ink); width: 44%; min-width: 15rem; }
tbody td:nth-child(2) { width: 32%; min-width: 11rem; }
tbody td:last-child { min-width: 10rem; padding-right: 0; }
.unit { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }

/* ---------- Rencontres ---------- */
.block > .prose.muted { margin-bottom: 1rem; }
.year { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0 1.5rem; padding-block: 1.25rem; border-top: 1px solid var(--rule); }
.block > .year:first-of-type { border-top: 0; padding-top: .25rem; }
.year-label { font-size: 1.9rem; font-variant-numeric: tabular-nums; color: var(--ink); position: sticky; top: 1rem; align-self: start; }
.events { list-style: none; display: grid; gap: 1.25rem; max-width: 48rem; }
.events li { padding-left: 1rem; border-left: 3px solid var(--rule); }
.ev-date { font-size: .9rem; font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.ev-title { font-weight: 600; font-size: 1.08rem; line-height: 1.4; color: var(--ink); }
.ev-meta { color: var(--muted); font-size: .97rem; }
.ev-detail { margin-top: .2rem; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.ev-pres { margin-top: .25rem; font-size: .95rem; font-weight: 600; }
.ev-pres a::before { content: "↓ "; color: var(--accent-ink); }
.tag {
  display: inline-block; margin-left: .35rem; padding: 0 .5rem; font-size: .78rem; font-weight: 600; line-height: 1.6;
  color: var(--ink); background: var(--wash); border: 1px solid var(--rule); border-radius: 999px; white-space: nowrap;
}
.tag-off { color: #8a1c1c; background: #fbeeee; border-color: #ecc8c8; }
.is-cancelled .ev-title, .is-cancelled .ev-date { color: var(--muted); }
.is-cancelled .ev-title { text-decoration: line-through; text-decoration-color: #b9c2ce; }

/* ---------- Formations / présentations ---------- */
.links, .talks { list-style: none; max-width: 50rem; }
.links li, .talks li { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.links li:first-child, .talks li:first-child { padding-top: 0; }
.links a { font-weight: 600; font-size: 1.08rem; }
.links span { display: block; color: var(--muted); font-size: .97rem; }
.speaker { display: block; font-weight: 600; color: var(--ink); }
.speaker i { font-weight: 400; font-style: normal; color: var(--muted); font-size: .92rem; }
.speaker i::before { content: "· "; }

/* ---------- Rencontres à venir, messages ---------- */
.next-list { display: grid; gap: 1rem; }
.next-list .next, .next + .next { margin-top: 0; }
.next + .next { margin-top: 1rem; }
.next-none { margin-top: 2rem; }
.tag-on { color: #0d5a2c; background: #e9f6ee; border-color: #bfe2cc; }
.notice { margin-block: 1.25rem; padding: .8rem 1rem; border-radius: 4px; border: 1px solid var(--rule); border-left-width: 5px; max-width: 50rem; }
.notice-ok { background: #e9f6ee; border-color: #bfe2cc; border-left-color: #1c7a40; color: #0d4423; }
.notice-error { background: #fbeeee; border-color: #ecc8c8; border-left-color: #b42323; color: #6f1414; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Administration ---------- */
.admin { padding-top: 1.25rem; }
.admin h1 { font-size: 2rem; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: .6rem 1rem; background: var(--wash); border: 1px solid var(--rule); border-radius: 4px; font-size: .95rem; }
.admin-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-block: 2rem 1rem; }
.admin .block { margin-top: 2rem; }
.admin .block h1 { margin-bottom: 1rem; }
.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn-light { padding: .35rem .8rem; background: var(--paper); color: var(--ink); border: 1px solid #9aa7b8; }
.btn-light:hover { background: var(--wash); }
.admin-table { margin-top: 1rem; }
.admin-table tbody th { width: auto; }
.admin-table td:nth-child(2), .admin-table tbody td { width: auto; min-width: 0; }
.nowrap { white-space: nowrap; }
.actions { white-space: nowrap; text-align: right; }
.actions form { display: inline; margin-left: .9rem; }
/* Colonne PDF du programme (administration) : lien vers le fichier et bouton « Retirer » sur une ligne. */
.pdf-cell { white-space: nowrap; }
.pdf-cell form { display: inline; margin-left: .6rem; }
.link-danger { padding: 0; border: 0; background: none; font: inherit; color: #b42323; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.form-narrow { max-width: 26rem; }
.form-wide { max-width: 44rem; }
.form { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem; }
.field label { display: block; margin-bottom: .3rem; font-weight: 600; color: var(--ink); }
.field input[type="text"], .field input[type="password"], .field input[type="email"], .field input[type="date"], .field select, .field textarea {
  width: 100%; padding: .55rem .7rem; font: inherit; color: var(--text); background: var(--paper); border: 1px solid #9aa7b8; border-radius: 4px;
}
.field [aria-invalid="true"] { border-color: #b42323; border-width: 2px; }
.field-check { display: flex; align-items: center; gap: .6rem; }
.field-check input { width: 1.15rem; height: 1.15rem; }
.field-check label { margin: 0; }
.hint { margin-top: .25rem; font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.optional { font-weight: 400; color: var(--muted); }
.field-error { margin-top: .3rem; font-size: .93rem; font-weight: 600; color: #b42323; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: .5rem; }

/* ---------- Image (bandeau) d'une rencontre ---------- */
.banner { background: var(--ink); line-height: 0; }
.banner img { display: block; width: 100%; height: auto; aspect-ratio: 40 / 9; max-height: 360px; object-fit: cover; }   /* mêmes proportions que GDR_IMAGE_L × GDR_IMAGE_H */
.thumb { display: block; width: 100%; aspect-ratio: 40 / 9; object-fit: cover; border: 1px solid var(--rule); border-radius: 4px; margin-bottom: .6rem; }

/* ---------- Informations pratiques et inscription ---------- */
.btn-accent { background: var(--accent-ink); }
.btn-accent:hover { background: #8a4000; }
.rencontre-links a:not(.btn) { font-weight: 600; }
.infos .prose h3 { margin-top: 2rem; font-size: 1.3rem; }
.infos .prose h4 { margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.infos .prose h3 + p, .infos .prose h4 + p, .infos .prose h3 + ul, .infos .prose h4 + ul { margin-top: .6rem; }
.infos .prose > :first-child { margin-top: 0; }
.info-images { display: flex; flex-wrap: wrap; gap: 1rem; margin-block: 1.25rem; }
.info-images figure { margin: 0; flex: 1 1 14rem; max-width: 30rem; }
.info-images img { display: block; width: 100%; border: 1px solid var(--rule); border-radius: 4px; }
.info-images figcaption { margin-top: .3rem; font-size: .9rem; color: var(--muted); }
.field textarea { resize: vertical; line-height: 1.5; }
.hint code, .img-list code { font-size: .88em; background: var(--wash); padding: .05rem .3rem; border-radius: 3px; overflow-wrap: anywhere; }
.label { margin-bottom: .3rem; font-weight: 600; color: var(--ink); }
.img-list { list-style: none; display: grid; gap: .75rem; }
.img-list li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .9rem; align-items: center; }
.img-list img { width: 7rem; height: 4.5rem; object-fit: cover; border: 1px solid var(--rule); border-radius: 4px; }
.img-list .field-check { margin-top: .35rem; }

/* ---------- Programme d'une rencontre ---------- */
.programme { list-style: none; max-width: 52rem; }
.programme li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .1rem 1.25rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.programme.no-time li { grid-template-columns: 1fr; }
.pg-time { font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-speaker { font-weight: 600; color: var(--ink); }
.pg-speaker span { font-weight: 400; color: var(--muted); font-size: .93rem; }
.pg-speaker span::before { content: " · "; }
.pg-title { line-height: 1.45; }
.pg-pdf { margin-top: .15rem; font-size: .95rem; font-weight: 600; }
.pg-pdf a::before { content: "↓ "; color: var(--accent-ink); }
.programme li.pg-break { background: var(--wash); border-left: 3px solid var(--accent); padding-left: .9rem; padding-right: .9rem; }
.pg-break-label { font-weight: 600; font-style: italic; color: var(--ink); }
.pg-break .pg-title { color: var(--muted); font-size: .95rem; }
.programme li.pg-chair { display: block; padding: .6rem 0 .5rem; font-style: italic; color: var(--muted); border-bottom: 2px solid var(--rule); }
.programme li + li.pg-chair { margin-top: 1rem; }
.session-title { margin: 1.5rem 0 .25rem; font-size: 1.1rem; font-style: italic; color: var(--muted); font-weight: 400; }
.block > h2 + .session-title { margin-top: 0; }
.rencontre-meta { margin-top: .9rem; font-size: 1.2rem; color: var(--muted); }
.rencontre-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.25rem; }
.actions .sep { margin-left: .9rem; }
.field input[type="time"], .field input[type="file"] { width: 100%; padding: .5rem .7rem; font: inherit; color: var(--text); background: var(--paper); border: 1px solid #9aa7b8; border-radius: 4px; }
.current-file { margin-bottom: .5rem; font-size: .95rem; overflow-wrap: anywhere; }
fieldset.field { border: 1px solid var(--rule); border-radius: 4px; padding: 1rem 1.1rem 1.1rem; margin: 0; display: grid; gap: 1rem; }
fieldset.field legend { padding: 0 .4rem; font-weight: 600; color: var(--ink); }
@media (max-width: 46rem) { .programme li { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #c9d4e2; font-size: .95rem; line-height: 1.6; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 3rem; padding-block: 2.5rem; }
.site-footer a { color: #fff; }
.foot-credit { margin-top: .6rem; font-size: .88rem; }
.foot-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; margin-bottom: .3rem; }

/* ---------- Petits écrans ---------- */
@media (max-width: 56rem) {
  .with-toc { grid-template-columns: 1fr; gap: 2rem; }
  .toc { position: static; padding: 1rem 1.25rem; background: var(--wash); }
}
@media (max-width: 46rem) {
  body { font-size: 1rem; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 2rem; }
  .hero-fig { display: none; }
  .brand img { height: 50px; }
  .year { grid-template-columns: 1fr; gap: .75rem; }
  .year-label { position: static; font-size: 1.6rem; }
  .page-head { padding-block: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header nav, .site-footer, .filter, .toc, .skip { display: none; }
  .page-head, .hero { background: none; }
}

/* Administration : programme PDF */
.admin-pdf { margin: 1.25rem 0 1.5rem; padding: 1rem 1.25rem; border: 1px solid #c9d2de; border-radius: 6px; background: var(--paper); }
.admin-pdf h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.admin-pdf-form { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .75rem; }
.admin-pdf-form label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.link-button { padding: 0; border: 0; background: none; font: inherit; color: var(--link, #1f4e8c); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.link-button:disabled { color: #8a94a3; text-decoration: none; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Page d'une rencontre : en-tête sur la photo, colonne « En bref », programme
   -------------------------------------------------------------------------- */
.rencontre-head.has-image { position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: clamp(13rem, 22vw, 18.5rem); padding-block: 4.5rem 1.6rem;
  background: var(--ink); border-bottom: 3px solid var(--accent); color: #fff; }
.rencontre-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.rencontre-head.has-image::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,35,64,.05) 0%, rgba(12,35,64,.35) 40%, rgba(12,35,64,.88) 100%); }
.rencontre-head.has-image .wrap { position: relative; z-index: 1; width: 100%; }
.rencontre-head.has-image h1 { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.rencontre-head.has-image .crumb a, .rencontre-head.has-image .crumb span { color: rgba(255,255,255,.9); }
.rencontre-head.has-image .rencontre-meta, .rencontre-head.has-image .lede { color: rgba(255,255,255,.92); }
.rencontre-head .rencontre-meta { margin-top: .5rem; font-size: 1.1rem; }
.rencontre-head .lede { margin-top: .6rem; font-size: 1.05rem; }

.rencontre-layout { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 0 3.5rem; align-items: start; }
.rencontre-main { grid-column: 1; grid-row: 1; min-width: 0; }
.rencontre-side { grid-column: 2; grid-row: 1; position: sticky; top: 1.5rem; margin-top: 2.25rem;
  padding: 1.25rem 1.25rem 1rem; background: var(--wash); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 6px; font-size: .95rem; }
.rencontre-main > #programme > .block:first-child { margin-top: 2.25rem; }
.side-facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: 0; }
.side-facts dt { font-weight: 600; color: var(--muted); }
.side-facts dd { margin: 0; color: var(--ink); }
.side-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.1rem; }
.side-actions .btn { text-align: center; }
.side-nav { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.side-title { margin-bottom: .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li + li { margin-top: .3rem; }
.side-nav a { text-decoration: none; }
.side-nav a:hover { text-decoration: underline; }
.day { scroll-margin-top: 1rem; }
#infos { scroll-margin-top: 1rem; }
@media (max-width: 64rem) {
  .rencontre-layout { grid-template-columns: minmax(0, 1fr); }
  .rencontre-side { grid-column: 1; grid-row: 1; position: static; }
  .rencontre-main { grid-row: 2; }
  .side-actions { flex-direction: row; flex-wrap: wrap; }
  .side-nav { display: none; }
}

/* Programme : pauses alignées sur la colonne des horaires, président de séance plus lisible */
.programme { max-width: none; }
.programme li.pg-break { margin-inline: -.9rem; padding-inline: .9rem; border-left: 0; box-shadow: inset 3px 0 0 var(--accent); border-radius: 0 4px 4px 0; }
.programme li.pg-chair { padding: .9rem 0 .45rem; font-style: normal; border-bottom: 1px solid var(--rule); }
.programme li.pg-chair span { margin-right: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.programme li + li.pg-chair { margin-top: .75rem; }
.programme li { padding: .75rem 0; }
@media print { .rencontre-side { display: none; } .rencontre-layout { display: block; } .rencontre-head.has-image { color: inherit; min-height: 0; padding-block: 1rem; background: none; } .rencontre-head-img, .rencontre-head.has-image::after { display: none; } .rencontre-head.has-image h1, .rencontre-head.has-image .rencontre-meta { color: inherit; text-shadow: none; } }
.rencontre-main > .infos:first-child { margin-top: 2.25rem; }
.rencontre-main > .infos + #programme > .block:first-child { margin-top: 3.25rem; }

/* Liens vers les rubriques d'une page (page Rencontres) */
.head-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.head-links a { display: inline-block; padding: .5rem 1.1rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none; }
.head-links a:hover, .head-links a:focus-visible { background: var(--ink); color: #fff; }
#a-venir, #evenements-lies-a-venir, #reunions, #evenements-lies { scroll-margin-top: 1rem; }

/* Précision d'une rencontre, au-dessus des informations pratiques */
.rencontre-detail { margin-top: 2.25rem; max-width: var(--w-text); padding: .9rem 1.1rem; background: var(--wash); border-left: 3px solid var(--accent); border-radius: 0 4px 4px 0; font-size: 1.05rem; line-height: 1.55; color: var(--text); }
.rencontre-detail + .infos, .rencontre-detail + #programme > .block:first-child { margin-top: 2rem; }

/* Administration : compte connecté, lien sous un formulaire */
.admin-user { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.admin-user form { display: inline; }
.form-after { margin-top: 1.25rem; }

/* Saisie d'une heure : deux listes (heure, minutes au pas de 5) */
.heure-saisie { display: inline-flex; align-items: center; gap: .3rem; }
.heure-saisie select { width: auto; min-width: 5.2rem; padding: .5rem .5rem; font: inherit; color: var(--text); background: var(--paper); border: 1px solid #9aa7b8; border-radius: 4px; }
.heure-saisie select + select { min-width: 4.4rem; }
.heure-saisie select[aria-invalid="true"] { border-color: #b42323; border-width: 2px; }
.field-row-horaire { grid-template-columns: minmax(12rem, 16rem) auto auto; justify-content: start; }
@media (max-width: 40em) { .field-row-horaire { grid-template-columns: 1fr; } }
#organisateurs, #themes { scroll-margin-top: 1rem; }
