/* wdogz — feuille de style unique. Sombre uniquement. */

@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #08080a;
  --bg-raised: #111114;
  --bg-hover: #17171b;
  --fg: #ededef;
  --muted: #a1a1aa;
  --faint: #63636d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 64px);
  --section-gap: clamp(96px, 14vw, 200px);
  --radius: 18px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.dim { color: var(--faint); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.logo { font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.logo span { color: var(--faint); }
.nav nav { display: flex; gap: 28px; margin-left: auto; }
.nav nav a { color: var(--muted); font-size: 14px; transition: color .2s; }
.nav nav a:hover { color: var(--fg); }
.pill {
  font-size: 14px; padding: 10px 20px; border: 1px solid var(--line-strong); border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.pill:hover { background: var(--fg); color: var(--bg); }

@media (max-width: 760px) {
  .nav nav { display: none; }
  .pill { margin-left: auto; }
}

/* ---------- Accueil ---------- */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) clamp(32px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  /* halo discret derrière le logo */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 40%, rgba(255, 255, 255, 0.06), transparent 70%);
}
.hero-canvas {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.2s ease;
  touch-action: pan-y;
}
.hero.is-3d .hero-canvas { opacity: 1; }

/* Logo de secours sans WebGL : lettres chromées en CSS */
.hero-fallback {
  position: absolute; left: 50%; top: 40%; z-index: -1;
  transform: translate(-50%, -50%);
  font: 700 clamp(96px, 22vw, 340px)/0.9 var(--display); letter-spacing: -0.05em;
  background: linear-gradient(180deg, #ffffff 0%, #9b9ba3 42%, #2a2a2f 52%, #d8d8dd 70%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .8s ease;
  user-select: none;
}
.hero.is-3d .hero-fallback { opacity: 0; }

.hero-side {
  position: absolute; top: 40%; transform: translateY(-50%);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.hero-side-left { left: var(--gutter); }
.hero-side-right { right: var(--gutter); }
@media (max-width: 760px) { .hero-side { display: none; } }

.hero-bottom {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 64px; align-items: end;
}
.hero-title {
  font: 700 clamp(44px, 6.6vw, 112px)/0.95 var(--display); letter-spacing: -0.045em;
}
.hero-aside p { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border-radius: 999px;
  font: 500 15px/1 var(--display); transition: background-color .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--fg); }

@media (max-width: 900px) {
  .hero-bottom { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */

.section, .contact { padding: var(--section-gap) var(--gutter) 0; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 7vw, 96px); }
.eyebrow {
  font: 400 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.title {
  font: 700 clamp(40px, 7vw, 120px)/0.95 var(--display); letter-spacing: -0.045em; max-width: 14ch;
}
.lead {
  font-size: clamp(18px, 1.7vw, 24px); line-height: 1.5; color: var(--muted); max-width: 52ch;
}

/* Services */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 48px;
  padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line);
}
.service-num { color: var(--faint); font-size: 13px; padding-top: 0.9em; }
.service h3 { font: 700 clamp(36px, 5vw, 80px)/1 var(--display); letter-spacing: -0.04em; }
.service-body p { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); max-width: 56ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li {
  font: 400 12px/1 var(--mono); padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .service { grid-template-columns: 40px minmax(0, 1fr); }
  .service-body { grid-column: 2; }
  .service-num { padding-top: 0.5em; }
}

.levels {
  margin-top: clamp(56px, 8vw, 112px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px;
}
.level-list { border-top: 1px solid var(--line); }
.level-list div, .facts div, .mini div, .contact-rows div {
  display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.level-list dt, .facts dt, .mini dt, .contact-rows dt {
  font: 400 12px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
  flex-shrink: 0;
}
.level-list dd, .facts dd, .mini dd { text-align: right; }
.level-list dt { color: var(--fg); letter-spacing: 0.04em; text-transform: none; font-size: 14px; }
.level-list dd { color: var(--muted); }
@media (max-width: 900px) { .levels { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .level-list div, .facts div, .mini div, .contact-rows div { flex-direction: column; gap: 6px; }
  .level-list dd, .facts dd, .mini dd { text-align: left; }
}

/* PvP */
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { display: grid; gap: 10px; padding: clamp(28px, 3.5vw, 48px) 24px clamp(28px, 3.5vw, 48px) 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.stat strong { font: 700 clamp(32px, 4.4vw, 72px)/1 var(--display); letter-spacing: -0.04em; }
.stat span { color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

.pvp-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px 64px;
  margin-top: clamp(48px, 6vw, 88px); align-items: start;
}
.modes { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 20px; }
.modes li { font: 700 clamp(32px, 4vw, 60px)/1.15 var(--display); letter-spacing: -0.035em; }
.modes li:nth-child(even) { color: var(--faint); }
.facts { border-top: 1px solid var(--line); }
@media (max-width: 900px) { .pvp-grid { grid-template-columns: 1fr; } }

/* Projets */
.projects { display: grid; gap: clamp(56px, 7vw, 104px); }
.project {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px);
  align-items: center;
}
.project:nth-child(even) .project-visual { order: 2; }
.project-visual {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-raised);
}
.project-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.project-visual:hover img { transform: scale(1.025); }
.project-visual-trio {
  display: grid; place-items: center;
  background:
    radial-gradient(80% 70% at 30% 20%, rgba(255, 255, 255, 0.09), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(255, 255, 255, 0.035) 63px 64px),
    repeating-linear-gradient(0deg, transparent 0 63px, rgba(255, 255, 255, 0.035) 63px 64px),
    var(--bg-raised);
}
.project-visual-trio span {
  font: 700 clamp(48px, 8vw, 140px)/1 var(--display); letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff 0%, #8d8d96 55%, #3a3a40 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.project-link {
  position: absolute; left: 16px; bottom: 16px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; background: rgba(8, 8, 10, 0.75); border: 1px solid var(--line-strong);
}
.project-meta { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.project-info h3 { font: 700 clamp(36px, 4.4vw, 68px)/1 var(--display); letter-spacing: -0.04em; margin: 14px 0 18px; }
.project-info > p { color: var(--muted); font-size: 17px; max-width: 46ch; }
.mini { margin-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-visual { order: 0; }
}

.others { margin-top: clamp(72px, 9vw, 136px); }
.other-list { margin-top: 20px; border-top: 1px solid var(--line); }
.other-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 8px 32px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .25s ease, background-color .25s;
}
.other-list a:hover { padding-left: 12px; padding-right: 12px; background: var(--bg-hover); }
.other-list strong { font: 700 clamp(22px, 2.2vw, 32px)/1.1 var(--display); letter-spacing: -0.03em; }
.other-list span { color: var(--muted); }
.other-list em { font-style: normal; font-size: 12px; color: var(--faint); }
@media (max-width: 760px) { .other-list a { grid-template-columns: 1fr; } }

/* Entretien */
.interview { border-top: 1px solid var(--line); }
.interview li {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px;
  padding: clamp(28px, 3.5vw, 48px) 0; border-bottom: 1px solid var(--line);
}
.interview li > span { color: var(--faint); font-size: 13px; padding-top: 0.5em; }
.interview li > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 48px; }
.interview h3 { font: 500 clamp(22px, 2.4vw, 36px)/1.2 var(--display); letter-spacing: -0.02em; }
.interview p { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); max-width: 58ch; }
@media (max-width: 900px) {
  .interview li { grid-template-columns: 40px minmax(0, 1fr); }
  .interview li > div { grid-template-columns: 1fr; }
}

.quote { padding: clamp(96px, 14vw, 200px) 0 0; text-align: center; }
.quote blockquote {
  font: 700 clamp(32px, 5.4vw, 88px)/1.02 var(--display); letter-spacing: -0.04em;
  max-width: 18ch; margin: 0 auto;
}
.quote figcaption { margin-top: 28px; color: var(--muted); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Contact */
.contact-title {
  font: 700 clamp(72px, 17vw, 300px)/0.85 var(--display); letter-spacing: -0.06em; margin: 24px 0 32px;
}
.big-mail {
  display: inline-block; margin-top: clamp(40px, 5vw, 64px);
  font: 500 clamp(26px, 4.4vw, 72px)/1.1 var(--display); letter-spacing: -0.03em;
  border-bottom: 2px solid var(--line-strong); padding-bottom: 6px; transition: border-color .2s;
  overflow-wrap: anywhere;
}
.big-mail:hover { border-color: var(--fg); }
.contact-rows { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); max-width: 920px; }
.contact-rows dd { color: var(--muted); }
.contact-rows a:hover { color: var(--fg); }
.pair { display: flex; flex-wrap: wrap; gap: 8px; }
.copy {
  background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; cursor: pointer;
  font: 400 13px/1.4 var(--mono); color: var(--fg); transition: background-color .2s, color .2s;
}
.copy:hover { background: var(--fg); color: var(--bg); }
.copy small { color: var(--faint); font-size: 11px; }
.copy:hover small { color: inherit; }

/* Pied de page */
.footer { padding: var(--section-gap) var(--gutter) 28px; overflow-x: clip; }
.footer-mark {
  font: 700 clamp(96px, 27vw, 520px)/1 var(--display); letter-spacing: -0.065em; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; margin-bottom: 16px;
}
.footer-row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px;
}
.footer-row a:hover { color: var(--fg); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* Notification « copié » */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 30; transform: translate(-50%, 16px);
  padding: 12px 18px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font: 500 14px/1 var(--display); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Page 404 */
.notfound { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 0; }
