@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

@keyframes fleche {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}




html {
    scroll-behavior: smooth;
    width: 100vw;
}

body {
    position: relative;
    background-color: #212121;
    margin: 0;
    overflow-x: hidden;
    max-width: 100vw;
}

.reste {
    background-color: #cccccc;
}

main {
    background-color: #212121;
}

.divide {
    border: none;
    border-bottom: 0.5px solid #212121;
    margin: 0 auto;
    width: 80%;

}


footer {
    background-color: #fbf0e2;
    z-index: 200;
}

.footer {
    background-color: #fbf0e2;
    display: flex;
    justify-content: center;
    padding: 50px 0;
    gap: 20px;
    font-size: 20px;
}

.afooter {
    text-decoration: none;
    color: black;
}

.afooter:hover {
    text-decoration: underline;
}

header {
    padding-top: 2px;
    position: relative;
    top: 0;
    z-index: 1;
    background-color: #fbf0e2;
    border: none;
}
.header {
    padding-right: 20%;
    padding-left: 20%;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    position: relative;
}

header.scrolled {
    position: sticky;
    top: 0;
    z-index: 10000;

}

header .nav {
    color: #212121;
    font-weight: bold;
}



.navnom {
    font-weight: bolder;
}
li {
    display: table-cell;
    position: relative;
    padding: 15px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #212121;
    transition: transform 0.25s ease-out;
}
.nav-link:hover::after {
    transform: scaleX(1);
}



.bg-presentation, .bg-presentation ul {
    background-color: #fbf0e2;
    color: #212121;
}

.bg-cv .nav::after {
    background-color: #e6e9ef;
}

.bg-projets, .bg-projets ul {
    background-color: #cccccc;
    color: #212121;
}


.bg-cv, .bg-cv ul {
    background-color: #212121;
    color: #fbf0e2;
}

.bg-contact, .bg-contact ul {
    background-color: #fbf0e2;
    color: #212121;
}

.bg-cv hr {
    border-bottom: 0.5px solid #fbf0e2;
}

.bg-presentation .nav, .bg-projets .nav, .bg-contact .nav {
    color: #212121;
}

.bg-cv .nav {
    color: #fbf0e2;
}

#messaccueil {
    position: fixed; /* fixé à l’écran, plus fort que absolute */
    top: 0;
    left: 0;
    z-index: -20;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#messaccueil * {
    pointer-events: none;
}

#presentation {
    background-color: #fbf0e2;
    position: relative;
    padding: 0;
}


.main {
    position: relative;
    z-index:1;
    margin-top: 100vh;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);

}

#messaccueil h1, .card-titre {
    letter-spacing: 2px;
    font-weight: bold;
}
#messaccueil h2 {
    font-weight: normal;
    color: #cccccc;
}
#messaccueil h1, .card-titre {
    color: #fbf0e2;
    font-family: 'Poppins', sans-serif;

}



.messaccueiltext {
    opacity: 0;
    font-size: 2rem;
    margin: 10px;
    transition: opacity 1s ease;
    letter-spacing: 2px;
}
.messaccueilorange {
    color: #ed4d37
}
.show {
    opacity: 1;
}

.card {
    width: 100%;
    height: 90vh;
    margin: auto;
    background-color: #212b44;
    text-align: center;
    display: flex;
    align-items: center;
    padding-bottom: 50px;




}

.photo {
    width: 100%;
    height: auto;
    margin: 0 auto;
    min-width: 200px;
}

.divphoto {
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    bottom: 0;
    right: 300px;
    z-index: 2;
}


.card-text-frame {
    background-color: rgba(204, 204, 204, 0.5);
    border-radius: 20px;
    width: 70vw;
    height: 40vh;
    padding: 100px 50px 100px 50px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-text {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-text h3 {
    font-size: 40px;
    font-family: "Nunito", sans-serif;
    font-weight: bold;
}

.card-text p {
    padding: 0 20px;
    font-size: 20px;
    font-family: "Nunito", sans-serif;
    font-weight: normal;
}

.arrow {
    color: #ed4d37;
    font-size: 40px;
}

#flecheaccueil {
    animation: fleche 2s ease-in-out infinite;
}



.nav {
    transition-duration: 0.5s;
    text-decoration: none;
    padding: 19px;
    margin: 10px;
    font-family: "Poppins", sans-serif;

}



#contact {
    width: 50%;
    margin-top: 100px;
}

