/* ============================================
   DESIGN FRIENDLY - NEXA Digital School
   CSS à injecter pour uniformiser le style
   ============================================ */

/* Base Card Style */
.friendly-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
}

.friendly-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.friendly-card .card-body {
    padding: 24px;
}

/* Section Titles */
.dashboard-section-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
}

/* Dismiss Button (X) */
.dismiss-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
    z-index: 10;
    font-size: 16px;
}

.dismiss-btn:hover {
    background: #ff6b6b;
    color: white;
}

/* Metric Cards */
.metric-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.metric-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* Score Card with Circle */
.score-card-friendly {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-circle-friendly {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: white;
    box-shadow: inset 0 0 0 8px #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.score-number {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
}

.score-label-friendly {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Level Badges */
.level-badge {
    background: #6d28d9;
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(34, 199, 119, 0.3);
}

.level-badge.beginner {
    background: #2abbf9;
    box-shadow: 0 4px 10px rgba(42, 187, 249, 0.3);
}

.level-badge.intermediate {
    background: #6d28d9;
    box-shadow: 0 4px 10px rgba(34, 199, 119, 0.3);
}

.level-badge.advanced {
    background: #7c3aed;
    box-shadow: 0 4px 10px rgba(145, 102, 255, 0.3);
}

.level-badge.expert {
    background: #34d399;
    color: #333;
    box-shadow: 0 4px 10px rgba(52,211,153, 0.3);
}

/* Profile Completion */
.profile-completion-friendly {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: none;
    border-radius: 16px;
    padding: 24px;
    position: relative;
}

.profile-completion-friendly .progress-dots {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.profile-completion-friendly .progress-dot {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #d1d5db;
    transition: background 0.3s ease;
}

.profile-completion-friendly .progress-dot.completed {
    background: #6d28d9;
}

.profile-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.profile-check-item.completed {
    color: #6d28d9;
}

.profile-check-item.completed a {
    text-decoration: line-through !important;
    color: #6d28d9 !important;
}

/* GamiPress Credit Cards */
.gamipress-credit-card {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    border: 1px solid #e8e6ef;
    background: #f8f9fa;
}

.gamipress-credit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #d5d2e0;
}

/* GamiPress Badge Cards */
.gamipress-badge-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gamipress-badge-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #34d399;
    box-shadow: 0 8px 20px rgba(52,211,153, 0.2);
}

/* Courses Horizontal List */
.courses-list-horizontal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-horizontal-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.course-horizontal-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #6d28d9;
    transform: translateY(-2px);
}

.course-horizontal-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
}

.course-horizontal-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-horizontal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-horizontal-card:hover .course-horizontal-thumbnail img {
    transform: scale(1.05);
}

.course-status-badge-horizontal {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.course-horizontal-info {
    flex: 1;
    min-width: 0;
}

.course-horizontal-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.course-horizontal-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-horizontal-title a:hover {
    color: #6d28d9;
}

.course-horizontal-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6c757d;
}

.stat-item i {
    font-size: 14px;
    color: #7c3aed;
}

.stat-separator {
    color: #ddd;
    font-weight: bold;
}

/* Progress Bars */
.progress-horizontal-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-horizontal-bar {
    flex: 1;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-horizontal-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-horizontal-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmerHorizontal 2s infinite;
}

@keyframes shimmerHorizontal {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.progress-horizontal-percentage {
    font-size: 16px;
    font-weight: 700;
    min-width: 50px;
    text-align: right;
}

/* Action Buttons */
.course-horizontal-action {
    flex-shrink: 0;
}

.btn-horizontal-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1e0e4a 0%, #7c3aed 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 199, 119, 0.3);
}

.btn-horizontal-action:hover {
    background: linear-gradient(135deg, #059669 0%, #18a058 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 199, 119, 0.4);
    color: white;
}

/* Carbon / RSE Card */
.carbon-card-friendly {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.carbon-main-stat {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.carbon-value-big {
    font-size: 56px;
    font-weight: 800;
    color: #6d28d9;
    line-height: 1;
}

.carbon-unit {
    font-size: 18px;
    color: #6c757d;
    margin-top: 4px;
}

.equivalence-card-friendly {
    background: white;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.equivalence-card-friendly:hover {
    transform: translateY(-2px);
}

.equivalence-icon-friendly {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.eco-tips-card {
    background: white;
    border-left: 4px solid #6d28d9;
    border-radius: 12px;
    padding: 20px;
}

/* Stat Cards */
.stat-card-friendly {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.stat-card-friendly:hover {
    background: #f0f0f0;
}

/* ============================================
   COLOR PALETTE - Gradients for Icons
   ============================================ */
/* Green */
/* background: linear-gradient(135deg, #1e0e4a 0%, #7c3aed 100%); */
/* Blue */
/* background: linear-gradient(135deg, #2abbf9 0%, #17a2d8 100%); */
/* Yellow */
/* background: linear-gradient(135deg, #34d399 0%, #10b981 100%); */
/* Red */
/* background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%); */
/* Teal */
/* background: linear-gradient(135deg, #4ecdc4 0%, #44b8b0 100%); */
/* Purple */
/* background: linear-gradient(135deg, #7c3aed 0%, #2a4a80 100%); */
/* Gold */
/* background: linear-gradient(135deg, #34d399 0%, #e0a200 100%); */

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .course-horizontal-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .course-horizontal-thumbnail {
        width: 100%;
        height: 180px;
    }

    .course-horizontal-action {
        width: 100%;
    }

    .btn-horizontal-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .course-horizontal-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .stat-separator {
        display: none;
    }
}