@import url(./imports.css);

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

/*
 * G1 wallpaper — A-photo Monterey Graphic (VM 303 Desktop Pictures).
 * Export ManA 2026-08-27 : HEIC → TAHOEIA → JPG frame Dark (heif-convert).
 * Gradient de secours si JPG indisponible.
 */
body#macos-monterey {
    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);
    --mac-desktop-wallpaper: url("../../../../usr/share/capsuleos/assets/images/vendors/apple/wallpaper/Monterey Graphic.webp");
    background-color: rgb(66, 15, 129);
    background-image:
        var(--mac-desktop-wallpaper),
        radial-gradient(ellipse 85% 65% at 52% 38%, rgb(109, 43, 185) 0%, rgba(109, 43, 185, 0) 58%),
        radial-gradient(ellipse 55% 45% at 22% 28%, rgb(77, 16, 140) 0%, rgba(77, 16, 140, 0) 55%),
        linear-gradient(180deg, rgb(65, 17, 152) 0%, rgb(68, 16, 134) 42%, rgb(40, 8, 90) 72%, rgb(25, 5, 64) 100%);
    background-position: center center, center center, center center, center center;
    background-size: cover, cover, cover, cover;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    /* C6 / C4 L1 — centres GT P1 absolus @1280 (tol ≤2px) · Apple@25 … Help@371 */
    --mac-menu-l1-apple-x: 25px;
    --mac-menu-l1-finder-x: 72px;
    --mac-menu-l1-file-x: 125px;
    --mac-menu-l1-edit-x: 168px;
    --mac-menu-l1-view-x: 216px;
    --mac-menu-l1-go-x: 259px;
    --mac-menu-l1-window-x: 313px;
    --mac-menu-l1-help-x: 371px;
    /* IDP.26 — strip Safari (History + Bookmarks) */
    --mac-menu-l1-history-x: 259px;
    --mac-menu-l1-bookmarks-x: 318px;
    --mac-menu-l1-window-safari-x: 378px;
    --mac-menu-l1-help-safari-x: 436px;
    /* IDP.27 — strip Mail (Mailbox + Message + Format) */
    --mac-menu-l1-mailbox-x: 268px;
    --mac-menu-l1-message-x: 332px;
    --mac-menu-l1-format-x: 393px;
    --mac-menu-l1-window-mail-x: 448px;
    --mac-menu-l1-help-mail-x: 504px;
    /* IDP.27 — strip Messages (Conversation) */
    --mac-menu-l1-conversation-x: 278px;
    --mac-menu-l1-window-messages-x: 368px;
    --mac-menu-l1-help-messages-x: 420px;
    /* IDP.30 — strip Music (Song + Controls · View/Window/Help décalés) */
    --mac-menu-l1-song-x: 258px;
    --mac-menu-l1-view-music-x: 298px;
    --mac-menu-l1-controls-x: 348px;
    --mac-menu-l1-window-music-x: 408px;
    --mac-menu-l1-help-music-x: 466px;
    /* IDP.31 — strip Photos (Image) / Notes (Format) */
    --mac-menu-l1-image-x: 258px;
    --mac-menu-l1-view-photos-x: 308px;
    --mac-menu-l1-window-photos-x: 368px;
    --mac-menu-l1-help-photos-x: 426px;
    --mac-menu-l1-format-notes-x: 258px;
    --mac-menu-l1-view-notes-x: 318px;
    --mac-menu-l1-window-notes-x: 378px;
    --mac-menu-l1-help-notes-x: 436px;
    /* IDP.32 — Contacts (Card) · FaceTime (Video) · Podcasts (Controls) · App Store (Store/Account) */
    --mac-menu-l1-card-x: 258px;
    --mac-menu-l1-view-contacts-x: 308px;
    --mac-menu-l1-window-contacts-x: 368px;
    --mac-menu-l1-help-contacts-x: 426px;
    --mac-menu-l1-video-x: 258px;
    --mac-menu-l1-view-facetime-x: 308px;
    --mac-menu-l1-window-facetime-x: 368px;
    --mac-menu-l1-help-facetime-x: 426px;
    --mac-menu-l1-controls-podcasts-x: 258px;
    --mac-menu-l1-view-podcasts-x: 328px;
    --mac-menu-l1-window-podcasts-x: 388px;
    --mac-menu-l1-help-podcasts-x: 446px;
    --mac-menu-l1-store-x: 148px;
    --mac-menu-l1-account-x: 208px;
    --mac-menu-l1-window-appstore-x: 278px;
    --mac-menu-l1-help-appstore-x: 336px;
    /* IDP.33 — Freeform : Insert · Format · View/Window/Help décalés */
    --mac-menu-l1-insert-x: 258px;
    --mac-menu-l1-format-freeform-x: 318px;
    --mac-menu-l1-view-freeform-x: 388px;
    --mac-menu-l1-window-freeform-x: 448px;
    --mac-menu-l1-help-freeform-x: 506px;
    --mac-menu-l1-shell-x: 258px;
    --mac-menu-l1-view-terminal-x: 318px;
    --mac-menu-l1-window-terminal-x: 378px;
    --mac-menu-l1-help-terminal-x: 436px;
    --mac-menu-l1-tools-x: 258px;
    --mac-menu-l1-view-preview-x: 318px;
    --mac-menu-l1-window-preview-x: 378px;
    --mac-menu-l1-help-preview-x: 436px;
    --mac-menu-l1-view-calculator-x: 258px;
    --mac-menu-l1-window-calculator-x: 318px;
    --mac-menu-l1-help-calculator-x: 376px;
    --mac-menu-l1-view-stickies-x: 378px;
    --mac-menu-l1-window-stickies-x: 438px;
    --mac-menu-l1-help-stickies-x: 496px;
    --mac-menu-l1-font-stickies-x: 258px;
    --mac-menu-l1-color-stickies-x: 318px;
    --mac-menu-l1-view-clock-x: 258px;
    --mac-menu-l1-window-clock-x: 318px;
    --mac-menu-l1-help-clock-x: 376px;
    --mac-menu-l1-view-dictionary-x: 258px;
    --mac-menu-l1-window-dictionary-x: 318px;
    --mac-menu-l1-help-dictionary-x: 376px;
    --mac-menu-l1-view-weather-x: 258px;
    --mac-menu-l1-window-weather-x: 318px;
    --mac-menu-l1-help-weather-x: 376px;
    --mac-menu-l1-view-activity-x: 258px;
    --mac-menu-l1-window-activity-x: 318px;
    --mac-menu-l1-help-activity-x: 376px;
    --mac-menu-l1-view-news-x: 258px;
    --mac-menu-l1-window-news-x: 318px;
    --mac-menu-l1-help-news-x: 376px;
    --mac-menu-l1-view-stocks-x: 258px;
    --mac-menu-l1-window-stocks-x: 318px;
    --mac-menu-l1-help-stocks-x: 376px;
    --mac-menu-l1-view-books-x: 258px;
    --mac-menu-l1-window-books-x: 318px;
    --mac-menu-l1-help-books-x: 376px;
    --mac-menu-l1-view-iwork-x: 258px;
    --mac-menu-l1-window-iwork-x: 318px;
    --mac-menu-l1-help-iwork-x: 376px;
    /* G3 status — cluster recalé IDP (horloge longue) : P1 −24 px + NC C5@1194 */
    --mac-status-input-x: 956px;
    --mac-status-sm-x: 987px;
    --mac-status-wifi-x: 1030px;
    --mac-status-spotlight-x: 1062px;
    --mac-status-cc-x: 1105px;
    --mac-status-nc-x: 1194px;
    --mac-status-y: 11px;
    /* G2 Dock GT P2 — pill Dark h65 · icônes 52 (¬clamp) · Finder@117→Prefs@1033 even */
    --mac-dock-icon: 52px;
    --mac-dock-gt-clamp: 0;
    --mac-dock-edge-gap: 8px;
    --mac-dock-y: 96.5%;
    --mac-dock-finder-x: 9.1406%;
    --mac-dock-downloads-x: 85.9375%;
    --mac-dock-trash-x: 91.0156%;
    --mac-dock-sep-x: 83.2813%;
    --mac-dock-pill-left: 6.0938%;
    --mac-dock-pill-right: 5.4688%;
    --mac-dock-pill-bottom: 0.75%;
    --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);
    --mac-dock-pill-bg: rgba(22, 22, 24, 0.78);
    /* IDP.56 — hauteur pill sous mag + transition (défauts ; JS override --mac-dock-pill-mag-h) */
    --mac-dock-pill-mag-h: 65px;
    --mac-dock-magnify-transition-ms: 75ms;
    --mac-dock-magnify-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

