/**
 * TCF Global Styles - Styles globaux et variables CSS
 * Centralise tous les styles répétitifs pour une meilleure cohérence
 * Version: 1.0.0
 */

/* =================================================================
   VARIABLES CSS GLOBALES
   ================================================================= */

:root {
    /* ===== COULEURS PRINCIPALES ===== */
    --tcf-primary: #2563EB;
    --tcf-primary-dark: #1d4ed8;
    --tcf-primary-light: #3b82f6;
    --tcf-secondary: #64748b;
    --tcf-accent: #8b5cf6;

    /* ===== COULEURS SPÉCIFIQUES TCF ===== */
    --tcf-primary-blue: #2563eb;
    --tcf-primary-green: #10b981;
    --tcf-secondary-blue: #3b82f6;

    /* ===== COULEURS DE STATUT ===== */
    --tcf-success: #10b981;
    --tcf-success-dark: #059669;
    --tcf-warning: #f59e0b;
    --tcf-warning-dark: #d97706;
    --tcf-error: #ef4444;
    --tcf-error-dark: #dc2626;
    --tcf-info: #06b6d4;

    /* ===== COULEURS DE TEXTE ===== */
    --tcf-text-primary: #1e293b;
    --tcf-text-secondary: #64748b;
    --tcf-text-muted: #94a3b8;
    --tcf-text-light: #9ca3af;

    /* ===== COULEURS DE FOND ===== */
    --tcf-bg-primary: #ffffff;
    --tcf-bg-secondary: #f8fafc;
    --tcf-bg-accent: #f1f5f9;
    --tcf-bg-light: #f8fafc;
    --tcf-bg-dark: #061E43;
    --tcf-modern-bg: #f3f4f6;
    --tcf-modern-white: #ffffff;

    /* ===== COULEURS DE BORDURE ===== */
    --tcf-border: #e2e8f0;
    --tcf-border-light: #e5e7eb;
    --tcf-border-dark: #cbd5e1;

    /* ===== COULEURS MODERNES TCF ===== */
    --tcf-modern-blue-100: #dbeafe;
    --tcf-modern-blue-500: #3b82f6;
    --tcf-modern-blue-600: #2563eb;
    --tcf-modern-blue-700: #1d4ed8;
    --tcf-modern-gray-300: #d1d5db;
    --tcf-modern-gray-400: #9ca3af;
    --tcf-modern-gray-500: #6b7280;
    --tcf-modern-gray-600: #4b5563;
    --tcf-modern-gray-700: #374151;
    --tcf-modern-gray-800: #1f2937;
    --tcf-modern-gray-900: #111827;

    /* ===== VARIABLES MODERNES SUPPLÉMENTAIRES ===== */
    --tcf-modern-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --tcf-modern-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --tcf-modern-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --tcf-modern-radius-lg: 0.75rem;
    --tcf-modern-radius-xl: 1rem;
    --tcf-modern-radius-2xl: 1.5rem;

    /* ===== OMBRES ===== */
    --tcf-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --tcf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --tcf-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --tcf-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* ===== RAYONS DE BORDURE ===== */
    --tcf-radius-sm: 0.375rem;
    --tcf-radius-md: 0.5rem;
    --tcf-radius-lg: 0.75rem;
    --tcf-radius-xl: 1rem;
    --tcf-radius-2xl: 1.5rem;

    /* ===== ESPACEMENTS ===== */
    --tcf-spacing-xs: 0.5rem;
    --tcf-spacing-sm: 0.75rem;
    --tcf-spacing-md: 1rem;
    --tcf-spacing-lg: 1.5rem;
    --tcf-spacing-xl: 2rem;
    --tcf-spacing-2xl: 3rem;

    /* ===== TRANSITIONS ===== */
    --tcf-transition: all 0.3s ease;
    --tcf-transition-fast: all 0.2s ease;
    --tcf-transition-slow: all 0.5s ease;

    /* ===== Z-INDEX ===== */
    --tcf-z-dropdown: 1000;
    --tcf-z-sticky: 1020;
    --tcf-z-fixed: 1030;
    --tcf-z-modal-backdrop: 1040;
    --tcf-z-modal: 1050;
    --tcf-z-popover: 1060;
    --tcf-z-tooltip: 1070;
    --tcf-z-notification: 1080;
    --tcf-z-loader: 9999;
}

