/* ------------------------------------ *\
  CONTENTS
\* ------------------------------------ */

/**
 * CONTENTS..............You’re reading it!
 * BASE STYLE .............................
*/

/* ------------------------------------ *\
  ==BASE STYLE
\* ------------------------------------ */
.strip-page-floating:before {
  font: var(--fa-font-regular);
  color: var(--bs-black);
  content: '\f054';
  position: absolute;
}

/* L'élément flottant sur le côté gauche de la page */
.strip-page-floating {
  position: fixed;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 1.5rem;
  min-height: 5rem;
  background-color: #b9b9b9;
  border-radius: 0 5px 5px 0;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
  -webkit-transition:
    width 0.15s ease-in-out,
    opacity 0.3s ease-in-out;
  transition:
    width 0.15s ease-in-out,
    opacity 0.3s ease-in-out;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  opacity: 0.5;
}

/* Le lien à l'intérieur de l'élément flottant */
.strip-page-link {
  color: #000;
  text-decoration: none;
  font-size: 14px;
  display: none; /* Masqué par défaut */
  margin: 0.5rem;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  min-width: 150px;
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

/* Ouvrir l'élément flottant au survol */
.strip-page-floating:hover {
  width: 200px;
  opacity: 1;
}

.strip-page-floating:hover:before {
  opacity: 0;
}

.strip-page-floating .strip-page-link:hover {
  text-decoration: underline;
}

/* Afficher le lien quand l'élément est ouvert */
.strip-page-floating:hover .strip-page-link {
  display: block;
}
