/* V401 — Mode mobile : barre du bas, menu plein écran, aperçu plein écran */
@media(max-width:760px){
html body{-webkit-tap-highlight-color:transparent}
/* barre du bas aux couleurs du logo */
html body .dj-bottom-nav{background:#fff!important;border-top:3px solid #d7192d!important;box-shadow:0 -6px 22px #10285b26!important;border-radius:18px 18px 0 0}
html body .dj-bottom-nav button{color:#10285b!important;font-weight:800!important;border-radius:14px!important}
html body .dj-bottom-nav button[aria-current=page]{background:linear-gradient(145deg,#10285b,#12519a)!important;color:#fff!important;box-shadow:0 4px 12px #10285b44!important}
/* bouton Menu */
html body .mbar{padding:8px 10px!important;background:#fff;border-bottom:1px solid #dbe6f5}
html body .mbar .menubtn{width:100%;min-height:46px;border:0!important;border-radius:14px!important;background:linear-gradient(100deg,#10285b,#12519a)!important;color:#fff!important;font-weight:900!important;font-size:16px!important;box-shadow:0 3px 0 #d7192d!important;letter-spacing:.3px}
/* menu plein écran */
html body #nav.open{position:fixed!important;inset:0!important;z-index:1000!important;display:block!important;width:100%!important;max-width:none!important;overflow-y:auto!important;background:#eef4fc!important;padding:0 0 30px!important}
html body #nav.open .djm-bar{position:sticky;top:0;z-index:2}
html body #nav.open .menu{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
html body #nav.open .menu>.mi,html body #nav.open .menu>details{min-width:0}
html body #nav.open .menu>.mi{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:96px;border:1px solid #cfe0f5!important;border-radius:16px!important;background:#fff!important;color:#10285b!important;font-weight:800;font-size:14px;text-align:center;box-shadow:0 3px 10px #10285b14}
html body #nav.open .menu>.mi .i{font-size:30px;color:#12519a}
html body #nav.open .menu>.mi[aria-current=page]{background:linear-gradient(145deg,#10285b,#12519a)!important;color:#fff!important}
html body #nav.open .menu>.mi[aria-current=page] .i{color:#fff}
html body #nav.open .menu>details{grid-column:1/-1;background:#fff;border:1px solid #cfe0f5;border-radius:16px;overflow:hidden;box-shadow:0 3px 10px #10285b14}
html body #nav.open .menu>details>summary{display:flex;align-items:center;gap:10px;min-height:56px;padding:0 14px;font-weight:900;color:#fff;background:linear-gradient(100deg,#10285b,#12519a);border-bottom:3px solid #d7192d}
html body #nav.open .menu>details>summary .i{font-size:24px}
html body #nav.open .menu>details button{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;padding:0 16px;border:0;border-bottom:1px solid #e3ecf8;background:#fff;color:#10285b;font-size:15px;font-weight:700;text-align:left}
html body #nav.open .assist{margin:0 12px}
/* barre « Accueil » commune */
.djm-bar{display:flex;align-items:center;gap:10px;padding:10px 12px;background:linear-gradient(100deg,#10285b,#12519a);border-bottom:3px solid #d7192d;color:#fff}
.djm-bar b{flex:1;min-width:0;font-size:16px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.djm-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:0;border-radius:12px;background:#fff;color:#10285b;font:900 15px Roboto,sans-serif;box-shadow:0 2px 0 #d7192d}
.djm-back:active{transform:scale(.96)}
/* aperçu plein écran */
#djm-sheet{position:fixed;inset:0;z-index:2000;display:none;flex-direction:column;background:#eef4fc;animation:djmIn .18s ease-out}
#djm-sheet.on{display:flex}
@keyframes djmIn{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
#djm-sheet .djm-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px 12px calc(24px + env(safe-area-inset-bottom))}
#djm-sheet dl{margin:0;background:#fff;border:1px solid #cfe0f5;border-radius:16px;overflow:hidden;box-shadow:0 3px 10px #10285b14}
#djm-sheet dl>div{display:grid;grid-template-columns:38% 1fr;gap:8px;padding:12px 14px;border-bottom:1px solid #e3ecf8}
#djm-sheet dl>div:nth-child(even){background:#f4f8fe}
#djm-sheet dl>div:last-child{border-bottom:0}
#djm-sheet dt{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.4px;color:#12519a}
#djm-sheet dd{margin:0;font-size:15px;font-weight:600;color:#10285b;overflow-wrap:anywhere}
#djm-sheet .djm-clone{background:#fff;border:1px solid #cfe0f5;border-radius:16px;padding:12px;overflow-x:auto}
#djm-sheet .djm-foot{display:flex;gap:10px;margin-top:14px}
#djm-sheet .djm-foot .djm-back{flex:1;justify-content:center;background:linear-gradient(100deg,#10285b,#12519a);color:#fff;box-shadow:0 3px 0 #d7192d}
/* fenêtres existantes en plein écran */
html body #dlg[open]{position:fixed!important;inset:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border-radius:0!important;border:0!important;display:flex;flex-direction:column;background:#eef4fc}
html body #dlg[open]>.djm-bar{flex:none}
html body #dlg[open] form{max-height:none!important;flex:1;overflow-y:auto}
/* tables lisibles + éléments tactiles */
html body main#main tbody tr{cursor:pointer}
html body main#main tbody tr:active{background:#d9e8fb!important}
html body main#main .djm-tap{cursor:pointer}
html body main#main .djm-tap:active{transform:scale(.985)}
html body #djm-hint{display:block;margin:6px 2px;font-size:12px;color:#12519a;font-weight:700}
}
@media(min-width:761px){#djm-sheet,.djm-bar{display:none!important}}
@media(max-width:760px){
html body #nav#nav.open{background:#eef4fc!important}
html body #nav#nav.open .menu>.mi .i,html body #nav#nav.open .menu>.mi svg{stroke:currentColor;color:#12519a}
html body #nav#nav.open .menu>.mi[aria-current=page] svg{color:#fff}
html body #nav#nav.open .assist{background:linear-gradient(100deg,#10285b,#12519a)!important;border-radius:16px;margin-top:12px;color:#fff}
}
@media(max-width:760px){
html body #djf-sound-switch{bottom:calc(84px + env(safe-area-inset-bottom))!important;left:10px!important;right:auto!important;font-size:12px!important;padding:6px 10px!important}
html body #djfAsstBtn{bottom:calc(92px + env(safe-area-inset-bottom))!important}
}
