
.ressource{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 15%, transparent);
    background: var(--color-white);
    color: var(--color-primary);
    height: fit-content;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.ressource h3,
.ressource p{
    color: inherit;
}
.ressource-icon--active{
    display: none;
}
.ressource-hint{
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.35;
    transition: opacity 0.2s ease;
}
.ressource-hint img{
    width: 24px;
    height: 24px;
}
.ressource.active{
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}
.ressource.active .ressource-icon--active{
    display: block;
}
.ressource.active .ressource-icon--inactive{
    display: none;
}
.ressource.active .ressource-hint{
    display: none;
}
.preview-ressource{
    display: none;
    padding: 32px;
    box-shadow: 0 0 24px rgba(10, 9, 9, 0.05);
    border-radius: 32px;
    width: 100%;
}
.preview-ressource > .scroll-arrows{
    width: 100%;
}
.preview-ressource.active{
    display: flex;
}
.ressource p.text-center {
    max-height: 0;
    overflow: hidden;
    transition: 0s;
    display: none;
    /* transition: max-height 0.5s ease-in-out; */
}

.ressource.active p.text-center, 
.ressource:hover p.text-center {
    max-height: 150px;
    display: block;
    transition: 0s;
}
@media screen and (max-width:1200px) {
    .ressource p.text-center {
       display: none;
    }
}
.preview-ressource .article{
    transition: .3s;
    border: 1px solid lightgrey;
}
.preview-ressource .article:hover{
    transform: translateY(-8px);
}

@media screen and (min-width: 769px) {
    .ressources-accordion {
        gap: 0;
        align-items: stretch;
        border: 1px solid color-mix(in srgb, var(--color-primary) 15%, transparent);
        border-radius: 24px;
        overflow: hidden;
    }
    .ressources-accordion .ressource {
        flex: 0 0 25%;
        width: 25%;
        height: auto;
        border: 0;
        border-left: 1px solid color-mix(in srgb, var(--color-primary) 15%, transparent);
        border-radius: 0;
        transition: flex-basis 0.4s ease, width 0.4s ease, background 0.3s ease, color 0.3s ease;
        justify-content: center;
    }
    .ressources-accordion .ressource:first-child {
        border-left: 0;
    }
    .ressources-accordion .ressource.active {
        flex: 0 0 50%;
        width: 50%;
    }
}