/* Sypher Matrixial - theme Matrix (meme identite que le plugin TRINITY) */
@font-face { font-family: "Tektur"; src: url("../fonts/Tektur-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Tektur"; src: url("../fonts/Tektur-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/ChakraPetch-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/ChakraPetch-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --bg: #020607;
  --panel: #0a1114;
  --panel-hi: #0f181c;
  --line: #1d2b2e;
  --green: #00ff41;
  --lime: #a8ff2e;
  --green-dim: #0b3d1a;
  --text: #e6f2ee;
  --dim: #7d9590;
  --pink: #ff3d8b;
  --amber: #ffb020;
  --red: #ff4d4d;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 600 17px/1.55 "Chakra Petch", system-ui, sans-serif;
  min-height: 100vh; overflow-x: hidden;
}
#rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .22; pointer-events: none; }
main, header.top, footer.bottom { position: relative; z-index: 1; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "Tektur", sans-serif; font-weight: 700; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); color: var(--green); }
h3 { font-size: 19px; }
code, .mono, input.key { font-family: "JetBrains Mono", monospace; font-weight: 500; }
.dim { color: var(--dim); }

/* barre du haut */
header.top {
  display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line); background: rgba(2, 6, 7, .85); backdrop-filter: blur(8px);
  position: sticky; top: 0;
}
.brand { font-family: "Tektur"; font-weight: 900; letter-spacing: .28em; font-size: 15px; color: var(--text); white-space: nowrap; }
.brand-mark { color: var(--green); }
header.top nav { margin-left: auto; display: flex; gap: 6px; }
header.top nav a { color: var(--dim); padding: 8px 14px; border-radius: 8px; font-weight: 700; letter-spacing: .04em; }
header.top nav a.on, header.top nav a:hover { color: var(--bg); background: var(--green); text-decoration: none; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--green); font-size: 22px; border-radius: 8px; width: 42px; height: 38px; }

main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 60px; }
section { padding: 56px 0 8px; }

/* hero */
.hero { text-align: center; padding: 64px 0 24px; }
.hero img.logo { width: min(760px, 100%); height: auto; filter: drop-shadow(0 0 28px rgba(140, 255, 30, .25)); }
.hero .by { font-family: "Tektur"; letter-spacing: .5em; color: var(--dim); font-size: 14px; margin: 6px 0 22px; }
.hero p.lead { max-width: 720px; margin: 0 auto 28px; font-size: 19px; color: var(--text); }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 9px;
  border: 1px solid var(--green); color: var(--green); background: transparent;
  font: 700 16px "Chakra Petch", sans-serif; letter-spacing: .05em; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--green-dim); text-decoration: none; }
.btn.solid { background: var(--green); color: var(--bg); }
.btn.solid:hover { background: var(--lime); }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: rgba(255, 77, 77, .12); }

