/* ==========================================================
   HARMONY.CSS — Harmonisation globale du look & feel
   Chargé en dernier. Surcharge proprement les CSS existants.
   Palette Cédis conservée : vert, prune, vert foncé.
   ========================================================== */

/* ----------------------------------------------------------
   0) VARIABLES DESIGN
   ---------------------------------------------------------- */
:root {
    /* Couleurs Cédis */
    --c-vert:        #4a9a06;
    --c-vert-clair:  #e8f5e0;
    --c-vert-hover:  #3d8205;
    --c-vert-fonce:  #1B5E20;
    --c-prune:       #65224b;
    --c-prune-pastel:#9b6b87;
    --c-prune-light: #f5edf2;
    --c-anis:        #c9df00;

    /* Neutres */
    --c-bg:          #f7f8f6;
    --c-bg-white:    #ffffff;
    --c-border:      #e8e8e5;
    --c-text:        #2d2d2d;
    --c-text-soft:   #5a5a5a;
    --c-text-muted:  #8a8a8a;

    /* Typographie */
    --font-body:     'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-heading:  'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Arrondis */
    --radius-sm:     6px;
    --radius-md:     10px;
    --radius-lg:     16px;
    --radius-xl:     24px;

    /* Ombres */
    --shadow-sm:     0 1px 3px rgba(0,0,0,.06);
    --shadow-md:     0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:     0 8px 32px rgba(0,0,0,.12);
    --shadow-hover:  0 12px 40px rgba(0,0,0,.14);

    /* Transitions */
    --ease:          cubic-bezier(.4, 0, .2, 1);
    --duration:      .28s;
}

/* ----------------------------------------------------------
   1) FOND GLOBAL & TYPOGRAPHIE
   ---------------------------------------------------------- */
body {
    background: var(--c-bg) !important;
    color: var(--c-text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    color: var(--c-text);
}

a {
    transition: color var(--duration) var(--ease);
}

/* ----------------------------------------------------------
   2) HEADER — polish
   ---------------------------------------------------------- */
#cedis-header {
    box-shadow: 0 1px 0 var(--c-border), var(--shadow-sm);
}

/* Nav verte — dégradé subtil */
#cedis-header .cedis-nav {
    background: linear-gradient(135deg, #4a9a06 0%, #55a908 60%, #5fb80a 100%);
    border-bottom: none;
}

/* Liens nav — espacement plus aéré */
#cedis-header .cedis-menu > li > a {
    letter-spacing: .5px;
    font-weight: 500;
}

/* Ligne animée — plus épaisse */
#cedis-header .cedis-menu > li > a::after {
    height: 2.5px;
    border-radius: 2px;
    background: rgba(255,255,255,.85);
}

/* Dropdown — arrondis + ombre harmonisée */
#cedis-header .cedis-menu li .dropdown-menu {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--c-border);
    border-top: 2px solid var(--c-vert);
    padding: 6px 0;
}

#cedis-header .cedis-menu li .dropdown-menu li a {
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 450;
    transition: background var(--duration) var(--ease),
                padding-left var(--duration) var(--ease);
    border-radius: 0;
}

#cedis-header .cedis-menu li .dropdown-menu li a:hover {
    background: var(--c-vert-clair) !important;
    padding-left: 22px;
}

/* Search — harmonisé */
.cedis-search input[type="search"] {
    border-radius: var(--radius-xl);
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 13px;
}

.cedis-search input[type="search"]::placeholder {
    color: rgba(255,255,255,.6);
}

.cedis-search input[type="search"]:focus {
    background: rgba(255,255,255,.95);
    color: var(--c-text);
    border-color: var(--c-vert);
    box-shadow: 0 0 0 3px rgba(74,154,6,.2);
}

.cedis-search input[type="search"]:focus::placeholder {
    color: var(--c-text-muted);
}

.cedis-search button {
    color: rgba(255,255,255,.7);
}

.cedis-search input[type="search"]:focus ~ button,
.cedis-search button:hover {
    color: var(--c-vert);
}

/* ----------------------------------------------------------
   3) BANDEAU CATALOGUE — polish
   ---------------------------------------------------------- */
