/* ==========================================================================
   Bilan : Design Tokens & Shared Styles
   ========================================================================== */

/* Motion tokens (from transitions.dev) */
:root {
  color-scheme: light;
  --duration-stagger: 40ms;
  --duration-micro: 80ms;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-medium: 350ms;
  --duration-slow: 400ms;
  --duration-very-slow: 500ms;

  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: ease-in-out;
  --ease-out: ease-out;
  --ease-linear: linear;
  --ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1);
  --ease-bounce-strong: cubic-bezier(0.34, 3.85, 0.64, 1);

  --distance-micro: 4px;
  --distance-small: 6px;
  --distance-base: 8px;
  --distance-medium: 12px;
  --distance-large: 30px;

  --scale-large: 0.96;
  --scale-medium: 0.97;
  --scale-small: 0.98;
  --scale-tiny: 0.99;

  --blur-small: 2px;
  --blur-medium: 3px;
  --blur-large: 8px;
}

/* Brand colors */
:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-ink: #003da5;
  --color-accent: #003da5;
  --color-lines: #e6e8ec;
  --color-card: #ffffff;
  --color-muted: #6b7280;
  --color-error: #c0392b;
  --color-success: #1a7f4b;
  --color-warning: #d4a017;
  --color-info: #003da5;
}

/* Dark mode */
@media not all {
  :root {
    --color-bg: #14161a;
    --color-text: #f7f7f5;
    --color-ink: #e8f0f8;
    --color-accent: #003da5;
    --color-lines: #2a2e35;
    --color-card: #1c1f24;
    --color-muted: #9ca3af;
    --color-error: #e57373;
    --color-success: #003da5;
    --color-warning: #f0b90b;
    --color-info: #e8f0f8;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-stagger: 0ms;
    --duration-micro: 0ms;
    --duration-quick: 0ms;
    --duration-fast: 0ms;
    --duration-medium: 0ms;
    --duration-slow: 0ms;
    --duration-very-slow: 0ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Optical sizing & tracking */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-text);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-quick) var(--ease-smooth-out);
}

a:hover {
  color: var(--color-ink);
}

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

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
}

.section {
  padding: 5rem 0;
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }
}

.section--tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Components: Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 18px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform var(--duration-micro) var(--ease-smooth-out),
    background-color var(--duration-quick) var(--ease-smooth-out),
    border-color var(--duration-quick) var(--ease-smooth-out),
    color var(--duration-quick) var(--ease-smooth-out),
    box-shadow var(--duration-quick) var(--ease-smooth-out);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: #17865b;
  border-color: #17865b;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-ink);
  border-color: var(--color-lines);
}

.btn--secondary:hover {
  background-color: var(--color-lines);
  border-color: var(--color-lines);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--outline:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn--small {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   Components: Cards
   ========================================================================== */

.card {
  background-color: var(--color-card);
  border: 1px solid var(--color-lines);
  border-radius: 18px;
  padding: 1.5rem;
  transition:
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    border-color var(--duration-fast) var(--ease-smooth-out);
}

.card:hover {
  box-shadow: 0 8px 30px rgba(20, 22, 26, 0.08);
  border-color: var(--color-accent);
}

@media not all {
  .card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }
}

.card--padded {
  padding: 2rem;
}

/* ==========================================================================
   Components: Header / Navigation
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-lines);
  padding: 1rem 0;
}

@media not all {
  .header {
    background-color: rgba(20, 22, 26, 0.85);
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-ink);
}

.header__logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.header__name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__link {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 12px;
  transition: background-color var(--duration-quick) var(--ease-smooth-out), color var(--duration-quick) var(--ease-smooth-out);
}

.header__link:hover {
  background-color: var(--color-lines);
  color: var(--color-ink);
}

.header__link--cta {
  background-color: var(--color-accent);
  color: #ffffff;
  border-radius: 18px;
  padding: 0.625rem 1.25rem;
}

.header__link--cta:hover {
  background-color: #17865b;
  color: #ffffff;
}

@media (max-width: 640px) {
  .header__nav {
    display: none;
  }
}

/* ==========================================================================
   Components: Hero
   ========================================================================== */

.hero {
  padding: 5rem 0 4rem;
  text-align: left;
}

.hero__title {
  max-width: 760px;
  margin: 0 0 1.5rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

/* ==========================================================================
   Components: Dashboard Preview
   ========================================================================== */

.preview {
  background-color: var(--color-card);
  border: 1px solid var(--color-lines);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(20, 22, 26, 0.05);
}

.preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-lines);
  background-color: rgba(227, 227, 223, 0.3);
}

.preview__dots {
  display: flex;
  gap: 0.5rem;
}

.preview__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-lines);
}

.preview__dot:first-child { background-color: #c0392b; }
.preview__dot:nth-child(2) { background-color: #d4a017; }
.preview__dot:last-child { background-color: #003da5; }

.preview__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
}

.preview__content {
  padding: 1.5rem;
}

.preview__kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .preview__kpis {
    grid-template-columns: repeat(4, 1fr);
  }
}

.preview__kpi {
  background-color: var(--color-bg);
  border: 1px solid var(--color-lines);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.preview__kpi-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.375rem;
}

.preview__kpi-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

.preview__chart {
  height: 160px;
  position: relative;
}

.preview__chart-svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Components: Feature Blocks
   ========================================================================== */

.features {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  text-align: center;
  padding: 1.5rem;
}

.feature__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background-color: rgba(0, 61, 165, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.feature__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature__desc {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin: 0;
}

/* ==========================================================================
   Components: Steps
   ========================================================================== */

.steps {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step__desc {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin: 0;
}

/* ==========================================================================
   Components: Security / Trust
   ========================================================================== */

.trust {
  background-color: var(--color-card);
  border: 1px solid var(--color-lines);
  border-radius: 18px;
  padding: 3rem 2rem;
}

.trust__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.trust__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background-color: rgba(0, 61, 165, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.trust__content h3 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.trust__content p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin: 0;
}

/* ==========================================================================
   Components: Pricing
   ========================================================================== */

.pricing {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing__card {
  position: relative;
}

.pricing__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.pricing__price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.pricing__period {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.pricing__desc {
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.pricing__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.pricing__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.pricing__list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  margin-top: 0.125rem;
}

.pricing__note {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: 0;
}

/* ==========================================================================
   Components: FAQ
   ========================================================================== */

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-lines);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-lines);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-ink);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-muted);
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}

