/* DRC FACT — Site vitrine (thème clair) */
:root {
  --blue-royal: #003ec1;
  --blue-azure: #1b85ff;
  --bg-night: #002561;
  --bg-marine: #003780;
  --sheet-1: #00c5ff;
  --sheet-2: #359eff;
  --sheet-3: #2677f5;
  --gray-slogan: #707070;
  --white: #ffffff;

  --bg-page: #eef4fc;
  --bg-page-alt: #e4edf8;
  --text-primary: #0f1f3d;
  --text-secondary: #4a5d7a;
  --text-muted: #6b7f9e;
  --card-bg: #ffffff;
  --card-border: rgba(0, 62, 193, 0.1);
  --shadow-sm: 0 4px 20px rgba(0, 37, 97, 0.06);
  --shadow: 0 12px 40px rgba(0, 37, 97, 0.1);
  --shadow-lg: 0 24px 60px rgba(0, 37, 97, 0.12);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: #edf3fb;
  background-image:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(27, 133, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 10%, rgba(0, 197, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 90%, rgba(0, 62, 193, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 15% 75%, rgba(53, 158, 255, 0.08) 0%, transparent 50%),
    linear-gradient(175deg, #f8fbff 0%, #eef4fc 45%, #e6eef9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-royal);
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Typographie marque */
.brand-drc {
  color: var(--blue-azure);
  font-weight: 800;
}

.brand-fact {
  color: var(--blue-royal);
  font-weight: 800;
}

.brand-text {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

/* Ambient orbs — touches bleues très légères */
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.16;
  animation: orb-drift 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--sheet-2);
  top: -12%;
  right: -8%;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--blue-azure);
  bottom: 10%;
  left: -10%;
  animation-delay: -7s;
  opacity: 0.12;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--sheet-1);
  top: 50%;
  left: 35%;
  opacity: 0.1;
  animation-delay: -14s;
}

/* Grille & texture globale */
.page-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 62, 193, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 62, 193, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, black 0%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 85%, transparent 100%);
}

.page-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 133, 255, 0.09) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  opacity: 0.7;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.03); }
  66% { transform: translate(-15px, 20px) scale(0.97); }
}

/* Factures flottantes en arrière-plan */
.float-invoices {
  position: absolute;
  inset: 0;
}

.float-inv {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 72px;
  height: 92px;
  border-radius: 6px;
  background: linear-gradient(160deg, #ffffff, #e8f4ff);
  border: 1px solid rgba(27, 133, 255, 0.15);
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--r));
  opacity: 0.55;
  animation: float-inv 14s ease-in-out infinite;
  animation-delay: var(--delay);
}

.float-inv::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 10px;
  right: 10px;
  height: 4px;
  border-radius: 2px;
  background: rgba(27, 133, 255, 0.25);
  box-shadow: 0 10px 0 rgba(27, 133, 255, 0.12), 0 20px 0 rgba(27, 133, 255, 0.08);
}

.float-inv::after {
  content: "";
  position: absolute;
  bottom: 12px;
  right: 10px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 62, 193, 0.2);
  border-radius: 2px;
}

@keyframes float-inv {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(calc(var(--r) + 4deg)) translateY(-16px); }
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  transition: height 0.35s var(--ease-out), background 0.35s, box-shadow 0.35s;
}

.site-header.is-scrolled {
  --header-h: 64px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
  transition: height 0.35s var(--ease-out);
}

.nav-brand {
  display: flex;
  align-items: center;
  align-self: stretch;
  height: 100%;
  padding: 6px 0;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-spring);
}

.nav-brand:hover {
  transform: scale(1.02);
  text-decoration: none;
}

.nav-logo {
  height: 100%;
  max-height: calc(var(--header-h) - 12px);
  width: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-azure), var(--blue-royal));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--blue-royal);
  text-decoration: none;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 0.5rem 1.15rem !important;
  background: linear-gradient(135deg, var(--blue-azure), var(--blue-royal)) !important;
  color: var(--white) !important;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(0, 62, 193, 0.25);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, filter 0.25s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 22px rgba(27, 133, 255, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-royal);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 80% at 65% 30%, rgba(27, 133, 255, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(238, 244, 252, 0.4) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 72% 38%, rgba(27, 133, 255, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 133, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 133, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 60% 40%, black 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 40%, black 15%, transparent 78%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hero-slogan {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gray-slogan);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-royal);
  background: rgba(27, 133, 255, 0.08);
  border: 1px solid rgba(27, 133, 255, 0.2);
  border-radius: 999px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-azure);
  box-shadow: 0 0 0 0 rgba(27, 133, 255, 0.5);
  animation: badge-dot 2s ease-in-out infinite;
}

