/*
Theme Name: BlankSlate Child
Template: blankslate
*/

/* Reset utile */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #063f43;
    background: #fff;
}

#wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* HEADER GLOBAL */
.cfpp-site-header {
    width: 100%;
    background: #fff;
}

/* HERO */
.cfpp-hero {
    position: relative;
    width: 100%;
    min-height: 330px;
    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.06) 45%,
            rgba(0, 78, 91, 0.08) 100%
        ),
        url("https://cfpp-eurecole.com/wp-content/uploads/2026/05/fond_header_cfpp.jpg");
    background-size: cover;
    background-position: center 70%;
    background-repeat: no-repeat;
}

.cfpp-hero-inner {
    width: min(1500px, 100%);
    min-height: 330px;
    margin: 0 auto;
    padding: 42px 7vw 36px;
    display: grid;
    grid-template-columns: 310px 1fr;
    align-items: center;
    gap: clamp(30px, 5vw, 90px);
}

/* LOGO */
.cfpp-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cfpp-logo {
    display: block;
    width: clamp(180px, 16vw, 270px);
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 80, 85, 0.15));
}

/* TITRE */
.cfpp-title-block {
    max-width: 760px;
}

.cfpp-main-title {
    margin: 0;
    color: #006f73;
    font-weight: 300;
    font-size: clamp(34px, 3.2vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.cfpp-main-title span {
    display: block;
    margin-top: 10px;
    font-size: clamp(22px, 2vw, 38px);
    font-weight: 300;
    letter-spacing: -0.02em;
}

.cfpp-main-title span strong,
.cfpp-main-title b {
    font-weight: 700;
}

/* NAV */
.cfpp-nav {
    width: 100%;
    background: linear-gradient(90deg, #309fb2 0%, #309fb2 45%, #007d85 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 18px rgba(0, 78, 88, 0.18);
}

.cfpp-nav-inner {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 0 6vw;
}

.cfpp-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.cfpp-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}

.cfpp-menu > li:not(:last-child)::after {
    content: "•";
    color: rgba(255,255,255,0.85);
    margin: 0 clamp(18px, 2.1vw, 34px);
    font-size: 22px;
    line-height: 1;
}

.cfpp-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 78px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: clamp(14px, 1vw, 18px);
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.cfpp-menu a:hover,
.cfpp-menu a:focus {
    color: #ffc857;
}

.cfpp-menu > li:last-child > a {
    color: #ffc857;
}

/* SOUS-MENUS */
.cfpp-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    display: none;
    min-width: 260px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: rgba(0, 116, 123, 0.98);
    box-shadow: 0 16px 32px rgba(0,0,0,0.18);
}

.cfpp-menu li:hover > .sub-menu,
.cfpp-menu li:focus-within > .sub-menu {
    display: block;
}

.cfpp-menu .sub-menu a {
    min-height: 0;
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    white-space: normal;
}

/* BOUTON MOBILE */
.cfpp-menu-toggle {
    display: none;
    width: 100%;
    border: 0;
    background: #00878e;
    color: #fff;
    padding: 14px 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
}

.cfpp-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.cfpp-menu-toggle strong {
    margin-left: 8px;
}

/* RESPONSIVE TABLETTE */
@media (max-width: 1100px) {
    .cfpp-hero {
        min-height: 300px;
        background-position: center top;
    }

    .cfpp-hero-inner {
        min-height: 300px;
        grid-template-columns: 250px 1fr;
        padding: 34px 5vw;
        gap: 36px;
    }

    .cfpp-menu {
        min-height: 68px;
    }

    .cfpp-menu a {
        min-height: 68px;
        font-size: 13px;
    }

    .cfpp-menu > li:not(:last-child)::after {
        margin: 0 14px;
    }
}

/* RESPONSIVE MOBILE */
@media (max-width: 820px) {
    .cfpp-hero {
        min-height: 360px;
        background-position: 62% top;
    }

    .cfpp-hero-inner {
        min-height: 360px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 34px 24px;
        gap: 18px;
    }

    .cfpp-logo {
        width: clamp(150px, 48vw, 220px);
    }

    .cfpp-main-title {
        font-size: clamp(28px, 8vw, 42px);
    }

    .cfpp-main-title span {
        font-size: clamp(19px, 5vw, 28px);
    }

    .cfpp-menu-toggle {
        display: flex;
    }

    .cfpp-nav {
        display: none;
    }

    .cfpp-nav.is-open {
        display: block;
    }

    .cfpp-nav-inner {
        padding: 0;
    }

    .cfpp-menu {
        min-height: 0;
        display: block;
    }

    .cfpp-menu > li {
        display: block;
    }

    .cfpp-menu > li:not(:last-child)::after {
        display: none;
    }

    .cfpp-menu a {
        min-height: 0;
        display: block;
        padding: 17px 24px;
        border-top: 1px solid rgba(255,255,255,0.18);
        font-size: 15px;
        text-align: center;
        white-space: normal;
    }

    .cfpp-menu .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        box-shadow: none;
        background: rgba(0, 95, 103, 0.6);
        padding: 0;
    }

    .cfpp-menu .sub-menu a {
        font-size: 13px;
        padding: 12px 24px;
    }
}

