/* ===========================================
   RESPONSIVE.CSS
   Mobile First
   =========================================== */

/* Tablettes */
@media screen and (max-width: 1024px) {

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1.2rem;
    }

    .discover-view {
        flex-direction: column;
        text-align: center;
        margin: 5%;
        gap: 30px;
    }

    .image-container {
        width: 100%;
        max-width: 500px;
    }

    .discover-view .text-container {
        width: 100%;
    }

    #contact-form {
        margin: 3% 15%;
    }
}

/* Smartphones */
@media screen and (max-width: 768px) {

    /* Navigation */

    .nav-bar {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .nav-link {
        flex-direction: column;
        gap: 15px;
        padding-right: 0;
        align-items: center;
    }

    .nav-link li a {
        font-size: 1.3rem;
    }

    /* Titres */

    h1 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1.1rem;
    }

    /* Sections */

    .presentation,
    .title {
        padding: 20px;
    }

    .discover-view {
        flex-direction: column;
        margin: 30px 20px;
        gap: 30px;
    }

    .text-container {
        text-align: center;
    }

    .discover-view div.text-container .button {
        margin-top: 20px;
    }

    .image-container {
        width: 100%;
        max-width: 100%;
    }

    /* Présentation */

    #explain-who-i-am {
        margin: 20px;
    }

    #explain-who-i-am p {
        text-align: left;
    }

    /* Formulaire */

    #contact-form {
        margin: 20px;
    }

    input,
    textarea,
    button {
        width: 100%;
        box-sizing: border-box;
    }

    /* Footer */

    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }

    .footer-link {
        flex-direction: column;
        gap: 15px;
        padding-right: 0;
    }
}

/* Très petits smartphones */

@media screen and (max-width: 480px) {

    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .button {
        width: 100%;
        text-align: center;
        padding: 15px;
        display: inline-block;
        box-sizing: border-box;
    }

    .nav-link li a {
        font-size: 1.1rem;
    }
}