/* ============================================================
   EASY ACADEMY — STUDIO FORMATEUR (Phase 8)
   Espace de travail premium : barre latérale sombre, contenu clair,
   cartes de chiffres, graphiques SVG maison, studio de production.
   S'appuie sur les jetons du design system (app.css) : ne redéfinit
   jamais une couleur de marque, il la réutilise.
   ============================================================ */

:root {
    --ea-studio-side: 268px;
    --ea-studio-top: 68px;
    --ea-studio-bg: #F1F4FA;
    --ea-ink: #101C36;
    --ea-ink-soft: #64748B;
    --ea-line: #E5EAF4;
    --ea-up: #12A594;
    --ea-down: #E5484D;
    --ea-glow-royal: rgba(30, 94, 255, .28);
    --ea-glow-emerald: rgba(18, 155, 138, .26);
    --ea-glow-gold: rgba(233, 168, 32, .3);
}

/* ============================================================
   1. STRUCTURE
   ============================================================ */

body.ea-studio-page {
    background: var(--ea-studio-bg);
}

.ea-studio {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.ea-studio-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ea-studio-body {
    padding: 26px clamp(16px, 3vw, 38px) 64px;
    flex: 1 1 auto;
}

/* ------------------------------------------------------------
   Barre latérale
   ------------------------------------------------------------ */

.ea-studio-side {
    width: var(--ea-studio-side);
    flex: 0 0 var(--ea-studio-side);
    background:
        radial-gradient(760px 400px at -10% -5%, rgba(30, 94, 255, .35), transparent 60%),
        radial-gradient(520px 340px at 110% 100%, rgba(18, 155, 138, .28), transparent 62%),
        linear-gradient(180deg, #0A1F44 0%, #081936 100%);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    box-shadow: 18px 0 48px rgba(8, 22, 52, .16);
}

.ea-studio-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px 16px;
    text-decoration: none;
    color: #fff;
}

.ea-studio-brand img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    padding: 4px;
}

.ea-studio-brand strong {
    display: block;
    font-size: .98rem;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.ea-studio-brand span {
    font-size: .74rem;
    color: rgba(255, 255, 255, .62);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ea-studio-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 6px 14px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
}

.ea-studio-nav::-webkit-scrollbar { width: 6px; }
.ea-studio-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 6px; }

.ea-studio-group {
    margin-top: 18px;
    padding: 0 10px 6px;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .42);
    font-weight: 700;
}

.ea-studio-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-size: .93rem;
    font-weight: 500;
    transition: background .16s ease, color .16s ease, transform .16s ease;
    position: relative;
}

.ea-studio-link i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    opacity: .9;
}

.ea-studio-link:hover {
    background: rgba(255, 255, 255, .09);
    color: #fff;
    transform: translateX(2px);
}

.ea-studio-link.active {
    background: linear-gradient(100deg, rgba(30, 94, 255, .95), rgba(30, 94, 255, .55));
    color: #fff;
    box-shadow: 0 10px 24px rgba(30, 94, 255, .35);
}

.ea-studio-link.active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    border-radius: 0 4px 4px 0;
    background: var(--ea-gold);
}

.ea-studio-link .ea-side-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--ea-gold);
    color: #26210C;
    font-size: .72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ea-studio-balance {
    margin: 4px 14px 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
}

.ea-studio-balance span {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .55);
}

.ea-studio-balance strong {
    display: block;
    font-size: 1.22rem;
    color: #fff;
    letter-spacing: -.02em;
}

.ea-studio-balance a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: .8rem;
    color: var(--ea-gold-light);
    text-decoration: none;
    font-weight: 600;
}

.ea-studio-balance a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   Barre supérieure
   ------------------------------------------------------------ */

.ea-studio-top {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: var(--ea-studio-top);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px clamp(16px, 3vw, 38px);
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ea-line);
}

.ea-studio-title {
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--ea-ink);
    margin: 0;
    letter-spacing: -.02em;
}

.ea-studio-sub {
    font-size: .82rem;
    color: var(--ea-ink-soft);
    margin: 0;
}