/* PETITS MOBILES */
@media (max-width: 480px) {
    .cfpp-hero {
        min-height: 330px;
    }

    .cfpp-hero-inner {
        min-height: 330px;
        padding: 28px 18px;
    }
}



/* ==============================
   CFPP - Structure pages commune
   ============================== */

:root {
    --cfpp-container-max: 1500px;
    --cfpp-container-padding: 6vw;
    --cfpp-container-padding-mobile: 22px;
}

/* Container cohérent avec le header/menu */
.cfpp-container,
.cfpp-content-wrap > .wpb-content-wrapper,
.cfpp-content-wrap > .vc_row:not(.vc_row-has-fill):not(.vc_row-fluid),
.cfpp-content-wrap > .vc_section:not(.vc_section-has-fill) {
    width: min(var(--cfpp-container-max), 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--cfpp-container-padding);
    padding-right: var(--cfpp-container-padding);
}

/* Page globale */
.cfpp-page {
    width: 100%;
    background: #fff;
}

.cfpp-page-content {
    width: 100%;
}

/* Titre des pages intérieures seulement */
.cfpp-page-header {
    padding: 58px 0 24px;
    background: #fff;
}

.cfpp-page-header .entry-title {
    margin: 0;
    color: #006f73;
    font-size: clamp(32px, 3vw, 52px);
    font-weight: 300;
    line-height: 1.1;
}

/* Home : pas de titre WordPress affiché */
.cfpp-page-home .cfpp-page-header {
    display: none;
}

/* Visual Composer / WPBakery */
.cfpp-content-wrap {
    width: 100%;
}

/* Les rangées stretch/full width de Bakery restent vraiment full width */
.cfpp-content-wrap .vc_row[data-vc-full-width="true"],
.cfpp-content-wrap .vc_section[data-vc-full-width="true"],
.cfpp-content-wrap .vc_row.vc_row-fluid[data-vc-full-width="true"] {
    padding-left: 0;
    padding-right: 0;
}

/* Mais le contenu interne de Bakery reste aligné avec le header */
.cfpp-content-wrap .vc_row:not([data-vc-full-width="true"]) {
    margin-left: auto;
    margin-right: auto;
}

/* Images */
.cfpp-featured-image {
    margin-top: 30px;
    margin-bottom: 30px;
}

.cfpp-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Nettoyage marges BlankSlate */
#container,
#content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.entry-content {
    margin: 0;
}

/* Responsive */
@media (max-width: 1100px) {
    :root {
        --cfpp-container-padding: 5vw;
    }
}

