/* Mémorial Jean-Claude Bernardet — feuille de style
   Palette inspirée du château du Grand Four (ocre), du bleu horizon et du papier d'archives. */

:root {
  --papier: #f4efe5;
  --papier-2: #ebe4d6;
  --encre: #1c2431;
  --encre-2: #3a4252;
  --gris: #646a76;
  --filet: #d6ccb8;
  --horizon: #6e8cab;
  --horizon-fonce: #34557a;
  --ocre: #c69a4f;
  --rouge: #9a2f2a;
  --blanc: #fffdf8;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --titre: "EB Garamond", "Spectral", Georgia, serif;
  --sans: "Work Sans", "Segoe UI", Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;

  --largeur: 1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

a { color: var(--horizon-fonce); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rouge); }

:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--titre); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
.marque span, .pied .nom, .eph-date { font-family: var(--titre); font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }

.enveloppe { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.etroit { max-width: 760px; }

.evitement { position: absolute; left: -9999px; top: 0; background: var(--encre); color: #fff; padding: .6em 1em; z-index: 100; }
.evitement:focus { left: 1rem; top: 1rem; }

/* Petites étiquettes façon fiche d'archives */
.etiquette {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rouge);
  display: inline-block;
  margin-bottom: .9rem;
}

/* ---------- En-tête ---------- */
.bandeau-tricolore { height: 4px; background: linear-gradient(90deg, #233a6b 0 33.33%, #f7f4ee 33.33% 66.66%, #b3322c 66.66%); }

.entete {
  background: var(--papier);
  border-bottom: 1px solid var(--filet);
  position: sticky; top: 0; z-index: 50;
}
.entete .enveloppe { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }

.marque { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--encre); }
.marque img { width: 52px; height: 49px; object-fit: contain; }
.marque span { font-family: var(--titre); font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.marque small { display: block; font-family: var(--sans); font-weight: 400; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin-top: 3px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.3rem; align-items: center; }
.nav a {
  font-family: var(--sans); font-size: .9rem; font-weight: 500;
  color: var(--encre); text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--encre); border-bottom-color: var(--ocre); }
.nav a[aria-current="page"] { border-bottom-color: var(--rouge); }
.nav .bouton-nav { background: var(--encre); color: var(--papier); padding: .55rem 1rem; border: 0; white-space: nowrap; }
.nav .seulement-mobile { display: none; }
.nav a { white-space: nowrap; }
.pied p { margin: 0 0 .8rem; }
.nav .bouton-nav:hover { background: var(--rouge); color: #fff; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--encre); color: var(--encre);
  font-family: var(--sans); font-size: .85rem; font-weight: 500; padding: .5rem .8rem; cursor: pointer;
}

@media (max-width: 1220px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--papier); border-bottom: 1px solid var(--filet); display: none; }
  .nav.ouvert { display: block; }
  .nav .seulement-mobile { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gouttiere) 1.2rem; }
  .nav li { border-bottom: 1px solid var(--filet); }
  .nav li:last-child { border-bottom: 0; padding-top: .8rem; }
  .nav a { display: block; padding: .9rem 0; font-size: 1rem; }
  .nav .bouton-nav { text-align: center; }
  .marque span { font-size: 1rem; }
}

