@import url(./imports.css);

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

body {
    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);
}

header {
    height: var(--z);
}

main {
    display: var(--f);
    flex-flow: var(--cnw);
    align-items: var(--fs);
    justify-content: var(--fs);
    width: var(--max-w);
    height: var(--max-h);
    /* Fond « à la une » de la VM 101 (token de shell.css) : l'ancien --w11 du thème
       global pointait fond.webp avec une profondeur de chemin propre à la façade. */
    background-image: var(--win-desktop-bg-image);
    background-size: var(--scov);
    background-repeat: var(--nr);
}

main>a,
main>a>img {
    width: var(--a);
    height: calc(var(--head) * 1.2);
    margin: calc(var(--head) / 4);
}

div#menu {
    position: var(--abs);
    bottom: var(--win-taskbar-height, 48px);
    align-self: var(--c);
    /* Géométrie mesurée sur la VM 101 (start-menu-gt/vm/start-default.png,
       écran 1280×800) : le menu occupe x 320..959 et y 49..738, soit
       640 × 690, centré horizontalement, à 14 px au-dessus de la barre des
       tâches (48 px). L'ancienne taille (720 × 720) était une estimation. */
    width: 640px;
    height: 690px;
    margin-bottom: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: var(--win-start-menu-bg);
    color: rgba(0, 0, 0, 0.88);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(40px);
    /* Ouverture Windows 11 : le menu monte de 16 px en fondu, courbe
       deceleree WinUI 3 (250 ms a l'ouverture, 167 ms a la fermeture) — memes
       constantes que les autres surfaces systeme du shell. */
    transform: translateY(16px);
    transition: opacity var(--w11-dur-out, 167ms) var(--w11-accel, cubic-bezier(1, 0, 1, 1)),
        transform var(--w11-dur-out, 167ms) var(--w11-accel, cubic-bezier(1, 0, 1, 1)),
        width var(--w11-dur-in, 250ms) var(--w11-decel, cubic-bezier(0, 0, 0, 1)),
        visibility 0s linear var(--w11-dur-out, 167ms);
    opacity: var(--z);
    visibility: var(--hid);
    /* z-index de fenêtre non plafonné (windowManager.js incrémente ++zIndex à
       chaque ouverture/focus, base 10) — un menu Démarrer à z-index fixe bas
       finit couvert et non cliquable après quelques fenêtres. Aligné sur la
       convention des autres overlays système (Quick Settings/Task View/Snap
       Layouts, tous 10000+ dans shell.css) plutôt qu'un chiffre isolé. */
    z-index: 10060;
    overflow: hidden;
}

div#menu.visible {
    transform: translateY(0);
    transition: opacity var(--w11-dur-in, 250ms) var(--w11-decel, cubic-bezier(0, 0, 0, 1)),
        transform var(--w11-dur-in, 250ms) var(--w11-decel, cubic-bezier(0, 0, 0, 1)),
        width var(--w11-dur-in, 250ms) var(--w11-decel, cubic-bezier(0, 0, 0, 1)),
        visibility 0s linear 0s;
    opacity: 1;
    visibility: var(--vis);
    z-index: 10060;
}

footer {
    position: var(--abs);
    bottom: var(--z);
    display: var(--f);
    flex-flow: var(--rnw);
    align-items: var(--c);
    justify-content: var(--c);
    width: var(--full);
    height: calc(var(--head) + var(--head) / 3);
    background: var(--win-taskbar-bg);
    z-index: 5;
}
/* ------------------------------------------------------------------ *
 * Recherche du menu Démarrer — GT VM 101 (search-edge.png, 2026-09-09)
 * Panneau 774 × 690 (le menu s'élargit sans changer de hauteur ni de
 * position), champ 710 × 30, barre de filtres de 30 px à y 66 du haut du
 * panneau, colonnes liste 325 px / aperçu 386 px avec 10 px de gouttière,
 * de y 160 jusqu'au bas du panneau.
 * ------------------------------------------------------------------ */

div#menu.is-searching {
    width: 774px;
}

/* Le bandeau de recherche perd sa teinte propre en mode recherche (mesuré :
   #f2f2f2, la couleur du corps) et le champ occupe toute la largeur utile. */
#menu.is-searching section>nav {
    display: none;
}

#menu.is-searching section>nav:nth-child(1) {
    display: flex;
    background: var(--win-start-menu-bg);
}

#menu.is-searching input[type="search"] {
    width: 100%;
}