@media (max-width: 820px) {
    :root {
        --cfpp-container-padding: var(--cfpp-container-padding-mobile);
    }

    .cfpp-page-header {
        padding: 38px 0 18px;
    }

    .cfpp-page-header .entry-title {
        font-size: clamp(28px, 8vw, 40px);
    }
}




/* ==============================
   CFPP - Typographie globale
   ============================== */

:root {
    --cfpp-text-color: #12383b;
    --cfpp-title-color: #006f73;
    --cfpp-link-color: #00878e;
    --cfpp-link-hover: #f2a83b;

    --cfpp-font-body: Arial, Helvetica, sans-serif;

    --cfpp-p-size: clamp(16px, 0.95vw, 18px);
    --cfpp-small-size: clamp(14px, 0.85vw, 16px);

    --cfpp-h1-size: clamp(34px, 3vw, 42px);
    --cfpp-h2-size: clamp(30px, 2.45vw, 36px);
    --cfpp-h3-size: clamp(26px, 2vw, 30px);
    --cfpp-h4-size: clamp(22px, 1.55vw, 25px);
    --cfpp-h5-size: clamp(19px, 1.25vw, 21px);
    --cfpp-h6-size: clamp(17px, 1vw, 18px);
}

body,
button,
input,
select,
textarea {
    font-family: var(--cfpp-font-body);
    color: var(--cfpp-text-color);
    font-size: var(--cfpp-p-size);
    line-height: 1.6;
}

/* Textes courants */
p,
li,
td,
th,
blockquote,
figcaption,
address,
label,
legend {
    font-size: var(--cfpp-p-size);
    line-height: 1.6;
    color: var(--cfpp-text-color);
}

p {
    margin: 0 0 1.25em;
}

strong,
b {
    font-weight: 700;
}

em,
i {
    font-style: italic;
}

small {
    font-size: var(--cfpp-small-size);
    line-height: 1.5;
}

