.container {
    max-width: 1000px;
}

/* ---- Mise en page des projets ---- */

.project-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 80px;
    align-items: center;
}

.separator {
    margin: 80px auto;
}

/* Alternance gauche/droite : on inverse l'ordre pour les lignes paires */
.project-row:nth-child(even) {
    flex-direction: row-reverse;
}

.project-row:last-of-type {
    margin-bottom: 0;
}

.project-image {
    flex: 1 1 40%;
    padding: 10px;
    min-width: 250px;
}

.project-text {
    flex: 1 1 60%;
    padding: 10px;
    min-width: 300px;
}

.project-image img {
    width: 100%;
    height: auto;
    border: 2px solid #333;
    border-radius: 5px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
    cursor: default;
}

.project-text h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
}
.project-text p {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
}

/* ---- Les “tags” pour les compétences ---- */
.tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    display: inline-block;
    background-color: #444;
    color: #fff;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.tag:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
    cursor: default;
}

/* ---- Couleurs personnalisées pour les tags ---- */

/* Technos */
.tag-csharp {
    background-color: #9b43b9; /* Violet */
}

.tag-python {
    background-color: #3572A5; /* Bleu Python */
}

.tag-unity {
    background-color: #222; /* Gris foncé Unity */
}

.tag-flask {
    background-color: #000; /* Noir Flask */
}

.tag-ffmpeg {
    background-color: #b31217; /* Rouge FFmpeg */
}

.tag-web {
    background-color: #e44d26; /* Orange HTML */
}

.tag-wpf {
    background-color: #68217A; /* Violet foncé */
}

/* Catégories de projet */
.tag-gamejam {
    background-color: #ff6f00; /* Orange vif */
}

.tag-utility {
    background-color: #4caf50; /* Vert */
}

.tag-audio,
.tag-music {
    background-color: #1db954; /* Vert Spotify-like */
}

.tag-2d {
    background-color: #03a9f4; /* Bleu clair */
}

.tag-cloud {
    background-color: #00bcd4; /* Cyan */
}

.tag-ai {
    background-color: #673ab7; /* Violet foncé IA */
}

.tag-discord {
    background-color: #7289da; /* Bleu Discord */
}

.tag-multiplayer {
    background-color: #ff4081; /* Rose vif */
}

/* Scolaire */
.tag-school {
    background-color: #607d8b; /* Bleu-gris */
}

.tag-gestion {
    background-color: #009688; /* Turquoise */
}


/* ---- Responsivité ---- */
@media (max-width: 768px) {
    .project-row {
        flex-direction: column !important;
    }
    .project-row:nth-child(even) {
        flex-direction: column !important;
    }
    .project-image, .project-text {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
