/* Documents Formation - Frontend Styles */

.df-documents-section {
    margin: 40px 0;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.df-documents-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #2271b1;
}

/* Grid de documents */
.df-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Carte de document */
.df-document-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.df-document-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #2271b1;
}

/* Icône du document */
.df-document-icon {
    font-size: 48px;
    text-align: center;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 8px;
}

/* Contenu du document */
.df-document-content {
    flex: 1;
}

.df-document-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.df-document-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

/* Meta informations */
.df-document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #9ca3af;
}

.df-document-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 12px;
}

.df-document-type {
    font-weight: 600;
    color: #2271b1 !important;
    background: #dbeafe !important;
}

/* Bouton de téléchargement */
.df-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #2271b1;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.df-download-button:hover {
    background: #135e96;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.df-download-button:active {
    transform: scale(0.98);
}

.df-download-icon {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .df-documents-section {
        padding: 20px 15px;
    }

    .df-documents-title {
        font-size: 24px;
    }

    .df-documents-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .df-document-card {
        padding: 15px;
    }

    .df-document-icon {
        font-size: 36px;
        padding: 10px;
    }

    .df-document-title {
        font-size: 16px;
    }
}

/* Animation de chargement */
@keyframes df-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.df-loading {
    animation: df-pulse 1.5s ease-in-out infinite;
}

/* Message vide */
.df-no-documents {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.df-no-documents-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.df-no-documents-text {
    font-size: 16px;
}