.ea-studio-burger {
    display: none;
    border: 1px solid var(--ea-line);
    background: #fff;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    color: var(--ea-ink);
    font-size: 1.1rem;
}

.ea-studio-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ea-studio-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--ea-royal), var(--ea-emerald));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(10, 31, 68, .18);
}

/* Sélecteur de période */
.ea-period {
    display: inline-flex;
    background: #EEF2FA;
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.ea-period a {
    padding: 6px 13px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ea-ink-soft);
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
}

.ea-period a.active {
    background: #fff;
    color: var(--ea-navy);
    box-shadow: 0 2px 8px rgba(10, 31, 68, .12);
}

.ea-period a:hover:not(.active) { color: var(--ea-royal); }

/* ============================================================
   2. SURFACES
   ============================================================ */

.ea-panel {
    background: #fff;
    border: 1px solid var(--ea-line);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(16, 28, 54, .05);
    padding: 20px 22px;
}

.ea-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ea-panel-title {
    font-size: .98rem;
    font-weight: 800;
    color: var(--ea-ink);
    margin: 0;
    letter-spacing: -.01em;
}

.ea-panel-hint {
    font-size: .8rem;
    color: var(--ea-ink-soft);
    margin: 2px 0 0;
}

/* Cartes de chiffres clés */
.ea-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.ea-kpi {
    position: relative;
    background: #fff;
    border: 1px solid var(--ea-line);
    border-radius: 20px;
    padding: 18px 20px 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(16, 28, 54, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ea-kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(16, 28, 54, .1);
}

.ea-kpi::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ea-royal), var(--ea-emerald));
}

