/* BEGIN */
/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
    /* FONTS */
    --font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-size-sm: 1.7vh;
    --font-size-md: 2.1vh;
    --font-size-lg: 2.6vh;
    --font-size-xl: 3.0vh;
    /* COLORS */
    --color-window: #efe8da;
    --color-top: #53b7af;
    --color-topText: red;
    --color-whatContainer: #6ccbc5;
    --color-work: #faf6eb;
    --color-where: #95e1dc ;
    --color-separator: #cfa45b;
    --color-buttons: #faf6eb	;
    --color-bottom: #43a098;
    --color-text: #2e2e2e;
    --color-textInverse: #ffffff;
    --color-lockText: #43a098;
    --color-textButton: red;
    --color-bubbleWork: #f8f9fb;
    /* SIZES */
    --spinner-size: 8vh;
}
/* ==========================================================================
   PAGE
   ========================================================================== */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--color-window);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
}
/* END */    /* ************************************************************ libs/TREE/TREE.css */


/* tree */
.tree-ui-search,
.tree-ui-item,
.tree-ui-result,
.tree-ui-back {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.tree-ui-search:active,
.tree-ui-item:active,
.tree-ui-result:active,
.tree-ui-back:active {
    background: rgba(0, 0, 0, 0.04);
}

.tree-ui-search {
    color: #77736c;
}

.tree-ui-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.tree-ui-search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d8d0c2;
    border-radius: 6px;
    background: #fff;
    color: var(--color-text);
    font: inherit;
    outline: none;
}

.tree-ui-search-input:focus {
    border-color: var(--color-accent);
}

.tree-ui-search-close {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 0;
    background: none;
    color: #77736c;
    font: inherit;
    font-size: 1.4em;
    cursor: pointer;
}

.tree-ui-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tree-ui-item-marker {
    width: 3px;
    height: 1.2em;
    flex: 0 0 3px;
    background: var(--color-accent);
}

.tree-ui-item-label {
    flex: 1;
    min-width: 0;
}

.tree-ui-results {
    width: 100%;
}

.tree-ui-result {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tree-ui-result-marker {
    flex: 0 0 12px;
    width: 12px;
    text-align: center;
    color: var(--color-accent);
}

.tree-ui-result-label {
    flex: 1;
    min-width: 0;
}

.tree-ui-result-section {
}

.tree-ui-result-bubble {
}

.tree-ui-back {
    margin-top: 12px;
}


/* ************************************************************ libs/UI/BM.css */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
/* Barre */
#buttons {
    padding: 1vh 2vh;
    -webkit-user-select: none;
    user-select: none;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
	    display: flex;
	    justify-content: flex-start;
	    align-items: center;
	    overflow-x: auto;
	    overflow-y: hidden;
	    color: var(--color-textButton);
	    background: var(--color-buttons);
}

.bm-context {
	    display: inline-flex;
	    align-items: center;
	    min-height: 3.5vh;
	    margin-right: 2vh;
	    cursor: pointer;
	    user-select: none;
	}
	
	}
	
	#Buttons.hidden {
    display: none;
}
	
	#buttons button,
	.bm-context {
	    flex: 0 0 auto;
	    margin-left: 1vh;
	}
	#buttons button img {
	    display: block;
	    width: 3vh;
	    height: auto;
	}

/*----------------------------------------------------------------------------*/
/* États */
button:disabled,
.bm-disabled {
    opacity: .25;
    cursor: default;
    pointer-events: none;
}
.bm-help-active {
    background: red;
}


/* ************************************************************ libs/UI/UI.css */

/* ==========================================================================
   LAYOUT
   ========================================================================== */
#layout {
    width: 100%;
    height: 100%;
}
#portrait {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
/* ==========================================================================
    CURSEUR
   ========================================================================== */
#top,
#what,
#instance,
#path,
#bubble {
    cursor: pointer;
}
/* ==========================================================================
    TOP
   ========================================================================== */
#top {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 1vh 2vh;
    color: var(--color-topText);
    background: var(--color-top);
    -webkit-user-select: none;
    user-select: none;
}
/* ==========================================================================
   WHAT
   ========================================================================== */
#whatContainer {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 1vh 2vh;
    overflow: hidden;
    background: var(--color-whatContainer);
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, .25);
    -webkit-user-select: none;
    user-select: none;
}
#what {
    margin-top: 0.5vh;
    overflow: hidden;
    font-size: var(--font-size-lg);
    text-align: center;
}

#what::after {
    content: "▼";
    margin-left: 1vh;
}

#what.where-opened::after {
    content: "▲";
}

