/* ==========================================================================
   AutoPilote — design system
   Noir strict #0A0A0A / blanc #FFFFFF, zéro couleur d'accent. Montserrat.
   ========================================================================== */

:root {
  --color-bg: #0A0A0A;
  --color-bg-secondary: #131313;
  --color-bg-elevated: #1B1B1B;
  --color-text: #FFFFFF;
  --color-text-muted: #D8D8D8;
  --color-text-faint: #9A9A9A;
  --color-text-ghost: #4A4A4A;
  --color-border: rgba(255,255,255,0.08);
  --color-border-strong: rgba(255,255,255,0.16);
  --color-glow: rgba(255,255,255,0.05);

  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container-max: 1140px;
  --ease: cubic-bezier(.16,.8,.24,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---- Fond vivant : profondeur graphite + grain, monochrome, très subtil ---- */
body::before {
  content: "";
  position: fixed;
  top: -15%; left: -15%; width: 130%; height: 130%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 700px at 18% 8%, rgba(255,255,255,0.055), transparent 60%),
    radial-gradient(ellipse 800px 600px at 88% 28%, rgba(255,255,255,0.04), transparent 60%),
    radial-gradient(ellipse 900px 700px at 50% 98%, rgba(255,255,255,0.035), transparent 65%);
  animation: bg-drift 40s ease-in-out infinite alternate;
  will-change: transform;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes bg-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-1.4%, 1.4%) scale(1.015); }
  100% { transform: translate(1.4%, -1%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

main, .footer, .nav { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

@media (max-width: 640px) {
  h1, h2, h3, h4 { line-height: 1.28; }
}

p { color: var(--color-text-muted); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

section { padding: var(--space-9) 0; position: relative; }
@media (max-width: 720px) { section { padding: var(--space-7) 0; } }
section > .container { position: relative; z-index: 1; }

/* ---- Fonds de section alternés : grille de points / halos flottants ---- */
/* Gabarit répété section par section : noir plein aux deux bords, teinte seulement au milieu — jamais de rupture nette avec la section voisine */
.section-tint {
  background: linear-gradient(to bottom,
    var(--color-bg) 0%,
    var(--color-bg-secondary) 12%,
    var(--color-bg-secondary) 88%,
    var(--color-bg) 100%);
}

.section-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, black 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, black 25%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.section-glow { overflow: hidden; }
.section-glow-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, black 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, black 15%, transparent 75%);
}
.section-glow-blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.section-glow-blobs span:nth-child(1) {
  width: 480px; height: 480px; top: -160px; left: 4%;
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 70%);
  animation: blob-float-1 22s ease-in-out infinite;
}
.section-glow-blobs span:nth-child(2) {
  width: 420px; height: 420px; bottom: -140px; right: 6%;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
  animation: blob-float-2 26s ease-in-out infinite;
}
@keyframes blob-float-1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.12); }
}
@keyframes blob-float-2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-40px, -30px) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .section-glow-blobs span { animation: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-text);
}
/* Seule exception couleur du site, demandée explicitement par Ben (9 août) : indicateur "en ligne" vert clignotant sur l'eyebrow du hero. */
.eyebrow-live::before {
  background: #2ECC71;
  box-shadow: 0 0 6px rgba(46,204,113,0.7);
  animation: eyebrow-live-blink 1.6s ease-in-out infinite;
}
@keyframes eyebrow-live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-live::before { animation: none; }
}

