/**
 * CSS pour les shortcodes combinés Expression Écrite et Expression Orale
 * Affiche les mois dans une sidebar et les combinaisons dans le contenu principal
 * Aligné sur le design « Mon Compte » (mci-*)
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --tcf-eo-bg-page: #f1f5f9;
    --tcf-eo-text: #333;
    --tcf-eo-text-strong: #0f172a;
    --tcf-eo-text-muted: #64748b;
    --tcf-eo-navy: #082a5e;
    --tcf-eo-primary: #1363df;
    /* Accent EO (aligné avec la carte blanche) */
    --tcf-eo-green: #1363df;
    --tcf-eo-border: #e2e8f0;
    --tcf-eo-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --tcf-eo-card-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --tcf-eo-radius-card: 12px;
    --tcf-eo-radius-btn: 8px;
}

.tcf-ee-combined-container,
.tcf-eo-combined-container {
    box-sizing: border-box;
}

.tcf-ee-combined-container *,
.tcf-eo-combined-container *,
.tcf-ee-combined-container *::before,
.tcf-eo-combined-container *::after {
    box-sizing: border-box;
}

/* Container principal — même ressenti que .mci-container (hub / abonnement) */
.tcf-ee-combined-container,
.tcf-eo-combined-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--tcf-eo-text);
    background-color: var(--tcf-eo-bg-page);
    min-height: 560px;
}

/* Layout EE (2 colonnes) */
.tcf-ee-combined-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* Forcer le fond identique à EO (thème parfois override) */
    background: var(--tcf-eo-bg-page) !important;
    background-color: var(--tcf-eo-bg-page) !important;
}

/* Layout EO: CTA full-width + grille 2 colonnes en dessous */
.tcf-eo-combined-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tcf-eo-combined-layout {
    display: flex;
    gap: 30px;
    width: 100%;
    min-width: 0;
}

.tcf-ee-combined-layout {
    display: flex;
    gap: 30px;
    width: 100%;
    min-width: 0;
}

/* Page wrapper (theme section) */
body .section-py-120 {
    background: var(--tcf-eo-bg-page) !important;
    background-color: var(--tcf-eo-bg-page) !important;
    background-image: none !important;
}

/* ============================================
   SIDEBAR GAUCHE
   ============================================ */
.tcf-ee-sidebar {
    width: 290px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    height: calc(100vh + 200px);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.tcf-ee-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--tcf-eo-border);
    border-radius: var(--tcf-eo-radius-card);
    box-shadow: var(--tcf-eo-card-shadow);
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    margin-bottom: 20px;
}

.tcf-ee-sidebar-card::-webkit-scrollbar {
    width: 3px;
}

.tcf-ee-sidebar-card::-webkit-scrollbar-track {
    background: transparent;
}

.tcf-ee-sidebar-card::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 2px;
}

.tcf-ee-sidebar-card::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
}

/* Liste des mois */
.tcf-ee-months-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Breathing room */
}

/* Bouton de mois */
.tcf-ee-month-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: white; /* No 1px border, atmospheric stacking */
    border: none;
    border-radius: 12px; /* var(--tcf-radius-md) */
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    text-align: left;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.tcf-ee-month-btn:hover {
    background: #f1f5f9;
}

.tcf-ee-month-btn.active {
    background: #f8fafc;
    box-shadow: inset 2px 0 0 var(--tcf-eo-primary), var(--tcf-eo-card-shadow-sm);
}

.tcf-ee-month-btn.active::before {
    display: none;
}

.tcf-ee-month-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tcf-ee-month-btn:hover .tcf-ee-month-icon {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1363DF;
}

.tcf-ee-month-btn.active .tcf-ee-month-icon {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    box-shadow: inset 0 2px 4px rgba(29, 78, 216, 0.05);
}

.tcf-ee-month-icon svg {
    width: 18px;
    height: 18px;
}

.tcf-ee-month-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.tcf-ee-month-name {
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #334155;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.tcf-ee-month-btn.active .tcf-ee-month-name {
    color: #082A5E; /* Deep navy text */
    font-weight: 700;
}

.tcf-ee-month-count {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: #f8fafc;
    padding: 2px 8px;
    border-radius: 99px; /* Pill badge */
    display: inline-table;
    width: fit-content;
    transition: all 0.3s ease;
}

.tcf-ee-month-btn.active .tcf-ee-month-count {
    background: var(--tcf-eo-green);
    color: #ffffff;
    box-shadow: none;
}

/* Icône Expression Orale (headphone) */
.tcf-ee-month-icon.tcf-eo-icon svg {
    color: #64748b;
}

