/* Images centrées et responsives */
img {
    display: block;
    margin: 1.2rem auto;
    max-width: 100%;
    height: auto;
}

/* Option : encadrer légèrement les images */
img {
    border-radius: 4px;
}

/* Option : espacer le texte autour */
p img {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* =======================
   Mise en page plus large
   ======================= */
main#body-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 1.5rem;
}

/* =======================
   Suppression de la sidebar
   ======================= */

/* 1) Cache la colonne droite */
.sidebar {
  display: none !important;
}

/* 2) Force la colonne contenu à prendre toute la place */
.content,
.content-wrapper,
.columns,
.column,
.main-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

/* =======================
   Fond léger
   ======================= */
body {
    background: #f8f8f8;
}



/* =======================
   Bandeau page (header)
   ======================= */
.page-header {
    padding: 2rem;
    background: #4169e1;
    color: white;
    text-align: center;
    border-radius: 0 0 10px 10px;
}

.page-header h1 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: bold;
}

/* ======================
   HEADER AVEC IMAGE
   ====================== */
.header-fixed #body-wrapper {
  padding-top: 0rem;
}



.page-hero {
    display: none;
 }   

.top-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 350px;          /* tu peux monter à 320–350 si tu veux plus haut */
    display: flex;
    align-items: flex-end;
    color: #f5f5f5;
    background-size: cover;
    background-position: center 20%;
    background-size: 100% auto; 
}


.page-ancetres .top-banner {
  background-position: center 1%;
}


@media (max-width: 768px) {
    .top-banner {
        min-height: 220px;
    }
}


.top-banner__inner {
    padding: 3rem 1rem;
}

.top-banner__title {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.45);
    font-weight: bolder;
}

.top-banner__subtitle {
    margin: 0.3rem 0 0;
    font-size: 1rem;
    max-width: 50rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

/* Option : fond de page légèrement teinté */
body {
    background-color: #e8e9f3;   bleu-gris clair, ajuste si tu veux */
}
}

/* Centrer la zone de contenu et limiter la largeur */
.container {
    max-width: 960px;

}
/* Barre de navigation */
#header {
    background-color: #2f3e63; /* bleu-gris profond */
}

/* Liens du menu */
#header a {
    color: #e6ebf7;
    background: rgba(47, 62, 99, 0.85);
    backdrop-filter: blur(6px);
    background-color: rgba(48, 62, 95, 0.95); /* bleu-gris profond */
}

}

/* Lien actif */
#header a.active {
    color: #b8c7ff;
    font-weight: 600;
}

/* Hover */
#header a:hover {
    color: #ffffff;
}

#header .dropdown-menu {
  /*  background-color: #44547a;*/
    background-color: 2f3e63;
}


/* Titre principal du bandeau */
.top-banner__title {
    color: #eef1f8;               /* blanc bleuté très clair */
    font-weight: 600;
    letter-spacing: 0.04em;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.35),
        0 0 1px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.06em;
}

/* Sous-titre */
.top-banner__subtitle {
    color: #cfd8ee;
    font-weight: 400;
}



/* ===== MENU PRINCIPAL ===== */


#header,
.navbar {
 
  height: 90px;
}

.navbar a,
.navbar span {
  color: #F5F7FA;
  font-weight: 500;
}

.navbar a:hover,
.navbar li.active > a {
  color: #AFC6D1;
}

.navbar {
  /* background-color: #344564;  un poil plus sombre */
   background-color: #2f3e63;
}

.navbar a:hover {
  color: #BFD0E6;
}

.navbar .active > a {
  color: #FFFFFF;
  border-bottom: 2px solid #8FA6C8;
}


/* ===== BANDEAU ===== */

.top-banner {
  background-color: #3F4E6A; /* fallback */
}

.top-banner__title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  padding-left: clamp(36px, 4vw, 56px);
}


.top-banner__subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #DCE3F0;
}

.top-banner::after {
  content: "";
  position: absolute;
  inset: 0;
}


