/**
 * CSS pour la liste des sujets d'actualité TCF
 * Reproduit exactement le design fourni
 */

/* Import des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

.tcf-before-start-container {
    display: flex;
    gap: 25px;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-bottom: 50px;
    justify-content: space-between;
}

.tg-page-area {
    /* background: #EEF2F7; */
}

.section-py-120 {
    padding-top: 50px;
}
.light__background, .light {
    /* background: var(--light-gray) !important; */
}

/* Container principal - Design simple */
.tcf-subjects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--tcf-text-primary);
}



/* En-tête */
.tcf-subjects-header {
    text-align: center;
    margin-bottom: var(--tcf-spacing-2xl);
}

.tcf-main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0 0 var(--tcf-spacing-sm) 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.tcf-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--tcf-text-secondary);
    margin: 0 0 var(--tcf-spacing-lg) 0;
}

.tcf-description {
    font-size: 1rem;
    color: var(--tcf-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Navigation des chapitres */
.tcf-chapters-nav {
    background: var(--tcf-bg-light);
    border: 1px solid var(--tcf-border-light);
    border-radius: var(--tcf-radius-lg);
    padding: var(--tcf-spacing-lg);
    margin-bottom: var(--tcf-spacing-xl);
}

.tcf-chapters-nav h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0 0 var(--tcf-spacing-md) 0;
}

.tcf-chapters-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--tcf-spacing-sm);
}

.tcf-chapter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--tcf-spacing-sm) var(--tcf-spacing-md);
    background: white;
    border: 1px solid var(--tcf-border-light);
    border-radius: var(--tcf-radius-md);
    text-decoration: none;
    color: var(--tcf-primary-blue);
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--tcf-shadow-sm);
}

.tcf-chapter-link:hover {
    background: var(--tcf-primary-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--tcf-shadow-md);
}

.tcf-lesson-count {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Titre de chapitre */
.tcf-chapter-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0 0 var(--tcf-spacing-lg) 0;
    padding-bottom: var(--tcf-spacing-sm);
    border-bottom: 2px solid var(--tcf-primary-blue);
}

/* Grille des chapitres */
.tcf-chapters-grid {
    display: grid;
    gap: var(--tcf-spacing-lg);
    margin-bottom: var(--tcf-spacing-2xl);
}

/* Grille des leçons */
.tcf-lessons-grid {
    display: grid;
    gap: var(--tcf-spacing-lg);
    margin-bottom: var(--tcf-spacing-2xl);
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* Colonnes responsive avec breakpoints automatiques */
.tcf-columns-1 {
    grid-template-columns: 1fr;
}

.tcf-columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tcf-columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tcf-columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Grilles avec largeur minimale pour éviter les cartes trop étroites */
@media (min-width: 769px) {
    .tcf-columns-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tcf-columns-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .tcf-columns-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Carte de chapitre */
.tcf-chapter-card {
    position: relative;
    background: white;
    border: 1px solid var(--tcf-border-light);
    border-radius: var(--tcf-radius-lg);
    padding: var(--tcf-spacing-xl);
    box-shadow: var(--tcf-shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--tcf-spacing-md);
}

.tcf-chapter-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tcf-shadow-lg);
}

.tcf-chapter-icon {
    color: var(--tcf-primary-blue);
    margin-bottom: var(--tcf-spacing-sm);
}

.tcf-chapter-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0;
    line-height: 1.3;
}

.tcf-chapter-lesson-count {
    color: var(--tcf-text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Breadcrumb */
.tcf-breadcrumb {
    margin-bottom: var(--tcf-spacing-md);
}

.tcf-breadcrumb a {
    color: var(--tcf-primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.tcf-breadcrumb a:hover {
    color: var(--tcf-secondary-blue);
}

/* Carte de leçon */
.tcf-lesson-card {
    position: relative;
    background: white;
    border: 1px solid var(--tcf-border-light);
    border-radius: var(--tcf-radius-lg);
    padding: var(--tcf-spacing-lg);
    box-shadow: var(--tcf-shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tcf-lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tcf-shadow-lg);
}

.tcf-lesson-card.expanded {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Badge niveau */
.tcf-level-badge {
    position: absolute;
    top: var(--tcf-spacing-md);
    right: var(--tcf-spacing-md);
    background: var(--tcf-primary-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--tcf-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Icône de localisation */
.tcf-location-icon {
    color: var(--tcf-primary-blue);
    margin-bottom: var(--tcf-spacing-sm);
}

.tcf-location-icon svg {
    width: 20px;
    height: 20px;
}

/* Titre et catégorie de la carte */
.tcf-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tcf-primary-blue);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.tcf-card-category {
    font-size: 0.875rem;
    color: var(--tcf-text-secondary);
    margin: 0 0 var(--tcf-spacing-md) 0;
    font-weight: 500;
}

/* Aperçu des tâches */
.tcf-tasks-preview {
    margin-bottom: var(--tcf-spacing-lg);
}

.tcf-task-preview {
    margin-bottom: var(--tcf-spacing-sm);
    font-size: 0.875rem;
    line-height: 1.5;
}

.tcf-task-preview strong {
    color: var(--tcf-text-primary);
    font-weight: 600;
}

.tcf-task-text {
    color: var(--tcf-text-secondary);
    display: block;
    margin-top: 0.25rem;
}

/* Contenu détaillé */
.tcf-tasks-detail {
    margin-top: var(--tcf-spacing-lg);
    padding-top: var(--tcf-spacing-lg);
    border-top: 1px solid var(--tcf-border-light);
    animation: slideDown 0.3s ease-out;
}

.tcf-task-detail {
    margin-bottom: var(--tcf-spacing-lg);
}

.tcf-task-detail h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0 0 var(--tcf-spacing-sm) 0;
}

.tcf-task-full-text {
    font-size: 0.875rem;
    color: var(--tcf-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--tcf-spacing-sm);
}

/* Documents */
.tcf-documents {
    background: var(--tcf-bg-light);
    border: 1px solid var(--tcf-border-light);
    border-radius: var(--tcf-radius-md);
    padding: var(--tcf-spacing-md);
    margin-top: var(--tcf-spacing-sm);
}

.tcf-doc-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0 0 var(--tcf-spacing-sm) 0;
}

.tcf-document-item,
.tcf-document-content {
    font-size: 0.8rem;
    color: var(--tcf-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--tcf-spacing-xs);
}

.tcf-document-item:last-child {
    margin-bottom: 0;
}

/* Icône conversation interactive */
.tcf-interactive-icon {
    display: flex;
    align-items: center;
    gap: var(--tcf-spacing-xs);
    color: var(--tcf-text-muted);
    font-size: 0.75rem;
    margin-bottom: var(--tcf-spacing-lg);
}

.tcf-interactive-icon svg {
    width: 16px;
    height: 16px;
}

/* Actions de la carte */
.tcf-card-actions {
    display: flex;
    flex-direction: column;
    gap: var(--tcf-spacing-sm);
}

/* Boutons */
.tcf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--tcf-radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1;
}

.tcf-btn-primary {
    background: var(--tcf-primary-green);
    color: white;
}

.tcf-btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--tcf-shadow-md);
}

.tcf-btn-secondary {
    background: var(--tcf-primary-blue);
    color: white;
}

.tcf-btn-secondary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: var(--tcf-shadow-md);
}

