/* Mon espace : tableau de bord façon application */
.esp{background:var(--bg,#f6f9ff);padding:14px 0 40px}
.esp-wrap{max-width:760px;display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.esp-wrap>*{min-width:0}
.esp-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:170px;padding:22px 22px 22px 24px;border-radius:28px;color:#fff;overflow:hidden;background:linear-gradient(115deg,#0b4bd8 0%,#2f6bff 58%,#7a4dff 100%)}
.esp-hero h1{margin:0 0 6px;font-size:clamp(1.55rem,6vw,2.1rem);line-height:1.08;letter-spacing:-.02em;color:#fff}
.esp-hero p{margin:0;font-size:1.02rem;color:#e6eeff}
.esp-line{display:block;width:76px;height:4px;border-radius:4px;background:#fff;margin-top:14px}
.esp-art{flex:0 0 auto;width:min(46%,230px);height:auto}
.esp-card{background:var(--surface,#fff);border:1px solid var(--line,#e3eaf8);border-radius:22px;box-shadow:0 8px 26px rgba(20,60,160,.07)}
.esp-lvl{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px}
.esp-lvl-ic{display:grid;place-items:center;width:64px;height:64px;border-radius:16px;background:#eaf1ff;color:#1456f0}
.esp-lvl-t small{display:block;color:var(--muted,#5b6788)}.esp-lvl-t b{display:block;font-size:1.3rem;line-height:1.2}.esp-lvl-t span{color:var(--muted,#5b6788)}
.esp-change{padding:10px 16px;border-radius:999px;border:1.5px solid #9db9f5;background:var(--surface,#fff);color:#1456f0;font:inherit;font-weight:700;cursor:pointer}
.esp-pick{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;align-items:end;padding-top:6px}
.esp-pick[hidden]{display:none}
.esp-pick label{display:grid;gap:6px;font-weight:600;font-size:.9rem}
.esp-pick select{height:46px;padding:0 12px;border:1.5px solid var(--line,#e3eaf8);border-radius:12px;font:inherit;background:var(--surface,#fff);color:var(--text,#111)}
.esp-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.esp-tile{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;min-height:128px;padding:14px;border-radius:22px;background:var(--surface,#fff);border:1px solid var(--line,#e3eaf8);color:var(--text,#111);text-decoration:none;box-shadow:0 8px 26px rgba(20,60,160,.06);transition:transform .15s}
.esp-tile:hover{transform:translateY(-2px)}
.esp-tile .ti{display:inline-flex;margin-bottom:auto;color:#5b3fe0}
.esp-tile .ti.c-dev{color:#f08a1c}.esp-tile .ti.c-exa{color:#14a05a}.esp-tile .ti.c-pro{color:#1456f0}.esp-tile .ti.c-fav{color:#7a4dff}.esp-tile .ti.c-quiz{color:#7a4dff}
.esp-tile b{font-size:1.12rem;line-height:1.15}.esp-tile small{color:var(--muted,#5b6788);font-size:.82rem;line-height:1.25}
.esp-tile .go{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eef0ff;color:#1456f0;font-style:normal;font-weight:800}
.esp-tile.main{background:linear-gradient(135deg,#0b4bd8,#2f6bff);border-color:transparent;color:#fff}
.esp-tile.main .ti{color:#fff}.esp-tile.main small{color:#dbe6ff}.esp-tile.main .go{background:#fff;color:#1456f0}
.esp-tile{grid-column:span 2}
@media(max-width:559px){.esp-grid{gap:9px}.esp-tile{min-height:118px;padding:11px;border-radius:18px}.esp-tile small{font-size:.7rem}.esp-tile b{font-size:.95rem}.esp-tile .go{width:28px;height:28px;top:9px;right:9px}.esp-tile .ti svg{width:28px;height:28px}}
.esp-glob{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px}
.esp-ring{width:96px;height:96px;color:var(--text,#111)}
.esp-glob-t{display:grid;gap:4px}.esp-glob-t b{font-size:1.15rem}.esp-glob-t span{color:var(--muted,#5b6788);font-size:.9rem}
.esp-bar{height:10px;border-radius:10px;background:#dfe6fb;overflow:hidden;margin-top:6px}.esp-bar i{display:block;height:100%;width:0;border-radius:10px;background:linear-gradient(90deg,#1456f0,#2f7bff);transition:width .4s}
.esp-glob-n{font-weight:700;white-space:nowrap}
@media(max-width:520px){.esp-glob{grid-template-columns:auto 1fr}.esp-glob-n{grid-column:1/-1;text-align:right}}
.esp-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px}
.esp-h h2{margin:0;font-size:1.3rem}.esp-h a{color:#1456f0;font-weight:700;text-decoration:none}
.esp-res{display:flex;align-items:center;gap:14px;padding:14px;color:inherit;text-decoration:none}
.esp-res-ic{flex:0 0 auto;display:grid;place-items:center;width:64px;height:64px;border-radius:16px;background:linear-gradient(135deg,#1456f0,#2f7bff);color:#fff;font-size:1.4rem;font-weight:800;font-family:serif}
.esp-res-t{flex:1;min-width:0;display:grid;gap:4px}.esp-res-t b{line-height:1.25}.esp-res-t span{color:var(--muted,#5b6788);font-size:.9rem}
.esp-go{border-radius:14px;white-space:nowrap}
@media(max-width:520px){.esp-res{flex-wrap:wrap}.esp-go{width:100%}}
body.dark .esp-card,body.dark .esp-tile{background:#0f1626;border-color:#22304a}
body.dark .esp-lvl-ic{background:#13264d;color:#6ea0ff}body.dark .esp-change{background:#0f1626;color:#7fb0ff;border-color:#2f4a80}
body.dark .esp-tile .go{background:#1a2748;color:#7fb0ff}body.dark .esp-tile.main .go{background:#fff;color:#1456f0}
body.dark .esp-bar{background:#22304a}
body.dark .esp-tile.main{background:linear-gradient(135deg,#0b3aa8,#1f56d8)}
.esp .s-wrap{padding-top:10px}
.esp-lvl-t b{font-size:1.1rem;overflow-wrap:anywhere}.esp-lvl-t span{font-size:.9rem}
.esp-change{padding:8px 12px;font-size:.85rem;white-space:nowrap}
.esp-lvl-ic{width:54px;height:54px}.esp-lvl-ic svg{width:34px;height:26px}
.esp-hero p{line-height:1.3}