#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);
}

/*
 * IDP.9 — menubar GT Dark Mode @1280×800 : bande y=0–23 rgb(32,32,32),
 * texte ~#f5f5f7, h=24 px. ¬frost --sonohead (gradient violet 40 %).
 */
body#macos-monterey #macosHeader {
    height: 24px;
    min-height: 24px;
    padding: 0;
    border: 0;
    color: rgb(245, 245, 247);
    font-weight: 400;
    background: rgb(32, 32, 32);
    background-image: none;
    backdrop-filter: none;
    box-sizing: border-box;
}

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 Monterey GT P2 (1280×800). Scope skin only.
 * Pill ::before · rangée flex centrée · Podcasts · Prefs@1033 · DL@1100 · Trash@1165.
 */
body#macos-monterey 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, 0.75%) + 12px);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    transform: none;
    overflow: visible;
    pointer-events: none;
}

body#macos-monterey 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: var(--mac-dock-pill-mag-h, 65px);
    border: 0.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    background: var(--mac-dock-pill-bg, rgba(22, 22, 24, 0.78));
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.45), 0 10px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(36px) saturate(140%);
    -webkit-backdrop-filter: blur(36px) saturate(140%);
    content: '';
    pointer-events: none;
    z-index: 0;
    transition: height var(--mac-dock-magnify-transition-ms, 75ms) var(--mac-dock-magnify-ease, cubic-bezier(0.22, 0.61, 0.36, 1));
}

