/**
 * BNB B2B Networking - Styles CSS Principal
 *
 * @package BNB_B2B_Networking
 * @version 1.0.0
 *
 * Structure:
 * 1. Variables & Reset
 * 2. Composants communs (boutons, formulaires, cartes)
 * 3. Login & Register
 * 4. Annuaire (Directory)
 * 5. Sponsors & Partenaires
 * 6. Réservations (Bookings)
 * 7. Profil membre
 * 8. Mes rendez-vous
 * 9. Responsive
 */

/* ===========================================
   0. GLOBAL — Hide WP page titles on B2B pages
   =========================================== */
body:has(.bnb-b2b-login-page) .entry-header,
body:has(.bnb-b2b-login-page) .hero-container,
body:has(.bnb-b2b-login-page) .wp-block-post-title,
body:has(.bnb-b2b-directory) .entry-header,
body:has(.bnb-b2b-directory) .hero-container,
body:has(.bnb-b2b-directory) .wp-block-post-title,
body:has(.bnb-b2b-auth-wrapper) .entry-header,
body:has(.bnb-b2b-auth-wrapper) .hero-container,
body:has(.bnb-b2b-auth-wrapper) .wp-block-post-title,
body:has(.bnb-b2b-profile-wrapper) .entry-header,
body:has(.bnb-b2b-profile-wrapper) .hero-container,
body:has(.bnb-b2b-profile-wrapper) .wp-block-post-title,
body:has(.bnb-b2b-home) .entry-header,
body:has(.bnb-b2b-home) .hero-container,
body:has(.bnb-b2b-home) .wp-block-post-title,
body:has(.bnb-b2b-home) .entry-hero-container-inner,
body:has(.csr-landing) .entry-header,
body:has(.csr-landing) .hero-container,
body:has(.csr-landing) .wp-block-post-title,
body:has(.csr-landing) .entry-hero-container-inner {
    display: none !important;
}

