/* ========================================================================== */
/* ETHNOS R153 — Trophées officiels, contacts de référence, Messages          */
/* Base : R152. Correctifs ciblés du 4 août 2026.                              */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* 1 — Messages : +10 px à 1536 × 864 et +10 px à 1366 × 768.                */
/* Le centrage structurel reste inchangé.                                     */
/* -------------------------------------------------------------------------- */
@media (width:1536px) and (height:864px){
  html body .memberMessagesDrawer .memberMessageSearch{
    width:calc(100% - 88px) !important;
    max-width:calc(100% - 88px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    justify-self:center !important;
    transform:none !important;
  }
}
@media (width:1366px) and (height:768px){
  html body .memberMessagesDrawer .memberMessageSearch{
    width:calc(100% - 63px) !important;
    max-width:calc(100% - 63px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    justify-self:center !important;
    transform:none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* 2 — Contacts : même bandeau de référence que les résultats Annuaire.       */
/* -------------------------------------------------------------------------- */
html body .bodyContactsDrawer{
  --r153-cream:#fff8ee;
  --r153-cream-alt:#fff1df;
  --r153-navy:#071a39;
  --r153-orange:#f26722;
  --r153-teal:#31d1cf;
  --r153-line:rgba(7,26,57,.13);
}
html body .bodyContactGrid{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  padding:0 !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  background:var(--r153-cream) !important;
}
html body .bodyContactGrid .memberDirectoryResult,
html body .memberDirectoryShell.isResultsMode .memberDirectoryResult{
  box-sizing:border-box !important;
  width:100% !important;
  max-width:none !important;
  min-height:78px !important;
  margin:0 !important;
  padding:11px 15px !important;
  display:grid !important;
  grid-template-columns:56px minmax(0,1fr) 30px 52px minmax(72px,auto) !important;
  align-items:center !important;
  gap:10px !important;
  border:0 !important;
  border-bottom:1px solid var(--r153-line) !important;
  border-radius:0 !important;
  background:var(--r153-cream) !important;
  color:var(--r153-navy) !important;
  box-shadow:none !important;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease !important;
}
html body .bodyContactGrid .memberDirectoryResult:nth-child(even),
html body .memberDirectoryShell.isResultsMode .memberDirectoryResult:nth-child(even){
  background:var(--r153-cream-alt) !important;
}
html body .bodyContactGrid .memberDirectoryResult:hover,
html body .bodyContactGrid .memberDirectoryResult:focus-visible,
html body .memberDirectoryShell.isResultsMode .memberDirectoryResult:hover,
html body .memberDirectoryShell.isResultsMode .memberDirectoryResult:focus-visible{
  position:relative !important;
  z-index:1 !important;
  filter:brightness(1.012) !important;
  transform:translateY(-1px) !important;
  box-shadow:0 9px 20px rgba(7,26,57,.10) !important;
  outline:none !important;
}
html body .bodyContactGrid .memberDirectoryIdentity,
html body .memberDirectoryShell.isResultsMode .memberDirectoryIdentity{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:2px !important;
}
html body .bodyContactGrid .memberDirectoryIdentity strong,
html body .memberDirectoryShell.isResultsMode .memberDirectoryIdentity strong{
  width:100% !important;
  max-width:100% !important;
  overflow:visible !important;
  color:var(--r153-navy) !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:1.08 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  text-overflow:clip !important;
}
html body .bodyContactGrid .memberDirectoryIdentity small,
html body .memberDirectoryShell.isResultsMode .memberDirectoryIdentity small{
  width:100% !important;
  color:#607481 !important;
  font-family:Manrope,Inter,"Segoe UI",Arial,sans-serif !important;
  font-size:9px !important;
  font-weight:650 !important;
  line-height:1.22 !important;
  white-space:normal !important;
}
html body .memberDirectoryFollowState{
  display:inline-flex !important;
  align-items:center !important;
  min-height:18px !important;
  margin-top:3px !important;
  padding:2px 9px !important;
  border:1px solid rgba(49,209,207,.42) !important;
  border-radius:999px !important;
  background:rgba(49,209,207,.11) !important;
  color:#147f7e !important;
  font-family:Manrope,Inter,"Segoe UI",Arial,sans-serif !important;
  font-size:8px !important;
  font-weight:800 !important;
  line-height:1 !important;
  letter-spacing:.02em !important;
}
html body .bodyContactGrid .memberDirectoryAvatar,
html body .memberDirectoryShell.isResultsMode .memberDirectoryAvatar{
  width:52px !important;
  height:52px !important;
  border:2px solid rgba(242,103,34,.72) !important;
}
html body .bodyContactGrid .memberDirectoryFlag,
html body .memberDirectoryShell.isResultsMode .memberDirectoryFlag{
  width:28px !important;
  max-width:28px !important;
  height:auto !important;
}
html body .bodyContactGrid .memberDirectoryShield,
html body .memberDirectoryShell.isResultsMode .memberDirectoryShield{
  width:48px !important;
  max-width:48px !important;
  height:48px !important;
  object-fit:contain !important;
}
html body .bodyContactGrid .memberDirectoryPresence,
html body .memberDirectoryShell.isResultsMode .memberDirectoryPresence{
  min-width:72px !important;
  justify-content:flex-start !important;
  font-family:Manrope,Inter,"Segoe UI",Arial,sans-serif !important;
  font-size:9px !important;
  font-weight:700 !important;
  white-space:normal !important;
}
html body .bodyContactEmpty{
  box-sizing:border-box !important;
  width:100% !important;
  margin:0 !important;
  padding:34px 18px !important;
  color:#607481 !important;
  font-family:Manrope,Inter,"Segoe UI",Arial,sans-serif !important;
  font-size:11px !important;
  font-weight:650 !important;
  line-height:1.45 !important;
  text-align:center !important;
}

@media (max-width:1600px) and (max-height:920px){
  html body .bodyContactGrid .memberDirectoryResult,
  html body .memberDirectoryShell.isResultsMode .memberDirectoryResult{
    min-height:62px !important;
    padding:7px 10px !important;
    grid-template-columns:43px minmax(0,1fr) 23px 38px minmax(58px,auto) !important;
    gap:7px !important;
  }
  html body .bodyContactGrid .memberDirectoryAvatar,
  html body .memberDirectoryShell.isResultsMode .memberDirectoryAvatar{
    width:40px !important;
    height:40px !important;
    font-size:10px !important;
  }
  html body .bodyContactGrid .memberDirectoryIdentity strong,
  html body .memberDirectoryShell.isResultsMode .memberDirectoryIdentity strong{
    font-size:11px !important;
  }
  html body .bodyContactGrid .memberDirectoryIdentity small,
  html body .memberDirectoryShell.isResultsMode .memberDirectoryIdentity small{
    font-size:7px !important;
  }
  html body .memberDirectoryFollowState{
    min-height:15px !important;
    margin-top:2px !important;
    padding:1px 7px !important;
    font-size:6.5px !important;
  }
  html body .bodyContactGrid .memberDirectoryFlag,
  html body .memberDirectoryShell.isResultsMode .memberDirectoryFlag{
    width:21px !important;
    max-width:21px !important;
  }
  html body .bodyContactGrid .memberDirectoryShield,
  html body .memberDirectoryShell.isResultsMode .memberDirectoryShield{
    width:35px !important;
    max-width:35px !important;
    height:35px !important;
  }
  html body .bodyContactGrid .memberDirectoryPresence,
  html body .memberDirectoryShell.isResultsMode .memberDirectoryPresence{
    min-width:58px !important;
    font-size:7px !important;
  }
}

/* -------------------------------------------------------------------------- */
/* 3 — Mes trophées : typographie officielle et séparations crème.            */
/* Aucun carré gris : catégories en sections ouvertes, séparées par des traits.*/
/* -------------------------------------------------------------------------- */
html body .memberTrophiesDrawer{
  --r153-trophy-cream:#fff8ee;
  --r153-trophy-cream-alt:#fff1df;
  --r153-trophy-navy:#071a39;
  --r153-trophy-orange:#f26722;
  --r153-trophy-teal:#31d1cf;
  --r153-trophy-line:rgba(7,26,57,.14);
  overflow:hidden !important;
  color:var(--r153-trophy-navy) !important;
  background:var(--r153-trophy-cream) !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
}
html body .memberTrophiesShell{
  box-sizing:border-box !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  padding:10px 14px 10px !important;
  display:grid !important;
  grid-template-rows:auto auto 1px minmax(0,1fr) auto 11px auto !important;
  gap:7px !important;
  overflow:hidden !important;
  color:var(--r153-trophy-navy) !important;
  background:var(--r153-trophy-cream) !important;
}
html body .memberTrophiesHeader h2{
  margin:0 !important;
  color:var(--r153-trophy-navy) !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-size:30px !important;
  font-weight:800 !important;
  line-height:1.02 !important;
  letter-spacing:-.025em !important;
  text-align:center !important;
}
html body .memberChosenShield{
  min-height:0 !important;
  padding:2px 8px 7px !important;
  grid-template-columns:84px minmax(0,1fr) !important;
  gap:14px !important;
  border:0 !important;
  background:transparent !important;
}
html body .memberChosenShield>img{
  width:82px !important;
  height:82px !important;
  filter:drop-shadow(0 7px 12px rgba(7,26,57,.12)) !important;
}
html body .memberChosenShieldCopy h3{
  margin:0 0 8px !important;
  color:var(--r153-trophy-navy) !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-size:17px !important;
  font-weight:800 !important;
  line-height:1.12 !important;
}
html body .memberChosenShieldStatus{
  color:var(--r153-trophy-navy) !important;
  font-family:Manrope,Inter,"Segoe UI",Arial,sans-serif !important;
  font-size:10px !important;
  font-weight:650 !important;
}
html body .memberChosenShieldStatus b{font-weight:650 !important}
html body .memberChosenShieldStatus span,
html body .memberTrophyOption>span{
  border-color:rgba(7,26,57,.20) !important;
  background:rgba(255,255,255,.38) !important;
}
html body .memberTrophiesSeparator{
  width:100% !important;
  background:var(--r153-trophy-line) !important;
}
html body .memberTrophyPages{
  min-height:0 !important;
  overflow:hidden !important;
  border:0 !important;
  background:transparent !important;
}
html body .memberTrophyPage{
  height:100% !important;
  min-height:0 !important;
  display:grid !important;
  grid-template-rows:repeat(3,minmax(0,1fr)) !important;
  gap:0 !important;
  border:0 !important;
  background:transparent !important;
}
html body .memberTrophyPage[hidden]{display:none !important}
html body .memberTrophyCategory{
  box-sizing:border-box !important;
  min-height:0 !important;
  margin:0 !important;
  padding:8px 5px 6px !important;
  display:grid !important;
  grid-template-rows:auto minmax(0,1fr) !important;
  border:0 !important;
  border-bottom:1px solid var(--r153-trophy-line) !important;
  border-radius:0 !important;
  color:var(--r153-trophy-navy) !important;
  background:var(--r153-trophy-cream) !important;
  box-shadow:none !important;
}
html body .memberTrophyCategory:nth-child(even){
  background:var(--r153-trophy-cream-alt) !important;
}
html body .memberTrophyCategory:last-child{border-bottom:0 !important}
html body .memberTrophyCategory h3{
  margin:0 !important;
  color:var(--r153-trophy-navy) !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-size:16px !important;
  font-weight:800 !important;
  line-height:1.08 !important;
  text-align:center !important;
  white-space:normal !important;
}
html body .memberTrophyOptions{
  min-height:0 !important;
  padding-top:5px !important;
  align-items:center !important;
  gap:10px !important;
}
html body .memberTrophyOption{
  min-height:0 !important;
  grid-template-rows:minmax(0,1fr) 16px !important;
  gap:2px !important;
}
html body .memberTrophyOption img{
  width:min(62px,82%) !important;
  max-height:62px !important;
  opacity:.58 !important;
  filter:grayscale(1) brightness(.76) contrast(.98) !important;
}
html body .memberTrophyOption.isUnlocked img{
  opacity:1 !important;
  filter:none !important;
}
html body .memberTrophyOption.isLocked>span{opacity:.58 !important}
html body .memberTrophyPagination button{
  border:1px solid rgba(7,26,57,.18) !important;
  background:#fffaf4 !important;
  color:var(--r153-trophy-navy) !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-weight:800 !important;
}
html body .memberTrophyPagination button:first-child,
html body .memberTrophyPagination button:last-child{
  border-color:rgba(242,103,34,.42) !important;
  color:var(--r153-trophy-orange) !important;
}
html body .memberTrophyPagination button.isActive{
  border-color:var(--r153-trophy-orange) !important;
  background:rgba(242,103,34,.13) !important;
  color:var(--r153-trophy-navy) !important;
}
html body .memberTrophySaveState{
  color:#147f7e !important;
  font-family:Manrope,Inter,"Segoe UI",Arial,sans-serif !important;
}
html body .memberTrophiesShell>.memberDrawerCloseButton{
  min-height:42px !important;
  margin:0 !important;
  border:1px solid var(--r153-trophy-navy) !important;
  border-radius:10px !important;
  background:var(--r153-trophy-navy) !important;
  color:#fffaf3 !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-size:13px !important;
  font-weight:800 !important;
}

@media (max-width:1920px) and (max-height:1080px){
  html body .memberTrophiesHeader h2{font-size:25px !important}
  html body .memberChosenShield{
    grid-template-columns:70px minmax(0,1fr) !important;
    gap:11px !important;
  }
  html body .memberChosenShield>img{width:68px !important;height:68px !important}
  html body .memberChosenShieldCopy h3{font-size:14px !important}
  html body .memberChosenShieldStatus{font-size:8.5px !important}
  html body .memberTrophyCategory h3{font-size:14px !important}
  html body .memberTrophyOption img{width:min(54px,80%) !important;max-height:54px !important}
}
@media (max-width:1600px) and (max-height:920px){
  html body .memberTrophiesShell{
    padding:7px 10px 7px !important;
    grid-template-rows:auto auto 1px minmax(0,1fr) auto 8px auto !important;
    gap:4px !important;
  }
  html body .memberTrophiesHeader h2{font-size:21px !important}
  html body .memberChosenShield{
    grid-template-columns:52px minmax(0,1fr) !important;
    gap:8px !important;
    padding:0 4px 3px !important;
  }
  html body .memberChosenShield>img{width:50px !important;height:50px !important}
  html body .memberChosenShieldCopy h3{margin-bottom:3px !important;font-size:11px !important}
  html body .memberChosenShieldStatus{gap:5px !important;font-size:7px !important}
  html body .memberChosenShieldStatus span,
  html body .memberTrophyOption>span{width:12px !important;height:12px !important}
  html body .memberTrophyCategory{padding:4px 3px 3px !important}
  html body .memberTrophyCategory h3{font-size:11px !important}
  html body .memberTrophyOptions{padding-top:2px !important;gap:5px !important}
  html body .memberTrophyOption{grid-template-rows:minmax(0,1fr) 12px !important}
  html body .memberTrophyOption img{width:min(43px,78%) !important;max-height:40px !important}
  html body .memberTrophyPagination button{width:22px !important;height:22px !important;font-size:8px !important}
  html body .memberTrophiesShell>.memberDrawerCloseButton{min-height:34px !important;font-size:10px !important}
}
@media (width:1366px) and (height:768px){
  html body .memberTrophiesShell{padding-top:5px !important}
  html body .memberTrophiesHeader h2{font-size:19px !important}
  html body .memberTrophyCategory h3{font-size:10px !important}
  html body .memberTrophyOption img{width:min(39px,76%) !important;max-height:36px !important}
}

@media (prefers-reduced-motion:reduce){
  html body .bodyContactGrid .memberDirectoryResult,
  html body .memberDirectoryShell.isResultsMode .memberDirectoryResult{
    transition:none !important;
  }
  html body .bodyContactGrid .memberDirectoryResult:hover,
  html body .bodyContactGrid .memberDirectoryResult:focus-visible,
  html body .memberDirectoryShell.isResultsMode .memberDirectoryResult:hover,
  html body .memberDirectoryShell.isResultsMode .memberDirectoryResult:focus-visible{
    transform:none !important;
  }
}
