/*
font-family: 'Inter', sans-serif;
font-family: 'Cardo', serif;
font-family: 'Libre Franklin', sans-serif;

font-family: "Raleway", sans-serif;
font-optical-sizing: auto;
*/

:root {
    --brand-primary: #b2300d;
}

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

b, strong {
    font-weight: 700;
}

.entry-content ul,
.entry-content ol {
    /* margin: 0 0 3rem 3rem; */
}

ul {
    list-style: disc;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Inter', sans-serif;
}

.singular h1.entry-title,
.singular .entry-content h2,
.singular .entry-content h3,
.singular .entry-content h4,
.singular .entry-content h5,
.singular .entry-content h6 {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
}

/* 
Ces règles faisaient partie de la précédente
.entry-content cite,
.entry-content figcaption,
.entry-content table,
.entry-content address,
.entry-content .wp-caption-text,
.entry-content .wp-block-file
*/


h1,
h2,
h3,
h4,
h5,
h6,
.faux-heading {
	font-feature-settings: "lnum";
	font-variant-numeric: lining-nums;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 3.5rem 0 2rem;
}

@media (min-width: 992px) {
    .entry-content h1,
    .entry-content h2,
    .entry-content h3 {
        margin: 2rem auto 0.7rem;
    }
}

.button-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1.5rem;
}

.entry-content li {
    padding-left: 1rem;
}



html,
body {
    /* min-height: 100vh; */
}

body {
    /* font-family: "Roboto", sans-serif; */
    background: #fff;

    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

body.row {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto 1fr auto;
}

.entry-header {
    grid-area: entry-header;
}

.entry-image {
    grid-area: entry-image;
}

.featured-media {
    grid-area: featured-media;
}

figcaption {
    grid-area: figcaption;
}

.credit-photo {
    grid-area: credit-photo;
}

.entry-content {
    grid-area: entry-content;
}

.entry-title {
    grid-area: entry-title;
}

.download-teaser {
    grid-area: download-teaser;
}

.wp-block-list {
    max-width: 43.5rem !important;
    margin-left: 1em !important;
}



/* Main Header
------------------------------------------------------------------------------*/

.site-header {
    grid-row: 1;
    grid-column: 1;

    display: grid;
    grid-template-rows: 3.5em 1fr;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
        "logo logo"
        "top-pages admin";
    padding: 0.3em 1.4em 0.6em;
    gap: 1.2rem 0;

    background: #fff;
}

.sales-shortcut {
    grid-area: sales-shortcut;
    margin-bottom: 0.6rem;
    background: black;
    padding: 0.5rem 0.3rem;
    display: flex;
    justify-content: end;
}

#logo {
    justify-self: center;
    align-self: stretch;
    object-fit: cover;
    grid-column: 1 / -1;
    grid-row: 1;
    grid-area: logo;
    
    /* height: 100%;
    text-align: center; */
}

#logo img {
    height: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.icons-social {
    display: none;
    grid-area: icons-social;
    /* grid-column: 1;
    grid-row: 2;
    justify-self: start; */
}

.top-pages {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    justify-content: start;
    column-gap: 0.85em;
    grid-area: top-pages;
}

.admin {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    display: flex;
    justify-content: center;
    column-gap: 0.85em;
    grid-area: admin;
}

.site-header .icons-social,
.top-pages,
.admin {
    column-gap: 0.5em;
    column-gap: 1.2em;
    list-style: none;
    align-items: center;
}

.icons-social a,
.top-pages a,
.admin a {
    color: rgba(178, 49, 14, 0.86);
    color: #b2300d;
    font-size: 1rem;
}

.admin .lang-item img {
    width: 23px !important;
    height: 23px !important;
    max-width: unset;
    border-radius: 50%;
}

@media (min-width: 992px) {

    .site-header {
        grid-template-columns: auto 1fr auto 1fr auto auto;
        grid-template-rows: 3.6em;
        grid-template-areas: "icons-social . logo . top-pages admin";
        align-items: center;
        gap: 0;
        padding: 0.5em 3em;
    }

    .sales-shortcut {
        column-gap: 0.85em;
    }

    .icons-social {
        display: flex;
        grid-column: 1;
        grid-row: 1;
    }

    #logo {
        grid-column: 3;
        grid-row: 1;
    }

    .top-pages {
        grid-column: -2;
        grid-row: 1;
        margin-right: 1.2em;
    }

    .admin {
        grid-column: -1;
        grid-row: 1;
    }
}

/* Main
------------------------------------------------------------------------------*/
.hero {
    margin-top: 1rem;
    display: grid;
    grid-template-rows: 17em auto;
    grid-template-areas: "image" "text";
}

.hero-background {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    background: #ebeae4;
}

.hero-text {
    grid-area: text;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 1em 0.8em;
} 

.hero-text a {
    text-decoration: none;
    color: #000;
}

.hero-title {
    line-height: 1.2;
    font-family: "Cardo", serif;
    font-size: 2em;
}

/* .hero-title a {    
    text-decoration: none;
    font-family: 'Cardo', serif;
    font-size: 2em;
    color: #000;
    line-height: 1.2;
} */