/* Site landing page: full-width */
body:has(.csr-landing) .entry-content-wrap,
body:has(.csr-landing) .content-wrap {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:has(.csr-landing) .site-main > .entry-content,
body:has(.csr-landing) .entry > .entry-content-wrap {
    max-width: 100% !important;
    padding: 0 !important;
}

body:has(.csr-landing) article.entry {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Home page: full-width content — remove Kadence wrapper padding */
body:has(.bnb-b2b-home) .entry-content-wrap,
body:has(.bnb-b2b-home) .content-wrap {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:has(.bnb-b2b-home) .site-main > .entry-content,
body:has(.bnb-b2b-home) .entry > .entry-content-wrap {
    max-width: 100% !important;
    padding: 0 !important;
}

body:has(.bnb-b2b-home) article.entry {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===========================================
   0. PROFILE EDIT FORM
   =========================================== */

/* --- Header Banner (gradient) --- */
.bnb-b2b-profile-header-banner {
    background: linear-gradient(135deg, #405189 0%, #2e3a5f 100%);
    color: #fff;
    padding: 40px 30px 28px;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 6px rgba(0, 74, 173, 0.1);
}

.bnb-b2b-profile-header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bnb-b2b-profile-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.bnb-b2b-profile-subtitle {
    margin: 10px 0 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

/* --- Logo quick-edit (in banner) --- */
.bnb-b2b-profile-logo-quick {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.bnb-b2b-logo-quick-trigger {
    position: relative;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.bnb-b2b-logo-quick-avatar {
    position: relative;
    width: 60px;
    height: 60px;
}

.bnb-b2b-logo-quick-avatar img,
.bnb-b2b-logo-quick-avatar .bnb-b2b-logo-quick-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.bnb-b2b-logo-edit-hint {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bnb-b2b-success);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bnb-b2b-logo-quick-trigger:hover .bnb-b2b-logo-edit-hint,
.bnb-b2b-logo-quick-trigger:focus .bnb-b2b-logo-edit-hint {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.45);
}

.bnb-b2b-logo-quick-label {
    font-size: 12px;
    opacity: 0.9;
    color: #fff;
}

/* --- Header info + badges --- */
.bnb-b2b-profile-header-info {
    flex: 1;
}

.bnb-b2b-profile-badges {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.bnb-b2b-profile-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.bnb-b2b-status--complete {
    background: var(--bnb-b2b-success);
    color: #fff;
}

.bnb-b2b-status--incomplete {
    background: var(--bnb-b2b-warning);
    color: #fff;
}

/* --- Progress bar (inside banner) --- */
.bnb-b2b-profile-progress-inline {
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    max-width: 380px;
}

.bnb-b2b-progress-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.bnb-b2b-progress-pill {
    background: #303a70;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
}

.bnb-b2b-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bnb-b2b-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #ff7a18, #ffc300);
}

.bnb-b2b-progress--success .bnb-b2b-progress-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.bnb-b2b-progress--info .bnb-b2b-progress-fill {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.bnb-b2b-progress--warning .bnb-b2b-progress-fill {
    background: linear-gradient(90deg, #ff7a18, #ffc300);
}

.bnb-b2b-progress-text {
    margin: 0;
    font-size: 13px;
    opacity: 0.95;
    line-height: 1.4;
    color: #fff;
}

/* --- Form container (white card below banner) --- */
.bnb-b2b-profile-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* --- Visibility card --- */
.bnb-b2b-profile-visibility-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    margin: 0 0 28px;
    border: 1px solid var(--bnb-b2b-gray-200);
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.bnb-b2b-visibility-left {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    color: var(--bnb-b2b-gray-600);
}

.bnb-b2b-visibility-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bnb-b2b-vis-title {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.bnb-b2b-vis-sub {
    margin: 0;
    color: #475569;
    font-size: 13px;
}

.bnb-b2b-visibility-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bnb-b2b-visibility-pill {
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
}

.bnb-b2b-pill--on {
    background: #e0f2fe;
    color: #0b73d2;
    border: 1px solid #93c5fd;
}

.bnb-b2b-pill--off {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.bnb-b2b-toggle-label {
    font-size: 13px;
    color: #334155;
    font-weight: 600;
}

/* --- Toggle switch (iOS-like) --- */
.bnb-b2b-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.bnb-b2b-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.bnb-b2b-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.bnb-b2b-switch-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.bnb-b2b-switch input:checked + .bnb-b2b-switch-slider {
    background: #0b73d2;
    border-color: #0b73d2;
}

.bnb-b2b-switch input:checked + .bnb-b2b-switch-slider:before {
    transform: translateX(22px);
    background: #fff;
}

/* --- Message area --- */
.bnb-b2b-profile-message-area {
    margin: 0 0 20px;
}

.bnb-b2b-profile-message-area:empty {
    display: none;
}

.bnb-b2b-profile-message-area .bnb-b2b-message {
    animation: bnbSlideDown 0.3s ease;
}

@keyframes bnbSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Form sections --- */
.bnb-b2b-form-section {
    margin-bottom: 15px;
}

.bnb-b2b-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bnb-b2b-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bnb-b2b-section-icon {
    width: 24px;
    height: 24px;
    color: var(--bnb-b2b-primary);
    stroke-width: 2;
    flex-shrink: 0;
}

/* --- Form grid (2 columns) --- */
.bnb-b2b-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 18px;
    margin-bottom: 24px;
}

.bnb-b2b-form-grid:last-child {
    margin-bottom: 0;
}

/* --- Form groups --- */
.bnb-b2b-profile-edit .bnb-b2b-form-group {
    margin-bottom: 5px;
}

.bnb-b2b-profile-edit .bnb-b2b-form-group:last-child {
    margin-bottom: 0;
}

.bnb-b2b-form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.bnb-b2b-form-label .bnb-b2b-required {
    color: #ef4444;
    margin-left: 2px;
}

/* --- Form inputs --- */
.bnb-b2b-profile-edit .bnb-b2b-form-input,
.bnb-b2b-profile-edit .bnb-b2b-form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    border: 1px solid #d8dde5;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fbfcfe;
    min-height: 46px;
}

.bnb-b2b-profile-edit .bnb-b2b-form-input:focus,
.bnb-b2b-profile-edit .bnb-b2b-form-textarea:focus {
    outline: none;
    border-color: #0b73d2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 115, 210, 0.12);
}

.bnb-b2b-profile-edit .bnb-b2b-form-input::placeholder,
.bnb-b2b-profile-edit .bnb-b2b-form-textarea::placeholder {
    color: #9ca3af;
}

.bnb-b2b-profile-edit .bnb-b2b-form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* --- Input with icon --- */
.bnb-b2b-input-with-icon {
    position: relative;
    width: 100%;
}

.bnb-b2b-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #6b7280;
    pointer-events: none;
}

.bnb-b2b-input--with-icon {
    padding-left: 44px !important;
}

/* --- Logo preview box --- */
.bnb-b2b-logo-preview-box {
    margin-bottom: 16px;
    padding: 20px;
    background: var(--bnb-b2b-gray-50);
    border: 2px dashed var(--bnb-b2b-gray-300);
    border-radius: 12px;
    text-align: center;
}

.bnb-b2b-logo-preview-img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.bnb-b2b-logo-preview-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.bnb-b2b-logo-placeholder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--bnb-b2b-gray-400);
    font-size: 13px;
}

/* --- File upload --- */
.bnb-b2b-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bnb-b2b-file-upload-wrapper {
    position: relative;
    margin-bottom: 8px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.bnb-b2b-file-upload-wrapper.dragover {
    border-color: var(--bnb-b2b-primary);
    background: rgba(0, 74, 173, 0.04);
}

.bnb-b2b-file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #9ca3af;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.bnb-b2b-file-upload-label:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border-color: var(--bnb-b2b-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.1);
}

.bnb-b2b-upload-icon {
    width: 24px;
    height: 24px;
    color: var(--bnb-b2b-primary);
}

.bnb-b2b-upload-text {
    font-size: 15px;
}

/* --- Form hint --- */
.bnb-b2b-profile-edit .bnb-b2b-form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

/* --- Form actions (submit) --- */
.bnb-b2b-form-actions {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #f3f4f6;
    display: flex;
    justify-content: center;
}

.bnb-b2b-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--bnb-b2b-primary) 0%, var(--bnb-b2b-primary-light) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 74, 173, 0.3);
    letter-spacing: 0.3px;
}

.bnb-b2b-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 74, 173, 0.4);
    background: linear-gradient(135deg, var(--bnb-b2b-primary-dark) 0%, #0055cc 100%);
}

.bnb-b2b-btn-submit:active {
    transform: translateY(0);
}

.bnb-b2b-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.bnb-b2b-btn-icon {
    width: 20px;
    height: 20px;
}

/* --- Profile edit responsive --- */
@media (max-width: 900px) {
    .bnb-b2b-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bnb-b2b-profile-header-banner {
        padding: 30px 20px;
        border-radius: 12px 12px 0 0;
    }

    .bnb-b2b-profile-form-container {
        padding: 24px 20px;
    }

    .bnb-b2b-profile-header-top {
        flex-direction: column;
        text-align: center;
    }

    .bnb-b2b-profile-subtitle {
        text-align: center;
    }

    .bnb-b2b-profile-progress-inline {
        max-width: 100%;
    }

    .bnb-b2b-profile-visibility-card {
        flex-direction: column;
        text-align: center;
    }

    .bnb-b2b-visibility-left {
        flex-direction: column;
    }

    .bnb-b2b-visibility-right {
        justify-content: center;
    }

    .bnb-b2b-section-title {
        font-size: 17px;
    }

    .bnb-b2b-btn-submit {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .bnb-b2b-form-actions {
        margin-top: 28px;
        padding-top: 20px;
    }
}/* ===========================================
   1. VARIABLES & RESET
   =========================================== */
:root {
    /* Couleurs principales */
    --bnb-b2b-primary: #004aad;
    --bnb-b2b-primary-dark: #003b8b;
    --bnb-b2b-primary-light: #0066dd;

    /* Couleurs secondaires */
    --bnb-b2b-success: #10b981;
    --bnb-b2b-success-dark: #065f46;
    --bnb-b2b-error: #dc2626;
    --bnb-b2b-error-light: #fee2e2;
    --bnb-b2b-warning: #f59e0b;

    /* Couleurs sponsors/partenaires */
    --bnb-b2b-sponsor-gold: #fbbf24;
    --bnb-b2b-sponsor-gold-dark: #78350f;
    --bnb-b2b-partner-blue: #3b82f6;
    --bnb-b2b-partner-blue-light: #60a5fa;

    /* Gris */
    --bnb-b2b-gray-50: #f9fafb;
    --bnb-b2b-gray-100: #f3f4f6;
    --bnb-b2b-gray-200: #e5e7eb;
    --bnb-b2b-gray-300: #d1d5db;
    --bnb-b2b-gray-400: #9ca3af;
    --bnb-b2b-gray-500: #6b7280;
    --bnb-b2b-gray-600: #4b5563;
    --bnb-b2b-gray-700: #374151;
    --bnb-b2b-gray-800: #1f2937;
    --bnb-b2b-gray-900: #111827;

    /* Spacing */
    --bnb-b2b-spacing-xs: 4px;
    --bnb-b2b-spacing-sm: 8px;
    --bnb-b2b-spacing-md: 16px;
    --bnb-b2b-spacing-lg: 24px;
    --bnb-b2b-spacing-xl: 32px;
    --bnb-b2b-spacing-2xl: 48px;

    /* Border radius */
    --bnb-b2b-radius-sm: 6px;
    --bnb-b2b-radius-md: 8px;
    --bnb-b2b-radius-lg: 12px;
    --bnb-b2b-radius-xl: 16px;
    --bnb-b2b-radius-full: 50%;

    /* Shadows */
    --bnb-b2b-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --bnb-b2b-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --bnb-b2b-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --bnb-b2b-shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --bnb-b2b-transition-fast: 0.2s ease;
    --bnb-b2b-transition-normal: 0.3s ease;
}

/* ===========================================
   2. COMPOSANTS COMMUNS
   =========================================== */

/* Boutons */
.bnb-b2b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--bnb-b2b-spacing-sm);
    padding: 12px 24px;
    border: none;
    border-radius: var(--bnb-b2b-radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--bnb-b2b-transition-normal);
    text-decoration: none;
}

.bnb-b2b-btn-primary {
    background: linear-gradient(135deg, var(--bnb-b2b-primary) 0%, var(--bnb-b2b-primary-light) 100%);
    color: #fff;
}

.bnb-b2b-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 74, 173, 0.3);
}

.bnb-b2b-btn-secondary {
    background: #fff;
    color: var(--bnb-b2b-gray-700);
    border: 1px solid var(--bnb-b2b-gray-300);
}

.bnb-b2b-btn-secondary:hover {
    background: var(--bnb-b2b-gray-100);
    border-color: var(--bnb-b2b-gray-400);
}

