/* ========================================================
   ACCÈS AUX RESSOURCES - GL HUB
   Styles de la zone d'actions ajoutée par acces.js sous chaque carte :
   boutons Lire / Télécharger, et bouton "Se connecter pour accéder".
   ======================================================== */

.actions-ressource {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.rangee-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.rangee-actions .bouton-download {
    flex: 1 1 130px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Bouton secondaire (Télécharger) : fond transparent, contour bleu */
.bouton-download-clair {
    background: transparent;
    color: rgb(4, 51, 131);
    border: 2px solid rgb(4, 51, 131);
}

.bouton-download-clair:hover {
    background: rgb(4, 51, 131);
    color: #fff;
}

body.dark-theme .bouton-download-clair {
    color: #9ec1ff;
    border-color: #9ec1ff;
}

body.dark-theme .bouton-download-clair:hover {
    background: #9ec1ff;
    color: #0B204C;
}

/* Bouton "Se connecter pour accéder" (visiteur) et "Indisponible" */
.bouton-verrouille {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    cursor: pointer;
}

.bouton-verrouille:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Module d'une matiere verrouillee : liste des matieres incluses */
.info-module {
    margin: 4px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
    opacity: 0.85;
}