/* blocs */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--panel-hi), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent, var(--green)); }
.card h3 { color: var(--accent, var(--green)); }
.ico { width: 34px; height: 34px; fill: none; stroke: var(--accent, var(--green)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent, var(--green)) 45%, transparent)); }
.card p { margin: 0; color: var(--dim); }
.shot { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; height: auto; display: block; }
.shots { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag { border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 14px; color: var(--dim); }

/* telechargements */
.dl { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.dl .card { display: flex; flex-direction: column; gap: 10px; }
.dl .meta { font-family: "JetBrains Mono"; font-size: 13px; color: var(--dim); word-break: break-all; }
.dl .btn { margin-top: auto; justify-content: center; }
.notice { border-left: 3px solid var(--amber); background: rgba(255, 176, 32, .06); padding: 14px 18px; border-radius: 6px; color: var(--text); margin: 18px 0; }
.ok { border-left-color: var(--green); background: rgba(0, 255, 65, .06); }
.err { border-left-color: var(--red); background: rgba(255, 77, 77, .08); }

/* changelog */
.release { border-left: 2px solid var(--line); padding: 4px 0 18px 22px; position: relative; }
.release::before { content: ""; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.release h3 { margin-bottom: 4px; }
.release .notes { white-space: pre-wrap; color: var(--text); margin-top: 8px; }

/* formulaires */
form.box { max-width: 560px; }
label { display: block; font-weight: 700; margin: 14px 0 6px; color: var(--dim); letter-spacing: .04em; font-size: 14px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; background: #010405; color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; font: 600 16px "Chakra Petch", sans-serif;
}
textarea { min-height: 120px; font-family: "JetBrains Mono"; font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 255, 65, .12); }
input.key { text-transform: uppercase; letter-spacing: .12em; font-size: 18px; text-align: center; color: var(--green); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
td.mono { font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .05em; border: 1px solid currentColor; }
.badge.on { color: var(--green); }
.badge.off { color: var(--red); }
.badge.draft { color: var(--amber); }

.center-panel { max-width: 460px; margin: 70px auto; }
.soon { --accent: var(--pink); }

footer.bottom { border-top: 1px solid var(--line); padding: 26px clamp(16px, 4vw, 48px); font-size: 14px; display: grid; gap: 6px; text-align: center; }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  header.top { flex-wrap: wrap; }
  header.top nav { display: none; width: 100%; flex-direction: column; }
  body.nav-open header.top nav { display: flex; }
  .shots { grid-template-columns: 1fr; }
  .hero .by { letter-spacing: .25em; }
}

/* boutique / compte */
.buy-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 18px 0; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border: solid var(--green); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.buy-box .price { font-family: "Tektur"; font-weight: 900; font-size: 54px; color: var(--green); line-height: 1; }
label.tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--text); font-size: 15px; letter-spacing: 0; margin: 12px 0 0; cursor: pointer; }
label.tick input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--green); }
.pay-methods { text-align: center; margin-top: 12px; font-size: 14px; }
.bigkey { font-size: 26px; letter-spacing: .14em; color: var(--green); background: #010405; border: 1px solid var(--line); border-radius: 10px; padding: 14px 20px; display: inline-block; cursor: copy; }
.bigkey.small { font-size: 18px; padding: 8px 14px; }
.copied { outline: 2px solid var(--green); }
.legal { max-width: 820px; }
.legal h3 { color: var(--green); margin-top: 26px; }
.legal p { color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .buy-grid { grid-template-columns: 1fr; } .buy-box .price { font-size: 44px; } }
.wordmark { font-family: "Tektur"; font-weight: 900; font-size: clamp(48px, 8vw, 84px); line-height: 1; letter-spacing: .03em;
  background: linear-gradient(180deg, #e4ff8a 0%, #a8ff2e 40%, #3f9e0c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(140, 255, 30, .35)); }
.product-logo { width: 100%; max-width: 560px; height: auto; filter: drop-shadow(0 0 18px rgba(220, 235, 255, .28)); }

/* menu deroulant des logiciels */
.dropdown { position: relative; }
.dropdown-toggle { background: none; border: 0; color: var(--dim); padding: 8px 14px; border-radius: 8px; font: 700 17px "Chakra Petch", sans-serif; letter-spacing: .04em; cursor: pointer; }
.dropdown.on > .dropdown-toggle, .dropdown:hover > .dropdown-toggle, .dropdown.open > .dropdown-toggle { color: var(--bg); background: var(--green); }
.dropdown .caret { font-size: 12px; margin-left: 2px; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 300px; padding: 8px; margin-top: 6px;
  background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--green); border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.6); z-index: 20; }
.dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 7px; color: var(--text); text-decoration: none; }
.dropdown-menu a strong { display: block; font-family: "Tektur"; letter-spacing: .05em; }
.dropdown-menu a span { display: block; font-size: 13px; color: var(--dim); font-weight: 600; }
.dropdown-menu a:hover, .dropdown-menu a.cur { background: var(--green-dim); }
.dropdown-menu a:hover strong, .dropdown-menu a.cur strong { color: var(--green); }
.dropdown-menu a.sc { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; border-radius: 0 0 7px 7px; }
@media (max-width: 760px) {
  .dropdown-menu { position: static; display: block; min-width: 0; box-shadow: none; margin: 4px 0 8px; }
  .dropdown-toggle { width: 100%; text-align: left; }
}
header.top { z-index: 10; }
.dropdown-menu { min-width: 330px; }
.dropdown-menu a strong { white-space: nowrap; }

/* barre du haut : jamais de retour a la ligne ; menu "burger" des que la place manque */
header.top nav a, .dropdown-toggle { white-space: nowrap; }
@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  header.top { flex-wrap: wrap; }
  header.top nav { display: none; width: 100%; flex-direction: column; margin-left: 0; }
  body.nav-open header.top nav { display: flex; }
  .dropdown-menu { position: static; display: block; min-width: 0; box-shadow: none; margin: 4px 0 8px; }
  .dropdown-toggle { width: 100%; text-align: left; }
  .dropdown::after { display: none; }
}

/* accueil */
.home-hero { padding-top: 80px; }
.home-mark { font-size: clamp(40px, 7.5vw, 92px); margin-bottom: 18px; }
.about { max-width: 900px; margin: 0 auto; }
.about p { color: var(--text); font-weight: 500; margin: 0 0 12px; }
.products { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.product-card { background: linear-gradient(180deg, var(--panel-hi), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-visual { position: relative; display: block; aspect-ratio: 16 / 9; background: #010405; overflow: hidden; }
.product-visual > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .55; transition: opacity .2s, transform .3s; }
.product-card:hover .product-visual > img:first-child { opacity: .75; transform: scale(1.02); }
.product-card-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78%; height: auto; filter: drop-shadow(0 0 16px rgba(0, 0, 0, .9)) drop-shadow(0 0 22px rgba(200, 230, 255, .2)); }
.product-card-name { position: absolute; inset: 0; display: grid; place-items: center; font: 900 40px "Tektur"; color: var(--green); }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { margin: 0; color: var(--green); }
.product-body p { margin: 0; color: var(--dim); }
.product-actions { margin-top: auto; padding-top: 8px; display: flex; gap: 10px; }
.sc-card p { color: var(--text); font-weight: 500; }
.soon-logo { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 0 12px; filter: drop-shadow(0 0 10px rgba(178, 102, 255, .25)); }
.direct-dl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line, #1d2b2e); }
.direct-dl:first-of-type { border-top: 0; }
