/* ============================================================
   Créer une page web animée avec Claude Code — styles
   Palette : fond nuit, crème, accent corail (clin d'œil Claude)
   ============================================================ */

:root {
  --bg: #0e0d0b;
  --bg-soft: #161411;
  --surface: #1d1a16;
  --line: #2e2a24;
  --text: #f3ede4;
  --text-dim: #a89f92;
  --accent: #e07856;
  --accent-soft: rgba(224, 120, 86, 0.14);
  --green: #0ae448; /* vert GSAP, pour les touches code */
  --radius: 18px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ===== Compatibilité barre d'admin WordPress ===== */
body.admin-bar .progress-bar { top: 32px; }
body.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .progress-bar { top: 46px; }
  body.admin-bar .nav { top: 46px; }
}

/* ===== Barre de progression ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 100;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem clamp(1.5rem, 5vw, 4rem);
  z-index: 50;
  background: linear-gradient(to bottom, rgba(14, 13, 11, 0.9), transparent);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--accent); margin: 0 2px; }

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.25s ease;
}
.nav__links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7rem clamp(1.5rem, 5vw, 4rem) 4rem;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__orb--1 {
  width: 480px; height: 480px;
  background: rgba(224, 120, 86, 0.16);
  top: -8%; left: -10%;
}
.hero__orb--2 {
  width: 420px; height: 420px;
  background: rgba(10, 228, 72, 0.07);
  bottom: -12%; right: -8%;
}

.hero__content {
  position: relative;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(224, 120, 86, 0.3);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__subtitle {
  max-width: 640px;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin-bottom: 2.2rem;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  display: inline-block;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #1a0f0a; }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); }

/* Terminal du hero */
.hero__terminal {
  width: min(620px, 100%);
  margin-top: 3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}
.terminal__bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--line);
}
.terminal__bar span:nth-child(1) { background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: #28c840; }
.terminal__bar p {
  margin-left: auto; margin-right: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.terminal__body {
  padding: 1.1rem 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.terminal__prompt { color: var(--green); }
.terminal__cmd { color: var(--text); }
.terminal__cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
.terminal__ok {
  margin-top: 0.6rem;
  color: var(--green);
  font-size: 0.78rem;
  opacity: 0;
}

@keyframes blink { 50% { opacity: 0; } }

.hero__scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  background: var(--bg-soft);
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dim);
  padding-right: 0.5rem;
}

/* ===== Têtes de section ===== */
.section-head {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
  padding: 0 1.5rem;
}
.section-head__kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* ===== Étapes ===== */
.steps { padding: 7rem 0 8rem; }

.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.step-card:hover {
  border-color: rgba(224, 120, 86, 0.45);
  transform: translateY(-4px);
}

.step-card__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step-card p { color: var(--text-dim); font-size: 0.93rem; }

.step-card pre {
  margin-top: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
}
.step-card code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--green);
  white-space: pre;
}

/* ===== Prompts (pin + scroll horizontal) ===== */
.prompts { background: var(--bg-soft); }

.prompts__pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0;
  overflow: hidden;
}

.section-head--light { margin-bottom: 3rem; }

.prompts__hint {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.prompts__track {
  display: flex;
  gap: 1.6rem;
  padding: 0 clamp(1.5rem, 8vw, 8rem);
  width: max-content;
}

.prompt-card {
  width: min(460px, 78vw);
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
}

.prompt-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid rgba(224, 120, 86, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.2rem;
}

.prompt-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.prompt-card__text {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.prompt-card__api {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
}

/* ===== Démo ===== */
.demo {
  padding: 8rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo__sub { margin-top: 1rem; color: var(--text-dim); font-size: 0.95rem; }

.burger {
  margin-top: 3rem;
  width: 110px; height: 110px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s ease;
}
.burger:hover { border-color: var(--accent); }

.burger__line {
  position: absolute;
  left: 50%;
  width: 46px; height: 4px;
  border-radius: 2px;
  background: var(--text);
  transform: translateX(-50%);
}
.burger__line--top { top: 38px; }
.burger__line--mid { top: 53px; }
.burger__line--bot { top: 68px; }

.demo__replay { margin-top: 3.5rem; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 7rem 1.5rem 3rem;
  text-align: center;
}

.footer__big {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 2.5rem;
}

.footer__note {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.footer__credit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===== Accessibilité : mouvement réduit ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .terminal__cursor { animation: none; }
}
