/*
Theme Name: Divi Enfant BCA
Description: Thème enfant pour la Bonsaï Coach Académie
Template: Divi
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;700;800&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/*thème enfant, début de la personnalisation*/

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
    background-color: #2e7d32;
    /* Vert profond, modifiable selon charte */
    width: 100%;
    padding: 15px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-branding .site-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-navigation a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.main-navigation a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
    background-color: #f4f4f4;
    /* Fond de la zone centrale du footer */
    color: #333333;
    text-align: center;
}

/* Partie 1 : Accroche */
.footer-catchphrase {
    padding: 40px 20px 20px;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 600;
    color: #555555;
}

/* Partie 2 : Logos & Bouton */
.footer-associations {
    padding: 20px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.associations-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.asso-logo {
    max-width: 100px;
    height: auto;
    object-fit: contain;
}

.btn-en-savoir-plus {
    display: inline-block;
    background-color: #2e7d32;
    color: #ffffff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-en-savoir-plus:hover {
    background-color: #1b5e20;
}

/* Partie 3 : Bandeau Copyright */
.footer-bottom-bar {
    background-color: #2e7d32;
    /* Bandeau fin vert */
    color: #ffffff;
    padding: 15px 0;
    font-size: 0.9rem;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom-bar p.copyright {
    margin: 0;
}

/* ==========================================================================
   Système de Design des Cartes de Publication (Bonsaï Coach Académie)
   ========================================================================== */

:root {
    --bca-primary: #2e7d32;
    /* Vert Bonsaï Principal */
    --bca-primary-light: #e8f5e9;
    /* Vert clair pour fonds subtils */
    --bca-accent: #f59e0b;
    /* Ambre/Doré chaud pour micro-éléments */
    --bca-text-dark: #2c3e50;
    /* Gris anthracite pour texte */
    --bca-text-light: #7f8c8d;
    /* Gris secondaire */
    --bca-bg-card: #ffffff;
    /* Fond blanc pur */
    --bca-border-radius: 12px;
    /* Coins arrondis modernes */
    --bca-transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --bca-shadow-subtle: 0 4px 20px rgba(46, 125, 50, 0.06);
    --bca-shadow-hover: 0 12px 30px rgba(46, 125, 50, 0.15);
}

.bca-publications-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

/* ==========================================================================
   Grande Carte Vedette (Mise en Avant)
   ========================================================================== */
.bca-card-featured {
    display: flex;
    flex-direction: column;
    background: var(--bca-bg-card);
    border-radius: var(--bca-border-radius);
    overflow: hidden;
    box-shadow: var(--bca-shadow-subtle);
    margin-bottom: 50px;
    transition: var(--bca-transition);
    border: 1px solid rgba(46, 125, 50, 0.08);
}

.bca-card-featured:hover {
    transform: translateY(-5px);
    box-shadow: var(--bca-shadow-hover);
}

.bca-featured-image-link {
    width: 100%;
    height: 300px;
    display: block;
    overflow: hidden;
    position: relative;
}

.bca-featured-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--bca-transition);
}

.bca-card-featured:hover .bca-featured-image {
    transform: scale(1.03);
}

.bca-badge-featured {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--bca-accent);
    color: #ffffff;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 30px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.bca-featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bca-card-category {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bca-primary);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    display: inline-block;
}

.bca-featured-title {
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.bca-featured-title a {
    color: var(--bca-text-dark);
    text-decoration: none;
    transition: var(--bca-transition);
}

.bca-featured-title a:hover {
    color: var(--bca-primary);
}

.bca-card-excerpt {
    color: var(--bca-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.bca-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bca-primary-light);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid var(--bca-primary);
}

.bca-meta-icon {
    font-size: 1.1rem;
}

.bca-meta-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1b5e20;
}

.bca-btn-readmore {
    display: inline-block;
    background-color: var(--bca-primary);
    color: #ffffff;
    padding: 12px 28px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: var(--bca-transition);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.bca-btn-readmore:hover {
    background-color: #1b5e20;
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.35);
    transform: translateY(-2px);
}

/* ==========================================================================
   Grille des autres publications (Responsive)
   ========================================================================= */
.bca-publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.bca-card-standard {
    background: var(--bca-bg-card);
    border-radius: var(--bca-border-radius);
    overflow: hidden;
    box-shadow: var(--bca-shadow-subtle);
    display: flex;
    flex-direction: column;
    transition: var(--bca-transition);
    border: 1px solid rgba(46, 125, 50, 0.06);
}

.bca-card-standard:hover {
    transform: translateY(-6px);
    box-shadow: var(--bca-shadow-hover);
}

.bca-card-image-link {
    width: 100%;
    height: 200px;
    display: block;
    overflow: hidden;
}

.bca-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--bca-transition);
}

.bca-card-standard:hover .bca-card-image {
    transform: scale(1.05);
}

