img.bgimg{
    position: absolute;
    z-index: -1;
    height: 100%;
    width: 100%;
    object-fit: cover;
}    
img.bgimg.center-center{
    object-position: 50% 50%;
}
img.bgimg.right-center{
    object-position: 100% 50%;
}
img.bgimg.left-top{
    object-position: 0% 0%;
}

body{
    background-color: var(--color-body);
}
#contents{
    background-color: #FFF;
    padding-bottom: var(--gap-4);
}
#contents, footer{
    margin:auto;
    max-width: 1070px;
    position: relative;  
}
body:not(.home) #contents{
    padding-top: var(--height-header);
}

#contents.shadow:before, footer.shadow:before{
    box-shadow: -20px 0 20px -20px #AAA inset;
    content: " ";
    height: 100%;
    left: -20px;
    position: absolute;
    top: 0;
    width: 20px;
}

#contents.shadow:after, footer.shadow:after{
    box-shadow: 20px 0 20px -20px #AAA inset;
    content: " ";
    height: 100%;
    position: absolute;
    top: 0;
    right: -20px;
    width: 20px;
}

section.bloc{
    position: relative;
    z-index: 1;
}

.bloc.hero-home .wrapper{
    margin: auto;
    width: 600px;
    background-color: #FFF;
    padding-bottom: var(--gap);
    overflow: hidden;
}
.bloc.hero-home .wrapper img{
    width: 100%;
    margin-top: var(--gap);
    margin-bottom: var(--gap-2);
    object-fit: scale-down;
    max-height: 250px;
}
.bloc.hero-home .wrapper h1{
    width: 100%;
    font-size: 2.3rem;
    /*text-align: justify;
    text-align-last: justify; ANVIE*/
    text-align: center;

    padding-top: var(--gap);
    padding-bottom: var(--gap);
    border-top: 1px solid var(--color-black);
    transform: scaleY(var(--font-scale));
}
.bloc.hero-home .wrapper p{
    width: 100%;
    text-align: justify;
    padding-bottom: var(--gap-2);
    border-bottom: 10px solid var(--color-black);

}
.bloc.hero-home .wrapper .subscribe{
    bottom: var(--gap-4);
    left: calc(-1 * var(--gap-2));
    background-color: var(--color-action);
    color: var(--color-action-t);
    padding: var(--gap-button-v) var(--gap-button-h);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-text);
    font-size: 1.2rem;
    font-weight: var(--font-text-regular);
    text-transform: uppercase;
}
.bloc.hero-home .wrapper .subscribe:hover{
    background-color: var(--color-action-hover);
    color: var(--color-action-t-hover);    
}

/*****************************/
/* BLOC HERO CATEGORY - P0ST */
/*****************************/
.bloc.hero-category,
.bloc.hero-simple{    
    width: 100%;
    height: 350px;
}
.bloc.hero-post{    
    width: 100%;
    height: 225px;
}
.bloc.hero-category .keyword,
.bloc.hero-simple .keyword,
.bloc.hero-post .keyword{
    position: absolute;
    bottom: -5px;
    right: 0;
    font-weight: var(--font-title-bold);
    font-size: 4rem;
    line-height: 2.8rem;
    text-transform: uppercase;
    width: 50%;
    padding-right: var(--gap-2);
    text-align: right;
    border-bottom: 5px solid var(--color-black);    
}

