@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/assets/fonts/space-grotesk-latin-wght-normal-BhU9QXUp.woff2") format("woff2-variations");
}

:root {
  color-scheme: dark;
  --bg: #100405;
  --panel: rgba(24, 8, 10, 0.76);
  --line: rgba(255, 255, 255, 0.1);
  --muted: #a9a3b3;
  --accent: #c8ad7f;
  --accent-rgb: 200, 173, 127;
  --font: "Space Grotesk Variable", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  color: #fff;
  background:
    linear-gradient(rgba(7, 1, 2, .91), rgba(7, 1, 2, .97)),
    url("/assets/hdt-banner.png") center top / cover fixed no-repeat,
    var(--bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  opacity: 0.025;
  pointer-events: none;
  content: "";
}

body[data-page="statuts"] { --accent: #ef4444; --accent-rgb: 239, 68, 68; }
body[data-page="createurs"], body[data-page="contact"] { --accent: #ef4444; --accent-rgb: 239, 68, 68; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 5px;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 0.9rem; letter-spacing: 0.2em; }
.brand-copy small { color: var(--muted); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; }

.nav { display: flex; justify-content: center; gap: 6px; }
.nav a, .admin-link {
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #bcb6c6;
  font-size: 0.78rem;
  transition: 180ms ease;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--line); background: rgba(255,255,255,.05); color: #fff; }
.admin-link { border-color: rgba(var(--accent-rgb), .32); color: #fff; }
.admin-link:hover { background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .62); }

.page-shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: clamp(70px, 10vw, 135px) 0 70px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: .72rem; font-weight: 650; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 1px; background: var(--accent); content: ""; }

.hero { max-width: 810px; animation: enter .7s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { margin-top: 24px; font-size: clamp(3.7rem, 11vw, 8.8rem); line-height: .87; letter-spacing: -.075em; }
.hero p { max-width: 670px; margin-top: 28px; color: #b7b0c0; font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.7; }

.content-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 18px; margin-top: clamp(55px, 8vw, 90px); animation: enter .7s .12s cubic-bezier(.2,.7,.2,1) both; }
.status-card, .info-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: clamp(27px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), .09), transparent 48%), var(--panel);
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  backdrop-filter: blur(18px);
}
.status-card::after { position: absolute; right: -80px; bottom: -100px; width: 250px; height: 250px; border-radius: 50%; background: rgba(var(--accent-rgb), .1); filter: blur(30px); content: ""; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(var(--accent-rgb), .28); border-radius: 999px; color: var(--accent); font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.status-pill::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; content: ""; }
.status-card h2, .info-card h2 { position: relative; z-index: 1; margin-top: 28px; font-size: clamp(1.45rem, 3vw, 2.15rem); letter-spacing: -.035em; }
.status-card p, .info-card p { position: relative; z-index: 1; margin-top: 13px; color: var(--muted); line-height: 1.65; }

.info-card { display: flex; flex-direction: column; justify-content: space-between; }
.info-card h2 { margin-top: 0; font-size: 1.2rem; }
.official-url { margin-top: 32px; color: var(--accent); font-size: .82rem; word-break: break-all; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; font-size: .8rem; font-weight: 650; transition: 180ms ease; }
.button-primary { border-color: rgba(var(--accent-rgb), .45); background: var(--accent); color: #110d15; }
.button:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .65); }

