/* ===== Ubuntu Portfolio OS ===== */
* {
    box-sizing: border-box
}

:root {
    --accent: #e95420;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --bright: 1;
    --win-bg: #fcf9fd;
    --win-fg: #24192d;
    --win-muted: #776e7f;
    --win-line: #eadfeb;
    --win-card: #fff;
    --win-soft: #f6eef7;
    --bar: #f1e9f2;
    --bar-fg: #2a1d33;
    --font: 'Ubuntu', 'DM Sans', system-ui, sans-serif;
    --mono: 'Ubuntu Mono', 'IBM Plex Mono', ui-monospace, monospace
}

body.theme-dark {
    --win-bg: #2a2130;
    --win-fg: #f3edf6;
    --win-muted: #a99bb0;
    --win-line: #3f3246;
    --win-card: #352b3c;
    --win-soft: #30263a;
    --bar: #221a28;
    --bar-fg: #f3edf6
}

body {
    margin: 0;
    background: #1c1022;
    color: #f5f1f7;
    font-family: var(--font);
    overflow: hidden
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #000;
    opacity: calc(1 - var(--bright));
    pointer-events: none;
    z-index: 9998
}

body.night::after {
    content: '';
    position: fixed;
    inset: 0;
    background: #ff8a2a22;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 9999
}

button {
    font-family: inherit
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0)
}

.muted {
    color: var(--win-muted)
}

.center {
    text-align: center
}

body.no-anim *,
body.no-anim *::before,
body.no-anim *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important
}

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important
    }
}

/* ---------- Wallpapers ---------- */
body {
    --w1: #783b61;
    --w2: #a15e79;
    --w3: #412a68;
    --wbg: radial-gradient(ellipse at 50% 65%, #59325d 0, #2d1934 42%, #171422 100%)
}

body[data-wall=nuit] {
    --w1: #2a2f5a;
    --w2: #1d6f8a;
    --w3: #3b2a6a;
    --wbg: radial-gradient(ellipse at 50% 70%, #1a2144 0, #0c1026 55%, #05060f 100%)
}

body[data-wall=ocean] {
    --w1: #1b7a9a;
    --w2: #2fb6b0;
    --w3: #235a9c;
    --wbg: radial-gradient(ellipse at 50% 70%, #1c6b8f 0, #0f3a5e 50%, #071a2e 100%)
}

body[data-wall=sunset] {
    --w1: #d6557a;
    --w2: #f2a154;
    --w3: #7a3a8c;
    --wbg: radial-gradient(ellipse at 50% 75%, #c2476e 0, #6d2f66 48%, #23122f 100%)
}

.desktop {
    position: fixed;
    top: 34px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background: var(--wbg);
    transition: transform .45s var(--ease), filter .45s
}

.wallpaper {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.wallpaper i,
.wallpaper b,
.wallpaper span {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    transition: transform .3s ease-out
}

.wallpaper i {
    width: 48vw;
    height: 48vw;
    right: -10vw;
    top: 6vh;
    background: var(--w1);
    opacity: .75;
    box-shadow: 0 0 120px var(--w2);
    transform: translate(calc(var(--mx, 0)*-26px), calc(var(--my, 0)*-18px));
    animation: drift 18s ease-in-out infinite alternate
}

.wallpaper b {
    width: 24vw;
    height: 24vw;
    left: 32%;
    top: 22%;
    background: var(--w2);
    opacity: .2;
    transform: translate(calc(var(--mx, 0)*40px), calc(var(--my, 0)*28px));
    animation: drift 13s ease-in-out infinite alternate-reverse
}

.wallpaper span {
    width: 18vw;
    height: 18vw;
    left: 8%;
    bottom: -5%;
    background: var(--w3);
    opacity: .7;
    transform: translate(calc(var(--mx, 0)*-50px), calc(var(--my, 0)*-30px));
    animation: drift 16s ease-in-out infinite alternate
}

@keyframes drift {
    to {
        translate: 3vw -3vh;
        scale: 1.08
    }
}

.wallpaper canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.wallpaper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(520px circle at calc(50% + var(--mx, 0)*100%) calc(45% + var(--my, 0)*100%), #ffffff14, transparent 65%);
    pointer-events: none
}

body.ov-open .desktop>.brand,
body.ov-open .desktop>.desktop-icons,
body.ov-open #windows {
    filter: blur(6px);
    transform: scale(.96);
    opacity: .35;
    transition: all .4s var(--ease)
}

/* ---------- Boot ---------- */
.boot,
.login,
.shutdown {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 26px;
    background: radial-gradient(ellipse at 50% 40%, #3a1a3f 0, #1c0e22 60%, #0b0610 100%);
    transition: opacity .7s, transform .7s var(--ease)
}

.boot.gone,
.login.gone {
    opacity: 0;
    transform: scale(1.06);
    pointer-events: none
}

.boot-logo {
    position: relative;
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
    animation: bootPulse 2.4s ease-in-out infinite
}

.boot-logo b {
    font-size: 84px;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 30px #e9542088
}

.boot-logo span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #e9542066;
    animation: ring 2.4s ease-out infinite
}

.boot-logo span:nth-child(2) {
    animation-delay: .8s
}

.boot-logo span:nth-child(3) {
    animation-delay: 1.6s
}

@keyframes ring {
    from {
        transform: scale(.7);
        opacity: .9
    }

    to {
        transform: scale(2.2);
        opacity: 0
    }
}

@keyframes bootPulse {
    50% {
        transform: scale(1.06)
    }
}

.boot-dots {
    display: flex;
    gap: 10px
}

.boot-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e95420;
    animation: dots 1.2s ease-in-out infinite
}

.boot-dots i:nth-child(2) {
    animation-delay: .12s
}

.boot-dots i:nth-child(3) {
    animation-delay: .24s
}

.boot-dots i:nth-child(4) {
    animation-delay: .36s
}

.boot-dots i:nth-child(5) {
    animation-delay: .48s
}

@keyframes dots {

    0%,
    100% {
        opacity: .25;
        transform: scale(.7)
    }

    50% {
        opacity: 1;
        transform: scale(1.2)
    }
}

.boot-log {
    position: absolute;
    left: 24px;
    bottom: 18px;
    margin: 0;
    font: 12px var(--mono);
    color: #b9a3c2;
    min-height: 1em
}

.login {
    z-index: 8900
}

.login[hidden],
.boot[hidden],
.shutdown[hidden] {
    display: none
}

.login-clock {
    text-align: center;
    animation: fade .8s both
}

.login-clock b {
    display: block;
    font-size: 84px;
    font-weight: 300;
    letter-spacing: -.04em
}

.login-clock small {
    font-size: 18px;
    color: #d3c3da;
    text-transform: capitalize
}

.login-card {
    width: min(340px, 86vw);
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 26px;
    border-radius: 22px;
    background: #ffffff12;
    border: 1px solid #ffffff22;
    backdrop-filter: blur(18px);
    animation: rise .8s .15s var(--ease) both
}

.login-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffab6e, #d6336c 60%, #8a5cf5);
    box-shadow: 0 12px 30px #0008;
    animation: avatar 4s ease-in-out infinite
}

@keyframes avatar {
    50% {
        transform: translateY(-5px) rotate(-3deg)
    }
}

.login-card h2 {
    margin: 0;
    font-weight: 500
}

.login-card input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ffffff33;
    background: #00000033;
    color: #fff;
    font: 14px var(--font);
    outline: none;
    text-align: center
}

.login-card input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px #e9542044
}

.login-card button {
    width: 100%;
    padding: 11px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font: 600 14px var(--font);
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s
}

.login-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px #e9542066
}

.login-card small {
    color: #bba9c4;
    font-size: 12px
}

@keyframes fade {
    from {
        opacity: 0
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(30px)
    }
}

.shutdown {
    z-index: 9500;
    opacity: 0;
    pointer-events: none
}

.shutdown.on {
    opacity: 1;
    pointer-events: auto
}

.shutdown p {
    margin: 0;
    color: #d3c3da
}

/* ---------- Barre supérieure ---------- */
.top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    z-index: 3000;
    background: #0b0a0f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    font: 13px var(--font);
    transform: translateY(-100%);
    transition: transform .7s var(--ease)
}

body.ready .top {
    transform: none
}

.top button {
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    height: 26px;
    border-radius: 14px;
    padding: 0 12px;
    font: inherit;
    transition: background .2s
}

.top button:hover,
.top button.open {
    background: #ffffff22
}

.top .clock {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 500
}

.sys {
    display: flex;
    gap: 11px;
    align-items: center;
    color: #eadff0
}

.sys span:nth-child(3) {
    font-size: 11px;
    letter-spacing: -1px
}

/* ---------- Dock ---------- */
.dock {
    position: fixed;
    left: 8px;
    top: calc(50% + 17px);
    transform: translate(-110px, -50%);
    width: 68px;
    padding: 8px 7px;
    border: 1px solid #ffffff1c;
    background: #1a1220c4;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2500;
    max-height: calc(100vh - 50px);
    transition: transform .8s .25s var(--ease)
}

body.ready .dock {
    transform: translate(0, -50%)
}

#dockRun {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center
}

.dock hr {
    border: 0;
    border-top: 1px solid #ffffff26;
    width: 70%;
    margin: 2px 0
}

.dock-item {
    position: relative;
    border: 0;
    background: transparent;
    width: 50px;
    height: 50px;
    padding: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 14px;
    transform: scale(var(--s, 1));
    transform-origin: 0 50%;
    transition: transform .12s ease-out, background .2s
}

.dock-item:hover {
    background: #ffffff1c
}

.dock-item.active {
    background: #ffffff26
}

.dock-item.bounce {
    animation: dockBounce .7s var(--ease)
}

@keyframes dockBounce {

    0%,
    100% {
        translate: 0 0
    }

    25% {
        translate: 16px 0
    }

    50% {
        translate: 0 0
    }

    75% {
        translate: 9px 0
    }
}

.dock-item small {
    position: absolute;
    left: 66px;
    top: 50%;
    translate: -8px -50%;
    white-space: nowrap;
    background: #16111e;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font: 12px var(--font);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, translate .2s var(--ease);
    box-shadow: 0 8px 20px #0008;
    z-index: 5
}

.dock-item:hover small {
    opacity: 1;
    translate: 0 -50%
}

