.dd {
    --ink: #171719;
    --muted: #56565e;
    --line: #dcdce0;
    --paper: #fff;
    --soft: #f6f6f7;
    --rail: 245px;
    --reading: 17px;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.dd * {
    box-sizing: border-box;
}
.dd [hidden] {
    display: none!important;
}
.dd a {
    text-underline-offset: .22em;
}
.dd a:hover {
    text-decoration: underline;
}
.dd :is(a,button,select,input,summary,textarea):focus-visible {
    outline: 2px solid #72727e;
    outline-offset: 3px;
}
.dd button,.dd select,.dd summary {
    cursor: pointer;
}
.dd h1,.dd h2,.dd h3 {
    color: inherit;
    letter-spacing: -.035em;
    line-height: 1.15;
    font-weight: 700;
}
.dd h2 {
    font-size: clamp(1.45rem,3vw,2.1rem);
}
.dd h3 {
    font-size: 1.15rem;
}
.dd :is(kbd,.dd-kicker,.dd-brand,.dd-meta,.dd-pager,.dd-code,.dd-diagram,.dd-toolbar>span) {
    font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
}
.dd kbd {
    display: inline-block;
    padding: .13em .45em;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: 0;
    white-space: nowrap;
}
.dd-wrap {
    max-width: 1220px;
    margin: auto;
    padding: clamp(1rem,4vw,3rem);
}
.dd-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #0c0c0e;
    color: white;
    text-align: center;
    padding: clamp(7rem,11vw,9rem) 1rem clamp(2rem,5vw,3.8rem);
    border-bottom: 1px solid #29292f;
}
.dd-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(#ffffff0e 1px,transparent 1px),linear-gradient(90deg,#ffffff0e 1px,transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg,#000,transparent 39%,transparent 61%,#000);
    animation: dd-arrive 1s ease-out both;
}
@keyframes dd-arrive {
    from {
    opacity: 0;
    transform: translateY(-8px);
}
    to {
    opacity: 1;
    transform: translateY(0);
}
}
.dd-hero-inner {
    max-width: 790px;
    margin: auto;
}
.dd-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 650;
    letter-spacing: -.035em;
    font-size: 1rem;
}
.dd-brand>span {
    color: #a1a1aa;
    font-size: .85em;
}
.dd-hero h1 {
    font-size: clamp(2rem,4.6vw,3.65rem);
    max-width: 23ch;
    text-wrap: balance;
    margin: 1rem auto;
}
.dd-hero h1+p {
    max-width: 62ch;
    margin: auto;
    color: #c6c6cc;
    font-size: clamp(.97rem,1.6vw,1.08rem);
    text-wrap: pretty;
}
.dd-launch {
    display: flex;
    align-items: center;
    gap: .8rem;
    width: min(100%,34rem);
    min-height: 54px;
    padding: .8rem 1rem;
    margin: 1.55rem auto .65rem;
    background: white;
    color: var(--ink);
    border-radius: 9px;
    text-align: left;
}
.dd-launch kbd {
    margin-left: auto;
    color: #626269;
}
.dd-hints,.dd-tools,.dd-toolbar,.dd-related,.dd-article-meta,.dd-pager,.dd-mobilebar,.dd-prevnext {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
}
.dd-hints {
    justify-content: center;
}
.dd-hints button {
    font: 12px ui-monospace,monospace;
    color: #ceced3;
    padding: .45rem;
}
.dd-hints button:hover {
    text-decoration: underline;
}
.dd-heading,.dd-toolbar,.dd-card-top,.dd-card-foot,.dd-dialog-head,.dd-readerbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}
.dd-heading {
    flex-wrap: wrap;
    margin: .4rem 0 1.55rem;
}
.dd-kicker,.dd-meta {
    color: var(--muted);
    font-size: .74rem;
    letter-spacing: .015em;
}
.dd-kicker {
    margin: 0 0 .4rem;
}
.dd-tools button,.dd-toolbar button,.dd-filters button,.dd-dialog-head button,.dd-article-meta button,.dd-mobilebar button,.dd-scope,.dd-bar-search,.dd-palette>button,.dd dialog>button {
    padding: .4rem .7rem;
    border-radius: 6px;
    border: 1px solid var(--line);
    min-height: 36px;
    font-size: .82rem;
    background: white;
    color: var(--ink);
}
.dd-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .65rem;
    border-block: 1px solid var(--line);
    padding: 1rem 0;
}
.dd label {
    display: grid;
    gap: .28rem;
    font-size: .81rem;
    color: var(--muted);
}
.dd select,.dd-feedback :is(input,textarea) {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 5px;
    background-color: #fff;
    color: var(--ink);
    font: inherit;
    min-height: 40px;
    padding: .45rem 1.85rem .45rem .55rem;
}
.dd-filters label {
    flex: 1 1 100px;
    max-width: 240px;
}
.dd-filters button,.dd-primary {
    background: var(--ink);
    color: white;
    min-height: 40px;
}
.dd-toolbar {
    margin: 1.2rem 0 .7rem;
    color: var(--muted);
    font-size: .8rem;
    scroll-margin-top: 6rem;
}
.dd-toolbar div {
    display: flex;
    gap: .2rem;
}
.dd [aria-pressed=true]:is([data-view],[data-favorite]) {
    background: var(--ink);
    color: white;
}
.dd-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.dd-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.1rem;
    min-width: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background .16s;
}
.dd-card:hover {
    background: #fafafa;
}
.dd-card-top {
    margin-bottom: .85rem;
}
.dd-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: #ededf0;
    border-radius: 6px;
    font: bold .8rem monospace;
}
.dd-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    background: white;
    filter: grayscale(1);
    transition: filter .2s;
}
.dd-card:is(:hover,:focus-within) img {
    filter: grayscale(0);
}
.dd-star {
    border-radius: 5px;
    font: 1.45rem/1 sans-serif;
    min-width: 36px;
    min-height: 36px;
}
.dd-card .dd-kicker {
    margin: 0;
}
.dd-desc {
    font-size: .89rem;
    color: var(--muted);
    margin-bottom: .6rem;
}
.dd-meta {
    margin-top: auto;
}
.dd-card-foot {
    border-top: 1px solid var(--line);
    margin-top: .45rem;
    padding-top: .7rem;
    font-size: .75rem;
}
.dd-card-foot a:last-child {
    white-space: nowrap;
    font-weight: 600;
}
.dd-grid[data-mode=list] {
    grid-template-columns: 1fr;
}
.dd-grid[data-mode=list] .dd-card {
    display: grid;
    grid-template-columns: 80px 1fr 1.3fr 1.6fr 1fr;
    gap: .8rem;
    align-items: center;
    padding: .65rem 1rem;
}
.dd-grid[data-mode=list] .dd-card :is(.dd-card-top,.dd-desc,.dd-meta,.dd-card-foot) {
    margin: 0;
}
.dd-grid[data-mode=list] .dd-card .dd-kicker {
    display: none;
}
.dd-grid[data-mode=list] .dd-card-foot {
    border: 0;
    padding: 0;
}
.dd-pager {
    justify-content: center;
    font-size: .84rem;
    padding: 1.3rem;
}
.dd-pager a,.dd-related a,.dd-prevnext a,.dd-source {
    text-decoration: underline;
}
.dd-quick {
    border-top: 1px solid var(--line);
    margin-top: 1.5rem;
    padding-top: 1.8rem;
}
.dd-quick-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 1.5rem;
    margin: 1rem 0 2rem;
}
.dd-quick-grid h3 {
    font-size: .92rem;
    margin-bottom: .65rem;
}
.dd-quick-grid li,.dd-tree li {
    font-size: .85rem;
    margin: .35rem 0;
}
.dd-quick-grid small,.dd-empty {
    color: var(--muted);
}
.dd-related {
    padding: 1rem 0;
    font-size: .9rem;
    gap: .6rem 1.2rem;
}
.dd-feedback {
    border-block: 1px solid var(--line);
    margin: 1rem 0;
}
.dd-feedback summary {
    padding: 1rem 0;
    font-weight: 650;
}
.dd-feedback form {
    display: grid;
    max-width: 38rem;
    gap: .75rem;
    margin: 0 0 1.3rem;
}
.dd-primary {
    padding: .65em 1em;
    border-radius: 6px;
    justify-self: start;
}
.dd-feedback textarea {
    min-height: 65px;
}
.dd-reader,.dd-lab {
    padding-top: 6.4rem;
}
.dd-readerbar {
    padding: .9rem clamp(1rem,3vw,2.25rem);
    border-block: 1px solid var(--line);
    flex-wrap: wrap;
}
.dd-collapse {
    padding: .4rem .7rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: .82rem;
}
@media(min-width:761px) {
    .dd[data-navigation=closed] .dd-tree {
    display: none;
}
    .dd[data-navigation=closed] .dd-columns {
    grid-template-columns: minmax(0,1fr) minmax(145px,185px);
}
    .dd[data-navigation=closed][data-outline=off] .dd-columns {
    grid-template-columns: minmax(0,1fr);
}
}
@media(max-width:760px) {
    .dd-collapse {
    display: none;
}
}
.dd-readerbar .dd-tools {
    margin-left: auto;
}
.dd-bar-search {
    margin-right: auto;
}
.dd-columns {
    display: grid;
    grid-template-columns: var(--rail) minmax(0,1fr) minmax(145px,185px);
    max-width: 1530px;
    margin: auto;
    align-items: start;
}
.dd-tree,.dd-outline {
    position: sticky;
    top: 5.2rem;
    max-height: calc(100dvh - 5.2rem);
    overflow: auto;
    padding: 1.5rem 1rem;
    scrollbar-width: thin;
}
.dd-tree {
    border-right: 1px solid var(--line);
    background: #fafafa;
}
.dd-tree label,.dd-tree>a,.dd-tree .dd-scope {
    display: block;
    margin-bottom: .8rem;
}
.dd-tree label select {
    display: block;
    margin-top: .3rem;
}
.dd-tree summary {
    padding: .55rem 0;
    font-weight: 600;
    font-size: .88rem;
}
.dd-tree ul {
    margin-left: .55rem;
    padding-left: .85rem;
    border-left: 1px solid var(--line);
}
.dd-tree li a {
    display: block;
    padding: .3rem;
    border-left: 2px solid transparent;
}
.dd-tree [aria-current=page],.dd-outline [aria-current] {
    border-left: 2px solid var(--ink);
    background: #ececef;
    font-weight: 650;
}
.dd-resizer {
    position: absolute;
    inset: 0 0 0 auto;
    width: 8px;
    cursor: col-resize;
    touch-action: none;
}
.dd-resizer:hover {
    background: #c2c2c8;
}
.dd-article {
    width: 100%;
    max-width: 850px;
    margin: auto;
    padding: clamp(1rem,4vw,3.6rem);
    font-size: var(--reading);
    min-width: 0;
}
.dd-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}
.dd-article h1,.dd-lab h1 {
    font-size: clamp(1.9rem,4vw,3rem);
    line-height: 1.13;
}
.dd-lead {
    font-size: 1.1em;
    color: var(--muted);
    margin: .8rem 0;
}
.dd-article-meta {
    font-size: .78rem;
    color: var(--muted);
    padding: .65rem 0 1.3rem;
    border-bottom: 1px solid var(--line);
}
.dd-article section {
    margin: 1.9rem 0;
}
.dd-article h2 {
    font-size: 1.4em;
    margin-bottom: .7rem;
    scroll-margin-top: 6.5rem;
}
.dd-article section>p {
    max-width: 68ch;
}
.dd-table {
    overflow-x: auto;
    max-width: 100%;
}
.dd-table table {
    border-collapse: collapse;
    width: 100%;
    font-size: .9em;
    margin-top: 1rem;
}
.dd-table :is(th,td) {
    padding: .55rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.dd-table th,.dd-note {
    background: var(--soft);
}
.dd-note {
    border-left: 2px solid #555;
    padding: .8rem 1rem;
    margin: 1rem 0;
    font-size: .9em;
}
.dd-code {
    background: #17171b;
    border-radius: 8px;
    color: #e4e4ea;
    overflow: hidden;
    margin: 1rem 0;
}
.dd-code figcaption {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    padding: .5rem .8rem;
    font-size: .74rem;
    border-bottom: 1px solid #39393f;
}
.dd-code figcaption small {
    color: #c3c3ce;
}
.dd-code figcaption button:first-of-type {
    margin-left: auto;
}
.dd-code figcaption button {
    padding: .3rem;
    color: #dedee6;
}
.dd-code pre {
    overflow-x: auto;
    padding: .7rem 0;
    line-height: 1.65;
    font-size: .85rem;
}
.dd-code code {
    display: block;
    min-width: max-content;
}
.dd-code-line {
    display: block;
    padding: 0 .85rem;
    white-space: pre;
    min-height: 1.65em;
}
.dd-code-line:before {
    content: attr(data-n);
    display: inline-block;
    min-width: 2.2em;
    color: #a4a4b0;
    user-select: none;
}
.dd-code-line[data-emphasis] {
    background: #303037;
    box-shadow: inset 2px 0 #a4a4af;
}
.dd-code[data-wrap=true] code {
    min-width: 0;
}
.dd-code[data-wrap=true] .dd-code-line {
    white-space: pre-wrap;
}
.dd-code .tok-key {
    color: #e5c7f3;
}
.dd-code .tok-string {
    color: #badbcb;
}
.dd-code .tok-comment {
    color: #aaaab7;
}
.dd-diagram {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    font-size: .84em;
}
.dd-diagram li {
    padding: .4rem .6rem;
    border: 1px solid var(--line);
}
.dd-diagram li+li:before {
    content: '→ ';
    color: var(--muted);
}
.dd-directory a {
    display: grid;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
}
.dd-directory span,.dd-source,.dd-prevnext {
    font-size: .9em;
}
.dd-source {
    display: inline-block;
    margin: .55rem 1rem .3rem 0;
}
.dd-prevnext {
    justify-content: space-between;
}
.dd-outline {
    font-size: .82rem;
}
.dd-outline a {
    display: block;
    padding: .4rem;
}
.dd-outline progress {
    display: block;
    width: 100%;
    height: 3px;
    accent-color: var(--ink);
    margin: .65rem 0;
}
.dd-outline nav {
    margin-bottom: 1rem;
}
.dd-mobilebar {
    display: none;
}
.dd[data-outline=off] .dd-outline {
    display: none;
}
.dd[data-outline=off] .dd-columns {
    grid-template-columns: var(--rail) minmax(0,1fr);
}
.dd dialog {
    width: min(94vw,580px);
    max-height: 78dvh;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: auto;
    box-shadow: 0 16px 65px #0004;
    color: var(--ink);
}
.dd dialog::backdrop {
    background: #0c0c10a8;
}
.dd-dialog-head {
    margin-bottom: .8rem;
}
.dd-dialog-head h2 {
    font-size: 1.15rem;
}
.dd dialog label {
    margin: .65rem 0;
}
.dd dialog label:has(input[type=checkbox]) {
    display: flex;
    align-items: center;
}
.dd-search-input {
    display: flex!important;
    align-items: center;
    gap: .6rem;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 5px;
}
.dd-search-input input {
    width: 100%;
    min-width: 0;
    font: inherit;
    font-size: 1rem;
    border: 0;
    background: transparent;
}
.dd-palette [role=status] {
    font-size: .82rem;
    color: var(--muted);
}
.dd-palette [role=option] {
    display: grid;
    gap: .1rem;
    text-align: left;
    width: 100%;
    padding: .55rem .7rem;
    border-radius: 4px;
}
.dd-palette [role=option][aria-selected=true] {
    box-shadow: inset 3px 0 var(--ink);
    background: #ededf0;
    transition: background-color .12s;
}
.dd-palette [role=option] small {
    color: var(--muted);
}
.dd-palette mark {
    background: #dbdbe2;
    color: inherit;
}
.dd-palette .dd-kicker {
    margin: .8rem .6rem .15rem;
}
.dd-palette footer {
    display: flex;
    gap: .35rem;
    align-items: center;
    color: var(--muted);
    font-size: .75rem;
    border-top: 1px solid var(--line);
    padding-top: .6rem;
    margin-top: 1rem;
}
.dd-shortcuts div {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
}
.dd-comparison {
    display: grid;
    grid-template-columns: minmax(0,var(--split,50%)) minmax(0,1fr);
    gap: .65rem;
    margin: 1.5rem 0;
}
.dd-split {
    margin: 1rem 0;
    max-width: 260px;
}
@media(max-width:1050px) {
    .dd-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
}
    .dd-columns {
    grid-template-columns: var(--rail) minmax(0,1fr);
}
    .dd-outline {
    position: static;
    grid-column: 2;
    grid-row: 2;
    max-height: none;
}
    .dd-quick-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
}
}
@media(max-width:760px) {
    .dd-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
}
    .dd-columns,.dd[data-outline=off] .dd-columns {
    display: block;
}
    .dd-mobilebar {
    display: flex;
    padding: .55rem 1rem;
    border-bottom: 1px solid var(--line);
}
    .dd-tree,.dd-outline {
    display: none;
    position: static;
    max-height: 55dvh;
    overflow: auto;
    border-bottom: 1px solid var(--line);
}
    .dd [data-pane].is-open {
    display: block;
}
    .dd-resizer {
    display: none;
}
    .dd-outline.is-open {
    position: relative;
}
    .dd-columns:has(.dd-outline.is-open) {
    display: flex;
    flex-direction: column;
}
    .dd-outline.is-open {
    order: -1;
    width: 100%;
}
    .dd-article {
    padding: 1.4rem 1rem;
}
    .dd-grid[data-mode=list] .dd-card {
    grid-template-columns: 78px 1fr auto;
}
    .dd-grid[data-mode=list] .dd-desc,.dd-grid[data-mode=list] .dd-card-foot>a:first-child {
    display: none;
}
    .dd-grid[data-mode=list] .dd-meta {
    grid-column: 2;
    grid-row: 2;
}
    .dd-grid[data-mode=list] .dd-card-foot {
    grid-column: 3;
    grid-row: 1;
}
    .dd-comparison {
    grid-template-columns: 1fr;
}
    .dd-split {
    display: none;
}
    .dd-readerbar {
    justify-content: start;
}
    .dd-lab,.dd-reader {
    padding-top: 5.4rem;
}
}
@media(max-width:475px) {
    .dd-grid {
    grid-template-columns: 1fr;
}
    .dd-card {
    padding: 1rem;
}
    .dd-card-top {
    margin-bottom: .25rem;
}
    .dd-card h3 {
    font-size: 1.25rem;
}
    .dd-quick-grid {
    grid-template-columns: 1fr;
}
    .dd-readerbar .dd-tools {
    margin-left: 0;
}
    .dd-filters label {
    flex: 1 1 40%;
}
    .dd-hints {
    gap: .1rem;
}
    .dd-toolbar button,.dd-star,.dd-tools button,.dd-mobilebar button {
    min-height: 42px;
}
    .dd-feedback form {
    width: 100%;
}
}
@media(prefers-reduced-motion:reduce) {
    .dd *,.dd :before {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
}
}
.dd[data-motion=off] *,.dd[data-motion=off] :before {
    animation: none!important;
    transition: none!important;
}
.dd-tabs { flex-basis:100%; display:flex; flex-wrap:wrap; gap:.35rem; padding:0; }
.dd-tabs legend { font-size:.85rem; color:var(--muted); margin-bottom:.5rem; }
.dd-tabs label { position:relative; display:block; flex:none; max-width:none; }
.dd-tabs input { position:absolute; opacity:0; }
.dd-tabs span { display:block; padding:.45rem .65rem; border-bottom:2px solid transparent; cursor:pointer; transition:border-color .15s; }
.dd-tabs :checked + span { color:var(--ink); border-bottom-color:var(--ink); font-weight:650; }
.dd-tabs :focus-visible + span { outline:2px solid var(--ink); outline-offset:2px; }
.dd-hero .dd-hints:has(a) { margin-top:.6rem; color:#b4b4ba; font-size:.8rem; }
@media(min-width:761px) and (max-width:1050px) {
    .dd-mobilebar { display:flex; padding:.4rem 1rem; border-bottom:1px solid var(--line); }
    .dd-mobilebar [data-panel=tree] { display:none; }
    .dd-outline { display:none; }
    .dd-columns:has(.dd-outline.is-open) { grid-template-rows:auto 1fr; }
    .dd-outline.is-open { display:block; grid-column:2; grid-row:1; width:100%; max-height:36vh; overflow:auto; }
    .dd-columns:has(.dd-outline.is-open) .dd-tree { grid-row:1 / span 2; }
    .dd-columns:has(.dd-outline.is-open) .dd-article { grid-column:2; grid-row:2; }
    .dd[data-navigation=closed] .dd-columns { grid-template-columns:minmax(0,1fr); }
    .dd[data-navigation=closed] .dd-columns:has(.dd-outline.is-open) :is(.dd-outline,.dd-article) { grid-column:1; }
}
@supports (content-visibility:auto) {
    .dd-tree details > ul > li { content-visibility:auto; contain-intrinsic-block-size:auto 2rem; }
    .dd-directory > li { content-visibility:auto; contain-intrinsic-block-size:auto 4rem; }
}

/* ── Refonte 2026-11-26 : hero à trame de Truchet, domaines, fiches complètes, schémas, animations ── */
.dd-hero { padding: clamp(8rem,13vw,10.5rem) 1rem clamp(3rem,6vw,4.75rem); background: #09090b; }
.dd-hero:before { content: none; }
.dd-weave {
    position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%;
    color: #8c8c98;
    -webkit-mask-image: radial-gradient(ellipse 42% 58% at 50% 52%, transparent 38%, #0006 62%, #000 100%);
    mask-image: radial-gradient(ellipse 42% 58% at 50% 52%, transparent 38%, #0006 62%, #000 100%);
    animation: dd-fade 1.6s ease-out both;
}
@keyframes dd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dd-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dd-hero-inner > * { animation: dd-rise .7s cubic-bezier(.2,.7,.2,1) both; }
.dd-hero-inner > :nth-child(2) { animation-delay: .06s; }
.dd-hero-inner > :nth-child(3) { animation-delay: .12s; }
.dd-hero-inner > :nth-child(n+4) { animation-delay: .18s; }
.dd-launch { transition: transform .2s, box-shadow .2s; box-shadow: 0 0 0 1px #ffffff22, 0 12px 40px #0008; }
.dd-launch:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px #ffffff55, 0 16px 48px #000a; }

/* Domaines : rangée de filtres directs, défilable sur téléphone */
.dd-domains { display: flex; gap: .4rem; overflow-x: auto; padding: .1rem 0 1rem; margin-bottom: .2rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
.dd-domains a { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--ink); background: #fff; transition: background .15s, border-color .15s, color .15s; }
.dd-domains a:hover { text-decoration: none; border-color: #a9a9b2; }
.dd-domains a small { font: .72rem ui-monospace,monospace; color: var(--muted); }
.dd-domains a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dd-domains a[aria-current] small { color: #c9c9d0; }

/* Cartes du catalogue */
.dd-card { position: relative; transition: background .2s, box-shadow .2s; }
.dd-card:hover { background: #fafafb; box-shadow: inset 0 0 0 1px #c9c9d0; }
.dd-card h3 a:after { content: ""; position: absolute; inset: 0; }
.dd-card :is(.dd-star,.dd-card-foot a) { position: relative; z-index: 1; }
.dd-card-foot a:last-child { transition: transform .2s; }
.dd-card:hover .dd-card-foot a:last-child { transform: translateX(3px); }
.dd-js[data-motion=on] .dd-grid .dd-card { animation: dd-rise .45s cubic-bezier(.2,.7,.2,1) both; }
.dd-js[data-motion=on] .dd-grid .dd-card:nth-child(4n+2) { animation-delay: .04s; }
.dd-js[data-motion=on] .dd-grid .dd-card:nth-child(4n+3) { animation-delay: .08s; }
.dd-js[data-motion=on] .dd-grid .dd-card:nth-child(4n+4) { animation-delay: .12s; }

/* Lecteur : la barre DevDocs suit directement la navigation du site */
.dd-reader, .dd-lab { padding-top: 3.25rem; }
.dd-readerbar { background: #fff; }
.dd-bar-search { display: inline-flex; align-items: center; gap: .45rem; }
.dd-scope { display: inline-flex !important; align-items: center; gap: .4rem; }
body:has(.dd-reader) .social-rail { display: none; }
.dd-article-head { display: flex; align-items: center; gap: 1.1rem; }
.dd-article-head h1 { margin: 0; }
.dd-logo--lg { width: 64px; height: 64px; border-radius: 14px; font-size: 1.1rem; flex: none; box-shadow: 0 0 0 1px var(--line); }
.dd-logo--lg img { padding: 9px; filter: none; border-radius: 14px; }
.dd-lead { font-size: 1.16em; line-height: 1.55; max-width: 62ch; color: #3f3f46; }
.dd-article-meta { gap: .5rem 1rem; }
.dd-meta-link { margin-left: auto; text-decoration: underline; }
.dd-article p { margin: 0 0 .9rem; max-width: 70ch; }
.dd-article :not(pre) > code { font: .88em ui-monospace,SFMono-Regular,Consolas,monospace; background: #f0f0f2; border: 1px solid #e4e4e8; border-radius: 4px; padding: .05em .32em; }
.dd-list { margin: .4rem 0 1rem; padding-left: 1.2rem; list-style: none; }
.dd-list li { position: relative; margin: .4rem 0; max-width: 68ch; }
.dd-list li:before { content: ""; position: absolute; left: -1.05rem; top: .7em; width: .45rem; height: 1px; background: #8a8a94; }

/* Repères, usages, notions */
.dd-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); border: 1px solid var(--line); border-radius: 10px; margin: 1.6rem 0 .4rem; overflow: hidden; }
.dd-facts div { padding: .85rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.dd-facts dt { font: .7rem ui-monospace,monospace; color: var(--muted); letter-spacing: .02em; margin-bottom: .25rem; }
.dd-facts dd { margin: 0; font-size: .92rem; font-weight: 550; line-height: 1.35; }
.dd-uses { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: .6rem; margin: .6rem 0; counter-reset: use; }
.dd-uses li { counter-increment: use; position: relative; padding: .9rem 1rem .9rem 2.9rem; border: 1px solid var(--line); border-radius: 10px; font-size: .93em; background: #fff; transition: border-color .2s, transform .2s; }
.dd-uses li:hover { border-color: #a9a9b2; transform: translateY(-1px); }
.dd-uses li:before { content: counter(use, decimal-leading-zero); position: absolute; left: 1rem; top: .95rem; font: .72rem ui-monospace,monospace; color: var(--muted); }
.dd-concepts { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 0 1.6rem; margin: .4rem 0; }
.dd-concepts div { padding: .85rem 0; border-top: 1px solid var(--line); }
.dd-concepts dt { font: 600 .9rem ui-monospace,SFMono-Regular,monospace; margin-bottom: .3rem; }
.dd-concepts dd { margin: 0; font-size: .93em; color: #3f3f46; }

/* Schéma de fonctionnement d'une fiche : étapes reliées par un trait qui se dessine */
.dd-flow { margin: 1.4rem 0 .6rem; }
.dd-flow ol { display: flex; flex-wrap: wrap; align-items: stretch; gap: 1.6rem; position: relative; padding: 0; list-style: none; }
.dd-flow li { position: relative; flex: 1 1 120px; display: grid; place-items: center; text-align: center; min-height: 64px; padding: .7rem .8rem; border: 1px solid #c9c9d0; border-radius: 10px; font: .8rem/1.35 ui-monospace,SFMono-Regular,monospace; background: #fff; }
.dd-flow li:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.dd-flow li + li:before { content: ""; position: absolute; right: 100%; top: 50%; width: 1.6rem; height: 1px; background: #8a8a94; transform-origin: left; transition: transform .6s ease-out; }
.dd-flow li + li:after { content: ""; position: absolute; right: calc(100% + 1px); top: calc(50% - 4px); border: 4px solid transparent; border-left-color: #8a8a94; border-right: 0; }
.dd-flow figcaption, .dd-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: .7rem; }
.dd-js[data-motion=on] [data-draw]:not(.is-in) li + li:before { transform: scaleX(0); }
.dd-js[data-motion=on] .dd-flow li { transition: opacity .5s, transform .5s; }
.dd-js[data-motion=on] .dd-flow:not(.is-in) li { opacity: 0; transform: translateY(6px); }
.dd-flow li:nth-child(2) { transition-delay: .12s; } .dd-flow li:nth-child(3) { transition-delay: .24s; } .dd-flow li:nth-child(4) { transition-delay: .36s; } .dd-flow li:nth-child(n+5) { transition-delay: .48s; }

/* Schémas SVG des articles : traits en pathLength=1 tracés à l'apparition */
.dd-figure { margin: 1.3rem 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: #fcfcfd; }
.dd-figure svg { display: block; width: 100%; height: auto; color: var(--ink); overflow: visible; }
.dd-figure svg text { font: 12px ui-monospace,SFMono-Regular,Consolas,monospace; fill: currentColor; }
.dd-figure svg .t-muted { fill: #6b6b75; }
.dd-figure svg .t-head { font-weight: 700; font-family: inherit; font-size: 13px; }
.dd-figure svg .t-inv { fill: #fff; }
.dd-figure svg .box { fill: #fff; stroke: #b9b9c2; }
.dd-figure svg .box-ink { fill: #171719; stroke: #171719; }
.dd-figure svg .box-soft { fill: #f1f1f3; stroke: #d6d6dc; }
.dd-figure svg .box-dim { fill: #fff; stroke: #d9d9de; stroke-dasharray: 4 4; }
.dd-figure svg .stroke { fill: none; stroke: #6b6b75; stroke-width: 1.4; }
.dd-figure svg .stroke-ink { fill: none; stroke: #171719; stroke-width: 1.6; }
.dd-figure svg .dd-stroke { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.4,0,.2,1); }
.dd-figure svg .dd-pop { transition: opacity .5s, transform .5s; transform-box: fill-box; transform-origin: center; }
.dd-js[data-motion=on] .dd-figure:not(.is-in) .dd-stroke { stroke-dashoffset: 1; }
.dd-js[data-motion=on] .dd-figure:not(.is-in) .dd-pop { opacity: 0; transform: scale(.94); }
.dd-figure svg .d1 { transition-delay: .15s; } .dd-figure svg .d2 { transition-delay: .35s; } .dd-figure svg .d3 { transition-delay: .55s; } .dd-figure svg .d4 { transition-delay: .75s; } .dd-figure svg .d5 { transition-delay: .95s; }

/* Photo d'ouverture */
.dd-photo { margin: 0 0 1.8rem; }
.dd-photo img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 3; object-fit: cover; border-radius: 12px; background: #e9e9ec; }
.dd-photo figcaption { display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; color: var(--muted); margin-top: .45rem; }
.dd-photo figcaption a { text-decoration: underline; white-space: nowrap; }

/* Sections qui apparaissent au défilement */
.dd-js[data-motion=on] [data-reveal] { transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.dd-js[data-motion=on] [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }

/* À explorer ensuite */
.dd-mini-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: .6rem; margin-top: .6rem; }
.dd-mini { display: flex; align-items: center; gap: .75rem; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, transform .2s, background .2s; }
.dd-mini:hover { text-decoration: none !important; border-color: #a9a9b2; background: #fafafb; transform: translateY(-1px); }
.dd-mini span { display: grid; min-width: 0; }
.dd-mini strong { font-size: .9rem; }
.dd-mini small { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.dd-mini:hover img { filter: none; }
.dd-prevnext a { display: grid; gap: .15rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none !important; min-width: 0; max-width: 48%; transition: border-color .2s; }
.dd-prevnext a:hover { border-color: #a9a9b2; }
.dd-prevnext a:last-child:not(:first-child) { text-align: right; margin-left: auto; }
.dd-prevnext small { font: .7rem ui-monospace,monospace; color: var(--muted); }
.dd-directory a { transition: padding-left .2s; }
.dd-directory a:hover { padding-left: .4rem; text-decoration: none; }

/* Code : jetons supplémentaires */
.dd-code .tok-fn { color: #c9dcf7; }
.dd-code .tok-number { color: #f3d3b0; }
.dd-code .tok-var { color: #f5c6c6; }
.dd-code .tok-comment { color: #8f8f9c; font-style: normal; }

/* Démonstration Flexbox */
.dd-demo { margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dd-demo-bar { display: flex; flex-wrap: wrap; gap: .35rem .9rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--soft); font-size: .78rem; }
.dd-demo-bar fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; border: 0; padding: 0; margin: 0; }
.dd-demo-bar legend { float: left; margin-right: .3rem; color: var(--muted); font-family: ui-monospace,monospace; }
.dd-demo-bar button { padding: .25rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: .74rem ui-monospace,monospace; }
.dd-demo-bar button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dd-demo-stage { display: grid; grid-template-columns: minmax(0,1fr) 220px; }
.dd-demo-box { display: flex; gap: .6rem; min-height: 190px; padding: 1rem; background-image: linear-gradient(#0000000a 1px,transparent 1px),linear-gradient(90deg,#0000000a 1px,transparent 1px); background-size: 16px 16px; transition: all .3s; }
.dd-demo-box span { display: grid; place-items: center; min-width: 54px; padding: .6rem .8rem; border-radius: 8px; background: var(--ink); color: #fff; font: .78rem ui-monospace,monospace; transition: all .3s; }
.dd-demo-box span:nth-child(2) { padding-block: 1.3rem; }
.dd-demo-box span:nth-child(3) { padding-block: .9rem; }
.dd-demo pre { margin: 0; padding: 1rem; background: #17171b; color: #e4e4ea; font: .76rem/1.7 ui-monospace,monospace; white-space: pre-wrap; }
@media (max-width: 760px) {
    .dd-reader, .dd-lab { padding-top: 3.25rem; }
    .dd-article-head { gap: .8rem; }
    .dd-logo--lg { width: 48px; height: 48px; border-radius: 11px; }
    .dd-meta-link { margin-left: 0; }
    .dd-demo-stage { grid-template-columns: 1fr; }
    .dd-prevnext a { max-width: 100%; }
    .dd-figure { padding: .8rem; overflow-x: auto; }
    .dd-figure svg { min-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
    .dd-weave { animation: none; }
    .dd [data-reveal], .dd [data-draw] li, .dd .dd-stroke, .dd .dd-pop { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}
.dd[data-motion=off] :is([data-reveal],[data-draw] li,.dd-stroke,.dd-pop) { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
.dd-mini .dd-logo { flex: none; }
.dd-code .tok-key { color: #d9b8ff; }
.dd-grid:not([data-mode=list]) .dd-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) {
    .dd-comparison { grid-template-columns: minmax(0, 1fr); }
    .dd-lab { padding-top: 5.4rem; }
    .dd-hero .dd-hints:has(a) { gap: .35rem .7rem; }
    .dd-figure svg { min-width: 480px; }
}

/* Fiches pratiques illustrées de l'accueil DevDocs */
.dd-guides { margin: .5rem 0 3rem; }
.dd-guides-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.2rem; }
.dd-guides-head p:not(.dd-kicker) { max-width: 46ch; color: var(--muted); font-size: .92rem; margin: 0; }
.dd-guides-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.dd-guide { scroll-snap-align: start; display: grid; align-content: start; gap: .3rem; padding: .6rem .6rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.dd-guide:hover { text-decoration: none !important; border-color: #a9a9b2; transform: translateY(-2px); }
.dd-guide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: .45rem; filter: saturate(.85); transition: filter .3s; }
.dd-guide:hover img { filter: none; }
.dd-guide .dd-kicker, .dd-guide strong, .dd-guide small { padding-inline: .3rem; }
.dd-guide .dd-kicker { margin: 0; }
.dd-guide strong { font-size: 1rem; line-height: 1.3; }
.dd-guide small { color: var(--muted); font-size: .82rem; line-height: 1.45; }
@media (min-width: 1100px) { .dd-guides-row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }

/* ── Panneau de navigation du lecteur, refait le 2026-11-26 ──────────────────────────────────
   Fond gris sur toute la hauteur de la colonne (dégradé du conteneur, le panneau reste collant),
   carte de la technologie, sélecteurs compacts, recherche sur une ligne, sommaire en arbre. */
@media (min-width: 761px) {
    .dd-columns { background: linear-gradient(90deg, #fafafa 0 var(--rail), var(--line) var(--rail) calc(var(--rail) + 1px), transparent calc(var(--rail) + 1px)); }
    .dd[data-navigation=closed] .dd-columns { background: none; }
}
.dd .dd-tree {
    display: flex; flex-direction: column; gap: 1rem;
    padding: 1.25rem 1rem 1.5rem; background: transparent; border-right: 0;
    top: 3.25rem; max-height: calc(100dvh - 3.25rem); overflow-y: auto; overscroll-behavior: contain;
}
.dd .dd-tree > * { margin: 0; }
.dd-tree-tech { display: flex; align-items: center; gap: .7rem; padding: .55rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s; }
.dd-tree-tech:hover { text-decoration: none !important; border-color: #b9b9c2; }
.dd .dd-tree-tech[aria-current] { border-color: var(--ink); background: #fff; font-weight: 400; }
.dd-tree-tech .dd-logo { flex: none; }
.dd-tree-tech img { filter: none; }
.dd-tree-tech > span { display: grid; min-width: 0; }
.dd-tree-tech strong { font-size: .92rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-tree-tech small { font: .68rem ui-monospace, monospace; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-tree-fields { display: grid; gap: .55rem; }
.dd .dd-tree-fields label { display: grid; gap: .25rem; margin: 0; font-size: .72rem; color: var(--muted); }
.dd .dd-tree-fields select { margin: 0; min-height: 36px; padding: .35rem 1.8rem .35rem .55rem; font-size: .84rem; border-radius: 8px; }
.dd .dd-tree .dd-scope {
    display: flex !important; align-items: center; gap: .5rem; width: 100%; min-height: 36px; padding: .4rem .6rem;
    border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: .82rem; text-align: left;
}
.dd .dd-tree .dd-scope:hover { border-color: #b9b9c2; color: var(--ink); }
.dd-tree .dd-scope svg { flex: none; }
.dd-tree .dd-scope span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-tree-nav { display: grid; gap: .1rem; padding-top: .25rem; border-top: 1px solid var(--line); }
.dd-tree-label { margin: .7rem 0 .35rem !important; font: .68rem ui-monospace, monospace; color: var(--muted); letter-spacing: .02em; }
.dd .dd-tree-link { display: block; padding: .38rem .55rem; border-radius: 6px; border-left: 0; font-size: .86rem; line-height: 1.35; color: #3f3f46; transition: background-color .15s, color .15s; }
.dd .dd-tree-link:hover { background: #efeff2; color: var(--ink); text-decoration: none; }
.dd .dd-tree .dd-tree-link[aria-current=page] { background: #fff; color: var(--ink); font-weight: 600; border-left: 0; box-shadow: inset 2px 0 0 var(--ink), 0 0 0 1px var(--line); }
.dd .dd-tree details { margin: .15rem 0; }
.dd .dd-tree summary {
    display: flex; align-items: center; gap: .45rem; padding: .38rem .55rem; border-radius: 6px;
    list-style: none; font-size: .84rem; font-weight: 600; color: var(--ink);
}
.dd .dd-tree summary::-webkit-details-marker { display: none; }
.dd .dd-tree summary::before {
    content: ""; flex: none; width: 6px; height: 6px; margin-right: .1rem;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg); transition: transform .2s; opacity: .55;
}
.dd .dd-tree details[open] > summary::before { transform: rotate(45deg); }
.dd .dd-tree summary:hover { background: #efeff2; }
.dd .dd-tree summary small { margin-left: auto; font: .68rem ui-monospace, monospace; color: var(--muted); font-weight: 400; }
.dd .dd-tree ul { margin: .1rem 0 .3rem .85rem; padding-left: .5rem; border-left: 1px solid var(--line); list-style: none; }
.dd .dd-tree li { margin: .05rem 0; font-size: inherit; }
.dd .dd-tree li a:not(.dd-tree-link) { display: inline; padding: .3rem .2rem; font-size: .82rem; border-left: 0; }
.dd .dd-tree li:has([data-favorite]), .dd .dd-tree [data-local] li { display: flex; align-items: center; gap: .2rem; font-size: .82rem; padding: .2rem 0; }
.dd .dd-tree [data-local] li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd .dd-tree [data-local] li button { padding: .1rem .3rem; border-radius: 4px; color: var(--muted); font-size: .8rem; }
.dd .dd-tree [data-local] li button:hover { background: #e6e6ea; color: var(--ink); }
.dd .dd-tree .dd-empty { color: var(--muted); font-size: .8rem; }
.dd-tree-empty { font-size: .8rem; color: var(--muted); padding: 0 .55rem; }
.dd-tree-local { border-top: 1px solid var(--line); padding-top: .5rem; }
.dd .dd-tree .dd-resizer {
    position: absolute; inset: 0 0 0 auto; width: 6px; padding: 0; border: 0; border-radius: 0;
    background: transparent; cursor: col-resize; touch-action: none; min-height: 0;
}
.dd .dd-tree .dd-resizer:hover, .dd .dd-tree .dd-resizer:focus-visible { background: linear-gradient(90deg, transparent 2px, #a1a1aa 2px 4px, transparent 4px); outline: none; }
@media (max-width: 760px) {
    .dd .dd-tree { top: auto; max-height: 70dvh; padding: 1rem; background: #fafafa; }
    .dd-tree-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .dd .dd-tree:not(.is-open) { display: none; }
}
/* Le repère de défilement du site (point noir à gauche) se posait sur le panneau de navigation. */
body:has(.dd-reader) .scroll-progress { display: none !important; }
.dd .dd-tree-tech { display: flex; }
.dd .dd-tree.is-open { display: flex; }
@media (max-width: 760px) { .dd .dd-tree-fields { gap: .55rem .6rem; } }

/* Le repère de défilement du site ne s'affiche pas sur DevDocs (sélecteur indépendant de la classe
   ajoutée : la page peut arriver par une transition Barba depuis une page chargée avant). */
body:has(.dd) [x-show="visible"][class~="h-28"][class~="fixed"] { display: none !important; }

/* ── Palette de recherche, refaite le 2026-11-26 ───────────────────────────────────────────── */
.dd dialog.dd-palette {
    width: min(94vw, 640px); max-height: min(72dvh, 620px); margin: 12vh auto auto; padding: 0;
    display: none; flex-direction: column; overflow: hidden;
    border: 1px solid rgb(17 24 39 / .1); border-radius: 16px; background: #fff;
    box-shadow: 0 30px 80px -20px rgb(10 10 14 / .45), 0 0 0 1px rgb(255 255 255 / .6) inset;
}
.dd dialog.dd-palette[open] { display: flex; animation: dd-palette-in .22s cubic-bezier(.2,.8,.2,1); }
.dd dialog.dd-palette::backdrop { background: rgb(9 9 11 / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: dd-fade .2s ease-out; }
@keyframes dd-palette-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
.dd-palette-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.dd-palette-head svg { flex: none; }
.dd .dd-palette-head input {
    flex: 1; min-width: 0; height: 2.25rem; border: 0; padding: 0; background: transparent;
    font: inherit; font-size: 1.08rem; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.dd .dd-palette-head input::placeholder { color: #a1a1aa; }
.dd .dd-palette-head input:focus, .dd .dd-palette-head input:focus-visible { outline: none; }
.dd .dd-palette-head input::-webkit-search-cancel-button { display: none; }
.dd-palette-head:focus-within { color: var(--ink); }
.dd-palette-scope { flex: none; max-width: 40%; padding: .2rem .55rem; border-radius: 999px; background: #f1f1f3; color: #3f3f46; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd .dd-palette-head button { flex: none; padding: 0; border: 0; min-height: 0; background: none; }
.dd .dd-palette-head kbd { padding: .2rem .45rem; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .7rem; background: #fafafa; }
.dd .dd-palette-head button:hover kbd { color: var(--ink); border-color: #b9b9c2; }
.dd-palette-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .35rem .5rem .6rem; scrollbar-width: thin; }
.dd .dd-palette .dd-palette-status { margin: 0; padding: 0 .6rem; color: var(--muted); font-size: .82rem; }
.dd .dd-palette .dd-palette-status:not(:empty) { padding: 1.4rem .6rem; text-align: center; }
.dd .dd-palette [role=group] { padding-top: .35rem; }
.dd .dd-palette [role=group] + [role=group] { margin-top: .35rem; border-top: 1px solid #f0f0f2; }
.dd .dd-palette .dd-kicker { margin: .45rem .6rem .25rem; font-size: .68rem; }
.dd .dd-palette [role=option] {
    display: flex; align-items: center; gap: .75rem; width: 100%; padding: .55rem .6rem; border-radius: 10px;
    cursor: pointer; text-align: left; transition: background-color .12s;
}
.dd .dd-palette [role=option][aria-selected=true] { background: #f2f2f4; box-shadow: inset 2px 0 0 var(--ink); }
.dd-opt-mono {
    flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
    background: #f4f4f5; border: 1px solid #e7e7ea; color: #52525b; font: 600 .68rem ui-monospace, monospace; text-transform: uppercase;
}
[aria-selected=true] > .dd-opt-mono { background: var(--ink); border-color: var(--ink); color: #fff; }
.dd-opt-mono--search { position: relative; }
.dd-opt-mono--search::before { content: ""; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; transform: translate(-1px, -1px); }
.dd-opt-mono--search::after { content: ""; position: absolute; width: 5px; height: 1.5px; background: currentColor; transform: translate(5px, 5px) rotate(45deg); }
.dd-opt-text { display: grid; gap: .1rem; flex: 1; min-width: 0; }
.dd .dd-palette .dd-opt-text strong { font-size: .92rem; font-weight: 550; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd .dd-palette .dd-opt-text small { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-opt-ver { flex: none; padding: .1rem .45rem; border-radius: 999px; border: 1px solid var(--line); font: .68rem ui-monospace, monospace; color: var(--muted); }
.dd .dd-palette mark { background: #e9e5ff; color: inherit; border-radius: 3px; padding: 0 .05em; }
.dd .dd-palette .dd-palette-more { display: block; margin: .4rem auto .2rem; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .8rem; min-height: 0; }
.dd .dd-palette .dd-palette-more[hidden] { display: none; }
.dd .dd-palette footer {
    display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: 0; padding: .6rem 1rem;
    border-top: 1px solid var(--line); background: #fafafa; color: var(--muted); font-size: .72rem;
}
.dd .dd-palette footer > span { display: inline-flex; align-items: center; gap: .25rem; }
.dd .dd-palette footer kbd { min-width: 1.4rem; text-align: center; padding: .1rem .3rem; border: 1px solid #d9d9de; border-bottom-width: 2px; border-radius: 5px; background: #fff; color: #3f3f46; font-size: .68rem; }
.dd-palette-brand { margin-left: auto; font-family: ui-monospace, monospace; }
@media (max-width: 640px) {
    .dd dialog.dd-palette { margin-top: 4vh; max-height: 84dvh; width: 96vw; }
    .dd .dd-palette footer > span:nth-child(3), .dd-palette-brand { display: none; }
}
/* Les styles de formulaires du site encadraient le champ de la palette : le cadre vient de l'en-tête. */
.dd .dd-palette-head input, .dd .dd-palette-head input:focus, .dd .dd-palette-head input:focus-visible {
    border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; padding: 0 !important;
}

/* ── Comparateur de syntaxes, refait le 2026-11-26 ─────────────────────────────────────────── */
.dd-cmp .dd-wrap { padding-top: 1.5rem; }
.dd-cmp-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .2rem 0 .5rem; }
.dd-cmp-head .dd-lead { margin: 0 0 1.4rem; }
.dd-cmp-notions { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .6rem; scrollbar-width: thin; }
.dd-cmp-notions a { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .85rem; transition: border-color .15s, background-color .15s; }
.dd-cmp-notions a:hover { text-decoration: none; border-color: #a9a9b2; }
.dd-cmp-notions a small { font: .7rem ui-monospace, monospace; color: var(--muted); }
.dd-cmp-notions a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dd-cmp-notions a[aria-current] small { color: #c9c9d0; }
.dd-cmp-pick { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin: 1rem 0 1.4rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.dd-cmp-intro { margin: 0; max-width: 52ch; color: #3f3f46; font-size: .95rem; }
.dd-cmp-selects { display: flex; align-items: end; gap: .6rem; }
.dd .dd-cmp-selects label { display: grid; gap: .25rem; margin: 0; font-size: .72rem; color: var(--muted); }
.dd .dd-cmp-selects select { min-width: 10.5rem; min-height: 40px; border-radius: 8px; }
.dd-cmp-swap { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; font-size: 1.05rem; color: var(--ink); background: #fff; transition: transform .25s, border-color .15s; }
.dd-cmp-swap:hover { text-decoration: none !important; border-color: #a9a9b2; transform: rotate(180deg); }
.dd .dd-cmp .dd-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2.5rem; }
.dd-cmp-panel { display: flex; flex-direction: column; min-width: 0; padding: .9rem; border: 1px solid var(--line); border-radius: 14px; background: #fcfcfd; }
.dd-cmp-panel > header { display: flex; align-items: center; gap: .7rem; margin-bottom: .2rem; }
.dd-cmp-panel > header > div { display: grid; flex: 1; min-width: 0; }
.dd .dd-cmp-panel h2 { font-size: 1.1rem; margin: 0; }
.dd-cmp-panel > header small { font: .7rem ui-monospace, monospace; color: var(--muted); }
.dd-cmp-panel > header a { font-size: .8rem; text-decoration: underline; white-space: nowrap; }
.dd-cmp-panel .dd-logo img { filter: none; }
.dd-cmp-panel .dd-code { flex: 1; margin-bottom: 0; }
.dd-cmp-more h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.dd-logo--initials { border: 1px solid #e4e4e8; color: #52525b; }
@media (max-width: 760px) {
    .dd .dd-cmp .dd-comparison { grid-template-columns: minmax(0, 1fr); }
    .dd-cmp-selects { width: 100%; }
    .dd .dd-cmp-selects label { flex: 1; }
    .dd .dd-cmp-selects select { min-width: 0; }
}
@media (max-width: 760px) { .dd.dd-lab.dd-cmp { padding-top: 3.25rem; } }

/* ── Bac à sable « Essayer », liens de section (2026-11-26) ─────────────────────────────── */
.dd-code figcaption .dd-run-btn { margin-left: auto; padding: .25rem .6rem; border-radius: 6px; background: #f4f4f5; color: #17171b; font-weight: 600; }
.dd-code figcaption .dd-run-btn:hover { background: #fff; }
.dd-code figcaption .dd-run-btn ~ button:first-of-type { margin-left: 0; }
.dd-run { margin: -.6rem 0 1.2rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; overflow: hidden; background: #fff; }
.dd-run textarea { display: block; width: 100%; padding: .8rem 1rem; border: 0; border-bottom: 1px solid var(--line); resize: vertical; font: .84rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ink); background: #fafafa; tab-size: 2; }
.dd-run textarea:focus-visible { outline: 2px solid #72727e; outline-offset: -2px; }
.dd-run-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem .8rem; border-bottom: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.dd-run-bar button { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: .78rem; color: var(--ink); }
.dd-run-bar .dd-run-go { background: var(--ink); border-color: var(--ink); color: #fff; }
.dd-run-bar span { margin-left: auto; }
.dd-run-out { margin: 0; min-height: 3rem; max-height: 16rem; overflow: auto; padding: .7rem 1rem; background: #17171b; color: #e4e4ea; font: .8rem/1.6 ui-monospace, monospace; white-space: pre-wrap; }
.dd-run-out:empty::before { content: "Sortie de la console…"; color: #8f8f9c; }
.dd-run-error { color: #fca5a5; }
.dd-run-warn { color: #fcd34d; }
.dd-run-info { color: #8f8f9c; }
.dd-anchor { margin-left: .45rem; padding: 0 .3rem; border-radius: 5px; color: #a1a1aa; font-size: .75em; font-weight: 500; opacity: 0; transition: opacity .15s, color .15s; vertical-align: .08em; }
.dd-article h2:hover .dd-anchor, .dd-anchor:focus-visible { opacity: 1; }
.dd-anchor:hover { color: var(--ink); }
.dd-anchor[data-done]::after { content: " lien copié"; font-size: .7em; }
@media (hover: none) { .dd-anchor { opacity: .6; } }

/* ── Thème sombre de lecture (préférence « Thème de lecture ») ─────────────────────────── */
.dd[data-theme=dark] { --ink: #ececef; --muted: #a1a1aa; --line: #2e2e35; --paper: #121215; --soft: #1b1b20; background: #121215; color: var(--ink); color-scheme: dark; }
.dd[data-theme=dark] :is(.dd-readerbar, .dd-mobilebar) { background: #121215; }
@media (min-width: 761px) { .dd[data-theme=dark] .dd-columns { background: linear-gradient(90deg, #17171b 0 var(--rail), var(--line) var(--rail) calc(var(--rail) + 1px), transparent calc(var(--rail) + 1px)); } }
.dd[data-theme=dark] :is(.dd-tools button, .dd-bar-search, .dd-mobilebar button, .dd-tree-tech, .dd-tree .dd-scope, .dd-article-meta button, .dd-uses li, .dd-mini, .dd-prevnext a, .dd-flow li, .dd-guide, .dd-card, .dd-domains a, .dd-cmp-notions a, .dd-cmp-swap, .dd-run, .dd-run-bar button, .dd-toolbar button, .dd-filters button) { background: #1b1b20; border-color: var(--line); color: var(--ink); }
.dd[data-theme=dark] :is(select, .dd-feedback input, .dd-feedback textarea, .dd-run textarea) { background-color: #1b1b20; border-color: var(--line); color: var(--ink); }
.dd[data-theme=dark] .dd-tree-link { color: #c4c4cc; }
.dd[data-theme=dark] :is(.dd-tree-link:hover, .dd-tree summary:hover, .dd-tree [data-local] li button:hover) { background: #232329; }
.dd[data-theme=dark] .dd-tree .dd-tree-link[aria-current=page] { background: #232329; box-shadow: inset 2px 0 0 var(--ink), 0 0 0 1px var(--line); }
.dd[data-theme=dark] .dd-tree-tech[aria-current] { border-color: #6b6b75; background: #1b1b20; }
.dd[data-theme=dark] :is(.dd-lead, .dd-concepts dd, .dd-cmp-intro) { color: #c4c4cc; }
.dd[data-theme=dark] .dd-article :not(pre) > code { background: #232329; border-color: #34343c; color: #e4e4ea; }
.dd[data-theme=dark] :is(.dd-note, .dd-table th) { background: #1b1b20; }
.dd[data-theme=dark] .dd-note { border-left-color: #a1a1aa; }
.dd[data-theme=dark] :is(.dd-figure, .dd-cmp-panel, .dd-facts) { background: #17171b; border-color: var(--line); }
.dd[data-theme=dark] .dd-figure svg { color: var(--ink); }
.dd[data-theme=dark] .dd-figure svg :is(.box, .box-dim) { fill: #1b1b20; stroke: #4a4a53; }
.dd[data-theme=dark] .dd-figure svg .box-soft { fill: #26262c; stroke: #3a3a42; }
.dd[data-theme=dark] .dd-figure svg .box-ink { fill: #ececef; stroke: #ececef; }
.dd[data-theme=dark] .dd-figure svg .t-inv { fill: #121215; }
.dd[data-theme=dark] .dd-figure svg :is(.stroke-ink) { stroke: #ececef; }
.dd[data-theme=dark] .dd-figure svg [fill="#171719"] { fill: #ececef; }
.dd[data-theme=dark] .dd-figure svg [fill="#fff"], .dd[data-theme=dark] .dd-figure svg [fill="#fcfcfd"] { fill: #1b1b20; }
.dd[data-theme=dark] .dd-flow li:first-child { background: #ececef; color: #121215; border-color: #ececef; }
.dd[data-theme=dark] :is(.dd-demo-bar) { background: #1b1b20; }
.dd[data-theme=dark] .dd-demo-bar button { background: #121215; color: var(--ink); border-color: var(--line); }
.dd[data-theme=dark] .dd-demo-box { background-color: #17171b; }
.dd[data-theme=dark] .dd-demo-box span { background: #ececef; color: #121215; }
.dd[data-theme=dark] :is(.dd-tree-local, .dd-tree-nav) { border-color: var(--line); }
.dd[data-theme=dark] .dd-logo { background: #26262c; }
.dd[data-theme=dark] .dd-logo img { background: #f4f4f5; border-radius: inherit; }
.dd[data-theme=dark] dialog { background: #17171b; color: var(--ink); border-color: var(--line); }
.dd[data-theme=dark] .dd-palette footer { background: #121215; }
.dd[data-theme=dark] .dd-palette [role=option][aria-selected=true] { background: #232329; box-shadow: inset 2px 0 0 var(--ink); }
.dd[data-theme=dark] :is(.dd-opt-mono, .dd-palette-scope, .dd-palette-head kbd, .dd-palette footer kbd) { background: #232329; border-color: #34343c; color: #c4c4cc; }
.dd[data-theme=dark] [aria-selected=true] > .dd-opt-mono { background: #ececef; color: #121215; }
.dd[data-theme=dark] .dd-palette mark { background: #3b3760; }
.dd[data-theme=dark] [aria-pressed=true]:is([data-view],[data-favorite]), .dd[data-theme=dark] :is(.dd-domains a[aria-current], .dd-cmp-notions a[aria-current], .dd-filters button, .dd-run-bar .dd-run-go) { background: #ececef; color: #121215; border-color: #ececef; }
.dd[data-theme=dark] .dd-card:hover { background: #202026; }
.dd[data-theme=dark] .dd-hero { border-bottom-color: var(--line); }

/* ── Mission motion, lot 5 (2026-11-28) : réponses visibles pendant la recherche et le filtrage ──
   Résultats de la palette et du catalogue estompés pendant la requête (aria-busy, posé par desk.js),
   après 80 ms seulement : une réponse rapide ne fait rien clignoter. Appui visible sur les boutons
   d'outils (tactile compris), retour immédiat. */
.dd #dd-results, .dd [data-catalog-results] { transition: opacity .16s cubic-bezier(.22,1,.36,1); }
.dd #dd-results[aria-busy=true], .dd [data-catalog-results][aria-busy=true] { opacity: .6; transition-delay: 80ms; }
.dd :is(.dd-tools button, .dd-toolbar button, .dd-filters button, .dd-palette > button, .dd-launch, [data-view], [data-favorite]):active { scale: .96; }
@media (prefers-reduced-motion: reduce) {
    .dd :is(.dd-tools button, .dd-toolbar button, .dd-filters button, .dd-palette > button, .dd-launch, [data-view], [data-favorite]):active { scale: none; }
}