.hero-excerpt {
    margin: 1em 0;
    max-width: 28rem;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.4;
}

.hero-excerpt b,
.hero-excerpt strong {
    font-weight: 400;
}

.hero-excerpt em,
.hero-excerpt i {
    font-style: normal;
}

.hero .wp-block-gallery {
    display: none;
}

.hero-read-more {
    margin-top: 1em;
    text-transform: uppercase;
    border-bottom: 1px solid #000;
    padding-bottom: 0.1em;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
}

.hero-image {
    grid-area: image;
    justify-self: stretch;
    align-self: stretch;
    object-fit: cover;
}

@media (min-width: 992px) {
    .hero {
        grid-template-columns: 1em 1fr 900px 1em;
        grid-template-rows: 500px 5em;
        grid-template-areas:
            ". text image ."
            ". . image .";
    }

    .hero-background {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
    }

    .hero-text {
        grid-area: text;
    }

    .hero-excerpt {
        line-height: 1.6;
    }

    .hero-image {
        grid-area: image;
        justify-self: stretch;
        align-self: stretch;
        object-fit: cover;
    }

    .hero-read-more {
        margin-top: 0.2em;
    }
}

/*
** Marketing
*/

.marketing {
    padding: 1em 0.8em;
    display: flex;
    justify-content: space-around;
    gap: 0;
    width: 100%;
    max-width: 100%;
}

.magazines {
    grid-column: 1 / 2;
    flex: 0 0 10rem;
}

.coups-de-coeur {
    grid-column: 3 / 4;
    flex: 0 0 10rem;
}

.owl-carousel {
    /* max-width: 10.8em; */
    width: 10rem;
}

/*
** Magazines
*/

.magazines-content {
    /* display: grid;
    gap: 1.3em 0;
    padding: 1em 0;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1.3em; */
}

.magazine-article.vertical-card.text-bottom {
    grid-template-rows: 1fr 3.9em;
}

.magazine-article {
    text-decoration: none;
}

.magazine-article .card-body {
    line-height: 1.5;
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #fff;
}

.magazine-article .card-link {
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    color: #b2300d;
    border: 1px solid #b2300d;
}


@media (min-width: 992px) {

    /* .magazines {
        width: 1152px;
        margin: 3.6em auto;
    }

    .magazines-content {
        margin: 0;

        grid-template-columns: repeat(4, 1fr);
        gap: 0 2em;
        align-items: stretch;

        display: flex;
    }

    .magazine-article {
        grid-template-rows: 1fr 2em;
    } */
}


/*
** Coups de coeur
*/

.coups-de-coeur {
    /* padding: 1em 0.8em; */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 3.9em;
    gap: 0.6em 0;
    /* grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 7em; */
    justify-items: center;
    place-items: stretch;
}

.coups-de-coeur h2 {
    /* grid-area: 1 / 1 / -1 / -1; */
    grid-column: 1 / 2;
    grid-row: 2;
    margin: 0;
    place-self: stretch;
    
    border: 1px solid #b2300d;
    display: flex;
    justify-content: center;
    align-items: center;
    /* z-index: 1; */
}

.coups-de-coeur h2 a {
    text-align: center;
    font-weight: 600;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    color: #b2300d;
    text-decoration: none;
    text-transform: uppercase;
    padding-bottom: 0.1em;
    border-bottom: 1px solid white;
}

.coups-de-coeur .overlay {
    grid-area: 1 / 1 / -1 / -1;
    background: rgb(0 0 0 / 55%);
    z-index: 0;
}

.coups-de-coeur-images {
    grid-area: 1 / 1 / 2 / 2;

    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3em;
}

.coups-de-coeur img {
    /* grid-row-start: 1;
    width: 100%;
    object-fit: cover;
    height: 100%;
    max-height: 100%; */

    justify-self: stretch;
    object-fit: cover;
    align-self: stretch;
}

.coups-de-coeur .overlay {
    grid-area: 1 / 1 / -1 / -1;
    background: rgb(0 0 0 / 55%);
    z-index: 0;
}

/* .coups-de-coeur img:first-of-type {
    grid-column-start: 1;
}

.coups-de-coeur img:nth-of-type(2) {
    grid-column-start: 2;
}

.coups-de-coeur img:nth-of-type(3) {
    grid-column-start: 3;
}

.coups-de-coeur img:nth-of-type(4) {
    grid-column-start: 4;
} */

@media (min-width: 992px) {

    .marketing {
        width: 1152px;
        margin: 3.6em auto;
        align-items: stretch;
        justify-content: center;
        gap: 0 3em;

        /* display: grid;
        grid-template-columns: repeat(2, 20rem); */
    }

    .magazines,
    .coups-de-coeur {
        flex: 0 1 23%;
        flex: 0 0 20rem;
    }

    .magazines-content {
        margin: 0;

        grid-template-columns: repeat(4, 1fr);
        gap: 0 2em;
        align-items: stretch;
    }

    .magazine-article {
        grid-template-rows: 1fr 2em;
    }

    .coups-de-coeur {
        /* width: 1152px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 3.5rem; */
        /* grid-template-rows: 8rem; */
        /* font-size: 1.1rem; */
        
    }

    .owl-carousel {
        width: 20rem;
    }
}