/* ---------- Accueil : héros ---------- */
.heros { position: relative; color: #fff; background: #2b2a26; }
.heros img { width: 100%; height: min(78vh, 720px); min-height: 460px; object-fit: cover; object-position: center 35%; }
.heros::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,28,0) 30%, rgba(20,22,28,.82) 100%), linear-gradient(90deg, rgba(20,22,28,.45) 0%, rgba(20,22,28,0) 60%); }
.heros .texte { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: clamp(2rem, 5vw, 3.6rem); }
.heros h1 { max-width: 20ch; margin-bottom: .35em; text-shadow: 0 2px 18px rgba(0,0,0,.35); text-wrap: balance; }
.heros p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 40ch; margin: 0; opacity: .95; }
.heros .etiquette { color: #f1d9a8; }

.infos-pratiques { background: var(--encre); color: var(--papier); }
.infos-pratiques .enveloppe { display: grid; grid-template-columns: repeat(4, 1fr); }
.infos-pratiques .enveloppe > div { padding: 1.3rem 1.2rem 1.3rem 0; border-right: 1px solid rgba(255,255,255,.12); margin-right: 1.2rem; font-family: var(--sans); font-size: .95rem; line-height: 1.45; }
.infos-pratiques .enveloppe > div:last-child { border-right: 0; margin-right: 0; }
.infos-pratiques strong { display: block; font-family: var(--mono); font-weight: 400; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ocre); margin-bottom: .25rem; }
.infos-pratiques a { color: var(--papier); }
@media (max-width: 860px) {
  .infos-pratiques .enveloppe { grid-template-columns: 1fr 1fr; }
  .infos-pratiques .enveloppe > div { border-right: 0; margin-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 1rem 1rem 1rem 0; }
}
@media (max-width: 480px) { .infos-pratiques .enveloppe { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section + .section { border-top: 1px solid var(--filet); }
.section.sombre { background: var(--encre); color: var(--papier); border-top: 0; }
.section.sombre a { color: #f1d9a8; }
.section.teinte { background: var(--papier-2); }

.chapo { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.55; color: var(--encre-2); }

/* Mission */
.mission { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.devise {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.1; margin: 0;
  padding-left: 1.2rem; border-left: 4px solid var(--rouge);
}
.devise cite { display: block; font-family: var(--mono); font-style: normal; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gris); margin-top: 1.2rem; }
@media (min-width: 861px) { .mission > div:first-child { position: sticky; top: 120px; } }
@media (max-width: 860px) { .mission { grid-template-columns: 1fr; } }

.programmes { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: prog; }
.programmes li { counter-increment: prog; display: grid; grid-template-columns: 3rem 1fr; gap: .5rem; padding: 1.1rem 0; border-top: 1px solid var(--filet); }
.programmes li::before { content: counter(prog, decimal-leading-zero); font-family: var(--mono); color: var(--rouge); font-size: .95rem; padding-top: .2rem; }
.programmes strong { display: block; font-weight: 600; }
.programmes span { color: var(--encre-2); font-size: 1.02rem; }

/* Frise chronologique */
.frise { margin-top: 2.5rem; position: relative; }
.frise ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.frise ol::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--ocre); }
.frise li { position: relative; padding: 2rem 1rem 0 0; }
.frise li::before { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--encre); border: 3px solid var(--ocre); }
.frise .an { font-family: var(--mono); font-size: 1.05rem; color: #f1d9a8; display: block; }
.frise .quoi { font-family: var(--sans); font-size: .92rem; line-height: 1.4; opacity: .9; }
@media (max-width: 860px) {
  .frise ol { grid-template-columns: 1fr; }
  .frise ol::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .frise li { padding: 0 0 1.4rem 2.2rem; }
  .frise li::before { top: 4px; }
}

/* Mise en avant (canon) */
.vedette { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.vedette figure { margin: 0; }
.vedette .photos { display: grid; grid-template-columns: 3fr 2fr; gap: .8rem; }
.vedette .photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.vedette .photos img:first-child { grid-row: span 2; aspect-ratio: auto; }
figcaption { font-family: var(--sans); font-size: .85rem; color: var(--gris); margin-top: .6rem; }
@media (max-width: 860px) { .vedette { grid-template-columns: 1fr; } }

.lien-fleche { font-family: var(--sans); font-weight: 500; font-size: .98rem; text-decoration: none; color: var(--encre); border-bottom: 2px solid var(--ocre); padding-bottom: 2px; }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { color: var(--rouge); border-bottom-color: var(--rouge); }

.bouton {
  display: inline-block; font-family: var(--sans); font-weight: 500; font-size: .98rem; text-decoration: none;
  background: var(--encre); color: var(--papier); padding: .85rem 1.3rem; border: 1px solid var(--encre);
}
.bouton:hover { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.bouton.clair { background: transparent; color: var(--encre); }
.bouton.clair:hover { background: var(--encre); color: var(--papier); }
.boutons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Registre des actualités (accueil) */
.entete-section { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.entete-section h2 { margin: 0; }
.registre { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); }
.registre li { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--filet); }
.registre time, .registre .date { font-family: var(--mono); font-size: .9rem; color: var(--rouge); padding-top: .25rem; }
.registre h3 { margin: 0 0 .3rem; font-size: 1.3rem; }
.registre h3 a { color: var(--encre); text-decoration: none; }
.registre h3 a:hover { color: var(--rouge); text-decoration: underline; }
.registre p { margin: 0; color: var(--encre-2); font-size: 1.02rem; }
@media (max-width: 640px) { .registre li { grid-template-columns: 1fr; gap: .3rem; } }

/* Trois colonnes à filets */
.colonnes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--filet); }
.colonnes > div { padding: 1.8rem 1.8rem 1.8rem 0; }
.colonnes > div + div { padding-left: 1.8rem; border-left: 1px solid var(--filet); }
.colonnes h3 { margin-bottom: .6rem; }
.colonnes p { font-size: 1.02rem; color: var(--encre-2); }
@media (max-width: 860px) {
  .colonnes { grid-template-columns: 1fr; }
  .colonnes > div, .colonnes > div + div { padding: 1.6rem 0; border-left: 0; border-bottom: 1px solid var(--filet); }
}