.top-banner__crest {
  position: absolute;
  left: clamp(-5px, -1.2vw, -8px);   /* il “coiffe” mieux le P */
  top: -0.4em;                        /* aligné optiquement avec la capitale */
  width: clamp(34px, 4vw, 54px);
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}


.top-banner__title-text{
  display: inline-block;
  position: relative;
  top: 0.05em;
}


/* ===== TITRES ===== */

h1, h2, h3, h4 {
  color: #3F4E6A;
}

h2 {
  border-left: 4px solid #AFC6D1;
  padding-left: 0.6rem;
  margin-top: 2rem;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

h2::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.2em;
  width: 4px;
  height: 1.2em;
 /* background-color: #7A93B5; /* bleu clair dérivé du bandeau */
  border-radius: 2px;
}


/* ===== LIENS ===== */

a {
  color: #4F6F96;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: #2F4A6D;
}


/* ===== TYPO ===== */

/* ===============================
   TYPOGRAPHIE
   =============================== */

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
 /* color: #2C2F36;*/
 color: #1d2027;
}

/* Titres */
h1, h2, h3, h4, h5 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: #3E5173; /* bleu ardoise, harmonisé bandeau */
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.25;
}

/* Menu */
.navbar a,
.navbar span {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Liens dans le contenu */
a {
  color: #496A8F;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #2F4A6D;
}


img {
  border-radius: 6px;
}

img[src*="banner"],
img[src*="tags"] {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

p {
  max-width: 90ch;
}


/* Logo */
.site-logo {
  height: 30px;
  width: auto;
  vertical-align: middle;
  margin-right: 12px;
  stroke-width: 7;
}


/* =========================
Pages filles
========================= */

.children-pages {
  margin-top: 3rem;
  padding: 2rem;
  background: #ffffff;
  border-left: 4px solid #9fbfc6;
  border-radius: 6px;
}

.children-pages h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.children-pages ul {
  list-style: none;
  padding-left: 0;
}

.children-pages li {
  margin: 0.5rem 0;
}

.children-pages a {
  text-decoration: none;
  font-weight: 500;
}


/* =========================
Pages de section
========================= */

.siblings-pages {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #f5f7fa;
  border-radius: 6px;
}

.siblings-pages h3 {
  font-size: 1.3rem;
  opacity: 0.85;
}

.siblings-pages ul {
  list-style: none;
  padding-left: 0;
}

.siblings-pages li {
  margin: 0.4rem 0;
}

.siblings-pages li.is-active a {
  font-weight: bold;
  text-decoration: underline;
}

.siblings-pages a {
  text-decoration: none;
  opacity: 0.9;
}

/* =========================
   Galerie
========================= */

.gallery-section{ margin: 40px 0; }
.gallery-section__title{ margin: 0 0 16px; }

.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
  align-items:start;
}

.gallery__card{
  margin:0;
  display:flex;
  flex-direction:column;
}

.gallery__media{
  height: 600px;          /* au lieu de 220 : moins de coupe */
  border-radius:16px;
  overflow:hidden;
  background: rgb(252, 250, 250);
  display: flex;
  align-items: center;      /* centrage vertical */
  justify-content: center;  /* centrage horizontal */
} 


.gallery__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  margin:0 !important; /* au cas où ton thème met des marges sur img */
}

/* Mode panorama: on ne coupe pas */
.gallery__card.is-pano .gallery__media img{
    width:100%;
  height:100%;
  object-fit: contain;
}

.gallery__item{
  margin:0;
}

.gallery__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.gallery__caption{
  margin-top:12px;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp: 2; /* 2 lignes max => alignement propre */
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.gallery__item img{
  width:100%;
  height:auto;
  display:block;
  border-radius:10px;
}

@media (min-width: 900px){
  .gallery__card.is-pano{
    grid-column: span 2;
  }
}





/* LIGHTBOX - RESET TOTAL */
/* =========================
   LIGHTBOX – RESET TOTAL
   ========================= */


#lightbox.lb{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  z-index: 99999;
}

#lightbox.lb.is-open{
  display: block;
}

