@font-face {
    font-family: "Jakarta Sans";
    src: url("../fonts/PlusJakartaSans-Regular.woff") format("woff"),
    url("../fonts/PlusJakartaSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Jakarta Sans";
    src: url("../fonts/PlusJakartaSans-SemiBold.woff") format("woff"),
    url("../fonts/PlusJakartaSans-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}
body {
    font-family: "Jakarta Sans", sans-serif;
    font-size: var(--wp--preset--font-size--body);
    scroll-behavior: smooth;
    line-height: 1.5;
}

body p {
    text-wrap: wrap;
}

h1 {
    font-size: var(--wp--preset--font-size--h-1);
}

h2 {
    font-size: var(--wp--preset--font-size--h-2);
    font-weight: 600;
}

h3 {
    font-size: var(--wp--preset--font-size--h-3);
    font-weight: 600;
}

ul, ol {    
    padding-inline-start: 1rem;
}

.wp-block-list li {
    margin-bottom: 0.5rem;
}

:where(a) {
    color: var(--wp--preset--color--primary);
}

.wp-element-caption {
    font-size: var(--wp--preset--font-size--xsmall);
    color: var(--wp--preset--color--text-secondary);
}

body :where(.wp-site-blocks :focus) {
    outline: none;
}

body :where(.wp-site-blocks :focus-visible) {
    outline-width: 2px;
    outline-style: solid;
}

/* ======================================================== */
/* ======================== LAYOUT ======================== */
/* ======================================================== */

.wp-block-template-part {
    margin-block-start: 0;
}

.wp-block-image, 
.wp-block-image img {
    display: block;
}

/* Desktop */
@media (min-width: 782px) {
  :root {
    --wp--preset--font-size--h-2: 1.75rem;
    --wp--preset--font-size--h-1: 2.625rem;
  }
  .padding-lg-desktop {
    padding: var(--wp--preset--spacing--large) !important;
  }
}

/* Layout : Responsive */
@media (max-width: 1024px) {
    .is-style-hide-on-mobile {
        display: none !important;
    }
    .wp-block-column:has(+ .is-style-hide-on-mobile) {
        flex-grow: 1 !important;
    }
    .is-style-tablet-centered {
        text-align: center;
    }
    .is-style-tablet-centered .is-layout-flex {
        justify-content: center;
    }
    .is-style-tablet-centered .is-layout-flex.is-vertical {
        align-items: center;
    }
}
@media (max-width: 780px) {
    body .is-style-columns-on-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .is-layout-fle-reverse-mobile {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .is-style-mobile-centered {
        text-align: center;
    }
    .is-style-mobile-centered .is-layout-flex {
        justify-content: center;
    }
    .is-style-mobile-centered .is-layout-flex.is-vertical {
        align-items: center;
    }
}

/* ======================================================== */
/* ======================== HEADER ======================== */
/* ======================================================== */



header.wp-block-template-part {
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.25s ease;
    background-color: var(--wp--preset--color--base);
    transform: translateY(0%);
}

header.wp-block-template-part.scrolled {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

header.wp-block-template-part.scrolled.down {
    transform: translateY(-100%);
}

body.single-post header.wp-block-template-part {
    background-color: var(--wp--preset--color--base-alternative);
}

header.wp-block-template-part .wp-block-group {
    max-width: 1080px;
    margin: 0 auto;
}

header .nav-button .wp-block-navigation-item__content {
    background: transparent none;
    border-color: var(--wp--preset--color--primary);
    border-width: 2px;
    border-style: solid;
    border-radius: 12px;
    color: var(--wp--preset--color--primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    padding: 8px 16px !important;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

header .nav-button .wp-block-navigation-item__content:hover {
    background-color: var(--wp--preset--color--light-primary);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .nav-button .wp-block-navigation-item__content {
    width: fit-content;
    padding-top: 14px;
    padding-right: 32px;
    padding-bottom: 14px;
    padding-left: 32px;
}

header .nav-button .wp-block-navigation-item__content span {
    color: var(--wp--preset--color--primary);
}

@media (min-width: 1025px) {
    header.wp-block-template-part .wp-block-navigation__container {
        display: contents;
    }
}

/* Force le menu navigation en mode mobile jusqu'a 1024px. */
@media (min-width: 601px) and (max-width: 1024px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }

    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }
}

/* Retour au comportement desktop a partir de 1025px. */
@media (min-width: 1025px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none;
    }

    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: block;
    }

    .wp-block-navigation-is-layout-flex {
        margin-left: auto !important;
    }

    .wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content:hover {
        color: var(--wp--preset--color--primary);
    }

    ul.wp-block-navigation-submenu .wp-block-navigation-item__content {
        transition: background-color 0.25s ease;
    }

    ul.wp-block-navigation-submenu .wp-block-navigation-item__content:hover {
        background: var(--wp--preset--color--base-alternative);
    }
    .wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container {
        min-width: 250px;
    }
    /*  Sous menu */
    header.wp-block-template-part .wp-block-navigation .wp-block-navigation__submenu-container {
        border-radius: 16px;
        box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.1);
        padding: 12px 8px;
    }
    header.wp-block-template-part .wp-block-navigation__container > .wp-block-navigation-item:has(.wp-block-navigation__submenu-container > .wp-block-navigation-item:nth-child(12)) {
        position: static !important;
    }
    header.wp-block-template-part .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
        border-radius: 10px;
    }
    header.wp-block-template-part .wp-block-navigation .wp-block-navigation__submenu-container:has(.wp-block-navigation-item:nth-child(12)) {
        columns: 3;
        column-gap: 12px;
        min-width: 665px;
        display: block;
    }
    header.wp-block-template-part .wp-block-navigation .wp-block-navigation__submenu-container:has(.wp-block-navigation-item:nth-child(12)) .wp-block-navigation-item {
        display: inline-block !important;
        width: 100%;
    }
}

/* Header mobile */
@media (max-width: 1024px) {
    header.wp-block-template-part nav.wp-block-navigation {
        order: 9;
        flex-grow: 0;
    }
    header.wp-block-template-part .wp-block-buttons {
        margin-left: auto;
    }
    .has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog {
        margin-top: 0 !important;
    }
    .wp-block-navigation__responsive-container.is-menu-open {
        bottom: auto;
        height: 100vh;
        height: 100dvh;
    }
    .wp-block-navigation__responsive-container-open {
        padding: 3px;
    }
    .wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg {
        height: 38px;
        width: 38px;
    }
    header.wp-block-template-part .logo,
    header.wp-block-template-part .cta {
        position: relative;
        z-index: 100010;
    }
    .wp-block-navigation__responsive-container-close {
        top: 16px;
    }
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        padding-top: 100px;
    }
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
        padding: 8px 8px 0;
    }
}

