/**
 * 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
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');


: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;
}

.breadcrumb-area {
    display: none !important;
}

/* 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;
}

.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-user-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-weight: 500 !important;
}

.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;
    font-family: "Poppins", sans-serif;
}

.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);
    color: white;
}

.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;
    border-color: #12BB6A;
}

.mci-subscription-card.inactive {
    border-color: red;
}

.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: 1rem;
    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;
    text-transform: capitalize;
}

.mci-status-badge.active {
    background-color: #12BB6A;
    color: white;
}

.mci-status-badge.inactive {
    background-color: #EF4444;
    color: white;
}

.mci-status-badge.inactive svg {
    display: none;
}

.mci-status-badge 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: 35px;
    height: 35px;
    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-subscription-icon .inactive {
    background-color: #EF4444;
    color: white;
}

.mci-subscription-card.inactive .mci-date-icon {
    border-color: #f5c6cb;
    background: #f8d7da;
    color: #721c24;

}

.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: #082A5E;
    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: 2rem;
    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-user-info {
        gap: 0 !important;
    }
    .account__header {
        padding: 1rem !important;
    }
}

.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: 360px; */
    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;
}

/* 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;
    font-family: "Poppins", sans-serif;
}

.mci-coaching-card .mci-module-header {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.5rem;
}

.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;
    font-family: "Poppins", sans-serif;
    margin-top: 20px;
}

.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: 1rem;
    color: #6c757d;
    margin: 0;
}

.mci-module-description {
    margin-bottom: 1rem;
    flex: 1;
}

.mci-module-description p {
    font-size: 15px;
    color: #464f57;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    font-family: "Poppins", sans-serif;
}

.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 {
        display: flex;
        flex-direction: column-reverse;
    }

    .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-module-subtitle {
        line-height: 1.2;
    }

    .mci-subscription-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .mci-subscription-info {
        flex-direction: column;
        text-align: center;
    }

    .mci-btn {
        justify-content: center;
    }

    .mci-date-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .mci-progress-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .mci-serie-card {
        padding: 1rem;
    }

    .mci-module-card {
        max-height: unset;
    }
}

/* 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
   ======================================== */
/* .section-py-120 .container:first-child {
    max-width: 1500px;
} */

.mci-comprehension-section {
    margin: 2rem 0;
    padding: 4rem;
    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: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.mci-comprehension-title-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    color: #1a1a1a;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;

}

.mci-comprehension-subtitle {
    /* color: #666; */
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
}

.mci-comprehension-tabs,
.mci-comprehension-bottom-tabs {
    display: flex;
    gap: 1rem;
}

.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;
}

.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.2rem 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: 1rem;
    line-height: 1;
}

.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: 12px;
    height: 12px;
}

.mci-serie-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 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: 8px;
}

.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: 3rem;
}

/* Responsive pour la section compréhension */
@media (max-width: 768px) {
    .mci-comprehension-section {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }

    .mci-comprehension-header {
        flex-direction: column;
        align-items: stretch;
    }

    .mci-comprehension-title-section h2 {
        font-size: 1.3rem;
    }

    .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;
    }
}

/* ========================================
   Messages inline pour le modal (alignés au design login)
   ======================================== */
.tcfa-error-message,
.tcfa-success-message {
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    display: none !important;
    animation: fadeIn 0.3s ease-in-out;
}

.tcfa-error-message {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.tcfa-success-message {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Visibilité contrôlée explicitement par classe */
#mci-password-error,
#mci-password-success {
    display: none !important;
}

#mci-password-error.is-visible,
#mci-password-success.is-visible {
    display: block !important;
}

.mci-field-error {
    color: #dc3545;
    font-size: 13px;
}

/* ========================================
    Password visibility toggle (scoped)
    ======================================== */
.mci-form-group.mci-has-toggle {
    position: relative;
}

.mci-form-group.mci-has-toggle input[type="password"],
.mci-form-group.mci-has-toggle input[type="text"] {
    padding-right: 2.25rem;
}

.mci-toggle-password-btn {
    position: absolute;
    top: 52px;
    right: 10px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #6c757d;
}

.mci-toggle-password-btn:hover,
.mci-toggle-password-btn:focus {
    color: #1363DF;
    outline: none;
}

.mci-toggle-password-icon {
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Eye (show) */
.mci-toggle-password-btn:not(.is-visible) .mci-toggle-password-icon {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12Z' stroke='%236C757D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3' stroke='%236C757D' stroke-width='2'/%3E%3C/svg%3E");
}

/* Eye-off (hide) */
.mci-toggle-password-btn.is-visible .mci-toggle-password-icon {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.94 17.94A10.94 10.94 0 0 1 12 19C5 19 1 12 1 12a21.8 21.8 0 0 1 5.06-5.94M9.9 4.24A10.94 10.94 0 0 1 12 5c7 0 11 7 11 7a21.8 21.8 0 0 1-3.16 4.19M1 1l22 22' stroke='%231363DF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}