.pips {
    position: absolute;
    left: -5px;
    top: 50%;
    translate: 0 -50%;
    display: flex;
    flex-direction: column;
    gap: 3px
}

.pips::before {
    content: '';
    display: block
}

.dock-item[data-run="1"] .pips::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent)
}

.dock-item[data-run="2"] .pips::before {
    width: 5px;
    height: 12px;
    border-radius: 5px;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent)
}

.dock-item[data-run="3"] .pips::before {
    width: 5px;
    height: 20px;
    border-radius: 5px;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent)
}

.aicon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--c1), var(--c2));
    color: #fff;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 4px 10px #0005, inset 0 1px 0 #fff5
}

.grid-ic {
    background: #ffffff18;
    box-shadow: none;
    font-size: 26px
}

/* ---------- Bureau : icônes ---------- */
.brand {
    position: absolute;
    left: min(34%, calc(100% - 640px));
    top: 20%;
    z-index: 1;
    transform: translate(calc(var(--mx, 0)*10px), calc(var(--my, 0)*6px));
    transition: transform .2s ease-out, filter .4s, opacity .4s
}

.brand small {
    font: 11px var(--mono);
    color: #ffb8a0;
    letter-spacing: .14em;
    opacity: 0;
    animation: fade 1s 1.4s forwards
}

.brand h1 {
    font-size: clamp(2.5rem, 6vw, 6rem);
    line-height: .9;
    margin: 20px 0 24px;
    letter-spacing: -.07em;
    perspective: 700px
}

.brand em {
    font-style: normal;
    color: #efa6bc
}

.brand .ch {
    display: inline-block;
    white-space: pre;
    opacity: 0;
    transform: translateY(40px) rotateX(-90deg);
    filter: blur(6px)
}

.ready .brand .ch {
    animation: chIn .7s var(--ease) forwards;
    animation-delay: calc(.5s + var(--d))
}

.brand em .ch {
    background: linear-gradient(90deg, #efa6bc, #ffcf9f, #efa6bc);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.ready .brand em .ch {
    animation: chIn .7s var(--ease) forwards, shine 5s linear infinite;
    animation-delay: calc(.5s + var(--d)), 0s
}

@keyframes chIn {
    to {
        opacity: 1;
        transform: none;
        filter: none
    }
}

@keyframes shine {
    to {
        background-position: 300% 0
    }
}

.brand p {
    color: #dcc6d6;
    line-height: 1.7;
    opacity: 0
}

.ready .brand p {
    animation: fade 1s 1.8s forwards
}

.desktop-icons {
    position: absolute;
    inset: 0 0 0 88px;
    z-index: 2;
    pointer-events: none
}

.desktop-icon {
    position: absolute;
    width: 98px;
    height: 100px;
    padding: 8px 4px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    display: grid;
    grid-template-rows: 48px auto;
    justify-items: center;
    align-content: center;
    gap: 4px;
    cursor: pointer;
    pointer-events: auto;
    text-shadow: 0 2px 4px #170a1e;
    touch-action: none;
    user-select: none;
    opacity: 0;
    transition: left .35s var(--ease), top .35s var(--ease), transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s
}

.ready .desktop-icon {
    animation: iconIn .6s var(--ease) both, float 6s ease-in-out infinite;
    animation-delay: calc(var(--i)*80ms + .9s), calc(var(--i)*-.8s)
}

@keyframes iconIn {
    from {
        opacity: 0;
        transform: translateY(-20px) rotateX(-60deg)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes float {
    50% {
        translate: 0 -4px
    }
}

.desktop-icon small {
    font: 500 12px var(--font);
    line-height: 1.15;
    text-align: center
}

.desktop-icon .glyph {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--c1), color-mix(in srgb, var(--c2) 70%, #000));
    font-size: 24px;
    box-shadow: 0 6px 14px #0006, inset 0 1px 0 #fff4;
    transition: transform .25s var(--ease)
}

.desktop-icon:hover {
    background: #ffffff1f;
    border-color: #ffffff40;
    transform: perspective(500px) translateZ(12px) rotateX(-4deg);
    box-shadow: 0 14px 26px #0006
}

.desktop-icon:hover .glyph {
    transform: translateY(-4px) scale(1.12) rotate(-4deg)
}

.desktop-icon.sel {
    background: #e9542055;
    border-color: #e9542099
}

.desktop-icon.is-dragging {
    z-index: 20;
    opacity: .9 !important;
    transition: none;
    transform: scale(1.12) rotate(-3deg);
    cursor: grabbing;
    animation: none
}

.desktop-icon:focus-visible {
    outline: 2px solid #fff
}

.icon-ghost {
    display: none;
    position: absolute;
    width: 98px;
    height: 100px;
    border: 2px dashed #ffffff88;
    border-radius: 12px;
    background: #ffffff14;
    pointer-events: none
}

#windows {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none
}

#windows>* {
    pointer-events: auto
}

.snap-preview {
    position: absolute;
    z-index: 4;
    border-radius: 14px;
    background: #e9542030;
    border: 2px solid #e9542099;
    pointer-events: none;
    opacity: 0;
    transition: all .18s var(--ease)
}

.snap-preview.on {
    opacity: 1
}

/* ---------- Fenêtres ---------- */
.window {
    position: absolute;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--win-bg);
    color: var(--win-fg);
    border-radius: 14px;
    box-shadow: 0 30px 80px #0009, 0 0 0 1px #ffffff14;
    overflow: hidden;
    font: 14px var(--font);
    transition: box-shadow .25s, filter .25s, opacity .25s;
    will-change: transform
}

.window.min {
    display: none
}

.window.animating {
    transition: left .32s var(--ease), top .32s var(--ease), width .32s var(--ease), height .32s var(--ease), border-radius .3s, box-shadow .25s
}

.window.maxed {
    border-radius: 0 0 0 0
}

.window.inactive {
    box-shadow: 0 14px 34px #0007, 0 0 0 1px #ffffff0c;
    filter: saturate(.8) brightness(.96)
}

/* Pendant le déplacement : ombre allégée (choix validé) ; les flous du dock et des notifications sont coupés plus bas */
.window.dragging {
    box-shadow: 0 18px 40px #0007, 0 0 0 1px #ffffff30;
    transition: none
}

.window.dragging .wbar {
    cursor: grabbing
}

.wbar {
    flex: none;
    height: 46px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 10px 0 12px;
    background: var(--bar);
    color: var(--bar-fg);
    border-bottom: 1px solid var(--win-line);
    cursor: grab;
    user-select: none;
    position: relative
}

.window:not(.inactive) .wbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .7
}

.wleft {
    display: flex;
    gap: 6px
}

.wtitle {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 46vw
}

.wctl {
    display: flex;
    gap: 7px;
    justify-content: flex-end
}

.wctl button,
.w-back {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 0;
    background: color-mix(in srgb, var(--bar-fg) 12%, transparent);
    color: var(--bar-fg);
    cursor: pointer;
    font-size: 12px;
    display: grid;
    place-items: center;
    transition: transform .15s, background .15s, color .15s
}

.wctl button:hover,
.w-back:hover {
    transform: scale(1.15);
    background: color-mix(in srgb, var(--bar-fg) 24%, transparent)
}

.wctl .w-close:hover {
    background: #e5484d;
    color: #fff
}

.wbody {
    flex: 1;
    min-height: 0;
    overflow: auto;
    position: relative
}

.window[data-app=files] .wbody,
.window[data-app=terminal] .wbody,
.window[data-app=editor] .wbody {
    overflow: hidden
}

.rz {
    position: absolute;
    z-index: 3
}

.rz-r {
    top: 0;
    right: 0;
    width: 6px;
    height: calc(100% - 10px);
    cursor: ew-resize
}

.rz-b {
    left: 0;
    bottom: 0;
    height: 6px;
    width: calc(100% - 10px);
    cursor: ns-resize
}

.rz-br {
    right: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    cursor: nwse-resize
}

.window.maxed .rz {
    display: none
}

.window.resizing {
    transition: none
}

.window.opening {
    animation: winOpen .45s var(--ease)
}

@keyframes winOpen {
    from {
        filter: blur(4px)
    }
}

.wbody>* {
    animation: bodyIn .5s var(--ease) both
}

@keyframes bodyIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }
}

h3 {
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--win-muted)
}

.chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.chips span {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    border-radius: 99px;
    padding: 4px 10px;
    font: 600 11px var(--mono);
    animation: pop .4s var(--ease) both;
    animation-delay: calc(var(--i, 0)*60ms)
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(.6)
    }
}

/* Fichiers */
.files {
    display: grid;
    grid-template-columns: 190px 1fr;
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0
}

.f-side {
    min-height: 0;
    background: var(--win-soft);
    border-right: 1px solid var(--win-line);
    padding: 10px 8px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.f-side button {
    flex: none;
    display: flex;
    gap: 10px;
    align-items: center;
    border: 0;
    background: none;
    color: var(--win-fg);
    padding: 9px 10px;
    border-radius: 9px;
    cursor: pointer;
    font: 13px var(--font);
    text-align: left;
    transition: background .15s, transform .15s
}

.f-side button span {
    width: 18px;
    text-align: center;
    color: var(--accent)
}

.f-side button:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    transform: translateX(3px)
}

.f-side button.on {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    font-weight: 600
}

.f-side hr {
    border: 0;
    border-top: 1px solid var(--win-line);
    margin: 6px 4px;
    width: calc(100% - 8px)
}

.f-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0
}

.f-bar {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--win-line);
    background: var(--win-bg)
}

.f-bar>button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: var(--win-soft);
    color: var(--win-fg);
    cursor: pointer;
    font-size: 16px;
    transition: background .15s, transform .15s
}

.f-bar>button:hover:not(:disabled) {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    transform: scale(1.08)
}

.f-bar>button:disabled {
    opacity: .35;
    cursor: default
}

.f-path {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--win-soft);
    border-radius: 9px;
    padding: 3px 6px;
    min-width: 0;
    overflow: hidden
}

.f-path i {
    font-style: normal;
    color: var(--win-muted)
}

.crumb {
    border: 0;
    background: none;
    color: var(--win-fg);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font: 13px var(--font);
    white-space: nowrap
}

.crumb:hover {
    background: color-mix(in srgb, var(--accent) 18%, transparent)
}

.crumb.on {
    font-weight: 700
}

