/*
 * Small text editor
 */

/* Global */
:root {
  --bleuLight: #224ba5;
  --bleuDark: #174a6e;
  --marronTronc: #816b6b;
  --marronClair: #d5bfbf;
  --beigePale: #eadfdf;
  --rougeAnnuler : #9b261b;
  --bleuPaleLight: #e8f1ff;
  --bleuPaleDark: #b0ceff;
  --orangePale: #eebd6e;
  --orangeDark: #ce8510;
}

/* BUTTON */
.btn_bleu_dark {
  background-color: var(--bleuDark) !important;
  color: #fff !important;
  text-transform: initial !important;
}

.div_new {
  display: flex;
  justify-content: flex-end;
}

.edit_active label {
  color: var(--bleuDark);
}

.edit_active .article_editable {
  background-color: var(--bleuPaleDark); 
  border-radius: 4px;
}

[editable] {
  border-bottom: 1px solid var(--bleuPaleDark);
  border-right: 1px solid var(--bleuPaleDark);
  border-radius: 4px;
  background-color: var(--bleuPaleLight);
  padding: 0.75rem 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  color: #111;
  font-family: 'Josefin Sans', sans-serif;
}

.btn_action {
  position: absolute !important;
  right: 0;
  bottom: 0;
  height: 2.5rem !important;
  display: flex;
}

.btn_action select {
  width: 15rem; 
  border: 1px solid #b4b4b4;
  padding: 0 1em;
}

.btn_action button {
  width: 6rem;
  height: 100%;
}

.btn_action span {
  font-family: 'themify';
  color: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn_action span[data-action="validate"] {
  background-color: var(--bleuDark);
}

.btn_action span[data-action="cancel"] {
  background-color: var(--rougeAnnuler);
}

.mce-tinymce {
  margin-bottom: 1rem !important;
}

span.ti-trash {
  color: var(--rougeAnnuler);
  cursor: pointer;
  transition: all .3s ease-in-out;
  position: absolute;
  font-size: 25px;
  z-index: 1;
  background-color: var(--bleuPaleLight);
}

span.ti-trash[data-collection="article"] {
  top: 10px;
  right: 25px;
}

span.ti-trash[data-collection="association"] {
  top: 10px;
  right: 10px;
}

span.ti-trash[data-collection="carte"] {
  top: 30px;
  right: 30px;
}

span.ti-trash:hover {
  transform: scale(1.20);
  color: red;
}

.validation_suppression {
  position: fixed;
  top: calc(50% - 200px);
  left: calc(50% - 200px);
  width: 400px;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  padding: 1rem;
  background-color: var(--orangePale);
  border-right: 1px solid var(--orangeDark);
  border-bottom: 1px solid var(--orangeDark);
  z-index: 3;
}

.validation_suppression div {
  display: flex;
  justify-content: space-around;
}

.validation_suppression div .validez_suppression,
.validation_suppression div .annulez_suppression {
  border-radius: 5px;
  width: 40%;
  border: 0;
  color: #fff;
  background-color: var(--orangeDark);
  transition: all .3s ease-in-out;
}

.validation_suppression div .validez_suppression:hover {
  background-color: var(--bleuDark);
}

.validation_suppression div .annulez_suppression:hover {
  background-color: var(--rougeAnnuler);
}

.editor {
  min-height: 18rem;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.3);
  border-top: 6px solid var(--bleuLight);
  border-radius: 3px;
  margin: 1rem 0;
  background-color: #fff;
}

.editor .toolbar {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.editor .toolbar .line .box {
  display: flex;
  width: 100%;
}

.editor .toolbar .line .box .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: 0.2s ease all;
  color: var(--bleuDark);
  padding: 0.75rem 3px;
  width: 100%;
}

.editor .toolbar .line .box .btn:hover,
.editor .toolbar .line .box .btn.active {
  background-color: #e1e1e1;
  color: var(--bleuLight);
  cursor: pointer;
}

.editor .toolbar .line .box .btn.dro_bold {
  transform: translateY(2px);
}

.editor .toolbar .line .box .btn.ti-check {
  background-color: var(--bleuDark);
  color: #fff;
  font-weight: 900;
}

.editor .toolbar .line .box .btn.ti-close {
  background-color: var(--rougeAnnuler);
  color: #fff;
  font-weight: 900;
}

.editor .content_area {
  padding: 15px 12px;
  line-height: 1.5;
}

.editor .content_area .visual_view {
  outline: none;
  position: relative;
}

.editor .content_area .visual_view > * {
  min-height: 2rem;
  font-size: 1.15rem;
  color: #111;
  font-family: 'Josefin Sans', sans-serif;
}

.editor .content_area .visual_view p {
  margin: 12px 0;
}

.editor .content_area .visual_view a {
  text-decoration: underline;
  text-decoration-color: var(--bleuLight);
}

/* Ajouts des liens */
.actual_link {
  position: relative;
}

.enter_link {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  border: 2px solid var(--bleuLight);
  border-radius: 4px;
}

.enter_link_input {
  border: 0;
  border-radius: 2px 0 0 2px;
  font-weight: 300;
}

.enter_link_input option {
  font-weight: 300;
}

.enter_link_input:focus {
  outline: none !important;
  box-shadow: 0 0 10px var(--bleuLight);
}

.enter_link_input::-webkit-input-placeholder,
.enter_link_input::-moz-placeholder,
.enter_link_input:-moz-placeholder { 
  color: #ddd;
  font-weight: 300;
}

#enter_link_validate {
  border: 0;
  border-radius: 0 2px 2px 0;
  color: #fff;
  background-color: var(--bleuLight);
}

/* Buttons */
.btn.btn_add_blue {
  background-color: var(--bleuPaleDark);
  color: #fff;
  text-transform: initial;
  border: 1px solid var(--bleuPaleDark);
}

.btn.btn_add_blue:hover {
  background-color: #fff;
  color: var(--bleuPaleDark);
}

.btn_close {
  position: absolute;
  top: 0;
  right: 15px;
  border: 0;
  width: 30px;
  height: 30px;
  color: var(--bleuDark);
  background-color: transparent;
}

.btn_close span {
  transition: all .3s ease-in-out;
}

.btn_close span:hover {
  font-weight: 900;
}

.mce-container.mce-panel.mce-floatpanel.mce-menu.mce-animate.mce-fixed.mce-menu-align.mce-in {
  bottom: 1rem;
}