.ea-kpi.gold::after { background: linear-gradient(90deg, var(--ea-gold), #F6C75E); }
.ea-kpi.emerald::after { background: linear-gradient(90deg, var(--ea-emerald), #7FD8C8); }
.ea-kpi.navy::after { background: linear-gradient(90deg, var(--ea-navy), var(--ea-royal)); }

.ea-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(30, 94, 255, .1);
    color: var(--ea-royal);
    margin-bottom: 10px;
}

.ea-kpi.gold .ea-kpi-icon { background: rgba(233, 168, 32, .14); color: #B4801A; }
.ea-kpi.emerald .ea-kpi-icon { background: rgba(18, 155, 138, .12); color: var(--ea-emerald); }
.ea-kpi.navy .ea-kpi-icon { background: rgba(10, 31, 68, .09); color: var(--ea-navy); }

.ea-kpi-value {
    font-size: 1.62rem;
    font-weight: 800;
    color: var(--ea-ink);
    letter-spacing: -.03em;
    line-height: 1.1;
    display: block;
}

.ea-kpi-label {
    font-size: .82rem;
    color: var(--ea-ink-soft);
    display: block;
    margin-top: 2px;
}

.ea-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}

.ea-delta.up { background: rgba(18, 165, 148, .12); color: #0C7D70; }
.ea-delta.down { background: rgba(229, 72, 77, .1); color: #C13B40; }
.ea-delta.flat { background: #EEF2FA; color: var(--ea-ink-soft); }

/* ============================================================
   3. GRAPHIQUES (SVG maison, aucune dépendance)
   ============================================================ */

.ea-chart {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.ea-chart .grid line {
    stroke: var(--ea-line);
    stroke-width: 1;
    stroke-dasharray: 3 5;
}

.ea-chart .axis-label {
    font-size: 9px;
    fill: var(--ea-ink-soft);
}

.ea-chart .area-line {
    fill: none;
    stroke: var(--ea-royal);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ea-chart .area-line.emerald { stroke: var(--ea-emerald); }

.ea-chart .dot {
    fill: #fff;
    stroke: var(--ea-royal);
    stroke-width: 2.5;
    opacity: 0;
    transition: opacity .15s ease;
}

.ea-chart .dot.visible { opacity: 1; }

.ea-chart .hit { fill: transparent; cursor: crosshair; }

.ea-chart-tip {
    position: absolute;
    pointer-events: none;
    background: var(--ea-navy);
    color: #fff;
    border-radius: 10px;
    padding: 7px 11px;
    font-size: .78rem;
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(10, 31, 68, .28);
    opacity: 0;
    transform: translate(-50%, -118%);
    transition: opacity .12s ease;
    z-index: 5;
}

.ea-chart-tip.show { opacity: 1; }

.ea-chart-wrap { position: relative; }

/* Barres */
.ea-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 150px;
    padding-top: 8px;
}

.ea-bar {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    height: 100%;
    position: relative;
}

.ea-bar > span.fill {
    width: 100%;
    max-width: 34px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, var(--ea-royal), rgba(30, 94, 255, .45));
    min-height: 3px;
    transition: filter .15s ease, transform .15s ease;
}

.ea-bar:hover > span.fill { filter: brightness(1.08); transform: scaleY(1.02); }

.ea-bar > span.tick {
    font-size: .68rem;
    color: var(--ea-ink-soft);
    white-space: nowrap;
}

.ea-bar .ea-bar-value {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -6px);
    background: var(--ea-navy);
    color: #fff;
    font-size: .72rem;
    padding: 3px 8px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease;
    white-space: nowrap;
}

.ea-bar:hover .ea-bar-value { opacity: 1; }

/* Entonnoir */
.ea-funnel { display: grid; gap: 10px; }

.ea-funnel-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ea-funnel-track {
    flex: 1 1 auto;
    height: 34px;
    background: #F3F6FC;
    border-radius: 10px;
    overflow: hidden;
}

.ea-funnel-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--ea-royal), var(--ea-emerald));
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    min-width: 44px;
    transition: width .5s cubic-bezier(.22, .8, .3, 1);
}

.ea-funnel-label {
    width: 165px;
    flex: 0 0 auto;
    font-size: .84rem;
    color: var(--ea-ink-soft);
}

.ea-funnel-rate {
    width: 62px;
    flex: 0 0 auto;
    text-align: right;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ea-ink);
}

/* Distribution des notes */
.ea-stars-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ea-stars-row .label { width: 54px; font-size: .82rem; color: var(--ea-ink-soft); white-space: nowrap; }
.ea-stars-row .track { flex: 1 1 auto; height: 9px; border-radius: 999px; background: #F0F3FA; overflow: hidden; }
.ea-stars-row .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ea-gold), #F6C75E); }
.ea-stars-row .count { width: 44px; text-align: right; font-size: .8rem; color: var(--ea-ink-soft); }

/* Jauge d'objectif */
.ea-gauge {
    position: relative;
    width: 168px;
    height: 168px;
    margin: 0 auto;
}

.ea-gauge svg { transform: rotate(-90deg); }
.ea-gauge circle { fill: none; stroke-width: 14; stroke-linecap: round; }
.ea-gauge .bg { stroke: #EEF2FA; }
.ea-gauge .fg { stroke: url(#eaGaugeGrad); transition: stroke-dashoffset .8s cubic-bezier(.22, .8, .3, 1); }

.ea-gauge-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ea-gauge-center strong { font-size: 1.5rem; font-weight: 800; color: var(--ea-ink); letter-spacing: -.03em; }
.ea-gauge-center span { font-size: .76rem; color: var(--ea-ink-soft); }

/* Courbe de rétention */
.ea-retention { display: grid; gap: 7px; }

.ea-retention-row {
    display: grid;
    grid-template-columns: 26px 1fr 54px;
    align-items: center;
    gap: 10px;
}

.ea-retention-row .n {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #EEF2FA;
    color: var(--ea-ink-soft);
    font-size: .74rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ea-retention-row .bar {
    height: 26px;
    border-radius: 8px;
    background: #F3F6FC;
    overflow: hidden;
    position: relative;
}

.ea-retention-row .bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, rgba(30, 94, 255, .85), rgba(18, 155, 138, .8));
    border-radius: 8px;
}

.ea-retention-row .bar em {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-style: normal;
    font-size: .8rem;
    color: var(--ea-ink);
    font-weight: 600;
}

.ea-retention-row.drop .bar > span { background: linear-gradient(90deg, #F0A33A, #E5484D); }
.ea-retention-row .pct { font-size: .8rem; font-weight: 700; color: var(--ea-ink); text-align: right; }

/* ============================================================
   4. TABLEAUX, LISTES, ÉTATS
   ============================================================ */

.ea-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ea-table th {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ea-ink-soft);
    font-weight: 700;
    padding: 0 12px 10px;
    text-align: left;
    white-space: nowrap;
}

.ea-table td {
    padding: 12px;
    border-top: 1px solid var(--ea-line);
    font-size: .9rem;
    color: var(--ea-ink);
    vertical-align: middle;
}

.ea-table tbody tr:hover td { background: #FAFBFE; }

.ea-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.ea-course-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 220px;
}

.ea-course-cell img {
    width: 54px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    background: #EEF2FA;
    flex: 0 0 auto;
}

.ea-course-cell strong {
    display: block;
    font-size: .89rem;
    font-weight: 700;
    color: var(--ea-ink);
    line-height: 1.25;
}

.ea-course-cell span { font-size: .76rem; color: var(--ea-ink-soft); }

.ea-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--ea-navy), var(--ea-royal));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.ea-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
}

.ea-status.pending { background: rgba(233, 168, 32, .14); color: #96690F; }
.ea-status.available { background: rgba(18, 165, 148, .13); color: #0C7D70; }
.ea-status.withdrawn { background: rgba(30, 94, 255, .1); color: #1747C7; }
.ea-status.reversed, .ea-status.rejected, .ea-status.cancelled { background: rgba(229, 72, 77, .1); color: #C13B40; }
.ea-status.paid, .ea-status.approved { background: rgba(18, 165, 148, .13); color: #0C7D70; }
.ea-status.draft { background: #EEF2FA; color: var(--ea-ink-soft); }
.ea-status.published { background: rgba(18, 165, 148, .13); color: #0C7D70; }

.ea-progress-mini {
    height: 7px;
    width: 110px;
    border-radius: 999px;
    background: #EEF2FA;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

.ea-progress-mini > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ea-royal), var(--ea-emerald));
}

.ea-empty {
    text-align: center;
    padding: 44px 20px;
    color: var(--ea-ink-soft);
}

.ea-empty i {
    font-size: 2.4rem;
    color: #C7D2E8;
    display: block;
    margin-bottom: 10px;
}

.ea-empty strong { display: block; color: var(--ea-ink); font-size: 1rem; margin-bottom: 4px; }

/* Actions rapides */
.ea-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.ea-quick a, .ea-quick button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #F7F9FD;
    border: 1px solid var(--ea-line);
    color: var(--ea-ink);
    text-decoration: none;
    font-size: .87rem;
    font-weight: 600;
    text-align: left;
    width: 100%;
    transition: all .16s ease;
}

.ea-quick a:hover, .ea-quick button:hover {
    background: #fff;
    border-color: rgba(30, 94, 255, .35);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 94, 255, .12);
}

.ea-quick i { font-size: 1.1rem; color: var(--ea-royal); }

/* Liste « à traiter » */
.ea-todo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #FFF9EC;
    border: 1px solid rgba(233, 168, 32, .28);
    text-decoration: none;
    color: var(--ea-ink);
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: transform .15s ease;
}

.ea-todo:hover { transform: translateX(3px); color: var(--ea-ink); }
.ea-todo i { color: #B4801A; font-size: 1.05rem; }
.ea-todo .arrow { margin-left: auto; color: var(--ea-ink-soft); }

/* ============================================================
   5. STUDIO DE CONTENU
   ============================================================ */

.ea-studio-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.ea-studio-course {
    background: #fff;
    border: 1px solid var(--ea-line);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ea-studio-course:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(16, 28, 54, .12);
    color: inherit;
}

.ea-studio-course .cover {
    height: 132px;
    background: linear-gradient(135deg, var(--ea-navy), var(--ea-royal));
    background-size: cover;
    background-position: center;
    position: relative;
}

.ea-studio-course .cover .ea-status { position: absolute; top: 10px; left: 10px; }
.ea-studio-course .body { padding: 15px 17px 17px; }
.ea-studio-course .body strong { display: block; font-size: .96rem; color: var(--ea-ink); line-height: 1.3; }

.ea-media-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    color: var(--ea-ink-soft);
    margin-right: 12px;
    margin-top: 8px;
}

/* Liste des leçons du studio */
.ea-lesson-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--ea-line);
    border-radius: 14px;
    margin-bottom: 8px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all .15s ease;
}

.ea-lesson-row:hover {
    border-color: rgba(30, 94, 255, .4);
    box-shadow: 0 8px 22px rgba(30, 94, 255, .1);
    color: inherit;
}

.ea-lesson-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #EEF2FA;
    color: var(--ea-royal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.02rem;
    flex: 0 0 auto;
}

.ea-lesson-row .meta { flex: 1 1 auto; min-width: 0; }
.ea-lesson-row .meta strong { display: block; font-size: .9rem; color: var(--ea-ink); }
.ea-lesson-row .meta span { font-size: .77rem; color: var(--ea-ink-soft); }

.ea-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .73rem;
    font-weight: 600;
    background: #EEF2FA;
    color: var(--ea-ink-soft);
    white-space: nowrap;
}