.form-row {
    display: flex;
    justify-content: space-between;
}

#contact p {
    display: flex;
    justify-content: space-between;
}

.nom, .mail, .mess {
    background-color: #fbf0e2;
    border: 1px solid #212121;
    border-radius: 15px;
    padding: 15px;
    font-size: 15px;
    margin-bottom: 20px;
}

.nom, .mail {
    width: 45.5%;
}

.mess {
    width: 100%;             /* Le textarea prend toute la largeur */
    height: 100px;
    box-sizing: border-box;  /* S'assurer que le padding et la bordure sont inclus dans la largeur totale */

}

.svg {
    color: #ed4d37;
}

.svg:hover {
    color: red;
    transition-duration: .3s;
}

.grey {
    background-color: #f2f2f2;
}

.btnenvoyer {
    display: flex;
    justify-content: center;
}

.envoyer {
    box-sizing: border-box;
    width: 35%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background-color: #ed4d37;
    color: #fbf0e2;
    transition-duration: 0.3s;
    font-size: 20px;
}

.envoyer:hover {
    background-color: red;
    color: white;
    transition-duration: 0.5s;
    cursor: pointer;
}

.diffContact {
    margin: 25px 0;
}

.btnlinkedin, .btnmail {
    text-decoration: none;
    font-size: 50px;
}

.btnmail {
    margin-right: 50px;
}


/* Style de base */
.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;

}

.menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    z-index: 1000;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}




.blocContact {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.titre {
    display: flex;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0;
    padding: 50px 0;
    font-size: 30px;
}

.titresombre {
    color: #FBF0E2;
    display: flex;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0;
    padding: 50px 0;
    font-size: 30px;
}

.desc {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 20px;

}
.projets {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    margin:0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% + 40px));
    padding-bottom: 5%;

}

#projets {
    background-color: #cccccc;
}

.listeprojets {
    height: 420px; /* ou 250px si tu veux plus petit */
    width: 430px;
    margin: auto;
    display: flex;
    margin-bottom: 3%;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 40px 50px;
    border-radius: 20px;
    background-color: white;
    box-shadow: #212121 2px 2px 2px;
}

.listeprojets:hover {
    cursor: pointer;
}

.imgprojets {
    width: 100%;
    height: auto;
}

.listeprojets h3 {
    font-family: "Nunito", sans-serif;
    font-size: 25px;
}

.photocv {
    border: 1px solid dimgrey;
    width: 30%;
    height: auto;
    margin: 16px;
}

.cvcontent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.btncv {
    background-color: transparent;
    color: #ed4d37;
    padding: 7px 15px;
    border-radius: 10px;
    border: 1px solid #ed4d37;
    transition-duration: .3s;
    font-size: 20px;
}

.btncv:hover {
    color: #212121;
    background-color: #ed4d37;
    transition-duration: .3s;
    cursor: pointer;
}

.cv {
    background-color: #212121;
    padding: 100px 0 100px 0;
    clip-path: polygon(0 120px, 100% 0, 100% 100%, 0 100%);

}

.contact {
    background-color: #fbf0e2;
}




.savoirplus {
    color: #ed4d37;
    border: 1px solid #ed4d37;
    padding: 10px 30px;
    border-radius: 10px;
    font-size: 20px;
    text-decoration: none;
    background-color: white;
}

.listeprojets:hover .savoirplus {
    background-color: #ed4d37;
    color: #fbf0e2;
    transition-duration: .3s;
}

.retour {
    color: #e6e9ef;
}

.retour:hover {
    color: white;
}


.presprojet {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 20px;
    padding: 100px 0;
    clip-path: polygon(0 80px, 100% 0, 100% calc(100% - 80px), 0 100%);
}

.projetimg {
    width: 90%;
    height: auto;
    margin: 40px;
}

.projetimgvert {
    height: 90%;
    width: auto;
}

.projetvid {
    display: block;
    margin: auto;
}

.projetdivimg {
    width: 100%;
    display: flex;
    justify-content: center;
}

.projettxt {
    padding: 20px;
}

.imgcomp {
    height: 40px;
    width: auto;
}

