/*
Theme name: antiAtlas
Author: Thierry Fournier
Description: Child theme for antiAtlas of Borders
Version: v0.2
Template: astra
*/

/* FONTS */

@font-face {
    font-family: 'lektonbold';
    src: url('font/lekton-bold-webfont.eot');
    src: url('font/lekton-bold-webfont.eot?#iefix') format('embedded-opentype'),
    url('font/lekton-bold-webfont.ttf') format('truetype'),
    url('font/lekton-bold-webfont.svg#lektonbold') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'lektonitalic';
    src: url('font/lekton-italic-webfont.eot');
    src: url('font/lekton-italic-webfont.eot?#iefix') format('embedded-opentype'),
    url('font/lekton-italic-webfont.ttf') format('truetype'),
    url('font/lekton-italic-webfont.svg#lektonitalic') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'lektonregular';
    src: url('font/lekton-regular-webfont.eot');
    src: url('font/lekton-regular-webfont.eot?#iefix') format('embedded-opentype'),
    url('font/lekton-regular-webfont.woff2') format('woff2'),
    url('font/lekton-regular-webfont.woff') format('woff'),
    url('font/lekton-regular-webfont.ttf') format('truetype'),
    url('font/lekton-regular-webfont.svg#lektonregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* TYPOS */

body {font-family:"lektonregular";font-size:14px; line-height:20px;color:#000;}
h1, h2, h3, h4, .site-title, .site-title a, .entry-title, error-404 .page-title, .page-title {font-family:"lektonbold";font-weight:300!important;}
p {text-align: justify;margin: 0 0 10px 0;}
/*p {-webkit-hyphens: auto;-moz-hyphens: auto;-ms-hyphens: auto;hyphens: auto;}*/

.site-title, .site-title a, .site-branding .site-title a, 
.site-branding .site-title a:hover, .site-branding .site-title a:focus {font-family:"lektonbold";font-size: 24px;text-decoration: none;font-weight:300!important;}
.site-info {color:#000;font-size:14px;}

.entry-title, .page-title, .error-404 .page-title {font-size: 24px;line-height:30px;margin-top:10px;margin-bottom:10px;font-weight:300!important;}
h1, .entry-content h1, .entry-summary h1 {font-size: 22px;line-height:28px;margin-top:10px;margin-bottom:10px;font-weight:300!important;}
h2, .entry-content h2, .entry-summary h2 {font-size: 18px;line-height:24px;margin-bottom:10px;margin-top:10px;font-weight:300!important;}
h3, .entry-content h3, .entry-summary h3, .comment-content h3 {font-size: 16px;line-height:24px;margin-bottom:10px;margin-top:10px;font-weight:300!important;}
.leg {font-size: 12px;line-height: 18px;} /* légendes photos et diaporamas */
.list p {text-align: left!important;-webkit-hyphens: none;-moz-hyphens: none;-ms-hyphens: none;hyphens: none;}
b, strong {font-family:"lektonbold";font-weight:300!important;}

/* Suppression du titre sur la page Actualités */

.page-id-5250 h1.post-title {display:none!important;}

/* suppression des commentaires */

#comments {display:none;}

/* Liens */

a, a:active, a:visited {font-family:"lektonregular";text-decoration:underline;color:#000;background:#FFF;}
.entry-content a:hover {color:#FFF;background: #000;text-decoration: none!important;}

.entry-content a, .entry-summary a, .taxonomy-description a, .logged-in-as a, 
.comment-content a, .pingback .comment-body > a, .textwidget a, 
.entry-footer a:hover, .site-info a:hover {box-shadow: none;}

/* menu */

.site-header-menu {font-size: 16px;}
.main-navigation a {font-family:"lektonregular";white-space: nowrap;text-decoration: none!important;}
.main-navigation a:hover {font-family:"lektonbold";font-weight:300!important;}
.main-navigation li:hover > a, .main-navigation li.focus > a {color: #000;}
.main-navigation .current-lang a {font-family:"lektonbold"!important;font-weight:300!important;}

/* styles de textes et liens dans la grille masonry */

.vc_gitem-post-data {margin-bottom: 0;}
.vc_grid-container-wrapper a {background: transparent!important;}
.vc_custom_heading a, .vc_custom_heading a:focus, .vc_custom_heading a:hover, .vc_custom_heading a:visited {font-family: "lektonbold";font-weight:300!important;}
.vc_gitem-post-data h4 a {font-family:"lektonbold";font-size: 18px;line-height:22px;margin:0;letter-spacing:0;}

/* Couleurs menu */

body{background: #FFF;}
.site-header {background: #FFF;}
.site-branding .site-title a {color: black;background: white;}
.main-navigation a {background: white;color: black;}
.site-branding .site-title a, .site-branding .site-title a:hover, .site-branding .site-title a:focus {color:#000;background:#FFF;}
.main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a {font-family: "lektonbold"!important;color:#000!important;font-weight:300!important;}

/* BORDURES */

.site-header-main {background: white;color:black;}
.site-header {border-bottom: 1px solid black;}
.main-navigation ul ul li {background-color: #fff;border: none;}
.main-navigation ul ul {border-bottom: 1px solid #000;}
.main-navigation ul ul li {border: none;}
.main-navigation ul ul:before {border-color: #000 transparent;border-width: 0 10px 10px;right: 9px;top: -9px;}
.main-navigation ul ul:before, .main-navigation ul ul:after {border-style: solid;content: "";position: absolute;}
.vc_grid-item-mini {color:black;border: 1px solid black;}
.site-footer {border-top:1px solid #000;}

/* POSITIONNEMENTS */

.site {margin: 5%;max-width: 2048px;}
.site-inner {margin: 0 auto;z-index: 1000;position: relative;}
.site-header {margin-bottom: 0;margin-left: 5%;margin-right: 5%;margin-bottom: 0;padding: 20px 0 0 0;position: fixed;top: 0;left: 0;z-index: 1000;width: 90%;height: 70px;}
.site-main {margin-bottom: 0;}

/* marges titre site */
.site-branding {margin: 0 auto 0 0!important;}
.site-header-menu {margin-top:20px 0;}
.site-title {padding-left:0;padding-top:3px;}

/* marges menu */
.site-header-menu {margin: 0;}
.main-navigation {margin: 0;}
.main-navigation a {outline-offset: -8px;padding: 10px;white-space: nowrap;text-decoration: none!important;}

/* marges dans articles */
.site-content {background: white;padding-top:calc(70px - 5%);padding-right:0;padding-bottom:20px;padding-left:0;} /* padding-top à 0 si menu non fixe */
.no-sidebar .entry-header, .no-sidebar .entry-content, .no-sidebar .entry-summary, 
.no-sidebar .entry-footer, .no-sidebar .comments-area, .no-sidebar .image-navigation, 
.no-sidebar .post-navigation, .no-sidebar .pagination, .no-sidebar .page-header, 
.no-sidebar .page-content, .no-sidebar .content-bottom-widgets {margin-right: auto; margin-left: 0}
.entry-content, body.no-sidebar:not(.search-results) article:not(.type-page) {float: left;margin: 20px 0 20px 0;width: 100%;max-width: 1200px;}
embed, iframe, object, video {margin-bottom: 10px!important;}

/* MENUS ET SOUS-MENUS */

.main-navigation a {padding: 10px 0 10px 20px;}
.main-navigation .menu-item-has-children > a {margin: 0;padding-right: 0;}
.main-navigation .menu-item-has-children > a:after {display:none;}
.main-navigation li {border-top: none;}
.main-navigation li a:last-of-type {padding-right:0;}

.main-navigation li:hover > ul, .main-navigation li.focus > ul {left: 20px;right: 0;
    width: 180px;
    border: 1px solid #000;
}

.main-navigation ul ul {margin-left: 0;width: 80%;border: 1px solid #000;}
.main-navigation ul ul:before, .main-navigation ul ul:after {display:none;}

.main-navigation ul ul li {background: rgba(255,255,255,0.9);}
.main-navigation ul ul li a {font-size: 14px;background: transparent;}

.dropdown-toggle:hover, .dropdown-toggle:focus {background-color: transparent;color: #000;}
.dropdown-toggle {color: #000;left: 27%;top: -5px;width: 48px;text-transform: none;}  
.dropdown-toggle:after {border: none;left:0;}
.dropdown-toggle:focus {outline: none; outline-offset: 0;}

.main-navigation li a img {width: auto;}

/* TOGGLE DU MENU MOBILE */

.menu-toggle {
    background-color: transparent;
    border: none;
    color: #000;
    font-family: "lektonbold";
    font-weight:300!important;
    text-transform: none;
    font-size: 20px;
    margin: 0;
    padding: 0;
}

button, button[disabled]:hover, button[disabled]:focus, input[type="button"], input[type="button"][disabled]:hover, input[type="button"][disabled]:focus, input[type="reset"], input[type="reset"][disabled]:hover, input[type="reset"][disabled]:focus, input[type="submit"], input[type="submit"][disabled]:hover, input[type="submit"][disabled]:focus {
    background: #000;
    border: 0;
    color: #fff;
    font-family: "lektonbold";
    font-weight:300!important;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}

.menu-toggle.toggled-on, .menu-toggle.toggled-on:hover, .menu-toggle.toggled-on:focus {
    background-color: #000;
    border-color: #000;
    color: #fff;
    padding: 3px;
}

.menu-toggle:hover, .menu-toggle:focus {
    background-color: transparent;
    border-color: #000;
    color: #000;
}

button:hover, button:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="reset"]:hover, input[type="reset"]:focus, input[type="submit"]:hover, input[type="submit"]:focus {
    background: #000;
}

/* SEARCH BAR */

.main-navigation {
    font-family: "lektonregular", sans-serif;
}

button, input, select, textarea {
    color: #000;
    font-family: "lektonregular", sans-serif;
    font-size: 16px;
    line-height: 20px;
}

.search-form {
    height: 18px;
    margin-left: 0;
    margin-top: 6px;
}

/* SEARCH FORM */

.is-menu.full-width-menu form, .is-menu.sliding form {
    min-width: 0!important;
    overflow: hidden;
    position: absolute;
    right: 0;
    z-index: 9;
    padding: 0;
    margin: 0;
    top: 1px!important;
    width: 250px!important;
}

#is-popup-wrapper {
    background: rgba(4,4,4,.51)!important;
}

/* SEARCH RESULTS */

.page-header {
    border-top: none;
    margin: 0;
    padding: 0;
}

/* h1, h2 {-webkit-column-span: all;-moz-column-span: all;-ms-column-span: all;-o-column-span: all;column-span: all;} */
.entete {margin-bottom:20px;break-inside: avoid;-webkit-column-span: none;-moz-column-span: none;-ms-column-span: none;-o-column-span: none;column-span: none;}
.entete h3 {-webkit-column-span: none;-moz-column-span: none;-ms-column-span: none;-o-column-span: none;column-span: none;}
p strong + p em {break-before: avoid;}
p strong + p em + p {break-before: avoid;}
h3 {break-inside:avoid;}

/* PAGE D'ACCUEIL */

/* diaporama et thumbnail */

#post-2228 .ffonly, #post-6167 .ffonly {display:none;}
#post-2228 .metaslider {-webkit-column-span: all;-moz-column-span: all;-ms-column-span: all;-o-column-span: all;column-span: all;}
#post-2228 .post-title {display: none;}
#post-6167 .metaslider {-webkit-column-span: all;-moz-column-span: all;-ms-column-span: all;-o-column-span: all;column-span: all;}
#post-6167 .post-title {display: none;}

/* cibler Firefox pour la page d'accueil... */

/*
@-moz-document url-prefix() { 
  #post-2228 .metaslider, #post-6167 .metaslider {display:none;}
}

@-moz-document url-prefix() { 
  #post-2228 .featured-media {display:block!important;}
}

@-moz-document url-prefix() { 
  #post-2228 .ffonly, #post-6167 .ffonly {display:block;margin-bottom:20px!important;}
}

/* PAGE 404 */

.error-404 .not-found .page-content {-moz-columns: 1;-webkit-columns: 1;columns: 1;max-width:600px!important;}

/* IMAGES */

img {height: auto;width: 100%;max-width: 100%;vertical-align: middle;}
p img {margin-top:10px;margin-bottom: 10px;border:1px solid lightgrey;z-index: 1000;}
.featured-media {margin: 10px 0 20px 0;width:100%;z-index: 1000;border:1px solid black;}
#post-2228 .featured-media {display:none;}
#post-6167 .featured-media {display:none;}
.no-sidebar .post-thumbnail img {margin: 0;width: 100%;}
.single .byline, .full-size-link, body:not(.search-results).group-blog .byline, 
body:not(.search-results) .entry-format, body:not(.search-results) .cat-links, 
body:not(.search-results) .tags-links, body:not(.search-results) article:not(.sticky) .posted-on, 
body:not(.search-results) article:not(.type-page) .comments-link, 
body:not(.search-results) article:not(.type-page) .entry-footer .edit-link {display: none;}

/* DIAPORAMAS */

.lightPlayer.fluidLayout .slide_container, .lightPlayer.fullscreen .slide_container {background: white!important;}
#player.embed_player .toolbar {background-color: #c3c3c3!important;}
.metaslider {max-width: 100%!important;margin: 20px 0 20px 0!important;z-index: 1000;}

/* FOOTER */

.site-footer {padding: 10px 0 0 0;margin-top:0;}
.site-footer .main-navigation {display: none;} /* pas de 2e menu en bas */

/* Restauration de 2 colonnes, décembre 2021 */

.post-content, .page-content {margin-top:20px;-moz-column-count:2!important;-webkit-column-count:2!important;column-count:2!important;column-gap:40px;-moz-column-gap:40px;-webkit-column-gap:40px;}


/* MEDIA QUERIES */

/* Smartphones ----------- */
@media only screen and (min-device-width : 200px) and (max-device-width : 640px) and (orientation : portrait) {
    .site {margin: 5%;}
    .site-header {margin-bottom: 0;margin-left: 4.9%;margin-right: 5.1%;margin-bottom: 0;padding: 20px 0 0 0;position: fixed;top: 0;left: 0;z-index: 1000;width: 90%;height: 70px;}
    .site-header-main {margin-top: 5px;}
    .site-header-menu {margin-bottom:0;margin-left:0;}
    .site-header-menu.toggled-on, .no-js .site-header-menu {margin-top: 10px;border: 1px solid #000;}   
    .menu-toggle {margin-right: 0;font-size: 16px;}
    .main-navigation {background: transparent;}
    .main-navigation .primary-menu {border-bottom: none;}

    .main-navigation ul ul li {background: white;}
    .main-navigation ul ul {border:none;margin-left: 5%;width: 30%;}
    .main-navigation ul ul:before, .main-navigation ul ul:after {display:none;}
    .main-navigation .menu-item-has-children > a {margin-right: 70%;} 
    .main-navigation .menu-item-has-children > a {margin: 0;padding-right: 20px;} 
    
    body {font-size: 14px;line-height: 18px;}
    h1, .entry-content h1, .entry-summary h1 {margin-bottom: 10px;}
    .leg {font-size: 14px;line-height: 18px;font-family: "lektonitalic";}
    .site-title, .site-title a, .site-branding .site-title a, 
    .site-branding .site-title a:hover, .site-branding .site-title a:focus {font-size: 18px;}
    .entry-title, .page-title, .error-404 .page-title {
        font-size: 18px;line-height:24px;margin-top:10px;margin-bottom:10px;}
    h1, .entry-content h1, .entry-summary h1 {
        font-size: 18px;line-height:24px;margin-top:10px;margin-bottom:10px;}
    h2, .entry-content h2, .entry-summary h2 {
        font-size: 14px;line-height:18px;margin-bottom:10px;}
    h3, .entry-content h3, .entry-summary h3 {
        font-size: 14px;line-height:18px;margin-bottom:10px;}

    .site-header .search-form {left: 20px;top: 6px;}
    .site-header-menu.toggled-on, .no-js .site-header-menu {padding-bottom: 50px;}

    #wmle_container {width: calc(100% + 10px);
}

}

/* iPads (landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {
    /* général aux iPads */
    .site {margin: 5%;}
    /*.site-header {margin-bottom: 0;margin-left: 0;margin-right:0;padding-right:0;padding-left: 5%;width: 100%;height: 80px;}
    /*.site-header {margin-bottom: 0;margin-left: 5%;margin-right: 5%;width: 90%;height: 80px;}*/
    .site-header-main {margin-top: 5px;}
    .site-header-menu {margin-top: 0;margin-bottom:0;margin-left:0;}
    .site-header-menu.toggled-on, .no-js .site-header-menu {margin-top: 20px;border: 1px solid #000;}   
    .main-navigation ul ul {border:none;margin-left: 5%;width: 30%;}
    .main-navigation ul ul:before, .main-navigation ul ul:after {display:none;}
    .main-navigation .menu-item-has-children > a {margin-right: 70%;} 
    .main-navigation .menu-item-has-children > a {margin: 0;padding-right: 20px;} 
    body {font-size: 15px;line-height: 20px;}
    h1, .entry-content h1, .entry-summary h1 {margin-bottom: 10px;}
    .leg {font-size: 14px;line-height: 18px;font-family: "lektonitalic";}
    .menu-toggle {margin-right: 0;}
    /* spécifique landscape */
    .main-navigation ul ul {margin-left: -0;width: 95%;margin-top: 10px;border: 1px solid #000;}
    body {font-size: 15px;line-height: 20px;}
    h1, .entry-content h1, .entry-summary h1 {margin-bottom: 10px;}
    .leg {font-size: 14px;line-height: 18px;font-family: "lektonitalic";}
    .site-header .search-form {left: 20px;top: 6px;}
    .site-header-menu.toggled-on, .no-js .site-header-menu {padding-bottom: 50px;}

}

/* iPads (portrait) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
    /* général aux iPads */
    .site {margin: 5%;}
    /*.site-header {margin-bottom: 0;margin-left: 0;margin-right:0;padding-right:0;padding-left: 5%;width: 100%;height: 80px;}
    /*.site-header {margin-bottom: 0;margin-left: 5%;margin-right: 5%;width: 90%;height: 80px;}*/
    .site-header-main {margin-top: 5px;}
    .site-header-menu {margin-top: 0;margin-bottom:0;margin-left:0;margin-right: 5%!important;}
    .site-header-menu.toggled-on, .no-js .site-header-menu {margin-top: 20px;margin-right: 0!important;border: 1px solid #000;}   
    .main-navigation .primary-menu {border:none;}
    .main-navigation ul ul {border:none;margin-left: 5%;width: 30%;}
    .main-navigation ul ul:before, .main-navigation ul ul:after {display:none;}
    .main-navigation .menu-item-has-children > a {margin-right: 70%;} 
    .main-navigation .menu-item-has-children > a {margin: 0;padding-right: 20px;} 
    body {font-size: 15px;line-height: 20px;}
    h1, .entry-content h1, .entry-summary h1 {margin-bottom: 10px;}
    .leg {font-size: 14px;line-height: 18px;font-family: "lektonitalic";}
    .menu-toggle {margin-right: 0;}
    /* spécifique portrait */
     .post-content, .page-content {-moz-column-count:2!important;-webkit-column-count:2!important;column-count:2!important;column-gap:40px;-moz-column-gap:40px;-webkit-column-gap:40px;}

    .site-header .search-form {left: 20px;top: 6px;}
    .site-header-menu.toggled-on, .no-js .site-header-menu {padding-bottom: 50px;}
    embed, iframe, object, video {
    margin-bottom: 20px;
    width: 100%;
    }
}

/* Large Desktops and laptops ----------- 
@media only screen  and (min-width : 1600px) {*/
@media only screen  and (min-width : 1920px) {
    .site {
    margin-left: 2%;
    margin-right: 2%;
    margin-top: 90px;}
    .site-inner {
    margin: 0 auto;
    max-width: 100%;
    position: relative;}
    .site-header {
    margin-bottom: 0;
    margin-left: 2%;
    margin-right: 2%;
    margin-bottom: 0;
    padding: 20px 0 0 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 96%;
    height: 70px;}
    .site-content {padding-top: 0;}
    /* sur les grands écrans, la featured image n'occuppe qu'une colonne */
    .featured-media {height: auto;width: calc(50% - 20px);max-width: 100%;vertical-align: middle;}

}

/* Very Large Desktops and laptops ----------- */
@media only screen  and (min-width : 2048px) {
    /* sur les grands écrans, la featured image n'occuppe qu'une colonne */
    .site {max-width: 2048px;margin-left:3%;margin-right: auto;margin-top: 90px;}
    .site-inner {max-width: 1844px;margin-left: 0;margin-right: auto;}
    .site-header {
    margin-bottom: 0;
    margin-left: 3%;
    margin-right: 5%;
    margin-bottom: 0;
    padding: 20px 0 0 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 1844px;
    height: 70px;}
    .site-content {padding-top: 0;}

}



