/* Style ciblé exclusivement sur les pages importées par Harmonie Refonte. */
.hdr-root{box-sizing:border-box;max-width:1120px;margin:0 auto 3rem;padding:clamp(1rem,3vw,2.4rem);background:#fffdf9;border-radius:26px;color:#253847;line-height:1.65}
.hdr-root *{box-sizing:border-box}
.hdr-root .wp-block-heading{color:#273c47;line-height:1.25;text-wrap:balance}
.hdr-root h1.wp-block-heading,.hdr-root h2.wp-block-heading{font-size:clamp(1.65rem,3.2vw,2.5rem);margin:0 0 1rem}
.hdr-root h3.wp-block-heading{font-size:clamp(1.15rem,2.2vw,1.55rem);margin:0 0 .65rem}
.hdr-root .hdr-intro,.hdr-root .hdr-home-hero{background:#fff9f4;border-radius:26px;padding:clamp(1.2rem,4vw,3rem);box-shadow:0 10px 32px rgba(34,40,49,.06)}
.hdr-root .hdr-intro{border-left:6px solid #e17b60}
.hdr-root .hdr-home-hero{background:#fff1e5}
.hdr-root .hdr-section{margin:clamp(1.8rem,4vw,3rem) 0;padding:clamp(1rem,3vw,1.5rem) 0}
.hdr-root .hdr-section>h2{margin-bottom:1.5rem}
.hdr-root .hdr-eyebrow{font-size:.77rem;letter-spacing:.14em;text-transform:uppercase;color:#9a5548;font-weight:700;margin:0 0 .6rem}
.hdr-root .wp-block-columns{gap:1.3rem;align-items:stretch}
.hdr-root .wp-block-column{min-width:0}
.hdr-root .hdr-card,.hdr-root .hdr-offer,.hdr-root .hdr-price-card{height:100%;border:1px solid #e9dbcf;background:#fffdf9;padding:1.5rem;border-radius:20px;box-shadow:0 6px 24px rgba(39,57,71,.05)}
.hdr-root .hdr-card{transition:transform .18s ease,box-shadow .18s ease}
@media (prefers-reduced-motion:no-preference){.hdr-root .hdr-card:hover{transform:translateY(-3px);box-shadow:0 10px 32px rgba(39,57,71,.11)}}
.hdr-root .hdr-offer{height:auto;margin:1rem 0 1.25rem}
.hdr-root .hdr-offer-short{background:#f6f8f4}
.hdr-root .hdr-flash{background:#f4f8f6;border-color:#bcd0c4}
.hdr-root .hdr-price{font-size:1.35rem;font-weight:800;color:#bd5a41;margin:.2rem 0 1rem}
.hdr-root .hdr-price-card{text-align:center;background:#f8eee7}
.hdr-root .hdr-price-card .hdr-price{font-size:1.9rem}
.hdr-root .hdr-button-row{margin-top:1.25rem}
.hdr-root .wp-block-buttons{gap:.65rem}
.hdr-root .wp-block-list{padding-left:1.5rem}
.hdr-root .wp-block-list li{margin:.3rem 0}
.hdr-root a:not(.wp-block-button__link){color:#a94e38;text-decoration:underline}
.hdr-root .hdr-bubbles-scroll{width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.hdr-root .hdr-bubbles-image{width:100%;margin:0 auto;max-width:1100px}
.hdr-root .hdr-bubbles-image img{width:100%;height:auto;display:block}
.hdr-root .hdr-approach-illus img{width:auto;max-width:210px;max-height:200px;object-fit:contain}
.hdr-root .hdr-home-hero .hdr-card{background:white}
body.home:has(.hdr-home) main .wp-block-post-title{display:none}
@media(max-width:780px){.hdr-root{padding:1rem .75rem;border-radius:16px}.hdr-root .hdr-section{margin:1.5rem 0}.hdr-root .hdr-card,.hdr-root .hdr-offer,.hdr-root .hdr-price-card{padding:1.1rem}.hdr-root .hdr-bubbles-image{min-width:680px;max-width:none!important}.hdr-root .hdr-three.wp-block-columns,.hdr-root .hdr-two.wp-block-columns{display:block}.hdr-root .hdr-three>.wp-block-column,.hdr-root .hdr-two>.wp-block-column{margin:0 0 1rem}.hdr-root .hdr-home-hero{padding:1.3rem}}

/*
 * v1.0.2 : suppression des fonds et cadres imposes sur toutes les pages
 * de la refonte. Le contenu WordPress n'est pas modifie.
 * La feuille est servie sous un nouveau nom pour eviter un ancien CSS en cache.
 */
body .hdr-root,
body .wp-site-blocks .hdr-root,
body main .hdr-root {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #fff !important;
}

/* En-tetes et introductions : aucun fond creme ni cadre lateral. */
body .hdr-root .hdr-intro,
body .hdr-root .hdr-home-hero,
body .hdr-root.hdr-structures .hdr-intro {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: clamp(.3rem, 1.6vw, 1rem) 0 !important;
}

/* Retablit les couleurs du theme sur le fond orange, sans affecter le menu. */
body .hdr-root .wp-block-heading:not(.has-text-color),
body .hdr-root .hdr-intro p:not(.has-text-color),
body .hdr-root .hdr-home-hero p:not(.has-text-color),
body .hdr-root .hdr-section > p:not(.has-text-color),
body .hdr-root .hdr-eyebrow,
body .hdr-root .hdr-price {
  color: #fff !important;
}
body .hdr-root a:not(.wp-block-button__link) { color: #fff !important; }

/* Petits blocs distincts, mais sans fonds blancs ou contours blancs. */
body .hdr-root .hdr-card,
body .hdr-root .hdr-offer,
body .hdr-root .hdr-price-card,
body .hdr-root .hdr-offer-short,
body .hdr-root .hdr-flash,
body .hdr-root .hdr-home-hero .hdr-card {
  background: rgba(75, 28, 27, .14) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
}
body .hdr-root .hdr-card .wp-block-heading:not(.has-text-color),
body .hdr-root .hdr-offer .wp-block-heading:not(.has-text-color),
body .hdr-root .hdr-price-card .wp-block-heading:not(.has-text-color),
body .hdr-root .hdr-card p:not(.has-text-color),
body .hdr-root .hdr-offer p:not(.has-text-color),
body .hdr-root .hdr-price-card p:not(.has-text-color) {
  color: #fff !important;
}

/* Les blocs avec images ne doivent pas creer de cadre autour des photos.
   :has est disponible dans Safari moderne et dans les navigateurs actuels. */
body .hdr-root .hdr-card:has(.hdr-card-media),
body .hdr-root.hdr-structures .hdr-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
body .hdr-root .hdr-card:has(.hdr-card-media) .hdr-card-media,
body .hdr-root.hdr-structures .hdr-card-media {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

/* Sur le fond orange, les liens d'action restent tres visibles. */

/* v1.0.3 : les couleurs des boutons restent celles choisies dans Gutenberg.
   Aucun background ou color n'est forcé sur .wp-block-button__link. */

/* Toutes les quatre images des cartes Structures sont centrées et arrondies,
   y compris si l'utilisateur a remplacé le bloc Image dans Gutenberg. */
.hdr-root.hdr-structures .hdr-card figure.wp-block-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1rem !important;
  padding: 0;
  width: 100%;
  max-width: 100%;
  background: transparent;
}
.hdr-root.hdr-structures .hdr-card figure.wp-block-image img {
  display: block;
  /* Respecter le format original, notamment les photos portrait. */
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  border-radius: 14px !important;
  margin: 0 auto;
}

/* v1.0.4 : les photos conservees en portrait restent en portrait.
   Ne jamais imposer de recadrage paysage sur les quatre cartes. */