#where {
    display: none;
    margin: .5vh 0;
    padding-top: .5vh;
    overflow: hidden;
    font-size: var(--font-size-lg);
    background: var(--color-where);
    border-top: 1px solid rgba(46, 46, 46, .18);
    -webkit-user-select: none;
    user-select: none;
}
#where.open {
    display: block;
}
#instance,
#path,
#bubble {
    display: flex;
    align-items: center;
    height: 4vh;
    line-height: 3vh;
}
#instance {
    margin-left: 1vh;
}
#path {
    margin-left: 3.5vh;
}
#bubble {
    margin-left: 5vh;
}
#instancePrefix,
#pathPrefix,
#bubblePrefix,
#instanceContent,
#pathContent,
#bubbleContent {
    display: inline-block;
    height: 3vh;
    line-height: 3vh;
    vertical-align: top;
}
#instancePrefix img,
#pathPrefix img,
#bubblePrefix img {
    display: block;
    width: auto;
    height: 3vh;
    margin-right: 0.6vh;
}
/* ==========================================================================
   WORK
   ========================================================================== */

#work {
    flex: 1;
    overflow: auto;
    padding: 2vh;
    background: var(--color-work);
}

/* Affichage when */
.when-date {
    font-weight: 700;
    ;
}
.when-date::before {
    content: "•";
    margin-right: 0.8vh;
}
.when-label {
    margin-left: 5vh;
    margin-bottom: 2vh;
}
.when-item {
    cursor: pointer;
}

#whereMap {
    width: 100%;
    height: 100%;
}
/* ==========================================================================
   BOTTOM
   ========================================================================== */
#bottom {
    min-height: 40px;
    background: var(--color-bottom);
}
/* ==========================================================================
   TIP & LOCK
   ========================================================================== */


/* Tip pour erreur */
#tip {
    visibility: hidden;
    position: absolute;
    inset: 0;
    overflow: auto;
    overflow-wrap: anywhere;
    background: var(--color-bottom);
    z-index: 10000;
    padding: 2vh;
}

#tip pre {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font: inherit;
}

#lockLayer {
    visibility: hidden;
    background: 'rgba(32, 32, 32, 0.25)';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
}
.lockSpinner, .lockText {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.lockSpinner {
    width: var(--spinner-size);
    height: var(--spinner-size);
    object-fit: contain;
}
.lockText {
    background: var(--color-lockText);
    padding: 3vh;
    border: 2px;
 }
.lockButton {
    margin: 2vh;
}
/* ==========================================================================
   LANDSCAPE
   ========================================================================== */
@media (orientation: landscape) {
    #portrait {
        aspect-ratio: 1;
        width: auto;
        height: 100%;
        margin-inline: auto;
    }
    #top, #bottom {
        min-height: 0;
    }
    #bottom {
        height: 2vh;
    }
}
/* ==========================================================================
   MISC
   ========================================================================== */
.smallIcon {
    height: 3vh;
    width:auto;
    flex: 0 0 auto;
    object-fit: contain;
    margin-right: 0.2vh;
}



/* ************************************************************ libs/TREE/TREE.css */


/* tree */
.tree-ui-search,
.tree-ui-item,
.tree-ui-result,
.tree-ui-back {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.tree-ui-search:active,
.tree-ui-item:active,
.tree-ui-result:active,
.tree-ui-back:active {
    background: rgba(0, 0, 0, 0.04);
}

.tree-ui-search {
    color: #77736c;
}

.tree-ui-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.tree-ui-search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d8d0c2;
    border-radius: 6px;
    background: #fff;
    color: var(--color-text);
    font: inherit;
    outline: none;
}

.tree-ui-search-input:focus {
    border-color: var(--color-accent);
}

.tree-ui-search-close {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 0;
    background: none;
    color: #77736c;
    font: inherit;
    font-size: 1.4em;
    cursor: pointer;
}

.tree-ui-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tree-ui-item-marker {
    width: 3px;
    height: 1.2em;
    flex: 0 0 3px;
    background: var(--color-accent);
}

.tree-ui-item-label {
    flex: 1;
    min-width: 0;
}

.tree-ui-results {
    width: 100%;
}

.tree-ui-result {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tree-ui-result-marker {
    flex: 0 0 12px;
    width: 12px;
    text-align: center;
    color: var(--color-accent);
}

.tree-ui-result-label {
    flex: 1;
    min-width: 0;
}

.tree-ui-result-section {
}

.tree-ui-result-bubble {
}

.tree-ui-back {
    margin-top: 12px;
}


/* ************************************************************ libs/UI/BM.css */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
/* Barre */
#buttons {
    padding: 1vh 2vh;
    -webkit-user-select: none;
    user-select: none;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
	    display: flex;
	    justify-content: flex-start;
	    align-items: center;
	    overflow-x: auto;
	    overflow-y: hidden;
	    color: var(--color-textButton);
	    background: var(--color-buttons);
}

.bm-context {
	    display: inline-flex;
	    align-items: center;
	    min-height: 3.5vh;
	    margin-right: 2vh;
	    cursor: pointer;
	    user-select: none;
	}
	
	}
	
	#Buttons.hidden {
    display: none;
}
	
	#buttons button,
	.bm-context {
	    flex: 0 0 auto;
	    margin-left: 1vh;
	}
	#buttons button img {
	    display: block;
	    width: 3vh;
	    height: auto;
	}

