@import url(./imports.css);

html {
    scrollbar-color: var(--background);
    scroll-behavior: smooth;
    color: var(--texte);
}

/*
 * G1 wallpaper session — fond par défaut « Ventura Graphic » (lien DefaultDesktop) tiré de la VM 304 (A-original, 2026-09-18).
 * Asset : vendors/apple/wallpaper/Ventura Graphic.webp (image primaire claire, affichée en cover).
 */
body#macos-ventura {
    display: var(--f);
    flex-flow: var(--cnw);
    align-items: var(--c);
    justify-content: var(--sb);
    width: var(--max-w);
    height: var(--max-h);
    overflow: var(--n);
    background-color: #de460d;
    background-image: url("../../../../usr/share/capsuleos/assets/images/vendors/apple/wallpaper/Ventura Graphic.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* G3 status GT P1/P4 — centres clic @1280 (≠ Sonoma) */
    --mac-status-input-x: 1020px;
    --mac-status-sm-x: 1085px;
    --mac-status-spotlight-x: 1104px;
    --mac-status-cc-x: 1145px;
    --mac-status-nc-x: 1205px;
    --mac-status-y: 11px;
    /* C6/C4 L1 — centres GT P1 @1280 (Apple→Help) ; wired absolute in header.css */
    --mac-menubar-pad-left: 6px;
    --mac-menu-trigger-pad-x: 9px;
    --mac-menu-l1-apple-x: 22px;
    --mac-menu-l1-finder-x: 68px;
    --mac-menu-l1-file-x: 130px;
    --mac-menu-l1-edit-x: 185px;
    --mac-menu-l1-view-x: 225px;
    --mac-menu-l1-go-x: 255px;
    --mac-menu-l1-window-x: 300px;
    --mac-menu-l1-help-x: 360px;
    /* G2 Dock GT P2 — centres @1280 · y≈775 · step≈48 */
    --mac-dock-icon: 40px;
    --mac-dock-edge-gap: 8px;
    --mac-dock-y: 96.875%;
    --mac-dock-finder-x: 9.2188%;
    --mac-dock-downloads-x: 83.9844%;
    --mac-dock-trash-x: 88.6719%;
    --mac-dock-sep-x: 74.2188%;
    --mac-dock-pill-left: 6.0938%;
    --mac-dock-pill-right: 8.2031%;
    --mac-dock-pill-bottom: 1.25%;
    --mac-dock-fit-pill-left: var(--mac-dock-pill-left);
    --mac-dock-fit-pill-right: var(--mac-dock-pill-right);
    --mac-dock-fit-pill-bottom: var(--mac-dock-pill-bottom);
}

#macosHeader {
    position: relative;
    display: var(--f);
    flex-flow: var(--rnw);
    align-items: var(--c);
    justify-content: var(--sb);
    width: var(--max-w);
    height: calc(var(--head) / 1.5);
    padding-right: 0;
    font-weight: bold;
    background: var(--sonohead);
    backdrop-filter: var(--blur);
}

main {
    display: var(--f);
    flex-flow: var(--cnw);
    align-items: var(--c);
    justify-content: var(--fs);
    width: var(--full);
    height: calc(var(--h80) + calc(var(--h80) / 4));
}

footer {
    position: var(--fs);
    bottom: calc(var(--head) / 2);
    display: var(--f);
    flex-flow: var(--rnw);
    align-items: var(--c);
    justify-content: var(--sa);
    width: calc(var(--head) * 44);
    height: calc(var(--head) * 2);
    padding: calc(var(--head) / 1.2) calc(var(--head) / 3.5);
    border-radius: calc(var(--head) / 2);
    background: var(--sonofoot);
    backdrop-filter: var(--blur);
    transition: transform .5s ease-out;
    transform: translateY(0);
    z-index: 1000;
}

footer.hidden {
    transform: translateY(100%);
}

/*
 * G2 — Dock Ventura GT P2 (1280×800). Scope skin only.
 * Pill ::before · rangée flex centrée · pastilles noires · Trash@1135.
 */
body#macos-ventura footer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    padding-bottom: calc(var(--mac-dock-fit-pill-bottom, 1.25%) + 8px);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    transform: none;
    overflow: visible;
    pointer-events: none;
}

body#macos-ventura footer::before {
    position: absolute;
    top: auto;
    right: var(--mac-dock-fit-pill-right);
    bottom: var(--mac-dock-fit-pill-bottom);
    left: var(--mac-dock-fit-pill-left);
    height: 54px;
    border-radius: 18px;
    background: var(--sonofoot);
    backdrop-filter: var(--blur);
    content: '';
    pointer-events: none;
    z-index: 0;
}

body#macos-ventura footer.hidden {
    transform: translateY(110%);
}

body#macos-ventura footer.hidden::before {
    opacity: 0;
}