/* ==========================================================================
   Espace membre BBC — sidebar + pages privées (Tableau de bord, Mon profil,
   Mes événements, Annuaire, Paramètres). Propre au thème : ce n'est pas la
   même chose que le style "éditorial" du plugin ad-events (public), ici
   c'est une interface applicative séparée avec sa propre sidebar.
   ========================================================================== */

body.bbc-member-area { margin: 0; background: #FBF9F5; font-family: 'Manrope', system-ui, sans-serif; color: #16375C; -webkit-font-smoothing: antialiased; }
.bbc-ma, .bbc-ma *, .bbc-ma *::before, .bbc-ma *::after { box-sizing: border-box; }
.bbc-ma a { color: inherit; text-decoration: none; }
.bbc-ma__main a:hover { color: #D9743B; }
.bbc-ma { display: flex; min-height: 100vh; width: 100%; }

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.bbc-ma__sidebar {
    width: 250px; flex: none;
    background: #D9743B;
    color: rgba(255,255,255,.88);
    display: flex; flex-direction: column;
    padding: 26px 20px;
    /* Reste à l'écran quel que soit la longueur de la page (annuaire avec
       beaucoup de membres, long formulaire…) — "Se déconnecter" (en bas,
       via margin-top:auto plus loin) reste toujours visible sans avoir à
       dérouler jusqu'au bas du document. */
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
/* La barre d'admin WordPress (visible pour les administrateurs connectés)
   est en position:fixed par-dessus le haut de la page — sans ce correctif,
   elle recouvre les 32px du haut de la sidebar collée à l'écran, et "Se
   déconnecter" (en bas) se retrouve poussé de 32px sous la zone visible. */
body.admin-bar .bbc-ma__sidebar {
    top: 32px;
    height: calc(100vh - 32px);
}
.bbc-ma__logo-block {
    padding: 0 8px 18px; margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.bbc-ma__logo { display: flex; align-items: center; gap: 12px; }
.bbc-ma__logo-mark { width: 11px; height: 11px; transform: rotate(45deg); background: #16375C; flex-shrink: 0; }
.bbc-ma__logo-word { font: 600 20px/1 'Cormorant Garamond', serif; letter-spacing: .16em; color: #fff; }

.bbc-ma__sidebar-backlink { display: flex; align-items: center; gap: 7px; margin-top: 12px; font: 600 12px 'Manrope'; color: rgba(255,255,255,.6); }

.bbc-ma__user { display: flex; align-items: center; gap: 12px; padding: 16px 8px 20px; }
.bbc-ma__user img { display: block; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.bbc-ma__user-name { font: 700 14px 'Manrope'; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bbc-ma__nav { display: flex; flex-direction: column; gap: 4px; font: 600 13.5px 'Manrope'; margin-top: 6px; }
.bbc-ma__nav-item { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 10px; color: rgba(255,255,255,.78); }
.bbc-ma__nav-item.is-active { background: #FBF9F5; color: #16375C; }

.bbc-ma__logout { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 11px 14px; font: 600 13px 'Manrope'; color: rgba(255,255,255,.72); }

/* Spécificité relevée pour battre le style global du thème (theme.json
   styles.elements.link.:hover → couleur accent-1, soit #D9743B — identique
   au fond orange de cette sidebar, ce qui rendait le survol invisible). */
.bbc-ma__sidebar .bbc-ma__sidebar-backlink:hover,
.bbc-ma__sidebar .bbc-ma__nav-item:hover,
.bbc-ma__sidebar .bbc-ma__nav-item.is-active:hover,
.bbc-ma__sidebar .bbc-ma__logout:hover {
    color: #16375C;
}

/* ── Main content ─────────────────────────────────────────────────────── */
.bbc-ma__main { flex: 1; min-width: 0; }
.bbc-ma__container { max-width: 1000px; margin: 0 auto; padding: 40px 48px 60px; }
.bbc-ma__container--narrow { max-width: 760px; }
.bbc-ma__container--medium { max-width: 900px; }
.bbc-ma__container--wide { max-width: 1100px; }

.bbc-ma__eyebrow { font: 600 12px 'Manrope'; color: #D9743B; letter-spacing: .18em; margin-bottom: 10px; }
.bbc-ma__title { font: 500 38px/1.08 'Cormorant Garamond', serif; margin: 0; }
.bbc-ma__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.bbc-ma__btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 22px; background: #D9743B; color: #FBF9F5;
    font: 700 13px 'Manrope'; border-radius: 24px; border: none; cursor: pointer;
}
.bbc-ma__btn:hover { background: #16375C; color: #FBF9F5; }
.bbc-ma__btn--dark { background: #16375C; }
.bbc-ma__btn--dark:hover { background: #D9743B; }

.bbc-ma__card { background: #fff; border: 1px solid rgba(22,55,92,.09); border-radius: 16px; padding: 28px; margin-bottom: 20px; }
.bbc-ma__card-label { font: 600 11px 'Manrope'; color: #5c7185; letter-spacing: .14em; margin-bottom: 16px; }
.bbc-ma__card h3 { font: 600 20px 'Cormorant Garamond', serif; margin: 0 0 6px; }

/* ── Complétion profil ────────────────────────────────────────────────── */
.bbc-ma__ring-row { display: flex; align-items: center; gap: 28px; }
.bbc-ma__ring { width: 104px; height: 104px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.bbc-ma__ring-inner { width: 78px; height: 78px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bbc-ma__ring-pct { font: 600 26px/1 'Cormorant Garamond', serif; color: #16375C; }
.bbc-ma__ring-label { font: 600 9px 'Manrope'; color: #5c7185; letter-spacing: .08em; }

/* ── Lignes événements ────────────────────────────────────────────────── */
.bbc-ma__ev-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center; padding: 14px; border: 1px solid rgba(22,55,92,.08); border-radius: 12px; background: #fff; }
.bbc-ma__ev-row + .bbc-ma__ev-row { margin-top: 12px; }
.bbc-ma__ev-row--past { opacity: .75; }
.bbc-ma__ev-date { text-align: center; border-right: 1px solid rgba(22,55,92,.1); padding-right: 14px; }
.bbc-ma__ev-day { font: 500 26px/1 'Cormorant Garamond', serif; }
.bbc-ma__ev-month { font: 700 10px 'Manrope'; color: #D9743B; letter-spacing: .1em; margin-top: 3px; }
.bbc-ma__ev-row--past .bbc-ma__ev-month { color: #5c7185; }
.bbc-ma__ev-title { font: 700 15px 'Manrope'; }
.bbc-ma__ev-meta { font: 500 12.5px 'Manrope'; color: #5c7185; margin-top: 2px; }
.bbc-ma__badge { padding: 6px 13px; font: 700 11px 'Manrope'; border-radius: 14px; white-space: nowrap; }
.bbc-ma__badge--confirmed { background: #e7f3ec; color: #1f8a5b; }
.bbc-ma__badge--past { background: #eaf0f7; color: #4a678a; }
.bbc-ma__badge--action { background: #D9743B; color: #fff; }
.bbc-ma__badge--neutral { background: #f2eee7; color: #8a7757; }
.bbc-ma__badge--cancelled { background: #fbe9e7; color: #c0392b; }
/* Spécificité relevée pour battre le style global du thème (theme.json
   styles.elements.link.:hover → accent-1, soit #D9743B — identique au fond
   de ce badge, ce qui rendait le texte invisible au survol). */
.bbc-ma__main .bbc-ma__badge--action:hover { color: #16375C; }

/* ── Mes achats (commandes WooCommerce) ──────────────────────────────── */
.bbc-ma__order-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 18px; align-items: center; padding: 16px; border: 1px solid rgba(22,55,92,.08); border-radius: 12px; background: #fff; }
.bbc-ma__order-row + .bbc-ma__order-row { margin-top: 12px; }
.bbc-ma__order-num { font: 700 15px 'Manrope'; }
.bbc-ma__order-meta { font: 500 12.5px 'Manrope'; color: #5c7185; margin-top: 2px; }
.bbc-ma__order-total { font: 700 16px 'Cormorant Garamond', serif; color: #16375C; white-space: nowrap; }

/* ── Formulaires ──────────────────────────────────────────────────────── */
.bbc-ma__field { margin-bottom: 16px; }
.bbc-ma__field label { font: 600 12px 'Manrope'; color: #425a78; display: block; margin-bottom: 7px; }
.bbc-ma__field input[type=text], .bbc-ma__field input[type=email], .bbc-ma__field input[type=url], .bbc-ma__field input[type=password], .bbc-ma__field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid rgba(22,55,92,.16); border-radius: 9px;
    font: 400 14px 'Manrope'; color: #16375C; background: #fff;
}
.bbc-ma__field textarea { line-height: 1.6; resize: vertical; }
.bbc-ma__field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bbc-ma__checkbox { display: flex; align-items: center; gap: 10px; font: 500 14px 'Manrope'; color: #425a78; }
.bbc-ma__checkbox input { accent-color: #D9743B; }
.bbc-ma__notice { padding: 12px 16px; border-radius: 10px; font: 600 13px 'Manrope'; margin-bottom: 20px; }
.bbc-ma__notice--success { background: #e7f3ec; color: #1f8a5b; }

/* ── Champs rendus par ad-membre (Field_Renderer) — mêmes classes que sa
   sortie HTML native (.ad-mp-*), stylisées ici pour matcher l'espace membre. ── */
.bbc-ma__card--ad-mp .ad-mp-field { margin-bottom: 16px; }
.bbc-ma__card--ad-mp .ad-mp-label label { font: 600 12px 'Manrope'; color: #425a78; display: block; margin-bottom: 7px; }
.bbc-ma__card--ad-mp .ad-mp-input input[type=text],
.bbc-ma__card--ad-mp .ad-mp-input input[type=url],
.bbc-ma__card--ad-mp .ad-mp-input input[type=email],
.bbc-ma__card--ad-mp .ad-mp-input input[type=tel],
.bbc-ma__card--ad-mp .ad-mp-input input[type=password],
.bbc-ma__card--ad-mp .ad-mp-input input[type=date],
.bbc-ma__card--ad-mp .ad-mp-input input[type=datetime-local],
.bbc-ma__card--ad-mp .ad-mp-input textarea,
.bbc-ma__card--ad-mp .ad-mp-input select {
    width: 100%; padding: 12px 14px; border: 1px solid rgba(22,55,92,.16); border-radius: 9px;
    font: 400 14px 'Manrope'; color: #16375C; background: #fff;
}
.bbc-ma__card--ad-mp .ad-mp-input textarea { line-height: 1.6; resize: vertical; }
.bbc-ma__card--ad-mp .ad-mp-radio-list, .bbc-ma__card--ad-mp .ad-mp-checkbox-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.bbc-ma__card--ad-mp .ad-mp-radio-list label, .bbc-ma__card--ad-mp .ad-mp-checkbox-list label { display: flex; align-items: center; gap: 8px; font: 500 14px 'Manrope'; color: #425a78; }
.bbc-ma__card--ad-mp .ad-mp-radio-list input, .bbc-ma__card--ad-mp .ad-mp-checkbox-list input { accent-color: #D9743B; }
.bbc-ma__notice--error { background: #fbe9e7; color: #c0392b; }

/* ── Champ "Photo de profil" (ad-membre, wp.media) ───────────────────── */
.ad-mp-avatar-preview { position: relative; display: inline-block; }
.ad-mp-avatar-preview img { display: block; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.ad-mp-avatar-remove {
    position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
    background: #c0392b; color: #fff; border: 2px solid #fff; cursor: pointer; line-height: 1; font-size: 13px;
}
.ad-mp-avatar-btn {
    padding: 10px 18px; border: 1px solid rgba(22,55,92,.16); border-radius: 20px; background: #fff;
    color: #16375C; font: 600 12.5px 'Manrope'; cursor: pointer;
}
.ad-mp-avatar-btn:hover { border-color: #D9743B; color: #D9743B; }

/* ── Annuaire ─────────────────────────────────────────────────────────── */
.bbc-ma__search-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.bbc-ma__search-row input[type=search] { flex: 1; min-width: 260px; max-width: 420px; padding: 12px 16px; border: 1px solid rgba(22,55,92,.16); border-radius: 24px; font: 400 14px 'Manrope'; background: #fff; }
.bbc-ma__chip { display: inline-flex; padding: 10px 16px; font: 600 12.5px 'Manrope'; border-radius: 20px; background: #fff; color: #5a708c; box-shadow: inset 0 0 0 1px rgba(22,55,92,.14); }
.bbc-ma__chip.is-active { background: #D9743B; color: #FBF9F5; box-shadow: none; }
.bbc-ma__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.bbc-ma__member-card { background: #fff; border: 1px solid rgba(22,55,92,.09); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; transition: border-color .15s; }
.bbc-ma__member-card:hover { border-color: #D9743B; }
.bbc-ma__member-head { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.bbc-ma__member-head img { width: 58px; height: 58px; border-radius: 50%; }
.bbc-ma__member-name { font: 700 16px 'Manrope'; color: #D9743B; }
.bbc-ma__member-role { font: 600 12px 'Manrope'; color: #16375C; margin-top: 2px; }
.bbc-ma__member-company { font: 600 12.5px 'Manrope'; color: #425a78; }
.bbc-ma__member-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 10px; }
.bbc-ma__sector-tag { padding: 5px 11px; background: #eaf0f7; color: #4a678a; font: 600 10.5px 'Manrope'; border-radius: 14px; }
.bbc-ma__empty { color: #5a708c; font: 500 14px 'Manrope'; padding: 30px 0; }

/* ── Fiche détail d'un membre (annuaire ?membre=ID) — maquette "BBC Fiche Membre" ── */
.bbc-ma__back-link { display: inline-block; font: 600 13px 'Manrope'; color: #5a708c; text-decoration: none; margin-bottom: 22px; }
.bbc-ma__back-link:hover { color: #D9743B; }
.bbc-ma__profile-head { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.bbc-ma__profile-head img { width: 110px; height: 110px; border-radius: 50%; flex-shrink: 0; }
.bbc-ma__profile-eyebrow { font: 600 12px 'Manrope'; color: #16375C; letter-spacing: .16em; margin-bottom: 6px; }
.bbc-ma__profile-name { font: 500 34px 'Cormorant Garamond', serif; margin: 0; color: #D9743B; }
.bbc-ma__profile-role { font: 600 15px 'Manrope'; color: #16375C; margin: 4px 0 0; }
.bbc-ma__profile-city { font: 500 13px 'Manrope'; color: #5a708c; margin: 3px 0 0; }
.bbc-ma__profile-card { background: #fff; border: 1px solid rgba(22,55,92,.09); border-radius: 16px; padding: 32px 36px; }
.bbc-ma__profile-subtitle { font: 600 12px 'Manrope'; letter-spacing: .14em; text-transform: uppercase; color: #8a9db8; margin: 0 0 12px; }
.bbc-ma__profile-bio { font: 400 15px/1.7 'Manrope'; color: #425a78; margin: 0 0 30px; white-space: pre-line; }
.bbc-ma__profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; font: 500 14px 'Manrope'; color: #16375C; }
.bbc-ma__profile-field-label { font: 600 11px 'Manrope'; color: #8a9db8; letter-spacing: .1em; margin-bottom: 4px; }
.bbc-ma__profile-link-inline { color: #D9743B; text-decoration: none; }
.bbc-ma__profile-link-inline:hover { text-decoration: underline; }

@media (max-width: 782px) {
    .bbc-ma { flex-direction: column; }
    .bbc-ma__sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 16px 20px; position: static; height: auto; overflow-y: visible; }
    .bbc-ma__nav { flex-direction: row; flex-wrap: wrap; margin-top: 0; }
    .bbc-ma__logout { margin-top: 0; margin-left: auto; }
    .bbc-ma__container { padding: 28px 20px 40px; }
    .bbc-ma__field-row, .bbc-ma__grid, .bbc-ma__profile-fields { grid-template-columns: 1fr; }
    .bbc-ma__profile-head { align-items: flex-start; }
    .bbc-ma__order-row { grid-template-columns: 1fr; justify-items: start; }
}

/* ── Page de connexion (wp-login.php stylisé) ────────────────────────── */
body.login {
    background: #D9743B !important;
    font-family: 'Manrope', system-ui, sans-serif;
}
body.login #login { padding-top: 6vh; }
body.login h1 a {
    background-image: none !important;
    width: auto; height: auto;
    text-indent: 0; overflow: visible;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font: 600 22px/1 'Cormorant Garamond', serif;
    letter-spacing: .16em; color: #fff !important;
    pointer-events: none;
}
body.login h1 a::before {
    content: ''; display: block; width: 11px; height: 11px; transform: rotate(45deg);
    background: #16375C; margin-bottom: 6px;
}
body.login #loginform, body.login #registerform, body.login #lostpasswordform {
    background: #FBF9F5; border-radius: 20px; padding: 38px 34px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25); border: none;
}
body.login .login__title,
body.login #login form + p { color: rgba(255,255,255,.85); }
body.login label { font: 600 12px 'Manrope'; color: #425a78 !important; }
body.login input[type=text], body.login input[type=email], body.login input[type=password] {
    border: 1px solid rgba(22,55,92,.18) !important; border-radius: 9px !important;
    padding: 13px 14px !important; font: 400 14px 'Manrope' !important; box-shadow: none !important;
    height: auto !important;
}
body.login input[type=text]:focus, body.login input[type=email]:focus, body.login input[type=password]:focus {
    border-color: #D9743B !important; box-shadow: 0 0 0 1px #D9743B !important;
}
body.login .button.button-primary, body.login .wp-core-ui .button-primary {
    display: block; width: 100%; text-align: center; padding: 15px !important; height: auto !important;
    background: #D9743B !important; border-color: #D9743B !important; color: #FBF9F5 !important;
    border-radius: 26px !important; font: 700 14px 'Manrope' !important; text-shadow: none !important; box-shadow: none !important;
}
body.login .button.button-primary:hover { background: #16375C !important; border-color: #16375C !important; }
body.login #nav, body.login #backtoblog { text-align: center; margin-top: 16px; }
body.login #nav a, body.login #backtoblog a { color: rgba(255,255,255,.85) !important; font: 600 13px 'Manrope' !important; }
body.login #nav a:hover, body.login #backtoblog a:hover { color: #16375C !important; }

body.login #login { width: 420px; padding-top: 8vh; }
body.login h1 a::after { content: 'BRUSSELS BUSINESS CLUB'; font: 500 7.5px/1 'Manrope', sans-serif; letter-spacing: .26em; color: rgba(255,255,255,.72); margin-top: 6px; }
body.login #login_error, body.login .message { border-radius: 10px !important; border: none !important; box-shadow: none !important; font: 500 13px 'Manrope' !important; }
.bbc-login-eyebrow { text-align: center; font: 600 12px 'Manrope'; color: #16375C; letter-spacing: .2em; margin: 0 0 14px; }
.bbc-login-title { text-align: center; font: 500 34px/1.1 'Cormorant Garamond', serif; color: #fff; margin: 0 0 10px; }
.bbc-login-sub { text-align: center; font: 400 13.5px/1.5 'Manrope'; color: rgba(255,255,255,.85); margin: 0 0 22px; }
.bbc-login-join { text-align: center; font: 400 14px 'Manrope'; color: rgba(255,255,255,.85); margin: 20px 0 0; }
.bbc-login-join a { color: #16375C; font-weight: 700; }
