/* ============================================
   Charte visuelle Comptal2 — Site
   ============================================ */

:root {
  --invoicing-primary: #1e3a8a;
  --invoicing-primary-light: #3b82f6;
  --invoicing-primary-lighter: #60a5fa;
  --invoicing-primary-lightest: #dbeafe;

  --invoicing-gray-50: #f8fafc;
  --invoicing-gray-100: #f1f5f9;
  --invoicing-gray-200: #e2e8f0;
  --invoicing-gray-300: #cbd5e1;
  --invoicing-gray-400: #94a3b8;
  --invoicing-gray-500: #64748b;
  --invoicing-gray-600: #475569;
  --invoicing-gray-700: #334155;
  --invoicing-gray-800: #1e293b;
  --invoicing-gray-900: #0f172a;

  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-lightest: #ccfbf1;

  /* États (charte Comptal2) */
  --invoicing-success: #10b981;
  --invoicing-warning: #f59e0b;
  --invoicing-danger: #ef4444;
  --invoicing-info: #3b82f6;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--invoicing-gray-800);
  background: var(--invoicing-gray-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ========== Scroll reveal animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay for children */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

.reveal-left:nth-child(2),
.reveal-right:nth-child(2) { transition-delay: 0.1s; }
.reveal-left:nth-child(3),
.reveal-right:nth-child(3) { transition-delay: 0.2s; }
.reveal-left:nth-child(4),
.reveal-right:nth-child(4) { transition-delay: 0.3s; }
.reveal-left:nth-child(5),
.reveal-right:nth-child(5) { transition-delay: 0.4s; }

/* ========== Navigation ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--invoicing-gray-200);
  transition: box-shadow 0.3s ease;
}

.nav--scrolled {
  box-shadow: var(--shadow-md);
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--invoicing-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__logo:hover {
  color: var(--invoicing-primary-light);
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--invoicing-gray-600);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--invoicing-primary);
  transition: width 0.25s ease;
}

.nav__links a:hover::after,
.nav__link--active::after {
  width: 100% !important;
}

.nav__links a:hover,
.nav__link--active {
  color: var(--invoicing-primary);
}

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--invoicing-gray-900) 0%, var(--invoicing-primary) 60%, #2563eb 100%);
  overflow: hidden;
  color: white;
}

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

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.hero__orb--1 {
  width: 420px;
  height: 420px;
  background: var(--invoicing-primary-light);
  top: -140px;
  right: -100px;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.hero__orb--2 {
  width: 320px;
  height: 320px;
  background: var(--teal);
  bottom: -80px;
  left: -120px;
  animation: orbFloat 10s ease-in-out 1s infinite alternate-reverse;
}

.hero__orb--3 {
  width: 200px;
  height: 200px;
  background: #818cf8;
  top: 40%;
  left: 50%;
  animation: orbFloat 7s ease-in-out 2s infinite alternate;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  padding: 5px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero__title {
  margin: 0 0 0.6rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero__subtitle {
  margin: 0 0 2.5rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

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

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--invoicing-primary);
  background: white;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  background: #f0f4ff;
}

.hero__cta:active {
  transform: translateY(-1px);
}

.hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* ========== Sections communes ========== */
.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--invoicing-gray-900);
  text-align: center;
  letter-spacing: -0.01em;
}

.section-intro {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: var(--invoicing-gray-500);
  text-align: center;
}

/* ========== Features ========== */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--invoicing-gray-200);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--invoicing-primary), var(--invoicing-primary-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--invoicing-primary-lighter);
  transform: translateY(-5px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.feature-card__icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.feature-card__icon-wrap svg {
  width: 22px;
  height: 22px;
}

.feature-card__icon-wrap--blue    { background: #dbeafe; color: #2563eb; }
.feature-card__icon-wrap--indigo  { background: #e0e7ff; color: #4f46e5; }
.feature-card__icon-wrap--emerald { background: #d1fae5; color: #059669; }
.feature-card__icon-wrap--amber   { background: #fef3c7; color: #d97706; }
.feature-card__icon-wrap--navy    { background: #dbeafe; color: #1e3a8a; }
.feature-card__icon-wrap--slate   { background: #f1f5f9; color: #475569; }

.feature-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--invoicing-gray-900);
}

.feature-card__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--invoicing-gray-600);
  line-height: 1.55;
}

/* ========== Showcase (Entreprise / Association) ========== */
.showcase {
  padding: 5rem 1.5rem;
}

.showcase--entreprise {
  background: var(--invoicing-gray-50);
}

.showcase--association {
  background: white;
}

.showcase__container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.showcase__container--reverse {
  direction: rtl;
}

.showcase__container--reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .showcase__container,
  .showcase__container--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.showcase__badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--invoicing-primary);
  background: var(--invoicing-primary-lightest);
  border-radius: 20px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.showcase__badge--teal {
  color: var(--teal);
  background: var(--teal-lightest);
}

.showcase__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--invoicing-gray-900);
  line-height: 1.3;
}