/* Text styles */
p {
    margin: 0;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Button styles */
.wp-block-button {
    white-space: nowrap;
}

/* Bouton tag styles */
.wp-block-button.is-style-btn-tag .wp-block-button__link strong,
.is-style-paragraph-tag strong {
    margin-right: 8px;
}

.wp-block-button.is-style-btn-tag .wp-block-button__link::after,
.is-style-paragraph-tag::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    opacity: 0.1;
    border-radius: 50px;
    z-index: -1;
    transition: background-color 0.25s ease;
}

.wp-block-button.is-style-btn-tag .wp-block-button__link:hover::after { 
    background-color: rgb(from currentColor r g b / 40%) !important;
}

/* Separator styles */
.wp-block-separator {
    border: 0;
    height: 1px;
}

/* Annotation styles */
.is-style-text-annotation img {
    margin-right: 4px;
}

/* Carousel slider styles */
/* Track horizontal */
.wp-block-group:has(.wp-block-gallery.is-style-carousel-slider) {
  overflow: hidden;
}
.wp-block-gallery.is-style-carousel-slider {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 3rem;
}
/* Items */
.wp-block-gallery.is-style-carousel-slider .wp-block-image {
    width: auto !important;
  flex: 0 0 auto;
  height: 100px;
}
/* Défilement automatique */
.wp-block-gallery.is-style-carousel-slider {
  width: max-content;
  animation: gallery-marquee 18s linear infinite;
  will-change: transform;
  animation-range: entry 0% cover 75%;
}
/* Pause au survol */
.wp-block-gallery.is-style-carousel-slider:hover {
  animation-play-state: paused;
}
/* Boucle */
@keyframes gallery-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Etape */
@media (min-width: 780px) {
    .wp-block-columns:has(.is-style-big-number) {
        position: relative;
        z-index: 2;
    }
    .wp-block-columns:has(.is-style-big-number):after {
        content: "";
        position: absolute;
        z-index: 1;
        top: 40px;
        left: 12.5%;
        width: 75%;
        height: 2px;
        background: linear-gradient(to right, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--cta-primary) 100%);
    }
}

