/* Hybec - site public (hybec.ca). Design : fond nuit, IBM Plex Mono + Young Serif, traits pointillés, accent orange. */
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Young Serif'; font-weight: 400; font-display: swap; src: url("/fonts/young-serif-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Young Serif'; font-weight: 400; font-display: swap; src: url("/fonts/young-serif-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #101210; --bg-2: #141714; --bg-3: #171a16; --bar: #2a2f28;
  --ink: #ece7d8; --ink-2: #b9b3a2; --muted: #7c7868; --line: #3a4036;
  --accent: #d8663a; --accent-2: #e8794c; --on: #5fd3a6; --off: #e06a6a;
  --mono: 'IBM Plex Mono', ui-monospace, monospace; --serif: 'Young Serif', serif;
  --gx: clamp(16px, 4vw, 56px); --max: 1480px;
  --fs-s: clamp(12px, .85vw, 15px); --fs: clamp(13px, .95vw, 16px); --fs-m: clamp(14px, 1.05vw, 18px);
  --h2: clamp(30px, 2.3vw, 44px); --h3: clamp(20px, 1.5vw, 27px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-m)/1.6 var(--mono); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; font-weight: 400; font-family: var(--serif); }
p { margin: 0; }
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* en-tête */
.top { position: sticky; top: 0; z-index: 5; background: rgba(16,18,16,.92); backdrop-filter: blur(6px); border-bottom: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 4vw, 40px); flex-wrap: wrap; }
.brand { font: 400 24px/1 var(--serif); color: var(--ink); }
.top nav { display: flex; gap: 18px 22px; font: 400 var(--fs)/1 var(--mono); flex-wrap: wrap; }
.top nav a { color: var(--ink-2); }
.top nav a:hover, .top nav a.ext { color: var(--accent); }
.top nav a.ext:hover { color: var(--ink); }

/* accueil */
.hero { padding: clamp(48px, 8vw, 128px) var(--gx) clamp(40px, 6vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero .intro { display: flex; flex-direction: column; gap: 26px; }
.kicker { font: 400 var(--fs)/1 var(--mono); color: var(--accent); }
.hero h1 { font-size: clamp(42px, 5.6vw, 108px); line-height: 1.02; letter-spacing: -1.5px; text-wrap: balance; }
.lead { max-width: 40em; font-size: clamp(15px, 1.15vw, 20px); color: var(--ink-2); text-wrap: pretty; }
.stats { display: flex; gap: 28px 40px; flex-wrap: wrap; font: 400 var(--fs)/1.5 var(--mono); color: var(--muted); }
.stats div { display: flex; flex-direction: column; }
.stats b { font: 400 clamp(26px, 2vw, 36px)/1.1 var(--serif); color: var(--ink); }
.join { border: 1px dashed var(--accent); border-radius: 6px; padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; background: var(--bg-3); max-width: 560px; width: 100%; justify-self: end; }
.join .label { font: 400 var(--fs-s)/1 var(--mono); color: var(--muted); }
.join .addr { font: 400 clamp(34px, 3.6vw, 60px)/1 var(--serif); }
.join button { font: 500 clamp(14px, 1.05vw, 17px)/1 var(--mono); border: 0; border-radius: 4px; padding: 14px 18px; background: var(--accent); color: #fff; cursor: pointer; text-align: left; }
.join button:hover { background: var(--accent-2); }
.status { display: flex; flex-direction: column; gap: 6px; font: 400 var(--fs)/1.6 var(--mono); color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 14px; }
.status .pill.on { color: var(--on); } .status .pill.off { color: var(--off); } .status .pill.wait { color: var(--muted); }
.status .names { color: var(--muted); }

/* sections */
.block { border-top: 1px dashed var(--line); }
.block > div { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 4.5vw, 72px) var(--gx); display: grid; grid-template-columns: minmax(0, clamp(240px, 18vw, 340px)) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.block h2 { font-size: var(--h2); line-height: 1.1; }
.block .side { display: flex; flex-direction: column; gap: 12px; }
.block .side p, .note { font: 400 var(--fs)/1.6 var(--mono); color: var(--muted); }
.block .side a { font: 400 var(--fs)/1 var(--mono); }
@media (max-width: 720px) { .block > div { grid-template-columns: 1fr; } }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); line-height: 1.5; }
.steps li .n, .ac { color: var(--accent); }
.steps li .w { color: var(--ink); }

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(32px, 3vw, 48px); }
.feats div { display: flex; flex-direction: column; gap: 8px; }
.feats h3 { font-size: var(--h3); line-height: 1.2; }
.feats p { color: var(--ink-2); }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(16px, 1.5vw, 24px); }
.projects article { border: 1px dashed var(--line); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); }
.projects .meta { display: flex; justify-content: space-between; gap: 12px; font: 400 var(--fs-s)/1 var(--mono); color: var(--muted); }
.projects h3 { font-size: var(--h3); line-height: 1.2; }
.projects p { font-size: var(--fs); color: var(--ink-2); }
.projects .bar { height: 4px; background: var(--bar); border-radius: 2px; overflow: hidden; margin-top: auto; }
.projects .bar i { display: block; height: 100%; background: var(--accent); }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(24px, 4vw, 48px); }
.cmds { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; line-height: 1.5; align-content: start; }
.cmds .c { color: var(--accent); white-space: nowrap; }
.cmds .d { color: var(--ink-2); }
.rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font: 400 clamp(16px, 1.25vw, 22px)/1.5 var(--serif); }
.rules li { display: flex; gap: 14px; }
.rules li .n { font: 400 13px/1.8 var(--mono); color: var(--accent); }
.rules li.fine { font: 400 var(--fs-s)/1.6 var(--mono); color: var(--muted); padding-top: 6px; }

