/* ============================================
   ONBOARDING V2 — Aldon Radar
   Layout grid compact, cohérent design system
   ============================================ */

.onboarding-page {
    min-height: 100vh;
    background: var(--bg-primary, #0a0f1a);
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════
   MODALE LANGUES (Step 0 — accueil)
   ═══════════════════════════════════════════ */

.ob-lang-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: ob-lang-fade-in 0.3s ease;
}

@keyframes ob-lang-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ob-lang-modal {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: ob-lang-slide-up 0.35s ease;
}

@keyframes ob-lang-slide-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ob-lang-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.ob-lang-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 0.5rem;
}

.ob-lang-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    text-align: center;
    line-height: 1.55;
    margin: 0 0 2rem;
}

/* Sections */
.ob-lang-section {
    margin-bottom: 1.75rem;
}

.ob-lang-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ob-lang-section-title i {
    color: #10b981;
    font-size: 0.8rem;
}

.ob-lang-section-hint {
    font-size: 0.78rem;
    color: #475569;
    margin: -0.4rem 0 0.85rem;
    line-height: 1.4;
}

/* Interface language — radio buttons */
.ob-lang-interface-options {
    display: flex;
    gap: 0.625rem;
}

.ob-lang-interface-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    position: relative;
}

.ob-lang-interface-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.ob-lang-interface-btn.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    color: #e2e8f0;
}

.ob-lang-coming {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 0.15rem 0.45rem;
    border-radius: 100px;
    margin-left: auto;
}

/* Content languages — toggle grid */
.ob-lang-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.ob-lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    color: #64748b;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ob-lang-toggle:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.ob-lang-toggle.active {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.06);
    color: #e2e8f0;
}

.ob-lang-flag {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.ob-lang-label {
    flex: 1;
    text-align: left;
}

/* Toggle switch */
.ob-lang-switch {
    flex-shrink: 0;
    margin-left: auto;
}

.ob-lang-switch-track {
    display: block;
    width: 32px;
    height: 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    position: relative;
    transition: background 0.2s;
}

.ob-lang-toggle.active .ob-lang-switch-track {
    background: #10b981;
}

.ob-lang-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #475569;
    border-radius: 50%;
    transition: all 0.2s;
}

.ob-lang-toggle.active .ob-lang-switch-thumb {
    left: 16px;
    background: #fff;
}

/* Count */
.ob-lang-content-count {
    text-align: center;
    font-size: 0.75rem;
    color: #475569;
    margin-top: 0.75rem;
}

/* Confirm button */
.ob-lang-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 11px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25);
    font-family: inherit;
    margin-top: 0.5rem;
}

.ob-lang-confirm:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.ob-lang-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.ob-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 2rem;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ob-header-left, .ob-header-right {
    flex-shrink: 0;
    min-width: 140px;
}

.ob-header-right { text-align: right; }

.ob-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ob-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
}

.ob-logo-text {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Steps */
.ob-header-center {
    flex: 1;
    max-width: 300px;
    margin: 0 2rem;
}

.ob-steps {
    display: flex;
    align-items: center;
}

.ob-step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.35;
    transition: opacity 0.3s;
}

.ob-step.active, .ob-step.done { opacity: 1; }

.ob-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #64748b;
    transition: all 0.3s;
}

.ob-step.active .ob-step-dot {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
}

.ob-step.done .ob-step-dot {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.ob-step span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.ob-step.active span { color: #e2e8f0; }

.ob-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 0.6rem;
    min-width: 24px;
    position: relative;
}

.ob-step-line::after {
    content: '';
    position: absolute;
    left: 0; top: 0;
    height: 100%; width: 0;
    background: #10b981;
    transition: width 0.5s ease;
}

.ob-step-line.filled::after { width: 100%; }

.ob-btn-skip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.875rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ob-btn-skip:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/* ═══════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════ */
.ob-main {
    flex: 1;
    padding: 1.75rem 2rem 120px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

/* Intro */
.ob-intro {
    text-align: center;
    margin-bottom: 1.75rem;
}

.ob-intro h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.ob-intro p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
}

.ob-intro p strong {
    color: #10b981;
    font-weight: 600;
}

/* ── Intro didactique (BUG 3) ── */
.ob-intro-main {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.ob-intro-how {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.25rem;
    text-align: left;
}

.ob-intro-how-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 0.85rem;
}

.ob-intro-how p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
    margin: 0;
}

