/* ── BaugéPlus Personnes v1.1 — Poppins, max 700 ── */

/* ═══════════════════════════════════════════════════
   CARDS sous l'article
═══════════════════════════════════════════════════ */
.bpp-personnes-block {
    margin: 36px 0 16px;
    padding: 20px 20px 16px;
    background: #f7f8fc;
    border-left: 4px solid #f47920;
    border-radius: 0 10px 10px 0;
    font-family: Poppins, sans-serif;
}
.bpp-personnes-titre {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #1a2b5e;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bpp-layout-content .bpp-personnes-grid { display:flex; flex-wrap:wrap; gap:12px; }
.bpp-layout-sidebar .bpp-personnes-grid { display:flex; flex-direction:column; gap:10px; }

.bpp-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e4e8f4;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 280px;
    position: relative;
    font-family: Poppins, sans-serif;
}
.bpp-layout-sidebar .bpp-card { max-width:100%; width:100%; }
.bpp-card:hover { transform:translateY(-2px); box-shadow:0 4px 16px rgba(26,43,94,.10); border-color:#f47920; text-decoration:none; color:inherit; }

.bpp-card-photo { flex-shrink:0; width:48px; height:48px; }
.bpp-card-photo img { width:48px; height:48px; border-radius:50%; object-fit:cover; display:block; border:2px solid #e4e8f4; }
.bpp-card-photo-placeholder { width:48px; height:48px; border-radius:50%; background:#1a2b5e; color:#fff; display:flex; align-items:center; justify-content:center; font-family:Poppins,sans-serif; font-weight:700; font-size:18px; }

.bpp-card-info { flex:1; min-width:0; }
.bpp-card-name  { font-family:Poppins,sans-serif; font-weight:700; font-size:13px; color:#1a2b5e; line-height:1.3; margin-bottom:2px; }
.bpp-card-role  { font-family:Poppins,sans-serif; font-weight:500; font-size:11px; color:#444; margin-bottom:2px; }
.bpp-card-affil { font-family:Poppins,sans-serif; font-weight:400; font-size:11px; color:#888; }
.bpp-card-tag   { display:inline-block; margin-top:5px; padding:2px 8px; background:#f0f4ff; color:#1a2b5e; border-radius:10px; font-family:Poppins,sans-serif; font-size:10px; font-weight:600; }
.bpp-card-ext   { position:absolute; top:8px; right:10px; font-size:12px; color:#f47920; }

/* ═══════════════════════════════════════════════════
   SINGLE PERSONNE — Hero pleine largeur
═══════════════════════════════════════════════════ */
.bpp-single-wrap {
    font-family: Poppins, sans-serif;
}

/* Pleine largeur : casse la colonne de contenu SmartMag */
.bpp-single-hero {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 36px;
}

/* Bannière bleue — contient la photo en absolute */
.bpp-single-banner {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #0f1b3d 0%, #1a2b5e 50%, #243d82 100%);
    overflow: visible;
}

/* Photo en médaillon : centrée dans la bannière, débordant en bas */
/* Wrapper pour le border dégradé */
.bpp-single-photo-ring {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 144px !important;
    height: 144px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #f47920 0%, #ffb347 50%, #f47920 100%);
    padding: 5px !important;
    box-shadow: 0 6px 28px rgba(26,43,94,.35);
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.bpp-single-photo {
    width: 134px !important;
    height: 134px !important;
    min-width: 134px !important;
    max-width: 134px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    background: #fff;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.bpp-photo-placeholder {
    width: 134px;
    height: 134px;
    border-radius: 50%;
    background: #1a2b5e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 48px;
}

/* Zone infos : espace en haut pour la photo débordante */
.bpp-single-hero-inner {
    padding: 70px 24px 28px; /* 70px = débordement photo + marge */
    text-align: center;
    background: #fff;
}

.bpp-single-hero-info { max-width: 720px; margin: 0 auto; }

.bpp-single-name {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #1a2b5e;
    margin: 0 0 14px;
    line-height: 1.2;
}

/* Postes */
.bpp-single-postes {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.bpp-single-poste {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    color: #666;
    padding: 5px 10px;
    background: #f5f7fb;
    border-radius: 6px;
}

.bpp-poste-principal {
    background: #fff3e8;
    border-left: 3px solid #f47920;
}

.bpp-poste-fn {
    font-weight: 700;
    font-size: 13px;
    color: #1a2b5e;
}
.bpp-poste-principal .bpp-poste-fn { color: #c45a00; }
.bpp-poste-sep { color: #ccc; margin: 0 2px; }
.bpp-poste-af  { color: #777; font-size: 12px; }

/* Badges âge + tags */
.bpp-single-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bpp-badge-age {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    background: #f0f2f8;
    padding: 4px 10px;
    border-radius: 20px;
}

.bpp-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #1a2b5e;
    color: #fff;
    border-radius: 12px;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.bpp-tag:hover { background:#f47920; color:#fff; text-decoration:none; }

/* Réseaux sociaux */
.bpp-single-socials {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.bpp-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef0f8;
    font-size: 14px;
    font-weight: 700;
    font-family: Poppins, sans-serif;
    text-decoration: none;
    color: #1a2b5e;
    transition: background .15s, transform .15s;
}
.bpp-social-btn:hover { background:#f47920; color:#fff; transform:scale(1.1); text-decoration:none; }

/* Lien officiel */
.bpp-lien-ext-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #f47920;
    color: #fff;
    border-radius: 6px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.bpp-lien-ext-btn:hover { background:#d9641a; color:#fff; text-decoration:none; }

/* ═══════════════════════════════════════════════════
   Bio
═══════════════════════════════════════════════════ */
.bpp-single-bio {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 28px;
    padding: 20px 24px;
    background: #f7f8fc;
    border-radius: 10px;
    border-left: 4px solid #1a2b5e;
}

.bpp-bio-label {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #1a2b5e;
    margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════
   Articles liés
═══════════════════════════════════════════════════ */
.bpp-single-articles { margin-top: 8px; }

.bpp-section-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #f47920;
}

.bpp-section-titre {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #1a2b5e;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0;
}

.bpp-section-sub {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #888;
}

.bpp-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.bpp-article-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e4e8f4;
    transition: box-shadow .15s, transform .15s;
    font-family: Poppins, sans-serif;
    background: #fff;
}
.bpp-article-card:hover { box-shadow:0 4px 16px rgba(26,43,94,.1); transform:translateY(-2px); text-decoration:none; color:inherit; }

.bpp-ac-thumb { height:110px; background-size:cover; background-position:center; background-color:#e4e8f4; }
.bpp-ac-thumb-empty { background:linear-gradient(135deg, #1a2b5e 0%, #2d4a9e 100%); }

.bpp-ac-info { padding:10px 12px; }
.bpp-ac-cat  { font-family:Poppins,sans-serif; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:#f47920; margin-bottom:4px; }
.bpp-ac-title { font-family:Poppins,sans-serif; font-size:12px; font-weight:600; color:#1a2b5e; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.bpp-ac-date  { font-family:Poppins,sans-serif; font-size:10px; font-weight:400; color:#aaa; margin-top:5px; }

/* ═══════════════════════════════════════════════════
   LISTING PAR AFFILIATION
═══════════════════════════════════════════════════ */
.bpp-affil-section { margin-bottom:40px; font-family:Poppins,sans-serif; }

.bpp-affil-section-titre {
    font-family:Poppins,sans-serif; font-weight:700; font-size:15px; color:#1a2b5e;
    text-transform:uppercase; letter-spacing:.5px; margin-bottom:16px; padding-bottom:10px;
    border-bottom:3px solid #f47920; display:flex; align-items:center; gap:10px;
}
.bpp-affil-count { display:inline-flex; align-items:center; justify-content:center; background:#f47920; color:#fff; border-radius:20px; font-size:11px; font-weight:700; padding:2px 9px; line-height:1.6; }

.bpp-affil-grid { display:grid; gap:14px; }
.bpp-cols-1 { grid-template-columns:1fr; }
.bpp-cols-2 { grid-template-columns:repeat(2,1fr); }
.bpp-cols-3 { grid-template-columns:repeat(3,1fr); }
.bpp-cols-4 { grid-template-columns:repeat(4,1fr); }

.bpp-affil-card { display:flex; align-items:center; gap:12px; padding:12px 16px; background:#fff; border:1px solid #e4e8f4; border-radius:10px; text-decoration:none; color:inherit; position:relative; transition:transform .15s,box-shadow .15s,border-color .15s; font-family:Poppins,sans-serif; }
.bpp-affil-card:hover { transform:translateY(-2px); box-shadow:0 4px 16px rgba(26,43,94,.10); border-color:#f47920; text-decoration:none; color:inherit; }
.bpp-affil-card-photo { flex-shrink:0; width:52px; height:52px; }
.bpp-affil-card-photo img { width:52px; height:52px; border-radius:50%; object-fit:cover; border:2px solid #e4e8f4; display:block; }
.bpp-affil-photo-placeholder { width:52px; height:52px; border-radius:50%; background:#1a2b5e; color:#fff; display:flex; align-items:center; justify-content:center; font-family:Poppins,sans-serif; font-weight:700; font-size:20px; }
.bpp-affil-card-info { flex:1; min-width:0; }
.bpp-affil-card-name { font-family:Poppins,sans-serif; font-weight:700; font-size:13px; color:#1a2b5e; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bpp-affil-card-role { font-family:Poppins,sans-serif; font-size:12px; font-weight:500; color:#555; margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
/* Bio et articles : centrés, lisibles */
.bpp-single-bio,
.bpp-single-articles {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .bpp-single-banner { height: 150px; }
    .bpp-single-photo-ring { width:110px; height:110px; bottom:-48px; }
    .bpp-single-photo, .bpp-photo-placeholder { width:100px; height:100px; font-size:36px; }
    .bpp-single-hero-inner { padding-top: 60px; }
    .bpp-single-hero-inner { padding-top: 58px; }
    .bpp-single-name { font-size:20px; }
    .bpp-single-postes { align-items:center; }
    .bpp-single-badges, .bpp-single-socials { justify-content:center; }
    .bpp-articles-grid { grid-template-columns:repeat(2,1fr); }
    .bpp-layout-content .bpp-personnes-grid { flex-direction:column; }
    .bpp-card { max-width:100%; }
    .bpp-cols-4 { grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 480px) {
    .bpp-articles-grid { grid-template-columns:1fr; }
    .bpp-cols-2,.bpp-cols-3,.bpp-cols-4 { grid-template-columns:1fr; }
    .bpp-single-banner { height: 120px; }
}

/* ── Overrides SmartMag / thème sur la photo single ── */
.bpp-single-photo-ring img.bpp-single-photo,
.entry-content .bpp-single-photo-ring img,
.post-content .bpp-single-photo-ring img {
    width: 134px !important;
    height: 134px !important;
    max-width: 134px !important;
    min-width: 134px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    float: none !important;
    box-shadow: none !important;
    border: none !important;
}
