/**
 * Theme Name: Écho-Émues Theme
 * Theme URI: 
 * Description: WordPress theme for the <a href="https://echo-emues.net/">Écho-Émues</a> project.
 * Version: 0.1
 * Author: ubaa.stef
 * Author URI: http://www.ubaa.net/
 *
 * This theme is licensed under a Creative Commons Attribution License
 * https://creativecommons.org/licenses/by/4.0/
 *
 * Johnston100 W03 fonts by Monotype Design Studio, made from Web Fonts
 * https://www.onlinewebfonts.com/author/Monotype_Design_Studio 
 */


@import url(https://db.onlinewebfonts.com/c/56d537a6559d9eab06614b7eb602f8ee?family=Johnston100+W03+Light);
@import url(https://db.onlinewebfonts.com/c/64cbcfab8dec39bffac54489e17eddd7?family=Johnston100+W03+Medium);
@import url(https://db.onlinewebfonts.com/c/6f9f13ce8ac6971d7c1c21ca9189f7d0?family=Johnston100+W03+Regular);
@import url(https://db.onlinewebfonts.com/c/35eef2014c070b23f7ce094666243fc5?family=Johnston100+W03+Hairline);


/* html, body
{
    height: 100%;
} */
:root
{
    --margin: 70px;
}

body
{
    color :#242424;
    background-color: whitesmoke;
    margin: var(--margin) 0;
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; */
    font-family: "Johnston100 W03 Light", sans-serif;
    font-size: 14px;

    /* https://www.cssportal.com/css-pattern-generator/ */
    /* background: radial-gradient(circle, transparent 20%, #F5F5F5 20%, #F5F5F5 80%, transparent 80%, transparent) 0% 0% / 20px 20px, radial-gradient(circle, transparent 20%, #F5F5F5 20%, #F5F5F5 80%, transparent 80%, transparent) 10px 10px / 20px 20px, linear-gradient(#FFFFFF 0.5px, transparent 0.5px) 0px -0.25px / 10px 10px, linear-gradient(90deg, #FFFFFF 0.5px, #F5F5F5 0.5px) -0.25px 0px / 10px 10px #F5F5F5;
        background-size: 20px 20px, 20px 20px, 10px 10px, 10px 10px;
        background-color: #F5F5F5; */
}

a,
.tel
{
    color: gray;
    text-decoration: none;
}
a:hover { opacity: 0.5; }

h1 a,
h2 a
{
    color: #242424;
}

h1, h2, h3, h4, h5, h6
{
    font-family: "Johnston100 W03 Medium", sans-serif;
}

hr, .hide, .hidden,
div:empty, p:empty
{
    display: none;
}

ul, ol, li
{
    list-style: none;
    padding: 0;
}


/* #container
{
    border: 1px solid red;
    min-width: 800px;
} */

header.site > div,
main.wp-page,
main.ic-page > .page
{
    width: 100%;
    min-width: 800px;
    max-width: 1200px;
    margin: auto;
}

/* main.site
{
    background-color: aquamarine;
    border: 1px solid red;
} */

.overlay
{
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2.2px);
    filter: drop-shadow(0px 0px 13px #e3e3e3);
}
.wp-entry-content a
{
    color: black;
    text-decoration-style: wavy;
    text-decoration-line: underline;
}



/* 
    --------------------------------------------------------------------------------------------------------------------
    NAVIGATION / SERACH
    --------------------------------------------------------------------------------------------------------------------
*/

form.search-form input.search-field
{
    border: 1px solid #ececec;
    border-radius: 5px;
    padding: 4px 7px 4px 28px;
    background: url("assets/search.png") no-repeat 0 -4px white;
    width: 120px;
    
    transition: 700ms ease;
    -webkit-transition: 700ms ease;
    -moz-transition: 700ms ease;
    -o-transition: 700ms ease;
}

form.search-form input.search-field:focus
{
    background-color: white;
    width: calc(100% - 35px)
}

form.search-form input[type="submit"]
{
    display: none;
}

form.search-form input::placeholder
{
    text-transform: lowercase;
    text-overflow: ellipsis;
    opacity: 0.5;
}



/* 
    --------------------------------------------------------------------------------------------------------------------
    HEADER
    --------------------------------------------------------------------------------------------------------------------
*/

header.site
{
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
}

header.site > div
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 8px;
}

header.site h1
{
    margin: 0;
    flex-grow: 1;
    font-size: 100%;
}

nav.site ul
{
    display: flex;
    flex-direction: row;
    column-gap: 20px;
}

nav.site [aria-current='page']
{
    font-weight: bold;
    font-family: "Johnston100 W03 Regular", sans-serif;
}



/* 
    --------------------------------------------------------------------------------------------------------------------
    MAIN
    --------------------------------------------------------------------------------------------------------------------
*/

main.wp-page h2
{
    text-align: center;
}


/* 
    --------------------------------------------------------------------------------------------------------------------
    MAIN PAGES
    --------------------------------------------------------------------------------------------------------------------
*/

main.a-propos .target
{
    scroll-margin-top: 100px;
}

main.a-propos .wp-entry
{
    display: flex;
    column-gap: 40px;
    flex-direction: row;
}

main.a-propos aside menu
{
    padding: 0;
    white-space: nowrap;
    font-family: "Johnston100 W03 Hairline", sans-serif;
}

main.a-propos aside menu li.level3
{
    padding-top: 13px;
    padding-bottom: 3px;
}

main.a-propos aside menu li.level4::before
{
    content: "- ";
}

main.a-propos aside menu li a
{
    color: black;
}

main.agenda .agenda-posts
{
    display: flex;
    flex-direction: row;
    column-gap: 20px;
}

main.agenda .agenda-posts .agenda
{
    border: 1px gray solid;
    border-radius: 3px;
    padding: 20px;
}
main.agenda .agenda-posts .agenda:nth-child(odd)
{
    opacity: 0.5;
    width: 160px;
    position: relative;
}

main.agenda .agenda-posts .agenda:nth-child(even)
{
    width: 740px;
}

main.agenda .agenda-posts .agenda-title
{
    text-transform: capitalize;
}

main.agenda .agenda-posts .agenda-content img
{
    width: 100%;
}

main.agenda .agenda-posts .previous:hover,
main.agenda .agenda-posts .next:hover
{
    opacity: 1.0;
    cursor: pointer;
}

main.agenda .agenda-posts .previous .agenda-container:hover::after,
main.agenda .agenda-posts .next .agenda-container:hover::after
{
    width: 90px;
    height: 90px;
    display: flex;
    font-size: 36px;
    font-family: monospace;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 60px;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 84px;
    transform: translateX(-50%);
    backdrop-filter: blur(1.2px);
    filter: drop-shadow(0px 0px 7px gray);
}

main.agenda .agenda-posts .previous .agenda-container:hover::after 
{
    content: "‹";
}

main.agenda .agenda-posts .next .agenda-container:hover::after 
{
    content: "›";
}

main.a-propos aside menu,
main.agenda .agenda-posts .previous .agenda-container,
main.agenda .agenda-posts .next .agenda-container
{
    position: sticky;
    top: 100px;
}

/* main.agenda .agenda-posts .previous,
main.agenda .agenda-posts .next
{
    display: none;
    align-self: center;

    font-family: monospace;
    font-size: 32px;
    border: 1px solid black;
    border-radius: 16px;
    width: 32px;
    justify-content: center;
    height: 32px;
    line-height: 29px;
} */




/* 
    --------------------------------------------------------------------------------------------------------------------
    FOOTER
    --------------------------------------------------------------------------------------------------------------------
*/

footer.site
{
    position: fixed;
    z-index: 999;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    padding: 8px;
    opacity: 0.1;
}

footer.site:hover
{
    opacity: 1.0;
}

footer.site p
{
    margin: 0;
    display: inline-block;
    text-transform: lowercase;
}

footer.site p.credit
{
    display: none;
}

footer.site p.license
{
    display: flex;
    align-items: center;
    flex-direction: row;
}

footer.site a.cc
{
    margin: 0 .2em;
}

footer.site img.cc
{
    width: 1em;
    height: 1em;
    margin-left: .2em;
}
