/* ==========================================================================
   pages.css — Page-specific styles
   ========================================================================== */

/* ====================================================================
   PAGE HEADER — non-home pages intro
   ==================================================================== */

.page-header {
  padding-block: var(--space-9) var(--space-8);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.page-header .eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-regular);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  color: var(--fg);
  max-width: 18ch;
  margin: 0 auto var(--space-5);
}

.page-header h1 em {
  font-style: italic;
  color: var(--accent);
}

.page-header p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-muted);
  max-width: 50ch;
  margin: 0 auto;
}

/* ====================================================================
   SERVICE — single service page
   ==================================================================== */

.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: start;
  margin-bottom: var(--space-9);
}

@media (min-width: 960px) {
  .service-detail {
    grid-template-columns: 1fr 1fr;
  }
}

.service-detail-media {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-5));
}

.service-detail-content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tr-heading);
  color: var(--fg);
  margin: 0 0 var(--space-5);
}

.service-detail-content p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-muted);
  margin-bottom: var(--space-4);
}

.service-detail-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}

.service-detail-content li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
  color: var(--fg);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.service-detail-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

/* ====================================================================
   CHAT DEMO — interactive chatbot
   ==================================================================== */

.chat-demo {
  max-width: 560px;
  margin-inline: auto;
  background: var(--bg);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
}

.chat-status {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  color: var(--fg-muted);
}

.chat-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p-success);
  margin-right: 6px;
  box-shadow: 0 0 6px var(--p-success);
}

.chat-body {
  padding: var(--space-5);
  min-height: 320px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.chat-msg {
  max-width: 80%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
}

.chat-msg--bot {
  align-self: flex-start;
  background: var(--surface);
  color: var(--fg);
  border-bottom-left-radius: 4px;
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-fg);
  border-bottom-right-radius: 4px;
}

.chat-msg--typing {
  align-self: flex-start;
  background: var(--surface);
  padding: var(--space-4);
  border-bottom-left-radius: 4px;
}

.chat-input {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
}

.chat-input input {
  flex: 1;
  background: var(--bg);
  border-color: var(--border-default);
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-4);
  background: var(--surface);
}

.chat-quick button {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  color: var(--fg-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.chat-quick button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ====================================================================
   VOICE DEMO
   ==================================================================== */

.voice-demo {
  max-width: 480px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-7);
  background: var(--bg);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.voice-orb {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-5);
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.voice-orb::before,
.voice-orb::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: orb-pulse 2.5s var(--ease-in-out) infinite;
}

.voice-orb::after {
  animation-delay: 0.5s;
  inset: -16px;
}

.voice-transcript {
  text-align: left;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

.voice-transcript-line {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
}

.voice-transcript-line strong {
  flex-shrink: 0;
  font-weight: var(--fw-semibold);
  color: var(--accent);
  width: 60px;
}

.voice-transcript-line p {
  color: var(--fg-muted);
  margin: 0;
}

/* ====================================================================
   ABOUT — founder card
   ==================================================================== */

.founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-7);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

@media (min-width: 720px) {
  .founder {
    grid-template-columns: 200px 1fr;
    text-align: left;
  }
}

.founder-portrait {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--p-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent-fg);
  margin-inline: auto;
}

.founder-meta h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tr-heading);
  color: var(--fg);
  margin: 0 0 var(--space-2);
}

.founder-meta .role {
  font-family: var(--font-sans);
  font-size: var(--fs-body-sm);
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.founder-meta p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-muted);
  margin: 0;
}

/* ====================================================================
   STATS — big numbers
   ==================================================================== */

.stat {
  text-align: center;
  padding: var(--space-6);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-regular);
  line-height: 1;
  letter-spacing: var(--tr-display);
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-family: var(--font-sans);
  font-size: var(--fs-body-sm);
  color: var(--fg-muted);
}

/* ====================================================================
   LEGAL — mentions, confidentialite, cgv
   ==================================================================== */

.legal-content {
  max-width: var(--container-prose);
  margin: 0 auto;
  padding-block: var(--space-9);
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tr-display);
  color: var(--fg);
  margin: 0 0 var(--space-3);
}

.legal-content .updated {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  color: var(--fg-faint);
  margin-bottom: var(--space-7);
}

.legal-callout {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--card-pad);
  margin-block: var(--space-6);
}

.legal-callout h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tr-heading);
  color: var(--accent);
  margin: 0 0 var(--space-3);
}

/* ====================================================================
   404 — error page
   ==================================================================== */

.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-7);
  background: var(--bg);
}

.notfound-code {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 16rem);
  font-weight: var(--fw-regular);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent);
  text-shadow: 0 0 32px rgba(191, 255, 0, 0.4),
               0 0 64px rgba(191, 255, 0, 0.2);
  margin-bottom: var(--space-5);
}

.notfound h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-regular);
  color: var(--fg);
  margin: 0 0 var(--space-3);
}

.notfound p {
  font-size: var(--fs-body);
  color: var(--fg-muted);
  max-width: 40ch;
  margin: 0 auto var(--space-6);
}

/* ====================================================================
   OFFLINE — PWA offline fallback
   ==================================================================== */

.offline {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-7);
  background: var(--bg);
}

.offline-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-5);
}
