/* ========================================================================== */
/* ETHNOS R204 — reprise propre depuis R198.                                  */
/* Textes R199 conservés ; standard orange appliqué uniquement par liste      */
/* blanche. Aucun champ, sélecteur, lettre ou bouton continental n'est ciblé. */
/* ========================================================================== */

/* Grand bloc : changements éditoriaux validés de R199. */
@media (min-width:901px){
  html[data-ethnos-ui="discord-r111"] body.isEthnosHomeView .r180HomeHero{
    grid-template-rows:minmax(0,1fr) !important;
  }
  html[data-ethnos-ui="discord-r111"] body.isEthnosHomeView .r180HomeHeroCopy{
    border-right:0 !important;
  }
  html[data-ethnos-ui="discord-r111"] body.isEthnosHomeView .r180TrajectorySteps{
    border-top:0 !important;
    padding-top:0 !important;
  }
  html[data-ethnos-ui="discord-r111"] body.isEthnosHomeView .r180TrajectoryFoot{
    display:none !important;
    border:0 !important;
    background:none !important;
  }
  html[data-ethnos-ui="discord-r111"] body.isEthnosHomeView .r180HomeIntro,
  html[data-ethnos-ui="discord-r111"] body.isEthnosHomeView .r180TrajectoryManifesto,
  html[data-ethnos-ui="discord-r111"] body.isEthnosHomeView .r180MilestoneReward span{
    text-align:justify !important;
    text-align-last:left !important;
    hyphens:auto !important;
    -webkit-hyphens:auto !important;
  }
}
@media (max-width:900px){
  html[data-ethnos-ui="discord-r111"] body.isEthnosHomeView .r180TrajectoryFoot{
    display:none !important;
    border:0 !important;
    padding:0 !important;
    margin:0 !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Standard orange R204 — classe explicite uniquement.                        */
/* La largeur et les marges restent celles de chaque volet.                   */
/* -------------------------------------------------------------------------- */
html[data-ethnos-ui] body button.ethnosActionOrange.ethnosActionOrange,
html[data-ethnos-ui] body button.memberMediaEditProfileButton.memberMediaEditProfileButton{
  appearance:none !important;
  box-sizing:border-box !important;
  height:38px !important;
  min-height:38px !important;
  padding:0 12px !important;
  border:1px solid rgba(255,188,139,.78) !important;
  border-radius:9px !important;
  background:linear-gradient(180deg,#ff9655 0%,#f47f3c 100%) !important;
  color:#071826 !important;
  font-family:var(--font-interface,Manrope,"Segoe UI",Arial,sans-serif) !important;
  font-size:clamp(10px,.72vw,13px) !important;
  font-weight:500 !important;
  font-style:normal !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  text-align:center !important;
  text-decoration:none !important;
  text-transform:none !important;
  text-shadow:none !important;
  white-space:nowrap !important;
  vertical-align:middle !important;
  box-shadow:0 4px 0 #cf5d25,0 8px 14px rgba(0,0,0,.22) !important;
  cursor:pointer !important;
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease !important;
}
html[data-ethnos-ui] body button.ethnosActionOrange.ethnosActionOrange:hover,
html[data-ethnos-ui] body button.ethnosActionOrange.ethnosActionOrange:focus-visible,
html[data-ethnos-ui] body button.memberMediaEditProfileButton.memberMediaEditProfileButton:hover,
html[data-ethnos-ui] body button.memberMediaEditProfileButton.memberMediaEditProfileButton:focus-visible{
  filter:brightness(1.06) !important;
  transform:translateY(-1px) !important;
  outline:none !important;
  box-shadow:0 5px 0 #cf5d25,0 10px 16px rgba(0,0,0,.23) !important;
}
html[data-ethnos-ui] body button.ethnosActionOrange.ethnosActionOrange:active,
html[data-ethnos-ui] body button.memberMediaEditProfileButton.memberMediaEditProfileButton:active{
  transform:translateY(3px) !important;
  box-shadow:0 1px 0 #cf5d25,0 4px 8px rgba(0,0,0,.20) !important;
}
html[data-ethnos-ui] body button.ethnosActionOrange.ethnosActionOrange:disabled,
html[data-ethnos-ui] body button.ethnosActionOrange.ethnosActionOrange[aria-disabled="true"],
html[data-ethnos-ui] body button.memberMediaEditProfileButton.memberMediaEditProfileButton:disabled,
html[data-ethnos-ui] body button.memberMediaEditProfileButton.memberMediaEditProfileButton[aria-disabled="true"]{
  cursor:not-allowed !important;
  opacity:.58 !important;
  filter:saturate(.65) !important;
  transform:none !important;
}

/* Le bouton Fermer du Tchat conserve sa géométrie et son positionnement R188. */
html[data-ethnos-ui] body.isTchatDrawerOpen button.r186TchatClose.ethnosActionOrange.ethnosActionOrange{
  padding:0 10px !important;
}

/* Protection documentaire : ces contrôles ne reçoivent jamais le standard. */
html body .realFlagSelectButton,
html body .realFlagSelectOption,
html body .memberDirectoryAlphabet button,
html body .salonContinentShortcuts button{
  font-weight:500;
}

@media (max-height:820px) and (min-width:901px){
  html[data-ethnos-ui] body button.ethnosActionOrange.ethnosActionOrange,
  html[data-ethnos-ui] body button.memberMediaEditProfileButton.memberMediaEditProfileButton{
    height:33px !important;
    min-height:33px !important;
  }
}
