/* --- CHARTE GRAPHIQUE SELIM AKLIL --- */
:root {
    --color-brand-orange: #FA8334;
    --color-brand-yellow: #F4B648;
    --color-brand-blue: #02008D;
    --color-brand-green-dark: #8CD7AC;
    --color-teal-link: #02008D;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-600: #374151;
    --color-gray-700: #1f2937;
    --color-gray-800: #111827;
    --color-gray-900: #030712;
    --font-inter: 'Inter', sans-serif;
}
body { font-family: var(--font-inter); }

/* Gestion des Onglets */
.tab-content { display: none; opacity: 0; transition: opacity 0.3s ease-in-out; }
.tab-content.active { display: block; opacity: 1; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }

/* Ecossystem diagram */
.ecosystem-center {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #02008D, #1e3a8a);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 14px; text-align: center;
    box-shadow: 0 0 0 8px rgba(2,0,141,0.1);
    position: relative; z-index: 2;
}
.ecosystem-node {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px; font-weight: 700;
    color: #1f2937;
    text-align: center;
    transition: all 0.2s;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ecosystem-node:hover {
    border-color: var(--color-brand-orange);
    color: var(--color-brand-orange);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(250,131,52,0.15);
}

/* Type cards */
.type-card {
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    background: white;
    transition: all 0.25s;
    overflow: hidden;
}
.type-card:hover {
    border-color: var(--color-brand-orange);
    box-shadow: 0 8px 24px rgba(250,131,52,0.12);
    transform: translateY(-3px);
}
.type-card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f3f4f6;
}
.type-card-body { padding: 16px 24px 20px; }

/* Failure grid */
.failure-category {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.2s;
}
.failure-category:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.failure-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 4px 10px; border-radius: 999px;
    margin-bottom: 12px;
}
.failure-item {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 4px 0;
    font-size: 13px; color: #374151;
    border-bottom: 1px dashed #f3f4f6;
}
.failure-item:last-child { border-bottom: none; }
.failure-dot {
    width: 6px; height: 6px; border-radius: 50%;
    flex-shrink: 0; margin-top: 6px;
}

/* AARRR row */
.aarrr-row {
    display: grid; grid-template-columns: 100px 1fr 1fr;
    align-items: center; gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: white;
    transition: all 0.2s;
}
.aarrr-row:hover { border-color: var(--color-brand-blue); background: #f9fafb; }
.aarrr-badge {
    font-size: 13px; font-weight: 800;
    padding: 6px 14px; border-radius: 999px;
    text-align: center;
}

/* Checklist */
.check-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #f9fafb;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px; font-weight: 500; color: #374151;
    user-select: none;
}
.check-item:hover { border-color: #e5e7eb; background: white; }
.check-item.checked { background: #f0fdf4; border-color: #86efac; color: #166534; }
.check-item.checked .check-circle { background: #22c55e; border-color: #22c55e; }
.check-item.checked .check-circle::after { opacity: 1; }
.check-item.alert { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.check-circle {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid #d1d5db; background: white;
    flex-shrink: 0; position: relative; transition: all 0.2s;
}
.check-circle::after {
    content: '✓'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white; font-size: 12px; font-weight: 700;
    opacity: 0; transition: opacity 0.2s;
}

/* Deliverable cards */
.deliverable-card {
    border: 2px dashed #e5e7eb;
    border-radius: 16px;
    background: white;
    padding: 28px;
    transition: border-color 0.2s;
}
.deliverable-card:hover { border-color: var(--color-brand-orange); }

/* Matrix grid */
.matrix-cell {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    background: white;
    min-height: 80px;
}
.matrix-header {
    background: var(--color-brand-blue);
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
}

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