.f-search {
    width: 140px;
    padding: 7px 10px;
    border-radius: 9px;
    border: 1px solid var(--win-line);
    background: var(--win-card);
    color: var(--win-fg);
    font: 13px var(--font);
    outline: none
}

.f-search:focus {
    border-color: var(--accent)
}

.f-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 16px;
    outline: none
}

.f-list.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    grid-auto-rows: max-content;
    gap: 10px
}

.f-list.list {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.f-item {
    border: 1px solid transparent;
    background: none;
    color: var(--win-fg);
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
    font: inherit;
    transition: transform .2s var(--ease), background .15s, border-color .15s
}

.f-item.in {
    animation: itemIn .5s var(--ease) both;
    animation-delay: calc(var(--i)*35ms)
}

@keyframes itemIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.9)
    }
}

.f-item:hover {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    transform: translateY(-3px)
}

.f-item.sel {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    border-color: color-mix(in srgb, var(--accent) 60%, transparent)
}

.f-ic {
    font-size: 40px;
    line-height: 1;
    color: var(--fc);
    transition: transform .25s var(--ease);
    font-weight: 400
}

.f-item:hover .f-ic {
    transform: scale(1.15) rotate(-4deg)
}

.f-name {
    font-size: 12px;
    word-break: break-word
}

.f-item small {
    color: var(--win-muted);
    font-size: 10px
}

.f-list.list .f-item {
    grid-template-columns: 34px 1fr auto;
    justify-items: start;
    align-items: center;
    padding: 8px 12px;
    text-align: left
}

.f-list.list .f-ic {
    font-size: 22px
}

.f-status {
    padding: 6px 14px;
    font-size: 11px;
    color: var(--win-muted);
    border-top: 1px solid var(--win-line)
}

.f-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: var(--win-muted)
}

.f-empty span {
    font-size: 56px;
    display: block;
    animation: float 3s ease-in-out infinite
}

.f-empty h3 {
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--win-fg)
}

/* Éditeur */
.editor {
    display: flex;
    flex-direction: column;
    height: 100%
}

.e-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--win-line)
}

.e-name {
    font-weight: 600
}

.e-state {
    font-size: 11px;
    color: #2f9e5f;
    margin-left: auto
}

.e-state.dirty {
    color: var(--accent)
}

.e-save {
    border: 0;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font: 600 12px var(--font);
    transition: transform .15s, box-shadow .15s
}

.e-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 50%, transparent)
}

.e-wrap {
    flex: 1;
    display: flex;
    min-height: 0
}

.e-gutter {
    margin: 0;
    padding: 14px 10px;
    min-width: 44px;
    text-align: right;
    overflow: hidden;
    background: var(--win-soft);
    color: var(--win-muted);
    font: 13px/1.65 var(--mono);
    user-select: none
}

.e-text {
    flex: 1;
    border: 0;
    outline: 0;
    resize: none;
    padding: 14px;
    background: var(--win-bg);
    color: var(--win-fg);
    font: 13px/1.65 var(--mono);
    tab-size: 2;
    white-space: pre;
    overflow: auto
}

.e-status {
    display: flex;
    gap: 18px;
    padding: 5px 14px;
    border-top: 1px solid var(--win-line);
    font: 11px var(--mono);
    color: var(--win-muted)
}

/* Terminal */
.term {
    height: 100%;
    overflow: auto;
    padding: 14px 16px;
    background: linear-gradient(180deg, #2c0f2a, #1d0a1e);
    color: #f0e6f3;
    font: 14px/1.5 var(--mono);
    cursor: text
}

.term * {
    font-family: inherit
}

.tl {
    white-space: pre-wrap;
    word-break: break-word;
    animation: tline .25s ease-out both
}

@keyframes tline {
    from {
        opacity: 0;
        transform: translateX(-6px)
    }
}

.tl.cmd {
    color: #fff
}

.g {
    color: #7ee787
}

.b {
    color: #6ab0ff;
    font-weight: 700
}

.o {
    color: #ff9a5a;
    font-weight: 700
}

.y {
    color: #f2c14e;
    font-weight: 700
}

.r {
    color: #ff7b72
}

.dim {
    color: #a08fab
}

.bar {
    color: #e95420
}

.lnk {
    color: #6ab0ff;
    text-decoration: underline
}

.t-line {
    display: flex;
    gap: 0;
    align-items: center
}

.t-ps {
    white-space: pre
}

.t-in {
    flex: 1;
    background: none;
    border: 0;
    outline: 0;
    color: #fff;
    font: inherit;
    caret-color: #ff9a5a;
    min-width: 40px
}

.t-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px
}

.nf {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    margin: 6px 0
}

.nf-logo {
    margin: 0;
    font: 10px/1.1 var(--mono);
    color: #e8e1ec
}

.nf-info {
    line-height: 1.55
}

.sw i {
    display: inline-block;
    width: 26px;
    height: 14px
}

.pre {
    margin: 0;
    font: inherit;
    color: #eadff0
}

.mx {
    display: block;
    width: 100%;
    max-width: 640px;
    border-radius: 8px;
    background: #000
}

/* Projets (Logiciels) */
.sw-app {
    min-height: 100%
}

.sw-head {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 18px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--win-bg);
    border-bottom: 1px solid var(--win-line)
}

.sw-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1
}

.sw-tabs button {
    border: 0;
    background: var(--win-soft);
    color: var(--win-fg);
    border-radius: 99px;
    padding: 7px 14px;
    cursor: pointer;
    font: 600 12px var(--font);
    transition: all .2s var(--ease)
}

.sw-tabs button:hover {
    transform: translateY(-2px)
}

.sw-tabs button.on {
    background: var(--accent);
    color: #fff
}

.sw-q {
    padding: 8px 12px;
    border-radius: 99px;
    border: 1px solid var(--win-line);
    background: var(--win-card);
    color: var(--win-fg);
    outline: none;
    font: 13px var(--font);
    width: 200px
}

.sw-q:focus {
    border-color: var(--accent)
}

.sw-banner {
    margin: 18px;
    border-radius: 18px;
    padding: 26px 30px;
    background: linear-gradient(120deg, #e95420, #d6336c 55%, #8a5cf5);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative
}

.sw-banner small {
    font: 600 11px var(--mono);
    letter-spacing: .14em;
    opacity: .85
}

.sw-banner h2 {
    margin: 8px 0;
    font-size: 26px;
    line-height: 1.1
}

.sw-banner p {
    margin: 0;
    opacity: .9
}

.sw-big {
    font: 700 110px var(--mono);
    opacity: .22;
    animation: float 5s ease-in-out infinite;
    transform: rotate(-8deg)
}

.sw-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, #ffffff33 50%, transparent 70%);
    transform: translateX(-100%);
    animation: sheen 4.5s ease-in-out infinite
}

@keyframes sheen {

    40%,
    100% {
        transform: translateX(100%)
    }
}

.sw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    padding: 0 18px 22px
}

.sw-card {
    display: flex;
    gap: 14px;
    text-align: left;
    border: 1px solid var(--win-line);
    background: var(--win-card);
    color: var(--win-fg);
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    font: inherit;
    animation: itemIn .55s var(--ease) both;
    animation-delay: calc(var(--i)*60ms);
    transition: transform .25s var(--ease), box-shadow .25s, border-color .2s
}

.sw-card:hover {
    transform: perspective(700px) translateY(-6px) rotateX(3deg);
    box-shadow: 0 18px 34px #0003;
    border-color: var(--accent)
}

.sw-ic {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--c1), var(--c2));
    color: #fff;
    font: 700 15px var(--mono);
    box-shadow: 0 6px 14px #0004
}

.sw-ic.big {
    width: 84px;
    height: 84px;
    font-size: 28px;
    border-radius: 22px
}

.sw-card b {
    display: block;
    font-size: 14px;
    line-height: 1.25
}

.sw-card small {
    color: var(--accent);
    font: 600 11px var(--mono)
}

.sw-card p {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--win-muted);
    line-height: 1.45
}

.sw-detail {
    padding: 22px
}

.sw-hero {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(120deg, var(--c1), var(--c2));
    color: #fff
}

.sw-hero h2 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.2
}

.sw-hero small {
    opacity: .85
}

.sw-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px
}

.sw-actions button {
    border: 0;
    border-radius: 99px;
    padding: 10px 22px;
    font: 700 13px var(--font);
    cursor: pointer;
    background: #fff;
    color: #2a1d33;
    transition: transform .2s var(--ease), box-shadow .2s
}

.sw-actions button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px #0004
}

/* Liens d'un projet (« Voir le site », « GitHub ») : même apparence que les boutons voisins */
.sw-actions .sw-link {
    border-radius: 99px;
    padding: 10px 22px;
    font: 700 13px var(--font);
    background: #fff;
    color: #2a1d33;
    text-decoration: none;
    transition: transform .2s var(--ease), box-shadow .2s
}

.sw-actions .sw-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px #0004
}

.sw-actions .done {
    background: #2f9e5f;
    color: #fff
}

.sw-prog {
    height: 6px;
    border-radius: 9px;
    background: #ffffff40;
    margin-top: 14px;
    overflow: hidden
}

.sw-prog i {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 9px;
    transition: width .15s linear
}

.sw-cols {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 26px;
    margin-top: 22px
}

.sw-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px
}

.sw-list li {
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--win-soft);
    border-left: 3px solid var(--accent);
    animation: slideIn .5s var(--ease) both;
    animation-delay: calc(var(--i)*70ms)
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-18px)
    }
}

.sw-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    font-size: 13px
}

.sw-info dt {
    color: var(--win-muted)
}

.sw-info dd {
    margin: 0;
    font-weight: 600
}

/* Moniteur système */
.sm-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 16px 0;
    border-bottom: 1px solid var(--win-line)
}

.sm-tabs button {
    border: 0;
    background: none;
    color: var(--win-muted);
    padding: 10px 16px;
    cursor: pointer;
    font: 600 13px var(--font);
    border-bottom: 3px solid transparent;
    transition: all .2s
}

.sm-tabs button:hover {
    color: var(--win-fg)
}

.sm-tabs button.on {
    color: var(--win-fg);
    border-color: var(--accent)
}

.sm-body {
    padding: 14px 18px 20px
}

.sm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px
}

