
/* ═══════════════════════════════════════════════════════════════
   COMMUNITY-LANDING.CSS — AlphaVault Community
   Réutilise les tokens de landing-institutional.css (:root déjà chargé)
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.lab-com-hero {
    padding: 100px 0 60px;
    background: var(--ink-surface-2);
    border-bottom: 1px solid var(--ink-border);
}

.lab-com-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
} 

.lab-com-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border: 1px solid var(--ink-border); border-radius: 40px;
    font-size: .78rem; font-weight: 600; color: var(--ink-text-secondary);
    background: #fff; margin-bottom: 26px;
}
.lab-com-hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e; flex-shrink: 0;
}

.lab-com-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 500; line-height: 1.12; letter-spacing: -0.02em;
    color: var(--ink-black); margin: 0 0 20px;
}

.lab-com-hero-sub {
    font-size: 1.05rem; line-height: 1.6; color: var(--ink-text-secondary);
    max-width: 560px; margin: 0 auto 36px;
}

.lab-com-hero-search {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--ink-border);
    border-radius: var(--ink-radius-md); padding: 8px 8px 8px 20px;
    box-shadow: var(--ink-shadow-2); max-width: 620px; margin: 0 auto 26px;
}
.lab-com-hero-search i { color: var(--ink-text-muted); font-size: .9rem; }
.lab-com-hero-search input {
    flex: 1; border: none; outline: none; font-family: var(--font-sans);
    font-size: .92rem; color: var(--ink-black); background: transparent;
}
.lab-com-hero-search input::placeholder { color: var(--ink-text-muted); }
.lab-com-hero-search .lp-btn { flex-shrink: 0; }

.lab-com-hero-links {
    display: flex; align-items: center; justify-content: center; gap: 28px;
    flex-wrap: wrap; margin-bottom: 56px;
}
.lab-com-hero-links a {
    display: flex; align-items: center; gap: 7px;
    font-size: .85rem; font-weight: 600; color: var(--ink-black);
    border-bottom: 1px solid transparent; padding-bottom: 2px;
    transition: border-color .18s ease;
}
.lab-com-hero-links a:hover { border-color: var(--ink-black); }
.lab-com-hero-links i { font-size: .74rem; color: var(--ink-accent); }

.lab-com-hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--ink-border);
    border: 1px solid var(--ink-border); border-radius: var(--ink-radius-lg);
    overflow: hidden; max-width: 820px; margin: 0 auto;
}
.lab-com-hero-stat {
    background: #fff; padding: 26px 16px; text-align: center;
    display: flex; flex-direction: column; gap: 6px;
}
.lab-com-hero-stat-val {
    font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600;
    color: var(--ink-black); letter-spacing: -0.01em;
}
.lab-com-hero-stat-lbl {
    font-size: .74rem; color: var(--ink-text-muted); font-weight: 500;
    text-transform: uppercase; letter-spacing: .05em;
}

/* ── 4 PILIERS ── */
.lab-com-pillars-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

.lab-com-pillar-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--ink-border);
    border-radius: var(--ink-radius-md); padding: 28px 24px;
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.lab-com-pillar-card:hover {
    box-shadow: 0 14px 32px rgba(10,10,10,.08);
    border-color: #d4d4e0; transform: translateY(-3px);
}
.lab-com-pillar-card h3 {
    font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500;
    color: var(--ink-black); margin: 0 0 10px;
}
.lab-com-pillar-card p {
    font-size: .87rem; color: var(--ink-text-secondary); line-height: 1.55;
    margin: 0 0 18px; flex: 1;
}
.lab-com-pillar-cta {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .82rem; font-weight: 600; color: var(--ink-black);
}
.lab-com-pillar-cta i { font-size: .68rem; transition: transform .18s ease; }
.lab-com-pillar-card:hover .lab-com-pillar-cta i { transform: translateX(3px); }

