/* Le MuSé — retouches de mise en page faites sur le serveur (relecture du 15/11/2026).
   Chargée après style.css. Détail des changements : C:\inetpub\lemusedetrooz-modifications-locales.md */

/* Première paire d'images d'une actualité (logo de l'organisme + panneau du lieu) :
   affichée en entier au lieu d'être recadrée en 4:3, et en plus petit. */
.prose > .gallery:first-child { max-width: 640px; margin-inline: auto; }
.prose > .gallery:first-child img { object-fit: contain; background: #fff; padding: 8px; aspect-ratio: 16 / 9; }

/* Galeries : trois images par ligne, plus grandes, sur toute la largeur du texte */
.gallery--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .gallery--three { grid-template-columns: 1fr; } }

/* Galerie resserrée et centrée (deux petites images côte à côte) */
.gallery--narrow { max-width: 560px; margin-inline: auto; }

/* Images montrées en entier dans une galerie (pas de recadrage) */
.gallery--entier { align-items: center; }
.gallery--entier img { object-fit: contain; background: #fff; padding: 6px; aspect-ratio: auto; height: auto; }

/* Image seule réduite */
.fig--petit a { max-width: 360px; margin-inline: auto; }
.fig--moyen a { max-width: 520px; margin-inline: auto; }
.fig--petit figcaption, .fig--moyen figcaption { max-width: 520px; margin-inline: auto; }

/* Légende propre à chaque image d'une galerie */
.gallery .cell { display: flex; flex-direction: column; min-width: 0; }
.gallery .cell figcaption { grid-column: auto; }

/* Séparateur entre deux éléments (miniatures) */
.prose hr.separateur { border: 0; border-top: 3px solid var(--amber); margin: 2.6em 0 2em; opacity: .7; }

/* Légende placée au-dessus de l'image (panneaux avant / après 1975) */
.fig--legende-haut figcaption { margin: 0 0 10px; }
.fig--legende-haut { margin: 1.2em 0 2em; }
.prose p.legende-finale { font-size: .9rem; color: var(--muted); font-weight: 400; padding-left: 12px; border-left: 3px solid var(--amber); }

/* Page « Le MuSé » : logos du patronage en tuiles, petit logo devant chaque partenaire */
.partners--page { margin: 1.6em 0 2em; justify-content: flex-start; }
.prose p.logo-partenaire { margin: 1.8em 0 .4em; }
.prose p.logo-partenaire img { max-height: 54px; width: auto; max-width: 200px; background: #fff; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); }

/* Petit logo seul (ne pas l'agrandir à toute la largeur) */
.fig--logo a { max-width: 180px; margin-inline: auto; background: #fff; }

/* Insolites : photo et texte côte à côte, comme sur l'ancien site */
.fig--objet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 2.4em 0; }
.fig--objet:nth-of-type(even) a { order: 2; }
.fig--objet figcaption { margin: 0; font-size: 1.05rem; color: inherit; white-space: normal; }
.fig--objet img { max-height: 460px; }
@media (max-width: 700px) { .fig--objet { grid-template-columns: 1fr; } .fig--objet:nth-of-type(even) a { order: 0; } }

/* Accueil : fil Facebook chargé au clic (aucun traceur avant le clic) */
.facebook-direct { max-width: 520px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px 22px; }
.facebook-direct p { margin: 0 0 14px; }
.facebook-direct .muted { font-size: .85rem; margin: 14px 0 0; }
.facebook-direct.is-charge { padding: 0; background: none; border: 0; }
.facebook-direct iframe { display: block; margin: 0 auto; max-width: 100%; }

/* Fiches de l'exposition : accordéon (Insolites, Éclairage public) */
.fiches { display: grid; gap: 10px; margin: 1.2em 0 2em; }
.fiche { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.fiche > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.fiche > summary::-webkit-details-marker { display: none; }
.fiche > summary::after { content: "+"; color: var(--amber); font-size: 1.3em; line-height: 1; }
.fiche[open] > summary::after { content: "–"; }
.fiche__corps { padding: 0 18px 14px; }
.fiche__corps h4 { margin: 1.2em 0 .4em; }