.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: var(--space-4); font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), opacity .18s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.btn-solid { background: var(--color-text); color: #000; }
.btn-solid:hover { transform: translateY(-2px); opacity: 0.88; }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn-outline:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---- Cards ---- */
.card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  gap: var(--space-5);
}
.nav-logo img { height: 38px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.nav-links a:hover { color: var(--color-text); }
.nav-cta { display: flex; align-items: center; gap: var(--space-4); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.nav-toggle span {
  width: 16px; height: 1.5px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile-panel {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 var(--space-5);
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: max-height .35s var(--ease), opacity .3s var(--ease), padding .35s var(--ease);
}
.nav-mobile-panel > a:not(.btn) { padding: 12px 4px; font-weight: 600; color: var(--color-text-muted); }
.nav-mobile-panel .btn { margin-top: var(--space-2); }
.nav-mobile-panel.open {
  max-height: 420px;
  opacity: 1;
  padding: var(--space-3) var(--space-5) var(--space-5);
  border-bottom-color: var(--color-border);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile-panel { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: var(--space-6) 0 var(--space-8);
  position: relative;
  overflow-x: hidden;
  background: var(--color-bg);
}
.hero.section-dots::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1.2px);
  background-size: 26px 26px;
  /* transparent sous le header, visible au milieu (sous le téléphone), puis s'assombrit à nouveau avant la section suivante */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 6%, black 32%, black 50%, transparent 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 6%, black 32%, black 50%, transparent 82%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy p.lead {
  font-size: 1.15rem;
  margin-top: var(--space-5);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-7);
  flex-wrap: wrap;
}
.hero-note {
  margin-top: var(--space-5);
  font-size: 0.85rem;
  color: var(--color-text-faint);
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Bande de repères rapides (façon VocalOps)
   ========================================================================== */
.quickfacts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
  margin-top: var(--space-8);
  padding-top: var(--space-5);
}
.quickfact {
  padding: 0 var(--space-5);
  text-align: center;
}
.quickfact-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1.05rem;
}
.quickfact-desc {
  margin-top: var(--space-2);
  font-size: 0.82rem;
  color: var(--color-text-faint);
}
@media (max-width: 780px) {
  .quickfacts-row { grid-template-columns: 1fr 1fr; row-gap: var(--space-5); }
}

/* ==========================================================================
   Phone illustration — pièce maîtresse du hero
   ========================================================================== */
.phone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-6) 0;
  perspective: 1400px;
}

.phone-mock {
  position: relative;
  width: 300px;
  transform: rotateY(-8deg) rotateX(3deg);
  transform-style: preserve-3d;
}

.phone-frame {
  position: relative;
  width: 300px;
  height: 616px;
  background: linear-gradient(160deg, #1c1c1c, #0d0d0d);
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 60px 100px -40px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}
.phone-frame::before {
  /* bouton latéral (volume) */
  content: "";
  position: absolute;
  left: -2px; top: 130px;
  width: 3px; height: 56px;
  background: #050505;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 74px 0 #050505;
}
.phone-frame::after {
  /* bouton latéral (power) */
  content: "";
  position: absolute;
  right: -2px; top: 150px;
  width: 3px; height: 80px;
  background: #050505;
  border-radius: 0 2px 2px 0;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #050505;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #050505;
  border-radius: var(--radius-pill);
  z-index: 5;
}

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
}
.phone-signal { display: flex; align-items: center; gap: 4px; }
.phone-signal-bars { display: flex; align-items: flex-end; gap: 2px; height: 8px; }
.phone-signal-bars span { width: 3px; background: var(--color-text); border-radius: 1px; }
.phone-signal-bars span:nth-child(1){ height: 3px; }
.phone-signal-bars span:nth-child(2){ height: 5px; }
.phone-signal-bars span:nth-child(3){ height: 7px; }
.phone-signal-bars span:nth-child(4){ height: 8px; }
.phone-battery {
  width: 20px; height: 10px;
  border: 1px solid var(--color-text);
  border-radius: 3px;
  position: relative;
  padding: 1px;
}
.phone-battery::after {
  content: "";
  position: absolute;
  right: -3px; top: 3px;
  width: 2px; height: 4px;
  background: var(--color-text);
  border-radius: 0 1px 1px 0;
}
.phone-battery i { display: block; width: 70%; height: 100%; background: var(--color-text); border-radius: 1px; }

.phone-content {
  flex: 1;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* En-tête d'appel */
.phone-call-head {
  text-align: center;
  padding: 6px 0 16px;
  flex-shrink: 0;
}
.phone-call-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.phone-call-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-ring-dot 1.6s var(--ease) infinite;
}
.phone-call-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1.15rem;
  margin-top: 6px;
}
.phone-call-timer {
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}
@keyframes pulse-ring-dot {
  0%, 100% { opacity: 1; } 50% { opacity: .35; }
}