.ea-pill.ok { background: rgba(18, 165, 148, .12); color: #0C7D70; }
.ea-pill.warn { background: rgba(233, 168, 32, .15); color: #96690F; }

/* Zone de dépôt */
.ea-drop {
    border: 2px dashed #CBD6EA;
    border-radius: 18px;
    padding: 30px 20px;
    text-align: center;
    background: #F9FBFF;
    cursor: pointer;
    transition: all .18s ease;
}

.ea-drop:hover, .ea-drop.dragover {
    border-color: var(--ea-royal);
    background: rgba(30, 94, 255, .05);
}

.ea-drop i { font-size: 2rem; color: var(--ea-royal); display: block; margin-bottom: 8px; }
.ea-drop strong { display: block; color: var(--ea-ink); font-size: .92rem; }
.ea-drop span { font-size: .8rem; color: var(--ea-ink-soft); }

.ea-upload-progress {
    height: 8px;
    border-radius: 999px;
    background: #EEF2FA;
    overflow: hidden;
    margin-top: 14px;
    display: none;
}

.ea-upload-progress.active { display: block; }

.ea-upload-progress > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ea-royal), var(--ea-emerald));
    transition: width .2s ease;
}

.ea-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--ea-line);
    border-radius: 13px;
    margin-bottom: 8px;
    background: #fff;
}