.bca-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bca-card-title {
    font-size: 1.25rem;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-weight: 700;
}

.bca-card-title a {
    color: var(--bca-text-dark);
    text-decoration: none;
    transition: var(--bca-transition);
}

.bca-card-title a:hover {
    color: var(--bca-primary);
}

.bca-card-standard .bca-card-excerpt {
    font-size: 0.9rem;
    margin-bottom: 18px;
    flex-grow: 1;
}

.bca-card-standard .bca-card-meta {
    padding: 8px 12px;
    margin-bottom: 18px;
}

.bca-card-standard .bca-meta-text {
    font-size: 0.8rem;
}

.bca-btn-link {
    color: var(--bca-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--bca-transition);
    align-self: flex-start;
}

.bca-btn-link:hover {
    color: #1b5e20;
    padding-left: 5px;
}

/* ==========================================================================
   Pagination personnalisée
   ========================================================================== */
.bca-pagination {
    margin: 40px 0;
    text-align: center;
}

.bca-pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 8px;
    background-color: #f4f9f4;
    padding: 8px;
    border-radius: 50px;
    box-shadow: inset 0 2px 5px rgba(46, 125, 50, 0.04);
}

.bca-pagination-list li {
    display: inline;
}

.bca-pagination-list a,
.bca-pagination-list span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--bca-text-dark);
    transition: var(--bca-transition);
}

.bca-pagination-list a:hover {
    background-color: var(--bca-primary-light);
    color: var(--bca-primary);
}

.bca-pagination-list li.active span,
.bca-pagination-list span.current {
    background-color: var(--bca-primary);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.3);
}

.bca-no-posts {
    text-align: center;
    color: var(--bca-text-light);
    font-style: italic;
    padding: 40px;
    border: 2px dashed rgba(46, 125, 50, 0.2);
    border-radius: var(--bca-border-radius);
}

/* ==========================================================================
   Adaptations Mobiles et Tablettes (Media Queries)
   ========================================================================== */
@media (min-width: 768px) {
    .bca-card-featured {
        flex-direction: row;
        min-height: 380px;
    }

    .bca-featured-image-link {
        width: 45%;
        height: auto;
        min-height: 380px;
    }

    .bca-featured-content {
        width: 55%;
        padding: 40px;
    }
}

/* ==========================================================================
   Ultimate Member Profile Styles & Typography Harmonisation
   ========================================================================== */

/* Harmonisation de la Typographie - Espace Compte BCA */
.bca-profile-wrapper h1,
.bca-profile-wrapper h2,
.bca-profile-wrapper h3,
.bca-profile-wrapper h4,
.bca-profile-wrapper h5,
.bca-profile-wrapper h6 {
    font-family: 'Manrope', sans-serif !important;
}

.bca-profile-wrapper p,
.bca-profile-wrapper li,
.bca-profile-wrapper input,
.bca-profile-wrapper select,
.bca-profile-wrapper textarea,
.bca-profile-wrapper label,
.bca-profile-wrapper,
.bca-profile-wrapper span,
.bca-profile-wrapper a {
    font-family: 'Noto Sans JP', sans-serif !important;
}

/* Styles extraits des templates Ultimate Member du profil BCA */
.bca-profile-wrapper {
    max-width: 1200px;
    margin: 40px auto;
}

.bca-profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
}

.bca-profile-sidebar {
    background-color: #F2F2F2;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid rgba(31, 22, 10, 0.05);
}

.bca-profile-sidebar hr {
    border: 0;
    border-top: 1px solid rgba(31, 22, 10, 0.1);
    margin: 20px 0;
}

.bca-badges-area {
    text-align: left;
}

.bca-badges-area h4 {
    color: #378B2E;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
}

.bca-badges-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bca-profile-main {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(31, 22, 10, 0.05);
}

.bca-custom-navbar {
    border-bottom: 2px solid #F2F2F2;
    margin-bottom: 25px;
}

.bca-profile-body-wrapper {
    color: #1F160A;
}

/* Badges de progression extraits */
.bca-badge-card {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    background: #ffffff !important;
    padding: 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.bca-badge-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(31, 22, 10, 0.12) !important;
}

.bca-badge-image-container {
    flex-shrink: 0 !important;
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fdfdfd !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.02) !important;
}

.bca-badge-img {
    width: 100% !important;
    max-width: 80px !important;
    height: auto !important;
    max-height: 80px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.bca-badge-card:hover .bca-badge-img {
    transform: scale(1.15) !important;
}

.bca-badge-info h5 {
    margin: 0 0 8px 0;
    font-size: 18px !important;
    font-weight: 700;
    color: #1F160A;
    line-height: 1.3;
}

.bca-badge-info-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bca-badge-info-meta .bca-rank-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: capitalize;
}

.bca-badge-info-meta .bca-refus-count {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    font-weight: 500;
}