.sm-table th {
    text-align: left;
    font: 600 11px var(--mono);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--win-muted);
    padding: 8px 10px;
    border-bottom: 1px solid var(--win-line);
    cursor: pointer;
    user-select: none
}

.sm-table th:hover {
    color: var(--accent)
}

.sm-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--win-line)
}

.sm-table tr {
    animation: slideIn .45s var(--ease) both;
    animation-delay: calc(var(--i)*45ms)
}

.sm-table tbody tr:hover {
    background: var(--win-soft)
}

.dotc {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 9px;
    animation: dot 1.8s infinite
}

@keyframes dot {
    50% {
        opacity: .35
    }
}

.mono {
    font-family: var(--mono)
}

.sm-bar {
    position: relative;
    height: 22px;
    border-radius: 99px;
    background: var(--win-soft);
    overflow: hidden;
    min-width: 150px
}

.sm-bar i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 99px;
    overflow: hidden;
    transition: width 1.1s var(--ease)
}

/* Dégradé qui défile : avant, background-position était animé (barre repeinte à chaque image).
   Maintenant le dégradé est porté par un ::before (2 motifs côte à côte) déplacé avec transform :
   même rendu que background-position 0 → 200 %, sans repeindre. */
.sm-bar i::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 400%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ffb36b, var(--accent)) 0 0 / 50% 100%;
    animation: barflow 3s linear infinite
}

@keyframes barflow {
    to {
        transform: translate3d(-50%, 0, 0)
    }
}

.sm-bar b {
    position: absolute;
    right: 10px;
    top: 50%;
    translate: 0 -50%;
    font: 700 11px var(--mono);
    color: var(--win-fg);
    mix-blend-mode: normal;
    text-shadow: 0 0 4px var(--win-bg)
}

.sm-note {
    font-size: 12px;
    color: var(--win-muted)
}

.sm-res h3,
.sm-langs h3 {
    margin: 6px 0 12px
}

.sm-res h3 small {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400
}

.sm-cv {
    width: 100%;
    height: 170px;
    border-radius: 14px;
    background: var(--win-soft);
    border: 1px solid var(--win-line)
}

.sm-meters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px
}

.sm-meters div {
    background: var(--win-soft);
    border-radius: 14px;
    padding: 14px
}

.sm-meters small {
    color: var(--win-muted);
    display: block;
    font-size: 11px
}

.sm-meters b {
    font: 700 20px var(--mono);
    color: var(--accent)
}

.lang {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
    animation: slideIn .5s var(--ease) both;
    animation-delay: calc(var(--i)*80ms)
}

.lang small {
    display: block;
    color: var(--win-muted)
}

/* À propos */
.ab {
    padding: 24px
}

.ab-hero {
    display: flex;
    gap: 22px;
    align-items: center
}

.ab-avatar {
    position: relative;
    width: 96px;
    height: 96px;
    flex: none
}

.ab-avatar span {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    display: grid;
    place-items: center;
    font: 700 32px var(--font);
    color: #fff;
    background: linear-gradient(135deg, #ffab6e, #d6336c 60%, #8a5cf5);
    box-shadow: 0 14px 30px #0005;
    animation: avatar 5s ease-in-out infinite
}

.ab-avatar i {
    position: absolute;
    inset: -7px;
    border-radius: 34px;
    border: 2px solid var(--accent);
    opacity: .5;
    animation: ring 3s ease-out infinite
}

.ab-hero small {
    font: 600 11px var(--mono);
    letter-spacing: .14em;
    color: var(--accent)
}

.ab-hero h2 {
    margin: 4px 0;
    font-size: 28px
}

.ab-hero p {
    margin: 0;
    color: var(--win-muted)
}

.ab-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px
}

.ab-links button,
.ab-links a {
    border: 1px solid var(--win-line);
    background: var(--win-card);
    color: var(--win-fg);
    border-radius: 99px;
    padding: 7px 14px;
    cursor: pointer;
    font: 600 12px var(--font);
    text-decoration: none;
    transition: all .2s var(--ease)
}

.ab-links button:hover,
.ab-links a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    border-color: var(--accent)
}

.ab-bio {
    line-height: 1.75;
    margin: 22px 0
}

.ab-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.ab-stats div {
    border-radius: 16px;
    padding: 16px;
    background: var(--win-soft);
    text-align: center;
    animation: pop .5s var(--ease) both;
    animation-delay: calc(var(--i)*100ms);
    transition: transform .25s var(--ease)
}

.ab-stats div:hover {
    transform: translateY(-4px) rotate(-1deg)
}

.ab-stats b {
    display: block;
    font: 700 34px var(--mono);
    color: var(--accent)
}

.ab-stats small {
    color: var(--win-muted);
    font-size: 12px
}

.ab-why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.ab-why div {
    border: 1px solid var(--win-line);
    border-radius: 12px;
    padding: 12px;
    background: var(--win-card);
    animation: itemIn .5s var(--ease) both;
    animation-delay: calc(var(--i)*70ms);
    transition: transform .2s, border-color .2s
}

.ab-why div:hover {
    transform: translateY(-3px);
    border-color: var(--accent)
}

.ab-why b {
    display: block;
    font: 700 11px var(--mono);
    color: var(--accent)
}

.ab-why span {
    font-size: 13px
}

.ab-sys {
    display: grid;
    grid-template-columns: 200px 1fr;
    border: 1px solid var(--win-line);
    border-radius: 14px;
    overflow: hidden;
    margin: 0
}

.ab-sys dt,
.ab-sys dd {
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid var(--win-line)
}

.ab-sys dt {
    color: var(--win-muted);
    background: var(--win-soft)
}

.ab-sys dd {
    font-weight: 600
}

.ab-sys dt:nth-last-child(2),
.ab-sys dd:last-child {
    border-bottom: 0
}

/* Formation */
.ed {
    padding: 24px
}

.ed-intro small {
    font: 600 11px var(--mono);
    letter-spacing: .14em;
    color: var(--accent)
}

.ed-intro h2 {
    margin: 6px 0;
    font-size: 26px
}

.ed-intro p {
    color: var(--win-muted);
    margin: 0
}

.ed-tl {
    position: relative;
    margin: 26px 0 0 14px;
    padding-left: 30px
}

.ed-tl::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--accent), transparent);
    transform-origin: top;
    animation: grow 1.2s var(--ease) both
}

@keyframes grow {
    from {
        transform: scaleY(0)
    }
}

.ed-item {
    position: relative;
    margin-bottom: 16px;
    animation: slideIn .6s var(--ease) both;
    animation-delay: calc(var(--i)*120ms + .2s)
}

.ed-dot {
    position: absolute;
    left: -31px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--win-bg);
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent)
}

.ed-card {
    background: var(--win-card);
    border: 1px solid var(--win-line);
    border-radius: 16px;
    padding: 16px 18px;
    transition: transform .25s var(--ease), box-shadow .25s, border-color .2s
}

.ed-card:hover {
    transform: translateX(6px) perspective(700px) rotateY(-2deg);
    box-shadow: 0 12px 26px #0002;
    border-color: var(--accent)
}

.ed-card small {
    font: 600 11px var(--mono);
    color: var(--accent)
}

.ed-card h3 {
    margin: 4px 0;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--win-fg)
}

.ed-card p {
    margin: 0;
    color: var(--win-muted)
}

.ed-card em {
    font-style: normal;
    display: inline-block;
    margin-top: 8px;
    font: 600 11px var(--mono);
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--win-soft);
    color: var(--win-muted)
}

.ed-card em.live {
    background: #2f9e5f25;
    color: #2f9e5f;
    animation: dot 1.6s infinite
}

/* Mail */
.ml {
    display: grid;
    grid-template-columns: 210px 1fr;
    height: 100%;
    position: relative
}

.ml-side {
    background: var(--win-soft);
    border-right: 1px solid var(--win-line);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: auto
}

.ml-side button,
.ml-side a {
    display: block;
    border: 0;
    background: none;
    color: var(--win-fg);
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font: 13px var(--font);
    text-decoration: none;
    word-break: break-all;
    transition: all .18s
}

.ml-side button.on {
    background: var(--accent);
    color: #fff;
    font-weight: 600
}

.ml-side button:hover:not(.on),
.ml-side a:hover {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    transform: translateX(3px)
}

.ml-note {
    margin-top: auto;
    padding: 12px;
    border-radius: 12px;
    background: var(--win-card);
    border: 1px solid var(--win-line)
}

.ml-note b {
    display: block;
    font-size: 13px
}

.ml-note small {
    color: var(--win-muted)
}

.ml-form {
    padding: 22px 26px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.ml-form h2 {
    margin: 0
}

.ml-form p {
    margin: 0 0 6px
}

.ml-form label {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: start;
    gap: 4px 10px;
    border-bottom: 1px solid var(--win-line);
    padding-bottom: 8px
}

.ml-form label span {
    padding-top: 8px;
    color: var(--win-muted);
    font-size: 12px
}

.ml-form input,
.ml-form textarea {
    border: 0;
    outline: 0;
    background: none;
    color: var(--win-fg);
    font: 14px var(--font);
    padding: 8px 4px;
    resize: vertical;
    width: 100%
}

.ml-form label:focus-within {
    border-color: var(--accent)
}

.ml-form .err {
    grid-column: 2;
    color: #e5484d;
    font-style: normal;
    font-size: 12px;
    min-height: 0
}

.ml-form label.bad {
    border-color: #e5484d
}

.ml-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 6px
}

.ml-send {
    border: 0;
    background: var(--accent);
    color: #fff;
    border-radius: 99px;
    padding: 11px 22px;
    cursor: pointer;
    font: 700 13px var(--font);
    display: flex;
    gap: 10px;
    transition: all .2s var(--ease)
}

.ml-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 50%, transparent)
}

.ml-send:hover span {
    animation: fly .6s
}

@keyframes fly {
    50% {
        transform: translate(8px, -8px)
    }
}

.ml-form.shake {
    animation: shake .4s
}

@keyframes shake {
    25% {
        transform: translateX(-8px)
    }

    75% {
        transform: translateX(8px)
    }
}

.ml-sent {
    grid-column: 2;
    text-align: center;
    align-self: center;
    padding: 30px
}

.ml-sent[hidden] {
    display: none
}

.plane {
    font-size: 60px;
    color: var(--accent);
    animation: plane 1.2s var(--ease) both
}

