/*
Theme Name: SHLR Les Rivières
Theme URI: https://www.shlr.org
Description: Habillage de la Société d'histoire Les Rivières. Thème enfant de Hello Elementor : palette tirée du logo, typographie calibrée pour un lectorat âgé, et le type de contenu « Le Courant » pour la revue.
Author: Société d'histoire Les Rivières
Template: hello-elementor
Version: 1.1.0
Text Domain: shlr
*/

/* ==========================================================================
   Palette relevée dans le logo. Le bleu de la vague mesure #3F67A0 ;
   assombri à #2F5486 il atteint 8,6:1 sur blanc, soit le niveau AAA.
   ========================================================================== */
:root {
    --shlr-bleu:       #2F5486;
    --shlr-nuit:       #1F3A5F;
    --shlr-bleu-pale:  #7A93BC;
    --shlr-encre:      #17202B;
    --shlr-doux:       #4E5A6B;
    --shlr-brume:      #EAEEF4;
    --shlr-creme:      #F7F8FA;
    --shlr-filet:      #D6DBE3;
    --shlr-papier:     #FFFFFF;

    --shlr-serif: "Literata", Georgia, "Times New Roman", serif;
    --shlr-sans:  "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Lecture : 19 px et interligne 1,7, seuils sous lesquels une bonne part
       des membres n'ira pas. */
    --shlr-corps: 19px;
    --shlr-largeur: 1060px;
    --shlr-gouttiere: 28px;
}

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

body {
    margin: 0;
    font-family: var(--shlr-serif);
    font-size: var(--shlr-corps);
    line-height: 1.7;
    color: var(--shlr-encre);
    background: var(--shlr-papier);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--shlr-serif);
    font-weight: 700;
    line-height: 1.22;
    color: var(--shlr-encre);
    text-wrap: balance;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.015em; }
h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.01em; }
h3 { font-size: 21px; }
h4 { font-size: 19px; }

p, ul, ol { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; }