/* Fiche d'identité de l'association */
.fiche { border: 1px solid var(--encre); background: var(--blanc); }
.fiche-titre { background: var(--encre); color: var(--papier); padding: .9rem 1.4rem; font-family: var(--mono); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.fiche dl { margin: 0; display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; }
.fiche dt, .fiche dd { margin: 0; padding: .85rem 1.4rem; border-bottom: 1px solid var(--filet); }
.fiche dt { font-family: var(--sans); font-size: .88rem; color: var(--gris); background: #faf6ee; }
.fiche dd { font-size: 1.05rem; }
.fiche dl > :nth-last-child(-n+2) { border-bottom: 0; }
.fiche .num { font-family: var(--mono); font-size: 1rem; letter-spacing: .03em; }
@media (max-width: 600px) {
  .fiche dl { grid-template-columns: 1fr; }
  .fiche dt { border-bottom: 0; padding-bottom: .1rem; background: none; }
  .fiche dl > :nth-last-child(2) { border-bottom: 0; }
}

aside .fiche dl { grid-template-columns: minmax(7.6rem, max-content) 1fr; }
aside .fiche dt, aside .fiche dd { padding: .7rem .9rem; }
aside .fiche dt { font-size: .82rem; }
aside .fiche dd { font-size: .98rem; }
aside .fiche .num { font-size: .92rem; white-space: nowrap; }
.encadre a[href^="mailto:"] { overflow-wrap: break-word; }

/* Partenaires */
.partenaires { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.partenaires li { font-family: var(--sans); font-size: .9rem; border: 1px solid var(--filet); padding: .45rem .8rem; background: var(--blanc); }

/* ---------- Pages intérieures ---------- */
.entete-page { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--filet); }
.entete-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.entete-page .chapo { max-width: 52ch; margin: 0; }
.fil { font-family: var(--sans); font-size: .85rem; color: var(--gris); margin-bottom: 1.2rem; }
.fil a { color: var(--gris); }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.8em; }
.prose blockquote { margin: 2rem 0; padding: .2rem 0 .2rem 1.3rem; border-left: 3px solid var(--ocre); font-style: italic; font-size: 1.2rem; color: var(--encre-2); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.signature { font-family: var(--sans); font-size: .95rem; color: var(--gris); margin-top: 1.5rem; }
.signature strong { color: var(--encre); font-weight: 600; }

.deux-colonnes { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.deux-colonnes aside { position: sticky; top: 100px; }
@media (min-width: 901px) { .deux-colonnes.large { grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); } }
@media (max-width: 900px) { .deux-colonnes { grid-template-columns: 1fr; } .deux-colonnes aside { position: static; } }

.encadre { background: var(--blanc); border: 1px solid var(--filet); padding: 1.5rem; margin-bottom: 1.5rem; }
.encadre h3 { font-size: 1.2rem; }
.encadre p:last-child, .encadre ul:last-child { margin-bottom: 0; }
.encadre ul { padding-left: 1.1rem; font-size: 1.02rem; }

/* Portrait / photo */
.photo-legende { margin: 2rem 0; }
.photo-legende img { width: 100%; }

/* ---------- Articles (actualités / hommages) ---------- */
.sommaire { background: var(--blanc); border: 1px solid var(--filet); padding: 1.4rem 1.5rem; }
.sommaire h2 { font-size: 1rem; font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--rouge); margin-bottom: .8rem; }
.sommaire ol { margin: 0; padding-left: 1.2rem; font-family: var(--sans); font-size: .92rem; line-height: 1.45; }
.sommaire li { margin-bottom: .45rem; }
.sommaire a { color: var(--encre); text-decoration: none; }
.sommaire a:hover { color: var(--rouge); text-decoration: underline; }

.article { display: grid; grid-template-columns: 1fr 260px; gap: 2.2rem; padding: 2.6rem 0; border-top: 1px solid var(--filet); scroll-margin-top: 96px; }
.article:first-child, [data-info="actualites"]:empty + .article { border-top: 2px solid var(--encre); }
.sommaire ul { margin: 0; padding-left: 1.1rem; font-family: var(--sans); font-size: .92rem; line-height: 1.45; }
.sommaire ul:empty { display: none; }
.sommaire ul + ul { margin-top: .45rem; }
.formulaire-google { width: 100%; height: 1150px; border: 1px solid var(--filet); background: var(--blanc); }
.article.sans-image { grid-template-columns: 1fr; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.article .sous-titre { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--gris); margin-top: -.3rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .03em; }
.article .affiche button { all: unset; cursor: zoom-in; display: block; }
.article .affiche img { width: 100%; border: 1px solid var(--filet); box-shadow: 0 1px 0 var(--filet); }
.article .affiche button:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
@media (max-width: 760px) {
  .article { grid-template-columns: 1fr; }
  .article .affiche { order: -1; max-width: 220px; }
}

details.suite { margin-top: .5rem; }
details.suite summary {
  cursor: pointer; list-style: none; display: inline-block;
  font-family: var(--sans); font-weight: 500; font-size: .95rem; color: var(--encre);
  border-bottom: 2px solid var(--ocre); padding-bottom: 2px; margin-bottom: 1rem;
}
details.suite summary::-webkit-details-marker { display: none; }
details.suite summary::after { content: " ↓"; }
details.suite[open] summary::after { content: " ↑"; }
details.suite[open] summary .lire { display: none; }
details.suite:not([open]) summary .fermer { display: none; }
details.suite summary:hover { color: var(--rouge); border-bottom-color: var(--rouge); }

.citation-courte { display: grid; grid-template-columns: 1fr 200px; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--filet); align-items: center; }
.citation-courte p { font-style: italic; font-size: 1.2rem; margin: 0; }
.citation-courte.sans-image { grid-template-columns: 1fr; }
.citation-courte .affiche { margin: 0; }
.citation-courte .affiche button { all: unset; cursor: zoom-in; display: block; }
.citation-courte .affiche img { border: 1px solid var(--filet); }

