/* Public theme: quiet surfaces, the original frog and a fresh green accent. */
:root {
    --page: #090f10;
    --surface: #11191b;
    --line: #263134;
    --text: #eef2ee;
    --muted: #b0bcb8;
    --green: #93d45c;
}
body { background: var(--page); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: var(--green); }
a:hover { color: #b6ec88; }
a, button { transition: background-color .18s, color .18s, border-color .18s; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
body > header { display: flex; align-items: center; justify-content: center; min-height: 78px; padding: 12px 6%; background: #0c1314; border-bottom: 1px solid var(--line); overflow: visible; }
body > header h1 { position: static; margin: 0; padding: 0; font-size: 18px; letter-spacing: .06em; }
body > header > a:has(#logo) { order: -1; margin-right: 14px; }
body > header #logo { position: static; width: 52px; max-width: 52px; margin: 0; animation: none; }
body > header .binary { display: none; }
.search-icon-link { position: absolute; top: 30px; right: 6%; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; }
.search-icon { width: 22px; height: 22px; }
nav#menu { position: sticky; top: 0; width: auto; padding: 8px 24px; background: #0c1314; box-shadow: none; border-bottom: 1px solid var(--line); }
nav div.menu > ul > li { position: relative; margin: 0; padding: 4px; }
nav div.menu > ul > li > a { display: block; padding: 8px 14px; background: transparent; font-size: 14px; border-radius: 6px; }
nav div.menu > ul > li > a.active, nav div.menu > ul > li > a:hover { color: var(--green); background: #1b2920; }
nav div.menu ul ul { min-width: 200px; background: var(--surface); border: 1px solid var(--line); }
nav div.menu ul li:hover > ul, nav div.menu ul li:focus-within > ul { display: block; margin-top: 0; }
nav div.menu ul ul li { display: block; margin: 8px; }
nav div.menu ul ul li a, nav div.menu ul li:hover > ul li a { display: block; padding: 6px 10px; background: transparent; color: var(--text); }
main { max-width: 1180px; width: calc(100% - 64px); min-height: 60vh; margin: 0 auto; }
.main-content { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 32px; align-items: start; }
.content-section { min-width: 0; padding: 0; }
.sidebar { width: auto; margin: 70px 0 0; padding: 0; }
.sidebar .content { background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; padding: 24px; margin-bottom: 20px; letter-spacing: 0; transform: none; }
.sidebar h2 { margin-top: 0; color: var(--text); font-size: 19px; letter-spacing: -.02em; }
.sidebar h3 { color: var(--text); font-size: 16px; }
.sidebar ul li a { color: var(--green); }
.sidebar ul li a:hover { color: #b6ec88; }
div.ariane { max-width: 100%; padding: 18px 0; color: var(--muted); font-size: 13px; box-shadow: none; }
article.article-container { box-sizing: border-box; max-width: 100%; padding: 26px; margin-bottom: 22px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; text-align: left; letter-spacing: 0; line-height: 1.8; opacity: 1; transform: none; }
article.article-container h1, article.article-container h2 { padding-left: 0; font-family: inherit; color: var(--text); text-transform: none; letter-spacing: -.025em; line-height: 1.3; }
article.article-container h1 { font-size: 25px; }
article.article-container p, article.article-container .date { color: var(--muted); }
article.article-container .date { font-size: 12px; font-style: normal; }
article.article-container img.header { height: 230px; object-fit: cover; }
article.article-container a:not(.partage) { text-underline-offset: 4px; }
article.article-container .content { padding-top: 16px; overflow-wrap: anywhere; }
article.article-container pre { overflow-x: auto; }
button.share, button.open { background: #1b2920; border: 1px solid #3c5338; border-radius: 6px; }
button.share .label, button.open .label { color: var(--green); font-weight: 500; letter-spacing: 0; }
button.share:hover, button.open:hover { transform: none; background: #283b25; }
.btn { padding: 0; margin-top: 20px; }
.btn div { padding: 10px 18px; border-radius: 6px; background: var(--green); color: #10180b; letter-spacing: 0; }
.btn::before { display: none; }
.btn:hover { transform: none; }
.pagination { gap: 8px; margin-top: 30px; }
.pagination a { border-color: var(--line); margin: 0; border-radius: 6px; }
.pagination a.active { background: var(--green); color: #10180b; }
body > footer { margin-top: 70px; padding: 35px 24px; min-height: auto; background: #0c1314; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.category { max-width: 100%; padding: 20px 24px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.category:last-child { border-bottom: 1px solid var(--line); }
.related-article-item { background: #172123; box-shadow: none; }
.welcome { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; padding: 60px 0 48px; margin-top: 0; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .15em; color: var(--green); }
.welcome h2 { font-size: clamp(36px, 4.5vw, 58px); line-height: 1.12; letter-spacing: -.045em; margin: 20px 0; }
.welcome h2 span { color: var(--green); }
.welcome-copy > p:not(.eyebrow) { color: var(--muted); max-width: 500px; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-link, .secondary-link { display: inline-flex; align-items: center; gap: 18px; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 600; border: 1px solid #53604e; }
.primary-link { background: var(--green); border-color: var(--green); color: #10180b; }
.primary-link:hover { background: #b6ec88; color: #10180b; }
.secondary-link { color: var(--text); }
.welcome-values { margin-top: 28px; font-size: 12px; }
.welcome-values span { color: var(--green); margin: 0 12px; }
.welcome-art { display: grid; place-items: center; min-height: 310px; background: radial-gradient(ellipse, #28472688, transparent 68%); }
.welcome-art img { width: 230px; max-height: 290px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 18px 35px #0008); }
.edito { border: 0; border-bottom: 1px solid var(--line); padding: 12px 0 24px; max-height: none; }
.edito .ariane { display: none; }
.edito .article-container { max-width: 100%; padding: 0; text-align: left; letter-spacing: 0; line-height: 1.7; }
.edito .title { font-family: inherit; text-transform: none; color: var(--text); letter-spacing: -.02em; font-size: 20px; }
.edito .content { text-shadow: none; color: var(--muted); font-weight: 400; }
.edito.collapsed { max-height: 40px; }
.toggle-button { background: var(--surface); border-color: var(--line); box-shadow: none; top: 22px; }
.section-title { font-size: 23px; letter-spacing: -.025em; margin: 24px 0; }
.section-title::after { content: ''; display: block; width: 42px; height: 2px; background: var(--green); margin-top: 12px; }
@media (min-width: 1101px) { nav div.menu { display: block !important; } }
@media (max-width: 1100px) {
    body > header { min-height: 58px; }
    body > header h1 { font-size: 15px; }
    body > header #logo { width: 40px; }
    .toggle-btn-menu { position: absolute; top: 22px; left: 20px; width: 32px; font-size: 24px; }
    .search-icon-link { top: 22px; right: 20px; width: 34px; height: 34px; }
    nav#menu { padding: 0; }
    nav div.menu { background: #0c1314; margin: 0; }
    nav div.menu > ul > li { display: block; background: transparent; text-align: left; padding: 4px 16px; }
    nav div.menu > ul > li > a { box-sizing: border-box; }
    nav div.menu ul ul { position: static; border: 0; margin-left: 12px; }
    nav div.menu ul li > ul li { display: block; }
    .main-content { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
}
@media (max-width: 760px) {
    main { width: calc(100% - 36px); }
    .main-content { grid-template-columns: minmax(0, 1fr); }
    .sidebar { margin-top: 10px; }
    .welcome { grid-template-columns: 1fr; gap: 0; padding: 32px 0 24px; }
    .welcome-art { display: none; }
    .welcome h2 { font-size: 42px; }
    section { padding-left: 0; padding-right: 0; }
    article.article-container { padding: 18px; }
    article.article-container h1 { font-size: 22px; }
    article.article-container img.header { height: 180px; }
    .related-articles-list { flex-direction: column; }
    .related-article-item, .related-article-item:hover { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Shared secondary views and reading tools. */
.container, .login-container, .site, .wrapper > .content { box-sizing: border-box; background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; transform: none; }
.site-name, .wrapper > .content h1, .wrapper > .content h2 { color: var(--text); font-family: inherit; text-transform: none; letter-spacing: -.02em; }
.site { text-align: left; }
input:not([type=checkbox]):not([type=radio]), textarea, select { box-sizing: border-box; max-width: 100%; background: #0c1314; color: var(--text); border: 1px solid #46534e; border-radius: 6px; padding: 10px 12px; font: inherit; }
input::placeholder, textarea::placeholder { color: var(--muted); }
body:has(.login-container) { padding-top: 0; }
.login-container { margin-top: 40px; padding: 28px; }
.wrapper > .content { min-width: 0; overflow-wrap: anywhere; }
.wrapper > .content pre { overflow-x: auto; }
.wrapper > .content .file { box-sizing: border-box; background: #0c1314; border-color: var(--line); }
body:has(.sidebartuto) .toggle-btn { display: block; top: auto; bottom: 20px; left: 16px; margin: 0; font-size: 22px; background: #1b2920; border: 1px solid var(--green); border-radius: 8px; }
.sidebartuto ul { top: auto; bottom: 75px; max-height: 65vh; max-width: calc(100vw - 60px); overflow-y: auto; margin: 0; background: var(--surface); border: 1px solid var(--line); }
#derniers-articles { scroll-margin-top: 90px; }
@media (min-width: 761px) {
    .articles-page article.article-container { display: grid; grid-template-columns: 32% minmax(0, 1fr); gap: 22px; padding: 14px; }
    .articles-page article.article-container img.header { height: 100%; min-height: 200px; max-height: 300px; object-fit: cover; }
    .articles-page article.article-container > .content { padding: 0; }
    .articles-page article.article-container h1 { font-size: 22px; clear: both; padding-top: 14px; margin-top: 0; }
    .articles-page article.article-container:has(.expanded) { grid-template-columns: minmax(0, 1fr); }
}
.welcome-copy, .welcome-art { min-width: 0; }
@media (max-width: 760px) {
    body > header { box-sizing: border-box; padding-left: 56px; padding-right: 60px; min-height: 82px; }
    body > header h1 { font-size: 13px; letter-spacing: .025em; }
    body > header > a:has(#logo) { margin-right: 8px; }
    .welcome h2 { font-size: clamp(32px, 10vw, 42px); }
    .welcome-copy > p { overflow-wrap: anywhere; }
    .wrapper > .content { box-sizing: border-box; width: 100%; margin-left: 0; padding: 18px; }
}