.bnb-b2b-btn-success {
    background: linear-gradient(135deg, var(--bnb-b2b-success) 0%, #059669 100%);
    color: #fff;
}

.bnb-b2b-btn-danger {
    background: linear-gradient(135deg, var(--bnb-b2b-error) 0%, #b91c1c 100%);
    color: #fff;
}

.bnb-b2b-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Formulaires */
.bnb-b2b-form-group {
    margin-bottom: 20px;
}

.bnb-b2b-form-group label {
    display: block;
    margin-bottom: var(--bnb-b2b-spacing-sm);
    font-weight: 600;
    color: var(--bnb-b2b-gray-700);
    font-size: 14px;
}

.bnb-b2b-form-group input,
.bnb-b2b-form-group textarea,
.bnb-b2b-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bnb-b2b-gray-200);
    border-radius: var(--bnb-b2b-radius-md);
    font-size: 15px;
    transition: all var(--bnb-b2b-transition-fast);
    box-sizing: border-box;
}

.bnb-b2b-form-group input:focus,
.bnb-b2b-form-group textarea:focus,
.bnb-b2b-form-group select:focus {
    outline: none;
    border-color: var(--bnb-b2b-primary);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

.bnb-b2b-form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.bnb-b2b-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bnb-b2b-spacing-md);
    align-items: start;
}

/* On narrow mobile screens, stack paired fields. At ~375px form width,
   long labels like "Confirmer le mot de passe" wrap onto 2 lines in the
   right column while "Mot de passe" stays on 1 line, causing visual
   misalignment between the two inputs. Stacking removes the issue and
   gives each field a comfortable tap target. */
@media (max-width: 560px) {
    .bnb-b2b-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.bnb-b2b-form-hint {
    display: block;
    margin-top: var(--bnb-b2b-spacing-xs);
    font-size: 13px;
    color: var(--bnb-b2b-gray-500);
}

.bnb-b2b-required {
    color: var(--bnb-b2b-error);
    font-weight: 600;
    /* Keep the asterisk on the same line as the preceding label word
       so it never hangs on an orphan line in narrow columns. */
    display: inline-block;
    margin-left: 2px;
    white-space: nowrap;
}

.bnb-b2b-optional {
    font-weight: 400;
    color: var(--bnb-b2b-gray-400);
}

/* Messages */
.bnb-b2b-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--bnb-b2b-radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.bnb-b2b-message-success {
    background: #d1fae5;
    color: var(--bnb-b2b-success-dark);
    border: 1px solid var(--bnb-b2b-success);
}

.bnb-b2b-message-error {
    background: var(--bnb-b2b-error-light);
    color: #991b1b;
    border: 1px solid #ef4444;
}

.bnb-b2b-message-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid var(--bnb-b2b-warning);
}

/* Cartes */
.bnb-b2b-card {
    background: #fff;
    border: 1px solid var(--bnb-b2b-gray-200);
    border-radius: var(--bnb-b2b-radius-lg);
    padding: var(--bnb-b2b-spacing-lg);
    box-shadow: var(--bnb-b2b-shadow-md);
    transition: all var(--bnb-b2b-transition-normal);
}

.bnb-b2b-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bnb-b2b-shadow-lg);
}

/* Badges */
.bnb-b2b-badge-sponsor {
    display: flex;
    align-items: center;
    font-size: 12px;
    background: linear-gradient(135deg, var(--bnb-b2b-sponsor-gold) 0%, #f59e0b 100%);
    color: var(--bnb-b2b-sponsor-gold-dark);
    border: 2px solid #fcd34d;
    padding: 5px 12px;
    border-radius: 30px;
}

.bnb-b2b-badge-partner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bnb-b2b-partner-blue-light) 0%, var(--bnb-b2b-partner-blue) 100%);
    color: #fff;
    border: 2px solid #93c5fd;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
}

/* Grille */
.bnb-b2b-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--bnb-b2b-spacing-lg);
}

/* ===========================================
   3. LOGIN & REGISTER
   =========================================== */

/* Auth wrapper with the Indian Ocean map background (matches the home hero) */
.bnb-b2b-auth-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    overflow: hidden;
}

.bnb-b2b-auth-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #002060;
    background-image:
        /* Same overlay gradient as the home hero so the white login card
           stays readable on top of the map. */
        linear-gradient(
            135deg,
            rgba(0, 20, 60, 0.78) 0%,
            rgba(0, 40, 100, 0.62) 40%,
            rgba(0, 60, 130, 0.40) 70%,
            rgba(0, 74, 173, 0.20) 100%
        ),
        url('../img/ocean-indien-map.jpg');
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
}

.bnb-b2b-auth-wrapper .bnb-b2b-login-container {
    position: relative;
    z-index: 1;
}

.bnb-b2b-login-container {
    max-width: 600px;
    margin: 60px auto;
    background: #fff;
    border-radius: var(--bnb-b2b-radius-lg);
    box-shadow: var(--bnb-b2b-shadow-lg);
    padding: 40px;
}

/* Full-width button */
.bnb-b2b-btn-full {
    width: 100%;
}

/* Inline form row (remember + forgot link) */
.bnb-b2b-form-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bnb-b2b-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--bnb-b2b-gray-600);
}

.bnb-b2b-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.bnb-b2b-link-forgot {
    font-size: 14px;
    color: var(--bnb-b2b-primary);
    text-decoration: none;
    font-weight: 500;
}

.bnb-b2b-link-forgot:hover {
    text-decoration: underline;
}

/* Spinner */
.bnb-b2b-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bnb-b2b-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes bnb-b2b-spin {
    to { transform: rotate(360deg); }
}

.bnb-b2b-login-header {
    text-align: center;
    margin-bottom: var(--bnb-b2b-spacing-xl);
}

.bnb-b2b-login-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: var(--bnb-b2b-primary);
    font-weight: 700;
}

.bnb-b2b-login-subtitle {
    color: var(--bnb-b2b-gray-500);
    font-size: 16px;
    margin: 0;
}

.bnb-b2b-login-form {
    margin-bottom: var(--bnb-b2b-spacing-lg);
}

.bnb-b2b-login-footer {
    text-align: center;
    padding-top: var(--bnb-b2b-spacing-lg);
    border-top: 1px solid var(--bnb-b2b-gray-200);
}

.bnb-b2b-login-footer p {
    margin: 0;
    color: var(--bnb-b2b-gray-500);
}

.bnb-b2b-login-footer a {
    color: var(--bnb-b2b-primary);
    text-decoration: none;
    font-weight: 600;
}

.bnb-b2b-login-footer a:hover {
    text-decoration: underline;
}

/* Type de membre - Options visuelles */
/* Responsive grid:
   - <900px viewports: 2 columns (the auth form card is ~480px wide so
     4 columns would squeeze each card below readable width)
   - >=900px viewports: 4 columns on a single row
   Single-card events override both via :has() below. */
.bnb-b2b-member-type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    justify-items: stretch;
    align-items: stretch;
}

@media (min-width: 900px) {
    .bnb-b2b-member-type-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.bnb-b2b-member-type-option {
    display: block;
    cursor: pointer;
    position: relative;
    min-width: 0;
}

.bnb-b2b-member-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bnb-b2b-member-type-option .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border: 2px solid var(--bnb-b2b-gray-200);
    border-radius: var(--bnb-b2b-radius-lg);
    background: #fff;
    transition: all var(--bnb-b2b-transition-normal);
    text-align: center;
    min-height: 110px;
    height: 100%;
    box-sizing: border-box;
}

/* Prevent long labels from overflowing narrow cards. */
.bnb-b2b-member-type-option .option-label,
.bnb-b2b-member-type-option .option-desc {
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
    max-width: 100%;
}

