/* MPB – Soin energetique – version 2.2.0 TEST
   Scopé aux seules pages portant le modele « MPB — Soin énergétique ».
   Ne pas toucher à Accueil, Tarifs, Divi et Potion Digitale.
   Les images manquantes sont sélectionnées dans le Personnalisateur > 01 Photos originales.
*/
html body.mpb-site main.soin-page {
  color: #0c1127;
}
html body.mpb-site main.soin-page .recognize-section,
html body.mpb-site main.soin-page .soin-process {
  width: min(calc(100% - 64px), 1260px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
html body.mpb-site main.soin-page .recognize-section {
  padding: 23px 0 0 !important;
}
html body.mpb-site main.soin-page .recognize-section .eyebrow {
  font: 700 13px/1.3 "DM Sans",Arial,sans-serif !important;
  letter-spacing: .14em !important;
  color: #00a1c0 !important;
  margin: 0 !important;
}
html body.mpb-site main.soin-page .recognize-section .small-underline {
  margin: 10px auto 12px !important;
  height: 2px !important;
  width: 52px !important;
}
html body.mpb-site main.soin-page .recognize-section h1 {
  font: 500 clamp(30px,2.5vw,42px)/1.18 "Playfair Display", Georgia, serif !important;
  letter-spacing: -.035em !important;
  color: #0c1127 !important;
  margin: 10px 0 18px !important;
}
html body.mpb-site main.soin-page .recognize-grid {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 0 !important;
  margin: 0 auto 8px !important;
}
html body.mpb-site main.soin-page .recognize-item {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 18px 10px !important;
}
html body.mpb-site main.soin-page .recognize-item + .recognize-item::before {
  top: 42px !important;
  height: 74px !important;
}
html body.mpb-site main.soin-page .recognize-icon {
  display: grid !important;
  place-items: center !important;
  width: 58px !important;
  height: 58px !important;
  margin: 0 auto 12px !important;
  border-radius: 50% !important;
  font: 400 38px/1 Georgia,serif !important;
  background: #f8ebda !important;
  color: #00899e !important;
}
html body.mpb-site main.soin-page .recognize-item p {
  font: 600 clamp(15px,1.15vw,19px)/1.32 "DM Sans",Arial,sans-serif !important;
  color: #1c3566 !important;
  margin: 0 !important;
}
html body.mpb-site main.soin-page .soin-process {
  padding: 0 0 4px !important;
}
html body.mpb-site main.soin-page .soin-process > h2 {
  font: 500 clamp(30px,2.7vw,43px)/1.22 "Playfair Display",Georgia,serif !important;
  letter-spacing: -.035em !important;
  color: #00899e !important;
  margin: 3px 0 0 !important;
}
html body.mpb-site main.soin-page .soin-process > .small-underline {
  width: 53px !important;
  margin: 10px auto 13px !important;
  background: #907e68 !important;
}
html body.mpb-site main.soin-page .process-grid {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 18px !important;
  margin: 0 auto 8px !important;
}
html body.mpb-site main.soin-page .process-card {
  min-width: 0 !important;
  padding: 0 8px !important;
}
html body.mpb-site main.soin-page .process-card + .process-card::before {
  left: -9px !important;
  top: 42px !important;
  bottom: 5px !important;
}
html body.mpb-site main.soin-page .step-no {
  font: 500 34px/1.08 "Playfair Display",Georgia,serif !important;
  color: #00899e !important;
  margin: 0 0 8px !important;
}
html body.mpb-site main.soin-page .process-card h3 {
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font: 500 clamp(19px,1.6vw,25px)/1.22 "Playfair Display",Georgia,serif !important;
  letter-spacing: -.02em !important;
  color: #0c1127 !important;
  margin: 0 0 8px !important;
}
html body.mpb-site main.soin-page .ratio-media {
  height: 170px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}
html body.mpb-site main.soin-page .ratio-media .cover-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
html body.mpb-site main.soin-page .soin-bottom.cta-block {
  width: min(calc(100% - 40px), 1120px) !important;
  margin: 0 auto !important;
  padding: 12px 12px 22px !important;
  text-align: center !important;
}
html body.mpb-site main.soin-page .soin-bottom.cta-block > p {
  font: 500 clamp(23px,1.85vw,28px)/1.22 "Playfair Display",Georgia,serif !important;
  color: #00899e !important;
  margin: 0 auto 12px !important;
}
html body.mpb-site main.soin-page .soin-bottom.cta-block > h2 {
  font: 500 clamp(16px,1.1vw,18px)/1.45 "DM Sans",Arial,sans-serif !important;
  letter-spacing: 0 !important;
  color: #0c1127 !important;
  max-width: 900px !important;
  margin: 0 auto 16px !important;
}
html body.mpb-site main.soin-page .soin-bottom.cta-block .btn-primary {
  min-width: 260px !important;
  min-height: 45px !important;
  padding: 10px 27px !important;
  color: #fff !important;
  font: 700 14px/1.3 "DM Sans",Arial,sans-serif !important;
}
/* Evite de sortir des colonnes sur les petits écrans. */
@media(max-width: 1000px) {
  html body.mpb-site main.soin-page .recognize-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; row-gap:22px !important; }
  html body.mpb-site main.soin-page .recognize-item:nth-child(3)::before {display:none !important;}
  html body.mpb-site main.soin-page .process-grid {gap:14px !important;}
  html body.mpb-site main.soin-page .process-card h3 {font-size:19px !important;}
  html body.mpb-site main.soin-page .ratio-media {height:170px !important;}
}
@media(max-width: 680px) {
  html body.mpb-site main.soin-page .recognize-section,
  html body.mpb-site main.soin-page .soin-process {width:calc(100% - 32px) !important;}
  html body.mpb-site main.soin-page .recognize-section {padding-top:27px !important;}
  html body.mpb-site main.soin-page .recognize-section h1 {font-size:30px !important; margin:10px 0 22px !important;}
  html body.mpb-site main.soin-page .recognize-item {padding:0 9px 10px !important;}
  html body.mpb-site main.soin-page .recognize-icon {width:51px !important;height:51px !important;font-size:32px !important;}
  html body.mpb-site main.soin-page .recognize-item p {font-size:14px !important;}
  html body.mpb-site main.soin-page .soin-process > h2 {font-size:29px !important;}
  html body.mpb-site main.soin-page .process-grid {grid-template-columns:1fr !important;gap:23px !important;}
  html body.mpb-site main.soin-page .process-card {padding:0 !important;}
  html body.mpb-site main.soin-page .process-card + .process-card::before {display:none !important;}
  html body.mpb-site main.soin-page .process-card h3 {font-size:24px !important;min-height:0 !important;}
  html body.mpb-site main.soin-page .ratio-media {height:205px !important;max-width:500px;margin:auto;}
  html body.mpb-site main.soin-page .soin-bottom.cta-block {padding-bottom:26px !important;}
  html body.mpb-site main.soin-page .soin-bottom.cta-block > p {font-size:24px !important;}
  html body.mpb-site main.soin-page .soin-bottom.cta-block > h2 {font-size:16px !important;line-height:1.5 !important;}
  html body.mpb-site main.soin-page .soin-bottom.cta-block .btn-primary {min-width: min(100%,300px) !important;}
}

/* Photo framing: individual vertical focus, images remain in the original 170px-high cards.
   Defaults can be adjusted in Customizer > 02 Cadrages, without reinstalling the plugin. */
html body.mpb-site main.soin-page .process-card:nth-child(1) .ratio-media > img.cover-img {
  object-position: 50% 36% !important; /* overview rather than close-up */
}
html body.mpb-site main.soin-page .process-card:nth-child(2) .ratio-media > img.cover-img {
  object-position: 50% 22% !important; /* attempt to include Audrey and treatment */
}
html body.mpb-site main.soin-page .process-card:nth-child(3) .ratio-media > img.cover-img {
  object-position: 50% 16% !important; /* attempt to include Audrey leaning over table */
}

/* v1.7.0 — desktop-only: small photographic thumbnails close to the supplied reference,
   and a more compact page to bring the footer higher. The HTML and the selected media
   stay unchanged. If the chosen image does not show the person/pose needed, select a
   different original in Apparence > Personnaliser > 01 Photos originales. */
@media (min-width: 901px) {
  html body.mpb-site main.soin-page .recognize-section { padding-top: 13px !important; }
  html body.mpb-site main.soin-page .recognize-section h1 { margin: 7px 0 11px !important; }
  html body.mpb-site main.soin-page .recognize-icon { width: 52px !important; height: 52px !important; font-size: 34px !important; margin-bottom: 7px !important; }
  html body.mpb-site main.soin-page .recognize-item { padding-bottom: 5px !important; }
  html body.mpb-site main.soin-page .recognize-grid { margin-bottom: 3px !important; }
  html body.mpb-site main.soin-page .soin-process > .small-underline { margin: 6px auto 8px !important; }
  html body.mpb-site main.soin-page .process-grid { margin-bottom: 3px !important; gap: 16px !important; }
  html body.mpb-site main.soin-page .step-no { font-size: 30px !important; margin-bottom: 4px !important; }
  html body.mpb-site main.soin-page .process-card h3 { min-height: 37px !important; margin-bottom: 6px !important; }
  /* Image width/height close to the original portrait previews (no wide strips). */
  html body.mpb-site main.soin-page .process-card .ratio-media {
    width: min(100%, 186px) !important;
    height: 160px !important;
    margin: 0 auto !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #f4ebe0 !important;
  }
  html body.mpb-site main.soin-page .process-card .ratio-media > img.cover-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
  }
  html body.mpb-site main.soin-page .soin-bottom.cta-block { padding-top: 7px !important; padding-bottom: 11px !important; }
  html body.mpb-site main.soin-page .soin-bottom.cta-block > p { margin-bottom: 6px !important; }
  html body.mpb-site main.soin-page .soin-bottom.cta-block > h2 { margin-bottom: 9px !important; }
}
/* Tablet: preserve legibility, use near-square previews but no extreme crop. */
@media (min-width: 681px) and (max-width: 900px) {
  html body.mpb-site main.soin-page .process-card .ratio-media { width: min(100%, 178px) !important; height: 155px !important; margin: 0 auto !important; }
  html body.mpb-site main.soin-page .soin-bottom.cta-block { padding-bottom: 14px !important; }
}

