/* V334 — gestion volontaire et fermetures accessibles sur petits écrans. */
#gestion-partie-dialog{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 28px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;margin:auto;padding:0 18px 18px;border:1px solid #a7c5b6;border-radius:22px;background:#fffdf8;color:#243d35;box-shadow:0 20px 60px #142c354d;}
#gestion-partie-dialog::backdrop{background:#17272f80;}
.gestion-partie-entete{position:sticky;top:0;z-index:1;background:#fffdf8;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #dce9e2;}
.gestion-partie-entete h2{font-size:21px;line-height:1.25;margin:0;}
#gestion-partie-close{width:44px;height:44px;flex:0 0 44px;border-radius:50%;border:1px solid #a7c5b6;background:white;color:#264637;font-size:28px;box-shadow:none;padding:0;}
#gestion-partie-detail{font-size:14px;line-height:1.5;overflow-wrap:anywhere;}
.gestion-partie-section{background:#edf5f0;border:1px solid #cadfd2;border-radius:14px;padding:12px 14px;}
.gestion-partie-section h3{font-size:15px;margin:0 0 7px;}
#gestion-partie-delais{font-size:14px;line-height:1.55;margin:0;overflow-wrap:anywhere;}
.gestion-partie-actions{display:grid;gap:10px;padding-top:14px;}
#gestion-partie-dialog button{min-height:44px;white-space:normal;line-height:1.35;font-size:14px;}
.gestion-partie-actions button{justify-content:center;width:100%;padding:10px 12px;}
.gestion-partie-note{font-size:12px;line-height:1.5;color:#4d675b;margin:14px 0;}
#gestion-partie-continuer{width:100%;}
#gestion-partie-dialog button:focus-visible,.notification-fermer:focus-visible{outline:3px solid #1968aa;outline-offset:2px;}
body:has(> #gestion-partie-dialog[open]){overflow:hidden;}
.feedback,.app-notice,.notif-invitation,.installer-carte{position:relative;padding-right:58px!important;}
.app-notice{position:fixed!important;box-sizing:border-box;overflow-wrap:anywhere;}
.notification-fermer{position:absolute;right:5px;top:5px;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;flex-shrink:0;box-sizing:border-box;padding:0!important;border:1px solid #54705d55;border-radius:12px;background:#fffdf8;color:#294835;font-size:26px;line-height:1;cursor:pointer;box-shadow:none;z-index:2;}
.feedback .notification-fermer{top:50%;transform:translateY(-50%);height:34px;min-height:34px;}
.feedback{min-height:44px;box-sizing:border-box;}
.app-confirm-card{position:relative;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;}
#app-confirm-close{top:10px;right:10px;}
/* (V405) Écran bas (téléphone en paysage) : la fenêtre de confirmation tient sans défilement.
   L'emblème et la marque se retirent, les marges se resserrent ; titre, texte et boutons
   restent entiers. Avant, il fallait faire défiler la carte pour atteindre les boutons. */
@media (max-height:520px){
  #app-confirm-overlay{padding:8px;}
  .app-confirm-card{padding:16px 22px 14px;border-radius:22px;max-height:calc(100dvh - 16px);}
  .app-confirm-card .app-confirm-icon,.app-confirm-card .app-confirm-kicker{display:none;}
  .app-confirm-card h3{margin:2px 40px 8px;font-size:22px;}
  .app-confirm-card p{margin-bottom:12px;line-height:1.4;font-size:14.5px;max-width:62ch;}
  .app-confirm-actions button{min-height:46px;}
}
#sw-update-banner{padding-right:58px!important;box-sizing:border-box;}
#sw-update-close{color:#294835!important;}
@media(max-width:520px){.notif-invitation__actions{flex-wrap:wrap;width:100%;}.notif-invitation__actions button{min-height:44px;}.feedback .notification-fermer{height:44px;min-height:44px;}}
@media(forced-colors:active){#gestion-partie-dialog,.gestion-partie-section,.notification-fermer{background:Canvas;color:CanvasText;border:1px solid CanvasText;}}