a { color: var(--shlr-bleu); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--shlr-nuit); }
a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 3px solid var(--shlr-bleu); outline-offset: 2px; }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.shlr-evitement {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--shlr-nuit); color: #FFF; padding: 12px 20px; text-decoration: none;
}
.shlr-evitement:focus { left: 0; color: #FFF; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.shlr-entete {
    background: var(--shlr-papier);
    border-bottom: 3px solid var(--shlr-bleu);
}
.shlr-entete__haut {
    max-width: var(--shlr-largeur);
    margin: 0 auto;
    padding: 18px var(--shlr-gouttiere) 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.shlr-marque img,
.shlr-marque .custom-logo { display: block; max-width: 364px; height: auto; }
.shlr-marque__texte {
    font-family: var(--shlr-serif); font-size: 24px; font-weight: 700;
    color: var(--shlr-encre); text-decoration: none;
}

.shlr-outils { display: flex; align-items: center; gap: 12px; }
.shlr-recherche input[type="search"] {
    font-family: var(--shlr-sans); font-size: 16px;
    padding: 12px 14px; min-height: 48px; min-width: 170px;
    border: 1px solid var(--shlr-filet); border-radius: 3px;
    background: var(--shlr-papier); color: var(--shlr-encre);
}
.shlr-bouton,
.wp-element-button, .wp-block-button__link, .elementor-button,
input[type="submit"], button[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--shlr-sans); font-size: 16px; font-weight: 600;
    min-height: 48px; padding: 12px 22px;
    background: var(--shlr-bleu); color: #FFF;
    border: 0; border-radius: 3px; text-decoration: none; cursor: pointer;
    white-space: nowrap;
}
.shlr-bouton:hover,
.wp-element-button:hover, .elementor-button:hover { background: var(--shlr-nuit); color: #FFF; }

/* Bouton de menu : visible seulement sur petit écran */
.shlr-bascule {
    display: none; align-items: center; gap: 9px;
    font-family: var(--shlr-sans); font-size: 16px; font-weight: 600;
    background: var(--shlr-bleu); color: #FFF;
    border: 0; border-radius: 3px; padding: 12px 18px; min-height: 48px; cursor: pointer;
}
.shlr-bascule__barres,
.shlr-bascule__barres::before,
.shlr-bascule__barres::after {
    display: block; width: 20px; height: 2px; background: #FFF; content: ""; position: relative;
}
.shlr-bascule__barres::before { position: absolute; top: -6px; }
.shlr-bascule__barres::after  { position: absolute; top: 6px; }

/* --- menu --- */
.shlr-nav { border-top: 1px solid var(--shlr-filet); }
.shlr-menu {
    display: flex; flex-wrap: wrap; list-style: none;
    max-width: var(--shlr-largeur); margin: 0 auto; padding: 0 var(--shlr-gouttiere);
}
.shlr-menu li { position: relative; }
.shlr-menu a {
    display: block;
    font-family: var(--shlr-sans); font-size: 16px; font-weight: 600;
    color: var(--shlr-encre); text-decoration: none;
    padding: 15px 16px; min-height: 48px;
}
.shlr-menu > li > a:hover { color: var(--shlr-bleu); background: var(--shlr-brume); }
.shlr-menu > li.current-menu-item > a,
.shlr-menu > li.current-menu-ancestor > a,
.shlr-menu > li.current_page_item > a {
    color: var(--shlr-bleu); box-shadow: inset 0 -3px 0 var(--shlr-bleu);
}

/* Les sous-menus s'ouvrent au survol ET au clavier, mais restent affichés
   assez longtemps pour être atteints : pas de disparition au moindre écart. */
.shlr-menu .sub-menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 40;
    min-width: 250px; margin: 0; padding: 6px 0; list-style: none;
    background: var(--shlr-papier);
    border: 1px solid var(--shlr-filet); border-top: 3px solid var(--shlr-bleu);
    box-shadow: 0 10px 26px rgba(23, 32, 43, .12);
}
.shlr-menu li:hover > .sub-menu,
.shlr-menu li:focus-within > .sub-menu,
.shlr-menu li.est-ouvert > .sub-menu { display: block; }
.shlr-menu .sub-menu a { font-weight: 400; font-size: 16px; padding: 11px 18px; }
.shlr-menu .sub-menu a:hover { background: var(--shlr-brume); color: var(--shlr-bleu); }

/* ==========================================================================
   Corps
   ========================================================================== */
.shlr-corps { display: block; }

.page-header,
.shlr-corps > article > .page-header { display: none; }   /* le titre est dans le contenu */

.entry-content,
.page-content,
.shlr-corps > article,
.shlr-corps > .courant-article {
    max-width: var(--shlr-largeur);
    margin: 0 auto;
    padding: 40px var(--shlr-gouttiere) 64px;
}

/* La ligne de lecture ne dépasse pas 68 signes : au-delà, l'œil saute
   des lignes en revenant à la marge. */
.page-content > p,
.entry-content > p,
.page-content > ul,
.entry-content > ul,
.page-content > ol { max-width: 68ch; }

/* Un titre de page repris du contenu */
.page-content > h1:first-child,
.entry-content > h1:first-child { margin-top: 0; }

