/* New article layout: same navy/blue palette and restrained borders as menu pages. */
:root{color-scheme:dark;--bg:#010B19;--text:#e0e0e0;--muted:#a7b1c2;--line:#1c2a40;--blue:#6fa8ff;--accent:#4A6FA5}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.75 system-ui,-apple-system,"Segoe UI",sans-serif}
a{color:var(--blue);text-underline-offset:.18em}a:hover{color:#b7d3ff}.site-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem clamp(1rem,4vw,2.5rem);border-bottom:1px solid var(--line)}
.brand{color:var(--text);font-weight:700;letter-spacing:.1em;text-decoration:none}.site-header nav{display:flex;flex-wrap:wrap;gap:clamp(.65rem,2vw,1.25rem)}.site-header nav a{color:var(--text);text-decoration:none}.site-header nav a:hover{color:var(--blue)}
main{width:min(100% - 2rem,850px);margin:clamp(2rem,7vw,5rem) auto}article{min-width:0}.article-header{text-align:center;padding-bottom:2rem;border-bottom:1px solid var(--line);margin-bottom:2rem}.eyebrow{color:var(--blue);font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;margin:0 0 .8rem}.article-header h1{font-size:clamp(2rem,6vw,3.5rem);line-height:1.15;letter-spacing:-.035em;margin:0 auto;max-width:18ch;color:var(--text)}.meta{color:var(--muted);font-size:.9rem;margin:.9rem 0}.dek{max-width:62ch;margin:1rem auto 0;color:#c4ccda;font-size:1.08rem}.article-content{overflow-wrap:anywhere}.article-content h2,.article-content h3,.article-content h4{line-height:1.3;margin:2.4rem 0 .8rem;color:var(--blue)}.article-content h2{font-size:1.55rem}.article-content h3{font-size:1.22rem}.article-content p{margin:0 0 1.15rem}.article-content ul,.article-content ol{padding-left:1.5rem;margin:0 0 1.25rem}.article-content li{padding-left:.2rem;margin:.3rem 0}.article-content blockquote{margin:1.5rem 0;padding:.75rem 1rem;border-left:3px solid var(--blue);background:#071427;color:#d2dbea}.article-content figure{margin:1.8rem 0}.article-content figure img,.article-content>img{display:block;max-width:100%;height:auto;margin:0 auto;border:1px solid var(--line)}.article-content figcaption,.article-content .image-caption{color:var(--muted);font-size:.88rem;text-align:center;margin:.6rem auto 0;max-width:65ch}.article-content pre{overflow:auto;padding:1rem;border:1px solid var(--line);background:#071427;line-height:1.55}.article-content code{font: .9em/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}.article-content :not(pre)>code{padding:.12em .35em;border:1px solid var(--line);background:#071427}.article-content table{border-collapse:collapse;width:100%;margin:1.4rem 0;display:block;overflow-x:auto}.article-content th,.article-content td{border:1px solid var(--line);padding:.55rem .75rem;text-align:left}.article-content th{color:var(--blue);background:#071427}.callout{margin:1.5rem 0;padding:1rem 1.1rem;border:1px solid var(--line);border-left:3px solid var(--blue);background:#071427}.callout>*:last-child{margin-bottom:0}.callout-title{margin:0 0 .35rem;color:var(--blue);font-weight:700}.callout.warning{border-left-color:#e4b455}.callout.tip{border-left-color:#72c89b}.article-content iframe{display:block;width:min(100%,720px);aspect-ratio:16/9;height:auto;margin:1.5rem auto;border:1px solid var(--line)}.footnotes{border-top:1px solid var(--line);margin-top:2.5rem;padding-top:1rem;font-size:.9rem;color:var(--muted)}.footnotes ol{margin-bottom:0}.article-back{margin-top:3rem;padding-top:1rem;border-top:1px solid var(--line)}footer{border-top:1px solid var(--line);padding:1.5rem;text-align:center;color:var(--muted);font-size:.9rem}
@media(max-width:600px){.site-header{align-items:flex-start;flex-direction:column}.site-header nav{gap:.9rem;font-size:.92rem}main{width:min(100% - 1.5rem,850px)}.article-header{padding-bottom:1.5rem}}
.article-content h1{font-size:clamp(1.7rem,4vw,2.3rem);line-height:1.25;color:var(--blue)}
.article-content hr{border:0;border-top:1px solid var(--line);margin:2rem 0}
.footnote-ref{font-size:.75em;vertical-align:super}

/* Barre de navigation : mêmes règles et structure que articles.html/index.html. */
header:not(.article-header){display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:1px solid #1c2a40}
.header-group{display:flex;gap:1rem;align-items:center}
.back{border:1px solid #6fa8ff;padding:.3rem .6rem;color:#6fa8ff;text-decoration:none}
.title{font-weight:700;letter-spacing:.1em}
.title a{color:inherit;text-decoration:none}
nav{display:flex;gap:1rem}
nav a{margin-left:1rem;color:#e0e0e0;text-decoration:none}
nav a:hover{color:#6fa8ff}
header button{display:none;background:none;border:0;color:#e0e0e0;font-size:1.5rem;cursor:pointer}
.article-tags{margin:.4rem 0 0;color:var(--muted);font-size:.88rem}
.article-content figure img,.article-content>img{width:auto;max-width:min(100%,460px);max-height:360px;object-fit:contain}
@media(max-width:700px){
  header:not(.article-header){position:relative;align-items:center}
  header button{display:block}
  header nav{display:none;flex-direction:column;position:absolute;z-index:10;top:60px;right:10px;background:#010B19;border:1px solid #1c2a40;padding:1rem;gap:0}
  header nav.active{display:flex}
  header nav a{margin:.5rem 0}
}
@media(min-width:701px){header nav a{margin-left:0}}

/* Breadcrumb title: constrain the flex chain and inherit the article body font. */
header:not(.article-header) > .header-group{min-width:0;max-width:100%;flex:1 1 0%}
header:not(.article-header) > .header-group > .title{display:flex;align-items:center;flex:1 1 auto;min-width:0;max-width:100%;font-family:inherit;white-space:nowrap}
header:not(.article-header) > .header-group > .title > a{font-family:inherit;flex:0 0 auto}
header:not(.article-header) > .header-group > .title > .breadcrumb-window{display:block;flex:1 1 0%;min-width:0;max-width:min(42vw,32rem);overflow:hidden;vertical-align:bottom;white-space:nowrap}
header:not(.article-header) > .header-group > .title > .breadcrumb-window > #breadcrumb-title{display:block;flex:1 1 auto;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap;font-family:inherit !important}

/* Legacy article metadata and category style, adapted to the Markdown template. */
.article-meta-row{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-bottom:1rem;opacity:.8;font-size:.85rem;flex-wrap:wrap}
.article-meta-row .eyebrow{margin:0}
#article-label{display:inline-flex;align-items:center;gap:.4rem;height:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--accent);font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0;backdrop-filter:none}
#article-label:empty{display:none}
.article-meta-row .meta{margin:0}.article-footer{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid rgba(74,111,165,.3);text-align:center;font-size:.9rem}
.article-footer .article-meta{display:flex;justify-content:center;align-items:center;gap:.5rem;margin-bottom:1rem;opacity:.8;font-size:.85rem;flex-wrap:wrap}
.article-content a{color:var(--accent);text-decoration:none;border-bottom:1px dotted var(--accent);transition:all .4s cubic-bezier(.23,1,.32,1)}
.article-content a:hover{opacity:.8;border-bottom-style:solid}.article-nav{display:flex;flex-direction:column;gap:.8rem;margin-top:1.2rem}.article-nav a{display:block;color:var(--blue);text-decoration:none;padding:.6rem;border-radius:6px;transition:background .2s;border:1px solid rgba(74,111,165,.3);font-size:.9rem}.article-nav a:hover{background:rgba(74,111,165,.2)}
footer:not(.article-footer){border-top:1px solid rgba(74,111,165,.2);padding:1.2rem;text-align:center;color:var(--muted);font-size:.85rem}footer:not(.article-footer) p{margin:.5rem auto;max-width:75ch}footer:not(.article-footer) a{color:var(--blue)}footer:not(.article-footer) img{vertical-align:middle}footer:not(.article-footer) button{display:block;margin:.8rem auto 0;background:transparent;border:1px solid var(--blue);color:var(--blue);padding:.35rem .7rem;cursor:pointer}
@media(min-width:650px){.article-nav{flex-direction:row}.article-nav a{flex:1}}