.showcase__desc {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--invoicing-gray-600);
}

.showcase__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.showcase__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.showcase__item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.showcase__item-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.showcase__item-icon-wrap svg {
  width: 17px;
  height: 17px;
}

.showcase__item-icon-wrap--blue    { background: #dbeafe; color: #2563eb; }
.showcase__item-icon-wrap--indigo  { background: #e0e7ff; color: #4f46e5; }
.showcase__item-icon-wrap--amber   { background: #fef3c7; color: #d97706; }
.showcase__item-icon-wrap--emerald { background: #d1fae5; color: #059669; }
.showcase__item-icon-wrap--violet  { background: #ede9fe; color: #7c3aed; }
.showcase__item-icon-wrap--rose    { background: #ffe4e6; color: #e11d48; }
.showcase__item-icon-wrap--teal    { background: #ccfbf1; color: #0d9488; }
.showcase__item-icon-wrap--slate   { background: #f1f5f9; color: #475569; }

.showcase__item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--invoicing-gray-800);
  margin-bottom: 2px;
}

.showcase__item span {
  font-size: 0.875rem;
  color: var(--invoicing-gray-500);
  line-height: 1.45;
}

/* Floating mini cards (visual decoration) */
.showcase__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase__card-stack {
  position: relative;
  width: 280px;
  height: 260px;
}

.showcase__mini-card {
  position: absolute;
  width: 240px;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--invoicing-gray-200);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase__mini-card--teal {
  border-color: rgba(13, 148, 136, 0.2);
}

.showcase__mini-card--1 {
  top: 0;
  left: 0;
  animation: floatCard1 6s ease-in-out infinite;
}

.showcase__mini-card--2 {
  top: 70px;
  left: 40px;
  animation: floatCard2 6s ease-in-out infinite;
}

.showcase__mini-card--3 {
  top: 140px;
  left: 10px;
  animation: floatCard3 6s ease-in-out infinite;
}

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatCard3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.showcase__mini-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--invoicing-gray-500);
  margin-bottom: 4px;
}

.showcase__mini-amount {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--invoicing-gray-800);
}

.showcase__mini-amount--green {
  color: #10b981;
}

.showcase__mini-amount--blue {
  color: var(--invoicing-primary);
}

.showcase__mini-amount--teal {
  color: var(--teal);
}

@media (max-width: 768px) {
  .showcase__visual {
    display: none;
  }
}

/* ========== Diagram ========== */
.diagram {
  max-width: 100%;
  margin: 0 auto;
  padding: 5rem clamp(1rem, 4vw, 3rem);
}

.diagram__container {
  background: white;
  border: 1px solid var(--invoicing-gray-200);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.diagram__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: min-content;
}

@media (max-width: 600px) {
  .diagram__flow {
    flex-direction: column;
  }
  .diagram__arrow {
    transform: rotate(90deg);
  }
}

.diagram__node {
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  border: 2px solid var(--invoicing-gray-300);
  background: var(--invoicing-gray-50);
  transition: all 0.3s ease;
}

.diagram__node:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.diagram__node--entry {
  border-color: var(--invoicing-primary);
  background: var(--invoicing-primary-lightest);
}

.diagram__node--module {
  border-color: var(--invoicing-gray-300);
  background: white;
  padding: 10px 16px;
}

.diagram__node--entreprise {
  border-color: var(--invoicing-primary-lighter);
  background: var(--invoicing-primary-lightest);
}

.diagram__node--association {
  border-color: var(--teal);
  background: var(--teal-lightest);
}

.diagram__label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--invoicing-gray-800);
}

.diagram__sublabel {
  display: block;
  font-size: 0.75rem;
  color: var(--invoicing-gray-500);
  margin-top: 2px;
}

.diagram__arrow {
  font-size: 1.25rem;
  color: var(--invoicing-gray-400);
  font-weight: 700;
}

.diagram__branch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.diagram__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--invoicing-gray-600);
}

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

