/* ========================================================================== */
/* ETHNOS R214 — déploiement total du bouton d'action officiel.               */
/* Référence unique : bouton « Fermer » du volet Tchat de R213.               */
/* Liste blanche stricte : aucun champ, lettre A-Z, sélecteur, continent,      */
/* bouton blanc, bouton bleu ou autre commande n'est ciblé.                    */
/* ========================================================================== */

:root{
  --r214-action-border:rgba(255,211,183,.92);
  --r214-action-bg:linear-gradient(180deg,#ffad7a 0%,#ee8d55 100%);
  --r214-action-ink:#071826;
  --r214-action-relief:#c96d3d;
  --r214-action-shadow:rgba(0,0,0,.11);
}

/* Référence + liste blanche complète demandée. La largeur et les marges       */
/* restent celles de chaque contexte ; tous les autres paramètres visuels      */
/* suivent le bouton Fermer officiel.                                           */
html[data-ethnos-ui] body button.r186TchatClose.ethnosActionOrange,
html[data-ethnos-ui] body .salonQuickSearch > button[type="submit"],
html[data-ethnos-ui] body .memberDirectoryNameForm > button[type="submit"],
html[data-ethnos-ui] body .memberDirectoryLocationForm > button[type="submit"],
html[data-ethnos-ui] body button.memberDirectoryLetterSearchButton,
html[data-ethnos-ui] body button.memberDirectoryRestartButton,
html[data-ethnos-ui] body button[data-accept-invitation],
html[data-ethnos-ui] body button[data-message-mark-all],
html[data-ethnos-ui] body button.memberMessageManageButton[data-open-conversation-info],
html[data-ethnos-ui] body button[data-media-library-upload="photos"],
html[data-ethnos-ui] body button.memberMediaEditProfileButton,
html[data-ethnos-ui] body button[data-media-library-upload="documents"],
html[data-ethnos-ui] body button.memberEdit[data-open-profile-editor],
html[data-ethnos-ui] body button[data-save-profile-editor]{
  appearance:none !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:38px !important;
  min-height:38px !important;
  max-height:38px !important;
  padding:0 12px !important;
  border:1px solid var(--r214-action-border) !important;
  border-radius:9px !important;
  background:var(--r214-action-bg) !important;
  background-color:#ee8d55 !important;
  color:var(--r214-action-ink) !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 1px 0 var(--r214-action-relief),0 3px 5px var(--r214-action-shadow) !important;
  filter:none !important;
  transform:translateY(0) !important;
  cursor:pointer !important;
  transition:transform .12s ease,filter .12s ease,box-shadow .12s ease !important;
}

html[data-ethnos-ui] body button.r186TchatClose.ethnosActionOrange:hover,
html[data-ethnos-ui] body button.r186TchatClose.ethnosActionOrange:focus-visible,
html[data-ethnos-ui] body .salonQuickSearch > button[type="submit"]:hover,
html[data-ethnos-ui] body .salonQuickSearch > button[type="submit"]:focus-visible,
html[data-ethnos-ui] body .memberDirectoryNameForm > button[type="submit"]:hover,
html[data-ethnos-ui] body .memberDirectoryNameForm > button[type="submit"]:focus-visible,
html[data-ethnos-ui] body .memberDirectoryLocationForm > button[type="submit"]:hover,
html[data-ethnos-ui] body .memberDirectoryLocationForm > button[type="submit"]:focus-visible,
html[data-ethnos-ui] body button.memberDirectoryLetterSearchButton:not(:disabled):hover,
html[data-ethnos-ui] body button.memberDirectoryLetterSearchButton:not(:disabled):focus-visible,
html[data-ethnos-ui] body button.memberDirectoryRestartButton:hover,
html[data-ethnos-ui] body button.memberDirectoryRestartButton:focus-visible,
html[data-ethnos-ui] body button[data-accept-invitation]:hover,
html[data-ethnos-ui] body button[data-accept-invitation]:focus-visible,
html[data-ethnos-ui] body button[data-message-mark-all]:hover,
html[data-ethnos-ui] body button[data-message-mark-all]:focus-visible,
html[data-ethnos-ui] body button.memberMessageManageButton[data-open-conversation-info]:hover,
html[data-ethnos-ui] body button.memberMessageManageButton[data-open-conversation-info]:focus-visible,
html[data-ethnos-ui] body button[data-media-library-upload="photos"]:hover,
html[data-ethnos-ui] body button[data-media-library-upload="photos"]:focus-visible,
html[data-ethnos-ui] body button.memberMediaEditProfileButton:hover,
html[data-ethnos-ui] body button.memberMediaEditProfileButton:focus-visible,
html[data-ethnos-ui] body button[data-media-library-upload="documents"]:hover,
html[data-ethnos-ui] body button[data-media-library-upload="documents"]:focus-visible,
html[data-ethnos-ui] body button.memberEdit[data-open-profile-editor]:hover,
html[data-ethnos-ui] body button.memberEdit[data-open-profile-editor]:focus-visible,
html[data-ethnos-ui] body button[data-save-profile-editor]:hover,
html[data-ethnos-ui] body button[data-save-profile-editor]:focus-visible{
  filter:brightness(1.025) !important;
  transform:translateY(-1px) !important;
  outline:none !important;
  box-shadow:0 2px 0 var(--r214-action-relief),0 4px 6px rgba(0,0,0,.12) !important;
}

html[data-ethnos-ui] body button.r186TchatClose.ethnosActionOrange:active,
html[data-ethnos-ui] body .salonQuickSearch > button[type="submit"]:active,
html[data-ethnos-ui] body .memberDirectoryNameForm > button[type="submit"]:active,
html[data-ethnos-ui] body .memberDirectoryLocationForm > button[type="submit"]:active,
html[data-ethnos-ui] body button.memberDirectoryLetterSearchButton:not(:disabled):active,
html[data-ethnos-ui] body button.memberDirectoryRestartButton:active,
html[data-ethnos-ui] body button[data-accept-invitation]:active,
html[data-ethnos-ui] body button[data-message-mark-all]:active,
html[data-ethnos-ui] body button.memberMessageManageButton[data-open-conversation-info]:active,
html[data-ethnos-ui] body button[data-media-library-upload="photos"]:active,
html[data-ethnos-ui] body button.memberMediaEditProfileButton:active,
html[data-ethnos-ui] body button[data-media-library-upload="documents"]:active,
html[data-ethnos-ui] body button.memberEdit[data-open-profile-editor]:active,
html[data-ethnos-ui] body button[data-save-profile-editor]:active{
  filter:brightness(.995) !important;
  transform:translateY(1px) !important;
  box-shadow:0 0 0 var(--r214-action-relief),0 2px 3px rgba(0,0,0,.09) !important;
}

/* Règle supplémentaire du bouton « Chercher avec cette lettre » :            */
/* pleine largeur, et état désactivé conservé tant qu'aucune lettre n'est      */
/* sélectionnée. Aucune animation ne doit se déclencher dans cet état.         */
html[data-ethnos-ui] body button.memberDirectoryLetterSearchButton{
  width:100% !important;
}
html[data-ethnos-ui] body button.memberDirectoryLetterSearchButton:disabled,
html[data-ethnos-ui] body button.memberDirectoryLetterSearchButton[aria-disabled="true"]{
  opacity:.45 !important;
  cursor:not-allowed !important;
  filter:none !important;
  transform:none !important;
  box-shadow:0 1px 0 var(--r214-action-relief),0 3px 5px var(--r214-action-shadow) !important;
}

/* La référence Fermer garde sa géométrie propre au volet Tchat. */
html[data-ethnos-ui] body.isTchatDrawerOpen button.r186TchatClose.ethnosActionOrange,
html[data-ethnos-ui] body.isTchatDrawerClosing button.r186TchatClose.ethnosActionOrange{
  width:72% !important;
  min-width:0 !important;
  max-width:none !important;
  margin:10px auto 14px !important;
  padding:0 10px !important;
}

@media (max-height:820px) and (min-width:901px){
  html[data-ethnos-ui] body .salonQuickSearch > button[type="submit"],
  html[data-ethnos-ui] body .memberDirectoryNameForm > button[type="submit"],
  html[data-ethnos-ui] body .memberDirectoryLocationForm > button[type="submit"],
  html[data-ethnos-ui] body button.memberDirectoryLetterSearchButton,
  html[data-ethnos-ui] body button.memberDirectoryRestartButton,
  html[data-ethnos-ui] body button[data-accept-invitation],
  html[data-ethnos-ui] body button[data-message-mark-all],
  html[data-ethnos-ui] body button.memberMessageManageButton[data-open-conversation-info],
  html[data-ethnos-ui] body button[data-media-library-upload="photos"],
  html[data-ethnos-ui] body button.memberMediaEditProfileButton,
  html[data-ethnos-ui] body button[data-media-library-upload="documents"],
  html[data-ethnos-ui] body button.memberEdit[data-open-profile-editor],
  html[data-ethnos-ui] body button[data-save-profile-editor]{
    height:33px !important;
    min-height:33px !important;
    max-height:33px !important;
  }
}
