/* Psychanalyse Actuelle — une revue en ligne.
   Papier, encre, un seul rouge. Serif partout. Filets fins.
   Texte grand (20 px), cibles hautes, rien qui dépende du survol. */

:root {
  --paper: #f8f6f1;
  --paper-2: #f1ede5;
  --ink: #17140f;
  --ink-2: #4f4a42;
  --rule: #d6cfc2;
  --rule-strong: #17140f;
  --red: #8c1f1a;
  --red-2: #6e1713;
  --focus: #1d4f8a;
  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --max: 1040px;
  --text: 1.25rem;    /* 20 px */
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--text);
  line-height: 1.55;
  font-feature-settings: "onum" 1, "pnum" 1;
}
a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red-2); text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; letter-spacing: -0.012em; margin: 0; }
p { margin: 0 0 1em; }
em { font-style: italic; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.sc { font-variant-caps: all-small-caps; letter-spacing: .08em; font-weight: 500; color: var(--ink-2); margin: 0 0 .4em; font-size: 1.05rem; }
.num { font-variant-numeric: lining-nums; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 30; }
.skip:focus { top: 12px; }

/* ---------- Bandeau ---------- */
.masthead { border-bottom: 1px solid var(--rule-strong); padding: 22px 0 0; }
.overline { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 1rem; color: var(--ink-2); margin: 0 0 18px; font-variant-caps: all-small-caps; letter-spacing: .08em; }
.overline-cta { color: var(--red); }
.title {
  display: inline-block;
  font-size: clamp(2.6rem, 5.4vw, 4rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 14px;
}
.title em { color: var(--red); }
.nav { display: flex; flex-wrap: wrap; gap: 0 28px; border-top: 1px solid var(--rule); padding: 6px 0 0; align-items: stretch; }
.nav > a, .nav-item > a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0 14px;
  font-size: 1.1rem;
  display: inline-block;
}
.nav > a::after, .nav-item > a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav > a:hover::after, .nav > a[aria-current="page"]::after,
.nav-item:hover > a::after, .nav-item > a[aria-current="page"]::after { transform: scaleX(1); }
.nav > a[aria-current="page"], .nav-item > a[aria-current="page"] { color: var(--red); }

.nav-item { position: relative; }
.nav-sub {
  position: absolute; left: -12px; top: 100%;
  min-width: 15rem; padding: 10px 0;
  background: var(--paper); border: 1px solid var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 40;
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub {
  opacity: 1; visibility: visible; transform: none;
}
.nav-sub a {
  display: block; padding: 10px 16px; color: var(--ink); text-decoration: none; font-size: 1.05rem;
  border: 0;
}
.nav-sub a::after { display: none !important; }
.nav-sub a:hover { background: var(--paper-2); color: var(--red); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 3.4rem; padding: .7rem 1.4rem;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  text-decoration: none; font-size: 1.1rem;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.textlink { background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; text-underline-offset: .18em; font-size: inherit; }
.textlink:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 2rem; }

/* ---------- Accueil : hero ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero {
  position: relative;
  min-height: calc(100svh - var(--head-h, 190px) - 7rem);
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 24px 32px;
  text-align: center;
}
.hero-solo { min-height: calc(100svh - var(--head-h, 190px)); }
.hero-inner { width: 100%; max-width: 48rem; margin: 0 auto; animation: rise .55s var(--ease) both; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 0 auto .5em; max-width: 18ch; }
.hero h1 em { color: var(--red); }
.hero-lede { font-size: 1.2rem; color: var(--ink-2); max-width: 28rem; margin: 0 auto 1.8rem; }

.hero-search {
  display: flex; align-items: center;
  max-width: 32rem; margin: 0 auto;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 3px 3px 3px 0;
}
.hero-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus); }
.hero-search input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: .45rem 1.2rem; font-size: 1.1rem;
}
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: #8a837a; font-style: italic; }
.hero-go {
  display: inline-flex; align-items: center; gap: .45em;
  border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  padding: 0 1.15rem; font-size: 1rem; height: 2.45rem;
}
.hero-go:hover { background: var(--red); }
.hero-go .arrow { transition: transform .25s var(--ease); }
.hero-go:hover .arrow { transform: translateX(4px); }

/* Prochaine séance — bandeau sous le hero, centré, lisible */
.hero-next {
  margin-top: 2.5rem;
  animation: rise .55s .2s var(--ease) both;
}
.next-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px 28px;
  align-items: center;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 1.15rem 1.4rem;
  transition: border-color .2s, background .2s;
}
.next-card:hover { border-color: var(--red); background: #fff; }
.nc-left { display: flex; flex-direction: column; gap: .15rem; min-width: 7.5rem; }
.nc-label { font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--red); font-size: .95rem; }
.nc-date { font-size: 1.35rem; font-weight: 500; line-height: 1.15; }
.nc-date .num { font-size: 1.7rem; }
.nc-when { color: var(--ink-2); font-size: 1rem; }
.nc-mid { min-width: 0; }
.nc-kind { display: block; color: var(--ink-2); font-size: 1rem; margin-bottom: .15rem; }
.nc-title { display: block; font-size: 1.45rem; font-weight: 500; line-height: 1.2; }
.nc-who { display: block; font-style: italic; color: var(--ink-2); margin-top: .2rem; }
.nc-sum { display: block; color: var(--ink-2); font-size: 1rem; margin-top: .35rem; }
.nc-go { color: var(--red); font-size: 1.1rem; white-space: nowrap; }

/* Section vidéo après le hero */
.video-section { background: var(--paper-2); border-top: 1px solid var(--rule); }
.video-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px 56px; align-items: center;
}
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--ink); background: var(--ink); overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-copy h2 { font-size: 1.7rem; margin: .35rem 0 .55rem; line-height: 1.2; }
.video-who { font-style: italic; color: var(--ink-2); margin-bottom: 1rem; }
.video-copy p { line-height: 1.55; }

