/* Phone path of the home page map (terraincheck.fr). Loaded after the shared mobile_flow.css; every rule hangs on
   html.lcm (set only while max-width 720 px matches) or html.lcm-step, so a computer renders exactly as before. */
.lcm-top{display:none}

/* 1 · first screen: «Ma position» and «Ouvrir la carte» under the search field, the text link steps aside */
html.lcm .search-meta a[data-map-open]{display:none}
html.lcm .lcm-start{margin:12px 0 4px}
html.lcm .lcm-start .geo-btn,html.lcm .lcm-start .lcm-open{font-family:inherit}

/* 2 · the map step: the whole screen, the page under it does not move */
html.lcm:not(.lcm-step) #picker-map{touch-action:pan-y!important}
html.lcm-step #picker{position:fixed!important;inset:0!important;z-index:800;display:block!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;border-radius:0!important;background:#0e353b;overflow:hidden}
html.lcm-step #picker [data-lc-pm="mapcol"]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important}
html.lcm-step #picker #picker-map{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;border-radius:0!important;touch-action:none!important}
html.lcm-step #picker .leaflet-control-zoom,html.lcm-step #picker .leaflet-control-fullscreen,html.lcm-step #picker [data-lc-pm="fs"]{display:none!important}
html.lcm-step #picker .lcm-top{display:flex;align-items:flex-start;gap:8px;position:absolute;top:0;left:0;right:0;z-index:840;padding:calc(8px + env(safe-area-inset-top)) 10px 8px;background:linear-gradient(#fff 70%,rgba(255,255,255,0));pointer-events:none}
html.lcm-step #picker .lcm-top>*{pointer-events:auto}
html.lcm-step #picker .lcm-back{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;padding:0;border:0;border-radius:12px;background:#fff;color:var(--green);box-shadow:0 2px 10px rgba(16,48,43,.2);cursor:pointer}
html.lcm-step #picker .lcm-title{flex:1 1 auto;display:flex;align-items:center;min-width:0;min-height:48px;margin:0;padding:6px 14px;border-radius:12px;background:#fff;box-shadow:0 2px 10px rgba(16,48,43,.2);color:var(--green);font:600 14.5px/1.25 var(--font,system-ui,sans-serif)}
html.lcm-step #picker .lc-pm-status{top:calc(var(--lcm-top,64px) + 8px)!important;bottom:auto!important;max-width:calc(100% - 28px)}
html.lcm-step #picker .lc-pm-toast{top:calc(var(--lcm-top,64px) + 8px)!important;bottom:auto!important}

/* 3 · the card from the bottom: parcel, one main button, change */
html.lcm-step #picker aside[data-lc-pm="panel"]:not([hidden]){position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;z-index:850;display:grid;grid-template-columns:1fr;gap:0;width:auto!important;max-width:none!important;margin:0!important;padding:10px 16px calc(10px + env(safe-area-inset-bottom))!important;border:0!important;border-radius:20px 20px 0 0!important;background:#fff!important;color:var(--green)!important;box-shadow:0 -6px 34px rgba(16,48,43,.26)!important;transform:none!important}
html.lcm-step #picker aside[data-lc-pm="panel"][hidden]{display:none!important}
html.lcm-step #picker aside[data-lc-pm="panel"]:not([hidden])::before{content:"";justify-self:center;width:40px;height:4px;margin:0 0 10px;border-radius:2px;background:#d9d2c5}
html.lcm-step #picker #selected-ref{display:grid;gap:2px;margin:0;padding:0;background:none;border:0;color:var(--green)}
html.lcm-step #picker #selected-ref .lcm-l1{font:600 22px/1.25 Georgia,"Times New Roman",serif}
html.lcm-step #picker #selected-ref .lcm-l2{font:500 15px/1.35 var(--font,system-ui,sans-serif);color:var(--muted)}
html.lcm-step #picker #confirm-parcel{width:100%;min-height:54px;margin:12px 0 0;font-size:17px;border-radius:13px}
html.lcm-step #picker #preview-feedback{margin:6px 0 0;font-size:13.5px;line-height:1.35;color:var(--muted);text-align:center}
html.lcm-step #picker #preview-feedback:empty{display:none}
html.lcm-step #picker .lcm-delivery{display:block;margin:8px 0 2px;text-align:center;font-size:13.5px;line-height:1.35;color:var(--muted)}
html.lcm-step #picker .lcm-change{display:flex;align-items:center;justify-content:center;min-height:46px;margin:6px 0 0;padding:0 8px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--green);font:600 15px/1.2 var(--font,system-ui,sans-serif);cursor:pointer}
html.lcm-step #picker:has(aside[data-lc-pm="panel"]:not([hidden])) .lcm-tools button:nth-child(n+4){display:none}
html.lcm-step #picker #draw-notice[hidden],html.lcm-step #picker .draw-tools[hidden]{display:none!important}
html.lcm-cross-on #picker aside[data-lc-pm="panel"]{display:none!important}
html.lcm-cross-on #picker .lc-pm-status{display:none!important}
html.lcm-cross-on .lcm-crossbar{font-family:inherit}
html.lcm-step #picker .lc-pm-locate,html.lcm-step #picker .lc-pm-north{display:none!important}