@keyframes plane {
    from {
        transform: translate(-120px, 80px) rotate(-30deg);
        opacity: 0
    }
}

.ml-again {
    border: 1px solid var(--win-line);
    background: var(--win-card);
    color: var(--win-fg);
    border-radius: 99px;
    padding: 9px 18px;
    cursor: pointer;
    font: 600 13px var(--font)
}

.ml-form[hidden] {
    display: none
}

/* Paramètres */
.st {
    padding: 8px 24px 24px;
    max-width: 720px
}

.st h3 {
    margin: 22px 0 10px
}

.st-walls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px
}

.wp {
    position: relative;
    height: 84px;
    border-radius: 14px;
    border: 3px solid transparent;
    cursor: pointer;
    overflow: hidden;
    color: #fff;
    font: 600 12px var(--font);
    transition: transform .25s var(--ease), border-color .2s
}

.wp:hover {
    transform: translateY(-4px) scale(1.03)
}

.wp.on {
    border-color: var(--accent)
}

.wp span {
    position: absolute;
    left: 8px;
    bottom: 6px;
    text-transform: capitalize;
    text-shadow: 0 1px 4px #000
}

.wp-aurora {
    background: radial-gradient(ellipse at 50% 70%, #59325d, #171422)
}

.wp-nuit {
    background: radial-gradient(ellipse at 50% 70%, #1a2144, #05060f)
}

.wp-ocean {
    background: radial-gradient(ellipse at 50% 70%, #1c6b8f, #071a2e)
}

.wp-sunset {
    background: radial-gradient(ellipse at 50% 75%, #c2476e, #23122f)
}

.st-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--win-card);
    border: 1px solid var(--win-line);
    border-radius: 14px;
    margin-bottom: 8px
}

.st-row b {
    display: block
}

.st-row small {
    color: var(--win-muted)
}

.sw {
    position: relative;
    width: 48px;
    height: 27px;
    border-radius: 99px;
    border: 0;
    background: color-mix(in srgb, var(--win-fg) 25%, transparent);
    cursor: pointer;
    transition: background .25s;
    flex: none
}

.sw i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px #0005;
    transition: transform .3s var(--ease)
}

.sw.on {
    background: var(--accent)
}

.sw.on i {
    transform: translateX(21px)
}

.st-acc {
    display: flex;
    gap: 8px
}

.st-acc button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid var(--win-card);
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s
}

.st-acc button:hover {
    transform: scale(1.2)
}

.st-acc button.on {
    box-shadow: 0 0 0 2px var(--win-fg)
}

.st-btn {
    border: 0;
    background: var(--accent);
    color: #fff;
    border-radius: 99px;
    padding: 8px 16px;
    cursor: pointer;
    font: 600 12px var(--font)
}

/* ---------- Activités ---------- */
.overview {
    position: fixed;
    top: 34px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2200;
    padding: 22px 30px 30px 96px;
    overflow: auto;
    background: #0c061088;
    backdrop-filter: blur(0);
    opacity: 0;
    transition: opacity .35s, backdrop-filter .35s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px
}

.overview[hidden] {
    display: none
}

body.ov-open .overview {
    opacity: 1;
    backdrop-filter: blur(14px)
}

.ov-search {
    width: min(520px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff1c;
    border: 1px solid #ffffff30;
    border-radius: 99px;
    padding: 0 18px;
    transform: translateY(-14px);
    opacity: 0;
    transition: all .45s var(--ease)
}

body.ov-open .ov-search {
    transform: none;
    opacity: 1
}

.ov-search input {
    flex: 1;
    background: none;
    border: 0;
    outline: 0;
    color: #fff;
    font: 16px var(--font);
    padding: 13px 0
}

.ov-search input::placeholder {
    color: #d3c3da
}

.ov-windows {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    perspective: 1200px;
    min-height: 40px
}

.ov-win {
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    display: grid;
    gap: 8px;
    justify-items: center;
    opacity: 0;
    transform: translateY(30px) rotateX(18deg) scale(.9);
    transition: transform .45s var(--ease), opacity .45s;
    transition-delay: calc(var(--i)*60ms)
}

body.ov-open .ov-win {
    opacity: 1;
    transform: none
}

.ov-win:hover {
    transform: translateY(-8px) rotateY(-5deg) scale(1.04) !important
}

.ov-thumb {
    position: relative;
    width: 260px;
    height: 170px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px #0008;
    outline: 2px solid transparent;
    transition: outline-color .2s
}

.ov-win:hover .ov-thumb {
    outline-color: var(--accent)
}

.ov-cap {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px
}

.ov-cap .aicon {
    width: 24px;
    height: 24px;
    font-size: 13px;
    border-radius: 7px
}

.ov-results {
    width: min(520px, 100%);
    display: grid;
    gap: 6px
}

.ov-hit {
    display: flex;
    gap: 14px;
    align-items: center;
    border: 0;
    background: #ffffff18;
    color: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    animation: slideIn .35s var(--ease) both;
    animation-delay: calc(var(--i)*40ms);
    transition: background .15s, transform .15s
}

.ov-hit:hover {
    background: #ffffff30;
    transform: translateX(6px)
}

.ov-hit-ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent);
    display: grid;
    place-items: center
}

.ov-hit small {
    display: block;
    color: #d3c3da
}

.overview.searching .ov-apps,
.overview.searching .ov-windows {
    display: none
}

.ov-apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
    width: min(860px, 100%);
    margin-top: 6px
}

.ov-app {
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 14px 6px;
    border-radius: 16px;
    font: 13px var(--font);
    opacity: 0;
    transform: scale(.7) translateY(20px);
    transition: transform .45s var(--ease), opacity .45s, background .2s;
    transition-delay: calc(var(--i)*40ms + .1s)
}

body.ov-open .ov-app {
    opacity: 1;
    transform: none
}

.ov-app:hover {
    background: #ffffff1c;
    transform: translateY(-6px) scale(1.06) !important;
    transition-delay: 0s
}

.ov-app .aicon {
    width: 58px;
    height: 58px;
    font-size: 30px;
    border-radius: 16px
}

.ov-windows.empty {
    display: none
}

.overview.apps-first .ov-windows {
    order: 5
}

.ov-ws {
    position: fixed;
    right: 14px;
    top: 50%;
    display: grid;
    gap: 8px
}

.ov-ws i {
    width: 8px;
    height: 38px;
    border-radius: 5px;
    background: #ffffff30
}

.ov-ws i.on {
    background: var(--accent)
}

/* ---------- Panneaux / Toasts / Ctx ---------- */
.panel {
    position: fixed;
    top: 40px;
    z-index: 3100;
    background: #1d1424f2;
    color: #f5f1f7;
    border: 1px solid #ffffff1c;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 24px 60px #000a;
    backdrop-filter: blur(20px)
}

.panel[hidden] {
    display: none
}

.panel.pop {
    animation: panelIn .3s var(--ease)
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.95)
    }
}

.quick {
    right: 10px;
    width: 340px;
    display: grid;
    gap: 10px
}

.q-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.quick button {
    border: 0;
    border-radius: 99px;
    background: #ffffff14;
    color: #f5f1f7;
    padding: 12px 14px;
    cursor: pointer;
    font: 600 13px var(--font);
    text-align: left;
    transition: all .2s var(--ease)
}

.quick button small {
    display: block;
    font-weight: 400;
    opacity: .7;
    font-size: 11px
}

.quick button:hover {
    background: #ffffff26;
    transform: translateY(-2px)
}

.quick .q-toggle.on {
    background: var(--accent)
}

.q-slider {
    display: grid;
    gap: 6px;
    font-size: 13px
}

.q-slider input {
    accent-color: var(--accent);
    width: 100%
}

.cal {
    left: 50%;
    translate: -50% 0;
    width: min(640px, calc(100vw - 20px));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.cal h3 {
    margin: 0 0 10px;
    color: #d3c3da;
    text-transform: capitalize
}

.cal .muted {
    color: #a99bb0
}

.note {
    display: flex;
    gap: 10px;
    background: #ffffff12;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 6px;
    animation: slideIn .3s var(--ease)
}

.note small {
    display: block;
    color: #bba9c4
}

.note-clear {
    border: 0;
    background: none;
    color: #ff9a5a;
    cursor: pointer;
    margin-top: 6px
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 13px
}

.cal-grid b {
    color: #a99bb0;
    font-size: 11px
}

.cal-grid span {
    padding: 7px 0;
    border-radius: 50%
}

.cal-grid span:hover {
    background: #ffffff1c
}

.cal-grid .today {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    animation: dot 2s infinite
}

.toasts {
    position: fixed;
    top: 44px;
    left: 50%;
    translate: -50% 0;
    z-index: 5000;
    display: grid;
    gap: 8px;
    justify-items: center;
    pointer-events: none
}

.toast {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 280px;
    max-width: min(460px, 92vw);
    background: #1d1424ee;
    color: #fff;
    padding: 12px 18px;
    border-radius: 99px;
    box-shadow: 0 14px 40px #000a;
    border: 1px solid #ffffff22;
    backdrop-filter: blur(14px);
    animation: toastIn .5s var(--ease)
}

.toast.out {
    animation: toastOut .35s ease-in forwards
}

.toast b {
    display: block;
    font-size: 13px
}

.toast small {
    display: block;
    color: #cdbcd5;
    font-size: 12px
}

.toast-ic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: grid;
    place-items: center;
    flex: none
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(.85)
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-20px) scale(.9)
    }
}

.ctx {
    position: fixed;
    z-index: 6000;
    min-width: 220px;
    padding: 6px;
    background: #1d1424f2;
    border: 1px solid #ffffff1f;
    border-radius: 14px;
    box-shadow: 0 20px 50px #000a;
    backdrop-filter: blur(16px)
}

.ctx[hidden] {
    display: none
}

.ctx.pop {
    animation: panelIn .2s var(--ease)
}

.ctx button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: none;
    color: #f5f1f7;
    padding: 9px 14px;
    border-radius: 9px;
    cursor: pointer;
    font: 13px var(--font)
}

.ctx button:hover {
    background: var(--accent)
}

.ctx hr {
    border: 0;
    border-top: 1px solid #ffffff1f;
    margin: 5px 0
}

