/* Habillage de la PWA partage par la page d'accueil et l'espace Maths. */
.brand-symbol.logo-image{background:transparent!important;box-shadow:none!important;transform:none!important;overflow:visible;}
.brand-symbol.logo-image img{height:100%;width:100%;display:block;object-fit:contain;filter:drop-shadow(0 3px 6px #0c31541d);}
.install-app-link{border:1px solid #a7d6d3;background:#e5f8f4;color:#145b70;border-radius:999px;font:800 12px/1.25 system-ui,-apple-system,'Segoe UI',sans-serif;white-space:nowrap;padding:10px 13px;cursor:pointer;}
.install-app-link:hover{background:#d6eee8;}
.install-app-link:focus-visible,.pwa-help-modal button:focus-visible{outline:3px solid #f3b328;outline-offset:3px;}
.install-app-link[hidden],.button[hidden]{display:none!important;}
.hero-pwa-note{display:flex;gap:8px;align-items:center;font:750 12px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif;color:#436c80;margin:18px 0 0;}
.hero-logo-halo{position:absolute;inset:36px 25px;background:radial-gradient(circle at 50% 50%,#fff9dc 0%,#ecf5eb 43%,#f6f4ed00 74%);filter:blur(13px);}
.hero-logo-img{position:relative;z-index:1;width:min(100%,350px);height:auto;object-fit:contain;filter:drop-shadow(0 21px 24px #082c3f22);animation:logo-float 7s ease-in-out infinite;}
@keyframes logo-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@media(max-width:750px){.hero-logo-img{width:min(100%,255px)}.hero-pwa-note{justify-content:center}.install-app-header{display:none!important;}}
@media(max-width:520px){.hero-logo-img{width:min(82%,215px)}.hero-logo-halo{inset:8px}.hero-pwa-note{font-size:11px;}}
@media(prefers-reduced-motion:reduce){.hero-logo-img{animation:none!important;}}
.pwa-help-wrap{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:16px;}
.pwa-help-shade{position:absolute;inset:0;background:#08253bcc;}
.pwa-help-modal{position:relative;z-index:1;width:min(100%,560px);max-height:min(90vh,760px);overflow:auto;background:#fffdf9;color:#123548;border-radius:24px;padding:28px 30px;box-shadow:0 30px 90px #091c3c6e;font:15px/1.6 system-ui,-apple-system,'Segoe UI',sans-serif;}
.pwa-help-modal>img{width:70px;height:70px;border-radius:18px;}
.pwa-help-modal h2{font-size:25px;margin:9px 0 11px;line-height:1.25;color:#123548;}
.pwa-help-modal p{font-size:14px;margin:0 0 14px;color:#496575;}
.pwa-help-steps{background:#eef7f4;border:1px solid #dae9e7;border-radius:16px;padding:17px 19px;margin:17px 0;}
.pwa-help-steps p{margin:0 0 13px;font-size:13px;line-height:1.7;}
.pwa-help-steps p:last-child{margin:0;}
.pwa-help-modal .pwa-help-foot{font-size:11px;}
.pwa-help-x{position:absolute;top:12px;right:14px;border:0;background:transparent;color:#123548;font-size:27px;width:38px;height:38px;cursor:pointer;}
.pwa-help-close{background:#0d4560;border:0;color:white;border-radius:12px;padding:11px 18px;font-weight:800;cursor:pointer;}
@media(max-width:560px){.pwa-help-modal{padding:23px 18px;border-radius:19px}.pwa-help-modal h2{font-size:21px}}

/* v1.3 : logo plus proportionne dans la page d'accueil. */
.hero-art{min-height:310px;}
@media (max-width:750px){.hero-art{min-height:245px;}}
@media (max-width:520px){.hero-art{min-height:215px;}}

/* Bouton d'installation de secours, visible sans occuper la page. */
.pwa-install-floating{
  position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom,0px));
  display:flex;align-items:center;gap:3px;z-index:90;
  border-radius:999px;border:1px solid #acd5d2;background:#123d56;
  box-shadow:0 8px 25px #072b3740,0 1px 6px #082a3526;
  color:#fff;max-width:calc(100vw - 26px);
}
.pwa-install-floating[hidden],.pwa-install-fab[hidden]{display:none!important;}
.pwa-install-fab{
  color:inherit;background:transparent;border:0;display:flex;align-items:center;
  gap:8px;padding:9px 6px 9px 13px;border-radius:999px;
  font:750 12px/1.25 system-ui,-apple-system,'Segoe UI',sans-serif;
  cursor:pointer;white-space:nowrap;
}
.pwa-install-fab svg{flex:none;}
.pwa-install-fab:hover,.pwa-install-fab:focus-visible{background:#21627b;}
.pwa-install-dismiss{
  width:27px;height:27px;flex:none;margin-right:5px;border:0;border-radius:50%;
  background:#ffffff1c;color:#f5fcff;font:400 19px/1 system-ui,sans-serif;
  display:grid;place-items:center;cursor:pointer;
}
.pwa-install-dismiss:hover,.pwa-install-dismiss:focus-visible{background:#ffffff36;}
.pwa-install-fab:focus-visible,.pwa-install-dismiss:focus-visible{
  outline:3px solid #f5c66a;outline-offset:3px;
}
@media(max-width:600px){
  .pwa-install-floating{right:11px;bottom:calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 4px 17px #12304d37;}
  .pwa-install-fab{font-size:11px;padding:8px 3px 8px 10px;gap:6px;}
  .pwa-install-fab svg{width:15px;height:15px;}
  .pwa-install-dismiss{width:25px;height:25px;margin-right:3px;}
}
@media(print){.pwa-install-floating{display:none!important;}}
