 /* HIDE DURING PAGE LOAD (show via JS)
-------------------------------------------------- */



/* CUSTOMIZE THE GLOBAL STYLES
-------------------------------------------------- */

* {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox */
    box-sizing: border-box;         /* Opera/IE 8+ */
}
:root {
    --text-shadow-base: 1px 1px 3px rgba(0,0,0,.25);
    --box-shadow-base: 1px 1px 10px rgba(0,0,0,.25);
    --form-shadow-base: 0 3px 10px rgba(0,0,0,.2);
    --color-base-darker: #1d1d1b;
    --color-base-dark: #4a4a49;
    --color-base-medium: #9d9d9c;
    --color-base-light: #d0d0d0;
    --color-base-lighter: #ededed;
    --color-contrast-dark: #002f45;
    --color-contrast-medium: #768c98;
    --color-contrast-light: #fbba00;
    --color-contrast-lighter: #fff5e9;
}
html {
    -webkit-text-size-adjust: 100%;
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    text-shadow: rgba(0, 0, 0, .01) 0 0 1px;
}

body {
    font-family: Helvetica, Arial, "sans-serif";
    font-weight: 300;
    font-style: normal;
    font-size: 14px;
    letter-spacing: 1px;
	color: var(--color-base-dark);
    background-color: #fff;
    scroll-behavior: smooth;
}
html, body {
    margin: 0;
    padding: 0;
    max-width: 100vw;
}
a {
    text-decoration: none;
    color: var(--color-contrast-dark);
    transition: all ease .5s;
}
main a {
    border-bottom: 1px solid var(--color-contrast-light);
}
a i {
	color: var(--color-contrast-medium);
}
a:hover {
    color: var(--color-contrast-medium);
}
main a:hover {
    border-bottom: 1px solid var(--color-contrast-dark);
}
a,
a:focus,
a:hover,
a:active {
    outline: none;
}
h1 {
    font-weight: 500;
    font-style: normal;
    margin-top: 0;
}
h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 400;
    font-style: normal;
}
h1, .h1 {  
    font-size: 2.2rem;
}
h2, .h2 {
    font-size: 1.8rem;
	padding-top: 1em;
}
h3, .h3 {
    font-size: 1.4rem;
	padding-top: 1em;
}
h4, .h4 { 
    font-size: 1.2rem;
}
figure {
	margin: 0;
}
main {
    padding: 160px 20px 40px 20px;
    margin: 0 auto;
    max-width: 1200px;
}
.icon::before {
  display: inline-block;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* FORMS
-------------------------------------------------- */

input, 
button, 
select, 
textarea {
    border: 1px solid var(--color-base-light);
    border-radius: 5px;
    padding: 10px 20px;
}
input[type=text], 
input[type=email], 
input[type=password], 
input[type=submit], 
select, 
textarea {
    width: 100%;
}
input[type="radio"]{
    padding: inherit;
    border-radius: 0;
}
input[type=checkbox]:focus, 
input[type=color]:focus, 
input[type=date]:focus, 
input[type=datetime-local]:focus, 
input[type=datetime]:focus, 
input[type=email]:focus, 
input[type=month]:focus, 
input[type=number]:focus, 
input[type=password]:focus, 
input[type=radio]:focus, 
input[type=search]:focus, 
input[type=tel]:focus, 
input[type=text]:focus, 
input[type=time]:focus, 
input[type=url]:focus, 
input[type=week]:focus, 
select:focus, 
textarea:focus {
    border-color: transparent !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.2) !important;
}
/* no focus style for non-keyboard-inputs elements */
body:not(.user-is-tabbing) button:focus,
body:not(.user-is-tabbing) input:focus,
body:not(.user-is-tabbing) select:focus,
body:not(.user-is-tabbing) textarea:focus {
  outline: none;
}

/* and for keyboard users, override everything with
   a Big Blue Border when focused on any element */
body.user-is-tabbing *:focus {
  outline: 2px solid #7AACFE !important; /* for non-webkit browsers */
  outline: 5px auto -webkit-focus-ring-color !important;
}
label {
    font-weight: 600;
    display: inline-block;
    font-size: 1.1rem;
    line-height: normal;
}

/* CF7 */
.wpcf7-list-item {
    margin: 0;
    display: block;
}
.wpcf7-list-item label {
    font-weight: 400;
    padding: inherit;
    font-size: 1rem;
}
.buttForm,
input[type=submit] {
    display: block;
    background-color: var(--color-contrast-medium);
    padding: 10px;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-align: center;
    margin: 1em auto;
    border: none;
    transition: all ease .5s;
    width: 100%;
}
.buttForm:hover,
input[type=submit]:hover {
    background-color: var(--color-contrast-dark);
    color: #fff;
}
input.submitForm {
	font-size: 1.4em;
	color: #fff;
	background-color: var(--color-base-medium);
	padding: 0.4em;
	border: none;
}
input.submitForm:hover {
	color: #555;
	background-color: var(--color-base-darker);
}


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

