/* Habitat Multiservices · harmonisation des sections SEO avec l'identité d'origine (15/10/2026).
   Couche purement visuelle, chargée après hms-layout.css. Retour arrière : supprimer hms-polish.php + hms-polish.css. */

/* 1. Titres : même style que les titres Elementor du site (noir, 600, point vert) */
.hms-editorial h2,
.hms-editorial .hml-intro-title{color:#000;font-weight:600;letter-spacing:-.01em;line-height:1.18}
.hms-editorial h2{font-size:clamp(26px,2.5vw,36.8px)}
.hms-editorial .hml-page-title{color:#000;letter-spacing:-.015em;font-size:clamp(32px,3.8vw,52px);line-height:1.12}
.hms-editorial h2:not(.hml-no-dot)::before,
.hms-editorial .hml-page-title::before{content:"";display:inline-block;width:14px;height:14px;margin-right:12px;vertical-align:.14em;background:url(/wp-content/uploads/2026/03/point-vert-logo.svg) center/contain no-repeat}
.hms-editorial .hml-urgent h2,
.hms-editorial .hml-page-urgent .hml-page-title{color:#fff}
.hms-editorial .hml-urgent h2::before,
.hms-editorial .hml-page-urgent .hml-page-title::before{display:none}
.hms-editorial h3,
.hms-editorial .hml-scenario h3,
.hms-editorial .hml-process h3{color:#000!important}

/* 2. Petits libellés au-dessus des titres, façon référence (trait + capitales espacées) */
.hms-editorial .hms-label,
.hms-editorial .hml-overline{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#7AAAD7;margin-bottom:16px}
.hms-editorial .hms-label::before,
.hms-editorial .hml-overline::before{content:"";display:inline-block;width:26px;height:1px;background:currentColor;vertical-align:middle;margin-right:12px;opacity:.8}
.hms-editorial .hml-urgent .hml-overline,
.hms-editorial .hml-page-urgent .hml-overline{color:#c9dfed}

/* 3. Texte courant un peu plus contrasté */
.hms-editorial p,.hms-editorial li{color:#2b3540}
.hms-editorial .hml-zone-grid span,.hms-editorial .hml-muted{color:#5b6773}

/* 4. Zones : noms de communes en noir, flèche bleue de la charte */
.hms-editorial .hml-zone-grid strong{color:#000}
.hms-editorial .hml-zone-card strong>span{color:#7AAAD7}

/* 5. FAQ identique à la référence : bande grise pleine largeur, surtitre, grille 2 colonnes */
.hms-editorial .hms-faq{position:relative;background:#F4F6F8;box-shadow:0 0 0 100vmax #F4F6F8;clip-path:inset(0 -100vmax);padding-block:88px 72px;margin-block:56px 0}
.hms-editorial .hms-faq>h2{font-size:clamp(30px,3vw,44px);line-height:1.15;max-width:760px;margin:0 0 48px;color:#0f1b2a}
.hms-editorial .hms-faq>h2::before{content:"Questions fréquentes";display:block;width:auto;height:auto;background:none;margin:0 0 20px;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#6b7785;padding-left:38px;position:relative;vertical-align:baseline;line-height:1.4}
.hms-editorial .hms-faq>h2::after{content:"";position:absolute;left:0;top:8px;width:26px;height:1px;background:#6b7785}
.hms-editorial .hms-faq>h2{position:relative}
.hms-editorial .hms-faq details{padding:22px 0;border-bottom:1px solid #dfe5ea}
.hms-editorial .hms-faq summary{font-size:16px;font-weight:500;color:#1f2a37;min-height:48px;line-height:1.55}
.hms-editorial .hms-faq summary:after{width:28px;height:28px;margin-top:-14px;background:#e6ebf0;color:#1f2a37;font-size:20px}
.hms-editorial .hms-faq details p{font-size:15px;color:#4b5b69;line-height:1.8}
.hms-editorial .hms-faq .hms-actions{grid-column:1/-1;margin-top:36px}
/* Accueil : la bande grise englobe aussi le bouton devis sous la FAQ */
.hms-home-faq{padding-top:0;padding-bottom:0}
.hms-home-faq .hms-faq{margin-bottom:0;padding-bottom:24px}
.hms-home-faq>.hms-actions{position:relative;background:#F4F6F8;box-shadow:0 0 0 100vmax #F4F6F8;clip-path:inset(0 -100vmax);margin:0;padding:12px 0 80px}

/* Titres sur plusieurs lignes : équilibrer les lignes (pas de mot seul en bout) */
.hms-editorial h2,.hms-editorial .hml-page-title,.single-services h1.elementor-heading-title{text-wrap:balance}

/* 6. Rythme vertical : moins de vide avant la FAQ et entre les blocs */
.hms-editorial .hml-zones{padding-block:64px 24px}
.hms-editorial .hms-row{padding:56px 0}

@media(max-width:767px){
 .hms-editorial h2{font-size:25px}
 .hms-editorial .hml-page-title{font-size:30px}
 .hms-editorial .hms-faq{padding-block:56px 44px;margin-top:36px}
 .hms-editorial .hms-faq>h2{font-size:26px;margin-bottom:28px}
 .hms-editorial .hms-faq summary{font-size:15.5px}
}

/* 7. Avis clients Google, mise en page façon référence Alves (15/10/2026) */
.hms-editorial .hml-avis{position:relative;background:#F4F6F8;box-shadow:0 0 0 100vmax #F4F6F8;clip-path:inset(0 -100vmax);padding-block:88px;margin-block:24px 0}
.hms-editorial .hml-avis>h2{max-width:760px;margin:0 0 44px}
.hms-editorial .hml-avis-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.hms-editorial .hml-avis-card{display:flex;flex-direction:column;margin:0;background:#fff;border:1px solid #e3e8ed;border-radius:24px;padding:28px;min-width:0}
.hms-editorial .hml-stars{color:#F2B705;font-size:17px;letter-spacing:3px;line-height:1;margin-bottom:18px}
.hms-editorial .hml-avis-card blockquote{margin:0;padding:0;border:0;flex:1;font-style:normal;quotes:none}
.hms-editorial .hml-avis-card figcaption,.hms-editorial .hml-avis-card blockquote p{font-style:normal}
.hms-editorial .hml-avis-card blockquote p{font-size:15px;line-height:1.75;color:#2b3540;margin:0}
.hms-editorial .hml-avis-card figcaption{margin-top:22px;padding-top:18px;border-top:1px solid #e8edf1;display:flex;flex-direction:column;gap:2px}
.hms-editorial .hml-avis-card figcaption strong{font-size:15px;font-weight:600;color:#000}
.hms-editorial .hml-avis-card figcaption span{font-size:13px;color:#7AAAD7}
.hms-editorial .hml-avis-google{justify-content:center;align-items:flex-start;text-decoration:none;background:#fff;border:1px dashed #c9d6e2;transition:border-color .2s ease}
.hms-editorial .hml-avis-google:hover{border-color:#7AAAD7}
.hms-editorial .hml-avis-score{font-size:56px;font-weight:600;line-height:1;color:#000;margin-bottom:12px}
.hms-editorial .hml-avis-google .hml-stars{margin-bottom:14px}
.hms-editorial .hml-avis-count{font-size:15px;color:#2b3540;margin-bottom:20px}
.hms-editorial .hml-avis-more{font-size:15px;font-weight:600;color:#355d80;text-decoration:underline;text-underline-offset:5px}
.hms-editorial .hml-real{margin-top:24px;background:#263f56;border-radius:24px;padding:40px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:40px;align-items:center}
.hms-editorial .hml-real .hml-overline{color:#c9dfed}
.hms-editorial .hml-real h3{color:#fff!important;font-size:clamp(22px,2vw,28px)!important;font-weight:600;line-height:1.25;margin:0 0 14px}
.hms-editorial .hml-real p{color:#e0eaf2;font-size:15px;line-height:1.75}
.hms-editorial .hml-real .hml-light-link{color:#fff;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:5px}
.hms-editorial .hml-real-photos{display:grid;grid-template-columns:1.35fr 1fr;gap:14px}
.hms-editorial .hml-real-photos img{display:block;width:100%;height:280px;object-fit:cover;border-radius:16px}
@media(max-width:1024px){
 .hms-editorial .hml-avis-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hms-editorial .hml-real{grid-template-columns:1fr;gap:28px}
}
@media(max-width:767px){
 .hms-editorial .hml-avis{padding-block:56px}
 .hms-editorial .hml-avis>h2{margin-bottom:28px}
 .hms-editorial .hml-avis-grid{grid-template-columns:1fr;gap:14px}
 .hms-editorial .hml-avis-card{padding:22px;border-radius:20px}
 .hms-editorial .hml-avis-score{font-size:44px}
 .hms-editorial .hml-real{padding:26px 22px;border-radius:20px}
 .hms-editorial .hml-real-photos img{height:190px}
}

/* 8. FAQ : « + » dessiné en CSS (centré au pixel, quelle que soit la police) et animation d'ouverture (15/10/2026) */
.hms-editorial .hms-faq summary{position:relative}
.hms-editorial .hms-faq summary:after{content:""!important;position:absolute;right:0;top:50%;width:30px;height:30px;margin-top:-15px;border-radius:50%;font-size:0;line-height:0;
 background:linear-gradient(#1f2a37,#1f2a37) center/12px 2px no-repeat,linear-gradient(#1f2a37,#1f2a37) center/2px 12px no-repeat,#e6ebf0;
 transition:transform .3s ease,background-color .3s ease}
.hms-editorial .hms-faq details[open] summary:after{content:""!important;transform:rotate(45deg)}
.hms-editorial .hms-faq summary:hover:after{background-color:#dbe3ea}
/* Ouverture et fermeture en douceur (navigateurs récents), apparition du texte partout */
.hms-editorial .hms-faq details{interpolate-size:allow-keywords}
.hms-editorial .hms-faq details::details-content{block-size:0;overflow:hidden;transition:block-size .32s ease,content-visibility .32s allow-discrete}
.hms-editorial .hms-faq details[open]::details-content{block-size:auto}
.hms-editorial .hms-faq details[open]>:not(summary){animation:hmsFaqIn .32s ease both}
@keyframes hmsFaqIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
 .hms-editorial .hms-faq summary:after,.hms-editorial .hms-faq details::details-content{transition:none}
 .hms-editorial .hms-faq details[open]>:not(summary){animation:none}
}

/* 9. Boutons mis en avant partout (15/10/2026) : devis = vert plein, téléphone et navigation = contour marine */
.hms-editorial .hms-button,
.hms-editorial a.hms-text-link[href$="#devis"]{display:inline-flex;align-items:center;gap:12px;background:#b9ce00;color:#17222c!important;padding:14px 26px;border-radius:100px;font-size:15px;font-weight:600;line-height:1.4;text-decoration:none!important;box-shadow:0 8px 20px -8px rgba(122,140,0,.55);transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease}
.hms-editorial .hms-button:hover,
.hms-editorial a.hms-text-link[href$="#devis"]:hover{background:#c8db1f;transform:translateY(-1px);box-shadow:0 12px 24px -8px rgba(122,140,0,.6)}
.hms-editorial a.hms-text-link[href$="#devis"]{margin-top:10px}
.hms-editorial .hms-phone,
.hms-editorial a.hms-text-link:not([href$="#devis"]),
.hms-editorial .hml-link{display:inline-flex;align-items:center;gap:10px;border:1.5px solid #263f56;color:#263f56!important;background:transparent;padding:12.5px 22px;border-radius:100px;font-size:15px;font-weight:600;line-height:1.4;text-decoration:none!important;transition:background-color .18s ease,color .18s ease}
.hms-editorial .hms-phone:hover,
.hms-editorial a.hms-text-link:not([href$="#devis"]):hover,
.hms-editorial .hml-link:hover{background:#263f56;color:#fff!important}
.hms-editorial .hms-phone::before{content:"";width:16px;height:16px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center/contain no-repeat}
/* Sur fond foncé (blocs urgence) : contour blanc */
.hms-editorial .hml-urgent .hms-phone,.hms-editorial .hml-page-urgent .hms-phone,.hms-editorial .hml-real .hml-link{border-color:#fff;color:#fff!important}
.hms-editorial .hml-urgent .hms-phone:hover,.hms-editorial .hml-page-urgent .hms-phone:hover{background:#fff;color:#263f56!important}
/* Liens vers les autres prestations : pastilles cliquables */
.hms-editorial .hms-links a,.hms-editorial .hml-service-list a{display:inline-flex;align-items:center;gap:6px;background:#ecf3f9;color:#263f56!important;padding:8px 16px;border-radius:100px;font-size:14px;font-weight:600;text-decoration:none!important;transition:background-color .18s ease}
.hms-editorial .hms-links a:hover,.hms-editorial .hml-service-list a:hover{background:#dbe8f3}
.hms-editorial .hms-links,.hms-editorial .hml-service-list{gap:10px}
@media (prefers-reduced-motion:reduce){.hms-editorial .hms-button,.hms-editorial a.hms-text-link{transition:none}}
@media(max-width:767px){
 .hms-editorial .hms-actions{flex-direction:column;align-items:stretch;gap:12px}
 .hms-editorial .hms-actions>a,.hms-editorial a.hms-text-link[href$="#devis"],.hms-editorial a.hms-text-link{justify-content:center;width:100%;text-align:center}
 .hms-editorial .hml-zone-footer .hml-link{width:100%;justify-content:center}
}

/* 10. Bloc « Comment ça se passe » en 4 étapes (accueil, 15/10/2026) */
.hms-editorial .hml-process-wrap{padding-block:80px 64px}
.hms-editorial .hml-process-wrap>h2{max-width:760px;margin:0 0 8px}
.hms-editorial .hml-process.hml-process-4{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;margin-bottom:36px}
.hms-editorial .hml-process-4 li{border-top:2px solid #b9ce00}
.hms-editorial .hml-process-4 li:before{background:#263f56;color:#fff;font-weight:600}
@media(max-width:1024px){.hms-editorial .hml-process.hml-process-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.hms-editorial .hml-process-wrap{padding-block:56px 40px}.hms-editorial .hml-process.hml-process-4{grid-template-columns:1fr;gap:24px}}

/* 11. Bandeau de confiance : autorisations, garanties légales, VELUX, avis Google (15/10/2026) */
.hms-editorial .hml-trust{margin:8px 0 28px}
.hms-editorial .hml-trust-grid{list-style:none;margin:0;padding:22px 24px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;border:1px solid #e3e8ed;border-radius:20px;background:#fff}
.hms-editorial .hml-trust-grid li{position:relative;padding:0 0 0 34px;margin:0;font-size:14px}
.hms-editorial .hml-trust-grid li::before{content:"";position:absolute;left:0;top:1px;width:22px;height:22px;border-radius:50%;background:#b9ce00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317222c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat}
.hms-editorial .hml-trust-grid strong{display:block;font-size:15px;font-weight:600;color:#000;line-height:1.35;margin-bottom:4px}
.hms-editorial .hml-trust-grid span{display:block;color:#4b5b69;line-height:1.6}
.hms-editorial .hml-trust-grid a{color:#355d80;font-weight:600;text-decoration:underline;text-underline-offset:3px}
@media(max-width:1024px){.hms-editorial .hml-trust-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.hms-editorial .hml-trust-grid{grid-template-columns:1fr;gap:16px;padding:20px}}
/* Sur l'accueil, le bandeau est dans son propre conteneur */
.hms-editorial .hml-inner>.hml-trust{margin:56px 0 0}

/* 12. Communes desservies (page zones, 15/10/2026) */
.hms-editorial .hml-communes{padding-block:64px 24px}
.hms-editorial .hml-communes>h2{max-width:760px}
.hms-editorial .hml-communes>p{max-width:820px}
.hms-editorial .hml-communes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 36px;margin:32px 0 24px}
.hms-editorial .hml-canton h3{font-size:14px!important;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#263f56!important;margin:0 0 10px;padding-bottom:8px;border-bottom:2px solid #b9ce00}
.hms-editorial .hml-canton ul{list-style:none;margin:0;padding:0;columns:2;column-gap:16px}
.hms-editorial .hml-canton li{font-size:14.5px;padding:3px 0;break-inside:avoid;color:#2b3540}
.hms-editorial .hml-canton a{color:#355d80;font-weight:600;text-decoration:underline;text-underline-offset:3px}
@media(max-width:1024px){.hms-editorial .hml-communes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.hms-editorial .hml-communes-grid{grid-template-columns:1fr;gap:22px}}

/* 13. Section « Pourquoi choisir Habitat Multiservices » (page toiture, 15/10/2026) */
.hms-editorial .hml-why{padding-block:64px 40px}
.hms-editorial .hml-why>h2{max-width:780px}
.hms-editorial .hml-why-list{list-style:none;margin:24px 0 28px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 36px}
.hms-editorial .hml-why-list li{position:relative;padding:0 0 0 36px;font-size:15px;line-height:1.7;color:#2b3540}
.hms-editorial .hml-why-list li::before{content:"";position:absolute;left:0;top:2px;width:24px;height:24px;border-radius:50%;background:#b9ce00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317222c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat}
.hms-editorial .hml-why-list strong{color:#000;font-weight:600}
@media(max-width:767px){.hms-editorial .hml-why-list{grid-template-columns:1fr}}

/* 14. Bouton devis placé juste sous la FAQ (page zones) : il reste dans la bande grise (15/10/2026) */
.hms-editorial .hms-faq:has(+ .hml-page-end:not(:has(h2))){padding-bottom:28px}
.hms-editorial .hms-faq + .hml-page-end:not(:has(h2)){position:relative;background:#F4F6F8;box-shadow:0 0 0 100vmax #F4F6F8;clip-path:inset(0 -100vmax);margin-top:0;padding:8px 0 80px}
@media(max-width:767px){.hms-editorial .hms-faq + .hml-page-end:not(:has(h2)){padding-bottom:56px}}