/*
** Inscription Newsletter
*/

.inscription-newsletter {
    margin-top: 1em;
    margin-bottom: 2em;
    padding-left: 1.6em;
    padding-right: 1.6em;
}

.inscription-newsletter-inner {
    padding: 1em;
    background: #b2300d;
}

.inscription-newsletter h2 {
    margin: 0;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
}

.inscription-newsletter .content {
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.3em 0;
}

.inscription-newsletter p {
    color: #fff;
    text-align: center;
}

.inscription-newsletter a {
    padding: 1em 1em;
    background-color: #fff;
    font-weight: 900;
    letter-spacing: 1.3px;
    font-size: 1.2rem;
    color: #b2300d;
    text-decoration: none;
}

.inscription-newsletter .legal {
    font-size: 0.7em;
    line-height: 1.3;
    text-align: left;
    margin-top: 1.3em;
}

@media (min-width: 768px) {
    .inscription-newsletter .content {
        flex-direction: row;
        gap: 2.1em;
        justify-content: end;
    }

    .inscription-newsletter p {
        order: 1;
        text-align: left;
        line-height: 1.3;
        flex-basis: 60%;
    }

    .inscription-newsletter p br {
        display: none;
    }

    .inscription-newsletter a {
        order: 0;
        flex-shrink: 0;
    }

    .inscription-newsletter .legal {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }
}

@media (min-width: 992px) {

    .inscription-newsletter {
        margin-top: 1em;
        margin-bottom: 4em;
        padding-left: 1.6em;
        padding-right: 1.6em;
    }

    .inscription-newsletter-inner {
        width: 883px;
        margin-left: auto;
        margin-right: auto;
        padding: 3.5em 0;
    }

    .inscription-newsletter p {
        flex-basis: 52%;
    }

    .inscription-newsletter p br {
        display: block;
    }

    .inscription-newsletter .legal {
        width: 80%;
        padding-left: 0;
        padding-right: 0;
        margin-left: auto;
        margin-right: auto;
    }

}



/*
** Trending articles
*/

.trending-articles {
    padding: 1em 0.8em;
    background: #ebeae4;
}

.trending-articles-header {
    padding: 0.6rem 0 1.3rem;
    /* display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0.3em; */
}

.trending-articles h2 {
    margin: 0;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

.trending-articles-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5em 0;
    /* padding: 1em 2.4em; */
    
}

.trending-article {
    /* height: 300px; */
    text-decoration: none;
}

.trending-articles a {
    text-decoration: none;
    text-transform: uppercase;
    padding-bottom: 0.1em;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    color: #000;
}

.trending-article .card-overlay {
    background: rgb(0 0 0 / 30%);
}

.trending-article .card-body {
    line-height: 1.5;
    /*font-family: "Inter", sans-serif;*/
    /*font-size: 0.85rem;*/
    color: #fff;
    align-self: end;
    margin-bottom: 0.7em;
    /* padding: 0.8rem 1.5rem 1.3rem; */

    font-family: 'Libre Franklin', sans-serif;
    font-weight: 900;
    font-size: 1em;
    letter-spacing: 0.1em;
    border: none;
}

.trending-articles .vertical-card img,
.trending-articles .card-overlay {
    border-radius: 10px;
}

.trending-articles-footer {
    padding: 1.5em 0 0.4em;
    text-align: center;
}

.trending-articles-footer a {
    border-bottom: 1px solid #000;
}

@media (min-width: 992px) {

    .trending-article.vertical-card {
        flex: 0 1 23%;
    }

    .trending-articles-inner {
        width: 1152px;
        margin: 3.6em auto;
    }

    .trending-articles-header {
        flex-direction: initial;
        justify-content: space-between;
        align-items: center;
        padding: 3.5rem 0 2rem;
    }

    .trending-articles-container {
        margin: 0;
        padding: 1.4em 0 1em;
        grid-template-columns: repeat(3, 1fr);
        gap: 2em;
        align-items: stretch;
        justify-content: stretch;
    }

    .trending-article {
         height: 235px;
    }

    .trending-articles h2 {
        text-align: initial;
    }
}

/* Footer
------------------------------------------------------------------------------*/

.site-footer {
    /* padding: 0 1em; */
}

/*
Menus
*/
.menus {
    display: grid;
    justify-content: center;
    gap: 1.5rem 6rem;
    padding: 1.5rem 1.4rem;
    background: rgba(0, 0, 0, 0.23);
}

.menu {
    list-style: none;
}

.menu li ~ li {
    margin-top: 0.6rem;
}

.menu a {
    border-bottom: 1px dotted #000;
    text-decoration: none;
    /* text-transform: uppercase; */
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #000;
}

.partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, 7rem);
    justify-content: center;
    justify-items: stretch;
    align-items: stretch;
    object-fit: cover;
    padding: 1em;
}

.partners img {
    width: 100%;
    object-fit: cover;
}

.author {
    grid-row: 3;
    grid-column: 1;

    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;

    background: #000000a3;
    color: white;
    padding: 0.9rem 1.4rem;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
}

