/* Variables */
:root {
    --primary-color: #31404b;
    --accent-color: #f9b719;
    --vert-fonce: #2B818B;
    --vert-clair: #29B49D;
    --violet: #6867AB;
    --rouge: #DC485F;
    --transition-up: .3s;
    --transition-down: .2s;
}

:where(.wp-block-columns.is-layout-flex) {
    gap: 4em;
}

.single-content .wp-block-columns {
    margin-bottom: 0;
}

.section-mots-clefs p:last-child {
    margin-bottom: auto!important;
}

.form-inscription {
    background-color: var(--global-palette8);
    padding: 2em;
    border-radius: 5px;
    max-width: 768px;
}

.form-inscription h2 {
    text-transform: none;
    font-size: 1.4em;
}

.form-inscription ::placeholder {
    color: var(--primary-color);
}

/* Helpers */

.texte-blanc,
.texte-blanc .stat-number,
.texte-blanc .stat-description {
    color: white!important;
}
.texte-noir,
.texte-noir .stat-number,
.texte-noir .stat-description {
    color: black!important;
}

/* Iframe */

iframe {
    width: 100%;
    margin-bottom: -10px;
}

/* Couleurs des colonnes */

/* Assistant médical */
.bg-vert-fonce,
body:not(.single-post) .domaines_formation-assistant-medical {
    background-color: var(--vert-fonce);
}

body.single-post.domaine-assistant-medical .post-hero-section .hero-section-overlay {
    background: linear-gradient(90deg, var(--vert-fonce) 0%, rgba(255, 255, 255, 0) 76%);
}

/* Secrétaire médical */
.bg-vert-clair,
body:not(.single-post) .domaines_formation-secretaire-medical {
    background-color: var(--vert-clair);
}

body.single-post.domaine-secretaire-medical .post-hero-section .hero-section-overlay {
    background: linear-gradient(90deg, var(--vert-clair) 0%, rgba(255, 255, 255, 0) 76%);
}

/* Assistant dentaire */
.bg-violet,
body:not(.single-post) .domaines_formation-assistant-dentaire {
    background-color: var(--violet);
}

body.single-post.domaine-assistant-dentaire .post-hero-section .hero-section-overlay {
    background: linear-gradient(90deg, var(--violet) 0%, rgba(255, 255, 255, 0) 76%);
}

/* Assistant de vie */
.bg-rouge,
body:not(.single-post) .domaines_formation-assistant-de-vie {
    background-color: var(--rouge);
}

body.single-post.domaine-assistant-de-vie .post-hero-section .hero-section-overlay {
    background: linear-gradient(90deg, var(--rouge) 0%, rgba(255, 255, 255, 0) 76%);
}

/* VAE */
.bg-jaune,
body:not(.single-post) .domaines_formation-vae {
    background-color: var(--accent-color);
}

body:not(.single-post) .domaines_formation-vae a:hover,
body:not(.single-post) .domaines_formation-vae .wp-block-post-excerpt__more-link:hover {
    color: black;
}

body.single-post.domaine-vae .post-hero-section .hero-section-overlay {
    background: linear-gradient(90deg, var(--accent-color) 0%, rgba(255, 255, 255, 0) 76%);
}

body.single-post.domaine-vae .post-hero-section .entry-title {
    color: black;
}

.bg-bleu-nuit,
body:not(.single-post) .category-actualites {
    background-color: var(--primary-color);
    color: white;
}

.bg-bleu-nuit h2,
body:not(.single-post) .category-actualites h2 {
    color: white;
}

a.post-more-link:hover {
    color: var(--accent-color);
}

.header-formation {
    position: relative;
}

.header-formation::before {
    content: "";
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 300px;
    height: 200px;
    background: url('/wp-content/themes/CQFD/assets/img/vague-blanche-cqfd-formations.svg') no-repeat center;
    background-size: contain;
    z-index: 1;
}

.listing-formations {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
}

.listing-formations a {
    text-decoration: none;
    display: block;
    padding: 4em 2em;
}

.box-formation {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-grow: 1;
    flex-basis: 25%;
}

.box-formation-image {
    margin-bottom: 1em;
    display: flex;
    justify-content: center;
}

.box-formation-image img {
    height: 80px;
}

.box-formation-titre {
    color: white;
    text-transform: uppercase;
    transition: var(--transition-down);
    text-align: center;
}

.box-formation:hover .box-formation-titre {
    color: var(--primary-color);
    transition: var(--transition-up);
}

/* Swiper */

.cqfd-swiper-container { 
    position: relative; 
    padding: 2em 0 4em; 
}

.cqfd-swiper-container .swiper {
    padding-bottom: 4em;
}

.swiper-button-next, 
.swiper-button-prev { 
    color: var(--primary-color) !important; 
}

.swiper-pagination-bullet {
    width: 30px!important;
    border-radius: 0!important;
    height: 5px!important;
    background: rgb(0 0 0) !important;
    opacity: 1!important;
}

.swiper-pagination-bullet:hover {
    background: var(--accent-color)!important;
}

.swiper-pagination-bullet-active { 
    background: var(--accent-color) !important; 
}

/* Actualités */

body.archive .site-main,
body.single-post article {
    padding: 3em 0;
}

