@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #2c2c2c;
    --second-bg-color: #3f3f3f;
    --text-color: #ededed;
    --main-color: #c33030;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scrollbar-width: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    -ms-overflow-style: none;
}

body::-webkit-scrollbar{
    display: none;
  }

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
}

.header.sticky {
    background: var(--bg-color);
}

.logo {
    position: relative;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 2px;
}

.navbar {
    position: relative;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.surli {
    color: var(--main-color);
}

#menu-icon {
    position: relative;
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Présentation  --------------------------------------------------------------------------------------------------------> */

.Présentation {
    display: flex;
    align-items: center;
    padding: 0 9%;
    width: auto;
}

.Présentation-contenu {
    max-width: 60rem;
    z-index: 99;
}

.Présentation-contenu h1 {
    position: relative;
    display: inline-block;
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.Présentation-contenu h1 span {
    color: var(--text-color);
}

.Présentation-contenu .animation-texte {
    width: 39.8rem;
    position: relative;
}

.Présentation-contenu .animation-texte h3 {
    font-size: 2.3rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: .7px var(--main-color);
    background-image: linear-gradient(var(--main-color), var(--main-color));
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-position: -40rem 0;
}

.Présentation.show-animate .Présentation-contenu .animation-texte h3 {
    animation: presBgText 6s linear infinite;
    animation-delay: 2s;
}

.Présentation-contenu .animation-texte h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-right: 2px solid var(--main-color);
    z-index: -1;
}

.Présentation.show-animate .Présentation-contenu .animation-texte h3::before {
    animation: presCursorText 6s linear infinite;
    animation-delay: 2s;
}

.Présentation-contenu p {
    position: relative;
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}
.btn-box {
    display: flex;
    gap: 16px;       /* Ajoute de l'espace entre les boutons */
    flex-wrap: wrap; /* Permet le retour à la ligne sur petits écrans */
  }
  
.btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

.btn-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box .btn:hover {
    color: var(--main-color);
}

.btn-box .btn:nth-child(2) {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
    color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before {
    background: var(--main-color);
}

.btn-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover:before {
    width: 100%;
}

.resp-pres-img {
    position: relative;
    left: 25%;
    display: flex;
    width: 390px;
    height: 390px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.Présentation-image img {
    width: 380px;
    height: 380px;
    border-radius: 8px;
    z-index: 1;
}

.Présentation-image {
    position: relative;
    left: 25%;
    display: flex;
    width: 390px;
    height: 390px;
    display: flex;
    justify-content: center;
    align-items: center;
    content: '';
    background: #101010;
    border-radius: 10px;
    z-index: -1;
    overflow: hidden;
}

.Présentation-image::before {
    content: "";
    background-image: conic-gradient(var(--main-color) 20deg, transparent 120deg);
    width: 150%;
    height: 150%;
    position: absolute;
    animation: rotate 2s linear infinite;
}

.Présentation-image::after {
    content: "";
    background-image: conic-gradient(var(--main-color) 20deg, transparent 120deg);
    width: 150%;
    height: 150%;
    position: absolute;
    animation: rotate 2s linear infinite;
    animation-delay: -3s;
}

.Présentation-sci {
    position: absolute;
    bottom: 4rem;
    width: 170px;
    display: flex;
    justify-content: space-between;
}

.Présentation-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.Présentation-sci a:hover {
    color: var(--bg-color);
}

.Présentation-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .5s;
}

.Présentation-sci a:hover:before {
    width: 100%;
}

.language {
    position: aboslute;
    bottom: 4rem;
    width: 80px;
    display: flex;
    justify-content: space-between;
}

.language .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: 25%;
    font-size: 15px;
    color: var(--bg-color);
    font-weight: 600;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.language .btn:hover {
    color: var(--main-color);
}

.language .btn:nth-child(2) {
    background: transparent;
    color: var(--main-color);
}

.language .btn:nth-child(2):hover {
    color: var(--bg-color);
}

.language .btn:nth-child(2)::before {
    background: var(--main-color);
}

.language .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.language .btn:hover:before {
    width: 100%;
}

/* Infos --------------------------------------------------------------------------------------------------------> */

.Infos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 6rem;
}

.heading {
    position: relative;
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

span {
    color: var(--main-color);
}

.infos-img {
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.infos-img img {
    width: 90%;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
}

.infos-img .circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: .2rem solid var(--second-bg-color);
    border-bottom: .2rem solid var(--second-bg-color);
    border-left: .2rem solid var(--main-color);
    border-right: .2rem solid var(--main-color);
    animation: aboutSpinner 8s linear infinite;
}

.infos-contenu {
    text-align: center;
}

.infos-contenu h3 {
    position: relative;
    display: inline-block;
    font-size: 2.6rem;
}

.infos-contenu p {
    position: relative;
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.btn-box.btns {
    display: inline-block;
    width: 19rem;
}

.btn-box.btns a {
    width: 19rem;
    font-size: 1.8rem;
}

.btn-box.btns a::before {
    background: var(--second-bg-color);
}

/* Parcours  --------------------------------------------------------------------------------------------------------> */

.parcours {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-top: 10rem;  
    padding-bottom: 20rem;
    gap: 2rem;
}

.parcours .parcours-act {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.parcours-act .parcours-col {
    flex: 1 1 40rem;
}

.parcours-col .Titre {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}

.parcours-col .parcours-box {
    position: relative;
    border-left: .2rem solid var(--main-color);
}

.parcours-box .parcours-contenu {
    position: relative;
    padding-left: 2rem;
}

.parcours-box .parcours-contenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.3rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--main-color);
    border-radius: 50%;
}

.parcours-contenu .contenu {
    position: relative;
    padding: 1.7rem;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.parcours-contenu .contenu ::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.parcours-contenu .contenu :hover:before {
    width: 100%;
}

.parcours-contenu .contenu .year {
    font-size: 2rem;
    color: var(--main-color);
    padding-bottom: .5rem;
}

.parcours-contenu .contenu .year i {
    color: var(--main-color);
    padding-right: .1rem;
}

.education-contenu .contenu h3 {
    font-size: 3.5rem;
}

.education-contenu .contenu p {
    font-size: 4rem;
    padding-top: .5rem;
}

/* Compétences -------------------------------------------------------------------------------------------------------->  */

.comp {
    min-height: auto;
    padding-bottom: 37rem;
    background: var(--second-bg-color);
}

.comp h2 {
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.comp .comp-act {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    margin-top: 10rem;
}

.comp-act .comp-col {
    flex: 1 1 40rem;
}

.comp-col .Titre {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.comp-col .comp-box {
    position: relative;
}

.comp-box .comp-contenu {
    position: relative;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    padding: .5rem 1.5rem;
    z-index: 1;
    overflow: hidden;
}

.comp-box .comp-contenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.comp-box .comp-contenu:hover:before {
    width: 100%;
}

.comp-contenu .progress {
    padding: 1rem 0;
}

.comp-contenu .progress h3 {
    font-size: 1.7rem;
    display: flex;
}

.comp-contenu .progress h3 span {
    color: var(--text-color);
    position: absolute;
    right: 10px;
}

.comp-contenu .progress .barre {
    height: 2.5rem;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
    padding: .5rem;
    margin: 1.rem 0;
}

.comp-contenu .progress .barre span {
    display: block;
    height: 100%;
    border-radius: .3rem;
    background: var(--main-color);
}

.comp-col:nth-child(1) .comp-contenu .progress:nth-child(1) .barre span {
    width: 15%;
}

.comp-col:nth-child(1) .comp-contenu .progress:nth-child(2) .barre span {
    width: 40%;
}

.comp-col:nth-child(1) .comp-contenu .progress:nth-child(3) .barre span {
    width: 55%;
}

.comp-col:nth-child(1) .comp-contenu .progress:nth-child(4) .barre span {
    width: 60%;
}

.comp-col:nth-child(2) .comp-contenu .progress:nth-child(1) .barre span {
    width: 90%;
}

.comp-col:nth-child(2) .comp-contenu .progress:nth-child(2) .barre span {
    width: 85%;
}

.comp-col:nth-child(2) .comp-contenu .progress:nth-child(3) .barre span {
    width: 60%;
}

.comp-col:nth-child(2) .comp-contenu .progress:nth-child(4) .barre span {
    width: 60%;
}

/* Projet --------------------------------------------------------------------------------------------------------> */

.projet {
    min-height: auto;
    padding-bottom: 30rem;
}
.heading {
    position: relative;
}

.filter-buttons {
    margin: 2rem;
    text-align: center;
    position: relative;
}

.filter-buttons .btn {
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: .4px;
    margin-left: 1.3rem;
    color: var(--text-color);
}

.filter-buttons .btn:hover {
    color: var(--main-color);
}

.portfolio-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
}

.port-box {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #292e33;
    display: flex;
    grid-template-rows: 1fr auto;
    align-items: center;
    border: 2px solid var(--main-color);
}

.port-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.port-image img {
    width: 100%;
    opacity: .5s;
    height: 100%;
    transition: .5s;
}

.port-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: linear-gradient(rgba(0, 0, 0, .2), var(--main-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    transition: .5s;
    padding: 0 2rem;
}

.port-content h3 {
    font-size: 1.7rem;
    font-weight: 600;
}

.port-content p {
    font-size: 1.3rem;
    margin: 5px 0 15px 0;
    font-weight: 600;
}

.port-content p span {
    color: var(--bg-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.port-content a {
    background: var(--bg-color);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--main-color);
    outline: 2px solid var (var(--bg-color));
}

.port-box:hover .port-content {
    opacity: 1;
}

.port-box:hover .port-image img {
    transform: scale(1.1);
}

.port-content a {
    font-size: 1.5rem;
    color: var(--main-color);
}

/* Contact */

/* .contact {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
}

.contact h2 {
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
    margin-top: -2.5rem;
}

.contact form .input-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box .input-field {
    position: relative;
    width: 49%;
    margin: .8rem 0;
}

.contact form .input-box .input-field input,
.contact form .textarea-field textarea {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
}

.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
    color: var(--text-color);
}

.contact form .focus {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--second-bg-color);
    border-radius: .6rem;
    z-index: -1;
    transition: .5s;
}

.contact form .input-box .input-field input:focus~.focus,
.contact form .input-box .input-field input:valid~.focus,
.contact form .textarea-field textarea:focus~.focus,
.contact form .textarea-field textarea:valid~.focus {
    width: 100%;
}

.contact form .textarea-field {
    position: relative;
    margin: .8rem 0 2.7rem;
    display: flex;
}

.contact form .textarea-field textarea {
    resize: none;
}

.contact form .btn-box.btns .btn {
    cursor: pointer;
} */

/* Footer*/

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text,
.footer-iconTop {
    position: relative;
}

.footer-text {
    font-size: 1.6rem;
}

.footer-iconTop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}

.footer-iconTop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.footer-iconTop a:hover:before {
    width: 100%;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
    transition: .5s;
}

.footer-iconTop a:hover i {
    color: var(--main-color);
}

/*anim rld y scroll*/
.animate {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 98;
}

.animate.Présentation-img {
    width: 55%;
}

.logo .animate,
.navbar .animate,
.language .animate,
#menu-icon .animate,
.Présentation.show-animate .animate {
    animation: showRight 1s ease forwards;
    animation-delay: calc(.3s * var(--i));
}

.animate.scroll {
    transition: 1s ease;
    transition-delay: calc(.3s / var(--i));
    animation: none;
}

section:nth-child(odd) .animate.scroll,
.footer .animate.scroll {
    background: var(--second-bg-color);
}

.parcours .parcours-box .animate.scroll {
    width: 105%;
}

.Infos.show-animate .animate.scroll,
.parcours.show-animate .animate.scroll,
.comp.show-animate .animate.scroll,
/* .contact.show-animate .animate.scroll, */
.projet.show-animate .animate.scroll,
.footer.show-animate .animate.scroll {
    transition-delay: calc(.3s * var(--i));
    width: 0;
}

/* breakpoints */
@media screen and (max-width: 1920px) and (-webkit-min-device-pixel-ratio: 1.25),
screen and (max-width: 1920px) and (min-resolution: 120dpi) {
    .resp-pres-img {
        top: 3rem;
        left: 8rem;
    }

    .Infos {
        gap: 1rem;
    }

    .parcours {
        gap: 0rem;
    }

    .comp .comp-act {
        margin-top: 3rem;
    }

}

@media screen and (max-width: 1358px) {
    .resp-pres-img{
        left: 1rem;
    }
}

@media screen and (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .resp-pres-img {
        width: 40%;
    }
}

@media screen and (max-width: 1190px) {
    .resp-pres-img{
        left: 0;
    }

    .Présentation-image img {
        width: 98%;
        height: 99%;
    }
}

@media screen and (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        padding: 0 4%;
    }

    .footer {
        padding: 2rem 4%;
    }

}

@media screen and (max-width: 768px) {
    .header {
        background: var(--bg-color);
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--main-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        z-index: 1;
        transition: .25s ease;
        transition-delay: .25s;
    }

    .navbar.surli {
        left: 0;
        transition-delay: 0s;
    }

    .navbar .surli-nav {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        z-index: -1;
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar.surli .surli-nav {
        left: 0;
        transition-delay: .25s;

        .footer-text p {
            font-size: 1.6rem;
        }
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        transform: translateX(-20rem);
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar.surli a {
        transform: translateX(0);
        transition-delay: .25s;
    }

    .resp-pres-img{
        display: none;
    }
}

@media screen and (max-width: 520px) {
    html {
        font-size: 50%;
    }

    .Présentation-contenu h1 {
        display: flex;
        flex-direction: column;
    }

    .Présentation-sci {
        width: 160px;
    }

    .Présentation-sci a {
        width: 38px;
        height: 38px;
    }
}

@media screen and (max-width: 462px) {
    .Présentation-contenu h1 {
        font-size: 5.2rem;
    }

    .parcours {
        padding: 10rem 4% 5rem 5%;
    }

    /* .contact form .input-box .input-field {
        width: 100%;
    } */

    .footer {
        flex-direction: column-reverse;
    }

    .footer-text {
        margin-top: 2rem;
        text-align: center;
    }
}

@media screen and (max-width: 371px) {
    .Présentation {
        justify-content: center;
    }

    .Présentation-contenu {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .Présentation-contenu h1 {
        font-size: 5rem;
    }
}

/*# key animations */
@keyframes presBgText {

    0%,
    10%,
    100% {
        background-position: -40rem 0;
    }

    65%,
    85% {
        background-position: 0 0;
    }
}

@keyframes presCursorText {

    0%,
    10%,
    100% {
        width: 0;
    }

    65%,
    78%,
    85% {
        width: 100%;
        opacity: 1;
    }

    75%,
    81% {
        opacity: 0;
    }
}

@keyframes aboutSpinner {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes showRight {
    100% {
        width: 0;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}