.author a {
    padding-bottom: 0.1rem;
    border-bottom: 1px solid;
    text-decoration: none;    
    font-size: 0.8rem;
    color: #fff;
}

@media (min-width: 992px) {

    .menus {
        padding: 1.5rem 3rem;
        grid-template-columns: 1fr auto 1fr;
    }

    .menus > div:first-of-type {
        justify-self: end;
    }

    .menu a {
        font-size: 0.9rem;
    }

    .partners {
        grid-template-columns: repeat(auto-fit, 11rem);
    }

    .author {
        padding: 0.7rem 3rem;
        grid-template-columns: 1fr 1fr;
        justify-items: baseline;
        gap: 0 2.5rem;
    }

    .copyright {
        justify-self: end;
    }
}

/* Single ou Singular
------------------------------------------------------------------------------*/

.singular .entry-header-inner,
.category .entry-header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "entry-categories entry-categories"
        "download-teaser entry-title";
    gap: 0.9rem 0;
    align-items: center;
}

.entry-categories {
    margin-bottom: 0;
    grid-area: entry-categories;
}

.download-teaser {
    margin-right: 0.5rem;
}


/* peut-être préciser .singular */
#site-content {
    padding: 1.2rem 1.4rem;
}

.singular article.type-download {
    display: grid;
}

.entry-categories-inner {
    margin: 0;
    align-items: baseline;
    font-family: 'Inter', serif;
}

.singular .entry-header a {
    margin: 0;
    border-bottom: none;
    font-size: 0.9rem;
        
}

/* Cette règle va avec la précédente */
.singular:not(.overlay-header) .entry-header a {
    color: #6d6d6d !important;
}

.singular .entry-header .download-teaser {
    display: block;
    margin-top: 1em;
    
    grid-area: download-teaser;
    margin-top: 0;
}

.singular article {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "header"
        "entry-image"
        "entry-content"
        "aside"
        "inner"
        "pagination";
    gap: 1.2em 0;
}

.singular .entry-header {
    padding: 0;
    grid-area: header;
}

/* utilisé pour singular article */
h1.entry-title {
    margin: 0 0  1rem 0;
    font-family: 'Cardo', serif;
    font-size: 2.3rem;
    /* font-size: 2rem;
    font-weight: 600; */
    letter-spacing: 0;
    line-height: 1.15;

    grid-area: entry-title;
}

.singular .entry-image {
    grid-area: entry-image;
    justify-self: center;
    font-family: 'Inter', sans-serif;
    color: #6d6d6d;

    display: grid;
    grid-template-areas:
        "featured-media"
        "credit-photo"
        "figcaption";
    gap: 0.3em 0;
    /* justify-items: center; */
}

.singular .featured-media {
    justify-self: center;
    align-self: stretch;
    object-fit: cover;
    grid-area: featured-media;
}

.singular figcaption {
    grid-area: figcaption;
    justify-self: center;
    margin-top: 0;
    font-size: 1rem;
    /* text-align: center; */
}

.credit-photo {
    grid-area: credit-photo;
    font-size: 0.9rem;
}

.credit-photo::before {
    content: "\0000A9 ";
}

.singular aside {
    grid-area: aside;
    justify-content: center;
}

.singular .post-meta.no-margin {
    margin: 0;
}

.singular aside a {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 0.8rem;
    font-size: 1.2rem;
}

.avatar {
    border-radius: 50%;
}

.singular .entry-content {
    grid-area: entry-content;
    /*font-family: 'Inter', serif;*/
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-size: 1.2rem;
}

/* Pour supprimer les dimensions sur les enfants de entry-content */
.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: unset;
    width: 100%;
}

.singular .entry-content h3 {
    font-size: 1.3rem;
}

.singular .entry-content p {
    max-width: none !important;
    width: auto !important;
    margin-bottom: 0;
    /*font-family: 'Inter', serif;*/
    /* font-size: 1.4rem; */
    line-height: 1.4;
}

.singular .entry-content p ~ p {
    margin-top: 0.7em;
}

.singular .entry-content p a {
    color: inherit;
}


.singular .entry-content .button {
    margin-top: 1em;
    padding: 1rem;
    font-size: 1rem;
}



.singular .section-inner {
    grid-area: inner;
    width: auto;
}

.singular .pagination-single {
    grid-area: pagination;
    width: initial;
    margin-top: 0;
}

.singular .pagination-single a {
    font-size: 1.3rem;
    font-weight: 200;
    color: #6d6d6d;
}