@media (max-width: 1080px) {
    .lab-com-pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .lab-com-hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .lab-com-pillars-grid { grid-template-columns: 1fr; }
    .lab-com-hero-search { flex-direction: column; align-items: stretch; padding: 14px; }
    .lab-com-hero-links { gap: 16px; flex-direction: column; }
}


/* ── LEARNING PATHS FILTERS ── */
.lab-com-lp-filters {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: wrap; margin-bottom: 40px;
}
.lab-com-lp-filter {
    padding: 8px 18px; border-radius: 40px; border: 1px solid var(--ink-border);
    background: #fff; color: var(--ink-text-secondary); font-family: var(--font-sans);
    font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .2s ease;
}
.lab-com-lp-filter:hover { border-color: var(--ink-black); color: var(--ink-black); }
.lab-com-lp-filter.active { background: var(--ink-black); border-color: var(--ink-black); color: #fff; }

/* ── LEARNING PATHS GRID ── */
.lab-com-lp-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.lab-com-lp-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--ink-border);
    border-radius: var(--ink-radius-md); overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
}
.lab-com-lp-card:hover { box-shadow: var(--ink-shadow-3); transform: translateY(-4px); }

.lab-com-lp-card-visual {
    position: relative; height: 140px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.lab-com-lp-visual-1 { background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.lab-com-lp-visual-2 { background: linear-gradient(135deg, #fdf2f8, #fce7f3); }
.lab-com-lp-visual-3 { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.lab-com-lp-visual-4 { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.lab-com-lp-visual-5 { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.lab-com-lp-visual-6 { background: linear-gradient(135deg, #faf5ff, #f3e8ff); }

.lab-com-lp-badge {
    position: absolute; top: 12px; left: 12px;
    font-size: .6rem; font-weight: 700; letter-spacing: .06em;
    background: var(--ink-black); color: #fff; padding: 3px 9px; border-radius: 20px;
}

.lab-com-lp-shape { width: 56px; height: 56px; opacity: .85; }
.lab-com-lp-shape-cube    { background: linear-gradient(135deg, #6366f1, #8b5cf6); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.lab-com-lp-shape-pie     { background: linear-gradient(135deg, #ec4899, #db2777); border-radius: 50%; }
.lab-com-lp-shape-doc     { background: linear-gradient(135deg, #22c55e, #16a34a); border-radius: 6px; }
.lab-com-lp-shape-scale   { background: linear-gradient(135deg, #f59e0b, #d97706); border-radius: 6px; }
.lab-com-lp-shape-stack   { background: linear-gradient(135deg, #0ea5e9, #0284c7); border-radius: 6px; }
.lab-com-lp-shape-network { background: linear-gradient(135deg, #a855f7, #7e22ce); border-radius: 50%; }

.lab-com-lp-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.lab-com-lp-card-body h4 {
    font-family: var(--font-serif); font-size: 1.1rem; font-weight: 500;
    color: var(--ink-black); margin: 0 0 10px; line-height: 1.3;
}
.lab-com-lp-card-body h4 span { color: var(--carta-orange); }
.lab-com-lp-card-body p { font-size: .82rem; color: var(--ink-text-secondary); margin: 0 0 16px; flex: 1; }
.lab-com-lp-link { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-black); }
.lab-com-lp-link i { font-size: .68rem; }

/* ── GAMIFICATION (dark section) ── */
.lab-com-badges-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 48px;
}
.lab-com-badge-card {
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--ink-radius-md); padding: 24px 20px; text-align: center;
    transition: background .2s ease, transform .2s ease;
}
.lab-com-badge-card:hover { background: rgba(255,255,255,.06); transform: translateY(-3px); }
.lab-com-badge-icon {
    width: 52px; height: 52px; margin: 0 auto 16px;
    border-radius: 50%; background: var(--ink-accent-grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
}
.lab-com-badge-card h4 { font-size: .96rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
.lab-com-badge-card p { font-size: .78rem; color: rgba(255,255,255,.55); line-height: 1.45; margin: 0 0 12px; }
.lab-com-badge-pts {
    display: inline-block; font-size: .7rem; font-weight: 700;
    background: rgba(255,255,255,.1); color: #fff; padding: 3px 10px; border-radius: 20px;
}

.lab-com-level-bar { max-width: 560px; margin: 0 auto; }
.lab-com-level-bar-track {
    height: 8px; background: rgba(255,255,255,.1); border-radius: 20px; overflow: hidden; margin-bottom: 10px;
}
.lab-com-level-bar-fill { height: 100%; background: var(--ink-accent-grad); border-radius: 20px; }
.lab-com-level-bar-labels { display: flex; justify-content: space-between; font-size: .78rem; color: rgba(255,255,255,.6); font-weight: 500; }

/* ── Responsive ── */
@media (max-width: 1080px) {
    .lab-com-lp-grid { grid-template-columns: repeat(2, 1fr); }
    .lab-com-spaces-grid { grid-template-columns: repeat(2, 1fr); }
    .lab-com-badges-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .lab-com-lp-grid, .lab-com-spaces-grid, .lab-com-badges-grid { grid-template-columns: 1fr; }
    .lab-com-lp-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
}

.lab-com-space-detail-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}

.lab-com-post-list { display: flex; flex-direction: column; gap: 2px; }
.lab-com-post-item {
    display: flex; align-items: center; gap: 16px; padding: 20px;
    background: #fff; border: 1px solid var(--ink-border); border-radius: var(--ink-radius-sm);
    margin-bottom: 8px; cursor: pointer; transition: border-color .2s ease, transform .2s ease;
}
.lab-com-post-item:hover { border-color: var(--ink-black); transform: translateX(3px); }
.lab-com-post-item-vote {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-width: 44px; padding: 6px; border-radius: var(--ink-radius-sm); background: var(--ink-surface);
}
.lab-com-post-item-vote span { font-size: .92rem; font-weight: 700; color: var(--ink-black); }
.lab-com-post-item-vote i { font-size: .7rem; color: var(--ink-text-muted); }
.lab-com-post-item-body { flex: 1; }
.lab-com-post-item-body h4 { font-size: .96rem; font-weight: 600; color: var(--ink-black); margin: 0 0 6px; }
.lab-com-post-item-meta { font-size: .78rem; color: var(--ink-text-muted); }
.lab-com-post-item-comments { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-text-muted); }

.lab-com-upvote-btn {
    display: flex; align-items: center; gap: 8px; padding: 8px 16px;
    background: var(--ink-surface); border: 1px solid var(--ink-border); border-radius: var(--ink-radius-sm);
    font-size: .86rem; font-weight: 700; color: var(--ink-text-secondary); cursor: pointer;
}
.lab-com-upvote-btn.voted { background: var(--ink-accent-pale); border-color: var(--ink-accent); color: var(--ink-accent); }

.lab-com-comments-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.lab-com-comment-item { padding: 12px 14px; background: var(--ink-surface); border-radius: var(--ink-radius-sm); }
.lab-com-comment-item b { font-size: .82rem; color: var(--ink-black); }
.lab-com-comment-item p { font-size: .84rem; color: var(--ink-text-secondary); margin: 4px 0 0; }

.lab-com-comment-input-row { display: flex; gap: 10px; }
.lab-com-comment-input-row input {
    flex: 1; padding: 10px 14px; border: 1px solid var(--ink-border); border-radius: var(--ink-radius-sm);
    font-size: .86rem; outline: none;
}

.lab-com-space-card { cursor: pointer; }
.lab-com-pillar-card { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   ✅ DISCUSSION SPACES — Style EXACT (panneau continu, pas de gap)
═══════════════════════════════════════════════════════════ */
.lab-com-spaces-panel {
    position: relative;
    background: var(--ink-surface, #eef0f2);
    border-radius: 2px;
}
.lab-com-spaces-panel .corner-bl {
    position: absolute; top: -4px; left: -4px;
    width: 8px; height: 8px; background: var(--ink-black); z-index: 2;
}
.lab-com-spaces-panel .corner-br {
    position: absolute; bottom: -4px; right: -4px;
    width: 8px; height: 8px; background: var(--ink-black); z-index: 2;
}

.lab-com-spaces-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* ✅ AUCUN gap — panneau continu comme sur la capture */
}

.lab-com-space-card {
    position: relative;
    padding: 40px 32px;
    background: transparent;
    border-right: 1px solid rgba(10, 10, 10, .1);
    cursor: pointer;
    transition: background .2s ease;
}
.lab-com-space-card:last-child { border-right: none; }
.lab-com-space-card:hover { background: rgba(255, 255, 255, .5); }

.lab-com-space-arrow {
    position: absolute; top: 32px; right: 32px;
    width: 40px; height: 40px; border-radius: 6px;
    background: var(--carta-orange, #ec6f3f);
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; transition: transform .18s ease;
    pointer-events: none;
}
.lab-com-space-arrow svg { width: 18px; height: 18px; }
.lab-com-space-card:hover .lab-com-space-arrow { transform: translateX(3px); }

.lab-com-space-card h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem; font-weight: 500; color: var(--ink-black);
    margin: 0 0 14px; padding-right: 50px; line-height: 1.25;
}
.lab-com-space-card p {
    font-size: .87rem; line-height: 1.55; color: var(--ink-text-secondary);
    margin: 0 0 14px;
}
.lab-com-space-count {
    font-size: .76rem; color: var(--ink-text-muted); font-weight: 600;
}

@media (max-width: 1080px) {
    .lab-com-spaces-row { grid-template-columns: repeat(2, 1fr); }
    .lab-com-space-card:nth-child(2n) { border-right: none; }
    .lab-com-space-card:nth-child(-n+2) { border-bottom: 1px solid rgba(10,10,10,.1); }
}
@media (max-width: 640px) {
    .lab-com-spaces-row { grid-template-columns: 1fr; }
    .lab-com-space-card { border-right: none !important; border-bottom: 1px solid rgba(10,10,10,.1); }
    .lab-com-space-card:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════
   ✅ BACK TO COMMUNITY BUTTON (manquait totalement)
═══════════════════════════════════════════════════════════ */
.lab-sup-back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    font-family: var(--font-sans); font-size: .86rem; font-weight: 600;
    color: var(--ink-text-secondary); margin-bottom: 24px; padding: 0;
    transition: color .18s ease;
}
.lab-sup-back-btn:hover { color: var(--ink-black); }
.lab-sup-back-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   ✅ IMAGE UPLOAD / PREVIEW — New Post + Post Detail
═══════════════════════════════════════════════════════════ */
.lab-com-image-preview-wrap {
    position: relative; display: flex; margin-top: 10px;
    border-radius: var(--ink-radius-sm); overflow: hidden;
    border: 1px solid var(--ink-border); max-width: 320px;
}
.lab-com-image-preview {
    width: 100%; height: auto; display: block; max-height: 200px; object-fit: cover;
}
.lab-com-image-remove-btn {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(10,10,10,.65); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: background .18s ease;
}
.lab-com-image-remove-btn:hover { background: rgba(10,10,10,.85); }
.lab-com-image-remove-btn svg { width: 14px; height: 14px; }

.lab-com-post-detail-image-wrap {
    margin-bottom: 20px; border-radius: var(--ink-radius-sm); overflow: hidden;
    border: 1px solid var(--ink-border);
}
.lab-com-post-detail-image { width: 100%; height: auto; display: block; max-height: 380px; object-fit: cover; }

.lab-com-post-item-thumb {
    width: 56px; height: 56px; border-radius: var(--ink-radius-sm);
    overflow: hidden; flex-shrink: 0; border: 1px solid var(--ink-border);
}
.lab-com-post-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Classes iso-* réutilisées, ajoute uniquement celles manquantes */
.iso-line-dashed {
    fill: none;
    stroke: rgba(10,10,10,.25);
    stroke-width: 1.5;
    stroke-dasharray: 3 3;
}
.lab-com-lp-card-visual .lab-iso-icon {
    width: 72px; height: 72px;
}
.lab-com-lp-card-visual .lab-iso-icon svg {
    width: 100%; height: 100%;
}

/* ═══════════════════════════════════════════════════════════
   ✅ AVATAR PHOTO DE PROFIL — Posts (liste + détail)
═══════════════════════════════════════════════════════════ */
.lab-com-post-item-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    background: var(--ink-accent-grad);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .82rem; font-weight: 700;
}
.lab-com-post-item-avatar img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Sécurise l'avatar circulaire du modal détail (réutilise .car-candidate-avatar de careers.css) */
.car-candidate-avatar img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}

/* ═══════════════════════════════════════════════════════════════
   LEARNING PATHS — Détail, breadcrumb, éditeur admin
   ═══════════════════════════════════════════════════════════════ */

   .lab-com-lp-empty {
    text-align: center; padding: 60px 20px; color: var(--ink-text-muted);
    grid-column: 1/-1;
}

.lab-com-lp-breadcrumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 24px; font-size: .84rem; color: var(--ink-text-muted);
}
.lab-com-lp-breadcrumb a { color: var(--ink-text-secondary); font-weight: 600; }
.lab-com-lp-breadcrumb a:hover { color: var(--ink-black); }
.lab-com-lp-breadcrumb span.sep { color: var(--ink-border); }
.lab-com-lp-breadcrumb span.current { color: var(--ink-black); font-weight: 700; }

.lab-com-lp-detail-header { margin-bottom: 32px; }

.lab-com-lp-children-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 1080px) { .lab-com-lp-children-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .lab-com-lp-children-grid { grid-template-columns: 1fr; } }

/* Card "sub-path" (dossier) — même style que la home mais compacte */
.lab-com-lp-child-card {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--ink-border); border-radius: var(--ink-radius-md);
    padding: 18px 20px; cursor: pointer; transition: box-shadow .25s ease, transform .25s ease;
}
.lab-com-lp-child-card:hover { box-shadow: var(--ink-shadow-2); transform: translateY(-2px); }
.lab-com-lp-child-icon {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff;
}
.lab-com-lp-child-icon.type-path    { background: var(--ink-accent-grad, linear-gradient(135deg,#6366f1,#8b5cf6)); }
.lab-com-lp-child-icon.type-article { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.lab-com-lp-child-body h4 { font-size: .94rem; font-weight: 700; color: var(--ink-black); margin: 0 0 4px; }
.lab-com-lp-child-body p { font-size: .8rem; color: var(--ink-text-muted); margin: 0; }
.lab-com-lp-child-arrow { margin-left: auto; color: var(--ink-text-muted); font-size: .78rem; }

/* ── Admin : breadcrumb ── */
.lab-com-lp-admin-breadcrumb {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    margin: 20px 0; font-size: .82rem;
}
.lab-com-lp-admin-crumb {
    padding: 5px 12px; border-radius: 20px; background: var(--ink-surface);
    color: var(--ink-text-secondary); cursor: pointer; font-weight: 600;
}
.lab-com-lp-admin-crumb.active { background: var(--ink-black); color: #fff; }
.lab-com-lp-admin-crumb:not(.active):hover { background: #eee; }

/* ── Admin : sélecteur de couleur de card ── */
.lab-com-lp-visual-picker { display: flex; gap: 10px; }
.lab-com-lp-visual-swatch {
    width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
    border: 2px solid transparent; transition: transform .15s ease;
}
.lab-com-lp-visual-swatch:hover { transform: scale(1.1); }
.lab-com-lp-visual-swatch.active { border-color: var(--ink-black); }
.lab-com-lp-visual-swatch.lab-com-lp-visual-1 { background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.lab-com-lp-visual-swatch.lab-com-lp-visual-2 { background: linear-gradient(135deg, #fdf2f8, #fce7f3); }
.lab-com-lp-visual-swatch.lab-com-lp-visual-3 { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.lab-com-lp-visual-swatch.lab-com-lp-visual-4 { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.lab-com-lp-visual-swatch.lab-com-lp-visual-5 { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.lab-com-lp-visual-swatch.lab-com-lp-visual-6 { background: linear-gradient(135deg, #faf5ff, #f3e8ff); }

/* ═══════════════════════════════════════════════════════════════
   RICH TEXT EDITOR (repris de support-landing.css pour Learning Paths)
   ═══════════════════════════════════════════════════════════════ */
.car-job-editor-wide { max-width: 820px; }

.car-sup-cover-upload { display: flex; align-items: center; gap: 8px; }
.car-sup-cover-btn { padding: 10px 16px; font-size: .83rem; white-space: nowrap; }
.car-sup-cover-preview-wrap {
    position: relative; margin: -6px 0 18px; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--ink-border); max-height: 180px;
}
.car-sup-cover-preview-wrap img { width: 100%; height: 180px; object-fit: cover; display: block; }
.car-sup-cover-remove {
    position: absolute; top: 8px; right: 8px; width: 30px; height: 30px;
    border-radius: 50%; background: rgba(10,10,10,0.7); color: #fff; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: .8rem; transition: background .2s ease;
}
.car-sup-cover-remove:hover { background: #dc2626; }

.car-sup-editor-toolbar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    padding: 8px; background: var(--ink-surface); border: 1px solid var(--ink-border);
    border-bottom: none; border-radius: 8px 8px 0 0;
}
.car-sup-tb-btn {
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid transparent; border-radius: 6px;
    color: var(--ink-text-secondary); font-size: .8rem; font-weight: 700;
    cursor: pointer; transition: all .15s ease;
}
.car-sup-tb-btn:hover { background: #fff; border-color: var(--ink-border); color: var(--ink-black); }
.car-sup-tb-sep { width: 1px; height: 22px; background: var(--ink-border); margin: 0 4px; }
.car-sup-tb-uploading { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-text-muted); margin-left: auto; padding-right: 6px; }

.car-sup-editor-body {
    min-height: 300px; max-height: 460px; overflow-y: auto;
    padding: 18px 20px; border: 1px solid var(--ink-border); border-radius: 0 0 8px 8px;
    font-size: .92rem; line-height: 1.7; color: var(--ink-black); background: #fff; outline: none;
}
.car-sup-editor-body:focus { border-color: var(--ink-black); }
.car-sup-editor-body:empty::before { content: attr(data-placeholder); color: var(--ink-text-muted); pointer-events: none; }
.car-sup-editor-body h2 { font-family: var(--font-serif); font-size: 1.3rem; margin: 20px 0 10px; color: var(--ink-black); }
.car-sup-editor-body h3 { font-size: 1.05rem; font-weight: 700; margin: 16px 0 8px; color: var(--ink-black); }
.car-sup-editor-body p { margin: 0 0 12px; }
.car-sup-editor-body ul, .car-sup-editor-body ol { margin: 0 0 12px; padding-left: 22px; }
.car-sup-editor-body blockquote { border-left: 3px solid var(--ink-black); margin: 12px 0; padding: 6px 0 6px 16px; color: var(--ink-text-secondary); font-style: italic; }
.car-sup-editor-body img { max-width: 100%; border-radius: 8px; margin: 12px 0; display: block; }
.car-sup-editor-body a { color: var(--ink-accent); text-decoration: underline; }

.lab-sup-article-cover-wrap { width: 100%; margin-bottom: 28px; border-radius: 14px; overflow: hidden; border: 1px solid var(--ink-border); background: var(--ink-surface); }
.lab-sup-article-cover { width: 100%; height: 300px; object-fit: cover; display: block; }
.lab-sup-back-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; font-family: var(--font-sans); font-size: .86rem; font-weight: 600; color: var(--ink-text-secondary); margin-bottom: 24px; padding: 0; }
.lab-sup-back-btn:hover { color: var(--ink-black); }
.lab-sup-back-btn svg { width: 14px; height: 14px; }
.lab-sup-article-cat { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; color: var(--ink-accent); text-transform: uppercase; margin-bottom: 10px; }
.lab-sup-article-detail-title { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 500; color: var(--ink-black); margin: 14px 0 16px; letter-spacing: -0.02em; }
.lab-sup-article-detail-meta { display: flex; gap: 20px; font-size: .82rem; color: var(--ink-text-muted); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--ink-border); }
.lab-sup-article-detail-body { font-size: .98rem; line-height: 1.75; color: var(--ink-text-secondary); overflow-x: auto; }

/* ═══════════════════════════════════════════════════════════
   ICON PICKER — Learning Path Editor
═══════════════════════════════════════════════════════════ */
.lab-com-lp-icon-picker {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 4px 4px 0;
}
.lab-com-lp-icon-swatch {
    width: 100%; aspect-ratio: 1;
    border: 2px solid var(--ink-border); border-radius: 8px;
    background: var(--ink-surface);
    display: flex; align-items: center; justify-content: center;
    padding: 7px; cursor: pointer; transition: all .15s ease;
}
.lab-com-lp-icon-swatch svg { width: 100%; height: 100%; overflow: visible; }
.lab-com-lp-icon-swatch:hover { border-color: #b0b0c0; transform: translateY(-1px); }
.lab-com-lp-icon-swatch.active { border-color: var(--ink-black); background: #fff; box-shadow: 0 0 0 2px rgba(10,10,10,.08); }

.lab-com-lp-child-icon svg { width: 26px; height: 26px; overflow: visible; }
.lab-com-lp-child-icon.type-path,
.lab-com-lp-child-icon.type-article { background: transparent !important; padding: 4px; }

@media (max-width: 640px) {
    .lab-com-lp-icon-picker { grid-template-columns: repeat(5, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   LIVE SEARCH DROPDOWN
═══════════════════════════════════════════════════════════ */
.lab-com-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--ink-border);
    border-radius: var(--ink-radius-md);
    box-shadow: var(--ink-shadow-3);
    max-height: 420px;
    overflow-y: auto;
    z-index: 60;
    display: none;
    text-align: left;
}
.lab-com-search-dropdown.open { display: block; }

.lab-com-search-group-label {
    padding: 10px 18px 6px;
    font-size: .68rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--ink-text-muted);
    background: var(--ink-surface);
}

.lab-com-search-result {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background .15s ease;
    border-bottom: 1px solid rgba(10,10,10,.04);
}
.lab-com-search-result:last-child { border-bottom: none; }
.lab-com-search-result:hover,
.lab-com-search-result.active { background: var(--ink-surface); }

.lab-com-search-result-icon {
    width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; color: #fff;
}
.lab-com-search-result-icon.type-path    { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.lab-com-search-result-icon.type-article { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.lab-com-search-result-icon.type-post    { background: linear-gradient(135deg, #ec6f3f, #db2777); }

.lab-com-search-result-body { flex: 1; min-width: 0; }
.lab-com-search-result-title {
    font-size: .87rem; font-weight: 600; color: var(--ink-black);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lab-com-search-result-meta {
    font-size: .74rem; color: var(--ink-text-muted); margin-top: 2px;
}
.lab-com-search-result-title mark {
    background: rgba(236, 111, 63, .22); color: inherit; border-radius: 2px; padding: 0 1px;
}

.lab-com-search-empty {
    padding: 24px 18px; text-align: center; font-size: .84rem; color: var(--ink-text-muted);
}
.lab-com-search-viewall {
    display: block; text-align: center; padding: 12px;
    font-size: .82rem; font-weight: 700; color: var(--ink-accent);
    border-top: 1px solid var(--ink-border);
}
.lab-com-search-viewall:hover { background: var(--ink-surface); }