/* zone scrollable */
/* Lightbox: autoriser le scroll + image en taille réelle si besoin */
#lightbox .lb__viewport{
  position: absolute;
  inset: 20px;
  overflow: auto !important;
  display: block;    /* <-- pas flex, sinon ça “centre” et ça peut être relou */
}


/* image réelle */
#lightbox .lb__img{
  max-width: none;     /* <-- clé : autorise le dépassement */
  max-height: none;    /* <-- clé : autorise le dépassement */
  width: auto;
  height: auto;
  display: block;
}


/* boutons */
#lightbox .lb__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: 0;
  color: #fff;
  font-size: 40px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  cursor: pointer;
}

#lightbox .lb__prev{ left: 14px; }
#lightbox .lb__next{ right: 14px; }
#lightbox .lb__close{
  top: 18px;
  right: 18px;
  transform: none;
  font-size: 36px;
}

.lb__fs{
  position: absolute;
  top: 18px;
  left: 18px;
  border: 0;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}


#lightbox .lb__viewport{ z-index: 1; }
#lightbox .lb__btn{ z-index: 2; }  /* <-- rend le close cliquable */



/* =========================
   FOOTER
========================= */

.site-footer {
  background: #2f3f5f; /* même famille que le menu */
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}

.footer-col h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
}


.footer-tagline {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  opacity: 0.85;
  margin-top: -1.4rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.footer-links a:hover {
  color: #7aa7ff; /* même bleu que les liens */
}

.footer-meta p {
  margin-bottom: 0.5rem;
}

.footer-small {
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;   /* ← important */
  text-align: center;
}


.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;          /* évite la baseline fantôme */
  margin-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-logo svg,
.footer-logo img {
  width: 72px;        /* ← valeur clé */
  height: auto;
  display: block;          /* supprime les décalages inline */
}

.footer-links,
.footer-meta {
  font-size: 0.85rem;
  line-height: 1.35;
}

.footer-inner {
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 3rem;
}

.footer-links a {
  white-space: nowrap;
}
.footer-meta p {
  max-width: 32ch; /* limite la largeur “typographique” */
}


/* Responsive */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.children-links {
  margin-top: 20px;
  padding: 10px;
  background-color: #f4f4f4;
  border-radius: 5px;
}

.children-links ul {
  list-style-type: none;
  padding-left: 0;
}

.children-links li {
  margin-bottom: 10px;
}

.children-links a {
  color: #333;
  text-decoration: none;
}

.children-links a:hover {
  text-decoration: underline;
}

/* Plan du site  */
.sitemap-icon {
    margin-right: 0.35rem;
}
.sitemap-level-1 > .sitemap-item {
    margin-bottom: 0.2rem;
}
.sitemap-level-2,
.sitemap-level-3 {
    margin-left: 1.2rem;
    font-size: 0.95em;
}



/* Anti-header-shrink (Quark) */
#header.scrolled,
.header.scrolled,
body.header-fixed #header,
body.header-fixed .header,
#header.fixed,
.header.fixed {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 80px !important; /* ajuste à ton header “normal” */
  height: auto !important;
}

/* Garde la navbar à la même hauteur */
#header.scrolled .navbar,
.header.scrolled .navbar,
#header.fixed .navbar,
.header.fixed .navbar {
  height: 80px !important;     /* même valeur */
}

/* Empêche le logo de rapetisser */
#header.scrolled .logo,
.header.scrolled .logo,
#header.scrolled .logo svg,
.header.scrolled .logo svg {
  transform: none !important;
  height: auto !important;
}




#lightbox .lb__img{
  margin: 0 !important;
  max-width: none !important;
  max-height: none !important;
}

#lightbox .lb__viewport{
  cursor: zoom-in;
  overflow: auto !important;
}

#lightbox.is-zoomed .lb__viewport{
  cursor: zoom-out;
}

/* Bouton plein écran – visible et cliquable */
#lightbox .lb__fs{
  z-index: 3;        /* au-dessus de tout */
}
