/* ==========================================================================
   HERUGHUL - Feuille de style principale
   Direction artistique : graphite sombre, un seul accent (bleu acier).
   Aucune ressource externe, aucune police distante, aucun traceur.
   ========================================================================== */

/* 01. Jetons ------------------------------------------------------------- */
:root {
  --bg: #0a0b0d;
  --bg-soft: #0e1013;
  --surface: #131619;
  --surface-2: #191d21;
  --surface-3: #1f2429;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #e9ecef;
  --text-2: #c3c9cf;
  --muted: #8f98a1;
  --accent: #5eaadc;
  --accent-2: #86c4ef;
  --accent-3: #b6dcf7;
  --accent-glow: rgba(94, 170, 220, 0.22);
  --accent-line: rgba(94, 170, 220, 0.35);
  --ok: #6fbf8f;
  --warn: #d9a441;
  --danger: #e0736f;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --shadow-lift: 0 30px 60px -30px rgba(0, 0, 0, 1);
  --wrap: 1140px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: ui-sans-serif, system-ui, "Segoe UI Variable Text", "Segoe UI", Inter,
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas,
    "Liberation Mono", monospace;
  color-scheme: dark;
}

/* 02. Base & typographie -------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img,
svg,
video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

a:hover { color: var(--accent-3); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 650;
  color: #f4f6f8;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.05em; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--text-2);
  line-height: 1.62;
  max-width: 62ch;
}

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 34px);
}

section { position: relative; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section-head {
  max-width: 68ch;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-line);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #06121b;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}

.skip:focus { left: 0; }

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

/* 03. Decor de fond ------------------------------------------------------ */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 82% -6%, rgba(94, 170, 220, 0.16), transparent 62%),
    radial-gradient(46% 34% at 6% 4%, rgba(94, 170, 220, 0.07), transparent 60%),
    linear-gradient(180deg, #0a0b0d 0%, #0c0e11 42%, #0a0b0d 100%);
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 12%, transparent 78%);
}

.halo {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(6px);
}