.tcf-btn-details {
    background: white;
    color: var(--tcf-text-primary);
    border: 1px solid var(--tcf-border-light);
}

.tcf-btn-details:hover {
    background: var(--tcf-bg-light);
    border-color: var(--tcf-text-secondary);
}

/* Cartes de liens de leçons - Design simple et élégant */
.tcf-lessons-links {
    /* display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    margin-bottom: 40px; */

    display: flex;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0 auto;
    width: 100% !important;
    max-width: 100%;
    /* border: 1px solid red; */
}

/* Assurer l'enroulement responsive des cartes sans changer le design */
.tcf-lessons-links .tcf-lesson-link-card {
    flex: 1 1 370px;
}

.tcf-lesson-link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 72px;
    /* proportion carte comme la capture */
}

/* .tcf-lesson-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3B82F6; 
    transition: all 0.3s ease;
} */

.tcf-lesson-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #e0e7ff;
}

.tcf-lesson-link-card:hover::before {
    background: #3B82F6;
}

.tcf-lesson-icon {
    flex-shrink: 0;
    color: #3B82F6;
    /* Icône bleue */
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EFF6FF;
    /* Fond de l'icône exact */
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tcf-lesson-link-card:hover .tcf-lesson-icon {
    color: #3B82F6;
    background: #EFF6FF;
}

.tcf-lesson-info {
    flex-grow: 1;
}

.tcf-lesson-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #21303C;
    /* Couleur exacte du titre */
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.tcf-lesson-excerpt {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.tcf-lesson-tasks-count {
    color: #A5A7B9;
    /* Couleur exacte du sous-titre */
    font-size: 0.8rem;
    font-weight: 500;
}

.tcf-lesson-action {
    flex-shrink: 0;
}

.tcf-lesson-action .tcf-btn {
    padding: 10px 38px 10px 16px;
    /* espace pour l'icône chevron */
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    position: relative;
}

.tcf-lesson-action .tcf-btn-primary {
    /* background: #3b82f6; */
    background: #1363DF;
    color: white;
}

.tcf-lesson-action .tcf-btn-primary:hover {
    background: #2563eb;
}

/* Chevron décoratif à droite du bouton, sans modifier les couleurs existantes */
.tcf-lesson-action .tcf-btn-primary::after {
    /* content: '\203A'; 
    position: absolute;
    right: 10px;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255,255,255,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700; */
}

.tcf-lesson-action .tcf-btn-primary:hover::after {
    background: rgba(255, 255, 255, 0.35);
}

/* Cartes de topics/chapitres - Design simple et sobre */
.tcf-lesson-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
    overflow: hidden;
}

.tcf-lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #e0e7ff;
}

/* Badge niveau - Position absolue en haut à droite */
.tcf-lesson-card .tcf-level-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #64748b;
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Icône de localisation */
.tcf-lesson-card .tcf-location-icon {
    color: #64748b;
    margin-bottom: 8px;
}

/* Titre de la carte */
.tcf-lesson-card .tcf-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

/* Catégorie */
.tcf-lesson-card .tcf-card-category {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Contenu détaillé des tâches */
.tcf-task-content {
    flex-grow: 1;
    margin-bottom: 16px;
}

.tcf-task-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0 0 var(--tcf-spacing-sm) 0;
}

.tcf-task-text {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Aperçu des tâches */
.tcf-tasks-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
}

.tcf-task-preview {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.tcf-task-preview:last-child {
    margin-bottom: 0;
}

.tcf-task-preview strong {
    color: #334155;
    font-weight: 600;
}

.tcf-task-preview .tcf-task-text {
    color: #64748b;
    margin: 0;
    font-size: 0.85rem;
}

.tcf-task-documents {
    background: var(--tcf-bg-light);
    border: 1px solid var(--tcf-border-light);
    border-radius: var(--tcf-radius-md);
    padding: var(--tcf-spacing-md);
    margin-top: var(--tcf-spacing-sm);
}

.tcf-task-documents .tcf-doc-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0 0 var(--tcf-spacing-sm) 0;
}

.tcf-task-documents .tcf-document-item,
.tcf-task-documents .tcf-document-content {
    font-size: 0.8rem;
    color: var(--tcf-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--tcf-spacing-xs);
}

.tcf-task-documents .tcf-document-item:last-child {
    margin-bottom: 0;
}

/* Icône conversation interactive */
.tcf-lesson-card .tcf-interactive-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 16px;
}

/* Boutons d'action - Design simple et sobre */
.tcf-lesson-card .tcf-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.tcf-lesson-card .tcf-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tcf-lesson-card .tcf-btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.tcf-lesson-card .tcf-btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.tcf-lesson-card .tcf-btn-secondary {
    background: #64748b;
    color: white;
    border-color: #64748b;
}

.tcf-lesson-card .tcf-btn-secondary:hover {
    background: #475569;
    border-color: #475569;
    transform: translateY(-1px);
}

.tcf-lesson-card .tcf-btn-details {
    background: transparent;
    color: #64748b;
    border-color: #e2e8f0;
}

.tcf-lesson-card .tcf-btn-details:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

/* Responsive design pour les cartes de topics */
/* @media (max-width: 768px) {
    .tcf-before-start-container {
        flex-wrap: wrap;
        padding: 0 !important;

    }

    .tcf-lesson-card {
        padding: 20px;
        min-height: 280px;
        gap: 14px;
    }

    .tcf-lesson-card .tcf-card-title {
        font-size: 1.125rem;
    }

    .tcf-lesson-card .tcf-level-badge {
        top: 12px;
        right: 12px;
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .tcf-lesson-card .tcf-btn-primary {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
} */

/* Messages d'erreur */
.tcf-error {
    background: #fee2e2;
    color: #dc2626;
    padding: var(--tcf-spacing-md);
    border: 1px solid #fecaca;
    border-radius: var(--tcf-radius-md);
    font-weight: 500;
    text-align: center;
}

.tcf-error details {
    margin-top: var(--tcf-spacing-md);
    text-align: left;
}

.tcf-error summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: var(--tcf-spacing-sm);
}

/* ========================================
   STYLES FORCÉS POUR ASSURER L'APPLICATION
   ======================================== */

/* Forcer les styles des cartes de liens de leçons - Style de la capture */
body .tcf-lesson-link-card {
    /* background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    position: relative !important;
    overflow: hidden !important; */

    background: #ffffff !important;
    /* border: 1px solid #e5e7eb !important; */
    border-radius: 10px !important;
    /* padding: 16px 20px !important; */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 24px;
    border: 1px solid #E8E8E8;
    max-width: 450px;
}

/* body .tcf-lesson-link-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 4px !important;
    height: 100% !important;
    background: #3b82f6 !important;
    border-radius: 4px 0 0 4px !important;
} */

body .tcf-lesson-link-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

body .tcf-lesson-icon {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    background: #EFF6FF !important;
    /* Fond exact */
    border-radius: 6px !important;
    color: #3B82F6 !important;
    /* Icône bleue */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 8px !important;
}

body .tcf-lesson-icon svg {
    width: 20px !important;
    height: 20px !important;
    color: #2563EB;
}

body .tcf-lesson-info {
    flex-grow: 1 !important;
}

body .tcf-lesson-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #21303C !important;
    /* Couleur exacte du titre */
    margin: 0 0 4px 0 !important;
    line-height: 1.4 !important;
}