/* ---------- Mobile ---------- */
@media(max-width:899px) {
    .dock {
        left: 50%;
        top: auto;
        bottom: 8px;
        transform: translate(-50%, 120px);
        flex-direction: row;
        width: auto;
        max-width: calc(100vw - 16px);
        overflow-x: auto;
        padding: 6px 8px
    }

    body.ready .dock {
        transform: translate(-50%, 0)
    }

    .dock hr,
    .dock-item small,
    .pips {
        display: none
    }

    #dockRun {
        flex-direction: row
    }

    .desktop-icons {
        left: 0;
        inset: 0 0 80px 0
    }

    .brand {
        left: 16px;
        top: auto;
        bottom: 100px
    }

    .brand h1 {
        font-size: 2.3rem
    }

    .window.mobile {
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: calc(100% - 78px) !important;
        border-radius: 0
    }

    .rz {
        display: none
    }

    .files {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr)
    }

    .f-side {
        flex-direction: row;
        flex: none;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--win-line)
    }

    .f-side button {
        white-space: nowrap
    }

    .sw-cols,
    .ab-stats,
    .ab-why,
    .sm-meters,
    .st-walls {
        grid-template-columns: 1fr 1fr
    }

    .sw-cols {
        grid-template-columns: 1fr
    }

    .ml {
        grid-template-columns: 1fr
    }

    .ml-side {
        display: none
    }

    .ml-sent {
        grid-column: 1
    }

    .ab-sys {
        grid-template-columns: 130px 1fr
    }

    .overview {
        padding: 14px
    }

    .cal {
        grid-template-columns: 1fr
    }

    .sw-head {
        flex-wrap: wrap
    }

    .sw-q {
        width: 100%
    }
}

.st-lang {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.st-lang button {
    border: 1px solid var(--win-line);
    background: var(--win-soft);
    color: var(--win-fg);
    border-radius: 99px;
    padding: 6px 12px;
    cursor: pointer;
    font: 600 12px var(--font);
    transition: all .2s var(--ease)
}

.st-lang button:hover {
    transform: translateY(-2px)
}

.st-lang button.on {
    background: var(--accent);
    color: #fff;
    border-color: transparent
}

/* ---------- Fichiers : cadenas « lecture seule » + bac à sable (Brouillons) ---------- */
.f-ic {
    position: relative;
    display: inline-block
}

.f-lock {
    position: absolute;
    right: -9px;
    bottom: -3px;
    font-size: 13px;
    font-style: normal;
    line-height: 1;
    filter: drop-shadow(0 1px 2px #0005)
}

.f-list.list .f-lock {
    font-size: 10px;
    right: -6px;
    bottom: -2px
}

.f-name span {
    unicode-bidi: isolate
}

.f-tmp,
.e-tmp {
    margin: 0;
    padding: 8px 14px;
    border-bottom: 1px solid var(--win-line);
    background: color-mix(in srgb, var(--accent) 9%, var(--win-bg));
    color: var(--win-fg);
    font-size: 12px
}

.f-tmp {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px
}

.f-tmp[hidden],
.f-ren[hidden] {
    display: none
}

.f-tmp p {
    margin: 0;
    flex: 1 1 260px
}

.f-tmp p span:first-child,
.e-tmp span:first-child {
    margin-inline-end: 8px
}

.f-tmp-act {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.f-tmp-act button,
.f-ren button {
    border: 1px solid var(--win-line);
    background: var(--win-card);
    color: var(--win-fg);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    font: 600 12px var(--font);
    transition: transform .15s, border-color .15s, background .15s
}

.f-tmp-act button:hover:not(:disabled),
.f-ren button:hover {
    border-color: var(--accent);
    transform: translateY(-1px)
}

.f-tmp-act button:disabled {
    opacity: .4;
    cursor: default
}

.f-ren {
    display: flex;
    gap: 6px;
    flex: 1 1 100%
}

.f-ren input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: var(--win-card);
    color: var(--win-fg);
    font: 13px var(--font);
    outline: none
}

.f-ren button {
    background: var(--accent);
    border-color: transparent;
    color: #fff
}

/* ---------- Visionneuse + badge « lecture seule » ---------- */
.vw {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--win-soft)
}

.vw-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--win-line);
    background: var(--win-bg)
}

.vw-bar-ic {
    font-size: 18px;
    line-height: 1
}

.vw-name {
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.vw-lock,
.e-lock {
    flex: none;
    font: 600 11px var(--mono);
    color: var(--win-muted);
    background: var(--win-soft);
    border: 1px solid var(--win-line);
    border-radius: 99px;
    padding: 3px 10px;
    white-space: nowrap
}

.e-lock {
    margin-inline-start: auto
}

.vw-copy,
.vw-mini,
.vw-btn {
    border: 1px solid var(--win-line);
    background: var(--win-card);
    color: var(--win-fg);
    border-radius: 8px;
    cursor: pointer;
    font: 600 12px var(--font);
    text-decoration: none;
    transition: transform .15s, border-color .15s, box-shadow .15s, background .15s
}

.vw-copy {
    flex: none;
    margin-inline-start: auto;
    padding: 6px 12px
}

.vw-mini {
    flex: none;
    padding: 4px 10px
}

.vw-copy:hover,
.vw-mini:hover,
.vw-btn:hover {
    border-color: var(--accent);
    transform: translateY(-1px)
}

.vw-scroll {
    flex: 1;
    overflow: auto;
    padding: 22px 16px
}

.vw-sheet {
    max-width: 620px;
    margin: 0 auto;
    padding: 36px 40px;
    background: var(--win-card);
    color: var(--win-fg);
    border: 1px solid var(--win-line);
    border-radius: 14px;
    box-shadow: 0 12px 34px #0000001f;
    line-height: 1.65;
    font-size: 14px
}

.vw-sheet>* {
    animation: vwIn .5s var(--ease) both
}

.vw-sheet>:nth-child(2) {
    animation-delay: 70ms
}

.vw-sheet>:nth-child(3) {
    animation-delay: 140ms
}

.vw-sheet>:nth-child(4) {
    animation-delay: 210ms
}

.vw-sheet>:nth-child(n+5) {
    animation-delay: 280ms
}

@keyframes vwIn {
    from {
        opacity: 0;
        transform: translateY(12px)
    }
}

.vw-sheet.copying :is(.vw-mini, [data-project]) {
    display: none
}

.vw-sheet p {
    margin: 0 0 14px
}

.vw-sheet h3 {
    margin: 24px 0 10px
}

.vw-sheet a {
    color: var(--accent)
}

.vw-sheet code {
    font: 600 12.5px var(--mono);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    border-radius: 6px;
    padding: 2px 7px
}

.vw-title {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -.01em
}

.vw-kicker {
    margin: 0 0 6px !important;
    font: 600 11px var(--mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent)
}

.vw-lead {
    font-size: 15px;
    color: var(--win-fg)
}

.vw-center {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 14px
}

.vw-avatar {
    width: 84px;
    height: 84px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    font: 700 28px var(--font);
    color: #fff;
    background: linear-gradient(135deg, #ffab6e, #d6336c 60%, #8a5cf5);
    box-shadow: 0 12px 26px #0003
}

.vw-rows {
    display: grid;
    gap: 8px;
    margin: 6px 0 18px
}

.vw-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--win-line);
    border-radius: 12px;
    background: var(--win-soft);
    min-width: 0
}

.vw-row-ic {
    flex: none;
    width: 22px;
    text-align: center;
    color: var(--accent);
    font-weight: 700
}

.vw-grow {
    flex: 1;
    min-width: 0
}

.vw-row a,
.vw-link a {
    overflow-wrap: anywhere
}

.vw-link {
    display: grid;
    gap: 1px
}

.vw-link a {
    font-size: 12px
}

.vw .vw-ltr {
    direction: ltr;
    unicode-bidi: isolate
}

.vw-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px
}

.vw-btns.start {
    justify-content: flex-start;
    margin-top: 26px
}

.vw-btn {
    padding: 9px 16px;
    font-size: 13px
}

.vw-sheet a.vw-btn {
    color: var(--win-fg)
}

.vw-btn.primary {
    background: var(--accent);
    border-color: transparent;
    color: #fff
}

.vw-btn.primary:hover {
    box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 45%, transparent)
}

.vw-list {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px
}

.vw-list li {
    position: relative;
    padding-inline-start: 20px;
    animation: vwIn .45s var(--ease) both;
    animation-delay: calc(160ms + var(--i, 0)*50ms)
}

.vw-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 3px;
    top: .62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent)
}

.vw-group {
    margin-top: 6px
}

.vw-skill {
    display: grid;
    grid-template-columns: minmax(96px, 150px) 1fr 44px;
    align-items: center;
    gap: 12px;
    padding: 7px 0
}

.vw-meter {
    position: relative;
    height: 10px;
    border-radius: 99px;
    background: var(--win-soft);
    border: 1px solid var(--win-line);
    overflow: hidden
}

.vw-meter i {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), #ffb36b);
    transition: width 1.1s var(--ease)
}

.vw-pct {
    font: 700 12px var(--mono);
    text-align: end;
    color: var(--win-muted)
}

.vw-langs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px
}

.vw-langs li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--win-line);
    border-radius: 12px;
    background: var(--win-soft);
    animation: vwIn .45s var(--ease) both;
    animation-delay: calc(120ms + var(--i, 0)*60ms)
}

.vw-badge,
.vw-status {
    font: 600 11px var(--mono);
    font-style: normal;
    padding: 3px 10px;
    border-radius: 99px;
    white-space: nowrap
}

.vw-badge {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent)
}

.vw-status {
    display: inline-block;
    background: var(--win-soft);
    color: var(--win-muted);
    border: 1px solid var(--win-line)
}

.vw-status.live {
    background: #2f9e5f25;
    border-color: transparent;
    color: #2f9e5f
}

.vw-dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 22px;
    margin: 18px 0 0;
    align-items: center
}

.vw-dl dt {
    color: var(--win-muted);
    font-size: 12px
}

.vw-dl dd {
    margin: 0;
    font-weight: 600
}

/* Persan : la feuille se lit de droite à gauche (adresses et liens restent de gauche à droite) */
html.lang-rtl .vw-bar,
html.lang-rtl .vw-sheet,
html.lang-rtl .f-tmp,
html.lang-rtl .e-tmp {
    direction: rtl
}