/* Waveform */
.phone-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 34px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.phone-waveform.active { opacity: 1; }
.phone-waveform span {
  width: 3px;
  background: var(--color-text);
  border-radius: 2px;
  height: 6px;
  animation: phone-wave 1.1s ease-in-out infinite;
  animation-play-state: paused;
}
.phone-waveform.active span { animation-play-state: running; }
.phone-waveform span:nth-child(odd) { background: var(--color-text-faint); }
.phone-waveform span:nth-child(1){ animation-delay: 0s; }
.phone-waveform span:nth-child(2){ animation-delay: .08s; }
.phone-waveform span:nth-child(3){ animation-delay: .16s; }
.phone-waveform span:nth-child(4){ animation-delay: .24s; }
.phone-waveform span:nth-child(5){ animation-delay: .32s; }
.phone-waveform span:nth-child(6){ animation-delay: .24s; }
.phone-waveform span:nth-child(7){ animation-delay: .16s; }
.phone-waveform span:nth-child(8){ animation-delay: .08s; }
.phone-waveform span:nth-child(9){ animation-delay: 0s; }
@keyframes phone-wave {
  0%, 100% { height: 5px; }
  50% { height: 26px; }
}

/* Transcript */
.phone-transcript {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 0;
  padding-bottom: 4px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 100%);
}
.phone-line {
  position: relative;
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 0.78rem;
  line-height: 1.4;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.phone-line.show { opacity: 1; transform: translateY(0); }
.phone-line.client {
  align-self: flex-start;
  background: var(--color-bg-elevated);
  color: var(--color-text-muted);
  border-bottom-left-radius: 4px;
}
.phone-line.client::after {
  content: "";
  position: absolute;
  left: -6px; bottom: 0;
  width: 10px; height: 12px;
  background: var(--color-bg-elevated);
  clip-path: polygon(100% 0, 100% 100%, 0% 100%);
}
.phone-line.agent {
  align-self: flex-end;
  background: var(--color-text);
  color: #000;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}
.phone-line.agent::after {
  content: "";
  position: absolute;
  right: -6px; bottom: 0;
  width: 10px; height: 12px;
  background: var(--color-text);
  clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
}

/* bulle "en train d'écrire" dans le fil du téléphone */
.phone-typing {
  align-self: flex-end;
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 15px;
  border-bottom-right-radius: 4px;
  background: var(--color-bg-elevated);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.phone-typing.show { opacity: 1; transform: translateY(0); }
.phone-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-text-faint);
  animation: typing-bounce 1.1s infinite ease-in-out;
}
.phone-typing span:nth-child(2) { animation-delay: .15s; }
.phone-typing span:nth-child(3) { animation-delay: .3s; }

/* Mini calendrier */
.phone-calendar {
  flex-shrink: 0;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .4s var(--ease);
}
.phone-calendar.show { max-height: 160px; opacity: 1; }
.phone-calendar-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.phone-calendar-slots { display: flex; gap: 6px; }
.phone-slot {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-faint);
}
.phone-slot.selected {
  background: var(--color-text);
  color: #000;
  border-color: var(--color-text);
}

/* Confirmation */
.phone-confirm {
  flex-shrink: 0;
  text-align: center;
  padding: 18px 10px 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s var(--ease);
}
.phone-confirm.show { max-height: 140px; opacity: 1; }
.phone-confirm-check {
  width: 34px; height: 34px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1.5px solid var(--color-text);
  display: flex; align-items: center; justify-content: center;
}
.phone-confirm-check svg { width: 15px; height: 15px; }
.phone-confirm-title { font-weight: 700; font-size: 0.85rem; }
.phone-confirm-sub { font-size: 0.72rem; color: var(--color-text-faint); margin-top: 3px; }

@media (prefers-reduced-motion: reduce) {
  .phone-mock { transform: none; }
  .phone-call-eyebrow::before,
  .phone-waveform span { animation: none; }
}

@media (max-width: 980px) {
  .phone-stage { padding: var(--space-5) 0 0; }
}

/* ==========================================================================
   Mockups — conversation / call transcript ("deux canaux")
   ========================================================================== */
.channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
@media (max-width: 860px) { .channels-grid { grid-template-columns: 1fr; } }

