@media (min-width: 1000px) {
    .page-container {
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100%;
        position: relative;
        overscroll-behavior: none;
        overflow: hidden;
        margin-bottom: 20px;
        }
        .filter-block nav {
            position: relative;
            display: flex;
            flex: 1;
            justify-content: flex-end;
            align-items: center;
        }

        h1 {
            margin: 0;
            display: flex;
            transition: all 0.1s linear; /* Transition fluide */
            font-size: 50px;
        }

    .filter-block {
        position: fixed;
        top: 7vh; /* Départ juste en dessous du header */
        left: 0;
        width: 180px; /* Largeur fixe pour ordinateurs */
        height: 100%;
        padding-left: 30px; /* Espacement interne */
        padding-top: 9vh;
        margin-bottom: 1.5rem;
        text-align: left;
        z-index: 1;
        box-sizing: border-box;
        }
        .filter-block::before  {
            content: '';
            position: absolute;
            width: 1px; /* Épaisseur de la bordure */
            background-color: black; /* Couleur de la bordure */
            transition: height 0.1s linear; /* Transition fluide */
            bottom: 0;
            right: 0; /* Part de droite */
            height: var(--border-right-height, 0%);
        }

    .filter {
        height: 100%;
        width: 100%;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 30px; /* Espacement entre les éléments */
        padding-top: 60px;
        font-size: 20px;
        transition: all 0.1s linear; /* Transition fluide */
        }
        .filter-item {
            position: absolute;
            background-color: transparent;
            height: 60px;
            width: 60px;
            font-size: large;
            border: 1px solid black;
            padding: 3px;
            z-index: 10;
            box-sizing: border-box;
            display: flex; /* Utilisation de flexbox */
        }
        @media (hover: hover) { .filter-item:hover {
            text-decoration: underline;
        } }

        .filter a[aria-current] {
            background-color: white;
            z-index: 7;
            text-decoration: underline;
            color: blue;
        }

        .filter-item.item-0 {z-index: 1; left: 0px; top: 60px; height: 6vh; width: clamp(80px, 30vw, 160px); text-align: left;}
        .filter-item.item-1 {z-index: 2; left: 60px; top: 85px; height: 100px; width: 90px; display: flex; align-items: center; justify-content: flex-end;}
        .filter-item.item-4 {z-index: 3; left: 20px; top: 155px; height: 70px; width: 115px; display: flex; align-items: flex-end; justify-content: flex-end; }
        .filter-item.item-3 {z-index: 4; left: 10px; top: 170px; height: 230px; width: 70px; display: flex; align-items: flex-end; justify-content: left;}
        .filter-item.item-2 {z-index: 5; left: 0px; top: 270px; height: 50px; width: 150px; display: flex; justify-content: right;}

        .filter-item.item-0-background, .filter-item.item-1-background, .filter-item.item-2-background, .filter-item.item-3-background, .filter-item.item-4-background {
            display: none;
        }



    .articles-page-title {
        position: fixed;
        top: 7vh;
        left: 0%;
        width: 100%;
        height: 10vh;
        display: flex;
        align-items: center;
        justify-content: left;
        padding-left: 70px;
        z-index: 1;
        box-sizing: border-box;
        transition: all 0.1s linear; /* Transition fluide */
        }
        .articles-page-title::before,
        .articles-page-title::after  {
            content: '';
            position: absolute;
            height: 1px; /* Épaisseur de la bordure */
            background-color: black; /* Couleur de la bordure */
            transition: width 0.1s linear; /* Transition fluide */
        }

        .articles-page-title::before {
            top: 0;
            left: 0; /* Part de droite */
            width: var(--border-top-width, 0%);
        }

        .articles-page-title::after {
            bottom: 0;
            left: 0; /* Part de la gauche */
            width: var(--border-bottom-width, 0%);
        }


    .articles {
        position: relative;
        margin-left: 220px; /* Pour éviter le chevauchement avec "filter" */
        margin-top: calc(9vh + 60px); /* Pour éviter le chevauchement avec "articles-page-title" */
        width: calc(100% - 250px);
        height: 100%;
        right: 0;
        overflow-y: auto;
        display: grid;
        grid-template-columns: repeat(13, 1fr); /* 12 colonnes */
        list-style: none;
        box-sizing: border-box;
        overflow: hidden;
        }
        .article-H {
            grid-column: span 3;
            height: 350px;
        }

        .article-V {
            grid-column: span 4;
            height: 350px;
        }
        .article-content {
            width: 100%;
            height: 100%;
            position: relative;
            box-sizing: border-box;
            background-color: #EEE;
            padding: 10px;
            font-size: clamp(15px, 1.5vw, 20px);
            box-sizing: border-box;
        }

        .article-H .article-content .article-image {
            width: 100%;
            height: 70%;
        }

        .article-H .article-content .article-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .article-V .article-content .article-image {
            width: 60%;
            height: 100%;
        }
        .article-V .article-content .article-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }   
        .article-V .article-text {
            padding: 10px;
        }

        .article-content .article-text {
            position: absolute;
        }
        .article-H .article-content .article-text {
            height: 30%;
            width: 90%;
            top: 70%;
        }
        .article-V .article-content .article-text {
            height: 100%;
            width: 35%;
            top: 0px;
            left: 60%;
        }

    }