.siteHeader {
    position: absolute;
    z-index: 100;
    width: 100vw;
    height: 60px;
	top: 0;
	left: 0;
    transition: all ease 0s;
}
.persistent .siteHeader {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    box-shadow: var(--box-shadow-base);
}
a#top {
    position: absolute;
    margin-top: -1px;
}

/* Logo */
.siteLogo {
    position: absolute;
    z-index: 10;
    left: 60px;
    top: 0;
    width: 140px;
    background-color: #fff;
    transition: all ease 1.5s;
}
.persistent .siteLogo {
    top: -200px;
    opacity: 0;
}
.persistentSiteLogo {
    position: absolute;
    z-index: 10;
    left: -100px;
    top: 5px;
    width: 50px;
    background-color: transparent;
    opacity: 0;
    transition: all ease 1s;
}
.persistent .persistentSiteLogo {
    left: 20px;
    opacity: 1;
}
.siteLogo a {
    display: block;
    height: 140px;
    background-image: url("../img/logo-invest-law.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: all ease .5s;
}
.persistentSiteLogo a {
    display: block;
    height: 50px;
    background-image: url("../img/icon-invest-law.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}
.siteLogo span,
.persistentSiteLogo span {
	display: none;
}

/* Menus Container */
.compactMenu {
    position: absolute;
    top: 0;
    right: 20px;
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
	display: -ms-flexbox;      /* TWEENER - IE 10 */
	display: -webkit-flex;     /* NEW - Chrome */
	display: flex;
    transition: all ease .5s;
}
@media (min-width: 800px) {
}

/* Top Bar Menu */
.topBarMenu {
    height: 60px;
    padding-left: 25vw;
    padding-right: 80px;
    display: none;
}
@media (min-width: 800px) {
    .topBarMenu {
        display: block;
        position: relative;
        z-index: 2;
        opacity: 1;
        transition: all ease 1s;
    }
   /* .persistent .topBarMenu {
        padding-left: 80px;
        position: absolute;
        z-index: auto;
        width: 100%;
        overflow: hidden;
        opacity: 0;
        top: -100px;
    }*/
}
.topBarMenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.topBarMenu ul li {
    display: inline;
}
.topBarMenu ul li a {
    line-height: 60px;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    font-size: .7rem;
    letter-spacing: 2px;
}
.topBarMenu ul li a:hover,
.topBarMenu ul li.current-menu-item a {
    color: var(--color-contrast-medium);
}
.topBarMenu ul li a span {
    padding: 0 10px;
    border-left: 1px solid var(--color-contrast-medium);
    line-height: 2.6rem;
    display: inline-block;
}
.topBarMenu ul li:first-of-type a span {
    border-left: none;
}
.topBarMenu ul li a span span {
    border-left: none;
}
.topBarMenu ul li.current-menu-item a:after {
    position: absolute;
    left: 50%;
    bottom: 10px;
    content: "";
    margin-left: -3px;
    width: 6px;
    height: 6px;
    border-left: 2px solid var(--color-base-darker);
    border-bottom: 2px solid var(--color-base-darker);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}



/* navbar*/
.mobileMenu {
    cursor: pointer;
	color: var(--color-base-darker);
    height: 60px;
    line-height: 60px;
    width: 80px;
    text-align: center;
	transition: all .7s ease;
}
@media (max-width: 750px){ 
    .mobileMenu {
	    padding: 0 20px;
    }
}
.mobileMenu span {
    border: 1px solid var(--color-contrast-medium);
    padding: .5rem .25rem .5rem .75rem;
}
.mobileMenu i {
	color: var(--color-base-darker);
    margin-right: 5px;
	transition: all .7s ease;
}
.persistent .mobileMenu {
    background-color: var(--color-base-darker);
    color: #fff;
}
.persistent .mobileMenu span {
    border: none;
    padding: 0;
}
.persistent .mobileMenu i {
    color: #fff;
}
.mobileMenu:hover,
.mobileMenu:hover i {
	color: var(--color-contrast-medium);
}
.persistent .mobileMenu:hover,
.persistent .mobileMenu:hover i {
    color: #fff;
}
.persistent .mobileMenu:hover {
    background-color: var(--color-contrast-medium);
}
header nav {
    position: fixed;
    z-index: 11;
    width: 0;
	height: 100vh;
    top: 0;
	right: -10vw;
    background-color: rgba(255,255,255,0);
    transition: all ease 2s;
}
header nav.fullWidth {
    width: 100vw;
	right: 0;
    background-color: rgba(0,0,0,.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.mobileMenuContainer {
	position: absolute;
	z-index: 12;
	top: 0;
	right: -10vw;
	background-color: #fff;
	height: 100vh;
	min-height: 100vh;
	min-width: 0;
	max-width: 0;
	margin-right: 0;
	width: 0;
	display: inline-block;
	overflow-y: auto;
    transition: all ease 1s;
    border-right: 1px solid var(--color-base-lighter);
}
.mobileMenuContainer.fullWidth {
	right: 0;
	min-width: 30vw;
	max-width: 92vw;
	width: auto;
}
.mainMenuClose {
	display: block;
	position: absolute;
	z-index: auto;
	right: 1.5rem;
	font-size: 2rem;
	color: var(--color-contrast-medium);
	top: 1.5rem;
	cursor: pointer;
    transition: all ease 1s;
}
.mainMenuClose:hover {
	color: var(--color-contrast-dark);
}
.mobileMenuContainer .scrollableMenu {
	padding: 40px;
    opacity: 0;
    transition: all ease 1s;
}
.mobileMenuContainer.fullWidth .scrollableMenu {
    opacity: 1;
}
.logoMenu {
    display: inline-block;
    height: 150px;
    width: 150px;
    margin-bottom: 20px;
    background-image: url("../img/logo-invest-law.png");
    background-repeat: no-repeat;
    background-size: contain;
}

.mainMenuContainer {
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
header nav li.menu-item-has-children {
}
header nav li a {
    display: block;
    text-decoration: none;
	border-top: 1px solid var(--color-contrast-medium);
    color: var(--color-base-darker);
    padding: 10px 20px;
    transition: all ease-in-out .5s;
}
header nav li a .menuDesc {
    display: block;
    font-style: italic;
}
header nav li:first-of-type a {
    border-top: none;
}
header nav li li a {
    font-size: 1.4rem;
    padding: 5px 10px 5px 30px;
	text-shadow: none;
	border-top: none;
    color: var(--color-base-darker);
}
header nav li li:last-child {
	padding-bottom: 20px;
}
header nav a:hover {
	color: var(--color-contrast-dark);
}
header nav .current_page_item a, header nav .current_page_item a:hover {
    color: var(--color-base-medium);
    font-style: italic;
    background-color: transparent;
    cursor: default;
}
header nav .current_page_item a:before {
    margin-left: -1rem;
    padding-right: 0.5em;
    content: ">>>";
    color: var(--color-contrast-medium);
}


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

.siteFooter {
    border-top: 1px solid var(--color-base-light);
}

/* PAGE
-------------------------------------------------- */

/* HOME PAGE
-------------------------------------------------- */

/* SINGLE
-------------------------------------------------- */
.breadCrumb {
    padding-bottom: 20px;
}
.breadCrumb a::before {
    font: var(--fa-font-solid);
    content: '\f100';
    padding-right: .4em;
}
.singleContent {
    display: flex;
    flex-wrap: wrap;
}
.mainSingleContent {
    width: 72%;
    padding-right: 40px;
}
.relatedSingleContent {
    width: 28%;
    padding-left: 40px;
    border-left: 1px solid var(--color-base-light);
}
.relatedSingleContent h2:first-of-type {
    margin-top: 0;
    padding-top: 40px;
}
.stickyContainer {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
}
.actuWidget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.actuWidget li a {
    display: block;
    text-decoration: none;
    border-bottom: 1px solid var(--color-contrast-light);
    color: var(--color-base-darker);
    padding: 10px 20px;
    transition: all ease-in-out .5s;
}
.actuWidget li a:hover {
    color: var(--color-contrast-light);
    border-bottom: 1px solid var(--color-contrast-medium);
}

/* Fiche Gestionnaire */
.ficheGestionnaire {}
.ficheGestionnaire img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
}

/* ARCHIVES
-------------------------------------------------- */

.mainArchive,
.catArchive,
.errorArchive {
    max-width: 1400px;
    margin: 0 auto;
    padding: 200px 20px 60px 20px;
}

/* Archives in Grid */ 
.gridView {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  grid-auto-rows: 10px;
}

@media (min-width: 1050px){
    .gridView {
        grid-gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    }
}
.mainArchive h1 span {
    font-size: .7em;
}
.gridItem {
}
.gridItem .content {
    position: relative;
}
.gridItem img {
  max-width: 100%;
  width: 100%;
  height: auto;
}
.gridItem h2, 
.gridItem h3, 
.gridItem h4 {
  font-size: 20px;
  margin: 0;
  padding: 10px 20px 0 20px;
}
article.gridItem a, 
article.gridItem a h2, 
article.gridItem a h3, 
article.gridItem a h4 {
  text-decoration: none;
  border-bottom: none;
  color: var(--color-contrast-dark);
  transition: all ease .5s;
}
article.gridItem a:hover, 
article.gridItem a:hover h2, 
article.gridItem a:hover h3, 
article.gridItem a:hover h4 {
  color: var(--color-contrast-dark);
  border-bottom: none;
}
article.gridItem a .content {
  padding-bottom: 20px;
  border: 1px solid var(--color-base-light);
  transition: all ease .5s;
}
article.gridItem a:hover .content {
  background-color: var(--color-contrast-light);
  border-color: var(--color-contrast-light);
}
.gridItem p {
  margin: 0;
  padding: 10px 20px;
}
.gridItemCat {
  padding: 10px 20px;
  color: var(--color-contrast-darker);
  display: block;
  font-weight: bold;
  transition: all ease .5s;
}
.gridItemDate {
  padding: 10px 20px 0 20px;
  color: var(--color-contrast-dark);
  display: block;
  font-size: 10px;
  transition: all ease .5s;
}
article.gridItem a:hover .gridItemCat,
article.gridItem a:hover .gridItemDate {
  color: #fff;
}

/* Archives in List */
.listItem {
    border-bottom: 1px solid var(--color-base-light);
    padding: 10px 0;
}
.listView .listItem:first-of-type {
    border-top: 1px solid var(--color-base-light);
}
.listItem .content {
    display: flex;
}
.listItem .content .contentImg {
    width: 20%;
    margin-right: 5%;
}
.listItem .content .contentImg img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
}
.listItem .content .contentTxt {
    width: 75%;
}

/*  Archives Nav */
.archiveNav {
	clear: both;
	text-align: center;
	display: block;
	padding: 3rem 0;
}
.archiveNav li {
	display: inline;
}
.archiveNav a,
.archiveNav a:hover,
.archiveNav .active a,
.archiveNav .disabled {
    display: inline-block;
	background-color: var(--color-contrast-light);
    border: 1px solid var(--color-contrast-light);
    border-radius: 3px;
	cursor: pointer;
	color: #fff;
	text-decoration:none;
    font-weight: 900;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    padding: 0;
    margin-right: 5px;
    transition: all ease .5s;
}
.archiveNav .current {
	padding: 10px;
	padding: 0.7rem;
}

.archiveNav a:hover {
    background-color: var(--color-contrast-medium);
    border: 1px solid var(--color-contrast-medium);
    color: #fff;
}
.archiveNav .active a,
.archiveNav .current {
	color: var(--color-base-medium);
	background-color: #fff;
}

/* CUSTOM LOGIN PAGE
-------------------------------------------------- */

.mainLogin {
    display: flex;
    align-items: center;
}
.mainLogin > section {
    width: 65%;
    padding: 40px;
}
.mainLogin > section:first-of-type {
    width: 35%;
    padding: 40px;
}
.mainLogin .loginLogo {
    display: block;
    height: 170px;
    background-image: url("../img/logo-invest-law.png");
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 15px;
}
.mainLogin .wp-block-cover__image-background,
.mainLogin .wp-block-cover__background.has-background-dim {
    border-radius: 20px;
}
.mainLogin .loginContainer {
    padding: 12px;
    background-color: var(--color-contrast-lighter);
    box-shadow: var(--box-shadow-base);
    border-radius: 12px;
}
.mainLogin .loginContainer label {
    letter-spacing: normal;
    font-size: .9rem;
}

/* CUSTOM SEARCH + RESULTS
-------------------------------------------------- */

.topSearchLink .menuTitle {
    display: none;
}
.topSearchLink .menuIcon {
    font-size: 1.6em;
}

/* Search form */
.headerSearch {
    position: absolute;
    z-index: 1;
    width: 100vw;
    left: 0;
    top: -200px;
    opacity: 0;
    padding-top: 70px;
    background-color: #fff;
    box-shadow: var(--box-shadow-base);
    transition: all ease-out 1s;
}
.headerSearch.searchFull {
    top: 0;
    opacity: 1;
}
.headerSearchContent {
    max-width: 1200px;
    margin: auto;
}
.search-form label {
    width: 75%;
}
.search-form label input {
    width: 100%;
}
.search-form input.search-submit {
    width: 24%;
    display: inline-block;
}

/* Surlignage des termes recherchés */
mark.search-highlight {
    background-color: #ffeb3b;
    color: #000;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 500;
}

/* Style des résultats de recherche */
.search-result-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.search-result-item h2 {
    margin-bottom: 10px;
}

.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.acf-match {
    background-color: #f5f5f5;
    padding: 10px;
    margin: 10px 0;
    border-left: 3px solid #2196F3;
}

.acf-match strong {
    color: #2196F3;
    text-transform: capitalize;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #2196F3;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}