#categories .navbar-category-thema {
    background: linear-gradient(135deg, #c0d800 0%, #c9df00 50%, #d4ea1a 100%);
    cursor: pointer;
    transition: filter var(--duration) var(--ease);
}

/* KILL le hover gris de main.min.css */
#categories .navbar-category-thema:hover,
#categories .navbar-category-thema :hover,
#categories .navbar-category-thema.active,
.navbar-category:hover,
.navbar-category :hover,
.navbar-category .active {
    background: transparent !important;
    color: inherit !important;
}

#categories .navbar-category-thema:hover {
    background: linear-gradient(135deg, #d0e800 0%, #d9ef10 50%, #e4fa2a 100%) !important;
    filter: brightness(1.02);
}

#categories .navbar-category-thema h3 {
    color: #1a2e00 !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.3);
}

/* Contenu collapse — fond harmonisé */
#collapseThema {
    background: #303030;
}

#collapseThema ul li a,
#collapseThema dt a {
    transition: color var(--duration) var(--ease),
                padding-left var(--duration) var(--ease);
}

#collapseThema ul li a:hover,
#collapseThema dt a:hover {
    color: var(--c-anis) !important;
    padding-left: 6px;
}

/* ----------------------------------------------------------
   4) ZONE PICTOS HOME (Catalogue, Formation sur mesure, Guides)
   ---------------------------------------------------------- */
.row-centered .boxlink {
    padding: 24px 16px !important;
    border-radius: var(--radius-md);
    transition: background var(--duration) var(--ease),
                transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
    cursor: pointer;
}

.row-centered .boxlink:hover {
    background: var(--c-vert-clair);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.row-centered .boxlink h3.lead {
    font-weight: 600 !important;
    font-size: 17px !important;
    color: var(--c-text) !important;
    margin-top: 8px !important;
}

.row-centered .boxlink p {
    color: var(--c-text-soft);
    font-size: 13px;
}

.row-centered .boxlink p a {
    color: var(--c-vert) !important;
    font-weight: 600;
}

/* ----------------------------------------------------------
   5) CARTES FORMATION — harmonisation boxformation
   ---------------------------------------------------------- */
.boxformation {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--c-border) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* PAS de translateY au hover — ça causait le saut de texte */
.boxformation:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: none !important;
}