.tcf-ee-month-btn.active .tcf-ee-month-icon.tcf-eo-icon {
    background: #eff6ff;
    color: var(--tcf-eo-primary);
}

.tcf-ee-month-btn.active .tcf-ee-month-icon.tcf-eo-icon svg {
    color: var(--tcf-eo-primary);
}

/* ============================================
   EO SIDEBAR — REDESIGN APP-ICON STYLE
   ============================================ */

/* Label de section en tête de liste */
.tcf-ee-sidebar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94A3B8;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 0;
    display: none;
}

/* Pas d'accent top — le style vient des éléments */
.tcf-eo-combined-container .tcf-ee-sidebar-card {
    border-top: 1px solid #E2E8F0;
}

/* Pas de connecteur vertical */
.tcf-eo-combined-container .tcf-ee-months-list {
    position: relative;
    gap: 4px;
    padding: 12px 10px;
}

/* Bouton — transparent idle, z-index au-dessus du connecteur */
:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    gap: 12px;
    position: relative;
    z-index: 1;
    transition: background 0.15s ease;
}

/* Hover — très léger */
:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn:hover {
    background: #F8FAFC;
}

/* Icône — carré arrondi (app-icon style), gris en idle */
:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #F1F5F9;
    border: none;
    box-shadow: none;
    color: #94A3B8;
    flex-shrink: 0;
}

/* Hover icône — légèrement plus sombre */
:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn:hover .tcf-ee-month-icon {
    background: #E2E8F0;
    border: none;
    color: #64748b;
}

/* Icône active — verte solide, icône blanche visible */
:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn.active .tcf-ee-month-icon,
:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn.active .tcf-ee-month-icon.tcf-eo-icon {
    background: var(--tcf-eo-green);
    border: none;
    color: #ffffff;
    box-shadow: var(--tcf-eo-card-shadow-sm);
}

:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn.active .tcf-ee-month-icon svg {
    color: #ffffff;
}

/* Bouton actif — carte blanche légèrement élevée */
:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn.active {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    border: 0.1rem solid var(--tcf-eo-green);
}

/* Nom du mois — rangée avec badge */
.tcf-ee-month-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Nom idle — gris */
:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-name {
    color: #0F172A;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Nom actif — noir sharp */
:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn.active .tcf-ee-month-name {
    color: #0F172A;
    font-weight: 600;
}

/* Badge "Nouveau" */
.tcf-ee-month-badge-new {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    background: #DCFCE7;
    color: #15803d;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

/* Count — texte simple avec icône inline */
:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: #475569;
    text-transform: none;
    letter-spacing: 0;
}

/* Count actif — légèrement plus visible */
:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn.active .tcf-ee-month-count {
    background: none;
    color: #475569;
    box-shadow: none;
}

/* Chevron — flèche droite */
.tcf-ee-month-chevron {
    color: #CBD5E1;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn.active .tcf-ee-month-chevron {
    color: var(--tcf-eo-green);
}

:is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn:hover .tcf-ee-month-chevron {
    color: #94A3B8;
}

/* Loader du mois */
.tcf-ee-month-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: #1363DF;
    border-radius: 50%;
    animation: tcf-ee-spin 0.8s linear infinite;
    flex-shrink: 0;
}

.tcf-eo-combined-container .tcf-ee-month-loader {
    border-top-color: #12BB6A;
}

.tcf-ee-month-btn.loading .tcf-ee-month-loader {
    display: block;
}

.tcf-ee-month-btn.loading .tcf-ee-month-icon {
    display: none;
}

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

/* ============================================
   CONTENU PRINCIPAL
   ============================================ */
.tcf-ee-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tcf-ee-content-header {
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid var(--tcf-eo-border);
    border-radius: var(--tcf-eo-radius-card);
    padding: 24px;
    box-shadow: var(--tcf-eo-card-shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tcf-eo-section-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: #EEF2FF;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #1e4db7;
    width: fit-content;
    margin-bottom: 6px;
}

.tcf-ee-content-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 700;
    color: #082A5E;
    margin: 0;
    letter-spacing: -0.01em;
}

.tcf-ee-content-subtitle {
    font-family: 'Poppins', sans-serif;
    color: var(--tcf-eo-text-muted);
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

/* Zone de chargement */
.tcf-ee-topics-container {
    min-height: 400px;
    position: relative;
}

/* Loader initial */
.tcf-ee-initial-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: #ffffff;
    border: 1px solid var(--tcf-eo-border);
    border-radius: var(--tcf-eo-radius-card);
    box-shadow: var(--tcf-eo-card-shadow);
}

