/* =====================================================================
   Galerie de l'UdeM — mise à jour automne 2026
   Chargé après style.css et fonts.css sur toutes les pages.
   1. Polices (Acumin Variable Concept pour le texte, Hochelaga pour les titres)
   2. Titres : plus de barres noires, plus de tiret après « Exposition »
   3. Bouton « Faites un don » (menu)
   4. Pages Éducation / Visiter / Grande campagne
   5. Bas de page (footer)
   ===================================================================== */

/* ---------- 1. Polices ---------- */
@font-face {
  font-family: 'Acumin Variable Concept';
  src: url('../fonts/AcuminVariableConcept.woff') format('woff'),
       url('../fonts/AcuminVariableConcept.otf') format('opentype');
  font-weight: 100 900;
  font-stretch: 50% 115%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hochelaga';
  src: url('../fonts/HochelagaUDM-Regular.woff') format('woff'),
       url('../fonts/HochelagaUDM-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --galerie-texte: 'Acumin Variable Concept', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --galerie-titre: 'Hochelaga', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --galerie-noir: #191919;
}

/* Safari : Acumin Variable Concept a un axe d'inclinaison (slnt) non standard
   que Safari applique par erreur -> texte en italique. On force l'inclinaison à 0.
   (La propriété est héritée par tous les éléments.) */
html,
body {
  font-variation-settings: "slnt" 0;
}

/* Texte courant */
body,
html,
.cs_primary_font,
.cs_secondary_font,
p, label, input, textarea, select, button,
h3, h4, h5, h6,
.cs_btn,
.cs_footer_menu,
.cs_copyright,
.cs_text_photo_description {
  font-family: var(--galerie-texte);
}

/* Les liens et les éléments de liste héritent de la police de leur parent
   (ex. un lien dans un titre reste en Hochelaga) */
a, li {
  font-family: inherit;
}

/* Les titres de contenu (h2 dans les descriptions) restent dans la police du texte */
h1, h2 {
  font-family: var(--galerie-texte);
}

/* Titres principaux et titres de section : Hochelaga */
h1.cs_section_title,
.cs_section_title,
.cs_section_heading h1,
.cs_section_heading h2,
.cs_post_title,
.cs_portfolio_title,
.cs_hero_title,
.cs_footer_title,
.galerie_section_title {
  font-family: var(--galerie-titre) !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.cs_section_heading.cs_style_2.cs_type_1 .cs_section_title {
  line-height: 1.08em;
}
.cs_section_title,
.cs_post_title,
.galerie_section_title {
  overflow-wrap: break-word;
  hyphens: manual;
}

/* Infos sous les titres d'exposition (Date, Vernissage, Commissaires) */
.cs_portfolio_info_1 h3 {
  font-weight: 700;
}

/* Menu */
.cs_nav .cs_nav_list a,
.cs_header_small_menu {
  font-family: var(--galerie-texte);
}
@media (min-width: 992px) {
  .cs_site_header .cs_nav .cs_nav_list > li > a {
    font-weight: 600;
    letter-spacing: 0.02em;
  }
}

/* ---------- 2. Titres : barres noires et tiret ---------- */
.cs_line,
.cs_line_sub,
.cs_line_sub_2,
.cs_line_sub_small,
.cs_line_sub_samll_2,
.cs_line_sub_samll_3 {
  display: none !important;
}

/* Tiret « — » après « Exposition » / « Collection » au-dessus des titres */
.cs_section_heading.cs_style_2 .cs_section_subtitle span::after {
  display: none !important;
  content: none !important;
}
.cs_section_heading.cs_style_2.cs_type_1 .cs_section_subtitle {
  font-weight: 400;
  font-size: 20px;
  margin-bottom: 18px;
  color: #5a5959;
}

/* Espace sous les titres de section (compense le retrait des barres) */
.cs_section_heading.cs_style_2.cs_type_1 h2:not(.cs_section_title) {
  margin-bottom: 0;
}

/* Cartes de la page Publications : toutes de la même hauteur (toutes les rangées) */
@media (min-width: 992px) {
  .galerie_publications > .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    margin-left: -12px;
    margin-right: -12px;
  }
  .galerie_publications > .row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
  }
}
.galerie_publications .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.galerie_publications .cs_post.cs_style_1 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.galerie_publications .cs_post.cs_style_1 > a img {
  width: 100%;
  aspect-ratio: 600 / 745;
  object-fit: cover;
  display: block;
}
.galerie_publications .cs_post.cs_style_1 .cs_post_title {
  font-size: 30px;
  line-height: 1.15em;
  margin-bottom: 18px;
}
.galerie_publications .cs_post.cs_style_1 .cs_post_subtitle {
  margin-top: auto;
}
.galerie_publications .cs_post.cs_style_1 .cs_posted_by span:first-child {
  font-family: var(--galerie-texte);
}

