@font-face {
    font-family: 'TT';
    src: url('../font/Ubuntu-Regular.ttf');
}

* {
    margin: 0;
    padding: 0;
    font-family: 'TT';
    overflow-x: initial;
    color: #12263A;
    font-weight: bolder;
    line-height: 1.4em;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

body {
    background-image: url('../media/fonddemandedevis.png');
    background-repeat: repeat-y;
}

.image_back {
    position: absolute;
    margin-top: 10em;
    z-index: -1;
}

.table {
    margin-top: 20em;
    display: flex;
    flex-direction: column;
    background-color: rgba(249, 204, 160, 0.678);
    padding: 3em;
    border-radius: 0.938em;
    gap: 3em;
    margin-bottom: 5em;
}

.title h4 {
    opacity: 70%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 3em;
}

.form h2 {
    background-color: rgb(211, 138, 82);
    padding: 0.6em;
    border-radius: 0.8em;
}

.coordonnee {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.coordonnee tr {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 10em;
    padding-right: 10em;
    padding-bottom: 0.8em;
}

input {
    border-radius: 0.25em;
    border-color: transparent;
}

#last-name {
    margin-left: 5em;
}

#mail {
    margin-left: 0.6em;
}

#address {
    margin-left: 3.1em;
}

#city {
    margin-left: 5em;
}

.code_post {
    margin-right: 1.05em;
}

.first-name {
    margin-right: 3.8em;
}

.tel {
    margin-right: 2.7em;
}

.projet tr {
    display: flex;
    flex-direction: row;
    padding-left: 3em;
    padding-right: 3em;
    padding-bottom: 0.8em;
}

.type,
.nature,
#surface,
.terrain,
.permis,
.plan,
.date,
.chantier {
    margin-left: 6em;
}

.type {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 30em;
}

.plan {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 35em;
}

.nature label {
    margin-right: 2em;
}

#postal {
    margin-left: 1em;
}

.ville span {
    margin-right: 3em;
    line-height: 2em;
}

.zipcode {
    margin-left: 0em;
}

textarea {
    resize: none;
}

.nature, .terrain, .permis{
    display:flex;
    flex-direction: row;
}

.terrain #terrain2, .permis #permis2{
    margin-left: 2em;
}

.submit {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.submit tr {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#send,
#clear {
    width: 120%;
    box-shadow: 0.063em 0.063em 0.125em black;
}

input[type="checkbox"],
input[type="radio"],
#send:hover,
#clear:hover {
    cursor: pointer;
}

#send:hover,
#clear:hover {
    background-color: rgb(214, 214, 214);
}

#clear, #send{
    width: 10em;
}

#send{
    margin-left: 10em;
}


@media only screen and (max-width: 37.5em) {
    .table {
        margin-top: 8em;
        padding-top: 3em;
        padding-bottom: 3em;
        padding-left: 0;
        padding-right: 0;
        width: 27em;
    }

    * {
        font-size: small;
        text-align: center;
    }

    .coordonnee tr {
        display: flex;
        flex-direction: column;
        gap: 0.8em;
        padding-left: 3em;
        padding-right: 0;
    }

    .coordonnee tr td {
        display: flex;
        flex-direction: row;
    }

    #last-name {
        margin-left: 5.15em;
    }

    #mail {
        margin-left: 1.6em;
    }

    #address {
        margin-left: 3.8em;
    }

    #city {
        margin-left: 5.5em;
    }

    .type,
    .nature,
    .projet #city {
        margin-left: 0;
    }

    #surface,
    .terrain,
    .permis,
    .plan,
    .date,
    .chantier {
        margin-left: 1em;
    }

    .type {
        width: 18em;
    }

    .projet tr {
        padding: 1em;
    }

    .ville {
        display: flex;
        flex-direction: column;
    }

    .nature,
    .plan,
    .permis {
        display: flex;
        flex-direction: column;
    }

    .nature {
        margin-left: 2em;
    }

    .nature #nature1 {
        margin-left: 1.5em;
    }

    .nature #nature3 {
        margin-left: 0.4em;
    }

    .nature #nature4 {
        margin-left: 0.3em;
    }

    .nature #nature5 {
        margin-left: 1em;
    }

    .plan {
        width: 15em;
    }

    .permis input {
        margin-left: -0.4em;
    }

    .plan #plan1 {
        margin-left: 2.45em;
    }

    .plan #plan2 {
        margin-left: 1.6em;
    }

    .zipcode {
        margin-left: 0;
    }

    .chantier,
    .ville #city,
    .ville #postal,
    #surface {
        width: 8em;
    }

    textarea {
        margin-left: 2em;
        margin-right: 2em;
    }

    #clear,
    #send {
        width: 8em;
    }

    .submit tr {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    #clear {
        margin-right: 0;
        margin-left: 0;
    }

    #send {
        margin-left: 3em;
    }

    .form h2{
        border-radius: 0em;
    }
}