
:root {
    --v: '1.0.6';
    --dt: '2025-06-17 14:34:12';
    font-size: max(10px, min(16px, calc(100vw / 153.625)));
}

::-webkit-scrollbar {
    width: 1rem;
    height: 1rem;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(45, 45, 45);
    background-color: rgb(66, 66, 66);
    border-radius: 6px;
    border: 1px solid #777;
}

::-webkit-scrollbar-corner {
    background-color: rgb(28, 28, 28);
    outline: 1px solid #777;
}

::-webkit-scrollbar-track-piece {
    background-color: rgb(28, 28, 28);
    outline: 1px solid #777;
}

*:focus-visible {
    outline: none;
}

html {
    margin: 0;
    font-family: sans-serif;
}

body {
    --units: 'pt';
    background-color: rgb(45, 45, 45);
    color: #ffffff;
    margin: 0;
}

body::before {
    content: '';
    display: block;
    position: fixed;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.rem {
    position: absolute;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
}

input {
    height: 2rem;
}

.main {
    display: grid;
    grid-template-columns: 8fr minmax(37.5rem, 2fr);
    grid-template-rows: auto 2rem;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.display {
    overflow: scroll;
    scroll-snap-type: mandatory;
}

.display::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.page {
    scroll-snap-align: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.iframe-container {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: scroll;
}

iframe {
    user-select: none;
    border: none;
    width: calc(var(--scale) * (var(--width) - 8px));
    height: calc(var(--scale) * (var(--height) - 16px));
}

nav {
    display: flex;
    flex-direction: column;
    position: relative;
    height: calc(100% - 3.5rem);
    background-color: rgb(28, 28, 28);
    overflow-y: scroll;
    padding: 1.5rem 0.5rem 2rem 1.5rem;
    outline: 1px solid #777;
    place-items: center;
    gap: 0.5rem;
    z-index: 1;
}

nav::-webkit-scrollbar-track-piece {
    outline: none;
}

.foot {
    display: flex;
    position: relative;
    place-items: center start;
    grid-column: span 2;
    background-color: rgb(28, 28, 28);
    padding: 0 0.5rem;
    color: rgb(30, 144, 255);
    outline: 1px solid #777;
    white-space: nowrap;
    z-index: 2;
}

.foot.error {
    color: rgb(215, 59, 2);
}

.foot.error::before {
    content: 'ERREUR (Rechargez la fenêtre) :\00a0';
    font-weight: 700;
}

.foot.loading:not(.error)::after {
    content: '';
    animation: loading 1s linear infinite;
}

.info {
    display: grid;
    grid-auto-flow: column;
    position: absolute;
    place-content: center right;
    width: max-content;
    height: 100%;
    right: 0.5rem;
    gap: 1rem;
}

.app-memory {
    display: grid;
    grid-auto-flow: column;
    place-content: center right;
    width: max-content;
    color: rgb(230, 168, 0);
    font-weight: 700;
}

.app-memory[data-value]:not([data-value=""])::before {
    content: 'Application : ' attr(data-value);
}

.total-memory {
    display: grid;
    grid-auto-flow: column;
    place-content: center right;
    width: max-content;
    color: hsl(36, 100%, 45%);
    font-weight: 700;
}

.total-memory::before {
    content:  'Total (approx.) : - ';
}

.total-memory[data-value]:not([data-value=""])::before {
    content:  'Total (approx.) : '  attr(data-value);
}

.gpu {
    display: grid;
    grid-auto-flow: column;
    place-content: center right;
    width: max-content;
    color: hsl(120, 0%, 35%);
    font-weight: 900;
}

.gpu-used .gpu {
    color: hsl(120, 100%, 35%);
}

.gpu::before {
    content:  'GPU';
}

.version {
    display: grid;
    grid-auto-flow: column;
    place-content: center right;
    width: max-content;
    color: hsl(0, 0%, 35%);
    font-weight: 700;
}

.version::before {
    content: 'Version : ' var(--v) ' (' var(--dt) ')';
}

button {
    position: relative;
    appearance: none;
    background-color: rgb(171, 171, 171);
    border: 0;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    min-height: 2rem;
    border-radius: 0.35rem;
    box-sizing: border-box;
    cursor: pointer;
}

button::before {
    content: '';
    display: grid;
    position: absolute;
    place-content: center;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

button:not(.disabled):hover::before {
    background-color: rgba(255, 255, 255, 0.188);
}

.open-file {
    background-color: rgb(230, 168, 0);
    overflow: hidden;
}

.open-file::after {
    content: 'Ouvrir';
    position: absolute;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 2rem);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.open-file[data-filename]:not([data-filename=""]) {
    background-color: rgb(99, 169, 25);
}

.open-file[data-filename]:not([data-filename=""])::after {
    content: attr(data-filename);
}

.open-file[data-filename]:not([data-filename=""]):not(.disabled):hover::before {
    background-color: rgb(230, 168, 0);
}

.open-file[data-filename]:not([data-filename=""]):hover::after {
    content: 'Fermer';
}

.open-file.true::after, .open-file.false::after {
    content: 'Ouvrir' !important;
}

.open-file.disabled::after {
    content: '';
    animation: loading 1s linear infinite;
}

.undefined {
    background-color: rgb(230, 168, 0) !important;
}


.true {
    background-color: rgb(99, 169, 25) !important;
}

.false {
    background-color: rgb(215, 59, 2) !important;
}

.selected {
    background-color: rgb(31, 143, 255) !important;
}

.disabled {
    background-color: rgb(125, 125, 125) !important;
    cursor: default;
}

.hidden {
    opacity: 0;
}

.unrendered {
    display: none;
}

.zoom {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: max-content;
    height: max-content;
    outline: 1px solid #777;
    overflow: hidden;
}

.zoom button {
    width: 6ch;
}

.zoom > button, .zoom > input {
    border: none;
    background-color: rgb(28, 28, 28);
    color: #fff;
    font-size: 1rem;
    outline: 1px solid #777;
    border-radius: 0;
    z-index: 2;
}

.zoom > button:hover {
    background-color: rgb(45, 45, 45);
}

.zoom-percent {
    display: grid;
    place-items: center;
    position: relative;
    width: 3ch;
    background-color: rgb(45, 45, 45);
    box-sizing: border-box;
    z-index: 1;
}

.zoom-percent::before {
    content: '%';
}

.zoom-input {
    width: 8ch;
    text-align: right;
}

.btn-100::before {
    content: '100%';
}

.btn-fit::before {
    content: 'fit';
}

.show-colors[data-n]:not([data-n=""])::after {
    content: ' (' attr(data-n) ')';
}

.show-images[data-n]:not([data-n=""])::after {
    content: ' (' attr(data-n) ')';
}

.show-texts[data-n]:not([data-n=""])::after {
    content: ' (' attr(data-n) ')';
}

.nav-foot {
    position: sticky;
    bottom: -2rem;
    background-color: rgb(28, 28, 28);
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}

.page-counter, .page-format {
    line-height: 1.5rem;
}

.page-counter[data-current-page][data-page-count]:not([data-current-page=""]):not([data-page-count=""])::before {
    content: 'Page ' attr(data-current-page);
}

.page-counter[data-current-page][data-page-count]:not([data-current-page=""]):not([data-page-count=""])::after {
    content: ' / ' attr(data-page-count);
}

.page-format[data-current-page-width][data-current-page-height]:not([data-current-page-width=""]):not([data-current-page-height=""])::before {
    content: 'Format : ' attr(data-current-page-width) '\00a0\0000D7\00a0' attr(data-current-page-height) ' ' var(--units);
}

.data-display {
    width: calc(100% - 1rem);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    place-items: center;
}

.data-display:not(:empty) {
    margin: 0.5rem;
    margin-bottom: 1rem;
}

.canvas-max-size-exceeded {
    position: relative;
}

.canvas-max-size-exceeded::after {
    content: 'Zoom excessif.\aVeuillez dézoomer pour utiliser cet outil.';
    position: absolute;
    top: calc(100% + 0.5rem);
    color: #ff0000;
}

.color-block, .image-block, .text-block {
    display: grid;
    position: relative;
    grid-auto-flow: column;
    grid-auto-rows: 2rem;
    position: relative;
    width: 100%;
    background-color: #444;
    font-size: 1rem;
    cursor: pointer;
}

.color-block {
    grid-column: span 2;
}

.image-block {
    grid-template-columns: 5rem auto;
    grid-column: span 1;
}

.text-block {
    display: block;
    grid-column: span 2;
    overflow: hidden;
    white-space: pre;
    text-overflow: ellipsis;
    height: 2rem;
    line-height: 2rem;
    padding: 0 0.5rem;
    user-select: none;
}

.color-block:hover::before, .image-block:hover::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    outline: 1px solid rgb(30, 144, 255);
    outline-offset: -1px;
    pointer-events: none;
    z-index: 1;
}

.chip {
    width: 100%;
    height: 100%;
}

.color-block .chip {
    background-color: var(--chip-color);
    opacity: var(--opacity);
}

.image-block .chip {
    background-image: var(--image);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.image-anchor-block {
    display: grid;
    place-items: center;
}

.image-anchor {
    color: rgb(30, 144, 255);
    cursor: alias;
}

.GRAY {
    grid-template-columns: 0.75rem auto 3.5rem 5.5rem 3.5rem 5.5rem;
}

.RGB {
    grid-template-columns: 0.75rem auto calc(3.5rem * 4 / 3) calc(3.5rem * 4 / 3) calc(3.5rem * 4 / 3) 5.5rem 3.5rem 5.5rem;
}

.BGR {
    grid-template-columns: 0.75rem auto 3.5rem 3.5rem 3.5rem 5.5rem 3.5rem 5.5rem;
}

.CMYK {
    grid-template-columns: 0.75rem auto 3.5rem 3.5rem 3.5rem 3.5rem 5.5rem 3.5rem 5.5rem;
}

.LAB {
    grid-template-columns: 0.75rem auto calc(3.5rem * 4 / 3) calc(3.5rem * 4 / 3) calc(3.5rem * 4 / 3) 4.5rem 5.5rem 5.5rem;
}

.SEPARATION {
    grid-template-columns: 0.75rem auto 7rem 3.5rem 5.5rem 3.5rem 5.5rem;
}

.colorspace-name, .opacity-title, .value, .opacity-value, .stroke-length {
    display: grid;
    place-items: center;
}

.colorspace-name {
    place-items: center start;
    padding-left: 0.5rem;
}

.offed, .offed .image-anchor {
    color: #ff3333;
}

.disabled-block::after {
    content: '';
    position: absolute;
    background-color: #0000007f;
    pointer-events: none;
    height: 100%;
    top: 0;
    right: 0;
}

.color-block.disabled-block::after {
    width: calc(100% - 0.75rem);
}

.image-block.disabled-block::after {
    width: calc(100% - 5rem);
}

.GRAY .colorspace-name::before {
    content: "Niveau de gris";
}

.RGB .colorspace-name::before {
    content: "RVB";
}

.BGR .colorspace-name::before {
    content: "BVR";
}

.CMYK .colorspace-name::before {
    content: "CMJN";
}

.LAB .colorspace-name::before {
    content: "Lab";
}

.SEPARATION .colorspace-name::before {
    content: "Séparation";
}

.opacity-title::before {
    content: 'Opacité';
}

.cyan {
    background-color: #009ee3;
    color: #fff;
}

.magenta {
    background-color: #e5007d;
    color: #fff;
}

.yellow {
    background-color: #ffed00;
    color: #000;
}

.black {
    background-color: #1a1a18;
    color: #fff;
}

.red {
    background-color: #ff0000;
    color: #fff;
}

.green {
    background-color: #00ff00;
    color: #000;
}

.blue {
    background-color: #0000ff;
    color: #fff;
}

.separation-name, .L, .a, .b {
    position: relative;
    background-color: #777;
    color: #fff;
}

.separation-name:hover {
    position: static;
}

.separation-name::before {
    content: attr(data-separation-name);
    background-color: #777;
    position: absolute;
    width: calc(100% - 0.5rem);
    height: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.25rem;
    text-align: center;
    line-height: 2rem;
}

.separation-name:hover::before {
    content: attr(data-separation-name);
    width: 18.25rem;
    right: 0;
}

.benday {
    background: var(--chip-color);
    color: var(--opposite-color);
}

.opacity-value {
    background-color: #777777;
    color: #fff;
}

.units::after {
    content: attr(data-value);
    text-transform: uppercase;
    font-weight: 900;
}

.overprint-simulation::after {
    content: attr(data-value);
    text-transform: uppercase;
    font-weight: 900;
}

.hard-stroke {
    grid-column: span 2;
}

.stroke-ceil-title, .stroke-ceil-block, .stroke-floor-title, .stroke-floor-block {
    grid-column: span 1;
}

.unit-input-block {
    display: grid;
    grid-auto-columns: auto 3rem;
    grid-auto-flow: column;
}

.unit-input-block::after {
    content: var(--units);
    display: grid;
    place-content: center;
}

.unit-input-block > *:first-child {
    width: 100%;
}

.rendering-intent-title, .rendering-intent, .black-point-compensation-title, .black-point-compensation, .input-color-profile-title, .input-color-profile, .output-color-profile-title, .output-color-profile {
    grid-column: span 1;
}

select {
    width: 100%;
    font-size: 1rem;
    height: 2rem;
}

.outputs {
    display: grid;
    place-items: center;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    grid-column: span 2;
    min-width: 100%;
    min-height: 2rem;
}

.outputs .rgb-representation {
    --rgb: #fff;
    background-color: var(--rgb);
}

.outputs .rgb-representation, .outputs .value {
    display: grid;
    place-items: center;
    height: 100%;
    width: 100%;
}

.outputs .value:empty::before {
    content: '0%'
}

.building::before {
    content: '';
    display: block;
    background-image: url(./imgs/hammer-solid.svg);
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
    width: 1rem;
    height: 1rem;
    position: absolute;
    top: 50%;
    left: initial;
    transform: translateY(-50%);
}

.proximities-canvas {
    position: absolute;
    top: 0; 
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.proximities-block-value-title, .proximities-block-value-block, 
.proximities-tip-value-title, .proximities-tip-value-block,
.proximities-tip-color-title, .proximities-tip-color-input,
.proximities-hollow-value-title, .proximities-hollow-value-block,
.proximities-hollow-color-title, .proximities-hollow-color-input {
    grid-column: span 1;
}

.proximities-block-value-block, .proximities-dilate-value-block {
    --units: 'px';
}

input[type="color"] {
    width: 100%;
    padding: 0;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
}

.proximities-activate {
    grid-column: span 2;
}

.proximities-activate::before {
    content: attr(data-value);
}

.proximities-activate[data-alt="Désactiver"] {
    background-color: rgb(31, 143, 255);
}

.proximities-progress {
    appearance: none;
    position: relative;
    grid-column: span 2;
    width: 100%;
    height: 1rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

progress::-webkit-progress-bar {
    border-radius: 1rem;
    background-color: rgb(171, 171, 171);
    overflow: hidden;
}

.proximities-progress::-webkit-progress-value {
    background-color: rgb(31, 143, 255);
    transition: 0.5s ease;
}

.proximities-progress[value="0"]::-webkit-progress-value {
    transition: none;
}

.proximities-progress[value="100"]::-webkit-progress-value {
    background-color: rgb(0, 155, 16);
    transition: background-color 0.5 ease;
}

.proximities-progress::before {
    content: "Progression de l\'affichage";
    display: block;
    position: absolute;
    width: 100%;
    top: -1.5rem;
    text-align: center;
}

.proximities-progress::after {
    content: "-";
    display: block;
    position: absolute;
    width: 100%;
    top: 1.5rem;
    text-align: center;
}

.proximities-progress[data-execution-time]:not([data-execution-time=""])::after {
    content: attr(data-execution-time) " ms";
}

@keyframes loading {
    0% {
      content: '\00a0\00a0\00a0';
    }
    33% {
      content: '.\00a0\00a0';
    }
    67% {
      content: '..\00a0';
    }
    100% {
      content: '...';
    }
  }