
				.e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded):not(.e-no-lazyload),
				.e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded):not(.e-no-lazyload) * {
					background-image: none !important;
				}
				@media screen and (max-height: 1024px) {
					.e-con.e-parent:nth-of-type(n+3):not(.e-lazyloaded):not(.e-no-lazyload),
					.e-con.e-parent:nth-of-type(n+3):not(.e-lazyloaded):not(.e-no-lazyload) * {
						background-image: none !important;
					}
				}
				@media screen and (max-height: 640px) {
					.e-con.e-parent:nth-of-type(n+2):not(.e-lazyloaded):not(.e-no-lazyload),
					.e-con.e-parent:nth-of-type(n+2):not(.e-lazyloaded):not(.e-no-lazyload) * {
						background-image: none !important;
					}
				}
			
html body.imd-v720 .imd-v303-section.is-featured .imd-v303-card.imd-v303-card.imd-v303-card .imd-v303-media:has(.imd-v303-labels .is-location-courte-duree) .imd-v600-featured {
  inset: 8px auto auto 116px !important;
}
html body.imd-v720 .imd-v303-section.is-featured .imd-v303-card.imd-v303-card.imd-v303-card .imd-v303-media:has(.imd-v303-labels .is-vente) .imd-v600-featured {
  inset: 8px auto auto 72px !important;
}
html body.imd-v720 .imd-v303-section.is-featured .imd-v303-card.imd-v303-card.imd-v303-card .imd-v303-media:has(.imd-v303-labels .is-location-longue-duree) .imd-v600-featured {
  inset: 8px auto auto 89px !important;
}
html body .imd-v303-card.imd-v303-card .imd-v303-facts > i:has(svg path[d^="M4 11V7"]),
html body .imd-v303-card.imd-v303-card .imd-v303-facts > i:has(svg path[d^="M4 12h16"]) {
  flex-direction: row-reverse !important;
}
html body .imd-v303-section .imd-v303-card.imd-v303-card.imd-v303-card .imd-v303-overlay > .imd-v303-facts {
  margin-left: auto !important;
}
html body.page-id-16286 header.site-header.site-header.site-header.site-header.site-header.site-header.site-header.site-header.site-header.site-header .box.main-menu ul.menu > li > a,
html body.page-id-16286 header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header .box.main-menu ul.menu > li > a,
html body.page-id-16286 .classic-header .user-loged-in > a,
html body.page-id-16286 .classic-header .imd-v28-menu-messages > a {
  color: #111827 !important;
  text-shadow: none !important;
}
body.home .imd-neuf-home-block { display: none !important; }
/* Menu bureau : bleu foncé sur les deux pages de compte. */
@media (min-width: 992px) {
  html body:is(.page-id-17895,.page-id-16286) :is(#menu-menu-principal-immodirect,#menu-menu-principal-immodirect-1) a,
  html body:is(.page-id-17895,.page-id-16286) :is(#menu-menu-principal-immodirect,#menu-menu-principal-immodirect-1) a * {
    color: #0b3d63 !important;
    -webkit-text-fill-color: #0b3d63 !important;
  }
}
/* Accès aux programmes neufs : texte foncé sur fond crème. */
html body.page-id-16286 a#imd-neuf-dashboard-link,
html body.page-id-16286 a#imd-neuf-dashboard-link * {
  color: #183c55 !important;
  -webkit-text-fill-color: #183c55 !important;
}