/* Titres */
h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.vc_custom_heading {
    margin: 0 0 0.65em;
    color: var(--cfpp-title-color);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1,
.entry-title {
    font-size: var(--cfpp-h1-size);
}

h2 {
    font-size: var(--cfpp-h2-size);
}

h3 {
    font-size: var(--cfpp-h3-size);
}

h4 {
    font-size: var(--cfpp-h4-size);
}

h5 {
    font-size: var(--cfpp-h5-size);
}

h6 {
    font-size: var(--cfpp-h6-size);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Espacement après titres */
h1 + p,
h2 + p,
h3 + p,
h4 + p,
h5 + p,
h6 + p {
    margin-top: 0;
}

/* Listes */
ul,
ol {
    margin: 0 0 1.35em 1.35em;
    padding: 0;
}

ul ul,
ul ol,
ol ul,
ol ol {
    margin-top: 0.55em;
    margin-bottom: 0.55em;
}

li {
    margin: 0 0 0.45em;
    padding-left: 0.15em;
}

li::marker {
    color: var(--cfpp-link-color);
}

/* Liens */
a {
    color: var(--cfpp-link-color);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
    color: var(--cfpp-link-hover);
}

/* Citations */
blockquote {
    margin: 2em 0;
    padding: 1.1em 1.4em;
    border-left: 5px solid var(--cfpp-link-color);
    background: rgba(0, 135, 142, 0.07);
    font-style: italic;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
}

th,
td {
    padding: 14px 16px;
    border: 1px solid rgba(0, 111, 115, 0.18);
    text-align: left;
}

th {
    color: var(--cfpp-title-color);
    font-weight: 700;
    background: rgba(0, 135, 142, 0.08);
}

/* Images et médias */
img,
video,
iframe {
    max-width: 100%;
}

figure {
    margin: 2em 0;
}

figcaption {
    margin-top: 0.65em;
    color: rgba(18, 56, 59, 0.72);
}

/* Boutons simples */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-block-button__link,
.vc_btn3 {
    font-size: clamp(15px, 0.95vw, 17px);
    line-height: 1.25;
}

/* WPBakery : éviter les tailles incohérentes héritées */
.wpb_text_column p,
.wpb_text_column li,
.wpb_text_column td,
.wpb_text_column th {
    font-size: var(--cfpp-p-size);
    line-height: 1.6;
}

.wpb_text_column h1 {
    font-size: var(--cfpp-h1-size);
}

.wpb_text_column h2 {
    font-size: var(--cfpp-h2-size);
}

.wpb_text_column h3 {
    font-size: var(--cfpp-h3-size);
}

.wpb_text_column h4 {
    font-size: var(--cfpp-h4-size);
}

.wpb_text_column h5 {
    font-size: var(--cfpp-h5-size);
}

.wpb_text_column h6 {
    font-size: var(--cfpp-h6-size);
}

/* Responsive tablette */
@media (max-width: 1100px) {
    :root {
        --cfpp-p-size: 17px;
        --cfpp-h1-size: 38px;
        --cfpp-h2-size: 33px;
        --cfpp-h3-size: 28px;
        --cfpp-h4-size: 24px;
        --cfpp-h5-size: 20px;
        --cfpp-h6-size: 17px;
    }
}

/* Responsive mobile */
@media (max-width: 820px) {
    :root {
        --cfpp-p-size: 16px;
        --cfpp-h1-size: 32px;
        --cfpp-h2-size: 28px;
        --cfpp-h3-size: 24px;
        --cfpp-h4-size: 21px;
        --cfpp-h5-size: 18px;
        --cfpp-h6-size: 16px;
    }

    p {
        margin-bottom: 1.1em;
    }

    ul,
    ol {
        margin-left: 1.15em;
    }

    th,
    td {
        padding: 11px 12px;
    }
}

/* Très petits mobiles */
@media (max-width: 480px) {
    :root {
        --cfpp-p-size: 16px;
        --cfpp-h1-size: 29px;
        --cfpp-h2-size: 26px;
        --cfpp-h3-size: 23px;
        --cfpp-h4-size: 20px;
        --cfpp-h5-size: 18px;
        --cfpp-h6-size: 16px;
    }
}

/* ==============================
   Correction menus navigation
   ============================== */

.cfpp-menu li,
.cfpp-menu ul,
.cfpp-menu ol,
#menu li,
#menu ul,
#menu ol,
.menu li,
.menu ul,
.menu ol {
    margin: 0;
    padding: 0;
    line-height: normal;
}

.cfpp-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 78px;
    padding: 0;
}

/* Sous-menus */
.cfpp-menu .sub-menu li {
    margin: 0;
    padding: 0;
}

.cfpp-menu .sub-menu a {
    padding: 12px 18px;
    line-height: 1.35;
}









/* ==============================
   CFPP - Widget chiffres clés
   Shortcode : [cfpp_chiffres]
   ============================== */

.cfpp-stats {
    width: 100%;
    padding: clamp(42px, 4vw, 70px) 0;
    background:
        radial-gradient(circle at 8% 12%, rgba(242, 168, 59, 0.13), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(0, 135, 142, 0.16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f4fbfb 100%);
    overflow: hidden;
}

.cfpp-stats-inner {
    width: min(var(--cfpp-container-max, 1500px), 100%);
    margin: 0 auto;
    padding-left: var(--cfpp-container-padding, 6vw);
    padding-right: var(--cfpp-container-padding, 6vw);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.4vw, 22px);
}

/* Boîte */
.cfpp-stat-card {
    position: relative;
    min-height: 225px;
    padding: clamp(26px, 2vw, 36px) clamp(18px, 1.7vw, 28px);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 111, 115, 0.13);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(0, 82, 90, 0.09);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    overflow: hidden;
    text-align: center;
}

.cfpp-stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 135, 142, 0.06), transparent 44%),
        linear-gradient(315deg, rgba(242, 168, 59, 0.07), transparent 42%);
    pointer-events: none;
}

