/*
Theme Name: GbsDarkTarget
Theme URI: https://gbsdarktarget.duckdns.org/
Author: GbsDarkTarget
Description: Thème sombre et éditorial pour GbsDarkTarget, ses projets, ses actualités et son wiki.
Version: 1.7.1
Text Domain: gbsdarktarget
*/

:root {
  --gbs-bg: #090b0f;
  --gbs-panel: #12161d;
  --gbs-panel-2: #181e27;
  --gbs-line: #28313e;
  --gbs-text: #f5f7fa;
  --gbs-muted: #94a0af;
  --gbs-red: #ff3347;
  --gbs-red-dark: #b90923;
  --gbs-green: #37d890;
  --gbs-amber: #ffb14a;
  --gbs-blue: #62b5ff;
  --gbs-shadow: 0 18px 50px #0007;
  --gbs-radius: 20px;
  --gbs-shell: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--gbs-bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--gbs-text);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(80% 38% at 50% -8%, #70203066, transparent),
    radial-gradient(55% 32% at 100% 34%, #15304e38, transparent),
    var(--gbs-bg);
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; display: block; width: auto; height: auto; top: 8px; left: 8px; padding: 12px; color: #111; background: white; clip: auto; }
.gbs-shell { width: min(var(--gbs-shell), 100%); margin-inline: auto; padding-inline: 20px; }

.site-header { position: sticky; top: 0; z-index: 40; background: #090b0fea; border-bottom: 1px solid #ffffff12; backdrop-filter: blur(18px); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { position: relative; display: inline-flex; align-items: center; flex: 0 1 285px; overflow: hidden; color: white; border-radius: 12px; text-decoration: none; }
.site-brand::after { content: ""; position: absolute; inset: -35% auto -35% -32%; width: 18%; pointer-events: none; background: linear-gradient(90deg, transparent, #ffffff55, transparent); mix-blend-mode: screen; transform: skewX(-18deg); animation: gbs-logo-shine 5.8s ease-in-out infinite; }
@keyframes gbs-logo-shine { 0%, 72% { left: -32%; opacity: 0; } 76% { opacity: .8; } 92% { left: 116%; opacity: .5; } 100% { left: 116%; opacity: 0; } }
.brand-mark { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ff334766; border-radius: 12px; background: linear-gradient(150deg, #32151c, #12161d); box-shadow: 0 0 28px #ff33472e; }
.brand-mark::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--gbs-red); border-radius: 50%; box-shadow: inset 0 0 0 3px #11151b, 0 0 12px #ff334777; }
.brand-mark::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: white; }
.custom-logo-link { display: block; flex: 0 0 auto; }
.custom-logo { width: min(285px, 32vw); height: 56px; object-fit: contain; object-position: left center; filter: drop-shadow(0 0 10px #ff33472b); }
.brand-name em { color: var(--gbs-red); font-style: normal; }
.site-nav ul { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 9px 12px; color: var(--gbs-muted); border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-size: .88rem; font-weight: 800; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: white; background: #ffffff0b; border-color: #ffffff18; }
.nav-toggle { display: none; min-width: 44px; min-height: 44px; color: white; border: 1px solid var(--gbs-line); border-radius: 12px; background: var(--gbs-panel); cursor: pointer; }

.site-main { min-height: 64vh; padding-block: 54px 92px; }
.eyebrow { margin: 0 0 10px; color: var(--gbs-red); font-size: .75rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { color: white; line-height: 1.08; text-wrap: balance; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; align-items: end; padding: 34px 0 42px; }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(3.1rem, 8vw, 6.6rem); letter-spacing: -.065em; }
.hero h1 span { color: var(--gbs-red); }
.hero-copy { max-width: 720px; margin: 24px 0 0; color: #c3cad3; font-size: 1.1rem; }
.target-panel { display: grid; gap: 7px; padding: 24px; border: 1px solid #ff334750; border-radius: 22px; background: linear-gradient(150deg, #29131a, var(--gbs-panel)); box-shadow: var(--gbs-shadow); }
.target-panel small { color: var(--gbs-red); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.target-panel strong { font-size: 1.55rem; line-height: 1.15; }
.target-panel p { margin: 6px 0 0; color: var(--gbs-muted); font-size: .9rem; }
.status-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--gbs-green); font-size: .84rem; font-weight: 800; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gbs-green); box-shadow: 0 0 14px var(--gbs-green); }

.section { margin-top: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-head h2, .page-intro h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.04em; }
.section-link { color: var(--gbs-muted); text-decoration: none; font-size: .9rem; font-weight: 800; }
.section-link:hover { color: var(--gbs-red); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.gbs-card { position: relative; overflow: hidden; padding: 22px; border: 1px solid var(--gbs-line); border-radius: var(--gbs-radius); background: linear-gradient(155deg, var(--gbs-panel-2), var(--gbs-panel)); box-shadow: var(--gbs-shadow); }
.gbs-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(transparent, var(--gbs-red), transparent); opacity: .5; }
.gbs-card h3 { margin: 6px 0 11px; font-size: 1.3rem; }
.gbs-card h3 a { text-decoration: none; }
.gbs-card h3 a:hover { color: var(--gbs-red); }
.gbs-card p { margin: 0; color: #c5ccd5; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 13px; color: var(--gbs-muted); font-size: .78rem; font-weight: 750; }
.card-meta .tag { color: var(--gbs-red); }
.project-card { min-height: 250px; display: flex; flex-direction: column; }
.project-card h3 { font-size: clamp(1.65rem, 4vw, 2.5rem); letter-spacing: -.04em; }
.project-card p { max-width: 560px; }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: auto; padding-top: 24px; }
.text-action { color: var(--gbs-muted); text-decoration: none; font-size: .88rem; font-weight: 850; }
.text-action:hover { color: var(--gbs-red); }
.empty-card { grid-column: 1 / -1; color: var(--gbs-muted); }

.quick-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; overflow: hidden; margin-top: 8px; border: 1px solid var(--gbs-line); border-radius: 18px; background: var(--gbs-line); }
.quick-item { padding: 20px; background: #0d1117; }
.quick-item span { display: block; color: var(--gbs-muted); font-size: .78rem; }
.quick-item strong { display: block; margin-top: 4px; color: white; }
.quick-item-copy p { margin: 8px 0 0; color: var(--gbs-muted); font-size: .88rem; }
.wiki-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 22px 24px; border: 1px solid #62b5ff44; border-radius: 18px; background: linear-gradient(135deg, #102235, #11161d); }
.wiki-callout h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.wiki-callout p:last-child { margin: 8px 0 0; color: var(--gbs-muted); }

.page-intro { max-width: 800px; margin-bottom: 34px; }
.project-brand-logo { width: min(720px, 100%); margin: 0 0 24px; padding: 18px 22px; border: 1px solid #ff334733; border-radius: 18px; background: linear-gradient(145deg, #10141b, #090b0f); box-shadow: var(--gbs-shadow); }
.project-brand-logo img { width: 100%; max-height: 260px; object-fit: contain; filter: drop-shadow(0 10px 28px #ff334727); }
.page-intro p { color: #c3cad3; font-size: 1.05rem; }
.content-card { padding: clamp(20px, 4vw, 40px); border: 1px solid var(--gbs-line); border-radius: var(--gbs-radius); background: linear-gradient(155deg, var(--gbs-panel-2), var(--gbs-panel)); box-shadow: var(--gbs-shadow); }
.entry-content > * { max-width: 760px; }
.entry-content > .alignwide { max-width: 1040px; }
.entry-content > .alignfull { max-width: none; }
.guide-page-shell { max-width: 920px; }
.entry-content > .gbs-guide { width: 100%; max-width: none; }
.entry-content h2 { margin-top: 1.8em; font-size: 2rem; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content p, .entry-content li { color: #c8ced6; }
.entry-content a { color: var(--gbs-red); text-underline-offset: 3px; }
.entry-content code { padding: .14em .38em; color: #e7edf3; border-radius: 5px; background: #07090d; }
.entry-content pre { overflow: auto; padding: 18px; color: #dce4ec; border: 1px solid #303948; border-radius: 14px; background: #06080b; }
.entry-content blockquote { margin-inline: 0; padding: 14px 18px; border-left: 3px solid var(--gbs-red); background: #ff33470d; }
.future-block { margin-top: 28px; padding: 18px 20px; color: #cbd2dc; border: 1px dashed #ff334766; border-radius: 15px; background: #ff33470d; }
.future-block strong { display: block; margin-bottom: 5px; color: var(--gbs-red); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }

.dtg-intro { padding: clamp(22px, 5vw, 48px); border: 1px solid #ff334744; border-radius: 24px; background: radial-gradient(circle at 90% 0, #ff334720, transparent 36%), linear-gradient(145deg, #181118, #0d1117 60%); }
.dtg-intro h2, .dtg-purpose h2, .dtg-why h2 { max-width: 820px; margin: 0; font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -.045em; }
.dtg-intro > p:not(.eyebrow) { max-width: 760px; margin: 18px 0 0; color: #d3d8df; font-size: 1.08rem; }
.dtg-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.dtg-pills span { padding: 7px 11px; color: #f4c7cb; border: 1px solid #ff33473d; border-radius: 999px; background: #ff334710; font-size: .78rem; font-weight: 850; }
.dtg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dtg-showcase { overflow: hidden; margin: 30px 0; border: 1px solid #ffffff17; border-radius: 22px; background: #080a0e; box-shadow: 0 24px 60px #0009; }
.dtg-showcase img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dtg-showcase figcaption { padding: 12px 16px; color: var(--gbs-muted); border-top: 1px solid #ffffff12; font-size: .82rem; }
.dtg-purpose { display: grid; grid-template-columns: minmax(0, .8fr) minmax(280px, 1fr); gap: 34px; align-items: end; margin-block: 54px 24px; }
.dtg-purpose p:last-child { margin: 0; color: #cbd2db; font-size: 1.06rem; }
.dtg-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-block: 24px 34px; }
.dtg-flow article, .dtg-feature { position: relative; overflow: hidden; padding: 21px; border: 1px solid var(--gbs-line); border-radius: 18px; background: linear-gradient(150deg, #171d25, #0e1218); }
.dtg-flow article::after { content: ""; position: absolute; inset: auto -30px -50px auto; width: 120px; height: 120px; border-radius: 50%; background: #ff33470b; }
.dtg-flow span { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; color: white; border-radius: 11px; background: linear-gradient(180deg, var(--gbs-red), var(--gbs-red-dark)); font-size: .8rem; font-weight: 950; }
.dtg-flow h3, .dtg-feature h3 { margin: 0 0 9px; font-size: 1.12rem; }
.dtg-flow p, .dtg-feature p { margin: 0; color: var(--gbs-muted); font-size: .92rem; }
.dtg-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 34px; }
.dtg-feature { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.dtg-feature > span { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; color: var(--gbs-red); border: 1px solid #ff33473d; border-radius: 12px; background: #ff334711; font-size: 1.15rem; font-weight: 950; }
.dtg-why { margin-block: 54px 28px; padding: clamp(24px, 5vw, 46px); border-left: 3px solid var(--gbs-red); border-radius: 0 22px 22px 0; background: linear-gradient(100deg, #ff334712, transparent); }
.dtg-why p:last-child { max-width: 760px; margin: 18px 0 0; color: #cbd2db; font-size: 1.04rem; }

.dtg-demo-app { overflow: hidden; border: 1px solid #ff334733; border-radius: 24px; background: #080a0e; box-shadow: 0 28px 70px #000a; }
.dtg-demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid #ffffff12; background: linear-gradient(100deg, #151a22, #0b0e13); }
.dtg-demo-brand { color: white; font-size: 1.08rem; font-weight: 950; }
.dtg-demo-brand em { color: var(--gbs-red); font-style: normal; }
.dtg-demo-state { display: inline-flex; align-items: center; gap: 7px; color: var(--gbs-green); font-size: .78rem; font-weight: 850; }
.dtg-demo-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gbs-green); box-shadow: 0 0 12px var(--gbs-green); }
.dtg-demo-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: clamp(22px, 4vw, 38px); }
.dtg-demo-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.dtg-demo-head p:last-child { margin: 8px 0 0; color: var(--gbs-muted); }
.dtg-demo-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, minmax(180px, 1fr)); gap: 10px; padding: 0 clamp(14px, 3vw, 28px) clamp(14px, 3vw, 28px); }
.dtg-demo-photo { position: relative; overflow: hidden; min-height: 240px; border: 1px solid #ffffff14; border-radius: 16px; background: #11151b; }
.dtg-demo-photo:first-child { grid-row: 1 / 3; }
.dtg-demo-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.dtg-demo-photo:hover img { transform: scale(1.025); filter: brightness(1.08); }
.dtg-demo-photo span { position: absolute; inset: auto 10px 10px; width: max-content; max-width: calc(100% - 20px); padding: 7px 10px; color: white; border: 1px solid #ffffff1f; border-radius: 9px; background: #07090ccf; backdrop-filter: blur(7px); font-size: .78rem; font-weight: 850; }
.dtg-demo-note { margin: 24px 0 0; padding: 17px 19px; color: #cbd2db; border: 1px solid #62b5ff33; border-radius: 15px; background: #62b5ff0b; }
.dtg-demo-note strong { color: white; }

.dtg-photo-wall { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; min-height: 390px; margin-block: 42px 58px; padding: 40px clamp(12px, 5vw, 70px); }
.dtg-photo-wall::before { content: ""; position: absolute; inset: 48% 2% auto; height: 2px; background: linear-gradient(90deg, transparent, #d5aa6155 12%, #d5aa6188 88%, transparent); box-shadow: 0 3px 8px #000; }
.dtg-hanging-photo { position: relative; z-index: 1; margin: 0 -5%; padding: 9px 9px 34px; border-radius: 4px; background: #ede9df; box-shadow: 0 22px 42px #000b; transform: rotate(-5deg); transition: transform .3s ease, z-index 0s; }
.dtg-hanging-photo:nth-child(2) { z-index: 2; transform: translateY(26px) rotate(4deg); }
.dtg-hanging-photo:nth-child(3) { transform: rotate(-2deg); }
.dtg-hanging-photo::before { content: ""; position: absolute; z-index: 2; top: -19px; left: 50%; width: 42px; height: 28px; background: #caa66da8; box-shadow: 0 2px 5px #0004; transform: translateX(-50%) rotate(2deg); }
.dtg-hanging-photo:hover { z-index: 4; transform: translateY(-7px) rotate(0) scale(1.035); }
.dtg-hanging-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dtg-hanging-photo figcaption { position: absolute; inset: auto 10px 8px; color: #2d2722; text-align: center; font: 700 .78rem/1.2 Georgia, serif; }
.dtg-interface-shot { overflow: hidden; margin-block: 34px; border: 1px solid #ff334733; border-radius: 22px; background: #080a0e; box-shadow: 0 24px 60px #0009; }
.dtg-interface-shot img { display: block; width: 100%; height: auto; }
.dtg-interface-shot figcaption { padding: 12px 16px; color: var(--gbs-muted); border-top: 1px solid #ffffff12; font-size: .82rem; }

/* Bac à sable DarkTargetGallery */
.dgx-page { --dgx-red:#e32636; --dgx-red-dark:#981b27; --dgx-gold:#ffc857; --dgx-ink:#080a0e; --dgx-panel:#141820; --dgx-panel-2:#1c222d; --dgx-text:#f8fafc; --dgx-muted:#98a2b3; --dgx-line:#ffffff18; margin:0; min-height:100vh; color:var(--dgx-text); background:radial-gradient(circle at 12% 8%,#40131b88 0,transparent 28rem),radial-gradient(circle at 92% 30%,#172339 0,transparent 34rem),var(--dgx-ink); }
.dgx-page::before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.2; background-image:linear-gradient(#fff1 1px,transparent 1px),linear-gradient(90deg,#fff1 1px,transparent 1px); background-size:48px 48px; mask-image:linear-gradient(to bottom,#000,transparent 70%); }
.dgx-page.dgx-glass { --dgx-ink:#e9eef5; --dgx-panel:#ffffffcc; --dgx-panel-2:#f8fafccc; --dgx-text:#18202b; --dgx-muted:#596577; --dgx-line:#17203320; background:radial-gradient(circle at 15% 12%,#ff859455 0,transparent 28rem),linear-gradient(145deg,#eef4fa,#dce5ef); }
.dgx-header { position:sticky; top:0; z-index:30; display:flex; justify-content:space-between; align-items:center; gap:18px; padding:12px clamp(16px,5vw,70px); border-bottom:1px solid var(--dgx-line); background:color-mix(in srgb,var(--dgx-ink) 88%,transparent); backdrop-filter:blur(18px); }
.dgx-brand { display:flex; align-items:center; max-width:min(310px,48vw); padding:4px 9px; overflow:hidden; border:1px solid var(--dgx-line); border-radius:15px; background:#ffffff07; }
.dgx-brand img { display:block; width:100%; max-height:54px; object-fit:contain; filter:drop-shadow(0 7px 18px #0009); }
.dgx-nav { display:flex; align-items:center; gap:7px; }
.dgx-nav button, .dgx-button { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:9px 13px; color:var(--dgx-muted); border:1px solid var(--dgx-line); border-radius:999px; background:var(--dgx-panel); box-shadow:none; text-decoration:none; font:900 .73rem/1 inherit; letter-spacing:.05em; text-transform:uppercase; cursor:pointer; }
.dgx-nav button:hover, .dgx-nav button.is-active { color:var(--dgx-text); border-color:#e3263670; }
.dgx-page.dgx-admin-mode [data-admin-only] { display:inline-flex; }
[data-admin-only] { display:none; }
.dgx-main { position:relative; z-index:1; width:min(1280px,100%); min-height:70vh; margin:auto; padding:clamp(28px,6vw,70px) clamp(16px,4vw,48px) 70px; }
.dgx-screen[hidden] { display:none; }
.dgx-hero { display:grid; gap:15px; margin-bottom:clamp(28px,5vw,50px); }
.dgx-eyebrow { display:flex; align-items:center; gap:9px; margin:0; color:var(--dgx-gold); font-size:.72rem; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }
.dgx-eyebrow::before { content:""; width:34px; height:2px; background:var(--dgx-red); }
.dgx-hero h1 { max-width:900px; margin:0; color:var(--dgx-text); font-size:clamp(2.4rem,7vw,5.5rem); line-height:.92; letter-spacing:-.06em; }
.dgx-hero h1 span { color:var(--dgx-red); }
.dgx-lead { max-width:680px; margin:0; color:var(--dgx-muted); font-size:1.08rem; line-height:1.65; }
.dgx-toolbar { display:flex; flex-wrap:wrap; gap:9px; align-items:center; margin-top:6px; }
.dgx-button { border-radius:12px; color:white; border-color:transparent; background:linear-gradient(135deg,var(--dgx-red),var(--dgx-red-dark)); box-shadow:0 8px 24px #e3263628; letter-spacing:0; text-transform:none; font-size:.86rem; }
.dgx-button.secondary { color:var(--dgx-text); border-color:var(--dgx-line); background:var(--dgx-panel-2); box-shadow:none; }
.dgx-button.danger { color:#ff8b95; border-color:#e3263655; background:transparent; box-shadow:none; }
.dgx-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); gap:clamp(14px,2vw,24px); }
.dgx-card { position:relative; overflow:hidden; min-width:0; border:1px solid var(--dgx-line); border-radius:22px; background:linear-gradient(145deg,var(--dgx-panel-2),var(--dgx-panel)); box-shadow:0 12px 34px #0005; }
.dgx-album-card { display:flex; min-height:320px; color:inherit; text-decoration:none; cursor:pointer; transition:transform .3s ease,border-color .3s ease; }
.dgx-album-card:hover { transform:translateY(-7px); border-color:#e3263670; }
.dgx-cover { position:absolute; inset:0; }
.dgx-cover img { width:100%; height:100%; object-fit:cover; }
.dgx-cover::after { content:""; position:absolute; inset:0; background:linear-gradient(to top,#090b0fff 2%,#090b0f40 65%,transparent); }
.dgx-card-body { position:relative; z-index:2; align-self:end; width:100%; padding:22px; }
.dgx-card-body h2 { margin:0; font-size:1.28rem; }
.dgx-date { display:block; margin:7px 0 11px; color:var(--dgx-gold); font:italic 700 1rem Georgia,serif; letter-spacing:.07em; }
.dgx-count { display:block; color:#d2d8e0; text-align:right; font-size:.8rem; }
.dgx-gallery-board { display:grid; grid-template-columns:minmax(250px,.8fr) minmax(0,2.2fr); gap:20px; align-items:start; }
.dgx-summary { position:sticky; top:95px; padding:26px; }
.dgx-summary h1 { margin:10px 0; font-size:clamp(2rem,4vw,3.3rem); }
.dgx-back { padding:0; color:var(--dgx-muted); border:0; background:none; font-weight:850; cursor:pointer; }
.dgx-badge { display:inline-flex; padding:7px 11px; color:#ffabb2; border:1px solid #e3263644; border-radius:999px; background:#e3263615; font-size:.78rem; font-weight:900; }
.dgx-media-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.dgx-media-card { padding:8px; }
.dgx-media-frame { display:block; width:100%; padding:0; overflow:hidden; border:0; border-radius:14px; background:var(--dgx-panel-2); cursor:zoom-in; }
.dgx-media-frame img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; transition:transform .35s ease; }
.dgx-media-frame:hover img { transform:scale(1.025); }
.dgx-media-actions { display:flex; gap:7px; padding-top:8px; }
.dgx-media-actions .dgx-button { width:100%; }
.dgx-history { display:grid; grid-template-columns:270px minmax(0,1fr); gap:20px; }
.dgx-history aside { position:sticky; top:95px; padding:14px; }
.dgx-history h1 { margin:5px; font-size:1.25rem; }
.dgx-history-list { display:grid; gap:7px; margin-top:12px; }
.dgx-history-item { display:grid; grid-template-columns:60px 1fr; gap:10px; align-items:center; padding:7px; color:inherit; border:1px solid transparent; border-radius:13px; background:transparent; text-align:left; cursor:pointer; }
.dgx-history-item.is-active { border-color:var(--dgx-red); background:#e3263613; }
.dgx-history-item img { width:60px; aspect-ratio:4/3; object-fit:cover; border-radius:9px; }
.dgx-history-item strong,.dgx-history-item small { display:block; }
.dgx-history-item small { color:var(--dgx-muted); }
.dgx-history-head { display:flex; justify-content:space-between; gap:18px; align-items:end; margin-bottom:16px; }
.dgx-history-head h2 { margin:5px 0; font-size:clamp(2rem,4vw,3rem); }
.dgx-mosaic { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:minmax(150px,18vw); gap:9px; }
.dgx-mosaic button { padding:0; overflow:hidden; border:0; border-radius:15px; background:var(--dgx-panel); cursor:zoom-in; }
.dgx-mosaic button:first-child { grid-column:span 2; grid-row:span 2; }
.dgx-mosaic img { width:100%; height:100%; object-fit:cover; }
.dgx-footer { position:relative; z-index:2; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px clamp(16px,5vw,70px); color:#778292; border-top:1px solid var(--dgx-line); font-size:.78rem; }
.dgx-dialog { position:fixed; z-index:1000; inset:0; display:none; place-items:center; padding:18px; background:#020308ee; backdrop-filter:blur(16px); }
.dgx-dialog.is-open { display:grid; }
.dgx-lightbox img { max-width:94vw; max-height:90vh; object-fit:contain; border-radius:12px; }
.dgx-dialog-panel { width:min(460px,100%); padding:24px; border:1px solid var(--dgx-line); border-radius:22px; background:var(--dgx-panel); box-shadow:0 25px 70px #000b; }
.dgx-dialog-panel h2 { margin-top:0; color:var(--dgx-text); }
.dgx-theme-options { display:grid; gap:9px; }
.dgx-toast { position:fixed; z-index:1100; right:18px; bottom:18px; max-width:min(390px,calc(100vw - 36px)); padding:13px 16px; color:white; border:1px solid #ffffff20; border-radius:12px; background:#121720ee; box-shadow:0 15px 40px #000a; transform:translateY(25px); opacity:0; pointer-events:none; transition:.25s ease; }
.dgx-toast.is-visible { transform:translateY(0); opacity:1; }

.gbs-guide { color: #c8ced6; }
.gbs-guide > p:empty, .guide-step-head > p:empty, .guide-nav > p:empty { display: none; }
.guide-lead { margin-bottom: 24px; }
.guide-lead h2 { max-width: 780px; margin: 0; font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -.045em; }
.guide-lead > p:last-child { max-width: 720px; margin-bottom: 0; font-size: 1.05rem; }
.guide-nav { position: sticky; top: 77px; z-index: 12; display: flex; gap: 6px; overflow-x: auto; margin: 26px 0 54px; padding: 9px; border: 1px solid var(--gbs-line); border-radius: 14px; background: #090b0ff2; scrollbar-width: none; }
.guide-nav::-webkit-scrollbar { display: none; }
.guide-nav a { flex: 0 0 auto; padding: 8px 11px; color: var(--gbs-muted); border-radius: 9px; text-decoration: none; font-size: .82rem; font-weight: 850; }
.guide-nav a:hover { color: white; background: #ffffff0d; }
.guide-step { scroll-margin-top: 150px; margin-top: 58px; }
.guide-step-head { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 16px; align-items: center; margin-bottom: 18px; }
.guide-step-head h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.guide-step-head .eyebrow { margin-bottom: 5px; }
.guide-number { display: grid; place-items: center; width: 54px; height: 54px; color: white; border-radius: 16px; background: linear-gradient(180deg, var(--gbs-red), var(--gbs-red-dark)); box-shadow: 0 12px 28px #ff33472b; font-size: 1.05rem; font-weight: 950; }
.guide-grid { display: grid; gap: 14px; margin-top: 16px; }
.guide-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.guide-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.guide-card { padding: 19px; border: 1px solid var(--gbs-line); border-radius: 17px; background: linear-gradient(155deg, #171d26, #10141a); box-shadow: 0 14px 36px #0005; }
.guide-card h3 { margin: 0 0 10px; font-size: 1.08rem; }
.guide-card p { margin: 0; }
.guide-card ul, .guide-card ol { margin-bottom: 0; padding-left: 20px; }
.guide-card li + li { margin-top: 5px; }
.guide-mini { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 12px; color: var(--gbs-red); border: 1px solid #ff334744; border-radius: 9px; background: #ff334714; font-weight: 950; }
.guide-values { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; overflow: hidden; margin-top: 16px; border: 1px solid var(--gbs-line); border-radius: 15px; background: var(--gbs-line); }
.guide-values span { min-width: 0; padding: 15px; background: #0b0e13; }
.guide-values small, .guide-settings small { display: block; color: var(--gbs-muted); }
.guide-values strong, .guide-settings strong { display: block; margin-top: 4px; overflow-wrap: anywhere; color: white; }
.guide-terminal { overflow: hidden; margin: 14px 0; border: 1px solid #303948; border-radius: 14px; background: #06080b; }
.guide-terminal > span { display: block; padding: 8px 12px; color: #8a96a5; border-bottom: 1px solid #242b36; background: #10141b; font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.guide-terminal pre { margin: 0; padding: 14px 16px; border: 0; border-radius: 0; background: transparent; font-size: .86rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.guide-terminal code { padding: 0; background: transparent; }
.guide-check { padding-left: 14px; border-left: 3px solid var(--gbs-green); }
.guide-notice { margin-top: 14px; padding: 13px 15px; color: #ffc6cc; border: 1px solid #ff33474d; border-radius: 12px; background: #ff334712; }
.guide-settings { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.guide-settings > div { min-width: 0; padding: 14px; border: 1px solid #ffffff10; border-radius: 14px; background: #0b0e13; }

/* Guide d'installation interactif */
.guide-v2 { max-width: 960px; margin-inline: auto; }
.guide-start { margin: 30px 0 48px; padding: clamp(18px, 4vw, 30px); border: 1px solid #ff334733; border-radius: 22px; background: radial-gradient(circle at 85% 0, #ff334719, transparent 36%), linear-gradient(145deg, #151a22, #0c1016); box-shadow: 0 22px 65px #0007; }
.guide-start-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.guide-start-head h2, .guide-help h2 { margin: 4px 0 0; }
.guide-config-open { flex: 0 0 auto; }
.guide-chooser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.guide-mode-button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; color: var(--gbs-muted); text-align: left; border: 1px solid var(--gbs-line); border-radius: 16px; background: #0a0d12; cursor: pointer; transition: opacity .22s ease, transform .22s ease, border-color .22s ease, background .22s ease; }
.guide-mode-button:hover { transform: translateY(-2px); border-color: #ff334766; }
.guide-mode-button.is-active { color: white; border-color: #ff334799; background: linear-gradient(135deg, #ff334720, #11161e); box-shadow: inset 0 0 0 1px #ff334722, 0 14px 30px #0005; }
.guide-mode-button:not(.is-active) { opacity: .55; filter: grayscale(.55); }
.guide-mode-button strong, .guide-mode-button small { display: block; }
.guide-mode-button strong { margin-bottom: 4px; font-size: 1rem; }
.guide-mode-button small { color: inherit; line-height: 1.35; }
.guide-mode-icon { display: grid; flex: 0 0 50px; place-items: center; height: 50px; color: white; border: 1px solid #ff334755; border-radius: 14px; background: #ff33471a; font-size: .75rem; font-weight: 950; letter-spacing: .08em; }
.guide-live-values { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1px; overflow: hidden; margin-top: 14px; border: 1px solid var(--gbs-line); border-radius: 14px; background: var(--gbs-line); }
.guide-live-values > span { min-width: 0; padding: 13px 15px; background: #080b0f; }
.guide-live-values small, .guide-live-values strong { display: block; }
.guide-live-values small { color: var(--gbs-muted); }
.guide-live-values strong { margin-top: 3px; overflow-wrap: anywhere; color: white; }
.guide-download { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: -24px 0 50px; padding: 20px 22px; border: 1px solid #37d89055; border-radius: 18px; background: linear-gradient(135deg, #37d89012, #0b1116); }
.guide-download h2 { margin: 3px 0 7px; font-size: 1.3rem; }
.guide-download p { margin: 0 0 8px; color: var(--gbs-muted); }
.guide-download small { display: block; overflow-wrap: anywhere; color: #95a1ae; }
.guide-download .button { flex: 0 0 auto; }
.guide-path-section { position: relative; margin: 50px 0; padding: 2px 22px 22px; border: 1px solid #ff334733; border-radius: 22px; background: #0c1016; transition: opacity .28s ease, filter .28s ease, transform .28s ease; }
.guide-path-section .guide-step { margin-top: 20px; }
.guide-path-badge { display: inline-flex; margin-top: -15px; padding: 7px 12px; color: white; border: 1px solid #ff334777; border-radius: 999px; background: #b70f21; font-size: .72rem; font-weight: 900; letter-spacing: .04em; }
.guide-v2[data-install-mode="lxc"] [data-path="raspberry"], .guide-v2[data-install-mode="raspberry"] [data-path="lxc"] { opacity: .25; filter: grayscale(.9); transform: scale(.985); }
.guide-v2[data-install-mode="lxc"] [data-path="lxc"], .guide-v2[data-install-mode="raspberry"] [data-path="raspberry"] { opacity: 1; filter: none; transform: none; box-shadow: 0 18px 50px #0005; }
.guide-help { margin-top: 54px; padding-top: 30px; border-top: 1px solid var(--gbs-line); }
.guide-config-dialog { width: min(720px, calc(100vw - 28px)); max-height: min(86vh, 760px); padding: 0; color: var(--gbs-text); border: 1px solid #ff334766; border-radius: 22px; background: #0d1118; box-shadow: 0 28px 100px #000d; }
.guide-config-dialog::backdrop { background: #020306c7; backdrop-filter: blur(7px); }
.guide-config-form { padding: clamp(18px, 4vw, 28px); }
.guide-config-head { display: flex; justify-content: space-between; gap: 20px; }
.guide-config-head h2 { margin: 3px 0 6px; }
.guide-config-head p:last-child { margin: 0; color: var(--gbs-muted); }
.guide-dialog-close { display: grid; flex: 0 0 40px; place-items: center; height: 40px; padding: 0; color: white; border: 1px solid var(--gbs-line); border-radius: 12px; background: #181e28; font-size: 1.5rem; cursor: pointer; }
.guide-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.guide-config-grid label:last-child { grid-column: 1 / -1; }
.guide-config-grid span { display: block; margin-bottom: 6px; color: var(--gbs-muted); font-size: .78rem; font-weight: 850; }
.guide-config-grid input { width: 100%; padding: 11px 12px; color: white; border: 1px solid var(--gbs-line); border-radius: 10px; outline: none; background: #07090d; }
.guide-config-grid input:focus { border-color: var(--gbs-red); box-shadow: 0 0 0 3px #ff334719; }
.guide-config-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.tutorial-list { display: grid; gap: 16px; }
.tutorial-card { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 18px; align-items: center; }
.tutorial-number { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; color: white; background: linear-gradient(180deg, var(--gbs-red), var(--gbs-red-dark)); font-size: 1.05rem; font-weight: 950; box-shadow: 0 12px 30px #ff33472b; }
.tutorial-card h2 { margin: 4px 0 8px; font-size: 1.45rem; }
.tutorial-card h2 a { text-decoration: none; }
.tutorial-card p { margin: 0; color: var(--gbs-muted); }
.button, .wp-element-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; color: white; border: 1px solid #ff334766; border-radius: 12px; background: linear-gradient(180deg, var(--gbs-red), var(--gbs-red-dark)); text-decoration: none; font-weight: 900; cursor: pointer; box-shadow: 0 10px 26px #ff334729; }
.button:hover, .wp-element-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button.secondary { color: var(--gbs-text); border-color: var(--gbs-line); background: #151a22; box-shadow: none; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .65fr); gap: 18px; }
.gbs-form { display: grid; gap: 15px; }
.gbs-form label span { display: block; margin-bottom: 6px; color: var(--gbs-muted); font-size: .82rem; font-weight: 850; }
.gbs-form input, .gbs-form textarea { width: 100%; padding: 12px 13px; color: white; border: 1px solid var(--gbs-line); border-radius: 11px; outline: none; background: #090c11; }
.gbs-form input:focus, .gbs-form textarea:focus { border-color: var(--gbs-red); box-shadow: 0 0 0 3px #ff33471a; }
.gbs-form textarea { min-height: 180px; resize: vertical; }
.form-notice { margin-bottom: 18px; padding: 13px 15px; border: 1px solid #37d89055; border-radius: 12px; color: var(--gbs-green); background: #37d89012; }
.form-notice.error { color: #ffadb6; border-color: #ff334755; background: #ff334712; }
.contact-aside { align-self: start; }
.contact-aside h2 { margin-top: 0; }
.contact-aside p { color: var(--gbs-muted); }

.site-footer { padding: 30px 0; color: var(--gbs-muted); border-top: 1px solid var(--gbs-line); background: #07090c; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-brand { color: white; font-weight: 900; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--gbs-muted); text-decoration: none; }
.footer-links a:hover { color: var(--gbs-red); }
.pagination { margin-top: 30px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid var(--gbs-line); border-radius: 10px; text-decoration: none; background: var(--gbs-panel); }
.pagination .current { color: white; border-color: var(--gbs-red); }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .target-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .target-panel small, .target-panel p, .status-line { grid-column: 1 / -1; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-layout { grid-template-columns: 1fr; }
  .guide-grid.three, .guide-settings { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dtg-flow { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .gbs-shell { padding-inline: 14px; }
  .header-row { min-height: 64px; }
  .site-brand { flex-basis: 210px; }
  .custom-logo { width: min(210px, 62vw); height: 48px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; inset: 65px 14px auto; display: none; padding: 10px; border: 1px solid var(--gbs-line); border-radius: 14px; background: #0b0e13f7; box-shadow: var(--gbs-shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; }
  .site-nav a { padding: 11px 12px; }
  .site-main { padding-top: 30px; }
  .hero h1 { font-size: clamp(2.7rem, 16vw, 4.6rem); }
  .target-panel { display: none; }
  .wiki-callout { display: grid; }
  .card-grid, .project-grid, .quick-strip { grid-template-columns: 1fr; }
  .tutorial-card { grid-template-columns: 54px minmax(0,1fr); }
  .tutorial-number { width: 48px; height: 48px; border-radius: 14px; }
  .tutorial-card .button { grid-column: 2; justify-self: start; }
  .footer-row { display: grid; width:100%; text-align:left; justify-items:start; }
  .footer-links { flex-wrap:wrap; justify-content:flex-start; }
  .guide-nav { top: 65px; margin-bottom: 42px; }
  .guide-grid.two, .guide-grid.three, .guide-values, .guide-settings { grid-template-columns: 1fr; }
  .guide-step { scroll-margin-top: 130px; margin-top: 48px; }
  .guide-start-head, .guide-config-actions { align-items: stretch; flex-direction: column; }
  .guide-config-open { width: 100%; }
  .guide-download { align-items: stretch; flex-direction: column; margin-top: -22px; }
  .guide-download .button { width: 100%; }
  .guide-chooser, .guide-live-values, .guide-config-grid { grid-template-columns: 1fr; }
  .guide-config-grid label:last-child { grid-column: auto; }
  .guide-path-section { padding-inline: 14px; }
  .guide-v2[data-install-mode="lxc"] [data-path="raspberry"], .guide-v2[data-install-mode="raspberry"] [data-path="lxc"] { opacity: .2; transform: none; }
  .dtg-purpose, .dtg-feature-grid { grid-template-columns: 1fr; }
  .dtg-purpose { gap: 18px; }
  .dtg-showcase { margin-inline: 0; border-radius: 15px; }
  .dtg-demo-head { display: grid; }
  .dtg-demo-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .dtg-demo-photo, .dtg-demo-photo:first-child { grid-row: auto; min-height: 210px; }
  .dtg-photo-wall { grid-template-columns:1fr; gap:0; min-height:780px; padding-inline:12%; }
  .dtg-photo-wall::before { display:none; }
  .dtg-hanging-photo { margin:-16px 0; transform:rotate(-4deg); }
  .dtg-hanging-photo:nth-child(2) { transform:translateX(7%) rotate(4deg); }
  .dtg-hanging-photo:nth-child(3) { transform:translateX(-4%) rotate(-2deg); }
  .dgx-header { align-items:stretch; flex-direction:column; padding:7px 12px 10px; }
  .dgx-brand { align-self:center; max-width:min(290px,82vw); }
  .dgx-nav { width:100%; justify-content:center; overflow-x:auto; }
  .dgx-nav button { flex:0 0 auto; padding:7px 10px; font-size:.67rem; }
  .dgx-main { padding-top:28px; }
  .dgx-gallery-board,.dgx-history { grid-template-columns:1fr; }
  .dgx-summary,.dgx-history aside { position:static; }
  .dgx-media-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .dgx-media-card { padding:6px; }
  .dgx-media-actions { display:grid; }
  .dgx-history-list { display:flex; overflow-x:auto; }
  .dgx-history-item { flex:0 0 min(80vw,290px); }
  .dgx-history-head { align-items:flex-start; flex-direction:column; }
  .dgx-mosaic { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:minmax(140px,43vw); }
  .dgx-mosaic button:first-child { grid-column:1/-1; }
  .dgx-footer { align-items:flex-start; flex-direction:column; text-align:left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .site-brand::after { display: none; }
}
