/* ---------------Navbar--------------- */

@media screen and (max-width: 1200px) {

    .navbar .menu-hamburger {
        display: block;
        cursor: pointer;
    }

    .nav-links {
        top: 0;
        left: 0;
        position: absolute;
        background-color: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(8px);
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -100%;
        transition: all 0.5s ease;
    }

    .nav-links.mobile-menu {
        margin-left: 0;
    }

    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .navbar .nav-links ul li {
        margin: 25px 0;
        font-size: 1.2em;
    }
    .navbar .nav-links ul li a {
        color: black;
    }

    section#contact .container form {
        flex-direction: column;
        width: 95%;
    }
}

/* ---------------presentation--------------- */

@media screen and (max-width: 920px) {

    section#presentation {
        padding: 5px;
    }

    section#presentation h1 {
        font-size: 45px;
        margin-top: 20vh;
    }

    section#presentation h2 {
        font-size: 50px;
    }

    section#presentation p {
        font-size: 20px;
        margin-top: 3vh;
    }

    section#presentation button {
        width: 150px;
        height: 40px;
        font-size: 16px;
        margin-top: 5vh;
    }

    section#presentation .switch {
        display: flex;
        margin-top: 2vh;
        margin-left: auto;
        margin-right: auto;

    }
}

/* ---------------Veille technologique--------------- */

@media screen and (max-width: 920px) {

    section#veille {
        padding: 100px 20px 200px;
    }

    section#veille .article-azure {
        padding: 0;
        width: 100%;
        flex-direction: column;
    }

    section#veille .colonne {
        padding: 20px;
        margin: auto;
    }

    section#veille .logo-azure {
        max-width: 80px;
    }

    section#veille .logo-azure2 {
        max-width: 80%;
        margin-bottom: 7vh;
    }

    section#veille .image-article {
        max-width: 80%;
        margin: 20px auto;
        border-radius: 5px;
    }

    section#veille .decouverte h3,
    section#veille .histoire h3,
    section#veille .utilite h3,
    section#veille .fonctionnalites h3,
    section#veille .avantages h3,
    section#veille .inconvenients h3,
    section#veille .conclusion h3,
    section#veille .sources h3 {
        font-size: 1.5em;
    }

    section#veille .decouverte p,
    section#veille .histoire p,
    section#veille .utilite p,
    section#veille .fonctionnalites ul,
    section#veille .avantages ul,
    section#veille .inconvenients ul,
    section#veille .conclusion p,
    section#veille .sources ul {
        font-size: 1em;
        margin: 20px 0;
    }

    section#veille .fonctionnalites li,
    section#veille .avantages li,
    section#veille .inconvenients li {
        padding-block: 1vh;
    }
}

/* ---------------À PROPOS--------------- */

@media screen and (max-width: 1024px) {

    section#propos {
        height: 100%;
        padding: 5vh 2vh 10vh;
    }

    section#propos h2 {
        margin-top: 10vh;
    }

    section#propos .conteneur {
        padding-top: 0;
        padding-bottom: 0;
        align-items: center;
        flex-direction: column;
    }

    section#propos .portrait {
        opacity: 1;
        padding: 0 0 0 25px;
        width: 100%;
        transform: translateY(50px);
        transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    }

    section#propos .element {
        opacity: 1;
        width: 100%;
        margin: 5vh 30px;
    }

    section#propos h3 {
        color: white;
        font-size: 2.5em;
        text-align: center;
    }

    section#propos p {
        padding: 20px 10px 0;
        color: white;
        font-size: 1.3em;
        text-align: justify;
        font-family: sans-serif;
    }

    section#propos img {
        width: 30%;
    }

    section#propos .bouton_cv button {
        border-radius: 10px;
    }
}

/* ---------------Parcours--------------- */

@media screen and (max-width: 920px) {

    section#parcours {
        height: 100%;
        padding: 10px 20px 100px;
    }

    section#parcours h2 {
        margin-top: 10vh;
    }

    section#parcours .conteneur {
        opacity: 1;
        margin: 0;
        padding-bottom: 0;
        flex-direction: column;
    }

    section#parcours .colonne h3 {
        font-size: 1.5em;
    }
}

/* ---------------Projets--------------- */

@media screen and (max-width: 920px) {

    section#projet{
        padding: 5vh 2vh 10vh;
    }

    section#projet .cards {
        grid-gap: 20px;
        flex-direction: column;
        margin: 5vh auto 0;
        grid-template-columns: repeat(2, 1fr);
    }

    section#projet .card-background {
        border-radius: 15px;
    }

    section#projet .card-content {
        padding: 15px;
        position: absolute;
        font-family: arial, sans-serif;
    }

    section#projet .card-content p {
        color: rgba(255, 255, 255, .6);
        font-size: .6rem;
        margin-bottom: 10px;
        text-transform: uppercase;
    }

    section#projet .card-content h3 {
        color: rgba(255, 255, 255, .9);
        font-size: 1.2rem;
        text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
    }
}

/* ---------------Page projet.html--------------- */


