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

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

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

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

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

.formations {

    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 80px;
}

.titre {
    text-align: center;
}

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

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

.principal {
    max-width: 950px;
    margin: auto;
}

.bloc {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.numero {
    color: #F7C9AE;
    font-size: 65px;
    font-weight: bold;
    opacity: 0.25;
    line-height: 1;
}

.contenu {
    max-width: 700px;
}

.periode {
    display: inline-block;
    color: #B7A6E8;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.contenu h2 {
    color: #F2EEF9;
    font-size: 26px;
    margin: 10px 0 15px;
}

.contenu p {
    color: #C9BEDE;
    line-height: 1.7;
}

.competences {
    margin-top: 20px;
}

.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: 10px;
}

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

.bloc-droite {
    justify-content: flex-end;
    text-align: right;
}

.projets {
    max-width: 950px;
    margin: 100px auto 0;
    padding-top: 50px;
    border-top: 1px solid #453A5E;
}

.titre-experience {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 45px;
}

.petit-titre {
    color: #B7A6E8;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.titre-experience h2 {
    color: #F2EEF9;
    font-size: 27px;
}

.experience-contenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.experience-texte {
    max-width: 450px;
}

.experience-texte h3 {
    color: #F7C9AE;
    font-size: 22px;
    margin-bottom: 15px;
}

.experience-texte p {
    color: #C9BEDE;
    line-height: 1.7;
    margin-bottom: 25px;
}

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

.image-experience img:hover {
    transform: scale(1.03);
}

.btn {
    display: inline-block;
    background: #F7C9AE;
    color: #2E2740;
    padding: 14px 25px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.5s;
}

.btn:hover {
    background: linear-gradient(45deg, #B7A6E8, #F7C9AE);
    transform: translateY(-3px);
}

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

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

    .logo img {
        width: 150px;
    }

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

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

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

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

    .ligne-titre {
        margin-bottom: 40px;
    }

    .bloc {
        gap: 20px;
    }

    .numero {
        font-size: 45px;
    }

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

    .bloc-droite {
        flex-direction: row-reverse;
        text-align: left;
    }

    .projets {
        margin-top: 70px;
    }

    .titre-experience {
        gap: 20px;
    }

    .titre-experience h2 {
        font-size: 23px;
    }

    .experience-contenu {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .image-experience {
        width: 100%;
    }

    .image-experience img {
        width: 100%;
    }

}