/* ═══════════════════════════════════════════════════════════════
   NexSafar — mise en avant des services, fonctionnalités et liens
   officiels (accueil du chat). S'appuie sur les variables de
   index.min.css (--gold, --charcoal, --radius-*, --shadow-*).
═══════════════════════════════════════════════════════════════ */

/* ── Hero : accroche + boutons d'action ── */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  margin-bottom: 14px;
  border-radius: var(--radius-full);
  background: rgba(201, 169, 98, 0.16);
  border: 1px solid rgba(201, 169, 98, 0.4);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.hero-cta-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--charcoal);
  border: none;
  box-shadow: var(--shadow-gold);
}

.hero-cta-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-cta:hover { transform: translateY(-2px); }
.hero-cta-ghost:hover { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.hero-cta:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ── En-têtes de section ── */
.nx-section-head { margin-bottom: 16px; }

.nx-section-head h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nx-section-head h2 i { color: var(--gold-dark); font-size: 18px; }

.nx-section-head p {
  margin: 0;
  font-size: 14px;
  color: var(--gray-600);
}

/* ── Grille des services ── */
.nx-services { margin-bottom: 28px; }

.nx-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nx-service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  min-width: 0;
}

.nx-service:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.nx-service:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.nx-service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
}

.nx-ic-visa  { background: linear-gradient(135deg, #2D7A4D, #1F5A38); }
.nx-ic-pass  { background: linear-gradient(135deg, #2C3E50, #1A2530); }
.nx-ic-photo { background: linear-gradient(135deg, #8E5BA8, #6A3F80); }
.nx-ic-plane { background: linear-gradient(135deg, #B33A3A, #8A2A2A); }
.nx-ic-kaaba { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.nx-ic-hotel { background: linear-gradient(135deg, #3A6EA5, #2A5280); }
.nx-ic-money { background: linear-gradient(135deg, #C18133, #9A6424); }
.nx-ic-train { background: linear-gradient(135deg, #34495E, #22313F); }

.nx-service-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.nx-service-body strong {
  font-size: 15px;
  color: var(--charcoal);
}

.nx-service-body small {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--gray-600);
}

.nx-service-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* ── Bandeau des fonctionnalités ── */
.nx-features {
  list-style: none;
  margin: 16px 0 0;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  background: var(--cream);
  border: 1px dashed rgba(201, 169, 98, 0.5);
  border-radius: var(--radius-md);
}

.nx-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--charcoal-mid);
}

.nx-features i { color: var(--gold-dark); }

/* ── Astuce (conseil pratique mis en avant) ── */
.nx-tip { margin-bottom: 28px; }

.nx-tip-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  background: var(--gold-soft);
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nx-tip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.nx-tip-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.nx-tip-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.nx-tip-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.nx-tip-body strong { font-size: 15px; color: var(--charcoal); }
.nx-tip-body small { font-size: 12.5px; line-height: 1.4; color: var(--gray-600); }

.nx-tip-arrow { color: var(--gold-dark); font-size: 14px; flex-shrink: 0; }

/* ── Liens officiels ── */
.nx-links {
  margin-bottom: 28px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 16px;
}

.nx-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.nx-link-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.nx-link-group h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  margin: 0 0 4px;
}

.nx-link-group a {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
  overflow-wrap: anywhere;
}

.nx-link-group a small { font-weight: 400; font-size: 12px; color: var(--gray-500); }

.nx-link-group a:hover {
  background: var(--cream-soft);
  border-color: var(--gold-light);
  color: var(--charcoal);
}

.nx-link-group-brand a { color: var(--gold-dark); }

/* ── Sidebar : services ── */
.nx-side-services { display: flex; flex-direction: column; gap: 2px; }

.nx-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.nx-side-link i { width: 16px; color: var(--gold); text-align: center; }
.nx-side-link:hover { background: rgba(201, 169, 98, 0.12); color: var(--white); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .nx-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .nx-section-head h2 { font-size: 19px; }
  .nx-service-grid { grid-template-columns: 1fr; gap: 10px; }
  .nx-service {
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
  }
  .nx-service-tag { display: none; }
  .nx-tip-card { flex-wrap: wrap; }
  .nx-tip-arrow { display: none; }
  .nx-links { padding: 16px; }
  .nx-links-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-cta { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-service, .hero-cta { transition: none; }
  .nx-service:hover, .hero-cta:hover { transform: none; }
}

/* ═══ Centre photo & documents dans le chat (static/js/photo_center.js) ═══ */
.nx-upload-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 8px 0 4px 48px;
  padding: 12px 14px;
  border: 1.5px dashed var(--gold);
  border-radius: 12px;
  background: var(--gold-soft);
}
.nx-upload-btn,
.nx-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: var(--white);
  color: var(--charcoal-mid);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nx-upload-btn,
.nx-photo-btn.nx-primary {
  background: var(--gold);
  color: var(--white);
}
.nx-upload-btn:hover,
.nx-photo-btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.nx-upload-hint { font-size: 12.5px; color: var(--charcoal-light); }

.nx-user-photo { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.nx-user-photo img {
  max-width: 160px;
  max-height: 160px;
  border-radius: 10px;
  object-fit: cover;
}

.nx-photo-result {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  max-width: 640px;
}
.nx-photo-previews { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.nx-photo-previews figure { margin: 0; text-align: center; }
.nx-photo-previews img {
  display: block;
  width: 220px;
  height: 220px;
  border: 1px solid var(--beige);
  border-radius: 8px;
  cursor: zoom-in;
}
.nx-photo-previews .nx-photo-small img { width: 100px; height: 100px; }
.nx-photo-previews figcaption { margin-top: 6px; font-size: 12.5px; color: var(--charcoal-light); }
.nx-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.nx-photo-summary { font-size: 14.5px; line-height: 1.55; }

@media (max-width: 560px) {
  .nx-upload-card { margin-left: 0; }
  .nx-photo-previews img { width: 170px; height: 170px; }
  .nx-photo-previews .nx-photo-small img { width: 80px; height: 80px; }
  .nx-photo-btn { flex: 1 1 calc(50% - 8px); justify-content: center; padding: 9px 10px; }
}

/* Menu du trombone 📎 (photo d'identité / passeport) */
.input-container { position: relative; }
.nx-doc-menu {
  position: absolute;
  left: 12px;
  bottom: calc(100% + 8px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  padding: 6px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.nx-doc-menu button {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--charcoal-mid);
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
}
.nx-doc-menu button i { color: var(--gold-dark); grid-row: span 2; text-align: center; }
.nx-doc-menu button small { font-weight: 400; font-size: 12px; color: var(--charcoal-light); }
.nx-doc-menu button:hover,
.nx-doc-menu button:focus-visible { background: var(--gold-soft); outline: none; }

/* Résultat passeport */
.nx-passport-preview img { width: 420px; max-width: 100%; height: auto; }
.nx-passport-result .md-table { max-width: 460px; }
@media (max-width: 560px) {
  .nx-passport-preview img { width: 100%; height: auto; }
}
.nx-photo-summary .md-table { border-collapse: collapse; margin: 6px 0 10px; }
.nx-photo-summary .md-table th,
.nx-photo-summary .md-table td { padding: 6px 12px; border-bottom: 1px solid var(--beige); text-align: left; }
.nx-photo-summary .md-table th { border-bottom: 2px solid var(--gold); font-weight: 600; }
.nx-residence-preview img { width: 280px; max-width: 100%; height: auto; }

/* ── Mini-questionnaire « Quel quartier de La Mecque pour moi ? » ──
   (static/js/quartier_quiz.js, guide « Hôtels autour du Haram ») */
.nx-quiz-card {
  margin: 8px 0 4px 48px;
  padding: 14px 16px;
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  background: var(--gold-soft);
  max-width: 560px;
}
.nx-quiz-title { font-weight: 700; color: var(--charcoal-mid); margin-bottom: 10px; }
.nx-quiz-title i { color: var(--gold-dark); margin-right: 4px; }
.nx-quiz-group { border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
.nx-quiz-group legend { font-size: 13px; font-weight: 600; color: var(--charcoal-light); margin-bottom: 6px; padding: 0; }
.nx-quiz-options { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-quiz-opt {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: var(--white);
  color: var(--charcoal-mid);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.nx-quiz-opt:hover { border-color: var(--gold-dark); }
.nx-quiz-opt[aria-pressed="true"] { background: var(--gold); border-color: var(--gold-dark); color: var(--white); font-weight: 600; }
.nx-quiz-opt:focus-visible, .nx-quiz-send:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.nx-quiz-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 0;
  background: var(--gold-dark);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nx-quiz-send:disabled { opacity: .5; cursor: not-allowed; }
.nx-quiz-card.is-done .nx-quiz-opt:not([aria-pressed="true"]) { opacity: .45; }
@media (max-width: 600px) {
  .nx-quiz-card { margin-left: 0; }
}