@media (max-width: 1000px) {
    .page-container {
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100%;
        padding: 0;
        margin: 0;
        position: relative;
        overscroll-behavior: none;
        margin-bottom: 20px;

    }
    ul, li {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    h1 {
        font-weight: 100;
        padding-right: 10px;
        padding-left: 0px;
        font-style: italic;
        color: #AAA;
        padding-bottom: 24px;
        margin-top: 20px;
    }

    .articles-page-title {
        position: fixed;
        top: 5vh;
        width: 100%;
        height: clamp(80px, 10vh, 120px);
        display: flex;
        align-items: center;
        border-top: 0px solid black;
        font-size: clamp(8px, 3vw, 20px);
        padding-left: 20px;
        padding-bottom: 0px;
        padding-top: 5px;
        color: black;
        background-color: white;
        border-bottom: 0px solid black;
        box-sizing: border-box;
        z-index: 1;
        transition: top 0.3s ease-out; /* Transition fluide */
        border-top: 0px solid black;
        }
        .articles-page-title.expanded {
            top: -110px; /* Nouvelle position lorsque la classe est ajoutée */
            transition: top 0.3s ease-out; /* Transition fluide */
        }

    .filter {
        position: fixed;
        top: 7vh;
        width: 100%;
        height: 110px;
        overflow-x: auto;
        z-index: 2;
        white-space: nowrap;
        padding: 10px;
        margin-top: 20px;
        background-color: transparent;
        border-bottom: 0px solid black;
        box-sizing: border-box;
        transition: top 0.3s ease-out; /* Transition fluide */
        }
        .filter.expanded {
            top: -110px; /* Nouvelle position lorsque la classe est ajoutée */
            transition: top 0.3s ease-out; /* Transition fluide */
        }
        .filter-item {
            position: absolute;
            background-color: transparent;
            height: 60px;
            width: 60px;
            font-size: large;
            border: 1px solid black;
            padding: 3px;
            z-index: 3;
            box-sizing: border-box;
            display: flex; /* Utilisation de flexbox */
        }

        .filter a[aria-current] {
            background-color: white;
            z-index: 7;
            text-decoration: underline;
            color: blue;
        }

        .filter-item.item-0 {z-index: 1; left: 20px; top: 40px; height: 4vh; width: clamp(80px, 30vw, 160px); text-align: left;}
        .filter-item.item-0-background {z-index: 0; left: 20px; top: 40px; height: 4vh; width: clamp(80px, 30vw, 160px); background-color: white;}
        .filter-item.item-1 {z-index: 2; left: 32vw; top: 0px; height: clamp(60px, 12vh, 100px); width: clamp(65px, 22vw, 130px); text-align: right;}
        .filter-item.item-1-background {z-index: 0; left: 32vw; top: 0px; height: clamp(60px, 12vh, 100px); width: clamp(65px, 22vw, 130px); background-color: white;}
        .filter-item.item-4 {z-index: 5; right: 10px; top: clamp(30px, 5vh, 40px); height: clamp(25px, 6vh, 60px); width: clamp(60px, 20vw, 120px); display: flex; align-items: flex-end; justify-content: center;}
        .filter-item.item-4-background {z-index: 0; right: 10px; top: clamp(30px, 5vh, 40px); height: clamp(25px, 6vh, 60px); width: clamp(60px, 20vw, 120px); display: flex; background-color: white;}
        .filter-item.item-3 {z-index: 4; left: 63vw; top: clamp(3px, 0.5vh, 10px); height: clamp(30px, 6vh, 70px); width: clamp(60px, 20vw, 120px);}
        .filter-item.item-3-background {z-index: 0; left: 63vw; top: clamp(3px, 0.5vh, 10px); height: clamp(30px, 6vh, 70px); width: clamp(60px, 20vw, 120px); background-color: white;}
        .filter-item.item-2 {z-index: 3; left: 30vw; top: clamp(30px, 5vh, 40px); height: clamp(30px, 6vh, 50px); width: clamp(150px, 45vw, 210px); display: flex; align-items: flex-end; justify-content: center; }
        .filter-item.item-2-background {z-index: 0; left: 30vw; top: clamp(30px, 5vh, 40px); height: clamp(30px, 6vh, 50px); width: clamp(150px, 45vw, 210px); display: flex; background-color: white; }




    .articles {
        margin-top: 23vh;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        list-style: none;
        grid-column-gap: 0;
        grid-row-gap: 0;
        overflow: hidden;
    }

    .article-V {
        grid-column: span 1;
        height: 300px;
    }
    .article-HL,
    .article-HR {
        position: relative;
        grid-column: span 2;
        height: 200px;
        display: flex;
    }

    .article-content {
            width: 100%;
            height: 100%;
            position: relative;
            box-sizing: border-box;
            background-color: #EEE;
            font-size: clamp(17px, 2.3vw, 23px);
            font-weight: 400;

        }
        .article a {
            width: 100%;
            height: 100%;
            position: relative;
        }
        .article-content .article-image {
            position: absolute;
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            padding: 5px;
        }

        .article-V .article-image {
            width: 100%;
            height: 70%;
        }

        .article-V .article-image img {
            width: 100%;
            height: 100%;
            display: block;
        }
        .article-HL .article-image {
            width: 70%;
            height: 100%;
            left: 0;
        }

        .article-HL .article-image img, .article-HR .article-image img {
            position: relative;
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }
        .article-HR .article-image {
            width: 70%;
            height: 100%;
            right: 0;
        }

        .article-V .article-content .article-text {
            position: absolute;
            top: 70%;
            width: 100%;
            height: calc(30% - 10px);
            padding: 5px;
        }
        .article-HL .article-content .article-text, .article-HR .article-content .article-text {
            position: absolute;
            display: flex;
            top: 0;
            height: 100%;
            width: 30%;
            padding: 5px;
            box-sizing: border-box;
        }
        .article-HR .article-content .article-text {
            left: 0;
            text-align: left;
        }
        .article-HL .article-content .article-text {
            right: 0;
            text-align: left;
        }
        .article-text {
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;
            flex-direction: column;
        }

    }
        .article {
                padding: 1px;
                box-sizing: border-box;
            }