/* IDP.56 — tip Dock Dark Mode (délai JS tipDelayMs) */
body#macos-monterey .mac-aqua-dock-tip {
    padding: 3px 10px;
    border: 0.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgb(245, 245, 247);
    background: rgb(45, 45, 48);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.12s ease-out;
}

/* Flèche tip = fill tip Dark (≠ Sequoia glass générique) */
body#macos-monterey .mac-aqua-dock-tip::before {
    border-top-color: rgba(255, 255, 255, 0.18);
}

body#macos-monterey .mac-aqua-dock-tip::after {
    border-top-color: rgb(45, 45, 48);
}

body#macos-monterey .mac-aqua-dock-tip.is-visible {
    display: block;
    opacity: 1;
}

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

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

/*
 * IDP.57 / IDP.227 — Launchpad Monterey Dark calibré frames GT P8 (p8-launchpad-deep).
 * Search centerY≈56 · dots≈y738 · clear × · Soft Dark pill.
 */
body#macos-monterey #launchpad.mac-lp .mac-lp__backdrop {
    background: rgba(28, 12, 48, 0.48);
    backdrop-filter: blur(42px) saturate(160%);
    -webkit-backdrop-filter: blur(42px) saturate(160%);
}

body#macos-monterey #launchpad.mac-lp .mac-lp__search-field {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.14);
}

body#macos-monterey #launchpad.mac-lp .mac-lp__search-input {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
}

body#macos-monterey #launchpad.mac-lp .mac-lp__search-input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

body#macos-monterey #launchpad.mac-lp .mac-lp__dots {
    bottom: 56px;
}

body#macos-monterey #launchpad.mac-lp .mac-lp__dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.32);
}