/* Bande de photos (accueil, Le Mémorial) */
.bande-photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .8rem; margin-top: 3rem; }
.bande-photos img { width: 100%; height: 340px; object-fit: cover; }
@media (max-width: 760px) {
  .bande-photos { grid-template-columns: 1fr 1fr; }
  .bande-photos img { height: 200px; }
  .bande-photos img:first-child { grid-column: span 2; }
}
@media (max-width: 640px) { .citation-courte { grid-template-columns: 1fr; } .citation-courte .affiche { max-width: 220px; } }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-top: 1.5rem; }
.galerie button { all: unset; cursor: zoom-in; display: block; }
.galerie img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.galerie button:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; }

/* Visionneuse */
.visionneuse { border: 0; padding: 0; margin: auto; background: transparent; width: fit-content; height: fit-content; max-width: 100vw; max-height: 100vh; overflow: hidden; }
.visionneuse::backdrop { background: rgba(15, 17, 22, .88); }
.visionneuse img { display: block; width: auto; height: auto; max-width: calc(100vw - 32px); max-height: calc(100vh - 112px); object-fit: contain; margin: 56px auto; }
.visionneuse button { position: fixed; top: 14px; right: 14px; background: var(--papier); color: var(--encre); border: 0; font-family: var(--sans); font-size: .9rem; padding: .55rem .9rem; cursor: pointer; }