/* When only ONE type is allowed, don't let the single card stretch
   edge-to-edge. Cap it and center it in the options container. */
.bnb-b2b-member-type-options:has(.bnb-b2b-member-type-option:only-child) {
    grid-template-columns: minmax(180px, 260px);
    justify-content: center;
}

/* Mobile refinement: tighter spacing and smaller type under 480px. */
@media (max-width: 480px) {
    .bnb-b2b-member-type-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .bnb-b2b-member-type-option .option-content {
        padding: 12px 8px;
        min-height: 100px;
    }
    .bnb-b2b-member-type-option .option-icon {
        font-size: 22px;
        margin-bottom: 4px;
    }
    .bnb-b2b-member-type-option .option-label {
        font-size: 13px;
        line-height: 1.2;
    }
    .bnb-b2b-member-type-option .option-desc {
        font-size: 10px;
        line-height: 1.25;
    }
    /* Single-card case on mobile: centered, reasonable width. */
    .bnb-b2b-member-type-options:has(.bnb-b2b-member-type-option:only-child) {
        grid-template-columns: minmax(160px, 220px);
    }
}

.bnb-b2b-member-type-option:hover .option-content {
    border-color: var(--bnb-b2b-primary);
    background: #f0f7ff;
}

.bnb-b2b-member-type-option input:checked + .option-content {
    border-color: var(--bnb-b2b-primary);
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f7ff 100%);
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.15);
}

.bnb-b2b-member-type-option input[value="sponsor"]:checked + .option-content {
    border-color: var(--bnb-b2b-warning);
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.bnb-b2b-member-type-option input[value="partenaire"]:checked + .option-content {
    border-color: var(--bnb-b2b-partner-blue);
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.bnb-b2b-member-type-option .option-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.bnb-b2b-member-type-option .option-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--bnb-b2b-gray-900);
    margin-bottom: 4px;
}

.bnb-b2b-member-type-option .option-desc {
    font-size: 11px;
    color: var(--bnb-b2b-gray-500);
    line-height: 1.3;
}

/* ===========================================
   4. ANNUAIRE (DIRECTORY)
   =========================================== */
.bnb-b2b-directory {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Remove Kadence content wrapper background on directory page */
body:has(.bnb-b2b-directory) .content-wrap,
body:has(.bnb-b2b-directory) .site-container .content-wrap {
    background: transparent !important;
    padding-top: 0 !important;
}

/* --- Titre avec icone SVG --- */
.bnb-b2b-directory-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--bnb-b2b-gray-900);
    margin: 0 0 10px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--bnb-b2b-primary);
}

.bnb-b2b-directory-title svg {
    color: var(--bnb-b2b-primary);
    flex-shrink: 0;
}

/* --- Sous-titre --- */
.bnb-b2b-directory-subtitle {
    font-size: 15px;
    color: var(--bnb-b2b-gray-500);
    margin: 0 0 30px 0;
    line-height: 1.6;
    font-style: italic;
}

/* --- Barre de recherche pill-shaped --- */
.bnb-b2b-search-form {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 6px 8px 6px 12px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #cfe0ff;
    gap: 4px;
}

.bnb-b2b-search-icon {
    display: flex;
    align-items: center;
    color: #9ca3af;
    padding-left: 6px;
    flex-shrink: 0;
}

.bnb-b2b-search-input {
    flex: 1 1 200px;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 14px 14px 14px 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--bnb-b2b-gray-700);
    border-radius: 12px;
}

.bnb-b2b-search-input::placeholder {
    color: #98a4b5;
    font-weight: 400;
}

.bnb-b2b-search-input:focus {
    outline: none;
}

/* Filtres select dans la barre de recherche */
.bnb-b2b-filter-select {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 180px;
    border: none;
    background: transparent;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bnb-b2b-gray-600);
    border-radius: 8px;
    border-left: 1px solid var(--bnb-b2b-gray-200);
    cursor: pointer;
    appearance: auto;
}

.bnb-b2b-filter-select:focus {
    outline: none;
    background: var(--bnb-b2b-gray-50);
}

/* --- Compteur de resultats --- */
.bnb-b2b-results-count {
    color: var(--bnb-b2b-gray-500);
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 500;
}

.bnb-b2b-results-count #bnb-b2b-count {
    font-weight: 700;
    color: var(--bnb-b2b-primary);
}

/* --- Aucun resultat --- */
.bnb-b2b-no-results {
    text-align: center;
    padding: 40px;
    background: var(--bnb-b2b-gray-50);
    border-radius: 10px;
    color: var(--bnb-b2b-gray-500);
}

/* --- Grille annuaire --- */
.bnb-b2b-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px 15px;
}

/* --- Carte membre --- */
.bnb-b2b-member-card {
    border: 1px solid var(--bnb-b2b-gray-200);
    border-radius: var(--bnb-b2b-radius-lg);
    padding: 12px 10px;
    text-align: center;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all var(--bnb-b2b-transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Animation d'entree */
    opacity: 0;
    transform: translateY(12px);
    animation: bnb-b2b-fadeInUp 0.5s ease forwards;
}

@keyframes bnb-b2b-fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decalage progressif des cartes */
.bnb-b2b-member-card:nth-child(1)  { animation-delay: 0s; }
.bnb-b2b-member-card:nth-child(2)  { animation-delay: 0.05s; }
.bnb-b2b-member-card:nth-child(3)  { animation-delay: 0.1s; }
.bnb-b2b-member-card:nth-child(4)  { animation-delay: 0.15s; }
.bnb-b2b-member-card:nth-child(5)  { animation-delay: 0.2s; }
.bnb-b2b-member-card:nth-child(6)  { animation-delay: 0.25s; }
.bnb-b2b-member-card:nth-child(7)  { animation-delay: 0.3s; }
.bnb-b2b-member-card:nth-child(8)  { animation-delay: 0.35s; }
.bnb-b2b-member-card:nth-child(n+9) { animation-delay: 0.4s; }

.bnb-b2b-member-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* --- Cartes Sponsor/Partenaire/Categorie (fond neutre, bordure coloree) --- */
.bnb-b2b-card-sponsor,
.bnb-b2b-card-partner,
.bnb-b2b-card-category {
    background: #ffffff;
    border: 2px solid var(--bnb-b2b-gray-200);
}

.bnb-b2b-card-sponsor {
    border-color: var(--bnb-b2b-sponsor-gold);
}

.bnb-b2b-card-partner {
    border-color: var(--bnb-b2b-partner-blue-light);
}

/* --- Badges Sponsor / Partenaire / Categorie --- */
.bnb-b2b-badge-sponsor,
.bnb-b2b-badge-partner,
.bnb-b2b-badge-category {
    position: relative;
    top: -26px;
    margin-bottom: -20px;
    border-radius: 15px;
    padding: 1px 10px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.bnb-b2b-badge-sponsor {
    background: linear-gradient(135deg, var(--bnb-b2b-sponsor-gold) 0%, #f59e0b 100%);
    color: var(--bnb-b2b-sponsor-gold-dark);
    border: 2px solid #fcd34d;
}

.bnb-b2b-badge-partner {
    background: linear-gradient(135deg, var(--bnb-b2b-partner-blue-light) 0%, var(--bnb-b2b-partner-blue) 100%);
    color: #fff;
    border: 2px solid #93c5fd;
}

.bnb-b2b-badge-category {
    color: #ffffff;
    border: 2px solid transparent;
}

/* --- Logo membre --- */
.bnb-b2b-member-logo {
    border-radius: var(--bnb-b2b-radius-full);
    object-fit: cover;
    margin-top: -5px;
    margin-bottom: 8px;
    width: 80px;
    height: 80px;
    border: 2px solid var(--bnb-b2b-gray-200);
}

/* --- Avatar placeholder (initiales) --- */
.bnb-b2b-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bnb-b2b-primary) 0%, var(--bnb-b2b-primary-light) 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- Texte carte --- */
.bnb-b2b-member-card h3 {
    margin: 0 0 2px;
    font-size: 16px;
    color: var(--bnb-b2b-gray-900);
}

.bnb-b2b-member-name {
    font-size: 13px;
    color: var(--bnb-b2b-gray-600);
    margin: 0 0 4px;
    font-weight: 500;
}

.bnb-b2b-member-title {
    font-size: 12px;
    color: var(--bnb-b2b-gray-500);
    margin: 0 0 4px;
    font-style: italic;
}

.bnb-b2b-sector {
    font-size: 11px;
    color: var(--bnb-b2b-primary);
    background: #f3f8fc;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}

.bnb-b2b-country-pill {
    font-size: 11px !important;
    padding: 2px 8px !important;
    margin-bottom: 6px;
    cursor: default !important;
}

/* --- Copy email feedback --- */
.bnb-b2b-copy-email {
    cursor: pointer;
}

.bnb-b2b-copy-email.bnb-b2b-copied {
    background: #d1fae5 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
}

/* --- Country filter pills --- */
.bnb-b2b-country-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.bnb-b2b-country-pills .bnb-b2b-stat-pill {
    font-size: 13px;
    padding: 6px 14px;
}

.bnb-b2b-country-pills .pill-flag {
    font-size: 16px;
    line-height: 1;
}

/* --- Boutons d'action (Voir profil / Demander un RDV) --- */
.bnb-b2b-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 6px;
}

.bnb-b2b-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: var(--bnb-b2b-radius-sm);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--bnb-b2b-transition-normal);
    border: 1px solid var(--bnb-b2b-gray-300);
    background: #fff;
    color: var(--bnb-b2b-gray-700);
}

