/**
    Theme name: Métier de courtier
*/

@font-face {
	font-family: 'Calistoga';
	src: url('Calistoga-Regular.ttf') format('truetype');
}

:root {
    --light-color: #fff;
    --primary-dark-color: #00384c;
    --primary-color: #00828f;
    --primary-light-color: #07ccce;
    --secondary-dark-color: #970007;
    --secondary-color: #e21117;
    --secondary-light-color: #f14f36;
    --tertiary-color: #edaf72;
}

* {
    box-sizing: border-box;
}

body {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    background: var(--light-color);
}

h1, h2 {
    font-family: 'Calistoga';
    font-weight: normal;
}


h1 {
    font-size: 50px;
    color: var(--primary-dark-color);
}

h2 {
    font-size: 40px;
    color: var(--primary-color);
}

h3 {
    font-size: 26px;
    color: var(--primary-light-color);
}

h4 {
    font-size: 22px;
    color: var(--primary-light-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    /* border-bottom: 2px solid #d68033; */
    padding: 20px;
}

.custom-logo {
    max-width: 100%;
    height: auto;
    width: 400px;
}

.menu {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.menu li {
    list-style: none;
    margin: 0 10px;
}

.menu li.current_page_item > a {
    background: var(--primary-dark-color);
    color: #fff;
}

.menu li a {
    display: block;
    padding: 8px 16px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all ease-in-out 0.2s;
    border-radius: 8px;
}

.menu li a:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

.menu li ul {
    display: none;
    position: absolute;
    margin: 0;
    padding: 0;
    z-index: 100;
    background: var(--light-color);
    border-radius: 0 0 8px 8px;
    box-shadow: 0px 4px 4px 0px rgba(240, 158, 62, 0.2);
}

.menu li ul li {
    margin: 10px;
}

.menu li:hover ul {
    display: block;
}

#menu-checkbox {
    display: none;
}

/**/

#content {
    padding: 0 20px;
    word-wrap: break-word;
}

/**/

footer {
    text-align: center;
    padding: 20px;
}

/* Formulaire Contact form 7 */
input, select, textarea, button {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #707070;
    width: 100%;
    font-size: 1rem;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

button, input[type=submit] {
    background: #d68033;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid #d68033;
    min-width: 300px;
    max-width: 100%;
    width: auto;
}

button:hover, input[type=submit]:hover {
    background: #fff;
    color: #d68033;
}

/* Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -20px;
}

.col {
    flex: 1;
    padding: 0 20px;
}


/* Gutenberg */
.alignfull {
    margin-left: calc((100% - 100vw) / 2);
    width: 100vw;
}

.alignwide {
    margin-left: calc((100% - 80vw) / 2);
    width: 80vw;
}

@media (max-width: 800px){

    header {
        height: 100px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 100000;
        display: flex;
        align-items: center;
        padding: 0;
        box-shadow: 0px 1px 10px 0px rgb(214 128 51 / 50%);
    }

    #content {
        margin-top: 100px;
    }

    .site-branding {
        flex: 9;
    }

    nav {
        flex: 3;
    }

    .site-branding p {
        display: none;
    }

    #main-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        padding: 20px;
        transform: translateX(100%);
        transition: transform ease-in-out 0.2s;
        background: #fff;
        z-index: 999999;
    }

    #menu-toggle span {
        display: block;
        width: 33px;
        height: 4px;
        border-radius: 4px;
        background: var(--primary-color);
        margin: 0 auto 5px auto;
        transform-origin: 4px 0;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0), background 0.5s cubic-bezier(0.77,0.2,0.05,1.0), opacity 0.55s ease;
    }

    #menu-toggle span:nth-child(3) {
        transform-origin: 0% 100%;
    }
    
    #menu-checkbox:checked ~ #main-menu {
        transform: translateX(0%);
    }

    #menu-checkbox:checked ~ #menu-toggle {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000000;
    }

    #menu-checkbox:checked ~ #menu-toggle span {
        transform: rotate(45deg) translate(-2px, -1px);
    }

    #menu-checkbox:checked ~ #menu-toggle span:nth-child(2) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    #menu-checkbox:checked ~ #menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(0, -1px);
    }

    .menu li ul {
        position: relative;
    }

    .menu li:hover ul {
        margin-left: 1.1em;
    }

    .col {
        flex: 0 0 100%;
    }
}