.ea-file-row .ico {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(30, 94, 255, .09);
    color: var(--ea-royal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ea-file-row .meta { flex: 1 1 auto; min-width: 0; }
.ea-file-row .meta strong { display: block; font-size: .88rem; color: var(--ea-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-file-row .meta span { font-size: .76rem; color: var(--ea-ink-soft); }

/* Diapositives */
.ea-slide-card {
    border: 1px solid var(--ea-line);
    border-radius: 16px;
    padding: 14px 16px;
    background: #fff;
    margin-bottom: 10px;
}

.ea-slide-card header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ea-slide-num {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--ea-navy);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ea-slide-preview {
    border-radius: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(30, 94, 255, .08), rgba(18, 155, 138, .08));
    font-size: .85rem;
    color: var(--ea-ink);
}

.ea-slide-preview ul { margin: 6px 0 0; padding-left: 18px; }

/* ============================================================
   6. AVIS, QUESTIONS, ANNONCES
   ============================================================ */

.ea-review {
    border: 1px solid var(--ea-line);
    border-radius: 18px;
    padding: 16px 18px;
    background: #fff;
    margin-bottom: 12px;
}

.ea-review header { display: flex; align-items: flex-start; gap: 12px; }
.ea-review .stars { color: var(--ea-gold); font-size: .86rem; letter-spacing: 1px; }
.ea-review blockquote { margin: 10px 0 0; font-size: .92rem; color: var(--ea-ink); line-height: 1.55; }

.ea-reply {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 13px;
    background: #F5F8FF;
    border-left: 3px solid var(--ea-royal);
    font-size: .88rem;
}

.ea-reply strong { color: var(--ea-royal); font-size: .8rem; display: block; margin-bottom: 3px; }

.ea-answer {
    padding: 11px 14px;
    border-radius: 13px;
    background: #F7F9FD;
    font-size: .88rem;
    margin-top: 8px;
}

.ea-answer.instructor {
    background: rgba(30, 94, 255, .06);
    border-left: 3px solid var(--ea-royal);
}

.ea-announcement {
    border: 1px solid var(--ea-line);
    border-radius: 18px;
    padding: 16px 18px;
    background: #fff;
    margin-bottom: 12px;
}

/* Formulaires du studio */
.ea-field-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--ea-ink);
    margin-bottom: 5px;
    display: block;
}

.ea-studio .form-control,
.ea-studio .form-select {
    border-radius: 12px;
    border-color: var(--ea-line);
    padding: 10px 13px;
    font-size: .92rem;
}

.ea-studio .form-control:focus,
.ea-studio .form-select:focus {
    border-color: var(--ea-royal);
    box-shadow: 0 0 0 4px rgba(30, 94, 255, .12);
}

.ea-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 700;
    border: none;
    text-decoration: none;
    transition: all .16s ease;
    white-space: nowrap;
}

