* {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-size: cover;
}

body {
    background: #2E2740;
    color: #F2EEF9;
}

a {
    text-decoration: none;
}

.navbar {
    background: #241D33;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #453A5E;
    margin: 0;
}

/* LOGO */

.logo img {
    width: 170px;
    height: auto;
    display: block;
}

.navbar nav a {
    margin-left: 20px;
    color: #F2EEF9;
    font-weight: bold;
}

.navbar nav a.active {
    color: #F7C9AE;
}

.navbar nav a:hover {
    background: linear-gradient(45deg, #B7A6E8, #F7C9AE);
    padding: 10px 5px;
    border-radius: 20px;
    color: #2E2740;
    font-weight: bold;
    transition: all 0.7s ease;
}

.projets {

    background:
        radial-gradient(circle at 88% 12%, rgba(183,166,232,0.18) 0%, transparent 35%),
        radial-gradient(circle at 5% 90%, rgba(247,201,174,0.15) 0%, transparent 35%),
        radial-gradient(circle at 5% 8%, rgba(168,224,201,0.12) 0%, transparent 25%),
        #2E2740;
    min-height: 100vh;
    padding: 50px 20px 100px;
}

.titre {
    text-align: center;
    margin-bottom: 80px;
}

.titre p {
    color: #B7A6E8;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.titre h1 {
    color: #F2EEF9;
    font-size: 34px;
}

.ligne-titre {
    width: 50px;
    height: 3px;
    background: #F7C9AE;
    margin: 10px auto;
    border-radius: 10px;
}

.liste-projets {
    max-width: 1050px;
    margin: auto;
}

.projet {
    display: flex;
    align-items: center;
    gap: 70px;
}

.image-projet {
    width: 55%;
}

.image-projet img {
    width: 100%;
    border-radius: 15px;
    border: 1px solid #6C5E8A;
    transition: 0.4s;
}

.image-projet img:hover {
    transform: scale(1.02);
}

.numero {
    color: #F7C9AE;
    font-size: 50px;
    font-weight: bold;
    opacity: 0.4;

    text-align: right;
    margin-top: 10px;
}

.numero-gauche {
    text-align: left;
}

.contenu {
    width: 45%;
}

.type {
    color: #B7A6E8;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

.contenu h2 {
    color: #F2EEF9;
    font-size: 27px;
    margin-bottom: 15px;
}

.description {
    color: #C9BEDE;
    line-height: 1.7;
    margin-bottom: 20px;
}

.competences {
    margin-bottom: 25px;
}

.competences span {
    display: inline-block;
    border: 1px solid #6C5E8A;
    color: #B7A6E8;
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 13px;
    margin-right: 5px;
    margin-bottom: 8px;
}

.voir {
    display: inline-block;
    color: #F7C9AE;
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 1px solid #F7C9AE;
    transition: 0.4s;
}

.voir:hover {
    color: #B7A6E8;
    border-bottom: 1px solid #B7A6E8;
    transform: translateX(5px);
}

.separation {
    width: 100%;
    height: 1px;
    background: #453A5E;
    margin: 80px 0;
}

@media screen and (max-width: 768px) {

    /* NAVBAR */

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .logo img {
        width: 150px;
    }

    .navbar nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .navbar nav a {
        margin: 10px 0;
    }

    .projets {
        padding: 35px 20px 60px;
    }

    .titre {
        margin-bottom: 50px;
    }

    .titre h1 {
        font-size: 28px;
    }

    .projet {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .projet-inverse {
        flex-direction: column-reverse;
    }

    .image-projet {
        width: 100%;
    }

    .numero {
        font-size: 40px;
        text-align: left;
        margin-top: 8px;
    }

    .numero-gauche {
        text-align: left;
    }

    .contenu {
        width: 100%;
    }

    .contenu h2 {
        font-size: 23px;
    }

    .separation {
        margin: 60px 0;
    }

}
/* Détails complémentaires des projets */
.details-projet {
    margin: 0 0 22px;
    padding: 15px 18px;
    background: rgba(36, 29, 51, 0.55);
    border-left: 2px solid #B7A6E8;
    border-radius: 0 10px 10px 0;
}

.details-projet p {
    color: #C9BEDE;
    line-height: 1.65;
    font-size: 14px;
    margin-bottom: 9px;
}

.details-projet p:last-child {
    margin-bottom: 0;
}

.details-projet strong {
    color: #F7C9AE;
}

.lien-indisponible {
    color: #C9BEDE;
    font-size: 13px;
    font-style: italic;
    margin-top: 5px;
}

.introduction-projets {
    max-width: 850px;
    margin: -35px auto 65px;
    text-align: center;
}
.introduction-projets > p:first-child {
    color: #B7A6E8;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.introduction-projets h2 {
    color: #F2EEF9;
    font-size: 23px;
    margin-bottom: 12px;
}
.introduction-projets > p:last-child {
    color: #C9BEDE;
    line-height: 1.7;
}

.categorie-projets {
    color: #F7C9AE;
    font-size: 21px;
    margin: 0 0 35px;
    padding-left: 14px;
    border-left: 3px solid #B7A6E8;
}


/* Navigation entre les catégories de réalisations */
.navigation-realisations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 65px;
}

.bouton-categorie {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 18px;
    border: 1px solid #6C5E8A;
    border-radius: 15px;
    background: rgba(36, 29, 51, 0.82);
    color: #F2EEF9;
    transition: 0.3s ease;
}

.bouton-categorie:hover,
.bouton-categorie.actif {
    border-color: #B7A6E8;
    background: linear-gradient(135deg, rgba(183,166,232,0.18), rgba(247,201,174,0.10));
    transform: translateY(-3px);
}

.icone-categorie {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    border-radius: 12px;
    background: #453A5E;
    color: #F7C9AE;
    font-weight: bold;
}

.bouton-categorie strong,
.bouton-categorie small {
    display: block;
}

.bouton-categorie strong {
    margin-bottom: 5px;
    font-size: 14px;
}

.bouton-categorie small {
    color: #C9BEDE;
    font-size: 11px;
    line-height: 1.4;
}

.projets-professionnels {
    padding: 32px;
    border: 1px solid #6C5E8A;
    border-radius: 18px;
    background: rgba(36, 29, 51, 0.72);
}

.projets-professionnels h2 {
    margin: 8px 0 14px;
    color: #F2EEF9;
    font-size: 27px;
}

.projets-professionnels > p:not(.type) {
    color: #C9BEDE;
    line-height: 1.7;
    margin-bottom: 12px;
}

.projets-professionnels .note-projets {
    padding: 15px 18px;
    border-left: 3px solid #F7C9AE;
    background: rgba(247, 201, 174, 0.07);
}

.projets-professionnels a {
    color: #F7C9AE;
    text-decoration: underline;
}

@media screen and (max-width: 850px) {
    .navigation-realisations { grid-template-columns: 1fr; gap: 12px; margin-bottom: 45px; }
    .bouton-categorie { min-height: 70px; }
    .projets-professionnels { padding: 23px; }
}
