:root {
    --pink: #dad1cd;
}

/* scrollbar couleur */
body::-webkit-scrollbar {
    width: 11px;
}

body::-webkit-scrollbar-track {
    background: rgb(122, 147, 138);
}

body::-webkit-scrollbar-thumb {
    background-color: #f2f2f2;
    border-radius: 20px;
    border: 3px solid rgb(172, 194, 186);
}

body {
    margin: 0;
    overflow-x: hidden;
}

* {
    font-family: "Roboto Mono";
}

.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, .35);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    cursor: pointer;
    transition: opacity .25s ease-out;
}

.message-modal[visible] {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    cursor: initial;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .5em 1.5em;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    background-color: white;
}

.modal-content h5 {
    margin: 0;
    font-size: 1.4em;
}

.header-wrap {
    background-color: rgb(122, 147, 138);
    color: white;
    height: 100%;
}

.header-border {
    height: 1px;
    width: 100vw;
    position: sticky;
    top: 4.5em;
    z-index: 10000;
    background-color: white;
}

.logo-nav {
    position: fixed;
    z-index: 2;
    width: 100vw;
    background-color: rgb(122, 147, 138);
    display: flex;
    justify-content: space-between;
}

.row {
    display: flex;
    width: 100%;
    padding: 0.5em 1em;
}

.col-md-8 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}


.initial {
    color: #5c3f3f;
    display: flex;
    justify-content: left;
    align-items: flex-start;
    border: 2px solid #5c3f3f;
    width: 45px;
    height: 45px;
    padding-left: 8px;
    padding-top: 8px;
}

.animated-logo {
    animation: rotate 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.topnav {
    display: flex;
    justify-content: flex-end;
    background-color: rgb(122, 147, 138);
}

.icon {
    display: none;
}

.topnav a {
    padding: 14px;
    text-decoration: none;
    font-size: 17px;
    color: #f2f2f2;
}

.topnav a:hover {
    color: rgb(199, 227, 77);
}

/* Cacher le hamburger sur desktop */
.topnav a.icon {
    display: none;
}

.topnav.responsive a {
    display: block;
    text-align: center;
}

.name {
    text-align: center;
    height: 100vh;
    /* la page prend toute la hauteur de l'écran */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.borderline {
    border-bottom: 5px solid whitesmoke;
    padding-bottom: 32px;
}

h1 {
    font-family: "Libre Baskerville";
    font-size: 62px;
    margin-bottom: 0;
    color: whitesmoke;
}

h2,
h3,
h4 {
    font-family: 'Times New Roman';
    color: whitesmoke;
    text-align: center;
    font-size: 22px;
    color: whitesmoke;
    margin: 0;
}



.profil {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: 100% 100%;
    background-image: url("imagespf/couleur.webp");
    height: 100vh;
}

.section {
    min-height: 100vh;
    width: 100%;
    margin: 0;
}

.container-background {
    display: inline-block;
    padding: .75em;
    background-color: rgba(255, 255, 255, .15);
    backdrop-filter: blur(5px);
    border-radius: .5em;
    width: 20.5vw;
    min-width: 300px;
    max-width: 80vw;
    color: white;
    text-align: center;
    box-shadow: 0 3px 7px rgba(0, 0, 0, .15);
}

.container-background .text {
    z-index: 1;
}

.text {
    z-index: 1;
    position: relative;
}

/*compétences*/
.compétences {
    /*background-color: #76ebeb;*/
    background-color: #9fe0ff;
    padding-bottom: 2em;
}

.skills-title {
    padding-top: 40px;
    text-align: center;
    font-size: 40px;
}

.compétences p {
    font-size: 16px;
    margin-bottom: 0;
}

.compétences .skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.compétences .skills-container .skill-box {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 15%;
}

.compétences .skills-container .skill-box .box-2 .skill-item .skill-bar {
    background-color: rgb(172, 194, 186);
    height: 0.5em;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.compétences .skills-container .skill-box .box-2 .skill-item .skill-bar .skill-bar-fullfilled {
    background-color: rgb(214, 255, 31);
    height: 0.5em;
    width: 0;
    transition: none;
}

.html_skill {
    width: 100% !important;
    transition: width 3s ease-out !important;
}

.cv-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}


/*contact*/
#contact {
    min-height: 100vh;
}

.contact {
    background-color: rgb(122, 147, 138);
    color: white;
    text-align: center;
    margin: 0 auto;
    padding: 5em 0;
    height: inherit !important;
}

#form-section>div {
    opacity: 1;
    overflow: hidden;
    transform-origin: top center;
    transition: height .35s ease-out, opacity .35s ease-out, transform .25s ease-out;
}

