html {
    max-height: 100vh;
    max-width: 100vw;
    margin: 0;
    color: #039;
    text-align: center;
    font-family: Candara;
    overflow: hidden;
    background-color: #14007d
}

body {
    position: absolute;
    height: 100%;
    width: 100%;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    margin: 0
}

#page {
    box-shadow: 0 3px 5px #183a4a, 0 -3px 5px #183a4a, -3px 0 5px #183a4a, 3px 0 5px #183a4a;
    min-height: 650px;
    min-width: 650px;
    width: 90%;
    height: 90%;
    z-index: 4;
    background-image: linear-gradient(#52c8ef, #3ea2cd)
}

header {
    border-bottom-right-radius: 100%;
    border-bottom-left-radius: 100%;
    background-image: linear-gradient(#52bcdf, #56c2f0);
    box-shadow: 0 3px 20px #428fb0;
    height: 30%;
    width: 100%
}

header img {
    margin: 0 2%;
    max-height: 100%;
    max-width: 40%
}

#navbar {
    position: relative;
    top: 0;
    left: 20px;
    height: 100%;
    width: 200px;
    display: grid;
    text-align: left;
    padding-left: 10px;
    font-size: 2em;
}

.content_page {
    align-items: center;
    position: relative;
    height: 100%;
    width: 100%;
}

#navbar a {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    z-index: 2;
    text-decoration: none;
    text-shadow: -1px 1px white;
}

.star {
    transition-duration: 500ms;
    position: relative;
    top: 12px;
    left: 16px;
    width: 1px;
    height: 1px;
    background-color: white;
    border-radius: 100%;
    box-shadow: 0 0 6px 6px white;
    opacity: 0.5;
}

#navbar a:hover > .circle > .star {
    background-color: yellow;
    box-shadow: 0 0 6px 6px yellow;
}

#navbar a:hover > .circle {
    transform: scale(1.3);
}

.circle {
    margin: 0;
    margin-bottom: 5%;
    transition-duration: 500ms;
    height: 40px;
    width: 40px;
    background-color: #008ac6;
    border-radius: 100%;
    z-index: 1;
}

.special {
    background-color: #0072c6;
}

.circle p {
    color: #039;
    margin: 0 20px;
    top: -10px;
    font-style: italic;
}

main {
    display: flex;
    height: 70%;
}

#content {
    margin: 0 auto;
    height: 90%;
    width: 70%;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    align-self: center;
}

input[type=button], input[type=submit] {
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    background-color: #52c8ef;
    border: 2px solid #039;
    cursor: pointer;
}

input[type=button][disabled=disabled], input[type=submit][disabled=disabled] {
    background-color: #3db1d7;
    cursor: not-allowed;
    border-color: #057b96;
}

input[type=button]:hover, input[type=submit]:hover {
    transform: scale(1.1);
}

.backpage {
    position: absolute;
    min-height: 600px;
    min-width: 600px;
    width: 90%;
    height: 90%;
    top: 50%;
    left: 50%;
    z-index: 1;
    overflow: hidden;
    overflow: -moz-scrollbars-none;
    overflow: -moz-hidden-unscrollable;
    clear: both;
    float: top;
    zoom: 1;
    background-color: #40ABCE
}

.backfirst {
    z-index: 3;
    transform: translate(-50%, -50%) rotate(-10deg);
    opacity: 0.7;
}

.backsecond {
    z-index: 2;
    animation: 6000ms infinite linear swing;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.backthird {
    z-index: 1;
    animation: 4451ms infinite linear swing;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

#logo {
    animation: 20s infinite linear logo;
}

@keyframes swing {
    0% {transform: translate(-50%, -50%) rotate(-9deg);}
    50% {transform: translate(-50%, -50%) rotate(-2deg);}
    100% {transform: translate(-50%, -50%) rotate(-9deg);}
}

@keyframes logo {
    0% {transform: rotate(0deg);}
    46% {transform: rotate(0deg);}
    54% {transform: rotate(360deg);}
    100% {transform: rotate(360deg);}
}

@media (max-width: 1000px) {
    #content {
        width: 50%;
    }
    .backpage {
        display: none;
    }
    #page {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100%;
        min-width: 650px;
        min-height: 650px;
    }
}

