body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif; 
    overflow: hidden; 
    background-color: #333; /* Fond sombre autour de la diapositive */
}
#float_bt {
    width: 40px; height: 35px;
    z-index: 10;
    background-color: aqua;
    border: 1px solid yellowgreen;
    position: absolute;
    left: 10px; top: 10px;
    text-align: center;
    cursor: pointer;
}

 #float_bt::after {
    content: attr(data-tooltip);
    position: absolute;
    
    /* Positionnement à droite */
    top: 50%;           /* On part du milieu de la div parent */
    left: 110%;         /* On le place juste après le bord droit (100% + 5% de marge) */
    transform: translateY(-50%); /* On le remonte de la moitié de sa propre hauteur pour le centrer */
    
    /* Style visuel */
    background-color: #2f56ac;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
    z-index: 10;
}
 #float_bt:hover::after {
    opacity: 1;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#presentation-container {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; height: 100vh; width: 100vw;
}
canvas { box-shadow: 0 0 20px rgba(0,0,0,0.5); max-width: 100%; max-height: 100%; }
#controls {
    position: fixed; bottom: 20px; color: white; background: rgba(0,0,0,0.7);
    padding: 10px 20px; border-radius: 30px; display: flex; gap: 20px;
}

/* Le conteneur doit être à la taille du canvas */
#pdf-wrapper {
    position: relative;
    display: inline-block; /* Pour coller aux dimensions du canvas */
}

/* La couche d'annotation doit recouvrir exactement le canvas */
.annotationLayer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    line-height: 1;
    pointer-events: auto; /* S'assure que les clics passent */
}

/* Style interne pour les sections cliquables de PDF.js */
.annotationLayer a {
    display: block;
    position: absolute;
    cursor: pointer;
}

/* ---- */
/* Le conteneur du bouton */
.copy-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.copy-btn {
    /* On utilise la variable --slide-scale pour la taille */
    padding: calc(2px * var(--slide-scale)) calc(3px * var(--slide-scale));
    font-size: calc(14px * var(--slide-scale));
    
    background: #f34f29; /* Orange Git */
    color: white;
    border: none;
    border-radius: calc(4px * var(--slide-scale));
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.copy-btn:hover {
    background: #d84422;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Tooltip simple en pur CSS */
.tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.copy-wrapper:hover .tooltip {
    opacity: 1;
}