/* Correctifs visuels de la passerelle MPB v0.2 - portée limitée aux modèles MPB.
   Le thème enfant Divi et les pages Elementor/Potion Digitale ne sont pas visés. */

/* Cohérence typographique : les styles Divi ne doivent pas prendre le dessus. */
body.mpb-site {
  --ink: #0c1127;
  --teal: #00899e;
  --teal-dark: #007788;
  --cyan: #00a1c0;
  font-family: "DM Sans", Arial, sans-serif !important;
  color: var(--ink) !important;
}
body.mpb-site :is(h1, h2, h3),
body.mpb-site .site-header .brand-words strong {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
  text-transform: none !important;
}
body.mpb-site :is(p, a, button, li, small, label) {
  font-family: "DM Sans", Arial, sans-serif;
}

/* En-tête identique à l'esprit de la maquette (bleu marine, non turquoise). */
body.mpb-site .site-header { background: #ffffff !important; }
body.mpb-site .site-header .header-wide {
  max-width: 1500px !important;
  min-height: 92px;
  padding: 8px clamp(18px, 2.5vw, 32px);
}
body.mpb-site .site-header .brand-words strong {
  color: #0c1127 !important;
  font-size: clamp(23px, 1.85vw, 30px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em;
}
body.mpb-site .site-header .brand-words small {
  color: #6679ab !important;
  font-size: 11px !important;
  letter-spacing: .06em !important;
  line-height: 1.5 !important;
}
body.mpb-site .site-header .brand-picture { flex-basis: 72px; width: 72px; height: 72px; }
body.mpb-site .site-header .brand-logo { object-fit: contain; }
body.mpb-site .site-header .navigation-list > li > a {
  color: #0c1127 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}
body.mpb-site .site-header .navigation-list > li > a:hover,
body.mpb-site .site-header .navigation-list > li > a.is-current,
body.mpb-site .site-header .navigation-list > li > a[aria-current="page"] {
  color: #00899e !important;
}
body.mpb-site .site-header .nav-cta,
body.mpb-site .tarifs-copy .btn-primary { color: #fff !important; }

/* Hero Tarifs : image haute, cadrage configurable via le personnalisateur,
   dimensions de la maquette et deux lignes de description. */
@media (min-width: 1021px) {
  body.mpb-site .tarifs-page .tarifs-hero {
    display: grid;
    grid-template-columns: 68% 32%;
    min-height: 414px !important;
    height: auto;
    align-items: stretch;
  }
  body.mpb-site .tarifs-page .tarifs-copy {
    padding: 84px 26px 45px clamp(55px, 8.4vw, 149px) !important;
  }
  body.mpb-site .tarifs-page .tarifs-copy .eyebrow {
    font-size: 14px !important;
    color: #00a1c0 !important;
    letter-spacing: .16em;
  }
  body.mpb-site .tarifs-page .tarifs-copy h1 {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: clamp(30px, 2.15vw, 36px) !important;
    line-height: 1.18 !important;
    letter-spacing: -.035em !important;
    color: #0c1127 !important;
    margin: 22px 0 20px !important;
  }
  body.mpb-site .tarifs-page .tarifs-copy > p:not(.eyebrow) {
    font-family: "DM Sans", Arial, sans-serif !important;
    color: #0c1127 !important;
    font-size: clamp(17px, 1.14vw, 19px) !important;
    line-height: 1.55 !important;
    width: min(100%, 715px) !important;
    max-width: 715px !important;
    margin: 0 0 23px !important;
  }
  body.mpb-site .tarifs-page .tarifs-copy .btn-primary {
    min-width: 290px !important;
    min-height: 46px !important;
    font-size: 14px !important;
    padding: 10px 24px !important;
    margin-top: 2px !important;
  }
  body.mpb-site .tarifs-page .tarifs-photo {
    height: 414px !important;
    min-height: 414px !important;
    align-self: stretch;
  }
  body.mpb-site .tarifs-page .tarifs-photo .cover-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: inherit;
  }
}

/* Tarifs : proportions et typographie de trois cartes de la maquette. */
@media (min-width: 1021px) {
  body.mpb-site .tarifs-page .tarifs-grid {
    width: min(100% - 70px, 1280px) !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 18px !important;
    margin: 48px auto 12px !important;
  }
  body.mpb-site .tarifs-page .tarif-card {
    min-height: 217px !important;
    padding: 12px 20px 17px !important;
    border-radius: 16px;
  }
  body.mpb-site .tarifs-page .tarif-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 31px !important;
    margin: 0 auto 9px !important;
  }
  body.mpb-site .tarifs-page .tarif-card h2 {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: clamp(22px, 1.6vw, 28px) !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    margin: 0 !important;
  }
  body.mpb-site .tarifs-page .tarif-card .small-underline {
    width: 55px !important;
    margin: 8px auto 11px !important;
  }
  body.mpb-site .tarifs-page .tarif-card p {
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: #0c1127 !important;
    margin: 0 !important;
  }
  body.mpb-site .tarifs-page .tarif-card strong {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: clamp(40px, 3vw, 50px) !important;
    line-height: 1.05 !important;
    color: #00a1c0 !important;
  }
}

/* Footer : éviter la grande zone vide de la passerelle, rendre les liens foncés. */
body.mpb-site .site-footer {
  background: #fffaf4 !important;
  color: #172742 !important;
}
body.mpb-site .site-footer .footer-decoration {
  height: 22px !important;
  background-position: center bottom !important;
}
body.mpb-site .site-footer .footer-links-wrap {
  padding-top: 12px !important;
}
body.mpb-site .site-footer .footer-links,
body.mpb-site .site-footer .footer-links a,
body.mpb-site .site-footer .footer-follow-label,
body.mpb-site .site-footer .footer-credit {
  color: #172742 !important;
  font-size: 14px !important;
  opacity: 1 !important;
}
body.mpb-site .site-footer .footer-links .footer-instagram {
  color: #00899e !important;
}
body.mpb-site .site-footer .instagram-icon {
  color: #ea1014 !important;
}
body.mpb-site .site-footer .footer-links a:hover {
  color: #00899e !important;
}

/* Tablette/téléphone : l'empilement existant doit rester utilisable. */
@media (max-width: 1020px) {
  body.mpb-site .site-header .brand-picture { flex-basis: 54px; width:54px; height:54px; }
  body.mpb-site .site-header .brand-words strong {font-size: 22px !important;}
  body.mpb-site .site-header .navigation-list > li > a {font-size: 15px !important;}
  body.mpb-site .tarifs-page .tarifs-copy h1 {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: clamp(30px, 4vw, 42px) !important;
    line-height: 1.22 !important;
  }
  body.mpb-site .tarifs-page .tarifs-copy > p:not(.eyebrow) {
    font-size: 17px !important;
    line-height: 1.5 !important;
  }
  body.mpb-site .tarifs-page .tarif-card h2 {font-family: "Playfair Display", Georgia, serif !important;}
  body.mpb-site .site-footer .footer-decoration {height: 17px !important;}
}

/* v0.3 : lisibilité de la navigation et de la signature MPB, sans effet sur Divi/Potion Digitale. */
html body.mpb-site header.site-header .header-wide .brand .brand-words small {
  color: #394b73 !important;
  font-family: "DM Sans", Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  letter-spacing: .025em !important;
  opacity: 1 !important;
}
html body.mpb-site header.site-header nav.navigation .navigation-list > li > a {
  color: #0c1127 !important;
  font-family: "DM Sans", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
html body.mpb-site header.site-header nav.navigation .navigation-list > li > a:hover,
html body.mpb-site header.site-header nav.navigation .navigation-list > li.mpb-current-page > a,
html body.mpb-site header.site-header nav.navigation .navigation-list > li.current-menu-item > a,
html body.mpb-site header.site-header nav.navigation .navigation-list > li.current_page_item > a,
html body.mpb-site header.site-header nav.navigation .navigation-list > li > a.is-current,
html body.mpb-site header.site-header nav.navigation .navigation-list > li > a[aria-current="page"] {
  color: #00899e !important;
  font-weight: 700 !important;
}
/* Barre turquoise sous l'onglet de la page visitée, y compris en prévisualisation. */
html body.mpb-site header.site-header nav.navigation .navigation-list > li.mpb-current-page > a::after,
html body.mpb-site header.site-header nav.navigation .navigation-list > li.current-menu-item > a::after,
html body.mpb-site header.site-header nav.navigation .navigation-list > li.current_page_item > a::after,
html body.mpb-site header.site-header nav.navigation .navigation-list > li > a.is-current::after,
html body.mpb-site header.site-header nav.navigation .navigation-list > li > a[aria-current="page"]::after {
  width: 100% !important;
  height: 2px !important;
  background: #00899e !important;
}
@media (min-width: 1021px) and (max-width: 1279px) {
  html body.mpb-site header.site-header nav.navigation .navigation-list > li > a { font-size: 13.5px !important; }
}
@media (max-width: 760px) {
  html body.mpb-site header.site-header .header-wide .brand .brand-words small { font-size: 10.5px !important; }
}


/* v0.4 — Accueil compact sur ordinateur, sans zoom de navigateur. */
/* La page conserve le défilement naturel sur les petits écrans. */
@media (min-width: 1021px) {
  html body.mpb-site .home-view .home-hero-inner {
    height: clamp(278px, 35vh, 315px) !important;
    grid-template-columns: clamp(245px, 29vh, 300px) minmax(0, 1fr) !important;
    max-width: 1450px;
    margin-inline: auto;
  }
  html body.mpb-site .home-view .home-hero {
    height: auto !important;
    min-height: 0 !important;
  }
  html body.mpb-site .home-view .home-hero-inner .home-portrait {
    height: 100% !important;
    min-height: 0 !important;
  }
  html body.mpb-site .home-view .home-hero-inner .home-intro {
    padding: 8px clamp(12px, 2.5vw, 38px) !important;
  }
  html body.mpb-site .home-view .intro-centered {
    width: min(100%, 625px) !important;
  }
  html body.mpb-site .home-view .intro-centered .eyebrow {font-size: 12px !important; margin: 0 !important;}
  html body.mpb-site .home-view .intro-centered .small-underline {margin: 4px auto 8px !important;}
  html body.mpb-site .home-view .intro-centered h1 {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: clamp(28px, 2.25vw, 36px) !important;
    font-weight: 500 !important;
    color: #0c1127 !important;
    line-height: 1.12 !important;
    margin: 6px 0 10px !important;
    letter-spacing: -.035em !important;
  }
  html body.mpb-site .home-view .intro-centered p:not(.eyebrow) {
    font-size: 13px !important;
    line-height: 1.28 !important;
    margin-bottom: 5px !important;
  }
  html body.mpb-site .home-view .price-emphasis {
    font-size: 27px !important;
    line-height: 1.05 !important;
    margin: 3px auto 5px !important;
  }
  html body.mpb-site .home-view .hero-button {min-height: 38px !important; font-size: 13px !important; padding: 7px 20px !important;}
  html body.mpb-site .home-view .reviews-section {padding: 5px 0 3px !important;}
  html body.mpb-site .home-view .reviews-section .eyebrow {font-size: 12px !important; margin-bottom: 1px !important;}
  html body.mpb-site .home-view .reviews-section h2 {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: clamp(27px, 2.05vw, 33px) !important;
    font-weight: 500 !important;
    color: #0c1127 !important;
    line-height: 1.1 !important;
    margin: 0 0 2px !important;
    letter-spacing: -.035em !important;
  }
  html body.mpb-site .home-view .reviews-overview {
    font-size: 12px !important;
    line-height: 1.25 !important;
    gap: 8px !important;
    margin-bottom: 5px !important;
  }
  html body.mpb-site .home-view .reviews-overview .stars {font-size: 17px !important;}
  html body.mpb-site .home-view .mpb-google-carousel {
    width: min(100% - 36px, 1250px);
    margin: 0 auto 5px;
    max-height: 166px;
    overflow: hidden;
  }
  /* L'extension Google Reviews gère elle-même les 2 lignes et Lire la suite :
     ne pas imposer de hauteur/rognage sur ses cartes. */
  html body.mpb-site .home-view .review-choice-wrap {margin: 2px auto 0 !important; gap: 4px !important;}
  html body.mpb-site .home-view .review-choice-toggle {
    font-size: 11px !important;
    min-height: 29px !important;
    padding: 4px 17px !important;
  }
  /* N'afficher les DEUX liens de lieux qu'après un clic. */
  html body.mpb-site .home-view .review-links-panel[hidden] {display: none !important;}
  html body.mpb-site .home-view .review-links-panel:not([hidden]) {display: flex !important;}
  html body.mpb-site .home-view + div[style] {padding-top: 3px !important; padding-bottom: 2px !important;}
  html body.mpb-site .home-view + .site-footer,
  html body.mpb-site .site-footer {padding-bottom: 5px !important;}
  html body.mpb-site .site-footer .footer-decoration {height: 10px !important;}
  html body.mpb-site .site-footer .footer-links-wrap {padding-top: 5px !important;}
  html body.mpb-site .site-footer .footer-links {gap: 8px 18px !important; font-size: 12px !important;}
  html body.mpb-site .site-footer .footer-links a,
  html body.mpb-site .site-footer .footer-follow-label {font-size: 12px !important;}
}

/* Signature graphique Déclic Conversion : récupérer le logo de la médiathèque. */
html body.mpb-site .site-footer .footer-credit {font-size: 11px !important; margin-top: 3px !important;}
html body.mpb-site .site-footer img.mpb-footer-credit-logo {
  display: inline-block !important;
  width: auto !important;
  height: 20px !important;
  max-width: 115px !important;
  object-fit: contain !important;
  vertical-align: middle !important;
}
@media (max-width: 1020px) {
  html body.mpb-site .home-view .intro-centered h1,
  html body.mpb-site .home-view .reviews-section h2 {
    font-family: "Playfair Display", Georgia, serif !important;
    color: #0c1127 !important;
    font-weight: 500 !important;
  }
  html body.mpb-site .home-view .mpb-google-carousel {max-width: 100%; overflow-x: hidden;}
}

/* v0.5 — Afficher le nom Déclic Conversion en complément de son pictogramme. */
html body.mpb-site .site-footer .footer-credit .mpb-footer-credit-name {
  display: inline !important;
  color: #172742 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

/* v0.6 — Accueil : avis lisibles avec vrai « Lire plus ».
   Corrige le recadrage trop strict du carrousel (v0.4) sans modifier le footer. */
html body.mpb-site .home-view .mpb-google-carousel {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

html body.mpb-site .home-view .mpb-google-carousel .mpb-review-copy:not(.mpb-review-expanded) {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  max-height: none !important;
}
html body.mpb-site .home-view .mpb-google-carousel .mpb-review-copy.mpb-review-expanded {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  max-height: none !important;
  white-space: normal !important;
}
html body.mpb-site .home-view .mpb-google-carousel .mpb-review-readmore {
  display: block !important;
  width: fit-content;
  min-height: 24px !important;
  padding: 0 2px !important;
  margin: 2px 0 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #00899e !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  font: 700 12px/1.4 "DM Sans", Arial, sans-serif !important;
  cursor: pointer;
}
html body.mpb-site .home-view .mpb-google-carousel .mpb-review-readmore:focus-visible {
  outline: 2px solid #00899e !important;
  outline-offset: 2px !important;
}
/* Compacité sans couper la lecture, préserver le portrait et les couleurs. */
@media (min-width: 1021px) {
  html body.mpb-site .home-view .reviews-section {padding-bottom: 0 !important;}
  html body.mpb-site .home-view .reviews-overview {margin-bottom: 3px !important;}
  html body.mpb-site .home-view .mpb-google-carousel {margin-bottom: 3px !important;}
  html body.mpb-site .home-view .review-choice-toggle {margin-top: 0 !important;}
}
@media (max-width: 1020px) {
  html body.mpb-site .home-view .mpb-google-carousel {overflow: visible !important;}
}


/* v0.7 - Cartes Google compactes avec lecture complète sur demande.
   Classes ajoutées seulement aux avis du widget détectés côté navigateur.
   N'affecte ni Potion Digitale, ni le footer. */
html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card:not(.mpb-review-open) {
  min-height: 0 !important;
  height: 156px !important;
  max-height: 156px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card.mpb-review-open {
  height: auto !important;
  min-height: 156px !important;
  max-height: none !important;
  overflow: visible !important;
}
html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card .mpb-review-copy:not(.mpb-review-expanded) {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  max-height: 2.9em !important;
  line-height: 1.4 !important;
  font-size: 12px !important;
  margin-bottom: 0 !important;
}
html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card .mpb-review-copy.mpb-review-expanded {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  max-height: none !important;
}
html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card .mpb-review-readmore {
  position: relative !important;
  z-index: 2;
  display: inline-block !important;
  min-height: 18px !important;
  margin: 4px 0 0 !important;
  padding: 0 3px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #00899e !important;
  text-decoration: underline !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer;
}
@media (min-width: 1021px) {
  html body.mpb-site .home-view .mpb-google-carousel {
    min-height: 156px !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
  html body.mpb-site .home-view .reviews-section {padding-top: 4px !important; padding-bottom: 0 !important;}
}
@media (max-width: 767px) {
  html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card:not(.mpb-review-open) {
    height: 165px !important;
    max-height: 165px !important;
  }
}


/* v0.8 — Espace visible entre les deux blocs de l'accueil.
   Laisse intacts le portrait, les cartes Google et le footer.
   Le sélecteur direct ne s'applique qu'à la page d'accueil MPB. */
@media (min-width: 1021px) {
  html body.mpb-site main.home-view > section.home-hero + section.reviews-section {
    margin-top: 26px !important;
    padding-top: 9px !important;
  }
}
@media (max-width: 1020px) {
  html body.mpb-site main.home-view > section.home-hero + section.reviews-section {
    margin-top: 16px !important;
    padding-top: 12px !important;
  }
}


/* v0.9 — Correction des respirations sur l'accueil seulement.
   Enlevons la bande BLANCHE créée par la marge de la v0.8 : l'espacement
   se fait désormais DANS le fond beige clair de la section Avis Google.
   P01/Potion Digitale, carrousel et footer restent inchangés. */
@media (min-width: 1021px) {
  html body.mpb-site main.home-view > section.home-hero + section.reviews-section {
    margin-top: 0 !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(213, 187, 164, .35);
  }
  /* Donner de l'air autour du prix sans rapprocher le bouton du bord bas. */
  html body.mpb-site .home-view .home-hero-inner {
    height: clamp(308px, 38vh, 344px) !important;
  }
  html body.mpb-site .home-view .intro-centered > p:not(.eyebrow) {
    margin-bottom: 0 !important;
  }
  html body.mpb-site .home-view .intro-centered .price-emphasis {
    margin: 16px auto 15px !important;
  }
  html body.mpb-site .home-view .intro-centered .hero-button {
    margin-top: 0 !important;
  }
}
/* Sur les écrans plus étroits, la section Avis doit aussi rester accolée
   au bloc supérieur (aucune barre blanche parasite), sans hauteur fixée. */
@media (max-width: 1020px) {
  html body.mpb-site main.home-view > section.home-hero + section.reviews-section {
    margin-top: 0 !important;
    padding-top: 18px !important;
  }
  html body.mpb-site .home-view .intro-centered .price-emphasis {
    margin-top: 15px !important;
    margin-bottom: 14px !important;
  }
}


/* v1.0 - Les avis restent compacts tant que l'utilisateur ne demande pas
   « Lire plus ». Ne touche pas au bloc supérieur ni au footer. */
@media (min-width: 1021px) {
  html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card:not(.mpb-review-open),
  html body.mpb-site .home-view .mpb-google-carousel .rotf-review:not(.mpb-review-open) {
    height: 164px !important;
    min-height: 164px !important;
    max-height: 164px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  html body.mpb-site .home-view .mpb-google-carousel {
    margin-bottom: 3px !important;
  }
}
/* Deux lignes maximum. Le lien d'extension reste visible sous l'extrait. */
html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card .mpb-review-copy:not(.mpb-review-expanded) {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2;
  max-height: 2.85em !important;
  line-height: 1.4 !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}
html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card .mpb-review-copy.mpb-review-expanded {
  display: block !important;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset;
  overflow: visible !important;
}
html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card.mpb-review-open {
  height: auto !important;
  max-height: none !important;
  min-height: 164px !important;
  overflow: visible !important;
}
html body.mpb-site .home-view .mpb-google-carousel .mpb-review-native-more,
html body.mpb-site .home-view .mpb-google-carousel .mpb-review-readmore {
  display: inline-block !important;
  position: relative !important;
  z-index: 4;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  padding: 1px 0 !important;
  margin-top: 4px !important;
  height: auto !important;
  color: #00899e !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}
/* Mobile : ne jamais rogner les contrôles ni bloquer le défilement. */
@media (max-width: 1020px) {
  html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card:not(.mpb-review-open) {
    min-height: 164px !important;
    max-height: 190px !important;
    height: auto !important;
    overflow: hidden !important;
  }
}


/* v1.1 — Le bouton reste toujours DANS la carte compacte et ouvre un avis en fenêtre. */
html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card {
  position: relative !important;
  box-sizing: border-box !important;
  padding-bottom: 34px !important;
}
html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card .mpb-review-copy:not(.mpb-review-expanded) {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  max-height: 2.85em !important;
  margin-bottom: 0 !important;
}
html body.mpb-site .home-view .mpb-google-carousel .mpb-compact-review-card > .mpb-review-modal-trigger {
  display: inline-block !important;
  visibility: visible !important;
  position: absolute !important;
  left: 15px !important;
  bottom: 8px !important;
  top: auto !important;
  right: auto !important;
  z-index: 99 !important;
  width: auto !important;
  height: auto !important;
  min-height: 21px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 1px 2px !important;
  color: #007c91 !important;
  background: #fff !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  font: 700 12px/1.4 "DM Sans", Arial, sans-serif !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
html body.mpb-site .home-view .mpb-google-carousel .mpb-review-widget-more {display: none !important;}
html body.mpb-site .home-view .mpb-google-carousel .mpb-review-modal-trigger:focus-visible {
  outline: 2px solid #007c91 !important;
  outline-offset: 2px;
}
/* Fenêtre de lecture indépendante du carousel : aucune hausse de la page. */
.mpb-review-overlay:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background: rgba(6, 16, 31, .64) !important;
  padding: 20px !important;
}
.mpb-review-overlay[hidden] {display: none !important;}
.mpb-review-dialog {
  position: relative !important;
  width: min(100%, 600px) !important;
  max-height: min(85vh, 700px) !important;
  overflow-y: auto !important;
  padding: 30px !important;
  background: #fffaf6 !important;
  color: #0c1127 !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 65px rgba(0,0,0,.3) !important;
  font-family: "DM Sans", Arial, sans-serif !important;
}
.mpb-review-dialog .mpb-dialog-eyebrow {
  font: 700 11px/1.4 "DM Sans", Arial, sans-serif !important;
  letter-spacing: .12em !important;
  color: #00899e !important;
  margin: 0 0 6px !important;
}
.mpb-review-dialog h3 {
  font: 600 26px/1.3 "Playfair Display", Georgia, serif !important;
  color: #0c1127 !important;
  margin: 0 35px 15px 0 !important;
}
.mpb-review-dialog .mpb-review-fulltext {
  font: 400 16px/1.65 "DM Sans", Arial, sans-serif !important;
  white-space: pre-wrap !important;
  margin: 0 !important;
}
.mpb-review-dialog .mpb-review-close {
  position: absolute !important;
  top: 12px !important;
  right: 15px !important;
  border: 0 !important;
  background: transparent !important;
  color: #0c1127 !important;
  font: 28px/1 Arial,sans-serif !important;
  cursor: pointer !important;
}
@media (max-width: 680px) {
  .mpb-review-dialog {padding: 24px 18px !important;}
}


/* Version 1.2 : cartes créées directement avec les avis authentiques du serveur.
   Classes uniques, indépendantes des styles et scripts du widget tiers. */
html body.mpb-site .home-view .mpb-google-carousel.mpb-owned-reviews {
  position: relative !important;
  max-width: 1150px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 7px auto 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
html body.mpb-site .home-view .mpb-owned-shell {
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
html body.mpb-site .home-view .mpb-owned-viewport {
  position: relative !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain !important;
  scrollbar-width: none !important;
  scroll-snap-type: x mandatory !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 3px 1px 5px !important;
}
html body.mpb-site .home-view .mpb-owned-viewport::-webkit-scrollbar {display: none !important;}
html body.mpb-site .home-view .mpb-owned-track {
  position: relative !important;
  display: flex !important;
  gap: 14px !important;
  width: max-content !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}
html body.mpb-site .home-view .mpb-owned-card {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 calc((min(1150px, 100vw - 50px) - 28px) / 3) !important;
  width: calc((min(1150px, 100vw - 50px) - 28px) / 3) !important;
  box-sizing: border-box !important;
  scroll-snap-align: start !important;
  height: 161px !important;
  min-height: 161px !important;
  max-height: 161px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 12px 15px 8px !important;
  border: 1px solid #e4e2e0 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #242424 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.12) !important;
  text-align: left !important;
  font: 400 13px/1.48 "DM Sans", Arial, sans-serif !important;
}
html body.mpb-site .home-view .mpb-owned-head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 0 2px !important;
}
html body.mpb-site .home-view .mpb-owned-avatar {
  display: flex !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  background: #6558b7 !important;
  border-radius: 50% !important;
  color: #fff !important;
  font: 600 17px/1 Arial,sans-serif !important;
}
html body.mpb-site .home-view .mpb-owned-author {
  flex: 1 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font: 700 13px/1.3 "DM Sans", Arial, sans-serif !important;
  color: #191919 !important;
}
html body.mpb-site .home-view .mpb-owned-google {
  color: #4285f4 !important;
  font: 900 16px/1 Arial, sans-serif !important;
}
html body.mpb-site .home-view .mpb-owned-stars {
  height: 21px !important;
  min-height: 21px !important;
  color: #fa8425 !important;
  letter-spacing: 1px !important;
  font-size: 17px !important;
  line-height: 21px !important;
  margin: 0 0 3px !important;
}
html body.mpb-site .home-view .mpb-owned-excerpt {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2;
  overflow: hidden !important;
  max-height: 43px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #444 !important;
  font: 400 13px/1.48 "DM Sans", Arial, sans-serif !important;
}
html body.mpb-site .home-view .mpb-owned-more {
  display: block !important;
  width: max-content !important;
  min-height: 22px !important;
  max-height: 22px !important;
  padding: 0 2px !important;
  margin: auto 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #006f85 !important;
  text-decoration: underline !important;
  font: 700 12px/1.5 "DM Sans", Arial, sans-serif !important;
  cursor: pointer !important;
}
html body.mpb-site .home-view .mpb-owned-nav {
  position: absolute !important;
  z-index: 4 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  color: #717171 !important;
  border: 1px solid #ddd !important;
  border-radius: 50% !important;
  font: 25px/1 Arial,sans-serif !important;
  box-shadow: 0 2px 5px rgba(0,0,0,.12) !important;
  cursor: pointer !important;
}
html body.mpb-site .home-view .mpb-owned-prev {left: -18px !important;}
html body.mpb-site .home-view .mpb-owned-next {right: -18px !important;}
html body.mpb-site .home-view .mpb-owned-nav:disabled {opacity: .4 !important; cursor: default !important;}
html body.mpb-site .home-view .mpb-owned-dots {display: flex !important; justify-content: center !important; gap: 6px !important; margin: 3px 0 0 !important;}
html body.mpb-site .home-view .mpb-owned-dot {width: 6px !important; height: 6px !important; border: 0 !important; padding: 0 !important; border-radius: 50% !important; background: #d8d8d8 !important; cursor: pointer !important;}
html body.mpb-site .home-view .mpb-owned-dot.is-active {background: #fa8425 !important;}
html body.mpb-site .home-view .mpb-owned-full[hidden] {display: none !important;}
html body.mpb-site .home-view .mpb-owned-more:focus-visible,
html body.mpb-site .home-view .mpb-owned-nav:focus-visible {outline: 2px solid #00899e !important; outline-offset: 2px !important;}
@media(max-width: 1020px) {
  html body.mpb-site .home-view .mpb-owned-card {
    flex-basis: calc((min(100vw - 36px, 850px) - 14px) / 2) !important;
    width: calc((min(100vw - 36px, 850px) - 14px) / 2) !important;
  }
  html body.mpb-site .home-view .mpb-owned-prev {left: 0 !important;}
  html body.mpb-site .home-view .mpb-owned-next {right: 0 !important;}
}
@media(max-width: 690px) {
  html body.mpb-site .home-view .mpb-owned-card {
    flex-basis: calc(100vw - 48px) !important;
    width: calc(100vw - 48px) !important;
  }
}
/* Fenêtre de lecture hors du widget : les cartes restent à hauteur fixe. */
html body.mpb-owned-dialog-open {overflow: hidden !important;}
.mpb-owned-overlay[hidden] {display: none !important;}
.mpb-owned-overlay:not([hidden]) {position: fixed !important; inset: 0 !important; z-index: 2147483000 !important; display: flex !important; align-items: center !important; justify-content: center !important; background: rgba(5,14,30,.64) !important; padding: 16px !important;}
.mpb-owned-dialog {position: relative !important; background: #fffaf7 !important; color: #10172a !important; width: min(100%,600px) !important; max-height: min(85vh,700px) !important; overflow-y: auto !important; padding: 28px !important; box-sizing: border-box !important; border-radius: 12px !important; box-shadow: 0 12px 50px rgba(0,0,0,.3) !important; text-align: left !important;}
.mpb-owned-dialog-kicker {font: 700 12px/1.4 "DM Sans",Arial,sans-serif !important; letter-spacing: .1em !important; color: #00899e !important; margin: 0 0 6px !important;}
.mpb-owned-dialog h3 {font: 600 25px/1.3 "Playfair Display",Georgia,serif !important; color: #0c1127 !important; margin: 0 38px 15px 0 !important;}
.mpb-owned-dialog-content {font: 400 16px/1.6 "DM Sans",Arial,sans-serif !important; white-space: pre-wrap !important; margin: 0 !important;}
.mpb-owned-close {position: absolute !important; right: 13px !important; top: 8px !important; font: 29px/1 Arial,sans-serif !important; background: transparent !important; color: #10172a !important; border: 0 !important; padding: 5px !important; cursor: pointer !important;}


/* v1.3 : laisser le widget Google Reviews [grw id=1380226] gérer lui-même
   le texte tronqué sur deux lignes et son lien natif « Lire la suite ».
   Corrige l'ancienne limite de hauteur imposée par la passerelle.
   Les tailles des cartes sont désormais déterminées par le widget
   dans Google Reviews > Widgets > Card Options > Text lines = 2. */
html body.mpb-site .home-view .mpb-google-carousel .grw-review {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}
/* Ne pas empêcher le slider de contenir ses propres boutons. */
html body.mpb-site .home-view .mpb-google-carousel {
  max-height: none !important;
  overflow: visible !important;
}
