.ep-mobile-nav{display:none}
@media screen and (max-width:800px){
  :root{--ep-nav-space:calc(68px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:var(--ep-nav-space)}
  body{padding-bottom:var(--ep-nav-space)}
  .ep-barre-mobile{display:none!important}
  body:has(.ep-barre-mobile) .ep-footer{padding-bottom:32px}
  .ep-mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:950;background:white;border-top:1px solid #dbe3ee;padding:4px max(6px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));gap:3px;box-shadow:0 -3px 16px #142c4910}
  .ep-mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;border-radius:10px;color:#334155;font:600 12px/1.3 system-ui,sans-serif;text-decoration:none}
  .ep-mobile-nav a[aria-current]{position:relative;color:#1846b5}
  .ep-mobile-nav a:last-child{color:white;background:#204fc6}
  .ep-mobile-nav a:last-child[aria-current]{background:#153b98}
  .ep-mobile-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
  body:has(dialog[open],#ep-measure-consent:not([hidden]),.ep-menu-bouton[aria-expanded="true"],input:focus:not([type=checkbox]):not([type=radio]):not([type=file]),textarea:focus,select:focus) .ep-mobile-nav{display:none}
  body main p{font-size:max(1rem,1em);line-height:1.55}
  body main input:not([type=checkbox]):not([type=radio]), body main select, body main textarea{font-size:16px;max-width:100%;scroll-margin-top:90px}
  body main :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,button,.bouton),.ep-menu-bouton,.ep-gallery-dialog button,body #ep-measure-preferences{min-height:44px}
  .ep-menu-bouton,.ep-accroche__point,.ep-accroche__pause,.ep-gallery-close,.ep-gallery-next,.ep-gallery-prev{min-width:44px}
  .ep-section--contact .ep-champs-duo,#contact-conditions,.ep-section--simulateur .deux-colonnes{grid-template-columns:minmax(0,1fr)}
  .ep-fichiers li{flex-wrap:wrap}
  .ep-gallery-stage-media:not(.is-zoomed){touch-action:pan-y pinch-zoom}
  .ep-gallery-dialog .ep-gallery-close{position:sticky;top:0}
  .ep-gallery-stage-media video{max-width:100%;object-fit:contain}
}
/* Shared layout adjustments for compact screens. */
.sim #bandeau-demo:empty{display:none}
@media(max-width:800px){
  .ep-header .ep-header__barre{gap:8px;min-height:60px}
  .ep-header .ep-marque{min-width:0;gap:7px}
  .ep-header .ep-marque__texte{min-width:0}
  .ep-header .ep-marque__sous{white-space:normal;font-size:12px;line-height:1.22}
  .ep-header .ep-menu-bouton{flex:0 0 auto;padding-inline:10px;font-size:14px}
  .ep-header .ep-header__tel{flex:0 0 auto;white-space:nowrap}
  .ep-accroche .ep-accroche__commandes:not([hidden]){inset:auto 0 8px;display:flex;align-items:center;justify-content:center;gap:0}
  .ep-accroche .ep-accroche__points-nav,.ep-accroche .ep-accroche__fleche{position:static;transform:none}
  .ep-accroche .ep-accroche__points-nav{order:1;gap:0}
  .ep-accroche .ep-accroche__fleche--suiv{order:2}
  .ep-accroche .ep-accroche__pause{margin:0}
  .ep-accroche .ep-accroche__commandes button{flex:0 0 44px;width:44px;height:44px}
  .ep-accroche .ep-accroche__point::before{width:7px;height:7px}
  .ep-accroche .ep-accroche__contenu{margin-bottom:32px}
  .ep-gallery-dialog .ep-gallery-header{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;align-items:center;gap:4px}
  .ep-gallery-dialog .ep-gallery-header h2{font-size:clamp(16px,4.2vw,20px);line-height:1.2;overflow-wrap:anywhere}
  .ep-gallery-dialog .ep-gallery-eyebrow{font-size:10px;letter-spacing:.06em}
  .ep-gallery-dialog .ep-photo-zoom{display:grid;place-items:center;width:44px;height:44px;font-size:0;padding:0;margin:0}
  .ep-gallery-dialog .ep-photo-zoom[hidden]{display:none}
  .ep-gallery-dialog .ep-photo-zoom::before{content:'';width:22px;height:22px;background:currentColor;mask:var(--ep-zoom-icon) center/contain no-repeat;-webkit-mask:var(--ep-zoom-icon) center/contain no-repeat}
  .ep-gallery-dialog .ep-gallery-close,.ep-gallery-dialog .ep-gallery-prev,.ep-gallery-dialog .ep-gallery-next{width:44px;height:44px;font-size:22px;padding:0}
  .ep-gallery-dialog .ep-gallery-description{margin:6px 0;gap:4px 8px}
  .ep-gallery-dialog .ep-gallery-caption{font-size:14px}
  .ep-gallery-dialog .ep-gallery-stage-media{height:clamp(165px,43svh,440px);min-height:0}
  main .ep-hero--court .ep-hero__intro,.ep-accroche .ep-accroche__phrase{font-size:16px;line-height:1.45}
}
@media(max-width:560px){
  .ep-header .ep-header__tel .ep-header__tel-num{display:none}
  .ep-header .ep-header__tel{width:44px;height:44px;display:grid;place-items:center}
}
.ep-photo-zoom[aria-pressed="false"]{--ep-zoom-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%227%22%2F%3E%3Cpath%20d%3D%22m15%2015%206%206%20M7%2010h6%20M10%207v6%22%2F%3E%3C%2Fsvg%3E")}
.ep-photo-zoom[aria-pressed="true"]{--ep-zoom-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%227%22%2F%3E%3Cpath%20d%3D%22m15%2015%206%206%20M7%2010h6%22%2F%3E%3C%2Fsvg%3E")}


@media(max-width:800px){
  .ep-accroche .ep-accroche__commandes .ep-accroche__fleche,
  .ep-accroche .ep-accroche__commandes .ep-accroche__pause{display:none}
  .ep-mobile-nav a[aria-current]::after{content:"";position:absolute;bottom:1px;width:18px;height:3px;background:currentColor;border-radius:2px}
  html[data-ep-route="/estimation"] .ep-hero--court{padding-block:20px 12px}
  html[data-ep-route="/estimation"] .ep-section--simulateur{padding-top:12px}
  html[data-ep-route="/estimation"] .ep-hero__intro{margin:6px auto 0}
  .ep-section--simulateur .ep-atouts{margin-top:18px}
}