/*----------------------------------------------------------------------------*/
/* États */
button:disabled,
.bm-disabled {
    opacity: .25;
    cursor: default;
    pointer-events: none;
}
.bm-help-active {
    background: red;
}


/* ************************************************************ libs/UI/BUBBLE_UI.css */

/* ==========================================================================
   BUBBLE LIST
   ========================================================================== */

.bubble-list {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.bubble-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1vh;
    border-radius: .5vh;
}

.bubble-item:hover {
    background: rgba(0,0,0,.06);
}

/* ==========================================================================
   BUBBLE WORK
   ========================================================================== */

.bubble-work {
    position: absolute;
    inset: 0;
    z-index: 100;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--color-bubbleWork);

    transform: translateX(100%);
    transition: transform .40s ease;
}

.bubble-work.open {
    transform: translateX(0);
}

/* ==========================================================================
   TOOLBAR
   ========================================================================== */

.bubble-toolbar {
    display: flex;
    align-items: center;
    gap: 1vh;
    flex: 0 0 auto;

    padding: 1vh 2vh;

    background: var(--color-whatContainer);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

.bubble-content {
    flex: 1;
    min-height: 0;

    overflow: auto;

    padding: 2vh;

    background: var(--color-work);
}

/* ************************************************************ libs/UI/UI.css */

/* ==========================================================================
   LAYOUT
   ========================================================================== */

#layout {
    width: 100%;
    height: 100%;
}

#portrait {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   CURSEUR
   ========================================================================== */

#top,
#what,
#instance,
#path,
#bubble {
    cursor: pointer;
}

/* ==========================================================================
   TOP
   ========================================================================== */

#top {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 1vh 2vh;
    color: var(--color-topText);
    background: var(--color-top);
    user-select: none;
}

/* ==========================================================================
   WHAT
   ========================================================================== */

#whatContainer {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 1vh 2vh;
    overflow: hidden;
    background: var(--color-whatContainer);
    box-shadow: 0 4px 8px -2px rgba(0,0,0,.25);
    user-select: none;
}

#what {
    margin-top: .5vh;
    overflow: hidden;
    font-size: var(--font-size-lg);
    text-align: center;
}

#what::after {
    content: "▼";
    margin-left: 1vh;
}

#what.where-opened::after {
    content: "▲";
}

#where {
    display: none;
    margin: .5vh 0;
    padding-top: .5vh;
    overflow: hidden;
    font-size: var(--font-size-lg);
    background: var(--color-where);
    border-top: 1px solid rgba(46,46,46,.18);
    user-select: none;
}

#where.open {
    display: block;
}

#instance,
#path,
#bubble {
    display: flex;
    align-items: center;
    height: 4vh;
    line-height: 3vh;
}

#instance {
    margin-left: 1vh;
}

#path {
    margin-left: 3.5vh;
}

#bubble {
    margin-left: 5vh;
}

#instancePrefix,
#pathPrefix,
#bubblePrefix,
#instanceContent,
#pathContent,
#bubbleContent {
    display: inline-block;
    height: 3vh;
    line-height: 3vh;
    vertical-align: top;
}

#instancePrefix img,
#pathPrefix img,
#bubblePrefix img {
    display: block;
    width: auto;
    height: 3vh;
    margin-right: .6vh;
}

/* ==========================================================================
   WORK
   ========================================================================== */

#workContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: var(--color-work);
}

#buttons {
    flex: 0 0 auto;
}

#work {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 2vh;
    background: var(--color-work);
}

/* ==========================================================================
   WHEN
   ========================================================================== */

.when-date {
    font-weight: 700;
}

.when-date::before {
    content: "•";
    margin-right: .8vh;
}

.when-label {
    margin-left: 5vh;
    margin-bottom: 2vh;
}

.when-item {
    cursor: pointer;
}

#whereMap {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   BOTTOM
   ========================================================================== */

#bottom {
    min-height: 40px;
    background: var(--color-bottom);
}

/* ==========================================================================
   TIP & LOCK
   ========================================================================== */

#tip {
    visibility: hidden;
    position: absolute;
    inset: 0;
    overflow: auto;
    overflow-wrap: anywhere;
    background: var(--color-bottom);
    z-index: 10000;
    padding: 2vh;
}

#tip pre {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font: inherit;
}

#lockLayer {
    visibility: hidden;
    position: fixed;
    inset: 0;
    background: rgba(32,32,32,.25);
    pointer-events: none;
    z-index: 1000;
}

