@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --color-wood: #805640;
    --color-light-gray: #f5f6f8;
    --color-dark-gray: #2f2f33;
    --color-accent-orange: #ff7a00;
    --color-accent-orange-dark: #ea580c;
    --color-accent-green: #22c55e;
    --color-verified-blue: #0ea5e9;
    --color-card-shadow: 0 18px 30px -20px rgba(15, 23, 42, 0.25);
    /* Palette améliorée */
    --color-bg-light: #f5f6f8;
    --color-bg-neutral: #ECECEC;
    --color-accent-orange-hover: #ea580c;
}

/* Typographie de base améliorée */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1.0625rem; /* 17px */
    line-height: 1.7;
    color: #334155;
    background-color: var(--color-light-gray);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #334155;
}

p {
    margin-bottom: 1.15rem;
    line-height: 1.8;
    color: #475569;
}

/* Responsive typographie */
@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Espacements généreux entre sections */
section {
    margin-bottom: 5rem;
}

@media (max-width: 768px) {
    section {
        margin-bottom: 3rem;
    }
}

/* Amélioration espacement des blocs */
.card, .knowledge-highlight-card, article {
    margin-bottom: 1.5rem;
}

/* Amélioration line-height dans les blocs texte */
.summary-text, .content, .description {
    line-height: 1.7;
    padding: 0.5rem 0;
}

.active-nav {
    color: var(--color-accent-orange);
    font-weight: 700;
}

.bricoup-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 12px;
    background: rgba(255, 122, 0, 0.08);
    border: 1px solid rgba(255, 122, 0, 0.12);
}

.bricoup-brand .brand-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.bricoup-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    display: inline-flex;
    gap: 4px;
    color: var(--color-accent-orange);
}

.bricoup-brand .brand-text span:last-child {
    color: var(--color-dark-gray);
}

/* Version compacte du logo */
.bricoup-brand-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 8px;
    background: rgba(255, 122, 0, 0.08);
    border: 1px solid rgba(255, 122, 0, 0.12);
    flex-shrink: 0;
}

.bricoup-brand-compact .brand-icon-compact {
    font-size: 1.1rem;
    line-height: 1;
}

.bricoup-brand-compact .brand-text-compact {
    font-size: 1rem;
    font-weight: 800;
    display: inline-flex;
    gap: 2px;
    color: var(--color-accent-orange);
}

.bricoup-brand-compact .brand-text-compact span:last-child {
    color: var(--color-dark-gray);
}

#main-header nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background-color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 20px -18px rgba(15, 23, 42, 0.35);
}

#main-header .main-nav {
    height: 52px;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow: hidden;
}

#main-header nav a {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

#main-header .main-nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    margin: 0 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    overflow: hidden;
}

#main-header .main-nav-links li {
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link-compact {
    font-size: 0.875rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
}

#header-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#main-header .header-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#main-header .header-actions > * {
    white-space: nowrap;
    flex-shrink: 0;
}

.logout-quick-btn {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.logout-quick-btn:hover {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.45);
    color: #dc2626;
}

.logout-quick-btn i {
    width: 16px;
    height: 16px;
}

/* Badge admin compact */
.admin-badge-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-badge-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.admin-badge-text {
    font-size: 0.7rem;
}

/* Menu utilisateur compact */
.user-menu-btn-compact {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.user-profile-icon-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(255, 244, 229, 0.9), rgba(253, 186, 116, 0.85));
    color: #1f2937;
    border: 1px solid rgba(249, 115, 22, 0.2);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.user-name-compact {
    font-size: 0.875rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 1.15rem;
    background: linear-gradient(135deg, rgba(255, 244, 229, 0.9), rgba(253, 186, 116, 0.85));
    color: #1f2937;
    border: 1px solid rgba(249, 115, 22, 0.2);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.profile-icon-choice {
    transition: all 0.2s ease;
}

.profile-icon-choice.active {
    border-color: rgba(249, 115, 22, 0.6);
    background: rgba(255, 247, 237, 0.9);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
}

.user-level-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: transparent;
    border: 1.5px solid #f97316;
    color: #f97316;
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-level-pill:hover {
    background: #f97316;
    color: #fff;
}

.user-level-pill-label {
    display: none; /* Masquer "NIVEAU" */
}

.user-level-pill-value {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
}

/* Version compacte pour "Administrateur" (une seule ligne) */
.user-level-pill-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1875rem 0.4375rem; /* Réduit encore plus : 3px vertical, 7px horizontal */
    border-radius: 9999px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.5625rem;         /* Réduit à 9px */
}