.faq__item[open] .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  padding-bottom: 1.25rem;
  color: var(--color-text);
  line-height: 1.7;
  animation: faq-reveal var(--duration-medium) var(--ease-smooth-out);
}

@keyframes faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes row-enter {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq__answer {
    animation: none;
  }
  .faq__icon {
    transition: none;
  }
}

/* ==========================================================================
   Components: Contact / Footer
   ========================================================================== */

.contact {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}

.contact__email:hover {
  color: var(--color-accent);
}

.contact__location {
  font-size: 1rem;
  color: var(--color-muted);
  margin: 0;
}

.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--color-lines);
  text-align: center;
}

.footer__copyright {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer__link:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Components: Toast (for demo)
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-lines);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 40px rgba(20, 22, 26, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  transform: translateY(100px);
  opacity: 0;
  transition:
    transform var(--duration-medium) var(--ease-bounce),
    opacity var(--duration-medium) var(--ease-smooth-out);
  z-index: 1000;
}

.toast--show {
  transform: translateY(0);
  opacity: 1;
}

.toast__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

/* ==========================================================================
   Demo Page Specific
   ========================================================================== */

.demo-banner {
  background-color: rgba(0, 61, 165, 0.1);
  border-bottom: 1px solid var(--color-lines);
  padding: 0.75rem 0;
  text-align: center;
}

.demo-banner__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  margin: 0;
}

.dashboard {
  padding: 2rem 0;
}

.dashboard__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.dashboard__title {
  font-size: 1.5rem;
  margin: 0;
}

.dashboard__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.period-select {
  display: flex;
  gap: 0.5rem;
}

.period-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-card);
  border: 1px solid var(--color-lines);
  border-radius: 10px;
  cursor: pointer;
  transition:
    background-color var(--duration-quick) var(--ease-smooth-out),
    border-color var(--duration-quick) var(--ease-smooth-out),
    color var(--duration-quick) var(--ease-smooth-out);
}

.period-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.period-btn--active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.brand-colors {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.brand-colors__label {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform var(--duration-micro) var(--ease-smooth-out),
    border-color var(--duration-quick) var(--ease-smooth-out),
    box-shadow var(--duration-quick) var(--ease-smooth-out);
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch--active {
  border-color: var(--color-ink);
  box-shadow: 0 0 0 3px var(--color-card), 0 0 0 5px var(--color-ink);
}

@media not all {
  .color-swatch--active {
    box-shadow: 0 0 0 3px var(--color-card), 0 0 0 5px var(--color-ink);
  }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-lines);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
}

.kpi-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.375rem;
}

.kpi-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.kpi-card__trend {
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.kpi-card__trend--positive {
  color: var(--color-success);
}

.kpi-card__trend--negative {
  color: var(--color-error);
}

.chart-section {
  background-color: var(--color-card);
  border: 1px solid var(--color-lines);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.chart-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.chart-section__title {
  font-size: 1.125rem;
  margin: 0;
}

.chart-section__svg {
  width: 100%;
  height: 300px;
  max-height: 300px;
}

.invoices-section {
  background-color: var(--color-card);
  border: 1px solid var(--color-lines);
  border-radius: 18px;
  overflow: hidden;
}

.invoices-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-lines);
}

.invoices-section__title {
  font-size: 1.125rem;
  margin: 0;
}

.invoices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.invoices-table th,
.invoices-table td {
  padding: 0.875rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-lines);
}

.invoices-table th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  background-color: rgba(227, 227, 223, 0.3);
}

.invoices-table tbody tr:last-child td {
  border-bottom: none;
}

.invoices-table tbody tr:hover td {
  background-color: rgba(0, 61, 165, 0.03);
}

.invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
}

.invoice-status--paid {
  background-color: rgba(0, 61, 165, 0.15);
  color: var(--color-success);
}

.invoice-status--late {
  background-color: rgba(192, 57, 43, 0.15);
  color: var(--color-error);
}

.invoice-status--sent {
  background-color: rgba(212, 160, 23, 0.15);
  color: var(--color-warning);
}

.btn-action {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: 8px;
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  cursor: pointer;
  transition:
    background-color var(--duration-quick) var(--ease-smooth-out),
    color var(--duration-quick) var(--ease-smooth-out);
}

.btn-action:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-action:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Advisory Cards (Demo Page)
   ========================================================================== */

.advisory-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .advisory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.advisory-card {
  padding: 1.5rem;
  border: 1px solid var(--color-lines);
  border-radius: 18px;
  background-color: var(--color-card);
  transition: box-shadow var(--duration-fast) var(--ease-smooth-out), border-color var(--duration-fast) var(--ease-smooth-out);
}

.advisory-card:hover {
  box-shadow: 0 8px 30px rgba(20, 22, 26, 0.08);
  border-color: var(--color-accent);
}

@media not all {
  .advisory-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }
}

.advisory-card--advice {
  border-left: 4px solid var(--color-warning);
}

.advisory-card--alert {
  border-left: 4px solid var(--color-error);
}

.advisory-card--automation {
  border-left: 4px solid var(--color-info);
}

.advisory-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.advisory-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.advisory-card--advice .advisory-card__icon {
  background-color: rgba(212, 160, 23, 0.15);
  color: var(--color-warning);
}

.advisory-card--alert .advisory-card__icon {
  background-color: rgba(192, 57, 43, 0.15);
  color: var(--color-error);
}

.advisory-card--automation .advisory-card__icon {
  background-color: rgba(15, 42, 68, 0.15);
  color: var(--color-info);
}

.advisory-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0;
  line-height: 1.3;
}

.advisory-card__content {
  margin-bottom: 0.75rem;
}