.mockup-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}
.mockup-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-text);
  flex-shrink: 0;
}
.mockup-dot.live { position: relative; }
.mockup-dot.live::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  animation: pulse-ring 2.2s var(--ease) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.mockup-body { padding: var(--space-5); }

/* DM thread */
.dm-thread { display: flex; flex-direction: column; gap: var(--space-3); }
.dm-bubble {
  max-width: 82%;
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.dm-bubble.in {
  align-self: flex-start;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
  color: var(--color-text-muted);
}
.dm-bubble.out {
  align-self: flex-end;
  background: var(--color-text);
  color: #000;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}
.dm-time {
  align-self: flex-end;
  font-size: 0.72rem;
  color: var(--color-text-faint);
  margin-top: -4px;
}

/* Call transcript */
.call-transcript { display: flex; flex-direction: column; gap: var(--space-4); }
.call-line { display: flex; gap: var(--space-3); font-size: 0.92rem; }
.call-speaker {
  flex-shrink: 0;
  width: 96px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding-top: 2px;
}
.call-line.agent .call-speaker { color: var(--color-text); }
.call-line p { margin: 0; color: var(--color-text-muted); }
.call-line.agent p { color: var(--color-text); }
.call-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}
.call-wave span {
  width: 3px;
  background: var(--color-text-faint);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}
.call-wave span:nth-child(2){ animation-delay: .1s; }
.call-wave span:nth-child(3){ animation-delay: .2s; }
.call-wave span:nth-child(4){ animation-delay: .3s; }
.call-wave span:nth-child(5){ animation-delay: .4s; }
@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

.channel-caption { margin-top: var(--space-5); }
.channel-caption h3 { margin-bottom: var(--space-2); }

/* ==========================================================================
   Flow timeline — "ce qui se passe à chaque interaction" (scroll-déclenché)
   ========================================================================== */
.flow-timeline {
  max-width: 620px;
  margin: 0 auto;
}
.flow-step {
  display: flex;
  gap: var(--space-5);
}
.flow-marker {
  flex-shrink: 0;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flow-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text-faint);
  flex-shrink: 0;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.flow-step.active .flow-node {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #000;
}
.flow-line {
  flex: 1;
  width: 1.5px;
  min-height: 56px;
  background: var(--color-border-strong);
  margin: 6px 0;
  position: relative;
  overflow: hidden;
}
.flow-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: var(--color-text);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .6s var(--ease);
}
.flow-step.active .flow-line::after { transform: scaleY(1); }

.flow-content {
  flex: 1;
  min-width: 0;
  padding-bottom: var(--space-8);
  opacity: 0.25;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.flow-step.active .flow-content { opacity: 1; transform: translateY(0); }
.flow-content h3 { margin-bottom: var(--space-2); }
.flow-content p { font-size: 0.92rem; }
.flow-step:last-child .flow-content { padding-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .flow-node, .flow-line::after, .flow-content { transition: none; }
}

/* ==========================================================================
   Console — illustration vivante "comment ça marche" (un vrai écran qui joue seul)
   ========================================================================== */
.console-stage { max-width: 460px; margin: 0 auto; }
.console-screen {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7);
}
.console-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-muted);
}
.console-body { position: relative; min-height: 230px; }
.console-scene {
  position: absolute;
  inset: 0;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.console-scene.active { opacity: 1; }

.console-setup-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.94rem;
  color: var(--color-text-muted);
}
.console-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-strong);
  flex-shrink: 0;
  position: relative;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.console-scene.active .console-check { border-color: var(--color-text); background: var(--color-text); }
.console-scene.active .console-check::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.scene-notify { display: flex; align-items: center; gap: var(--space-4); }
.scene-notify-title { font-weight: 700; }
.scene-notify-sub { font-size: 0.82rem; color: var(--color-text-faint); margin-top: 2px; }

.confirm-scene { text-align: center; }
.confirm-scene .phone-confirm-check { margin: 0 auto 12px; }

.console-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.console-caption-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-text);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.console-caption-label {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1.1rem;
}
@media (prefers-reduced-motion: reduce) {
  .console-scene { transition: none; }
}

/* ==========================================================================
   Comparaison — AutoPilote vs réceptionniste humain
   ========================================================================== */