/* =================================================================
   RÉINITIALISATION ET BASE
   ================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--tcf-text-primary);
    background: var(--tcf-bg-secondary);
    overflow-x: hidden;
}

/* =================================================================
   TYPOGRAPHIE GLOBALE
   ================================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tcf-text-primary);
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.125rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--tcf-text-secondary);
    line-height: 1.6;
}

/* =================================================================
   BOUTONS GLOBAUX
   ================================================================= */

#sticky-header {
    background: white !important;
}
.tcf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--tcf-radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--tcf-transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.tcf-btn:focus {
    outline: 2px solid var(--tcf-primary);
    outline-offset: 2px;
}

.tcf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Variantes de boutons */
.tcf-btn-primary {
    background: var(--tcf-primary);
    color: white;
    box-shadow: var(--tcf-shadow-sm);
}

.tcf-btn-primary:hover {
    background: var(--tcf-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--tcf-shadow-md);
}

.tcf-btn-secondary {
    background: var(--tcf-bg-primary);
    color: var(--tcf-text-primary);
    border: 1px solid var(--tcf-border);
}

.tcf-btn-secondary:hover {
    background: var(--tcf-bg-accent);
    border-color: var(--tcf-primary);
    color: var(--tcf-primary);
}

.tcf-btn-success {
    background: var(--tcf-success);
    color: white;
}

.tcf-btn-success:hover {
    background: var(--tcf-success-dark);
    transform: translateY(-1px);
}

.tcf-btn-warning {
    background: var(--tcf-warning);
    color: white;
}

.tcf-btn-warning:hover {
    background: var(--tcf-warning-dark);
    transform: translateY(-1px);
}

.tcf-btn-error {
    background: var(--tcf-error);
    color: white;
}

.tcf-btn-error:hover {
    background: var(--tcf-error-dark);
    transform: translateY(-1px);
}

.tcf-btn-outline {
    background: transparent;
    color: var(--tcf-primary);
    border: 2px solid var(--tcf-primary);
}

.tcf-btn-outline:hover {
    background: var(--tcf-primary);
    color: white;
}

.tcf-btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 52px;
}

.tcf-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    min-height: 36px;
}

/* =================================================================
   CARTES ET CONTENEURS
   ================================================================= */

.tcf-card {
    background: var(--tcf-bg-primary);
    border: 1px solid var(--tcf-border);
    border-radius: var(--tcf-radius-lg);
    box-shadow: var(--tcf-shadow-sm);
    transition: var(--tcf-transition);
    overflow: hidden;
}

.tcf-card:hover {
    box-shadow: var(--tcf-shadow-lg);
    transform: translateY(-2px);
}

.tcf-card-header {
    padding: var(--tcf-spacing-lg);
    border-bottom: 1px solid var(--tcf-border);
    background: var(--tcf-bg-accent);
}

.tcf-card-body {
    padding: var(--tcf-spacing-lg);
}

.tcf-card-footer {
    padding: var(--tcf-spacing-lg);
    border-top: 1px solid var(--tcf-border);
    background: var(--tcf-bg-accent);
}

.tcf-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0;
}


.section-py-120 {
    padding-top: 50px;
}
.section-py-120.light__background {
    padding: 0 !important;
}
/* Style spécial pour la page details */
.section-py-120.tcf-details-page {
    padding-top: 50px;
    background: var(--light-gray);
}

/* Alternative CSS : style basé sur l'attribut data-page-type */
.section-py-120[data-page-type="details"] {
    padding-top: 50px;
    background: var(--light-gray);
}

/* Alternative CSS : style basé sur la classe body (si ajoutée via PHP) */
body.tcf-details-page .section-py-120 {
    padding-top: 50px;
    background: var(--light-gray);
}

