/* ── HOME PAGE SPECIFIC ── */
.hero-stats {
  display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .value { font-size: 1.8rem; font-weight: 800; color: var(--secondary); }
.hero-stat .label { font-size: 0.85rem; opacity: 0.85; }

/* ── CARTE ALGÉRIE ── */
.map-section-title p { max-width: 720px; }
.dz-map {
  display: block; width: 100%; max-width: 820px; height: auto;
  margin: 0 auto;
}
.dz-map .map-bg { fill: #F0F6FD; }
.dz-map path {
  fill: #E1EDF9; stroke: #B9CDE4; stroke-width: 1; stroke-linejoin: round;
  transition: fill 0.2s ease;
}
.dz-map path:hover { fill: #D2E4F7; }
.dz-map .center {
  fill: var(--brand-maxwell); stroke: var(--white); stroke-width: 2;
  filter: url(#shadow);
}
.dz-map .agent {
  fill: var(--brand-beko); stroke: var(--white); stroke-width: 1.4;
  filter: url(#shadow);
}
.dz-map .center-label {
  font: 700 15px var(--font-family); fill: var(--gray-800);
  paint-order: stroke; stroke: rgba(255,255,255,0.85); stroke-width: 3px;
  stroke-linejoin: round;
}
.dz-map .legend rect { fill: rgba(255,255,255,0.92); stroke: var(--gray-200); stroke-width: 1; }
.dz-map .legend text {
  font: 600 13px var(--font-family); fill: var(--gray-700);
}
.map-locations {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 20px;
  max-width: 820px; margin: 28px auto 0;
}
.map-locations .loc { font-size: 0.9rem; color: var(--gray-600); display: flex; align-items: center; gap: 8px; }
.map-locations .loc::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-maxwell); border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--brand-maxwell);
}
.map-locations .agents-note {
  grid-column: 1 / -1; font-size: 0.85rem; color: var(--gray-500);
  display: flex; align-items: center; gap: 8px;
}
.map-locations .agents-note::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-beko); border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--brand-beko);
}

.why-us { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-image {
  background: linear-gradient(135deg, var(--primary-bg), #D6E4FF);
  border-radius: var(--radius-xl); padding: 60px; text-align: center; font-size: 5rem;
}
.why-list { list-style: none; }
.why-list li {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.why-list li:last-child { border-bottom: none; }
.why-list .icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--success-bg);
  color: var(--success); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

/* ── RÉCLAMATION PAGE ── */
.reclamation-wrapper { max-width: 900px; margin: 0 auto; }
.stepper {
  display: flex; justify-content: space-between; margin-bottom: 40px;
  counter-reset: step; position: relative;
}
.stepper::before {
  content: ''; position: absolute; top: 24px; left: 40px; right: 40px; height: 2px;
  background: var(--gray-200);
}
.stepper::after {
  content: ''; position: absolute; top: 24px; left: 40px; height: 2px;
  background: var(--primary); transition: width 0.4s ease;
}
.stepper.step-2::after { width: calc(50% - 40px); }
.stepper.step-3::after { width: calc(100% - 80px); }
.stepper-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; z-index: 1; flex: 1;
}
.stepper-circle {
  width: 48px; height: 48px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--gray-200); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 1.1rem; color: var(--gray-400);
  counter-increment: step; transition: var(--transition);
}
.stepper-circle::before { content: counter(step); }
.stepper-item.active .stepper-circle { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.stepper-item.done .stepper-circle { border-color: var(--success); background: var(--success); color: var(--white); }
.stepper-item.done .stepper-circle::before { content: '✓'; }
.stepper-item .stepper-label { font-size: 0.8rem; font-weight: 600; color: var(--gray-500); }
.stepper-item.active .stepper-label { color: var(--primary); }
.stepper-item.done .stepper-label { color: var(--success); }

.form-section {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); padding: 32px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.form-section-title {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--gray-100);
}
.form-section-title .icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--primary);
  color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.form-section-title h3 { color: var(--gray-900); }
.form-step-actions { display: flex; justify-content: space-between; gap: 16px; }
.form-progress { margin-top: 24px; }

.privacy-note {
  display: flex; align-items: center; gap: 10px; font-size: 0.85rem;
  color: var(--gray-500); background: var(--gray-50); padding: 12px 16px;
  border-radius: var(--radius); margin-top: 16px;
}

/* ── SAV EXPRESS ── */
.express-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white); padding: 14px 18px; border-radius: var(--radius);
  font-size: 0.95rem; margin-bottom: 24px; box-shadow: var(--shadow-md);
}
.express-banner span { font-size: 1.4rem; }
.express-option {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 14px 16px; transition: var(--transition); background: var(--white);
}
.express-option:hover { border-color: var(--secondary); }
.express-option input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 2px; accent-color: var(--secondary); flex-shrink: 0;
}
.express-option:has(input:checked) {
  border-color: var(--secondary); background: #FFF4EF;
}
.express-checkbox { display: flex; flex-direction: column; gap: 2px; }
.express-desc { font-size: 0.85rem; color: var(--gray-500); font-weight: 400; }