.comps {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.comp{
    font-size: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 5;
    justify-content: center;
    align-items: center;
}


.overlay-content {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    width: 60%;
    color: #212121;
    position: relative;
    box-shadow: #000000 2px 2px 2px;
}

.btnclose {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background-color: transparent;
    font-size: 30px;
    color: #212121;
}

.btnclose:hover {
    color: black;
    cursor: pointer;
}

.video-wrapper {
    width: 60%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.overlay-content img {
    width: 60%;
    height: auto;
}

.overlay-noms {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.close-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.projnom {
    color: #ed4d37;
    font-size: 30px;
    font-family: "Poppins", sans-serif
}

.projtitre {
    color: #000000;
    font-family: "Nunito", sans-serif;
    margin-bottom: 10px;
    font-weight: bold;
}

.projet-desc {
    margin: 20px 40px 50px 40px;
    font-family: "Nunito", sans-serif;
    font-size: 20px;
    padding: 0 20px;
    text-align: center;
}



@media (max-width: 1200px) {
    .header {
        padding: 0 5%;
    }

    .photocv {
        width: 50%;
        height: auto;
    }

    .divphoto {
        right: 150px
    }

    .card-text {
        width: 80%;
    }

    #contact {
        width: 70%;
    }

    .video-wrapper, .overlay-content img {
        width: 70%;
    }



    .projet-desc {
        font-size: 16px;
    }
}

@media(max-width: 1024px) {
    .card-text-frame {
        padding-top: 120px;
    }

    .savoirplus {
        margin: 0;
    }

    .navnom {
        font-size: 24px;
    }

    #contact {
        width: 75%;
    }
}

/* Responsive : petit écran */
@media (max-width: 768px) {

    .photocv {
        width: 60%;
    }

    #contact {
        width: 85%;
    }

    header, header.scrolled {
        border: none;
    }



    #messaccueilh1 {
        font-size:30px;
        text-align: center;
    }
    #messaccueilh2 {
        font-size: 20px;
    }



    .menu {
        display: none;
        flex-direction: column;
        background-color: #fbf0e2;
        position: absolute;
        top: 20px;
        right: 10px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        margin: 20px;
    }

    .nav {
        width: 100%;
        color: white;
    }


    .navnom {
        font-size: 20px;
    }

    .menu.show {
        display: flex;
    }

    .hamburger {
        display: block;
        color: #212121;
    }

    .bg-cv .hamburger {
        color: #fbf0e2;
    }

    .divphoto {
        right: 100px;
    }

    .card-text {
        width: 90%;
    }

    .fleche {
        padding: 0;
    }

    .card-text-frame {
        height: 50vh;
        padding-top: 100px;
    }

    .cv {
        clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
    }

    .desc {
        width: 90%;
        margin: auto;
    }

    .projnom {
        font-size: 20px;
    }

    .projet-desc {
        margin: 0;
        margin-top: 20px;
    }

    .video-wrapper, .overlay-content img {
        width: 90%;
    }

    .desc {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    #presentation {
        min-height: 90vh;
        height: auto;
        max-width: 100vw;
    }


    .card-text h3 {
        font-size: 25px;
    }

    #messaccueilh1 {
        font-size: 20px;
        max-width: 100%;
    }

    .photocv {
        width: 70%;
    }

    .form-row {
        flex-direction: column;
    }

    .nom, .mail {
        width: 100%;
        box-sizing: border-box;
    }

    .card-text-frame {
        margin-right: 70px;
        margin-left: 20px;
        margin-top: 20px;
        margin-bottom: 50px;
        padding: 0;
        height: auto;
    }

    footer {
        padding: 0;
    }

    .overlay-content {
        width: 80%;
    }

    .titre, .titresombre {
        font-size: 25px;
    }

    .menu {
        margin-right: 10px;
    }

    .footer {
        font-size: 16px;
    }
}



/* Responsive : 1 projet par ligne */
@media (max-width: 480px) {
    .overlay-content {
        padding: 10px;
    }

    .projet-desc {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .card-text {
        margin: auto;
    }

    .card-text-frame {
        width: 100vw;
    }


    .decale {
        width: 70%;
        text-align: left;
    }

    .overlay-content {
        width: 80%;
    }
}

