@media (min-width: 769px) {
    .document-list {
        width: 80%;
        display: flex;
        /*flex-direction: column;*/
        flex-wrap:wrap;
        gap: 20px;
        margin-bottom: 7vh;
        justify-content: center;
    }

    .document-item {
        width: 45%;
        text-decoration: none;
        background-color: #ffffff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 15px white;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        margin: 0 auto;
    }

    .document-item:hover {
        transform: translateY(-1vh);
        box-shadow: 0 8px 30px white;
    }

    .document-list:hover > :not(:hover) {
        opacity: 0.4;
    }

    .document-content {
        padding: 0.7vw;
        text-align: center;
    }

    .document-content h3 {
        margin: 0;
        font-size: 1vw;
        color: #444;
    }

    /* Conteneur principal */
    .a-propos {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;        
        border-top: 2px solid white; 
        padding: 0.8vw;
        width: 75%;
    }

    .a-propos h1{
        font-size: 2vw;
    }

    .a-propos p{
        font-size: 1vw;
    }
   
    .titre{
        font-size: 1.5vw;
    }

    .light-mode .document-item {
        background-color: #222;
        box-shadow: 0 4px 15px black;
    }

    .light-mode .document-item:hover {
        box-shadow: 0 8px 30px black;
    }

    .light-mode .document-content h3 {
        color: #ddd;
    }

    .light-mode .a-propos {
        border-top: 2px solid black;
    }
}

@media (max-width: 768px) {
    .document-list {
        width: 80%;
        display: flex;
        /*flex-direction: column;*/
        flex-wrap:wrap;
        gap: 20px;
        padding-bottom: 4vh;
        justify-content: center;
    }

    .document-item {
        width: 85%;
        text-decoration: none;
        background-color: #ffffff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 15px white;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        margin: 0 auto;
    }

    .document-item:hover {
        transform: translateY(-1vh);
        box-shadow: 0 8px 30px white;
    }

    .document-list:hover > :not(:hover) {
        opacity: 0.4;
    }

    .document-content {
        height: 108%;
        padding: 2vw;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .document-content h3 {
        margin: 0;
        font-size: 3.5vw;
        color: #444;
    }

    /* Conteneur principal */
    .a-propos{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        border-top: 2px solid white; 
        padding: 0.8vw;
        width: 70%;
    }

    .a-propos h1{
        font-size: 6w;
    }

    .titre{
        font-size: 5vw;
    }

    .light-mode .document-item {
        background-color: #222;
        box-shadow: 0 4px 15px black;
    }

    .light-mode .document-item:hover {
        box-shadow: 0 8px 30px black;
    }

    .light-mode .document-content h3 {
        color: #ddd;
    }

    .light-mode .a-propos {
        border-top: 2px solid black;
    }
}