/*Importation des Polices*/

/* Anek Latin */
@font-face {
    font-family: 'Anek Latin';
    src: url("fonts/anek_latin/static/aneklatin-bold.ttf");
}
/* Figtree */
@font-face {
    font-family: 'Figtree';
    src: url("fonts/figtree/static/figtree-bold.ttf");
}

/* Inika */
@font-face {
    font-family: 'Inika';
    src: url("fonts/inika/inika-bold.ttf");
}

/* Irina sans */
@font-face {
    font-family: 'Irina Sans';
    src: url("fonts/inria_sans/inriasans-regular.ttf");
}

/* Inter */
@font-face {
    font-family: 'Inter';
    src: url("fonts/inter/static/inter_18pt-regular.ttf");
}


/*Création des animationsAnimations*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes moveUpRight {
    0% {
        transform: translate(0, 100vh) rotate(20deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translate(300px, -100px) rotate(20deg); 
        opacity: 0;
    }
}

@keyframes AlerteAlternance {
    0%{
        transform: scale(1);
    }
    100%{
        transform: scale(1.2);
        box-shadow:  0 0 5px #19ff00;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px); 
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0); 
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}


body{
    margin: 0;
    padding-top: 80px;
    padding-bottom: 80px;
    font-family: 'Irina Sans';
}
/*Barre de navigation*/
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;        
    z-index: 1000;      
}

header nav{
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    font-family: 'Inter';
}

header ul{
    background-color: rgba(250, 249, 249, 0.646);
    backdrop-filter: blur(10px); 
    border: solid 1px rgba(87, 87, 87, 0.102);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 1px 5px rgba(16, 173, 37, 0.5);
    list-style: none;
    display: inline-flex;
    align-items: center;
}

#Visage img{
    margin: 0;
    width: 2.5em;
    height: auto;
    border-radius: 25px;
    transition: 0.2s ease-out;
}

#Visage:hover img{
    transform: scale(1.1);
    cursor: pointer;
}

.NavCenter img{
    width: 40px;
    height: auto;
}

.NavCenter a{
    padding: 0 10px;
    color: #000;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.NavCenter a:hover{
    background-color: #0000003f;
    border-radius: 30px;
}

.NavCenter a.active {
    background: linear-gradient(to right, #ABDC5C 0%, #47E07F 100%); 
    color: #FFF;
    border-radius: 30px;       
    transition: all 0.3s ease;
}

.NavCenter a.active img {
    filter: brightness(0) invert(1);
}

.NavCenter li:nth-child(2){
    margin: 0 2em;
}

.NavCenter a img{
    margin: 0 10px 0 0;
}

.NavRight{
    padding: 0 15px;
    gap: 5px;
}

.NavRight a li img{
    height: auto;
    width: 35px;
    border-radius: 5px;
    transition: 0.4s;
}

.NavRight a li img:hover{
    height: auto;
    width: 40px;
}

/*Section introduction*/

.introduction {
    height: 90vh;
    position: relative;
    overflow: hidden; 
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none; 
}

.particle {
    position: absolute;
    width: 4px;
    height: 15px; 
    background: rgba(175, 175, 175, 0.284); 
    border-radius: 10px;
    opacity: 0;
    animation: moveUpRight 2s linear infinite;
}



/* Positionnement aléatoire et délais pour chaque pastille */
.particle:nth-child(1) { left: 10%; animation-delay: 0s; width: 3px; height: 10px; }
.particle:nth-child(2) { left: 30%; animation-delay: 1.5s; width: 5px; height: 20px; }
.particle:nth-child(3) { left: 55%; animation-delay: 0.8s; width: 2px; height: 15px; }
.particle:nth-child(4) { left: 80%; animation-delay: 2.2s; width: 4px; height: 12px; }
.particle:nth-child(5) { left: 95%; animation-delay: 0.3s; width: 3px; height: 25px; }

.introduction{
    padding: 8vh 0 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 100px;
}

#pdp{
    border: #cdcdcd solid 1px;
    width: 50vh;
    height: auto;
    border-radius: 10px;
    z-index: 10;
    transition: 0.2s;
}

#pdp:hover{
    transform: scale(1.02);
}

.introduction article{
    display: grid;
    place-items: start;
    font-family: 'Irina Sans', sans-serif;
}