/* =================================================================
   CARTES DE LEÇONS
   ================================================================= */

.tcf-lesson-card {
    background: var(--tcf-bg-primary);
    border: 1px solid var(--tcf-border);
    border-radius: var(--tcf-radius-lg);
    padding: var(--tcf-spacing-lg);
    transition: var(--tcf-transition);
    position: relative;
    overflow: hidden;
}

.tcf-lesson-card:hover {
    box-shadow: var(--tcf-shadow-lg);
    transform: translateY(-2px);
    border-color: var(--tcf-primary);
}

.tcf-lesson-card.expanded {
    border-color: var(--tcf-primary);
    box-shadow: var(--tcf-shadow-lg);
}

.tcf-lesson-card-header {
    display: flex;
    align-items: center;
    gap: var(--tcf-spacing-md);
    margin-bottom: var(--tcf-spacing-md);
}

.tcf-lesson-card .tcf-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tcf-text-primary);
    margin: 0;
    flex: 1;
}

.tcf-lesson-card .tcf-card-category {
    font-size: 0.875rem;
    color: var(--tcf-text-secondary);
    background: var(--tcf-bg-accent);
    padding: 0.25rem 0.75rem;
    border-radius: var(--tcf-radius-sm);
    font-weight: 500;
}

.tcf-lesson-card .tcf-card-actions {
    display: flex;
    gap: var(--tcf-spacing-sm);
    margin-top: var(--tcf-spacing-md);
}

/* =================================================================
   BADGES ET INDICATEURS
   ================================================================= */

.tcf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--tcf-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.tcf-badge-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--tcf-primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.tcf-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--tcf-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tcf-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--tcf-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.tcf-badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--tcf-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tcf-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--tcf-bg-accent);
    color: var(--tcf-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--tcf-border);
    transition: var(--tcf-transition);
}

.tcf-level-badge:hover {
    background: var(--tcf-primary);
    color: white;
    transform: scale(1.05);
}

/* =================================================================
   GRID ET LAYOUT
   ================================================================= */

.tcf-grid {
    display: grid;
    gap: var(--tcf-spacing-lg);
}

.tcf-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tcf-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tcf-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tcf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--tcf-spacing-lg);
}

/* =================================================================
   FORMULAIRES
   ================================================================= */

.tcf-form-group {
    margin-bottom: var(--tcf-spacing-lg);
}

.tcf-form-label {
    display: block;
    font-weight: 500;
    color: var(--tcf-text-primary);
    margin-bottom: var(--tcf-spacing-sm);
}

.tcf-form-input,
.tcf-form-select,
.tcf-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--tcf-border);
    border-radius: var(--tcf-radius-md);
    font-size: 0.875rem;
    transition: var(--tcf-transition);
    background: var(--tcf-bg-primary);
    color: var(--tcf-text-primary);
}

.tcf-form-input:focus,
.tcf-form-select:focus,
.tcf-form-textarea:focus {
    outline: none;
    border-color: var(--tcf-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tcf-form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* =================================================================
   TABLEAUX
   ================================================================= */

.tcf-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--tcf-bg-primary);
    border-radius: var(--tcf-radius-lg);
    overflow: hidden;
    box-shadow: var(--tcf-shadow-sm);
}

.tcf-table th,
.tcf-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--tcf-border);
}

.tcf-table th {
    background: var(--tcf-bg-accent);
    font-weight: 600;
    color: var(--tcf-text-primary);
}

.tcf-table tr:hover {
    background: var(--tcf-bg-secondary);
}

/* =================================================================
   ALERTES ET NOTIFICATIONS
   ================================================================= */

.tcf-alert {
    padding: var(--tcf-spacing-md);
    border-radius: var(--tcf-radius-md);
    margin-bottom: var(--tcf-spacing-lg);
    border-left: 4px solid;
}

.tcf-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--tcf-success);
    color: #065f46;
}

.tcf-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--tcf-warning);
    color: #92400e;
}

.tcf-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--tcf-error);
    color: #991b1b;
}

.tcf-alert-info {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--tcf-primary);
    color: #1e40af;
}

