/* ═══════════════════════════════════════════════════════════════
   Le Meurice Immobilier — WordPress & Elementor compatibility.
   The design itself is in style.css (unchanged). This file only
   removes what WordPress and Elementor add around the pages.
   ═══════════════════════════════════════════════════════════════ */

/* Page content wrapper: no box of its own */
.lm-content{display:contents}

/* Elementor: the section / column / widget boxes around the HTML widget
   take no space, so the page markup lays out exactly as on the original site.
   (Inside the Elementor editor they stay visible, so blocks can be selected.) */
body:not(.elementor-editor-active) .lm-content .elementor:has(.elementor-widget-html),
body:not(.elementor-editor-active) .lm-content .elementor-section:has(.elementor-widget-html),
body:not(.elementor-editor-active) .lm-content .elementor-container:has(.elementor-widget-html),
body:not(.elementor-editor-active) .lm-content .elementor-column:has(.elementor-widget-html),
body:not(.elementor-editor-active) .lm-content .elementor-widget-wrap:has(.elementor-widget-html),
body:not(.elementor-editor-active) .lm-content .e-con:has(.elementor-widget-html),
body:not(.elementor-editor-active) .lm-content .e-con-inner:has(.elementor-widget-html),
body:not(.elementor-editor-active) .lm-content .elementor-widget-html,
body:not(.elementor-editor-active) .lm-content .elementor-widget-html > .elementor-widget-container{display:contents}

/* In the editor (and if :has() is not supported): no spacing around the widget */
.lm-content .elementor-section,.lm-content .elementor-container,.lm-content .elementor-column,
.lm-content .elementor-widget-wrap,.lm-content .elementor-widget-html,.lm-content .elementor-widget-container,
.lm-content .e-con,.lm-content .e-con-inner{padding:0;margin:0;max-width:none;--padding-top:0;--padding-bottom:0;--padding-left:0;--padding-right:0;--gap:0;--row-gap:0;--column-gap:0;--widgets-spacing:0;--kit-widget-spacing:0}
.lm-content .elementor-section .elementor-container{max-width:none!important}
.lm-content .elementor-widget-wrap.elementor-element-populated{padding:0!important}
.lm-content .elementor-widget:not(:last-child){margin-block-end:0}
.elementor-editor-active .lm-content main{min-height:40px}

/* Elementor's image reset must not override the design's photos */
.lm-content .elementor img{border-radius:0;box-shadow:none}

/* WordPress admin bar (only when logged in) */
.admin-bar .site-header{top:32px}
.admin-bar .menu{top:32px}
@media (max-width:782px){
  .admin-bar .site-header{top:46px}
  .admin-bar .menu{top:46px}
  #wpadminbar{position:fixed}
}

/* Other pages (mentions légales, politique de confidentialité, articles) */
.lm-page{padding-bottom:clamp(64px,8vw,120px)}
.lm-prose{max-width:820px;font-size:17px;line-height:1.75}
.lm-prose>:first-child{margin-top:0}
.lm-prose h2,.lm-prose h3{font-family:var(--f-display);font-weight:400;line-height:1.2;margin:1.8em 0 .5em}
.lm-prose h2{font-size:clamp(28px,3vw,38px)}
.lm-prose h3{font-size:clamp(22px,2.2vw,28px)}
.lm-prose a{color:var(--bronze);text-decoration:underline;text-underline-offset:3px}
.lm-prose img{height:auto}
.lm-prose ul,.lm-prose ol{padding-left:1.2em}
.lm-list{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.lm-list li{display:flex;justify-content:space-between;gap:24px;padding:18px 0;border-bottom:1px solid var(--line)}
.lm-list a{font-family:var(--f-display);font-size:24px;text-decoration:none;color:inherit}
.lm-list span{color:var(--graphite);font-size:14px;white-space:nowrap}
