/* ============================================================
   Publish Hub - Choice Cards & Seller Onboarding
   ============================================================ */

/* --- Page Header --- */
.publier-header {
    background: linear-gradient(135deg, var(--color-sage, #A8BBA3) 0%, var(--color-sage-dark, #8fa889) 100%);
    color: white;
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.publier-header .page-title {
    color: white;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.publier-header .page-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 50ch;
    margin: 0 auto;
}

/* --- Content wrapper --- */
.publier-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem;
}

.publier-intro {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* --- Hub Grid --- */
.publish-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* --- Hub Card --- */
.publish-hub-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.25s ease;
}

.publish-hub-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(168, 187, 163, 0.18);
    transform: translateY(-3px);
    background: linear-gradient(180deg, white 0%, rgba(168, 187, 163, 0.04) 100%);
}

.publish-hub-card--seller {
    border-style: dashed;
    border-color: var(--secondary);
    background: rgba(184, 124, 76, 0.03);
}

.publish-hub-card--seller:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 24px rgba(184, 124, 76, 0.18);
    background: linear-gradient(180deg, white 0%, rgba(184, 124, 76, 0.04) 100%);
}

/* --- Hub Icon --- */
.publish-hub-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publish-hub-icon--article {
    background: rgba(168, 187, 163, 0.12);
    color: var(--primary);
}

.publish-hub-icon--video {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.publish-hub-icon--document {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}

.publish-hub-icon--annonce {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}

.publish-hub-icon--crowdfunding {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.publish-hub-icon--seller {
    background: rgba(184, 124, 76, 0.1);
    color: var(--secondary);
}

/* --- Hub Body --- */
.publish-hub-body {
    flex: 1;
    min-width: 0;
}

.publish-hub-body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    color: var(--dark);
}

.publish-hub-body p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- Hub Arrow --- */
.publish-hub-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s, color 0.2s;
}

.publish-hub-card:hover .publish-hub-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

.publish-hub-card--seller:hover .publish-hub-arrow {
    color: var(--secondary);
}

/* --- Publier Note --- */
.publier-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(168, 187, 163, 0.08);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
    border: 1px solid rgba(168, 187, 163, 0.15);
}

.publier-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--primary);
}

.publier-note p {
    margin: 0;
    line-height: 1.5;
}

.publier-note a {
    color: var(--primary);
    font-weight: 600;
}

.publier-note a:hover {
    text-decoration: underline;
}

/* ============================================================
   Seller Onboarding Steps
   ============================================================ */

.seller-onboarding {
    padding: 2rem 0 4rem;
}

