html,
body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #f5f5f5;
}

/* ---------------- Form ---------------- */
.form-signin {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  margin: 0 auto;
}
.form-signin .checkbox {
  font-weight: 400;
}
.form-signin .form-control {
  position: relative;
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  font-size: 16px;
}
.form-signin .form-control:focus {
  z-index: 2;
}
.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* ---------------- Card ---------------- */
.card-bordered {
  border: 1px solid #ebebeb;
}
.card {
  border: 0;
  border-radius: 0;
  margin-bottom: 30px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.03);
  transition: .5s;
}
.padding {
  padding: 3rem !important;
}
body {
  background-color: #f9f9fa;
}
.card-header:first-child {
  border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: transparent;
  border-bottom: 1px solid rgba(77,82,89,0.07);
}
.card-header .card-title {
  padding: 0;
  border: none;
}
h4.card-title {
  font-size: 17px;
}
.card-header>* {
  margin: 0 8px;
}
.btn-secondary {
  color: #4d5259 !important;
  background-color: #e4e7ea;
  border-color: #e4e7ea;
}
.btn-xs {
  font-size: 11px;
  padding: 2px 8px;
  line-height: 18px;
}
.btn-xs:hover {
  color:#fff !important;
}
.card-title {
  font-family: Roboto,sans-serif;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 0;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(77,82,89,0.07);
}

/* ---------------- Chat ---------------- */
.ps-container {
  position: relative;
  touch-action: auto;
  overflow: hidden !important;
  -ms-overflow-style: none;
}
.media-chat {
  padding-right: 64px;
  margin-bottom: 0;
}
.media {
  padding: 16px 12px;
  transition: background-color .2s linear;
}
.media .avatar {
  flex-shrink: 0;
}
.avatar {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 100%;
  background-color: #f5f6f7;
  color: #8b95a5;
  text-transform: uppercase;
}
.media-chat .media-body {
  display: table;
}
.media-body {
  min-width: 0;
}
.media-chat .media-body p {
  position: relative;
  padding: 6px 8px;
  margin: 4px 0;
  background-color: #f5f6f7;
  border-radius: 3px;
  font-weight: 100;
  color:#9b9b9b;
}
.media>* {
  margin: 0 8px;
}
.media-chat .media-body p.meta {
  background-color: transparent !important;
  padding: 0;
  opacity: .8;
}
.media-meta-day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  color: #8b95a5;
  opacity: .8;
  font-weight: 400;
}
.media-meta-day::before,
.media-meta-day::after {
  content: '';
  flex: 1 1;
  border-top: 1px solid #ebebeb;
}
.media-meta-day::before {
  margin-right: 16px;
}
.media-meta-day::after {
  margin-left: 16px;
}
.media-chat.media-chat-reverse {
  padding-right: 12px;
  padding-left: 64px;
  flex-direction: row-reverse;
}
.media-chat.media-chat-reverse .media-body p {
  float: right;
  clear: right;
  background-color: #48b0f7;
  color: #fff;
}

/* ---------------- Publisher ---------------- */
.border-light {
  border-color: #f1f2f3 !important;
}
.bt-1 {
  border-top: 1px solid #ebebeb !important;
}
.publisher {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background-color: #f9fafb;
}
.publisher>* {
  margin: 0 8px;
}
.publisher-input {
  flex-grow: 1;
  border: none;
  outline: none !important;
  background-color: transparent;
}
button, input, optgroup, select, textarea {
  font-family: Roboto,sans-serif;
  font-weight: 300;
}
.publisher-btn {
  background-color: transparent;
  border: none;
  color: #cac7c7;
  font-size: 16px;
  cursor: pointer;
  transition: .2s linear;
}
.file-group {
  position: relative;
  overflow: hidden;
}
.file-group input[type="file"] {
  position: absolute;
  opacity: 0;
  z-index: -1;
  width: 20px;
}
.text-info {
  color: #48b0f7 !important;
}

/* ---------------- Titles (mobile + desktop) ---------------- */
#top_title,
#sub_title {
  display: block;   /* visibles sur mobile */
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1em;   /* taille par défaut mobile */
}
@media (min-width: 1024px) {
  #top_title,
  #sub_title {
    font-size: 1.4em;  /* plus grand sur desktop */
  }
}