/* Cartes activités — courtes et aérées */
.act-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.act-cards-page { grid-template-columns: 1fr; max-width: 38rem; gap: 28px; margin-top: 2.6rem; }
.act-card {
  display: flex; flex-direction: column; gap: .65rem;
  padding: 2rem 1.9rem; border: 1px solid var(--ink);
  text-decoration: none; color: var(--ink); background: var(--paper);
  transition: background .2s, border-color .2s;
}
.act-card:hover { background: var(--paper-2); border-color: var(--red); }
.act-card .tag { font-variant-caps: all-small-caps; letter-spacing: .07em; color: var(--red); font-size: .95rem; margin-bottom: .2rem; }
.act-card .name { font-size: 1.65rem; font-weight: 500; line-height: 1.2; }
.act-card .desc { color: var(--ink-2); font-size: 1.12rem; line-height: 1.55; margin-top: .2rem; }
.act-card .meta { color: var(--ink-2); font-size: 1rem; margin-top: .7rem; padding-top: .85rem; border-top: 1px solid var(--rule); }
.act-card .go { color: var(--red); margin-top: 1rem; font-size: 1.05rem; }
.note-regard { color: var(--ink-2); margin-top: 2.8rem; line-height: 1.55; }
.pay-short { margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); color: var(--ink-2); line-height: 1.55; }
.tag-lg { font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--red); margin: 0 0 1rem; }
.fact-list { list-style: none; margin: 2.4rem 0 2.6rem; padding: 0; border-top: 1px solid var(--rule-strong); }
.fact-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 20px; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); line-height: 1.5; }
.fact-list span { color: var(--ink-2); font-variant-caps: all-small-caps; letter-spacing: .06em; }
.pill-list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0 0 2.4rem; padding: 0; }
.pill-list a, .pill-list span {
  display: inline-block; padding: .55rem 1.1rem; border: 1px solid var(--rule);
  text-decoration: none; color: var(--ink); font-size: 1rem;
}
.pill-list a:hover { border-color: var(--red); color: var(--red); }
.subhead { font-size: 1.45rem; margin: 3.4rem 0 1.3rem; line-height: 1.25; }
.regard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px 64px; margin-top: 2.4rem; }
.act-page .lede { margin-bottom: 0; }
.act-page .actions { margin-top: 2.8rem; }
.fonds-sub { padding-left: 1rem !important; font-size: 1.02rem; }
.link-cta { display: inline-block; color: var(--red); text-decoration: none; font-size: 1.05rem; margin-top: .15rem; }
.link-cta:hover { text-decoration: underline; }

