/* ==========================================================
   V6.9.52 — AUDIT PRÉ-LANCEMENT
   Finition uniquement : glass, navigation, connexion, headers.
   ========================================================== */

/* Apple login */
.authBtnV4.apple{
  background:#111217!important;color:#fff!important;border-color:#111217!important;
  box-shadow:0 9px 22px rgba(15,16,22,.16)!important
}
.authBtnV4.apple:hover{box-shadow:0 11px 28px rgba(15,16,22,.22)!important}
.authAppleMark{
  width:24px;height:24px;border-radius:8px;display:grid;place-items:center;
  position:absolute;left:14px;font-size:17px;font-weight:900;color:#fff
}
html[data-theme="dark"] .authBtnV4.apple{
  background:#f4f5f8!important;color:#11131a!important;border-color:#f4f5f8!important
}
html[data-theme="dark"] .authBtnV4.apple .authAppleMark{color:#11131a!important}

/* Mode clair : verre léger, sans refonte structurelle */
html:not([data-theme="dark"]) body{
  background:
    radial-gradient(circle at 92% 4%,rgba(119,93,255,.10),transparent 28%),
    radial-gradient(circle at 5% 58%,rgba(75,182,222,.08),transparent 28%),
    linear-gradient(180deg,#f6f8fc 0%,#f3f5fa 100%)!important
}
html:not([data-theme="dark"]) .app{
  background:linear-gradient(180deg,rgba(247,249,253,.94),rgba(244,246,251,.97))!important
}
html:not([data-theme="dark"]) .stat,
html:not([data-theme="dark"]) .familyHomeCard,
html:not([data-theme="dark"]) .familyHubCard,
html:not([data-theme="dark"]) .familySection,
html:not([data-theme="dark"]) .proStat,
html:not([data-theme="dark"]) .proModule,
html:not([data-theme="dark"]) .tranquilityCard,
html:not([data-theme="dark"]) .docsSearchShell,
html:not([data-theme="dark"]) .smartSearchBox{
  background:rgba(255,255,255,.70)!important;
  border-color:rgba(194,202,220,.58)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.18);
  backdrop-filter:blur(18px) saturate(1.18);
  box-shadow:0 12px 34px rgba(46,58,94,.07),inset 0 1px 0 rgba(255,255,255,.82)!important
}

/* Les gros aplats gardent l'identité AdminMind, avec effet glass froid */
html:not([data-theme="dark"]) .homeHero{
  background:
    radial-gradient(circle at 91% 13%,rgba(142,118,255,.34),transparent 34%),
    linear-gradient(145deg,rgba(14,33,68,.96),rgba(42,63,117,.91) 58%,rgba(44,112,145,.88) 135%)!important;
  border:1px solid rgba(255,255,255,.19)!important;
  box-shadow:0 22px 54px rgba(29,48,92,.20),inset 0 1px 0 rgba(255,255,255,.12)!important
}
html:not([data-theme="dark"]) .familyHeroV2{
  background:
    radial-gradient(circle at 92% 4%,rgba(150,121,255,.30),transparent 34%),
    linear-gradient(140deg,rgba(15,31,66,.96),rgba(43,60,123,.91) 62%,rgba(42,122,158,.87) 145%)!important;
  border:1px solid rgba(255,255,255,.16)!important
}
html:not([data-theme="dark"]) .proHero{
  background:
    radial-gradient(circle at 95% 3%,rgba(139,106,255,.34),transparent 33%),
    linear-gradient(145deg,rgba(17,24,47,.97),rgba(47,43,98,.91) 65%,rgba(65,72,140,.88))!important;
  border:1px solid rgba(255,255,255,.15)!important
}

/* Mode sombre : verre fumé, pas d'effet blanc */
html[data-theme="dark"] .stat,
html[data-theme="dark"] .familyHomeCard,
html[data-theme="dark"] .familyHubCard,
html[data-theme="dark"] .familySection,
html[data-theme="dark"] .proStat,
html[data-theme="dark"] .proModule,
html[data-theme="dark"] .tranquilityCard,
html[data-theme="dark"] .docsSearchShell,
html[data-theme="dark"] .smartSearchBox{
  background:rgba(22,27,38,.78)!important;
  border-color:rgba(67,77,101,.62)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.08);
  backdrop-filter:blur(18px) saturate(1.08);
  box-shadow:0 15px 40px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.025)!important
}
html[data-theme="dark"] .homeHero{
  background:
    radial-gradient(circle at 92% 4%,rgba(124,95,255,.24),transparent 34%),
    linear-gradient(145deg,rgba(9,19,39,.96),rgba(24,33,73,.94) 62%,rgba(32,75,99,.91) 135%)!important;
  border:1px solid rgba(130,145,184,.15)!important
}
html[data-theme="dark"] .familyHeroV2{
  background:
    radial-gradient(circle at 92% 4%,rgba(124,95,255,.22),transparent 34%),
    linear-gradient(140deg,rgba(9,19,39,.96),rgba(28,39,83,.94) 62%,rgba(31,84,111,.90) 145%)!important;
  border:1px solid rgba(130,145,184,.13)!important
}
html[data-theme="dark"] .proHero{
  background:
    radial-gradient(circle at 94% 2%,rgba(125,94,255,.25),transparent 34%),
    linear-gradient(145deg,rgba(13,16,31,.97),rgba(35,31,75,.94) 68%,rgba(50,55,105,.91))!important;
  border:1px solid rgba(130,145,184,.13)!important
}

/* Barre basse premium glass — mêmes 5 onglets, aucune logique changée */







@media(max-width:767px){
  main{padding-bottom:calc(108px + env(safe-area-inset-bottom))!important}
}