.cfpp-stat-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: 50px;
    height: 4px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        #00878e 0%,
        #00878e 62%,
        #f2a83b 62%,
        #f2a83b 100%
    );
}

.cfpp-stat-number,
.cfpp-stat-text {
    position: relative;
    z-index: 1;
}

/* Chiffres : plus petits, centrés, hauteur homogène */
.cfpp-stat-number {
    width: 100%;
    min-height: 86px;
    margin: 0 0 12px;
    color: #00767b;
    font-size: clamp(58px, 4.4vw, 86px);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.055em;

    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

/* Texte sous chiffre */
.cfpp-stat-text {
    max-width: 230px;
    margin: 0 auto;
    color: #12383b;
    font-size: clamp(15px, 0.88vw, 17px);
    font-weight: 400;
    line-height: 1.42;
    text-align: center;
}

/* Animation hover douce */
.cfpp-stat-card {
    transform: translateY(0);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.cfpp-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 135, 142, 0.22);
    box-shadow: 0 22px 44px rgba(0, 82, 90, 0.14);
}

/* Responsive grande tablette */
@media (max-width: 1200px) {
    .cfpp-stats-inner {
        gap: 18px;
    }

    .cfpp-stat-card {
        min-height: 215px;
    }

    .cfpp-stat-number {
        min-height: 78px;
        font-size: clamp(54px, 5vw, 76px);
    }

    .cfpp-stat-text {
        font-size: 15.5px;
    }
}

/* Responsive tablette */
@media (max-width: 980px) {
    .cfpp-stats-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .cfpp-stat-card {
        min-height: 210px;
    }

    .cfpp-stat-number {
        min-height: 78px;
        font-size: clamp(58px, 9vw, 78px);
    }
}

/* Responsive mobile */
@media (max-width: 640px) {
    .cfpp-stats {
        padding: 36px 0;
    }

    .cfpp-stats-inner {
        grid-template-columns: 1fr;
        padding-left: var(--cfpp-container-padding-mobile, 22px);
        padding-right: var(--cfpp-container-padding-mobile, 22px);
        gap: 16px;
    }

    .cfpp-stat-card {
        min-height: auto;
        padding: 30px 22px 42px;
        border-radius: 22px;
    }

    .cfpp-stat-number {
        min-height: auto;
        margin-bottom: 10px;
        font-size: clamp(56px, 17vw, 78px);
    }

    .cfpp-stat-text {
        max-width: 270px;
        font-size: 16px;
        line-height: 1.45;
    }

    .cfpp-stat-card::after {
        bottom: 24px;
    }
}

/* Très petits mobiles */
@media (max-width: 420px) {
    .cfpp-stat-card {
        padding: 28px 18px 40px;
    }

    .cfpp-stat-number {
        font-size: 56px;
    }

    .cfpp-stat-text {
        font-size: 15.5px;
    }
}







/* ==============================
   CFPP - Widget formations
   Shortcode : [cfpp_formations]
   ============================== */

.cfpp-formations {
    width: 100%;
    padding: clamp(48px, 5vw, 86px) 0;
    background:
        radial-gradient(circle at 10% 8%, rgba(230, 93, 78, 0.09), transparent 30%),
        radial-gradient(circle at 88% 10%, rgba(55, 135, 132, 0.12), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbfb 100%);
    overflow: hidden;
}

.cfpp-formations-inner {
    width: min(var(--cfpp-container-max, 1500px), 100%);
    margin: 0 auto;
    padding-left: var(--cfpp-container-padding, 6vw);
    padding-right: var(--cfpp-container-padding, 6vw);
}

.cfpp-formations-header {
    margin-bottom: clamp(28px, 3vw, 44px);
    text-align: center;
}

.cfpp-formations-header h2 {
    margin: 0;
    color: #006f73;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.cfpp-formations-header h2 span {
    color: #f1a74e;
    font-weight: 500;
}

