.hero-photo-controls, .hero-plan-card { position: absolute; z-index: 2; }
.hero-photo-controls { left: 4%; bottom: 26px; display: flex; align-items: center; gap: 18px; color: white; }
.hero-photo-controls button, .hero-plan-card button, #heroPlanDialog button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; color: inherit; }
.hero-photo-controls button { width: 44px; height: 44px; border: 1px solid #ffffff80; border-radius: 50%; background: #14201d55; }
.hero-photo-controls span, #heroPlanCount { font-size: 13px; font-variant-numeric: tabular-nums; }
.hero-photo-controls svg, .hero-plan-card svg, #heroPlanDialog svg { width: 20px; height: 20px; }
.hero-plan-card { right: 4%; bottom: 26px; width: 268px; padding: 12px; background: rgba(250,252,251,.94); color: #171c1b; border-radius: 8px; box-shadow: 0 8px 28px #0002; }
.hero-plan-heading, .hero-plan-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hero-plan-heading { margin-bottom: 8px; }
.hero-plan-heading button { padding: 4px 0; border: 0; background: none; font-weight: 600; }
.hero-plan-preview { position: relative; width: 100%; height: 136px; border: 0; padding: 4px; background: white; border-radius: 4px; }
.hero-plan-preview img { width: 100%; height: 100%; object-fit: contain; }
.hero-plan-expand { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; display: grid; place-items: center; background: #17221eef; color: white; border-radius: 50%; }
.hero-plan-footer { padding-top: 6px; font-size: 13px; }
.hero-plan-footer > div { display: flex; }
.hero-plan-footer button { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 4px; }
.hero-plan-card button:hover { background-color: #e5eae7; }
.hero-photo-controls button:hover { background: #14201daa; }
.hero-plan-card button:focus-visible, .hero-photo-controls button:focus-visible, #heroPlanDialog :focus-visible { outline: 3px solid #2580ca; outline-offset: 3px; }
#heroPlanDialog { width: min(1100px, calc(100vw - 32px)); max-width: none; height: min(900px, calc(100dvh - 40px)); max-height: none; padding: 20px; border: 0; border-radius: 8px; background: #f7f8f7; color: #171c1b; overflow: hidden; }
#heroPlanDialog[open] { display: flex; flex-direction: column; gap: 16px; margin: auto; }
#heroPlanDialog::backdrop { background: #101816cc; }
.plan-viewer-header, .plan-viewer-toolbar, .plan-viewer-tools, .plan-viewer-tabs { display: flex; align-items: center; gap: 8px; }
.plan-viewer-header, .plan-viewer-toolbar { justify-content: space-between; flex-wrap: wrap; }
#heroPlanDialog h2 { margin: 0; font-size: 22px; line-height: 1.2; }
#heroPlanDialog button, #heroPlanDownload { min-width: 44px; min-height: 44px; border: 1px solid #d7ddda; border-radius: 4px; background: #fff; }
.plan-viewer-tabs button { padding: 8px 14px; }
#heroPlanDialog [aria-selected="true"] { background: #19201f; color: white; border-color: #19201f; }
#heroPlanDialog button:disabled { opacity: .35; cursor: default; }
#heroPlanDownload { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; color: inherit; font-size: 13px; text-decoration: none; }
#planZoom { width: 46px; font-size: 13px; text-align: center; }
.plan-viewer-canvas { flex: 1; min-height: 0; overflow: auto; background: #e5e9e7; padding: 12px; }
.plan-viewer-canvas img { display: block; max-width: none; object-fit: contain; background: white; margin: 0 auto; }
@media (min-width: 601px) and (max-width: 1100px) {
  .modern-home #accueil .hero-inner { align-items: start; padding-top: 58px; padding-bottom: 280px; }
  .hero-plan-card { width: 236px; }
}
@media (max-width: 600px) {
  .modern-home #accueil { display: block; }
  .modern-home #accueil .hero-inner { min-height: 0; padding-top: 270px; padding-bottom: 22px; }
  .hero-photo-controls { top: 12px; right: 12px; left: auto; bottom: auto; gap: 10px; border-radius: 28px; background: #17221e9c; padding: 3px; }
  .hero-photo-controls button { border: 0; }
  .hero-plan-card { position: relative; right: auto; bottom: auto; width: calc(100% - 44px); margin: 0 22px 24px; box-shadow: none; }
  .hero-plan-preview { height: 120px; }
  #heroPlanDialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); padding: 12px; }
  .plan-viewer-toolbar { gap: 12px; }
  .plan-viewer-tools { width: 100%; justify-content: space-between; gap: 4px; }
}