/* ======================================================== */
/* ======================== QUERY ======================== */
/* ======================================================== */

.wp-block-post-template > .wp-block-group {
    height: 100%;
}

.wp-block-post {
    position: relative;
    transform: translateY(0);
    transition: transform 0.25s ease;
}

.wp-block-post:has(a:hover) {
    transform: translateY(-3px);
}


.wp-block-post .wp-block-post-title a:after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 780px) {
    body.page-template .wp-block-post-template {
        grid-template-columns: repeat(3, 320px) !important;
        margin: 0 -20px;
        padding: 0 20px;
        min-width: 100vw;
        grid-gap: 16px;
        overflow-x: scroll;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        overflow: -moz-scrollbars-none;
        -ms-overflow-style: none;
    }
    body.page-template .wp-block-post-template::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 500px) {
    body.page-template .wp-block-post-template {
        grid-template-columns: repeat(3, calc(100vw - 60px)) !important;
    }
}

/* ======================================================== */
/* ============== TESTIMONIAL / REVIEWS GROUP ============= */
/* ======================================================== */

.is-style-testimonial-group img {
    border-radius: 40px;
}


@media (max-width: 780px) {
    .is-layout-grid:has(.is-style-testimonial-group) {
        grid-template-columns: repeat(3, 320px) !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        padding: 0 20px;
        min-width: 100vw;
        grid-gap: 16px;
        overflow-x: scroll;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        overflow: -moz-scrollbars-none;
        -ms-overflow-style: none;
    }
    .is-layout-grid:has(.is-style-testimonial-group)::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 500px) {
    .is-layout-grid:has(.is-style-testimonial-group) {
        grid-template-columns: repeat(3, calc(100vw - 60px)) !important;
    }
}

/* ======================================================== */
/* ====================== PAGINATION ====================== */
/* ======================================================== */

@media (max-width: 780px) {
    .wp-block-query-pagination .wp-block-query-pagination-previous,
    .wp-block-query-pagination .wp-block-query-pagination-next {
        font-size: 0 !important;
    }
    .wp-block-query-pagination .wp-block-query-pagination-previous span,
    .wp-block-query-pagination .wp-block-query-pagination-next span {
        font-size: var(--wp--preset--font-size--xsmall) !important;
        margin-left: 0;
    }
}

/* ======================================================== */
/* ======================== ARIANE ======================== */
/* ======================================================== */

.rank-math-breadcrumb .last {    
    font-size: var(--wp--preset--font-size--xsmall);
}


.rank-math-breadcrumb .separator {
    display: inline-block;
    padding: 0 12px;
    font-size: 10px;
    font-weight: 100;
    color: var(--wp--preset--color--text-secondary)
}

.rank-math-breadcrumb a {
    text-decoration: none;
    font-size: var(--wp--preset--font-size--xsmall);
}


/* ======================================================== */
/* ======================== TOC ======================== */
/* ======================================================== */

.sticky {
    position: sticky;
    top: 80px;
}

/* ======================================================== */
/* ======================== BUTTONS ======================== */
/* ======================================================== */
body .is-style-outline .wp-block-button__link:hover { 
    background-color: rgba(from currentColor r g b / 15%) !important;
}

/* ======================================================== */
/* ==================== CONTACT FORM 7 ==================== */
/* ======================================================== */

form label,
form p {
    display: block;
    margin-bottom: var(--wp--preset--spacing--tiny);
}