.lockSpinner,
.lockText {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lockSpinner {
    width: var(--spinner-size);
    height: var(--spinner-size);
    object-fit: contain;
}

.lockText {
    padding: 3vh;
    background: var(--color-lockText);
    border: 2px;
}

.lockButton {
    margin: 2vh;
}

/* ==========================================================================
   LANDSCAPE
   ========================================================================== */

@media (orientation: landscape) {

    #portrait {
        width: auto;
        height: 100%;
        margin-inline: auto;
        aspect-ratio: 1;
    }

    #top,
    #bottom {
        min-height: 0;
    }

    #bottom {
        height: 2vh;
    }
}

/* ==========================================================================
   MISC
   ========================================================================== */

.smallIcon {
    width: auto;
    height: 3vh;
    flex: 0 0 auto;
    object-fit: contain;
    margin-right: .2vh;
}

/* ************************************************************ libs/TREE/TREE.css */


/* tree */
.tree-ui-search,
.tree-ui-item,
.tree-ui-result,
.tree-ui-back {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.tree-ui-search:active,
.tree-ui-item:active,
.tree-ui-result:active,
.tree-ui-back:active {
    background: rgba(0, 0, 0, 0.04);
}

.tree-ui-search {
    color: #77736c;
}

.tree-ui-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.tree-ui-search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d8d0c2;
    border-radius: 6px;
    background: #fff;
    color: var(--color-text);
    font: inherit;
    outline: none;
}

.tree-ui-search-input:focus {
    border-color: var(--color-accent);
}

.tree-ui-search-close {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 0;
    background: none;
    color: #77736c;
    font: inherit;
    font-size: 1.4em;
    cursor: pointer;
}

.tree-ui-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tree-ui-item-marker {
    width: 3px;
    height: 1.2em;
    flex: 0 0 3px;
    background: var(--color-accent);
}

.tree-ui-item-label {
    flex: 1;
    min-width: 0;
}

.tree-ui-results {
    width: 100%;
}

.tree-ui-result {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tree-ui-result-marker {
    flex: 0 0 12px;
    width: 12px;
    text-align: center;
    color: var(--color-accent);
}

.tree-ui-result-label {
    flex: 1;
    min-width: 0;
}

.tree-ui-result-section {
}

.tree-ui-result-bubble {
}

.tree-ui-back {
    margin-top: 12px;
}


/* ************************************************************ libs/UI/BM.css */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
/* Barre */
#buttons {
    padding: 1vh 2vh;
    -webkit-user-select: none;
    user-select: none;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
	    display: flex;
	    justify-content: flex-start;
	    align-items: center;
	    overflow-x: auto;
	    overflow-y: hidden;
	    color: var(--color-textButton);
	    background: var(--color-buttons);
}

.bm-context {
	    display: inline-flex;
	    align-items: center;
	    min-height: 3.5vh;
	    margin-right: 2vh;
	    cursor: pointer;
	    user-select: none;
	}
	
	}
	
	#Buttons.hidden {
    display: none;
}
	
	#buttons button,
	.bm-context {
	    flex: 0 0 auto;
	    margin-left: 1vh;
	}
	#buttons button img {
	    display: block;
	    width: 3vh;
	    height: auto;
	}

/*----------------------------------------------------------------------------*/
/* États */
button:disabled,
.bm-disabled {
    opacity: .25;
    cursor: default;
    pointer-events: none;
}
.bm-help-active {
    background: red;
}


/* ************************************************************ libs/UI/BUBBLE_UI.css */

/* ==========================================================================
   BUBBLE LIST
   ========================================================================== */

.bubble-list {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.bubble-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1vh;
    border-radius: .5vh;
}

.bubble-item:hover {
    background: rgba(0,0,0,.06);
}

/* ==========================================================================
   BUBBLE WORK
   ========================================================================== */

.bubble-work {
    position: absolute;
    inset: 0;
    z-index: 100;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--color-bubbleWork);

    transform: translateX(100%);
    transition: transform .40s ease;
}

.bubble-work.open {
    transform: translateX(0);
}

/* ==========================================================================
   TOOLBAR
   ========================================================================== */

.bubble-toolbar {
    display: flex;
    align-items: center;
    gap: 1vh;
    flex: 0 0 auto;

    padding: 1vh 2vh;

    background: var(--color-whatContainer);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

.bubble-content {
    flex: 1;
    min-height: 0;

    overflow: auto;

    padding: 2vh;

    background: var(--color-work);
}

/* ************************************************************ libs/UI/UI.css */

/* ==========================================================================
   LAYOUT
   ========================================================================== */

#layout {
    width: 100%;
    height: 100%;
}

#portrait {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   CURSEUR
   ========================================================================== */

#top,
#what,
#instance,
#path,
#bubble {
    cursor: pointer;
}

/* ==========================================================================
   TOP
   ========================================================================== */

#top {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 1vh 2vh;
    color: var(--color-topText);
    background: var(--color-top);
    user-select: none;
}

/* ==========================================================================
   WHAT
   ========================================================================== */