/* 04. En-tete & navigation ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 11, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f4f6f8;
  font-weight: 640;
  letter-spacing: 0.02em;
  margin-right: auto;
}

.brand:hover { color: #fff; }
.brand img,
.brand svg { width: 30px; height: 30px; }
.brand span { font-size: 1.02rem; }

.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}

nav.main ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.main a {
  display: block;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.93rem;
  border: 1px solid transparent;
  transition: all 0.18s var(--ease);
}

nav.main a:hover {
  color: #fff;
  background: var(--surface-2);
  border-color: var(--line);
}

nav.main a[aria-current="page"] {
  color: #fff;
  background: var(--surface-2);
  border-color: var(--line-2);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.icon-btn:hover {
  color: #fff;
  border-color: var(--line-2);
  background: var(--surface-3);
}

kbd {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

#burger { display: none; }

@media (max-width: 900px) {
  #burger { display: inline-flex; }
  nav.main {
    position: fixed;
    inset: 68px 0 auto;
    background: rgba(10, 11, 13, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 14px clamp(18px, 4vw, 34px) 22px;
    transform: translateY(-115%);
    transition: transform 0.28s var(--ease);
  }
  nav.main.open { transform: translateY(0); }
  nav.main ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  nav.main a { padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
}

/* 05. Boutons, etiquettes, pastilles ------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 560;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  color: #fff;
}

.btn--brand {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #08141d;
  font-weight: 640;
  box-shadow: 0 14px 30px -14px var(--accent-glow);
}

.btn--brand:hover {
  color: #08141d;
  box-shadow: 0 20px 40px -16px var(--accent-glow);
}

.btn--ghost { background: transparent; }
.btn--sm { padding: 9px 15px; font-size: 0.88rem; border-radius: 10px; }
.btn--lg { padding: 16px 28px; font-size: 1.03rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
}

.tag--brand {
  border-color: var(--accent-line);
  color: var(--accent-3);
  background: rgba(94, 170, 220, 0.1);
}

.tag--ok {
  border-color: rgba(111, 191, 143, 0.4);
  color: #9fd8b6;
  background: rgba(111, 191, 143, 0.1);
}

.tag--soon {
  border-color: rgba(217, 164, 65, 0.38);
  color: #e6c281;
  background: rgba(217, 164, 65, 0.1);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.dot--ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(111, 191, 143, 0.18); }
.dot--r { background: var(--danger); box-shadow: 0 0 0 3px rgba(224, 115, 111, 0.18); }

.pulse { animation: pulse 2.4s var(--ease) infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 06. Sections, grilles, cartes ----------------------------------------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0)),
    var(--surface);
  box-shadow: var(--shadow);
}

.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--text-2); margin-bottom: 0.7em; }

.card--lift {
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}

.card--lift:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-lift);
}

.card--brand { border-color: var(--accent-line); }
.card--quiet { background: var(--bg-soft); box-shadow: none; }

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.feature h4 { margin-bottom: 0.25em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.feature__ico {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--accent-line);
  background: rgba(94, 170, 220, 0.09);
  color: var(--accent-2);
}

.feature__ico svg { width: 20px; height: 20px; }

.note {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-line);
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 0.95rem;
}

.sep {
  height: 1px;
  border: 0;
  margin: clamp(32px, 5vw, 60px) 0;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.loops {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: etape;
}

.step {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.step::before {
  counter-increment: etape;
  content: "0" counter(etape);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  display: block;
  margin-bottom: 12px;
}

.step h4 { margin-bottom: 0.35em; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(94, 170, 220, 0.16), transparent 60%),
    var(--surface);
}

.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: var(--text-2); max-width: 52ch; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--mono);
  padding-top: 26px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-2); }

/* 07. Blocs heros ------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(52px, 7vw, 96px) clamp(40px, 5vw, 72px);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

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

.hero h1 .grad {
  background: linear-gradient(100deg, #fff 8%, var(--accent-3) 52%, var(--accent) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead { margin-bottom: 26px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.radar {
  position: relative;
  width: min(340px, 84vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, rgba(94, 170, 220, 0.12), transparent 68%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.radar::before { inset: 16%; }
.radar::after { inset: 33%; }

.radar__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(94, 170, 220, 0.32), transparent 28%);
  animation: sweep 5.6s linear infinite;
}

@keyframes sweep { to { transform: rotate(360deg); } }

.radar__core {
  position: relative;
  width: 50%;
  text-align: center;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--accent-line);
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(6px);
}

.radar__core strong { display: block; font-size: 1.6rem; letter-spacing: -0.02em; }

.radar__core span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.radar__blip {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(224, 115, 111, 0.16);
  animation: blip 3.7s var(--ease) infinite;
}

.radar__blip--2 { animation-delay: 1.2s; background: var(--warn); box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.16); }
.radar__blip--3 { animation-delay: 2.1s; }

@keyframes blip {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  18% { opacity: 1; transform: scale(1); }
  72% { opacity: 0; transform: scale(1.1); }
}

.call-feed {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.82rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}

.call-feed__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

.call-feed__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  animation: rise 0.5s var(--ease) both;
}

.call-feed__row:last-child { border-bottom: 0; }
.call-feed__row span:first-child { color: var(--text-2); }
.call-feed__row .verdict { color: var(--danger); }
.call-feed__row .verdict--ok { color: var(--ok); }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* 08. Maquette telephone & captures ------------------------------------- */
.phone {
  position: relative;
  width: min(268px, 62vw);
  border-radius: 34px;
  padding: 10px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #22262b, #101215);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 1), 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.phone::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone img {
  border-radius: 26px;
  width: 100%;
  background: #000;
}

.phone--float { animation: float 7s var(--ease) infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.phone-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.shots {
  display: flex;
  gap: 20px;
  padding: 6px 4px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shots::-webkit-scrollbar { height: 8px; }

.shots::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 999px;
}

.shot {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: min(250px, 62vw);
  text-align: center;
  margin: 0;
}

.shot figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.shot strong { color: var(--text); display: block; font-size: 0.95rem; }

.app-head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

@media (max-width: 760px) {
  .app-head { grid-template-columns: 1fr; justify-items: start; }
}

.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 1);
}