.ob-intro-how p strong {
    color: #10b981;
}

/* Loading */
.ob-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    gap: 1rem;
    color: #94a3b8;
}

.ob-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(16, 185, 129, 0.15);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════
   COUNTER BAR (sticky sous le header)
   ═══════════════════════════════════════════ */
.ob-counter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.625rem 1rem;
    margin-bottom: 1rem;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    position: sticky;
    top: 60px;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.ob-counter-left {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ob-counter-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f59e0b;
    transition: color 0.3s;
}

.ob-counter-num.ok { color: #10b981; }
.ob-counter-num.max { color: #ef4444; }

.ob-counter-label {
    font-size: 0.8rem;
    color: #64748b;
}

.ob-counter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.ob-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.68rem;
    color: #94a3b8;
    white-space: nowrap;
}

.ob-pill strong { color: #e2e8f0; }

.ob-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   GRID : 2 colonnes desktop
   ═══════════════════════════════════════════ */
.ob-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
}

.ob-card {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.ob-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Expanded card takes full width */
.ob-card.expanded {
    grid-column: 1 / -1;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(17, 24, 39, 0.7);
}

.ob-card.has-sel {
    border-color: rgba(16, 185, 129, 0.25);
}

.ob-card.has-sel.expanded {
    border-color: rgba(16, 185, 129, 0.35);
}

/* Card Header */
.ob-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.ob-card-header:hover {
    background: rgba(255, 255, 255, 0.025);
}

.ob-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: box-shadow 0.2s;
}

.ob-card.has-sel .ob-card-icon {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
}

.ob-card-icon i {
    font-size: 1rem;
    color: #fff;
}

.ob-card-info {
    flex: 1;
    min-width: 0;
}

.ob-card-info h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.ob-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #10b981;
    font-weight: 500;
}

.ob-card-hint {
    font-size: 0.7rem;
    color: #64748b;
}

.ob-card-arrow {
    color: #475569;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.ob-card.expanded .ob-card-arrow { color: #10b981; }

/* Card Body (expanded) */
.ob-card-body {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.125rem;
    animation: slideDown 0.2s ease;
}

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

/* Chips */
.ob-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.ob-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: #cbd5e1;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
}

.ob-chip:hover:not(.disabled) {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.ob-chip.selected {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
    font-weight: 500;
}

.ob-chip.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ob-chip-chk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    background: #10b981;
    border-radius: 50%;
    font-size: 0.5rem;
    color: #fff;
}

/* Card actions */
.ob-card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.625rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.ob-act {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.15s;
}

.ob-act-all {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.ob-act-all:hover { background: rgba(16, 185, 129, 0.2); }

.ob-act-clear {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.ob-act-clear:hover { background: rgba(239, 68, 68, 0.18); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.ob-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 15, 26, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.875rem 2rem;
    z-index: 100;
}

.ob-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.ob-footer-msg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #f59e0b;
}

.ob-footer-msg i { font-size: 0.9rem; }
.ob-footer-msg strong { color: inherit; }
.ob-footer-ok { color: #10b981; }

.ob-btn-validate {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
}

.ob-btn-validate.ready {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25);
}

.ob-btn-validate.ready:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.ob-btn-validate:disabled:not(.ready) {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ═══════════════════════════════════════════
   STEP 2 — GÉNÉRATION
   ═══════════════════════════════════════════ */
.ob-main-gen {
    padding-bottom: 2rem;
    max-width: 700px;
}

.ob-gen-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ob-gen-header-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ob-gen-header-icon i {
    font-size: 1.4rem;
    color: #10b981;
}

.ob-gen-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.ob-gen-header p {
    font-size: 0.95rem;
    color: #94a3b8;
}

/* Gen items */
.ob-gen-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 2rem;
}

.ob-gen-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ob-gen-item.loading {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.04);
}

