.cadre {
  position: relative; /* Nécessaire pour que le bouton se positionne par rapport à ce cadre */
  padding: 15px;
  background-color: transparent;
  color: transparent;
}
#toggleSidebarBtn {
  position: absolute !important;
  top: -5px;             /* Ajuste la position verticale selon tes besoins */
  right: 12px;  
  background-color: transparent; /* Fond transparent */
  border: 2px solid red; /* Bordure rouge autour du bouton */
  color: red; /* Couleur de l'icône en rouge */
  padding: 4px 12px; /* Espacement interne */
  font-size: 18px; /* Taille de l'icône */
  border-radius: 25%; /* Rendre le bouton rond */
  cursor: pointer; /* Curseur pointer pour l'interaction */
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

#toggleSidebarBtn i {
  font-size: 22px; /* Taille de l'icône */
}

#toggleSidebarBtn:hover {
  background-color: rgba(255, 0, 0, 0.1); /* Fond légèrement rouge au survol */
  border-color: #b30000; /* Bordure un peu plus foncée au survol */
}

#toggleSidebarBtn {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 6px rgba(255, 255, 255, 0.4),
      0 0 12px rgba(255, 255, 255, 0.3),
      0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 10px rgba(255, 255, 255, 0.7),
      0 0 18px rgba(255, 255, 255, 0.5),
      0 0 28px rgba(255, 255, 255, 0.3);
  }
}

.modern-btn {
    background-color: #11111100;
    color: #f9f9f9fa;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-btn:hover {
    color: #ffffff;
    transform: scale(1.07); /* grossissement fonctionnel */
    box-shadow:
      0 0 14px rgba(255, 255, 255, 0.9),
      0 0 28px rgba(255, 255, 255, 0.6),
      0 0 36px rgba(255, 255, 255, 0.3);
}

.modern-btn i {
    margin-right: 8px;
}

#btnToAlbum {
    position: absolute;
    top: 60px;
    right: 120px;
    z-index: 9999;

    /* Suppression du fond et du flou */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    padding: 0;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

#btnToAlbum img {
    width: 46px;
    height: 46px;
    display: block;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

#btnToAlbum:hover {
    transform: scale(1.3);
}

#fullscreenBtn {
    position: fixed;
    bottom: 14px;
    left: 14px;
    background-color: rgba(20, 20, 20, 0.3);  /* fond légèrement plus opaque */
    color: rgba(0, 255, 255, 0.6);            /* turquoise plus visible */
    border: none;
    padding: 12px;  /* Augmentation de la taille pour faciliter le clic */
    font-size: 16px; /* Légèrement plus grand */
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;  /* Assure que le bouton soit au-dessus de tout */
    opacity: 0.85;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);  /* Ajout léger d'ombre pour le rendre plus visible */
}

/* Au survol */
#fullscreenBtn:hover {
    background-color: rgba(0, 255, 255, 0.1);  /* Fond encore plus léger */
    color: rgba(0, 255, 255, 1);                /* Couleur turquoise plus forte */
    transform: scale(1.1);                      /* Légère animation pour augmenter la réactivité */
}

/* Assure que le bouton soit bien cliquable */
#fullscreenBtn i {
    pointer-events: none;
}

@media screen and (max-width: 600px) {
    #fullscreenBtn {
        font-size: 18px;  /* Agrandir encore sur mobile */
        padding: 14px;    /* Plus de padding pour faciliter l'interaction tactile */
        bottom: 12px;
        left: 12px;
    }
}