/* Echo Cave — vitrine. Thème sombre, motif spéléo, zéro dépendance externe. */

:root {
  --bg:        #0a0c10;
  --bg-elev:   #12151b;
  --bg-elev-2: #171b22;
  --border:    #232a33;
  --border-soft: #1b212a;

  --text:      #e7ecf3;
  --text-dim:  #9aa6b4;
  --text-faint:#6b7787;

  --accent:        #f4a23b; /* lampe / casque */
  --accent-strong: #ffb44d;
  --accent-glow:   rgba(244, 162, 59, .14);

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1080px;

  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.4rem;
}
.wordmark {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; color: var(--text);
  display: inline-flex; align-items: center; gap: .55rem;
}
.wordmark .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.header-link { font-size: .92rem; color: var(--text-dim); font-weight: 500; }
.header-link:hover { color: var(--text); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  min-height: 84vh;
  padding-block: 4rem 5rem;
}
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 70%;
  background: radial-gradient(60% 60% at 50% 30%, var(--accent-glow), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-contours {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--accent); opacity: .07; z-index: 0; pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; margin-bottom: 1.6rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(244,162,59,.06);
  font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-strong);
}
.badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 5rem); font-weight: 700; line-height: 1.02;
  letter-spacing: -.035em; color: var(--text);
}
.hero .lede {
  margin: 1.4rem auto 0; max-width: 38ch;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--text-dim);
}
.hero-cta { margin-top: 2.4rem; display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: var(--radius-sm);
  font-size: .98rem; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #1a1206; }
.btn-primary:hover { background: var(--accent-strong); color: #1a1206; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-faint); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ── Sections ───────────────────────────────────────── */
section { position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 44ch; margin: 0 auto 2.8rem; }
.section-head .eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.section-head h2 {
  margin-top: .6rem; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700;
  letter-spacing: -.02em; color: var(--text);
}
.section-head p { margin-top: .8rem; color: var(--text-dim); }

.features { padding-block: 5rem; border-top: 1px solid var(--border-soft); }
.feature-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border); background: var(--bg-elev-2); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card .icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: rgba(244,162,59,.1); color: var(--accent); border: 1px solid rgba(244,162,59,.18);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.08rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.card p { font-size: .95rem; color: var(--text-dim); }

/* ── Newsletter ─────────────────────────────────────── */
.newsletter { padding-block: 5rem; border-top: 1px solid var(--border-soft); }
.newsletter-card {
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--border); border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.2rem); text-align: center;
}
.newsletter-card h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; }
.newsletter-card p { color: var(--text-dim); margin-top: .7rem; }
.subscribe {
  margin: 1.8rem auto 0; max-width: 460px;
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.subscribe input[type=email] {
  flex: 1 1 220px; min-width: 0;
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  font-size: .98rem;
}
.subscribe input::placeholder { color: var(--text-faint); }
.subscribe input:focus-visible { border-color: var(--accent); outline: none; }
.subscribe .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: .9rem; font-size: .92rem; min-height: 1.2em; color: var(--text-dim); }
.form-status.ok { color: var(--accent-strong); }
.form-status.error { color: #f08a7c; }
.fineprint { margin-top: .8rem; font-size: .8rem; color: var(--text-faint); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border-soft); padding-block: 2.5rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
}
.footer-brand { font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: .5rem; }
.footer-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .9rem; }
.footer-links a { color: var(--text-dim); font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; margin-top: 1rem; font-size: .82rem; color: var(--text-faint); }

/* ── Pages légales (prose) ──────────────────────────── */
.legal { padding-block: 3.5rem 5rem; }
.legal .back { font-size: .9rem; font-weight: 500; color: var(--text-dim); display: inline-block; margin-bottom: 2rem; }
.legal .back:hover { color: var(--text); }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
.legal .updated { color: var(--text-faint); font-size: .9rem; margin-top: .5rem; margin-bottom: 2.4rem; }
.legal h2 { font-size: 1.3rem; font-weight: 600; margin-top: 2.4rem; margin-bottom: .7rem; color: var(--text); }
.legal p, .legal li { color: var(--text-dim); }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal .todo {
  display: inline-block; padding: .05rem .4rem; border-radius: 5px;
  background: rgba(244,162,59,.12); color: var(--accent-strong);
  font-size: .85em; border: 1px dashed rgba(244,162,59,.4);
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