.seller-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.seller-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    background: #f0f0f0;
    color: var(--text-muted);
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.seller-step.active .seller-step-num {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.seller-step.completed .seller-step-num {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.seller-step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.seller-step.active .seller-step-label {
    color: var(--primary);
    font-weight: 600;
}

.seller-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 0.75rem;
    margin-bottom: 1.25rem;
    transition: background 0.3s;
    max-width: 80px;
}

.seller-step-line.completed {
    background: var(--primary);
}

/* --- CGU Content --- */
.cgu-content {
    background: #fafafa;
}

.cgu-content ul {
    padding-left: 1.25rem;
}

.cgu-content li {
    margin-bottom: 0.5rem;
}

/* ============================================================
   CGV Pro + RGPD Pro Acceptance Cards (Step 1 onboarding)
   ============================================================
   Wrapper spécifique au bloc "Contrat Vendeur Professionnel"
   pour isoler les <details> collapsibles, distinguer visuellement
   les 2 documents (CGV Pro + RGPD Pro) et cadrer le scroll du
   contenu HTML long. Utilisé uniquement dans seller-onboarding
   step 1 ; ne pas réutiliser en dehors sans revoir la hiérarchie. */

.seller-cgv-card {
    border-left: 4px solid var(--secondary, #B87C4C);
}

.seller-cgv-header h2 {
    color: var(--secondary-dark, #8B5A2B);
    /* Titre fonctionnel dans une card → Quicksand (pas Bryndan Write décoratif) */
    font-family: var(--font-family-subtitle);
    font-weight: 600;
    text-shadow: none;
}

.seller-cgv-details {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s;
}

.seller-cgv-details[open] {
    border-color: var(--secondary, #B87C4C);
    box-shadow: 0 2px 8px rgba(184, 124, 76, 0.08);
}

.seller-cgv-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--dark, #1f2937);
    list-style: none;
    user-select: none;
    transition: background 0.15s;
}

.seller-cgv-summary::-webkit-details-marker { display: none; }

.seller-cgv-summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    opacity: 0.6;
}

.seller-cgv-details[open] .seller-cgv-summary::after {
    transform: rotate(-135deg);
}

.seller-cgv-summary:hover {
    background: rgba(184, 124, 76, 0.04);
}

.seller-cgv-summary span:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.seller-cgv-summary i {
    color: var(--secondary, #B87C4C);
    flex-shrink: 0;
}

.seller-cgv-scroll {
    max-height: 320px;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border, #e5e7eb);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary, #4b5563);
    background: #fafafa;
}

.seller-cgv-scroll h2,
.seller-cgv-scroll h3 {
    /* Neutralise Bryndan Write décoratif dans un document légal long */
    font-family: var(--font-family-subtitle);
    font-weight: 600;
    text-shadow: none;
    color: var(--dark, #1f2937);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.seller-cgv-scroll h2 { font-size: 1.0625rem; }
.seller-cgv-scroll h3 { font-size: 0.9375rem; }
.seller-cgv-scroll h2:first-child,
.seller-cgv-scroll h3:first-child { margin-top: 0; }

.seller-cgv-scroll p { margin: 0 0 0.75rem; }

.seller-cgv-scroll ul,
.seller-cgv-scroll ol {
    padding-left: 1.25rem;
    margin: 0 0 0.75rem;
}

.seller-cgv-scroll li { margin-bottom: 0.375rem; }

.seller-cgv-scroll table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
    font-size: 0.8125rem;
}

.seller-cgv-scroll th,
.seller-cgv-scroll td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border, #e5e7eb);
    text-align: left;
}

.seller-cgv-scroll th {
    background: rgba(184, 124, 76, 0.08);
    font-weight: 600;
    color: var(--secondary-dark, #8B5A2B);
}

.seller-cgv-scroll code {
    background: #f0ede6;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.8125em;
    color: var(--secondary-dark, #8B5A2B);
}

/* Scrollbar discret dans le bloc scrollable */
.seller-cgv-scroll::-webkit-scrollbar { width: 8px; }
.seller-cgv-scroll::-webkit-scrollbar-track { background: transparent; }
.seller-cgv-scroll::-webkit-scrollbar-thumb {
    background: rgba(184, 124, 76, 0.25);
    border-radius: 4px;
}
.seller-cgv-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 124, 76, 0.45);
}

@media (max-width: 640px) {
    .seller-cgv-scroll {
        max-height: 260px;
        padding: 0.875rem 1rem;
    }
    .seller-cgv-summary {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* --- Stripe Visual --- */
.stripe-setup-visual {
    padding: 2rem;
    background: rgba(168, 187, 163, 0.08);
    border-radius: 16px;
    display: inline-block;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .publish-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .publier-header {
        padding: 2rem 0 1.75rem;
    }

    .publier-header .page-title {
        font-size: 1.75rem;
    }

    .publish-hub-grid {
        grid-template-columns: 1fr;
    }

    .publish-hub-card {
        padding: 1.125rem;
    }

    .publish-hub-icon {
        width: 56px;
        height: 56px;
    }

    .publish-hub-icon svg {
        width: 32px;
        height: 32px;
    }

    .publier-content {
        padding: 1.5rem 1rem 3rem;
    }
}