/* Image arrondie en haut */
.boxformation img.wp-post-image {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Contenu carte — padding uniforme + flex grow */
.boxformation .content {
    padding: 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* H3 dans les boxformation — hauteur flexible, pas de min-height fixe */
.boxformation h3 {
    font-size: 20px !important;
    font-weight: 500;
    padding: 15px 18px !important;
    padding-top: 30px !important;
    min-height: 0 !important;
    flex: 1;
}

/* Titre formation — dans .content */
.boxformation .content .entry-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: none;
    line-height: 1.35;
    margin: 10px 0 6px;
}

.boxformation .content .entry-title a {
    color: var(--c-text) !important;
    transition: color var(--duration) var(--ease);
}

.boxformation .content .entry-title a:hover {
    color: var(--c-vert) !important;
}

/* ---- BARRE BASSE VOIR LE PROGRAMME ---- */
/* Fond blanc, texte vert foncé, bordure haut subtile */
.boxformation .bar {
    background: #fff !important;
    margin-top: auto !important;
    padding: 0 15px !important;
    border-top: 1px solid var(--c-border) !important;
    min-height: 44px;
    line-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.boxformation .bar a {
    display: block;
    flex: 1;
}

.boxformation .bar a small,
.boxformation .bar small {
    color: var(--c-vert-fonce) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.boxformation:hover .bar {
    background: var(--c-vert-clair) !important;
}

.boxformation:hover .bar a small,
.boxformation:hover .bar small {
    color: var(--c-vert) !important;
}

/* Croix + : icône propre */
.boxformation .bar .plussign {
    width: 30px;
    height: 30px;
    background: var(--c-vert) !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

.boxformation .bar .plussign span {
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1;
}

.boxformation:hover .bar .plussign {
    background: var(--c-vert-hover) !important;
    transform: rotate(90deg);
}

/* Fond de l'excerpt overlay — géré dans la section 5d */

/* typeCatalogue bar — uniformiser (blanc, pas vert) */
.typeCatalogue .bar,
.typeCatalogue-ff5300 .bar,
.typeCatalogue-ffa300 .bar,
.typeCatalogue-5bc100 .bar,
.typeCatalogue-00b374 .bar,
.typeCatalogue-00a1c2 .bar,
.typeCatalogue-f2779e .bar {
    background: #fff !important;
}

.typeCatalogue .bar .plussign {
    background: var(--c-vert) !important;
}

/* ---- BADGES ---- */

/* Date badge — arrondi */
.formation-date date {
    border-radius: var(--radius-sm);
    font-size: 12px;
    letter-spacing: .04em;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
}

/* Lieu badge — arrondi */
.formation-date .fdate {
    border-radius: var(--radius-sm);
    background: var(--c-vert);
}

/* Badge catalogue */
.formation-catalogue date {
    border-radius: var(--radius-sm);
    background: var(--c-vert-clair);
    color: var(--c-vert-fonce);
    font-weight: 600;
}

/* Titres de section (Formations programmées / Nos formations phares) */
.formations-section-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--c-text);
    margin: 50px 0 24px;
    width: 100%;
}

.formations-section-title::after {
    background: var(--c-vert);
    height: 3px;
    width: 60px;
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ----------------------------------------------------------
   5b) GRILLE AUTO-RESPONSIVE (1 → 2 → 3 colonnes)
   ---------------------------------------------------------- */
.cedis-formations-grid {
    padding: 0 15px 20px;
}

.cedis-cards-auto {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* Chaque carte s'adapte : 1/3 par défaut, s'élargit si peu d'items */
.cedis-cards-auto > article.formation {
    flex: 1 1 300px;
    max-width: calc(33.333% - 16px);
    margin-bottom: 0 !important;
    float: none !important;
    width: auto !important;
    padding: 0 !important;
}

/* 2 items → 50% */
@media (min-width: 768px) {
    .cedis-cards-auto > article.formation:first-child:nth-last-child(2),
    .cedis-cards-auto > article.formation:first-child:nth-last-child(2) ~ article.formation {
        max-width: calc(50% - 12px);
    }

    /* 1 seul item → 100% */
    .cedis-cards-auto > article.formation:first-child:nth-last-child(1) {
        max-width: 100%;
    }
}

/* Tablette : 2 colonnes */
@media (max-width: 991px) {
    .cedis-cards-auto > article.formation {
        max-width: calc(50% - 12px);
    }
}

/* Mobile : 1 colonne */
@media (max-width: 600px) {
    .cedis-cards-auto > article.formation {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

/* ----------------------------------------------------------
   5d) HOVER CARTES — fond vert + excerpt visible
   ---------------------------------------------------------- */

/* La boxformation doit avoir position relative et hauteur fixe */
.boxformation {
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

/* .content prend tout l'espace disponible */
.boxformation .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: background var(--duration) var(--ease),
                color var(--duration) var(--ease);
}

/* L'excerpt est caché par défaut mais prend sa place dans le flow */
.boxformation p.entry-content {
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    color: rgba(255,255,255,.9) !important;
    font-size: 13px;
    line-height: 1.55;
    opacity: 0;
    transition: max-height .4s var(--ease),
                opacity .3s var(--ease),
                padding .3s var(--ease);
}

/* ---- AU HOVER ---- */

/* Fond vert TRANSPARENT sur toute la zone content */
.boxformation:hover .content {
    background: rgba(74, 154, 6, .88) !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Titre en blanc */
.boxformation:hover .content .entry-title a,
.boxformation:hover .content h3.entry-title a,
.boxformation:hover h3 a {
    color: #fff !important;
}

/* Badge DATE — reste ROUGE au hover */
.boxformation.formation-date:hover .content date {
    background: #e8534a !important;
    color: #fff !important;
}

/* Badge CATALOGUE — reste vert pâle au hover */
.boxformation.formation-catalogue:hover .content date {
    background: rgba(255,255,255,.25) !important;
    color: #fff !important;
}

/* Excerpt visible */
.boxformation:hover p.entry-content {
    max-height: 120px !important;
    opacity: 1;
    padding: 8px 0 4px !important;
}

/* Barre "Voir le programme" — passe en ROUGE sur fond vert */
.boxformation:hover .bar {
    border-top-color: rgba(255,255,255,.25) !important;
    background: rgba(200, 50, 50, .9) !important;
}

.boxformation:hover .bar a small,
.boxformation:hover .bar small {
    color: #fff !important;
}

.boxformation:hover .bar .plussign {
    background: rgba(255,255,255,.2) !important;
}

.boxformation:hover .bar .plussign span {
    color: #fff !important;
}

/* Le h3 de main.min.css — neutraliser le fond gris */
.boxformation h3:hover,
.boxformation h3:focus,
.boxformation h3:active,
.boxformation h3.active {
    background: transparent !important;
}

.boxformation h3:hover a,
.boxformation h3:focus a,
.boxformation h3:active a,
.boxformation h3.active a {
    text-decoration: none !important;
}

/* ----------------------------------------------------------
   5e) FORMATIONS PROGRAMMÉES — cartes horizontales
   ---------------------------------------------------------- */
.fprog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fprog-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--duration) var(--ease);
}

.fprog-card:hover {
    box-shadow: var(--shadow-hover);
}

.fprog-link {
    display: flex;
    text-decoration: none !important;
    color: inherit !important;
    min-height: 180px;
}

.fprog-body {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    transition: background var(--duration) var(--ease);
}

.fprog-card:hover .fprog-body {
    background: rgba(74, 154, 6, .88);
}

.fprog-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8534a;
    color: #fff;
    padding: 5px 14px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: 12px;
    align-self: flex-start;
    transition: background var(--duration) var(--ease);
}

.fprog-date-icon { font-size: 12px; }

/* Date reste ROUGE au hover */
.fprog-card:hover .fprog-date {
    background: #e8534a;
}

.fprog-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--c-text);
    transition: color var(--duration) var(--ease);
}

.fprog-card:hover .fprog-title { color: #fff; }

.fprog-city {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--c-vert);
    font-weight: 600;
    margin-bottom: 10px;
    transition: color var(--duration) var(--ease);
}

.fprog-card:hover .fprog-city { color: rgba(255,255,255,.8); }

.fprog-excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--c-text-soft);
    margin: 0 0 12px;
    transition: color var(--duration) var(--ease);
}