#form-section>div[data-hidden] {
    opacity: 0;
    height: 0;
    transform: scale(0);
    pointer-events: none;
}

#form-section>div .form-input {
    padding: .75em 1.5em;
    font-size: 1em;
    text-align: center;
    border-radius: 150px;
    outline: 0;
    width: 50%;
    max-width: 225px;
    transition: box-shadow .25s ease-out, transform .25s ease-out;
}

#form-section>div .form-textarea {
    width: 80%;
    max-width: 550px;
    height: calc(150px + 1.5em);
    border-radius: 10px;
    outline: 0;
    font-size: 1.1em;
    padding: .75em 1.5em;
    transition: box-shadow .25s ease-out, transform .25s ease-out;
}

#form-section>div .form-input:focus {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    transform: scale(1.03);
}

#form-section>div .form-textarea:focus {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    transform: scale(1.01);
}

/* animation bouton submit*/
@keyframes extend {
    0% {
        width: 100px;
        height: 40px;
        border-radius: 100px;
    }

    10% {
        width: 100px;
        height: 40px;
        background: #fff;
    }

    20% {
        width: 100px;
        height: 40px;
        background: #6fb07f;
        margin-left: 0px;
        margin-top: 0px;
    }

    100% {
        width: 50px;
        height: 50px;
        border-radius: 100px;
        margin-left: 190px;
        background: #6fb07f;
    }
}

@keyframes disappear {
    0% {
        opacity: 1;
    }

    20% {
        color: #fff;
    }

    100% {
        opacity: 0;
    }
}

@keyframes appear {
    0% {
        opacity: 0;
    }

    70% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

html {
    background: #fff;
}

input,
button {
    border: none;
}

button {
    margin-top: 10px;
    width: 120px;
    height: 50px;
    border-radius: 80px;
    background: #fff;
    border: 5px solid rgb(122, 147, 138);
}

.box input {
    height: 20px;
    border: #f2f2f2;
}

/*portfolio*/
.portfolio {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-bottom: 50px;
    min-height: 100vh;
    /*background-color: var(--pink);*/
    background-color: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, .75);
    border-bottom: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 -10px 15px rgba(0, 0, 0, 0.5) inset, 0 10px 15px rgba(0, 0, 0, 0.5) inset;
}

.portfolio h4 {
    min-width: 100%;
}

section>h4 {
    font-size: 48px;
    padding-top: 90px;
}


.tv-container {
    flex: 1 1 calc(20% - 20px);
    margin: 10px;
    margin-top: -40px;
}

.monitor {
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    border: 25px solid rgba(255, 255, 240, 0.8);
    padding: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.monitor:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.monitorscreen1,
.monitorscreen2,
.monitorscreen3 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.7);
    height: 0;
    padding-bottom: 70%;
}

.monitorscreen1 {
    background-image: url("imagespf/fdecranzoo.webp");
}

.monitorscreen2 {
    background-image: url("imagespf/Ph.webp");
}

.monitorscreen3 {
    background-image: url("imagespf/dressing.webp");
}

.tv-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.monitor:hover .tv-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    margin-bottom: 2em;
}

.social-links h3 {
    margin-right: .5em;
}


.social-links img {
    width: 50px;
    height: 50px;
    filter: invert(100%);
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.1);
    /* Effet d'agrandissement au survol */
}

@media screen and (max-width: 768px) {
    .tv-container {
        flex: 1 1 100%;
        margin: 20px 0;
    }

    .monitor {
        margin: 0 25px 0 25px;
    }

    .cv-download-img {
        display: none;
    }

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

    .skills-container .skill-box {
        width: 80% !important;
    }

    /* Combiner Frontend et Backend dans une colonne */
    .skills-container .skill-box:nth-child(1),
    .skills-container .skill-box:nth-child(2) {
        display: flex;
        flex-direction: column;
    }

    /* Combiner Design et Divers dans une autre colonne */
    .skills-container .skill-box:nth-child(3),
    .skills-container .skill-box:nth-child(4) {
        display: flex;
        flex-direction: column;
    }

    /* Le bouton télécharger CV apparaît en dessous des deux colonnes */
    .cv-download {
        display: block;
        margin-top: 20px;
        text-align: center;
    }

    .cv-download .btn {
        width: 100%;
        text-align: center;
    }



    .contact {
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    .topnav {
        position: absolute;
        top: 50px;
        right: 0;
        flex-direction: column;
    }

    .topnav a {
        display: none;
    }

    .logo-nav a.icon {
        float: right;
        display: block;
        color: rgb(199, 227, 77);
        text-decoration: none;
        font-size: 1.6em;
    }



    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }


}