@media (min-width: 992px) {

    #site-content {
        margin-top: 1em;
        padding: 0 0 1.2rem; /* sur la page d'un article */
        /* avant : padding: 0 3rem 1.2rem; */
    }

    .singular article {
        grid-template-columns: 15rem auto 1fr 15rem;
        grid-template-areas:
            "entry-image entry-image entry-image entry-image"
            ". . header ."
            ". aside entry-content ."
            ". inner inner ."
            ". pagination pagination .";
        gap: 1.2em;
    }

    .singular .section-inner {
        max-width: unset;
        width: unset;
        padding: 0 3rem;
    }

    .download-teaser {
        margin-right: 1.5rem;
    }

    .singular .entry-image {
        /*height: calc(100vh - 6.6em);*/
        /*grid-template-columns: 1fr;*/
        /*grid-template-rows: 92% auto 1fr;*/
        grid-template-areas:
            "featured-media featured-media"
            "figcaption credit-photo";
        /* align-items: center; */
        grid-template-columns: 1fr 1fr;
        align-content: start;
        justify-items: center;
    }

    .singular .featured-media {
        object-fit: cover;
        justify-self: stretch;
    }

    .singular .entry-image .featured-media {
        /*width: auto;*/
        /*max-height: 100%;*/
        height: 38em;
    }

    .singular figcaption {
        justify-self: start;
    }

    .singular .credit-photo {
        /* justify-self: end; */
    }

    .singular .entry-content {
        padding: 0 3rem;
        font-size: 1.1rem;
        justify-self: end;
    }

    .singular .entry-content p {
        /*line-height: 1.4;*/
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .singular .entry-content .button {
        /*display: block;*/
        /*width: auto !important;*/
    }
}

/* PAGE PURCHASE HISTORY (edd-purchase-history */
.edd-purchase-history.singular article aside {
    display: none;
}

.edd-purchase-history.singular article {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "header"
        "entry-image"
        "entry-content"
        "aside"
        "inner"
        "pagination";
    gap: 1.2em 0;
}

@media (min-width: 992px) {
    .edd-purchase-history.singular article {
        grid-template-columns: 15rem 1fr 15rem;
        grid-template-areas:
            "entry-image entry-image entry-image"
            ". header ."
            ". entry-content ."
            ". inner ."
            ". pagination .";
        gap: 1.2em;
    }

    .edd-purchase-history.singular .entry-content {
        justify-self: center;
    }
}



.blocks-gallery-grid .blocks-gallery-item figcaption {
    max-height: 9vh;
    padding: 0.3em;
    font-size: 0.6em;
    line-height: 1.2;
    text-align: left;
}


/* Team (ou equipe)
------------------------------------------------------------------------------*/

.team {
    padding: 1em 0.8em;
    font-family: 'Inter', sans-serif;
    /* background: lightcoral; */
}

.team-inner {
    
}

.team-content {
    width: 80%;
    margin-left: auto;
    margin-right: auto;

    display: flex;
    flex-direction: column;
    gap: 2.8em 0;
}

.singular article.team-member {
    position: relative; /* nécessaire pour garder la barre de séparation */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2em;

    /* grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-items: center;
    align-content: start;
    gap: 0; */
    /* grid-template-areas:
        "team-member-picture"
        "team-member-name"
        "team-member-social-networks"
        "team-member-presentation"; */
}

.singular article.team-member ~ .team-member::before {
    content: '';
    border-bottom: 1px solid #a7a7a7;
    position: absolute;
    left: 0;
    right: 0;
    top: -1.4em;
}

.team-member-image {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    justify-items: center;
    grid-area: team-member-image;
}

/* .team-member-image {
    margin-top: 0.9em;
} */

.team-member-picture {
    border-radius: 50%;
    /* grid-area: team-member-picture; */
}

.team-member-name {
    font-size: 1.1em;
    margin: 0;
    /* grid-area: team-member-name; */
}

/* h3 */
.team-member-fonction {
    margin: 0;
    font-weight: 500;
}

.team-member-presentation p {
    line-height: 1.3em;
}

.team-member-presentation p ~ p {
    margin-top: 0.3em;
}

/* ul */
.team-member-social-networks {
    list-style-type: none;
    display: flex;
    gap: 0.9em;
    /* grid-area: team-member-social-networks; */
}

.team-member-name ~ .team-member-social-networks {
    /* margin-top: 1rem; */
}

.team-member-presentation {
    /* grid-area: team-member-presentation; */
}

.team-member-social-networks ~ .team-member-presentation {
    /* margin-top: 0.7em; */
}

/* links */
.team-member-social-network,
.team-member-email {
    color: #607d8b;
}

.team-member-social-network i,
.team-member-email i {
    font-size: 1.5em;
}


@media (min-width: 992px) {

    body.page-template-template-page-equipe {
        align-items: center;
    }

    .team-inner {
        width: 1152px;
        margin: 3.6em auto;
    }

    .team-content {
        width: auto;
        margin-left: unset;
        margin-right: unset;

        flex-direction: row;
        justify-content: center;
        gap: 1.6em 4em;
    }

    .singular article.team-member {
        flex: 0 0 25%;
        grid-template-columns: 1fr;
        grid-template-areas:
        "team-member-picture"
        "team-member-name"
        "team-member-social-networks"
        "team-member-presentation";
    }

    .singular article.team-member ~ .team-member::before {
        display: none;
    }

    .team-member-picture {
        /* width: 65%; */
        /* width: 190px;
        height: 190px; */
    }

    .team-member-name {
        font-size: 1.4em;
    }

    .team-member-presentation {
        font-size: 1.05em;
        flex-grow: 1;
    }
}




/* TEMPLATE NARROW WIDTH
------------------------------------------------------------------------------*/
.page-template-template-page-narrow-width.singular article {
    grid-template-columns: 1fr;
    grid-template-areas:
        "header"
        "entry-image"
        "entry-content";
}