.bnb-b2b-actions .button svg {
    flex-shrink: 0;
}

.bnb-b2b-actions .button:hover {
    background: var(--bnb-b2b-gray-100);
}

.bnb-b2b-actions .button-primary {
    background: var(--bnb-b2b-primary);
    color: #fff;
    border-color: var(--bnb-b2b-primary);
}

.bnb-b2b-actions .button-primary:hover {
    background: var(--bnb-b2b-primary-dark);
}

/* --- Pagination --- */
.bnb-b2b-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--bnb-b2b-gray-200);
}

.bnb-b2b-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--bnb-b2b-gray-300);
    border-radius: var(--bnb-b2b-radius-md);
    background: #fff;
    color: var(--bnb-b2b-gray-700);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--bnb-b2b-transition-fast);
    cursor: pointer;
}

.bnb-b2b-page-btn:hover {
    background: var(--bnb-b2b-gray-100);
    border-color: var(--bnb-b2b-primary);
    color: var(--bnb-b2b-primary);
}

.bnb-b2b-page-btn.active {
    background: var(--bnb-b2b-primary);
    color: #fff;
    border-color: var(--bnb-b2b-primary);
    box-shadow: 0 2px 8px rgba(0, 74, 173, 0.3);
    font-weight: 700;
}

.bnb-b2b-page-prev,
.bnb-b2b-page-next {
    font-size: 13px;
    font-weight: 600;
    padding: 0 16px;
}



/* ===========================================
   6. RESERVATIONS (BOOKINGS)
   =========================================== */


/* ===========================================
   7. PROFIL MEMBRE
   =========================================== */


/* ===========================================
   8. MES RENDEZ-VOUS
   =========================================== */


/* ===========================================
   MES RENDEZ-VOUS - MODERN DESIGN
   =========================================== */

.bnb-b2b-my-bookings-modern {
    max-width: 1200px;
    margin: 0 auto;
}

/* Empty State */
.bnb-b2b-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.bnb-b2b-empty-state svg {
    color: var(--bnb-b2b-gray-300);
    margin-bottom: 16px;
}

.bnb-b2b-empty-state p {
    color: var(--bnb-b2b-gray-600);
    font-size: 16px;
    margin: 0;
}

/* Header avec filtres */
.bnb-b2b-bookings-header {
    margin-bottom: 24px;
}

.bnb-b2b-stats-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bnb-b2b-stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid var(--bnb-b2b-gray-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--bnb-b2b-gray-700);
}

.bnb-b2b-stat-pill:hover {
    background: var(--bnb-b2b-gray-50);
    color: var(--bnb-b2b-gray-900);
    transform: translateY(-1px);
}

.bnb-b2b-stat-pill.active {
    background: linear-gradient(135deg, #405189 0%, #2e3a5f 100%);
    border-color: #405189;
    color: #fff;
    box-shadow: 0 4px 12px rgba(64, 81, 137, 0.3);
}

.pill-label {
    font-weight: 600;
}

.pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--bnb-b2b-gray-200);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--bnb-b2b-gray-700);
}

.bnb-b2b-stat-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.pill-pending {
    background: #fef3c7;
    color: #92400e;
}

.pill-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.pill-declined {
    background: #fee2e2;
    color: #991b1b;
}

.pill-past {
    background: var(--bnb-b2b-gray-300);
    color: var(--bnb-b2b-gray-700);
}

/* Timeline des periodes */
.bnb-b2b-bookings-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bnb-b2b-period-section {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.bnb-b2b-period-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid var(--bnb-b2b-gray-200);
}

.bnb-b2b-period-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.bnb-b2b-period-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--bnb-b2b-gray-600);
    background: var(--bnb-b2b-gray-100);
    padding: 4px 12px;
    border-radius: 6px;
}

.bnb-b2b-period-bookings {
    padding: 12px;
    background: #fafafa;
}

/* Carte de rendez-vous compacte */
.bnb-b2b-booking-compact {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px 24px;
    background: #fff;
    border: 2px solid var(--bnb-b2b-gray-200);
    border-radius: 10px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.bnb-b2b-booking-compact:last-child {
    margin-bottom: 0;
}

.bnb-b2b-booking-compact:hover {
    border-color: var(--bnb-b2b-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Bordure coloree selon le statut */
.bnb-b2b-booking-compact.bnb-b2b-status-pending {
    border-left: 4px solid #f59e0b;
}

.bnb-b2b-booking-compact.bnb-b2b-status-confirmed {
    border-left: 4px solid #10b981;
}

.bnb-b2b-booking-compact.bnb-b2b-status-declined {
    border-left: 4px solid #ef4444;
}

.bnb-b2b-booking-compact.bnb-b2b-status-cancelled {
    border-left: 4px solid var(--bnb-b2b-gray-400);
    opacity: 0.6;
}

/* Left side - Date + Info */
.bnb-b2b-booking-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.bnb-b2b-booking-date-compact {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #405189 0%, #2e3a5f 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.date-day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.9;
}

.bnb-b2b-booking-info {
    flex: 1;
    min-width: 0;
}

.booking-partner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.partner-avatar-sm {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #405189 0%, #2e3a5f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.booking-partner strong {
    font-size: 15px;
    color: #1e293b;
}

.bnb-b2b-direction-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.bnb-b2b-direction-badge.incoming {
    background: #d1fae5;
    color: #065f46;
}

.bnb-b2b-direction-badge.outgoing {
    background: #dbeafe;
    color: #1e40af;
}

.booking-time-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--bnb-b2b-gray-600);
}

.booking-time-compact svg {
    color: var(--bnb-b2b-primary);
    flex-shrink: 0;
}

/* Right side - Status + Actions */
.bnb-b2b-booking-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.bnb-b2b-status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.bnb-b2b-status-badge.bnb-b2b-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.bnb-b2b-status-badge.bnb-b2b-status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.bnb-b2b-status-badge.bnb-b2b-status-declined {
    background: #fee2e2;
    color: #991b1b;
}

.bnb-b2b-status-badge.bnb-b2b-status-cancelled {
    background: var(--bnb-b2b-gray-200);
    color: var(--bnb-b2b-gray-700);
}

/* Quick Actions */
.bnb-b2b-quick-actions {
    display: flex;
    gap: 6px;
}

.bnb-b2b-btn-quick {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.bnb-b2b-btn-accept-quick {
    background: #d1fae5;
    color: #065f46;
}

.bnb-b2b-btn-accept-quick:hover {
    background: #10b981;
    color: #fff;
    transform: scale(1.1);
}

.bnb-b2b-btn-decline-quick {
    background: #fee2e2;
    color: #991b1b;
}

.bnb-b2b-btn-decline-quick:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.1);
}

