*{
    margin: 0;
    box-sizing: border-box;
 }

 body {
    background-color: #f5f5f5; 
    position: relative;
    width: 1500px;
    height: 1000px;
 }


main h1{
    position: relative;
    width: 80ch;
    font-size: 1em;
    font-family: "main";
    margin: 15px;
}

@font-face {
    font-family: "avara";
    src: url(Avara-Bold.woff2);
}

@font-face {
    font-family: "avaraitalic";
    src: url(Avara-BoldItalic.woff2);
}

@font-face {
    font-family: "main";
    src: url(Fungal-Grow100Thickness500.woff2);
}

@font-face {
    font-family: "articles";
    src: url(Fungal-Grow300Thickness500.woff2);
}

@font-face {
    font-family: "fungal";
    src: url(Fungal-Grow0Thickness500.woff2);
}

article {
    position: absolute;
    width: 200px;
    padding: 10px;
    gap: 10rem;
    cursor: pointer;
}

article:hover{
    transition: transform 2s ease;
    transform: scale(2);
}

a {
    font-size: 2.5em;
    text-decoration: none;
    font-family: "articles";
    color: #214068;
}

article:hover::after {
    content: attr(data-description); /* Récupère la description */
    position: absolute;
    font-family: "avara";
    bottom: -110%; /* Position sous l'article */
    /* left: 50%; */
    transform: translateX(-50%);
    color: rgb(152, 133, 88);
    padding: 10px;
    font-size: 0.9em;
    width: 180px;
    /* text-align: center; */
}

.linked-content {
    position: absolute;
    max-width: 55ch;
    min-width: 300px;
    gap: 5rem;
    padding: .5rem;
    transition: transform 0.2s ease;
    display: none; /* Masqué par défaut */
}

.linked-content:hover {
    background-color: #f5f5f5;
    padding: 30px;
    /* border-radius: 1%; */
    /* box-shadow: 2px 2px 10px rgb(107, 92, 59); */
    transform: scale(1.5);
    transition: transform .8s ease;
    z-index: 2;
  }

article, .linked-content {
    z-index: 1;
}


h2{
    font-family: "main";
    font-size: 8.5pt;
}

span{
    font-size: 7pt;
    color: rgb(152, 133, 88);
    font-family: "avaraitalic";
}

p{
    margin-top: 15px;
    font-size: 7pt;
    color: rgb(120, 110, 110);
    font-family: "fungal";
}