body .tcf-lesson-excerpt {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    margin: 0 0 6px 0 !important;
    display: none !important;
}

body .tcf-lesson-tasks-count {
    color: #A5A7B9 !important;
    /* Couleur exacte du sous-titre */
    font-size: 0.9rem !important;
    font-weight: 400 !important;
}

body .tcf-lesson-action {
    flex-shrink: 0 !important;
}

/* Bouton d'action style capture - Desktop */
body .tcf-lesson-action .tcf-btn {
    /* background: #3b82f6 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 70px !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important; */

    background: #2563EB !important;
    color: white !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 10px 20px !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 70px !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

body .tcf-lesson-action .tcf-btn:hover {
    background: #2563eb !important;
}

/* Forcer les styles des cartes de topics */
body .tcf-lesson-card {
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    min-height: 300px !important;
    overflow: hidden !important;
}

body .tcf-lesson-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    border-color: #e0e7ff !important;
}

body .tcf-lesson-card .tcf-card-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.4 !important;
}

body .tcf-lesson-card .tcf-card-category {
    color: #64748b !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    margin: 0 0 16px 0 !important;
}

body .tcf-lesson-card .tcf-level-badge {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    background: #64748b !important;
    color: white !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

body .tcf-lesson-card .tcf-location-icon {
    color: #64748b !important;
    margin-bottom: 8px !important;
}

body .tcf-lesson-card .tcf-interactive-icon {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-bottom: 16px !important;
}

body .tcf-lesson-card .tcf-card-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: auto !important;
    padding-top: 12px !important;
}

/* Forcer les styles des boutons */
body .tcf-btn {
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

body .tcf-btn-primary {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
}

body .tcf-btn-primary:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    transform: translateY(-1px) !important;
}

body .tcf-btn-secondary {
    background: #64748b !important;
    color: white !important;
    border-color: #64748b !important;
}

body .tcf-btn-secondary:hover {
    background: #475569 !important;
    border-color: #475569 !important;
    transform: translateY(-1px) !important;
}

body .tcf-btn-details {
    background: transparent !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}

body .tcf-btn-details:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

/* Forcer les styles de l'aperçu des tâches */
body .tcf-tasks-preview {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 14px !important;
    margin-top: 12px !important;
}

body .tcf-task-preview {
    margin-bottom: 10px !important;
    font-size: 0.85rem !important;
}

body .tcf-task-preview:last-child {
    margin-bottom: 0 !important;
}

body .tcf-task-preview strong {
    color: #334155 !important;
    font-weight: 600 !important;
}

body .tcf-task-preview .tcf-task-text {
    color: #64748b !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
}

/* Forcer les styles du contenu principal */
body .tcf-task-content {
    flex-grow: 1 !important;
    margin-bottom: 16px !important;
}

body .tcf-task-text {
    color: #64748b !important;
    line-height: 1.6 !important;
    font-size: 0.9rem !important;
    margin-bottom: 12px !important;
}

.tcfee-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.tcf-subjects-container {
    flex-wrap: wrap;
    /* background-color: #EEF2F7 !important; */
}


/* ========================================
   RESPONSIVE DESIGN AMÉLIORÉ
   ======================================== */

/* Tablettes et petits ordinateurs portables */
@media (max-width: 1024px) {
    body .tcf-subjects-container {
        padding: 24px 16px !important;
    }

    /* Mieux répartir les cartes en 2 colonnes fluides sur tablette */
    body .tcf-lessons-links .tcf-lesson-link-card {
        flex: 1 1 320px !important;
    }

    body .tcf-lessons-links.tcf-columns-3,
    body .tcf-lessons-grid.tcf-columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    body .tcf-lessons-links.tcf-columns-4,
    body .tcf-lessons-grid.tcf-columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Tablettes en mode portrait */
@media (max-width: 768px) {
    .mci-series-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 2fr)) !important;
        justify-content: center !important;
    }
    .tcf-cta-description, .tcf-before-start-description {
        font-size: 1.15rem !important;
    }
    body .tcf-subjects-container {
        padding: 20px 12px !important;
    }

    /* Forcer toutes les grilles en 1 colonne */
    body .tcf-lessons-links,
    body .tcf-lessons-grid,
    body .tcf-chapters-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Cartes de liens de leçons en mobile - style de la capture */
    body .tcf-lessons-links .tcf-lesson-link-card {
        flex: 1 1 100% !important;
    }
    .wrapper__lessons_grid {
        /* padding: 2rem 1.5rem !important; */
        padding: 2rem .75rem !important;
        box-shadow: unset !important;
    }
    body .tcf-main-title {
        font-size: 1.5rem !important;
    }

    body .tcf-lesson-link-card {
        flex-direction: row !important;
        text-align: left !important;
        gap: 12px !important;
        padding: 16px 16px 16px 20px !important;
        align-items: center !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;

    }

    /* body .tcf-lesson-link-card::before {
        width: 4px !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        background: #3b82f6 !important;
        border-radius: 4px 0 0 4px !important;
    } */

    /* Icône plus compacte sur mobile - style de la capture */
    body .tcf-lesson-icon {
        width: 36px !important;
        height: 36px !important;
        background: #EFF6FF !important;
        /* Fond exact mobile */
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    body .tcf-lesson-icon svg {
        width: 18px !important;
        height: 18px !important;
        color: #2563EB !important;
    }

    /* Typographie mobile - style de la capture */
    body .tcf-lesson-title {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        margin-bottom: 2px !important;
    }

    body .tcf-lesson-excerpt {
        font-size: 0.8rem !important;
        color: #64748b !important;
        line-height: 1.4 !important;
        margin-bottom: 4px !important;
    }

    body .tcf-lesson-tasks-count {
        font-size: 0.75rem !important;
        color: #3b82f6 !important;
        font-weight: 500 !important;
    }

    /* Bouton "Ouvrir" style de la capture - mobile */
    body .tcf-lesson-action .tcf-btn {
        /* background: #3b82f6 !important; */
        color: white !important;
        border: none !important;
        border-radius: 6px !important;
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
        font-weight: 400 !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 60px !important;
        flex-shrink: 0 !important;
    }

    body .tcf-lesson-action .tcf-btn:hover {
        background: #2563eb !important;
    }

    /* Cartes de topics en mobile */
    body .tcf-lesson-card {
        padding: 18px !important;
        min-height: 260px !important;
        gap: 12px !important;
    }

    body .tcf-lesson-card .tcf-card-title {
        font-size: 1rem !important;
    }

    body .tcf-lesson-card .tcf-card-category {
        font-size: 0.75rem !important;
        margin-bottom: 12px !important;
    }

    body .tcf-lesson-card .tcf-level-badge {
        top: 12px !important;
        right: 12px !important;
        font-size: 0.65rem !important;
        padding: 3px 8px !important;
    }

    body .tcf-lesson-card .tcf-interactive-icon {
        font-size: 0.75rem !important;
        margin-bottom: 12px !important;
    }

    body .tcf-task-text {
        font-size: 0.85rem !important;
    }

    body .tcf-tasks-preview {
        padding: 12px !important;
        margin-top: 10px !important;
    }

    body .tcf-task-preview {
        font-size: 0.8rem !important;
        margin-bottom: 8px !important;
    }

    /* Boutons en mobile */
    body .tcf-btn {
        padding: 10px 14px !important;
        font-size: 0.8rem !important;
    }

    body .tcf-lesson-card .tcf-card-actions {
        gap: 8px !important;
        padding-top: 8px !important;
    }
}