/* ---------- 3. Boutons ---------- */
.galerie_btn,
a.galerie_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--galerie-noir);
  color: #fff !important;
  font-family: var(--galerie-titre) !important;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 16px 9px;
  border: 2px solid var(--galerie-noir);
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.galerie_btn:hover,
a.galerie_btn:hover,
.galerie_btn:focus-visible {
  background-color: #fff;
  color: var(--galerie-noir) !important;
}
.galerie_btn_large {
  font-size: 26px;
  padding: 14px 24px 12px;
}

/* Bouton « Faites un don » sous le menu (bureau) */
.cs_site_header.cs_style1 .cs_main_header_in {
  overflow: visible;
}
.galerie_don_header {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  z-index: 5;
}
.cs_site_header.cs_sticky_active .galerie_don_header,
.cs_site_header.cs_gescout_sticky .galerie_don_header {
  display: none !important;
}

/* Bouton « Faites un don » dans le menu mobile */
.galerie_don_mobile {
  padding: 20px 15px 10px;
}
.cs_nav .cs_nav_list .galerie_don_mobile a.galerie_btn {
  display: inline-flex;
  background-color: #fff;
  border-color: #fff;
  color: var(--galerie-noir) !important;
  padding: 12px 18px 10px;
  height: auto;
  font-size: 22px;
  line-height: 1;
}

/* ---------- 4. Pages Éducation / Visiter / Grande campagne ---------- */
.galerie_page .galerie_section {
  margin-bottom: 70px;
}
.galerie_page .galerie_section .cs_section_heading {
  margin-bottom: 22px;
}
.galerie_section_title {
  font-size: 46px;
  line-height: 1.1em;
  margin: 0;
  color: var(--galerie-noir);
}
.galerie_section_texte {
  max-width: 900px;
  color: #3d3d3d;
  font-size: 20px;
  line-height: 1.6em;
}
.galerie_section_texte p {
  margin-bottom: 16px;
}
.galerie_section_texte a,
.galerie_info_texte a,
.galerie_info_note a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--galerie-noir);
}
.galerie_section_texte h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 28px 0 12px;
}
.galerie_section_texte ul {
  list-style: square outside;
  padding-left: 22px;
  margin-bottom: 20px;
}
.galerie_section_texte ul li {
  margin-bottom: 14px;
}
.galerie_section_texte strong {
  color: var(--galerie-noir);
}
.galerie_section_cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.galerie_section_image {
  margin: 0;
}
.galerie_section_image img {
  width: 100%;
  height: auto;
  display: block;
}
.galerie_section_image figcaption {
  font-size: 15px;
  line-height: 1.5em;
  margin-top: 10px;
  color: #5a5959;
}
.galerie_section_bouton {
  margin: 26px 0 0;
}

/* Visiter : horaire et adresse */
.galerie_info_bloc {
  margin-bottom: 28px;
}
.galerie_info_label {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--galerie-noir);
  margin-bottom: 6px;
}
.galerie_info_texte {
  font-size: 20px;
  line-height: 1.55em;
  color: #3d3d3d;
}
.galerie_info_texte p {
  margin-bottom: 8px;
}
.galerie_info_note {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.5em;
  color: #5a5959;
}
.galerie_carte {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  background: #eee;
}
.galerie_carte iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Visiter : vidéos */
.galerie_videos {
  margin-top: 36px;
}
.galerie_video {
  margin-bottom: 30px;
}
.galerie_video video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}
.galerie_video_embed {
  position: relative;
  aspect-ratio: 16 / 9;
}
.galerie_video_embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Grande campagne */
.galerie_campagne .cs_section_heading {
  margin-bottom: 36px;
}
.galerie_campagne .cs_section_title {
  max-width: 1000px;
}
.galerie_campagne_texte {
  font-size: 21px;
}