html.lang-rtl .vw-meter i {
    background: linear-gradient(270deg, var(--accent), #ffb36b)
}

@media(max-width:899px) {
    .vw-scroll {
        padding: 12px 10px
    }

    .vw-sheet {
        padding: 24px 18px
    }

    .vw-title {
        font-size: 20px
    }

    .vw-skill {
        grid-template-columns: 1fr 44px
    }

    .vw-skill .vw-meter {
        grid-column: 1/-1;
        grid-row: 2
    }

    .vw-row {
        flex-wrap: wrap
    }


    .f-tmp-act {
        width: 100%
    }
}

/* ---------- Projets : galerie d'images (project-gallery.js) + fiche détaillée ---------- */
.pg,
.pg-lightbox {
    --pg-accent: var(--accent, #e95420);
    --pg-radius: 12px;
    --pg-img-radius: 12px;
    --pg-img-shadow: 0 8px 26px #00000040;
    --pg-load: var(--win-soft, #00000014);
    --pg-thumb-radius: 10px;
    --pg-thumb-w: 108px;
    --pg-thumb-h: 72px;
    --pg-lb-bg: #111111d9
}

/* Fiche d'un projet : grande galerie qui reste visible pendant qu'on fait défiler le texte */
.sw-about .pg {
    position: sticky;
    top: 12px
}

.sw-about .pg-stage.has-image {
    max-height: 68vh
}

.sw-about .pg-empty {
    max-width: 320px
}

/* Bouton retour de la fiche d'un projet (barre de titre) */
.w-back.w-back-label {
    display: inline-flex;
    align-items: center;
    width: auto;
    padding: 0 12px 0 9px;
    gap: 5px;
    border-radius: 99px;
    font: 600 12px var(--font)
}

.w-back.w-back-label:hover {
    transform: none
}

html.lang-rtl .w-back-label span {
    transform: scaleX(-1)
}

.project-image {
    position: relative;
    margin: 0;
    aspect-ratio: 16/10;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent);
    border-radius: 14px;
    background: var(--win-soft)
}

.project-image img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.project-image-empty {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 12px;
    text-align: center;
    color: var(--win-muted)
}

.project-image-empty i {
    font-style: normal;
    font-size: 34px;
    line-height: 1;
    color: var(--accent)
}

.project-image-empty b {
    font-size: 13px;
    color: var(--win-fg)
}

.sw-about {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 26px;
    align-items: start;
    margin-top: 22px
}

.sw-story h3:first-child {
    margin-top: 0
}

.sw-story p {
    margin: 0 0 4px;
    line-height: 1.6
}

.vw-sheet .vw-list+h3,
.sw-story .sw-list+h3 {
    margin-top: 22px
}

@media(max-width:899px) {
    .sw-about {
        grid-template-columns: 1fr
    }
}

/* ---------- Centres d'intérêt (application + rangée dans À propos) ---------- */
.in {
    padding: 24px
}

.in-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 24px
}

.in-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--win-line);
    border-radius: 16px;
    background: var(--win-card);
    animation: pop .5s var(--ease) both;
    animation-delay: calc(var(--i)*90ms);
    transition: transform .25s var(--ease), border-color .2s, box-shadow .25s
}

.in-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 22%, transparent)
}

.in-sym {
    flex: none;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    font-size: 28px
}

.in-sym i {
    display: block;
    font-style: normal;
    line-height: 1
}

.in-card h3 {
    margin: 0 0 5px;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--win-fg)
}

.in-card p {
    margin: 0;
    color: var(--win-muted);
    font-size: 13px;
    line-height: 1.5
}

.in-football .in-sym i {
    animation: inBounce 1.3s cubic-bezier(.3, 0, .7, 1) infinite alternate
}

.in-volley .in-sym i {
    animation: inSpin 5s linear infinite
}

.in-musculation .in-sym i {
    animation: inLift 2.2s ease-in-out infinite
}

.in-langues .in-sym i {
    animation: inSpin 12s linear infinite
}

@keyframes inBounce {
    from {
        transform: translateY(5px) scaleY(.92)
    }

    to {
        transform: translateY(-8px)
    }
}

@keyframes inSpin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes inLift {

    0%,
    100% {
        transform: translateY(4px)
    }

    45%,
    60% {
        transform: translateY(-7px) scale(1.06)
    }
}

.ab-int {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: -6px 0 22px;
    padding: 12px 16px;
    border: 1px solid var(--win-line);
    border-radius: 14px;
    background: var(--win-soft);
    color: var(--win-fg);
    font: 600 13px var(--font);
    text-align: start;
    cursor: pointer;
    transition: transform .2s var(--ease), border-color .2s
}

.ab-int:hover {
    transform: translateY(-2px);
    border-color: var(--accent)
}

.ab-int-sym {
    display: flex;
    gap: 8px;
    margin-inline-start: auto;
    font-size: 19px
}

.ab-int-sym i {
    font-style: normal
}

.ab-int b {
    color: var(--accent);
    font-size: 18px
}

html.lang-rtl .in,
html.lang-rtl .ab-int {
    direction: rtl
}

@media(max-width:899px) {
    .in-grid {
        grid-template-columns: 1fr
    }
}

/* ===== Performance ===== */
/* Pendant le déplacement d'une fenêtre : flous d'arrière-plan coupés le temps du geste (choix validé) */
body.win-moving .dock,
body.win-moving .toast {
    backdrop-filter: none
}

/* Bureau caché par une fenêtre agrandie : animations du titre et des icônes en pause (classe posée par linux-desktop.js).
   Dans la vue « Activités », le bureau redevient visible : elles reprennent. */
body.win-max:not(.ov-open) .brand .ch,
body.win-max:not(.ov-open) .desktop-icon {
    animation-play-state: paused
}

/* Mode « appareil modeste » (classe posée sur <html> par perf-lite.js) : mêmes effets, flous plus légers */
.perf-lite .dock {
    backdrop-filter: blur(8px)
}

.perf-lite .panel,
.perf-lite .login-card {
    backdrop-filter: blur(8px)
}

.perf-lite .toast,
.perf-lite .ctx {
    backdrop-filter: blur(6px)
}

/* Ajouts « CV » : pastilles de compétences sans pourcentage et bloc Stages de l'application Formation */
.sm-tags {
    margin-top: 20px
}

.sm-tags h3 {
    margin: 0 0 4px
}

.sm-tags .sm-note {
    margin: 12px 0 6px
}

.ed-stages {
    margin-top: 36px
}

/* ===== Frise de l'application Formation : repères d'année, point « en cours » qui pulse, survol ===== */
.ed-year {
    position: relative;
    height: 26px;
    animation: slideIn .6s var(--ease) both;
    animation-delay: calc(var(--i)*120ms + .1s)
}

.ed-year span {
    position: absolute;
    z-index: 1;
    top: 2px;
    inset-inline-start: -24px;
    transform: translateX(-50%);
    padding: 2px 9px;
    border-radius: 99px;
    background: var(--win-bg);
    border: 1px solid var(--win-line);
    color: var(--accent);
    font: 600 10px var(--mono);
    white-space: nowrap
}

.ed-dot {
    transition: transform .2s var(--ease)
}

.ed-item:hover .ed-dot {
    transform: scale(1.35)
}

/* Seule animation continue : l'onde du point de l'élément en cours (transform + opacity) */
.ed-item.live .ed-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: edPulse 1.8s ease-out infinite
}

@keyframes edPulse {
    0% {
        opacity: .45;
        transform: scale(1)
    }

    100% {
        opacity: 0;
        transform: scale(2.6)
    }
}

.perf-lite .ed-item.live .ed-dot::after {
    animation: none
}

/* Persan (droite à gauche) : ligne et points à droite */
html.lang-rtl .ed {
    direction: rtl
}

html.lang-rtl .ed-tl {
    margin: 26px 14px 0 0;
    padding-left: 0;
    padding-right: 30px
}

html.lang-rtl .ed-tl::before {
    left: auto;
    right: 5px
}

html.lang-rtl .ed-dot {
    left: auto;
    right: -31px
}

html.lang-rtl .ed-year span {
    transform: translateX(50%)
}

html.lang-rtl .ed-card:hover {
    transform: translateX(-6px) perspective(700px) rotateY(2deg)
}

/* Interrupteur « Animations » coupé ou « réduire les animations » : la frise s'affiche tout de suite, sans cascade */
body.no-anim .ed-item,
body.no-anim .ed-year,
body.no-anim .ed-tl::before {
    animation-delay: 0s
}

@media (prefers-reduced-motion:reduce) {

    .ed-item,
    .ed-year,
    .ed-tl::before {
        animation-delay: 0s
    }
}


/* ===== Défilement des fenêtres : barre fine au style GNOME ===== */
.window {
    --sb-thumb: #8a7d92aa
}

body.theme-dark .window {
    --sb-thumb: #bcaec5aa
}

/* La poignée de redimensionnement (.rz-r, 6 px) recouvre le bord droit de la fenêtre, donc le bord de la barre de défilement :
   le curseur est inséré de 6 px pour que la barre reste saisissable, et la poignée garde sa zone. */
@supports selector(::-webkit-scrollbar) {
    .window ::-webkit-scrollbar {
        width: 14px;
        height: 14px
    }

    .window ::-webkit-scrollbar-track,
    .window ::-webkit-scrollbar-corner {
        background: transparent
    }

    .window ::-webkit-scrollbar-thumb {
        background: var(--sb-thumb);
        background-clip: padding-box;
        border: 3px solid transparent;
        border-right-width: 6px;
        border-radius: 10px;
        min-height: 36px
    }

    .window ::-webkit-scrollbar-thumb:hover,
    .window ::-webkit-scrollbar-thumb:active {
        background: var(--accent);
        background-clip: padding-box;
        border-left-width: 2px
    }
}

@supports not selector(::-webkit-scrollbar) {
    .window * {
        scrollbar-width: thin;
        scrollbar-color: var(--sb-thumb) transparent
    }

    .rz-r {
        width: 3px
    }
}

.wbody:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
    outline-offset: -2px
}

/* À propos : ligne d'étude et ligne des langues (ajouts — le reste du design est inchangé) */
.ab-hero p.ab-study {
    margin-top: 3px
}

.ab-stats {
    grid-template-columns: repeat(2, 1fr)
}