.bnb-b2b-btn-report-sm {
    padding: 6px 12px;
    background: var(--bnb-b2b-gray-100);
    border: 1px solid var(--bnb-b2b-gray-300);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--bnb-b2b-gray-700);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.bnb-b2b-btn-report-sm:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.bnb-b2b-action-confirmed,
.bnb-b2b-action-declined {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

.bnb-b2b-action-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.bnb-b2b-action-declined {
    background: #fee2e2;
    color: #991b1b;
}

/* Details du rendez-vous (caches par defaut) */
.bnb-b2b-booking-details {
    padding: 16px;
    border-top: 1px solid var(--bnb-b2b-gray-200);
    border-radius: 0 0 8px 8px;
    margin: 0 -16px -10px;
}

.booking-motif strong {
    display: block;
    font-size: 13px;
    color: var(--bnb-b2b-gray-600);
    margin-bottom: 6px;
}

.booking-motif p {
    margin: 0;
    font-size: 14px;
    color: var(--bnb-b2b-gray-700);
    line-height: 1.6;
}

/* Toggle button */
.bnb-b2b-toggle-details {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #d5d9e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    color: #1f3163;
}

.bnb-b2b-toggle-details:hover {
    background: var(--bnb-b2b-primary);
    border-color: var(--bnb-b2b-primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 50, 120, 0.25);
}

.bnb-b2b-toggle-details svg {
    transition: transform 0.2s ease;
    width: 18px;
    height: 18px;
}

.bnb-b2b-toggle-details.expanded svg {
    transform: rotate(180deg);
}

/* Toast messages */
.bnb-b2b-toast {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: bnbB2bSlideDown 0.3s ease;
}

.bnb-b2b-toast.success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.bnb-b2b-toast.error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

@keyframes bnbB2bSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner mini */
.bnb-b2b-spinner-mini {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bnbB2bSpin 0.6s linear infinite;
}

@keyframes bnbB2bSpin {
    to { transform: rotate(360deg); }
}

/* Responsive */
/* ===========================================
   9. RESPONSIVE - ANNUAIRE
   =========================================== */
@media (max-width: 768px) {
    .bnb-b2b-directory {
        padding: 16px 12px;
    }

    .bnb-b2b-directory-title {
        font-size: 18px;
    }

    .bnb-b2b-directory-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    /* Search form: wrap into 2 rows on mobile */
    .bnb-b2b-search-form {
        flex-wrap: wrap;
        padding: 0;
        border-radius: 12px;
        gap: 0;
        border: 1px solid #d7e3f4;
        overflow: hidden;
        background: #fff;
    }

    /* Row 1: icon + search input inline */
    .bnb-b2b-search-icon {
        display: flex;
        align-items: center;
        padding: 0 2px 0 12px;
        flex-shrink: 0;
        order: 1;
    }

    .bnb-b2b-search-input {
        flex: 1 1 0;
        min-width: 100px;
        padding: 13px 12px 13px 4px;
        font-size: 15px;
        border-radius: 0;
        order: 2;
    }

    /* Row 2+3: filters stacked vertically */
    .bnb-b2b-filter-select {
        flex: 1 1 100%;
        max-width: none;
        border-left: none;
        border-top: 1px solid var(--bnb-b2b-gray-200);
        border-radius: 0;
        padding: 10px 12px;
        font-size: 13px;
        background: var(--bnb-b2b-gray-50, #f9fafb);
        order: 3;
    }

    .bnb-b2b-filter-select + .bnb-b2b-filter-select {
        border-left: none;
        order: 4;
    }

    /* Grid: 2 colonnes sur mobile large, 1 sur petit */
    .bnb-b2b-directory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bnb-b2b-member-logo {
        width: 64px;
        height: 64px;
    }

    .bnb-b2b-member-card {
        padding: 12px 8px;
    }

    .bnb-b2b-member-card h3 {
        font-size: 13px;
        line-height: 1.3;
    }

    .bnb-b2b-member-name {
        font-size: 11px;
    }

    .bnb-b2b-member-title {
        font-size: 11px;
    }

    .bnb-b2b-sector {
        font-size: 10px;
        padding: 2px 6px;
    }

    .bnb-b2b-country-pill {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }

    .bnb-b2b-actions {
        gap: 4px;
    }

    .bnb-b2b-actions .button,
    .bnb-b2b-actions .button-primary {
        padding: 5px 8px;
        font-size: 11px;
    }

    /* Badge sponsor/partenaire */
    .bnb-b2b-badge-sponsor,
    .bnb-b2b-badge-partner {
        font-size: 9px;
        padding: 2px 8px;
    }

    .bnb-b2b-pagination {
        gap: 4px;
    }

    .bnb-b2b-page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }
}

/* Très petit écran (< 380px): 1 colonne */
@media (max-width: 380px) {
    .bnb-b2b-directory-grid {
        grid-template-columns: 1fr;
    }

    .bnb-b2b-filter-select {
        width: 100%;
    }

    .bnb-b2b-filter-select + .bnb-b2b-filter-select {
        border-left: none;
        border-top: 1px solid var(--bnb-b2b-gray-200);
    }
}

@media (max-width: 768px) {
    .bnb-b2b-stats-pills {
        gap: 8px;
    }

    .bnb-b2b-stat-pill {
        padding: 8px 12px;
        font-size: 13px;
    }

    .pill-count {
        min-width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .bnb-b2b-booking-compact {
        flex-wrap: wrap;
        padding: 12px 12px 24px;
    }

    .bnb-b2b-booking-left {
        flex: 1 1 100%;
    }



    .bnb-b2b-booking-date-compact {
        width: 45px;
        height: 45px;
    }

    .date-day {
        font-size: 18px;
    }

    .booking-partner strong {
        font-size: 14px;
    }

    .bnb-b2b-direction-badge {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

.bnb-b2b-toggle-details {
        width: 26px;
        height: 26px;
        bottom: -12px;
        padding: 0;
    }
}

/* ===========================================
   NAVIGATION MENU — B2B Items
   =========================================== */

/* "Espace B2B" button for non-logged users */
.bnb-b2b-menu-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 8px 18px !important;
    background: linear-gradient(135deg, var(--bnb-b2b-primary, #004aad) 0%, var(--bnb-b2b-primary-light, #0066dd) 100%) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.bnb-b2b-menu-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3) !important;
    color: #fff !important;
}

/* ===========================================
   USER DROPDOWN MENU (logged-in)
   =========================================== */

.bnb-b2b-menu-parent > a,
.bnb-b2b-user-dropdown > a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 600 !important;
    padding: 6px 10px !important;
}

.bnb-b2b-user-dropdown .bnb-b2b-user-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bnb-b2b-menu-caret {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.bnb-b2b-user-dropdown:hover .bnb-b2b-menu-caret,
.bnb-b2b-user-dropdown:focus-within .bnb-b2b-menu-caret {
    transform: rotate(180deg);
}

/* Avatar (image OR initials fallback) */
.bnb-b2b-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #004aad, #0066dd);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.bnb-b2b-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bnb-b2b-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Submenu container */
.bnb-b2b-submenu {
    min-width: 260px !important;
    padding: 8px 0 !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    overflow: hidden;
}

.bnb-b2b-submenu > li.menu-item > a {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 16px !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    transition: background 0.15s, color 0.15s;
    text-decoration: none !important;
}

.bnb-b2b-submenu > li.menu-item > a:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.bnb-b2b-menu-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
}

/* Header row (name + company) inside dropdown */
.bnb-b2b-menu-header {
    padding: 12px 16px 10px !important;
    border-bottom: 1px solid #f1f5f9;
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}

.bnb-b2b-menu-header .bnb-b2b-menu-username {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.bnb-b2b-menu-header .bnb-b2b-menu-company {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Separator row */
.bnb-b2b-menu-separator {
    height: 1px !important;
    margin: 6px 0 !important;
    padding: 0 !important;
    background: #f1f5f9;
    pointer-events: none;
    list-style: none;
}

.bnb-b2b-menu-separator::before {
    content: none;
}

/* Logout item */
.bnb-b2b-menu-logout a,
.bnb-b2b-submenu > li.bnb-b2b-menu-logout > a {
    color: #dc2626 !important;
}

.bnb-b2b-submenu > li.bnb-b2b-menu-logout > a:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}


/* ===========================================
   HOME / LANDING PAGE
   =========================================== */

/* Hide Kadence hero on home page */
body:has(.bnb-b2b-home) .hero-container,
body:has(.bnb-b2b-home) .entry-hero-container-inner,
body:has(.bnb-b2b-home) .wp-block-kadence-hero {
    display: none !important;
}

.bnb-b2b-home {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── HERO ── */
.bnb-b2b-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
}

.bnb-b2b-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bnb-b2b-hero-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.bnb-b2b-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 20, 60, 0.88) 0%,
        rgba(0, 40, 100, 0.72) 40%,
        rgba(0, 60, 130, 0.50) 70%,
        rgba(0, 74, 173, 0.30) 100%
    );
}

.bnb-b2b-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 80px 48px 64px;
}