/* Smartphones en mode portrait */
@media (max-width: 480px) {
    body .tcf-subjects-container {
        padding: 16px 8px !important;
    }

    /* En-têtes plus compacts */
    body .tcf-main-title {
        /* font-size: 1.3rem !important; */
        line-height: 1.8rem !important;
    }

    body .tcf-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
    }

    body .tcf-description {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    /* Cartes encore plus compactes mais toujours horizontales - style capture */
    body .tcf-lesson-link-card {
        padding: 14px 14px 14px 18px !important;
        gap: 10px !important;
        flex-direction: row !important;
        align-items: center !important;
        background: #ffffff !important;
        border-radius: 6px !important;
    }

    /* body .tcf-lesson-link-card::before {
        background: #3b82f6 !important;
        border-radius: 3px 0 0 3px !important;
    } */

    body .tcf-lesson-card {
        padding: 16px !important;
        min-height: 240px !important;
        gap: 10px !important;
    }

    body .tcf-lesson-card .tcf-card-title {
        font-size: 0.95rem !important;
    }

    body .tcf-lesson-title {
        font-size: 0.95rem !important;
    }

    body .tcf-lesson-excerpt {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    body .tcf-lesson-tasks-count {
        font-size: 0.75rem !important;
    }

    /* Boutons plus petits */
    body .tcf-btn {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }

    /* Breadcrumb plus compact */
    body .tcf-breadcrumb {
        margin-bottom: 12px !important;
    }

    body .tcf-breadcrumb a {
        font-size: 0.8rem !important;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    body .tcf-subjects-container {
        padding: 12px 6px !important;
    }

    body .tcf-lesson-link-card {
        padding: 12px 12px 12px 16px !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        background: #f8fafc !important;
        border-radius: 6px !important;
    }

    /* body .tcf-lesson-link-card::before {
        background: #3b82f6 !important;
        border-radius: 3px 0 0 3px !important;
    } */

    body .tcf-lesson-card {
        padding: 12px !important;
    }

    body .tcf-main-title {
        font-size: 1.3rem !important;
    }

    body .tcf-lesson-card .tcf-card-title,
    body .tcf-lesson-title {
        font-size: 0.9rem !important;
    }

    body .tcf-btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }
}

/* Mode paysage sur mobile */
/* @media (max-width: 768px) and (orientation: landscape) {

    body .tcf-lessons-links.tcf-columns-2,
    body .tcf-lessons-grid.tcf-columns-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    body .tcf-lesson-link-card {
        flex-direction: row !important;
        text-align: left !important;
        padding: 16px 16px 16px 20px !important;
        background: #f8fafc !important;
        border-radius: 8px !important;
    }
} */

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandCard {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.02);
    }
}

.tcf-lesson-card.expanding {
    animation: expandCard 0.3s ease-out forwards;
}

/* Responsive Design */
/* @media (max-width: 768px) {
    .tcf-subjects-container {
        padding: var(--tcf-spacing-md);
    }

    .tcf-main-title {
        font-size: 2rem;
    }

    .tcf-lessons-grid {
        grid-template-columns: 1fr !important;
    }

    .tcf-lesson-card {
        padding: var(--tcf-spacing-md);
    }

    .tcf-chapters-nav {
        padding: var(--tcf-spacing-md);
    }

    .tcf-chapter-link {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--tcf-spacing-xs);
    }

    .tcf-card-actions {
        flex-direction: column;
    }
} */

@media (max-width: 640px) {
    .tcf-main-title {
        font-size: 1.75rem;
    }

    .tcf-lesson-card.expanded {
        transform: none;
        position: fixed;
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
        z-index: 1000;
        overflow-y: auto;
        max-height: calc(100vh - 40px);
    }

    .tcf-lesson-card.expanded::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* Améliorations pour l'accessibilité */
.tcf-btn:focus,
.tcf-chapter-link:focus {
    outline: 2px solid var(--tcf-primary-blue);
    outline-offset: 2px;
}

.tcf-lesson-card:focus-within {
    outline: 2px solid var(--tcf-primary-blue);
    outline-offset: 2px;
}

/* États de chargement */
.tcf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--tcf-spacing-2xl);
    color: var(--tcf-text-secondary);
}

.tcf-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--tcf-border-light);
    border-top-color: var(--tcf-primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: var(--tcf-spacing-sm);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================
   NOUVELLE INTERFACE LESSON DETAILS
   ================================ */

/* Layout avec sidebar */
.tcf-lesson-content-wrapper {
    gap: var(--tcf-spacing-lg);
    align-items: start;
}

/* Sidebar navigation */
.tcf-topics-sidebar {
    position: sticky;
    top: 20px;
    background: white;
    border: 1px solid var(--tcf-border-light);
    border-radius: var(--tcf-radius-lg);
    box-shadow: var(--tcf-shadow-sm);
    overflow: hidden;
}

.tcf-sidebar-navigation {
    padding: 0;
}

.tcf-sidebar-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--tcf-text-primary);
    padding: var(--tcf-spacing-md);
    text-align: center;
    border-bottom: 1px solid var(--tcf-border-light);
}

.tcf-sidebar-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--tcf-spacing-xs) 0;
}

.tcf-progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.tcf-current-number {
    font-weight: 700;
    background: var(--tcf-primary-blue);
    color: white;
    padding: 2px 8px;
    border-radius: var(--tcf-radius-sm);
}

.tcf-separator {
    font-weight: 300;
}

.tcf-total-number {
    font-weight: 500;
}

/* Liste des topics dans la sidebar */
.tcf-sidebar-topics-list {
    padding: 0;
    margin: 0;
}

.tcf-sidebar-topic-item {
    border-bottom: 1px solid var(--tcf-border-light);
    transition: all 0.3s ease;
}

.tcf-sidebar-topic-item:last-child {
    border-bottom: none;
}

.tcf-sidebar-topic-item:hover {
    background: #f8fafc;
}

.tcf-sidebar-topic-item.active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--tcf-primary-blue);
}

.tcf-sidebar-topic-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tcf-sidebar-topic-content {
    padding: var(--tcf-spacing-sm);
}

.tcf-sidebar-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--tcf-spacing-xs);
}

.tcf-sidebar-topic-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tcf-primary-blue);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tcf-sidebar-topic-item.active .tcf-sidebar-topic-number {
    color: var(--tcf-primary-green);
}

.tcf-current-icon {
    font-size: 0.8rem;
    color: var(--tcf-primary-green);
}

.tcf-sidebar-task-count {
    font-size: 0.8rem;
    color: var(--tcf-text-secondary);
    background: var(--tcf-bg-light);
    padding: 2px 6px;
    border-radius: var(--tcf-radius-sm);
}

.tcf-sidebar-topic-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--tcf-text-primary);
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tcf-sidebar-topic-item.active .tcf-sidebar-topic-title {
    font-weight: 600;
}

/* Contenu principal */
.tcf-main-content {
    min-width: 0;
    /* Pour éviter l'overflow sur les longs textes */
}

/* Container principal pour les détails de leçon */
.tcf-lesson-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* background: #fefefe; */
    line-height: 1.6;
    color: var(--tcf-text-primary);
}

