.lzb-content-title{ /* Légende de Lazy Block */
    display: none;
}

.wp-block[data-type="lazyblock/wl-banner"] { /* Allow full width banners in editor */
    max-width: 100%;
}


/*===Custom Group block===*/

.wp-block-group.alignfull,
.alignfull{
    padding:4rem;
    min-width:100%;
    /* spacing other content types inserted between the banners */
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.wrap{ /* Normal alignment (like in the main .entry-content in blocks.css) */
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.wp-block-group.alignfull > .alignfull{
    width: calc(100% + 4rem) !important;
    max-width: calc(100% + 4rem) !important;
    margin-left: -2rem !important;
}

.entry-content > .wp-block-group.alignfull h2:first-of-type,
.wp-block-image + h2{
    margin-top: 0;
}


/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
optgroup,
textarea {
    color: #282c2e;  /* Carbon */
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    font-weight: 300;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    color: inherit;
    clear: both;
    font-weight: 300;
}

h1,
h2{
    line-height: 1.25;
    margin: 2rem 0 1rem;
}

h2{
    font-size: 1.75rem;
}

h1,
#site-intro h2{
    font-size: 2.375rem;
    font-weight: 200;
}

#site-intro h2{
    margin: 0;
}

h3{
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 500;
    margin: 1rem 0 0;
}

#site-intro h1,
h4,
small,
.posted-in a,
.more-link{
    font-size: .8125rem;
    display: inline-block; /* required to override parent line-height as minium */
    line-height: 1.8;
    letter-spacing: 2px;
    font-weight: 500;
    margin: 0 0 1rem;
    text-transform: uppercase;
    color: #06ad9e; /* Emerald */
}

h4{
    display: block; /* revert to block to center in posts main column */
}

#site-intro h1{
    color: #fbb81d; /* Sunflower */
    margin-bottom: .75rem;
}

.posted-in a,
.more-link{
    letter-spacing: 1px;
}

.entry-header p{
    font-weight: 300;
    margin: 1rem 0;
}

b, strong{
    font-weight: bold;
    font-weight: 600;
}

dfn, cite, em, i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

address {
  margin: 0 0 1.5em;
}

pre {
  font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 0.8em 1em;
}

code, kbd, tt, var {
  font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  font-size: 0.875rem;
}

@media screen and (min-width: 600px) {
  code, kbd, tt, var {
    font-size: 0.8125rem;
  }
}

p > code {
  padding: 2px;
  border-radius: 2px;
  background: #f3f4f5;
  font-size: inherit;
}

abbr, acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark, ins {
  background: #fff9c0;
  text-decoration: none;
}

big {
  font-size: 125%;
}

.archive .site-header {
	margin-bottom: 3.5em;
}

.site-title {
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1.2;
	color: white;
}

.site-title a {
	text-decoration: none;
	color: inherit;
}

/*--------------------------------------------------------------
# Colours and gradients
--------------------------------------------------------------*/

/*--- Colours ---*/
.corp-blue,
.has-corp-blue-background-color{
    background-color: #1c3f85; /* Corp Blue */
    color: white;
}
.emerald,
.has-emerald-background-color{
    background-color: #06ad9e; /* Emerald */
    color: white;
}
.amethyst,
.has-amethyst-background-color{
    background-color: #ab7ee5; /* Amethyst */
    color: white;
}
.carbon, .carbon.premium,
.has-carbon-background-color{
    background-color: #282c2e;  /* Carbon */
    color: white;
}
.dark-red,
.has-dark-red-background-color{
    background-color: #d83f26; /* Dark Red */
    color: white;
}
.poppy,
.has-poppy-background-color{
    background-color: #eb5a29; /* Poppy */
    color: white;
}
.coral,
.has-coral-background-color{
    background-color: #f3925c; /* Coral */
    color: white;
}
.sunflower{
    background-color: #fbb81d; /* Sunflower */
}
.white{
    background-color: white; /* White */
}