/* Badge */
.bnb-b2b-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 24px;
}

/* Title */
.bnb-b2b-hero-title {
    margin: 0 0 20px !important;
    font-size: 44px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
}

.bnb-b2b-hero-highlight {
    display: block;
    background: linear-gradient(90deg, #60a5fa, #38bdf8, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.bnb-b2b-hero-desc {
    margin: 0 0 32px !important;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    max-width: 560px;
}

/* Buttons */
.bnb-b2b-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.bnb-b2b-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.bnb-b2b-hero-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.bnb-b2b-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.45);
    color: #ffffff !important;
}

.bnb-b2b-hero-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.bnb-b2b-hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Stats */
.bnb-b2b-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    max-width: fit-content;
}

.bnb-b2b-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bnb-b2b-hero-stat-number {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.bnb-b2b-hero-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bnb-b2b-hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
}


/* ── FEATURES ── */
.bnb-b2b-features {
    padding: 72px 48px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.bnb-b2b-features-title {
    margin: 0 0 10px !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.bnb-b2b-features-subtitle {
    margin: 0 0 48px !important;
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.bnb-b2b-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.bnb-b2b-feature-card {
    padding: 36px 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    text-align: left;
    transition: all 0.3s ease;
}

.bnb-b2b-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.bnb-b2b-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.bnb-b2b-feature-card h3 {
    margin: 0 0 10px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.bnb-b2b-feature-card p {
    margin: 0 !important;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}


/* ── EVENTS SECTION (home + site landing) ── */
.bnb-b2b-events-section,
.csr-events-section {
    padding: 72px 48px 24px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.csr-events-section-inner {
    text-align: center;
    margin-bottom: 36px;
}

.csr-events-section-inner h2,
.csr-events-section h2 {
    margin: 0 0 12px !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: center !important;
}

.csr-events-section-inner p,
.csr-events-section > p {
    margin: 0 auto !important;
    font-size: 16px;
    color: #64748b;
    text-align: center !important;
    max-width: 600px;
}

.bnb-b2b-events-section .bnb-b2b-events-list {
    text-align: left;
    padding: 0;
}

@media (max-width: 768px) {
    .bnb-b2b-events-section {
        padding: 48px 20px 16px;
    }
}

/* ── CTA BOTTOM ── */
.bnb-b2b-cta-bottom {
    padding: 0 48px 72px;
    max-width: 1100px;
    margin: 0 auto;
}

.bnb-b2b-cta-inner {
    text-align: center;
    padding: 56px 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.bnb-b2b-cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.bnb-b2b-cta-inner h2 {
    position: relative;
    margin: 0 0 12px !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.bnb-b2b-cta-inner p {
    position: relative;
    margin: 0 0 28px !important;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.bnb-b2b-cta-inner .bnb-b2b-hero-btn {
    position: relative;
}

/* ── POWERED BY ── */
.bnb-b2b-powered-by {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #94a3b8;
}

.bnb-b2b-powered-by a {
    color: #64748b;
    text-decoration: none;
    margin-left: 4px;
}

.bnb-b2b-powered-by a:hover {
    color: #1e293b;
}


/* ── EVENT LIST ── */
.bnb-b2b-events-list {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.bnb-b2b-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.bnb-b2b-event-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px 24px 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bnb-b2b-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.bnb-b2b-event-active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.bnb-b2b-event-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    width: fit-content;
}

.bnb-b2b-ev-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    animation: bnbEvPulse 2s ease infinite;
}

@keyframes bnbEvPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.bnb-b2b-event-name {
    margin: 0 0 8px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.bnb-b2b-event-desc {
    margin: 0 0 16px !important;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.bnb-b2b-event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.bnb-b2b-event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}

.bnb-b2b-event-meta-item svg {
    flex-shrink: 0;
    color: #94a3b8;
}

.bnb-b2b-event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.bnb-b2b-event-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
}

.bnb-b2b-auth-open {
    background: #f0fdf4;
    color: #15803d;
}

.bnb-b2b-auth-closed {
    background: #fef2f2;
    color: #b91c1c;
}

.bnb-b2b-ev-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.bnb-b2b-ev-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.bnb-b2b-ev-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    color: #fff !important;
}

.bnb-b2b-ev-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff !important;
}

.bnb-b2b-ev-btn-success:hover {
    color: #fff !important;
}

.bnb-b2b-ev-btn-pending {
    background: #fef3c7;
    color: #92400e;
    cursor: default;
}

.bnb-b2b-ev-btn-disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: default;
}

.bnb-b2b-no-events {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
    font-size: 16px;
}

@media (max-width: 768px) {
    .bnb-b2b-events-grid {
        grid-template-columns: 1fr;
    }

    .bnb-b2b-event-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .bnb-b2b-ev-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── QR CODE ── */
.bnb-b2b-qr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}
.bnb-b2b-qr-btn:hover {
    border-color: var(--bnb-b2b-primary, #004aad);
    color: var(--bnb-b2b-primary, #004aad);
    background: #f0f4ff;
}

/* QR Modal */
.bnb-b2b-qr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bnbQrFadeIn 0.2s ease;
}
@keyframes bnbQrFadeIn { from { opacity: 0; } to { opacity: 1; } }

.bnb-b2b-qr-modal {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: bnbQrSlideUp 0.3s ease;
}
@keyframes bnbQrSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.bnb-b2b-qr-modal h3 {
    margin: 0 0 4px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}
.bnb-b2b-qr-modal .bnb-b2b-qr-subtitle {
    margin: 0 0 20px;
    font-size: 13px;
    color: #64748b;
}
.bnb-b2b-qr-canvas {
    display: flex;
    justify-content: center;
    margin: 0 auto 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
}
.bnb-b2b-qr-url {
    font-size: 11px;
    color: #94a3b8;
    word-break: break-all;
    margin: 0 0 20px;
}
.bnb-b2b-qr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.bnb-b2b-qr-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.bnb-b2b-qr-download:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
.bnb-b2b-qr-close {
    padding: 10px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
}
.bnb-b2b-qr-close:hover { background: #e2e8f0; }

@media (max-width: 480px) {
    .bnb-b2b-qr-btn .bnb-b2b-qr-btn-label {
        display: none;
    }
    .bnb-b2b-qr-modal {
        padding: 24px;
    }
}

/* ── HOME RESPONSIVE ── */
@media (max-width: 768px) {
    .bnb-b2b-hero {
        min-height: 520px;
        border-radius: 0;
    }

    .bnb-b2b-hero-content {
        padding: 48px 24px 40px;
    }

    .bnb-b2b-hero-title {
        font-size: 30px !important;
    }

    .bnb-b2b-hero-desc {
        font-size: 15px;
    }

    .bnb-b2b-hero-actions {
        flex-direction: column;
        margin-bottom: 32px;
    }

    .bnb-b2b-hero-btn {
        justify-content: center;
        width: 100%;
    }

    .bnb-b2b-hero-stats {
        gap: 12px;
        padding: 14px 16px;
        width: 100%;
        justify-content: center;
    }

    .bnb-b2b-hero-stat-number {
        font-size: 20px;
    }

    .bnb-b2b-hero-stat-label {
        font-size: 10px;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .bnb-b2b-features {
        padding: 48px 20px;
    }

    .bnb-b2b-features-title {
        font-size: 24px !important;
    }

    .bnb-b2b-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bnb-b2b-cta-bottom {
        padding: 0 20px 48px;
    }

    .bnb-b2b-cta-inner {
        padding: 40px 24px;
    }

    .bnb-b2b-cta-inner h2 {
        font-size: 22px !important;
    }
}

.bnb-b2b-menu-logout a:hover {
    background: #fef2f2 !important;
}

/* ===========================================
   GDPR — Legal pages (CGU, Privacy, Cookies)
   =========================================== */

.bnb-b2b-legal {
    max-width: 820px;
    margin: 40px auto;
    padding: 24px;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    font-size: 15px;
}

.bnb-b2b-legal-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.bnb-b2b-legal-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    color: var(--bnb-b2b-primary, #004aad);
    font-weight: 800;
    line-height: 1.2;
}

.bnb-b2b-legal-meta {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.bnb-b2b-legal h2 {
    margin: 32px 0 12px;
    font-size: 20px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.3;
}

.bnb-b2b-legal h3 {
    margin: 22px 0 8px;
    font-size: 16px;
    color: #334155;
    font-weight: 700;
}

.bnb-b2b-legal p {
    margin: 0 0 14px;
}

.bnb-b2b-legal ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.bnb-b2b-legal ul li {
    margin: 0 0 6px;
}

.bnb-b2b-legal a {
    color: var(--bnb-b2b-primary, #004aad);
    text-decoration: underline;
    font-weight: 500;
}

.bnb-b2b-legal a:hover {
    text-decoration: none;
}

.bnb-b2b-legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 14px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bnb-b2b-legal-table th,
.bnb-b2b-legal-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.bnb-b2b-legal-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bnb-b2b-legal-table tr:last-child td {
    border-bottom: none;
}

.bnb-b2b-legal code {
    background: #f1f5f9;
    color: #db2777;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 560px) {
    .bnb-b2b-legal {
        padding: 16px;
        margin: 16px auto;
    }
    .bnb-b2b-legal-header h1 {
        font-size: 22px;
    }
    .bnb-b2b-legal h2 {
        font-size: 17px;
    }
    .bnb-b2b-legal-table {
        font-size: 12px;
    }
    .bnb-b2b-legal-table th,
    .bnb-b2b-legal-table td {
        padding: 8px 10px;
    }
}

/* ===========================================
   GDPR — consent checkbox in registration form
   =========================================== */

.bnb-b2b-form-consent {
    margin-top: 8px;
    margin-bottom: 8px;
}

.bnb-b2b-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: var(--bnb-b2b-gray-700);
    padding: 12px 14px;
    border: 1px solid var(--bnb-b2b-gray-200);
    border-radius: var(--bnb-b2b-radius-md);
    background: #f9fafb;
    transition: border-color 0.15s, background 0.15s;
}

.bnb-b2b-consent-label:hover {
    border-color: var(--bnb-b2b-primary);
    background: #f0f7ff;
}

.bnb-b2b-consent-label input[type="checkbox"] {
    margin: 2px 0 0 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--bnb-b2b-primary);
}

.bnb-b2b-consent-text {
    flex: 1;
    min-width: 0;
}

.bnb-b2b-consent-text a {
    color: var(--bnb-b2b-primary);
    font-weight: 600;
    text-decoration: underline;
}

.bnb-b2b-consent-text a:hover {
    text-decoration: none;
}

/* ===========================================
   GDPR — Cookie consent banner
   =========================================== */

#bnb-b2b-cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 99999;
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    color: #1e293b;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 30, 80, 0.18), 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 30, 80, 0.06);
    padding: 18px 22px;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

#bnb-b2b-cookie-banner.is-visible {
    display: block;
    animation: bnbCookieSlideUp 0.32s ease-out;
}

@keyframes bnbCookieSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.bnb-b2b-cookie-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bnb-b2b-cookie-title svg {
    width: 18px;
    height: 18px;
    color: var(--bnb-b2b-primary, #004aad);
}

.bnb-b2b-cookie-text {
    margin: 0 0 14px;
    color: #475569;
}

.bnb-b2b-cookie-text a {
    color: var(--bnb-b2b-primary, #004aad);
    font-weight: 600;
    text-decoration: underline;
}

.bnb-b2b-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.bnb-b2b-cookie-btn {
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.1s, border-color 0.15s;
}

.bnb-b2b-cookie-btn:active {
    transform: scale(0.97);
}

.bnb-b2b-cookie-btn-accept {
    background: var(--bnb-b2b-primary, #004aad);
    color: #ffffff;
}

.bnb-b2b-cookie-btn-accept:hover {
    background: #003888;
}

.bnb-b2b-cookie-btn-refuse {
    background: #ffffff;
    color: #475569;
    border-color: #cbd5e1;
}

.bnb-b2b-cookie-btn-refuse:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

@media (max-width: 560px) {
    #bnb-b2b-cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 16px 18px;
    }
    .bnb-b2b-cookie-actions {
        justify-content: stretch;
    }
    .bnb-b2b-cookie-btn {
        flex: 1 1 0;
    }
}