.tcf-ee-initial-loader .loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--tcf-eo-primary);
    border-radius: 50%;
    animation: tcf-ee-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.tcf-ee-initial-loader .loader-text {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Message vide */
.tcf-ee-empty-state {
    padding: 48px 24px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: var(--tcf-eo-radius-card);
    box-shadow: var(--tcf-eo-card-shadow);
}

.tcf-ee-empty-state svg {
    width: 64px;
    height: 64px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.tcf-ee-empty-state h3 {
    color: #475569;
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.tcf-ee-empty-state p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   EXPRESSION ORALE COMBINED - TASKS CONTENT
   ============================================ */
.tcf-eo-combined-container .tcf-speaking-lesson-details-container {
    padding: 0;
    max-width: 100%;
}

.tcf-eo-combined-container .tcf-tasks-content {
    background: #ffffff;
    border: 1px solid var(--tcf-eo-border);
    border-radius: var(--tcf-eo-radius-card);
    box-shadow: var(--tcf-eo-card-shadow);
    padding: 24px;
    overflow: hidden;
}

/* Navigation des tâches améliorée */
.tcf-eo-combined-container .tcf-tasks-navigation {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    width: fit-content;
    border: 1px solid var(--tcf-eo-border);
}

.tcf-eo-combined-container .tcf-task-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    min-height: 38px;
    background: transparent;
    border: none;
    border-radius: var(--tcf-eo-radius-btn);
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tcf-eo-combined-container .tcf-task-button svg {
    width: 16px;
    height: 16px;
}

.tcf-eo-combined-container .tcf-task-button:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #0f172a;
    transform: none;
    box-shadow: none;
}

.tcf-eo-combined-container .tcf-task-button.active {
    background: var(--tcf-eo-green);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(18, 187, 106, 0.3);
}

/* Task header — teinte verte pour EO */
.tcf-eo-combined-container .tcf-task-header {
    background: #F0FDF4;
    color: #082A5E;
    border-bottom-color: #bbf7d0;
}

/* Corps de la tâche */
.tcf-eo-combined-container .tcf-task-body {
    padding: 0;
}

/* Titres des parties */
.tcf-eo-combined-container .tcf-part-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tcf-eo-navy);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tcf-eo-green);
    display: inline-block;
    letter-spacing: -0.01em;
}

/* Container des sujets */
.tcf-eo-combined-container .tcf-subjects-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Items de sujet améliorés */
.tcf-eo-combined-container .tcf-subject-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.tcf-eo-combined-container .tcf-subject-item:hover {
    transform: none;
    border-color: #cbd5e1;
}

/* Header du sujet */
.tcf-eo-combined-container .tcf-subject-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    cursor: pointer;
    border-bottom: none;
    transition: background 0.2s ease;
}

.tcf-eo-combined-container .tcf-subject-header:hover {
    background: #f8fafc;
}

.tcf-eo-combined-container .tcf-subject-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--tcf-eo-text-strong);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.tcf-eo-combined-container .tcf-subject-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tcf-eo-combined-container .tcf-subject-toggle svg {
    width: 18px;
    height: 18px;
    color: #64748b;
}

.tcf-eo-combined-container .tcf-subject-item.expanded .tcf-subject-toggle {
    background: var(--tcf-eo-green);
    transform: rotate(180deg);
}

.tcf-eo-combined-container .tcf-subject-item.expanded .tcf-subject-toggle svg {
    color: #ffffff;
}

/* Contenu du sujet déplié */
.tcf-eo-combined-container .tcf-subject-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.tcf-eo-combined-container .tcf-subject-item.expanded .tcf-subject-content {
    padding: 20px;
    max-height: unset;
}

/* Corrections */
.tcf-eo-combined-container .tcf-corrections-list {
    background: transparent;
    padding: 0;
    gap: 8px;
}

.tcf-eo-combined-container .tcf-correction-line {
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 8px;
    /* border-left: 3px solid #12BB6A; */
}

.tcf-eo-combined-container .tcf-correction-number {
    color: var(--tcf-eo-green);
    font-weight: 600;
}

.tcf-eo-combined-container .tcf-correction-text {
    color: #334155;
    font-size: 0.9rem;
}

/* Section favorable/défavorable pour tâche 3 */
.tcf-eo-combined-container .tcf-correction-section {
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .tcf-eo-combined-container .tcf-correction-section {
        padding: 4px;
        border: 0;
    }
}

.tcf-eo-combined-container .tcf-correction-section-title {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tcf-eo-green);
    text-transform: lowercase;
    letter-spacing: 0.03em;
    padding: 6px 14px;
    border-radius: 8px;
    /* #1363df = rgb(19, 99, 223) */
    background: rgba(19, 99, 223, 0.1); 
    border: 1px solid rgba(19, 99, 223, 0.3);
    margin-bottom: 20px;
}

