/* =========================================================
   PAGE DOCUMENTS
========================================================= */

/*
 * Ce fichier n'est chargé que sur documents.php.
 * On retire donc l'espacement prévu entre les sections
 * de la page d'accueil, qui créait la grande bande blanche.
 */

#contenu {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.documents-page {
    margin-top: 0 !important;
    padding-top: 72px;
    padding-bottom: 88px;
}

.documents-heading {
    margin-bottom: 0;
}

/* =========================================================
   GRILLE
========================================================= */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
}

/* =========================================================
   CARTE
========================================================= */

.document-card {
    display: flex;
    flex-direction: column;
    min-height: 315px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.document-card:hover {
    transform: translateY(-3px);
    border-color: rgba(209, 164, 55, 0.65);
    background: rgba(255, 255, 255, 0.05);
}

.document-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.document-category {
    color: #d1a437;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.document-format {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(209, 164, 55, 0.42);
    border-radius: 999px;
    color: #d1a437;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.document-card h2,
.document-card h3 {
    margin: 0 0 16px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    line-height: 1.25;
}

.document-description {
    flex: 1;
}

.document-description p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.65;
}

/* =========================================================
   BOUTONS
========================================================= */

.document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.document-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.document-button--outline {
    border: 1px solid #d1a437;
    color: #d1a437;
    background: transparent;
}

.document-button--outline:hover {
    background: #d1a437;
    color: #10151a;
}

.document-button--gold {
    border: 1px solid #d1a437;
    background: #d1a437;
    color: #10151a;
}

.document-button--gold:hover {
    background: #e2b94f;
    border-color: #e2b94f;
    color: #10151a;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 820px) {
    .documents-page {
        padding-top: 52px;
        padding-bottom: 64px;
    }

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

    .document-card {
        min-height: auto;
        padding: 24px;
    }
}

@media (max-width: 520px) {
    .documents-page {
        padding-top: 40px;
    }

    .document-actions {
        flex-direction: column;
    }

    .document-button {
        width: 100%;
    }
}
