/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --accent: #6366F1;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --text: #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.logo img { height: 40px; width: auto; }
.logo--white img { filter: brightness(0) invert(1); }

/* fallback texte (si SVG absent) */
.logo__icon { color: var(--primary); font-size: 1.1rem; }
.logo__accent { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all .2s;
}

.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

.nav-actions { display: flex; gap: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,.3); }

.btn--ghost { color: var(--text-muted); background: transparent; }
.btn--ghost:hover { background: var(--bg-alt); color: var(--text); }

.btn--outline { color: var(--primary); background: transparent; border-color: var(--border); }
.btn--outline:hover { border-color: var(--primary); background: var(--primary-light); }

.btn--outline-white { color: #fff; background: transparent; border-color: rgba(255,255,255,.4); }
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn--white { background: #fff; color: var(--primary); border-color: #fff; }
.btn--white:hover { background: #f0f0f0; transform: translateY(-1px); }

.btn--lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn--sm { padding: 6px 14px; font-size: .82rem; }
.btn--full { width: 100%; justify-content: center; }

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 0 100px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.badge__dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.2); }
}

.hero__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat__number { display: block; font-size: 1.6rem; font-weight: 800; color: var(--text); }
.stat__label { display: block; font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.stat__divider { width: 1px; height: 36px; background: var(--border); }

/* SCORE CARD */
.hero__visual { display: flex; justify-content: center; }

.score-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 340px;
  box-shadow: var(--shadow-xl);
  animation: float 4s ease-in-out infinite;
}

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

.score-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: .9rem;
  flex-shrink: 0;
}

.avatar--sm { width: 40px; height: 40px; font-size: .8rem; }

.score-card__name { font-weight: 700; font-size: 1rem; }
.score-card__sub { font-size: .8rem; color: var(--text-muted); }

.score-badge {
  margin-left: auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.score-badge--high {
  background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
  color: #166534;
  border: 2px solid #86EFAC;
}

.score-card__items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 500;
}

.check-item--ok svg { color: var(--success); flex-shrink: 0; }
.check-item--warn svg { color: var(--warning); flex-shrink: 0; }

.score-card__footer { border-top: 1px solid var(--border); padding-top: 16px; }