.diagram__legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.diagram__legend-dot--entry {
  background: var(--invoicing-primary-lightest);
  border: 2px solid var(--invoicing-primary);
}

.diagram__legend-dot--core {
  background: var(--invoicing-gray-200);
  border: 2px solid var(--invoicing-gray-400);
}

.diagram__legend-dot--module {
  background: white;
  border: 2px solid var(--invoicing-gray-300);
}

/* ========== Architecture Diagram ========== */
.arch {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 2.5rem 0 1.5rem;
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem);
  background: white;
  border: 1px solid var(--invoicing-gray-200);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  justify-content: space-between;
}

.arch__group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
  flex: 0 0 auto;
}

.arch__group--modules {
  flex: 1 1 auto;
  min-width: 0;
}

.arch__group--center {
  align-items: center;
}

.arch__group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--invoicing-gray-400);
  margin: 0 0 0.2rem;
  text-align: center;
}

.arch__node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  min-width: 168px;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.arch__node:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.arch__node--core {
  padding: 1rem 1.125rem;
}

.arch__node--blue   { background: #eff6ff; border-color: #bfdbfe; }
.arch__node--slate  { background: #f8fafc; border-color: #e2e8f0; }
.arch__node--indigo { background: #eef2ff; border-color: #c7d2fe; }

.arch__icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arch__icon-wrap svg { width: 18px; height: 18px; }

.arch__node--blue   .arch__icon-wrap { background: #dbeafe; color: #2563eb; }
.arch__node--slate  .arch__icon-wrap { background: #f1f5f9; color: #64748b; }
.arch__node--indigo .arch__icon-wrap { background: #e0e7ff; color: #4f46e5; }

.arch__node-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arch__node-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--invoicing-gray-800);
  line-height: 1.2;
}

.arch__node-sub {
  font-size: 0.7rem;
  color: var(--invoicing-gray-500);
  font-family: 'Courier New', monospace;
  letter-spacing: -0.01em;
}

.arch__arrow {
  color: #cbd5e1;
  padding: 0 0.875rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-top: 1.4rem;
}

/* Modules grid */
.arch__modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.arch__module {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  text-align: center;
  min-width: 105px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.arch__module:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}

.arch__module--full { grid-column: span 2; flex-direction: row; justify-content: center; gap: 0.5rem; padding: 0.5rem 0.75rem; }

.arch__module-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arch__module-icon svg { width: 14px; height: 14px; }

.arch__module-title {
  font-weight: 600;
  font-size: 0.775rem;
  color: var(--invoicing-gray-800);
  line-height: 1.2;
}

.arch__module-sub {
  font-size: 0.63rem;
  color: var(--invoicing-gray-400);
  font-family: 'Courier New', monospace;
  letter-spacing: -0.01em;
}

/* Module color variants */
.arch__module--indigo  { background: #eef2ff; border-color: #c7d2fe; }
.arch__module--indigo  .arch__module-icon { background: #e0e7ff; color: #4f46e5; }

.arch__module--emerald { background: #f0fdf4; border-color: #a7f3d0; }
.arch__module--emerald .arch__module-icon { background: #d1fae5; color: #059669; }

.arch__module--amber   { background: #fffbeb; border-color: #fde68a; }
.arch__module--amber   .arch__module-icon { background: #fef3c7; color: #d97706; }

.arch__module--blue    { background: #eff6ff; border-color: #bfdbfe; }
.arch__module--blue    .arch__module-icon { background: #dbeafe; color: #2563eb; }

.arch__module--teal    { background: #f0fdfa; border-color: #99f6e4; }
.arch__module--teal    .arch__module-icon { background: #ccfbf1; color: #0d9488; }

.arch__module--violet  { background: #f5f3ff; border-color: #ddd6fe; }
.arch__module--violet  .arch__module-icon { background: #ede9fe; color: #7c3aed; }

.arch__module--slate   { background: #f8fafc; border-color: #e2e8f0; }
.arch__module--slate   .arch__module-icon { background: #f1f5f9; color: #475569; }

/* Legend */
.arch__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--invoicing-gray-600);
}

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

.arch__legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex-shrink: 0;
}

.arch__legend-dot--blue   { background: #dbeafe; border: 2px solid #2563eb; }
.arch__legend-dot--indigo { background: #e0e7ff; border: 2px solid #4f46e5; }
.arch__legend-dot--multi  { background: linear-gradient(135deg, #d1fae5, #ede9fe); border: 2px solid #94a3b8; }

@media (max-width: 760px) {
  .arch {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .arch__arrow {
    transform: rotate(90deg);
    justify-content: center;
    margin-top: 0;
    padding: 0.25rem 0;
  }
  .arch__group--center { align-items: stretch; }
  .arch__node { min-width: unset; }
}

/* ========== CTA Section ========== */
.cta-section {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(160deg, var(--invoicing-gray-900) 0%, var(--invoicing-primary) 60%, #2563eb 100%);
  overflow: hidden;
  color: white;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-section__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}

.cta-section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: white;
}

.cta-section__desc {
  margin: 0 0 2rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.cta-section__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--invoicing-primary);
  background: white;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-section__btn:hover {
  background: #f0f4ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ========== Page Téléchargement — moderne ========== */
.download-page {
  flex: 1;
}

/* ========== Page Qui je suis ========== */
.about-page {
  flex: 1;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.about-section {
  margin-bottom: 2.5rem;
}

.about-section__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--invoicing-gray-900);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.about-section__text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--invoicing-gray-700);
  margin: 0 0 1rem;
}

.about-section__text:last-of-type {
  margin-bottom: 0;
}

.about-section__text strong {
  color: var(--invoicing-gray-900);
  font-weight: 600;
}

.about-section--alt .about-section__title {
  color: var(--invoicing-primary);
}

.about-section__link-wrap {
  margin-top: 1rem;
}

.about-section__link {
  color: var(--invoicing-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.about-section__link:hover {
  text-decoration: underline;
}

/* Fiche synthétique profil */
.about-profile {
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

.about-profile__card {
  background: white;
  border: 1px solid var(--invoicing-gray-200);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.about-profile__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.about-profile__icon {
  font-size: 1.3rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.about-profile__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.about-profile__info strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--invoicing-gray-900);
}

.about-profile__info span {
  font-size: 0.875rem;
  color: var(--invoicing-gray-500);
}

.about-profile__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  padding: 0.65rem 1.25rem;
  align-self: flex-start;
  background: #0a66c2;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.about-profile__linkedin:hover {
  background: #0958a8;
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.dl-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5rem 1.5rem 3.5rem;
  background: linear-gradient(160deg, var(--invoicing-gray-900) 0%, var(--invoicing-primary) 60%, #2563eb 100%);
  color: white;
}

.dl-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dl-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.dl-hero__orb--1 {
  width: 400px;
  height: 400px;
  background: var(--invoicing-primary-light);
  top: -120px;
  right: -80px;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.dl-hero__orb--2 {
  width: 300px;
  height: 300px;
  background: var(--teal);
  bottom: -60px;
  left: -100px;
  animation: orbFloat 10s ease-in-out 1s infinite alternate-reverse;
}

.dl-hero__orb--3 {
  width: 200px;
  height: 200px;
  background: #818cf8;
  top: 40%;
  left: 50%;
  animation: orbFloat 7s ease-in-out 2s infinite alternate;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -20px) scale(1.1); }
}

.dl-hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.dl-hero__badge {
  display: inline-block;
  padding: 5px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.dl-hero__title {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.dl-hero__subtitle {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
}

/* CTA button */
.dl-hero__cta {
  margin-bottom: 1.5rem;
}

.dl-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--invoicing-primary);
  background: white;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dl-hero__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  background: #f0f4ff;
}

.dl-hero__btn-icon {
  flex-shrink: 0;
}

.dl-hero__btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.dl-hero__btn-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--invoicing-gray-500);
}

.dl-hero__btn-platform {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--invoicing-primary);
}

.dl-hero__meta {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.dl-hero__alt {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.dl-hero__scroll-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  animation: bounceHint 2s ease-in-out infinite;
  transition: border-color 0.2s, color 0.2s;
}

.dl-hero__scroll-hint:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

@keyframes bounceHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Platform cards section ---------- */
.dl-platforms {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.dl-platforms__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .dl-platforms__grid {
    grid-template-columns: 1fr;
  }
}

/* Individual card */
.dl-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--invoicing-gray-200);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dl-card:hover {
  border-color: var(--invoicing-gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.dl-card--recommended {
  border-color: var(--invoicing-primary);
  box-shadow: 0 0 0 3px var(--invoicing-primary-lightest), var(--shadow-md);
}

.dl-card--recommended::before {
  content: "Recommandé";
  position: absolute;
  top: -10px;
  left: 1.25rem;
  padding: 2px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: white;
  background: var(--invoicing-primary);
  border-radius: 6px;
}

/* Icon wrap */
.dl-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.dl-card__icon-wrap--blue {
  background: #dbeafe;
  color: var(--invoicing-primary);
}

.dl-card__icon-wrap--gray {
  background: var(--invoicing-gray-100);
  color: var(--invoicing-gray-700);
}

.dl-card__icon-wrap--orange {
  background: #fef3c7;
  color: #b45309;
}

.dl-card__icon {
  width: 24px;
  height: 24px;
}

/* Body */
.dl-card__body {
  flex: 1;
  margin-bottom: 1rem;
}

.dl-card__title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--invoicing-gray-900);
}

.dl-card__desc {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--invoicing-gray-500);
}

.dl-card__file {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-family: ui-monospace, "SF Mono", monospace;
  color: var(--invoicing-gray-600);
  background: var(--invoicing-gray-100);
  border-radius: 4px;
  word-break: break-all;
}

/* Badge .deb / .rpm dans le titre de la carte */
.dl-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--invoicing-gray-100);
  color: var(--invoicing-gray-600);
  vertical-align: middle;
  margin-left: 4px;
  font-family: ui-monospace, "SF Mono", monospace;
}

/* Download button */
.dl-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: white;
  background: var(--invoicing-primary);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  align-self: flex-start;
}

.dl-card__btn:hover {
  background: var(--invoicing-primary-light);
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.25);
  transform: translateY(-2px);
}

/* Footer link */
.dl-platforms__footer {
  text-align: center;
  margin-top: 2rem;
}

.dl-platforms__all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--invoicing-primary);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--invoicing-primary-lightest);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dl-platforms__all-link:hover {
  background: var(--invoicing-primary-lightest);
  border-color: var(--invoicing-primary-lighter);
}

/* ========== Footer ========== */
.footer {
  margin-top: auto;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--invoicing-gray-500);
  background: var(--invoicing-gray-50);
  border-top: 1px solid var(--invoicing-gray-200);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem 0;
}

.footer a {
  color: var(--invoicing-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  text-decoration: underline;
  color: var(--invoicing-primary-light);
}

.footer__sep {
  margin: 0 0.5rem;
  color: var(--invoicing-gray-400);
}

/* ========== Language switcher ========== */
.lang-switcher {
  appearance: none;
  -webkit-appearance: none;
  padding: 4px 24px 4px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--invoicing-primary);
  background: var(--invoicing-primary-lightest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231e3a8a'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid var(--invoicing-primary-lightest);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switcher:hover {
  border-color: var(--invoicing-primary-lighter);
  background-color: white;
}

.lang-switcher:focus {
  outline: 2px solid var(--invoicing-primary-lighter);
  outline-offset: 1px;
}

/* ========== Detail sections (Dashboard, Finance, Edition, Projet, Import) ========== */
.detail-section {
  padding: 5rem 1.5rem;
}

.detail-section--alt {
  background: var(--invoicing-gray-50);
}

.detail__container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.detail__container--reverse {
  direction: rtl;
}

.detail__container--reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .detail__container,
  .detail__container--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.detail__badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--invoicing-primary);
  background: var(--invoicing-primary-lightest);
  border-radius: 20px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail__badge--indigo {
  color: #4338ca;
  background: #e0e7ff;
}

.detail__badge--amber {
  color: #b45309;
  background: #fef3c7;
}

.detail__badge--violet {
  color: #7c3aed;
  background: #ede9fe;
}

.detail__badge--emerald {
  color: #047857;
  background: #d1fae5;
}

.detail__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--invoicing-gray-900);
  line-height: 1.3;
}

.detail__desc {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--invoicing-gray-600);
}

.detail__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail__feat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail__feat strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--invoicing-gray-800);
}

.detail__feat span {
  font-size: 0.875rem;
  color: var(--invoicing-gray-500);
  line-height: 1.45;
}

.detail__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .detail__visual {
    margin-top: 1rem;
  }
}

/* ========== Chart Mocks ========== */
.chart-mock {
  background: white;
  border: 1px solid var(--invoicing-gray-200);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 340px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.chart-mock:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.chart-mock__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--invoicing-gray-600);
}

.chart-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.5rem;
}

.chart-dot:first-child {
  margin-left: 0;
}

/* Pie / Donut */
.chart-mock--pie {
  text-align: center;
}

.chart-mock__svg {
  width: 140px;
  height: 140px;
}

.chart-ring {
  transform-origin: center;
  animation: ringGrow 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.chart-ring--1 { animation-delay: 0.2s; }
.chart-ring--2 { animation-delay: 0.5s; }
.chart-ring--3 { animation-delay: 0.8s; }

@keyframes ringGrow {
  from {
    stroke-dasharray: 0 314;
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Bar chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding-bottom: 20px;
  position: relative;
}

.bar-group {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  position: relative;
}

.bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  min-width: 12px;
  animation: barGrow 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bar--expense { background: #ef4444; }
.bar--income { background: #10b981; }

.bar-group:nth-child(1) .bar { animation-delay: 0.1s; }
.bar-group:nth-child(2) .bar { animation-delay: 0.2s; }
.bar-group:nth-child(3) .bar { animation-delay: 0.3s; }
.bar-group:nth-child(4) .bar { animation-delay: 0.4s; }
.bar-group:nth-child(5) .bar { animation-delay: 0.5s; }
.bar-group:nth-child(6) .bar { animation-delay: 0.6s; }

@keyframes barGrow {
  from { height: 0 !important; }
}

.bar-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--invoicing-gray-400);
}

/* ========== Finance Global — SVG charts ========== */
.detail__visual--finance {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 460px;
  width: 100%;
}

.finchart {
  background: white;
  border: 1px solid var(--invoicing-gray-200);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}

.finchart:hover {
  box-shadow: var(--shadow-md);
}

.finchart--main {
  padding: 1.25rem 1.5rem;
  border-color: var(--invoicing-gray-300);
  box-shadow: var(--shadow-md);
}

.finchart__header {
  margin-bottom: 0.5rem;
}

.finchart__title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--invoicing-gray-800);
  margin-bottom: 1px;
}

.finchart__sub {
  display: block;
  font-size: 0.68rem;
  color: var(--invoicing-gray-500);
}

.finchart__svg {
  width: 100%;
  height: auto;
  display: block;
}


.finchart__axislabel {
  font-size: 8px;
  fill: var(--invoicing-gray-400);
  font-family: inherit;
}

/* Bar animation — stagger via nth-child */
.finchart__bar {
  opacity: 0;
  animation: svgBarIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.finchart__bar:nth-child(4n+1) { animation-delay: 0.05s; }
.finchart__bar:nth-child(4n+2) { animation-delay: 0.1s; }
.finchart__bar:nth-child(4n+3) { animation-delay: 0.15s; }
.finchart__bar:nth-child(4n)   { animation-delay: 0.2s; }

@keyframes svgBarIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Total line animation */
.finchart__total-line {
  fill: none;
  stroke: #10b981;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: lineDraw 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.finchart__dot {
  opacity: 0;
  animation: dotAppear 0.3s ease forwards;
}

.finchart__dot:nth-child(8) { animation-delay: 0.8s; }
.finchart__dot:nth-child(9) { animation-delay: 0.95s; }
.finchart__dot:nth-child(10) { animation-delay: 1.1s; }
.finchart__dot:nth-child(11) { animation-delay: 1.25s; }
.finchart__dot:nth-child(12) { animation-delay: 1.4s; }
.finchart__dot:nth-child(13) { animation-delay: 1.55s; }

@keyframes dotAppear {
  to { opacity: 1; }
}


/* Legend */
.finchart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.65rem;
  margin-top: 0.6rem;
  font-size: 0.68rem;
  color: var(--invoicing-gray-600);
}

.finchart__legend--inline {
  justify-content: center;
}

.finchart__legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.finchart__swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.finchart__swatch--line {
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: #10b981;
}

@media (max-width: 768px) {
  .detail__visual--finance {
    max-width: 100%;
  }
}

/* Line chart */
.chart-mock--line {
  padding: 1.25rem;
}

.line-chart__svg {
  width: 100%;
  height: 100px;
}

.line-chart__line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: lineDraw 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.line-chart__line--projected {
  stroke: #8b5cf6;
  animation-delay: 0.3s;
}

.line-chart__line--real {
  stroke: #3b82f6;
  stroke-dasharray: 8 4;
  animation-delay: 0.6s;
}

@keyframes lineDraw {
  to { stroke-dashoffset: 0; }
}

/* Table mock */
.chart-mock--table {
  padding: 1rem;
  max-width: 340px;
}

.mock-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mock-table__row {
  display: grid;
  grid-template-columns: 50px 1fr 80px 50px;
  gap: 8px;
  padding: 8px 6px;
  font-size: 0.75rem;
  color: var(--invoicing-gray-700);
  border-bottom: 1px solid var(--invoicing-gray-100);
  animation: rowSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mock-table__row:nth-child(2) { animation-delay: 0.15s; }
.mock-table__row:nth-child(3) { animation-delay: 0.3s; }
.mock-table__row:nth-child(4) { animation-delay: 0.45s; }
.mock-table__row:nth-child(5) { animation-delay: 0.6s; }

@keyframes rowSlide {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.mock-table__row--header {
  font-weight: 600;
  color: var(--invoicing-gray-500);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--invoicing-gray-200);
}

.mock-amount--red { color: #ef4444; font-weight: 600; }
.mock-amount--green { color: #10b981; font-weight: 600; }

.mock-cat {
  background: var(--invoicing-gray-100);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 500;
  text-align: center;
  color: var(--invoicing-gray-600);
}

.mock-cat--auto {
  background: var(--invoicing-primary-lightest);
  color: var(--invoicing-primary);
}

/* Import mock */
.chart-mock--import {
  max-width: 300px;
}

.import-mock__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  border: 2px dashed var(--invoicing-gray-300);
  border-radius: 8px;
  margin-bottom: 1rem;
  animation: dropPulse 3s ease-in-out infinite;
}

@keyframes dropPulse {
  0%, 100% { border-color: var(--invoicing-gray-300); }
  50% { border-color: var(--invoicing-primary-lighter); }
}

.import-mock__icon {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.import-mock__text {
  font-size: 0.8rem;
  font-family: ui-monospace, monospace;
  color: var(--invoicing-gray-600);
}

.import-mock__mapping {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.import-mock__col {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  animation: mapSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.import-mock__col:nth-child(1) { animation-delay: 0.3s; }
.import-mock__col:nth-child(2) { animation-delay: 0.5s; }
.import-mock__col:nth-child(3) { animation-delay: 0.7s; }

@keyframes mapSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.import-mock__col-from {
  background: var(--invoicing-gray-100);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--invoicing-gray-600);
  font-weight: 500;
}

.import-mock__col-arrow {
  color: var(--invoicing-gray-400);
  font-weight: 700;
}

.import-mock__col-to {
  background: var(--invoicing-primary-lightest);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--invoicing-primary);
  font-weight: 600;
}

/* ========== SEO pages (comparatif) ========== */
.seo-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.seo-page__intro {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: var(--invoicing-gray-600);
  line-height: 1.55;
}

.compare-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid var(--invoicing-gray-200);
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--invoicing-gray-200);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: var(--invoicing-gray-50);
  font-weight: 600;
  color: var(--invoicing-gray-800);
}

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

.compare-table tr:nth-child(even) td {
  background: rgba(30, 58, 138, 0.03);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--invoicing-gray-700);
  white-space: nowrap;
}

.seo-page__cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: white;
  background: var(--invoicing-primary);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.seo-page__cta:hover {
  background: var(--invoicing-primary-light);
}
