/* ============================================
   BUSINESS THEME — Fiches IA & Investissement
   Pastel — calqué sur pastel-theme.css
   ============================================ */

:root {
  --rose: #ec4899;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --ink: #0f0f1a;
  --ink2: #1e293b;
  --muted: #64748b;
  --subtle: #94a3b8;
  --border: #e2e8f0;
  --danger: #ef4444;
  --safe: #22c55e;
  --amber: #f59e0b;
  --rose-light: #fdf2f8;
  --violet-light: #f5f3ff;
}

* { font-family: 'Nunito', sans-serif; }
.mono { font-family: 'Fira Code', monospace; }

body {
    background: #fdfcff;
    min-height: 100vh;
    color: #475569;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ CARDS ============ */
.pastel-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border-radius: 24px;
}

.biz-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border-radius: 24px;
}

.glass-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(244, 114, 182, 0.1);
}

/* ============ SECTION TAGS ============ */
.section-tag {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #be185d;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.section-tag.blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.section-tag.green  { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; }
.section-tag.purple { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #7c3aed; }
.section-tag.yellow { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.section-tag.cyan   { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0e7490; }
.section-tag.orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #c2410c; }

/* Legacy .tag alias */
.tag { display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #be185d; font-weight: 700;
    padding: 5px 14px; border-radius: 20px; font-size: 13px; }
.tag.amber  { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.tag.green  { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; }
.tag.blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.tag.red    { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #b91c1c; }
.tag.purple { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #7c3aed; }
.tag.cyan   { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0e7490; }
.tag.slate  { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #475569; }

/* ============ GRADIENT TEXT ============ */
.gradient-text {
    background: linear-gradient(135deg, #f472b6, #c084fc, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ INFO BOXES ============ */
.info-box {
    background: linear-gradient(135deg, #fef9c3, #fef08a);
    border-left: 4px solid #eab308;
    border-radius: 0 16px 16px 0;
    padding: 16px 20px;
}
.tip-box, .box-blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--blue);
    border-radius: 14px;
    padding: 16px 18px;
}
.success-box, .box-green {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    border-left: 4px solid var(--safe);
    border-radius: 14px;
    padding: 16px 18px;
}
.warning-box, .box-red {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    border-left: 4px solid var(--danger);
    border-radius: 14px;
    padding: 16px 18px;
}
.box-orange {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    border-left: 4px solid #f97316;
    border-radius: 14px;
    padding: 16px 18px;
}
.box-violet {
    background: linear-gradient(135deg, var(--rose-light), var(--violet-light));
    border: 1px solid rgba(244,114,182,0.25);
    border-left: 4px solid var(--rose);
    border-radius: 14px;
    padding: 16px 18px;
}
.key-box {
    background: linear-gradient(135deg, #fef9c3, #fef08a);
    border-left: 4px solid #eab308;
    border-radius: 0 16px 16px 0;
    padding: 16px 20px;
}

/* ============ CODE BLOCKS ============ */
.code-block {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.red    { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green  { background: #22c55e; }
.code-label {
    font-family: 'Fira Code', monospace;
    font-size: 10px; color: rgba(255,255,255,0.3);
    margin-left: auto; letter-spacing: 1px;
}
.code-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 13px; line-height: 1.7;
    color: #e2e8f0; overflow-x: auto;
}

/* Syntax colors */
.k  { color: #f472b6; }       /* keyword */
.s  { color: #86efac; }       /* string */
.n  { color: #fcd34d; }       /* number */
.c  { color: #64748b; font-style: italic; } /* comment */
.f  { color: #93c5fd; }       /* function */
.p  { color: #d8b4fe; }       /* punctuation/param */
.op { color: #7dd3fc; }       /* operator */

/* ============ INTERACTIVE ELEMENTS ============ */
.interactive-zone {
    background: linear-gradient(135deg, #fdf4ff, #fae8ff);
    border: 2px solid #e9d5ff;
    border-radius: 20px;
    transition: all 0.3s;
}
.interactive-zone:hover {
    box-shadow: 0 8px 28px rgba(168, 85, 247, 0.1);
}

.clickable-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s;
}
.clickable-card:hover {
    border-color: #c4b5fd;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.1);
}
.clickable-card.selected {
    border-color: #a855f7;
    background: linear-gradient(135deg, #fdf4ff, #fae8ff);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15);
}

/* ============ QUIZ ============ */
.quiz-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 18px;
    transition: all 0.25s;
    cursor: pointer;
    font-weight: 500;
    display: flex; align-items: center; gap: 12px;
}
.quiz-option:hover:not([disabled]) {
    border-color: #c4b5fd;
    background: linear-gradient(135deg, #fdf4ff, #fae8ff);
    transform: translateX(4px);
}
.quiz-option.correct {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-color: #22c55e;
}
.quiz-option.wrong {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #ef4444;
}
.quiz-letter {
    width: 28px; height: 28px; border-radius: 8px;
    background: #f1f5f9; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: #64748b;
    flex-shrink: 0;
    transition: all 0.2s;
}
.quiz-option.correct .quiz-letter { background: #dcfce7; border-color: #22c55e; color: #166534; }
.quiz-option.wrong   .quiz-letter { background: #fee2e2; border-color: #ef4444; color: #b91c1c; }

.quiz-expl {
    display: none; margin-top: 10px;
    padding: 12px 16px;
    background: #fdf4ff; border-left: 3px solid #a855f7;
    border-radius: 0 10px 10px 0;
    font-size: 13px; color: #64748b; line-height: 1.6;
}
.quiz-expl.show { display: block; }

/* ============ RECAP / NEXT ============ */
.recap-card {
    background: linear-gradient(135deg, #fdf4ff, #fae8ff);
    border: 2px solid #e9d5ff;
    border-radius: 24px;
}
.next-card {
    display: flex; align-items: center; gap: 16px;
    background: white; border: 2px solid #e2e8f0;
    border-radius: 20px; padding: 20px 24px;
    text-decoration: none; color: #1e293b;
    transition: all 0.2s;
}
.next-card:hover {
    border-color: #c4b5fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(168, 85, 247, 0.12);
}

/* ============ BUTTONS ============ */
.btn-primary {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    color: white; font-weight: 700;
    padding: 12px 24px; border-radius: 14px;
    border: none; cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
    opacity: 0.9;
}

/* ============ FEATURE CARDS ============ */
.feature-card {
    background: white; border-radius: 18px;
    padding: 18px; border: 1px solid #f1f5f9;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}
.feature-card.pink   { border-left: 4px solid #ec4899; }
.feature-card.blue   { border-left: 4px solid #3b82f6; }
.feature-card.green  { border-left: 4px solid #22c55e; }
.feature-card.purple { border-left: 4px solid #a855f7; }
.feature-card.cyan   { border-left: 4px solid #06b6d4; }
.feature-card.orange { border-left: 4px solid #f97316; }
.feature-card.yellow { border-left: 4px solid #eab308; }
.feature-card.red    { border-left: 4px solid #ef4444; }

/* ============ CONCEPT TOOLTIP ============ */
.term {
    border-bottom: 2px dashed #c4b5fd;
    color: #7c3aed; cursor: help;
    position: relative; display: inline;
    font-weight: 600;
}
.term .tip {
    position: absolute; bottom: calc(100% + 8px);
    left: 50%; transform: translateX(-50%);
    width: 220px; background: #1e1b4b;
    color: #e2e8f0; font-size: 12px; line-height: 1.5;
    padding: 10px 13px; border-radius: 10px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s; z-index: 50;
    font-weight: 400;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.term .tip-title { font-weight: 700; color: #f472b6; font-size: 11px; margin-bottom: 3px; }
.term:hover .tip, .term.open .tip { opacity: 1; }

/* ============ ANIMATIONS ============ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}
@keyframes slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce-in {
    0%   { transform: scale(0.8); opacity: 0; }
    60%  { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.float      { animation: float 3s ease-in-out infinite; }
.pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }
.slide-up   { animation: slide-up 0.4s ease-out; }
.bounce-in  { animation: bounce-in 0.4s ease-out; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #ec4899, #a855f7); border-radius: 3px; }

::selection { background: rgba(196, 181, 253, 0.25); color: #4c1d95; }

/* ============ SCREENSHOT PLACEHOLDERS ============ */
.screenshot-placeholder {
    border: 2px dashed #c4b5fd;
    border-radius: 16px;
    background: linear-gradient(135deg, #fdf4ff, #f3e8ff);
    padding: 40px 24px;
    text-align: center;
    margin: 4px 0;
}
.screenshot-label {
    font-family: 'Fira Code', monospace;
    font-size: 9px; font-weight: 700; letter-spacing: 2px;
    color: #a855f7; text-transform: uppercase; margin-bottom: 8px;
}
.screenshot-desc {
    font-size: 14px; color: #7c3aed;
    font-family: 'Nunito', sans-serif; font-weight: 700;
}
.screenshot-sub {
    font-size: 12px; color: #94a3b8;
    font-family: 'Nunito', sans-serif; margin-top: 4px;
}