/* =================================================================
   LOADERS ET ÉTATS DE CHARGEMENT
   ================================================================= */

.tcf-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tcf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--tcf-border);
    border-top: 2px solid var(--tcf-primary);
    border-radius: 50%;
    animation: tcf-spin 1s linear infinite;
}

@keyframes tcf-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =================================================================
   ANIMATIONS GLOBALES
   ================================================================= */

@keyframes tcf-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tcf-slide-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes tcf-scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tcf-fade-in {
    animation: tcf-fade-in 0.3s ease-out;
}

.tcf-slide-in {
    animation: tcf-slide-in 0.3s ease-out;
}

.tcf-scale-in {
    animation: tcf-scale-in 0.3s ease-out;
}

/* =================================================================
   UTILITAIRES
   ================================================================= */

.tcf-text-center {
    text-align: center;
}

.tcf-text-left {
    text-align: left;
}

.tcf-text-right {
    text-align: right;
}

.tcf-mb-0 {
    margin-bottom: 0;
}

.tcf-mb-1 {
    margin-bottom: var(--tcf-spacing-xs);
}

.tcf-mb-2 {
    margin-bottom: var(--tcf-spacing-sm);
}

.tcf-mb-3 {
    margin-bottom: var(--tcf-spacing-md);
}

.tcf-mb-4 {
    margin-bottom: var(--tcf-spacing-lg);
}

.tcf-mb-5 {
    margin-bottom: var(--tcf-spacing-xl);
}

.tcf-mt-0 {
    margin-top: 0;
}

.tcf-mt-1 {
    margin-top: var(--tcf-spacing-xs);
}

.tcf-mt-2 {
    margin-top: var(--tcf-spacing-sm);
}

.tcf-mt-3 {
    margin-top: var(--tcf-spacing-md);
}

.tcf-mt-4 {
    margin-top: var(--tcf-spacing-lg);
}

.tcf-mt-5 {
    margin-top: var(--tcf-spacing-xl);
}

.tcf-p-0 {
    padding: 0;
}

.tcf-p-1 {
    padding: var(--tcf-spacing-xs);
}

.tcf-p-2 {
    padding: var(--tcf-spacing-sm);
}

.tcf-p-3 {
    padding: var(--tcf-spacing-md);
}

.tcf-p-4 {
    padding: var(--tcf-spacing-lg);
}

.tcf-p-5 {
    padding: var(--tcf-spacing-xl);
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 1024px) {
    .tcf-container {
        padding: 0 var(--tcf-spacing-md);
    }

    .tcf-grid-2,
    .tcf-grid-3,
    .tcf-grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --tcf-spacing-lg: 1rem;
        --tcf-spacing-xl: 1.5rem;
        --tcf-spacing-2xl: 2rem;
    }

    .tcf-container {
        padding: 0 var(--tcf-spacing-sm);
    }

    .tcf-grid-2,
    .tcf-grid-3,
    .tcf-grid-4 {
        grid-template-columns: 1fr;
        gap: var(--tcf-spacing-md);
    }

    .tcf-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--tcf-spacing-sm);
    }

    .tcf-btn {
        width: 100%;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .tcf-container {
        padding: 0 var(--tcf-spacing-xs);
    }

    .tcf-card {
        padding: var(--tcf-spacing-md);
    }

    .tcf-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
    }
}

/* =================================================================
   ACCESSIBILITÉ
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --tcf-border: #000000;
        --tcf-text-secondary: #000000;
    }
}

/* Focus states pour l'accessibilité */
.tcf-btn:focus,
.tcf-form-input:focus,
.tcf-form-select:focus,
.tcf-form-textarea:focus {
    outline: 2px solid var(--tcf-primary);
    outline-offset: 2px;
}

/* =================================================================
   PRINT STYLES
   ================================================================= */

@media print {

    .tcf-btn,
    .tcf-card-header,
    .tcf-card-footer {
        display: none;
    }

    .tcf-card {
        border: 1px solid #000;
        box-shadow: none;
        break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }
}

