@media screen and (max-width: 900px) {

    body {
        margin: auto;
    }

    main {
        background-size: 90%;
    }

    .titre video {
        height: 100vh;
    }

    .titrebox {
        margin-left: 5px;
        margin-right: 5px;
    }

    .grille {
        display: grid;
        width: 100vw;
        margin: 0;
        grid-template-columns: repeat(6, 1fr);
    }

    #logo {
        width: 350px;
    }

    .photo {
        grid-column: 1 / 7;
        grid-row: 1 / 2;
        justify-self: center;
        margin-top: 10px;
        padding-top: 50px;
    }

    .photo img,
    body.dark .photo img {
        width: 280px;
    }

    .presentation {
        grid-column: 1 / 7;
        grid-row: 2 / 3;
        margin-left: 0px;
        padding: 22px;
        text-align: justify;
    }

    .download {
        justify-self: center;
    }

    .titre_presentation {
        text-align: center;
        margin-top: -25px;
    }

    .titre_exp_pro {
        grid-column: 1 / 7;
        grid-row: 3 / 4;
        text-align: center;
        margin-top: 150px;
    }

    .logo_cap {
        grid-column: 2 / 6;
        grid-row: 4 / 5;
        margin-top: 40px;
        margin-bottom: -20px;
    }

    .exp_cap {
        grid-column: 1 / 7;
        grid-row: 5 / 6;
        text-align: center;
        padding: 22px;
        margin-top: -50px;
    }

    .exp_cap p {
        text-align: justify;
    }

    .logo_GD {
        grid-column: 2 / 6;
        grid-row: 6 / 7;

    }

    .exp_degaud {
        grid-column: 1 / 7;
        grid-row: 7 / 8;
        text-align: center;
        padding: 22px;
        margin-top: -70px;
    }


    .exp_degaud p {
        text-align: justify;
    }

    .titre_formation {
        grid-column: 1 / 7;
        grid-row: 8 / 9;
        margin-top: 40px;
        margin-bottom: 30px;
        text-align: center;
    }

    .BTS {
        grid-column: 1 / 7;
        grid-row: 10 / 11;
        text-align: center;
        margin-top: -30px;
        margin-bottom: 50px;
    }

    .logo_Argouges {
        grid-column: 2 / 6;
        grid-row: 9 / 10;
        margin-top: 30px;
    }

    .BAC {
        grid-column: 1 / 7;
        grid-row: 12 / 13;
        text-align: center;
        margin-top: -30px;
        margin-bottom: 50px;
    }

    .logo_BAC {
        grid-column: 2 / 6;
        grid-row: 11 / 12;
        padding-left: 19vw;
        padding-right: 19vw;
    }

    .competences {
        grid-column: 1 / 7;
        grid-row: 13 / 14;
        margin-top: 30px;
    }

    .adobe_txt {
        grid-column: 1 / 7;
        grid-row: 14 / 15;
        justify-self: center;
        margin-top: 20px;
        margin-bottom: -20px;
    }

    .grille_logo_Adobe {
        grid-column: 1 / 7;
        grid-row: 15 / 16;
        margin-left: 20px;
        margin-right: 20px;
    }

    .machines_txt {
        grid-column: 1 / 7;
        grid-row: 16 / 17;
        justify-self: center;
        margin-top: 10px;
        margin-bottom: -20px;
    }

    .grille_machines {
        grid-column: 1 / 7;
        grid-row: 17 / 18;
    }

    .dev_txt {
        grid-column: 1 / 7;
        grid-row: 18 / 19;
        justify-self: center;
        margin-top: 10px;
        margin-bottom: -20px;
    }

    .grille_dev {
        grid-column: 1 / 7;
        grid-row: 19 / 20;
        margin-left: 25px;
        margin-right: 25px;
    }

    .portfolio {
        grid-column: 1 / 7;
        grid-row: 20 / 21;
    }

    .gallerie {
        margin-top: 20px;
        justify-items: center;
        grid-column: 1 / 7;
        grid-row: 21 / 22;
        width: 100%;
        grid-template-columns: repeat(auto-fill, 170px);
        gap: 5px;
    }

    .gallerie_items {
        width: 170px;
        height: 170px;
    }

    .formulaire {
        margin-top: 35px;
        width: 320px;
    }

    .contact_box iframe {
        width: 100vw;
        height: 250px;
    }

    .contact {
        grid-column: 1 / 7;
        grid-row: 22 / 23;
    }

    .slogan_contact {
        grid-column: 1/7;
        grid-row: 23/24;
    }

    .contact_box {
        grid-column: 1 / 7;
        grid-row: 24 / 25;
    }

    .contact_phone {
        padding: 0px;
    }

    .formulaire {
        margin-bottom: 35px;
        width: 90vw;
        margin-inline: 0px;
        padding-left: 0
    }

    h1 {
        font-size: 7em;
    }

    h2 {
        font-size: 2em;
    }

    p {
        line-height: 1.5rem;
    }

    .btn-toggle {
        top: 100vh;
        left: 0px;
        width: 50px;
        height: 50px;
        padding: 20px;
    }

}