h1:first-of-type{
    margin-top: 0;
    background: linear-gradient(to right, #ABDC5C 0%, #47E07F 100%);
    -webkit-background-clip: text;
    color: transparent;
    font-family: 'Figtree', sans-serif;
    font-size: 4em;
}

.introduction h3{
    margin-top: 0;
    color: #98D92F;
    font-family: 'Inter', sans-serif;
    font-size: 2em;
}

.introduction h3 span{
    padding: 5px 10px;
    color: #fff;
    background-color: #69DC5E;
    border-radius: 10px;
}

.introduction p span{
    padding: 0 5px;
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 7px;
}

.introduction h1{
    animation: fadeInUp 0.5s ease-out forwards;
}

.introduction h3{
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.2s;
}

.introduction p, .introduction ul, .introduction div{
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.4s;
}

.introduction ul{
    list-style: none;
    display: inline-flex;
    margin: 0 0 20px 50px;
    gap: 20px;
    font-family: 'Irina Sans';
    position: relative;
    z-index: 10;
}

.introduction ul li{
    border-radius: 10px;
    cursor: pointer;
}

.introduction ul li a{
    width: 110px;
    height: 30px;
    padding: 4px 10px;
    color: #FFF;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


.introduction ul li a p{
    margin: 0;
}

.introduction li img{
    width: 20px;
    height: auto;
}

.introduction ul li:first-child{
    background-color: #9fdc12;
    transition: 0.3s;
}

.introduction ul li:first-child:hover{
    transform: scale(1.1);
    box-shadow: 0 0 10px #92c41c;
}

.introduction ul li:nth-child(2) a{
    color: #03d7ef;
    border: solid 1px #03d7ef;
    border-radius: 10px;
    transition: 0.3s;
}

.introduction ul li:nth-child(2) a:hover{
    color: #fff;
    transform: scale(1.1);
    background-color: #03d7ef;
    box-shadow: 0 0 10px #00B3C7;
}

.introduction ul li:last-child{
    background-color: #d5dce8;
    transition: 0.3s;
}

.introduction ul li:last-child:hover{
    transform: scale(1.1);
    box-shadow: 0 0 10px #BFC9D9;
}

.introduction #annonce{
    padding: 0 10px;
    margin: auto;
    gap: 10px;
    background-color: #dcffd8;
    border: #7ae26f 1px solid;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
}

.introduction #annonce span{
    height: 0;
    width: 0;
    border: 10px solid #19ff00;
    border-radius: 40px;
    animation: AlerteAlternance 1s ease-in-out infinite alternate;
}

.introduction #annonce p{
    margin: 5px 0;
    padding: 0;
    font-family: "Irina Sans", Times, serif;
}

/*Section Compétences*/
h2{
    font-family: 'Anek Latin';
    font-size: 3em;
    text-align: center;
}

h2 span{
    background: linear-gradient(to right, #ABDC5C 0%, #47E07F 100%);
    -webkit-background-clip: text;
    color: transparent;
}

#Competences .textmilieu{
    text-align: center;
}

#Competences article{
    margin: 50px 15vh;
    width: 70%;
    gap: 20px;
    display: inline-flex;
}

#Competences article div{
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#Competences article p{
    margin: 0;
    font-size: 1em;
}

#Competences article h4{
    margin: 0;
    font-size: 2em;
}

#Competences article div div{
    display: inline;
}

.Butheme{
    font-family: 'Inter';
    width: 110px;
    height: 40px;
    background: linear-gradient(to right, #ABDC5C 0%, #47E07F 100%);
    color: #FFF;
    border: none;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: bold;
    transition: 0.5s;
}

.Butheme:hover{
    box-shadow: #19ff00 0 0 6px;
    transform: scale(1.10);
    cursor: pointer;
}

.ProjetButton{
    font-family: 'Inter';
    background-color: #FFF;
    width: 250px;
    height: 40px;
    margin-left: 20px;
    border: solid 1px #b1b7c0;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: bold;
    transition: 0.5s;
}

.ProjetButton a{
    text-decoration: none;
    color: #b1b7c0;
    transition: 0.5s;
}

.ProjetButton:hover{
    box-shadow: 0 0 10px #BFC9D9;
    background-color: #d5dce8;
    border-color: #d5dce8;
    transform: scale(1.10);
    cursor: pointer;
}

.ProjetButton:hover a{
    color: #fff;
}

#Competences article img{
    width: 300px;
    height: 200px;
    border-radius: 10px 0 0 10px;
    object-fit: cover;
}

#Competences article:nth-child(even){
    margin: 0 50vh;
    flex-direction: row-reverse;
    justify-content: space-around;
}

