/* Tous les styles sont limités au site MGO. */
body .mgo-hero{background-image:linear-gradient(90deg,rgba(1,18,32,.84),rgba(1,18,32,.38)),var(--mgocf-hero)!important;background-size:cover!important;background-position:center center!important}
body .mgo-hero:after,body .mgo-hero__glow{pointer-events:none!important}
body .mgo-hero h1,body .mgo-hero .mgo-lead,body .mgo-hero .mgo-eyebrow{color:#fff!important;text-shadow:0 2px 8px rgba(0,0,0,.72)!important}
body .mgo-home-photos__grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important}
body .mgo-home-photos__grid .mgocf-top{grid-column:span 2!important;display:block!important}
body .mgo-home-photos__grid .mgocf-bottom{grid-column:span 3!important;display:block!important}
body .mgo-home-photos__grid img{max-width:100%!important;display:block!important;object-fit:contain!important;background:#fff!important}
body .mgo-gallery-slot{visibility:hidden!important}
body .mgo-card .mgocf-chopper-caption{display:block;text-align:center;font-weight:800;font-size:18px;color:#062f5f;padding:10px 0}
body #modeles .mgo-card{overflow:visible!important}
body #modeles .mgo-card .mgo-media{overflow:hidden!important;border-radius:20px 20px 0 0}
body #modeles .mgo-card:hover{transform:none!important}
body .mgocf-info-batteries{max-width:1180px;margin:28px auto 46px;padding:25px;border-radius:20px;background:#fff3da;color:#50320c;border:2px solid #f1b35a;box-sizing:border-box}
body .mgocf-info-batteries h2{margin:0 0 12px;color:#50320c;font-size:clamp(23px,3vw,35px)}
body .mgocf-info-batteries p{font-size:17px;line-height:1.6;margin:0}
body .mgocf-email{display:block;margin:16px auto;text-align:center;font-weight:700;overflow-wrap:anywhere}
/* Modal déplacée hors des cartes : élimine le découpage par overflow / transforms. */
body > .mgo-modal,body > .mgocf-modal{position:fixed!important;inset:0!important;z-index:2147483600!important;background:rgba(0,0,0,.9)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:clamp(12px,3vw,28px)!important;box-sizing:border-box!important;overflow:auto!important;transform:none!important}
body > .mgo-modal[hidden],body > .mgocf-modal[hidden]{display:none!important}
body > .mgo-modal .mgo-modal__box,body > .mgocf-modal .mgo-modal__box{position:relative!important;box-sizing:border-box!important;max-width:100%!important;width:min(960px,calc(100vw - 48px))!important;margin:auto!important;overflow:visible!important;transform:none!important}
body > .mgo-modal .mgo-video,body > .mgocf-modal .mgo-video{width:100%!important;aspect-ratio:16/9!important;overflow:visible!important;position:relative!important;background:#000!important}
body > .mgo-modal video,body > .mgocf-modal video{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important}
body > .mgo-modal .mgo-close,body > .mgocf-modal .mgo-close{position:absolute!important;right:0!important;top:-45px!important;color:white!important;z-index:3!important;cursor:pointer!important}
body > .mgo-modal .mgocf-fullscreen{display:block!important;margin:12px 0 0 auto!important;padding:10px 18px!important;border-radius:8px!important;background:#fff!important;color:#111!important;font-weight:700!important;border:0!important;cursor:pointer!important}
@media(max-width:640px){body .mgo-home-photos__grid{gap:8px!important}body .mgo-home-photos__grid .mgocf-top{grid-column:span 2!important}body .mgo-home-photos__grid .mgocf-bottom{grid-column:span 3!important}body > .mgo-modal .mgo-modal__box{width:calc(100vw - 24px)!important}body .mgocf-info-batteries{margin:20px 12px;padding:18px}}
/* Priorité sur les anciens sélecteurs qui masquaient les 2e et 5e images */
body .mgo-home-photos__grid img.mgocf-bottom:nth-of-type(4),body .mgo-home-photos__grid img.mgocf-bottom:nth-of-type(5){display:block!important;visibility:visible!important;height:230px!important;width:100%!important}
body .mgo-home-photos__grid .mgocf-bottom{display:block!important;visibility:visible!important}

body .mgocf-brevo-link{display:inline-block;color:#fff!important;text-decoration:underline!important;margin:10px 16px;font-weight:700}
body>.mgocf-modal .mgo-video iframe{width:100%!important;height:100%!important;border:0!important}
body>.mgocf-modal .mgo-modal__box{width:min(960px,calc(100vw - 48px))!important}
