* {
    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;
}


/* PAGE COMPETENCES */

.competences {
    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: 70px;
}

.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;
}

.grille {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.competence {
    position: relative;
    min-height: 330px;
    padding: 30px;
    border-top: 1px solid #6C5E8A; /* Ligne au-dessus de chaque compétence */
    transition: 0.4s;
}

.competence:hover {
    transform: translateY(-5px);
    border-top: 1px solid #F7C9AE;
}

.numero {
    color: #F7C9AE;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 30px;
}

.nom {
    position: absolute;
    top: 45px;
    right: 20px;
}

.nom span {
    color: #B7A6E8;
    font-size: 55px;
    font-weight: bold;
    opacity: 0.12;
}

.competence:hover .nom span {
    color: #F7C9AE;
    opacity: 0.20;
    transition: 0.4s;
}

.contenu {
    position: relative;
}

.periode {
    color: #B7A6E8;
    font-size: 13px;
    margin-bottom: 8px;
}

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

.description {
    color: #C9BEDE;
    line-height: 1.6;
    max-width: 400px;
}

.vignettes {
    margin-top: 25px;
}

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

@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;
    }

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

    .titre {
        margin-bottom: 50px;
    }

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

    .grille {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .competence {
        min-height: auto;
        padding: 25px 10px 40px;
    }

    .nom {
        top: 35px;
        right: 10px;
    }

    .nom span {
        font-size: 40px;
    }

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

    .description {
        max-width: 100%;
    }

    .vignettes span {
        font-size: 12px;
    }

}
.projets-associes {
    margin-top: 18px;
    color: #C9BEDE;
    font-size: 13px;
    line-height: 1.8;
}
.projets-associes strong { color: #F7C9AE; }
.projets-associes a {
    color: #B7A6E8;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.projets-associes a:hover { color: #F7C9AE; }
