﻿/*Configuration standard des formulaires*/
:focus{outline: none;}

.divField {
    position: relative;
    margin-top: 20px;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .divField {
        width: 100%;
    }
}

.divField50p {
    width: 50%;
}

@media (max-width: 768px) {
    .divField50p {
        width: 100%;
    }
}

.field {
    color: #333 !important; 
    letter-spacing: 1px;
    width: 100%;
    z-index: 999;
    border: 0;
    padding: 4px 0;
    border-bottom: 1px solid #ccc;
    background-color: rgb(235, 235, 255) !important;
}

@media (max-width: 768px) {
    .field {
        font-size: 1.5rem;
    }
}

.field ~ .fieldFocusBorder {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: dodgerblue;
    transition: 0.4s;
}

.field:focus ~ .fieldFocusBorder {
    width: 100%;
}

.field ~ label {
    position: absolute;
    left: 0;
    top: 0px;
    font-size: 1rem;
    color: #aaa;
    transition: 0.4s;
    z-index: 998;
}

@media (max-width: 768px) {
    .field ~ label {
        font-size: 1.5rem;
    }
}

.field:focus ~ label, .field:not(:placeholder-shown) ~ label {
    top: -16px;
    font-size: 0.8rem;
    color: dodgerblue;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .field:focus ~ label, .field:not(:placeholder-shown) ~ label {
        top: -20px;
        font-size: 1rem;
    }
}

textarea {
    resize: none;
}

.formButton {
    background-color: dodgerblue;
    color: white;
    height: 2rem;
    line-height: 2rem;
}

    .formButton:hover {
        background-color: #0060c3;
        color: white;
    }