#whatContainer {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 1vh 2vh;
    overflow: hidden;
    background: var(--color-whatContainer);
    box-shadow: 0 4px 8px -2px rgba(0,0,0,.25);
    user-select: none;
}

#what {
    margin-top: .5vh;
    overflow: hidden;
    font-size: var(--font-size-lg);
    text-align: center;
}

#what::after {
    content: "▼";
    margin-left: 1vh;
}

#what.where-opened::after {
    content: "▲";
}

#where {
    display: none;
    margin: .5vh 0;
    padding-top: .5vh;
    overflow: hidden;
    font-size: var(--font-size-lg);
    background: var(--color-where);
    border-top: 1px solid rgba(46,46,46,.18);
    user-select: none;
}

#where.open {
    display: block;
}

#instance,
#path,
#bubble {
    display: flex;
    align-items: center;
    height: 4vh;
    line-height: 3vh;
}

#instance {
    margin-left: 1vh;
}

#path {
    margin-left: 3.5vh;
}

#bubble {
    margin-left: 5vh;
}

#instancePrefix,
#pathPrefix,
#bubblePrefix,
#instanceContent,
#pathContent,
#bubbleContent {
    display: inline-block;
    height: 3vh;
    line-height: 3vh;
    vertical-align: top;
}

#instancePrefix img,
#pathPrefix img,
#bubblePrefix img {
    display: block;
    width: auto;
    height: 3vh;
    margin-right: .6vh;
}

/* ==========================================================================
   WORK
   ========================================================================== */

#workContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: var(--color-work);
}

#buttons {
    flex: 0 0 auto;
}

#work {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 2vh;
    background: var(--color-work);
}

/* ==========================================================================
   WHEN
   ========================================================================== */

.when-date {
    font-weight: 700;
}

.when-date::before {
    content: "•";
    margin-right: .8vh;
}

.when-label {
    margin-left: 5vh;
    margin-bottom: 2vh;
}

.when-item {
    cursor: pointer;
}

#whereMap {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   BOTTOM
   ========================================================================== */

#bottom {
    min-height: 40px;
    background: var(--color-bottom);
}

/* ==========================================================================
   TIP & LOCK
   ========================================================================== */

#tip {
    visibility: hidden;
    position: absolute;
    inset: 0;
    overflow: auto;
    overflow-wrap: anywhere;
    background: var(--color-bottom);
    z-index: 10000;
    padding: 2vh;
}

#tip pre {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font: inherit;
}

#lockLayer {
    visibility: hidden;
    position: fixed;
    inset: 0;
    background: rgba(32,32,32,.25);
    pointer-events: none;
    z-index: 1000;
}

.lockSpinner,
.lockText {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lockSpinner {
    width: var(--spinner-size);
    height: var(--spinner-size);
    object-fit: contain;
}

.lockText {
    padding: 3vh;
    background: var(--color-lockText);
    border: 2px;
}

.lockButton {
    margin: 2vh;
}

/* ==========================================================================
   LANDSCAPE
   ========================================================================== */

@media (orientation: landscape) {

    #portrait {
        width: auto;
        height: 100%;
        margin-inline: auto;
        aspect-ratio: 1;
    }

    #top,
    #bottom {
        min-height: 0;
    }

    #bottom {
        height: 2vh;
    }
}

/* ==========================================================================
   MISC
   ========================================================================== */

.smallIcon {
    width: auto;
    height: 3vh;
    flex: 0 0 auto;
    object-fit: contain;
    margin-right: .2vh;
}

/* ************************************************************ libs/TREE/TREE.css */


/* tree */
.tree-ui-search,
.tree-ui-item,
.tree-ui-result,
.tree-ui-back {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.tree-ui-search:active,
.tree-ui-item:active,
.tree-ui-result:active,
.tree-ui-back:active {
    background: rgba(0, 0, 0, 0.04);
}

.tree-ui-search {
    color: #77736c;
}

.tree-ui-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.tree-ui-search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d8d0c2;
    border-radius: 6px;
    background: #fff;
    color: var(--color-text);
    font: inherit;
    outline: none;
}

.tree-ui-search-input:focus {
    border-color: var(--color-accent);
}

.tree-ui-search-close {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 0;
    background: none;
    color: #77736c;
    font: inherit;
    font-size: 1.4em;
    cursor: pointer;
}

.tree-ui-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tree-ui-item-marker {
    width: 3px;
    height: 1.2em;
    flex: 0 0 3px;
    background: var(--color-accent);
}

.tree-ui-item-label {
    flex: 1;
    min-width: 0;
}

.tree-ui-results {
    width: 100%;
}