/* À propos : section « Langues » (persan, anglais, turc — sans niveaux) */
.ab-lang-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.ab-lang {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: var(--win-soft);
    animation: slideIn .6s var(--ease) both;
    animation-delay: calc(var(--i)*90ms + .2s);
    transition: transform .25s var(--ease), box-shadow .25s
}

.ab-lang:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px #0002
}

.ab-lang-sigle {
    grid-row: 1/3;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent);
    font: 700 18px var(--font);
    transition: transform .3s var(--ease)
}

.ab-lang:hover .ab-lang-sigle {
    transform: rotate(-6deg) scale(1.08)
}

.ab-lang-tx {
    display: grid;
    min-width: 0
}

.ab-lang-tx b {
    font-size: 16px;
    color: var(--win-fg)
}

.ab-lang-tx small {
    color: var(--win-muted);
    font: 11px var(--mono);
    text-transform: uppercase;
    letter-spacing: .05em
}

.ab-lang-hello {
    justify-self: start;
    padding: 2px 11px;
    border-radius: 99px;
    background: var(--win-card);
    border: 1px solid var(--win-line);
    color: var(--win-muted);
    font-size: 12.5px;
    transition: transform .3s var(--ease)
}

.ab-lang:hover .ab-lang-hello {
    transform: scale(1.07)
}

html.lang-rtl .ab-lang-list {
    direction: rtl
}

body.no-anim .ab-lang {
    animation: none
}

@media (max-width: 640px) {
    .ab-lang-list {
        grid-template-columns: 1fr
    }
}

@media (prefers-reduced-motion:reduce){.ab-lang{animation:none}}

.ab-lang-tx b,
.ab-lang-hello {
    text-align: start;
    unicode-bidi: isolate
}


/* ===== Projets : l'image du projet remplace l'icône (cartes, explorateur, recherche, fiche) =====
   Les images viennent du champ `cover` de projects-data.js. Un projet sans image garde sa tuile avec icône (.sw-ic). */
.sw-card.has-cover {
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 16px
}

.sw-media {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(145deg, var(--c1), var(--c2))
}

.sw-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: swFade .5s ease both;
    transition: transform .5s var(--ease)
}

.sw-card.has-cover:hover .sw-img,
.sw-card.has-cover:focus-visible .sw-img {
    transform: scale(1.06)
}

.sw-num {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 99px;
    background: #1d0f26b8;
    color: #fff;
    font: 700 11px var(--mono);
    box-shadow: 0 2px 8px #0005
}

html.lang-rtl .sw-num {
    left: auto;
    right: 10px
}

.sw-card.has-cover>div {
    padding: 12px 14px 14px
}

@keyframes swFade {
    from {
        opacity: 0
    }
}

body.no-anim .sw-img {
    animation: none;
    transition: none
}

/* Explorateur : miniature de l'image à la place du glyphe */
.f-ic:has(.f-thumb) {
    display: block;
    width: 104px;
    font-size: 0
}

.f-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px #0004
}

.f-item:hover .f-ic:has(.f-thumb) {
    transform: scale(1.06)
}

.f-list.list .f-ic:has(.f-thumb) {
    width: 34px
}

.f-list.list .f-thumb {
    height: 100%;
    aspect-ratio: 1;
    border-radius: 6px
}

/* Activités : résultats de recherche */
.ov-hit-ic.has-img {
    overflow: hidden;
    background: #ffffff22
}

.ov-hit-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

/* Fiche ouverte dans le visionneur */
.vw-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 14px;
    margin: 0 0 14px;
    box-shadow: 0 8px 24px #0004
}


/* ===== Terminal : sorties ligne par ligne, défilement et saisie sur téléphone ===== */
.tl {
    animation-delay: calc(var(--n, 0)*14ms)
}

.term {
    overscroll-behavior: contain;
    scrollbar-width: thin
}

@media (pointer: coarse) {
    .t-in {
        font-size: 16px
    }
}

body.no-anim .tl {
    animation: none
}


/* ===== Fiche projet : page « application » façon GNOME Logiciels ===== */
.gs-shots {
    margin: 18px 0 4px
}

.pg-strip .pg-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    overscroll-behavior-x: contain
}

.pg-shot {
    flex: 0 0 min(340px, 78%);
    aspect-ratio: 16/10;
    padding: 0;
    border: 1px solid var(--win-line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--win-soft);
    cursor: zoom-in;
    scroll-snap-align: start;
    box-shadow: 0 6px 16px #0002;
    transition: transform .25s var(--ease), box-shadow .25s
}

.pg-shot:hover,
.pg-shot:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px #0004;
    outline: 2px solid var(--accent);
    outline-offset: 2px
}

.pg-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.pg-strip-empty .project-image {
    aspect-ratio: 21/8;
    border-radius: 14px
}

.gs-story {
    margin: 12px 0 6px
}

.gs-gh {
    margin: 22px 4px 8px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--win-muted)
}

.gs-group {
    border: 1px solid var(--win-line);
    border-radius: 14px;
    background: var(--win-card);
    overflow: hidden
}

.gs-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--win-line);
    animation: itemIn .45s var(--ease) both;
    animation-delay: calc(var(--i, 0)*40ms)
}

.gs-row:last-child {
    border-bottom: 0
}

.gs-row span {
    flex: none;
    min-width: 96px;
    color: var(--win-muted)
}

.gs-row i {
    flex: none;
    color: var(--accent);
    font-style: normal
}

.gs-row b {
    font-weight: 500
}

.gs-chips {
    padding: 14px 16px
}

@media (max-width: 899px) {
    .gs-row {
        padding: 10px 12px
    }

    .gs-row span {
        min-width: 80px
    }
}

body.no-anim .gs-row,
body.no-anim .pg-shot {
    animation: none;
    transition: none
}


/* ===== Projets Linux : navigation Précédent / Suivant, défilement fluide ===== */
.sw-step {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-inline-start: 8px
}

.sw-step button {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--bar-fg) 12%, transparent);
    color: var(--bar-fg);
    cursor: pointer;
    display: grid;
    place-items: center
}

.sw-step button:hover:not(:disabled) {
    background: color-mix(in srgb, var(--accent) 22%, transparent)
}

.sw-step button:disabled {
    opacity: .35;
    cursor: default
}

.sw-pos {
    min-width: 46px;
    text-align: center;
    font: 600 11px var(--mono)
}

html.lang-rtl .sw-step button span {
    display: inline-block;
    transform: scaleX(-1)
}

/* Les cartes hors écran ne sont pas mises en page (content-visibility) ; pas d'ombre portée coûteuse sur les nombreuses cartes */
.sw-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 330px
}

.sw-card:hover {
    box-shadow: none
}

.sw-grid[data-still] .sw-card {
    animation: none
}

.pg-shot {
    box-shadow: none;
    contain: layout paint
}

.pg-shot:hover,
.pg-shot:focus-visible {
    box-shadow: none
}

.pg-strip .pg-rail {
    contain: layout paint
}

/* ===== Affinage : icônes SVG Yaru (portfolio-icons.js), grille d'icônes régulière, widget Conky, ligne d'invite, « Ranger les fenêtres » =====
   Icônes : pas de rotation ni d'échelle au survol (ré-échantillonnage = flou) ; soulèvement de 2 px. Animations jouées une fois. */
.aicon .pi { width: 60%; height: 60%; }
.grid-ic .pi { width: 54%; height: 54%; }
.desktop-icon { width: 92px; height: 100px; }
.desktop-icon .glyph .pi { width: 30px; height: 30px; }
.desktop-icon:hover { transform: translateY(-2px); }
.desktop-icon:hover .glyph { transform: none; }
.desktop-icon:focus-visible { outline: 2px solid #fff; outline-offset: -2px; box-shadow: 0 0 0 4px #e9542099; }
.desktop-icon small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 92px; padding: 1px 4px; border-radius: 6px; background: #12091a8c; text-shadow: 0 1px 2px #000c; overflow-wrap: break-word; }
.desktop-icon.sel small { background: #e95420; }
#sysBtn > span { display: inline-grid; place-items: center; }
#sysBtn > span .pi { display: block; }
.ov-hit-ic .pi { width: 22px; height: 22px; }
.ov-tile { display: flex; align-items: center; gap: 8px; margin: 0 auto 14px; padding: 8px 14px; border: 1px solid #ffffff2e; border-radius: 99px; background: #ffffff14; color: #fff; font: 600 13px var(--font); cursor: pointer; }
.ov-tile[hidden] { display: none; }
.ov-tile:hover, .ov-tile:focus-visible { background: #ffffff2b; outline: none; }
.ov-tile kbd { padding: 1px 6px; border-radius: 5px; background: #0005; font: 600 11px var(--mono, monospace); opacity: .8; }
/* Fenêtres : même barre de titre, même ombre, focus visible partout */
.window .wctl button:focus-visible, .window .wbar button:focus-visible { outline: 2px solid var(--accent, #e95420); outline-offset: 1px; }
/* Widget Conky (haut droite) */
.lx-conky { position: absolute; z-index: 2; top: 22px; right: 24px; display: grid; justify-items: end; gap: 2px; min-width: 180px; padding: 12px 16px; border: 1px solid #ffffff1f; border-radius: 14px; background: #12091ab8; color: #f5f1f7; font: 500 13px/1.35 var(--font); text-align: end; pointer-events: none; box-shadow: 0 10px 26px #0006; }
.cz-time { font: 300 34px/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cz-date { color: #dccfe2; font-size: 12.5px; text-transform: capitalize; }
.cz-dl { display: grid; grid-template-columns: auto auto; gap: 2px 12px; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #ffffff24; }
.cz-dl dt { color: #dccfe2; } .cz-dl dd { margin: 0; font-weight: 700; color: #ffb08a; font-variant-numeric: tabular-nums; }
html.lang-rtl .lx-conky { text-align: start; justify-items: start; }
body.ov-open .lx-conky, body.win-max .lx-conky { visibility: hidden; }
/* Ligne d'invite : toujours lisible (fond foncé), apparition gérée par le texte tapé */
.brand .brand-prompt { opacity: 1 !important; animation: none !important; }
@media (max-width: 899px) { .lx-conky { display: none; } }
/* Icônes nettes : plus de flottement en boucle (animation continue + position sous-pixel = flou), seulement l'apparition */
.ready .desktop-icon { animation: iconIn .6s var(--ease) both; animation-delay: calc(var(--i)*80ms + .9s); }