.cfpp-formations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 28px);
    align-items: stretch;
}

/* Carte générale */
.cfpp-formation-card {
    --cfpp-formation-color: #378784;

    position: relative;
    min-height: 560px;
    height: 100%;
    display: grid;
    grid-template-rows: 118px 1fr 86px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(55, 135, 132, 0.18);
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(0, 82, 90, 0.10);
    overflow: hidden;
    cursor: pointer;
    outline: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.cfpp-formation-card:hover,
.cfpp-formation-card:focus-visible,
.cfpp-formation-card.is-active {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--cfpp-formation-color) 48%, transparent);
    box-shadow: 0 26px 58px rgba(0, 82, 90, 0.16);
}

.cfpp-formation-red {
    --cfpp-formation-color: #E65D4E;
}

.cfpp-formation-teal {
    --cfpp-formation-color: #378784;
}

.cfpp-formation-gold {
    --cfpp-formation-color: #F1A74E;
}

/* Titre : hauteur identique sur les 3 cartes */
.cfpp-formation-title {
    position: relative;
    min-height: 118px;
    padding: 24px 14px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--cfpp-formation-color) 15%, white) 0%,
            rgba(255,255,255,0.94) 100%
        );
    border-bottom: 1px solid color-mix(in srgb, var(--cfpp-formation-color) 24%, transparent);
}

.cfpp-formation-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 76px;
    height: 4px;
    border-radius: 999px;
    background: var(--cfpp-formation-color);
    transform: translate(-50%, 50%);
}

.cfpp-formation-title h3 {
    margin: 0;
    color: var(--cfpp-formation-color);
    font-size: clamp(20px, 1.25vw, 24px);
    font-weight: 500;
    line-height: 1.18;
    text-align: center;
    letter-spacing: -0.025em;
}

/* Corps : hauteur identique, image ou contenu */
.cfpp-formation-body {
    position: relative;
    min-height: 356px;
    overflow: hidden;
    background: #fff;
}

/* Les deux calques occupent le même espace */
.cfpp-formation-image,
.cfpp-formation-content {
    position: absolute;
    inset: 0;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;
}

.cfpp-formation-image {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.cfpp-formation-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.02) 0%,
            rgba(0,0,0,0.13) 100%
        );
    pointer-events: none;
}

.cfpp-formation-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 356px;
    object-fit: cover;
    object-position: center;
}

/* Contenu caché au départ */
.cfpp-formation-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    padding: 30px 32px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--cfpp-formation-color) 9%, white) 0%,
            #ffffff 100%
        );
}

.cfpp-formation-content ul {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cfpp-formation-content li {
    position: relative;
    margin: 0 0 11px;
    padding: 0 0 0 23px;
    color: #12383b;
    font-size: clamp(14.5px, 0.9vw, 16.5px);
    line-height: 1.34;
}

.cfpp-formation-content li:last-child {
    margin-bottom: 0;
}

.cfpp-formation-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: var(--cfpp-formation-color);
}

/* Hover + clic actif : image disparaît, contenu apparaît */
.cfpp-formation-card:hover .cfpp-formation-image,
.cfpp-formation-card:focus-visible .cfpp-formation-image,
.cfpp-formation-card.is-active .cfpp-formation-image {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
}

.cfpp-formation-card:hover .cfpp-formation-content,
.cfpp-formation-card:focus-visible .cfpp-formation-content,
.cfpp-formation-card.is-active .cfpp-formation-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Footer bouton : hauteur identique */
.cfpp-formation-footer {
    min-height: 86px;
    padding: 18px 28px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-top: 1px solid color-mix(in srgb, var(--cfpp-formation-color) 18%, transparent);
}

.cfpp-formation-button {
    display: inline-flex;
    width: 100%;
    max-width: 245px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 2px solid var(--cfpp-formation-color);
    border-radius: 999px;
    color: var(--cfpp-formation-color);
    background: transparent;
    font-size: clamp(13.5px, 0.85vw, 15.5px);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    text-decoration: none;
    pointer-events: none;
    opacity: 0.72;
    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s ease,
        opacity 0.22s ease;
}

