
/* Correctif propre 20260529 : PLAN uniquement.
   Aucun sélecteur global iframe[src*="..."] : on cible seulement #ifrm_plan_lfa2026. */
body.lfa2026-page-plan{
  overflow-x:hidden !important;
}
body.lfa2026-page-plan #intro.lfa2026-plan-intro{
  height:auto !important;
  min-height:0 !important;
  padding:18px 0 24px !important;
  overflow:visible !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
}
body.lfa2026-page-plan .lfa2026-plan-wood-stage{
  width:100% !important;
  max-width:1320px !important;
  margin:0 auto !important;
  padding:0 16px !important;
  box-sizing:border-box !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  overflow:visible !important;
}
body.lfa2026-page-plan .lfa2026-plan-embed{
  width:min(96vw, 1220px) !important;
  aspect-ratio:40.56 / 18.97 !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 auto !important;
  overflow:hidden !important;
  border-radius:14px !important;
  background:transparent !important;
  box-shadow:0 8px 24px rgba(0,0,0,.28) !important;
  display:block !important;
  position:relative !important;
  transform:none !important;
}
body.lfa2026-page-plan #ifrm_plan_lfa2026.lfa2026-plan-frame{
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:none !important;
  max-height:none !important;
  border:0 !important;
  margin:0 auto !important;
  padding:0 !important;
  overflow:hidden !important;
  transform:none !important;
  transform-origin:center center !important;
  aspect-ratio:auto !important;
}
body.lfa2026-page-plan #main{ margin-top:0 !important; }

@media (min-width:981px){
  body.lfa2026-page-plan #intro.lfa2026-plan-intro{
    min-height:calc((min(96vw, 1220px) / 2.138) + 56px) !important;
  }
}

@media (max-width:980px) and (orientation:portrait){
  body.lfa2026-page-plan #intro.lfa2026-plan-intro{
    padding:10px 0 16px !important;
  }
  body.lfa2026-page-plan .lfa2026-plan-wood-stage{
    padding:0 8px !important;
  }
  body.lfa2026-page-plan .lfa2026-plan-embed{
    width:96vw !important;
    border-radius:10px !important;
  }
}

@media (max-width:980px) and (orientation:landscape){
  body.lfa2026-page-plan #intro.lfa2026-plan-intro{
    padding:34px 0 14px !important;
    min-height:0 !important;
    overflow:visible !important;
  }
  body.lfa2026-page-plan .lfa2026-plan-wood-stage{
    width:100vw !important;
    max-width:100vw !important;
    padding:0 !important;
    overflow:visible !important;
  }
  body.lfa2026-page-plan .lfa2026-plan-embed{
    width:min(96vw, calc((100vh - 128px) * 2.138)) !important;
    aspect-ratio:40.56 / 18.97 !important;
    margin-left:auto !important;
    margin-right:auto !important;
    border-radius:10px !important;
  }
}

@media (max-width:760px){
  body #footer{
    height:auto !important;
    min-height:0 !important;
    overflow:visible !important;
    padding:14px 0 18px !important;
    clear:both !important;
  }
  body #footer .shell{
    width:94vw !important;
    max-width:94vw !important;
    height:auto !important;
    min-height:0 !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
  }
  body #footer .footer-navigation,
  body #footer .footer-navigation ul,
  body #footer .footer-navigation li{
    float:none !important;
    width:100% !important;
    height:auto !important;
    line-height:1.45 !important;
    text-align:center !important;
    display:block !important;
    margin:0 !important;
    padding:0 !important;
  }
  body #footer .footer-navigation a{
    display:inline-block !important;
    margin:2px 4px !important;
    white-space:normal !important;
  }
  body #footer p.right{
    float:none !important;
    position:static !important;
    width:100% !important;
    text-align:center !important;
    line-height:1.35 !important;
    margin:0 !important;
    clear:both !important;
  }
}

/* Ajustement 20260529 : mobile paysage = plan plus grand, sans recadrage iframe.
   On conserve le cadrage PC et portrait, on enlève uniquement la limitation par hauteur viewport. */
@media (max-width:980px) and (orientation:landscape){
  body.lfa2026-page-plan #intro.lfa2026-plan-intro{
    padding-top:28px !important;
    padding-bottom:20px !important;
    min-height:calc((96vw / 2.138) + 58px) !important;
    height:auto !important;
    overflow:visible !important;
  }
  body.lfa2026-page-plan .lfa2026-plan-wood-stage{
    width:100vw !important;
    max-width:100vw !important;
    padding:0 !important;
    overflow:visible !important;
  }
  body.lfa2026-page-plan .lfa2026-plan-embed{
    width:96vw !important;
    max-width:900px !important;
    aspect-ratio:40.56 / 18.97 !important;
    height:auto !important;
    margin-left:auto !important;
    margin-right:auto !important;
    overflow:hidden !important;
  }
  body.lfa2026-page-plan #ifrm_plan_lfa2026.lfa2026-plan-frame{
    width:100% !important;
    height:100% !important;
    overflow:hidden !important;
  }
}
