/* ===================================
   Page Exemples de Travaux - Documents
   =================================== */

.documents-section {
    background-color: #f8f9fa;
    min-height: 60vh;
    scroll-margin-top: 120px; /* Offset pour la navbar */
}

.document-showcase {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    scroll-margin-top: 120px; /* Offset pour la navbar */
}

/* Header du document */
.document-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%);
    color: white;
    padding: 3rem 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.document-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    min-width: 80px;
    text-align: center;
}

.document-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 1rem;
    opacity: 0.95;
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.document-meta i {
    color: var(--secondary-color);
}

/* Description du document */
.document-description {
    padding: 3rem 2.5rem;
    border-bottom: 1px solid #e9ecef;
}

.document-description h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.document-description h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.document-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.document-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.document-features li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.document-features i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    min-width: 24px;
    margin-top: 2px;
}

/* Visualiseur PDF */
.document-viewer {
    padding: 3rem 2.5rem;
    background-color: #f8f9fa;
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.viewer-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.viewer-header i {
    color: var(--secondary-color);
}

.pdf-container {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.pdf-container embed {
    display: block;
    border: none;
}

/* Navigation du document */
.document-navigation {
    padding: 2.5rem;
    background-color: white;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .document-header {
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .document-icon {
        font-size: 3rem;
        width: 100%;
    }

    .document-info h2 {
        font-size: 1.5rem;
    }

    .document-meta {
        justify-content: center;
        gap: 1rem;
        font-size: 0.9rem;
    }

    .document-description {
        padding: 2rem 1.5rem;
    }

    .document-description h3 {
        font-size: 1.4rem;
    }

    .document-description h4 {
        font-size: 1.1rem;
    }

    .document-description p {
        font-size: 1rem;
    }

    .document-features li {
        font-size: 0.95rem;
    }

    .document-viewer {
        padding: 2rem 1.5rem;
    }

    .viewer-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .viewer-header h3 {
        font-size: 1.25rem;
    }

    .pdf-container embed {
        height: 500px;
    }

    .document-navigation {
        padding: 2rem 1.5rem;
        flex-direction: column;
    }

    .document-navigation .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .document-header {
        padding: 1.5rem 1rem;
    }

    .document-info h2 {
        font-size: 1.25rem;
    }

    .document-description {
        padding: 1.5rem 1rem;
    }

    .document-viewer {
        padding: 1.5rem 1rem;
    }

    .pdf-container embed {
        height: 400px;
    }
}