form label small {
    display: inline-block;
    padding-left: 3px;
    color: var(--wp--preset--color--text-secondary);
    font-size: var(--wp--preset--font-size--xsmall);
}

form .wpcf7-form-control-wrap {
display: block;
    margin-bottom: var(--wp--preset--spacing--medium);
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="url"],
form input[type="number"],
form input[type="date"],
form input[type="time"],
form input[type="datetime-local"],
form input[type="month"],
form textarea, 
form select {
    display: block;
    box-sizing: border-box;
    width: stretch;
    min-width: 0;
    max-width: 100%;
    min-height: 51px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--wp--preset--color--borders);
    background: var(--wp--preset--color--base);
    font-family: "Jakarta Sans", sans-serif;
}

form .wpcf7-form-control-wrap,
form .wpcf7-checkbox,
form .wpcf7-radio,
form .wpcf7-acceptance {
    display: block;
}

form input[type="checkbox"],
form input[type="radio"] {
    accent-color: var(--wp--preset--color--primary);
    position: relative;
    top: 2px;
}

form .wpcf7-list-item {
    display: block;
    margin: 0 0 var(--wp--preset--spacing--medium);
    font-size: var(--wp--preset--font-size--xsmall);
    color: var(--wp--preset--color--text-secondary);
}

form input[type="submit"] {
    display: block;
    background: var(--wp--preset--color--cta-primary);
    border-color: var(--wp--preset--color--cta-primary);
    transition: background 0.25s ease;
    border: 0;
    border-radius: 8px;
    min-height: 51px;
    width: stretch;
    padding: 16px 32px;
    cursor: pointer;
    transition: background 0.25s ease;
    text-align: center;
    text-decoration: none;
    color: var(--wp--preset--color--base);
    font-size: var(--wp--preset--font-size--cta);
}

form input[type="submit"]:hover {
    background: var(--wp--preset--color--cta-secondary);
}

/* Newsletter form styles */

.newsletterform {
    max-width: 560px;
    margin: 0 auto;
}

.newsletterform p {
    margin: 0;
}

.newsletterform p:empty {
    display: none;
}

.newsletterform .wpcf7-spinner {
    display: none !important;
}

.wpcf7-not-valid-tip {
    font-size: var(--wp--preset--font-size--xsmall);
}

form .newsletterform .wpcf7-form-control-wrap {
    margin-bottom: var(--wp--preset--spacing--x-small);
}

/* Alert styles */
.wpcf7 form .wpcf7-response-output {
    max-width: 560px;
    margin: 0 auto !important;
    border-radius: 12px;
    padding: var(--wp--preset--spacing--medium);
    font-size: var(--wp--preset--font-size--xsmall);
    border-color: var(--wp--preset--color--warning);
    background: var(--wp--preset--color--light-yellow);
}


.wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: var(--wp--preset--color--warning);
    background: var(--wp--preset--color--light-yellow);
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--wp--preset--color--success);
    background: var(--wp--preset--color--light-green);
}


@media (min-width: 781px) {
    .form-row,    
    .newsletterform  {
        display: grid;
        grid-template-columns: calc(50% - 8px) calc(50% - 8px);
        gap: 0 16px;
    }
    .newsletterform > p {
        grid-column: 1 / -1;
        text-align: center;    
    }
}



/* ======================================================== */
/* =================== FORMATION CARDS ==================== */
/* ======================================================== */

.df-archive-filters .df-archive-field input, 
.df-archive-filters .df-archive-field select, 
.df-archive-filters .df-archive-field button:not(.df-link) {
    box-sizing: border-box;
}

.df-archive-badge--cpf-eligible {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: var(--wp--preset--color--cta-primary);
    color: var(--wp--preset--color--base);
    border-radius: 40px;
    padding: 8px 16px;
    line-height: 1;
    font-size: var(--wp--preset--font-size--xsmall);
    font-weight: 400;
}

.df-archive-tags.df-program-tags {
    position: static;
}