@keyframes badge-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27, 133, 255, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(27, 133, 255, 0); }
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-royal);
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  animation: trust-in 0.6s var(--ease-out) backwards;
}

.hero-trust li:nth-child(1) { animation-delay: 0.5s; }
.hero-trust li:nth-child(2) { animation-delay: 0.62s; }
.hero-trust li:nth-child(3) { animation-delay: 0.74s; }

@keyframes trust-in {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-desc {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero scène — factures + logo (inspiré du logo) */
.hero-scene {
  position: relative;
  width: min(380px, 92vw);
  height: min(380px, 92vw);
  margin-inline: auto;
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

.invoice-fan {
  position: absolute;
  top: 8%;
  right: -4%;
  width: 200px;
  height: 240px;
  z-index: 1;
}

.invoice-doc {
  position: absolute;
  width: 148px;
  height: 188px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 37, 97, 0.15);
  transform-origin: bottom left;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.invoice-doc .inv-stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--blue-royal), var(--blue-azure));
}

.invoice-doc .inv-body {
  padding: 12px 14px;
  height: calc(100% - 6px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inv-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue-royal);
}

.inv-line {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(27, 133, 255, 0.15);
  animation: inv-line-grow 1.2s var(--ease-out) backwards;
}

.inv-line.short { width: 65%; }

.inv-line:nth-child(2) { animation-delay: 0.2s; }
.inv-line:nth-child(3) { animation-delay: 0.35s; }
.inv-line:nth-child(4) { animation-delay: 0.5s; }

@keyframes inv-line-grow {
  from { width: 0; opacity: 0; }
  to { width: 100%; opacity: 1; }
}

.inv-line.short { animation-name: inv-line-grow-short; }
@keyframes inv-line-grow-short {
  from { width: 0; opacity: 0; }
  to { width: 65%; opacity: 1; }
}

.inv-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.inv-qr {
  width: 36px;
  height: 36px;
  border: 2px solid var(--blue-royal);
  border-radius: 4px;
  background:
    linear-gradient(90deg, var(--blue-royal) 2px, transparent 2px) 0 0 / 8px 8px,
    linear-gradient(var(--blue-royal) 2px, transparent 2px) 0 0 / 8px 8px;
  opacity: 0.7;
  animation: qr-pulse 3s ease-in-out infinite;
}

@keyframes qr-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.inv-total {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
}

.doc-3 {
  background: linear-gradient(145deg, #cce9ff, #a8d4ff);
  right: 0;
  bottom: 0;
  transform: rotate(14deg);
  z-index: 1;
  animation: fan-3 6s ease-in-out infinite;
}

.doc-2 {
  background: linear-gradient(145deg, #d9eeff, #b5dcff);
  right: 18px;
  bottom: 16px;
  transform: rotate(6deg);
  z-index: 2;
  animation: fan-2 6s ease-in-out infinite -1s;
}

.doc-1 {
  background: #ffffff;
  right: 36px;
  bottom: 32px;
  transform: rotate(-4deg);
  z-index: 3;
  animation: fan-1 6s ease-in-out infinite -2s;
}

@keyframes fan-1 {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-8px); }
}

@keyframes fan-2 {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-6px); }
}

@keyframes fan-3 {
  0%, 100% { transform: rotate(14deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-4px); }
}

.invoice-fan.is-active .doc-1 { animation-duration: 4s; }
.invoice-fan.is-active .doc-2 { animation-duration: 4.5s; }
.invoice-fan.is-active .doc-3 { animation-duration: 5s; }

/* Hero logo stage */
.hero-logo-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.logo-frame {
  position: absolute;
  width: 88%;
  height: 88%;
  pointer-events: none;
}

.logo-frame-rect {
  fill: none;
  stroke: var(--blue-azure);
  stroke-width: 2.5;
  stroke-dasharray: 60 18 60 18;
  stroke-linecap: round;
  opacity: 0.55;
  animation: frame-rotate 20s linear infinite, frame-pulse 4s ease-in-out infinite;
}

@keyframes frame-rotate {
  to { stroke-dashoffset: -156; }
}

@keyframes frame-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.logo-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 133, 255, 0.2) 0%, transparent 70%);
  animation: glow-breathe 4s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

.logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(27, 133, 255, 0.15);
  animation: ring-pulse 4s ease-in-out infinite;
}

.ring-1 { inset: 0; }
.ring-2 {
  inset: -16px;
  border-color: rgba(27, 133, 255, 0.08);
  animation-delay: -2s;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}

.hero-icon-wrap {
  position: relative;
  z-index: 2;
  padding: 0.75rem;
  border-radius: 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  animation: logo-float 5s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-logo {
  width: min(220px, 70vw);
  border-radius: 22px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out) var(--d, 0s),
    transform 0.7s var(--ease-out) var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-enter {
  opacity: 0;
  animation: hero-in 0.85s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

.hero-enter-right {
  animation-name: hero-in-right;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-in-right {
  from { opacity: 0; transform: translateX(30px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), filter 0.2s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-azure), var(--blue-royal));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 62, 193, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(27, 133, 255, 0.35);
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: btn-shine 3.5s ease-in-out infinite;
}

@keyframes btn-shine {
  0%, 70%, 100% { left: -100%; }
  85% { left: 150%; }
}

.btn-outline {
  background: var(--white);
  color: var(--blue-royal);
  border: 2px solid rgba(0, 62, 193, 0.25);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--blue-azure);
  color: var(--blue-royal);
  background: rgba(27, 133, 255, 0.05);
}

.btn-secondary {
  background: var(--bg-page);
  color: var(--blue-royal);
  border: 1px solid var(--card-border);
  width: 100%;
}

.btn-secondary:hover {
  background: rgba(27, 133, 255, 0.06);
  border-color: rgba(27, 133, 255, 0.3);
}

/* Sections */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
    linear-gradient(135deg, #e8f0fa 0%, #dfe9f6 50%, #e6eef9 100%);
  border-top: 1px solid rgba(0, 62, 193, 0.08);
  border-bottom: 1px solid rgba(0, 62, 193, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-azure);
  background: rgba(27, 133, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(27, 133, 255, 0.15);
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 0.65rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-azure), var(--blue-royal));
  animation: line-grow 0.8s var(--ease-out) backwards;
}

.section-header.reveal.is-visible h2::after {
  animation: line-grow 0.8s var(--ease-out) forwards;
}

@keyframes line-grow {
  from { width: 0; opacity: 0; }
  to { width: 48px; opacity: 1; }
}

.section-lead {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.grid-modules {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--sheet-1), var(--blue-royal));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}

.feature-card:hover::before {
  transform: scaleY(1);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(27, 133, 255, 0.25);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(27, 133, 255, 0.1), rgba(0, 62, 193, 0.06));
  transition: transform 0.4s var(--ease-spring), background 0.3s;
}

.feature-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(27, 133, 255, 0.18), rgba(0, 62, 193, 0.1));
}

.feature-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Avantages utilisateur */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.benefit-card {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.benefit-num {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue-azure);
  opacity: 0.85;
}

.benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.benefit-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Modules détaillés */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.module-block {
  position: relative;
  padding: 1.5rem 1.35rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  overflow: hidden;
}

.module-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-azure), var(--blue-royal));
}

.module-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.module-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-royal);
}

.module-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  border-bottom: 1px solid rgba(0, 62, 193, 0.06);
}

.module-list li:last-child {
  border-bottom: none;
}

.module-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-azure);
}

.feature-list {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.feature-list li {
  position: relative;
  padding: 1rem 1.25rem 1rem 2.75rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-secondary);
  transition: color 0.3s, background 0.3s, padding-left 0.35s var(--ease-out);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li.is-visible:hover {
  color: var(--blue-royal);
  background: rgba(27, 133, 255, 0.04);
  padding-left: 3rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 1.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-azure), var(--blue-royal));
  transition: transform 0.3s var(--ease-spring);
}

.feature-list li.is-visible:hover::before {
  transform: scale(1.25);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}

.pricing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 40%, rgba(27, 133, 255, 0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
  pointer-events: none;
}

.pricing-card.is-visible:hover::after {
  transform: translateX(100%);
}

.pricing-card.is-visible:hover {
  transform: translateY(-8px);
  border-color: rgba(27, 133, 255, 0.3);
  box-shadow: var(--shadow);
}

.pricing-featured {
  border-color: rgba(27, 133, 255, 0.35);
  background: linear-gradient(160deg, rgba(27, 133, 255, 0.06), var(--card-bg));
  box-shadow: var(--shadow);
}

