/* =========================================================
   CSAPA — Styles Section "Contact, Accès & Transparence"
   Version 1.0 — Étape 9
   ========================================================= */

/* ── 1. OFFICE CARD ─────────────────────────────────────── */
.office-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 100%;
  border-top: 4px solid var(--office-color, #0C1B3A);
  transition: box-shadow .18s;
}
.office-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.office-flag { font-size: 2rem; margin-bottom: .4rem; display: block; }

.office-city {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  margin-bottom: .15rem;
}

.office-region {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--office-color, #0C1B3A);
  margin-bottom: .6rem;
}

.office-contact-row {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .78rem;
  color: #374151;
  margin-bottom: .25rem;
}

.office-contact-row i {
  color: var(--office-color, #0C1B3A);
  width: 14px;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ── 2. URGENCE ─────────────────────────────────────────── */
.urgence-card {
  background: #fff;
  border: 2px solid var(--urgence-color, #dc2626);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.urgence-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
}

.urgence-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--urgence-color, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.urgence-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--csapa-bleu);
  margin-bottom: .15rem;
}

.urgence-number {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--urgence-color, #dc2626);
}

.urgence-desc {
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: .75rem;
}

.urgence-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  border-radius: 100px;
  background: var(--urgence-color, #dc2626);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
}
.urgence-btn:hover { opacity: .88; color: #fff; }

/* ── 3. FAQ SEARCH ──────────────────────────────────────── */
.faq-search-input {
  width: 100%;
  padding: .65rem 1rem .65rem 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  font-size: .88rem;
  outline: none;
  transition: border-color .15s;
}
.faq-search-input:focus { border-color: var(--csapa-bleu); }
.faq-search-wrapper { position: relative; }
.faq-search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: .82rem;
  pointer-events: none;
}

.faq-item-hidden { display: none; }

/* ── 4. SVG MAP ─────────────────────────────────────────── */
.world-map-wrapper {
  background: #eff6ff;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.map-dot {
  cursor: pointer;
  transition: r .15s;
}
.map-dot:hover { r: 9; }

.map-tooltip {
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}

/* ── 5. FINANCE SVG ─────────────────────────────────────── */
.finance-chart-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.finance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  justify-content: center;
  margin-top: .75rem;
}

.finance-legend-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: #374151;
}

.finance-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── 6. PROCESS FLOW ────────────────────────────────────── */
.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.flow-step {
  flex: 1;
  min-width: 120px;
  text-align: center;
  position: relative;
  padding: 0 .5rem;
}

.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -8px;
  width: 16px;
  height: 2px;
  background: #e5e7eb;
}

.flow-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  margin: 0 auto .5rem;
}

.flow-step-label {
  font-size: .72rem;
  color: #374151;
  line-height: 1.3;
}

/* ── 7. ACCREDITATION CARD ──────────────────────────────── */
.accred-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 100%;
  border-left: 4px solid var(--accred-color, #0C1B3A);
  cursor: pointer;
  transition: box-shadow .18s, border-color .18s;
}
.accred-card:hover,
.accred-card.selected { box-shadow: 0 4px 16px rgba(0,0,0,.1); border-color: var(--accred-color, #0C1B3A); }
.accred-card.selected { background: #f0fdf4; }

.accred-icon {
  font-size: 1.8rem;
  margin-bottom: .5rem;
}

.accred-title {
  font-weight: 700;
  font-size: .87rem;
  color: var(--csapa-bleu);
  margin-bottom: .3rem;
}

.accred-cond {
  font-size: .75rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ── 8. CHAT WIDGET ─────────────────────────────────────── */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
}

.chat-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--csapa-bleu);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .15s;
}
.chat-btn:hover { transform: scale(1.08); }

.chat-popup {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 260px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  padding: 1rem;
  display: none;
}
.chat-popup.open { display: block; }

.chat-popup-title {
  font-weight: 700;
  font-size: .87rem;
  color: var(--csapa-bleu);
  margin-bottom: .5rem;
}

/* ── 9. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 767px) {
  .flow-steps { flex-direction: column; gap: 1rem; }
  .flow-step:not(:last-child)::after { display: none; }
}