.site-footer { display: flex; justify-content: space-between; gap: 16px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 25px 0 34px; border-top: 1px solid var(--line); color: #77717f; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.rules-page .hero { max-width: 900px; }
.rules-page .hero h1 { font-size: clamp(3.3rem, 9vw, 7.4rem); }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 70px; }
.rule-card { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(239,68,68,.08), transparent 48%), rgba(17,5,7,.82); box-shadow: 0 22px 55px rgba(0,0,0,.24); }
.rule-card-wide { grid-column: 1 / -1; }
.rule-card > span { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(239,68,68,.35); border-radius: 13px; color: #ff7777; background: rgba(125,13,20,.18); font-size: .75rem; font-weight: 700; letter-spacing: .13em; }
.rule-card h2 { font-size: 1.25rem; letter-spacing: -.03em; text-transform: uppercase; }
.rule-card p { margin-top: 13px; color: #aaa0a4; line-height: 1.65; }
.rule-card ul { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.rule-card li { padding: 11px 14px; border-left: 2px solid #ef4444; border-radius: 0 8px 8px 0; background: rgba(239,68,68,.06); color: #ded5d7; }
.security-warning { margin-top: 18px; padding: 18px; border: 1px solid rgba(239,68,68,.35); border-radius: 12px; background: rgba(148,15,23,.14); color: #ffd3d3; font-weight: 650; line-height: 1.55; }
.rules-closing { margin-top: 18px; padding: clamp(30px,5vw,55px); border: 1px solid rgba(239,68,68,.22); border-radius: 22px; background: radial-gradient(circle at 80% 20%, rgba(239,68,68,.15), transparent 35%), rgba(16,5,7,.86); }
.rules-closing h2 { margin-top: 24px; font-size: clamp(1.7rem,4vw,3rem); letter-spacing: -.045em; }
.rules-closing p { max-width: 760px; margin-top: 13px; color: #aaa0a4; line-height: 1.65; }

.status-page { width: min(1120px, calc(100% - 40px)); }
.status-summary { display: inline-flex; align-items: center; gap: 11px; margin-top: 28px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.11); border-radius: 999px; background: rgba(12,4,6,.78); color: #d8cfd1; font-size: .78rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 15px #22c55e; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 70px; }
.service-card { position: relative; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 18px; min-height: 165px; padding: 27px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(239,68,68,.08), transparent 55%), rgba(17,5,7,.86); }
.service-card::after { position: absolute; right: -40px; bottom: -70px; width: 160px; height: 160px; border-radius: 50%; background: rgba(239,68,68,.08); filter: blur(25px); content: ""; }
.service-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(239,68,68,.3); border-radius: 15px; background: rgba(125,13,20,.16); color: #ff7676; font-size: 1.2rem; }
.service-kicker { color: #806f72; font-size: .62rem; font-weight: 700; letter-spacing: .16em; }
.service-card h2 { margin-top: 6px; font-size: 1.22rem; }
.service-card p { margin-top: 7px; color: #8f8184; font-size: .76rem; line-height: 1.45; }
.service-state { position: relative; z-index: 1; padding: 8px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #8d7f82; font-size: .64rem; font-weight: 700; white-space: nowrap; }
.service-state.is-operational,.service-state.is-connected { border-color: rgba(34,197,94,.28); background: rgba(34,197,94,.08); color: #78e39c; }
.service-state.is-maintenance { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.08); color: #f6bb57; }
.service-state.is-configuration_required { border-color: rgba(239,68,68,.26); background: rgba(239,68,68,.08); color: #ff8585; }
.service-state.is-error { border-color: rgba(239,68,68,.3); color: #ff8585; }
.status-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; padding: 22px 25px; border: 1px solid var(--line); border-radius: 17px; background: rgba(15,5,7,.8); }
.status-foot div { display: grid; gap: 5px; }
.status-foot span { color: #74666a; font-size: .6rem; font-weight: 700; letter-spacing: .15em; }
.status-foot strong { font-size: .82rem; }
.status-foot button:disabled { opacity: .55; cursor: wait; }

.creator-page { width: min(1180px, calc(100% - 40px)); }
.creator-board { display: grid; grid-template-columns: minmax(270px, .72fr) 1.5fr; margin-top: 65px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: rgba(8,3,4,.88); box-shadow: 0 35px 90px rgba(0,0,0,.35); }
.creator-card { position: relative; padding-bottom: 30px; border-right: 1px solid var(--line); background: #080405; }
.creator-banner { height: 155px; overflow: hidden; background: linear-gradient(rgba(4,0,0,.22),rgba(4,0,0,.68)), url("/assets/hdt-banner.png") center / cover no-repeat; }
.creator-banner span { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.04); font-size: 6rem; font-weight: 800; letter-spacing: -.08em; transform: rotate(-7deg); }
.creator-avatar { position: relative; width: 112px; height: 112px; margin: -54px 0 0 30px; padding: 7px; border-radius: 50%; background: #080405; }
.creator-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; background: #150608; }
.creator-avatar i { position: absolute; right: 5px; bottom: 11px; width: 23px; height: 23px; border: 5px solid #080405; border-radius: 50%; background: #22c55e; }
.creator-identity,.creator-bio,.creator-details,.creator-links { margin: 18px 30px 0; }
.creator-identity h2 { font-size: 1.65rem; }
.creator-identity p { margin-top: 6px; color: #a49396; font-size: .8rem; }
.creator-badges { display: flex; gap: 6px; margin-top: 14px; }
.creator-badges span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(239,68,68,.25); border-radius: 50%; background: rgba(239,68,68,.08); color: #ff6d72; font-size: .65rem; }
.creator-bio { display: grid; gap: 10px; margin-top: 28px; }
.creator-bio > span,.creator-details dt { color: #75666a; font-size: .62rem; font-weight: 700; letter-spacing: .13em; }
.creator-bio strong { padding: 9px 11px; border-radius: 6px; background: linear-gradient(90deg,#e51e25,#9c1017); font-size: .72rem; letter-spacing: .05em; }
.creator-details { display: grid; gap: 17px; padding-top: 22px; border-top: 1px solid var(--line); }
.creator-details div { display: grid; gap: 6px; }
.creator-details dd { color: #ddd4d6; font-size: .8rem; }
.creator-links { display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.creator-links a { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 8px; padding: 9px 0; color: #c2b7ba; font-size: .77rem; }
.creator-links a:hover { color: #fff; }
.creator-links a span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #fff; color: #120507; }
.creator-links b { color: #75666a; }
.creator-widgets { padding: clamp(30px,4vw,52px); background: radial-gradient(circle at 80% 15%,rgba(239,68,68,.08),transparent 35%),#090405; }
.creator-tabs { display: flex; gap: 27px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: #77696c; font-size: .8rem; }
.creator-tabs strong { position: relative; color: #fff; }
.creator-tabs strong::after { position: absolute; left: 0; bottom: -19px; width: 100%; height: 2px; background: #ef4444; content: ""; }
.widget-intro { margin: 65px auto 30px; text-align: center; }
.widget-intro .status-pill { margin: auto; }
.widget-intro h2 { margin-top: 20px; font-size: clamp(1.7rem,3vw,2.5rem); letter-spacing: -.045em; }
.widget-intro p { margin-top: 10px; color: #8e8083; }
.widget-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.widget-grid article { position: relative; min-height: 135px; padding: 23px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(135deg,rgba(255,255,255,.035),transparent),#100608; }
.widget-grid article::after { position: absolute; right: -25px; bottom: -35px; width: 100px; height: 100px; border-radius: 50%; background: rgba(239,68,68,.09); filter: blur(18px); content: ""; }
.widget-grid article > span { color: #7b686c; font-size: .63rem; font-weight: 700; letter-spacing: .13em; }
.widget-grid h3 { margin-top: 22px; font-size: 1rem; }
.widget-grid p { margin-top: 7px; color: #847679; font-size: .72rem; line-height: 1.5; }
.widget-grid .widget-featured { border-color: rgba(239,68,68,.25); background: linear-gradient(135deg,rgba(239,68,68,.13),transparent),#100608; }

.contact-grid { display: grid; gap: 14px; margin-top: 70px; }
.contact-card { display: grid; grid-template-columns: 66px 1fr auto; align-items: center; gap: 22px; padding: 28px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg,rgba(239,68,68,.08),transparent 50%),rgba(16,5,7,.86); transition: .2s ease; }
.contact-card:hover { transform: translateY(-3px); border-color: rgba(239,68,68,.4); }
.contact-icon { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid rgba(239,68,68,.3); border-radius: 16px; background: rgba(125,13,20,.17); color: #ff7777; font-size: 1.25rem; }
.contact-card div > span { color: #79696c; font-size: .62rem; font-weight: 700; letter-spacing: .15em; }
.contact-card h2 { margin-top: 6px; font-size: clamp(1.1rem,3vw,1.65rem); }
.contact-card p { margin-top: 8px; color: #918286; font-size: .78rem; line-height: 1.5; }
.contact-card > b { color: #7e6d70; font-size: 1.1rem; }
.contact-note { margin-top: 15px; padding: 22px 25px; border: 1px solid rgba(239,68,68,.2); border-radius: 15px; background: rgba(239,68,68,.055); }
.contact-note strong { color: #ff7777; }
.contact-note p { margin-top: 7px; color: #9c8c8f; line-height: 1.55; }

@keyframes enter { from { opacity: 0; transform: translateY(22px); } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .content-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 210px; }
  .creator-board { grid-template-columns: 1fr; }
  .creator-card { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .site-header, .page-shell, .site-footer { width: min(100% - 28px, 1180px); }
  .site-header { gap: 15px; padding-top: 16px; }
  .brand-copy { display: none; }
  .brand img { width: 45px; height: 45px; }
  .nav a { padding: 8px 10px; white-space: nowrap; }
  .admin-link { padding: 9px 12px; }
  .page-shell { padding-top: 65px; }
  .hero h1 { font-size: clamp(3.5rem, 19vw, 5.4rem); }
  .site-footer { flex-direction: column; }
  .rules-grid,.service-grid,.widget-grid { grid-template-columns: 1fr; }
  .rule-card-wide { grid-column: auto; }
  .rule-card { grid-template-columns: 42px 1fr; gap: 13px; padding: 22px 18px; }
  .rule-card > span { width: 40px; height: 40px; }
  .service-card { grid-template-columns: 48px 1fr; padding: 21px 18px; }
  .service-icon { width: 46px; height: 46px; }
  .service-state { grid-column: 2; justify-self: start; }
  .creator-board { margin-top: 45px; }
  .creator-widgets { padding: 28px 18px; }
  .creator-tabs { gap: 18px; overflow-x: auto; }
  .contact-card { grid-template-columns: 50px 1fr; gap: 14px; padding: 21px 18px; }
  .contact-icon { width: 48px; height: 48px; }
  .contact-card > b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