/* En-tête de la leçon */
.tcf-lesson-header {
    text-align: center;
    margin-bottom: var(--tcf-spacing-2xl);
}

.tcf-lesson-header .tcf-breadcrumb {
    margin-bottom: var(--tcf-spacing-md);
}

.tcf-lesson-header .tcf-breadcrumb a {
    color: var(--tcf-primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.tcf-lesson-header .tcf-breadcrumb a:hover {
    color: var(--tcf-secondary-blue);
}

/* Navigation des topics */
.tcf-topics-navigation {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid var(--tcf-border-light);
    border-radius: var(--tcf-radius-lg);
    padding: var(--tcf-spacing-lg);
    margin-bottom: var(--tcf-spacing-xl);
    box-shadow: var(--tcf-shadow-sm);
}

.tcf-navigation-top {
    margin-bottom: var(--tcf-spacing-2xl);
}

.tcf-navigation-bottom {
    margin-top: var(--tcf-spacing-2xl);
}

.tcf-navigation-header {
    text-align: center;
    margin-bottom: var(--tcf-spacing-lg);
}

.tcf-navigation-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0 0 var(--tcf-spacing-xs) 0;
}

.tcf-navigation-description {
    color: var(--tcf-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Grille des topics dans la navigation */
.tcf-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--tcf-spacing-sm);
    margin-top: var(--tcf-spacing-lg);
}

.tcf-topic-nav-item {
    background: white;
    border: 1px solid var(--tcf-border-light);
    border-radius: var(--tcf-radius-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 80px;
}

.tcf-topic-nav-item:hover {
    border-color: var(--tcf-primary-blue);
    box-shadow: var(--tcf-shadow-sm);
    transform: translateY(-1px);
}

.tcf-topic-nav-item.active {
    border-color: var(--tcf-primary-blue);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: var(--tcf-shadow-sm);
}

.tcf-topic-nav-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.tcf-topic-nav-content {
    padding: var(--tcf-spacing-sm) var(--tcf-spacing-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tcf-topic-number {
    display: inline-block;
    background: var(--tcf-primary-blue);
    color: white;
    padding: 6px 12px;
    border-radius: var(--tcf-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 70px;
    text-align: center;
}

.tcf-topic-nav-item.active .tcf-topic-number {
    background: var(--tcf-primary-green);
}

.tcf-topic-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0;
    line-height: 1.3;
    flex: 1;
    padding: 0 var(--tcf-spacing-md);
}

.tcf-topic-info {
    display: flex;
    align-items: center;
    gap: var(--tcf-spacing-xs);
    font-size: 0.8rem;
    flex-direction: column;
    text-align: right;
}

.tcf-task-count {
    color: var(--tcf-text-secondary);
}

.tcf-current-indicator {
    background: var(--tcf-primary-green);
    color: white;
    padding: 2px 6px;
    border-radius: var(--tcf-radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Contenu complet du topic */
.tcf-current-topic-content {
    margin: var(--tcf-spacing-2xl) 0;
}

.tcf-topic-full {
    background: white;
    border: 1px solid var(--tcf-border-light);
    border-radius: var(--tcf-radius-lg);
    box-shadow: var(--tcf-shadow-lg);
    overflow: hidden;
}

.tcf-topic-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--tcf-text-primary);
    padding: var(--tcf-spacing-xl);
    text-align: center;
    border-bottom: 1px solid var(--tcf-border-light);
}

.tcf-topic-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 var(--tcf-spacing-md) 0;
    line-height: 1.3;
}

.tcf-topic-meta {
    display: flex;
    justify-content: center;
    gap: var(--tcf-spacing-lg);
    font-size: 0.95rem;
    opacity: 0.9;
}

.tcf-topic-meta span {
    display: flex;
    align-items: center;
    gap: var(--tcf-spacing-xs);
    color: var(--tcf-text-secondary);
}

/* Description du topic */
.tcf-topic-description {
    padding: var(--tcf-spacing-xl);
    background: #f8fafc;
    border-bottom: 1px solid var(--tcf-border-light);
}

.tcf-topic-description p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--tcf-text-secondary);
    margin: 0;
}

/* Contenu des tâches complet */
.tcf-tasks-full-content {
    padding: var(--tcf-spacing-xl);
}

.tcf-task-full-item {
    background: #fafbfc;
    border: 1px solid var(--tcf-border-light);
    border-radius: var(--tcf-radius-md);
    margin-bottom: var(--tcf-spacing-xl);
    overflow: hidden;
}

.tcf-task-full-item:last-child {
    margin-bottom: 0;
}

.tcf-task-header {
    background: white;
    padding: var(--tcf-spacing-lg);
    border-bottom: 1px solid var(--tcf-border-light);
}

.tcf-task-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0 0 var(--tcf-spacing-sm) 0;
    line-height: 1.4;
}

.tcf-task-number {
    color: var(--tcf-primary-blue);
    font-weight: 700;
}

.tcf-task-meta {
    display: flex;
    gap: var(--tcf-spacing-lg);
    font-size: 0.9rem;
}

.tcf-word-count {
    background: var(--tcf-primary-green);
    color: white;
    padding: 4px 12px;
    border-radius: var(--tcf-radius-sm);
    font-weight: 600;
}

.tcf-task-type {
    background: var(--tcf-bg-light);
    color: var(--tcf-text-secondary);
    padding: 4px 12px;
    border-radius: var(--tcf-radius-sm);
    font-weight: 500;
}

/* Contenu de la tâche */
.tcf-task-content-full {
    padding: var(--tcf-spacing-lg);
}

.tcf-task-description {
    margin-bottom: var(--tcf-spacing-lg);
}

.tcf-task-description p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--tcf-text-primary);
    margin: 0;
    padding: var(--tcf-spacing-md);
    background: white;
    border-left: 4px solid var(--tcf-primary-blue);
    border-radius: 0 var(--tcf-radius-sm) var(--tcf-radius-sm) 0;
}

/* Documents de la tâche */
.tcf-task-documents {
    background: white;
    border: 1px solid var(--tcf-border-light);
    border-radius: var(--tcf-radius-md);
    padding: var(--tcf-spacing-lg);
}

.tcf-documents-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0 0 var(--tcf-spacing-lg) 0;
    padding-bottom: var(--tcf-spacing-sm);
    border-bottom: 2px solid var(--tcf-border-light);
}

.tcf-document-item {
    background: #f8fafc;
    border: 1px solid var(--tcf-border-light);
    border-radius: var(--tcf-radius-sm);
    padding: var(--tcf-spacing-md);
    margin-bottom: var(--tcf-spacing-md);
}

.tcf-document-item:last-child {
    margin-bottom: 0;
}

.tcf-document-item h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tcf-primary-blue);
    margin: 0 0 var(--tcf-spacing-sm) 0;
}

.tcf-document-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--tcf-text-primary);
}

/* Actions du topic */
.tcf-topic-actions {
    padding: var(--tcf-spacing-xl);
    background: #f8fafc;
    border-top: 1px solid var(--tcf-border-light);
    display: flex;
    justify-content: center;
    gap: var(--tcf-spacing-lg);
    flex-wrap: wrap;
}

.tcf-btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--tcf-radius-md);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--tcf-spacing-sm);
    min-width: 200px;
    justify-content: center;
}