.advisory-card__text {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.advisory-card__text strong {
  color: var(--color-ink);
}

.advisory-card__action {
  margin-top: 0.5rem;
}

.advisory-card__disclaimer {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin: 0;
}

/* ==========================================================================
   Toggle Switches
   ========================================================================== */

.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
}

.toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__slider {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background-color: var(--color-lines);
  transition: background-color var(--duration-quick) var(--ease-smooth-out);
  flex-shrink: 0;
}

.toggle__slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform var(--duration-fast) var(--ease-bounce);
}

.toggle__input:checked + .toggle__slider {
  background-color: var(--color-accent);
}

.toggle__input:checked + .toggle__slider::after {
  transform: translateX(18px);
}

.toggle__input:focus-visible + .toggle__slider {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.toggle__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  user-select: none;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal {
  border: none;
  border-radius: 18px;
  background-color: var(--color-card);
  box-shadow: 0 20px 60px rgba(20, 22, 26, 0.2);
  max-width: 480px;
  width: 90%;
  padding: 0;
  overflow: hidden;
}

.modal::backdrop {
  background-color: rgba(20, 22, 26, 0.5);
  }

.modal__backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 22, 26, 0.5);
    z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.modal[open] .modal__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.modal__form {
  display: flex;
  flex-direction: column;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-lines);
}

.modal__header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background-color: transparent;
  color: var(--color-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--duration-quick) var(--ease-smooth-out), color var(--duration-quick) var(--ease-smooth-out);
}

.modal__close:hover {
  background-color: var(--color-lines);
  color: var(--color-ink);
}

.modal__close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.modal__body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-lines);
  border-radius: 12px;
  transition: border-color var(--duration-quick) var(--ease-smooth-out), box-shadow var(--duration-quick) var(--ease-smooth-out);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.2);
}

.form-input::placeholder {
  color: var(--color-muted);
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-lines);
  background-color: rgba(227, 227, 223, 0.3);
}

@media not all {
  .modal__footer {
    background-color: rgba(255, 255, 255, 0.05);
  }
}

@media (max-width: 480px) {
  .modal__footer {
    flex-direction: column-reverse;
  }
  .modal__footer .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Privacy Page
   ========================================================================== */

.privacy {
  max-width: 800px;
  margin: 0 auto;
}

.privacy__section {
  margin-bottom: 2.5rem;
}

.privacy__section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-lines);
}

.privacy__section h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.75rem;
}

.privacy__section p {
  color: var(--color-text);
  line-height: 1.7;
}

.privacy__section ul {
  padding-left: 1.5rem;
  color: var(--color-text);
  line-height: 1.7;
}

.privacy__section li {
  margin-bottom: 0.5rem;
}

.privacy__meta {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-lines);
  border-radius: 12px;
}

/* ==========================================================================
   Motion / Scroll Animations (GSAP ScrollTrigger)
   ========================================================================== */

/* Base classes for scroll-triggered animations */
.js-reveal .animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1), transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Stagger delays for children - 60ms stagger, max 450ms duration */
.js-reveal .animate-stagger > * {
  opacity: 0;
  transform: translateY(24px);
}

.animate-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1), transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.animate-stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.animate-stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.animate-stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }
.animate-stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; }
.animate-stagger.is-visible > *:nth-child(6) { transition-delay: 300ms; }
.animate-stagger.is-visible > *:nth-child(7) { transition-delay: 360ms; }
.animate-stagger.is-visible > *:nth-child(8) { transition-delay: 420ms; }
.animate-stagger.is-visible > *:nth-child(9) { transition-delay: 480ms; }
.animate-stagger.is-visible > *:nth-child(10) { transition-delay: 540ms; }
.animate-stagger.is-visible > *:nth-child(11) { transition-delay: 600ms; }
.animate-stagger.is-visible > *:nth-child(12) { transition-delay: 660ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Gain Rings - Scroll-triggered fill
   ========================================================================== */

.gain__rings .ring {
  stroke-dashoffset: var(--ring-offset, 0);
  transition: stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gain__rings.is-visible .ring {
  stroke-dashoffset: 0;
}

/* ==========================================================================
   Nuit Blue Section (Deep Blue #06142e)
   ========================================================================== */

.section--nuit {
  background-color: #06142e;
  color: #ffffff;
  border: none;
}

.section--nuit .section__title,
.section--nuit h2,
.section--nuit h3 {
  color: #ffffff;
}

.section--nuit .text-muted,
.section--nuit p {
  color: rgba(255, 255, 255, 0.7);
}

.section--nuit .trust__item {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.section--nuit .trust__icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.section--nuit .trust__content strong {
  color: #ffffff;
}

.section--nuit .trust__content span {
  color: rgba(255, 255, 255, 0.7);
}

.section--nuit .btn--secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.section--nuit .btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.section--nuit .btn--primary {
  background-color: #ffffff;
  color: #06142e;
  border-color: #ffffff;
}

.section--nuit .btn--primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  color: #06142e;
}

.section--nuit .card {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.section--nuit .card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Richer Footer
   ========================================================================== */

.footer--rich {
  background-color: #111111;
  color: #ffffff;
  padding: 4rem 0 2rem;
}

.footer--rich .footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.footer--rich .header__wordmark {
  color: #ffffff;
  height: 32px;
}

.footer--rich .footer__tagline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 300px;
}

.footer--rich .footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer--rich .footer__grid {
    grid-template-columns: 1fr repeat(2, auto);
  }
}

@media (min-width: 1024px) {
  .footer--rich .footer__grid {
    grid-template-columns: 1fr repeat(4, auto);
  }
}

.footer--rich .footer__nav-column h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 1rem;
}

.footer--rich .footer__nav-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer--rich .footer__nav-column a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--duration-quick) var(--ease-smooth-out);
}

.footer--rich .footer__nav-column a:hover {
  color: #ffffff;
}

.footer--rich .footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer--rich .footer__copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer--rich .footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer--rich .footer__legal a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer--rich .footer__legal a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Plan Page Hero with Mockup
   ========================================================================== */