.compare-table { max-width: 740px; margin: 0 auto; }
.ct-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
}
.ct-row:first-child { border-top: none; }
.ct-label { font-size: 0.86rem; font-weight: 600; color: var(--color-text-muted); }
.ct-col { font-size: 0.88rem; color: var(--color-text-faint); text-align: center; }
.ct-highlight {
  color: var(--color-text);
  font-weight: 700;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.ct-head .ct-col {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-text-faint);
}
.ct-head .ct-highlight { color: var(--color-text); background: transparent; padding: 0; }

@media (max-width: 640px) {
  .ct-row { grid-template-columns: 1fr; gap: var(--space-2); text-align: center; padding: var(--space-5) 0; }
  .ct-label { font-weight: 900; font-family: var(--font-heading); font-style: italic; font-size: 0.95rem; color: var(--color-text); }
  .ct-col { text-align: center; }
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: stretch;
}
@media (max-width: 780px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-grid-single { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
.pricing-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}
.pricing-card.featured {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-strong);
  box-shadow: 0 0 0 1px var(--color-border-strong), 0 40px 80px -40px rgba(0,0,0,0.7);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: var(--space-7);
  background: var(--color-text);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}
.pricing-name { font-size: 0.85rem; font-weight: 700; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-price { margin-top: var(--space-3); display: flex; align-items: baseline; gap: var(--space-2); }
.pricing-price .amount { font-family: var(--font-heading); font-weight: 900; font-style: italic; font-size: 3rem; }
.pricing-price .period { color: var(--color-text-faint); font-size: 0.95rem; }
.pricing-install { margin-top: var(--space-1); font-size: 0.95rem; display: flex; align-items: baseline; gap: var(--space-2); }
.price-was {
  text-decoration: line-through;
  color: var(--color-text-faint);
  font-weight: 600;
}
.price-free {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  color: var(--color-text);
}
.pricing-list { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.pricing-list li { display: flex; gap: var(--space-3); font-size: 0.92rem; color: var(--color-text-muted); }
.pricing-list li::before { content: "—"; color: var(--color-text-faint); flex-shrink: 0; }
.pricing-card .btn { margin-top: var(--space-6); }
.pricing-fine { margin-top: var(--space-9); text-align: center; font-size: 0.85rem; color: var(--color-text-faint); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-weight: 700;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text-faint);
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: var(--space-4); font-size: 0.95rem; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final { text-align: center; }
.cta-final .btn { margin-top: var(--space-6); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-7) 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-5);
}
.footer-brand { display: flex; align-items: center; gap: var(--space-5); justify-self: start; }
.footer-logo img { height: 22px; }
.footer-copy { justify-self: center; text-align: center; white-space: nowrap; }
.footer-links { display: flex; gap: var(--space-5); font-size: 0.85rem; color: var(--color-text-faint); justify-self: end; }
.footer-links a:hover { color: var(--color-text); }
.footer-divider { width: 1px; height: 22px; background: var(--color-border-strong); flex-shrink: 0; }
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  opacity: 0.85;
  transition: opacity .2s var(--ease);
}
.footer-social a:hover { opacity: 1; }
.footer-social svg { width: 20px; height: 20px; }
.footer-copy { font-size: 0.78rem; color: var(--color-text-faint); }
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-brand, .footer-copy, .footer-links { justify-self: center; }
  .footer-copy { white-space: normal; }
}

/* ==========================================================================
   Views (home / booking / demo)
   ========================================================================== */
.view { display: none; }
.view.active { display: block; }

.view-header { padding: var(--space-8) 0 var(--space-6); text-align: center; }
.view-header .back-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
}
.view-header .back-link:hover { color: var(--color-text); }
.view-header .eyebrow { color: var(--color-text); }
.view-header .eyebrow::before { display: none; }
.view-header h1 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.view-header p:not(.eyebrow) { color: var(--color-text); }

/* ---- Booking ---- */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 900px) { .booking-layout { grid-template-columns: 1fr; } }