.pricing-featured.is-visible:hover {
  transform: translateY(-10px) scale(1.01);
}

.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--blue-azure), var(--blue-royal));
  color: var(--white);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 62, 193, 0.25);
}

.pricing-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-azure);
}

.pricing-card h3 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.pricing-desc {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-prices {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  flex-grow: 1;
}

.pricing-prices li {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--card-border);
  transition: padding-left 0.3s;
}

.pricing-card:hover .pricing-prices li {
  padding-left: 4px;
}

.pricing-prices .price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-prices .price-highlight {
  color: var(--blue-royal);
  font-size: 1.55rem;
}

.pricing-prices .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-extra {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.pricing-note {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Download */
.section-download {
  padding-bottom: 6rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  overflow: visible;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, box-shadow 0.35s;
}

.download-card.is-visible:hover {
  text-decoration: none;
  transform: translateY(-5px);
  border-color: rgba(27, 133, 255, 0.3);
  box-shadow: var(--shadow);
}

.download-disabled {
  cursor: not-allowed;
}

.download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(27, 133, 255, 0.12), rgba(0, 62, 193, 0.08));
  color: var(--blue-royal);
  overflow: visible;
  transition: transform 0.4s var(--ease-spring), background 0.3s;
}

.download-icon svg {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  overflow: visible;
}

.download-card:hover .download-icon {
  transform: scale(1.06);
  background: linear-gradient(135deg, rgba(27, 133, 255, 0.18), rgba(0, 62, 193, 0.12));
}

.download-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.download-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 62, 193, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, #f0f5fc 100%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(27, 133, 255, 0.08) 0%, transparent 70%);
}

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

.footer-banner {
  max-width: 260px;
  height: auto;
  border-radius: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  max-width: 100%;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--blue-royal);
  text-decoration: none;
}

.footer-copy,
.footer-legal {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.footer-contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(0, 62, 193, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}

.footer-social-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-social-link:hover {
  color: var(--blue-royal);
  border-color: rgba(27, 133, 255, 0.35);
  background: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.footer-social-phone span {
  white-space: nowrap;
}

.trust-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 600;
}

.trust-link:hover {
  color: var(--blue-royal);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px) scale(0.9);
  padding: 0.9rem 1.35rem;
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: transform 0.4s var(--ease-spring), opacity 0.35s;
  opacity: 0;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}

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

  .orb,
  .float-inv,
  .invoice-doc,
  .logo-frame-rect,
  .logo-glow,
  .hero-icon-wrap,
  .logo-ring,
  .btn-shine::after,
  .pricing-badge,
  .badge-pulse,
  .inv-line,
  .inv-qr {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-enter {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc,
  .hero-actions {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-scene {
    height: min(340px, 85vw);
  }

  .invoice-fan {
    right: 0;
    top: 0;
    transform: scale(0.85);
    transform-origin: top right;
  }

  .pricing-featured.is-visible:hover {
    transform: translateY(-8px);
  }

  .footer-nav {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.35s, visibility 0.35s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 1rem;
  }

  .nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section {
    padding: 3.75rem 0;
  }

  .hero-desc {
    margin-bottom: 1.35rem;
    font-size: 1rem;
  }

  .hero-trust {
    gap: 0.45rem;
    margin-bottom: 1.15rem;
  }

  .hero-trust li {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-banner {
    max-width: min(240px, 78vw);
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 22rem;
    gap: 0.55rem 0.75rem;
  }

  .footer-nav a {
    display: block;
    padding: 0.45rem 0.35rem;
    font-size: 0.84rem;
    text-align: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 62, 193, 0.08);
  }

  .footer-contact {
    gap: 0.65rem;
    padding-inline: 0.25rem;
  }

  .footer-social {
    gap: 0.5rem;
    width: 100%;
  }

  .footer-social-link {
    font-size: 0.8rem;
    padding: 0.45rem 0.72rem;
  }

  .footer-social-phone {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1120px, 94vw);
  }

  .hero-scene {
    height: min(300px, 88vw);
  }

  .invoice-fan {
    transform: scale(0.72);
    right: -6%;
  }

  .hero-actions {
    max-width: 100%;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    gap: 0.45rem;
  }

  .footer-nav a {
    font-size: 0.8rem;
    padding: 0.5rem 0.25rem;
  }

  .footer-social-link span {
    font-size: 0.78rem;
  }
}