#Competences article:nth-child(even) img{
    border-radius: 0 10px 10px 0;
}

/*Section Parcours*/
#Parcours{
    margin: 200px 0;
}

#Parcours #contenu {
    display: flex;
    justify-content: center; 
    gap: 50px;
    margin-left: 0; 
}

#Parcours #contenu span{
    height:auto;
    width: 0;
    border: solid 3px #3294EA;
}

#Parcours a {
    color: #000;
    height: auto;
    width: 100%;
    max-width: 450px; 
    padding: 0 40px;
    margin: 20px 0;
    text-decoration: none;
    border: 1px solid #10AD25;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    transition: 0.2s;
}

#Parcours a div{
    display: flex;
    justify-content: space-between;
}

#Parcours a div p{
    color: #8d8585;
}

#Parcours a h5{
    margin: 0;
    color: #25A2BB;
}

#Parcours a:hover{
    transform: translateY(-8px);
}

/*Section Contact (Footer)*/
footer div{
    display: inline-flex;
    padding: 0 40vh;
    gap: 300px;
}

footer article p span{
    font-weight: bold;
    background: linear-gradient(to right, #ABDC5C 0%, #47E07F 100%);
    -webkit-background-clip: text;
    color: transparent;
}

footer article:first-child a{
    color: #000000;
    font-weight: initial;
    text-decoration: none;
}

footer article:first-child a figure{
    display: flex;
    flex-direction: inline;
    align-items: center;
}

footer article:first-child a figure img{
    width: 75px;
    height: auto;
    border-radius: 10px;
    z-index: 10;
    transition: 0.4s ease-out;
}

footer article:first-child a figure figcaption{
    opacity: 0;
    transform: translateX(-80px);
    transition: 0.4s ease-out;
    padding-left: 10px
}

/*Animation des liens*/
footer article:first-child a:hover figure img {
    transform: rotate3d(0,1,0, -40deg); 
    box-shadow: #19ff00 0 0 6px;
}

footer article:first-child a:hover figure figcaption {
    opacity: 1;
    transform: translateX(0);
}

footer .contact{
    margin: 10px 0;
    padding: 5px;
    width: 500px;
    height: 50px;
    border: solid 1px #BAC6B5;
    border-radius: 10px;
    box-shadow: 0 4px 9px #00000022;
    display: flex;
    align-items: center;
}

footer article:last-child a{
    color: #000;
    text-decoration: none;
    transition: 0.3s;
}

footer article:last-child a:hover{
    border-color: #9ce3a5;
    box-shadow: 0 1px 5px rgba(16, 173, 37, 0.5);
    transform: scale(1.03)
}


#sujetMES{
    height: 200px;
    width: 500px;
}

footer article .Butheme{
    justify-self: flex-end;
}

footer img{
    width: 100px;
    height: auto;
}

/*Modale de présentation du projet*/
#modal-container {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(5px); 
    z-index: 2000;

    overflow-y: auto;

    display: flex;
    justify-content: center; 
    align-items: center;
    
    padding: 40px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.modal-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 80%; 

    height: auto;

    padding: 40px; 
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    box-sizing: border-box;
    margin-top: 180px;
}

#modal-content{
    overflow: visible;
    height: auto;
}

#modal-content::-webkit-scrollbar {
    width: 6px;
}
#modal-content::-webkit-scrollbar-track {
    background: transparent;
}

#close-modal {
    position: absolute; 
    top: 15px; 
    right: 20px;
    border: none;
    border-radius: 10px;
    font-size: 25px; 
    cursor: pointer;
}

.modal-hidden {
    opacity: 0; 
    pointer-events: none; 
    visibility: hidden;
}

.modal-hidden .modal-card {
    transform: scale(0.9);
}

.modal-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #000; 
}

.modal-layout h2 {
    font-size: 2.2em;
    margin: 0 0 20px 0;
    color: #000; 
}

/* Division en deux colonnes */
.modal-body-split {
    display: flex;
    align-items: center;
    gap: 30px;
}

.modal-body-split p{
    flex: 2;
    padding-right: 30px;
    padding-bottom: 20px;
}

.modal-left h3 {
    margin-top: 20px;
    font-size: 1.3em;
}

.modal-right {
    flex: 1;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-family: 'Inter', sans-serif;
}

.tech-list img {
    width: 35px;
    height: auto;
}

.modal-footer-images {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 10px;   
}

.modal-footer-images img {
    max-height: 200px;      
    object-fit: contain;    
    border-radius: 10px;
}