.tcf-btn-start {
    background: linear-gradient(135deg, var(--tcf-primary-blue) 0%, var(--tcf-secondary-blue) 100%);
    color: white;
    border: none;
    box-shadow: var(--tcf-shadow-md);
}

.tcf-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: var(--tcf-shadow-lg);
}

.tcf-btn-outline {
    background: white;
    color: var(--tcf-primary-blue);
    border: 2px solid var(--tcf-primary-blue);
}

.tcf-btn-outline:hover {
    background: var(--tcf-primary-blue);
    color: white;
    transform: translateY(-1px);
}

.tcf-btn-icon {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .tcf-lesson-content-wrapper {
        grid-template-columns: 1fr 200px;
        gap: var(--tcf-spacing-md);
    }
}

@media (max-width: 1024px) {
    .tcf-lesson-content-wrapper {
        grid-template-columns: 1fr 180px;
        gap: var(--tcf-spacing-md);
    }

    .tcf-topics-sidebar {
        top: 10px;
    }

    .tcf-sidebar-header {
        padding: var(--tcf-spacing-sm);
    }

    .tcf-sidebar-header h3 {
        font-size: 0.9rem;
    }

    .tcf-progress-indicator {
        font-size: 0.8rem;
    }

    .tcf-sidebar-topic-title {
        font-size: 0.75rem;
    }
}

/* @media (max-width: 768px) {
    .tcf-lesson-details-container {
        padding: 20px 15px;
    }

    .tcf-lesson-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--tcf-spacing-md);
    }

    .tcf-topics-sidebar {
        position: relative;
        top: 0;
        order: 2;
        margin-top: var(--tcf-spacing-lg);
    }

    .tcf-main-content {
        order: 1;
    }

    .tcf-sidebar-header {
        padding: var(--tcf-spacing-md);
    }

    .tcf-sidebar-header h3 {
        font-size: 1rem;
    }

    .tcf-sidebar-topic-content {
        padding: var(--tcf-spacing-sm);
    }

    .tcf-sidebar-topic-title {
        font-size: 0.85rem;
    }

    .tcf-topics-grid {
        grid-template-columns: 1fr;
        gap: var(--tcf-spacing-xs);
    }

    .tcf-topic-nav-item {
        height: 70px;
    }

    .tcf-topic-nav-content {
        padding: var(--tcf-spacing-xs) var(--tcf-spacing-sm);
    }

    .tcf-topic-nav-title {
        font-size: 0.9rem;
        padding: 0 var(--tcf-spacing-sm);
    }

    .tcf-topic-number {
        min-width: 60px;
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .tcf-topic-info {
        font-size: 0.75rem;
    }

    .tcf-topic-title {
        font-size: 1.6rem;
    }

    .tcf-topic-meta {
        flex-direction: column;
        gap: var(--tcf-spacing-sm);
    }

    .tcf-topic-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tcf-btn-large {
        min-width: auto;
    }

    .tcf-task-meta {
        flex-direction: column;
        gap: var(--tcf-spacing-sm);
    }
} */

@media (max-width: 480px) {
    .tcf-lesson-content-wrapper {
        gap: var(--tcf-spacing-sm);
    }

    .tcf-sidebar-header h3 {
        font-size: 0.9rem;
    }

    .tcf-progress-indicator {
        font-size: 0.8rem;
    }

    .tcf-sidebar-topic-content {
        padding: 6px;
    }

    .tcf-sidebar-topic-title {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }

    .tcf-sidebar-topic-number {
        font-size: 0.75rem;
    }

    .tcf-sidebar-task-count {
        font-size: 0.7rem;
        padding: 1px 4px;
    }
}

/* ========================================
   NOUVEAU DESIGN MODERNE - SUJETS TENDANCES
   ======================================== */

/* Container principal moderne */
.tcf-subjects-container {
    font-family: 'Inter', sans-serif;
    /* background: var(--tcf-modern-bg); */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
}

/* Container blanc principal */
.tcf-subjects-container>div {
    background: var(--tcf-modern-white);
    padding: 3rem;
    border-radius: var(--tcf-modern-radius-2xl);
    box-shadow: var(--tcf-modern-shadow-lg);
    width: 100%;
    max-width: 80rem;
}