.ea-btn-primary {
    background: linear-gradient(120deg, var(--ea-royal), #2E74FF);
    color: #fff;
    box-shadow: 0 10px 24px rgba(30, 94, 255, .28);
}

.ea-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 94, 255, .36); }

.ea-btn-gold {
    background: linear-gradient(120deg, var(--ea-gold), #F6C75E);
    color: #29200A;
    box-shadow: 0 10px 24px rgba(233, 168, 32, .3);
}

.ea-btn-gold:hover { color: #29200A; transform: translateY(-2px); }

.ea-btn-ghost {
    background: #fff;
    border: 1px solid var(--ea-line);
    color: var(--ea-ink);
}

.ea-btn-ghost:hover { border-color: var(--ea-royal); color: var(--ea-royal); }

.ea-btn-danger { background: rgba(229, 72, 77, .1); color: #C13B40; }
.ea-btn-danger:hover { background: rgba(229, 72, 77, .18); color: #C13B40; }

.ea-btn-sm { padding: 6px 13px; font-size: .8rem; }

/* ============================================================
   7. PAGE PUBLIQUE « DEVENIR FORMATEUR »
   ============================================================ */

.ea-become-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(56px, 9vw, 110px) 0 clamp(46px, 7vw, 92px);
    background:
        radial-gradient(900px 460px at 12% 8%, rgba(30, 94, 255, .55), transparent 62%),
        radial-gradient(700px 420px at 92% 82%, rgba(18, 155, 138, .45), transparent 60%),
        linear-gradient(135deg, #071730 0%, #0A1F44 55%, #102A5C 100%);
}

.ea-become-hero::before,
.ea-become-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .5;
    pointer-events: none;
}

.ea-become-hero::before {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -110px;
    background: radial-gradient(circle at 30% 30%, rgba(233, 168, 32, .5), transparent 62%);
    animation: eaFloat 14s ease-in-out infinite;
}

.ea-become-hero::after {
    width: 320px;
    height: 320px;
    bottom: -120px;
    left: -80px;
    background: radial-gradient(circle at 60% 40%, rgba(18, 155, 138, .55), transparent 64%);
    animation: eaFloat 18s ease-in-out infinite reverse;
}

@keyframes eaFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-18px, 24px, 0) scale(1.06); }
}

.ea-become-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    backdrop-filter: blur(6px);
}

.ea-become-title {
    font-size: clamp(2.05rem, 4.6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 18px 0 16px;
}

.ea-become-title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--ea-gold-light), var(--ea-emerald-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ea-become-lead {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: rgba(255, 255, 255, .82);
    max-width: 620px;
    line-height: 1.65;
}

.ea-become-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.ea-become-stat {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    padding: 14px 16px;
    backdrop-filter: blur(8px);
}

.ea-become-stat strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.ea-become-stat span { font-size: .78rem; color: rgba(255, 255, 255, .68); }

/* Carte de partage des revenus */
.ea-split-card {
    background: #fff;
    border-radius: 24px;
    padding: 26px 28px;
    box-shadow: 0 30px 70px rgba(7, 23, 48, .28);
    color: var(--ea-ink);
}

.ea-split-bar {
    display: flex;
    height: 46px;
    border-radius: 14px;
    overflow: hidden;
    margin: 16px 0 10px;
    box-shadow: inset 0 0 0 1px var(--ea-line);
}

.ea-split-you {
    background: linear-gradient(120deg, var(--ea-emerald), #23C4AE);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.02rem;
}

.ea-split-platform {
    background: #EEF2FA;
    color: var(--ea-ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .88rem;
}

/* Étapes */
.ea-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
    gap: 18px;
    counter-reset: eastep;
}

.ea-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--ea-line);
    border-radius: 20px;
    padding: 26px 22px 22px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ea-step:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(16, 28, 54, .1); }

