/* Always show sphinx-copybutton */
button.copybtn {
    opacity: 1 !important;
}

/* Code blocks */
div.highlight {
    background: #f5f5f5 !important;
}

div.highlight pre {
    background: #f5f5f5 !important;
}

/* Force full width for content area */
body {
    max-width: 100% !important;
    font-size: 16px;  /* adjust base font size */
}

h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
}

h1 {
    font-weight: 800 !important;
    font-size:2.5rem;
    border-bottom: 3px solid #2e7eed;
    padding-bottom: 0.3em;
    margin-bottom: 1em;
    margin-top:0.5em;
}

h2 {
    border-bottom: 3px solid #bebdbd;
    padding-bottom: 0.3em;
    margin-bottom: 1em;
    margin-top:0.5em;
}

a.reference {
    border-bottom: None
}
a.visited {
    color: #004B6B
}

/*Put logo to the left instead of centered*/
div.sphinxsidebarwrapper p.logo{
    text-align: left !important
}

/*Make 'Recherche Rapide' label smaller*/
div.sphinxsidebar h3#searchlabel{
    font-size: 16px;
}

/*Hide searchbar for now*/
div.sphinxsidebarwrapper #searchbox {
    display: none !important;
}

/* API version badge */
.api-version-badge {
    display: inline-block;
    padding: 0.15em 0.6em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #888;
    background: #f9f9f9;
    font-family: monospace;
    margin-left: 0.6em;
    vertical-align: middle;
    font-weight: normal;
}

/* HTTP method + endpoint block */
.http-endpoint {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 1em 0;
    font-family: monospace;
    font-size: 1rem;
}

.http-method {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 4px 0 0 4px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #fff;
    background-color: #2e7eed;
}

.http-method-post { background-color: #49cc90; color: #fff; }
.http-method-get  { background-color: #61affe; color: #fff; }
.http-method-put  { background-color: #fca130; color: #fff; }
.http-method-delete { background-color: #f93e3e; color: #fff; }

.http-url {
    display: inline-block;
    padding: 0.2em 0.8em;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    background: #fff;
    color: #333;
}

.http-copy-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.2em 0.5em;
    margin-left: 0.6em;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    line-height: 1;
    transition: color 0.15s, border-color 0.15s;
}

.http-copy-btn:hover {
    color: #2e7eed;
    border-color: #2e7eed;
}

/* Flow overview */
.flow-overview {
    display: flex;
    align-items: center;
    gap: 0.8em;
    background: #f4f8ff;
    border: 1px solid #d0e3ff;
    border-radius: 8px;
    padding: 1em 1.5em;
    margin: 1.5em 0 2em 0;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.flow-icon {
    font-size: 1.2rem;
    color: #2e7eed;
    font-weight: bold;
}

.flow-label {
    font-size: 0.95rem;
    color: #333;
}

.flow-arrow {
    color: #aac4ee;
    font-size: 1.2rem;
}

/* Step cards */
.step-card {
    background: #fafbff;
    border-radius: 8px;
    padding: 1.2em 1.5em;
    margin: 1.5em 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1em;
    color: #000;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7em;
    height: 1.7em;
    background: #ebebeb;
    color: #555;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Tables: no shadow, always left-aligned */
table.docutils {
    box-shadow: none !important;
    margin-left: 0 !important;
    text-align: left !important;
}

table.docutils th,
table.docutils td {
    text-align: left !important;
}