.tree-ui-result {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tree-ui-result-marker {
    flex: 0 0 12px;
    width: 12px;
    text-align: center;
    color: var(--color-accent);
}

.tree-ui-result-label {
    flex: 1;
    min-width: 0;
}

.tree-ui-result-section {
}

.tree-ui-result-bubble {
}

.tree-ui-back {
    margin-top: 12px;
}


/* ************************************************************ libs/UI/BM.css */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
/* Barre */
#buttons {
    padding: 1vh 2vh;
    -webkit-user-select: none;
    user-select: none;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
	    display: flex;
	    justify-content: flex-start;
	    align-items: center;
	    overflow-x: auto;
	    overflow-y: hidden;
	    color: var(--color-textButton);
	    background: var(--color-buttons);
}

.bm-context {
	    display: inline-flex;
	    align-items: center;
	    min-height: 3.5vh;
	    margin-right: 2vh;
	    cursor: pointer;
	    user-select: none;
	}
	
	}
	
	#Buttons.hidden {
    display: none;
}
	
	#buttons button,
	.bm-context {
	    flex: 0 0 auto;
	    margin-left: 1vh;
	}
	#buttons button img {
	    display: block;
	    width: 3vh;
	    height: auto;
	}

/*----------------------------------------------------------------------------*/
/* États */
button:disabled,
.bm-disabled {
    opacity: .25;
    cursor: default;
    pointer-events: none;
}
.bm-help-active {
    background: red;
}


/* ************************************************************ libs/UI/BUBBLE_DESIGN_UI.css */

/* ==========================================================================
   BUBBLE DESIGN
   ========================================================================== */

.bubble-design {
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.bubble-design-properties {
    padding: 2vh;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .5vh;
}

.bubble-design-items {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.bubble-design-item {
    display: flex;
    align-items: center;
    padding: 1vh;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .5vh;
}

/* ************************************************************ libs/UI/BUBBLE_UI.css */

/* ==========================================================================
   BUBBLE LIST
   ========================================================================== */

.bubble-list {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.bubble-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1vh;
    border-radius: .5vh;
}

.bubble-item:hover {
    background: rgba(0,0,0,.06);
}

/* ==========================================================================
   BUBBLE WORK
   ========================================================================== */

.bubble-work {
    position: absolute;
    inset: 0;
    z-index: 100;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--color-bubbleWork);

    transform: translateX(100%);
    transition: transform .40s ease;
}

.bubble-work.open {
    transform: translateX(0);
}

/* ==========================================================================
   TOOLBAR
   ========================================================================== */

.bubble-toolbar {
    display: flex;
    align-items: center;
    gap: 1vh;
    flex: 0 0 auto;

    padding: 1vh 2vh;

    background: var(--color-whatContainer);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

.bubble-content {
    flex: 1;
    min-height: 0;

    overflow: auto;

    padding: 2vh;

    background: var(--color-work);
}

/* ************************************************************ libs/UI/UI.css */

/* ==========================================================================
   LAYOUT
   ========================================================================== */

#layout {
    width: 100%;
    height: 100%;
}

#portrait {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   CURSEUR
   ========================================================================== */

#top,
#what,
#instance,
#path,
#bubble {
    cursor: pointer;
}

/* ==========================================================================
   TOP
   ========================================================================== */

#top {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 1vh 2vh;
    color: var(--color-topText);
    background: var(--color-top);
    user-select: none;
}

/* ==========================================================================
   WHAT
   ========================================================================== */

#whatContainer {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 1vh 2vh;
    overflow: hidden;
    background: var(--color-whatContainer);
    box-shadow: 0 4px 8px -2px rgba(0,0,0,.25);
    user-select: none;
}

#what {
    margin-top: .5vh;
    overflow: hidden;
    font-size: var(--font-size-lg);
    text-align: center;
}

#what::after {
    content: "▼";
    margin-left: 1vh;
}

#what.where-opened::after {
    content: "▲";
}

#where {
    display: none;
    margin: .5vh 0;
    padding-top: .5vh;
    overflow: hidden;
    font-size: var(--font-size-lg);
    background: var(--color-where);
    border-top: 1px solid rgba(46,46,46,.18);
    user-select: none;
}

#where.open {
    display: block;
}

#instance,
#path,
#bubble {
    display: flex;
    align-items: center;
    height: 4vh;
    line-height: 3vh;
}

#instance {
    margin-left: 1vh;
}

#path {
    margin-left: 3.5vh;
}

#bubble {
    margin-left: 5vh;
}

#instancePrefix,
#pathPrefix,
#bubblePrefix,
#instanceContent,
#pathContent,
#bubbleContent {
    display: inline-block;
    height: 3vh;
    line-height: 3vh;
    vertical-align: top;
}

#instancePrefix img,
#pathPrefix img,
#bubblePrefix img {
    display: block;
    width: auto;
    height: 3vh;
    margin-right: .6vh;
}

/* ==========================================================================
   WORK
   ========================================================================== */

#workContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: var(--color-work);
}

#buttons {
    flex: 0 0 auto;
}

#work {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 2vh;
    background: var(--color-work);
}

/* ==========================================================================
   WHEN
   ========================================================================== */

.when-date {
    font-weight: 700;
}