.fprog-card:hover .fprog-excerpt { color: rgba(255,255,255,.85); }

.fprog-cta {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-vert);
    margin-top: auto;
    transition: color var(--duration) var(--ease);
}

.fprog-card:hover .fprog-cta { color: #e8534a; }

.fprog-img {
    width: 320px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    transition: transform .5s var(--ease);
}

.fprog-img-placeholder {
    background: linear-gradient(135deg, var(--c-vert-clair) 0%, #d5e8c8 100%);
}

.fprog-card:hover .fprog-img { transform: scale(1.04); }

@media (max-width: 768px) {
    .fprog-link { flex-direction: column-reverse; }
    .fprog-img { width: 100%; height: 180px; }
    .fprog-body { padding: 18px 20px; }
}

/* ----------------------------------------------------------
   5f) BANDEAU CONTACT — même largeur que les formations
   ---------------------------------------------------------- */
.cedis-contact-wrapper {
    margin-top: 40px;
    margin-bottom: 30px;
}

.cedis-contact-banner {
    background: linear-gradient(135deg, #3d8205 0%, #4a9a06 40%, #55a908 100%) !important;
    border-radius: var(--radius-md) !important;
    padding: 36px 40px !important;
    margin: 0 !important;
    cursor: pointer;
    transition: filter var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
    overflow: hidden;
}

.cedis-contact-banner::before,
.cedis-contact-banner::after {
    display: none;
}

.cedis-contact-banner:hover {
    filter: brightness(1.05);
    box-shadow: var(--shadow-lg);
}

.cedis-contact-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.cedis-contact-text { flex: 1; }

.cedis-contact-text h3 {
    color: #fff !important;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}

.cedis-contact-text p {
    color: rgba(255,255,255,.85) !important;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.cedis-contact-btn,
a.cedis-contact-btn {
    display: inline-block;
    background: #fff !important;
    color: var(--c-vert-fonce) !important;
    border: none !important;
    font-weight: 700 !important;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 14px !important;
    padding: 13px 32px !important;
    border-radius: var(--radius-xl) !important;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: all var(--duration) var(--ease) !important;
}

a.cedis-contact-btn:visited { color: var(--c-vert-fonce) !important; }

.cedis-contact-btn:hover,
a.cedis-contact-btn:hover {
    background: var(--c-vert-clair) !important;
    color: var(--c-vert-fonce) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.18) !important;
}

@media (max-width: 768px) {
    .cedis-contact-banner { padding: 28px 24px !important; }
    .cedis-contact-inner { flex-direction: column; text-align: center; gap: 20px; }
    .cedis-contact-text h3 { font-size: 19px; }
}

/* ----------------------------------------------------------
   6) CARTES ACTUS (ydu-*) — harmonisation
   ---------------------------------------------------------- */
.ydu-card-inner {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--c-border) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: box-shadow var(--duration) var(--ease),
                transform var(--duration) var(--ease) !important;
}

.ydu-card-inner:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-5px) !important;
}

.ydu-thumb {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.ydu-title a {
    color: var(--c-vert) !important;
    transition: color var(--duration) var(--ease);
}

.ydu-title a:hover {
    color: var(--c-vert-hover) !important;
}

.ydu-excerpt {
    color: var(--c-text-soft);
    line-height: 1.6;
}

.ydu-readmore {
    color: var(--c-prune) !important;
    font-size: 12px;
    letter-spacing: .04em;
    position: relative;
    padding-bottom: 2px;
}

.ydu-readmore::after {
    content: " →";
    transition: margin-left var(--duration) var(--ease);
}

.ydu-card-inner:hover .ydu-readmore::after {
    margin-left: 4px;
}

/* ----------------------------------------------------------
   7) CONTACTEZ-NOUS — bloc pastel prune
   ---------------------------------------------------------- */
.moreformation {
    border-radius: var(--radius-md) !important;
    background: linear-gradient(135deg, #9b6b87 0%, #a87899 100%) !important;
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease) !important;
}

.moreformation:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-hover) !important;
    background: linear-gradient(135deg, #a87899 0%, #b585a6 100%) !important;
}

.moreformation p {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .03em;
}

.moreformation .bar {
    background: transparent !important;
    border-top: 1px solid rgba(255,255,255,.2);
}

/* ----------------------------------------------------------
   8) BOUTONS GLOBAUX
   ---------------------------------------------------------- */
.btn-cedis {
    background: var(--c-vert) !important;
    border-color: var(--c-vert) !important;
    border-radius: var(--radius-xl) !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: .04em !important;
    transition: background var(--duration) var(--ease),
                transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease) !important;
}