/*****************/
/* BLOC FEATURED */
/*****************/
.bloc.featured{
    width: 100%;
    height: var(--height-bloc);
    display: flex;
    flex-direction: row;
    align-items: center;
}
.bloc.featured div.left{
    position: relative;
    width: 80%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bloc.featured div.left .text{
    position: relative;    
    width: 50%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: var(--gap);
    padding-right: var(--gap-2);
    color: #FFF;
}
.bloc.featured div.left .text h2{
    color: #FFF;
    font-size: 2rem;
    text-align: left;
    width: 100%;
    padding-bottom: var(--gap);
    border-bottom: 1px solid #FFF;
}
.bloc.featured div.left .text p{
    color: #FFF;
    padding-top: var(--gap);
}
.bloc.featured div.left a.absolute{
    bottom: var(--gap);
    right: var(--gap-3);    
}
.bloc.featured div.left .featured{
    height: 100%;
    width: 50%;
    position: relative;
}
.bloc.featured div.left .featured span{
    display: inline-block;
    width: 100%;
    text-align: center;
    color: rgba(0,0,0,0.75);
    transform: rotate(90deg);
    transform-origin: 0px 0px;    
    font-size: 5rem;
    font-family: var(--font-title);
    position: absolute;
    top: 0;
    left: 55px;
    /* ANVIE + */
    text-shadow: 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF;

}

.bloc.featured div.right{    
    width: calc(20% + var(--gap));    
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap);
    margin-right: calc(-1 * var(--gap-2));
    margin-left: var(--gap);
}

.bloc.featured div.right .cat{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    width: 100%;
    position: relative;
    color: #FFF;
    background-color: #0000001A;
}
.bloc.featured div.right .cat:hover{
    background-color: #000000CC;
}
.bloc.featured div.right.categories-1 .cat{
    height: var(--height-bloc);
}
.bloc.featured div.right.categories-2 .cat{
    height: calc( var(--height-bloc) / 2 );
}
.bloc.featured div.right.categories-3 .cat{
    height: calc( var(--height-bloc) / 3 );
}
.bloc.featured div.right.categories-4 .cat{
    height: calc( var(--height-bloc) / 4 );
}
.bloc.featured div.right.categories-5 .cat{
    height: calc( var(--height-bloc) / 5 );
}
.bloc.featured div.right.categories-6 .cat{
    height: calc( var(--height-bloc) / 6 );
}

.bloc.featured div.right .cat .keyword{
    padding: var(--gap);
    font-weight: var(--font-text-regular);
    font-size: 1.2rem;
    text-transform: uppercase;    
}

/**************/
/* BLOC POSTS */
/**************/
.bloc.posts{
    min-height: var(--height-bloc);
    width: 100%;
    margin-top: var(--gap);    
}
.bloc.posts .wrapper{
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);  
}
.bloc.posts .wrapper .box{
    position: relative;
    height: var(--height-bloc);
}
.bloc.posts .wrapper .box.action{
    flex: 1;        
    margin-left: calc(-1 * var(--gap-2));
    display: flex;
    flex-direction: column;
    gap: var(--gap);    
}

.bloc.posts .wrapper .box.action a{
    height: 100%;
    width: 100%;
    background-color: var(--colortrans-action);
    color: var(--color-action-t);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;    
}
.bloc.posts .wrapper .box.action.half a{
    height: 50%;
}

.bloc.posts .wrapper .box.action a .ctitle{
    font-size: 2.5rem;
    font-weight: var(--font-title-bold);
    font-family: var(--font-title);
    padding: var(--gap-xs) var(--gap);    
    text-align: center;
}
.bloc.posts .wrapper .box.action a .ctext{
    font-size: var(--font-p);
    padding: 0 var(--gap);
    text-align: center;
}

.bloc.posts .wrapper .box.action a:hover{
    background-color: var(--color-action);    
}

.bloc.posts .wrapper .box.action p{
    color: #FFF;
}