/* SCORE CARD — section bars */
.sc-sections { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.sc-row { display: flex; align-items: center; gap: 8px; }
.sc-label { font-size: .76rem; font-weight: 500; color: var(--text-muted); width: 82px; flex-shrink: 0; }
.sc-bar { flex: 1; height: 6px; background: #F3F4F6; border-radius: 99px; overflow: hidden; }
.sc-fill { height: 100%; border-radius: 99px; transition: width .4s; }
.sc-fill--high  { background: var(--success); }
.sc-fill--med   { background: #3B82F6; }
.sc-fill--warn  { background: var(--warning); }
.sc-fill--crit  { background: var(--danger); }
.sc-score { font-size: .75rem; font-weight: 700; width: 24px; text-align: right; flex-shrink: 0; }
.sc-score--high { color: var(--success); }
.sc-score--med  { color: #3B82F6; }
.sc-score--warn { color: var(--warning); }
.sc-score--crit { color: var(--danger); }

/* SCORE CARD — alerts strip */
.sc-alerts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.sc-alert {
  display: flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 500;
  padding: 5px 8px; border-radius: 6px;
}
.sc-alert--ok   { background: #F0FDF4; color: #166534; }
.sc-alert--ok svg { color: var(--success); flex-shrink: 0; }
.sc-alert--warn { background: #FFFBEB; color: #92400E; }
.sc-alert--warn svg { color: var(--warning); flex-shrink: 0; }
.sc-alert--crit { background: #FEF2F2; color: #991B1B; }
.sc-alert--crit svg { color: var(--danger); flex-shrink: 0; }

/* TAGS */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
}

.tag--green { background: #DCFCE7; color: #166534; }
.tag--blue { background: var(--primary-light); color: var(--primary); }
.tag--purple { background: #F3E8FF; color: #7C3AED; }

/* ===== LOGOS BAND ===== */
.logos-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-alt);
}

.logos-band__label {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.logos-band__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logo-item {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text-light);
  letter-spacing: -0.3px;
}

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
}

/* ===== STEPS ===== */
.steps {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: box-shadow .2s;
}

.step:hover { box-shadow: var(--shadow-lg); }

.step__number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 16px;
}

.step__icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

.step__arrow {
  font-size: 1.5rem;
  color: var(--text-light);
  align-self: center;
  flex-shrink: 0;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .2s;
}

.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.feature-card--large {
  grid-column: span 1;
}

.feature-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card__icon--blue { background: #EEF2FF; color: var(--primary); }
.feature-card__icon--green { background: #DCFCE7; color: var(--success); }
.feature-card__icon--orange { background: #FEF3C7; color: #D97706; }
.feature-card__icon--purple { background: #F3E8FF; color: #7C3AED; }
.feature-card__icon--teal { background: #CFFAFE; color: #0891B2; }
.feature-card__icon--red { background: #FEE2E2; color: var(--danger); }

.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

.feature-card--soon {
  opacity: .72;
  position: relative;
}
.feature-card--soon:hover { opacity: .85; }

.feature-card__soon-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #F3E8FF;
  color: #7C3AED;
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.feature-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-list li {
  font-size: .82rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.feature-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== TRUST ===== */
.trust-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.trust-content { display: flex; flex-direction: column; gap: 20px; }
.trust-content h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; }
.trust-content p { color: var(--text-muted); line-height: 1.7; }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 calc(33.333% - 7px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.trust-badge svg { color: var(--success); }

.security-card {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  box-shadow: var(--shadow-xl);
}

.security-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 24px;
  color: #A5B4FC;
}

.security-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .88rem;
  color: rgba(255,255,255,.7);
}

.security-item:last-child { border-bottom: none; }

.security-item__value { font-weight: 600; font-size: .82rem; padding: 4px 10px; border-radius: 100px; }
.security-item__value--green { background: rgba(16,185,129,.2); color: #6EE7B7; }
.security-item__value--red { background: rgba(239,68,68,.2); color: #FCA5A5; }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-grid--4 { grid-template-columns: repeat(4, 1fr); }
.pricing-grid--3 { grid-template-columns: repeat(3, 1fr); }

.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,.1);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__name { font-size: .85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }

.pricing-card__price { margin-bottom: 12px; }
.price__amount { font-size: 2.4rem; font-weight: 800; }
.price__period { font-size: .9rem; color: var(--text-muted); }

.pricing-card__desc { font-size: .88rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-features li { font-size: .88rem; color: var(--text-muted); }
.pricing-features li.feature--disabled { color: #D1D5DB; text-decoration: line-through; }

.pricing-card .btn { margin-top: auto; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial__stars { color: #F59E0B; font-size: 1rem; margin-bottom: 14px; }
.testimonial p { font-size: .92rem; color: var(--text); font-style: italic; line-height: 1.7; margin-bottom: 20px; }

.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__name { font-weight: 700; font-size: .9rem; }
.testimonial__role { font-size: .8rem; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: background .2s;
}

.faq-question:hover { background: var(--bg-alt); }

.faq-icon {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform .3s;
  flex-shrink: 0;
}

.faq-question.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.faq-answer.open { display: block; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 50%, #0891B2 100%);
  padding: 96px 0;
}

.cta-inner { text-align: center; }

.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-section p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 36px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: #0F172A; color: rgba(255,255,255,.6); padding: 64px 0 0; }

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { color: #fff; font-size: .88rem; font-weight: 700; margin-bottom: 4px; }
.footer__col a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer__col a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

/* Closing animation — applied just before `.open` is removed. */
.modal-overlay.closing { opacity: 0; }
.modal-overlay.closing .modal { transform: translateY(10px) scale(.98); opacity: 0; }

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(.96);
  opacity: 0;
  animation: modalIn .32s cubic-bezier(.16, 1, .3, 1) forwards;
  transition: transform .22s ease, opacity .22s ease;
}

@keyframes modalIn {
  0%   { opacity: 0; transform: translateY(20px) scale(.96); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal--wide    { max-width: 620px; }
.modal--cart    { max-width: 760px; }
.modal--upgrade { max-width: 900px; }

/* ── Dropzone ── */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  color: var(--text-muted);
}
.dropzone:hover, .dropzone--active {
  border-color: var(--primary);
  background: var(--primary-light);
}
.dropzone svg { margin: 0 auto 10px; display: block; }
.dropzone__text { font-size: .9rem; margin: 0 0 4px; }
.dropzone__text span { color: var(--primary); font-weight: 600; text-decoration: underline; }
.dropzone__hint { font-size: .78rem; margin: 0; }

/* ── File list ── */
.file-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
}
.file-item__icon { flex-shrink: 0; display: flex; }
.file-item__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-item__size { color: var(--text-muted); font-size: .78rem; white-space: nowrap; }
.file-item__remove,
.file-item__download {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 2px; border-radius: 4px;
  display: flex; flex-shrink: 0;
}
.file-item__remove:hover { color: var(--danger); background: #fee2e2; }
.file-item__download:hover { color: var(--primary); background: #eff6ff; }
.file-item--new::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.file-item__type-select {
  font-size: .75rem; padding: 2px 6px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--bg-alt); color: var(--text);
  cursor: pointer; white-space: nowrap; max-width: 160px;
}
.file-item__type-select:focus { outline: none; border-color: var(--primary); }
.file-item__preview {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 2px; border-radius: 4px;
  display: flex; flex-shrink: 0;
}
.file-item__preview:hover { color: var(--primary); background: var(--primary-light); }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-alt);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .2s;
}

.modal__close:hover { background: var(--border); color: var(--text); }

.modal__logo {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.modal__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.modal__subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }

.form-group { margin-bottom: 16px; }
.form-required { color: var(--danger); font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Section titles inside modal forms (dossier candidate, etc.) */
.form-section-title {
  margin: 1.75rem 0 .75rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.form-section-title:first-of-type { margin-top: 1rem; }
.form-hint { font-size: .82rem; color: var(--text-muted); margin: 0 0 1rem; }

/* Dossier candidate modal tabs */
.dossier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.dossier-tab {
  padding: .6rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.dossier-tab:hover { color: var(--text); }
.dossier-tab--active { color: var(--primary); border-bottom-color: var(--primary); }
/* Fixed-height tab panels so the modal never resizes when switching tabs.
   Each panel reserves the same vertical space; content scrolls internally. */
.dossier-tab-panel {
  display: none;
  height: 560px;
  overflow-y: auto;
  padding-right: 6px; /* room for scrollbar without layout shift */
}
.dossier-tab-panel--active { display: block; }
.input-error { border-color: var(--danger) !important; background: #fef2f2; }

/* Address autocomplete suggestions */
.addr-wrap { position: relative; }
.addr-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
}
.addr-suggestion {
  padding: 10px 14px;
  cursor: pointer;
  font-size: .88rem;
  border-bottom: 1px solid var(--border);
}
.addr-suggestion:hover, .addr-suggestion--active { background: var(--bg); }
.addr-suggestion:last-child { border-bottom: none; }
.addr-suggestion__label { font-weight: 500; }
.addr-suggestion__city { color: var(--text-muted); font-size: .78rem; margin-top: 2px; }
.addr-verified { color: #16a34a; font-size: .78rem; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.dossier-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .5rem;
}
.btn--sm { padding: .35rem .75rem; font-size: .82rem; }

/* Garant / adult cards inside panels */
.dossier-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: #fafbfc;
}
.dossier-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}
.dossier-card__title { font-weight: 600; font-size: .95rem; color: var(--text); }
.dossier-card__remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: .82rem;
}
.dossier-card__remove:hover { background: #fee2e2; }

.form-group label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color .2s;
  outline: none;
}

.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }

.form-input--invalid { border-color: #ef4444; }
.form-input--invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.12); }

/* Table pagination (shared across dossiers, biens, commandes, analyses, dashboard) */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.pager__info { font-variant-numeric: tabular-nums; }
.pager__controls { display: inline-flex; align-items: center; gap: 6px; }
.pager__page { padding: 0 10px; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.pager__btn {
  min-width: 30px; height: 30px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--text); cursor: pointer;
  font-family: var(--font); font-size: 1rem; line-height: 1;
  transition: background .15s, border-color .15s, color .15s;
}
.pager__btn:hover:not(:disabled) { background: #f8fafc; border-color: var(--primary); color: var(--primary); }
.pager__btn:disabled { opacity: .4; cursor: not-allowed; }
.pager__size { display: inline-flex; align-items: center; gap: 6px; }
.pager__size select {
  padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--text); font-family: var(--font); font-size: .85rem;
  cursor: pointer;
}
@media (max-width: 600px) {
  .pager { flex-direction: column; align-items: stretch; }
  .pager__controls { justify-content: center; }
}

textarea.form-input { resize: vertical; min-height: 80px; }

.form-link {
  display: block;
  font-size: .8rem;
  color: var(--primary);
  text-align: right;
  margin-top: 6px;
  text-decoration: none;
}

.form-link:hover { text-decoration: underline; }

.modal__switch { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--text-muted); }

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  font-size: inherit;
}

.link-btn:hover { text-decoration: underline; }

.form-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 24px 60px;
    gap: 40px;
  }

  .hero__subtitle { margin: 0 auto 36px; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { display: flex; justify-content: center; }
  .score-card { width: 100%; max-width: 340px; }

  .steps { flex-direction: column; }
  .step__arrow { transform: rotate(90deg); align-self: center; }

  .features-grid { grid-template-columns: 1fr; }

  .trust-section { grid-template-columns: 1fr; }

  .pricing-grid,
  .pricing-grid--4 { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero__stats { flex-direction: column; gap: 16px; }
  .stat__divider { display: none; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; gap: 8px; text-align: center; }

  .modal { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Document viewer modal ===== */
.doc-viewer {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
}

.doc-viewer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1e1b4b;
  color: #fff;
  flex-shrink: 0;
  gap: 16px;
}

.doc-viewer__title {
  font-weight: 600;
  font-size: .9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.doc-viewer__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.doc-viewer__dl {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a5b4fc;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.doc-viewer__dl:hover { color: #fff; }

.doc-viewer__close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  opacity: .8;
}
.doc-viewer__close:hover { opacity: 1; }

.doc-viewer__body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-viewer__body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.doc-viewer__body img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Filigrane LocaRank — overlay transparent, pointer-events none pour ne pas
   bloquer l'interaction avec le document */
.doc-viewer__wm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='110'%3E%3Ctext x='110' y='55' dominant-baseline='middle' text-anchor='middle' transform='rotate(-35 110 55)' font-size='15' font-family='Inter%2Csystem-ui%2Csans-serif' font-weight='700' fill='rgba(255%2C255%2C255%2C0.07)' letter-spacing='4'%3ELocaRank%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 110px;
}
