/**
 * Qui sommes-nous / About us — design only (contenu éditorial inchangé)
 * Scope : #blogpage.about-page
 * 2026-11-04 — hero full-bleed aligné sur bandeau b14 (500px, comme Découvrir les Miaos)
 */

/* ---- Layout page ---- */
#blogpage.about-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

#blogpage.about-page .blog-meta:empty {
  display: none;
}

#blogpage.about-page .blog-description > p {
  margin: 0;
}

#blogpage.about-page .blog-description .ApRow {
  margin-left: -10px;
  margin-right: -10px;
}

#blogpage.about-page .blog-description .ApRow > [class*="col-"] {
  padding-left: 20px;
  padding-right: 20px;
}

/* ---- Hero full-bleed — même hauteur que Découvrir les Miaos (ApRow min-height 500px) ---- */
#blogpage.about-page #lazyload.ApRow.has-bg {
  position: relative;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  margin-bottom: 56px !important;
  height: 500px !important;
  min-height: 500px !important;
  max-height: 500px;
}

#blogpage.about-page #lazyload.ApRow.has-bg::before {
  background-size: cover !important;
  background-position: 50% 38% !important;
  background-repeat: no-repeat !important;
  z-index: 0;
}

/* Overlay lisibilité titre — même trick fullwidth que le thème Ap */
#blogpage.about-page #lazyload.ApRow.has-bg::after {
  content: "" !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  padding: 0 1000px;
  margin-left: -1000px;
  box-sizing: content-box;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.28) 38%,
    rgba(0, 0, 0, 0.08) 70%,
    rgba(0, 0, 0, 0.02) 100%
  );
}

/* Image Ap cachée (doublon du fond hero) — neutraliser le lazyload JS */
#blogpage.about-page #lazyload .ApImage.hidden {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#blogpage.about-page #lazyload .ApColumn {
  position: relative;
  z-index: 2;
  width: 100%;
}

#blogpage.about-page .title-whoweare {
  margin: 0 auto clamp(28px, 5vh, 56px) !important;
  padding: 0 20px;
  color: #fff !important;
  font-size: clamp(30px, 5.2vw, 52px) !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1 !important;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

/* ---- Histoire : image + texte ---- */
#blogpage.about-page .blog-description .ApRow .ApColumn.resize-text-shortcode {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

#blogpage.about-page .blog-description .ApImage:not(.imgs-whoarewe) {
  margin-bottom: 12px;
}

#blogpage.about-page .blog-description .ApImage:not(.imgs-whoarewe) .img-fluid {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  display: block;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

#blogpage.about-page .resize-text-shortcode h2 {
  margin: 0 0 18px !important;
  padding: 0;
  text-align: left !important;
  font-size: clamp(24px, 2.5vw, 30px) !important;
  font-weight: 700;
  line-height: 1.2 !important;
  color: #1a1a1a;
  letter-spacing: 0;
}

#blogpage.about-page .resize-text-shortcode h3 {
  margin: 32px 0 14px !important;
  padding: 0;
  text-align: left !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.35 !important;
  letter-spacing: 0.1em;
  color: #c45c4a;
  text-transform: uppercase;
}

#blogpage.about-page .resize-text-shortcode p {
  margin: 0 0 20px !important;
  padding: 0;
  text-align: left !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #333;
  max-width: 36em;
}

#blogpage.about-page .resize-text-shortcode p + p {
  margin-top: 0 !important;
}

/* ---- Valeurs ---- */
#blogpage.about-page .title-middle-whoarewe {
  margin: 64px 0 36px !important;
  padding: 0 12px;
  font-size: clamp(20px, 2.6vw, 26px) !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-align: center;
}

#blogpage.about-page .imgs-whoarewe {
  margin-bottom: 12px;
}

#blogpage.about-page .imgs-whoarewe .img-fluid {
  max-width: 132px !important;
  width: 132px !important;
  height: auto !important;
  margin: 0 auto;
  display: block;
}

#blogpage.about-page .block.block-whoarewe.ApHtml {
  margin: 0 8px 40px !important;
  text-align: center;
}

#blogpage.about-page .block-whoarewe h4 {
  margin: 0 0 12px !important;
  padding: 0 6px;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.35 !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1a1a1a;
}

#blogpage.about-page .block-whoarewe p {
  margin: 0 auto !important;
  padding: 0 4px;
  max-width: 26em;
  text-align: left !important; /* lisibilité : plus de centrage long */
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #4a4a4a;
}

/* Colonnes valeurs */
#blogpage.about-page .blog-description .ApRow .col-xl-4.resize-text-shortcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

/* ---- Bandeau citation ---- */
#blogpage.about-page .ApRow[data-bg_data*="#489fb3"],
#blogpage.about-page #form_6966662789687131 {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 32px !important;
  padding: 48px 24px !important;
}

#blogpage.about-page .footer-who-arewe {
  max-width: 680px;
  margin: 0 auto !important;
  padding: 0 !important;
  color: #fff !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(18px, 2.2vw, 22px) !important;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5 !important;
  text-align: center;
}

/* Panier flottant : redondant sur page informative */
body.page-blog:has(#blogpage.about-page) .leo-fly-cart {
  display: none !important;
}

@media (max-width: 991px) {
  #blogpage.about-page .resize-text-shortcode h2 {
    font-size: 22px !important;
    margin-top: 12px !important;
  }

  #blogpage.about-page .resize-text-shortcode p {
    max-width: none;
  }

  #blogpage.about-page .imgs-whoarewe .img-fluid {
    max-width: 112px !important;
    width: 112px !important;
  }

  #blogpage.about-page .block-whoarewe p {
    text-align: center !important; /* mobile : centrage OK */
  }
}

@media (max-width: 767px) {
  #blogpage.about-page {
    padding: 0 14px 40px;
  }

  #blogpage.about-page #lazyload.ApRow.has-bg {
    /* Même hauteur que b14 aussi en mobile (inline min-height 500px) */
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px;
    margin-bottom: 32px !important;
  }

  #blogpage.about-page .title-whoweare {
    margin-bottom: 28px !important;
    letter-spacing: 0.04em;
  }

  #blogpage.about-page .title-middle-whoarewe {
    margin: 40px 0 24px !important;
  }

  #blogpage.about-page .block.block-whoarewe.ApHtml {
    margin: 0 0 32px !important;
  }

  #blogpage.about-page .ApRow[data-bg_data*="#489fb3"],
  #blogpage.about-page #form_6966662789687131 {
    padding: 36px 18px !important;
  }
}