.map { height: clamp(320px, 36vw, 640px); border: 1px dashed var(--line); border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(135deg, #131613 0 14px, #171a16 14px 28px); }
.map iframe { width: 100%; height: 100%; border: 0; background: #0b0b0b; display: block; }

.news { display: flex; flex-direction: column; }
.news article { display: grid; grid-template-columns: minmax(90px, 120px) minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.news time { font: 400 var(--fs)/1.6 var(--mono); color: var(--accent); }
.news div { display: flex; flex-direction: column; gap: 4px; }
.news h3 { font-size: clamp(18px, 1.35vw, 24px); line-height: 1.3; }
.news p { font-size: var(--fs); color: var(--ink-2); }

.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(24px, 4vw, 48px); }
.mods div { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.mods .cat { color: var(--accent); margin-bottom: 6px; }
.mods b { font-weight: 400; color: var(--ink); }

.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px dashed var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; cursor: pointer; font: 400 clamp(17px, 1.3vw, 23px)/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 16px/1 var(--mono); color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 46em; }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.team div { display: flex; gap: 14px; align-items: center; border: 1px dashed var(--line); border-radius: 6px; padding: 16px; }
.team .skin { width: 48px; height: 48px; flex: none; border-radius: 4px; background: repeating-linear-gradient(135deg, #1c201c 0 6px, #232823 6px 12px); display: grid; place-items: center; font: 400 10px/1 var(--mono); color: var(--muted); }
.team .who { display: flex; flex-direction: column; gap: 4px; border: 0; padding: 0; }
.team .name { font: 400 clamp(18px, 1.35vw, 24px)/1.2 var(--serif); }
.team .role { font: 400 12px/1.4 var(--mono); color: var(--accent); }

.cta > div { display: flex; justify-content: space-between; align-items: center; gap: 32px 48px; flex-wrap: wrap; padding: clamp(48px, 7vw, 64px) clamp(16px, 4vw, 40px); }
.cta .txt { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; text-wrap: balance; }
.cta p { color: var(--ink-2); }
.cta .btn { font: 500 clamp(15px, 1.1vw, 18px)/1 var(--mono); padding: 18px 26px; border-radius: 4px; border: 1px dashed var(--accent); color: var(--accent); }
.cta .btn:hover { background: var(--accent); color: #fff; }

footer { margin-top: auto; border-top: 1px dashed var(--line); }
footer div { max-width: var(--max); margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font: 400 var(--fs-s)/1.6 var(--mono); color: var(--muted); }