@media (max-width: 991px) {
  .galerie_section_title { font-size: 34px; }
  .galerie_section_cols { grid-template-columns: 1fr; gap: 24px; }
  .galerie_section_texte, .galerie_info_texte { font-size: 18px; }
  .galerie_page .galerie_section { margin-bottom: 50px; }
  .galerie_carte { margin-top: 10px; }
}

/* ---------- 5. Bas de page (footer) ---------- */
.galerie_footer {
  padding-top: 70px;
}
.galerie_footer .galerie_footer_top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: start;
}
.galerie_footer_logo {
  width: 265px;
  max-width: 100%;
  height: auto;
  margin-bottom: 36px;
}
.galerie_footer .cs_footer_contact {
  margin-bottom: 24px;
}
.galerie_footer .cs_footer_contact h5,
.galerie_footer #mc_embed_signup h5 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}
.galerie_footer .cs_footer_contact p,
.galerie_footer .galerie_footer_heures {
  color: #fff;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.6em;
}
.galerie_footer .galerie_footer_heures p {
  margin-bottom: 8px;
}
.galerie_footer .galerie_footer_col_heures {
  padding-top: 8px;
}

/* Boutons contour blanc (Nous trouver, M'abonner) */
.galerie_btn_outline,
.galerie_footer #mc_embed_signup .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  height: 46px !important;
  padding: 0 24px !important;
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  border-radius: 0 !important;
  font-family: var(--galerie-texte) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  margin: 0 !important;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.galerie_btn_outline:hover,
.galerie_footer #mc_embed_signup .button:hover {
  background: #fff !important;
  color: var(--galerie-noir) !important;
}

/* Infolettre (Mailchimp) */
.galerie_footer #mc_embed_signup {
  background: transparent;
  clear: left;
  width: 100%;
  font-family: var(--galerie-texte);
  font-size: 15px;
}
.galerie_footer #mc_embed_signup form {
  padding: 0 !important;
  margin: 0 !important;
}
.galerie_footer #mc_embed_signup .mc-field-group {
  width: 100% !important;
  padding-bottom: 8px !important;
  min-height: 0 !important;
}
.galerie_footer #mc_embed_signup .mc-field-group label {
  color: #d6d6d6;
  font-size: 14px;
  margin-bottom: 2px;
  font-family: var(--galerie-texte);
}
.galerie_footer #mc_embed_signup .mc-field-group input {
  height: 36px;
  border-radius: 0 !important;
  border: 0 !important;
  padding: 6px 10px !important;
  font-family: var(--galerie-texte);
}
.galerie_footer #mc_embed_signup .clear {
  margin-top: 10px;
}
.galerie_footer #mc_embed_signup .button {
  width: 100% !important;
  max-width: 100%;
}

/* Réseaux sociaux (liens texte) */
.galerie_footer_social {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  gap: 34px;
}
.galerie_footer_social a {
  color: #fff;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.galerie_footer_social a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Navigation du bas + bouton « Faites un don » (blanc) */
.galerie_footer_nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-bottom: 30px;
}
.galerie_footer .cs_footer_menu {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.galerie_footer .cs_footer_menu li:not(:last-child) {
  margin-right: 52px;
}
.galerie_footer .cs_footer_menu a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.galerie_btn_blanc,
a.galerie_btn_blanc {
  background-color: #fff;
  border-color: #fff;
  color: var(--galerie-noir) !important;
}
.galerie_btn_blanc:hover,
a.galerie_btn_blanc:hover {
  background-color: transparent;
  color: #fff !important;
}
.galerie_footer .cs_bottom_footer {
  padding: 24px 0;
}

@media (max-width: 1199px) {
  .galerie_footer .cs_footer_menu li:not(:last-child) { margin-right: 30px; }
}
@media (max-width: 991px) {
  .galerie_footer { padding-top: 50px; }
  .galerie_footer .galerie_footer_top {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .galerie_footer_logo { width: 190px; margin-bottom: 26px; }
  .galerie_footer .cs_footer_contact p,
  .galerie_footer .galerie_footer_heures { font-size: 19px; }
  .galerie_footer .galerie_footer_col_heures,
  .galerie_footer .galerie_footer_col_adresse { margin-bottom: 20px; }
  .galerie_footer .cs_footer_menu { flex-direction: column; gap: 14px; }
  .galerie_footer .cs_footer_menu li:not(:last-child) { margin-right: 0; }
  .galerie_footer_nav { flex-direction: column; align-items: flex-start; margin-top: 30px; }
}