.btn-cedis:hover {
    background: var(--c-vert-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(74,154,6,.3) !important;
}

/* ----------------------------------------------------------
   9) FOOTER — overrides finaux (chargé après main.min.css)
   Fond vert = tout en blanc
   ---------------------------------------------------------- */

#cf-footer-wrapper,
footer#cf-footer-wrapper {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

/* Texte de la bande verte en blanc — sans wildcard pour ne pas écraser les hovers */
#cf-footer-wrapper .cf-main-band h4,
#cf-footer-wrapper .cf-main-band p,
#cf-footer-wrapper .cf-main-band span,
#cf-footer-wrapper .cf-main-band small,
#cf-footer-wrapper .cf-main-band li {
    color: #fff !important;
}

/* Liens : blanc légèrement transparent */
#cf-footer-wrapper .cf-main-band a,
#cf-footer-wrapper .cf-main-band a:link,
#cf-footer-wrapper .cf-main-band a:visited,
#cf-footer-wrapper .cf-col a,
#cf-footer-wrapper .cf-col a:link,
#cf-footer-wrapper .cf-col a:visited,
#cf-footer-wrapper .cf-col p a,
#cf-footer-wrapper .cf-col p a:link {
    color: rgba(255,255,255,.8) !important;
    text-decoration: none !important;
}

