body {
  background-attachment: fixed;
  background-size: 200% 200%;
  background-image: linear-gradient(
    -45deg,
    rgb(180, 163, 219) 0%,
    rgb(181, 245, 165) 100%
  );
  -webkit-animation: AnimateBG 10s ease infinite;
  animation: AnimateBG 10s ease infinite;
}

@-webkit-keyframes AnimateBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes AnimateBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.cours-list-element {
  background-color: #536cda;
}

#draggable-items .draggable-item {
  margin: 5px;
  padding: 5px;
  cursor: move;
}

#drop_zone {
  width: 80%;
  min-height: 600px;
  border: 2px dashed #ccc;
  margin-top: 15px;
  background-color: rgb(206, 205, 205);
  margin-left: 10%;
}

.row-2 {
  margin-left: 20%;
}

#output {
  max-width: 500px;
  max-height: 250px;
}

.upload-container {
  border: 2px dashed #d3d3d3;
  text-align: center;
  padding: 20px;
  cursor: pointer;
}

.image-upload-label {
  display: inline-block;
  padding: 10px 25px;
  color: #fff;
  background-color: #007bff;
  border-radius: 5px;
  cursor: pointer;
}

#preview-container {
  margin-top: 20px;
}

.tools-zone {
  position: fixed;
  left: 0px;
  top: 30%;
  width: 5em;
  margin-top: -2.5em;
  background-color: rgb(0, 0, 0);
}

.texte-tools {
  background-color: #da5353;
  width: 60px;
  height: 60px;
}

.image-tools {
  background-color: #53dab2;
  width: 60px;
  height: 60px;
}

.audio-tools {
  background-color: #ffffff;
  width: 60px;
  height: 60px;
}

.video-tools {
  background-color: #536cda;
  width: 60px;
  height: 60px;
}

.question-tools {
  background-color: #c6e116;
  width: 60px;
  height: 60px;
}

.tools-icon {
  width: 100%;
}


#preview {
  margin-top: 10px;
  max-width: 300px;
  max-height: 300px;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 8px;
  object-fit: contain; /* pour éviter la déformation */
  display: none; /* caché tant qu'aucune image n'est sélectionnée */
}

textarea.auto-resize {
  min-height: 50px;
  max-height: 300px;
  overflow-y: hidden;
  resize: none;
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  transition: height 0.2s ease;
}

.element-background {
  background-color: #ccc;
}

.cours-informations {
  background-color: #fff;
}

.tools-panel {
  width: 100px;
  height: 100px;
  position: sticky;
}

.element_cours_form_tiny {
  width: 1px;
  height: 1px;
}

.avx-feedback-float-icon {
  z-index: 2;
}

