@import url('https://fonts.googleapis.com/css2?family=Jostital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
}

:root{
    --bg-color: #7F5836;
    --second-bg-color:#443025;
    --main-color: #EC9C9D;
    --text-color: #FFE4E1;
    --third-bg-color: #AA7F66;
}


body{
    background: var(--bg-color);
    color: var(--text-color);
}

header{
    margin-top: 0;
    margin-bottom: 0;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    background-color: #443025;
    backdrop-filter: blur(8px);
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
}

.logo{
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
}

.logo:hover{
    transform: scale(1.1);
}

.nav-link{
    display: flex;
    gap: 4rem;
}

li a {
    position: relative;
    color: var(--text-color);
    font-weight: 300;
}

li a::before {
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(170, 127, 102), rgb(127, 88, 54));
}

li a:hover::before{
    width: 100%;
}

.visit-btn{
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right,rgb(170, 127, 102), rgb(127, 88, 54));
}

.visit-btn a{
    color: inherit;
    text-decoration: none;
}

.visit-btn:hover{
    background: linear-gradient(to right, rgb(127, 88, 54), rgb(170, 127, 102));
    transform: scale(1.03);
}

#menu-icon{
    font-size: 2rem;
    display: none;
}
/* fin header */


/* debut home */
section{
    margin-top: 0;
    margin-bottom: 0;
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    justify-content: center;
}
.home-content p{
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.8;
    max-width: 1000px;

}
span{
    color: var(--main-color);
}

.logo span{
    color: var(--main-color);
}

.home-content h3{
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-size: 2rem;
}

.home-content h1{
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}
.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.home-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
    0 0 50px var(--main-color), 0 0 100px var(--main-color);
}


.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.3rem;
    height: 4.3rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.social-icons a:hover{
    color: var(--text-color);
    transform: scale(1.3)translateY(-5px);
    box-shadow:  0 0 25px var(--main-color);
    background-color:var(--main-color) ;
}

.btn{
    display: inline-block;
    padding: 0.5rem 2rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--text-color);
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-of-type(2){
    background-color: #443025;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover{
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: var(--text-color);
}



.text-animation{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span{
    position: relative;
}

.text-animation span::before{
    content: "Etudiante";
    color: var(--main-color);
    animation: words 15s infinite;
}

.text-animation span::after{
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}
@keyframes cursor {
    to{
        border-left: 2px solid var(--main-color);
    }

}
@keyframes words {
    0%,
    20%{
        content: "Frontend";
    }
    21%,
    40%{
        content: "développeuse";
    }
    41%,
    60%{
    "developper"
    }
    61%,
    80%{
    "UI / UX"
    }81%,
     100%{
     "Student"
     }

}

@keyframes typing {
    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%{
        width: 0;
    }
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    80%,
    85%{
        width: calc(100% + 8px);
    }

}
/* fin home */


/* debut quisuije */

.quisuisje{
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    padding: 100px;  /* Espace interne réduit */

}

.quisuisje-img img{
    position: relative;
    width: 30vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.quisuisje-box{
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 1rem;
}

.quisuisje-box h1{
    font-size: 3em;
}

.quisuisje-box p{
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.8;
}

.competences{
    display: flex;
    text-align: left;
    gap: 10em;
}
.competences span{
    color: var(--text-color);
}


.competences ul{
    font-size: 1.3em;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    opacity: 0.8;
    align-items: baseline;
}

.competences ul li{
    display: flex;
    font-size: 1.2em;
    transition: 0.3s ease-in-out;
}

.competences ul li:hover {
    transform: translateX(10px);
}

.competences ul li i {
    font-size: 1.2em;
}

.quisuisje-box h2{
    font-size: 2.5em;
}

.btni {
    background-color: var(--main-color);
    color: var(--text-color);
    display: inline-block;
    text-decoration: none;
    border-radius: 4rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: max-content;    /* Force le bouton à ne pas dépasser la taille de son texte */
    padding: 12px 25px;    /* Ajuste l'espace interne pour qu'il respire (haut/bas gauche/droite) */
}

/* Effet au survol de la souris */
.btni:hover {
    background-color: #443025;
}

/* fin quisuisje */
/* debut parcours */

.heading{
    font-size: 4rem;
    text-align: center;
    margin: 2rem 0;
}

.parcours{
    padding: 100px 15px;
}

.parcours h2{
    margin-bottom: 5rem;
    color:var(--main-color) ;
}

.timeline-items{
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before{
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: #443025;
    left: calc(50% - 1px);
}

.timeline-item{
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.timeline-item:last-child{
    margin-bottom: 0;
}

.timeline-item:nth-child(odd){
    padding-right: calc(50% + 30px);
    text-align: right;
}
.timeline-item:nth-child(even){
    padding-left: calc(50% + 30px);
}

.timeline-dot{
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow:  0 0 25px var(--main-color),
    0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}
.timeline-date{
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    margin: 6px 0 15px;
}
.timeline-content{
    background-color: var(--third-bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.timeline-content:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}
.timeline-content h3{
    overflow-wrap: break-word;
    word-break: break-word; /* Pour une meilleure compatibilité */
    font-size: 20px;
    color: var(--text-color);
    margin: 0 0 10px;
    font-weight: 500;
}
.timeline-content p{
    overflow-wrap: break-word;
    word-break: break-word; /* Pour une meilleure compatibilité */
    color: var(--text-color);
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

::-webkit-scrollbar{
    width: 15px;
}
::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
::-webkit-scrollbar-track{
    background-color: var(--third-bg-color);
    width: 50px;
}


/* fin parcours */

/* début projet */


.projets{
    background-color: var(--bg-color);
}

.projets-box{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    place-items: center;
    gap: 3rem;
}

.projets-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--third-bg-color);
    border: 2px solid var(--main-color);
    border-radius: 3rem;
    gap: 2rem;
    padding: 1rem 1rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    transition: 0.3s ease;
}
.projets-card:hover{
    box-shadow:  0 0 25px var(--main-color), 0 0 50px var(--main-color);
    transform: scale(1.02);
}
.projets-card img{
    max-width: 400px;
    border-radius: 2em;
}

.projets-card h3{
    font-size: 1.9rem;
}

.projets-card p{
    font-size: 1.3rem;
}

/* fin projet */

/* début contact */

.contact{
    background-color: var(--bg-color);
}

.contact h2{
    color: var(--text-color);
}

.contact form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input::placeholder, .contact form textarea::placeholder{
    color: rgba(255, 228, 225, 0.7);
    opacity: 1;
}

.contact form .input-box input,
.contact form textarea{
    width: 100%;
    border: 1px solid transparent;
    padding: 1.1rem;
    font-size: 1.1rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 2rem;
    margin: 1.5rem 0;
    resize: none;
}
.contact form .btni {
    border: 1px solid transparent;
    font-size: 18px;
    display: inline-block;
    background-color: var(--main-color); /* Mets ta couleur principale ici */
    color: var(--text-color); /* Couleur du texte */
    text-decoration: none;
    border-radius: 4rem;
    transition: background-color 0.3s ease;
    width: max-content;    /* Force le bouton à ne pas dépasser la taille de son texte */
    padding: 12px 25px;    /* Ajuste l'espace interne pour qu'il respire (haut/bas gauche/droite) */
}

.contact form .btni:hover {
    background-color: var(--second-bg-color); /* Couleur un peu plus foncée au survol */
}



/* fin contact */

/* début footer */

.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 20px 0;
    background-color: var(--second-bg-color);
}

.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}

.footer .social a{
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease;
}
.footer .social a:hover{
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}
.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}
.footer ul li a{
color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}

.footer ul li a:hover{
    border-bottom:3px solid var(--main-color);
}

.footer ul li{
    display: inline-block;
    padding: 0 15px;
}

.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}