/* --- bannière pleine largeur --- */
.wp-block-cover.alignfull,
.wp-block-cover {
    position: relative;
    display: flex; align-items: flex-end;
    min-height: 380px;
    margin: 0 0 0;
    padding: 0;
    overflow: hidden;
}
.page-content > .wp-block-cover.alignfull {
    /* déborde la colonne de contenu pour occuper toute la largeur */
    width: 100vw; max-width: 100vw;
    margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.wp-block-cover__image-background { object-fit: cover; }
.wp-block-cover__inner-container {
    max-width: var(--shlr-largeur);
    margin: 0 auto;
    padding: 0 var(--shlr-gouttiere) 34px;
    width: 100%;
}
.wp-block-cover h1,
.wp-block-cover h2 {
    color: #FFF; font-size: clamp(28px, 4.4vw, 44px); margin: 0 0 10px; max-width: 18ch;
}
.wp-block-cover p { color: rgba(255, 255, 255, .92); font-size: 18px; margin: 0; max-width: 52ch; }

/* le crédit qui suit la bannière */
.wp-block-cover + .wp-block-paragraph,
.wp-block-cover + p {
    font-family: var(--shlr-sans); font-size: 13.5px; color: var(--shlr-doux);
    background: var(--shlr-creme);
    width: 100vw; max-width: 100vw;
    margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    padding: 9px calc(50vw - var(--shlr-largeur) / 2 + var(--shlr-gouttiere));
    border-bottom: 1px solid var(--shlr-filet);
}
.wp-block-cover + p em { font-style: normal; }

/* --- colonnes : les trois portes --- */
.wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 36px 0 40px;
}
.wp-block-column {
    background: var(--shlr-papier);
    border: 1px solid var(--shlr-filet);
    border-top: 3px solid var(--shlr-bleu);
    border-radius: 3px;
    padding: 24px;
    display: flex; flex-direction: column;
}
.wp-block-column > h3 { font-size: 20px; margin: 0 0 8px; }
.wp-block-column > p { font-size: 16.5px; color: var(--shlr-doux); margin: 0 0 12px; }
.wp-block-column > p:last-child { margin-top: auto; margin-bottom: 0; }
.wp-block-column > p:last-child a {
    font-family: var(--shlr-sans); font-size: 16px; font-weight: 600; text-decoration: none;
}
.wp-block-column > p:last-child a:hover { text-decoration: underline; }

/* --- séparateur --- */
.wp-block-separator {
    border: 0; border-top: 1px solid var(--shlr-filet);
    margin: 44px 0; max-width: none;
}

/* --- dernières nouvelles --- */
.wp-block-latest-posts__list { list-style: none; margin: 0 0 34px; padding: 0; }
.wp-block-latest-posts__list > li {
    padding: 17px 0; border-bottom: 1px solid var(--shlr-filet);
    display: grid; grid-template-columns: 130px 1fr; gap: 6px 20px; align-items: baseline;
}
.wp-block-latest-posts__post-title {
    grid-column: 2; font-family: var(--shlr-serif); font-size: 19px; font-weight: 600;
    text-decoration: none; color: var(--shlr-encre);
}
.wp-block-latest-posts__post-title:hover { color: var(--shlr-bleu); }
.wp-block-latest-posts__post-date {
    grid-column: 1; grid-row: 1 / span 2;
    font-family: var(--shlr-sans); font-size: 13.5px; font-weight: 600;
    color: var(--shlr-bleu); letter-spacing: .02em;
}
.wp-block-latest-posts__post-excerpt {
    grid-column: 2; font-size: 16px; color: var(--shlr-doux); margin: 0;
}

/* --- listes de contenu --- */
.page-content .wp-block-list,
.entry-content ul { padding-left: 1.2em; }
.page-content .wp-block-list li { margin-bottom: .45em; }

/* --- tableaux --- */
.wp-block-table table { width: 100%; border-collapse: collapse; font-family: var(--shlr-sans); }
.wp-block-table th, .wp-block-table td {
    text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--shlr-filet); font-size: 16.5px;
}
.wp-block-table th {
    font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--shlr-doux); border-bottom: 2px solid var(--shlr-filet);
}

/* ==========================================================================
   La revue Le Courant
   ========================================================================== */
.courant-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 32px 24px;
    margin: 30px 0 40px;
}
.courant-carte { display: flex; flex-direction: column; }
.courant-lien { display: block; text-decoration: none; }

/* 260 px de large à l'écran pour une image servie en 520 px : net même sur
   un écran à haute densité, et jamais agrandie. */
.courant-couverture {
    display: block; width: 100%; max-width: 260px;
    aspect-ratio: 3 / 4; object-fit: cover;
    border: 1px solid var(--shlr-filet); background: var(--shlr-brume);
}
.courant-lien:hover .courant-couverture { border-color: var(--shlr-bleu); }

