/* Éléments des contenus repris de WordPress (Elementor, extensions), communs aux présentations « Simple » et « Futurio » :
   colonnes, séparateurs, galeries, carrousels, cartes, vidéos, sons, PDF, graphiques et blocs calculés par le site. */

.el-section { display: flex; flex-wrap: wrap; gap: 20px; margin: 1em 0; align-items: flex-start; }
.el-colonne { flex: 1 1 calc(var(--part, 50) * 1% - 20px); min-width: min(100%, 240px); }
hr.separateur { border: 0; border-top: 1px solid #e2e2e2; margin: 1.6em 0; }
.separateur-texte { display: flex; align-items: center; gap: 12px; margin: 1.6em 0; color: #888; }
.separateur-texte::before, .separateur-texte::after { content: ""; flex: 1; border-top: 1px solid #e2e2e2; }

.corps figure { margin: 1em 0; }
.corps figure img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.corps figcaption { font-size: 85%; color: #777; text-align: center; margin-top: 4px; }

.galerie { display: grid; grid-template-columns: repeat(var(--colonnes, 3), minmax(0, 1fr)); gap: 8px; margin: 1em 0; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carrousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--colonnes, 1) - 1) * 10px) / var(--colonnes, 1));
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 1em 0; padding-bottom: 6px; overscroll-behavior-x: contain; }
.carrousel figure { margin: 0; scroll-snap-align: start; }
.carrousel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.carrousel::after { content: none; }
@media (max-width: 640px) {
  .galerie { grid-template-columns: repeat(min(var(--colonnes, 3), 2), minmax(0, 1fr)); }
  .carrousel { grid-auto-columns: 88%; }
}

.carte img { width: 100%; height: auto; display: block; border-radius: 4px; }
.carte figcaption { text-align: right; font-size: 75%; }
.video video, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.audio audio { width: 100%; }
.pdf object { display: block; width: 100%; height: 80vh; min-height: 420px; border: 1px solid #ddd; }
.fichier a::before { content: "📄 "; }

.graphique svg { width: 100%; height: auto; display: block; max-width: 760px; margin: 0 auto; font-family: inherit; }
.graphique .g-titre { font-size: 18px; font-weight: 700; fill: #333; }
.graphique .g-sous-titre { font-size: 13px; fill: #666; }
.graphique .g-axe { font-size: 12px; fill: #555; }
.graphique .g-valeur { font-size: 11px; fill: #222; }
.graphique .g-legende { font-size: 13px; fill: #333; }
.graphique .g-grille { stroke: #000; stroke-opacity: .1; }
.graphique .donnees { margin-top: .6em; font-size: 90%; }
.graphique table { border-collapse: collapse; margin-top: .5em; }
.graphique th, .graphique td { border: 1px solid #ddd; padding: 3px 8px; text-align: right; }
.graphique th[scope], .graphique tbody th { text-align: left; }

.bloc { margin: 1.4em 0; }
.titre-widget { font-size: 18px; text-transform: uppercase; text-align: center; margin: 10px 0; }
.bloc-liste.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.bloc-liste.defilant { max-height: 430px; overflow-y: auto; padding-right: 4px; }
.bloc-liste.defilant .carte-billet { display: grid; grid-template-columns: 84px 1fr; column-gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.bloc-liste.defilant .carte-billet > :not(.vignette) { grid-column: 2; }
.bloc-liste.defilant .vignette { grid-row: 1 / span 3; }
.bloc-liste.liste .carte-billet { padding: 6px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.carte-billet h4 { margin: 4px 0; font-size: 1em; line-height: 1.3; }
.carte-billet .vignette img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 6px; }
.carte-billet .date-billet { margin: 0; font-size: 80%; opacity: .75; }
.carte-billet .extrait { margin: 4px 0 0; font-size: 90%; }
.bloc-recents, .bloc-archives, .bloc-pages { padding-left: 1.1em; }
.bloc-recents .date-billet { font-size: 80%; opacity: .7; }
.bloc-archives summary { cursor: pointer; }
.nuage a { display: inline-block; margin: 0 .35em .2em 0; }
.vide { font-style: italic; }