.page-template-template-page-narrow-width.singular aside {
    display: none;
}


@media (min-width: 992px) {

    .page-template-template-page-narrow-width #site-content {
        margin-top: 1vh;
    }

    .page-template-template-page-narrow-width.singular article {
        grid-template-rows: repeat(3, auto);
        grid-template-columns: 1fr minmax(30rem, 58rem) 1fr;
        grid-template-areas:
            ". header ."
            ". entry-image ."
            ". entry-content .";
    }

    .page-template-template-page-narrow-width.singular .entry-image {
        height: unset;
        max-height: 49vh;
    }

    .page-template-template-page-narrow-width.singular .mwc-wide-text .entry-content {
        justify-self: stretch;
    }

    .page-template-template-page-narrow-width.singular .entry-content {
        padding: 0;
        justify-self: center;
    }
}



/* TEMPLATE PAGE TOUS LES ARTICLES
------------------------------------------------------------------------------*/

.page-template-template-page-all-articles h1 {
    margin: 0;
    font-family: "Cardo", serif;
    font-size: 2.7rem;
    font-weight: 700;
    text-align: center;
}

.page-template-template-page-all-articles .trending-articles {
    padding: 1.4rem;
    background: none;
}

.page-template-template-page-all-articles .trending-articles-container {
    padding: 0;
}

/*
Version en damier
*/
.page-template-template-page-all-articles .trending-articles-container {
    margin-top: 1.4rem;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.page-template-template-page-all-articles .trending-article .card-body {
    margin: 0 1.5rem 0.7em;
}


@media (min-width: 992px) {

    .page-template-template-page-all-articles h1 {
        margin: 3.5rem 0;
    }

    .page-template-template-page-all-articles .trending-articles-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}


/* TEMPLATE PAGE PHOTO GALLERY
------------------------------------------------------------------------------*/

.page-template-template-page-photo-gallery .site-header,
.page-template-template-page-photo-gallery main {
    background: #000;
    color: #fff;
}

.page-template-template-page-photo-gallery .site-header {
    padding: 1.5em 1.4em 0.5em;
}

.page-template-template-page-photo-gallery .entry-title {
    text-align: center;
}



.page-template-template-page-photo-gallery .articles-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8em;
    padding: 2em 0;
    /* padding: 1.3em 0; */
}

.page-template-template-page-photo-gallery article {
    grid-template-columns: 1fr;
    grid-template-areas: "img" "caption";
}


.page-template-template-page-photo-gallery .articles-wrapper img {
    /* grid-area: img; */
    margin-top: 1.7em;
    padding: 0.3em;
    border: 2px solid #455a64;
}

.page-template-template-page-photo-gallery .articles-wrapper img:first-child {
    margin-top: 0;
}

.page-template-template-page-photo-gallery article .caption {
    grid-area: caption;
    display: flex;
    flex-direction: column;
    gap: 0.6em 0;
    font-size: 1.1em;
    /* display: none; */
}

.page-template-template-page-photo-gallery article .see-more {
    grid-area: 1 / 1 / -1 / -1;
    justify-self: end;
    align-self: start;
    padding: 0.3em 0.7em;
    margin-top: 0.2em;
    margin-right: 0.2em;
    color: #fff;
    background: rgb(0 0 0 / 51%);
}

.page-template-template-page-photo-gallery .caption {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5em 0.3em;
    
}

.caption h2 {
    grid-column: 1 / 3;
    grid-row: 1;
    font-size: 1.2em;
    letter-spacing: 0.6px;
}


.artwork-title {
    grid-area: artwork-title;
}

.artiste-name {
    grid-area: artiste-name;
    grid-column: 1 / 3;
    grid-row: 4;
    font-weight: 600;
}

.img {
    grid-area: img;
}

.artwork-description {
    grid-area: artwork-description;
    grid-column: 1 / 3;
    grid-row: 2;
    text-align: justify;
}

.artwork-size {
    grid-area: artwork-size;
    grid-column: 1;
    grid-row: 3;
}

.artwork-date {
    grid-area: artwork-date;
    grid-column: 2;
    grid-row: 3;
}

.description {
    grid-area: description;
}

.artwork-link {
    grid-column: 1 / 3;
    grid-row: 5;
    font-size: 0.9rem;
    color: #9e9e9e;
}

.page-template-template-page-photo-gallery .share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.1em 1.5em;

    margin-top: 0.1rem;
    background: #101010;
    justify-self: start;
    padding: 0.5rem 0.7rem;
    border-radius: 4px;
}

.page-template-template-page-photo-gallery .share-buttons a {
    color: #9e9e9e;
}

.page-template-template-page-photo-gallery .share-buttons > a {
    font-size: 1.33333em;
}

.page-template-template-page-photo-gallery .share-options {
    /* display: none; */
    display: flex;
    gap: 0 1.5em;
}

.share-buttons-msg {
    flex: 1 100%;
    display: none;
}

.share-buttons-msg-inner {
    display: flex;
    align-items: center;
    line-height: 1.5;
    font-size: 0.85em;
}