@media (min-width: 1001px) {
    #welcome_page {
        font-size: 1.5em;
    }
}

#contact_panel {
    display: inline-flex;
}

#osmmap {
    width: 300px;
    height: 300px;
}

@media (max-width: 650px) {
    html {
        overflow-x: auto;
    }
}
@media (max-height: 650px) {
    html {
        overflow-y: auto;
    }
}

@media (max-width: 850px) and (max-height: 850px) {
    #osmmap {
        display: none;
    }
}

.elem {
    margin: 5px auto;
    width: 50%;
    justify-self: center;
}

.elem p {
    float: left;
    margin: 0;
}

#content h2 {
    height: 10%;
    margin: 0;
}

#content_panel {
    justify-content: center;
}

#contact_page {
    justify-content: center;
}

#navbar_mobile_other, #navbar_mobile {
    display: none;
}

#contact_text {
    width: 300px;
}

@media (max-width: 700px) and (min-height: 400px) {
    /* 1536*606 + 699*1087 + 699*1139 */
    #osmmap {
        width: 100%;
    }
    #navbar {
        display: none;
    }
    #navbar_mobile {
        margin-top: 20px;
        display: grid;
        width: 100%;
        height: 7%;
        grid-template-areas: "a b c d e";
        align-content: center;
        justify-content: center;
        grid-template-columns: 20% 20% 20% 20% 20%;
    }
    #navbar_mobile a {
        background-color: #d9d9d9;
        width: 100%;
        border: 2px solid #b9b9b9;
        overflow: hidden;
        display: grid;
        justify-content: center;
        align-content: center;
        font-size: 1.5em;
    }
    #navbar_mobile:only-child {
        height: 50%;
    }
    #navbar_mobile_other {
        display: flex;
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 6.5%;
        left: 0;
    }
    #navbar_mobile_other div {
        transform: scale(1.5);
    }
    #welcome_page, #vitrines_page, #enseignes_page, #panneaux_page, #calicots_page, #vehicules_page, #contact_page {
        top: 0%;
    }
    #contact_page {
        top: -5%;
    }
    #contact_text {
        width: 500px;
        font-size: 1.25em;
    }
    #osmmap {
        height: 250px;
    }
    #content {
        position: absolute;
        top: 32%;
        left: 0;
        width: 100%;
        height: 62%;
        font-size: 1.2em;
    }
    .content_page {
        height: 90%;
    }
    #content h2 {
        display: none;
    }
    #contact_page div p {
        font-size: 1.3em;
    }
    .elem {
        width: 70%;
    }
    #content h2 {
        height: 5%;!important;
        font-size: 1.7em;
    }
    .circle {
        font-size: 2em;
    }
    .circle div {
        background-color: grey;
    }
    .circle p {
        margin-left: 50%;
    }
    #welcome_page {
        font-size: 1.5em;
    }
    header {
        height: 25%;
    }
    .carouselSlide {
        height: 90%;
    }
    .carouselGallery {
        height: 80%;
    }
    .carouselSlide img:hover {
        transform: scale(1.1);
    }
    .arrow {
        top: 78.5%;
    }
}

#cpville {
    display: flex;
    display: -ms-flexbox;
}

@media (max-width: 700px) {
    #contact_panel {
        display: grid;
        justify-content: center;
    }
}

input[type=text], input[type=tel], input[type=mail]{
    border: none;
    background: #52c8ef;
    color: #333;
    width: 100%;
    transition-duration: 500ms;
    padding: 5px;
    font-size: 1em;
}

input[type=text]:focus, input[type=tel]:focus, input[type=mail]:focus {
    color: black;
}

a {
    color: #039;
    text-decoration: none;
}