.when-date::before {
    content: "•";
    margin-right: .8vh;
}

.when-label {
    margin-left: 5vh;
    margin-bottom: 2vh;
}

.when-item {
    cursor: pointer;
}

#whereMap {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   BOTTOM
   ========================================================================== */

#bottom {
    min-height: 40px;
    background: var(--color-bottom);
}

/* ==========================================================================
   TIP & LOCK
   ========================================================================== */

#tip {
    visibility: hidden;
    position: absolute;
    inset: 0;
    overflow: auto;
    overflow-wrap: anywhere;
    background: var(--color-bottom);
    z-index: 10000;
    padding: 2vh;
}

#tip pre {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font: inherit;
}

#lockLayer {
    visibility: hidden;
    position: fixed;
    inset: 0;
    background: rgba(32,32,32,.25);
    pointer-events: none;
    z-index: 1000;
}

.lockSpinner,
.lockText {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lockSpinner {
    width: var(--spinner-size);
    height: var(--spinner-size);
    object-fit: contain;
}

.lockText {
    padding: 3vh;
    background: var(--color-lockText);
    border: 2px;
}

.lockButton {
    margin: 2vh;
}

/* ==========================================================================
   LANDSCAPE
   ========================================================================== */

@media (orientation: landscape) {

    #portrait {
        width: auto;
        height: 100%;
        margin-inline: auto;
        aspect-ratio: 1;
    }

    #top,
    #bottom {
        min-height: 0;
    }

    #bottom {
        height: 2vh;
    }
}

/* ==========================================================================
   MISC
   ========================================================================== */

.smallIcon {
    width: auto;
    height: 3vh;
    flex: 0 0 auto;
    object-fit: contain;
    margin-right: .2vh;
}

/* ************************************************************ libs/TREE/TREE.css */


/* tree */
.tree-ui-search,
.tree-ui-item,
.tree-ui-result,
.tree-ui-back {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.tree-ui-search:active,
.tree-ui-item:active,
.tree-ui-result:active,
.tree-ui-back:active {
    background: rgba(0, 0, 0, 0.04);
}

.tree-ui-search {
    color: #77736c;
}

.tree-ui-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.tree-ui-search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d8d0c2;
    border-radius: 6px;
    background: #fff;
    color: var(--color-text);
    font: inherit;
    outline: none;
}

.tree-ui-search-input:focus {
    border-color: var(--color-accent);
}

.tree-ui-search-close {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 0;
    background: none;
    color: #77736c;
    font: inherit;
    font-size: 1.4em;
    cursor: pointer;
}

.tree-ui-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tree-ui-item-marker {
    width: 3px;
    height: 1.2em;
    flex: 0 0 3px;
    background: var(--color-accent);
}

.tree-ui-item-label {
    flex: 1;
    min-width: 0;
}

.tree-ui-results {
    width: 100%;
}

.tree-ui-result {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tree-ui-result-marker {
    flex: 0 0 12px;
    width: 12px;
    text-align: center;
    color: var(--color-accent);
}

.tree-ui-result-label {
    flex: 1;
    min-width: 0;
}

.tree-ui-result-section {
}

.tree-ui-result-bubble {
}

.tree-ui-back {
    margin-top: 12px;
}


/* ************************************************************ libs/UI/BM.css */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
/* Barre */
#buttons {
    padding: 1vh 2vh;
    -webkit-user-select: none;
    user-select: none;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
	    display: flex;
	    justify-content: flex-start;
	    align-items: center;
	    overflow-x: auto;
	    overflow-y: hidden;
	    color: var(--color-textButton);
	    background: var(--color-buttons);
}

.bm-context {
	    display: inline-flex;
	    align-items: center;
	    min-height: 3.5vh;
	    margin-right: 2vh;
	    cursor: pointer;
	    user-select: none;
	}
	
	}
	
	#Buttons.hidden {
    display: none;
}
	
	#buttons button,
	.bm-context {
	    flex: 0 0 auto;
	    margin-left: 1vh;
	}
	#buttons button img {
	    display: block;
	    width: 3vh;
	    height: auto;
	}

/*----------------------------------------------------------------------------*/
/* États */
button:disabled,
.bm-disabled {
    opacity: .25;
    cursor: default;
    pointer-events: none;
}
.bm-help-active {
    background: red;
}


/* ************************************************************ libs/UI/BUBBLE_DESIGN_UI.css */

/* ==========================================================================
   BUBBLE DESIGN
   ========================================================================== */

