/* Fribourg le 13 Janvier 2026
Luis Inchauste Rivera */
.categories {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
}
.tag {
    background-color: var(--bg-primary-color);
    color: var(--txt-primary-color);
    outline: none;
    border: 1px solid var(--txt-secondary-color);
    padding: .3rem .5rem;
    border-radius: .5rem;
    cursor: pointer;
    transition: all 200ms ease-in-out;
}
.tag:hover, .tag:focus {
    background-color: var(--bg-secondary-color);
    color: var(--txt-secondary-color);
    transition: all 200ms ease-in-out;
}
.active-tag {
    background-color: var(--bg-secondary-color);
    color: var(--txt-secondary-color);
}
/* Styles pour les articles de projets */
/* Mise en place de conteneur */
.projects {
    width: 80%;
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(300px, 1fr));
    gap: .5rem;
}
/* Mise en place des éléments */
.projects article {
    position: relative;
    overflow: hidden;
    width: 100%;
}
article div {
    color: white;
    background-color: rgba(0, 0, 0, 0);
    opacity: 0;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    position:absolute;
    z-index: 1;
    transition: all 200ms ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    padding-top: 1rem;
}
article div:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all 200ms ease-in-out;
}
article img {
    width: 100%;
    aspect-ratio: 16/9;
    z-index: 0;
}
article iframe {
    position: absolute;
    left: 50%;
    top: 50%;
    right: 50%;
    bottom: 50%;
    transform: translate(-50%, -50%);
}

/* Styles pour télephone */
@media (max-width: 575.98px) {
      /* Styles pour aligner les etiquettes en 2 lignes */
    .categories {
        gap: .5rem;
        flex-wrap: wrap;
    }
    .projects article {
        height: 180px;
    }
}