/**
 * Styles pour l'interface "Mon Compte"
 * Palette de couleurs exacte :
 * - Bleu principal : #1363DF
 * - Vert : #12BB6A
 * - Bleu marine : #082A5E
 * - Rouge : #EF4444
 * - Arrière-plans : Blanc et gris très clairs
 * - Bordures : Gris clairs
 */

 /* :root {
    --mci-primary-blue: #1363DF;
    --mci-green: #12BB6A;
    --mci-navy-blue: #082A5E;
    --mci-red: #EF4444;
    --mci-background: #f8f9fa;
    --mci-border: #e9ecef;
    --mci-border-light: #E5E7EB;
    --mci-text: #333;
    --mci-text-light: #666;
    --mci-white: #fff;
    --mci-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --mci-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --mci-shadow-modal: 0 10px 25px rgba(0, 0, 0, 0.15);
    --mci-border-radius: 8px;
    --mci-border-radius-large: 12px;
} */

/* Reset et base */
.mci-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 2rem 0;
}

/* En-tête */
.mci-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.mci-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.section-py-120 {
    padding: 60px 0 !important;
    background: #F8F9FA !important;
}

.mci-title-section {
    flex: 1;
}

.mci-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.375rem 0;
    line-height: 1.3;
}

.mci-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

.mci-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Boutons */
.mci-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--mci-border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 40px;
    box-shadow: var(--mci-shadow);
}
.mci-btn>a{
    color: unset;
}

.mci-btn-primary {
    background-color: var(--mci-primary-blue);
    color: white;
}

.mci-btn-primary:hover {
    background-color: #0d4bb8;
    transform: translateY(-1px);
    box-shadow: var(--mci-shadow-hover);
}

.mci-btn-logout {
    background-color: var(--mci-red);
    color: white;
}

.mci-btn-logout:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.mci-btn-green-solid {
    background-color: var(--mci-green);
    color: white;
}
.mci-btn-green-bordered{
    background: white;
    color: var(--mci-green);
    border-color: var(--mci-green);
    border: 1px solid;
}

.mci-btn-green-solid:hover, .mci-btn-green-bordered:hover {
    background-color: #0ea371;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 187, 106, 0.3);
}

.mci-btn-primary-bordered{
    background: white;
    color: var(--mci-primary-blue);
    border-color: var(--mci-primary-blue);
    border: 1px solid;
}

.mci-btn-primary-bordered:hover{
    background-color: #1363DF;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19, 99, 223, 0.3);
}

.mci-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.mci-btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: var(--mci-shadow-hover);
}

.mci-btn-outline {
    background-color: transparent;
    border: 2px solid;
}

.mci-btn-outline.mci-btn-green {
    border-color: #12BB6A;
    color: #12BB6A;
}

.mci-btn-outline.mci-btn-green:hover {
    background-color: #12BB6A;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 187, 106, 0.3);
}

.mci-btn-outline.mci-btn-blue {
    border-color: #1363DF;
    color: #1363DF;
}

.mci-btn-outline.mci-btn-blue:hover {
    background-color: #1363DF;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19, 99, 223, 0.3);
}

/* Bouton WhatsApp */
.mci-btn-whatsapp {
    background-color: #10b981;
    color: white;
}

.mci-btn-whatsapp:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Bouton email avec contour bleu */
.mci-btn-outline.mci-btn-blue-contact {
    border-color: #3b82f6;
    color: #3b82f6;
}

.mci-btn-outline.mci-btn-blue-contact:hover {
    background-color: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mci-btn-full {
    width: 100%;
    justify-content: center;
}

.mci-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Container principal */
.mci-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Carte d'abonnement */
.mci-subscription-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    /* padding: 1.5rem; */
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    padding: 2rem 2rem 1.5rem 2rem;
}

.mci-subscription-card {
    border-top: 4px solid #12BB6A;
}

.mci-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.mci-subscription-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mci-subscription-icon {
    width: 40px;
    height: 40px;
    background-color: #12BB6A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.mci-subscription-icon svg {
    width: 20px;
    height: 20px;
}