/*--- Gradients ---*/
.the-gradient,
.has-the-gradient-background-color{
    color: white;
    
    background: #1c3f85; /* Corp Blue */
    background: -moz-linear-gradient(-65deg, rgba(28,63,133,1) 0%, rgba(28,63,133,1) 20%, rgba(6,173,158,1) 90%, rgba(6,173,158,1) 100%);
    background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(28,63,133,1)), color-stop(20%, rgba(28,63,133,1)), color-stop(90%, rgba(6,173,158,1)), color-stop(100%, rgba(6,173,158,1)));
    background: -webkit-linear-gradient(-65deg, rgba(28,63,133,1) 0%, rgba(28,63,133,1) 20%, rgba(6,173,158,1) 90%, rgba(6,173,158,1) 100%);
    background: -o-linear-gradient(-65deg, rgba(28,63,133,1) 0%, rgba(28,63,133,1) 20%, rgba(6,173,158,1) 90%, rgba(6,173,158,1) 100%);
    background: -ms-linear-gradient(-65deg, rgba(28,63,133,1) 0%, rgba(28,63,133,1) 20%, rgba(6,173,158,1) 90%, rgba(6,173,158,1) 100%);
    background: linear-gradient(155deg, rgba(28,63,133,1) 0%, rgba(28,63,133,1) 20%, rgba(6,173,158,1) 90%, rgba(6,173,158,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1c3f85', endColorstr='#06ad9e', GradientType=1 );
}

.alt-gradient,
.has-alt-gradient-background-color{
    color: white;
    
    background: rgba(28,63,133,1);
    background: -moz-linear-gradient(-65deg, rgba(28,63,133,1) 0%, rgba(28,63,133,1) 20%, rgba(171,126,229,1) 90%, rgba(170,126,229,1) 100%);
    background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(28,63,133,1)), color-stop(20%, rgba(28,63,133,1)), color-stop(90%, rgba(171,126,229,1)), color-stop(100%, rgba(170,126,229,1)));
    background: -webkit-linear-gradient(-65deg, rgba(28,63,133,1) 0%, rgba(28,63,133,1) 20%, rgba(171,126,229,1) 90%, rgba(170,126,229,1) 100%);
    background: -o-linear-gradient(-65deg, rgba(28,63,133,1) 0%, rgba(28,63,133,1) 20%, rgba(171,126,229,1) 90%, rgba(170,126,229,1) 100%);
    background: -ms-linear-gradient(-65deg, rgba(28,63,133,1) 0%, rgba(28,63,133,1) 20%, rgba(171,126,229,1) 90%, rgba(170,126,229,1) 100%);
    background: linear-gradient(155deg, rgba(28,63,133,1) 0%, rgba(28,63,133,1) 20%, rgba(171,126,229,1) 90%, rgba(170,126,229,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1c3f85', endColorstr='#aa7ee5', GradientType=1 );
}

.bright-gradient,
.has-bright-gradient-background-color{
    color: white;
    
    background: rgba(6,173,159,1);
    background: -moz-linear-gradient(-65deg, rgba(6,173,159,1) 0%, rgba(6,173,159,1) 20%, rgba(171,126,229,1) 90%, rgba(170,126,229,1) 100%);
    background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(6,173,159,1)), color-stop(20%, rgba(6,173,159,1)), color-stop(90%, rgba(171,126,229,1)), color-stop(100%, rgba(170,126,229,1)));
    background: -webkit-linear-gradient(-65deg, rgba(6,173,159,1) 0%, rgba(6,173,159,1) 20%, rgba(171,126,229,1) 90%, rgba(170,126,229,1) 100%);
    background: -o-linear-gradient(-65deg, rgba(6,173,159,1) 0%, rgba(6,173,159,1) 20%, rgba(171,126,229,1) 90%, rgba(170,126,229,1) 100%);
    background: -ms-linear-gradient(-65deg, rgba(6,173,159,1) 0%, rgba(6,173,159,1) 20%, rgba(171,126,229,1) 90%, rgba(170,126,229,1) 100%);
    background: linear-gradient(155deg, rgba(6,173,159,1) 0%, rgba(6,173,159,1) 20%, rgba(171,126,229,1) 90%, rgba(170,126,229,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#06ad9f', endColorstr='#aa7ee5', GradientType=1 );
}

/* Certains txt sont jaunes sur les banners à part sur Carbon normal */
.entry-header h4,
.entry-header small,
.entry-header a,
.entry-header .more-link,

.wp-block-group.has-background h4,
.wp-block-group.has-background small,
.wp-block-group.has-background a,
.wp-block-group.has-background .more-link
{
    color: #fbb81d; /* Sunflower */
}

.wp-block-group.has-background.carbon h4,
.wp-block-group.has-background.has-carbon-background-color h4,
.wp-block-group.has-background.carbon small,
.wp-block-group.has-background.has-carbon-background-color small,
.wp-block-group.has-background.carbon a,
.wp-block-group.has-background.has-carbon-background-color a,
.wp-block-group.has-background.carbon .more-link,
.wp-block-group.has-background.has-carbon-background-color .more-link
{
    color: #06ad9e; /* Emerald */
}

.wp-block-group.has-background.premium h4,
.wp-block-group.has-background.premium small,
.wp-block-group.has-background.premium a,
.wp-block-group.has-background.premium .more-link
{
    color: #fbb81d; /* Sunflower */
}


.entry-header a:hover,
.entry-header .more-link:hover,

.wp-block-group.has-background a:hover,
.wp-block-group.has-background .more-link:hover
{
    color: #f3925c; /* Coral */
}

/*--------------------------------------------------------------
# Categories
--------------------------------------------------------------*/

.vignettes{
    margin-left: auto;
    margin-right: auto;
    padding:1rem;
    max-width: 1200px; /* == .alignwide */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.vignette{
    display: block;
    width: calc(33.333% - 2rem);
    margin: 1rem;
    padding: .5rem;
    text-decoration: none;
}

.vignette.mediatheque{
    text-align: center;
    font-weight: 300;
}

.vignette .imagette{
    display: block;
    background-color: rgba(0,0,0,.15); /* Fallback when no image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: -.5rem -.5rem 0;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
}

.vignette.mediatheque .imagette{
    -webkit-box-shadow: -3px 3px 6px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: -3px 3px 6px 0px rgba(0,0,0,0.3);
    box-shadow: -3px 3px 6px 0px rgba(0,0,0,0.3);
    padding-bottom: 141.43%; /* A4 */
    margin-bottom: 1rem;
}

.vignette.mediatheque .more-link{
    display: inline-block;
}

.vignette ul{
    padding: 0;
}

.vignette a{
    text-decoration: none;
}

.vignette h3{
    margin-bottom: 1rem;
}

.vignette h3 a{
    color: inherit !important;
    word-break: normal;
}

.vignette .excerpt{
    position: relative;
    height: 11.75rem;
    overflow: hidden;
    -webkit-mask-image: -webkit-gradient(linear, left 50%, left 95%, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
}

.vignette .excerpt:after{
    /* content: ""; deactivated because not working on non-white background */
    display: block;
    position: absolute;
    width: 100%;
    height: 50%;
    bottom:0;
    background: rgb(255,255,255);
    background: -moz-linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background: -webkit-linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#ffffff",GradientType=1);
}

.vignette .hentry{
    margin: 0;
}

.wl_cta [class*="wp-block-button"]{
    margin-top: 1rem;
}

@media screen and (max-width: 960px){
    .vignette{
        width: calc(50% - 2rem);
    }
}

@media screen and (max-width: 720px){
    .vignette{
        width: calc(100% - 2rem);
    }
    
    .vignettes:not(.slideshow_enabled) .vignette .excerpt{
        position: relative;
        height: auto;
        overflow: hidden;
    }
}

/*-----Slick slider-----*/

/* Ref: https://kenwheeler.github.io/slick/ */

.slideshow_enabled{
    position: relative;
    padding: 1rem 3.25rem 0;
}

.slick-arrow{
    position: absolute;
    top:50%;
    margin-top: -3rem;
    width: 2.25rem;
    height: 6rem;
    overflow: hidden;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background-size: contain;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    color: transparent !important;
    outline: none;
    
    transition: opacity .2s ease-in;
}
    .slick-arrow:hover{
        background-repeat: no-repeat !important;
        background-color: transparent !important;
        color: transparent !important;
        opacity: .5;
    }

.slick-prev,
.slick-prev:hover{
    left:1rem;
    background-image: url(assets/images/arrow-prev.svg) !important;
}

.slick-next,
.slick-next:hover{
    right:1rem;
    background-image: url(assets/images/arrow-next.svg) !important;
}

.slideshow_enabled .vignette{
    margin: 0;
}

.slick-slide{
    padding: 0 1rem;
}

@media screen and (max-width: 480px){
    .slideshow_enabled{
        padding: 1rem 2.5rem 0;
    }
    
    .slick-arrow{
        margin-top: -2rem;
        width: 1.5rem;
        height: 4rem;
    }
}

/*--------------------------------------------------------------
## Quote
--------------------------------------------------------------*/

.wp-block-quote {
    padding: 0;
    margin:0;
    border: none;
    position: relative;
    width: 50%;
    text-align:center;
}

.wp-block-quote:before,
.wp-block-quote:after{
    content:" ";
    display: block;
    position: absolute;
    width:100%;
    max-width: 25%;
    height:100%;
    background-size: contain;
    background-repeat: no-repeat;
}

.wp-block-quote:before{
    top: 0; right:100%;
    background-image: url(assets/images/quotes-open.svg);
    background-position: top right;
}

.wp-block-quote:after {
    bottom: 0; left:100%;
    background-image: url(assets/images/quotes-close.svg);
    background-position: bottom left;
}

@media screen and (max-width:720px){
    
    .wp-block-quote{
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .wp-block-quote:before,
    .wp-block-quote:after{
        position: static;
        width: 10rem;
        max-width: 10rem;
        height:10rem;
    }
    
    .wp-block-quote:after{
        align-self: flex-end;
    }
}

.wp-block-quote__citation,
.wp-block-quote cite,
.wp-block-quote footer{
    color: inherit;
    font-weight: 500;
}

.wp-block-quote.is-large, 
.wp-block-quote.is-style-large {
  margin: 2rem auto;
  padding: 0;
}

.wp-block-quote.is-large cite, 
.wp-block-quote.is-large footer, 
.wp-block-quote.is-style-large cite, 
.wp-block-quote.is-style-large footer {
  font-size: 13px;
  font-size: 0.8125rem;
}

/*--------------------------------------------------------------
# ACF blocks layout
--------------------------------------------------------------*/

/*--- Instructions ---*/
.warning{
    background: red;
    color: white;
}/* Hidden in style.css */