/* GOSY — V4.6 — reconnexion visuelle des pages utilisateur — 16/10/2026
   Périmètre strict : membre particulier authentifié sur Compte / Agenda /
   Plans / Communauté. Ne s'applique ni à l'Admin, ni au Pro, ni à Découvrir,
   ni à la Carte. */

body.gosy-user-v46{
  --g46-bg:#07060d;
  --g46-panel:#101827;
  --g46-panel-2:#0b1220;
  --g46-line:rgba(255,255,255,.13);
  --g46-text:#fff;
  --g46-muted:#aaa3b5;
  --g46-cyan:#25d9ff;
  --g46-violet:#765cff;
  --g46-pink:#ef48bb;
  --g46-grad:linear-gradient(100deg,var(--g46-cyan),var(--g46-violet) 52%,var(--g46-pink));
  background:var(--g46-bg)!important;
  color:var(--g46-text)!important;
}

/* Neutralisation définitive de l'ancien grand décor cyan sur les pages membre. */
body.gosy-user-v46::before,
body.gosy-user-v46::after,
body.gosy-user-v46.gosy-fix-decor::before,
body.gosy-user-v46.gosy-fix-decor::after{
  content:none!important;
  display:none!important;
  background:none!important;
  background-image:none!important;
  clip-path:none!important;
  -webkit-clip-path:none!important;
  filter:none!important;
  box-shadow:none!important;
  opacity:0!important;
}

body.gosy-user-v46 .wrap,
body.gosy-user-v46 .shell,
body.gosy-user-v46 main,
body.gosy-user-v46 header,
body.gosy-user-v46 footer{
  position:relative!important;
  z-index:1!important;
}

body.gosy-user-v46 main,
body.gosy-user-v46 .wrap,
body.gosy-user-v46 .shell{
  background:transparent!important;
}

/* Lisibilité cohérente après suppression du décor hérité. */
body.gosy-user-v46 h1,
body.gosy-user-v46 h2,
body.gosy-user-v46 h3,
body.gosy-user-v46 strong,
body.gosy-user-v46 .title{
  color:var(--g46-text)!important;
}
body.gosy-user-v46 p,
body.gosy-user-v46 .lead,
body.gosy-user-v46 .muted,
body.gosy-user-v46 .note,
body.gosy-user-v46 small{
  color:var(--g46-muted)!important;
}

/* Compte : logo actuel Gosy. */
body.gosy-user-v46-account .gosy-account-logo{
  display:inline-flex!important;
  align-items:center!important;
  text-decoration:none!important;
  min-width:0!important;
}
body.gosy-user-v46-account .gosy-account-logo img{
  display:block!important;
  width:auto!important;
  height:50px!important;
  max-width:150px!important;
  object-fit:contain!important;
}

/* Compte : les cartes ne doivent plus être traversées par un calque cyan. */
body.gosy-user-v46-account .card,
body.gosy-user-v46-account .section-card,
body.gosy-user-v46-account .quick-link{
  position:relative!important;
  z-index:1!important;
  background:linear-gradient(145deg,rgba(16,27,48,.94),rgba(8,16,31,.98))!important;
  border-color:var(--g46-line)!important;
  color:var(--g46-text)!important;
  box-shadow:0 14px 36px rgba(0,0,0,.28)!important;
}
body.gosy-user-v46-account .quick-link strong,
body.gosy-user-v46-account .section-button .copy strong{
  color:var(--g46-text)!important;
}
body.gosy-user-v46-account .quick-link span,
body.gosy-user-v46-account .section-button .copy span{
  color:var(--g46-muted)!important;
}

/* Navigation basse du compte : l'ancien texte bleu brut redevient une vraie barre Gosy. */
body.gosy-user-v46 #accountBottomNav:not(.hidden),
body.gosy-user-v46 .bottom-nav:not(.hidden){
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:max(8px,env(safe-area-inset-bottom))!important;
  transform:translateX(-50%)!important;
  z-index:9500!important;
  width:min(94vw,720px)!important;
  max-width:720px!important;
  min-height:62px!important;
  margin:0!important;
  padding:5px!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:stretch!important;
  justify-content:space-between!important;
  gap:2px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  border:1px solid var(--g46-line)!important;
  border-radius:19px!important;
  background:rgba(9,13,24,.96)!important;
  box-shadow:0 14px 38px rgba(0,0,0,.42)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  text-decoration:none!important;
  -webkit-overflow-scrolling:touch!important;
}
body.gosy-user-v46 #accountBottomNav:not(.hidden) a,
body.gosy-user-v46 .bottom-nav:not(.hidden) a{
  flex:1 1 0!important;
  min-width:70px!important;
  min-height:50px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  padding:6px 4px!important;
  border-radius:13px!important;
  border:1px solid transparent!important;
  color:var(--g46-muted)!important;
  background:transparent!important;
  text-decoration:none!important;
  font-size:16px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body.gosy-user-v46 #accountBottomNav:not(.hidden) a span,
body.gosy-user-v46 .bottom-nav:not(.hidden) a span{
  display:block!important;
  color:inherit!important;
  font-size:9px!important;
  line-height:1.05!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
body.gosy-user-v46 #accountBottomNav a.active,
body.gosy-user-v46 #accountBottomNav a[aria-current="page"],
body.gosy-user-v46 .bottom-nav a.active,
body.gosy-user-v46 .bottom-nav a[aria-current="page"]{
  color:#fff!important;
  border-color:rgba(118,92,255,.46)!important;
  background:linear-gradient(135deg,rgba(37,217,255,.16),rgba(118,92,255,.24),rgba(239,72,187,.16))!important;
}

/* Espace réservé pour que la barre ne masque jamais le bas des écrans. */
body.gosy-user-v46 .wrap,
body.gosy-user-v46 .shell,
body.gosy-user-v46 main{
  padding-bottom:max(105px,calc(92px + env(safe-area-inset-bottom)))!important;
}

/* Les panneaux des pages Agenda / Plans / Communauté restent sombres et lisibles. */
body.gosy-user-v46-agenda .card,
body.gosy-user-v46-agenda .panel,
body.gosy-user-v46-plans .card,
body.gosy-user-v46-plans .panel,
body.gosy-user-v46-community .card,
body.gosy-user-v46-community .panel,
body.gosy-user-v46-community-open .card,
body.gosy-user-v46-community-open .panel{
  background:linear-gradient(145deg,rgba(16,27,48,.94),rgba(8,16,31,.98))!important;
  border-color:var(--g46-line)!important;
  color:var(--g46-text)!important;
}

@media(max-width:640px){
  body.gosy-user-v46-account .gosy-account-logo img{height:43px!important;max-width:132px!important}
  body.gosy-user-v46 #accountBottomNav:not(.hidden),
  body.gosy-user-v46 .bottom-nav:not(.hidden){width:calc(100vw - 16px)!important;border-radius:17px!important}
  body.gosy-user-v46 #accountBottomNav:not(.hidden) a,
  body.gosy-user-v46 .bottom-nav:not(.hidden) a{min-width:64px!important;padding:5px 2px!important}
  body.gosy-user-v46 #accountBottomNav:not(.hidden) a span,
  body.gosy-user-v46 .bottom-nav:not(.hidden) a span{font-size:8px!important}
}
