@import url(./imports.css);

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

/*
 * G1 wallpaper session — fond par défaut « Sequoia Sunrise » (lien DefaultDesktop, = écran de
 * verrouillage) tiré de la VM 306 (A-original, 2026-09-18). Asset : vendors/apple/wallpaper/Sequoia Sunrise.webp
 */
body#macos-sequoia {
    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: #2c2c2c;
    background-image: url("../../../../usr/share/capsuleos/assets/images/vendors/apple/wallpaper/Sequoia Sunrise.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* G3 status GT P1 — centres clic @1280 (≠ Ventura/Sonoma) */
    --mac-status-input-x: 1060px;
    --mac-status-sm-x: 1120px;
    --mac-status-spotlight-x: 1104px;
    --mac-status-cc-x: 1145px;
    --mac-status-nc-x: 1220px;
    --mac-status-y: 11px;
    /* C6/C4 L1 — centres GT P1 @1280 ; absolute (leçon Sonoma/Ventura flex drift) */
    --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: 140px;
    --mac-menu-l1-edit-x: 185px;
    --mac-menu-l1-view-x: 225px;
    --mac-menu-l1-go-x: 280px;
    --mac-menu-l1-window-x: 314px;
    --mac-menu-l1-help-x: 350px;
    /* G2 Dock GT P2 — centres @1280 · y≈775 · step≈48 · sep926 · DL1175 · Trash1195 */
    --mac-dock-icon: 40px;
    --mac-dock-edge-gap: 8px;
    --mac-dock-y: 96.875%;
    --mac-dock-finder-x: 9.2188%;
    --mac-dock-downloads-x: 91.7969%;
    --mac-dock-trash-x: 93.3594%;
    --mac-dock-sep-x: 72.3438%;
    --mac-dock-pill-left: 6.0938%;
    --mac-dock-pill-right: 4.2969%;
    --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 Sequoia GT P2 (1280×800). Scope skin only.
 * Pill ::before · rangée flex centrée · pastilles noires · DL@1175 · Trash@1195.
 */
body#macos-sequoia 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-sequoia 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-sequoia footer.hidden {
    transform: translateY(110%);
}

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