/* =====================================================
   QX Réclamations - Public CSS
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --qx-orange: #FF8C00;
  --qx-blue: #1E90FF;
  --qx-dark: #1a1d2e;
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  background: #f0f2f8;
  color: #333;
}

/* ---- NAVBAR ---- */
.qx-navbar {
  background: rgba(26, 29, 46, .95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.qx-navbar .nav-logo {
  height: 42px;
  border-radius: 50%;
}
.qx-navbar .nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.qx-navbar .nav-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  margin-left: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.qx-navbar .nav-links a:hover { color: #fff; }
.qx-navbar .nav-links a.active { color: var(--qx-orange); }

/* ---- HERO ---- */
.hero-section {
  background: linear-gradient(135deg, #1a1d2e 0%, #0d1117 40%, #1a2a4a 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

/* Animated background dots */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}
.hero-particle:nth-child(1) { width:300px; height:300px; background:radial-gradient(circle,rgba(255,140,0,.15),transparent); top:-100px; right:10%; animation-delay:0s; }
.hero-particle:nth-child(2) { width:200px; height:200px; background:radial-gradient(circle,rgba(30,144,255,.15),transparent); bottom:50px; right:30%; animation-delay:2s; }
.hero-particle:nth-child(3) { width:150px; height:150px; background:radial-gradient(circle,rgba(255,140,0,.1),transparent); top:50%; left:5%; animation-delay:4s; }

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,140,0,.15);
  border: 1px solid rgba(255,140,0,.3);
  color: var(--qx-orange);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(90deg, var(--qx-orange), #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 35px;
}

.hero-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--qx-orange), #ffb347);
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(255,140,0,.4);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(255,140,0,.5); color: #fff; }

.btn-hero-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .2s;
  backdrop-filter: blur(5px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.15); color: #fff; }

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 45px;
  padding-top: 35px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-value { font-size: 26px; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }

/* Hero Image/Visual */
.hero-visual {
  position: relative;
}
.hero-card-float {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  animation: cardFloat 5s ease-in-out infinite;
}
@keyframes cardFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-card-float.delay-1 { animation-delay: 1.5s; }
.hero-card-float.delay-2 { animation-delay: 3s; }
.status-dot { width:10px; height:10px; border-radius:50%; display:inline-block; margin-right:6px; }
.status-dot.new { background: var(--qx-orange); box-shadow: 0 0 8px var(--qx-orange); }
.status-dot.progress { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.status-dot.done { background: #22c55e; box-shadow: 0 0 8px #22c55e; }

/* ---- SECTION: TYPES ---- */
.section { padding: 80px 0; }
.section-light { background: #f8f9ff; }
.section-white { background: #fff; }

.section-badge {
  display: inline-block;
  background: rgba(255,140,0,.1);
  color: var(--qx-orange);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--qx-dark);
  margin-bottom: 12px;
}
.section-subtitle {
  color: #777;
  font-size: 16px;
  max-width: 550px;
  margin: 0 auto 45px;
  line-height: 1.7;
}

/* Type Cards */
.type-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 22px;
  border: 2px solid transparent;
  box-shadow: 0 2px 15px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all .3s;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.type-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-color, var(--qx-orange));
  opacity: 0;
  transition: opacity .3s;
}
.type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(0,0,0,.12);
  border-color: var(--card-color, var(--qx-orange));
  color: inherit;
}
.type-card:hover::before { opacity: 1; }
.type-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: rgba(255,140,0,.1);
  color: var(--card-color, var(--qx-orange));
}
.type-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.type-card p { font-size: 13px; color: #888; line-height: 1.6; }
.type-card .card-arrow {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
  color: var(--card-color, var(--qx-orange));
  font-size: 18px;
  transition: all .3s;
}
.type-card:hover .card-arrow { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---- PROCESS STEPS ---- */
.step-card {
  text-align: center;
  padding: 30px 20px;
}
.step-number {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--qx-orange), #ffb347);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 5px 20px rgba(255,140,0,.3);
}
.step-card h5 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: #888; font-size: 14px; line-height: 1.6; }

/* ---- FOOTER ---- */
.qx-footer {
  background: var(--qx-dark);
  color: rgba(255,255,255,.6);
  padding: 50px 0 25px;
}
.footer-logo { height: 45px; border-radius: 50%; }
.footer-brand { font-size: 18px; font-weight: 700; color: #fff; }
.footer-desc { font-size: 13px; line-height: 1.7; margin-top: 10px; max-width: 280px; }
.footer-title { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 15px; }
.footer-links a { display: block; color: rgba(255,255,255,.55); text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color .2s; }
.footer-links a:hover { color: var(--qx-orange); }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 30px 0 20px; }
.footer-bottom { font-size: 12px; text-align: center; color: rgba(255,255,255,.35); }

/* ---- FORMULAIRE ---- */
.form-header {
  background: linear-gradient(135deg, var(--qx-dark), #1a2a4a);
  padding: 50px 0 35px;
  color: #fff;
}
.form-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(0,0,0,.1);
  overflow: hidden;
  margin-top: -30px;
}
.form-card .form-section {
  padding: 30px 35px;
  border-bottom: 1px solid #f0f2f8;
}
.form-card .form-section:last-child { border-bottom: none; }
.form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--qx-orange);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.upload-zone {
  border: 2px dashed #d0d5e8;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fafbff;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--qx-orange);
  background: rgba(255,140,0,.04);
}
.upload-zone i { font-size: 32px; color: #ccc; margin-bottom: 10px; display: block; }

/* ---- SUIVI ---- */
.suivi-header {
  background: linear-gradient(135deg, var(--qx-dark), #1a2a4a);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.suivi-search-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 30px;
  max-width: 500px;
  margin: 0 auto;
}
.suivi-result {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0,0,0,.08);
}
.suivi-status-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 30px 0;
}
.suivi-status-bar::before {
  content: '';
  position: absolute;
  top: 42px; left: 10%; right: 10%;
  height: 2px;
  background: #e0e0e0;
}
.suivi-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}
.suivi-step-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 3px solid #ddd;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: all .3s;
}
.suivi-step.done .suivi-step-dot { background: #22c55e; border-color: #22c55e; color: #fff; }
.suivi-step.current .suivi-step-dot { background: var(--qx-orange); border-color: var(--qx-orange); color: #fff; box-shadow: 0 0 0 4px rgba(255,140,0,.2); }
.suivi-step-label { font-size: 11px; color: #999; text-align: center; }
.suivi-step.done .suivi-step-label,
.suivi-step.current .suivi-step-label { color: #333; font-weight: 600; }

/* Input code tracking */
.code-input {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 5px;
  text-align: center;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 10px;
  padding: 14px;
}
.code-input::placeholder { color: rgba(255,255,255,.35); letter-spacing: 3px; }
.code-input:focus { border-color: var(--qx-orange); outline: none; box-shadow: 0 0 0 3px rgba(255,140,0,.2); }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeInUp .6s ease forwards; }
.delay-1 { animation-delay: .1s; opacity: 0; }
.delay-2 { animation-delay: .2s; opacity: 0; }
.delay-3 { animation-delay: .3s; opacity: 0; }
.delay-4 { animation-delay: .4s; opacity: 0; }
.delay-5 { animation-delay: .5s; opacity: 0; }

/* ---- MISC ---- */
.text-orange { color: var(--qx-orange) !important; }
.text-blue   { color: var(--qx-blue) !important; }
.bg-orange   { background: var(--qx-orange) !important; }
.border-orange { border-color: var(--qx-orange) !important; }

@media (max-width: 768px) {
  .hero-stats { flex-direction: column; gap: 15px; }
  .hero-cta { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { justify-content: center; }
}
