/* ============================================================
   JFB Theme v2 — Dr. Jean Frantz Bruny
   ============================================================ */

:root {
    --green:        #1a6b52;
    --green-dark:   #155442;
    --green-light:  #228060;
    --gold:         #e8b000;
    --gold-hover:   #f5c430;
    --white:        #ffffff;
    --off:          #f6f5f3;
    --border:       #e0ddd8;
    --text:         #1a1a1a;
    --muted:        #666;
    --light-text:   #999;
    --shadow:       0 2px 12px rgba(0,0,0,.10);
    --shadow-lg:    0 6px 28px rgba(0,0,0,.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--green);
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 90px;
    padding: 14px 0;
}

/* Brand = photo + texte */
.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.header-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.35);
    flex-shrink: 0;
}

.header-photo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 3px solid rgba(255,255,255,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: rgba(255,255,255,.9);
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
}

.header-identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.header-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.1;
    white-space: nowrap;
}

.header-title-sub {
    font-size: .78rem;
    color: rgba(255,255,255,.8);
    font-weight: 300;
    letter-spacing: .02em;
}

.header-spec {
    font-size: .73rem;
    color: rgba(255,255,255,.6);
    font-weight: 300;
}

/* Navigation */
.site-nav { flex-shrink: 0; }

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
}

.site-nav ul li a {
    display: inline-block;
    padding: 8px 16px;
    font-weight: 600;
    font-size: .88rem;
    color: var(--white);
    border-radius: 4px;
    transition: all .18s ease;
    letter-spacing: .01em;
}

.site-nav ul li a:hover,
.site-nav ul li a.nav-current {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,.85);
    border-radius: 2px;
    transition: all .22s;
}

/* ============================================================
   HERO BIO (homepage)
   ============================================================ */
/* ============================================================
   ABOUT SECTION (homepage)
   ============================================================ */
.home-about {
    background: var(--white);
    padding: 60px 0;
    color: var(--text);
}

.home-about-inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.home-about-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 120px;
}

.sidebar-social {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: .95rem;
    font-weight: 500;
    transition: color .2s;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
}
.social-item:hover { color: var(--green); }

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    transition: transform .2s ease;
}
.social-item:hover .social-icon { transform: translateY(-2px); }
.social-icon svg { width: 18px; height: 18px; }
.social-icon.linkedin  { background: #0077b5; color: #fff; }
.social-icon.scholar   { background: #4285f4; color: #fff; }
.social-icon.orcid     { background: #a6ce39; color: #fff; }
.social-icon.rg        { background: #00ccbb; color: #fff; }
.social-icon.twitter   { background: #000000; color: #fff; }

.social-text {
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.social-item:hover .social-text {
    border-color: var(--green);
}

.home-about-content {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.home-about-content p {
    margin-bottom: 1.4em;
}

.home-about-content ol {
    margin: 1.5em 0 2em 2em;
}

.home-about-content li {
    margin-bottom: 1em;
}

.home-about-content strong {
    color: var(--green-dark);
    font-weight: 700;
}

.home-about-content .section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-dark);
    margin: 2em 0 1em;
}

/* ============================================================
   HOME POSTS SECTION
   ============================================================ */
.home-posts {
    background: var(--off);
    padding: 60px 0;
}

.section-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.see-all {
    font-size: .85rem;
    font-weight: 600;
    color: var(--green);
}
.see-all:hover { color: var(--green-light); }

/* ============================================================
   POST CARDS
   ============================================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img-link { display: block; overflow: hidden; }

.card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--off);
    transition: transform .3s ease;
}
.post-card:hover .card-img { transform: scale(1.04); }

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.card-tags { margin-bottom: 10px; }

.card-tag {
    display: inline-block;
    padding: 3px 9px;
    background: var(--off);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--green); }

.card-excerpt {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.card-meta {
    font-size: .78rem;
    color: var(--light-text);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: auto;
}

.card-sep { margin: 0 4px; }

/* ============================================================
   PUBLICATIONS PAGE (2-column)
   ============================================================ */
.page-publications { padding: 60px 0; }

.pub-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sidebar */
.pub-sidebar { position: sticky; top: 110px; }

.sidebar-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    margin: 0 auto 28px;
    box-shadow: var(--shadow);
}

.sidebar-photo-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    margin: 0 auto 28px;
}

.sidebar-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ssocial {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: .9rem;
    font-weight: 400;
    text-decoration: none;
    transition: color .15s;
}
.ssocial:hover { color: var(--green); }
.ssocial:hover .ssocial-icon { opacity: .9; }

.ssocial-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ssocial-icon svg { width: 15px; height: 15px; }
.ssocial-icon.linkedin { background: #0077b5; color: #fff; }
.ssocial-icon.scholar  { background: #4285f4; color: #fff; }
.ssocial-icon.orcid    { background: #a6ce39; color: #fff; }
.ssocial-icon.rg       { background: #00ccbb; color: #fff; }
.ssocial-icon.twitter  { background: #000; color: #fff; }

/* ============================================================
   GENERIC PAGE & POST CONTENT
   ============================================================ */
.generic-page { padding: 60px 0; }

.page-hd { margin-bottom: 32px; }
.page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--green-dark);
    letter-spacing: -.01em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.page-lead {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.65;
}
.page-cover { margin-bottom: 36px; border-radius: 10px; overflow: hidden; }
.page-cover img { width: 100%; }

/* Post single */
.post-single { padding: 60px 0; }

.post-hd { margin-bottom: 32px; max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }

.post-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.post-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--off);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.post-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.1rem;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -.02em;
}

.post-lead {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

.post-meta {
    font-size: .83rem;
    color: var(--light-text);
}

.post-cover { margin-bottom: 40px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); max-width: 900px; margin-left: auto; margin-right: auto; }
.post-cover img { width: 100%; }
.post-cover figcaption { padding: 8px 14px; font-size: .78rem; color: var(--light-text); text-align: center; background: var(--off); }

.post-ft { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.post-ft-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post-ft-tags span { font-size: .83rem; color: var(--light-text); }

/* Author card */
.author-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--off);
    border-radius: 10px;
    padding: 24px;
    margin-top: 48px;
    border: 1px solid var(--border);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.acard-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.acard-initials {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
}
.acard-by { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--light-text); font-weight: 700; margin-bottom: 4px; }
.acard-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.acard-bio { font-size: .87rem; color: var(--muted); line-height: 1.55; }

/* Post nav */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.pnav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color .15s, box-shadow .15s;
    text-decoration: none;
}
.pnav:hover { border-color: var(--green); box-shadow: var(--shadow); }
.pnav-next { text-align: right; }
.pnav-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--light-text); font-weight: 700; }
.pnav-ttl { font-size: .9rem; font-weight: 700; color: var(--text); line-height: 1.3; }

/* ============================================================
   GH-CONTENT — Rich text typography
   ============================================================ */
.gh-content { max-width: 720px; margin: 0 auto; }
.pub-main.gh-content { max-width: 100%; }

.gh-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--green-dark);
    margin: 2.5em 0 .8em;
    padding-left: 14px;
    border-left: 4px solid var(--green);
}

