:root {
    --primary: #53A7B7;
    --body-1: baskerville-poster-pt, serif !important;
    --font-1: brother-1816, sans-serif !important;
    --body-4: brother-1816, sans-serif !important;
}

/*
font-family: brother-1816, sans-serif;
font-family: baskerville-poster-pt, serif;
*/

html,
body {
    position: relative;
    height: 100%;
    /* -webkit-font-smoothing: antialiased; */
}

#page {
    min-height: 100%;
}

/*--------------------------------------------- BOOTSTRAP OVERRIDE */
img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    font-weight: 400;
}

h2 span {
    display: block;
    font-family: brother-1816, sans-serif !important;
    ;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray);
}

h2 {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--secondary);
}

h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -50px;
    width: 100px;
    border-top: 5px solid var(--primary);
}

h2.ce-headline-center:after {
    left: 50%;
    margin-left: -50px;
}

.bg-primary h2,
.bg-secondary h2 {
    color: #FFFFFF;
}


.bg-primary h2.ce-headline-center:after,
.bg-secondary h2.ce-headline-center:after {
    border-top-color: #FFFFFF;
}

.bg-primary p,
.bg-secondary p {
    color: #FFFFFF;
}

.bg-secondary#c176 {
    box-shadow: 0px 30px 15px -20px rgba(0, 0, 0, 0.3) inset,
        0px -30px 10px -20px rgba(0, 0, 0, 0.22) inset;
}

.embed-responsive {
    overflow: visible;
}

blockquote {
    margin: 0rem;
    padding: 0;
    font-style: italic;
    font-family: baskerville-poster-pt, serif !important;
    ;
    font-size: 1.25rem;
}

blockquote:before,
blockquote:after {
    content: "“";
    position: absolute;
    display: inline-block;
    font-family: 'Times New Roman', Times, serif !important;
    ;
    font-size: 6rem;
    font-weight: 700;
    line-height: 0rem;
    color: var(--secondary);
}

blockquote:before {
    left: -40px;
}

blockquote:after {
    content: "”";
    right: 0;
}


/*--------------------------------------------- Classes génériques complémentaires */

p.text-small {
    font-size: 0.8rem;
    font-style: italic;
    color: #666666;
}


/*--------------------------------------------- HEADER */
header#header {
    font-size: 0.9rem;
}

#header.reduced .fixed-top {
    top: 0;
}



/*--------------------------------------------- ENTETE */
@media (min-width:501px) {
    body:not(.layout-system) section.entete {
        position: relative;
        padding-top: 550px;
    }

    section.entete picture {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    body.layout-standard section.entete picture {
        padding-bottom: 80px;
    }
}

@media (min-width:501px) and (max-width:1200px) {
    body:not(.layout-system) section.entete {
        padding-top: 300px;
    }
}

section.entete h1 span.subheader {
    font-family: brother-1816, sans-serif !important;
    font-size: 1rem;
    color: #FFFFFF;
}


section.entete picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/*--------------------------------------------- Main content */
#main-content>div.frame:first-child {
    margin-top: 3rem
}

/*--------------------------------------------- Fluid content */

.ce-gallery figcaption {
    display: table-caption;
    caption-side: bottom;
    text-align: center;
}

.ce-gallery .row{
    align-items: center;
}


@media (max-width:1023px) {

    .ce-left .ce-gallery figure,
    .ce-right .ce-gallery figure {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .ce-left .ce-gallery,
    .ce-right .ce-gallery {
        float: none;
    }

}

.frame.type-image {
    overflow-x: hidden;
}

/*--------------------------------------------- DIAPORAMA */
.diaporama {
    position: relative;
}

@media (max-width: 767px) {
    .diaporama {
        position: relative;
        padding: 0;
    }

    .diaporama * {
        padding: 0;
    }

    .diaporama figure figcaption {
        padding: 0.25rem 0.5rem;
        background: var(--dark);
    }

    .diaporama figure figcaption .numero {
        display: none;
    }
}

@media (min-width: 768px) {
    .diaporama .slick-list {
        overflow: visible;
    }

    .diaporama .slick-arrow {
        position: absolute;
        z-index: 5;
        border: none;
        background: none;
        font-size: 4rem;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        color: #FFFFFF;
        top: 50%;
        line-height: 4rem;
        margin-top: -7rem;
        height: 4rem;
    }

    .diaporama .slick-prev {
        left: 0;
    }

    .diaporama .slick-next {
        right: 0;
    }

    .diaporama figure {
        position: relative;
        padding-bottom: 100px;
        opacity: 1;
        transition: opacity 1s ease-out;
    }

    .diaporama figure img {
        width: 100%;
    }

    .diaporama figure figcaption {
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 66%;
        margin-left: -33%;
        padding: 1rem 2rem;
        background: var(--dark);
        text-align: center;
        opacity: 1;
        transition: opacity 1s ease-out;
    }

    .diaporama figure:not(.slick-current) {
        opacity: 0.5;
    }

    .diaporama figure:not(.slick-current) figcaption {
        opacity: 0;
    }

    .diaporama figure figcaption h3 {
        color: #FFFFFF;
    }

    .diaporama figure figcaption .numero {
        font-style: italic;
    }

    .diaporama figure figcaption .numero .current {
        font-family: baskerville-poster-pt, serif !important;
        font-size: 2rem;
        color: #FFFFFF;
    }

    .diaporama figure figcaption .numero .total {
        color: var(--primary);
    }
}

/*---------------------------------------------  FlipCard */
/* The flip card container - set the width and height to whatever you want. 
We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    perspective: 1000px;
    /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front,
.flip-card-back {
    display: flex;
    /* text-align: center; */
    align-items: center;
    justify-content: center;
}


.flip-card-front {
    background: no-repeat;
    background-size: cover;
}

.flip-card-front h3 {
    color: #FFFFFF;
    font-size: 3rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

/* Style the back side */
.flip-card-back {
    transform: rotateY(180deg);
}

/*---------------------------------------------  Personne */
.personne strong {
    display: block;
}

/*---------------------------------------------  Isntagram */
.c-socialwall__item--instagram {
    text-align: center;
}


/*---------------------------------------------  Google Maps */
#map {
    height: 500px;
}


/*---------------------------------------------  TO TOP LINK */
#toTop {
    position: fixed;
    bottom: 15px;
    right: 20px;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    background: #FFFFFF;
    border-radius: 2rem;
    font-size: 2rem;
    line-height: 2.25rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--primary);
}

/*###################### Embed Video responsive */
.frame.type-textmedia .ce-outer,
.frame.type-textmedia .ce-inner {
    width: 100%;
}

.frame.type-textmedia figure.video {
    width: 100%;
    max-width: 800px;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.video-embed iframe,
.video-embed object,
.video-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/*###################### File Download (Upload)*/
.filelist .miniature img {
    transform: rotate(-3deg);
    box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.5);
}