.df-program-tags .df-tag {
    background-color: var(--wp--preset--color--light-primary);
    padding: 8px 16px;
    line-height: 1;
    color: var(--wp--preset--color--primary);
    font-size: var(--wp--preset--font-size--xsmall);
    letter-spacing: 0;
}

.df-archive-content {
    padding: 24px;
}

.df-archive-title {
    font-size: var(--wp--preset--font-size--h-3);
    font-weight: 500;
}

.df-archive-meta-group {
    gap: 8px;
}

.df-archive-duration.df-program-duration {
    align-items: center;
}

.df-archive-place-type {
    padding-left: 26px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="13" height="18" fill="none"><path stroke="%234a1d8e" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.286" d="M12.215 6.429c0 3.201-5.786 10.928-5.786 10.928S.643 9.63.643 6.43a5.786 5.786 0 1 1 11.572 0"/><path stroke="%234a1d8e" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.286" d="M6.429 8.358a1.929 1.929 0 1 0 0-3.858 1.929 1.929 0 0 0 0 3.858"/></svg>') no-repeat left 4px top;
    background-size: 12px 16px;
}

.df-archive-place-type, 
.df-archive-duration.df-program-duration {
    font-size: var(--wp--preset--font-size--xsmall);
    font-weight: 400;
    color: var(--wp--preset--color--text-secondary);
}

.df-post-sessions-group {
    flex-direction: row;
    gap: 0;
}

.df-post-sessions {
    margin: 0;
}

.df-post-session .df-post-session-dates .df-session-date {
    padding: 0;
    background: none;
}

.df-post-sessions-title,
.df-post-session .df-post-session-dates .df-session-date {
    font-size: var(--wp--preset--font-size--xsmall) !important;
    color: var(--wp--preset--color--primary);
    font-weight: 700;
}

.df-post-session .df-post-session-dates .df-session-date {
    text-transform: lowercase;
}

.df-post-session svg,
.df-post-session .df-post-session-place,
.df-post-session .df-post-session-remote {
    display: none;
}

.df-archive-button {
    position: absolute;
    bottom: 24px;
    right: 24px;
}

.wp-block-query .df-archive-item .df-archive-button .df-button {
    padding: 0;
    font-size: var(--wp--preset--font-size--cta);
    background: none;
    border: none;
    color: var(--wp--preset--color--cta-primary);
    text-decoration: underline;
}

.df-archive-meta-group:not(:has(.df-archive-place-type)) .df-archive-duration {
    padding-bottom: 32px;
}

.df-archive-meta-group .df-archive-place-type {
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--wp--preset--color--borders);
}

/* ======================================================== */
/* ====================== TABLE =========================== */
/* ======================================================== */

.wp-block-table thead {
    border-bottom: 0;
}

.wp-block-table thead tr th {
    text-align: left;
    font-size: var(--wp--preset--font-size--xsmall);
    border: none;
    border-bottom: 1px solid var(--wp--preset--color--borders);
    background-color: var(--wp--preset--color--light-primary);
    color: var(--wp--preset--color--primary);
    text-transform: uppercase;
}

.wp-block-table thead tr th:first-child {
    border-top-left-radius: 20px;
}

.wp-block-table thead tr th:last-child {
    border-top-right-radius: 20px;
}

.wp-block-table table td, 
.wp-block-table table th {
    border: none;
    border-bottom: 1px solid var(--wp--preset--color--borders);
    padding: 8px 16px;
}

.wp-block-table table td {
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--text-secondary);
    font-size: var(--wp--preset--font-size--xsmall);
}

.wp-block-table table tr:last-child td {
    border-bottom: none;
    color: var(--wp--preset--color--black);
    font-weight: 700;
}

.wp-block-table table tr:last-child td:first-child {
    border-bottom-left-radius: 20px;
}

.wp-block-table table tr:last-child td:last-child {
    border-bottom-right-radius: 20px;
}

/* ======================================================== */
/* ======================== INSCRIPTION ================== */
/* ======================================================== */

.df-form-thumbnail-wrapper img {
    max-width: 100%;
}

/* ======================================================== */
/* ======================== FOOTER ======================== */
/* ======================================================== */

footer.wp-block-template-part {
    margin-block-start: 0;
}