/* --------------------------------------------------
   Téléchargements réservés aux membres
   -------------------------------------------------- */

.telechargements-membres {
    margin: 30px 0;
    padding: 25px;
    background: #f3f3f3;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
}

.telechargements-membres h2 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.telechargements-intro {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.telechargements-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.telechargement {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    color: #333;
    text-decoration: none;

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

.telechargement:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.telechargement-icone {
    font-size: 32px;
    flex-shrink: 0;
}

.telechargement h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.telechargement p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
}

.telechargement span {
    font-size: 14px;
    font-weight: bold;
    color: #1769aa;
}

.connexion-membres {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    background: #e4e4e4;
    border-radius: 8px;
    color: #555;
}

.connexion-membres a {
    display: inline-block;
    margin-top: 8px;
    font-weight: bold;
    color: #1769aa;
}


/* --------------------------------------------------
   Version non connectée
   -------------------------------------------------- */

.telechargements-membres.non-connecte
.telechargement {
    filter: grayscale(100%);
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

.telechargements-membres.non-connecte .connexion-membres {
    background: #dedede;
}


/* --------------------------------------------------
   Adaptation mobile
   -------------------------------------------------- */

@media (max-width: 800px) {

    .telechargements-grille {
        grid-template-columns: 1fr;
    }
}

.telechargement-desactive {
    filter: grayscale(100%);
    opacity: 0.45;
    cursor: not-allowed;
}
