/* V19 — thème clair plus léger + correction du zoom iOS sur la recherche Accueil.
   Aucun changement de logique métier ou de navigation. */

/* Résumé hebdomadaire : conserver l'identité AdminMind sans gros aplat sombre en mode clair. */
html:not([data-theme="dark"]) #home .smartBriefCompact{
  background:linear-gradient(135deg,rgba(246,243,255,.98),rgba(238,247,255,.98))!important;
  color:var(--text)!important;
  border:1px solid rgba(115,87,255,.18)!important;
  box-shadow:0 8px 22px rgba(55,66,112,.07),inset 0 1px 0 rgba(255,255,255,.86)!important;
}
html:not([data-theme="dark"]) #home .smartBriefCompact .smartBriefTop small{
  color:#6557a8!important;
}
html:not([data-theme="dark"]) #home .smartBriefCompact .smartBriefTop h3{
  color:var(--text)!important;
}
html:not([data-theme="dark"]) #home .smartBriefCompact .smartBriefBadge{
  background:rgba(115,87,255,.09)!important;
  border-color:rgba(115,87,255,.12)!important;
  color:#6550d9!important;
}
html:not([data-theme="dark"]) #home .smartBriefMetric{
  border-left-color:rgba(91,102,242,.12)!important;
  color:var(--muted)!important;
}
html:not([data-theme="dark"]) #home .smartBriefMetric b{
  color:var(--text)!important;
}

/* Family : hero plus compact et plus clair dans le thème clair. */
html:not([data-theme="dark"]) .familyHeroV2{
  color:var(--text)!important;
  background:
    radial-gradient(circle at 94% 5%,rgba(128,101,255,.16),transparent 35%),
    linear-gradient(145deg,rgba(255,255,255,.96),rgba(240,246,255,.96))!important;
  border:1px solid rgba(115,87,255,.18)!important;
  border-radius:21px!important;
  padding:14px 15px!important;
  margin-bottom:9px!important;
  box-shadow:0 9px 24px rgba(45,57,100,.07),inset 0 1px 0 rgba(255,255,255,.90)!important;
}
html:not([data-theme="dark"]) .familyHeroV2 small{
  background:rgba(115,87,255,.08)!important;
  border-color:rgba(115,87,255,.13)!important;
  color:#6651d8!important;
  padding:5px 8px!important;
  font-size:8.2px!important;
}
html:not([data-theme="dark"]) .familyHeroV2 h3{
  color:var(--text)!important;
  font-size:20px!important;
  margin:9px 0 5px!important;
}
html:not([data-theme="dark"]) .familyHeroV2 p{
  color:var(--muted)!important;
  font-size:10.2px!important;
  line-height:1.42!important;
}

/* Pro : même principe, plus compact et plus doux en thème clair. */
html:not([data-theme="dark"]) .proHero{
  color:var(--text)!important;
  background:
    radial-gradient(circle at 95% 4%,rgba(126,95,255,.17),transparent 34%),
    linear-gradient(145deg,rgba(255,255,255,.97),rgba(244,242,255,.97))!important;
  border:1px solid rgba(115,87,255,.18)!important;
  border-radius:21px!important;
  padding:14px 15px!important;
  margin:6px 0 10px!important;
  box-shadow:0 9px 24px rgba(45,51,98,.07),inset 0 1px 0 rgba(255,255,255,.90)!important;
}
html:not([data-theme="dark"]) .proHero .proEyebrow{
  background:rgba(115,87,255,.08)!important;
  border-color:rgba(115,87,255,.13)!important;
  color:#6651d8!important;
  padding:5px 8px!important;
  font-size:8.2px!important;
}
html:not([data-theme="dark"]) .proHero h2{
  color:var(--text)!important;
  font-size:20px!important;
  line-height:1.08!important;
  margin:9px 0 5px!important;
}
html:not([data-theme="dark"]) .proHero p{
  color:var(--muted)!important;
  font-size:10.3px!important;
  line-height:1.42!important;
  max-width:350px!important;
}
html:not([data-theme="dark"]) .proHeroActions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
  margin-top:10px!important;
}
html:not([data-theme="dark"]) .proHeroBtn{
  min-width:0!important;
  min-height:36px!important;
  padding:8px 8px!important;
  border-radius:12px!important;
  font-size:9.5px!important;
  line-height:1.15!important;
}
html:not([data-theme="dark"]) .proHeroBtn.primaryPro{
  background:linear-gradient(135deg,#6d50f4,#7357ff)!important;
  color:#fff!important;
  box-shadow:0 6px 16px rgba(115,87,255,.18)!important;
}
html:not([data-theme="dark"]) .proHeroBtn.ghostPro{
  background:rgba(255,255,255,.78)!important;
  color:var(--text)!important;
  border:1px solid rgba(194,202,220,.72)!important;
}

/* iOS Safari/WebView : un champ <16 px provoque un zoom automatique au focus.
   On garde le layout compact mais la taille native du champ de recherche à 16 px. */
@media(max-width:767px){
  #home .smartSearchInput{
    font-size:16px!important;
    line-height:1.25!important;
  }
}

/* Le mode sombre conserve ses aplats sombres actuels ; on réduit seulement légèrement la hauteur. */
html[data-theme="dark"] .familyHeroV2{padding:15px!important;border-radius:22px!important;margin-bottom:9px!important}
html[data-theme="dark"] .familyHeroV2 h3{font-size:21px!important;margin:9px 0 6px!important}
html[data-theme="dark"] .familyHeroV2 p{font-size:10.4px!important;line-height:1.43!important}
html[data-theme="dark"] .proHero{padding:15px!important;border-radius:22px!important;margin:6px 0 10px!important}
html[data-theme="dark"] .proHero h2{font-size:21px!important;margin:9px 0 5px!important}
html[data-theme="dark"] .proHero p{font-size:10.5px!important;line-height:1.43!important}
html[data-theme="dark"] .proHeroActions{gap:6px!important;margin-top:10px!important}
html[data-theme="dark"] .proHeroBtn{padding:9px 10px!important;font-size:9.8px!important;border-radius:12px!important}