.gh-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    margin: 2em 0 .6em;
}

.gh-content p { margin-bottom: 1.4em; text-align: justify; hyphens: auto; }

.gh-content ul, .gh-content ol {
    margin: 0 0 1.4em 1.4em;
}
.gh-content li { margin-bottom: .5em; }

.gh-content strong { font-weight: 700; }
.gh-content em { font-style: italic; }

.gh-content a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.gh-content a:hover { color: var(--green-light); }

.gh-content blockquote {
    border-left: 4px solid var(--green);
    padding: 14px 20px;
    margin: 1.8em 0;
    background: rgba(26,107,82,.05);
    border-radius: 0 6px 6px 0;
}
.gh-content blockquote p {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--green-dark);
    margin: 0;
}

.gh-content img { border-radius: 6px; margin: 1.4em auto; }

.gh-content hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 2.5em 0;
}

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: .92rem;
}
.gh-content th {
    background: var(--green);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
}
.gh-content td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
}
.gh-content tr:nth-child(even) td { background: var(--off); }

.gh-content code {
    background: var(--off);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: .87em;
    color: var(--green-dark);
}

/* ============================================================
   ARCHIVE / TAG PAGE
   ============================================================ */
.archive-page { padding: 60px 0; }
.archive-hd { margin-bottom: 36px; }
.archive-hd h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.archive-hd p { margin-top: 10px; color: var(--muted); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 600;
    font-size: .88rem;
    color: var(--text);
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .page-number { background: var(--green); color: #fff; border-color: var(--green); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--green-dark);
    padding: 48px 0;
    margin-top: 80px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.footer-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}

.footer-sub {
    font-size: .82rem;
    color: rgba(255,255,255,.55);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin: 8px 0;
}

.fsocial-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    transition: all .2s;
}
.fsocial-link:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}
.fsocial-link svg { width: 17px; height: 17px; }