.bloc.posts .wrapper .box.square{
    width: var(--height-bloc);
    display: flex;
    align-items: flex-end;
}
.bloc.posts .wrapper .box.rectangle{
    width: calc( 100% - var(--height-bloc) - var(--gap) );
    display: flex;
    align-items: flex-end;
}
.bloc.posts .wrapper .box .text{
    padding: var(--gap);
    margin-bottom: var(--gap-2);
    width: 100%;
    height: 190px;
}
.bloc.posts .wrapper .box .text h3{
    font-size: 1.7rem;
    padding-bottom: var(--gap);
}
.bloc.posts .wrapper .box .text p{
    position: relative;
    font-size: 1.4rem;
    padding-bottom: var(--gap);
}
.bloc.posts .wrapper .box .text .link{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.bloc.posts .wrapper .box .text .line{
    width: 50%;
    height: 2px;
}
.bloc.posts .wrapper .box .text span{
    width: 50%;
    text-align: right;
}

.bloc.posts div.more{
    padding: var(--gap-6) var(--gap-2) var(--gap-2) var(--gap-2);    
    display: flex;
    justify-content: center;
}
.bloc.posts div.more .button{
    background-color: var(--color-black);
    color: var(--color-white);
    padding:   var(--gap-button-v) var(--gap-button-h);
    border: 1px solid var(--color-black);
    cursor: pointer;
    transition: all 300ms ease-in-out;
}
.bloc.posts div.more .button:hover{
    background-color: var(--color-white);
    color: var(--color-black);    
}

/******************/
/* BLOC SEPARATOR */
/******************/
.bloc.separator{
    width: 100%;    
    height: 100px;
    margin-top: var(--gap-4);    
}
.bloc.separator .wrapper{
    position: relative;        
    height: 100px;    
    
}
.bloc.separator.share .wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: var(--font-title-bold);  
}
.bloc.separator.share .social{
    margin-left: var(--gap-2);
}
.bloc.separator.share .social a {
    margin-left: var(--gap);    
}
.bloc.separator.share .social a svg{
    transition: all 100ms ease-in-out;
}
.bloc.separator.share .social a:hover svg{
    transform: rotate(45deg);
}

/******************/
/* BLOC SEO LEFT */
/******************/
.bloc.seo-left{
    width: 100%;    
    padding: var(--gap-4) var(--gap-4) 0 var(--gap-4);   
}
.bloc.seo-left .wrapper{
    display: flex;
    align-items: flex-start;
    width: 100%;
    flex-wrap: wrap;    
}
.bloc.seo-left h1,
.bloc.seo-left h2{
    width: 100%;    
    text-align: right;
    font-size: 4rem;
    line-height: 3.5rem;
    text-transform: none;
    font-weight: var(--font-text-bold);
    margin-bottom: 0;
}
.bloc.seo-left .author{
    padding-top: var(--gap-2);
}
.bloc.seo-left .author p{
    width: 100%;    
    text-align: right;    
    font-weight: var(--font-text-bold);
}
.bloc.seo-left .half{
    width: 50%;
    padding-left: var(--gap);    
    padding-right: var(--gap);
}
.bloc.seo-left .half a{
    text-decoration: underline;
}
.bloc.seo-left .half a:hover{
    color: var(--color-action);
}

/******************/
/* BLOC IMG FULL */
/******************/
.bloc.image-full{
    height: 600px;    
    width: 100%;
}

/*******************/
/* BLOC SEO FULL   */
/*******************/

.bloc.seo-full{
    width: 100%;    
    padding: var(--gap-4) var(--gap-4) 0 var(--gap-4);   
}

.bloc.seo-full h2{
    margin-top: var(--gap-3);
    margin-bottom: var(--gap);
}
.bloc.seo-full h3,
.bloc.seo-full h4,
.bloc.seo-full h5,
.bloc.seo-full h6{
    margin-top: var(--gap-2);
    margin-bottom: var(--gap-xs);
}
.bloc.seo-full > h2:first-child,
.bloc.seo-full > h3:first-child,
.bloc.seo-full > h4:first-child,
.bloc.seo-full > h5:first-child,
.bloc.seo-full > h6:first-child{
    margin-top: 0;
}

.bloc.media-image,
.bloc.media-video,
.bloc.media-audio{
    margin-top: var(--gap-4);
    width: 100%;
}
.bloc.media-audio{
    display: flex;
    align-items: center;
    justify-content: center;
}
.bloc.media-image.border,
.bloc.media-video.border{
    padding: 0 var(--gap-4);
}

.bloc.media-image.limit-width,
.bloc.media-video.limit-width{
    display: flex;    
    justify-content: center;
} 
.bloc.media-image img{
    width: 100%;
    object-fit: cover;    
}
.bloc.media-image.limit-height img{    
    max-height: 400px;    
}

