/* ===================================================
   FORMATION.CSS — Cartes home + Pages single
   =================================================== */

/* =========================================================
   A) CARTES FORMATION (HOME)
========================================================= */
article.formation { margin-bottom: 40px; }

.boxformation {
    background: #fff;
    border: 1px solid #e3e3e3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    height: 100%;
}

.boxformation img.wp-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.boxformation .content { padding: 20px; }

.formation-date { position: relative; }

.formation-date date {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 6px 10px;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    z-index: 2;
}

.formation-date .fdate {
    position: absolute;
    top: 160px; left: 12px;
    z-index: 2;
    background: #2e7d32; color: #fff;
    padding: 6px 10px;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0;
}

.formation-catalogue date {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    font-size: 12px; font-weight: 600;
    background: #f1f1f1; color: #333;
}

.entry-title {
    margin: 12px 0 8px;
    font-size: 27px;
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
}

.entry-title a { color: #1a1a1a; text-decoration: none; }
.entry-title a:hover { color: #2e7d32; }

.formations-section-title {
    width: 100%;
    margin: 60px 0 30px;
    font-size: 26px; font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #222;
}

.formations-section-title::after {
    content: "";
    display: block;
    width: 80px; height: 3px;
    background: #2e7d32;
    margin: 14px auto 0;
}

/* =========================================================
   B) SINGLE FORMATION — Design moderne
========================================================= */

/* ---- HERO ---- */
.sf-hero {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #e8e8e5;
}

.sf-hero-date {
    background: linear-gradient(135deg, #f8fbf5 0%, #fff 100%);
}

.sf-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 16px;
}

.sf-badge-catalogue {
    background: #eef4e6;
    color: #4a9a06;
}

.sf-badge-date {
    background: #fde8e6;
    color: #d32f2f;
}

.sf-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #1a1a1a !important;
    margin: 0 0 12px !important;
}

.sf-subtitle {
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #4a9a06 !important;
    margin: 0 0 16px !important;
}

.sf-enjeux {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 24px;
}

.sf-empty {
    color: #888;
    font-style: italic;
}

/* ---- HERO LAYOUT (date = 2 colonnes) ---- */
.sf-hero-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.sf-hero-main { flex: 1; }

/* ---- SIDEBAR INFOS PRATIQUES ---- */
.sf-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e8e8e5;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.sf-info-block {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0ed;
}

.sf-info-block:last-child { border-bottom: none; }

.sf-info-icon {
    width: 36px; height: 36px;
    background: #eef4e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sf-info-icon .fa {
    font-size: 16px;
    color: #4a9a06;
}

.sf-info-block strong {
    font-size: 14px;
    color: #1a1a1a;
}

.sf-info-block small {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* ---- BOUTONS ---- */
.sf-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.sf-action-form { display: inline; }

.sf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}

.sf-btn-primary {
    background: #4a9a06;
    color: #fff !important;
}

.sf-btn-primary:hover {
    background: #3d8205;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(74,154,6,.3);
}

.sf-btn-secondary {
    background: #f0f0ed;
    color: #333 !important;
}

.sf-btn-secondary:hover {
    background: #e4e4e0;
    transform: translateY(-2px);
}

/* ---- CONTENU ---- */
.sf-content {
    background: #fff;
    padding: 40px 0 50px;
}

.sf-two-cols {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.sf-col { flex: 1; }

.sf-one-col { margin-bottom: 30px; }

.sf-content h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #4a9a06 !important;
    margin: 0 0 14px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef4e6;
}

.sf-content .entry-content {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

.sf-main-content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin-top: 20px;
}

/* ---- FORMATIONS LIÉES ---- */
.sf-related {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e5;
}

.sf-related h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 16px !important;
}

.sf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sf-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #eef4e6;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #4a9a06 !important;
    text-decoration: none !important;
    transition: all .25s;
}

.sf-tag:hover {
    background: #4a9a06;
    color: #fff !important;
}

.sf-tag span {
    font-size: 11px;
    background: rgba(74,154,6,.15);
    padding: 2px 8px;
    border-radius: 12px;
}

.sf-tag:hover span {
    background: rgba(255,255,255,.2);
    color: #fff;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .sf-hero-layout {
        flex-direction: column;
    }

    .sf-sidebar {
        width: 100%;
    }

    .sf-title {
        font-size: 24px !important;
    }

    .sf-two-cols {
        flex-direction: column;
        gap: 24px;
    }

    .sf-actions {
        flex-direction: column;
    }

    .sf-btn {
        justify-content: center;
        width: 100%;
    }
}
