/**
 * LearnPress Modern Courses - Premium Style
 * Version: 3.0.0 - OPTIMISÉ & PROFESSIONNEL
 * Correction complète du responsive mobile
 */

/* ===========================
   IMPORTS & FONTS
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===========================
   VARIABLES CSS
   =========================== */
:root {
    /* Couleurs principales */
    --primary: #635bff;
    --primary-light: #7c73ff;
    --primary-dark: #5243d3;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Boutons */
    --search-btn-bg: #635bff;
    --search-btn-hover: #5243d3;
    --reset-btn-bg: #2563eb;
    --reset-btn-hover: #1d4ed8;
    
    /* Gris */
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    
    /* Couleurs sémantiques */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #fafbfc;
    --bg-tertiary: #f6f9fc;
    --bg-hover: rgba(99, 91, 255, 0.04);
    
    /* Textes */
    --text-primary: #0a0d14;
    --text-secondary: #425466;
    --text-muted: #697386;
    --text-light: #8792a2;
    
    /* Bordures */
    --border-light: #e3e8ee;
    --border-default: #dfe3e8;
    --border-dark: #c1c9d2;
    
    /* Ombres */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.05), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 16px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Espacements responsives */
    --container-padding: 1.5rem;
    --section-spacing: 2.5rem;
    --card-padding: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Z-index */
    --z-base: 1;
    --z-sidebar: 5;
    --z-loading: 15;
    --z-sticky: 20;
    --z-modal: 50;
}

/* Variables mobile */
@media (max-width: 767px) {
    :root {
        --container-padding: 1rem;
        --section-spacing: 1.5rem;
        --card-padding: 1rem;
        --space-lg: 1rem;
        --space-xl: 1.25rem;
        --space-2xl: 1.75rem;
        --space-3xl: 2rem;
    }
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CRITICAL: Empêcher débordement horizontal */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (max-width: 767px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }
}

/* ===========================
   CONTAINER PRINCIPAL
   =========================== */
.tmm-fc-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.tmm-fc-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
    position: relative;
}

@media (max-width: 767px) {
    .tmm-fc-wrapper {
        overflow-x: hidden;
        overflow-y: visible;
    }
    
    .tmm-fc-container {
        padding: 0 1rem;
        overflow: visible;
    }
}

/* ===========================
   HERO SECTION
   =========================== */
.tmm-fc-hero {
    background: #fff;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.tmm-fc-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tmm-fc-hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out;
    margin-top: 100px;
 
}

.tmm-fc-hero-title .subtitle {
    display: block;
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    line-height: 1.4;
}

.tmm-fc-hero-description {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.tmm-fc-hero-description .stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.tmm-fc-hero-description .stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1;
    position: relative;
}

.tmm-fc-hero-description .stats i {
    font-size: 1.1rem;
    color: #60a5fa;
}

.tmm-fc-hero-description .stats strong {
    font-weight: 700;
}

.tmm-fc-hero-description .stats span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: var(--border-light);
}

@media (max-width: 767px) {
    .tmm-fc-hero {
        padding: 2rem 0 1.5rem;
    }
    
    .tmm-fc-hero-description .stats {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        margin-top: 1.5rem;
    }
    
    .tmm-fc-hero-description .stats span::after {
        display: none;
    }
}

/* ===========================
   SEARCH SECTION
   =========================== */
.tmm-fc-search-section {
    margin: 1.5rem 0 2rem;
    padding: 0 1rem;
}

.tmm-fc-search-form {
    max-width: 720px;
    margin: 0 auto;
}

.tmm-fc-search-wrapper {
    display: flex;
    gap: 0.4rem;                 /* plus serré */
    padding: 0.125rem 0.4rem;     /* 👈 barre plus fine */
    background: #ffffff;
    border: 1px solid #000000;   /* 👈 noir franc */
    border-radius: var(--radius-full);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.tmm-fc-search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.tmm-fc-search-input {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-primary);
    min-width: 0;
}

.tmm-fc-search-input::placeholder {
    color: var(--text-light);
}

.tmm-fc-search-input:focus {
    outline: none;
}

.tmm-fc-search-btn {
    padding: 0.5rem 1.5rem;
    background: var(--search-btn-bg);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
}

.tmm-fc-search-btn:hover {
    background: var(--search-btn-hover);
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .tmm-fc-search-section {
        padding: 0;
    }

    .tmm-fc-search-wrapper {
        flex-direction: column;
        gap: 0.5rem;

        padding: 0.125rem;
        border-radius: 30px; /* moins pilule */
        border: 1px solid #000;
    }

    .tmm-fc-search-input {
        padding: 0.6rem 0.75rem;
        font-size: 0.8125rem;
    }

    .tmm-fc-search-btn {
        width: 100%;
        padding: 0.6rem;
        font-size: 0.8125rem;
        border-radius: var(--radius-md);
    }
}


/* ===========================
   LAYOUT PRINCIPAL
   =========================== */
.tmm-fc-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

