/* =========================================================
   ProUnity France - Design System
   ========================================================= */

:root {
  --navy-950: #081327;
  --navy-900: #0B1E3D;
  --navy-800: #122A4E;
  --navy-700: #1A3A68;
  --blue-600: #2F6FED;
  --blue-700: #2558C4;
  --blue-50: #EAF1FF;
  --teal-500: #10B3A3;
  --teal-50: #E6FBF8;
  --bg-light: #F6F8FB;
  --bg-white: #FFFFFF;
  --text-900: #131B2C;
  --text-700: #3A4453;
  --text-500: #6B7686;
  --border-200: #E4E9F1;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px -12px rgba(11, 30, 61, 0.15);
  --shadow-card-hover: 0 16px 40px -12px rgba(11, 30, 61, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-900);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--teal-500);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(47, 111, 237, 0.5);
}
.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(47, 111, 237, 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--border-200);
}
.btn-secondary:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
  transform: translateY(-2px);
}

.btn-on-dark {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-on-dark:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.cta-microcopy {
  font-size: 0.82rem;
  color: var(--text-500);
  margin-top: 0.4rem;
}
.cta-microcopy.on-dark { color: rgba(255,255,255,0.65); }

/* ---------- Header / Nav ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-200);
}

.nav-link {
  color: var(--text-700);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}
.nav-link:hover, .nav-link.active { color: var(--navy-900); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}

#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ---------- Hero ---------- */
.hero-section {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-700) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(47,111,237,0.35) 0%, rgba(47,111,237,0) 70%);
  top: -250px; right: -200px;
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,179,163,0.25) 0%, rgba(16,179,163,0) 70%);
  bottom: -220px; left: -150px;
  border-radius: 50%;
}

.trust-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

/* Hero visual mockup */
.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}
.mock-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.mock-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}
.mock-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-500), var(--blue-600));
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-light); }
@media (max-width: 768px) {
  .section { padding: 3.25rem 0; }
}

.section-intro {
  color: var(--text-700);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border-200);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all 0.25s ease;
  height: 100%;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: transparent;
}

.icon-badge {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}
.icon-badge.teal { background: var(--teal-50); color: var(--teal-500); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--navy-900);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-200);
}

/* ---------- Timeline ---------- */
.timeline-step {
  position: relative;
  padding-left: 0;
}
.timeline-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.timeline-connector {
  position: absolute;
  top: 44px;
  left: 22px;
  width: 2px;
  height: calc(100% + 1rem);
  background: var(--border-200);
}
@media (min-width: 1024px) {
  .timeline-connector-h {
    position: absolute;
    top: 22px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-200);
    z-index: 0;
  }
}

/* ---------- Stats ---------- */
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid var(--border-200);
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.1;
}
.stat-label {
  color: var(--text-500);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* ---------- Checklist ---------- */
.check-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.check-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2, .cta-banner h3 {
  color: #fff;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(16,179,163,0.25), transparent 60%);
}

/* ---------- Journey Cards ---------- */
.journey-card {
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  height: 100%;
  border: 1px solid var(--border-200);
  background: #fff;
  transition: all 0.25s ease;
}
.journey-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.journey-card.highlight {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff;
  border: none;
}
.journey-card.highlight h3, .journey-card.highlight p { color: #fff; }

/* ---------- Forms ---------- */
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-700);
  margin-bottom: 0.4rem;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid var(--border-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-900);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-50);
}
.form-field textarea { min-height: 120px; resize: vertical; }

.form-success {
  background: var(--teal-50);
  border: 1px solid var(--teal-500);
  color: #0A6B60;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.form-error {
  background: #FEECEC;
  border: 1px solid #E5484D;
  color: #A4262C;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ---------- Footer ---------- */
footer a { color: rgba(255,255,255,0.75); }
footer a:hover { color: #fff; }

/* ---------- Accordion (mobile) ---------- */
.accordion-toggle[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-icon { transition: transform 0.2s ease; }
.accordion-panel { display: none; }
.accordion-panel.open { display: block; }

/* ---------- Utility ---------- */
.section-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