.footer-copy { font-size: .76rem; color: rgba(255,255,255,.35); }

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-pg { padding: 80px 0; text-align: center; }
.err-code { font-size: 5rem; font-weight: 900; color: var(--border); line-height: 1; margin-bottom: 12px; }
.error-pg h1 { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.error-pg p { color: var(--muted); margin-bottom: 24px; }
.btn-back {
    display: inline-block;
    padding: 10px 22px;
    background: var(--green);
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    font-size: .9rem;
}
.btn-back:hover { background: var(--green-light); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .pub-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pub-sidebar {
        position: static;
        display: flex;
        gap: 32px;
        align-items: center;
        padding: 24px;
        background: var(--off);
        border-radius: 10px;
        border: 1px solid var(--border);
    }
    .sidebar-photo, .sidebar-photo-placeholder {
        width: 90px;
        height: 90px;
        margin: 0;
        flex-shrink: 0;
    }
    .sidebar-social { flex-direction: row; flex-wrap: wrap; gap: 10px 20px; }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: auto;
        padding: 12px 0;
        gap: 12px;
    }
    .header-brand { flex: 1 1 auto; }
    .header-spec { display: none; }
    .header-name { font-size: 1.1rem; }

    .nav-toggle { display: flex; }
    .site-nav {
        width: 100%;
        display: none;
        border-top: 1px solid rgba(255,255,255,.1);
        padding-top: 8px;
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul li a { display: block; padding: 10px 12px; }

    .home-about-inner { flex-direction: column; gap: 32px; }
    .home-about-sidebar { position: static; flex: none; width: 100%; }
    .sidebar-social { flex-direction: row; flex-wrap: wrap; gap: 12px 20px; }
    
    .posts-grid { grid-template-columns: 1fr; }
    .post-nav { grid-template-columns: 1fr; }
    .post-title { font-size: 1.6rem; }
    .section-hd { flex-direction: column; gap: 6px; }
}

/* ============================================================
   MENTORAT PAGE (custom-mentorat)
   ============================================================ */
body.custom-mentorat {
    background: var(--green);
}

body.custom-mentorat .site-header {
    box-shadow: none;
}

body.custom-mentorat .site-footer {
    display: none;
}

.mentorat-page {
    padding: 60px 0 100px;
    color: var(--text);
}

.mentorat-card {
    background: var(--white);
    border-radius: 6px;
    padding: 40px 50px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.mentorat-header {
    text-align: center;
    margin-bottom: 30px;
}

.mentorat-logo, .mentorat-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.mentorat-logo {
    object-fit: cover;
}

.mentorat-logo-placeholder {
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    font-family: 'Montserrat', sans-serif;
}

.mentorat-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 10px;
}

.mentorat-header p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

.mentorat-form .form-group {
    margin-bottom: 24px;
}

.mentorat-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.mentorat-form .req {
    color: #d32f2f;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--green);
}

.form-area {
    resize: vertical;
}

.check-lbl {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
    cursor: pointer;
    color: var(--text);
}

.check-lbl input {
    margin-top: 3px;
    flex-shrink: 0;
}

.file-upload-box {
    border: 1px dashed var(--border);
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    color: var(--light-text);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.file-upload-box:hover {
    border-color: var(--green);
    color: var(--green);
}
.file-upload-box svg {
    display: block;
    margin: 0 auto 10px;
    color: inherit;
}
.file-upload-box span {
    font-size: 0.85rem;
}

.captcha-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.form-captcha {
    width: 80px;
}

.btn-submit {
    background: #008f51;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover {
    background: #007542;
}

@media (max-width: 600px) {
    .mentorat-card { padding: 30px 20px; }
}

/* ============================================================
   GHOST KG-CLASSES (Required by gscan)
   ============================================================ */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin-left: calc(50% - 42.5vw);
    margin-right: calc(50% - 42.5vw);
    transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
    position: relative;
    width: 100vw;
    min-width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    transform: translateX(calc(50vw - 50%));
}

/* ============================================================
   BOUTIQUE PAGE
   ============================================================ */
.page-boutique {
    padding: 80px 0;
    background: #fdfdfd;
}

.boutique-hd {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.boutique-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--text);
    margin-bottom: 12px;
}