.share-buttons-msg i {
    margin-right: 1rem;
}

.share-buttons-msg.error i {
    color: red;
}

.share-buttons-msg.success i {
    color: green;
}

.page-template-template-page-photo-gallery h2,
.page-template-template-page-photo-gallery h3 {
    margin: 0;
}


@media (min-width: 576px) {

    .page-template-template-page-photo-gallery #site-content {
        margin-top: 0;
    }

    .page-template-template-page-photo-gallery h1 {
        margin-top: 1.5rem;
    }

    .page-template-template-page-photo-gallery .articles-wrapper {
        grid-template-columns: repeat(4, 1fr);

        grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
        grid-auto-flow: dense;

        padding: 3.6em 0 3em;
    }


    .page-template-template-page-photo-gallery .articles-wrapper img {
        justify-self: stretch;
        align-self: stretch;
        object-fit: cover;

        margin-top: 0;
        border: 2px solid #455a64;
        padding: 0.6em;
        border-radius: 10px;
    }

    .page-template-template-page-photo-gallery .articles-wrapper img.portrait {
        grid-row: auto / span 2;
    }

    .page-template-template-page-photo-gallery .portrait {
        grid-row: auto / span 2;
    }

    .page-template-template-page-photo-gallery .share-buttons {
        display: none;
        max-width: 15rem;
    }

    .page-template-template-page-photo-gallery .share-buttons.opened {
        width: 15rem;
    }
}


@media (min-width: 768px) {

    .page-template-template-page-photo-gallery .articles-wrapper {        
        grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    }

    .page-template-template-page-photo-gallery .articles-wrapper .caption {
        display: none;
    }
    .page-template-template-page-photo-gallery article .see-more {
        display: none;
    }
}


@media (min-width: 1600px) {

    .page-template-template-page-photo-gallery .articles-wrapper {        
        grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    }
}



/* AGENDA -- page-template-template-page-agenda
------------------------------------------------------------------------------*/

.page-template-template-page-agenda h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

article.type-evenements {
    grid-template-columns: 7rem 1fr;
    grid-template-areas:
        "event-title event-title"
        "img event-date"
        "img event-date-fin"
        "img event-place"
        "img ."
        "event-descriptif event-descriptif";
    gap: 0.7em 1em;
    background: #f5f5f5;
    margin-bottom: 2em;
    line-height: 1.3;
    font-size: 0.9em;
    background: #ebeae4;
    padding: 0.5em;
}

.event-title {
    grid-area: event-title;
    margin: 0 0 0.4em;
    font-size: 1.3em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0 0.5em;
}


.type-evenements img {
    grid-area: img;
    justify-self: stretch;
    align-self: start;
    object-fit: contain;
}

.event-descriptif {
    grid-area: event-descriptif;
}

.event-date {
    grid-area: event-date;
    place-self: center stretch;
    text-align: center;
    padding: 0.3em 0.5em;
    background: #b2300d;
    font-size: 1.2em;
    color: #fff;
}

.event-date-fin {
    grid-area: event-date-fin;
    place-self: center stretch;
    text-align: center;
    padding: 0.3em 0.5em;
    background: #696969;
    font-size: 1.2em;
    color: #fff;
}

.event-date,
.event-date-fin {
    display: flex;
    justify-content: stretch;
    align-items: center;
    gap: 0 0.3rem;
}

.event-place {
    grid-area: event-place;
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 0.7em;
}

.event-link {
    color: #186fb5;
    font-size: 0.8rem;
}


@media (min-width: 992px) {

    .page-template-template-page-agenda h1 {
        margin-bottom: 2.5rem;
    }

    .page-template-template-page-agenda #site-content {
        width: 1152px;
        margin-top: 2.8em;
        margin-left: auto;
        margin-right: auto;
    }

    article.type-evenements {
        grid-template-columns: 9rem auto 1fr;
        grid-template-rows: auto auto 1fr auto;
        grid-template-areas:
            "img event-date event-date-fin"
            "img  event-title event-title"
            "img event-descriptif event-descriptif"
            "img event-place event-place";
        /* grid-template-areas:
            "img event-title event-title"
            "img event-descriptif event-descriptif"
            "event-date event-place event-date-fin"; */
        align-items: start;
        gap: 0.5em 1em;
        font-size: 1em;
    }

    .event-title {
        margin-bottom: 0.5em;
    }

    .event-date {
        justify-self: stretch;
        align-self: center;
        text-align: center;    
        font-size: 0.9em;
        align-items: baseline;
    }

    .event-date-fin {
        justify-self: start;
        align-self: center;
        text-align: center;
        font-size: 0.9em;
        align-items: baseline;
    }

    .event-place {
        align-self: center;
    }

    .event-link {
        font-size: 1rem;
    }

}


/* TEMPLATE CUSTOM POST COUPS DE COEUR
------------------------------------------------------------------------------*/

.single-coups_de_coeur #site-content {
    margin-top: 1em;
}

.single-coups_de_coeur .entry-header-inner {
    grid-template-areas:
        "network-sharers network-sharers"
        ". entry-title";
    justify-items: center;
}

.single-coups_de_coeur .network-sharers {
    grid-area: network-sharers;
    justify-self: stretch;   
}