.tcf-eo-combined-container .tcf-argument {
    background: #ffffff;
    border-left: 3px solid var(--tcf-eo-green);
    padding: 12px 16px;
    border-radius: 6px;
    /* margin-bottom: 8px; */
}

.tcf-eo-combined-container .tcf-argument-text {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
}

.tcf-eo-combined-container .tcf-argument-explication {
    color: #64748b;
    font-size: 0.9rem;
    font-style: normal;
}

/* Partie de tâche */
.tcf-eo-combined-container .tcf-task-part {
    margin-bottom: 32px;
}

.tcf-eo-combined-container .tcf-task-part:last-child {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {

    .tcf-ee-combined-container,
    .tcf-eo-combined-container {
        flex-direction: column;
        gap: 24px;
        padding: 1.5rem 1.25rem 2rem;
    }

    .tcf-eo-combined-layout {
        flex-direction: column;
        gap: 24px;
    }

    .tcf-ee-combined-layout {
        flex-direction: column;
        gap: 24px;
    }

    .tcf-ee-sidebar {
        display: contents; /* Removes the wrapper from the box tree so its children participate in the flex container */
    }

    .tcf-ee-sidebar-card {
        order: 1;
        margin-bottom: 0;
        padding: 8px; /* Override large desktop padding */
    }

    .tcf-ee-content {
        order: 2;
    }

    .tcf-sidebar-ad-card {
        order: 3;
        margin-top: 0;
    }

    .tcf-ee-months-list {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    .tcf-ee-months-list::-webkit-scrollbar {
        height: 6px;
    }

    .tcf-ee-months-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .tcf-ee-months-list::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

    .tcf-ee-month-btn {
        flex: 0 0 auto;
        width: auto;
        scroll-snap-align: start;
        padding: 10px 14px;
    }

    .tcf-ee-month-btn.active::before {
        display: none;
    }

    .tcf-ee-month-btn.active {
        background: #1363df;
        color: #ffffff;
        box-shadow: var(--tcf-eo-card-shadow);
    }

    .tcf-ee-month-btn.active .tcf-ee-month-name {
        color: #ffffff;
    }

    .tcf-ee-month-btn.active .tcf-ee-month-count {
        color: rgba(255, 255, 255, 0.85);
    }

    /* EO mobile — adapter icône */
    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 12px;
        gap: 6px;
        min-width: 90px;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-icon {
        width: 38px;
        height: 38px;
    }

    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-name-row {
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }

    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-count,
    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-chevron {
        display: none;
    }

    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn.active {
        background: transparent;
        box-shadow: none;
        border: none;
    }

    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-btn.active .tcf-ee-month-icon {
        box-shadow: var(--tcf-eo-card-shadow-sm);
    }
}

/* Tablette / petit desktop : garde les marges des cartes chargées en AJAX */
@media (max-width: 768px) {

    .tcf-eo-combined-container .tcf-ee-content-header {
        padding: 20px 18px;
    }

    .tcf-eo-combined-container .tcf-tasks-content {
        padding: 20px 18px;
    }

    .tcf-eo-combined-container .tcf-task-body {
        padding: 0;
    }

    .tcf-eo-combined-container .tcf-subject-header {
        padding: 16px 18px !important;
    }

    .tcf-eo-combined-container .tcf-subject-item.expanded .tcf-subject-content {
        padding: 0px !important;
    }

    .tcf-eo-combined-container .tcf-tasks-navigation {
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
    }

    .tcf-eo-combined-container .tcf-task-button {
        flex: 1 1 auto;
        min-width: 140px;
        justify-content: center;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {

    .tcf-eo-combined-container .tcf-tasks-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .tcf-eo-combined-container .tcf-task-button {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {

    .tcf-ee-combined-container,
    .tcf-eo-combined-container {
        padding: 0px;
    }
    .tcf-actions {
        margin-bottom: 50px;
    }

    .tcf-ee-sidebar-card {
        margin-top: -24px !important;
    }

    /* Global theme section padding on mobile */
    .section-py-120 {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    .tcf-ee-sidebar-header {
        padding: 16px 18px;
    }

    .tcf-ee-sidebar-header h2 {
        font-size: 1rem;
    }

    .tcf-ee-months-list {
        padding: 4px;
    }

    .tcf-ee-month-btn {
        padding: 10px;
    }

    .tcf-ee-month-icon {
        display: none;
    }

    /* EO : conserve l’icône (repère visuel sur petits écrans) */
    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .tcf-ee-month-icon {
        display: flex;
    }

    .tcf-ee-month-icon svg {
        width: 18px;
        height: 18px;
    }

    .tcf-ee-month-name {
        font-size: 0.9rem;
    }

    .tcf-ee-content-title {
        font-size: 1.2rem;
        line-height: 1.25;
    }

    .tcf-eo-combined-container .tcf-tasks-content {
        padding: 18px 16px;
    }

    .tcf-eo-combined-container .tcf-part-title {
        margin-left: 0;
    }

    .tcf-eo-combined-container .tcf-sidebar-ad-card {
        padding: 16px 14px;
    }

    /* CTA (top card) — mobile stacking & tighter spacing */
    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .mci-cta-uw_section {
        margin: 0 0 16px 0 !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    }

    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .mci-cta-container {
        padding: 16px !important;
        gap: 14px !important;
        border-radius: 10px;
    }

    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .mci-cta-content {
        min-width: 0 !important;
    }

    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .mci-cta-content h3 {
        font-size: 1.05rem !important;
        margin-bottom: 10px !important;
        line-height: 1.25 !important;
    }

    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .mci-cta-content p {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
    }

    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .mci-cta-button {
        width: 100% !important;
        justify-content: center !important;
        white-space: normal !important;
        padding: 12px 14px !important;
    }

    :is(.tcf-ee-combined-container, .tcf-eo-combined-container) .mci-cta-image {
        display: none !important;
    }
}

/* ============================================
   SCROLLBAR PERSONNALISÉE
   ============================================ */
/* Standard scrollbar for other browsers */
.tcf-ee-sidebar-card {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

/* ==========================================================================
   WhatsApp Ad Card (Sidebar)
   ========================================================================== */

.tcf-sidebar-ad-card {
    background: #ffffff;
    border-radius: var(--tcf-eo-radius-card);
    padding: 24px;
    margin-top: 24px;
    border: 1px solid var(--tcf-eo-border);
    box-shadow: var(--tcf-eo-card-shadow);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
    flex-shrink: 0;
}

.tcf-sidebar-ad-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    border-color: #cbd5e1;
}

.tcf-ad-card-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1e4db7;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.tcf-ad-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 10px;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.01em;
}

.tcf-ad-card-text {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 640px) {
    .tcf-ad-card-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .tcf-ad-card-text {
        font-size: 0.92rem;
        margin-bottom: 0;
    }

    .tcf-ad-card-badge {
        margin-bottom: 10px;
    }
}

/* Premium Ad Modifications */
.tcf-sidebar-ad-card.premium-ad {
    background: linear-gradient(135deg, #082A5E 0%, #1a56db 100%);
    border: none;
    box-shadow: 0 10px 25px -5px rgba(8, 42, 94, 0.4);
}

.tcf-sidebar-ad-card.premium-ad:hover {
    box-shadow: 0 15px 30px -5px rgba(8, 42, 94, 0.5);
    border-color: transparent;
}

.tcf-sidebar-ad-card.premium-ad .tcf-ad-card-badge {
    background: #ffffff;
    color: #082A5E;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tcf-sidebar-ad-card.premium-ad .tcf-ad-card-title {
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tcf-sidebar-ad-card.premium-ad .tcf-ad-card-text {
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* EO Specific - Ad Card propre avec accent vert */
.tcf-eo-combined-container .tcf-sidebar-ad-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--tcf-eo-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tcf-eo-combined-container .tcf-sidebar-ad-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    border-color: #bfdbfe;
    border-top-color: var(--tcf-eo-green);
}

.tcf-eo-combined-container .tcf-ad-card-badge {
    background: #EEF2FF;
    color: #1e4db7;
    border: 1px solid #dbeafe;
}

.tcf-eo-combined-container .tcf-ad-card-title {
    color: #082A5E;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tcf-eo-combined-container .tcf-ad-card-text {
    color: #475569;
    font-weight: 400;
}

.tcf-eo-combined-container .tcf-btn-whatsapp {
    background: var(--tcf-eo-green) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.tcf-eo-combined-container .tcf-btn-whatsapp:hover {
    background: #0d4bb8 !important;
    color: #ffffff !important;
}

.tcf-btn-whatsapp {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #27B43E !important;
    color: white !important;
    text-decoration: none !important;
    padding: 12px 16px;
    min-height: 44px;
    border-radius: var(--tcf-eo-radius-btn);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease !important;
    width: 100%;
    box-sizing: border-box;
}

.tcf-btn-whatsapp:hover {
    background: #20ba5a !important;
    color: white !important;
}

.tcf-btn-whatsapp svg {
    width: 18px;
    height: 18px;
}