/* Couverture composée, employée si l'image d'origine est trop petite. */
.courant-couverture--composee {
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 18px 16px; background: var(--shlr-nuit); border-color: var(--shlr-nuit);
    color: #FFF; text-align: left;
}
.cc-marque {
    font-family: var(--shlr-sans); font-size: 11px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: #A8BEDC;
}
.cc-numero { font-family: var(--shlr-serif); font-size: 30px; font-weight: 700; line-height: 1.05; }
.cc-numero em { display: block; font-style: normal; font-size: 22px; opacity: .85; }
.cc-saison { font-family: var(--shlr-sans); font-size: 13px; color: #C6D4E8; }

.courant-infos { padding-top: 12px; }
.courant-parution {
    font-family: var(--shlr-sans); font-size: 13px; font-weight: 600;
    letter-spacing: .03em; color: var(--shlr-bleu); margin: 0 0 2px;
}
.courant-titre { font-size: 17.5px; margin: 0 0 4px; line-height: 1.3; }
.courant-titre a { text-decoration: none; color: var(--shlr-encre); }
.courant-titre a:hover { color: var(--shlr-bleu); }
.courant-acces { font-family: var(--shlr-sans); font-size: 13.5px; color: var(--shlr-doux); margin: 0; }
.courant-acces.est-membre { color: var(--shlr-nuit); font-weight: 600; }

.courant-dernier {
    display: flex; gap: 26px; align-items: flex-start;
    background: var(--shlr-creme); border: 1px solid var(--shlr-filet);
    padding: 24px; margin: 0 0 40px;
}
.courant-dernier .courant-couverture { max-width: 150px; flex: 0 0 150px; }
.courant-dernier h3 { margin: 2px 0 8px; font-size: 21px; }
.courant-dernier h3 a { text-decoration: none; color: var(--shlr-encre); }
.courant-dernier p { margin: 0 0 .6em; }

.courant-fiche { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.courant-fiche .courant-couverture { max-width: 300px; }
.courant-meta {
    font-family: var(--shlr-sans); font-size: 15.5px;
    list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--shlr-filet);
}
.courant-meta li {
    display: flex; justify-content: space-between; gap: 18px;
    padding: 10px 0; border-bottom: 1px solid var(--shlr-filet);
}
.courant-meta .etiquette { color: var(--shlr-doux); }
.courant-meta .valeur { font-weight: 600; text-align: right; }

.courant-encadre {
    border-left: 4px solid var(--shlr-bleu); background: var(--shlr-creme);
    padding: 20px 24px; margin: 26px 0;
}
.courant-encadre h2 { font-size: 20px; margin: 0 0 8px; }
.courant-encadre p { font-size: 16.5px; color: var(--shlr-doux); margin-bottom: .6em; }
.courant-encadre p:last-child { margin-bottom: 0; }

.courant-sommaire { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--shlr-filet); }
.courant-retour { margin-top: 34px; font-family: var(--shlr-sans); font-size: 16px; }

/* ==========================================================================
   Crédits de photographies
   ========================================================================== */