/* ── SUIVI TICKET ── */
.search-box { max-width: 520px; margin: 0 auto; }
.search-box .input-group { display: flex; gap: 12px; }
.ticket-card { max-width: 680px; margin: 40px auto 0; }
.ticket-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.ticket-info-item { background: var(--gray-50); padding: 14px 16px; border-radius: var(--radius); }
.ticket-info-item .label { font-size: 0.75rem; text-transform: uppercase; color: var(--gray-400); font-weight: 600; letter-spacing: 0.03em; }
.ticket-info-item .value { font-size: 0.95rem; color: var(--gray-800); font-weight: 500; margin-top: 2px; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.contact-form-wrap { max-width: 640px; margin: 0 auto; }

/* ── INSTALLATION APPLICATION (PWA) ── */
.install-callout {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  margin: 32px 0 0; padding: 24px; text-align: center;
  background: linear-gradient(135deg, #f8faff, #f1f5ff);
  border: 1px solid var(--primary-light); border-radius: var(--radius-lg);
}
.install-callout .install-icon { font-size: 2.2rem; }
.install-callout .install-text strong { font-size: 1.05rem; color: var(--primary-dark); }
.install-callout .install-text p { font-size: 0.95rem; color: var(--gray-500); margin-top: 6px; }
.install-hint {
  font-size: 0.88rem; color: var(--gray-600);
  padding: 14px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  text-align: left;
}
.install-callout .btn.installed {
  background: var(--success); color: var(--white); cursor: default; opacity: 0.95;
}
@media (min-width: 600px) {
  .install-callout { flex-direction: row; align-items: center; text-align: left; gap: 24px; }
  .install-callout .install-text { flex: 1; }
  .install-callout .btn { align-self: center; white-space: nowrap; flex-shrink: 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-stats { gap: 24px; }
  .why-us { grid-template-columns: 1fr; gap: 40px; }
  .map-locations { grid-template-columns: repeat(2, 1fr); }
  .stepper-circle { width: 40px; height: 40px; font-size: 0.9rem; }
  .stepper::before, .stepper::after { top: 20px; }
  .stepper-item .stepper-label { font-size: 0.7rem; }
  .form-section { padding: 24px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .ticket-info-grid { grid-template-columns: 1fr; }
  .form-step-actions { flex-direction: column; }
  .form-step-actions .btn { width: 100%; }
}

/* ── CHAT CLIENT ▸ SUIVI TICKET ── */
.chat-panel {
  max-width: 680px; margin: 0 auto;
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-md);
}
.chat-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
}
.chat-sub { font-size: 0.85rem; opacity: 0.9; margin-top: 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chat-ticket { font-family: var(--font-mono); background: rgba(255,255,255,0.15); padding: 2px 8px; border-radius: 6px; }
.chat-status { font-weight: 700; }
.chat-box { display: flex; flex-direction: column; }
.chat-messages {
  min-height: 280px; max-height: 420px; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--gray-50);
}
.chat-msg { display: flex; flex-direction: column; max-width: 78%; }
.chat-msg-client { align-self: flex-end; align-items: flex-end; }
.chat-msg-agent { align-self: flex-start; align-items: flex-start; }
.chat-msg-bubble {
  padding: 10px 14px; border-radius: var(--radius); font-size: 0.92rem; line-height: 1.5;
  word-break: break-word; white-space: pre-wrap;
}
.chat-msg-client .chat-msg-bubble {
  background: var(--secondary); color: var(--white);
  border-bottom-right-radius: 2px;
}
.chat-msg-agent .chat-msg-bubble {
  background: var(--white); color: var(--gray-800); border: 1px solid var(--gray-200);
  border-bottom-left-radius: 2px;
}
.chat-msg-meta { font-size: 0.72rem; color: var(--gray-400); margin-top: 4px; }
.chat-input-row { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--gray-200); background: var(--white); }
.chat-input { flex: 1; resize: none; min-height: 46px; max-height: 140px; }
.chat-send { align-self: stretch; min-width: 120px; }
.chat-note { padding: 10px 18px 14px; font-size: 0.78rem; color: var(--gray-400); background: var(--white); margin: 0; }
.chat-empty { max-width: 680px; margin: 32px auto 0; color: var(--gray-600); text-align: center; }

@media (max-width: 768px) {
  .chat-msg { max-width: 92%; }
  .chat-input-row { flex-direction: column; }
  .chat-send { width: 100%; }
}