/* ==========================================================================
   Bastide 1820 — Pages simples
   Pages légales + FAQ
   ========================================================================== */

/* --------------------------------------------------------------------------
   Nettoyage GeneratePress uniquement sur les pages simples
   -------------------------------------------------------------------------- */

.b1820-page-simple .site,
.b1820-page-simple .site-content,
.b1820-page-simple .content-area,
.b1820-page-simple .site-main,
.b1820-page-simple .inside-article,
.b1820-page-simple .entry-content,
.b1820-page-simple .wp-block-html {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.b1820-page-simple .entry-header,
.b1820-page-simple .entry-title,
.b1820-page-simple .comments-area {
  display: none !important;
}

.b1820-page-simple {
  background: var(--b1820-cream, #f3eee4);
}

/* --------------------------------------------------------------------------
   Contenu des pages simples
   -------------------------------------------------------------------------- */

.b1820-simple-page,
.b1820-legal-page {
  width: min(880px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 74px 0 52px;
  color: var(--b1820-green, #183226);
  font-family: var(--b1820-sans, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif);
}

.b1820-simple-kicker,
.b1820-legal-kicker {
  margin: 0 0 18px !important;
  color: var(--b1820-clay, #ad6b46);
  font-family: var(--b1820-sans, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif) !important;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.b1820-simple-page h1,
.b1820-simple-page h2,
.b1820-simple-page h3,
.b1820-legal-page h1,
.b1820-legal-page h2,
.b1820-legal-page h3 {
  color: var(--b1820-green, #183226);
}

.b1820-simple-page h1,
.b1820-legal-page h1 {
  max-width: 760px;
  margin: 0 0 28px;
  font-family: var(--b1820-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .95;
}

.b1820-simple-page h2,
.b1820-legal-page h2 {
  margin: 34px 0 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(24, 50, 38, .16);
  font-family: var(--b1820-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.b1820-simple-page h3,
.b1820-legal-page h3 {
  margin: 24px 0 10px;
  font-family: var(--b1820-sans, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.b1820-simple-page p,
.b1820-simple-page li,
.b1820-legal-page p,
.b1820-legal-page li {
  font-family: var(--b1820-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif);
  font-size: 17px;
  line-height: 1.72;
}

.b1820-simple-page p,
.b1820-legal-page p {
  margin: 0 0 16px;
}

.b1820-simple-page ul,
.b1820-simple-page ol,
.b1820-legal-page ul,
.b1820-legal-page ol {
  margin: 0 0 22px;
  padding-left: 22px;
}

.b1820-simple-page li,
.b1820-legal-page li {
  margin: 0 0 7px;
}

.b1820-simple-page strong,
.b1820-legal-page strong {
  font-weight: 700;
}

.b1820-simple-page a,
.b1820-legal-page a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.b1820-simple-page a:hover,
.b1820-legal-page a:hover {
  color: var(--b1820-clay, #ad6b46);
}

/* --------------------------------------------------------------------------
   Nettoyage résidus GeneratePress / blocs fantômes autour du footer
   -------------------------------------------------------------------------- */

.b1820-page-simple .entry-content::before,
.b1820-page-simple .entry-content::after {
  display: none !important;
  content: none !important;
}

.b1820-page-simple .site-footer:not(.b1820-site-footer),
.b1820-page-simple .site-info,
.b1820-page-simple .footer-widgets,
.b1820-page-simple .footer-bar {
  display: none !important;
}

.b1820-page-simple .site,
.b1820-page-simple .site-content,
.b1820-page-simple .content-area,
.b1820-page-simple .site-main,
.b1820-page-simple .inside-article,
.b1820-page-simple .entry-content {
  background: var(--b1820-cream, #f3eee4) !important;
}

.b1820-page-simple .b1820-site-footer {
  position: relative;
  z-index: 5;
  display: block !important;
  margin-top: 0 !important;
  background: #10271c !important;
}

/* Bloc pour hero avant galerie page d'accueil */
/* 

.b1820-gallery-hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--b1820-page-padding) 72px;
  color: var(--b1820-cream);
  overflow: hidden;
}

.b1820-gallery-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 420px;
}

.b1820-gallery-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(12, 29, 20, 0.18) 0%,
    rgba(12, 29, 20, 0.42) 52%,
    rgba(12, 29, 20, 0.66) 100%
  );
  pointer-events: none;
}


.b1820-gallery-hero .b1820-gallery-heading {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.b1820-gallery-hero .b1820-gallery-heading > div {
  max-width: 58vw;
}

.b1820-gallery-hero .b1820-eyebrow,
.b1820-gallery-hero h2 {
  color: currentColor;
}

.b1820-gallery-hero h2 {
  margin: 0;
}

.b1820-gallery-hero h2 em {
  color: var(--b1820-clay);
}

.b1820-gallery-hero .b1820-gallery-heading > p {
  max-width: 520px;
  margin: 0;
  color: rgba(251, 248, 242, 0.88);
} */
/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .b1820-simple-page,
  .b1820-legal-page {
    width: min(760px, calc(100vw - 44px));
    padding: 62px 0 42px;
  }
}

@media (max-width: 640px) {
  .b1820-simple-page,
  .b1820-legal-page {
    width: calc(100vw - 40px);
    padding: 100px 0 38px;
  }

  .b1820-simple-page h1,
  .b1820-legal-page h1 {
    margin-bottom: 24px;
    font-size: 40px;
  }

  .b1820-simple-page h2,
  .b1820-legal-page h2 {
    margin-top: 30px;
    padding-top: 20px;
    font-size: 28px;
  }

  .b1820-simple-page h3,
  .b1820-legal-page h3 {
    margin-top: 20px;
    font-size: 10px;
  }

  .b1820-simple-page p,
  .b1820-simple-page li,
  .b1820-legal-page p,
  .b1820-legal-page li {
    font-size: 16px;
    line-height: 1.68;
  }
}
/* Bloc pour hero avant galerie page d'accueil */

@media (max-width: 768px) {
  .b1820-gallery-hero {
    min-height: 68vh;
    padding-bottom: 46px;
  }

  .b1820-gallery-hero .b1820-gallery-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}