/* ---------- Contact / visite ---------- */
.carte { width: 100%; height: 380px; border: 1px solid var(--filet); }
.horaires { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .98rem; }
.horaires th, .horaires td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--filet); }
.horaires th { font-weight: 500; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #cfd3da; font-family: var(--sans); font-size: .92rem; line-height: 1.6; padding: 3.5rem 0 1.5rem; }
.pied a { color: #fff; }
.pied .grille { display: grid; grid-template-columns: 1.2fr .9fr 1.4fr .9fr; gap: 2rem; }
.pied [data-info="email"] a { white-space: nowrap; font-size: .86rem; }
@media (max-width: 1150px) { .pied .grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .pied [data-info="email"] a { white-space: normal; } }
.pied h2 { font-family: var(--mono); font-weight: 400; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ocre); margin-bottom: .9rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .35rem; }
.pied .nom { font-family: var(--serif); font-size: 1.3rem; color: #fff; line-height: 1.2; margin-bottom: .6rem; }
.pied .bas { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #9aa1ad; }
.pied .bas a { color: #cfd3da; }
@media (max-width: 860px) { .pied .grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied .grille { grid-template-columns: 1fr; } }

/* ---------- Vidéos ---------- */
.video { margin: 1.5rem 0; }
.cadre-video { position: relative; aspect-ratio: 16 / 9; background: #11151c; }
.cadre-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { font-family: var(--sans); font-size: .82rem; color: var(--gris); margin-top: .5rem; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.videos .video { margin: 0; }
.section.sombre .video figcaption { color: #b9bfc9; }
@media (max-width: 900px) { .videos { grid-template-columns: 1fr; } }

/* ---------- Bandeau de fermeture ---------- */
.bandeau-info { background: var(--rouge); color: #fff; font-family: var(--sans); font-size: .95rem; padding: .7rem 0; }
.bandeau-info a { color: #fff; }

/* ---------- Éphéméride ---------- */
.ephemeride { border-left: 4px solid var(--ocre); padding: .2rem 0 .2rem 1.4rem; }
.ephemeride .etiquette { margin-bottom: .5rem; }
.eph-date { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; margin: 0 0 .3rem; line-height: 1.2; }
.eph-date small { font-family: var(--mono); font-size: .8rem; font-weight: 400; color: var(--gris); margin-left: .5rem; white-space: nowrap; }
.eph-texte { font-size: 1.15rem; margin: 0; max-width: 60ch; }

.agenda-vide { color: var(--encre-2); font-size: 1.02rem; border-top: 2px solid var(--encre); padding-top: 1.2rem; margin: 0; }

/* ---------- Logos des partenaires ---------- */
.logos { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.logos li { background: var(--blanc); border: 1px solid var(--filet); height: 130px; display: flex; align-items: center; justify-content: center; padding: .8rem; text-align: center; }
.logos img { max-height: 96px; max-width: 100%; width: auto; object-fit: contain; }
.logos li.fond-sombre { background: var(--encre); border-color: var(--encre); }
.logos .nom-partenaire { font-family: var(--sans); font-size: .85rem; line-height: 1.3; color: var(--encre-2); }
.logos li.avec-logo .nom-partenaire { position: absolute; left: -9999px; }

/* ---------- Bureau ---------- */
.bureau { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--filet); }
.bureau li { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--filet); }
.bureau strong { display: block; font-size: 1.1rem; }
.bureau span { font-family: var(--sans); font-size: .88rem; color: var(--gris); }

/* ---------- Cartes d'action (adhérer, donner, boutique) ---------- */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.carte-action { background: var(--blanc); border: 1px solid var(--filet); border-top: 4px solid var(--encre); padding: 1.6rem; display: flex; flex-direction: column; }
.carte-action h3 { margin-bottom: .5rem; }
.carte-action p { font-size: 1.02rem; color: var(--encre-2); }
.carte-action .bouton { margin-top: auto; align-self: flex-start; }
.carte-action.rouge { border-top-color: var(--rouge); }
.carte-action.ocre { border-top-color: var(--ocre); }
.note { font-family: var(--sans); font-size: .85rem; color: var(--gris); }

.produit { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; padding: 2rem 0; border-top: 1px solid var(--filet); }
.produit .prix { font-family: var(--mono); font-size: 1.4rem; color: var(--rouge); margin: .2rem 0 1rem; }
@media (max-width: 700px) { .produit { grid-template-columns: 1fr; } .produit > figure { max-width: 240px; } }

/* ---------- Formulaires ---------- */
.formulaire { display: grid; gap: 1.1rem; max-width: 640px; }
.formulaire .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .formulaire .deux { grid-template-columns: 1fr; } }
.formulaire label { display: block; font-family: var(--sans); font-size: .9rem; font-weight: 500; margin-bottom: .35rem; }
.formulaire input, .formulaire select, .formulaire textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre); background: var(--blanc);
  border: 1px solid #b9ae98; padding: .7rem .8rem; border-radius: 0;
}
.formulaire textarea { min-height: 160px; resize: vertical; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 2px solid var(--horizon-fonce); outline-offset: 0; border-color: var(--horizon-fonce); }
.formulaire .case { display: flex; gap: .6rem; align-items: flex-start; font-family: var(--sans); font-size: .88rem; color: var(--encre-2); }
.formulaire .case input { width: auto; margin-top: .25rem; }
.formulaire button { justify-self: start; cursor: pointer; font-family: var(--sans); }
.cache { position: absolute; left: -9999px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .entete, .pied, .menu-toggle, .bandeau-tricolore { display: none; }
  details.suite > *:not(summary) { display: block; }
  body { background: #fff; }
}