.ea-step::before {
    counter-increment: eastep;
    content: counter(eastep);
    position: absolute;
    top: -18px;
    left: 22px;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--ea-royal), var(--ea-emerald));
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(30, 94, 255, .3);
}

.ea-step h3 { font-size: 1rem; font-weight: 800; color: var(--ea-ink); margin: 8px 0 6px; }
.ea-step p { font-size: .88rem; color: var(--ea-ink-soft); margin: 0; line-height: 1.6; }

/* Simulateur */
.ea-sim {
    background: linear-gradient(140deg, #08182F, #0F2A5A);
    border-radius: 26px;
    padding: clamp(24px, 4vw, 40px);
    color: #fff;
    box-shadow: 0 30px 70px rgba(7, 23, 48, .3);
}

.ea-sim label { font-size: .84rem; color: rgba(255, 255, 255, .72); font-weight: 600; }

.ea-sim output {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-top: 2px;
}

.ea-sim input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    appearance: none;
    outline: none;
    margin: 12px 0 4px;
}

.ea-sim input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid var(--ea-gold);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.ea-sim input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid var(--ea-gold);
    cursor: pointer;
}

.ea-sim-result {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    padding: 22px 24px;
    height: 100%;
    backdrop-filter: blur(8px);
}

.ea-sim-net {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.035em;
    background: linear-gradient(100deg, #fff, var(--ea-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ea-sim-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .16);
    font-size: .9rem;
    color: rgba(255, 255, 255, .8);
}

.ea-sim-line:last-of-type { border-bottom: none; }

/* Avantages */
.ea-why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.ea-why-card {
    background: #fff;
    border: 1px solid var(--ea-line);
    border-radius: 20px;
    padding: 24px 22px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ea-why-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(16, 28, 54, .1); }

.ea-why-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: linear-gradient(135deg, rgba(30, 94, 255, .12), rgba(18, 155, 138, .14));
    color: var(--ea-royal);
    margin-bottom: 12px;
}

.ea-included {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 22px;
}

.ea-included li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: .91rem;
    color: var(--ea-ink);
    padding: 5px 0;
}

.ea-included i { color: var(--ea-emerald); margin-top: 2px; }

/* FAQ */
.ea-faq-item {
    border: 1px solid var(--ea-line);
    border-radius: 16px;
    background: #fff;
    margin-bottom: 10px;
    overflow: hidden;
}

.ea-faq-item summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 700;
    color: var(--ea-ink);
    font-size: .95rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ea-faq-item summary::-webkit-details-marker { display: none; }

.ea-faq-item summary::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    margin-left: auto;
    color: var(--ea-royal);
    transition: transform .2s ease;
}

.ea-faq-item[open] summary::after { transform: rotate(180deg); }

.ea-faq-item p {
    padding: 0 20px 18px;
    margin: 0;
    color: var(--ea-ink-soft);
    font-size: .9rem;
    line-height: 1.65;
}

.ea-become-cta {
    border-radius: 26px;
    padding: clamp(30px, 5vw, 54px);
    text-align: center;
    color: #fff;
    background:
        radial-gradient(600px 300px at 20% 10%, rgba(30, 94, 255, .5), transparent 60%),
        linear-gradient(135deg, #0A1F44, #123063);
    box-shadow: 0 30px 70px rgba(7, 23, 48, .26);
}

/* ============================================================
   8. RESPONSIVE
   ============================================================ */

@media (max-width: 991.98px) {
    .ea-studio-side {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform .26s cubic-bezier(.22, .8, .3, 1);
    }

    .ea-studio-side.open { transform: translateX(0); }

    .ea-studio-burger { display: inline-flex; align-items: center; justify-content: center; }

    .ea-studio-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(8, 22, 52, .5);
        backdrop-filter: blur(2px);
        z-index: 1035;
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }

    .ea-studio-backdrop.show { opacity: 1; pointer-events: auto; }

    .ea-funnel-label { width: 118px; font-size: .78rem; }
}