.fiche-video { margin: 0 0 2rem; }
.fiche-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--ink); background: var(--ink); }
.illustration img { max-width: 100%; display: block; border: 1px solid var(--rule); }

.agenda { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.agenda li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 24px; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.agenda .day { font-size: 2.4rem; line-height: .9; font-weight: 500; }
.agenda .mon { display: block; font-variant-caps: all-small-caps; letter-spacing: .06em; font-size: 1rem; color: var(--ink-2); margin-top: .25rem; }
.agenda .when { color: var(--red); font-size: 1rem; margin-bottom: .3rem; }
.agenda h3 { font-size: 1.4rem; margin-bottom: .35rem; line-height: 1.25; }
.agenda h3 a { color: inherit; text-decoration: none; }
.agenda h3 a:hover { color: var(--red); }
.agenda .who { font-style: italic; color: var(--ink-2); margin-bottom: .35rem; }
.agenda .place { color: var(--ink-2); margin-bottom: .7rem; }

.agenda li.is-target { animation: pulse 1.6s var(--ease) 1; }
@keyframes pulse { 0% { background: var(--paper-2); } 100% { background: transparent; } }

.search { margin-top: 2.2rem; max-width: 46rem; }
.search label { display: block; margin-bottom: .5rem; font-size: 1.1rem; }
.search-row { display: flex; }
.search-row input {
  flex: 1; min-width: 0;
  background: #fff; border: 1.5px solid var(--ink); border-right: 0;
  padding: .9rem 1rem; font-size: 1.2rem;
}
.search-row input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.search-row .btn { border-radius: 0; }
.search .hint { color: var(--ink-2); font-size: 1rem; margin: .6rem 0 0; }

.section { padding: 64px 0; border-top: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 2.1rem; }
.section-head h2 { font-size: 1.9rem; }
.section-head .more { font-size: 1.05rem; }

/* Sommaire des fonds */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a {
  display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 18px; align-items: baseline;
  padding: 20px 0; color: var(--ink); text-decoration: none;
}
.toc .roman { font-variant-numeric: lining-nums; color: var(--red); font-size: 1.1rem; }
.toc .name { font-size: 1.55rem; font-weight: 500; display: block; transition: color .2s; }
.toc .desc { display: block; color: var(--ink-2); font-size: 1.05rem; margin-top: .2rem; max-width: 52ch; }
.toc .count { color: var(--ink-2); font-size: 1rem; white-space: nowrap; }
.toc .arrow { display: inline-block; transition: transform .25s var(--ease); margin-left: .5rem; }
.toc a:hover .name { color: var(--red); }
.toc a:hover .arrow { transform: translateX(6px); }

/* Prochaines séances — styles plus haut dans le fichier */

.agenda-empty, .empty { color: var(--ink-2); font-size: 1.15rem; max-width: 42ch; margin: .5rem 0 0; }
.loading { color: var(--ink-2); font-style: italic; }
.inscription-next { margin: 0 0 2.2rem; }
.agenda.compact li { padding: 18px 0; }
.agenda.compact .day { font-size: 2.4rem; }
.agenda.compact h3 { font-size: 1.35rem; }

/* Activités en bref */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.brief { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.brief h3 { font-size: 1.4rem; margin-bottom: .25rem; }
.brief h3 a { color: var(--ink); text-decoration: none; }
.brief h3 a:hover { color: var(--red); }
.brief p { color: var(--ink-2); margin: 0; }

/* Aide */
.aside-help { background: var(--paper-2); padding: 36px 38px; border-left: 3px solid var(--red); }
.aside-help p { margin: 0 0 .9em; line-height: 1.55; }
.aside-help p:last-child { margin-bottom: 0; }

/* ---------- Pages internes ---------- */
.page { padding: 64px 0 112px; }
.page-narrow { max-width: 40rem; }
.crumbs { font-size: 1rem; color: var(--ink-2); margin-bottom: 2.1rem; }
.crumbs a { color: var(--ink-2); }
.page h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: .55em; line-height: 1.15; }
.lede { font-size: 1.32rem; max-width: 34rem; line-height: 1.6; margin: 0 0 2.2rem; color: var(--ink); }

/* Archives */
.arch-grid { display: grid; grid-template-columns: 15rem 1fr; gap: 64px; margin-top: 2.4rem; }
.fonds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.fonds li { border-bottom: 1px solid var(--rule); }
.fonds a { display: flex; justify-content: space-between; gap: 8px; padding: 13px 0 13px 10px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.fonds a:hover { color: var(--red); }
.fonds a[aria-current="true"] { border-left-color: var(--red); color: var(--red); }
.fonds .n { color: var(--ink-2); font-size: 1rem; }
.fonds-desc { background: var(--paper-2); padding: 22px 24px; margin: 0 0 2rem; border-left: 3px solid var(--red); line-height: 1.5; }
.fonds-desc .sc { margin-bottom: .35em; }
.fonds-desc p { margin: 0; }
.state { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; color: var(--ink-2); margin: 0 0 1.2rem; font-size: 1.05rem; }
.state select { font-size: 1.05rem; min-height: 2.6rem; padding: .3rem .6rem; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); }
.yearhead { font-size: 1.15rem; font-variant-caps: all-small-caps; letter-spacing: .1em; color: var(--red); margin: 2.6rem 0 .6rem; padding-bottom: .4rem; border-bottom: 1px solid var(--rule-strong); }
.entry { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; content-visibility: auto; contain-intrinsic-size: auto 4.5rem; }
.entry .t { font-size: 1.35rem; font-weight: 500; transition: color .2s; line-height: 1.25; }
.entry .m { display: block; color: var(--ink-2); font-size: 1.05rem; margin-top: .25rem; line-height: 1.4; }
.entry .rec { color: var(--red); font-variant-caps: all-small-caps; letter-spacing: .06em; }
.entry .arrow { transition: transform .25s var(--ease); }
.entry:hover .t { color: var(--red); }
.entry:hover .arrow { transform: translateX(6px); }
.empty { padding: 2rem 0; font-style: italic; color: var(--ink-2); }

/* Fiche */
.fiche .label { color: var(--red); font-variant-caps: all-small-caps; letter-spacing: .08em; font-size: 1.1rem; margin-bottom: .85rem; }
.fiche h1 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: .35em; }
.fiche .byline { font-style: italic; font-size: 1.3rem; margin-bottom: 1.9rem; line-height: 1.45; }
.fiche .body { font-size: 1.2rem; line-height: 1.75; margin-top: .6rem; }
.fiche .body p { margin: 0 0 1.3em; }
.fiche .body h3 { font-size: 1.4rem; margin: 2.6rem 0 .9rem; }
.fiche .body ul { padding-left: 1.4rem; margin-bottom: 1.4rem; }
.fiche .body .loading { font-style: italic; color: var(--ink-2); }
.fiche .body figure { margin: 1.8rem 0; }
.fiche .body .illustration img { max-width: 100%; max-height: 28rem; display: block; border: 1px solid var(--rule); }
.fiche .body .extrait iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--ink); background: var(--ink); }
.fiche .body figcaption { font-size: 1rem; color: var(--ink-2); margin-top: .5rem; }
.fiche dl { border-top: 1px solid var(--rule-strong); margin: 2.2rem 0; }
.fiche dl div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.fiche dt { color: var(--ink-2); font-variant-caps: all-small-caps; letter-spacing: .06em; }
.fiche dd { margin: 0; }