figcaption, .wp-caption-text, .wp-element-caption {
    font-family: var(--shlr-sans); font-size: 14.5px; line-height: 1.55;
    color: var(--shlr-doux); padding-top: 9px;
}
.shlr-source { display: block; margin-top: 3px; font-size: 13.5px; color: var(--shlr-doux); }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.shlr-pied { background: var(--shlr-nuit); color: #DEE5EF; margin-top: 40px; }
.shlr-pied a { color: #DEE5EF; text-decoration: none; }
.shlr-pied a:hover { text-decoration: underline; color: #FFF; }
.shlr-pied__contenu {
    max-width: var(--shlr-largeur); margin: 0 auto;
    padding: 40px var(--shlr-gouttiere) 30px;
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px;
}
.shlr-pied h2 {
    font-family: var(--shlr-sans); font-size: 12px; font-weight: 700;
    letter-spacing: .13em; text-transform: uppercase; color: #9FB6D6;
    margin: 0 0 14px;
}
.shlr-pied p { font-size: 16px; margin: 0 0 .7em; }
.shlr-pied__liens { list-style: none; margin: 0; padding: 0; }
.shlr-pied__liens li { margin-bottom: 7px; font-size: 16px; }
.shlr-pied__liens .sub-menu { display: none; }
.shlr-pied__bas {
    border-top: 1px solid rgba(255, 255, 255, .16);
}
.shlr-pied__bas p {
    max-width: var(--shlr-largeur); margin: 0 auto;
    padding: 16px var(--shlr-gouttiere);
    font-family: var(--shlr-sans); font-size: 13.5px; color: #9FB6D6;
}

/* ==========================================================================
   Petits écrans
   ========================================================================== */
@media (max-width: 900px) {
    .shlr-pied__contenu { grid-template-columns: 1fr; gap: 26px; }
    .courant-fiche { grid-template-columns: 1fr; }
    .courant-fiche .courant-couverture { max-width: 240px; }
}

@media (max-width: 782px) {
    .shlr-outils { display: none; }
    .shlr-bascule { display: inline-flex; }
    .shlr-nav { display: none; }
    .shlr-nav.est-ouvert { display: block; }
    .shlr-menu { flex-direction: column; padding: 0; }
    .shlr-menu > li { border-top: 1px solid var(--shlr-filet); }
    .shlr-menu a { padding: 15px var(--shlr-gouttiere); }
    .shlr-menu .sub-menu {
        display: block; position: static; min-width: 0;
        border: 0; border-top: 1px solid var(--shlr-filet); box-shadow: none;
        background: var(--shlr-creme); padding: 0;
    }
    .shlr-menu .sub-menu a { padding-left: calc(var(--shlr-gouttiere) + 18px); }
    .courant-dernier { flex-direction: column; }
    .wp-block-latest-posts__list > li { grid-template-columns: 1fr; }
    .wp-block-latest-posts__post-date { grid-row: auto; grid-column: 1; }
    .wp-block-latest-posts__post-title,
    .wp-block-latest-posts__post-excerpt { grid-column: 1; }
    .courant-grille { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Actualités et quartiers (codes courts du thème)
   ========================================================================== */
.shlr-actus { margin: 0 0 8px; }
.shlr-actu {
    display: grid; grid-template-columns: 132px 1fr; gap: 4px 20px;
    padding: 17px 0; border-bottom: 1px solid var(--shlr-filet);
}
.shlr-actu:last-child { border-bottom: 0; }
.shlr-actu__date {
    font-family: var(--shlr-sans); font-size: 13.5px; font-weight: 600;
    color: var(--shlr-bleu); letter-spacing: .02em; margin: 0; padding-top: 3px;
}
.shlr-actu__titre { font-size: 19px; font-weight: 600; margin: 0 0 3px; }
.shlr-actu__titre a { text-decoration: none; color: var(--shlr-encre); }
.shlr-actu__titre a:hover { color: var(--shlr-bleu); }
.shlr-actu__extrait { font-size: 16px; color: var(--shlr-doux); margin: 0; }

.shlr-quartiers {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px; margin: 26px 0 8px;
}
.shlr-quartier {
    display: block; text-decoration: none; color: inherit;
    border: 1px solid var(--shlr-filet); background: var(--shlr-papier);
}
.shlr-quartier:hover { border-color: var(--shlr-bleu); }
.shlr-quartier__image { aspect-ratio: 3 / 2; overflow: hidden; background: var(--shlr-brume); }
.shlr-quartier__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shlr-quartier__image--vide { background: var(--shlr-brume); }
.shlr-quartier__nom { font-size: 20px; margin: 0; padding: 15px 18px 4px; }
.shlr-quartier__mot { font-size: 15.5px; color: var(--shlr-doux); margin: 0; padding: 0 18px 18px; }

/* ==========================================================================
   Sections construites dans Elementor
   ========================================================================== */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--shlr-largeur); }
.elementor-widget-heading .elementor-heading-title { font-family: var(--shlr-serif); }
.elementor-widget-text-editor { font-family: var(--shlr-serif); font-size: var(--shlr-corps); }

/* Une bande de couleur pleine largeur */
.shlr-bande-creme { background: var(--shlr-creme); }
.shlr-bande-brume { background: var(--shlr-brume); }
.shlr-bande-nuit  { background: var(--shlr-nuit); color: #E4EAF3; }
.shlr-bande-nuit h1, .shlr-bande-nuit h2, .shlr-bande-nuit h3 { color: #FFF; }
.shlr-bande-nuit a { color: #C6D4E8; }

/* Une carte dans une colonne Elementor */
.shlr-carte {
    background: var(--shlr-papier);
    border: 1px solid var(--shlr-filet);
    border-top: 3px solid var(--shlr-bleu);
    padding: 24px;
}
.shlr-carte .elementor-widget-heading .elementor-heading-title { font-size: 20px; }

@media (max-width: 782px) {
    .shlr-actu { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Conférences
   ========================================================================== */
.shlr-evenements { margin: 22px 0 10px; }
.shlr-evenement {
    display: grid; grid-template-columns: 82px 1fr; gap: 22px;
    padding: 20px 0; border-bottom: 1px solid var(--shlr-filet); align-items: start;
}
.shlr-evenement:last-child { border-bottom: 0; }
.shlr-evenement__date {
    text-align: center; border: 1px solid var(--shlr-filet); border-radius: 3px;
    overflow: hidden; font-family: var(--shlr-sans); background: var(--shlr-papier);
}
.shlr-evenement__jour {
    display: block; font-size: 26px; font-weight: 700; line-height: 1;
    padding: 10px 0 2px; color: var(--shlr-encre);
}
.shlr-evenement__mois {
    display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--shlr-bleu);
}
.shlr-evenement__annee {
    display: block; font-size: 11.5px; color: var(--shlr-doux);
    background: var(--shlr-creme); padding: 4px 0 5px; margin-top: 6px;
    border-top: 1px solid var(--shlr-filet);
}
.shlr-evenement__titre { font-size: 20px; margin: 0 0 5px; line-height: 1.28; }
.shlr-evenement__titre a { text-decoration: none; color: var(--shlr-encre); }
.shlr-evenement__titre a:hover { color: var(--shlr-bleu); }
.shlr-evenement__lieu {
    font-family: var(--shlr-sans); font-size: 14.5px; color: var(--shlr-doux); margin: 0 0 6px;
}
.shlr-evenement__resume { font-size: 16px; color: var(--shlr-doux); margin: 0; }

/* La galerie de vidéos, sur la largeur du contenu */
.epyt-gallery { margin: 24px 0; }
.epyt-gallery-list .epyt-gallery-thumb { padding: 8px !important; }

/* ==========================================================================
   Galeries de quartier
   ========================================================================== */
.shlr-galerie {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 26px 22px; margin: 26px 0 10px;
}
.shlr-galerie__item { margin: 0; }
.shlr-galerie__item a { text-decoration: none; display: block; }
.shlr-galerie__item img {
    width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
    border: 1px solid var(--shlr-filet); background: var(--shlr-brume);
}
.shlr-galerie__item a:hover img { border-color: var(--shlr-bleu); }
.shlr-galerie__item figcaption {
    font-family: var(--shlr-sans); font-size: 15px; line-height: 1.45;
    color: var(--shlr-encre); padding-top: 10px;
}
.shlr-galerie__item figcaption a { color: var(--shlr-encre); font-weight: 600; }
.shlr-galerie__item figcaption a:hover { color: var(--shlr-bleu); }

/* ==========================================================================
   Conseil d'administration
   ========================================================================== */
.shlr-conseil {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px; margin: 28px 0 12px;
}
.shlr-membre {
    border: 1px solid var(--shlr-filet); border-top: 3px solid var(--shlr-bleu);
    background: var(--shlr-papier); padding: 20px 22px;
}
.shlr-membre__role {
    font-family: var(--shlr-sans); font-size: 11.5px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--shlr-bleu);
    margin: 0 0 5px;
}
.shlr-membre__nom { font-size: 20px; font-weight: 700; margin: 0; line-height: 1.25; }
.shlr-conseil__note {
    font-family: var(--shlr-sans); font-size: 14px; color: var(--shlr-doux);
    margin-top: 18px;
}