.user-level-pill-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.user-level-pill-compact-text {
    font-size: 0.5625rem;         /* Réduit à 9px */
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Responsive : masquer le nom utilisateur sur écrans moyens */
@media (max-width: 1280px) {
    .user-name-compact {
        display: none !important;
    }
}

/* Responsive : réduire encore plus sur petits écrans */
@media (max-width: 1024px) {
    .bricoup-brand-compact .brand-text-compact {
        font-size: 0.9rem;
    }
    
    .nav-link-compact {
        font-size: 0.8125rem !important;
        padding-left: 0.375rem !important;
        padding-right: 0.375rem !important;
    }
}

.status-pill.highlight {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.card-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Styles pour les boutons favoris */
.favorite-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.favorite-btn.is-favorite {
    color: #ef4444;
}

.favorite-btn.is-favorite .heart-icon {
    fill: currentColor;
    animation: heartPulse 0.3s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.marketplace-filter-btn, .academy-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background-color: #f3f4f6;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.marketplace-filter-btn:hover, .academy-filter-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.marketplace-filter-btn.active-filter {
    background-color: #a855f7;
    color: white;
}

.marketplace-filter-btn.active-filter:hover {
    background-color: #9333ea;
}

/* Styles spécifiques pour academy-filter-btn */
.academy-filter-btn {
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    background-color: #e5e7eb;
    color: #374151;
}

.academy-filter-btn:hover {
    background-color: #d1d5db;
}

.academy-filter-btn.active-filter {
    background-color: var(--color-accent-orange);  /* #f97316 */
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animations et effets avancés */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse-hover:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Styles pour les badges et statuts */
.badge-verified {
    background: linear-gradient(135deg, var(--color-verified-blue), #0284c7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-difficulty-debutant {
    background: linear-gradient(135deg, var(--color-accent-green), #16a34a);
    color: white;
}

.badge-difficulty-intermediaire {
    background: linear-gradient(135deg, var(--color-accent-orange), #ea580c);
    color: white;
}

.badge-difficulty-expert {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

/* Effets de glassmorphism pour la navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==================== CARTES PROJETS ==================== */

/* Carte conteneur */
.project-card {
    background: white;
    border-radius: 0.75rem;    /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);  /* shadow-md */
    overflow: hidden;
    position: relative;
}

/* Effet de survol (shine) */
.card-hover-effect {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Effet de brillance au survol */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.project-card:hover::before {
    left: 100%;
}

/* Image */
.project-card .h-48 {
    height: 12rem;             /* h-48 */
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

/* Contenu */
.project-card .p-6 {
    padding: 1.5rem;           /* p-6 */
}

/* Catégorie */
.project-card .uppercase {
    text-transform: uppercase;
    letter-spacing: 0.025em;   /* tracking-wide */
    font-size: 0.875rem;       /* text-sm */
    color: #f97316;            /* text-orange-500 */
    font-weight: 600;          /* font-semibold */
}

/* Titre */
.project-card .text-lg {
    display: block;
    margin-top: 0.25rem;       /* mt-1 */
    font-size: 1.125rem;       /* text-lg */
    line-height: 1.25;         /* leading-tight */
    font-weight: 700;          /* font-bold */
    color: #000000;            /* text-black */
    text-decoration: none;
}

.project-card .text-lg:hover {
    text-decoration: underline;
}

/* Auteur */
.project-card .text-gray-500.text-sm {
    margin-top: 0.5rem;        /* mt-2 */
    color: #6b7280;            /* text-gray-500 */
    font-size: 0.875rem;       /* text-sm */
}

/* Métadonnées */
.project-card .mt-4.flex {
    margin-top: 1rem;          /* mt-4 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4b5563;            /* text-gray-600 */
    font-size: 0.875rem;       /* text-sm */
}

.project-card .mt-4.flex span {
    display: flex;
    align-items: center;
    gap: 0.25rem;              /* gap-1 */
}

.project-card .mt-4.flex i {
    width: 1rem;               /* w-4 */
    height: 1rem;              /* h-4 */
}

/* Styles pour les boutons avec gradients */
.btn-gradient-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Styles pour les étoiles de notation */
.rating-stars {
    color: #fbbf24;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Effets de survol pour les liens */
.link-hover-effect {
    position: relative;
    text-decoration: none;
}

.link-hover-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--color-accent-orange);
    transition: width 0.3s ease;
}

.link-hover-effect:hover::after {
    width: 100%;
}

/* ==================== SECTION FILTRES PAGE PROJETS ==================== */

/* Conteneur section */
.filters-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;      /* py-8 px-6 */
}

/* Carte filtres */
.filters-card {
    background: white;
    border-radius: 0.5rem;     /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);  /* shadow-md */
    padding: 1.5rem;           /* p-6 */
    margin-bottom: 2rem;       /* mb-8 */
}

.filters-card h2 {
    font-size: 1.25rem;        /* text-xl */
    font-weight: 600;          /* font-semibold */
    margin-bottom: 1rem;       /* mb-4 */
    color: #1f2937;
}

/* Conteneur flex */
.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;                 /* gap-4 */
}

/* Styles pour les formulaires */
.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
    border-color: #a855f7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.form-input:hover {
    border-color: #9ca3af;
}

/* Bouton réinitialiser */
#reset-filters {
    background-color: #6b7280;  /* bg-gray-500 */
    color: white;
    padding: 0.5rem 1rem;       /* px-4 py-2 */
    border-radius: 0.25rem;     /* rounded */
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

#reset-filters:hover {
    background-color: #4b5563;  /* hover:bg-gray-600 */
}

/* Styles pour les alertes et notifications */
.alert-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 1px solid var(--color-accent-green);
    color: #166534;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Styles pour les tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #374151;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Styles pour les modales */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-content.show {
    transform: scale(1);
}

/* Styles pour les tabs */
/* Navigation par onglets Admin */
.tab-button {
    padding: 0.75rem 1.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-button.active {
    border-bottom-color: var(--color-accent-orange);
    color: var(--color-accent-orange);
}

.tab-button:hover:not(.active) {
    background: rgba(249, 115, 22, 0.1);
}

/* Styles responsives améliorés */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .card-hover-effect:hover {
        transform: none;
    }
    
    .btn-gradient-orange:hover {
        transform: none;
    }
}

/* Styles pour le mode sombre (préparation future) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-light-gray: #1f2937;
        --color-dark-gray: #f9fafb;
    }
    
    .glass-nav {
        background: rgba(31, 41, 55, 0.8);
    }
    
    .form-input {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
}

/* Animation pour le chargement */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Knowledge cards shared components */
.status-pill,
.kb-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    background: rgba(249, 250, 251, 0.85);
}
.status-pill[data-state="a_lire"],
.kb-status-pill[data-state="a_lire"] {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
}

.status-pill[data-state="en_cours"],
.kb-status-pill[data-state="en_cours"] {
    color: #92400e;
    background: #fef3c7;
    border-color: #fbbf24;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.status-pill[data-state="fait"],
.kb-status-pill[data-state="fait"] {
    color: #047857;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.25);
}

/* Badges statut stock pour carte Outil du Mois */
.status-rupture {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(220, 38, 38, 0.25);
}

.status-limite {
    color: #92400e;
    background: #fef3c7;
    border-color: #fbbf24;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.status-disponible {
    color: #047857;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.25);
}

.kb-mini-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(243, 244, 246, 0.8);
    border: 1px solid rgba(209, 213, 219, 0.8);
    overflow: hidden;
}

.kb-mini-progress > div {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6aa6ff, #9b8cff);
    transition: width .3s ease;
}


.knowledge-highlight-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Amélioration responsive pour les cartes */
@media (max-width: 768px) {
    .k-highlight-main {
        padding: 28px 24px;
    }
    
    .k-highlight-visual {
        width: 72px;
        height: 72px;
    }
    
    .k-highlight-title {
        font-size: 1.5rem;
    }
    
    .tool-of-month-wrapper {
        position: static;
    }
}

.knowledge-card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.25);
    background: #fff;
    box-shadow: 0 18px 30px -24px rgba(249, 115, 22, 0.9);
}

.knowledge-card .k-highlight-main {
    border-radius: 24px 24px 16px 16px;
}

