/* Couche mobile (< 760 px) : l'attribut data-m est posé sur <html> par mobile.js */
html:not([data-m]) [data-m-only]{display:none!important;}
html[data-m] [data-m-hide]{display:none!important;}

/* Centrage général des sections et du pied de page */
html[data-m] :is(section,footer):not([data-m-left]){text-align:center;}
html[data-m] [data-m-left]{text-align:left!important;}
html[data-m] :is(section,footer) :not([data-m-left],[data-m-left] *)[style*="text-align: left"]{text-align:center!important;}
html[data-m] :is(section,footer) :not([data-m-left],[data-m-left] *)[style*="display: flex"]:not([style*="flex-direction: column"]){justify-content:center!important;}
html[data-m] :is(section,footer) :not([data-m-left],[data-m-left] *)[style*="flex-direction: column"]:is([style*="align-items: flex-start"],[style*="align-items: start"]){align-items:center!important;}
html[data-m] :is(section,footer) :not([data-m-left],[data-m-left] *):is([style*="justify-items: start"],[style*="place-items: start"]){justify-items:center!important;}
html[data-m] :is(section,footer) :not([data-m-left],[data-m-left] *):is([style*="justify-self: start"],[style*="align-self: flex-start"],[style*="justify-self: end"]){justify-self:center!important;align-self:center!important;}
html[data-m] :is(section,footer) :not([data-m-left],[data-m-left] *)[style*="max-width"]:not([style*="position: absolute"],[style*="position: fixed"]){margin-left:auto!important;margin-right:auto!important;}
html[data-m] :is(section,footer) :not([data-m-left],[data-m-left] *):is([style^="width:"],[style*="; width:"]):not([style*="position: absolute"],[style*="position: fixed"],[style*="width: 100%"],[style*="display: flex"] > *,[style*="display: inline-flex"] > *,[style*="display: inline"]){margin-left:auto!important;margin-right:auto!important;justify-self:center!important;}

html[data-m] :is(section,footer) :not([data-m-left] *)[data-slat]{margin-left:0!important;}
html[data-m] :is(section,footer) :not([data-m-left] *)[data-script][style*="padding-left"]{padding-left:0!important;}

/* Héros de l'accueil : tampon centré, vignettes en dessous */
html[data-m] :has(> [data-hero-cards]){flex-wrap:wrap!important;}
html[data-m] [data-hero-cards]{flex:1 1 100%!important;max-width:none!important;margin:0 -20px!important;}

/* Processus : textes explicatifs toujours visibles, sans effet au survol */
html[data-m] [data-proc]{aspect-ratio:auto!important;}
html[data-m] [data-proc-desc]{position:relative!important;inset:auto!important;opacity:1!important;transform:none!important;padding:0!important;background:none!important;}

/* Configurateur : libellé au-dessus, choix en dessous et plus grands */
html[data-m] [data-m-sel]{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:6px 0;}
html[data-m] [data-m-sel] > div{gap:8px!important;}
html[data-m] [data-m-sel] button{min-height:44px;padding:10px 16px!important;font-size:15px!important;}
html[data-m] [data-m-sel] button[data-m-sw]{min-height:0;padding:0!important;width:44px!important;height:44px!important;}

/* Menu : bouton Fermer à droite */
html[data-m] [data-m-close]{align-self:flex-end!important;}

/* Cartes « Ce que vous validez » (3D) */
html[data-m] [data-m-card]{aspect-ratio:auto!important;justify-items:center!important;gap:14px;padding:28px 22px!important;}
html[data-m] [data-m-card] > iconify-icon{place-self:center!important;}

/* Prestations : tous les blocs visibles sur ordinateur et tablette, défilement seulement sur petit écran */
@media (min-width:1100px){html [data-labels]{overflow:visible!important;scroll-snap-type:none!important;}html [data-labels] > [data-label]{flex:1 1 0!important;min-width:0!important;}}
@media (min-width:700px) and (max-width:1099px){html [data-labels]{flex-wrap:wrap!important;overflow:visible!important;scroll-snap-type:none!important;justify-content:center!important;row-gap:60px!important;}html [data-labels] > [data-label]{flex:0 1 calc((100% - 48px) / 3)!important;min-width:0!important;}}