.single-coups_de_coeur .network-sharers-inner {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    
    padding: 0.6em 1em;
    background: steelblue;
    color: white;
    border-radius: 6px;
}

.single-coups_de_coeur .entry-header .network-sharers-inner a {
    color: #fff !important;
}

@media (min-width: 992px) {

    .single-coups_de_coeur #site-content {
        margin-top: 2.5em;
    }

    .single-coups_de_coeur .network-sharers {
        display: flex;
        justify-content: center;    
    }

    .single-coups_de_coeur .entry-header .network-sharers-inner a {
        margin-left: 1.5em;
    }
}


/* TEMPLATE CUSTOM POST PARTENAIRES
------------------------------------------------------------------------------*/

.template-page-partenaires article i {
    color: gray;
}

.template-page-partenaires article a {
    color: #222;
    text-decoration: none;
    padding-bottom: 0.1em;
    border-bottom: 1px solid lightgray;
    font-family: "Inter", sans-serif;
    word-break: normal;
}

.template-page-partenaires article a:hover {
    border-color: #222;
}

.template-page-partenaires .entry-title {
    text-align: center;
}

.template-page-partenaires .articles {
    padding: 1em 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.4em 0;
}

.template-page-partenaires article {
    flex: 1 1 100%;

    /* Ancien template */
    grid-template-columns: 1fr;
    grid-template-areas: none;
    justify-items: center;

    /* display: flex;
    flex-direction: column;
    align-items: center; */

    padding: 1em;
    border: 1px solid lightgray;
    border-radius: 4px;
}

.template-page-partenaires article img {
    width: 150px;
    height: auto;
    max-height: 170px;
}

.template-page-partenaires .partenaire-title {
    display: flex;
    justify-content: center;
    gap: 1rem 0.5rem;
    text-align: center;
}

.template-page-partenaires .partenaire-title .text {
    font-weight: 800;
}

.template-page-partenaires .partenaire-title a,
.template-page-partenaires .partenaire-title a:hover {
    border-bottom: 0;
}

.partenaire-title a:hover i {
    color: #222;
}

.template-page-partenaires .partenaire-email {
    display: flex;
    align-items: center;
    gap: 0 0.5em;
}

.template-page-partenaires .partenaire-adresse {
    text-align: center;
}

.template-page-partenaires .partenaire-contact {
    display: flex;
    flex-direction: column;
    gap: 0.3em 0;
    font-size: 0.9rem;
}

@media (min-width: 768px) {

    .template-page-partenaires .articles {
        grid-template-columns: repeat(2, 1fr);
        gap: 2em 2em;
    }
}


@media (min-width: 992px) {

    .template-page-partenaires .articles {
        padding: 2.5em;
        grid-template-columns: repeat(auto-fill, minmax(18em, 1fr));
        gap: 3em;
    }

    .template-page-partenaires article {
        flex: 0 1 18em;

        grid-template-rows: 170px repeat(3, auto);
        align-content: start;
    }

    .template-page-partenaires .logo {
        place-self: start center;
    }
}


/* TEMPLATE PAGE WITH EMBED CONTENT
------------------------------------------------------------------------------*/

.template-page-with-embed-content.singular article {
    display: block;
}

.template-page-with-embed-content.singular article .entry-title {
    margin-top: 0.4em;
    text-align: center;
}

.template-page-with-embed-content .wp-block-embed:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.aligncenter) {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.template-page-with-embed-content.singular article .wp-block-group:not(.has-background):not(.alignwide):not(.alignfull) {
    margin-top: 2.4rem;
    margin-bottom: 2.4rem;
}

.template-page-with-embed-content.singular article .wp-block-list {
    margin-left: 1.7em !important;
}

.template-page-with-embed-content.singular article .wp-block-list li {
    padding-left: 0.5em;
}

.template-page-with-embed-content.singular article iframe {
    height: 100vh;
    margin-left: auto;
    margin-right: auto;
    border: none;
    overflow: hidden;
}

@media (min-width: 992px) {

    .template-page-with-embed-content.singular article {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: 15rem;
        margin-right: 15rem;
    }

    .template-page-with-embed-content.singular article .wp-block-group:not(.has-background):not(.alignwide):not(.alignfull) {
        margin-top: 2.4rem;
        margin-bottom: 2.4rem;
    }

    .template-page-with-embed-content.singular article iframe {
        width: fit-content !important;
    }

    .template-page-with-embed-content.singular article .entry-title {
        margin-top: 2em;
    }

    .template-page-with-embed-content.singular article .wp-block-embed {
        margin-top: unset;
    }

    .template-page-with-embed-content.singular .wp-block-embed iframe {
        width: fit-content !important;
    }
}


/*. iframe {*/
/*    width: 100%;*/
/*    height: 100vh;*/
/*    margin-left: auto;*/
/*    margin-right: auto;*/
/*    border: none;*/
/*    overflow: hidden;*/
/*}*/

iframe[title='reCAPTCHA'] {
    width: 284px !important;
}

.rc-anchor-container {
    width: auto !important;
}

rc-anchor-center-container {
    width: 100%;
}