:root {
    --fond: #F6F9FC;            /* Soft Light Blue */
    --textColor: #2B2D42;       /* Charcoal Gray */
    --accentColor: #DDA0DD;     /* Vibrant Lavender */
    --secondColor: #8D99AE;     /* Muted Steel Blue */
    --buttonColor: #FF6F61;     /* Coral Pink */
    --lighterAccentColor: #f4e8f4;
    --darkerAccentColor: #bd44bd;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background: var(--fond);
    color: var(--textColor);
    display: flex;
    justify-content: center;
}

.original-body{
    justify-content: flex-start;
}

h1 {
    position: relative;
    font-size: 4vw;
    font-weight: 700;
    line-height: 1.2;
    padding-top: 4rem;
}

.home-content h1::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    animation: showRight 1.1s ease forwards;
    animation-delay: 1.1s;
    background-color: var(--fond);
}

h2 {
    font-size: 2.5rem;
}

h3 {
    position: relative;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--accentColor);
}

.home-content h3::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    animation: showRight 0.8s ease forwards;
    animation-delay: 1.6s;
    background-color: var(--fond);
}

h4 {
    color: var(--accentColor);
    font-size: 1.7rem;
    position: relative;
    margin: 2rem 0 0.5rem 2rem;
}

p, ul {
    position: relative;
    font-size: 1.0rem;
    margin: 2vw 0 2vw;
}

ul {
    padding-left: 30px;
}

.home-content p::before, .home-content li::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    animation: showRight 0.8s ease forwards;
    animation-delay: 2s;
    background-color: var(--fond);
}

.header {
    position: fixed ;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1vw 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    height: 6vw;
    background: var(--fond);
}

.footer {
    position: fixed ;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: .75vw 5%;
    z-index: 100;
    height: 3vw;
    background: var(--buttonColor);
    display: flex;
    align-items: center;
}

.logo {
    position: relative;
    font-size: 1.9vw ;
    color: var(--textColor) ;
    text-decoration: none;
    font-weight: 600;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    animation: showRight 0.9s ease forwards;
    animation-delay: .3s;
    background-color: var(--fond);
}

.navbar {
    display: flex;
    align-items: center; 
}

.navbar a {
    font-size: 1.05vw ;
    color: var(--textColor) ;
    text-decoration: none;
    font-weight: 500;
    margin-left: 1.1vw;
    transition: .3s;
}

.footer .navbar {
    justify-content: space-evenly;
    width: 100%;
}

.footer .navbar a {
    font-size: 1.15vw ;
    color: var(--fond) ;
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.5vw;
    transition: .3s;
}

.footer .navbar a i {
    margin-right: 1vw;
}

.footer .navbar a:hover{
    font-size: 1.2vw ;
    text-shadow: 1rem var(--fond);
}


.header .navbar a:hover,
.header .navbar a.active{
    color: var(--buttonColor) ;
    font-size: 1.1vw ;
}

.home {
    height: 100%;
    display: flex;
    padding: 0 10%;
    padding-top: 9rem; 
    padding-bottom: 4rem;
    width: 100%;
}

.home-content{
    width: 100%;
}

.presentation .gauche, .snapshot {
    max-width: 40rem;
}

.presentation {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap-reverse;
    justify-content: space-between;
    width: 100%;
}

.cadre_image {
    position: relative;   
    width : 20.5rem;
    height : 20.5rem;
    justify-content: center; /* centre horizontalement */
    align-items: center;  
    display: flex;
    transform: translate(-50%, -50%); /* centre l’élément */
}

.presentation img {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translate(-50%, -50%); /* centre l’élément */
    border-radius: 50%;
    align-self: center;
    animation: grossi 1.3s ease forwards;
    animation-delay: 0s;
}

.home-content h3 {
    font-size: 1.65vw;
}


/* .part2 {
    display: flex;
    justify-content: space-around;
} */

/* .part2 h4::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    animation: showRight 0.6s ease forwards;
    animation-delay: 1.5s;
    background-color: var(--fond);
} */

.social-media {
    position: relative;
    margin-bottom: 2vw;
}

.social-media a{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3vw;
    height: 3vw;
    background: transparent;
    border: 2px solid var(--buttonColor);
    border-radius: 50%;
    font-size: 1.5vw;
    text-decoration: none;
    color: var(--buttonColor);
    overflow: hidden;
    margin-right: 2vw;
}