.bloc.media-image.limit-width img{        
    max-width: 500px;    
}
.bloc.media-video iframe{
    width: 100%;
    height: 400px;
}

.bloc.media-video.limit-width iframe{        
    max-width: 500px;    
}

.bloc.uniq-form{
    margin-top: var(--gap-4);
    padding: 0 var(--gap-4);
    width: 100%;
}

@media (max-width: 1024px) {  
    #contents.shadow:after, footer.shadow:after,
    #contents.shadow:before, footer.shadow:before{
        box-shadow: none;
        content: none;
        height: auto;
        top: 0;
        right: 0;
        width: 0;
    }
    .bloc.featured div.right{
        margin-right: 0;
    }
    .bloc.posts .wrapper .box.action{
        margin-left: 0;
    }
    .bloc.hero-home .wrapper .subscribe{
        left: 0;

    }
}

/*
@media (max-width: 767px) {
    .bloc.hero-home .wrapper{
        margin: auto;
        width: 600px;
        background-color: #FFF;
        padding-bottom: var(--gap);
        overflow: hidden;
    }
}
*/

@media (max-width: 820px) {

    #contents.shadow:after, footer.shadow:after,
    #contents.shadow:before, footer.shadow:before{
        box-shadow: none;
        content: none;
        height: auto;
        top: 0;
        right: 0;
        width: 0;
    }

    .bloc.hero-home .wrapper{
        width: 100%;
        padding: 0 var(--gap);
    }
    .bloc.hero-home .wrapper .subscribe{
        display: none;
    }
    .bloc.hero-home .wrapper p{
        border-bottom: none;
    }
    .bloc.featured{
        flex-direction: column;
        height: auto;
    }
    .bloc.featured div.left{
        width: 100%;
        height: 50vh;
    }
    .bloc.featured div.left .text{
        width: 100%;
        background-color: rgba(0,0,0,0.60);
    }
    .bloc.featured div.left .featured{
        display: none;
    }
    .bloc.featured div.right{
        width: 100%;
        margin:var(--gap) 0 0 0;
    }
    .bloc.posts .wrapper .box.square,
    .bloc.posts .wrapper .box.rectangle {
        width: 100%;
        margin: 0 var(--gap);
        height: 50vh;
    }
    .bloc.seo-left{
        padding: var(--gap-4) 0 var(--gap) 0;
    }
    .bloc.seo-left .wrapper{
        flex-direction: column;
    }
    .bloc.seo-left .half{
        width: 100%;
    }

    .bloc.seo-left h1, .bloc.seo-left h2{
        padding-bottom: var(--gap-2);
    }
    .bloc.seo-left h1, .bloc.seo-left p{
        text-align: justify;
    }
    .bloc.seo-full{
        padding: var(--gap-4) var(--gap) 0 var(--gap);
    }
        .bloc.seo-full p{
        text-align: justify;
    }

    .bloc.seo-left .author{
        padding-top: 0;
        padding-bottom: var(--gap-2);
    }
    .bloc.separator.share .wrapper{
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .bloc.separator.share .social{
        margin-left: 0;
        margin-top: var(--gap-xs);        
    }
    .bloc.separator.share .social a:nth-child(1){
        margin-left:0;
    }

    .bloc.posts .wrapper .box{
        height: auto;
    }
    .bloc.posts .wrapper .box.action{
        margin: 0;
    }
    .bloc.posts .wrapper .box.action.half a {
        height: 50vh;
    }
    .bloc.posts .wrapper .box.action a .ctitle{
        margin-bottom: var(--gap-2);
    }

    .bloc.hero-category .keyword,
    .bloc.hero-simple .keyword,
    .bloc.hero-post .keyword{
        right: initial;
        left: 0;
        width: 100%;
        padding-right: var(--gap);
        padding-left: var(--gap);
        text-align: center;
    }

    .bloc.uniq-form{
        padding: var(--gap);
    }

}