@media screen and (max-width: 920px) {

    section#page_projet {
        color: white;
        height: 100%;
        width: 100%;
        position: relative;
        box-sizing: border-box;
        background-size: cover;
        padding: 10vh 3vh;
        font-family: sans-serif;
    }

    section#page_projet .conteneur {
        gap: 50px;
        display: flex;
        padding: 5vh 0 10vh;
        flex-direction: column;
        justify-content: space-around;
    }

    section#page_projet h2 {
        z-index: 2;
        opacity: 0;
        font-size: 2.5em;
        margin-top: 5vh;
        text-align: center;
        position: relative;
        animation:showcontent 1s ease-in-out 1 forwards
    }

    section#page_projet h3 {
        z-index: 2;
        opacity: 0;
        color: #fadf99;
        font-size: 1.5em;
        position: relative;
        animation:showcontent 1s ease-in-out 1 forwards
    }

    section#page_projet p {
        z-index: 2;
        opacity: 0;
        font-size: 1em;
        position: relative;
        animation:showcontent 1s ease-in-out 1 forwards
    }

    section#page_projet a {
        z-index: 2;
        opacity: 0;
        color: #fadf99;
        font-size: 1em;
        position: relative;
        animation:showcontent 1s ease-in-out 1 forwards
    }

    section#page_projet .item button {
        opacity: 0;
        border: none;
        padding: 10px 20px;
        animation:showcontent 1s ease-in-out 0.9s 1 forwards
    }

    .slideshow{
        display: flex;
    }

    .photo-slider{
        width: 350px;
        height: 200px;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
    }

    .photo-slides{
        width: 500%;
        height: 500px;
        display: flex;
    }

    .photo-slides input{
        display: none;
    }

    .slide{
        width: 20%;
        transition: 2s;
    }

    .slide img{
        width: 350px;
        height: 200px;
    }

    .navigation-manual{
        position: absolute;
        width: 800px;
        margin-top: -40px;
        display: flex;
        justify-content: center;
    }

    .manual-btn{
        border: 2px solid grey;
        padding: 5px;
        border-radius: 10px;
        cursor: pointer;
        transition: 1.5s;
    }

    .manual-btn:not(:last-child){
        margin-right: 40px;
    }

    .manual-btn:hover{
        background: white;
    }

    #radio1:checked ~ .first{
        margin-left: 0;
    }

    #radio2:checked ~ .first{
        margin-left: -20%;
    }

    #radio3:checked ~ .first{
        margin-left: -40%;
    }

    #radio4:checked ~ .first{
        margin-left: -60%;
    }

    .navigation-auto{
        position: absolute;
        display: flex;
        width: 800px;
        justify-content: center;
        margin-top: 460px;
    }

    .navigation-auto div{
        border: 2px solid #eeeeee;
        padding: 5px;
        border-radius: 10px;
        transition: 1.5s;
    }
}

/* ---------------Compétences--------------- */

@media screen and (max-width: 920px) {

    section#competences {
        padding: 5vh 2vh 10vh;
    }

    section#competences h2 {
        margin-top: 5vh;
        font-size: 2.5em;
    }

    section#competences .conteneur {
        gap: 50px;
        padding: 0;
        margin-top: 0;
        align-items: center;
        flex-direction: column;
    }

    section#competences .element-competences,
    section#competences .element-logiciels{
        opacity: 1;
        width: 100%;
        height: auto;
    }

    section#competences .element-competences .bulle,
    section#competences .element-logiciels .bulle {
        width: 70px;
        height: 70px;
        margin: 0 auto 30px;
    }

    section#competences .logiciel-images {
        gap: 10px;
        padding: 0 20px 30px;
    }

    section#competences .logiciel-images img {
        width: 50px;
        height: 50px;
    }

    section#competences .bouton_synthèse {
        margin: 5vh;
    }
}

/* ---------------Contact--------------- */

@media screen and (max-width: 920px) {

    section#contact {
        height: 100%;
        padding: 80px 30px 150px;
    }

    section#contact .conteneur {
        opacity: 1;
        margin: 0;
        padding: 30px 30px 30px;
    }

    section#contact .conteneur .title h2 {
        font-size: 2em;
    }

    section#contact .conteneur form {
        width: 100%;
        flex-direction: column;
    }

    section#contact .conteneur form input {
        width: 100%;
        margin: 20px 0;
    }

    section#contact .conteneur textarea {
        height: 150px;
        margin-top: 30px;
        margin-bottom: 50px;
    }
}

/* ---------------Mentions légales--------------- */


@media screen and (max-width: 920px) {
    section#mentions-legales{
        padding: 10vh 3vh 15vh;
    }

    section#mentions-legales h2{
        font-family: sans-serif;
        text-align: center;
        margin-top: 2vh;
        font-size: 3em;
        color: #c4b692;
    }

    section#mentions-legales .conteneur {
        padding: 0;
    }

    section#mentions-legales h3{
        margin-top: 5vh;
        font-size: 1.5em;
        color: #c4b692;
        margin-bottom: 5vh;
    }

    section#mentions-legales p{
        margin-top: 10px;
        font-size: 0.9em;
    }

    section#mentions-legales a{
        color: #c4b692;
    }

    section#mentions-legales .custom-link {
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    section#mentions-legales .custom-link:hover {
        color: #797158;
        transition: 1s;
        position: relative;
    }
}

/* ---------------Footer--------------- */

@media screen and (max-width: 920px) {

    footer {
        padding: 0;
        text-align: center;
    }

    footer p {
        text-align: center;
        padding-bottom: 20px;
    }

    .row{
        padding: 20px;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        flex-direction: column;
    }
}