/* ==========================
   Brassac – Église Saint-Georges
   CSS spécifique à la page
   ========================== */

/* Intro */
.g1418-page .mm-intro {
  margin: 0 auto 1.2rem;
}

.g1418-page .mm-intro p {
  margin: 0;
  font-size: clamp(1.1rem, 0.55vw + 1rem, 1.35rem);
  line-height: 1.5;
  color: #222;
  font-weight: 500;
}

.g1418-page .mm-grid {            /* ← idem, spécificité renforcée */
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--g-gap, 16px);
  align-items: stretch;
}

/* Frise pleine largeur */
.mm-figure-full {
  grid-column: 1 / -1;
  margin: 1.2rem 0 1.5rem;
}

.mm-figure-full img {
  display: block;
  width: 100%;
  height: auto;
}

/* Titre de section */
.mm-lettre-title {
  grid-column: 1 / -1;
  margin-top: 20px;
  padding: 12px 14px;
  text-align: center;

  font-size: clamp(1.3rem, 1vw + 1rem, 1.8rem);
  line-height: 1.35;
  font-family: "EB Garamond", serif;
  font-weight: 650;

  color: #1a1a1a;
  background: #eef3f8;   /* 👈 clé */

  border-left: 6px solid #9a7b4f;
  border-radius: var(--r, 12px);
  box-shadow: var(--shadow, 0 6px 18px rgba(0,0,0,.08));
}

@supports (text-wrap: balance) {
  .mm-lettre-title {
    text-wrap: balance;
  }
}

/* Grille principale */
.mm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--g-gap, 16px);
  align-items: stretch;
}

/* Les deux colonnes de la ligne image + texte */
.mm-grid > .g1418-box {
  display: flex;
  flex-direction: column;
}

/* Bloc image */
.g--portrait {
  background: #f6f6f6;
  overflow: hidden;
}

.g1418-media {
  display: block;
  width: 100%;
  height: auto;
}

/* Légende */
.mm-caption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #444;
}

/* Bloc texte */
.mm-note {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: var(--r, 12px);
  background: var(--sable, #f4efe8);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow, 0 6px 18px rgba(0,0,0,.08));
  font-size: clamp(1rem, 0.3vw + 1rem, 1.1rem);
  line-height: 1.55;
}

.mm-note p {
  margin: 0 0 0.7em;
}

.mm-note p:last-child {
  margin-bottom: 0;
}

/* Mobile */
@media (max-width: 979px) {
  .g--portrait .g1418-media {
    object-fit: contain;
  }
}

/* Desktop */
@media (min-width: 980px) {
  .mm-grid {
    grid-template-columns: 1fr 1fr;
  }

  .g--portrait {
    display: flex;
    flex-direction: column;
  }

  .g--portrait .mm-figure {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
  }

  .g--portrait .g1418-media {
    flex: 1;
    width: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
  }

  .g--portrait .mm-caption {
    flex-shrink: 0;
  }
}

/* Desktop */
@media (min-width: 980px) {
  .g1418-page .mm-grid {          /* ← .g1418-page ajouté pour battre g1418.css */
    grid-template-columns: 1fr 1fr;
    align-items: stretch;         /* ← contrebalance le align-items:start de g1418.css */
  }
  
html {
  scroll-behavior: smooth;
}

figcaption {
  text-align: center;
}

/* Réduction des marges autour de la frise */
.mm-figure-full {
  margin-top: 6px;     /* ou 0 si vous voulez très serré */
  margin-bottom: 8px; /* ajustez visuellement */
}
.g1418-page .mm-figure-full {
  margin-top: 4px;
  margin-bottom: 6px;
}
.mm-intro {
  margin-bottom: 8px;
}
.mm-lettre-title {
  margin-top: 10px;
}

.mm-photos-2 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 8px 0 0 0;
  box-sizing: border-box;
}

.mm-photos-2 .mm-photo {
  margin: 0;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--r, 12px);
  box-shadow: var(--shadow, 0 6px 18px rgba(0,0,0,.06));
  overflow: hidden;
}

.mm-photos-2 .mm-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.mm-photos-2 .mm-photo figcaption {
  margin: 0;
  padding: 8px 10px 10px;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #333;
  background: #fafafa;
  border-top: 1px solid rgba(0,0,0,.06);
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .mm-photos-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .mm-photos-2 {
    grid-template-columns: 1fr;
  }
}

.mm-mini-title{
  margin: 16px 0 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.15);
  font-family: "EB Garamond", serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #222;
}

.mm-lexique-simple{
  margin-top: 0;
  padding: 10px 12px;
  background: #f7f5ef;
  border-left: 4px solid #9a7b4f;
  font-size: 0.95 rem;
  line-height: 1.45;
}

.mm-credit {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
}

.page-eglise5 .g1418-media {
  display: block;

  max-height: 650px;     /* ajuste si besoin */
  width: auto;
  margin: 0 auto;

  background: #fff;

  padding: 8px 24px;     /* 👈 asymétrie visuelle efficace */

  box-sizing: border-box;
}
.mm-note p + ul {
  margin-top: 2px;
}

.mm-reperes-bloc {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
  align-items: start;
}

.mm-reperes-droite {
  text-align: center;
}

.mm-portrait-blanc img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.mm-portrait-blanc p {
  margin: 4px 0 0;
  font-size: 0.85rem;
}

.page-eglise5b .g1418-media {
  display: block;
  max-height: 700px;
  width: auto;
  margin: 0 auto;
  padding: 6px 10px;   /* moins sur les côtés */
  background: #fff;
  box-sizing: border-box;
}

.mm-photo {
  background: #f3efe7;   /* beige très léger */
  padding: 10px;
  border-radius: 10px;
}

.mm-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.mm-pager {
  margin: 1rem auto 0;      /* 👈 réduit l’espace au-dessus */
  padding: 0.4rem 0.6rem;   /* 👈 réduit l’espace interne */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0,0,0,.08);
}

.mm-pager a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  text-decoration: none;
  color: #222;
  background: #eef3f8;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
  transition: background-color .2s ease, transform .2s ease;
}

.mm-pager a:hover,
.mm-pager a:focus {
  background: #e3ebf3;
  transform: translateY(-1px);
}

.mm-pager-home {
  font-weight: 600;
}
.page-eglise5 .mm-pager {
  margin-top: 0.6rem;
}
.mm-pager {
  margin-bottom: 0.5rem;
}
.mm-pager {
  border-top: none;
}