.ob-gen-item.done {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.04);
}

.ob-gen-item.error {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.04);
}

.ob-gen-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ob-mini-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.ob-gen-info {
    flex: 1;
    min-width: 0;
}

.ob-gen-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.2rem;
}

.ob-gen-st {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.ob-gen-loading { color: #3b82f6; }

.ob-gen-done {
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ob-gen-err {
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ob-gen-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.ob-gen-tag {
    padding: 0.15rem 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.68rem;
    color: #94a3b8;
}

.ob-gen-check {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.ob-gen-item.pending .ob-gen-check { color: #475569; }
.ob-gen-item.done .ob-gen-check { color: #10b981; }
.ob-gen-item.error .ob-gen-check { color: #ef4444; }

/* Summary */
.ob-gen-summary {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 14px;
    animation: fadeUp 0.5s ease;
}

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

.ob-gen-summary-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.12));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ob-gen-summary-icon i {
    font-size: 1.5rem;
    color: #10b981;
}

.ob-gen-summary h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.ob-gen-summary p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 1.75rem;
}

.ob-btn-go {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 2.25rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 11px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    font-family: inherit;
}

.ob-btn-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4);
}

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.ob-toast {
    position: fixed;
    top: 72px;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.125rem;
    background: rgba(239, 68, 68, 0.95);
    border-radius: 9px;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
    z-index: 200;
    animation: toastIn 0.3s ease;
}

.ob-toast-x {
    opacity: 0.5;
    margin-left: 0.4rem;
}

.ob-toast:hover .ob-toast-x { opacity: 1; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .ob-lang-overlay { padding: 1rem; }
    .ob-lang-modal { padding: 2rem 1.25rem 1.5rem; }
    .ob-lang-title { font-size: 1.2rem; }
    .ob-lang-content-grid { grid-template-columns: 1fr; }
    .ob-lang-interface-options { flex-direction: column; }

    .ob-header { padding: 0.75rem 1rem; }
    .ob-header-center { display: none; }
    .ob-header-left, .ob-header-right { min-width: auto; }

    .ob-main { padding: 1.25rem 1rem 140px; }
    .ob-intro h1 { font-size: 1.3rem; }
    .ob-intro { margin-bottom: 1.25rem; }

    .ob-counter-bar {
        top: 52px;
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
    }

    .ob-counter-pills { display: none; }

    /* 1 colonne mobile */
    .ob-grid {
        grid-template-columns: 1fr;
    }

    .ob-card-header { padding: 0.7rem 0.875rem; }
    .ob-card-icon { width: 34px; height: 34px; }
    .ob-card-info h3 { font-size: 0.85rem; }

    .ob-chip { padding: 0.35rem 0.7rem; font-size: 0.78rem; }

    .ob-footer { padding: 0.75rem 1rem; }
    .ob-footer-inner {
        flex-direction: column;
        gap: 0.6rem;
    }
    .ob-btn-validate {
        width: 100%;
        justify-content: center;
    }

    .ob-toast {
        left: 1rem; right: 1rem;
        top: auto; bottom: 150px;
    }

    .ob-gen-tags { display: none; }
}

@media (max-width: 480px) {
    .ob-intro h1 { font-size: 1.15rem; }
    .ob-gen-header h1 { font-size: 1.2rem; }
}

/* ── Bouton Générer : état actif sobre et professionnel ── */
.ob-btn-validate.ready {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.25s ease;
}

.ob-btn-validate.ready:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.45);
}

.ob-btn-validate.ready:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* ── Message warning (pas assez de catégories) ── */
.ob-footer-warn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    font-size: 0.85rem;
    font-weight: 500;
}

.ob-footer-warn i {
    color: #f59e0b;
    font-size: 1rem;
}

/* ── Description Spotlight (message final) ── */
.ob-spotlight-desc {
    margin: 16px 0 24px;
    padding: 16px 20px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.ob-spotlight-text {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.ob-spotlight-text strong {
    color: #10b981;
}