@media(min-width:721px){.lcm-start{display:none}}

/* === MOBILE-6 FR 2026-11-15: compact consent banner (layout only), hero first screen, bigger touch areas, 12 px floor === */
@media(max-width:720px){
html #ads-choice{left:0;right:0;bottom:0;border-width:1px 0 0;border-radius:12px 12px 0 0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr;gap:6px}
html #ads-choice[hidden]{display:none}
html #ads-choice p{grid-column:1/-1;margin:0;font-size:12px;line-height:1.3}
html #ads-choice p a{padding:15px 0}
html #ads-choice button{margin:0;min-height:44px;padding:0 8px;font-size:14px}
html body .hero h1,html body #hero-title{font-size:36px!important;line-height:1.08!important;max-width:none}
html body .hero .lead{font-size:16px;line-height:1.4}
html body .hero .credit,html body .home .hero>.credit,html body .parcel-map .credit{font-size:12px!important}
.hero-bottom .wrap span{font-size:12px}
.gallery .rv .loc,.gallery .rv .src2{font-size:12px}
html.lcm-step #picker .leaflet-control-attribution,html.lcm-step #picker .leaflet-control-attribution a{font-size:12px!important}
html.lcm-step #picker .leaflet-control-attribution a{display:inline-block;padding:15px 3px;margin:-15px 0}
html.lcm-step #picker .map-col .map-modes button{min-height:44px;font-size:13px}
.lc-europe nav a{display:inline-block;padding:12px 0}
main .muted small a{display:inline-block;padding:14px 4px;margin:-14px 0}
.fr-footer-col a{display:inline-block;padding:11px 0}
}
/* === end MOBILE-6 FR === */

/* === MOBILE-6b FR 2026-11-15: all pages on phones: compact consent banner (layout only), price line right under the search on the home page, 12 px floor, 44 px touch areas === */
@media(max-width:720px){
html #ads-choice{left:0;right:0;bottom:0;border-width:1px 0 0;border-radius:12px 12px 0 0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr;gap:6px}
html #ads-choice[hidden]{display:none}
html #ads-choice p{grid-column:1/-1;margin:0;font-size:13px;line-height:1.3}
html #ads-choice p a{display:inline-block;padding:15px 4px;margin:-15px 0}
html #ads-choice button{margin:0;min-height:44px;padding:0 8px;font-size:14px}
html body .hero-content{display:flex;flex-direction:column}
html body .hero-content>*{order:6}
html body .hero-content>.eyebrow{order:0}
html body .hero-content>h1{order:1}
html body .hero-content>.lead{order:2}
html body .hero-content>#recherche,html body .hero-content>.search-form{order:3}
html body .hero-content>.suggestions,html body .hero-content>.search-feedback{order:4}
html body .hero-content>.search-meta{order:5;margin:8px 0 0}
html body .hero-content>.hero-example{order:7}
html body .hero-content>.lcm-start{order:8}
html body .hero h1,html body #hero-title{font-size:32px!important;line-height:1.06!important;margin:8px 0 0!important}
html body .hero .lead,html body .hero-content>.lead{font-size:15px!important;line-height:1.36!important;margin:8px 0 12px!important}
html body .hero-content>.eyebrow{margin:0 0 4px!important;font-size:13px!important}
html body .credit{font-size:12px!important}
.lc-europe nav a{display:inline-block;padding:12px 0}
.brand{min-height:44px;display:inline-flex;align-items:center}
.fr-footer-col a{display:inline-block;padding:11px 0}
}
/* === end MOBILE-6b FR === */