@media (max-width: 1023px) {
    .tmm-fc-content {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* ===========================
   SIDEBAR
   =========================== */
.tmm-fc-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.tmm-fc-sidebar-container {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    position: sticky;
    top: 1.5rem;
}

.tmm-fc-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.tmm-fc-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tmm-fc-filter-group {
    margin-bottom: 1.5rem;
}

.tmm-fc-filter-group:last-child {
    margin-bottom: 0;
}

.tmm-fc-filter-toggle {
    width: 100%;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: color var(--transition-base);
}

.tmm-fc-filter-toggle:hover {
    color: var(--primary);
}

.tmm-fc-filter-toggle i {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tmm-fc-filter-toggle .tmm-fc-toggle-icon {
    margin-left: auto;
    transition: transform var(--transition-base);
}

.tmm-fc-filter-toggle[aria-expanded="false"] .tmm-fc-toggle-icon {
    transform: rotate(-90deg);
}

.tmm-fc-filter-content {
    margin-top: 0.75rem;
}

.tmm-fc-checkbox-wrapper,
.tmm-fc-radio-wrapper {
    margin-bottom: 0.5rem;
}

.tmm-fc-checkbox-label,
.tmm-fc-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    transition: color var(--transition-base);
}

.tmm-fc-checkbox-label:hover,
.tmm-fc-radio-label:hover {
    color: var(--text-primary);
}

.tmm-fc-checkbox-input,
.tmm-fc-radio-input {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-default);
    border-radius: 3px;
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.tmm-fc-radio-input {
    border-radius: 50%;
}

.tmm-fc-checkbox-input:checked,
.tmm-fc-radio-input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.tmm-fc-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tmm-fc-stars {
    display: flex;
    gap: 2px;
}

.tmm-fc-stars .fa-star {
    font-size: 0.8rem;
    color: var(--gray-300);
}

.tmm-fc-sidebar-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.tmm-fc-clear-filters {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--reset-btn-bg);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tmm-fc-clear-filters:hover {
    background: var(--reset-btn-hover);
    transform: translateY(-1px);
}

.tmm-fc-clear-filters i {
    font-size: 0.875rem;
}

@media (max-width: 1023px) {
    .tmm-fc-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .tmm-fc-sidebar-container {
        position: static;
        padding: 1.25rem;
    }
}

@media (max-width: 767px) {
    .tmm-fc-sidebar-container {
        padding: 1rem;
    }
    
    .tmm-fc-filter-toggle {
        font-size: 0.875rem;
    }
    
    .tmm-fc-checkbox-label,
    .tmm-fc-radio-label {
        min-height: 44px;
        font-size: 0.8125rem;
    }
    
    .tmm-fc-clear-filters {
        padding: 1rem;
        font-size: 0.875rem;
    }
}

/* ===========================
   MAIN CONTENT
   =========================== */
.tmm-fc-main {
    flex: 1;
    min-width: 0;
}

.tmm-fc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
}

.tmm-fc-results-count {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.tmm-fc-results-count strong {
    color: var(--text-primary);
    font-weight: 700;
}

.tmm-fc-sort-select {
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23697386' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.tmm-fc-sort-select:hover {
    border-color: var(--primary);
}

.tmm-fc-sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

@media (max-width: 767px) {
    .tmm-fc-toolbar {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
        align-items: stretch;
    }
    
    .tmm-fc-results-count {
        text-align: center;
        order: 2;
        font-size: 0.875rem;
    }
    
    .tmm-fc-sort-select {
        width: 100%;
        order: 1;
    }
}

/* ===========================
   COURSES GRID
   =========================== */
.tmm-fc-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 1200px) {
    .tmm-fc-courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .tmm-fc-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .tmm-fc-courses-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* ===========================
   COURSE CARD
   =========================== */
.tmm-fc-course {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    border: 1px solid var(--border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out both;
    cursor: pointer;
}

.tmm-fc-course:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.tmm-fc-course-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.tmm-fc-course-type-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-slow);
    z-index: 2;
}

.tmm-fc-course:hover .tmm-fc-course-type-label {
    transform: rotate(-3deg) scale(1.05);
}

.tmm-fc-course-type-label.type-video {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
}

.tmm-fc-course-type-label.type-lab {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tmm-fc-course-type-label.type-ebook {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(250, 112, 154, 0.3);
}

.tmm-fc-course-top {
    flex: 1;
    padding-right: 52px;
}

.tmm-fc-course-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tmm-fc-course-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

.tmm-fc-course-title a:hover {
    color: var(--primary);
}

.tmm-fc-course-author {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.tmm-fc-course-categories {
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.tmm-fc-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.tmm-fc-course-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.tmm-fc-course-meta i {
    font-size: 0.875rem;
    color: var(--text-light);
}

.tmm-fc-course-duration {
    margin-top: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

@media (max-width: 767px) {
    .tmm-fc-course {
        border-radius: var(--radius-lg);
    }
    
    .tmm-fc-course-content {
        padding: 1rem;
    }
    
    .tmm-fc-course-top {
        padding-right: 48px;
    }
    
    .tmm-fc-course-type-label {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .tmm-fc-course-title {
        font-size: 1rem;
    }
    
    .tmm-fc-course-author,
    .tmm-fc-course-categories {
        font-size: 0.8125rem;
    }
    
    .tmm-fc-course-meta {
        gap: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tmm-fc-course-meta span {
        width: 100%;
    }
    
    .tmm-fc-course-duration {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ===========================
   LOADING & NO RESULTS
   =========================== */
.tmm-fc-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.tmm-fc-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin-bottom: 1rem;
}

.tmm-fc-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.tmm-fc-no-results-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.tmm-fc-no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tmm-fc-no-results p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

@media (max-width: 767px) {
    .tmm-fc-loading {
        padding: 2rem 1rem;
    }
    
    .tmm-fc-loading-spinner {
        width: 36px;
        height: 36px;
    }
    
    .tmm-fc-no-results {
        padding: 2rem 1rem;
        border-radius: var(--radius-lg);
    }
    
    .tmm-fc-no-results-icon {
        font-size: 3rem;
    }
    
    .tmm-fc-no-results h3 {
        font-size: 1.25rem;
    }
    
    .tmm-fc-no-results p {
        font-size: 0.875rem;
    }
}

/* ===========================
   BUTTONS
   =========================== */
.tmm-fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    min-height: 44px;
}

.tmm-fc-btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(99, 91, 255, 0.2);
}

.tmm-fc-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 91, 255, 0.3);
}

@media (max-width: 767px) {
    .tmm-fc-btn {
        width: 100%;
        padding: 1rem;
    }
}

/* ===========================
   PAGINATION
   CRITICAL: Espace avec le footer
   =========================== */
.tmm-fc-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.tmm-fc-pagination ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    flex-wrap: wrap;
    justify-content: center;
}

.tmm-fc-pagination a,
.tmm-fc-pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-base);
    text-decoration: none;
}

.tmm-fc-pagination a {
    color: var(--text-secondary);
}

.tmm-fc-pagination a:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.tmm-fc-pagination .current {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(99, 91, 255, 0.2);
}

@media (max-width: 767px) {
    .tmm-fc-pagination {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .tmm-fc-pagination ul {
        padding: 0.75rem;
        gap: 0.375rem;
    }
    
    .tmm-fc-pagination a,
    .tmm-fc-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* ===========================
   UTILITIES & ACCESSIBILITY
   =========================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tmm-fc-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loading);
    border-radius: var(--radius-xl);
}

@media (prefers-contrast: high) {
    :root {
        --border-light: #999;
        --border-default: #666;
        --text-light: #555;
        --text-muted: #333;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================
   INTÉGRATIONS ELEMENTOR
   =========================== */
.elementor-widget-container .tmm-fc-wrapper,
body .elementor-widget-shortcode .tmm-fc-wrapper {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.elementor-widget-shortcode > .elementor-widget-container {
    padding: 0 !important;
}

.elementor-section-full_width .tmm-fc-wrapper {
    max-width: 100vw;
}

@media (max-width: 767px) {
    .elementor-widget-container .tmm-fc-wrapper,
    .elementor-section-boxed .tmm-fc-wrapper,
    .elementor-section-full_width .tmm-fc-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        left: auto !important;
        right: auto !important;
    }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
    .tmm-fc-sidebar,
    .tmm-fc-search-section,
    .tmm-fc-pagination {
        display: none;
    }
    
    .tmm-fc-courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tmm-fc-course {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    body {
        background: white;
    }
}

/* ===========================
   CORRECTIONS FINALES
   =========================== */
.tmm-fc-wrapper * {
    max-width: 1240px;
}

.tmm-fc-wrapper img {
    max-width: 100%;
    height: auto;
}

.tmm-fc-wrapper {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@supports (-webkit-touch-callout: none) {
    .tmm-fc-wrapper {
        -webkit-overflow-scrolling: touch;
    }
}


/* OVERRIDE LEARNPRESS FILTERS */
.tmm-fc-sidebar-container .tmm-fc-filter-toggle {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.tmm-fc-sidebar-container .tmm-fc-filter-toggle:hover {
    background: var(--bg-hover) !important;
    color: var(--primary) !important;
}

/* Bouton reset */
.tmm-fc-sidebar-container .tmm-fc-clear-filters {
    background: var(--reset-btn-bg) !important;
    color: #fff !important;

    padding: 0.45rem 1rem;   /* 👈 plus fin */
    font-size: 0.75rem;     /* 👈 texte plus discret */
    font-weight: 600;
    border-radius: 9999px;  /* conserve la forme pilule */

    min-height: auto;       /* supprime l’effet “gros bouton” */
    line-height: 1.2;
}


/* ===========================
   FIN DU FICHIER CSS
   Version 3.0.0 - Production Ready
   =========================== */
   
   
   /* ===========================
   SPINNER PROFESSIONNEL
   À AJOUTER À LA FIN DE modern-courses.css
   =========================== */

/* Wrapper du loader */
.tmm-fc-loading-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 3rem;
    width: 100%;
}

/* Container du spinner */
.tmm-fc-spinner {
    position: relative;
    width: 48px;
    height: 48px;
}

/* Anneaux du spinner */
.tmm-fc-spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: tmm-fc-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.tmm-fc-spinner-ring:nth-child(1) {
    border-top-color: var(--primary, #635bff);
    animation-delay: -0.45s;
}

.tmm-fc-spinner-ring:nth-child(2) {
    border-right-color: var(--primary-light, #7c73ff);
    animation-delay: -0.3s;
}

.tmm-fc-spinner-ring:nth-child(3) {
    border-bottom-color: var(--primary-dark, #5243d3);
    animation-delay: -0.15s;
}

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

/* État loading sur la grille */
.tmm-fc-courses-grid.is-loading {
    min-height: 400px;
    position: relative;
}

/* Responsive */
@media (max-width: 767px) {
    .tmm-fc-loading-wrapper {
        min-height: 200px;
        padding: 2rem;
    }
    
    .tmm-fc-spinner {
        width: 40px;
        height: 40px;
    }
    
    .tmm-fc-spinner-ring {
        border-width: 2px;
    }
}

/* Réduction de mouvement (accessibilité) */
@media (prefers-reduced-motion: reduce) {
    .tmm-fc-spinner-ring {
        animation: none;
        border-color: var(--primary, #635bff);
        opacity: 0.3;
    }
    
    .tmm-fc-spinner-ring:nth-child(1) {
        opacity: 1;
    }
}


/* =========================================================
   TeachMeMore Formations Hub v3
   ========================================================= */
.tmm-fc-hub-hero{padding:72px 0 48px!important;background:
 radial-gradient(circle at 14% 12%,rgba(124,58,237,.13),transparent 28%),
 radial-gradient(circle at 88% 10%,rgba(2,132,199,.09),transparent 28%),
 #080d15!important;border-radius:0!important}
.tmm-fc-hero-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:48px;align-items:center}
.tmm-fc-eyebrow{display:inline-flex;margin-bottom:10px;color:#aab4ff;font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.tmm-fc-hub-hero .tmm-fc-hero-title{max-width:880px;margin:0 0 18px!important;color:#fff!important;font-size:clamp(38px,5vw,64px)!important;line-height:1.02!important;letter-spacing:-.035em!important;font-weight:760!important;text-align:left!important}
.tmm-fc-hero-lead{max-width:770px;margin:0!important;color:#a4b0bf!important;font-size:16px!important;line-height:1.72!important;text-align:left!important}
.tmm-fc-hero-actions{display:flex;gap:11px;flex-wrap:wrap;margin:26px 0 20px}
.tmm-fc-hub-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 17px;border-radius:12px;text-decoration:none!important;font-size:12px;font-weight:800}
.tmm-fc-hub-btn-primary{background:linear-gradient(135deg,#7c3aed,#0284c7);color:#fff!important}
.tmm-fc-hub-btn-secondary{border:1px solid rgba(148,163,184,.17);background:rgba(255,255,255,.025);color:#d5deea!important}
.tmm-fc-hub-hero .stats{display:flex!important;gap:18px!important;flex-wrap:wrap!important;justify-content:flex-start!important}
.tmm-fc-hub-hero .stats span{color:#8897a8!important;font-size:11px!important}
.tmm-fc-learning-card{display:grid;gap:8px;padding:25px;border:1px solid rgba(148,163,184,.14);border-radius:22px;background:#0c1420;box-shadow:0 28px 80px rgba(0,0,0,.23);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tmm-fc-learning-label{padding-bottom:12px;margin-bottom:5px;border-bottom:1px solid rgba(148,163,184,.11);color:#66778c;font-size:10px}
.tmm-fc-learning-card code{color:#91a4b9;font-size:12px}.tmm-fc-learning-card code b{color:#c7d2fe}.tmm-fc-learning-card code.ok{margin-top:7px;color:#86efac}
.tmm-fc-hub-intro,.tmm-fc-choice-guide{padding:64px 0}.tmm-fc-hub-heading{max-width:790px;margin:0 auto 30px;text-align:center}
.tmm-fc-hub-heading h2,.tmm-fc-diagnostic-card h2{margin:5px 0 10px!important;color:#101827!important;font-size:clamp(27px,3vw,39px)!important;line-height:1.15!important;letter-spacing:-.025em!important}
.tmm-fc-hub-heading p,.tmm-fc-diagnostic-card p{margin:0!important;color:#667085!important;font-size:14px!important;line-height:1.7!important}
.tmm-fc-domain-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.tmm-fc-domain-grid a{display:block;padding:20px;border:1px solid #e6e9ef;border-radius:18px;background:#fff;text-decoration:none!important;box-shadow:0 8px 26px rgba(17,24,39,.04);transition:.2s}
.tmm-fc-domain-grid a:hover{transform:translateY(-3px);border-color:#c8ccff;box-shadow:0 14px 32px rgba(17,24,39,.07)}
.tmm-fc-domain-grid strong{display:block;margin-bottom:8px;color:#111827;font-size:14px}.tmm-fc-domain-grid small{display:block;color:#697586;font-size:11px;line-height:1.55}
#tmm-fc-catalogue{scroll-margin-top:90px}
.tmm-fc-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.tmm-fc-choice-grid article{padding:23px;border:1px solid #e7e9ee;border-radius:18px;background:#fff}
.tmm-fc-choice-grid article>span{display:grid;place-items:center;width:34px;height:34px;margin-bottom:15px;border-radius:10px;background:#f0edff;color:#6750d8;font-size:10px;font-weight:850}
.tmm-fc-choice-grid h3{margin:0 0 9px!important;color:#111827!important;font-size:17px!important}.tmm-fc-choice-grid p{margin:0!important;color:#667085!important;font-size:12px!important;line-height:1.65!important}
.tmm-fc-diagnostic-card{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-top:27px;padding:28px;border:1px solid rgba(124,58,237,.15);border-radius:22px;background:linear-gradient(135deg,#faf8ff,#f5fbff)}
.tmm-fc-diagnostic-card>div:first-child{max-width:670px}.tmm-fc-diagnostic-card h2{font-size:28px!important}.tmm-fc-diagnostic-actions{display:flex;gap:9px;flex-wrap:wrap}
@media(max-width:1050px){.tmm-fc-hero-grid{grid-template-columns:1fr}.tmm-fc-learning-card{max-width:680px}.tmm-fc-domain-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.tmm-fc-hub-hero{padding:52px 0 40px!important}.tmm-fc-hub-hero .tmm-fc-hero-title{font-size:38px!important}.tmm-fc-domain-grid,.tmm-fc-choice-grid{grid-template-columns:1fr}.tmm-fc-diagnostic-card{align-items:stretch;flex-direction:column}.tmm-fc-diagnostic-actions .tmm-fc-hub-btn{width:100%}}


/* v3.1 — Light Editorial Hub */
.tmm-fc-courses-page,.tmm-fc-wrapper,.tmm-fc-courses-container{background:#fff!important}
.tmm-fc-editorial-hero{position:relative;padding:72px 0 62px;background:radial-gradient(circle at 92% 8%,rgba(124,58,237,.08),transparent 26%),radial-gradient(circle at 8% 92%,rgba(2,132,199,.05),transparent 24%),#fff;border-bottom:1px solid #eceff3}
.tmm-fc-editorial-grid{width:min(1180px,calc(100% - 40px));margin:0 auto;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:64px;align-items:center}
.tmm-fc-editorial-copy{max-width:760px}
.tmm-fc-editorial-title{margin:10px 0 18px!important;color:#0f172a!important;font-size:clamp(44px,5.4vw,72px)!important;line-height:.98!important;letter-spacing:-.045em!important;font-weight:760!important;text-align:left!important}
.tmm-fc-editorial-lead{max-width:720px;margin:0!important;color:#5f6b7a!important;font-size:17px!important;line-height:1.72!important;text-align:left!important}
.tmm-fc-editorial-actions{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0 30px}
.tmm-fc-editorial-meta{display:flex;flex-wrap:wrap;padding-top:6px}
.tmm-fc-editorial-meta>div{min-width:130px;padding-right:28px;margin-right:28px;border-right:1px solid #e5e7eb}
.tmm-fc-editorial-meta>div:last-child{margin-right:0;padding-right:0;border-right:0}
.tmm-fc-editorial-meta strong{display:block;margin-bottom:2px;color:#111827;font-size:20px;line-height:1.1}
.tmm-fc-editorial-meta span{color:#7b8794;font-size:11px}
.tmm-fc-path-card{border:1px solid #e6e9ef;border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 24px 60px rgba(15,23,42,.08)}
.tmm-fc-path-card-head{padding:24px 24px 18px;border-bottom:1px solid #edf0f4}
.tmm-fc-path-card-head span{display:block;margin-bottom:5px;color:#7c3aed;font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.tmm-fc-path-card-head strong{color:#111827;font-size:18px}
.tmm-fc-path-row{display:grid;grid-template-columns:36px 1fr auto;gap:13px;align-items:center;padding:18px 22px;border-bottom:1px solid #edf0f4;text-decoration:none!important;transition:.18s}
.tmm-fc-path-row:last-child{border-bottom:0}.tmm-fc-path-row:hover{background:#fafbfc;padding-left:26px}
.tmm-fc-path-index{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#f3f1ff;color:#6d5ce7;font-size:10px;font-weight:850}
.tmm-fc-path-row strong{display:block;margin-bottom:3px;color:#111827;font-size:13px}.tmm-fc-path-row small{display:block;color:#7b8794;font-size:10px;line-height:1.45}.tmm-fc-path-arrow{color:#9aa4b2;font-size:18px}
.tmm-fc-hub-btn-primary{background:#111827!important;color:#fff!important;border:1px solid #111827!important}.tmm-fc-hub-btn-primary:hover{background:#000!important;transform:translateY(-1px)}
.tmm-fc-hub-btn-secondary{background:#fff!important;color:#111827!important;border:1px solid #dfe3e8!important}.tmm-fc-hub-btn-secondary:hover{background:#f8fafc!important}
.tmm-fc-eyebrow{color:#7467e8!important}
.tmm-fc-hub-intro,.tmm-fc-choice-guide{background:#fff!important}
.tmm-fc-domain-grid a{box-shadow:none!important;border-color:#e7eaf0!important;background:#fff!important}
.tmm-fc-domain-grid a:hover{border-color:#cfd4ff!important;box-shadow:0 10px 30px rgba(15,23,42,.06)!important}
#tmm-fc-catalogue{scroll-margin-top:90px}
.tmm-fc-search-section,.tmm-fc-filters-section,.tmm-fc-results-section{background:#f8fafc!important}
@media(max-width:1050px){.tmm-fc-editorial-grid{grid-template-columns:1fr;gap:34px}.tmm-fc-path-card{max-width:760px}}
@media(max-width:760px){.tmm-fc-editorial-hero{padding:48px 0 42px}.tmm-fc-editorial-grid{width:min(100% - 26px,1180px)}.tmm-fc-editorial-title{font-size:40px!important}.tmm-fc-editorial-lead{font-size:15px!important}.tmm-fc-editorial-meta>div{min-width:50%;margin-right:0;padding-right:16px;border-right:0}.tmm-fc-path-row{grid-template-columns:32px 1fr auto;padding:16px}}


/* =========================================================
   v3.2 — Charte TeachMeMore / spacing / typography fixes
   ========================================================= */

/* 1) Fond blanc uniforme : aucune "boîte" visuelle autour du hero */
.tmm-fc-editorial-hero{
    background:#ffffff !important;
    border-bottom:0 !important;
    box-shadow:none !important;
    padding:64px 0 58px !important;
}
.tmm-fc-editorial-grid{
    width:min(1240px,calc(100% - 48px)) !important;
    gap:56px !important;
}

/* Empêche les anciens wrappers de créer une limite blanche perceptible */
.tmm-fc-courses-page,
.tmm-fc-wrapper,
.tmm-fc-courses-container,
.tmm-fc-hub-intro,
.tmm-fc-choice-guide{
    background:#ffffff !important;
    border:0 !important;
    box-shadow:none !important;
}

/* 2) Eyebrow centré dans la colonne éditoriale */
.tmm-fc-editorial-copy > .tmm-fc-eyebrow{
    display:block !important;
    width:100% !important;
    margin:0 0 18px !important;
    text-align:center !important;
    color:#6f63f6 !important;
    font-weight:850 !important;
    letter-spacing:.105em !important;
}

/* 3) Boutons : retour à la charte TeachMeMore bleu/violet + forme pill arrondie */
.tmm-fc-hub-btn{
    min-height:48px !important;
    padding:0 22px !important;
    border-radius:999px !important;
    font-size:12px !important;
    font-weight:800 !important;
    transition:transform .18s ease,box-shadow .18s ease,background .18s ease !important;
}
.tmm-fc-hub-btn-primary{
    color:#ffffff !important;
    background:linear-gradient(135deg,#6d4aff 0%,#3b82f6 100%) !important;
    border:1px solid transparent !important;
    box-shadow:0 8px 20px rgba(79,70,229,.16) !important;
}
.tmm-fc-hub-btn-primary:hover{
    color:#ffffff !important;
    background:linear-gradient(135deg,#6542f3 0%,#2f74ea 100%) !important;
    transform:translateY(-1px) !important;
    box-shadow:0 11px 24px rgba(79,70,229,.22) !important;
}
.tmm-fc-hub-btn-secondary{
    color:#1d4ed8 !important;
    background:#ffffff !important;
    border:1px solid #d8dffc !important;
    box-shadow:0 5px 14px rgba(15,23,42,.04) !important;
}
.tmm-fc-hub-btn-secondary:hover{
    color:#4338ca !important;
    background:#f8f9ff !important;
    border-color:#c7ccfb !important;
    transform:translateY(-1px) !important;
}

/* 4) Carte de progression : même langage visuel doux et arrondi */
.tmm-fc-path-card{
    border-radius:26px !important;
    border-color:#e5e8f0 !important;
    box-shadow:0 18px 46px rgba(15,23,42,.075) !important;
}
.tmm-fc-path-row:hover{
    background:#f8f9ff !important;
}
.tmm-fc-path-index{
    border-radius:12px !important;
    background:#f0edff !important;
    color:#6d4aff !important;
}

/* 5) Supprime la sensation de "marges blanches délimitées" entre les sections */
.tmm-fc-hub-intro{
    padding:62px 0 60px !important;
    margin:0 !important;
    border-top:1px solid #f0f2f5 !important;
}
.tmm-fc-hub-intro::before,
.tmm-fc-hub-intro::after,
.tmm-fc-editorial-hero::before,
.tmm-fc-editorial-hero::after{
    display:none !important;
}
.tmm-fc-hub-intro > *,
.tmm-fc-choice-guide > *{
    max-width:1240px;
    margin-left:auto;
    margin-right:auto;
}

/* 6) Titre de section plus affirmé */
.tmm-fc-hub-heading h2{
    font-weight:780 !important;
    letter-spacing:-.035em !important;
    line-height:1.08 !important;
    color:#0f172a !important;
}
.tmm-fc-hub-heading p{
    color:#667085 !important;
    font-weight:450 !important;
}

/* Le kicker de la section suivante est plus net */
.tmm-fc-hub-heading > .tmm-fc-eyebrow{
    display:block !important;
    text-align:center !important;
    color:#6f63f6 !important;
    font-weight:850 !important;
}

/* 7) Les cartes domaines reprennent des arrondis cohérents */
.tmm-fc-domain-grid a{
    border-radius:22px !important;
}
.tmm-fc-domain-grid a:hover{
    border-color:#c9cdfd !important;
}

/* 8) H1 du hero — réduit et rééquilibré (v3.2.1) */
.tmm-fc-editorial-title{
    max-width:640px !important;
    font-size:clamp(32px,3.6vw,50px) !important;
    line-height:1.08 !important;
    font-weight:780 !important;
}

/* 9) Même largeur visuelle pour la zone de choix suivante */
.tmm-fc-hub-intro .tmm-fc-hub-heading{
    max-width:900px !important;
    padding:0 20px !important;
}
.tmm-fc-domain-grid{
    width:min(1240px,calc(100% - 48px)) !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

@media(max-width:1050px){
    .tmm-fc-editorial-grid{
        width:min(100% - 36px,1240px) !important;
    }
    .tmm-fc-editorial-copy > .tmm-fc-eyebrow{
        text-align:left !important;
    }
}
@media(max-width:760px){
    .tmm-fc-editorial-hero{
        padding:44px 0 38px !important;
    }
    .tmm-fc-editorial-grid,
    .tmm-fc-domain-grid{
        width:min(100% - 26px,1240px) !important;
    }
    .tmm-fc-editorial-copy > .tmm-fc-eyebrow{
        text-align:left !important;
        margin-bottom:14px !important;
    }
    .tmm-fc-hub-btn{
        width:100% !important;
    }
    .tmm-fc-editorial-title{
        font-size:30px !important;
    }
}


/* =========================================================
   v3.3 — Marges, eyebrow restauré, gradients, domaines réels
   ========================================================= */

/* Eyebrow remis comme avant : aligné à gauche dans la colonne */
.tmm-fc-editorial-copy > .tmm-fc-eyebrow{
    display:inline-flex !important;
    width:auto !important;
    margin:0 0 16px !important;
    text-align:left !important;
}

/* Plus d'air sous la navigation */
.tmm-fc-editorial-hero{
    padding-top:78px !important;
}
.tmm-fc-editorial-grid{
    align-items:center !important;
}

/* Gradient utilisé seulement sur quelques mots-clés pour garder la lisibilité */
.tmm-fc-gradient-text{
    background:linear-gradient(90deg,#7c3aed 0%,#4f46e5 40%,#0ea5e9 78%,#06b6d4 100%);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    -webkit-text-fill-color:transparent;
}

/* Le titre de la section suivante reste très fort */
.tmm-fc-hub-heading h2{
    font-weight:800 !important;
}

/* Domaine sélectionné : feedback visuel */
[data-tmm-domain].is-active,
[data-tmm-domain]:focus-visible{
    border-color:#b8c2ff !important;
    background:linear-gradient(180deg,#ffffff,#f8f8ff) !important;
    outline:none;
}

@media(max-width:760px){
    .tmm-fc-editorial-hero{
        padding-top:52px !important;
    }
}


/* =========================================================
   v3.4 — Correctifs filtre + espacement hero
   ========================================================= */

/* Le H1 du hero reste entièrement noir */
.tmm-fc-editorial-title,
.tmm-fc-editorial-title .tmm-fc-gradient-text{
    color:#0f172a !important;
    -webkit-text-fill-color:#0f172a !important;
    background:none !important;
}

/* Plus d'air entre la barre de navigation et le kicker */
.tmm-fc-editorial-hero{
    padding-top:102px !important;
}

/* Le gradient reste disponible hors du hero (ex. "objectif") */
.tmm-fc-hub-heading .tmm-fc-gradient-text{
    background:linear-gradient(90deg,#7c3aed 0%,#4f46e5 42%,#0ea5e9 78%,#06b6d4 100%) !important;
    -webkit-background-clip:text !important;
    background-clip:text !important;
    color:transparent !important;
    -webkit-text-fill-color:transparent !important;
}

/* État actif pour les raccourcis domaines/profils */
[data-tmm-domain].is-active{
    border-color:#b7c0ff !important;
    background:#f7f7ff !important;
}

@media(max-width:760px){
    .tmm-fc-editorial-hero{
        padding-top:66px !important;
    }
}


/* =========================================================
   v3.5.1 — Faceted filters UI
   ========================================================= */
.tmm-fc-sidebar{width:270px!important;flex:0 0 270px!important}
.tmm-fc-sidebar-container{
    position:sticky!important;top:96px!important;padding:18px!important;
    border:1px solid #e8ebf1!important;border-radius:22px!important;
    background:#fff!important;box-shadow:0 10px 28px rgba(15,23,42,.045)!important
}
.tmm-fc-sidebar-header{
    display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
    padding:0 2px 16px!important;margin:0!important;border-bottom:1px solid #eef1f4!important
}
.tmm-fc-sidebar-kicker{
    display:block;margin-bottom:3px;color:#7467e8;font-size:9px;font-weight:850;
    letter-spacing:.1em;text-transform:uppercase
}
.tmm-fc-sidebar-title{
    margin:0!important;color:#0f172a!important;font-size:17px!important;
    line-height:1.2!important;font-weight:800!important
}
.tmm-fc-filter-group{
    padding:15px 0 2px!important;margin:0!important;border-bottom:1px solid #f0f2f5!important
}
.tmm-fc-filter-group:last-of-type{border-bottom:0!important}
.tmm-fc-filter-title{margin:0!important}
.tmm-fc-filter-toggle{
    width:100%!important;min-height:34px!important;display:flex!important;align-items:center!important;
    gap:9px!important;padding:0!important;background:transparent!important;border:0!important;
    color:#111827!important;text-align:left!important;font-size:13px!important;font-weight:800!important;
    box-shadow:none!important
}
.tmm-fc-filter-toggle>span{flex:1}
.tmm-fc-filter-toggle .fas:first-child{width:18px;color:#94a3b8!important;text-align:center}
.tmm-fc-toggle-icon{color:#94a3b8!important;font-size:11px!important}
.tmm-fc-filter-content{margin-top:9px!important;display:grid!important;gap:3px!important}

.tmm-fc-checkbox-wrapper{
    position:relative!important;display:grid!important;
    grid-template-columns:18px minmax(0,1fr)!important;align-items:center!important;
    column-gap:10px!important;width:100%!important;min-height:38px!important;
    margin:0!important;padding:7px 8px!important;border-radius:11px!important;
    cursor:pointer!important;transition:background .16s ease!important
}
.tmm-fc-checkbox-wrapper:hover{background:#f8fafc!important}
.tmm-fc-checkbox-input{
    position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;
    padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;
    white-space:nowrap!important;border:0!important
}
.tmm-fc-checkbox-ui{
    grid-column:1!important;grid-row:1!important;display:grid!important;place-items:center!important;
    width:17px!important;height:17px!important;border:1.5px solid #cbd5e1!important;
    border-radius:5px!important;background:#fff!important;transition:all .16s ease!important
}
.tmm-fc-checkbox-input:checked + .tmm-fc-checkbox-ui{
    border-color:#6d5dfc!important;background:linear-gradient(135deg,#7c3aed,#3b82f6)!important;
    box-shadow:0 3px 8px rgba(79,70,229,.18)!important
}
.tmm-fc-checkbox-input:checked + .tmm-fc-checkbox-ui::after{
    content:""!important;width:7px!important;height:4px!important;
    border-left:2px solid #fff!important;border-bottom:2px solid #fff!important;
    transform:rotate(-45deg) translateY(-1px)!important
}
.tmm-fc-checkbox-input:focus-visible + .tmm-fc-checkbox-ui{
    outline:3px solid rgba(99,102,241,.14)!important;outline-offset:2px!important
}
.tmm-fc-checkbox-label{
    grid-column:2!important;grid-row:1!important;display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;
    gap:8px!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
    color:#334155!important;font-size:12px!important;line-height:1.35!important;
    font-weight:550!important;cursor:pointer!important
}
.tmm-fc-count{
    margin:0!important;padding-left:8px!important;color:#94a3b8!important;
    font-size:10px!important;font-variant-numeric:tabular-nums
}
.tmm-fc-checkbox-wrapper:has(.tmm-fc-checkbox-input:checked){background:#f5f4ff!important}
.tmm-fc-checkbox-wrapper:has(.tmm-fc-checkbox-input:checked) .tmm-fc-checkbox-label{
    color:#312e81!important;font-weight:700!important
}
.tmm-fc-clear-filters{
    min-height:42px!important;border-radius:999px!important;background:#f8fafc!important;
    color:#475569!important;border:1px solid #e5e7eb!important;box-shadow:none!important
}
.tmm-fc-clear-filters:hover{
    background:#f1f5f9!important;color:#0f172a!important;transform:none!important
}
[data-tmm-category-target].is-active{
    border-color:#b9c1ff!important;background:#f7f7ff!important;
    box-shadow:0 8px 22px rgba(79,70,229,.08)!important
}
@media(max-width:1023px){
    .tmm-fc-sidebar{width:100%!important;flex:1 1 100%!important}
    .tmm-fc-sidebar-container{position:static!important}
}


/* =========================================================
   v3.6 — UX fixes
   ========================================================= */

/* Search area: no stray text / cleaner framing */
.tmm-fc-search-section{
    overflow:hidden !important;
}
.tmm-fc-search-form{
    margin:0 !important;
}
.tmm-fc-search-wrapper{
    width:100% !important;
}

/* Hero counter is catalogue-wide and visually stable */
.tmm-fc-editorial-meta .tmm-fc-total-count{
    min-width:2ch;
    display:inline-block;
}

/* Course cards: no publication date in catalogue */
.tmm-fc-course-meta{
    gap:12px !important;
    flex-wrap:wrap !important;
}


/* =========================================================
   v3.6.1 — Hero counter spacing fix
   ========================================================= */
.tmm-fc-editorial-meta > div{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
}
.tmm-fc-editorial-meta strong,
.tmm-fc-editorial-meta .tmm-fc-total-count{
    display:block !important;
    margin:0 0 7px 0 !important;
    line-height:1 !important;
}
.tmm-fc-editorial-meta span{
    display:block !important;
    margin:0 !important;
    line-height:1.3 !important;
}


/* =========================================================
   v3.6.3 — Recovery + surgical rating UI fix
   IMPORTANT: no sidebar/grid/layout overrides in this patch.
   ========================================================= */

.tmm-fc-rating-filter{
    display:grid !important;
    gap:4px !important;
}

.tmm-fc-rating-filter .tmm-fc-radio-wrapper{
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
    min-height:38px !important;
    margin:0 !important;
    padding:7px 8px !important;
    border-radius:10px !important;
    cursor:pointer !important;
    transition:background .16s ease !important;
}

.tmm-fc-rating-filter .tmm-fc-radio-wrapper:hover{
    background:#f8fafc !important;
}

/* Keep native radio visible and aligned; avoid custom pseudo-radio bugs. */
.tmm-fc-rating-filter .tmm-fc-radio-input{
    position:static !important;
    flex:0 0 auto !important;
    width:18px !important;
    height:18px !important;
    margin:0 !important;
    accent-color:#6d5dfc !important;
    cursor:pointer !important;
}

.tmm-fc-rating-filter .tmm-fc-radio-label{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    color:#334155 !important;
    font-size:12px !important;
    line-height:1.25 !important;
    cursor:pointer !important;
}

.tmm-fc-stars{
    display:inline-flex !important;
    gap:2px !important;
    flex:0 0 auto !important;
}

.tmm-fc-stars .fa-star{
    font-size:11px !important;
    color:#d6dbe3 !important;
}

.tmm-fc-stars .fa-star.filled{
    color:#f59e0b !important;
}

.tmm-fc-rating-text{
    white-space:nowrap !important;
}

.tmm-fc-rating-filter .tmm-fc-radio-wrapper:has(.tmm-fc-radio-input:checked){
    background:#f5f4ff !important;
}

.tmm-fc-rating-filter .tmm-fc-radio-wrapper:has(.tmm-fc-radio-input:checked) .tmm-fc-rating-text{
    color:#312e81 !important;
    font-weight:700 !important;
}

/* Reset remains secondary, but without changing sidebar geometry. */
.tmm-fc-sidebar-footer .tmm-fc-clear-filters{
    min-height:40px !important;
    border-radius:999px !important;
    background:#ffffff !important;
    color:#475569 !important;
    border:1px solid #dfe4ea !important;
    box-shadow:none !important;
    font-size:11px !important;
    font-weight:750 !important;
    text-transform:none !important;
}

.tmm-fc-sidebar-footer .tmm-fc-clear-filters:hover{
    background:#f8fafc !important;
    color:#0f172a !important;
    border-color:#cbd5e1 !important;
    transform:none !important;
}