.plan-page-hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.plan-page-hero__mockup {
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.plan-page-hero__mockup .preview {
  transform: scale(0.85);
  transform-origin: top center;
  margin-top: -2rem;
}

@media (max-width: 768px) {
  .plan-page-hero__mockup .preview {
    transform: scale(0.7);
    margin-top: -4rem;
  }
}

/* ==========================================================================
   Calculator (Croissance page)
   ========================================================================== */

.calculator {
  background-color: var(--color-card);
  border: 1px solid var(--color-lines);
  border-radius: 22px;
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.calculator__header {
  text-align: center;
  margin-bottom: 2rem;
}

.calculator__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-ink);
  margin: 0 0 0.5rem;
}

.calculator__subtitle {
  color: var(--color-muted);
  margin: 0;
}

.calculator__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .calculator__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.calculator__slider {
  display: grid;
  gap: 0.5rem;
}

.calculator__slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.calculator__slider-value {
  font-family: 'IBM Plex Sans', monospace;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

.calculator__slider input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent);
  height: 8px;
  border-radius: 4px;
  background: var(--color-lines);
  -webkit-appearance: none;
}

.calculator__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform var(--duration-micro) var(--ease-smooth-out), box-shadow var(--duration-micro) var(--ease-smooth-out);
}

.calculator__slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 61, 165, 0.3);
}

.calculator__slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: none;
  cursor: pointer;
}

.calculator__results {
  grid-column: 1 / -1;
  background-color: rgba(0, 61, 165, 0.05);
  border: 1px solid rgba(0, 61, 165, 0.15);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-top: 1rem;
}

.calculator__results-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .calculator__results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.calculator__result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.calculator__result-label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.calculator__result-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.calculator__result-value--highlight {
  color: var(--color-accent);
}

