:root {
  --primary: #1e3a8a;
  --primary-mid: #1e40af;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --danger: #dc2626;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --gradient: linear-gradient(135deg, #1e3a8a 0%, #1e40af 40%, #3b82f6 70%, #06b6d4 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Background image avec animation zoom/dezoom ────────── */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(30,58,138,0.75) 40%, rgba(30,64,175,0.65) 70%, rgba(59,130,246,0.55) 100%),
    url('https://images.unsplash.com/photo-1520939817895-060bdaf4fe1b?w=1920&q=80') center/cover no-repeat;
  animation: bgPan 30s ease-in-out infinite alternate;
}

@keyframes bgBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes bgPan {
  0% { transform: translate(0, 0) scale(1.05); }
  100% { transform: translate(-20px, -10px) scale(1.05); }
}

/* ── Navigation ─────────────────────────────────────────── */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.navbar-brand img,
.navbar-brand svg {
  height: 80px;
  width: auto;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.navbar-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a:hover { color: var(--primary); }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(30,64,175,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30,64,175,0.45);
}

.btn-secondary {
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  border: 2px solid var(--primary-light);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: var(--white);
  border-color: var(--primary);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: var(--radius);
}

.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  background: transparent;
  color: var(--white);
  padding: 3rem 2rem 1rem;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.92;
  max-width: 550px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

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

.hero .btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hero .btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.hero .btn-secondary {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.7);
}

/* ── Sections ───────────────────────────────────────────── */

.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--white);
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

.section-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ── Steps ──────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  transition: transform 0.3s;
}
.step:hover { transform: translateY(-4px); }

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.step p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ── Features ───────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature {
  padding: 1.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.feature p {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* ── Cards ──────────────────────────────────────────────── */

.card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 2rem;
}

/* ── Forms ──────────────────────────────────────────────── */

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

/* ── Activity Picker ────────────────────────────────────── */

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s;
  border: 1px solid transparent;
}

.activity-item:hover { background: var(--gray-50); }

.activity-item.selected {
  background: rgba(59,130,246,0.1);
  border-color: var(--primary-light);
}

.activity-item input[type="checkbox"] {
  accent-color: var(--primary);
}

.risk-badge {
  font-size: 0.625rem;
  padding: 0.1rem 0.4rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
}
.risk-low { background: #dcfce7; color: #166534; }
.risk-medium { background: #fef9c3; color: #854d0e; }
.risk-high { background: #fed7aa; color: #9a3412; }
.risk-very_high { background: #fecaca; color: #991b1b; }

/* ── Quote Result ───────────────────────────────────────── */

.quote-result {
  background: var(--gray-50);
  border: 2px solid transparent;
  border-image: var(--gradient) 1;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.quote-price {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quote-price span {
  font-size: 1.25rem;
  font-weight: 400;
  -webkit-text-fill-color: var(--gray-500);
}

.quote-detail {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ── Success State ──────────────────────────────────────── */

.success-card {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.success-card .mono {
  font-family: 'SF Mono', Monaco, monospace;
  background: var(--gray-100);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin: 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ── CTA Banner ─────────────────────────────────────────── */

.cta-banner {
  background: rgba(17,24,39,0.9);
  backdrop-filter: blur(12px);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  padding: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.95);
  font-size: 0.8rem;
}

.footer a {
  color: white;
  text-decoration: none;
}

/* ── Stepper ────────────────────────────────────────────── */

.stepper {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  font-weight: 600;
}

.stepper-step.active { color: var(--white); }
.stepper-step.done { color: var(--accent-light); }

.stepper-step::after {
  content: "";
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  margin-left: 0.5rem;
}

.stepper-step:last-child::after { display: none; }
.stepper-step.active::after, .stepper-step.done::after { background: var(--accent); }

/* ── Wizard Steps ───────────────────────────────────────── */

.wizard-step { display: none; }
.wizard-step.active { display: block; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero { padding: 3rem 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 3rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .navbar { padding: 1rem; }
  .navbar-links { gap: 1rem; }
  .stepper { flex-wrap: wrap; }
  .quote-detail { flex-direction: column; gap: 0.5rem; }
}