body.single .content-title-style-above .post-hero-section .entry-hero-container-inner {
    background-attachment: fixed!important;
}

body.archive .site-main .entry-header {
    margin-bottom: 0;
}

body.archive .page-title.archive-title {
    margin-bottom: 1em;
}

body.archive .reunion-info p {
    margin: 0;
}

body.archive .entry-summary,
body.archive a.post-more-link {
    color: white;
}

body.archive a.post-more-link:hover {
    color: var(--accent-color)!important;
}

body.single-post .entry-hero.post-hero-section .entry-header {
    min-height: 50vh;
}

body.single-post .reunion-info p {
    margin: 0;
    font-size: 22px;
}

.comment-navigation .nav-previous:after, 
.post-navigation .nav-previous:after {
    display: none;
}

.wp-block-post {
    border-radius: 15px;
    overflow: hidden;
    color: white;
}

.wp-block-post .wp-block-group__inner-container {
    padding: 0 0 2em!important;
}

.wp-block-post .wp-block-group h3,
.wp-block-post .wp-block-group .reunion-info-block,
.wp-block-post .wp-block-group .wp-block-post-excerpt {
    padding: 0 1.3em;
    color: white;
}

.wp-block-post .wp-block-group h3 {
    padding-left: 1em;
}

.wp-block-post .wp-block-group .reunion-info-block,
.wp-block-post .wp-block-group .wp-block-post-excerpt__excerpt {
    margin-bottom: .5em;
    font-size: .9em;
}

.wp-block-post .wp-block-group .reunion-info-block {
    text-transform: uppercase;
    padding-left: 1.4em;
}

.wp-block-post .wp-block-group .wp-block-post-excerpt__more-link {
    color: white;
}

.wp-block-post .wp-block-group .wp-block-post-excerpt__more-link:hover {
    color: var(--accent-color);
}

/* Footer */

footer#colophon section {
    margin-bottom: 20px;
}

footer#colophon h2.wp-block-heading {
    font-size: 1.3em;
    color: var(--accent-color);
    text-transform: uppercase;
}

.pt-50 {
    padding-top: 50px;
}

.pb-50 {
    padding-bottom: 50px;
}

#header-cedric {
    background: deeppink;
    text-align: center;
}

#header-cedric .block-button__link {
    background-color: red!important;
}

.alignfull .wp-block-group__inner-container,
.alignfull .wp-block-cover__inner-container {
    max-width: 1290px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.alignfull .wp-block-cover__inner-container .wp-block-heading {
    margin-bottom: .2em;
}

.section-forme-jaune {
    position: relative;
}

.section-forme-jaune:before {
    content: "";
    position: absolute;
    top: -110px;
    right: 30%;
    width: 300px;
    height: 200px;
    background: url('/wp-content/themes/CQFD/assets/img/bloc-vague-jaune-cqfd-formations.svg') no-repeat center;
    background-size: contain;
}

/* Formulaires */

.section-dossier-candidature ::placeholder {
    color: var(--primary-color);
}

.section-dossier-candidature .nf-field-element input[type="email"] {
    height: 80px;
    border-radius: 50px!important;
    padding-left: 1em;
}

@media(min-width: 650px){
    .section-dossier-candidature .nf-field-container.submit-container {
        margin-top: -5.9em;
        float: right;
        margin-right: 7px;
    }
}

.section-dossier-candidature .nf-form-fields-required {
    display: none;
}

.section-dossier-candidature .nf-error-wrap.nf-error {
    position: absolute;
}

.section-dossier-candidature .nf-error-msg {
    color: #ffc6c4;
}

.nf-before-form-content {
    margin-bottom: 2em;
    font-size: 0.8em;
    font-style: italic;
}

input[type=text], input[type=email], input[type=url], input[type=password], input[type=search], input[type=number], input[type=tel], input[type=range], input[type=date], input[type=month], input[type=week], input[type=time], input[type=datetime], input[type=datetime-local], input[type=color], textarea {
    border-color: var(--primary-color);
}

.nf-error-msg {
    font-size: .9em;
    font-style: italic;
}

.field-wrap.checkbox-wrap .nf-field-label label {
    font-weight: 400;
}

/* Responsive */

@media (max-width: 1024px) {

    .cta-footer,
    .cta-footer h2,
    .cta-footer .nf-form-content {
        text-align: center;
    }

    .entry-content-wrap {
        padding: 2rem 2rem 0;
    }

    .content-area {
        margin-bottom: 0;
    }
}


@media(max-width: 979px){

    .content-area {
        margin-top: 0;
    }

    .entry-content-wrap {
        padding-top: 0;
    }

    .listing-formations {
        flex-direction: column;
    }

    .box-formation {
        flex-basis: 100%;
    }

    .box-formation a {
        display: flex;
        align-items: center;
        padding: 2em;
    }

    .box-formation-image {
        margin-bottom: 0;
        margin-right: 1em;
    }

    .box-formation-image img {
        height: 60px;
    }

    .section-forme-jaune:before {
        content: "";
        position: absolute;
        right: 40%;
        width: 150px;
        height: 200px;
    }

    .section-mots-clefs {
        display: flex;
        flex-direction: column;
    }

    [class*="wp-container-core-post-template-is-layout-"] {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .header-formation::before {
        width: 150px;
        height: 150px;
    }
}