.calculator__disclaimer {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: 0;
  font-style: italic;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.text-accent { color: var(--color-accent); }
.text-ink { color: var(--color-ink); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.header__wordmark { height: 26px; width: auto; display: block; color: var(--color-ink); }

.pricing__from { font-size: .9rem; color: var(--color-muted, #6b6f76); margin-top: .5rem; }

.trust { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; max-width:1080px; margin:0 auto 64px; padding:0 16px; }
.trust__item { display:flex; gap:14px; align-items:flex-start; padding:18px 20px; border:1px solid var(--color-lines); border-radius:18px; background:var(--color-card); }
.trust__ico { width:32px; height:32px; flex-shrink:0; color:var(--color-accent); }
.trust__item strong { display:block; font-size:1rem; color:var(--color-text); }
.trust__item span { display:block; font-size:.875rem; color:var(--color-muted, #6b6f76); margin-top:2px; line-height:1.45; }

.hero__badge { display:inline-flex; align-items:center; gap:8px; margin:0 auto 20px; padding:6px 14px 6px 10px; border:1px solid var(--color-lines); border-radius:999px; font-size:.875rem; font-weight:500; color:var(--color-ink); background:#fff; }
.hero__badge svg { width:18px; height:18px; color:var(--color-ink); }

.hero .hero__subtitle { margin-left: 0; margin-right: 0; max-width: 620px; }
.hero .hero__actions, .hero__buttons, .hero__cta { justify-content: flex-start; }
.hero__badge { margin: 0 0 20px; }

/* Cibles tactiles d'au moins 44 px sur écran tactile */
@media (pointer: coarse), (max-width: 768px) {
  button, .btn, .btn-action, .color-swatch, [role="switch"] { min-height: 44px; }
  .color-swatch { min-width: 44px; }
  .footer__link, .contact a, a[href^="mailto:"] { display: inline-block; padding: 12px 2px; }
  .header__brand { min-height: 44px; display: flex; align-items: center; }
  body { font-size: max(1rem, 16px); }
  small, .kpi__trend, .invoice-status, .demo-note, td { font-size: max(.8125rem, 13px); }
}

@media (pointer: coarse), (max-width: 768px) { .toggle { min-height: 44px; display: flex; align-items: center; } }

/* Anneaux de gain (style Santé d'Apple) */
.gain { padding: 24px 16px 72px; }
.gain__inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 56px; align-items: center; background: #fff; border: 1px solid var(--color-lines); border-radius: 28px; padding: 48px; }
.gain__rings svg { width: 100%; height: auto; display: block; }
.ring { transition: stroke-dashoffset 450ms cubic-bezier(.22,1,.36,1); }
.ring-a { stroke: #003da5; } .ring-b { stroke: #2f7de1; } .ring-c { stroke: #1a7f4b; }
.ring-bg { opacity: .12; }
.gain__eyebrow { font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-ink); margin: 0 0 8px; }
.gain__title { margin: 0 0 24px; color: var(--color-text); }
.gain__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 28px; }
.gain__stats dt { font-size: .875rem; color: var(--color-muted); display: flex; gap: 8px; align-items: center; }
.gain__stats dd { margin: 6px 0 0; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--color-text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-a { background: #003da5; } .dot-b { background: #2f7de1; } .dot-c { background: #1a7f4b; }
.gain__inputs { display: grid; gap: 14px; }
.gain__inputs label { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .9375rem; color: var(--color-text); }
.gain__inputs output { font-weight: 600; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.gain__inputs input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: #003da5; min-height: 32px; }
.gain__note { font-size: .8125rem; color: var(--color-muted); margin: 20px 0 0; line-height: 1.5; }
@media (max-width: 820px) { .gain__inner { grid-template-columns: 1fr; padding: 28px 20px; gap: 28px; } .gain__rings { max-width: 240px; margin: 0 auto; } .gain__stats { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ring { transition: none; } }

.plans { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:stretch; }
.plan { display:flex; flex-direction:column; border:1px solid var(--color-lines); border-radius:22px; background:#fff; }
.plan__per { font-size:1rem; font-weight:400; color:var(--color-muted); margin-left:2px; }
.plan__tag { color:var(--color-text); margin:.75rem 0 1rem; line-height:1.5; }
@media (max-width: 900px) { .plans { grid-template-columns:1fr; } }

.gain__lead { color: var(--color-muted); font-size: 1.125rem; margin: -12px 0 24px; max-width: 560px; }
.gain__sub { margin: 4px 0 0; font-size: .875rem; color: var(--color-ink); font-weight: 500; }
.gain__title { font-size: clamp(2.25rem, 5vw, 3.5rem); color: var(--color-ink); letter-spacing: -.02em; }

.hero__kicker { font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 600; color: var(--color-text); margin: -0.5rem 0 1.25rem; letter-spacing: -.01em; }

/* ==========================================================================
   Plan Pages (Essentiel, Pro, Croissance)
   ========================================================================== */

.plan-page-hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.plan-page-badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.plan-page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.plan-page-tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.plan-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.plan-page-section {
  padding: 5rem 0;
}

.plan-page-section--alt {
  background-color: var(--color-card);
  border-top: 1px solid var(--color-lines);
  border-bottom: 1px solid var(--color-lines);
}

.plan-page-features {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .plan-page-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.plan-page-feature {
  background-color: var(--color-card);
  border: 1px solid var(--color-lines);
  border-radius: 22px;
  padding: 2rem;
  transition:
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    border-color var(--duration-fast) var(--ease-smooth-out);
}

.plan-page-feature:hover {
  box-shadow: 0 8px 30px rgba(20, 22, 26, 0.08);
  border-color: var(--color-accent);
}

@media not all {
  .plan-page-feature:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }
}

.plan-page-feature__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.plan-page-feature__desc {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.plan-page-feature__desc:last-child {
  margin-bottom: 0;
}

.plan-page-feature__desc strong {
  color: var(--color-ink);
}

.plan-page-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background-color: var(--color-bg);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--color-lines);
}

.plan-page-table th,
.plan-page-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-lines);
}

.plan-page-table th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink);
  background-color: var(--color-bg);
}

.plan-page-table td {
  color: var(--color-text);
}

.plan-page-table tbody tr:last-child td {
  border-bottom: none;
}

.plan-page-table tbody tr:hover td {
  background-color: rgba(0, 61, 165, 0.03);
}

.plan-page-value-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .plan-page-value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .plan-page-value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plan-page-value-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-lines);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition:
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    border-color var(--duration-fast) var(--ease-smooth-out);
}

.plan-page-value-card:hover {
  box-shadow: 0 8px 30px rgba(20, 22, 26, 0.08);
  border-color: var(--color-accent);
}

@media not all {
  .plan-page-value-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }
}

.plan-page-value__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.plan-page-value__number--highlight {
  color: var(--color-accent);
}

.plan-page-value__label {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.plan-page-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-lines);
  border-radius: 22px;
  border-left: 4px solid var(--color-info);
}

.plan-page-disclaimer strong {
  color: var(--color-ink);
}

.plan-page-disclaimer div {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .plan-page-table th,
  .plan-page-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .plan-page-feature {
    padding: 1.5rem;
  }

  .plan-page-value-card {
    padding: 2rem 1.5rem;
  }

  .plan-page-disclaimer {
    padding: 1.25rem 1.5rem;
  }
}

/* Cibles tactiles de 44 px : liens du pied de page et curseurs */
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
input[type="range"] { min-height: 44px; }

/* Les montants restent sur une ligne */
.preview__kpi-value { white-space: nowrap; font-size: clamp(1.25rem, 6vw, 2rem); }

/* Formulaire « message prêt à envoyer » */
.mailer { max-width: 560px; margin: 0 auto; display: grid; gap: 1rem; text-align: left; }
.mailer__intro { color: var(--color-muted); margin: 0 0 .5rem; }
.mailer__field { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; }
.mailer__field input, .mailer__field select { min-height: 48px; padding: 0 14px; font: inherit; font-weight: 400; border: 1px solid #d5d9e0; border-radius: 12px; background: #fff; color: #111; }
.mailer__field input:focus, .mailer__field select:focus { outline: 2px solid #003da5; outline-offset: 1px; border-color: #003da5; }
.mailer__send { justify-self: start; margin-top: .5rem; }
.mailer .contact__location { margin-top: .25rem; }
@media (max-width: 480px) { .mailer__send { justify-self: stretch; text-align: center; } }
.mailer__label { margin: .5rem 0 0; font-weight: 600; font-size: .95rem; }
.mailer__apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.mailer__app { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-align: center; font: inherit; cursor: pointer; }
.mailer__done { min-height: 1.4em; color: #003da5; font-size: .95rem; margin: 0; }

/* Maquette du tableau de bord dans le héros */
.dash { margin: 3rem auto 0; max-width: 980px; background: #fff; border: 1px solid #e3e6ec; border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(6,20,46,.35); overflow: hidden; text-align: left; }
.dash__top { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem; background: #f6f7f9; border-bottom: 1px solid #e3e6ec; }
.dash__name { font-size: .85rem; color: #5b6472; margin-left: auto; }
.dash__body { padding: 1.1rem; display: grid; gap: 1rem; }
.dash__kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .75rem; }
.dash__kpi { border: 1px solid #e3e6ec; border-radius: 14px; padding: .8rem .9rem; display: grid; gap: .25rem; }
.dash__k { font-size: .78rem; color: #5b6472; }
.dash__kpi strong { font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: #003da5; white-space: nowrap; }
.dash__kpi strong.dash__warn { color: #b3261e; }
.dash__d { font-size: .75rem; color: #5b6472; }
.dash__d--up { color: #1d7a3e; }
.dash__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: .75rem; }
.dash__panel { border: 1px solid #e3e6ec; border-radius: 14px; padding: .9rem; }
.dash__h { margin: 0 0 .7rem; font-size: .85rem; font-weight: 600; color: #111; }
.dash__h--sp { margin-top: 1rem; }
.dash__bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; align-items: end; height: 170px; }
.dash__bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: .25rem; }
.dash__bar-val { font-size: .68rem; color: #5b6472; white-space: nowrap; }
.dash__bar-fill { align-self: end; width: 100%; background: #003da5; border-radius: 6px 6px 2px 2px; opacity: .85; }
.dash__bar:last-child .dash__bar-fill { opacity: 1; background: #002a75; }
.dash__bar-lab { font-size: .72rem; color: #5b6472; }
.dash__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.dash__list li { display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; font-size: .85rem; }
.dash__list li span:nth-child(2) { font-weight: 600; color: #b3261e; white-space: nowrap; }
.dash__list em { grid-column: 1 / -1; font-style: normal; font-size: .74rem; color: #5b6472; }
.dash__tax { display: flex; justify-content: space-between; gap: .5rem; margin: 0; font-size: .85rem; }
.dash__tax strong { white-space: nowrap; }
.dash__cap { font-size: .78rem; color: #5b6472; padding: 0 1.1rem 1rem; }
@media (max-width: 720px) {
  .dash { margin-top: 2rem; border-radius: 18px; }
  .dash__kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dash__grid { grid-template-columns: 1fr; }
  .dash__bars { height: 140px; }
}
.dash__remind { width: 100%; min-height: 44px; margin-top: .9rem; font: inherit; font-weight: 600; cursor: pointer; }
.dash__remind:disabled { background: #1d7a3e; border-color: #1d7a3e; cursor: default; }
.dash__list em.is-sent { color: #1d7a3e; }
.dash__mail { margin-top: .75rem; border: 1px solid #cfe3d6; background: #f3faf5; border-radius: 12px; padding: .7rem .8rem; font-size: .8rem; color: #24352a; }
.dash__mail p { margin: 0; }
.dash__mail-h { font-weight: 600; margin-bottom: .3rem !important; color: #1d7a3e; }

/* Options d'installation */
.install { max-width: 860px; margin: 2.5rem auto 0; text-align: left; }
.install__t { font-size: 1.25rem; margin: 0 0 .5rem; }
.install__p, .install__g { color: #5b6472; margin: 0 0 1rem; }
.install__g { margin-top: 1rem; font-size: .95rem; }
.install__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; }
.install__opt { border: 1px solid #e3e6ec; border-radius: 16px; padding: 1rem; display: grid; gap: .3rem; background: #fff; }
.install__opt strong { color: #003da5; font-size: 1.05rem; }
.install__opt span { font-size: .92rem; color: #333; }
.install__opt--best { border-color: #003da5; box-shadow: 0 0 0 1px #003da5 inset; }
@media (max-width: 720px) { .install__grid { grid-template-columns: 1fr; } }
.install__opt .install__big { font-size: 1.6rem; font-weight: 700; color: #111 !important; white-space: nowrap; }
.install__opt .install__big s { color: #8a93a3; font-weight: 500; font-size: 1.1rem; margin-right: .35rem; }
.install__opt--best .install__big { color: #003da5 !important; }

/* Démo : facture en 20 secondes */
.invo__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.invo__lead { color: #5b6472; margin: 0 0 .8rem; }
.invo__form { display: grid; gap: .9rem; margin-top: 1.2rem; }
.invo__row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.invo__paper { background: #fff; border: 1px solid #e3e6ec; border-radius: 18px; padding: 1.4rem; box-shadow: 0 24px 60px -30px rgba(6,20,46,.35); font-size: .9rem; transition: border-color .3s; }
.invo__paper.is-sent { border-color: #1d7a3e; }
.invo__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid #e3e6ec; padding-bottom: .8rem; margin-bottom: .8rem; }
.invo__logo { font-weight: 700; color: #003da5; }
.invo__no { color: #5b6472; font-size: .82rem; }
.invo__to { margin: 0 0 .8rem; }
.invo__tbl { width: 100%; border-collapse: collapse; }
.invo__tbl td { padding: .45rem 0; border-bottom: 1px solid #f0f2f5; vertical-align: top; }
.invo__tbl td:last-child { text-align: right; white-space: nowrap; padding-left: .75rem; }
.invo__tbl em { font-style: normal; color: #5b6472; font-size: .78rem; display: block; }
.invo__sub td { font-weight: 600; }
.invo__tot td { font-weight: 700; font-size: 1.1rem; color: #003da5; border-bottom: 0; padding-top: .7rem; }
.invo__status { margin: .9rem 0 0; font-size: .85rem; color: #5b6472; }
.invo__paper.is-sent .invo__status { color: #1d7a3e; font-weight: 600; }
@media (max-width: 820px) { .invo__wrap { grid-template-columns: 1fr; gap: 1.5rem; } }
.invo__wrap > *, .invo__row > * { min-width: 0; } .invo__form input { width: 100%; box-sizing: border-box; }
#f-go { font: inherit; font-weight: 600; background: #003da5; border-color: #003da5; color: #fff; cursor: pointer; }

/* Forfaits : trois niveaux bien distincts */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: .55rem; border-radius: 22px; padding: 1.6rem 1.4rem; border: 1px solid #e3e6ec; background: #fff; min-width: 0; }
.tier__name { margin: 0; font-size: 1.35rem; font-weight: 700; color: #003da5; }
.tier__who { margin: 0; color: #5b6472; min-height: 2.8em; }
.tier__price { margin: .4rem 0 0; font-size: 2.3rem; font-weight: 700; color: #111; white-space: nowrap; line-height: 1.1; }
.tier__from { display: block; font-size: .8rem; font-weight: 500; color: #5b6472; }
.tier__per { font-size: 1rem; font-weight: 500; color: #5b6472; }
.tier__inst { margin: 0; font-size: .88rem; color: #1d7a3e; font-weight: 600; }
.tier__inst s { color: #8a93a3; font-weight: 500; margin-left: .25rem; }
.tier__gain { margin: .5rem 0 0; padding: .75rem .9rem; border-radius: 12px; background: #f2f5fb; font-weight: 600; font-size: .95rem; }
.tier__base { margin: .5rem 0 0; font-weight: 700; font-size: .9rem; }
.tier__list { list-style: none; margin: .3rem 0 1rem; padding: 0; display: grid; gap: .6rem; }
.tier__list li { display: grid; grid-template-columns: 20px 1fr; gap: .55rem; font-size: .93rem; line-height: 1.45; }
.tier__list svg { width: 20px; height: 20px; color: #003da5; margin-top: 1px; }
.tier__btn { margin-top: auto; align-self: stretch; text-align: center; }
/* Pro : un cran plus haut, teinte mauve */
.tier--pro { background: #f6f3ff; border-color: #6a4fd6; box-shadow: 0 18px 50px -28px rgba(80,50,190,.45); }
.tier--pro .tier__name { color: #5a3fc4; }
.tier--pro .tier__gain { background: #ebe5ff; }
.tier--pro .tier__list svg { color: #5a3fc4; }
.tier--pro .tier__btn.btn--primary { background: #5a3fc4; border-color: #5a3fc4; }
/* Croissance : le plus complet, bleu nuit et or */
.tier--cro { background: #06142e; border: 1px solid #c9a24b; color: #f3f1ea; box-shadow: 0 24px 60px -26px rgba(6,20,46,.7), inset 0 0 0 1px rgba(201,162,75,.25); position: relative; }
.tier--cro::before { content: "Le plus complet"; position: absolute; top: -12px; left: 1.4rem; background: #c9a24b; color: #06142e; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.tier--cro .tier__name { color: #e6c879; letter-spacing: .02em; }
.tier--cro .tier__who, .tier--cro .tier__from, .tier--cro .tier__per { color: #b9c1d3; }
.tier--cro .tier__price { color: #fff; }
.tier--cro .tier__inst { color: #9fd8b1; }
.tier--cro .tier__inst s { color: #8590a8; }
.tier--cro .tier__gain { background: rgba(201,162,75,.14); color: #f3e3b5; border: 1px solid rgba(201,162,75,.35); }
.tier--cro .tier__base { color: #e6c879; }
.tier--cro .tier__list li { color: #e8e9ee; }
.tier--cro .tier__list svg { color: #e6c879; }
.btn--gold { background: #c9a24b; border: 1px solid #c9a24b; color: #06142e; font-weight: 700; }
.btn--gold:hover { background: #d9b45e; }
.tiers__risk { text-align: center; margin: 1.5rem 0 0; font-weight: 600; color: #1d7a3e; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; gap: 1.6rem; } .tier__who { min-height: 0; } }

/* Ordinateur qui défile au scroll */
.laptop { --tilt: 0deg; --scale: 1; max-width: 1000px; margin: 3rem auto 0; perspective: 1600px; }
.laptop__lid { background: #11151c; border-radius: 22px 22px 10px 10px; padding: 14px 14px 18px; box-shadow: 0 40px 90px -40px rgba(6,20,46,.6); transform-origin: 50% 100%; transform: rotateX(var(--tilt)) scale(var(--scale)); will-change: transform; }
.laptop__screen { border-radius: 10px; overflow: hidden; background: #fff; }
.laptop.is-live .laptop__screen { height: min(560px, 70vh); }
.laptop__screen .dash { margin: 0; max-width: none; border: 0; border-radius: 0; box-shadow: none; will-change: transform; }
.laptop__base { height: 16px; margin: 0 -4%; background: linear-gradient(#cfd3da, #a9aeb7); border-radius: 0 0 18px 18px; position: relative; }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%); background: #9aa0aa; border-radius: 0 0 8px 8px; }
@media (max-width: 720px) {
  .laptop { margin-top: 2rem; }
  .laptop__lid { padding: 8px 8px 12px; border-radius: 16px 16px 8px 8px; }
  .laptop.is-live .laptop__screen { height: 62vh; }
  .laptop__base { height: 10px; }
}
.tier__was { margin: .4rem 0 -.3rem; font-size: .85rem; color: #5b6472; }
.tier__was s { color: #8a93a3; }
.tier--cro .tier__was { color: #b9c1d3; }
.refer { max-width: 640px; margin: 1.6rem auto 0; text-align: center; border: 1px dashed #b8c3d9; border-radius: 16px; padding: 1rem 1.2rem; background: #fff; }
.refer__t { margin: 0 0 .3rem; font-weight: 700; color: #003da5; }
.refer__p { margin: 0; color: #5b6472; font-size: .95rem; }
.plan-page-terms { margin: .4rem 0 0; color: #5b6472; font-size: .95rem; } .plan-page-terms s { color: #8a93a3; }

/* Démo animée : note vocale → facture */
.story__head { max-width: 640px; margin: 0 auto 2rem; text-align: center; }
.story__stage { max-width: 560px; margin: 0 auto; display: grid; gap: .8rem; padding: 1.4rem; border-radius: 24px; background: #f4f3ef; border: 1px solid #e6e3da; }
.sc { background: #fff; border: 1px solid #e3e6ec; border-radius: 18px; padding: 1rem 1.1rem; box-shadow: 0 10px 30px -22px rgba(6,20,46,.5); }
.story__stage.is-live .sc { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1); }
.story__stage.is-live .sc.is-on { opacity: 1; transform: none; }
.sc p { margin: .35rem 0 0; }
.sc__top { display: flex; align-items: center; gap: .6rem; }
.sc__mic, .sc__spark, .sc__ok { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-block; position: relative; }
.sc__mic { background: #e4572e; }
.sc__mic::after { content: ""; position: absolute; left: 13px; top: 8px; width: 8px; height: 13px; border-radius: 4px; background: #fff; }
.sc__spark { background: #06142e; }
.sc__spark::after { content: ""; position: absolute; inset: 9px; background: #e6c879; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.sc__wave { display: flex; gap: 3px; align-items: center; height: 26px; margin-left: auto; }
.sc__wave i { width: 3px; height: 30%; background: #9aa0aa; border-radius: 2px; }
.is-talk .sc__wave i { background: #e4572e; animation: wv .6s ease-in-out infinite alternate; }
.sc__wave i:nth-child(3n) { animation-delay: .15s; } .sc__wave i:nth-child(3n+1) { animation-delay: .3s; }
@keyframes wv { from { height: 20%; } to { height: 100%; } }
.sc__time { font-family: ui-monospace, Menlo, monospace; color: #5b6472; font-size: .85rem; }
.sc__typed { min-height: 3em; font-size: 1.05rem; }
.sc--photo { display: flex; gap: 1rem; align-items: center; }
.sc__receipt { flex: none; width: 140px; padding: .6rem .7rem; background: #fffdf6; border: 1px dashed #d8d2bf; border-radius: 6px; font: 600 .58rem/1.5 ui-monospace, Menlo, monospace; color: #4b4b4b; display: grid; transform: rotate(-3deg); }
.sc__receipt b { text-align: center; margin-bottom: .2rem; }
.sc__receipt em { font-style: normal; border-top: 1px dashed #bbb; margin-top: .2rem; padding-top: .2rem; color: #111; }
.sc__lines { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .3rem; font-size: .92rem; }
.sc__lines li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #f0f2f5; padding-bottom: .3rem; }
.sc__lines li span:last-child { white-space: nowrap; }
.sc__tot { font-weight: 700; color: #003da5; border-bottom: 0 !important; }
.sc__btns { display: flex; gap: .6rem; margin-top: .7rem; }
.sc__btn { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid #d5d9e0; font-weight: 600; font-size: .9rem; }
.sc__btn--yes { background: #003da5; border-color: #003da5; color: #fff; transition: transform .15s, background .3s; }
.is-sent .sc__btn--yes { background: #1d7a3e; border-color: #1d7a3e; transform: scale(.94); }
.sc--done { display: flex; gap: .8rem; align-items: center; border-color: #cfe3d6; background: #f3faf5; }
.sc__ok { background: #1d7a3e; }
.sc__ok::after { content: ""; position: absolute; left: 12px; top: 8px; width: 8px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.sc--paid { border-color: #003da5; background: #eef3ff; }
.sc--paid .sc__ok { background: #003da5; }
.story__cap { text-align: center; padding: 0; margin-top: 1rem; }
@media (max-width: 480px) { .story__stage { padding: .9rem; } .sc__receipt { width: 118px; } }
.sc__receipt span, .sc__receipt em { display: flex; justify-content: space-between; gap: .4rem; } .sc__receipt u { text-decoration: none; }

/* « Essayez-moi » */
.try { display: flex; align-items: flex-end; justify-content: center; gap: .2rem; margin: .9rem 0 -.5rem; color: #e4572e; pointer-events: none; }
.try__txt { font: 700 1rem/1 "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; transform: rotate(-4deg); }
.try__arrow { width: 46px; height: 38px; animation: tryb 1.4s ease-in-out infinite; }
.try--form { justify-content: flex-start; margin: .2rem 0 -.6rem .5rem; }
@keyframes tryb { 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .try__arrow { animation: none; } }
/* La facture apparaît au clic */
.invo__ghost { min-height: 320px; display: grid; place-items: center; border: 2px dashed #d5d9e0; border-radius: 12px; color: #8a93a3; text-align: center; }
.invo__ghost p { margin: 0; }
.invo__wait { min-height: 320px; display: flex; align-items: center; justify-content: center; gap: .7rem; color: #003da5; font-weight: 600; }
.invo__spin { width: 22px; height: 22px; border: 3px solid #cfd8ea; border-top-color: #003da5; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.invo__doc { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s cubic-bezier(.22,1,.36,1); }
.is-shown .invo__doc { opacity: 1; transform: none; }
#f-go:disabled { opacity: .7; cursor: wait; }

[hidden] { display: none !important; }
.try__txt { font-size: 1.15rem; }
.invo__ghost, .invo__wait { min-height: 380px; }
.cta-maq__box { text-align: center; max-width: 720px; } .cta-maq__btns { justify-content: center; }
/* L'écran de l'ordi se fait défiler comme un vrai écran */
.laptop__lid { position: relative; }
.laptop.is-live .laptop__screen, .laptop__screen { height: min(560px, 70vh); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.laptop__screen::-webkit-scrollbar { display: none; }
.laptop__track { position: absolute; right: 4px; top: 22px; bottom: 26px; width: 5px; border-radius: 3px; background: rgba(255,255,255,.12); z-index: 2; }
.laptop__thumb { position: absolute; left: 0; right: 0; border-radius: 3px; background: rgba(255,255,255,.7); min-height: 24px; }
.laptop__hint { text-align: center; font-size: .85rem; color: #5b6472; margin: .9rem 0 0; }
@media (max-width: 720px) { .laptop.is-live .laptop__screen, .laptop__screen { height: 62vh; } .laptop__track { right: 2px; width: 4px; top: 12px; bottom: 18px; } }

/* Boutons de démo satisfaisants : enfoncement, rebond, gerbe de points */
.pop { transition: transform .12s cubic-bezier(.3,.7,.4,1), background-color .25s, box-shadow .2s; }
.pop:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(0,61,165,.6); }
.pop:not(:disabled):active { transform: scale(.95); box-shadow: none; transition-duration: .06s; }
.is-pop { animation: popok .42s cubic-bezier(.34,1.56,.64,1); }
@keyframes popok { 0% { transform: scale(.92); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.spark { position: fixed; width: 7px; height: 7px; border-radius: 50%; background: #1d7a3e; pointer-events: none; z-index: 50; transform: translate(-50%,-50%); animation: spark .6s cubic-bezier(.22,1,.36,1) forwards; }
.spark:nth-child(3n) { background: #003da5; } .spark:nth-child(3n+1) { background: #c9a24b; }
@keyframes spark { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3); opacity: 0; } }
.sc__btn--yes { font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; min-height: 44px; }
.sc__btn--yes:disabled { cursor: default; }
.sc__btn--yes:disabled:not(.is-pop) { opacity: .55; }
.is-sent .sc__btn--yes { opacity: 1 !important; }
.story__again { text-align: center; margin: 1rem 0 0; }
.sc__btns { flex-wrap: wrap; align-items: center; }