.type-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 2.2rem; }
.type-filters a {
  color: var(--ink-2); text-decoration: none; padding: .45rem 1rem;
  border: 1px solid var(--rule); border-radius: 999px; font-size: 1rem;
}
.type-filters a[aria-current="true"], .type-filters a:hover { border-color: var(--red); color: var(--red); }
.formula-cards { list-style: none; margin: 2.4rem 0 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.formula-cards li { border-bottom: 1px solid var(--rule); }
.formula-card {
  display: grid; grid-template-columns: 1fr auto; gap: 12px 32px; align-items: baseline;
  padding: 1.85rem 0; color: var(--ink); text-decoration: none;
}
.formula-card .name { font-size: 1.45rem; font-weight: 500; grid-column: 1; }
.formula-card .expl { color: var(--ink-2); font-size: 1.08rem; grid-column: 1; line-height: 1.45; margin-top: .15rem; }
.formula-card .price { font-size: 1.5rem; font-weight: 500; grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }
.formula-card .price .expl { display: block; font-size: 1rem; font-weight: 400; }
.formula-card .go { grid-column: 1 / -1; color: var(--red); margin-top: .45rem; }
.formula-card:hover .name, .formula-card:hover .go { color: var(--red); }
.hint-form { color: var(--ink-2); margin: 0 0 1.2rem; line-height: 1.45; }

/* Inscription */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 2rem 0 2.8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: s; border-top: 1px solid var(--rule-strong); padding-top: 1rem; line-height: 1.4; }
.steps li::before { content: counter(s, upper-roman) "."; color: var(--red); display: block; font-size: 1.1rem; margin-bottom: .35rem; }
fieldset { border: 0; padding: 0; margin: 0 0 2.8rem; }
legend { font-size: 1.7rem; font-weight: 500; margin-bottom: 1.2rem; padding: 0; }
.opt { display: grid; grid-template-columns: 2rem 1fr auto; gap: 16px; align-items: start; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.opt:first-of-type { border-top: 1px solid var(--rule-strong); }
.opt input { width: 1.4rem; height: 1.4rem; margin: .3rem 0 0; accent-color: var(--red); }
.opt .name { font-size: 1.3rem; font-weight: 500; }
.opt .expl { display: block; color: var(--ink-2); font-size: 1.05rem; margin-top: .25rem; line-height: 1.4; }
.opt .price { font-size: 1.5rem; font-weight: 500; white-space: nowrap; }
.opt:has(input:checked) { background: var(--paper-2); box-shadow: -14px 0 0 var(--paper-2), 14px 0 0 var(--paper-2); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.field { display: block; }
.field.wide { grid-column: 1 / -1; }
.field span { display: block; margin-bottom: .45rem; }
.field input, .field textarea, .field select { width: 100%; background: #fff; border: 1.5px solid var(--ink); padding: .9rem 1rem; font-size: 1.15rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.field textarea { min-height: 7rem; resize: vertical; }
.error { border-left: 3px solid var(--red); background: var(--paper-2); padding: 16px 20px; margin: 0 0 1.6rem; }
.error ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.pay { border-top: 1px solid var(--rule-strong); margin: 0 0 1rem; }
.pay div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.pay dt { font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--ink-2); }
.pay dd { margin: 0; line-height: 1.45; }
.iban { font-variant-numeric: tabular-nums lining-nums; letter-spacing: .04em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; margin-top: 3rem; }
.contact-grid > div { border-top: 1px solid var(--rule-strong); padding-top: 1.5rem; }
.contact-grid h2 { font-size: 1.45rem; margin-bottom: .85rem; }
.contact-grid p { margin: 0 0 .85em; line-height: 1.55; }
.contact-grid p:last-child { margin-bottom: 0; }

/* ---------- Colophon ---------- */
.colophon { border-top: 1px solid var(--rule-strong); margin-top: 32px; padding: 34px 0 56px; color: var(--ink-2); font-size: 1.05rem; }
.colophon-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 40px; }
.colophon .epi { font-style: italic; color: var(--ink); font-size: 1.2rem; }

/* ---------- Mouvement ---------- */
#contenu > * { animation: rise .45s var(--ease) both; }
.toc li, .agenda li, .entry, .brief, .act, .opt { animation: rise .5s var(--ease) both; }
.toc li:nth-child(2), .agenda li:nth-child(2), .brief:nth-child(2), .act:nth-child(2) { animation-delay: .06s; }
.toc li:nth-child(3), .agenda li:nth-child(3), .brief:nth-child(3), .act:nth-child(3) { animation-delay: .12s; }
.toc li:nth-child(4), .brief:nth-child(4), .act:nth-child(4) { animation-delay: .18s; }
.toc li:nth-child(5) { animation-delay: .24s; }
.toc li:nth-child(6) { animation-delay: .30s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Petits écrans ---------- */
@media (max-width: 820px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .overline { flex-direction: column; gap: 4px; }
  .nav { gap: 0 16px; }
  .nav > a, .nav-item > a { font-size: 1.02rem; padding: 10px 0 12px; }
  .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 8px; background: transparent; min-width: 0; }
  .nav-item { width: 100%; }
  .nav-sub a { padding: 6px 0 6px 12px; font-size: 1rem; }
  .toc a { grid-template-columns: 2.4rem 1fr; }
  .toc .count { grid-column: 2; }
  .agenda li { grid-template-columns: 1fr; gap: 6px; }
  .agenda .day { font-size: 2.2rem; display: inline; }
  .agenda .mon { display: inline; margin-left: .5rem; }
  .grid2, .fields, .contact-grid, .colophon-grid, .steps, .act-cards, .video-grid, .regard-grid { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; gap: 24px; }
  .fonds { display: flex; flex-wrap: wrap; gap: 6px 18px; border: 0; }
  .fonds li { border: 0; }
  .fonds a { padding: 8px 0; border-left: 0; border-bottom: 2px solid transparent; }
  .fonds a[aria-current="true"] { border-bottom-color: var(--red); }
  .fonds .n { display: none; }
  .fiche dl div, .pay div, .fact-list li { grid-template-columns: 1fr; gap: 2px; }
  .opt { grid-template-columns: 2rem 1fr; }
  .opt .price { grid-column: 2; }
  .hero, .hero-solo { min-height: 0; padding: 40px 16px 24px; }
  .hero-search { flex-direction: column; border-radius: 22px; gap: 6px; padding: 6px; }
  .hero-search input { text-align: center; }
  .hero-go { justify-content: center; width: 100%; height: 2.8rem; }
  .hero-next { margin-top: 1.6rem; }
  .next-card { grid-template-columns: 1fr; gap: 10px; }
  .nc-go { justify-self: start; }
  .formula-card { grid-template-columns: 1fr; }
  .formula-card .price { grid-column: 1; grid-row: auto; text-align: left; }
  .search-row { flex-direction: column; }
  .search-row input { border-right: 1.5px solid var(--ink); border-bottom: 0; }
}

@media (max-width: 480px) {
  .title { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .hero h1 { font-size: clamp(2.1rem, 8vw, 2.8rem); }
  .hero-lede { font-size: 1.1rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nc-title { font-size: 1.25rem; }
}

.formula-card > a { grid-column: 1 / -1; color: var(--red); margin-top: .45rem; }
.field + .field { margin-top: 1rem; }

/* Activités, séances et inscriptions */
.activity-facts { display:flex; flex-wrap:wrap; gap:.6rem 2rem; border:1px solid var(--rule); padding:1rem 1.2rem; margin:1.4rem 0 2rem; font-size:1rem; line-height:1.5; color:var(--ink-2); }
.activity-facts strong { color:var(--ink); margin-right:.5rem; font-weight:500; }
.upcoming-card { display:flex; gap:1.5rem; padding:1.6rem; border-top:2px solid var(--red); background:var(--paper-2); text-decoration:none; margin:2.5rem 0 1.5rem; }
.upcoming-card > span { display:flex; flex-direction:column; gap:.65rem; }
.upcoming-date { font-size:1.45rem; font-weight:500; }
.upcoming-title { font-size:1.4rem; line-height:1.4; }
.activity-archives { border-top:1px solid var(--rule); padding-top:1.6rem; margin-top:3rem; }
.activity-video { margin:3rem 0; }
.activity-video h2 { font-size:1.6rem; margin-bottom:1rem; }
.activity-video .video-frame { aspect-ratio:16/9; }
.activity-video iframe { width:100%; height:100%; border:0; }
.editorial-text { font-size:1.18rem; line-height:1.75; margin:2rem 0; }
.editorial-text h2 { font-size:1.7rem; margin:2rem 0 1rem; }
.editorial-text p { margin-bottom:1.3rem; }
.event-date { border-left:3px solid var(--red); background:var(--paper-2); padding:1.15rem 1.4rem; margin:1.5rem 0 2rem; display:flex; flex-direction:column; gap:.5rem; }
.event-date strong { font-size:1.9rem; line-height:1.2; font-weight:500; }
.event-date > span:last-child { font-size:1.04rem; color:var(--ink-2); line-height:1.5; }
.event-subtitle { font-size:1.9rem; line-height:1.3; margin:1.5rem 0; }
.author-intro { color:var(--ink-2); font-size:1.1rem; line-height:1.6; margin:-.9rem 0 2rem; }
.event-summary { margin:2rem 0; }
.event-poster { margin:2rem auto; max-width:32rem; }
.event-poster img { display:block; max-width:100%; max-height:42rem; object-fit:contain; margin:auto; }
.poster-thumb { margin:0; flex:0 0 7rem; }
.poster-thumb img { display:block; width:100%; max-height:12rem; object-fit:contain; }
.entry:has(.poster-thumb) { grid-template-columns:5rem 1fr auto; }
.entry .poster-thumb img { height:6rem; }
.poster-archives { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.8rem; }
.poster-archives > a { display:flex; flex-direction:column; align-items:flex-start; gap:.6rem; text-decoration:none; }
.poster-archives .poster-thumb { width:100%; flex:initial; }
.poster-archives .poster-thumb img { max-height:20rem; }
.registration-details { border-top:1px solid var(--rule); margin-top:3rem; padding-top:1.8rem; }
.discussants ul { padding-left:1.3rem; line-height:1.7; }
.join-tabs { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin:1.8rem 0; }
.join-tabs a { border:1px solid var(--rule); padding:1rem; text-align:center; text-decoration:none; font-size:1.15rem; }
.join-tabs a[aria-current] { border:2px solid var(--red); color:var(--red); background:var(--paper-2); font-weight:500; }
.join-session { padding:1.2rem 1.4rem; background:var(--paper-2); border-left:3px solid var(--red); margin-bottom:2.5rem; }
.join-session strong { display:block; font-size:1.3rem; }
.join-session p { margin:.5rem 0; }
.join-session a { font-size:1rem; }
.join-page legend { font-size:1.5rem; }
.join-page .opt { padding:1rem 0; gap:.75rem; }
.join-page .opt .name { font-size:1.1rem; }
.join-page .opt .price { font-size:1.25rem; }
.student-choice { display:flex; align-items:center; gap:.7rem; padding:1.2rem 0; font-size:1.1rem; cursor:pointer; }
.student-choice input, .mode-options input { width:1.25rem; height:1.25rem; accent-color:var(--red); }
.mode-options { display:flex; flex-wrap:wrap; gap:1rem; }
.mode-options label { display:flex; align-items:center; gap:.7rem; border:1px solid var(--rule); padding:1rem 1.2rem; cursor:pointer; }
.mode-options label:has(input:checked) { border-color:var(--red); background:var(--paper-2); }
.join-page .field + .field { margin-top:0; }
.field small { color:var(--ink-2); font-size:.95rem; line-height:1.5; }
.join-total { display:flex; justify-content:space-between; gap:1rem; align-items:baseline; border-top:1px solid var(--rule-strong); padding:1.5rem 0 .8rem; margin-top:1.6rem; font-size:1.2rem; }
.join-total strong { font-size:1.8rem; font-weight:500; }
.privacy-note,.join-tarifs { font-size:1rem; line-height:1.5; }
.join-tarifs { margin-top:2rem; }
.join-submit { width:100%; min-height:3.3rem; }
.join-submit:disabled { cursor:wait; opacity:.65; }
.message-details { margin-bottom:1.5rem; }
.message-details summary { cursor:pointer; margin-bottom:1rem; }
.form-error { border-left:3px solid var(--red); padding:1rem; background:var(--paper-2); margin:1.5rem 0; }
.honey { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
@media(max-width:600px) { .activity-facts { flex-direction:column; } .event-date strong { font-size:1.5rem; } .upcoming-card { padding:1.2rem; gap:1rem; } .upcoming-date { font-size:1.2rem; } .poster-thumb { flex-basis:4.5rem; } .join-tabs { gap:.6rem; } .join-tabs a { padding:.85rem .5rem; font-size:1rem; } .join-page .opt { grid-template-columns:1.7rem 1fr auto; } .join-page .opt .price { grid-column:3; font-size:1.1rem; } .poster-archives { gap:1rem; } }
@media(max-width:820px) { .nav-item { width:auto; } .nav-sub { display:none; } }

/* La prochaine séance se lit en entier sur sa page d’activité. */
.next-session { margin:2.8rem 0; padding:clamp(1.2rem, 4vw, 2rem); border:1px solid var(--rule); border-left:4px solid var(--red); background:var(--paper-2); }
.next-session-heading { margin:0 0 1.5rem; padding-bottom:1rem; border-bottom:1px solid var(--rule); }
.next-session-heading h2 { margin:0; font-size:1.75rem; line-height:1.2; color:var(--red); font-weight:600; }
.next-session h4 { font-size:1.4rem; line-height:1.3; font-weight:500; margin:1.7rem 0 .8rem; }
.next-session .session-title { font-size:clamp(1.75rem, 4vw, 2.5rem); line-height:1.25; margin:1.7rem 0 1rem; font-weight:500; }
.next-session .event-date { margin:0 0 1.5rem; padding:0; border:0; background:transparent; }
.next-session .registration-details { margin-top:2rem; }

/* Navigation latérale mobile — réutilise les liens de la navigation principale. */
.mobile-menu-toggle { display: none; }
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 24px;
  width: min(88vw, 360px); height: 100dvh; max-width: none; max-height: none;
  border: 0; border-left: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu[open] { display: flex; flex-direction: column; animation: mobile-menu-enter .2s var(--ease); }
.mobile-menu::backdrop { background: rgb(23 20 15 / 42%); }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.mobile-menu-header p { margin: 0; font-size: 1.5rem; }
.mobile-menu-close, .mobile-menu-toggle { min-width: 44px; min-height: 44px; padding: 8px; background: transparent; border: 1px solid var(--rule); }
.mobile-menu-close { border: 0; font-size: 2rem; line-height: 1; }
.mobile-menu .nav { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; border: 0; padding: 12px 0; }
.mobile-menu .nav > a, .mobile-menu .nav-item > a { display: block; padding: 12px 0; font-size: 1.15rem; }
.mobile-menu .nav-item { width: 100%; }
.mobile-menu .nav-sub { display: block; position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: transparent; min-width: 0; padding: 0 0 8px 12px; }
.mobile-menu .nav-sub a { min-height: 44px; padding: 8px 0; font-size: 1rem; }
.mobile-menu-registration { margin-top: auto; justify-content: center; }
html.mobile-menu-open { overflow: hidden; }
@keyframes mobile-menu-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (max-width: 820px) {
  .masthead { padding: 16px 0; }
  .masthead .overline { display: none; }
  .header-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .header-main .title { margin: 0; font-size: clamp(1.5rem, 6.5vw, 2rem); line-height: 1.1; }
  .mobile-menu-toggle { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; }
}