.mci-subscription-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
}

.mci-subscription-offer {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.mci-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.mci-status-active {
    background-color: #12BB6A;
    color: white;
}

.mci-status-active svg {
    width: 16px;
    color: #12BB6A;
    height: 16px;
    background: white;
    border-radius: 50%;
}

/* Dates d'abonnement */
.mci-subscription-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.mci-date-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mci-date-icon {
    width: 32px;
    height: 32px;
    background-color: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    flex-shrink: 0;
    border: 1px solid #1363DF;
    color: white;
    border-radius: 50%;
    background: #1363DF;
}

.mci-date-icon svg {
    width: 16px;
    height: 16px;
}

.mci-date-content {
    display: flex;
    flex-direction: column;
}

.mci-date-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;

    font-size: 0.875rem;
    color: #1363DF;
    margin-bottom: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: -6px;
}

.mci-date-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}



/* Grille des modules */
.mci-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive pour la grille */
@media (max-width: 1024px) {
    .mci-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mci-modules-grid {
        grid-template-columns: 1fr;
    }
}

.mci-module-card {
    background: white;
    border-radius: var(--mci-border-radius-large);
    border: 1px solid var(--mci-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--mci-shadow);
    transition: all 0.2s ease;
    /* max-height: 280px; */
    overflow: hidden;
}

.mci-module-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--mci-shadow-hover);
}

.mci-module-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.mci-module-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.mci-icon-blue {
    background-color: #1363DF;
}

.mci-icon-green {
    background-color: #12BB6A;
}

.mci-icon-coaching {
    background-color: #1363DF;
}
.tgmenu__navbar-wrap ul li .sub-menu {
    z-index: 999 !important;
}
.tgmobile__menu .navigation li > a{
    text-transform: uppercase;
    font-size: 15px;
}

/* Styles spécifiques pour la carte coaching redesignée */
.mci-module-card.mci-coaching-card {
    background-color: #082A5E;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #1363DF 0%, #082A5E 100%);
}

.mci-coaching-card .mci-module-header {
    flex-direction: column;
    text-align: center;
    margin-bottom: .55rem;
}

.mci-coaching-card .mci-module-info {
    text-align: center;
}

.mci-coaching-card .mci-module-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mci-coaching-card .mci-module-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

.mci-coaching-card .mci-module-actions {
    width: 100%;
    gap: 0.75rem;
}

/* Boutons spécifiques pour la carte coaching */
.mci-coaching-card .mci-btn-whatsapp {
    background-color: #12BB6A;
    color: white;
    border: none;
}

.mci-coaching-card .mci-btn-whatsapp:hover {
    background-color: #0ea55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 187, 106, 0.3);
}

.mci-coaching-card .mci-btn-outline.mci-btn-blue-contact {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.mci-coaching-card .mci-btn-outline.mci-btn-blue-contact:hover {
    background-color: white;
    color: #082A5E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.mci-module-icon svg {
    width: 20px;
    height: 20px;
}

.mci-module-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
}

.mci-module-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.mci-module-description {
    margin-bottom: 1rem;
    flex: 1;
}

/* .mci-module-description p {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
} */

/* .mci-module-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
} */



/* Modal */
.mci-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.mci-modal.active {
    display: flex;
}

.mci-modal-content {
    background: white;
    border-radius: var(--mci-border-radius-large);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--mci-shadow-modal);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.mci-modal.active .mci-modal-content {
    transform: scale(1);
}

.mci-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.mci-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.mci-modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.mci-modal-close:hover {
    background-color: #f8f9fa;
    color: #1a1a1a;
}

/* Formulaire */
.mci-form {
    padding: 1.25rem;
}

.mci-form-group {
    margin-bottom: 1.5rem;
}

.mci-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mci-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.mci-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--mci-border-light);
    border-radius: var(--mci-border-radius);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-height: 40px;
    background-color: white;
}

.mci-form-group input:focus {
    outline: none;
    border-color: var(--mci-primary-blue);
    box-shadow: 0 0 0 3px rgba(19, 99, 223, 0.1);
    background-color: white;
}