.banner {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
}

/* 09. Chiffres cles, comparatif, temoignages ---------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--line);
  overflow: hidden;
}

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stat {
  padding: 24px 20px;
  background: var(--bg-soft);
}

.stat b {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 0.95rem;
}

table.compare th,
table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table.compare thead th {
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

table.compare tbody th { font-weight: 560; color: var(--text); }
table.compare td { color: var(--text-2); }
table.compare tr:last-child th,
table.compare tr:last-child td { border-bottom: 0; }
table.compare .yes { color: #9fd8b6; }
table.compare .no { color: #e09a97; }

.quote {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  margin: 0;
}

.quote blockquote {
  margin: 0 0 14px;
  font-size: 1.03rem;
  color: var(--text);
  line-height: 1.6;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--mono);
}

.stars { color: var(--warn); letter-spacing: 2px; font-size: 0.9rem; }

/* 10. Terminal, QR, palette, jeux --------------------------------------- */
.terminal {
  font-family: var(--mono);
  font-size: 0.86rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: #0b0d10;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #101317;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.terminal pre {
  margin: 0;
  padding: 16px;
  min-height: 190px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-2);
}

.terminal .prompt { color: var(--accent-2); }

.qr-box {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.qr-frame {
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9);
}

.qr-frame img,
.qr-frame svg { width: 168px; height: 168px; }

.palette {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: start center;
  padding-top: 12vh;
  background: rgba(6, 7, 8, 0.66);
  backdrop-filter: blur(6px);
}

.palette.open { display: grid; }

.palette-box {
  width: min(560px, 92vw);
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.palette-box input {
  width: 100%;
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.palette-box input:focus { outline: none; }

.palette-box ul {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 46vh;
  overflow-y: auto;
}

.palette-box li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.94rem;
}

.palette-box li.sel { background: var(--surface-3); }

.game-shell {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.game-canvas {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #0b0d10;
  display: block;
  touch-action: none;
}

.hud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.hud b { color: var(--text); font-weight: 600; }

.pad {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

/* 11. Formulaires & contact --------------------------------------------- */
label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
}

textarea { min-height: 130px; resize: vertical; }

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field { margin-bottom: 16px; }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.contact-list svg {
  width: 18px;
  height: 18px;
  color: var(--accent-2);
  flex: 0 0 auto;
  margin-top: 3px;
}

/* 12. Pied de page ------------------------------------------------------ */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding-block: 46px 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.site-footer h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.site-footer a { color: var(--text-2); font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: var(--muted); font-size: 0.88rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

#progression {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 90;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

#haut {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 80;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(19, 22, 25, 0.9);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

#haut.visible { opacity: 1; pointer-events: auto; }
#haut:hover { transform: translateY(-3px); border-color: var(--accent-line); }

#toasts {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 130;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
}

.toast {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(19, 22, 25, 0.96);
  color: var(--text);
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  animation: toastIn 0.28s var(--ease);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose p,
.prose li { color: var(--text-2); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.94rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.prose th {
  color: var(--muted);
  font-weight: 560;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.missing {
  text-align: center;
  padding-block: clamp(70px, 12vw, 150px);
}

.missing .code {
  font-family: var(--mono);
  font-size: clamp(3.4rem, 12vw, 7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

/* 13. Animations & preferences ------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

.tilt { transition: transform 0.2s var(--ease); transform-style: preserve-3d; }

.konami { filter: hue-rotate(-18deg) saturate(1.25); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 14. Utilitaires ------------------------------------------------------- */
.stack { display: grid; gap: 14px; }
.stack--lg { gap: 26px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 20px; }
.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .backdrop,
  #progression,
  #haut,
  .site-header,
  #toasts { display: none !important; }
  body { background: #fff; color: #000; }
}