body#macos-monterey #launchpad.mac-lp .mac-lp__dot.is-active {
    background: rgba(255, 255, 255, 0.96);
}

body#macos-monterey #launchpad.mac-lp .mac-lp__icon {
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36);
}

body#macos-monterey #launchpad.mac-lp .mac-lp__folder-tile {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
}

/* IDP.58 — dossier Other Dark Mode */
body#macos-monterey #launchpad.mac-lp .mac-lp__folder-stage {
    background: rgba(12, 4, 28, 0.38);
}

body#macos-monterey #launchpad.mac-lp .mac-lp__folder-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(48, 28, 72, 0.42);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.48), inset 0 0.5px 0 rgba(255, 255, 255, 0.16);
}

/*
 * IDP.59 — Notification Center Monterey ¬What's New Sonoma.
 * IDP.88 — Edit sous le texte (≠ footer collé Dock).
 * IDP.92 — non-Edit = Calendar + Stocks (GT C5) · Weather/World Clock = Edit seul.
 * IDP.94 — non-Edit : ¬« No recent notifications » · Edit Widgets sous Stocks (GT C5).
 */
body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"] .mac-aqua-nc__scroll {
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"]:not(.is-editing) [data-mac-nc-edit-only] {
    display: none;
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"]:not(.is-editing) .mac-aqua-nc__row > .mac-aqua-nc__widget:not([data-mac-nc-edit-only]) {
    flex: 1 1 100%;
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"]:not(.is-editing) .mac-aqua-nc__scroll {
    flex: 0 0 auto;
}

/* GT C5 stack widgets : empty notifs absent (≠ texte + grand vide vers Edit) */
body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"]:not(.is-editing) .mac-aqua-nc__notifs.is-empty {
    display: none;
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"] .mac-aqua-nc__notifs-empty {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.52;
    color: rgb(245, 245, 247);
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"]:not(.is-editing) .mac-aqua-nc__footer {
    flex: 0 0 auto;
    margin-top: 12px;
    padding: 0 0 8px;
    background: none;
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"].is-editing .mac-aqua-nc__footer {
    margin-top: auto;
}

/* IDP.89 — contour tireté · IDP.94 — scroll flex en Edit pour Done en bas */
body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"].is-editing .mac-aqua-nc__scroll {
    flex: 1 1 auto;
    margin: 0 4px;
    padding: 6px 4px 8px;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: 16px;
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"].is-editing .mac-aqua-nc__widget {
    outline: none;
}

/* IDP.90 — Weather Unavailable : icône soleil/nuage (GT Edit widgets) */
body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"] .mac-aqua-nc__weather {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"] .mac-aqua-nc__weather-icon {
    display: block;
    line-height: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 40, 90, 0.35));
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"] .mac-aqua-nc__weather-icon svg {
    display: block;
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"] .mac-aqua-nc__weather-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* IDP.91 — lettres ticker Stocks (A / M / T) */
/* IDP.96 — pastilles circulaires GT C5 (≠ squircle 7px) */
body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"] .mac-aqua-nc__stock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* IDP.95 — pastille prix Stocks (GT C5 · ≠ texte nu) */
body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"] .mac-aqua-nc__stock-price {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 54px;
    height: 22px;
    margin: 0;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    background: rgba(58, 58, 60, 0.98);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"] .mac-aqua-nc__stock-price.is-up {
    color: #30d158;
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"] .mac-aqua-nc__stock-price.is-down {
    color: #ff453a;
}

/* IDP.97 — rangée Stocks 4 colonnes GT C5 (icône · ticker · spark · prix) */
body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"] .mac-aqua-nc__stock-body {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"] .mac-aqua-nc__stock-name {
    flex: 0 0 auto;
    min-width: 2.6em;
    margin: 0;
}

body#macos-monterey .mac-aqua-nc[data-mac-nc-profile="monterey"] .mac-aqua-nc__stock-spark {
    flex: 1 1 auto;
    width: auto;
    min-width: 48px;
    max-width: 100%;
    height: 18px;
    margin: 0;
}