.mci-form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mci-border-light);
}

/* Messages d'erreur et de succès */
.mci-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-bottom: 0.75rem;
}

.mci-success {
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mci-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 0;
    }
   

    .mci-header-actions {
        flex-direction: column;
    }

    .mci-title {
        font-size: 2rem;
    }

    .mci-subscription-dates {
        grid-template-columns: 1fr;
    }

    .mci-modules-grid {
        grid-template-columns: 1fr;
    }

    .mci-container {
        padding: 0 1rem;
    }

    .mci-subscription-card {
        padding: 1.5rem;
        border-top: 4px solid #1363DF;
    }

    .mci-subscription-card::before {
        left: 0;
        top: 0;
        right: 0;
        bottom: auto;
        width: auto;
        height: 4px;
    }

    .mci-form-actions {
        flex-direction: column;
    }
    .mci-btn-logout, .mci-btn-password {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .mci-title {
        font-size: 1.75rem;
    }
    
    .mci-cta-container {
        flex-direction: column-reverse;
    }
    .mci-cta-image {
        display: none;
    }
    .mci-subscription-header {
        flex-direction: column;
        gap: 1rem;
    }

    .mci-subscription-info {
        flex-direction: column;
        text-align: center;
    }

    .mci-date-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mci-container {
    animation: fadeIn 0.3s ease-out;
}

.mci-module-card {
    animation: fadeIn 0.3s ease-out;
    animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

/* États de chargement */
.mci-loading {
    opacity: 0.6;
    pointer-events: none;
}

.mci-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1363DF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Accessibilité */
.mci-btn:focus,
.mci-modal-close:focus,
.mci-form-group input:focus {
    outline: 2px solid var(--mci-primary-blue);
    outline-offset: 2px;
}

/* Support pour les préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {

    .mci-container,
    .mci-module-card {
        animation: none;
    }

    .mci-btn:hover {
        transform: none;
    }
}

/* ========================================
   SECTION SÉRIES DE COMPRÉHENSION
   ======================================== */

.mci-comprehension-section {
    margin: 2rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mci-comprehension-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* .mci-comprehension-title-section h2 {
    font-size: 1.85rem;
    font-weight: 500;
    margin: 0 0 0.2rem 0;
    color: #1a1a1a;
} */

.mci-comprehension-subtitle {
    /* color: #666; */
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
}

.mci-comprehension-tabs,
.mci-comprehension-bottom-tabs {
    display: flex;
    gap: 0.5rem;
}

.mci-tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #666;
    text-decoration: none;
}

.mci-btn--co {
    border-color: #12BB6A;
    color: #12BB6A;
}

.mci-btn--co.active {
    background: #12BB6A !important;
    color: #fff;
}

.mci-btn--ce {
    border-color: #1363DF;
    color: #1363DF;
}

.mci-btn--ce.active {
    background: #1363DF !important;
    color: #fff;
}


.mci-tab-button svg {
    width: 16px;
    height: 16px;
}

/* .mci-tab-button.active {
    border-color: #1363DF;
    background: #1363DF;
    color: #fff;
} */

.mci-tab-button:hover:not(.active) {
    border-color: #1363DF;
    color: #1363DF;
}

.mci-comprehension-stats {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.mci-stats-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.mci-stats-header p {
    margin: 0 0 1rem 0;
    color: #666;
}

.mci-progress-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.mci-progress-bar-container {
    flex: 1;
    min-width: 200px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.mci-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.mci-progress-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.mci-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.mci-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mci-stat-dot.completed {
    background: #12BB6A;
}

.mci-stat-dot.available {
    background: #1363DF;
}

.mci-stat-dot.locked {
    background: #999;
}

.mci-progress-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.mci-progress-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.mci-progress-percentage {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
}
.tgmenu__navbar-wrap ul li .sub-menu {
    z-index: 9999 !important
}

.mci-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mci-serie-card {
    background: #fff;
    border: 0.09rem solid #e0e0e0;
    border-color: rgba(19, 99, 223, 0.3);
    border-radius: 8px;
    padding: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
}

.mci-serie-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mci-serie-card.completed {
    border-color: rgba(18, 187, 106, 0.3);
    background: linear-gradient(135deg, #f8fff9 0%, #fff 100%);
}

.mci-serie-card.available {
    border-color: rgba(19, 99, 223, 0.3);
}

.mci-serie-card.card--orale.available {
    border-color: rgba(18, 187, 106, 0.3) !important;
}

.mci-serie-card.locked {
    opacity: 0.6;
    background: #f8f9fa;
}

.mci-serie-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mci-serie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mci-serie-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.mci-serie-icon.document-icon {
    background: linear-gradient(135deg, #1363DF 0%, #1e40af 100%);
}

.mci-serie-icon.headphone-icon {
    background: linear-gradient(135deg, #12BB6A 0%, #059669 100%);
}

.mci-serie-icon svg {
    width: 18px;
    height: 18px;
}

.mci-serie-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mci-serie-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
}

.mci-serie-type {
    color: #666;
    margin: 0;
    font-size: 1.04rem;
    line-height: 1;
    /* margin-bottom: .5rem; */
}

.mci-serie-pro {
    /* display: none; */
    /* align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    flex-shrink: 0; */

    border-color: #feb602;
    color: #082A5E;
    background: #feb602;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #feb602;
    /* background: #f8f9fa; */
    flex-shrink: 0;
}

.mci-serie-pro span svg{
    margin-top: -3px !important;
}

.mci-serie-duration.ecrite {
    border-color: #1363DF;
    color: #1363DF;
    background: rgba(19, 99, 223, 0.1);
}
/* .mci-serie-pro {
    border-color: #feb602;
    color: #082A5E;
    background: #feb602;
    font-weight: 500;
    text-transform: uppercase;
} */

.mci-serie-duration.orale {
    border-color: #12BB6A;
    color: #12BB6A;
    background: rgba(18, 187, 106, 0.1);
}

.mci-serie-duration svg {
    width: 14px;
    height: 14px;
}

.mci-serie-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 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;
    margin-top: .3rem;
}

.mci-serie-button.available {
    background: linear-gradient(135deg, #1363DF 0%, #1e40af 100%);
}

.mci-serie-button.available:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(19, 99, 223, 0.25);
}

.mci-serie-button.completed {
    background: linear-gradient(135deg, #12BB6A 0%, #059669 100%);
}

.mci-serie-button.completed:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(18, 187, 106, 0.25);
}

/* Couleurs des boutons selon le type de compréhension */
.mci-serie-button.ecrite {
    background: linear-gradient(135deg, #1363DF 0%, #1e40af 100%);
}

.mci-serie-button.ecrite:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(19, 99, 223, 0.25);
}

.mci-serie-button.orale {
    background: linear-gradient(135deg, #12BB6A 0%, #059669 100%);
}

.mci-serie-button.orale:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(18, 187, 106, 0.25);
}

.mci-serie-button.locked {
    background: #999;
    cursor: not-allowed;
}

.mci-serie-button svg {
    width: 14px;
    height: 14px;
}

.mci-comprehension-bottom-tabs {
    justify-content: flex-start;
    margin-top: 1rem;
}

/* Responsive pour la section compréhension */
@media (max-width: 768px) {
    .mci-comprehension-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    .mci-cta-content h3 {
        font-size: 20px !important;
    }
    .mci-comprehension-section {
        padding: 2rem 1.25rem !important;
    }
    .mci-serie-type {
        font-size: .9rem;
    }

    .mci-comprehension-header {
        flex-direction: column;
        align-items: stretch;
    }

    .mci-comprehension-title-section h2 {
        font-size: 1.5rem;
    }

    .mci-progress-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .mci-progress-stats {
        justify-content: center;
    }

    .mci-progress-info {
        margin-left: 0;
        justify-content: center;
    }

    .mci-series-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mci-comprehension-tabs,
    .mci-comprehension-bottom-tabs {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .mci-tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mci-progress-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .mci-serie-card {
        padding: 1rem;
    }
}