.form-field { margin-bottom: var(--space-4); }
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--color-text);
  font-size: 0.92rem;
  transition: border-color .15s var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--color-text);
}
.form-field textarea { resize: vertical; min-height: 84px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-status { margin-top: var(--space-4); font-size: 0.88rem; min-height: 1.4em; }
.form-status.success { color: var(--color-text); }
.form-status.error { color: var(--color-text-muted); }

/* Scheduler */
.scheduler { }
.scheduler-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.scheduler-nav button {
  background: transparent; border: 1px solid var(--color-border-strong);
  color: var(--color-text); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.scheduler-nav button:disabled { opacity: 0.3; cursor: default; }
.scheduler-nav button:not(:disabled):hover { background: rgba(255,255,255,0.06); }
#cal-month-label { font-weight: 700; text-transform: capitalize; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--color-text-muted);
}
.cal-day:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.cal-day.disabled { color: var(--color-text-faint); opacity: 0.3; cursor: default; pointer-events: none; }
.cal-day.empty { visibility: hidden; }

.time-header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.time-header button {
  background: transparent; border: 1px solid var(--color-border-strong);
  color: var(--color-text); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
#time-date-label { font-weight: 700; text-transform: capitalize; }
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.time-slot {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.85rem;
  color: var(--color-text);
}
.time-slot:hover { background: rgba(255,255,255,0.1); }

.scheduler-summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}
.scheduler-summary-text { font-weight: 700; text-transform: capitalize; }
.scheduler-change {
  background: transparent; border: none; color: var(--color-text-faint);
  font-size: 0.8rem; font-weight: 700; text-decoration: underline;
}
.scheduler-change:hover { color: var(--color-text); }

/* ---- Demo chat (page à part, plein écran, inspirée de ChatGPT) ---- */
body.is-app-view .nav,
body.is-app-view .footer { display: none; }

#view-demo.active {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.demo-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
}
.demo-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.demo-back svg { width: 19px; height: 19px; }
.demo-back:hover { background: var(--color-bg-elevated); border-color: var(--color-text-faint); }
.demo-voice-cta { flex-shrink: 0; }

.demo-shell {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.demo-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-5) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.demo-log::-webkit-scrollbar { display: none; }
.demo-log.is-empty { justify-content: center; }

.demo-suggestions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-6) var(--space-2) 0;
}
.demo-suggestion-chip {
  background: transparent;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.demo-suggestion-chip:hover {
  color: var(--color-text);
  border-color: var(--color-text-faint);
  background: var(--color-bg-elevated);
}
.demo-row { display: flex; align-items: flex-start; gap: var(--space-3); }
.demo-avatar-sm {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.demo-avatar-sm img { width: 20px; height: 20px; object-fit: contain; }
.demo-msg {
  max-width: 100%;
  font-size: 0.98rem;
  line-height: 1.7;
}
.demo-msg.bot {
  background: transparent;
  color: var(--color-text-muted);
  padding-top: 3px;
}
.demo-msg.bot p { color: inherit; margin: 0 0 10px; }
.demo-msg.bot p:last-child { margin-bottom: 0; }
.demo-msg.bot ul { margin: 0 0 10px; padding-left: 18px; list-style: disc; }
.demo-msg.bot strong { color: var(--color-text); }
.demo-msg.user {
  align-self: flex-end;
  max-width: 78%;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  border-radius: 18px;
  padding: 11px 16px;
  font-weight: 500;
}
.demo-typing { display: flex; gap: 4px; padding: 8px 0; }
.demo-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-text-faint);
  animation: typing-bounce 1.1s infinite ease-in-out;
}
.demo-typing span:nth-child(2) { animation-delay: .15s; }
.demo-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.demo-form {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5);
  margin-top: var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: 28px;
  background: var(--color-bg-elevated);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,0.85);
}
.demo-input-wrap { flex: 1; }
.demo-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 0;
  color: var(--color-text);
  font-size: 0.96rem;
}
.demo-input:focus { outline: none; }
.demo-form button {
  background: var(--color-text);
  color: #000;
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  transition: opacity .2s var(--ease);
}
.demo-form button:hover { opacity: 0.85; }
@media (max-width: 640px) {
  .demo-topbar { padding: var(--space-3) var(--space-4); }
  .demo-shell { padding: 0 var(--space-4) var(--space-4); }
}

/* ---- utility ---- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