.boutique-subtitle {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-img-wrap {
    position: relative;
    height: 190px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--green);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-body {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-ttl {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text);
}

.product-excerpt {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.product-footer {
    border-top: 1px solid #f2f2f2;
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text);
}

.btn-product {
    display: inline-block;
    background: #f0f0f0;
    color: var(--text);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-product:hover {
    background: var(--green);
    color: #fff;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    margin-top: 40px;
}

.product-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-detail-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.product-buy-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.pbuy-price {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 5px;
}

.pbuy-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.btn-buy-now {
    display: block;
    background: var(--green);
    color: #fff;
    padding: 15px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background 0.2s;
}

.btn-buy-now:hover {
    background: #007542;
}

.pbuy-guarantee {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-main-content .post-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
    .product-sidebar {
        position: static;
        order: 2;
    }
}

/* ============================================================
   MEMBERSHIP & PORTAL
   ============================================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 10px;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-login {
    color: var(--white);
    font-size: .85rem;
    font-weight: 600;
    opacity: .85;
}
.header-login:hover { opacity: 1; color: var(--gold); }

.header-subscribe {
    background: var(--gold);
    color: var(--text) !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: .85rem;
    font-weight: 700;
    transition: all .2s;
}
.header-subscribe:hover { background: var(--gold-hover); transform: translateY(-1px); }

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.member-name {
    color: var(--white);
    font-size: .85rem;
    font-weight: 600;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.3);
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-avatar-initials { font-weight: 700; font-size: .8rem; color: #fff; }

.header-logout {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    font-weight: 500;
}

/* PAYWALL CTA */
.gh-post-upgrade-cta {
    background: linear-gradient(to bottom right, var(--off), #fff);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem !important;
    margin-top: 0 !important;
    border: none !important;
    padding: 0 !important;
}

.cta-text {
    font-size: 1.05rem;
    color: var(--muted);
    margin: 20px auto 30px !important;
    max-width: 500px;
    text-align: center !important;
}

.btn-cta-main {
    display: inline-block;
    background: var(--green);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 1rem;
    transition: all .2s;
}
.btn-cta-main:hover { background: var(--green-dark); transform: scale(1.02); }

.cta-login-hint {
    margin-top: 20px;
    font-size: .85rem;
    color: var(--light-text);
}
.cta-login-hint a { color: var(--green); font-weight: 600; text-decoration: none !important; }

/* BOUTIQUE MEMBER UI */
.boutique-welcome {
    margin-bottom: 40px;
}
.welcome-label {
    display: inline-block;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gold);
    background: rgba(232, 176, 0, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}
.boutique-cta-top {
    margin-top: 24px;
}
.boutique-cta-top .btn-product {
    padding: 12px 30px;
    font-size: 1rem;
}

/* PRODUCT PAGE ENHANCEMENTS */
.product-single { padding-top: 40px; }
.sidebar-sticky { position: sticky; top: 110px; }

.pbuy-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(26,107,82,.08);
    color: var(--green);
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 15px;
}

.pfeat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    text-align: left;
}
.pfeat-icon { color: var(--green); font-weight: bold; }
.pfeat-text { font-size: .88rem; color: var(--muted); }

.product-hd { margin-bottom: 40px; }
.product-tags { display: flex; gap: 8px; margin-bottom: 15px; }
.product-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.8rem;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 20px;
}
.product-lead { font-size: 1.25rem; color: var(--muted); line-height: 1.5; }

.product-benefits { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.benefits-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.benefit-card {
    display: flex;
    gap: 16px;
    background: var(--off);
    padding: 24px;
    border-radius: 12px;
}
.benefit-icon { font-size: 1.5rem; }
.benefit-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.benefit-card p { font-size: .88rem; color: var(--muted); line-height: 1.5; margin: 0; }

@media (max-width: 800px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .product-title { font-size: 2rem; }
    
    .header-actions {
        display: none; /* Cache par défaut sur mobile si le menu est fermé */
    }
    .gh-head-open .header-actions {
        display: flex; /* Affiche dans le menu ouvert */
        flex-direction: column;
        width: 100%;
        margin: 20px 0 0;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .header-auth {
        width: 100%;
        flex-direction: column;
    }
    .header-subscribe {
        width: 100%;
        text-align: center;
    }
}

.pbuy-price {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    color: var(--text);
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}

/* Version élégante quand débloqué */
.pbuy-price.is-active {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green);
    font-weight: 700;
    margin: 15px 0;
    line-height: 1.4;
}

/* BLOG FILTERING & SEARCH */
.blog-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}
.blog-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 30px;
}
.blog-page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    margin: 0;
}
.blog-search-wrap {
    flex-grow: 1;
    max-width: 400px;
}
.btn-search-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 100px;
    color: var(--muted);
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
    text-align: left;
}
.btn-search-trigger:hover {
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.blog-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.filter-label {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}
.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none !important;
    transition: all .2s;
}
.filter-tag:hover {
    border-color: var(--green);
    color: var(--green);
}
.filter-tag.is-active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

@media (max-width: 800px) {
    .blog-header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .blog-search-wrap {
        width: 100%;
        max-width: none;
    }
}