.knowledge-card-toggle {
    width: 100%;
    background: linear-gradient(90deg, #fff7ed, rgba(255, 237, 213, 0.6));
    border: none;
    border-top: 1px solid rgba(251, 146, 60, 0.2);
    border-bottom: 1px solid rgba(251, 146, 60, 0.2);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    color: #ea580c;
    font-size: 0.95rem;
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.knowledge-card-toggle:hover {
    background: linear-gradient(90deg, #ffedd5, rgba(255, 237, 213, 0.85));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    color: #c2410c;
}

.knowledge-card-toggle i {
    transition: transform .2s ease;
}

.knowledge-card.expanded .knowledge-card-toggle i {
    transform: rotate(180deg);
}

.knowledge-card-chevron {
    transition: transform .3s ease;
}

.knowledge-card.expanded .knowledge-card-chevron {
    transform: rotate(180deg);
}

/* Animation du chevron pour toutes les cartes */
.knowledge-card-body {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1rem;
    background: linear-gradient(to bottom, #fffbeb, #fef3c7);
    border-top: 2px solid #fbbf24;
    transition: max-height 0.3s ease-out,
                opacity 0.2s ease-out,
                padding 0.3s ease-out;
}

.knowledge-card.expanded .knowledge-card-body {
    max-height: 500px;
    opacity: 1;
}

.knowledge-card .expand-icon {
    display: inline-flex;
    transition: transform 0.3s ease;
}

.knowledge-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.knowledge-card-body .knowledge-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* ============================================
   BADGES DE CATÉGORIE (STAGE) - KNOWLEDGE
   ============================================ */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.category-badge.cat-preparation { background: #3b82f6; color: #ffffff; }
.category-badge.cat-montage { background: #06b6d4; color: #ffffff; }
.category-badge.cat-finitions { background: #8b5cf6; color: #ffffff; }
.category-badge.cat-entretien { background: #22c55e; color: #ffffff; }
.category-badge.cat-astuces { background: #eab308; color: #1f2937; }
.category-badge.cat-securite { background: #ef4444; color: #ffffff; }
.category-badge.cat-outillage { background: #6b7280; color: #ffffff; }
.category-badge.cat-menuiserie { background: #d97706; color: #ffffff; }
.category-badge.cat-peinture { background: #ec4899; color: #ffffff; }
.category-badge.cat-plomberie { background: #2563eb; color: #ffffff; }
.category-badge.cat-electricite { background: #f59e0b; color: #1f2937; }
.category-badge.cat-decoration { background: #6366f1; color: #ffffff; }
.category-badge.cat-jardinage { background: #10b981; color: #ffffff; }
.category-badge.cat-maconnerie { background: #78716c; color: #ffffff; }
.category-badge.cat-tips { background: #f97316; color: #ffffff; }
.category-badge.cat-tutorial { background: #14b8a6; color: #ffffff; }
.category-badge.cat-outils { background: #64748b; color: #ffffff; }

/* Status pill dans le header */
.knowledge-card .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.knowledge-section {
    padding: 16px 18px;
    border-radius: 16px;
    background: #fef8f3;
    border: 1px solid rgba(255, 122, 0, 0.15);
}

.knowledge-section + .knowledge-section {
    margin-top: 12px;
}

.k-section-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ea580c;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.k-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: rgba(255, 122, 0, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* === CARTE KNOWLEDGE HIGHLIGHT === */

.knowledge-highlight-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(251, 146, 60, 0.2);
    transition: box-shadow 0.2s ease;
}

.knowledge-highlight-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.k-highlight-link-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.k-highlight-main {
    background: linear-gradient(135deg, #fb923c, #f97316, #ea580c);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.k-highlight-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.k-highlight-head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.k-highlight-visual {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.2s ease;
}

.k-highlight-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.k-highlight-info {
    flex: 1;
}

.k-highlight-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.k-highlight-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.k-category-green {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.5);
}

.k-highlight-status {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.k-highlight-percent {
    font-weight: 800;
    font-size: 1rem;
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
}

.k-highlight-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin: 0;
    transition: all 0.2s ease;
}

.k-highlight-link-wrapper:hover .k-highlight-title {
    color: #ffedd5;
    transform: translateY(-1px);
}

.k-highlight-hook {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.k-highlight-progress {
    background: linear-gradient(to right, #fff7ed, #ffedd5);
    padding: 20px 36px 28px;
    border-top: 1px solid rgba(249, 115, 22, 0.1);
}

.kb-mini-progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(253, 186, 116, 0.5);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kb-mini-progress > div {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 237, 213, 0.95), rgba(255, 255, 255, 1));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    border-radius: 999px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   CARTE OUTIL DU MOIS - Fond blanc
   ======================================== */
.tool-highlight-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s ease;
}

.tool-highlight-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.tool-highlight-main {
    background: white;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #1e293b;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

/* Titre carte Outil - Texte noir/gris foncé */
.tool-highlight-title {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.25;
    color: #1e293b;
    letter-spacing: -0.02em;
    margin: 0;
}

.tool-highlight-title-link {
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tool-highlight-title-link:hover {
    color: #fb923c;
    transform: translateY(-1px);
}

/* Phrase d'accroche carte Outil - Texte gris foncé */
.tool-highlight-hook {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #475569;
    margin: 8px 0 0 0;
}

/* Catégorie et pourcentage - Couleurs adaptées pour fond blanc */
.tool-highlight-main .k-highlight-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #fb923c;
    background: rgba(251, 146, 60, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.tool-highlight-main .k-highlight-percent {
    color: #64748b;
    font-weight: 700;
    background: rgba(241, 245, 249, 0.8);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(203, 213, 225, 0.5);
}

/* Badges statut stock - Visibles sur fond blanc */
.tool-highlight-main .status-rupture {
    color: #ffffff !important;
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.tool-highlight-main .status-limite {
    color: #ffffff !important;
    background: #f59e0b !important;
    border-color: #d97706 !important;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.tool-highlight-main .status-disponible {
    color: #ffffff !important;
    background: #10b981 !important;
    border-color: #059669 !important;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

/* Barre de progression carte Outil */
.tool-highlight-progress {
    background: linear-gradient(to right, #f1f5f9, #e2e8f0, #f1f5f9);
    padding: 20px 36px 28px;
    border-top: 1px solid #e5e7eb;
}

.tool-highlight-progress .kb-mini-progress {
    height: 10px;
    background: rgba(241, 245, 249, 0.8);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.5);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-highlight-progress .kb-mini-progress > div {
    height: 100%;
    background: linear-gradient(90deg, #fb923c, #f97316, #ea580c);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Classes de progression pour différents états de stock */
.tool-highlight-progress .progress-disponible > div {
    background: linear-gradient(90deg, #10b981, #059669, #047857);
}

.tool-highlight-progress .progress-limite > div {
    background: linear-gradient(90deg, #f59e0b, #d97706, #b45309);
}

.tool-highlight-progress .progress-rupture > div {
    background: linear-gradient(90deg, #dc2626, #b91c1c, #991b1b);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .tool-highlight-main {
        padding: 28px 24px;
    }
    
    .k-highlight-visual {
        width: 72px;
        height: 72px;
    }
    
    .tool-highlight-title {
        font-size: 1.5rem;
    }
    
    .tool-highlight-progress {
        padding: 16px 24px 20px;
    }
}

.k-highlight-progressbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.k-highlight-progressbar-track {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.k-highlight-progressbar-track > div {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 237, 213, 0.95), rgba(255, 255, 255, 1));
    transition: width .4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.k-highlight-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    width: fit-content;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.k-highlight-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px) translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Lien sobre - Pas d'effet de translation */
.k-highlight-link i {
    transition: color 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .k-highlight-main {
        padding: 28px 24px;
    }

    .k-highlight-visual {
        width: 72px;
        height: 72px;
    }

    .k-highlight-title {
        font-size: 1.5rem;
}

.k-highlight-progress {
        padding: 16px 24px 20px;
    }
}

/* Barres de progression selon disponibilité stock */
.progress-disponible > div {
    background: linear-gradient(90deg, #fff, rgba(16, 185, 129, 0.95)) !important;
}

.progress-limite > div {
    background: linear-gradient(90deg, #fff, rgba(251, 191, 36, 0.95)) !important;
}

.progress-rupture > div {
    background: linear-gradient(90deg, #fff, rgba(239, 68, 68, 0.95)) !important;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ========================================
   CARTE OUTIL DU MOIS - Proportions parfaites
   ======================================== */
.tool-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    position: relative;
}

/* Badges en haut à droite */
.tool-card-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.tool-badge {
    background: #10b981;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

/* Badge catégorie */
.tool-category-badge {
    background: #fb923c;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(251, 146, 60, 0.3);
}

/* Image - 50% de la hauteur */
.tool-card-image {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: linear-gradient(to bottom, #fafafa, #ffffff);
}

.tool-card-image img {
    width: 100%;
    max-width: 280px;
    height: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
}

/* Contenu - 50% de la hauteur, tout visible */
.tool-card-content {
    flex: 1;
    padding: 24px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
    margin: 0;
}

/* Lien titre Outil du Mois cliquable */
.tool-card-title-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tool-card-title-link:hover {
    color: #fb923c;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Phrase d'accroche carte Outil du Mois */
.tool-card-hook {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
    margin: 8px 0 12px 0;
}

.tool-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Information stock */
.tool-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

.tool-stock i {
    width: 16px;
    height: 16px;
}

.stock-ok {
    color: #15803d;
}

.stock-ok i {
    color: #22c55e;
}

.stock-low {
    color: #d97706;
}

.stock-low i {
    color: #f59e0b;
}

.stock-out {
    color: #dc2626;
}

.stock-out i {
    color: #ef4444;
}

.tool-price {
    font-size: 2rem;
    font-weight: 700;
    color: #fb923c;
    margin: 0 0 8px 0;
    line-height: 1;
}

.tool-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Lien "Voir le produit" */
.tool-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fb923c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tool-card-link:hover {
    color: #f97316;
    text-decoration: underline;
}

/* Hover sobre */
.tool-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

/* Ancienne définition .project-card supprimée - Utiliser la nouvelle définition plus haut */

.project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 8px;
    margin-right: 6px;
}

.status-draft { background: #f0f0f0; color: #666; }
.status-pending { background: #fff3cd; color: #856404; }
.status-published_personal { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-featured { background: #cce5ff; color: #004085; }

.project-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-actions button {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn-approve { background: #28a745; color: #fff; }
.btn-reject { background: #dc3545; color: #fff; }
.btn-feature { background: #007bff; color: #fff; }
.btn-unfeature { background: #6c757d; color: #fff; }

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-actions .btn-danger {
    background: #dc3545;
    color: #fff;
}

.modal-actions .btn-secondary {
    background: #e2e8f0;
    color: #1f2937;
}

#reject-reason {
    width: 100%;
    min-height: 120px;
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

/* ==================== SKELETON LOADERS ==================== */

/* Carte skeleton (structure similaire aux cartes projets) */
.skeleton-project-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Image skeleton */
.skeleton-image {
    width: 100%;
    height: 224px; /* h-56 en Tailwind = 14rem = 224px */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Contenu skeleton */
.skeleton-content {
    padding: 1.5rem; /* p-6 en Tailwind */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Lignes skeleton */
.skeleton-line {
    height: 1rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.25rem;
}

.skeleton-line.title {
    height: 1.5rem;
    width: 70%;
    margin-bottom: 0.25rem;
}

.skeleton-line.text {
    height: 0.875rem;
    width: 100%;
}

.skeleton-line.text.short {
    width: 60%;
}

/* Meta skeleton (difficulté, durée, favoris) */
.skeleton-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    gap: 0.5rem;
}

.skeleton-meta .skeleton-line {
    height: 0.875rem;
    width: 80px;
    flex: 0 0 auto;
}

/* Animation de chargement */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Masquer les skeletons quand les données sont chargées */
.skeleton-loader {
    display: block;
}

/* Les skeletons seront remplacés par innerHTML, donc pas besoin de les masquer manuellement */

/* Métadonnées supprimées - Plus utilisées */

/* ========================================
   TITRES DE SECTIONS - Style unifié
   ======================================== */

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* Conteneur harmonisé pour cartes featured */
.featured-card-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   HARMONISATION TYPOGRAPHIE DES CARTES FEATURED
   ======================================== */
/* Titres des cartes (H3) */
.knowledge-highlight-card h3,
.tool-card h3,
.tool-card-title,
.k-highlight-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
    margin-bottom: 1rem;
}

/* Textes des cartes */
.knowledge-highlight-card p,
.tool-card p,
.tool-card-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
}

/* Prix outil du mois - Déjà défini plus haut mais on force */
.tool-price {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #fb923c !important;
}

/* Badges harmonisés */
.k-highlight-category,
.tool-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   ALIGNEMENT PARFAIT DES HAUTEURS
   ======================================== */
/* Alignement parfait des hauteurs sur desktop - Format compact (réduit de 25%) */
@media (min-width: 1024px) {
    .knowledge-highlight-card,
    .tool-highlight-card,
    .tool-card {
        height: 390px;
        min-height: 390px;
        max-height: 390px;
        display: flex;
        flex-direction: column;
    }
    
    /* Distribution de l'espace - Carte Knowledge */
    .knowledge-highlight-card {
        overflow: hidden;
    }
    
    .k-highlight-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    
    .k-highlight-progress {
        flex-shrink: 0;
    }
    
    /* Distribution de l'espace - Carte Outil du Mois */
    .tool-highlight-card {
        overflow: hidden;
    }
    
    .tool-highlight-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    
    .tool-highlight-progress {
        flex-shrink: 0;
    }
    
    /* Distribution de l'espace - Carte Outil du Mois */
    .tool-card-image {
        height: 195px;
        flex-shrink: 0;
    }
    
    .tool-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    
    .tool-card-details {
        flex: 1;
    }
}

/* Sur mobile, hauteur auto */
@media (max-width: 1023px) {
    .knowledge-highlight-card,
    .tool-card {
        height: auto;
        min-height: auto;
        max-height: none;
    }
    
    .tool-card-image {
        height: auto;
        min-height: 200px;
    }
}

/* Espacements dans les cartes */
.card-content {
    padding: 2rem;
}

/* ========================================
   HARMONISATION DES ESPACEMENTS
   ======================================== */
/* Espacements harmonisés entre les deux cartes - Force avec !important */
.k-highlight-main,
.tool-card-content {
    padding: 32px !important;
}

.k-highlight-progress,
.tool-card-header {
    padding: 16px 32px !important;
}

@media (max-width: 768px) {
    .card-content {
        padding: 1.5rem;
    }
}

/* Marges entre éléments de carte */
.card-content h3 {
    margin-bottom: 1rem;
}

.card-content p {
    margin-bottom: 1.5rem;
}

/* Badges de difficulté discrets */
/* Badges difficulté - Style sobre et discret */
.difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
}

.difficulty-badge i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    stroke-width: 2;
}

/* Couleurs des icônes selon la difficulté */
.difficulty-facile i,
.difficulty-easy i {
    color: #16a34a;
    stroke: #16a34a;
}

.difficulty-moyen i,
.difficulty-medium i {
    color: #ca8a04;
    stroke: #ca8a04;
}

.difficulty-difficile i,
.difficulty-hard i {
    color: #dc2626;
    stroke: #dc2626;
}

.difficulty-facile,
.difficulty-easy,
.difficulty-facile[data-difficulty],
.difficulty-easy[data-difficulty] {
    background: rgba(21, 128, 61, 0.1);
    color: #15803d;
    border-color: rgba(21, 128, 61, 0.3);
}

.difficulty-moyen,
.difficulty-medium,
.difficulty-moyen[data-difficulty],
.difficulty-medium[data-difficulty] {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.3);
}

.difficulty-difficile,
.difficulty-hard,
.difficulty-difficile[data-difficulty],
.difficulty-hard[data-difficulty] {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.3);
}

/* ==================== BADGE PROFIL CRÉATEUR ==================== */

/* Badge profil créateur */
.project-author-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.author-name {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* ==================== MÉTADONNÉES PROJET ==================== */

/* Métadonnées du projet (ligne du bas) */
/* Styles pour les étiquettes en bas des cartes projets - Structure simplifiée avec mt-4 */
.card-content > .mt-4 {
    margin-top: 0.75rem;   /* mt-3 (réduit de mt-4) */
}

/* Ajustement spécifique pour la carte du milieu (2ème carte dans une grille de 3) */
.grid > .project-card:nth-child(2) .card-content > .mt-4,
.grid-cols-3 > .project-card:nth-child(2) .card-content > .mt-4,
#projects-grid > .project-card:nth-child(2) .card-content > .mt-4 {
    margin-top: 0.5rem;    /* Réduit encore plus pour la carte du milieu */
}

/* gap-1 (4px) est déjà géré par Tailwind, pas besoin de style supplémentaire */

/* Ajustement spécifique pour la carte du milieu (2ème carte dans une grille de 3) */
.grid > .project-card:nth-child(2) .project-metadata,
.grid-cols-3 > .project-card:nth-child(2) .project-metadata,
#projects-grid > .project-card:nth-child(2) .project-metadata {
    margin-top: 0.5rem;    /* Réduit encore plus */
    padding-top: 0.375rem; /* Réduit encore plus */
    gap: 0.375rem;         /* Gap réduit */
}

.project-metadata-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #64748b;
}

.project-metadata-item i {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

/* Badge difficulté avec meilleur contraste */
.project-metadata .difficulty-badge {
    margin: 0;
    padding: 4px 10px;
}

/* Bouton favori */
.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;          /* font-bold */
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.favorite-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.favorite-btn:active {
    transform: scale(0.95);
}

/* Icône coeur non favori */
.favorite-btn .text-gray-400 {
    color: #9ca3af;
}

/* Icône coeur favori */
.favorite-btn .text-red-500 {
    color: #ef4444;
}

.favorite-btn .fill-current {
    fill: currentColor;
}

.favorite-btn .likes-count {
    font-size: 0.875rem;
    font-weight: 700;
}

/* Grille responsive */
#projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;                 /* gap-8 */
}

@media (min-width: 768px) {
    #projects-grid {
        grid-template-columns: repeat(2, 1fr);  /* md:grid-cols-2 */
    }
}

@media (min-width: 1024px) {
    #projects-grid {
        grid-template-columns: repeat(3, 1fr);  /* lg:grid-cols-3 */
    }
}

/* ==================== OMBRES CARTES PROJETS ==================== */

/* Ombre plus subtile et professionnelle */
.project-card {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 
                0 1px 2px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ==================== SECTION ARTISANS DE CONFIANCE ==================== */

/* Grille des artisans */
#featured-artisans {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem; /* gap-8 */
}

@media (min-width: 768px) {
    #featured-artisans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #featured-artisans {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Carte artisan */
.artisan-card {
    background: #ffffff;
    border-radius: 0.75rem;     /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    padding: 1.5rem;            /* p-6 */
    text-align: center;
}

.card-hover-effect {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Avatar */
.artisan-card img {
    width: 6rem;               /* w-24 (96px) */
    height: 6rem;              /* h-24 (96px) */
    margin-left: auto;
    margin-right: auto;
    border-radius: 9999px;     /* rounded-full */
    margin-bottom: 1rem;       /* mb-4 */
    object-fit: cover;
}

/* Nom et spécialité */
.artisan-card h3 {
    font-size: 1.25rem;        /* text-xl */
    font-weight: 700;          /* font-bold */
    color: inherit;
    transition: color 0.2s ease;
}

.artisan-card h3:hover {
    color: #f97316;            /* hover:text-orange-500 */
}

.artisan-card .specialty,
.artisan-card p.text-gray-500 {
    color: #6b7280;            /* text-gray-500 */
}

/* Système de notation */
.artisan-rating {
    margin-top: 0.5rem;        /* mt-2 */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;              /* gap-1 */
}

.rating-star {
    width: 1rem;               /* w-4 */
    height: 1rem;              /* h-4 */
    cursor: pointer;
    transition: transform 0.15s ease;
}

.rating-star:hover {
    transform: scale(1.2);
}

/* Étoile vide */
.rating-star.text-gray-300 {
    color: #d1d5db;
}

/* Étoile remplie */
.rating-star.text-yellow-500.fill-current {
    color: #eab308;
    fill: currentColor;
}

.rating-display {
    font-weight: 700;          /* font-bold */
    color: #374151;            /* text-gray-700 */
    margin-left: 0.25rem;      /* ml-1 */
}

/* Badge vérifié */
.verified-badge,
.artisan-card .bg-sky-100 {
    margin-top: 0.75rem;       /* mt-3 */
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;              /* gap-1 */
    background-color: #e0f2fe; /* bg-sky-100 */
    color: #0284c7;            /* text-sky-600 */
    font-size: 0.75rem;        /* text-xs */
    font-weight: 600;          /* font-semibold */
    padding: 0.25rem 0.625rem; /* px-2.5 py-1 */
    border-radius: 9999px;     /* rounded-full */
}

.verified-badge i,
.artisan-card .bg-sky-100 i {
    width: 1rem;               /* w-4 */
    height: 1rem;              /* h-4 */
}

/* ==================== BADGE CATÉGORIE ==================== */

/* Badge catégorie plus visible */
.project-category-badge {
    background: #fb923c;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

/* ==================== SECTION MARKETPLACE ==================== */

/* Grille marketplace (page principale) */
#home-marketplace {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem; /* gap-8 */
}

@media (min-width: 768px) {
    #home-marketplace {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #home-marketplace {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Grille marketplace (page listing) */
#marketplace-grid {
    display: grid;
    gap: 2rem;                  /* gap-8 */
}

/* Mobile: 1 colonne */
@media (max-width: 767px) {
    #marketplace-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablette: 2 colonnes */
@media (min-width: 768px) {
    #marketplace-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4 colonnes */
@media (min-width: 1024px) {
    #marketplace-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Carte marketplace */
.marketplace-card {
    background-color: #ffffff;
    border-radius: 0.75rem;     /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    overflow: hidden;
}

/* Image */
.marketplace-card .h-48 {
    height: 12rem;              /* h-48 (192px) */
    overflow: hidden;
}

.marketplace-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.marketplace-card:hover img {
    transform: scale(1.05);
}

/* Contenu */
.marketplace-card .p-6 {
    padding: 1.5rem;           /* p-6 */
}

/* Badges */
.marketplace-card .flex.flex-wrap.gap-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;                /* gap-2 */
    margin-bottom: 0.75rem;     /* mb-3 */
}

/* Badge type (Outillage / Matériau) */
.marketplace-card .k-highlight-category {
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: none;
    backdrop-filter: none;
    text-transform: uppercase;
}

/* Variante Outillage (vert) */
.marketplace-card .k-highlight-category.tool-badge {
    background: rgba(16, 185, 129, 0.95); /* emerald-500 */
}

/* Variante Matériau (bleu) */
.marketplace-card .k-highlight-category.material-badge {
    background: rgba(59, 130, 246, 0.95); /* blue-500 */
}

/* Status Pill (Stock) */
.marketplace-card .status-pill {
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 9999px;
    font-weight: 600;
}

/* En stock */
.marketplace-card .status-pill.status-disponible {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Stock limité */
.marketplace-card .status-pill.status-limite {
    background: rgba(251, 146, 60, 0.15);
    color: #ea580c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

/* En rupture */
.marketplace-card .status-pill.status-rupture {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Titre */
.marketplace-card a.text-md {
    font-size: 1rem;            /* text-md */
    line-height: 1.5;           /* leading-tight */
    font-weight: 700;           /* font-bold */
    color: #000000;             /* text-black */
    display: block;
}

.marketplace-card a.text-md:hover {
    text-decoration: underline;
}

/* Description */
.marketplace-card .description,
.marketplace-card p.text-gray-600 {
    margin-top: 0.25rem;        /* mt-1 */
    color: #4b5563;             /* text-gray-600 */
    font-size: 0.875rem;        /* text-sm */
}

/* Prix */
.marketplace-card .text-xl.text-orange-500 {
    font-size: 1.25rem;         /* text-xl */
    font-weight: 800;           /* font-extrabold */
    color: #f97316;             /* text-orange-500 */
    margin-top: 0.25rem;
}

/* Vendeur */
.marketplace-card .text-gray-500 {
    color: #6b7280;             /* text-gray-500 */
    font-size: 0.875rem;        /* text-sm */
    margin-top: 0.5rem;
}

/* Localisation */
.marketplace-card .text-gray-400 {
    color: #9ca3af;             /* text-gray-400 */
    font-size: 0.75rem;         /* text-xs */
    margin-top: 0.25rem;
}

/* ==================== PAGE DÉTAIL MARKETPLACE ==================== */

/* Image principale */
.h-96 {
    height: 24rem;
}

.object-cover {
    object-fit: cover;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Galerie miniatures */
.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-thumbnail {
    height: 5rem;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumbnail:hover {
    opacity: 0.75;
}

.gallery-thumbnail.border-orange-500 {
    border-color: #f97316 !important;
    border-width: 2px;
}

/* Badge type */
.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-green-500 {
    background-color: #22c55e;
}

.bg-purple-500 {
    background-color: #a855f7;
}

.text-xs {
    font-size: 0.75rem;
}

.font-semibold {
    font-weight: 600;
}

.rounded-full {
    border-radius: 9999px;
}

/* Prix */
.text-4xl {
    font-size: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.text-orange-500 {
    color: #f97316;
}

/* Tags */
.bg-gray-100 {
    background-color: #f3f4f6;
}

.text-gray-700 {
    color: #374151;
}

.px-3.py-1 {
    padding: 0.25rem 0.75rem;
}

/* ==================== SECTION VENDEUR ET RECOMMANDATIONS ==================== */

/* Section vendeur */
.flex-col.md\:flex-row {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .flex-col.md\:flex-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.gap-6 {
    gap: 1.5rem;
}

/* Avatar vendeur (grand) */
.w-16.h-16 {
    width: 4rem;
    height: 4rem;
}

/* Nom vendeur */
.font-semibold.text-lg {
    font-weight: 600;
    font-size: 1.125rem;
}

/* Info ancienneté */
.text-gray-500 {
    color: #6b7280;
}

/* Bouton contacter (orange) */
.bg-orange-500 {
    background-color: #f97316;
}

.bg-orange-500:hover {
    background-color: #ea580c;
}

.px-4.py-2 {
    padding: 0.5rem 1rem;
}

.transition {
    transition: all 0.2s ease;
}

/* Bouton évaluer (outline) */
.border.border-gray-300 {
    border: 1px solid #d1d5db;
}

.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

/* Grille recommandations */
#recommended-items {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    #recommended-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #recommended-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Carte recommandation */
.bg-gray-50 {
    background-color: #f9fafb;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.h-40 {
    height: 10rem;
}

/* ==================== FORMULAIRE ÉDITEUR MARKETPLACE ==================== */

/* Titre section (violet) */
h2.text-purple-600 {
    color: #9333ea;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Bouton ajouter (vert) */
.bg-green-500 {
    background-color: #22c55e;
}

.bg-green-500:hover {
    background-color: #16a34a;
}

/* Bouton supprimer (rouge) */
.bg-red-500 {
    background-color: #ef4444;
}

.bg-red-500:hover {
    background-color: #dc2626;
}

/* Bouton principal (gradient) */
.bg-gradient-to-r.from-purple-500.to-pink-500 {
    background: linear-gradient(to right, #a855f7, #ec4899);
}

.bg-gradient-to-r.from-purple-500.to-pink-500:hover {
    background: linear-gradient(to right, #9333ea, #db2777);
}

/* Barre sticky */
.sticky.bottom-4 {
    position: sticky;
    bottom: 1rem;
}

.border-2.border-purple-200 {
    border: 2px solid #e9d5ff;
}

/* Ligne de caractéristique */
.spec-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.spec-row .form-input {
    flex: 1;
}

.remove-spec-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
}

/* ==================== SECTION ACADÉMIE (TUTORIELS) ==================== */

/* Grille des tutoriels */
#popular-tutorials {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem; /* gap-8 */
}

@media (min-width: 768px) {
    #popular-tutorials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #popular-tutorials {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Carte tutoriel */
.tutorial-card {
    background: #ffffff;
    border-radius: 0.75rem;     /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    overflow: hidden;
}

.tutorial-card a {
    display: block;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* Image */
.tutorial-card .h-48 {
    height: 12rem;              /* h-48 (192px) */
    overflow: hidden;
    position: relative;
}

.tutorial-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tutorial-card:hover img {
    transform: scale(1.05);
}

/* Contenu */
.tutorial-card .p-6 {
    padding: 1.5rem;           /* p-6 */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Badges */
.tutorial-card .flex.flex-wrap.gap-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;                /* gap-2 */
    margin-bottom: 0.75rem;     /* mb-3 */
}

/* Badge catégorie (violet) */
.academy-category-badge {
    background: rgba(139, 92, 246, 0.95); /* violet-500 */
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Badges de niveau (Skill) */
.academy-skill-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

/* Débutant (vert) */
.academy-skill-badge.skill-debutant {
    background: rgba(16, 185, 129, 0.95);  /* Vert */
    color: white;
}

/* Intermédiaire (orange) */
.academy-skill-badge.skill-intermediaire {
    background: rgba(251, 146, 60, 0.95);  /* Orange */
    color: white;
}

/* Expert (rouge) */
.academy-skill-badge.skill-expert {
    background: rgba(239, 68, 68, 0.95);   /* Rouge */
    color: white;
}

/* Badge durée */
.academy-duration-badge {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.academy-duration-badge svg,
.academy-duration-badge i {
    width: 12px;
    height: 12px;
}

/* Titre */
.tutorial-card h4 {
    display: block;
    font-size: 1.125rem;        /* text-lg */
    line-height: 1.25;          /* leading-tight */
    font-weight: 700;           /* font-bold */
    color: #000000;             /* text-black */
}

.tutorial-card h4:hover {
    text-decoration: underline;
}

/* Résumé */
.tutorial-card .summary,
.tutorial-card p.text-gray-500 {
    margin-top: 0.5rem;         /* mt-2 */
    color: #6b7280;             /* text-gray-500 */
    font-size: 0.875rem;        /* text-sm */
    flex-grow: 1;               /* Remplit l'espace disponible */
}

/* Grille tutoriels */
#tutorials-grid {
    display: grid;
    gap: 2rem;                  /* gap-8 */
}

/* Mobile: 1 colonne */
@media (max-width: 767px) {
    #tutorials-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablette: 2 colonnes */
@media (min-width: 768px) {
    #tutorials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 colonnes */
@media (min-width: 1024px) {
    #tutorials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== PAGE DÉTAIL TUTORIEL ==================== */

/* Badges de difficulté */
.badge-difficulty-debutant {
    background-color: #10b981;  /* Vert */
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-difficulty-intermediaire {
    background-color: #fb923c;  /* Orange */
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-difficulty-expert {
    background-color: #ef4444;  /* Rouge */
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Header tutoriel - Overlay */
.absolute.inset-0 {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bg-black.bg-opacity-40 {
    background-color: rgba(0, 0, 0, 0.4);
}

.flex.items-end {
    display: flex;
    align-items: flex-end;
}

/* Catégorie header */
.text-green-300 {
    color: #86efac;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

/* Titre header */
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.font-bold {
    font-weight: 700;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Durée avec icône */
.flex.items-center.gap-2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.w-5.h-5 {
    width: 1.25rem;
    height: 1.25rem;
}

/* ==================== FOOTER ==================== */

/* Container principal */
#main-footer {
    background-color: #1f2937;    /* bg-gray-800 */
    color: #d1d5db;               /* text-gray-300 */
}

#main-footer .bg-gray-800 {
    padding-top: 3rem;            /* py-12 */
    padding-bottom: 3rem;
}

#main-footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;         /* px-6 */
    padding-right: 1.5rem;
}

/* Grid des colonnes */
#main-footer .grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;                    /* gap-8 */
}

@media (min-width: 768px) {
    #main-footer .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)); /* md:grid-cols-4 */
    }
}

/* Colonne À propos */
#main-footer .text-xl {
    font-size: 1.25rem;           /* text-xl */
    font-weight: 700;             /* font-bold */
    color: #ffffff;               /* text-white */
    margin-bottom: 1rem;          /* mb-4 */
}

#main-footer .text-gray-400 {
    color: #9ca3af;               /* text-gray-400 */
}

/* Colonnes Navigation et Légal */
#main-footer .text-lg {
    font-size: 1.125rem;          /* text-lg */
    font-weight: 600;             /* font-semibold */
    color: #ffffff;               /* text-white */
    margin-bottom: 1rem;          /* mb-4 */
}

#main-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#main-footer ul.space-y-2 li {
    margin-bottom: 0.5rem;        /* space-y-2 */
}

#main-footer ul a {
    color: #d1d5db;               /* text-gray-300 (hérité) */
    text-decoration: none;
    transition: color 0.2s ease;
}

#main-footer ul a:hover {
    color: #fb923c;               /* hover:text-orange-400 */
}

/* Colonne Réseaux sociaux */
#main-footer .flex.space-x-4 {
    display: flex;
    gap: 1rem;                    /* space-x-4 */
}

#main-footer .flex.space-x-4 a {
    color: #9ca3af;               /* text-gray-400 */
    transition: color 0.2s ease;
}

/* ============================================
   SYSTÈME D'INTERACTIONS - CONNAISSANCES
   ============================================ */

/* Bouton favoris */
.knowledge-favorite-btn {
    padding: 0.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s;
}

.knowledge-favorite-btn.text-white\/50 {
    color: rgba(255, 255, 255, 0.5);
}

.knowledge-favorite-btn.text-orange-300 {
    color: #fdba74;
}

.knowledge-favorite-btn:hover {
    color: #fb923c;
}

/* Mobile - zone tactile agrandie */
@media (max-width: 768px) {
    .knowledge-theme .knowledge-favorite-btn {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Contrôles de statut */
.knowledge-status-controls {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.knowledge-status-controls p {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Boutons de statut */
.status-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.status-btn i {
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.25rem;
}

/* À lire - actif */
.status-btn.bg-gray-700 {
    background: #374151;
    color: white;
}

/* À lire - inactif */
.status-btn.bg-gray-200 {
    background: #e5e7eb;
    color: #4b5563;
}

.status-btn.bg-gray-200:hover {
    background: #d1d5db;
}

/* En cours - actif */
.status-btn.bg-orange-500 {
    background: #f97316;
    color: white;
}

/* En cours - inactif */
.status-btn.bg-orange-100 {
    background: #ffedd5;
    color: #ea580c;
}

.status-btn.bg-orange-100:hover {
    background: #fed7aa;
}

/* Terminée - actif */
.status-btn.bg-green-500 {
    background: #22c55e;
    color: white;
}

/* Terminée - inactif */
.status-btn.bg-green-100 {
    background: #dcfce7;
    color: #16a34a;
}

.status-btn.bg-green-100:hover {
    background: #bbf7d0;
}

#main-footer .flex.space-x-4 a i {
    width: 1.5rem;                /* w-6 */
    height: 1.5rem;               /* h-6 */
}

/* Couleurs hover par réseau */
#main-footer a[title="Facebook"]:hover {
    color: #3b82f6 !important;    /* hover:text-blue-500 */
}

#main-footer a[title="Instagram"]:hover {
    color: #ec4899 !important;    /* hover:text-pink-500 */
}

#main-footer a[title="YouTube"]:hover {
    color: #ef4444 !important;    /* hover:text-red-500 */
}

#main-footer a[title="Twitter/X"]:hover {
    color: #38bdf8 !important;    /* hover:text-sky-400 */
}

/* Copyright */
#main-footer .mt-8.pt-8 {
    margin-top: 2rem;             /* mt-8 */
    padding-top: 2rem;            /* pt-8 */
    border-top: 1px solid #374151; /* border-gray-700 */
    text-align: center;
    color: #6b7280;               /* text-gray-500 */
}


/* Sous-onglets Knowledge */
.knowledge-subtab {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #4b5563; /* text-gray-600 */
    transition: all 0.3s ease;
}

.knowledge-subtab.active {
    background-color: #ffedd5; /* bg-orange-100 */
    color: #9a3412; /* text-orange-700 */
    border-bottom: 2px solid #f97316; /* border-orange-500 */
}

.knowledge-subtab:hover:not(.active) {
    background-color: rgba(249, 115, 22, 0.05);
}

/* ============================================================
   NOUVELLES FONCTIONNALITÉS - Ajoutées le 6 décembre 2025
   ============================================================ */

/* Lien titre Knowledge cliquable */
.k-highlight-title-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.k-highlight-title-link:hover {
    color: #ffedd5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* Boutons favoris améliorés */
.favorite-btn.favorited,
.favorite-btn.is-favorite {
    color: #ef4444;
}

.favorite-btn.favorited i,
.favorite-btn.is-favorite i {
    fill: currentColor;
}

.favorite-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.favorite-btn.favorited .favorite-count,
.favorite-btn.is-favorite .favorite-count {
    color: #ef4444;
}

/* ============================================
   CARTES KNOWLEDGE - DESIGN FINAL
   ============================================ */
.knowledge-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.knowledge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.knowledge-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

.knowledge-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.knowledge-card:hover .knowledge-card-image img {
    transform: scale(1.05);
}

.knowledge-card-image.no-image::after {
    content: '📚';
    font-size: 48px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.knowledge-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.knowledge-card-badge.debutant,
.knowledge-card-badge.beginner { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.knowledge-card-badge.intermediaire,
.knowledge-card-badge.intermediate { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.knowledge-card-badge.avance,
.knowledge-card-badge.advanced { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }

.knowledge-card-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.knowledge-card-status.status-unread { background: #111827 !important; color: #ffffff !important; }
.knowledge-card-status.status-progress { background: #f59e0b !important; color: #ffffff !important; }
.knowledge-card-status.status-complete { background: #10b981 !important; color: #ffffff !important; }

.knowledge-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.knowledge-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.knowledge-card-description {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.knowledge-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.knowledge-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 12px;
    color: #1f2937;
}

.knowledge-card-category i {
    width: 14px;
    height: 14px;
}

.knowledge-card-progress {
    font-size: 12px;
    font-weight: 600;
    color: #f97316;
    background: #fff7ed;
    padding: 4px 10px;
    border-radius: 12px;
}

.knowledge-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.knowledge-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.knowledge-card-btn.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.knowledge-card-btn.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.knowledge-card-btn.btn-favorite {
    background: #f3f4f6;
    color: #6b7280;
    padding: 12px 14px;
}

.knowledge-card-btn.btn-favorite:hover {
    background: #fef3c7;
    color: #f59e0b;
}

.knowledge-card-btn.btn-favorite.active {
    background: #fef3c7;
    color: #f59e0b;
}

.knowledge-card-btn.btn-favorite.active i {
    fill: currentColor;
}

[data-theme="dark"] .knowledge-card { background: #1f2937; }
[data-theme="dark"] .knowledge-card-title { color: #f3f4f6; }
[data-theme="dark"] .knowledge-card-description { color: #d1d5db; }
[data-theme="dark"] .knowledge-card-category { background: #374151; color: #e5e7eb; }
[data-theme="dark"] .knowledge-card-btn.btn-favorite { background: #374151; color: #9ca3af; }

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

@media (max-width: 640px) {
    .knowledge-grid { grid-template-columns: 1fr; }
    .knowledge-card-image { height: 180px; }
}

/* Grille Knowledge - 3 colonnes */
.knowledge-grid,
#knowledge-grid,
.knowledge-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Responsive : 2 colonnes sur tablette */
@media (max-width: 1024px) {
    .knowledge-grid,
    #knowledge-grid,
    .knowledge-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 640px) {
    .knowledge-grid,
    #knowledge-grid,
    .knowledge-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CHARTE COULEURS BRICOUP - BADGES
   ============================================ */

/* --- CARTES KNOWLEDGE : FOND BLANC (uniquement dans les grilles) --- */
.knowledge-card {
    background: transparent !important;
}

.knowledge-card > div:last-child {
    background: transparent !important;
}

.knowledge-grid .knowledge-card,
#knowledge-grid .knowledge-card,
.knowledge-cards-grid .knowledge-card {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.knowledge-grid .knowledge-card > div:last-child,
#knowledge-grid .knowledge-card > div:last-child,
.knowledge-cards-grid .knowledge-card > div:last-child {
    background-color: #ffffff !important;
}

.knowledge-grid .knowledge-card h4,
#knowledge-grid .knowledge-card h4,
.knowledge-cards-grid .knowledge-card h4 {
    color: #1f2937 !important;
    font-weight: 700;
}

/* --- BADGES DIFFICULTÉ --- */
.badge-difficulty,
.difficulty-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.badge-debutant,
.badge-beginner,
.difficulty-debutant {
    background-color: #22c55e !important;
    color: #ffffff !important;
}

.badge-intermediaire,
.badge-intermediate,
.difficulty-intermediaire {
    background-color: #f97316 !important;
    color: #ffffff !important;
}

.badge-avance,
.badge-advanced,
.difficulty-avance {
    background-color: #ef4444 !important;
    color: #ffffff !important;
}

/* --- BADGES STATUT LECTURE --- */
.badge-status,
.status-badge,
.status-pill {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}

.status-a_lire,
.badge-a-lire,
[data-state="a_lire"] {
    background-color: #111827 !important;
    color: #ffffff !important;
}

.status-en_cours,
.badge-en-cours,
[data-state="en_cours"] {
    background-color: #f59e0b !important;
    color: #ffffff !important;
}

.status-fait,
.status-termine,
.badge-termine,
[data-state="fait"] {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

/* --- BADGES CATÉGORIES --- */
.badge-category,
.category-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.category-menuiserie { background-color: #fef3c7 !important; color: #92400e !important; }
.category-plomberie { background-color: #dbeafe !important; color: #1d4ed8 !important; }
.category-electricite,
.category-électricité { background-color: #fef9c3 !important; color: #a16207 !important; }
.category-peinture { background-color: #f3e8ff !important; color: #7c3aed !important; }
.category-jardinage { background-color: #dcfce7 !important; color: #15803d !important; }
.category-decoration,
.category-décoration { background-color: #fce7f3 !important; color: #be185d !important; }
.category-maconnerie,
.category-maçonnerie { background-color: #f3f4f6 !important; color: #374151 !important; }
.category-isolation { background-color: #cffafe !important; color: #0891b2 !important; }
.category-toiture { background-color: #ffedd5 !important; color: #c2410c !important; }
.category-eclairage,
.category-éclairage { background-color: #fef3c7 !important; color: #b45309 !important; }
.category-tendances { background-color: #e0e7ff !important; color: #4338ca !important; }
.category-general,
.category-autre,
.category-default { background-color: #f3f4f6 !important; color: #1f2937 !important; }

/* --- BOUTONS ACTIONS --- */
.btn-voir,
.btn-view {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

.btn-voir:hover,
.btn-view:hover {
    background-color: #2563eb !important;
}

.btn-favori,
.btn-favorite {
    background-color: #f3f4f6 !important;
    color: #6b7280 !important;
}

.btn-favori:hover,
.btn-favorite:hover,
.btn-favori.active,
.btn-favorite.active {
    background-color: #fef3c7 !important;
    color: #f59e0b !important;
}

/* === OUTIL DU MOIS - Style identique à Knowledge === */
.tool-month-card .k-highlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tool-month-card .k-highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 999px;
    font-size: 0.75rem;
    color: #f97316;
    font-weight: 500;
}

.tool-month-card .k-highlight-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.tool-month-card .k-highlight-price {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.tool-month-card .k-highlight-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(to top, rgba(249, 115, 22, 0.05), transparent);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.tool-month-card .k-highlight-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tool-month-card .k-highlight-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.k-category-orange {
    background: rgba(249, 115, 22, 0.15) !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
    color: #f97316 !important;
}
