/* Test CSS */
body {
    font-family: Open Sans,Arial,sans-serif;
    font-size: 0.9em;
    color: #666;
    background-color: #fff;
    line-height: 1.7em;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin:0px !important;
    padding:0px !important;
    background-color:#F2F2F2;
}

body #wrapper {
	max-width:1080px;
   	background-color:white;
    margin:0 auto;
    padding: 20px 40px 80px 40px;
}

h1 {
	color:black;
    font-weight: 700;
    line-height: 1.3em;
}

h2 {
	font-size: 22px; 
    font-weight: 700;
    color: #48b1d8!important;
    line-height: 1.3em;
}

h3 {
	font-size: 18px; 
    font-weight: 700;
    line-height: 1.3em;
}

pre {
	background-color:#F2F2F2;
    padding:12px 12px 0 12px;
  	overflow-x: auto;
}

code, pre {
  font-family: monospace;
}

a sup {
    text-decoration: none;
    display: inline-block;
}

img {
 /* box-shadow: 0px 2px 18px 0px rgba(0,0,0,0.3); */
 border: 10px solid black;
 background-color:black;
 width:100%;
 max-width:800px;
}

ul {
	padding-left:20px;
    list-style: square;
}

html {
    scroll-behavior: smooth;
}

#dynamic-toc {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #d9d9d9;
    background: #f8f8f8;
    border-radius: 8px;
}

#dynamic-toc .toc-title {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
}

#dynamic-toc .toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#dynamic-toc .toc-item {
    margin: 0.35rem 0;
}

#dynamic-toc .toc-item a {
    text-decoration: none;
    color: #666;
}

#dynamic-toc .toc-item a:hover,
#dynamic-toc .toc-item a:focus {
    text-decoration: underline;
}

#dynamic-toc .toc-h1 {
    font-weight: 700;
}

#dynamic-toc .toc-h2 {
    padding-left: 1rem;
}

#dynamic-toc .toc-h3 {
    padding-left: 2rem;
    font-size: 0.96em;
}

#scroll-top-button {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: #48b1d8;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease,
        background 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

#scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-top-button:hover,
#scroll-top-button:focus {
    background: rgba(20, 20, 20, 1);
    outline: none;
}

#scroll-top-button:focus-visible {
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.7),
        0 0 0 6px rgba(20, 20, 20, 0.35);
}


@media (max-width: 767px) {

    body #wrapper {
    }

    img {
        max-width:100%;
        border:1px solid black;
    }

    #dynamic-toc {
        padding: 1rem;
    }

    #dynamic-toc .toc-title {
        font-size: 1.2rem;
    }

    #dynamic-toc .toc-h2 {
        padding-left: 0.75rem;
    }

    #dynamic-toc .toc-h3 {
        padding-left: 1.5rem;
    }

    #scroll-top-button {
        right: 0.75rem;
        bottom: 0.75rem;
        width: 2.75rem;
    }
}

/* Positionnement des titres */
#wrapper h1,
#wrapper h2,
#wrapper h3 {
    position: relative;
}

/* Icône d'ancre */
.anchor-link {
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    text-decoration: none;
    color: #888;
    transition: opacity 0.2s ease, color 0.2s ease;
}

/* Affichage au hover */
#wrapper h1:hover .anchor-link,
#wrapper h2:hover .anchor-link,
#wrapper h3:hover .anchor-link {
    opacity: 1;
}

/* Hover effet */
.anchor-link:hover {
    color: #000;
}

/* Feedback copie */
.anchor-link.copied {
    color: green;
}

/* Mobile : toujours visible (pas de hover) */
@media (max-width: 767px) {
    .anchor-link {
        opacity: 1;
        left: -1.25rem;
    }
}

/* ------------------------------------------------------------------ */
/* OmniCube manual pages -- additions to the documentation stylesheet. */
/* ------------------------------------------------------------------ */

body #wrapper {
    max-width: 62rem;
}

/* Breadcrumb above the page title. */
.manbar {
    margin: 0 0 1.6rem 0;
    font-size: 0.85em;
}
.manbar a {
    color: #666;
    text-decoration: none;
}
.manbar a:hover {
    text-decoration: underline;
}
.manbar .sep {
    margin: 0 0.5em;
    color: #b3b3b3;
}

h1 {
    font-family: monospace;
    font-size: 28px;
    margin-bottom: 0.2rem;
}

/* Volume, source and date under the title. */
.subtitle {
    margin: 0 0 0.5rem 0;
    font-size: 0.8em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
}

/* Section headings keep the guide's blue, with a rule to separate them. */
.page h2,
#wrapper > h2:not(.toc-title) {
    margin-top: 2.6rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e6e6e6;
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.page h3 {
    margin-top: 1.8rem;
    color: #333;
}

/* Volume name, pushed to the right of the section heading it belongs to. */
#wrapper > h2 .vol,
.page h2 .vol {
    float: right;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #b3b3b3;
}

/* The index title is prose, not a command name. */
.index h1 {
    font-family: Open Sans, Arial, sans-serif;
    font-size: 30px;
}

/* Bold is a literal, italic a placeholder -- the manual page convention. */
.page b {
    font-family: monospace;
    font-weight: 700;
    color: #333;
}
.page i {
    font-style: italic;
}
.page pre {
    padding: 12px;
    line-height: 1.5;
    font-size: 0.95em;
    white-space: pre;
}
.page pre b,
.page pre i {
    font-size: 1em;
}

/* Cross references to other pages of the manual. */
.page a,
table.pages a {
    color: #1f7fa3;
    text-decoration: none;
}
.page a:hover,
table.pages a:hover {
    color: #48b1d8;
    text-decoration: underline;
}
a.xref {
    white-space: nowrap;
}
a.xref b {
    color: inherit;
}

/* .TP tagged lists. */
dl.tags {
    margin: 0 0 1rem 0;
}
dl.tags > dt {
    margin: 1.1rem 0 0.2rem 0;
    font-family: monospace;
    color: #333;
}
dl.tags > dt b {
    font-family: inherit;
}
dl.tags > dd {
    margin: 0 0 0.2rem 1.8rem;
}
dl.tags > dd > p:last-child {
    margin-bottom: 0.4rem;
}

/* .IP bullets and .RS indents. */
ul.bullets {
    margin: 0 0 1rem 0;
}
ul.bullets li {
    margin: 0.2rem 0;
}
.indent {
    margin-left: 1.8rem;
}

/* Section index. */
table.pages {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1rem 0;
}
table.pages td {
    padding: 0.35rem 0.6rem 0.35rem 0;
    border-bottom: 1px solid #ececec;
    vertical-align: baseline;
    line-height: 1.5;
}
table.pages td.nm {
    white-space: nowrap;
    font-family: monospace;
}
table.pages td.nm .sec {
    color: #999;
}
table.pages td.ds {
    width: 99%;
}
details.aliases {
    margin: 0 0 1.6rem 0;
}
details.aliases summary {
    cursor: pointer;
    color: #999;
    font-size: 0.9em;
    padding: 0.3rem 0;
}

.manfoot {
    margin: 3rem 0 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e6e6e6;
    font-family: monospace;
    font-size: 0.8em;
    color: #999;
}
.manfoot span + span {
    margin-left: 1.5rem;
}

@media (max-width: 767px) {
    dl.tags > dd,
    .indent {
        margin-left: 1rem;
    }
    table.pages td.nm {
        white-space: normal;
    }
}
