/* ═══════════════════════════════════════════════════════════════════════════
   MYCELLGO — écran « en maintenance » (mycélium vivant)            build maintenance-2026-11-28-1
   Logique : maintenance.js. Sombre « sous-bois » : nuit humide, filaments crème, lueurs menthe et ambre.
   ═══════════════════════════════════════════════════════════════════════════ */
html.myc-maint-ouverte, html.myc-maint-ouverte body { overflow: hidden !important; }

#myc-maintenance {
  position: fixed; inset: 0; z-index: 2147483000;
  display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 80% at 50% 110%, rgba(46, 110, 84, .45), transparent 60%),
    radial-gradient(90% 60% at 50% 45%, rgba(242, 192, 99, .08), transparent 70%),
    linear-gradient(180deg, #070B0A 0%, #0C1512 55%, #0F1D17 100%);
  color: #F4EBDD; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  animation: myc-maint-entree .7s ease-out both; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
#myc-maintenance.fin { animation: myc-maint-sortie .6s ease-in both; }
.myc-maint-toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.myc-maint-carte {
  position: relative; max-width: 420px; width: 100%; text-align: center;
  padding: 28px 24px 22px; border-radius: 26px;
  background: rgba(10, 18, 15, .62); border: 1px solid rgba(244, 235, 221, .12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.myc-maint-embleme { width: 84px; height: 84px; margin: -64px auto 10px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 192, 99, .28), rgba(10, 18, 15, .9) 70%); border: 1px solid rgba(242, 192, 99, .35);
  animation: myc-maint-respire 4.2s ease-in-out infinite; }
.myc-maint-embleme svg { width: 58px; height: 58px; filter: drop-shadow(0 0 10px rgba(242, 192, 99, .45)); }
#myc-maintenance h1 { margin: 0 0 8px; font-size: clamp(22px, 6vw, 28px); line-height: 1.15; letter-spacing: -.01em;
  background: linear-gradient(90deg, #F4EBDD, #FFD68C 50%, #9EF0CF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.myc-maint-msg { margin: 0 0 10px; font-size: 16px; line-height: 1.5; color: #E4DCCD; overflow-wrap: anywhere; }
.myc-maint-retour { display: inline-block; margin: 2px 0 16px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #FFD68C; background: rgba(242, 192, 99, .12); border: 1px solid rgba(242, 192, 99, .3); }
.myc-maint-retour[hidden] { display: none; }
.myc-maint-bt { display: block; margin: 4px auto 14px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(158, 240, 207, .45);
  background: rgba(126, 232, 190, .12); color: #CFF7E6; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s, transform .15s; }
.myc-maint-bt:hover { background: rgba(126, 232, 190, .2); }
.myc-maint-bt:active { transform: scale(.97); }
.myc-maint-bt:focus-visible { outline: 2px solid #FFD68C; outline-offset: 3px; }
.myc-maint-bt:disabled { opacity: .6; cursor: default; }
.myc-maint-accueil { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin: 0 auto 14px; padding: 0 20px;
  border-radius: 999px; border: 1px solid rgba(244, 235, 221, .25); color: #F4EBDD; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, transform .15s; }
.myc-maint-accueil:hover { background: rgba(244, 235, 221, .08); }
.myc-maint-accueil:active { transform: scale(.97); }
.myc-maint-accueil:focus-visible { outline: 2px solid #FFD68C; outline-offset: 3px; }
.myc-maint-pied { margin: 0; font-size: 13px; color: rgba(244, 235, 221, .55); line-height: 1.45; }

/* Bandeau administrateur (l'app reste utilisable) */
#myc-maint-bandeau { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2147483000;
  max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 999px; font: 600 13px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #1B1305; background: #F2C063; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); pointer-events: none; text-align: center; }

@keyframes myc-maint-entree { from { opacity: 0; } to { opacity: 1; } }
@keyframes myc-maint-sortie { to { opacity: 0; transform: scale(1.02); } }
@keyframes myc-maint-respire { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 192, 99, .25); } 50% { box-shadow: 0 0 0 14px rgba(242, 192, 99, 0); } }
@media (prefers-reduced-motion: reduce) {
  #myc-maintenance, #myc-maintenance.fin, .myc-maint-embleme { animation: none; }
}