/* Le bouton devient vraiment cliquable quand la carte est ouverte */
.cfpp-formation-card:hover .cfpp-formation-button,
.cfpp-formation-card:focus-visible .cfpp-formation-button,
.cfpp-formation-card.is-active .cfpp-formation-button {
    background: var(--cfpp-formation-color);
    color: #fff;
    opacity: 1;
    pointer-events: auto;
}

.cfpp-formation-button:hover,
.cfpp-formation-button:focus {
    transform: translateY(-2px);
    color: #fff;
}

/* Tablette large */
@media (max-width: 1180px) {
    .cfpp-formations-grid {
        gap: 20px;
    }

    .cfpp-formation-card {
        min-height: 540px;
        grid-template-rows: 112px 1fr 84px;
    }

    .cfpp-formation-title {
        min-height: 112px;
        padding: 22px 22px 20px;
    }

    .cfpp-formation-title h3 {
        font-size: clamp(19px, 1.5vw, 22px);
    }

    .cfpp-formation-body,
    .cfpp-formation-image img {
        min-height: 344px;
    }

    .cfpp-formation-content {
        padding: 26px 24px;
    }

    .cfpp-formation-content li {
        font-size: 14.5px;
        line-height: 1.32;
        margin-bottom: 9px;
    }
}

/* Tablette verticale */
@media (max-width: 940px) {
    .cfpp-formations-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
    }

    .cfpp-formation-card {
        min-height: 600px;
        grid-template-rows: 108px 1fr 82px;
    }

    .cfpp-formation-title {
        min-height: 108px;
    }

    .cfpp-formation-title h3 {
        font-size: 23px;
    }

    .cfpp-formation-body,
    .cfpp-formation-image img {
        min-height: 410px;
    }

    .cfpp-formation-content {
        padding: 34px;
    }

    .cfpp-formation-content li {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 11px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .cfpp-formations {
        padding: 40px 0;
    }

    .cfpp-formations-inner {
        padding-left: var(--cfpp-container-padding-mobile, 22px);
        padding-right: var(--cfpp-container-padding-mobile, 22px);
    }

    .cfpp-formations-header {
        margin-bottom: 24px;
    }

    .cfpp-formations-header h2 {
        font-size: 30px;
    }

    .cfpp-formations-grid {
        max-width: none;
        gap: 18px;
    }

    .cfpp-formation-card {
        min-height: 560px;
        border-radius: 22px;
        grid-template-rows: 104px 1fr 78px;
    }

    .cfpp-formation-title {
        min-height: 104px;
        padding: 22px 20px 18px;
    }

    .cfpp-formation-title h3 {
        font-size: 21px;
    }

    .cfpp-formation-body,
    .cfpp-formation-image img {
        min-height: 378px;
    }

    .cfpp-formation-content {
        padding: 25px 23px;
    }

    .cfpp-formation-content li {
        font-size: 15px;
        line-height: 1.34;
        margin-bottom: 10px;
        padding-left: 22px;
    }

    .cfpp-formation-footer {
        min-height: 78px;
        padding: 16px 20px 20px;
    }

    .cfpp-formation-button {
        min-height: 44px;
        font-size: 14px;
    }
}

/* Très petits mobiles */
@media (max-width: 420px) {
    .cfpp-formation-card {
        min-height: 540px;
        grid-template-rows: 104px 1fr 76px;
    }

    .cfpp-formation-title h3 {
        font-size: 20px;
    }

    .cfpp-formation-body,
    .cfpp-formation-image img {
        min-height: 360px;
    }

    .cfpp-formation-content {
        padding: 22px 20px;
    }

    .cfpp-formation-content li {
        font-size: 14.5px;
        margin-bottom: 9px;
    }
}