/* Version téléphone de maisondelaclef.com, posée le 18/11/2026 (Transacts). Elle ne s'applique que sous 981 px de large,
   le rendu sur ordinateur ne change pas. Chargée par inc_php/head_seo.php avec la balise viewport. Retrait, retirer ces
   deux lignes de head_seo.php, le site revient à l'identique. */
@media only screen and (max-width: 980px) {
html body{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html body div#global{width:auto;max-width:100%;margin:0;padding:12px 14px;box-sizing:border-box}
html body div#header{height:auto;overflow:hidden}
html body div#header_mid,html body #dropdown_menu,html body div#footer{width:auto;max-width:100%}
html body div#header_left{float:left;width:57%}
html body div#logo img{display:block;width:100%;max-width:376px;height:auto}
html body div#header_right{float:right;width:41%;height:auto;aspect-ratio:265/150;background-size:contain;background-position:right center}
html body div#header_mid>div[style]{float:none!important;clear:both;margin:8px 14px 10px!important}
html body div#header_mid>div[style] img{max-width:150px}
html body div#center{overflow:visible;padding-bottom:20px}
html body div#content,html body div#sidebar{float:none;width:auto}
html body div#sidebar{margin-top:24px}
html body div#global img{max-width:100%;height:auto}
html body div#global iframe,html body div#global video,html body div#global object,html body div#global embed{max-width:100%}
html body div#content table{max-width:100%}
html body div#content table[cellpadding="20"] td{padding:6px}
html body .detail_produit_img{float:none!important;display:block;margin:0 auto 15px;max-width:100%;box-sizing:border-box}
html body div#global .liste_produit{clear:both}
html body div#content p[style*="margin-left"]{margin-left:0!important}
html body div#global .liste_produit img{max-width:42%;height:auto}
html body div#content h1{font-size:26px;line-height:1.2}
html body div#content h2{font-size:20px;line-height:1.25}
html body div#content p,html body div#content li{line-height:1.5}
html body div#breadcrumbs{font-size:12px}
html body .big_red{font-size:40px}
html body .blue_title{font-size:28px}
html body .inter{font-size:18px}
html body #slideshow_wrapper{margin:16px 0 0}
html body #slideshow{width:100%;height:auto;aspect-ratio:678/400}
html body #slideshow img{width:100%;height:100%}
html body div#logos_homepage{overflow:hidden}
html body div#content img[style*="width: 300px"][style*="float"]{float:none!important;display:block;margin:15px auto!important}
html body div#content div[style*="left: 20px"]{left:0!important}
html body div#logos_homepage img{max-width:50%}
html body .homebox,html body .homebox_right{width:auto;float:none;margin:15px 0 0;overflow:hidden}
html body .homebox_h2,html body .homebox_right_h2{float:none;width:auto;overflow:hidden;padding:20px 10px 0 0}
html body form#devis table,html body form#devis tbody,html body form#devis tr,html body form#devis td{display:block;width:auto!important}
html body form#devis input[type=text],html body form#devis textarea,html body form#devis select{width:100%;max-width:100%;box-sizing:border-box;font-size:16px}
html body #menu_horiz{position:relative}
html body #menu_horiz li{position:static;padding:0}
html body #menu_horiz a{height:34px;padding:6px 10px 0;font-size:14px}
html body #menu_horiz ul{top:100%;left:0;right:0}
html body #menu_horiz ul a{height:auto;line-height:1.3;white-space:normal;padding:12px 14px;font-size:15px}
html body #menu_horiz ul li:first-child a:after{display:none}
html body div#content [style*="width"]{max-width:100%;box-sizing:border-box}
html body div#content div[style*="width:402px"]{float:none!important;width:auto!important;margin:0 0 10px!important}
html body a.css3button,html body a.css3button_red{display:inline-block;font-size:14px;padding:8px 18px}
html body .bloc_sidebar ul li ul{font-size:14px}
html body .bloc_sidebar ul li{margin-bottom:8px}
html body div#footer{padding:12px 14px;box-sizing:border-box}
html body div#footer p{font-size:13px;line-height:1.6}
html body .cc-window{max-width:100%;box-sizing:border-box}
html body div#header_right{position:relative}
html body a.tel-entete{position:absolute;top:0;left:0;right:0;bottom:0;display:block!important}
html body #lightbox-container-image-box{max-width:calc(100% - 20px)!important;height:auto!important;box-sizing:border-box}
html body #lightbox-image{max-width:100%;height:auto}
html body #lightbox-nav-btnPrev,html body #lightbox-nav-btnNext{height:100%!important}
html body #lightbox-container-image-data-box{max-width:calc(100% - 20px)!important;box-sizing:border-box;font-size:13px}
}
/* Souris dans une fenetre etroite, le sous-menu reste colle sous son entree, sinon il se ferme pendant le trajet. */
@media only screen and (max-width: 980px) and (hover: hover) and (pointer: fine) {
html body #menu_horiz li{position:relative}
html body #menu_horiz ul{top:100%;right:auto;min-width:240px}
html body #menu_horiz li > ul{display:block;visibility:hidden;transition:visibility 0s .35s}
html body #menu_horiz li:hover > ul{visibility:visible;transition-delay:0s}
}
/* Les sous-menus de Coffres-forts (6e entree) et Autres produits (7e) s ouvrent vers la gauche tant que leur entree reste sur la premiere ligne du menu, sinon ils sortent de l ecran a droite (633 a 888 px, cross-check r2). */
@media only screen and (min-width: 633px) and (max-width: 980px) and (hover: hover) and (pointer: fine) {
html body #menu_horiz > li:nth-child(6) > ul{left:auto;right:0}
}
@media only screen and (min-width: 757px) and (max-width: 980px) and (hover: hover) and (pointer: fine) {
html body #menu_horiz > li:nth-child(7) > ul{left:auto;right:0}
}