/* v1.8: proportions, typography and photos ONLY on the Soin page.
   Use the exact heading font family and visual weight of the brand in the global header. */
html body.mpb-site main.soin-page .recognize-section h1,
html body.mpb-site main.soin-page .soin-process > h2 {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(25px, 2.05vw, 31px) !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.18 !important;
  letter-spacing: -0.035em !important;
  text-transform: none !important;
}
html body.mpb-site main.soin-page .recognize-section h1 { color: #0c1127 !important; }
html body.mpb-site main.soin-page .soin-process > h2 { color: #00899e !important; }
/* Make sure the title remains readable at narrow viewports. */
@media (max-width: 680px) {
  html body.mpb-site main.soin-page .recognize-section h1,
  html body.mpb-site main.soin-page .soin-process > h2 {
    font-size: clamp(24px, 6vw, 30px) !important;
  }
}
@media (min-width: 901px) {
  /* Card 01: move the subject down within the visible image: show more of its top. */
  html body.mpb-site main.soin-page .process-card:nth-child(1) .ratio-media > img.cover-img {
    object-position: 50% 3% !important;
  }
  /* Card 02 is approved and deliberately remains unchanged. */
  /* Card 03: a slightly taller/wider frame; show the whole photograph including the patient. */
  html body.mpb-site main.soin-page .process-card:nth-child(3) .ratio-media {
    width: min(100%, 228px) !important;
    height: 194px !important;
  }
  html body.mpb-site main.soin-page .process-card:nth-child(3) .ratio-media > img.cover-img {
    object-fit: contain !important;
    object-position: center center !important;
  }
  /* Extra image height pushes the footer down slightly, without changing its markup. */
  html body.mpb-site main.soin-page .soin-bottom.cta-block { padding-bottom: 17px !important; }
}

/* MPB Soin 1.9: harmonious photo ROW + intentional break between questions and process.
   Desktop-only, on Soin template. DO NOT apply to Accueil, Tarifs or Potion Digitale.
   Equal outer frames; image 03 uses contain to preserve the patient and Audrey. */
@media (min-width: 901px) {
  /* Separate the four questions from the following main heading, rather than
     pushing the footer itself (a global footer rule would damage other pages). */
  html body.mpb-site main.soin-page .recognize-grid {
    margin-bottom: 42px !important;
  }
  /* All three frames have IDENTICAL top, width and height. The longest one
     previously determined the row height and misaligned the photo bottoms. */
  html body.mpb-site main.soin-page .process-card .ratio-media,
  html body.mpb-site main.soin-page .process-card:nth-child(3) .ratio-media {
    box-sizing: border-box !important;
    width: min(100%, 186px) !important;
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background-color: #f4ebe0 !important;
  }
  html body.mpb-site main.soin-page .process-card .ratio-media > img.cover-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }
  /* 01 and 02 retain their approved cropping. */
  html body.mpb-site main.soin-page .process-card:nth-child(1) .ratio-media > img.cover-img,
  html body.mpb-site main.soin-page .process-card:nth-child(2) .ratio-media > img.cover-img {
    object-fit: cover !important;
  }
  /* 03 must include Audrey AND the patient: no vertical crop.
     Side margins inside the frame may appear if the original is portrait. */
  html body.mpb-site main.soin-page .process-card:nth-child(3) .ratio-media > img.cover-img {
    object-fit: contain !important;
    object-position: 50% 50% !important;
  }
  /* The saved footer stays unchanged; slight extra padding below the CTA
     places it lower after restoring the consistent photo height. */
  html body.mpb-site main.soin-page .soin-bottom.cta-block {
    padding-bottom: 31px !important;
  }
}

/* MPB Soin 2.0 — give the last heading breathing room below the photo row.
   No changes to image crops, sizes, header, footer, or other page templates. */
@media (min-width: 901px) {
  html body.mpb-site main.soin-page section.soin-bottom.cta-block {
    margin-top: 30px !important;
  }
}
@media (min-width: 681px) and (max-width: 900px) {
  html body.mpb-site main.soin-page section.soin-bottom.cta-block {
    margin-top: 24px !important;
  }
}
@media (max-width: 680px) {
  html body.mpb-site main.soin-page section.soin-bottom.cta-block {
    margin-top: 20px !important;
  }
}

/* MPB Soin v2.2: equal image fill and modestly higher footer.
   Avoid custom CSS overrides on other pages. */
@media (min-width: 901px) {
  /* Same photo frame as the first two steps; fill it rather than letterboxing. */
  html body.mpb-site main.soin-page .process-card:nth-child(3) .ratio-media > img.cover-img {
    object-fit: cover !important;
  }
  /* Keep a visible breathing space above the question, but move the CTA/footer up. */
  html body.mpb-site main.soin-page section.soin-bottom.cta-block {
    margin-top: 18px !important;
    padding-bottom: 19px !important;
  }
}