.social-media a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--buttonColor);
    z-index: -1;
    transition: .5s;
}

.social-media a:hover::before {
    width: 100%;
}

.social-media a:hover {
    color: var(--fond);
    box-shadow: 0 0 1vw var(--buttonColor);
}

.btn-box {
    display: flex;
    flex-direction:row;  
    justify-content: space-between;
    width: 40vw;
    height: 3.2vw;
    margin-bottom: 2vw;
}

/* .btn-box {
    display: flex;
    flex-direction: column;  
    justify-content: space-evenly; 
    align-items: center;   
    width: 40vw;
    height:30vw
} */

.btn-box a {
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 10.3vw;
    height: 3.2vw;
    background: var(--buttonColor);
    border: 2px solid var(--buttonColor);
    border-radius: 8px;
    font-size: 1.2vw;
    color: var(--fond);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    right:0;
    margin:0px;
}

#n2 a, #n3 a{
    width: 22vw;
}

#n3  {
    position: relative;
}

#n3 a {
    position: absolute;
    right: 0;
}


#n2 a:nth-child(1){
    width: 15vw;
}

.secret{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.secret #oskour{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    width: 50vw;
    height: 40vh;
    background: var(--buttonColor);
    border: 2px solid var(--buttonColor);
    border-radius: 5vw;
    font-size: 180%;
    color: var(--fond);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
}

.secret #oskour::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--fond);
    z-index: -1;
    transition: .5s;
}

.secret #oskour:hover::before{
    width: 100%;
}

.secret #oskour:hover {
    color: var(--buttonColor)
}

#n2 a:nth-child(2), #n1 a:nth-child(1){
    background: transparent;
    color: var(--buttonColor);
}

.btn-box a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--fond);
    z-index: -1;
    transition: .5s;
}

#n2 a:nth-child(2)::before, #n1 a:nth-child(1)::before {
    background-color: var(--buttonColor);
}

.btn-box a:hover::before{
    width: 100%;
}

.btn-box a:hover {
    color: var(--buttonColor)
}

#n2 a:nth-child(2):hover, #n1 a:nth-child(1):hover {
    color: var(--fond);
}

.home .classic {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding-bottom: 4rem;
}

.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cursus {
    border-left: .15rem solid var(--accentColor);
    position: relative;
    padding-left: 1.5rem;
}

.box{
    padding: 1rem;
    border: 0.15rem solid var(--accentColor);
    border-radius: .5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.cursus .box::before {
    content: "";
    position: absolute;
    top: -0.2rem;
    left: -2.15rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--accentColor);
    border-radius: 50%;
}
.box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--lighterAccentColor);
    z-index: -1;
    transition: .5s;
}

.box:hover::after {
    width: 100%;
}

.box .semester {
    display: flex;
    flex-wrap: wrap;
    gap:2.5rem;
}

.box .semester-content{
    position: relative;
    flex: 1;
}

.box .year{
    font-size: 1rem;
    color: var(--accentColor);
    padding-bottom: .35rem;
}

.box .year i {
    padding-right: .35rem
}

.box h3,.box h4{
    font-size: 1.5rem;
    color: var(--textColor);
    padding: 0;
    margin: 0;
}

.box ul,.box p{
    font-size: 0.9rem;
    padding-top: .3rem;
    margin:0
}

.intro p {
    max-width: 80%;
}

.talents {
    display: flex;
    flex-wrap: wrap;
    gap:0.5rem;
}

.talents ul {
    font-size: 01.0rem;
}

.talents .box:nth-child(2) li {

    margin: 3% 0 3% 0;
}

.projets .box:hover::after{
    width:0%;
}

.chaque-projet{
    padding: 1rem;
    border: 0.15rem solid var(--buttonColor);
    border-radius: .5rem;
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: var(--buttonColor);
    margin-bottom: 1rem;
}

.chaque-projet h4 {
    color: var(--buttonColor);
}

.chaque-projet:nth-last-child(1){
    margin-bottom:0;
}

.chaque-projet::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--buttonColor);
    z-index: -1;
    transition: .5s;
}

.chaque-projet:hover::before {
    width: 100%;
}

.chaque-projet:hover, .chaque-projet:hover h4 {
    color: var(--fond)
}

.langage{
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    max-width: 60rem;
}

