﻿.learning-title {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    letter-spacing: 1px;
}

.learning-description {
    max-width: 1000px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.15rem;
    color: #444;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.2rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: justify-all;
}

.accordion-categories {
    margin-top: 1rem;
}

.category-accordion-item {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 0.7rem;
    background: #f8f9fa;
    box-shadow: 0 1px 4px rgba(44,62,80,0.04);
}

.category-accordion-header {
    padding: 0.8rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
    transition: background 0.15s;
}

    .category-accordion-header:hover {
        background: #e3f0ff;
    }

.category-header-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.category-title {
    font-weight: 500;
    margin-left: 0.2rem;
}

.category-cardcount {
    margin-left: auto;
    font-size: 1em;
    min-width: 2.2em;
    text-align: right;
}

.category-accordion-body {
    padding: 0.7rem 2rem 0.7rem 2.5rem;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.badge {
    font-size: 0.95em;
    vertical-align: middle;
    text-align: center;
}


.module-list {
    max-width: 900px;
    margin: 0 auto;
}

.module-card {
    background: #fff;
    border-radius: 18px;
    border: 1.5px solid #e0e0e0;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
    cursor: pointer;
    overflow: hidden;
}

    .module-card:hover {
        box-shadow: 0 4px 16px rgba(44,62,80,0.10);
    }

.module-header {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1.2rem 2rem;
    background: linear-gradient(90deg, #e3f0ff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e0e0e0;
    border-radius: 18px 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .module-header .chevron {
        font-size: 1.5rem;
        color: #888;
        transition: transform 0.2s;
    }

.module-content {
    padding: 1.2rem 2rem;
    background: #f8f9fa;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-list-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.module-card-wide {
    background: #fff;
    border-radius: 22px;
    border: 1.5px solid #e0e0e0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
    cursor: pointer;
    transition: box-shadow 0.2s, border 0.2s;
    padding: 2.2rem 2.5rem;
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 600;
    justify-content: space-between;
}

    .module-card-wide:hover {
        box-shadow: 0 6px 24px rgba(44,62,80,0.13);
        border: 1.5px solid #b3d4fc;
    }

.module-header-wide {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.module-detail-card {
    background: #fff;
    border-radius: 22px;
    border: 1.5px solid #e0e0e0;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    max-width: 900px;
    margin: 0 auto 2rem auto;
}

.module-detail-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 1.2rem;
    color: #2c3e50;
}

.module-detail-description {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 1.5rem;
}

.module-detail-section {
    margin-bottom: 1.5rem;
}

.module-categories-list {
    list-style: none;
    padding-left: 0;
}

    .module-categories-list li {
        margin-bottom: 0.5rem;
    }

.category-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
}

    .category-link:hover {
        color: #0d47a1;
        text-decoration: underline;
    }

.module-transcription {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    font-family: 'Fira Mono', monospace;
    font-size: 1.05rem;
}

.module-video-container {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    padding: 0;
}

    .module-video-container video {
        width: 100%;
        height: 460px;
        display: block;
        border-radius: 12px; /* Pour que la vidéo épouse les coins arrondis */
        margin: 0;
        background: #000; /* Optionnel : fond noir si la vidéo n'est pas 16/9 */
    }

.module-card-wide.module-completed {
    background: #e6f4ea !important;
    border-color: #198754 !important;
    color: #198754 !important;
    box-shadow: 0 2px 12px rgba(25,135,84,0.12);
}

.module-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.badge-small {
    font-size: 1rem;
    padding: 0.18em 0.7em;
    border-radius: 1em;
    vertical-align: middle;
    height: 1.6em;
    line-height: 1.6em;
    display: inline-block;
}

.learning-title,
.module-detail-title {
    gap: 0.7rem;
}

@media (max-width: 600px) {
    .learning-title,
    .module-detail-title {
        flex-direction: column !important;
        gap: 0.3rem;
        align-items: center;
    }

    .badge-small {
        margin-left: 0 !important;
        margin-top: 0.3rem;
    }

    .module-detail-card {
        padding: 2.5rem 1rem 2rem 1rem;
    }
}