.bubble-design {
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.bubble-design-properties {
    padding: 2vh;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .5vh;
}

.bubble-design-items {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.bubble-design-item {
    display: flex;
    align-items: center;
    padding: 1vh;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .5vh;
}

/* ************************************************************ libs/UI/BUBBLE_UI.css */

/* ==========================================================================
   BUBBLE LIST
   ========================================================================== */

.bubble-list {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.bubble-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1vh;
    border-radius: .5vh;
}

.bubble-item:hover {
    background: rgba(0,0,0,.06);
}

/* ==========================================================================
   BUBBLE WORK
   ========================================================================== */

.bubble-work {
    position: absolute;
    inset: 0;
    z-index: 100;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--color-bubbleWork);

    transform: translateX(100%);
    transition: transform .40s ease;
}

.bubble-work.open {
    transform: translateX(0);
}

/* ==========================================================================
   TOOLBAR
   ========================================================================== */

.bubble-toolbar {
    display: flex;
    align-items: center;
    gap: 1vh;
    flex: 0 0 auto;

    padding: 1vh 2vh;

    background: var(--color-whatContainer);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

.bubble-content {
    flex: 1;
    min-height: 0;

    overflow: auto;

    padding: 2vh;

    background: var(--color-work);
}

/* ************************************************************ libs/UI/UI.css */

/* ==========================================================================
   LAYOUT
   ========================================================================== */

#layout {
    width: 100%;
    height: 100%;
}

#portrait {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   CURSEUR
   ========================================================================== */

#top,
#what,
#instance,
#path,
#bubble {
    cursor: pointer;
}

/* ==========================================================================
   TOP
   ========================================================================== */

#top {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 1vh 2vh;
    color: var(--color-topText);
    background: var(--color-top);
    user-select: none;
}

/* ==========================================================================
   WHAT
   ========================================================================== */

#whatContainer {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 1vh 2vh;
    overflow: hidden;
    background: var(--color-whatContainer);
    box-shadow: 0 4px 8px -2px rgba(0,0,0,.25);
    user-select: none;
}

#what {
    margin-top: .5vh;
    overflow: hidden;
    font-size: var(--font-size-lg);
    text-align: center;
}

#what::after {
    content: "▼";
    margin-left: 1vh;
}

#what.where-opened::after {
    content: "▲";
}

#where {
    display: none;
    margin: .5vh 0;
    padding-top: .5vh;
    overflow: hidden;
    font-size: var(--font-size-lg);
    background: var(--color-where);
    border-top: 1px solid rgba(46,46,46,.18);
    user-select: none;
}

#where.open {
    display: block;
}

#instance,
#path,
#bubble {
    display: flex;
    align-items: center;
    height: 4vh;
    line-height: 3vh;
}

#instance {
    margin-left: 1vh;
}

#path {
    margin-left: 3.5vh;
}

#bubble {
    margin-left: 5vh;
}

#instancePrefix,
#pathPrefix,
#bubblePrefix,
#instanceContent,
#pathContent,
#bubbleContent {
    display: inline-block;
    height: 3vh;
    line-height: 3vh;
    vertical-align: top;
}

#instancePrefix img,
#pathPrefix img,
#bubblePrefix img {
    display: block;
    width: auto;
    height: 3vh;
    margin-right: .6vh;
}

/* ==========================================================================
   WORK
   ========================================================================== */

#workContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: var(--color-work);
}

#buttons {
    flex: 0 0 auto;
}

#work {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 2vh;
    background: var(--color-work);
}

/* ==========================================================================
   WHEN
   ========================================================================== */

.when-date {
    font-weight: 700;
}

.when-date::before {
    content: "•";
    margin-right: .8vh;
}

.when-label {
    margin-left: 5vh;
    margin-bottom: 2vh;
}

.when-item {
    cursor: pointer;
}

#whereMap {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   BOTTOM
   ========================================================================== */

#bottom {
    min-height: 40px;
    background: var(--color-bottom);
}

/* ==========================================================================
   TIP & LOCK
   ========================================================================== */

#tip {
    visibility: hidden;
    position: absolute;
    inset: 0;
    overflow: auto;
    overflow-wrap: anywhere;
    background: var(--color-bottom);
    z-index: 10000;
    padding: 2vh;
}

#tip pre {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font: inherit;
}

#lockLayer {
    visibility: hidden;
    position: fixed;
    inset: 0;
    background: rgba(32,32,32,.25);
    pointer-events: none;
    z-index: 1000;
}

.lockSpinner,
.lockText {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lockSpinner {
    width: var(--spinner-size);
    height: var(--spinner-size);
    object-fit: contain;
}

.lockText {
    padding: 3vh;
    background: var(--color-lockText);
    border: 2px;
}

.lockButton {
    margin: 2vh;
}

/* ==========================================================================
   LANDSCAPE
   ========================================================================== */

@media (orientation: landscape) {

    #portrait {
        width: auto;
        height: 100%;
        margin-inline: auto;
        aspect-ratio: 1;
    }

    #top,
    #bottom {
        min-height: 0;
    }

    #bottom {
        height: 2vh;
    }
}

/* ==========================================================================
   MISC
   ========================================================================== */

.smallIcon {
    width: auto;
    height: 3vh;
    flex: 0 0 auto;
    object-fit: contain;
    margin-right: .2vh;
}

