/* ===========================================================
   ECHO — Design tokens & base styles
   Communauté gaming · night-black + copper/amber
   =========================================================== */

:root {
  /* Palette */
  --night:    #12100F;
  --deep:     #1C1917;
  --surface:  #26211D;
  --copper:   #B9783F;
  --amber:    #D39A58;
  --ivory:    #EAE3D7;

  /* Accent (tweakable) */
  --accent:   var(--copper);
  --accent-2: var(--amber);

  /* Text tiers */
  --txt:      #EAE3D7;
  --txt-2:    #B7AEA2;
  --txt-3:    #7C746C;

  /* Lines */
  --line:     rgba(234, 227, 215, 0.10);
  --line-2:   rgba(234, 227, 215, 0.06);

  /* Glow intensity */
  --glow: 1;

  /* Radii */
  --r-card: 16px;
  --r-ctrl: 11px;
  --r-pill: 999px;

  /* Type */
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-sans: "Source Sans 3", system-ui, sans-serif;

  /* Shadows */
  --sh-card: 0 1px 0 rgba(234,227,215,0.04), 0 24px 60px -28px rgba(0,0,0,0.8);
  --sh-glow: 0 0 0 1px rgba(185,120,63,0.30), 0 18px 60px -22px rgba(185,120,63,calc(0.30 * var(--glow)));

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--txt);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(185,120,63,0.35); color: var(--ivory); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Public brand asset rendered as CSS background to avoid direct image context menu. */
.brand-logo {
  display: inline-block;
  flex: 0 0 auto;
  background-image: url("../brand/LogoECHO.png?v=202606072105");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.brand-logo--nav {
  width: 110px;
  height: 165px;
}
.brand-logo--card {
  width: 187px;
  height: 56px;
}
.brand-logo--footer {
  width: 130px;
  height: 195px;
}
@media (max-width: 640px) {
  .brand-logo--nav {
    width: 101px;
    height: 152px;
  }
  .brand-logo--card {
    width: 168px;
    height: 50px;
  }
  .brand-logo--footer {
    width: 115px;
    height: 173px;
  }
}


/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 28px;
}
@media (max-width: 640px){ .container { padding-inline: 20px; } }

.section { position: relative; padding-block: clamp(72px, 10vw, 132px); }

/* ---- Type scale ---- */
.eyebrow {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 6.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ivory);
}
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ivory);
}
.h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ivory);
}
.lead { font-size: 18px; color: var(--txt-2); max-width: 56ch; }
.muted { color: var(--txt-3); }

/* ---- Buttons ---- */
.btn {
  --pad-y: 14px; --pad-x: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-ctrl);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), opacity .15s;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #1a0f06;
  box-shadow: var(--sh-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(211,154,88,0.5), 0 24px 70px -20px rgba(185,120,63,calc(0.55 * var(--glow)));
}
.btn--ghost {
  background: rgba(234,227,215,0.03);
  color: var(--ivory);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: rgba(234,227,215,0.07);
  border-color: rgba(234,227,215,0.22);
  transform: translateY(-2px);
}
.btn--sm { --pad-y: 10px; --pad-x: 16px; font-size: 13px; }

/* ---- Badge ---- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--txt-2);
  background: rgba(234,227,215,0.02);
}
.badge--online { color: #8Fcaa0; border-color: rgba(110,190,130,0.28); }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #57c47a; box-shadow: 0 0 0 0 rgba(87,196,122,0.6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(87,196,122,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(87,196,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(87,196,122,0); }
}

/* ---- Cards ---- */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--deep) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }

@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .dot { animation: none; }
}

/* ---- Decorative hairline divider ---- */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
}

/* ---- Section eyebrow header ---- */
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 60ch; }
.sec-head .filet {
  width: 56px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 4px;
}

/* utility */
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
