/* V187 — Ergonomie responsive et visionneuse photo (toutes langues) */
html{max-width:100%;scroll-padding-top:90px}body{max-width:100%;overflow-x:clip}img,video,svg{max-width:100%}img{height:auto}picture{max-width:100%}input,select,textarea{max-width:100%} .wrap,.section,.container,.hero-inner,.tv-wrap{min-width:0}
.os-photo-zoom{cursor:zoom-in!important} .os-lightbox{position:fixed;inset:0;z-index:2147483640;background:rgba(3,11,23,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:clamp(12px,3vw,30px);color:#fff;touch-action:pan-y;overscroll-behavior:contain}.os-lightbox[hidden]{display:none!important}.os-lightbox img{display:block;max-width:min(96vw,1600px);max-height:calc(100dvh - 115px);width:auto;height:auto;object-fit:contain;box-shadow:0 20px 70px #0008;border-radius:8px;user-select:none}.os-lightbox .os-lightbox-imgwrap{flex:1;width:100%;min-height:0;display:flex;justify-content:center;align-items:center}.os-lightbox .os-lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1200px;width:100%;min-height:58px}.os-lightbox .os-lightbox-caption{flex:1;text-align:center;font-size:clamp(12px,2.3vw,16px);color:#e6eff8;overflow-wrap:anywhere}.os-lightbox button{border:1px solid #80c9e1;background:#10283d;color:#fff;border-radius:50%;min-width:44px;min-height:44px;display:grid;place-items:center;font:600 26px/1 system-ui;cursor:pointer}.os-lightbox button:hover,.os-lightbox button:focus-visible{background:#23708c;outline:2px solid #8deaff;outline-offset:2px}.os-lightbox .os-lightbox-close{font-size:25px}body.os-lightbox-open{overflow:hidden!important}
@media(max-width:1180px){
 body:has(.site-header) .site-header{height:auto!important;min-height:0!important;position:relative!important}
 body:has(.site-header) .site-header .head{height:auto!important;min-height:0!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:12px!important;padding:14px 18px!important}
 body:has(.site-header) .site-header .back{position:static!important;transform:none!important;order:0!important;flex:1 1 170px!important;white-space:normal!important}
 body:has(.site-header) .site-header .logo{position:static!important;transform:none!important;margin:0!important;order:1!important;flex:0 0 auto!important}
 body:has(.site-header) .site-header .rightbar{order:2!important;margin:0!important;width:auto!important;flex:0 1 auto!important;justify-content:center!important}
 body:has(.site-header) .site-header .navlinks{position:static!important;transform:none!important;order:3!important;flex:1 0 100%!important;width:100%!important;margin:0!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:10px 22px!important;white-space:normal!important}
}
@media(max-width:820px){
 :root{--os-pad:clamp(14px,4vw,26px)}
 body:has(.site-header) .wrap{width:100%!important;max-width:100%!important;padding-left:var(--os-pad)!important;padding-right:var(--os-pad)!important}
 body:has(.site-header) .hero{padding-top:34px!important;padding-bottom:38px!important}
 body:has(.site-header) .hero h1{font-size:clamp(34px,8vw,58px)!important;line-height:1.08!important;overflow-wrap:anywhere}
 body:has(.site-header) .lead{font-size:clamp(15px,3vw,18px)!important;line-height:1.6!important}
 body:has(.site-header) .totem-grid,body:has(.site-header) .health-tv-grid,body:has(.site-header) .health-concept-grid,body:has(.site-header) .public-engine-grid,body:has(.site-header) .faq-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body:has(.site-header) .faces{scroll-snap-type:x proximity;overscroll-behavior-x:contain}
 body:has(.site-header) .faces .face{scroll-snap-align:start}
 body:has(.site-header) .demo{min-width:0!important}
 body:not(:has(.site-header)) .hero-inner,body:not(:has(.site-header)) .section,body:not(:has(.site-header)) .faq-section,body:not(:has(.site-header)) .tv-wrap,body:not(:has(.site-header)) .engine-inner{padding-left:var(--os-pad)!important;padding-right:var(--os-pad)!important}
 body:not(:has(.site-header)) .cards,body:not(:has(.site-header)) .faq-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body:not(:has(.site-header)) .tv-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:600px){
 body:has(.site-header) .site-header .head{padding:12px 14px!important;gap:9px!important;justify-content:space-between!important}
 body:has(.site-header) .site-header .back{flex:1 1 100%!important;order:0!important;text-align:center!important;font-size:11px!important}
 body:has(.site-header) .site-header .logo{order:1!important;flex:1 1 100%!important;text-align:center!important;font-size:clamp(18px,5vw,24px)!important;letter-spacing:.12em!important}
 body:has(.site-header) .site-header .rightbar{order:2!important;width:100%!important;flex:1 1 100%!important;display:flex!important;flex-wrap:wrap!important;gap:10px!important}
 body:has(.site-header) .site-header .navlinks{order:3!important;width:100%!important;flex:1 1 100%!important;justify-content:center!important;gap:9px 15px!important}
 body:has(.site-header) .site-header .navlinks a{font-size:11px!important;white-space:normal!important}
 body:has(.site-header) .site-header .flags{display:flex!important;justify-content:center!important;flex-wrap:wrap!important;gap:8px!important}
 body:has(.site-header) .site-header .demo{padding:8px 12px!important;flex:0 1 auto!important;font-size:11px!important;white-space:normal!important}
 body:has(.site-header) .hero h1{font-size:clamp(34px,9vw,47px)!important}
 body:has(.site-header) .totem-grid,body:has(.site-header) .health-tv-grid,body:has(.site-header) .health-concept-grid,body:has(.site-header) .public-engine-grid,body:has(.site-header) .faq-grid{grid-template-columns:minmax(0,1fr)!important}
 body:has(.site-header) .faces .face{flex-basis:min(77vw,350px)!important}
 body:has(.site-header) .faces .face-image img{max-width:100%!important}
 body:has(.site-header) .carousel-controls{gap:8px!important}
 body:not(:has(.site-header)) .cards,body:not(:has(.site-header)) .faq-grid,body:not(:has(.site-header)) .tv-gallery-grid{grid-template-columns:minmax(0,1fr)!important}
 body:not(:has(.site-header)) .hero h1{font-size:clamp(32px,9vw,52px)!important}
 body:not(:has(.site-header)) .face{max-width:85vw}
 body:not(:has(.site-header)) .tv-screen{max-width:100%!important}
 .os-lightbox{padding:8px}.os-lightbox img{max-width:98vw;max-height:calc(100dvh - 85px)}.os-lightbox .os-lightbox-toolbar{gap:6px}.os-lightbox button{min-width:42px;min-height:42px}
}
@media(max-width:380px){body:has(.site-header) .site-header .navlinks{gap:8px!important}body:has(.site-header) .site-header .navlinks a{font-size:10px!important}body:has(.site-header) .site-header .flags img{width:21px!important}}
@media(prefers-reduced-motion:reduce){.os-lightbox *{transition:none!important;animation:none!important}}

/* V240 — Stabilisation téléphone et tablette ; aucune règle ne s'applique au bureau (>1024px). */
@media (max-width:1024px){
  html,body{width:100%;max-width:100%;overflow-x:clip}
  main,section,article,.wrap,.shell,.container,.hero,.hero-inner,.os-bar,.os-right{min-width:0}
  img,video,iframe{max-width:100%;}
  video{height:auto;}
  .hotel-demo-media,.hotel-demo-card,.hotel-demo-inner,.hotel-demo-grid,
  .tv-gallery-item,.tv-situation-card,.tv-device,.tv-screen,
  .contact-form,.contact-grid,.contact-fields,.form-field,.field{min-width:0;max-width:100%;}
  .contact-field input,.contact-field select,.contact-field textarea,
  .contact-form input,.contact-form select,.contact-form textarea,
  .field input,.field select,.field textarea{box-sizing:border-box;max-width:100%;min-width:0;}
  .site-footer-unified{box-sizing:border-box;max-width:100vw;overflow-wrap:anywhere;}
  .os-lightbox button{touch-action:manipulation}
}
@media (max-width:600px){
  .hotel-demo-grid{grid-template-columns:minmax(0,1fr)}
  .hotel-demo-media video{display:block;width:100%;max-width:100%;}
  .contact-fields{grid-template-columns:minmax(0,1fr)}
  .contact-fields .wide{grid-column:1/-1}
  .contact-form button[type=submit],.submit{max-width:100%;}
  .os-lightbox{width:100vw;max-width:100vw;}
}