.win11-start-search {
    display: flex;
    flex: 1;
    flex-flow: column nowrap;
    width: 100%;
    min-height: 0;
}

.win11-start-search__filters {
    display: flex;
    align-items: center;
    width: 100%;
    height: 30px;
    margin-top: 3px;
    padding: 0 24px 0 28px;
}

.win11-start-search__back,
.win11-start-search__scroll,
.win11-start-search__more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    color: inherit;
    background: none;
    cursor: pointer;
}

.win11-start-search__back:hover,
.win11-start-search__scroll:hover {
    background: var(--win-start-tile-hover);
}

.win11-start-search__more[disabled] {
    opacity: .45;
    cursor: default;
}

.win11-start-search__chips {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    overflow: hidden;
    scroll-behavior: smooth;
}

.win11-start-search__chip {
    flex-shrink: 0;
    height: 30px;
    padding: 0 13px;
    white-space: nowrap;
    border: 1px solid var(--win-start-tile-border, rgba(0, 0, 0, 0.06));
    border-radius: 15px;
    font-family: inherit;
    font-size: 13px;
    color: inherit;
    background: var(--win-start-search-chip);
    cursor: pointer;
}

.win11-start-search__chip.is-active {
    border-color: transparent;
    color: #ffffff;
    background: var(--w11-accent, #0067c0);
}

.win11-start-search__chip[disabled] {
    opacity: .45;
    cursor: default;
}

.win11-start-search__cols {
    display: flex;
    flex: 1;
    gap: 10px;
    width: 100%;
    min-height: 0;
    margin-top: 16px;
    padding: 0 24px 0 28px;
}

.win11-start-search__list {
    width: 325px;
    height: 100%;
    overflow-y: auto;
}

.win11-start-search__group {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 4px;
    font-size: 14px;
    font-weight: 600;
}

.win11-start-search__group-count {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 400;
    color: var(--win-fg-secondary, rgba(0, 0, 0, 0.6));
}

.win11-start-search__group-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: auto;
    border: none;
    border-radius: 4px;
    color: inherit;
    background: none;
    cursor: pointer;
}

.win11-start-search__group-more:hover {
    background: var(--win-start-tile-hover);
}

.win11-start-search__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 42px;
    padding: 0 12px;
    border-radius: 4px;
}

.win11-start-search__row--best {
    height: 62px;
    margin-top: 8px;
    background: var(--win-start-search-card);
}

.win11-start-search__row:hover,
.win11-start-search__row.is-selected {
    background: var(--win-start-tile-hover);
}

.win11-start-search__row--best.is-selected,
.win11-start-search__row--best:hover {
    background: var(--win-start-search-card);
}

.win11-start-search__indicator {
    position: absolute;
    left: 4px;
    top: 50%;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--w11-accent, #0067c0);
    transform: translateY(-50%);
}

.win11-start-search__text {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    overflow: hidden;
}

.win11-start-search__title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.win11-start-search__sub {
    font-size: 12px;
    color: var(--win-fg-secondary, rgba(0, 0, 0, 0.6));
}

.win11-start-search__row--inert .win11-start-search__title {
    opacity: .55;
}

.win11-start-search__link {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.win11-start-search__empty {
    padding: 12px 4px;
    font-size: 14px;
    color: var(--win-fg-secondary, rgba(0, 0, 0, 0.6));
}

.win11-start-search__preview {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    width: 386px;
    height: 100%;
    border-radius: 8px 8px 0 0;
    background: var(--win-start-search-card);
    overflow: hidden;
}

.win11-start-search__preview-icon {
    margin-top: 32px;
}

.win11-start-search__preview-name {
    margin-top: 28px;
    font-size: 20px;
}

.win11-start-search__preview-sub {
    margin-top: 6px;
    font-size: 12px;
    color: var(--win-fg-secondary, rgba(0, 0, 0, 0.6));
}

.win11-start-search__preview-rule {
    width: 348px;
    height: 1px;
    margin: 24px 0 0;
    border: none;
    background: var(--win-start-tile-border, rgba(0, 0, 0, 0.08));
}

.win11-start-search__actions {
    width: 100%;
    margin-top: 12px;
    padding: 0 20px;
}

.win11-start-search__action {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 32px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 14px;
}

.win11-start-search__action:hover {
    background: var(--win-start-tile-hover);
}

.win11-start-search__action.is-disabled {
    opacity: .45;
}

.win11-start-search__preview-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    margin-top: 8px;
    border: none;
    color: inherit;
    background: none;
    opacity: .55;
}