#cf-footer-wrapper .cf-main-band a:hover,
#cf-footer-wrapper .cf-col a:hover,
#cf-footer-wrapper .cf-col p a:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* Titres */
#cf-footer-wrapper .cf-col h4 {
    color: #fff !important;
}

/* Tagline */
#cf-footer-wrapper .cf-top-tagline {
    color: rgba(255,255,255,.7) !important;
}

/* Paragraphes */
#cf-footer-wrapper .cf-col p {
    color: rgba(255,255,255,.75) !important;
}

/* Bouton contact — outline blanc, hover = blanc plein texte vert */
#cf-footer-wrapper .cf-contact-btn,
#cf-footer-wrapper a.cf-contact-btn,
#cf-footer-wrapper a.cf-contact-btn:link,
#cf-footer-wrapper a.cf-contact-btn:visited,
#cf-footer-wrapper .cf-main-band a.cf-contact-btn,
#cf-footer-wrapper .cf-main-band a.cf-contact-btn:link,
#cf-footer-wrapper .cf-main-band a.cf-contact-btn:visited {
    color: #fff !important;
    background: transparent !important;
    border: 2px solid rgba(255,255,255,.5) !important;
}

#cf-footer-wrapper a.cf-contact-btn:hover,
#cf-footer-wrapper .cf-main-band a.cf-contact-btn:hover,
#cf-footer-wrapper .cf-col a.cf-contact-btn:hover {
    color: #3d8205 !important;
    background: #fff !important;
    border-color: #fff !important;
}

/* RS icônes — blanc */
#cf-footer-wrapper .cf-footer-socials .cf-fa {
    color: #fff !important;
}

/* Certifs — texte sombre sur fond blanc */
#cf-footer-wrapper .cf-certifs-band p,
#cf-footer-wrapper .cf-certif-item p {
    color: #666 !important;
}

#cf-footer-wrapper .cf-certifs-band a,
#cf-footer-wrapper .cf-certifs-band a:link {
    color: #333 !important;
}

/* Bas de page — blanc discret */
#cf-footer-wrapper .cf-bottom-band p,
#cf-footer-wrapper .cf-bottom-inner p {
    color: rgba(255,255,255,.6) !important;
}

#cf-footer-wrapper .cf-bottom-links a,
#cf-footer-wrapper .cf-bottom-links a:link,
#cf-footer-wrapper .cf-bottom-links a:visited {
    color: rgba(255,255,255,.6) !important;
}

#cf-footer-wrapper .cf-bottom-links a:hover {
    color: #fff !important;
}

/* ----------------------------------------------------------
   10) SLIDER HOME — polish
   ---------------------------------------------------------- */

/* Front page : fond uniforme */
body.home,
body.front-page {
    background: var(--c-bg) !important;
}

/* Supprime toute marge/padding/bordure autour du slider */
#carousel-cedis-homepage {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
}

/* Le container parent du slider aussi */
#carousel-cedis-homepage .swiper-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* Supprime le margin-bottom de main et le padding-bottom de la navbar */
main {
    padding-bottom: 0 !important;
}

/* Supprime le margin-bottom de la navbar Bootstrap */
.navbar {
    margin-bottom: 0 !important;
}

#carousel-cedis-homepage .swiper-slide .title-caption {
    background: linear-gradient(
        to right,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,.4) 55%,
        transparent 100%
    );
}

#carousel-cedis-homepage .swiper-slide .title-caption h2.lead,
#carousel-cedis-homepage .swiper-slide .title-caption h3.lead {
    color: var(--c-anis);
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

#carousel-cedis-homepage .arrows {
    background: rgba(74,154,6,.7);
    transition: background var(--duration) var(--ease);
}

#carousel-cedis-homepage .arrows:hover {
    background: rgba(74,154,6,.9);
}

/* ----------------------------------------------------------
   11) PAGES SINGLE / CONTENU — polish typographie
   NE PAS appliquer sur la front-page
   ---------------------------------------------------------- */
body.single main,
body.page:not(.home) main {
    background: var(--c-bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}

body.single main h1,
body.page:not(.home) main h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

body.single main h2,
body.page:not(.home) main h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
}