/* En-tête moderne */
.tcf-subjects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tcf-main-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--tcf-modern-gray-800);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.tcf-description {
    color: var(--tcf-modern-gray-500);
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

.tcf-description .font-semibold {
    font-weight: 600;
}

/* Grille des leçons moderne */
.tcf-lessons-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

/* Responsive grid */
@media (min-width: 640px) {
    .tcf-lessons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tcf-lessons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cartes de leçons modernes */
.tcf-lesson-card-modern {
    border: 1px solid transparent;
    background-image: linear-gradient(var(--tcf-modern-white), var(--tcf-modern-white)),
        linear-gradient(to right, var(--tcf-modern-bg), #e5e7eb);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: var(--tcf-modern-radius-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.tcf-lesson-card-modern:hover {
    box-shadow: var(--tcf-modern-shadow-xl);
}

/* En-tête de la carte */
.tcf-lesson-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

/* Icône moderne */
.tcf-lesson-icon-modern {
    background: var(--tcf-modern-blue-100);
    padding: 0.75rem;
    border-radius: var(--tcf-modern-radius-lg);
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tcf-lesson-icon-modern .lucide-icon {
    color: var(--tcf-modern-blue-500);
    width: 1.25rem;
    height: 1.25rem;
}

/* Informations de la leçon */
.tcf-lesson-info-modern {
    flex: 1;
}

.tcf-lesson-title-modern {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tcf-modern-gray-800);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.tcf-lesson-count-modern {
    color: var(--tcf-modern-gray-500);
    font-size: 0.875rem;
    margin: 0;
}

/* Bouton moderne */
.tcf-btn-modern {
    width: 100%;
    background: linear-gradient(135deg, #1363DF 0%, #1e40af 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.tcf-btn-modern:hover {
    box-shadow: var(--tcf-modern-shadow-lg);
    transform: translateY(-1px);
}

.tcf-btn-modern .lucide-icon {
    margin-left: 0.5rem;
    width: 1.125rem;
    height: 1.125rem;
}

/* Carte des archives */
.tcf-archives-card {
    background: #f9fafb;
    border: 2px dashed var(--tcf-modern-gray-300);
    border-radius: var(--tcf-modern-radius-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tcf-archives-card:hover {
    background: #f3f4f6;
    border-color: var(--tcf-modern-blue-500);
}

.tcf-archives-card:hover .tcf-archives-icon {
    background: var(--tcf-modern-blue-100);
}

.tcf-archives-card:hover .tcf-archives-icon .lucide-icon {
    color: var(--tcf-modern-blue-500);
}

.tcf-archives-card:hover .tcf-archives-text {
    color: var(--tcf-modern-blue-600);
}

/* Icône des archives */
.tcf-archives-icon {
    background: #e5e7eb;
    padding: 1rem;
    border-radius: var(--tcf-modern-radius-lg);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.tcf-archives-icon .lucide-icon {
    color: var(--tcf-modern-gray-500);
    width: 1.875rem;
    height: 1.875rem;
    transition: color 0.3s ease;
}

/* Texte des archives */
.tcf-archives-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tcf-modern-gray-600);
    margin: 0;
    transition: color 0.3s ease;
}

/* Responsive design moderne */
/* @media (max-width: 768px) {
    .tcf-subjects-container {
        padding: 1.25rem 1rem;
    }

    .tcf-subjects-container>div {
        padding: 1.5rem;
    }

    .tcf-main-title {
        font-size: 1.875rem;
    }

    .tcf-lessons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tcf-lesson-card-modern {
        padding: 1.25rem;
    }

    .tcf-lesson-title-modern {
        font-size: 1.125rem;
    }

    .tcf-archives-card {
        padding: 1.25rem;
    }

    .tcf-archives-text {
        font-size: 1rem;
    }
} */

@media (max-width: 480px) {
    .tcf-subjects-container {
        padding: 1rem 0.5rem;
    }

    .tcf-subjects-container>div {
        padding: 1rem;
    }

    .tcf-main-title {
        font-size: 1.5rem;
    }

    .tcf-description {
        font-size: 0.875rem;
    }

    .tcf-lesson-card-modern {
        padding: 1rem;
    }

    .tcf-lesson-card-header {
        margin-bottom: 0.75rem;
    }

    .tcf-lesson-icon-modern {
        padding: 0.5rem;
        margin-right: 0.75rem;
    }



    .tcf-lesson-icon-modern .svg {
        width: 1rem;
        height: 1rem;
        color: #2563EB;
    }

    .tcf-lesson-title-modern {
        font-size: 1rem;
    }

    .tcf-lesson-count-modern {
        font-size: 0.75rem;
    }

    .tcf-btn-modern {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }

    .tcf-btn-modern .lucide-icon {
        width: 1rem;
        height: 1rem;
        margin-left: 0.25rem;
    }

    .tcf-archives-card {
        padding: 1rem;
    }

    .tcf-archives-icon {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .tcf-archives-icon .lucide-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .tcf-archives-text {
        font-size: 0.875rem;
    }
}

/* ========================================
   STYLES FORCÉS POUR ASSURER L'APPLICATION
   ======================================== */

/* Forcer l'application des nouveaux styles */
body .tcf-subjects-container {
    font-family: 'Inter', sans-serif !important;
    /* background: #f3f4f6 !important; */
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3rem 1.25rem !important;
}

body .tcf-subjects-container>div {
    background: #ffffff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 80rem;
}

body .tcf-subjects-header {
    text-align: center !important;
    margin-bottom: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.tcf-subjects-container .tcf-subjects-header {
    padding-bottom: 0 !important;
    margin-bottom: -10px !important
}

body .tcf-main-title {
    /* font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.2 !important; */

    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

body .tcf-description {
    /* color: #6b7280 !important;
    max-width: 42rem !important;
    margin: 0 auto !important;
    font-size: 1rem !important;
    line-height: 1.6 !important; */
    color: #6b7280 !important;
    max-width: 50rem !important;
    margin: 0 auto;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 50px;
}

body .tcf-lessons-grid {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 2rem !important;
}

body .tcf-lesson-card-modern {
    border: 1px solid #73A7F9 !important;
    border-radius: 8px !important;
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: box-shadow 0.3s ease !important;
    cursor: pointer !important;
}

body .tcf-lesson-card-modern:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important;
}

body .tcf-lesson-card-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
}

body .tcf-lesson-icon-modern {
    background: #DBEAFE !important;
    padding: 10px !important;
    border-radius: 8px !important;
    margin-right: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body .tcf-lesson-icon-modern svg {
    color: #2563EB !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
}

body .tcf-lesson-info-modern {
    flex: 1 !important;
}

body .tcf-lesson-title-modern {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin: 0 0 0.25rem 0 !important;
    line-height: 1.3 !important;
}

body .tcf-lesson-count-modern {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    margin: 0 !important;
    font-weight: 500;
}

body .tcf-btn-modern {
    width: 100% !important;
    background: linear-gradient(135deg, #1363DF 0%, #1e40af 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.55rem 1.5rem !important;
    border-radius: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
}

body .tcf-btn-modern:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
    transform: translateY(-1px) !important;
}

body .tcf-btn-modern svg {
    margin-left: 0.5rem !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
}

body .tcf-archives-card {
    background: #f9fafb !important;
    border: 2px dashed #d1d5db !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

body .tcf-archives-card:hover {
    background: #f3f4f6 !important;
    border-color: #3b82f6 !important;
}

body .tcf-archives-card:hover .tcf-archives-icon {
    background: #dbeafe !important;
}

body .tcf-archives-card:hover .tcf-archives-icon .lucide-icon {
    color: #3b82f6 !important;
}

body .tcf-archives-card:hover .tcf-archives-text {
    color: #2563eb !important;
}

body .tcf-archives-icon {
    background: #e5e7eb !important;
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease !important;
}

body .tcf-archives-icon .lucide-icon {
    color: #6b7280 !important;
    width: 1.875rem !important;
    height: 1.875rem !important;
    transition: color 0.3s ease !important;
}

body .tcf-archives-text {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    margin: 0 !important;
    transition: color 0.3s ease !important;
}

/* Responsive forcé */
@media (min-width: 640px) {
    body .tcf-lessons-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    body .tcf-lessons-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 480px) {
    body .tcf-subjects-container {
        padding: 1rem 0.5rem !important;
    }

    .tcf-subjects-container .tcf-subjects-header {
        margin-bottom: -1px !important;
    }
   
    .section-py-120 {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    body .tcf-description {
        font-size: 1.1rem !important;
    }

    body .tcf-lesson-card-modern {
        padding: 1rem !important;
    }

    body .tcf-lesson-card-header {
        margin-bottom: 0.75rem !important;
    }

    body .tcf-lesson-icon-modern {
        padding: 0.5rem !important;
        margin-right: 0.75rem !important;
    }

    body .tcf-lesson-icon-modern .lucide-icon {
        width: 1rem !important;
        height: 1rem !important;
    }

    body .tcf-lesson-title-modern {
        font-size: 1rem !important;
    }

    body .tcf-lesson-count-modern {
        font-size: 0.75rem !important;
    }

    body .tcf-btn-modern {
        padding: 0.625rem 1rem !important;
        font-size: 0.85rem !important;
    }

    body .tcf-btn-modern .lucide-icon {
        width: 1rem !important;
        height: 1rem !important;
        margin-left: 0.25rem !important;
    }

    body .tcf-archives-card {
        padding: 1rem !important;
    }

    body .tcf-archives-icon {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    body .tcf-archives-icon .lucide-icon {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }

    body .tcf-archives-text {
        font-size: 0.875rem !important;
    }
    .tcf-cta-btn {
        padding: 0.9rem 1rem;
    }
}

/* ========================================
   COMPOSANT "AVANT DE COMMENCER"
   ======================================== */

/* Container principal du composant */
.tcf-before-start-card {
    background: var(--tcf-modern-white);
    border-radius: 1.5rem;
    box-shadow: var(--tcf-modern-shadow-xl);
    padding: 2rem 1rem;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    max-width: 65%;
    border-radius: 10px;
    box-shadow: 0 3px 6px -1px rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
}

/* Contenu principal */
.tcf-before-start-content {
    position: relative;
    z-index: 10;
}

/* Décorations */
.tcf-before-start-decoration {
    position: absolute;
    opacity: 0.5;
}

.tcf-before-start-decoration.tcf-decoration-top {
    top: 1.5rem;
    right: 1.5rem;
    color: #93c5fd;
    /* blue-300 */
}

.tcf-before-start-decoration.tcf-decoration-top i {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.tcf-before-start-decoration.tcf-decoration-bottom {
    bottom: 1.5rem;
    left: 1.5rem;
    color: #86efac;
    /* green-300 */
}

.tcf-before-start-decoration.tcf-decoration-bottom i {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
}

/* Titre principal */
.tcf-before-start-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tcf-modern-gray-800);
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Description */
.tcf-before-start-description {
    color: var(--tcf-modern-gray-500);
    font-size: 1.04rem;
    max-width: 35rem;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
}

/* Container des boutons */
.tcf-before-start-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tcf-before-start-buttons a svg {
    width: 20px;
}

/* Styles des boutons */
.tcf-before-start-buttons .tcf-btn {

    /* padding: 0rem 1.5rem !important;
    border-radius: 0.5rem !important;
    height: unset;
    min-height: unset;
    height: 40px;

    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 9999px;
    box-shadow: var(--tcf-modern-shadow-lg);
    transform: scale(1);
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.8rem !important;
    gap: 0.5rem;
    background: var(--tcf-primary-blue);
    color: white;
    text-transform: uppercase; */

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 6.4px;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    color: #fff;
    text-decoration: none;
    box-sizing: border-box;
    max-width: 250px;
    /* box-shadow: var(--tcf-modern-shadow-lg);
     */
    box-shadow: 0 3px 6px -1px rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
    text-transform: uppercase;
    padding: 0.1rem 0.8rem !important;
}

.tcf-before-start-buttons .tcf-btn:hover {
    transform: scale(1.05);
}

/* Bouton méthodologie (bleu) */
.tcf-before-start-buttons .tcf-btn-methodology {
    background: var(--tcf-primary-blue);
    color: white;
    background: var(--tcf-primary-blue);
    color: white;
    padding: 6px 20px !important;
    text-transform: uppercase;
}

.tcf-before-start-buttons .tcf-btn-methodology i {
    width: 1rem;
    height: 1rem;
}

/* Bouton sujets (gris) */
.tcf-before-start-buttons .tcf-btn-subjects {
    background: white;
    color: var(--tcf-modern-gray-700);
}

.tcf-before-start-buttons .tcf-btn-subjects i {
    width: 1rem;
    height: 1rem;
}

/* ========================================
   RESPONSIVE POUR LE COMPOSANT
   ======================================== */

/* @media (max-width: 768px) {
    .tcf-before-start-card {
        padding: 1.25rem 1.25rem;
        max-width: unset;
    }

    .tcf-cta {
        width: 100%;
    }

    .tcf-before-start-title {
        font-size: 1.125rem;
    }

    .tcf-before-start-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .tcf-before-start-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .tcf-before-start-buttons .tcf-btn {
        width: 100%;
        max-width: 18rem;
        padding: 6px 16px !important;
        font-size: 0.85rem;
    }

    .tcf-before-start-decoration.tcf-decoration-top {
        top: 1.25rem;
        right: 1.25rem;
    }

    .tcf-before-start-decoration.tcf-decoration-top i {
        font-size: 1.25rem;
        width: 1.25rem;
        height: 1.25rem;
    }

    .tcf-before-start-decoration.tcf-decoration-bottom {
        bottom: 1.25rem;
        left: 1.25rem;
    }

    .tcf-before-start-decoration.tcf-decoration-bottom i {
        font-size: 1.75rem;
        width: 1.75rem;
        height: 1.75rem;
    }
} */

@media (max-width: 480px) {
    
    .tcf-before-start-buttons .tcf-btn-methodology {
        padding: 5px 12px !important;
    }

    .tcf-before-start-buttons .tcf-btn {
        font-size: 0.8rem !important;
        /* background: white; */
    }

    .tcf-before-start-card {
        padding: 2rem  1.5rem;
        max-width: unset;
    }
    .tcf-before-start-container {
        flex-wrap: wrap;
    }

    .tcf-before-start-title {
        font-size: 1.125rem;
    }

    .tcf-before-start-description {
        /* font-size: 1rem; */
        margin-bottom: 1rem;
        padding-left: 8px;
        padding-right: 8px;
    }

    .tcf-before-start-buttons .tcf-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .tcf-before-start-buttons .tcf-btn i {
        width: 0.875rem;
        height: 0.875rem;
    }

    .tcf-before-start-decoration.tcf-decoration-top {
        top: 0.75rem;
        right: 0.75rem;
    }

    .tcf-before-start-decoration.tcf-decoration-top i {
        font-size: 1rem;
        width: 1rem;
        height: 1rem;
    }

    .tcf-before-start-decoration.tcf-decoration-bottom {
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .tcf-before-start-decoration.tcf-decoration-bottom i {
        font-size: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }
}

.tcf-before-start-container {
    margin-bottom: 30px;
    ;
}

/* ========================================
   COMPOSANT CTA "BESOIN DE COACHING"
   ======================================== */

/* Container du CTA - largeur fixe de 350px */
.tcf-cta {
    width: 380px;
    /* box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); */
}

/* Carte principale du CTA */
.tcf-cta-card {
    background: linear-gradient(135deg, #1363DF 0%, #082A5E 100%);

    /* blue-900 */
    border-radius: 1rem;
    box-shadow: var(--tcf-modern-shadow-lg);
    padding: 2rem;
    text-align: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
}

/* Contenu textuel */
.tcf-cta-content {
    margin-bottom: 2rem;
}

.tcf-cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    color: white;
}

.tcf-cta-description {
    /* color: #bfdbfe; */
    color: white;
    /* blue-200 */
    font-size: 1.04rem;
    line-height: 1.6;
    margin: 0;
}

/* Container des boutons */
.tcf-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Styles de base des boutons */
.tcf-cta-btn {
    padding: 0.6rem 1.5rem !important;
    border-radius: 0.5rem !important;

    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 0.75rem;
    width: 100%;
}

.tcf-cta-btn svg {
    width: 20px;
    margin-right: 8px;
}

/* Bouton WhatsApp (vert) */
.tcf-cta-btn-whatsapp {
    background: #10b981;
    /* green-500 */
    color: white !important;
    text-transform: uppercase;
}

.tcf-cta-btn-whatsapp:hover {
    background: #059669;
    /* green-600 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Bouton Email (bordure bleue) */
.tcf-cta-btn-email {
    color: #1E3A8A;
    background: white;
    font-weight: 500;
}

.tcf-cta-btn-email:hover {
    background: #1e40af;
    /* blue-800 */
    color: white;
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* ========================================
   RESPONSIVE POUR LE COMPOSANT CTA
   ======================================== */

@media (max-width: 1024px) {
    .tcf-cta {
        width: 320px;
    }

    .tcf-cta-card {
        padding: 1.5rem;
    }

    .tcf-cta-title {
        font-size: 2rem;
    }

    /* .tcf-cta-description {
        font-size: 1rem;
    } */

    .tcf-cta-btn {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {

    .tcf-cta-card {
        padding: 2rem;
        border-radius: 10px;
    }

    .tcf-cta-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    /* .tcf-cta-description {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    } */

    .tcf-cta-buttons {
        gap: 0.75rem;
    }

    .tcf-cta-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
        border-radius: 0.5rem;
    }

    .tcf-cta-btn i {
        width: 0.875rem;
        height: 0.875rem;
    }
}