/**
 * Connivence Opticiens website styles.
 * https://connivenceopticiens.fr/
 *
 * (cc) UneLemniscate — http://unelemniscate.com/
 *
 * This file is released under a Creative Commons Attribution 4.0 International license
 * https: //creativecommons.org/licenses/by/4.0/
 */

@font-face
{
    font-family: "Eyes regular";
    src: url("../font/italian-plate-regular.otf") format("opentype");
    font-style: normal;
}

body
{
    margin: 0;
    font-size: 18px;
    font-family: "Eyes regular", sans-serif;
    line-height: 24px;
}

h1
{
    display: none;
}

a
{
    color: #000502;
}

#map:hover,
a:hover
{
    opacity: 0.7;
}

/* #container
{
    background-color: green;
}

header,
main,
footer
{
    background-color: yellowgreen !important;
}

header > div
{
    background-color: orange;
}

header img, menu > ul > li, a.contact
{
    border: 1px solid red;
}

menu,
header .contact,
header .burger
{
    background-color: yellow;
} */

#container
{
    /*! min-width: 320px; */
}

header
{
    z-index: 100;
    position: fixed;
    background-color: rgb(255 255 255 / 90%);
    padding: 20px;
    top: 0;
    width: calc(100% - 40px);
    left: 0;
}

header .content
{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: auto;
    max-width: 1000px;
    justify-content: space-between;
}

header img.logo
{
    /*width: 573px;*/
    width: 220px;
    margin-top: 20px;
    cursor: pointer;
}

header div.contact
{
    display: none;
}

header div.contact a
{
    display: block;
    padding: 5px 10px;
    border: 1px solid gray;
}

header .burger
{
    width: 24px;
    height: 24px;
    background-image: url("../img/menu.svg");
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
}

menu a,
menu span,
header .contact a
{
    color: #000502;
    text-decoration: none;
}

menu
{
    list-style: none;
    padding: 0;
    display: none;
}

menu ul
{
    list-style: none;
    margin: 0;
    padding: 0;
}

menu > ul
{
    display: flex;
    flex-direction: row;
    position: relative;
    gap: 30px;
}

menu > ul > li
{
    white-space: nowrap;

    /* cursor: pointer; */
}

menu > ul > li:last-child
{
    display: none;
}

body.home main a,
body.home footer a,
menu > ul > li.home a:hover
{
    color: #ba5927 !important;
}

body.collections main a,
body.collections footer a,
menu > ul > li.collections.current > a,
menu > ul > li.collections.current > span,
menu > ul > li.collections a:hover,
menu > ul > li.collections span:hover,
menu > ul > li.collections a.current,
menu > ul > li.collections span.current
{
    color: #bba431 !important;
}

body.sportives main a,
body.sportives footer a,
menu > ul > li.sportives.current > a,
menu > ul > li.sportives.current > span,
menu > ul > li.sportives a:hover,
menu > ul > li.sportives span:hover,
menu > ul > li.sportives a.current,
menu > ul > li.sportives span.current
{
    color: #0d7b3e !important;
}

body.enfants main a,
body.enfants footer a,
menu > ul > li.enfants.current > a,
menu > ul > li.enfants.current > span,
menu > ul > li.enfants a:hover,
menu > ul > li.enfants span:hover,
menu > ul > li.enfants a.current,
menu > ul > li.enfants span.current
{
    color: #0f5776 !important;
}

body.atelier main a,
body.atelier footer a,
menu > ul > li.atelier.current > a,
menu > ul > li.atelier.current > span,
menu > ul > li.atelier a:hover,
menu > ul > li.atelier span:hover,
menu > ul > li.atelier a.current,
menu > ul > li.atelier span.current
{
    color: #f2ab1d !important;
}

menu > ul ul
{
    display: none;
    position: absolute;
    background-color: rgb(255 255 255 / 80%);
    padding: 10px;
}

menu.overlay
{
    display: block !important;
    z-index: 100px;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: -20px;
    padding: 20px;
    background-color: white;
    overflow-y: scroll;
}

menu.overlay > ul
{
    flex-direction: column;
    gap: 20px;
}

menu.overlay > ul ul
{
    display: inherit;
    position: relative;
    padding: 10px;
}

menu.overlay > ul > li:last-child
{
    display: inherit;
}

main
{
    margin: 150px auto;
}

main .content,
footer
{
    margin: 20px;
}

main img.header
{
    width: 100%;
}

main img
{
    max-width: 100%;
}

main div.align
{
    display: flex;
    margin-bottom: 0 !important;
}

main figure
{
    position: relative;
    margin: 0;
}

main figure img
{
    position: relative;
}

main figure figcaption,
main figure a figcaption
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 5px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
}

main figure figcaption span
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 80%;
    white-space: nowrap;
}

main figure figcaption:hover
{
    opacity: 1.0;
}

form div
{
    display: flex;
}

form .info
{
    flex-direction: column;
    gap: 4px;
}

form textarea
{
    margin: 20px 0;
    width: 100%;
    height: 200px;
}

form .submit
{
    justify-content: end;
}

form input
{
    border: 1px solid gray;
    background-color: transparent;
    padding: 2px 4px;
    border-radius: 2px;
}

footer
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

code
{
    padding: 1px 4px;
    font-size: 80%;
    background: lightgray;
}

pre code
{
    padding: 0;
    background: none;
}

pre
{
    padding: 20px;
    color: #f8f8f2;
    background: #222;
    white-space: pre;
    font-family: "Fira Mono", Monaco, "Andale Mono", "Ubuntu Mono", monospace;
}

#address
{
    flex-grow: 1;
    order: 2;
}

#address p:first-child
{
    margin-top: 0;
}

#address p:last-child
{
    margin-bottom: 0;
}

#address span
{
    display: block;
}

#map
{
    flex-grow: 1;
    min-width: 280px;
    min-height: 140px;
    order: 3;

    cursor: pointer;

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url('../img/map.png');
    background-image:
        -webkit-image-set(
            url('../img/map.png') 1x,
            url('../img/map@2x.png') 2x,
            url('../img/map@3x.png') 3x
        );
}

#socialnetwork
{
    order: 1;
    margin-top: 3px;
}

@media screen and (min-width: 620px)
{
    #address { flex-grow: unset; }
    #map { order: unset; }
}

#socialnetwork a
{
    display: inline-block;
    width: 24px;
    height: 24px;
    overflow: hidden;
    text-indent: 30px;
    cursor: pointer;
}

#socialnetwork a.instagram
{
    background-image: url("../img/instagram.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

@media screen and (min-width: 800px)
{
    #container
    {
        margin: auto;
        width: 800px;
        padding-bottom: 20px;
    }

    menu,
    header div.contact
    {
        display: inherit;
    }

    header .burger
    {
        display: none;
    }

    main .content,
    footer
    {
        margin: auto;
    }

    form .info
    {
        flex-direction: row;
        justify-content: space-between;
    }

    main figure figcaption span
    {
        font-size: 120%;
    }
}