/* fin footer */






/* debut responsive */
@media(max-width: 1280px){
    html{
        font-size: 55%;
    }
header{
    padding: 1rem 2rem;
    gap: 2rem;
}
}

@media(max-width: 768px){
    header{
        gap: 1rem;
        padding: 1rem 1rem;
    }
    header .logo{
        font-size: 1rem;
    }
    header .visit-btn{
        display: none;
    }
    section{
        padding: 10rem 3% 2rem;
    }
}




@media(max-width: 600px){
header #menu-icon{
    display: block;
}
    .nav-link{
        position: absolute;
        top: 100%;
        margin-top: 1rem;
        width: 100%;
        padding: 1rem;
        color: white;
        display: flex;
        flex-direction: column;
        text-align: center;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 3rem;
        display: none;
    }
    .nav-link li{
        margin-top: 1.5rem;
        padding: 1rem;
        font-size: 2rem;
    }
    .nav-link.active{
        display: block;
    }
    header{
        padding: 1rem 5rem;
        gap: 8rem;
    }
    header .logo{
        font-size: 1.5rem;
    }
    .home{
        height: auto !important;
        min-height: fit-content !important;
        flex-direction: column-reverse;
        margin: 5rem 4rem;
        gap: 3rem;
    }
    .home-content{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .home-content h3{
        font-size: 3rem;
    }
    .home-content h1{
        font-size: 4rem;
        margin-top: 1rem;
    }
    .home-content p{
        max-width: 600px;
        margin: 0 auto;
        font-size: 2rem;
    }
    .home-img img{
        width: 56vw;
        margin: 3rem 0;
    }

    .quisuisje{
        height: auto !important;
        min-height: fit-content !important;
        flex-direction: column-reverse;
        margin: 5rem 4rem;
        gap: 3rem;
    }
    .quisuisje-box{

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .quisuisje-box h1{
        font-size: 4rem;
        margin-top: 3rem;
    }
    .quisuisje-box p{
        max-width:600px;
        font-size: 17px;
        margin: 0 auto;
    }
    .quisuisje-img img{
        width: 32vw;
        margin: 3rem 0;
    }
    .timeline-item .timeline-content p{
        font-size: 17px;
    }
    .timeline-item:nth-child(odd) {
        padding-right: calc(50% + 10px) !important;
        text-align: right;
    }
    .timeline-item:nth-child(even) {
        padding-left: calc(50% + 10px) !important;
        text-align: left;
    }

    .timeline-content {
        width: 165px !important;
        max-width: 170px !important;
        min-width: 150px !important;

        padding: 15px !important;
        border-radius: 1.5rem !important;
        display: inline-block !important;

    }



    .timeline-dot {
        position: absolute !important;
        left: calc(50% - 10.5px) !important; /* Aligne pile sur la ligne de 5px */

        width: 21px !important;
        height: 21px !important;
        min-width: 21px !important;
        min-height: 21px !important;
        max-width: 21px !important;
        max-height: 21px !important;
    }


    .timeline-date {
    font-size: 14px !important;
    margin: 5px 0 10px !important;
}


    .projets-box .projets-card p{
        font-size: 17px;
    }

    .projets-box .projets-card a{
        font-size: 15px;
    }
    .timeline-item .timeline-date{
        color: inherit;
        text-decoration: none;
    }
    .quisuisje-box .btni{
        font-size: 14px;
    }
    .projets-card {
        width: 300px;
    }

    .contact{
        height: auto !important;
        min-height: fit-content !important;
        padding-bottom: 90px;
    }
    .parcours{
        height: auto !important;
        min-height: fit-content !important;
    }

}