.avx-feedback-float-icon .fb-float-icon {
  padding: 15px;
  background: #ff6b00;
  border-radius: 20px 20px 20px 20px;
  color: #fff;
  font-size: 16px;
  transition: 0.5s;
  cursor: pointer !important;
  box-shadow: 2px 10px 15px #ff9777;
  animation-name: avx-floating;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.avx-feedback-float-icon .fb-float-icon:hover {
  animation-play-state: paused;
}

.avx-feedback-float-icon .fb-float-icon span {
  padding: 2px 6px;
  margin-left: 5px;
  border: 1px solid #ff9800;
  color: #fff;
  border-radius: 50%;
  font-size: 40px;
  transition: 0.5s;
  background: #ff9800;
}

.avx-feedback-float-icon .fb-float-icon span:hover {
  background: #ffb222;
}

@keyframes avx-floating {
  from {
    transform: translate(0, 0px);
  }
  65% {
    transform: translate(0, 2px);
  }
  to {
    transform: translate(0, -0px);
  }
}

@keyframes avx-shadow-pulse {
  0% {
    box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 0 35px rgba(0, 0, 0, 0);
  }
}

.fixed-button-list {
  position: fixed;
  top: 50%;
  right: 10px;

  transform: translateY(50%);
}

.fixed-button-list button {
  margin-bottom: 10px;
}

.custom-rounded-home {
  border-radius: 50px; /* Vous pouvez ajuster cette valeur selon vos besoins */
}

.custom-height-home {
  height: 100%;
}

.bg-color-outix {
  background-color: #66a5e9;
}

.cours-title {
  font-size: 25px;
  text-align: center;
}

.contenu-text {
  font-size: 20px;
  text-align: center;
  margin-right: 100px;
  margin-left: 100px;
  word-wrap: break-word!important;
  word-break: break-word; /* Coupe les mots trop longs */
  overflow-wrap: break-word; /* Force aussi la césure si besoin */
  white-space: pre-wrap; /* Respecte les retours à la ligne (\n) */
}

.cours-img {
  width: 30%;
  height: 30%;
  max-width: 250px;
  min-width: none;
  text-align: center;
  left: 50%;
  border: 1px solid;
}

.cours-legende {
  font-size: 15px;
  text-align: center;

  font-style: italic;
}

/* Pour superposer les 3 premières colonnes */
.overlay-colonne {
  position: absolute; /* Positionnement absolu */
  top: 0; /* Ajuste en fonction de tes besoins */
  left: 0; /* Ajuste en fonction de tes besoins */
  z-index: 1; /* Superpose cet élément au-dessus des autres */
  width: 100%; /* Adapte la largeur si nécessaire */
  padding: 15px;
}

/* Spécifier les z-index pour chaque colonne */
.col-md-3:nth-child(2) {
  z-index: 2;
  left: -100px; /* Ajuste la position horizontale */
}

.col-md-3:nth-child(3) {
  z-index: 3;
  left: -100px; /* Ajuste la position horizontale */
}

.dot {
  height: 30px;
  width: 30px;
  background-color: #000;
  border-radius: 50%;
  display: inline-block;
}

/* Sticky footer */
html,
body {
  height: 100%;
  margin: 0;
}

.content-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer {
  margin-top: auto;
  text-align: center;
}

/* Adjusting the navbar */
.navbar-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar-custom .navbar-brand {
  margin-left: 0; /* Align logo to the left */
}

.navbar-custom .navbar-nav {
  margin-left: auto; /* Align menu to the right */
}

.navbar-custom .navbar-nav .nav-link {
  padding-left: 10px;
  padding-right: 10px;
}

.login,
.image {
  min-height: 90vh;
}

.bg-image {
  background-image: url("https://picsum.photos/id/433/1080");
  background-size: cover;
  background-position: center center;
}

.bg-image-login {
  background-image: url("https://picsum.photos/id/1079/1080");
  background-size: cover;
  background-position: center center;
}

.bg-image-passreset {
  background-image: url("https://picsum.photos/id/352/1080");
  background-size: cover;
  background-position: center center;
}

.container-fluid {
  max-width: 100%;
}

.account-form input {
  border: 2px solid #ccc;
  height: calc(2em + 0.75rem + 2px);
}

.account-form input:focus {
  border-color: #1497ff;
  box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0.075), 0 0 0px rgba(255, 0, 0, 0.6);
}

.update-form input {
  border: 2px solid #ccc;
  height: calc(2em + 0.75rem + 2px);
}
.update-form input:focus {
  border-color: #1497ff;
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.075), 0 0 0 rgba(255, 0, 0, 0.6);
}

.h250 {
  height: 250px;
}

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 1rem;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}
.list-group-item {
  transition: background-color 0.2s ease;
  border: none;
  border-bottom: 1px solid #f0f0f0;
}
.list-group-item:hover {
  background-color: #f9f9f9;
}
h2,
h3,
h5 {
  font-family: "Segoe UI", "Roboto", sans-serif;
  font-weight: 600;
}
.badge {
  font-size: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.35em 0.65em;
}
.btn-outline-primary,
.btn-outline-success {
  border-radius: 0.5rem;
  font-weight: 500;
}
.btn-outline-primary:hover,
.btn-outline-success:hover {
  color: #fff;
}
.alert-warning {
  background-color: #fffbe6;
  border-color: #ffe58f;
  color: #664d03;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}
@media (max-width: 576px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.border-primary {
  border: 2px solid #0d6efd !important;
}

/* Fond dégradé doux pour item actif */
.accordion-active {
  background: linear-gradient(to right, #b7e2cc, #d0f0e5);
  font-weight: bold;
  color: #2c3e50 !important;
}

/* Pour les liens actifs à l’intérieur */
.accordion-link-active {
  background-color: transparent;
  color: #2c3e50;
  font-weight: bold;
  border-left: 4px solid #5cbf90;
}

.fade-out {
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}

.select2-container .select2-selection--multiple {
  min-height: 38px;
  padding: 0rem 0.75rem;
}