.detail-projet {
    flex: 3;
}

.langage .boite-langage{
    display: flex;
    text-align: center;
    flex:2;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    padding: 1rem;
    border-radius: .5rem;
    position: relative;
    overflow: hidden;
}

.boite-langage::before{
    content:"";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: var(--lighterAccentColor);
    transition: .5s;
    opacity: 0;
    z-index: -1;
}

.projets .box:hover .boite-langage::before{
    opacity: 1;
}

.barre {
    scroll-margin-top: 6rem;
    display: flex;
    border: var(--buttonColor) solid 0.2rem;
    border-radius: 10000rem;
    align-items: center;
    margin-top: 2rem;
    text-align: center;
}

.barre a {
    text-decoration: none;
    color: var(--buttonColor);
    font-size: 1rem;
    margin: 0.4rem;
    padding: 0 0.6rem;
    font-weight: 500;
    transition: .3s;
}


/* .barre a:not(.active){
    animation: grossi 0.8s ease forwards;
} */

.barre .active, .barre a:hover {
    text-decoration: none;
    color: var(--fond);
    font-size: 1.05rem;
    background-color: var(--buttonColor);
    border: var(--buttonColor) solid 0.2rem;
    border-radius: 10000rem;
    margin: 0.4rem;
    padding: 0 0.6rem;
    font-weight: 500;
    transition: .3s;
}


.languages{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.languages h4{
    margin-right: 0;
    margin-left: 0;
}

.languages .box div .level{
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.bar{
    padding: 0.15rem;
    border: 0.15rem solid var(--buttonColor);
    border-radius: 10000rem;
    color: var(--buttonColor);
    margin-bottom: 2rem;
    margin-top: 0.5rem;
    width: 25rem;
    height: 1.3rem;
    position: relative;
}

.ES .bar{
    margin-bottom: 0.5rem;
}

.bar span{
    display: block;
    width: 100%;
    background-color: var(--buttonColor);
    height: 100%;
    border: 0.15rem solid var(--buttonColor);
    border-radius: 10000rem;
    color: var(--buttonColor);
}

.EN span {
    width: 85%;
}

.ES span {
    width: 45%;
}

.subpart {
    max-width: 50rem;
}

.box div:hover .bar span{
    animation: chargement 1.3s ease forwards;
}

.box .EN:hover .bar span{
    animation: chargement1 1.3s ease forwards;
}

.box .ES:hover .bar span{
    animation: chargement2 1.3s ease forwards;
}

/* .box div .bar span{
    animation: chargement 1.3s ease forwards;
}

.box .EN .bar span{
    animation: chargement1 1.3s ease forwards;
}

.box .ES .bar span{
    animation: chargement2 1.3s ease forwards;
} */

.languages .box::after {
    width: 100%;
    opacity: 0;
}

/* .languages .box:hover::after {
    opacity: 1;
} */

@keyframes showRight {
    100% {
        width: 0;
    }
}

@keyframes chargement {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes chargement1 {
    0% {
        width: 0;
    }
    100% {
        width: 85%;
    }
}

@keyframes chargement2 {
    0% {
        width: 0;
    }
    100% {
        width: 45%;
    }
}

@keyframes chargement2 {
    0% {
        width: 0;
    }
    100% {
        width: 45%;
    }
}

@keyframes grossi {
    0%{
        width : 0;
        height : 0;
        border: solid var(--accentColor) 0rem;
    }
    30%{
        width : 0;
        height : 0;
        border: solid var(--accentColor) 10rem;
    }
    100%{
        width : 20rem;
        height : 20rem;
        border: solid var(--accentColor) .5rem;
    }
}

/* @media (max-width: 1000px) {
    .presentation, .snapshot {
        max-width: 100%; 
        width: 100%; 
    }
    p {
        font-size: 1.5vw;
    }
    h1 {
        font-size: 6vw;
    }
    h3 {
        font-size: 2.5vw;
    }
    .header {
        height: 15vw;
    }
    .navbar a {
        font-size: 1.5vw; 
        margin-left: 3vw;
    }
    .navbar a:hover,
    .navbar a.active{
        color: var(--buttonColor) ;
        font-size: 1.55vw ;
    }
    .logo{
        font-size: 2.6vw;
    }
    .home {
        padding-top: 25vw; 
        margin-bottom: 5vw;
    }
} */