body.single main h3,
body.page:not(.home) main h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 22px;
    margin-bottom: 10px;
    color: var(--c-prune);
}

body.single main p,
body.page:not(.home) main p {
    line-height: 1.7;
    color: var(--c-text-soft);
}

body.single main a,
body.page main a {
    color: var(--c-vert) !important;
    font-weight: 500;
}

body.single main a:hover,
body.page:not(.home) main a:hover {
    color: var(--c-vert-hover) !important;
}

/* Blockquote harmonisé */
blockquote {
    border-left: 4px solid var(--c-vert) !important;
    background: var(--c-vert-clair) !important;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px !important;
    margin: 20px 0 !important;
}

blockquote p {
    color: var(--c-text) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* ----------------------------------------------------------
   12) FORMULAIRES — inputs harmonisés
   ---------------------------------------------------------- */
.form-control {
    border-radius: var(--radius-sm) !important;
    border-color: var(--c-border) !important;
    transition: border-color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease) !important;
}

.form-control:focus {
    border-color: var(--c-vert) !important;
    box-shadow: 0 0 0 3px rgba(74,154,6,.15) !important;
}

/* ----------------------------------------------------------
   13) PAGINATION — harmonisée
   ---------------------------------------------------------- */
#nav-below.pagination li {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

#nav-below.pagination li a {
    color: var(--c-text-soft) !important;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}

#nav-below.pagination li a:hover {
    background: var(--c-vert-clair);
    color: var(--c-vert) !important;
}

#nav-below.pagination li.active {
    background: var(--c-vert);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
}

/* ----------------------------------------------------------
   14) SCROLLBAR CUSTOM (Webkit)
   ---------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
    background: #c0c0b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a098;
}

/* ----------------------------------------------------------
   15) SELECTION
   ---------------------------------------------------------- */
::selection {
    background: var(--c-vert-clair);
    color: var(--c-vert-fonce);
}

/* ----------------------------------------------------------
   16) SMOOTH SCROLL
   ---------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

/* ----------------------------------------------------------
   17) MICRO-ANIMATIONS — fade-in au scroll
   ---------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article.formation,
.ydu-article-card,
.row-centered .boxlink {
    animation: fadeInUp .5s var(--ease) both;
}

article.formation:nth-child(2),
.ydu-article-card:nth-child(2) { animation-delay: .08s; }
article.formation:nth-child(3),
.ydu-article-card:nth-child(3) { animation-delay: .16s; }
article.formation:nth-child(4),
.ydu-article-card:nth-child(4) { animation-delay: .24s; }
article.formation:nth-child(5) { animation-delay: .32s; }
article.formation:nth-child(6) { animation-delay: .40s; }

.row-centered .boxlink:nth-child(2) { animation-delay: .1s; }
.row-centered .boxlink:nth-child(3) { animation-delay: .2s; }

/* ----------------------------------------------------------
   18) GARDER LE H3 VISIBLE (anti-JS .hide())
   ---------------------------------------------------------- */
.boxformation h3.entry-title,
.boxformation .content h3.entry-title {
    display: block !important;
}

/* Supprimer le min-height: 245px du h3 de main.min.css */
.boxformation h3 {
    min-height: auto !important;
}

/* ----------------------------------------------------------
   19) TITRE SECTION DUPLIQUÉ
   Le titre est affiché par front-page.php ET par
   content-formation.php — on masque celui du template
   ---------------------------------------------------------- */
.cedis-cards-auto .formations-section-title {
    display: none !important;
}

/* ----------------------------------------------------------
   20) CATALOGUE PAGE — pleine largeur
   ---------------------------------------------------------- */
.catalogue-page {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 30px;
    padding-right: 30px;
}

/* ----------------------------------------------------------
   21) SLIDER HOME — supprimer tout cadre blanc
   ---------------------------------------------------------- */
body.home main,
body.front-page main,
body.page-template-default.home main {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

body.home .container-full,
body.front-page .container-full {
    padding: 0;
    margin: 0;
}

body.home .wrap,
body.front-page .wrap {
    padding: 0 !important;
    margin: 0 auto !important;
}