.imd-v303-search .imd-detail-search { display: none !important; }
body.tax-property_status main.imd-v303-archive ~ main.imd-v303-archive, body.tax-property_province main.imd-v303-archive ~ main.imd-v303-archive, body.tax-property_type main.imd-v303-archive ~ main.imd-v303-archive { display: none !important; }
/* Masquer les modèles remplacés avant le montage de la recherche. */
body:has(#imd-v303-archive) :is(#imd-v287-quarter-hero,#imd-v259-archive,#imd-v284-archive-search,.imdo-hub,.imd-v172-page-hero,#imd-v220-page-hero){display:none!important}

body:is(.tax-property_type,.tax-property_province,.tax-property_status,.post-type-archive-property):has(#imd-v303-archive) #content{display:none!important}

body.home .imd-v303-home-root #imd-projects-home { display: block !important; }
body.home:has(#imd-neuf-search-template) .imd-v303-home-root #imd-projects-home { display: none !important; }
body.home #imd-neuf-selected-home { display: none !important; }
/* Photo définitive du hero dès le premier rendu */
html body.home .imd-v303-home-hero{background:#061b3d!important}
html body.home .imd-v303-home-slides .is-couple{background-image:linear-gradient(90deg,rgba(8,29,50,.82),rgba(8,29,50,.48) 43%,rgba(8,29,50,.04) 80%),url('https://immodirect.ma/wp-content/uploads/2026/10/immodirect-tanger-hero-desktop-scaled.webp')!important;background-position:center!important;background-size:cover!important;opacity:1!important;animation:none!important}
html body.home .imd-v303-home-slides .is-tanger{opacity:0!important;animation:none!important}
@media(max-width:700px){html body.home .imd-v303-home-slides .is-couple{background-image:linear-gradient(180deg,rgba(8,29,50,.10),rgba(8,29,50,.24) 38%,rgba(8,29,50,.78) 100%),url('https://immodirect.ma/wp-content/uploads/2026/10/immodirect-tanger-hero-mobile.webp')!important;background-position:center!important}}

/* ImmoDirect — menu blanc et galerie stable, 17 octobre 2026 */
html body .site-header .main-menu .menu a,html body .sticky-header .main-menu .menu a,html body .site-header .main-menu .menu a span,html body .sticky-header .main-menu .menu a span,html body .imd-v349-mobile-panel a,html body .stellarnav ul li a{color:#fff!important;-webkit-text-fill-color:#fff!important}
html body.single-property #printableArea .property-single-images{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html body.single-property #printableArea .property-single-images .slick-list{padding:0!important;width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
html body.single-property #printableArea .property-single-images:not(.slick-initialized){visibility:visible!important;opacity:1!important;min-height:0!important}
html body.single-property #printableArea .property-single-images:not(.slick-initialized)>.slider-item{display:none!important;float:none!important;width:100%!important;margin:0!important}
html body.single-property #printableArea .property-single-images:not(.slick-initialized)>.slider-item:first-child{display:block!important}
html body.single-property #printableArea .property-single-images .slick-track{margin-left:0!important;margin-right:0!important;left:0!important;transform:none!important;width:100%!important;max-width:100%!important}

/* Priorité sur les anciennes couleurs des fiches et de l’accueil. */
html body header.site-header.site-header.site-header.site-header.site-header.site-header.site-header.site-header.site-header .box.main-menu ul.menu>li>a,html body header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header .box.main-menu ul.menu>li>a{color:#fff!important;-webkit-text-fill-color:#fff!important}


/* Immobilier neuf : hero avec immeuble complet */
html body.post-type-archive-imd_programme .imd-neuf-launch-hero{background-image:linear-gradient(90deg,rgba(7,30,48,.84),rgba(8,39,61,.56) 48%,rgba(9,42,61,.12)),url('https://immodirect.ma/wp-content/uploads/2026/10/immobilier-neuf-hero-scaled.webp')!important;background-position:center center!important;background-size:cover!important}
@media(max-width:700px){html body.post-type-archive-imd_programme .imd-neuf-launch-hero{background-image:linear-gradient(180deg,rgba(7,30,48,.05),rgba(7,30,48,.20) 35%,rgba(7,30,48,.82) 100%),url('https://immodirect.ma/wp-content/uploads/2026/10/immobilier-neuf-hero-scaled.webp')!important;background-position:70% center!important;background-size:cover!important}}

/* Immobilier neuf : hero aligné sur le haut des autres pages */
html body.post-type-archive-imd_programme .sl-mob-menu.sticky{display:none!important}
html body.post-type-archive-imd_programme #primary.imd-neuf-launch{margin-top:-40px!important;position:relative!important;z-index:1!important}
html body.post-type-archive-imd_programme header.site-header{position:relative!important;z-index:10010!important;background:transparent!important}





/* Immobilier neuf : même menu transparent et blanc que les autres pages. */
html body.post-type-archive-imd_programme #primary.imd-neuf-launch{margin-top:-120px!important}
@media(min-width:992px){html body.post-type-archive-imd_programme header.site-header .box.brand .custom-logo-link{visibility:visible!important}}

@media(max-width:991px){html body.post-type-archive-imd_programme header.site-header .box.brand .custom-logo-link{visibility:hidden!important}}
html body.post-type-archive-imd_programme .imd-v349-mobile-panel a,html body.post-type-archive-imd_programme .imd-v349-mobile-panel a *{color:#0b2942!important;-webkit-text-fill-color:#0b2942!important}
html body.post-type-archive-imd_programme .imd-v349-mobile-main a:first-child,html body.post-type-archive-imd_programme .imd-v349-mobile-main a:last-child{color:#fff!important;-webkit-text-fill-color:#fff!important}
/* Menu mobile lisible — 22 octobre 2026 */
@media(max-width:991px){
html body .imd-v349-mobile-panel a,html body .imd-v349-mobile-panel a *{color:#0b2942!important;-webkit-text-fill-color:#0b2942!important}
html body .imd-v349-mobile-main>a:first-child,html body .imd-v349-mobile-main>a:first-child *,html body .imd-v349-mobile-main>a.imd-v354-account-link,html body .imd-v349-mobile-main>a.imd-v354-account-link *{color:#fff!important;-webkit-text-fill-color:#fff!important}
html body .imd-v349-mobile-categories a,html body .imd-v349-mobile-categories a *{color:#075f83!important;-webkit-text-fill-color:#075f83!important}
}

/* TEST-MOBILE *//* Photo définitive du hero dès le premier rendu */
html body.home .imd-v303-home-hero{background:#061b3d!important}
html body.home .imd-v303-home-slides .is-couple{background-image:linear-gradient(90deg,rgba(8,29,50,.82),rgba(8,29,50,.48) 43%,rgba(8,29,50,.04) 80%),url('https://immodirect.ma/wp-content/uploads/2026/10/immodirect-tanger-hero-desktop-scaled.webp')!important;background-position:center!important;background-size:cover!important;opacity:1!important;animation:none!important}
html body.home .imd-v303-home-slides .is-tanger{opacity:0!important;animation:none!important}
@media(max-width:700px){html body.home .imd-v303-home-slides .is-couple{background-image:linear-gradient(180deg,rgba(8,29,50,.10),rgba(8,29,50,.24) 38%,rgba(8,29,50,.78) 100%),url('https://immodirect.ma/wp-content/uploads/2026/10/immodirect-tanger-hero-mobile.webp')!important;background-position:center!important}}

/* ImmoDirect — menu blanc et galerie stable, 17 octobre 2026 */
html body .site-header .main-menu .menu a,html body .sticky-header .main-menu .menu a,html body .site-header .main-menu .menu a span,html body .sticky-header .main-menu .menu a span,html body .imd-v349-mobile-panel a,html body .stellarnav ul li a{color:#fff!important;-webkit-text-fill-color:#fff!important}
html body.single-property #printableArea .property-single-images{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html body.single-property #printableArea .property-single-images .slick-list{padding:0!important;width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
html body.single-property #printableArea .property-single-images:not(.slick-initialized){visibility:visible!important;opacity:1!important;min-height:0!important}
html body.single-property #printableArea .property-single-images:not(.slick-initialized)>.slider-item{display:none!important;float:none!important;width:100%!important;margin:0!important}
html body.single-property #printableArea .property-single-images:not(.slick-initialized)>.slider-item:first-child{display:block!important}
html body.single-property #printableArea .property-single-images .slick-track{margin-left:0!important;margin-right:0!important;left:0!important;transform:none!important;width:100%!important;max-width:100%!important}

/* Priorité sur les anciennes couleurs des fiches et de l’accueil. */
html body header.site-header.site-header.site-header.site-header.site-header.site-header.site-header.site-header.site-header .box.main-menu ul.menu>li>a,html body header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header.sticky-header .box.main-menu ul.menu>li>a{color:#fff!important;-webkit-text-fill-color:#fff!important}


/* Immobilier neuf : hero avec immeuble complet */
html body.post-type-archive-imd_programme .imd-neuf-launch-hero{background-image:linear-gradient(90deg,rgba(7,30,48,.84),rgba(8,39,61,.56) 48%,rgba(9,42,61,.12)),url('https://immodirect.ma/wp-content/uploads/2026/10/immobilier-neuf-hero-scaled.webp')!important;background-position:center center!important;background-size:cover!important}
@media(max-width:700px){html body.post-type-archive-imd_programme .imd-neuf-launch-hero{background-image:linear-gradient(180deg,rgba(7,30,48,.05),rgba(7,30,48,.20) 35%,rgba(7,30,48,.82) 100%),url('https://immodirect.ma/wp-content/uploads/2026/10/immobilier-neuf-hero-scaled.webp')!important;background-position:70% center!important;background-size:cover!important}}

/* Immobilier neuf : hero aligné sur le haut des autres pages */
html body.post-type-archive-imd_programme .sl-mob-menu.sticky{display:none!important}
html body.post-type-archive-imd_programme #primary.imd-neuf-launch{margin-top:-40px!important;position:relative!important;z-index:1!important}
html body.post-type-archive-imd_programme header.site-header{position:relative!important;z-index:10010!important;background:transparent!important}





/* Immobilier neuf : même menu transparent et blanc que les autres pages. */
html body.post-type-archive-imd_programme #primary.imd-neuf-launch{margin-top:-120px!important}
@media(min-width:992px){html body.post-type-archive-imd_programme header.site-header .box.brand .custom-logo-link{visibility:visible!important}}

@media(max-width:991px){html body.post-type-archive-imd_programme header.site-header .box.brand .custom-logo-link{visibility:hidden!important}}
html body.post-type-archive-imd_programme .imd-v349-mobile-panel a,html body.post-type-archive-imd_programme .imd-v349-mobile-panel a *{color:#0b2942!important;-webkit-text-fill-color:#0b2942!important}
html body.post-type-archive-imd_programme .imd-v349-mobile-main a:first-child,html body.post-type-archive-imd_programme .imd-v349-mobile-main a:last-child{color:#fff!important;-webkit-text-fill-color:#fff!important}
/* Menu mobile lisible — 22 octobre 2026 */
@media(max-width:991px){
html body .imd-v349-mobile-panel a,html body .imd-v349-mobile-panel a *{color:#0b2942!important;-webkit-text-fill-color:#0b2942!important}
html body .imd-v349-mobile-main>a:first-child,html body .imd-v349-mobile-main>a:first-child *,html body .imd-v349-mobile-main>a.imd-v354-account-link,html body .imd-v349-mobile-main>a.imd-v354-account-link *{color:#fff!important;-webkit-text-fill-color:#fff!important}
html body .imd-v349-mobile-categories a,html body .imd-v349-mobile-categories a *{color:#075f83!important;-webkit-text-fill-color:#075f83!important}
}