@media (max-width: 575.98px) {
    .ea-studio-body { padding: 18px 14px 54px; }
    .ea-panel { padding: 16px; border-radius: 17px; }
    .ea-kpi-value { font-size: 1.4rem; }
    .ea-period a { padding: 5px 10px; font-size: .78rem; }
}

@media print {
    .ea-studio-side, .ea-studio-top, .ea-quick { display: none !important; }
    .ea-panel { box-shadow: none; border-color: #ccc; }
}

/* Respect des préférences de mouvement */
@media (prefers-reduced-motion: reduce) {
    .ea-become-hero::before,
    .ea-become-hero::after { animation: none; }

    .ea-kpi, .ea-step, .ea-why-card, .ea-studio-course, .ea-btn { transition: none; }
}

/* ============================================================
   10. PIED DE PAGE DES ESPACES DE TRAVAIL (studio + admin)
   ============================================================ */

.ea-workspace-footer {
    margin-top: auto;
    border-top: 1px solid var(--ea-line);
    background: #fff;
}

.ea-admin-page .ea-workspace-footer { background: #fffdf8; }

.ea-workspace-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 26px;
    padding: 16px clamp(16px, 3vw, 38px);
}

.ea-workspace-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ea-workspace-footer-brand img { border-radius: 7px; }
.ea-workspace-footer-brand strong { display: block; font-size: .86rem; color: var(--ea-ink); line-height: 1.15; }
.ea-workspace-footer-brand span span { font-size: .74rem; color: var(--ea-ink-soft); }

.ea-workspace-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0 auto;
}

.ea-workspace-footer-links a {
    font-size: .82rem;
    color: var(--ea-ink-soft);
    text-decoration: none;
    transition: color .15s ease;
}

.ea-workspace-footer-links a:hover { color: var(--ea-royal); }

.ea-workspace-footer-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--ea-emerald);
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .ea-workspace-footer-links { margin: 0; width: 100%; }
}

/* ============================================================
   11. TABLEAU CROISÉ (pivot revenu formation × mois)
   ============================================================ */

.ea-pivot { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.ea-pivot th, .ea-pivot td { padding: 9px 12px; white-space: nowrap; }
.ea-pivot thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ea-ink-soft); font-weight: 700; text-align: right; }
.ea-pivot thead th:first-child { text-align: left; }
.ea-pivot tbody td { border-top: 1px solid var(--ea-line); text-align: right; font-variant-numeric: tabular-nums; }
.ea-pivot tbody td:first-child { text-align: left; font-weight: 600; color: var(--ea-ink); }
.ea-pivot tbody tr:hover td { background: #FAFBFE; }
.ea-pivot .cell-0 { color: #C7D2E8; }
.ea-pivot tfoot td { border-top: 2px solid var(--ea-line); background: #F7F9FD; font-weight: 800; text-align: right; }
.ea-pivot tfoot td:first-child { text-align: left; }
.ea-pivot .col-total { font-weight: 700; color: var(--ea-emerald); }

/* Donut réutilisable côté studio */
.ea-donut {
    width: 150px; height: 150px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.ea-donut-hole {
    width: 96px; height: 96px; border-radius: 50%; background: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; box-shadow: inset 0 0 0 1px var(--ea-line);
}
.ea-donut-hole strong { font-size: 1.35rem; font-weight: 800; color: var(--ea-ink); letter-spacing: -.03em; line-height: 1; }
.ea-donut-hole span { font-size: .72rem; color: var(--ea-ink-soft); }
.ea-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 150px; min-width: 140px; }
.ea-legend li { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ea-ink); padding: 4px 0; }
.ea-legend .dot { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
.ea-legend strong { margin-left: auto; font-variant-numeric: tabular-nums; }
