/* =========================================================
   CSAPA — Styles Section "Bases de Données & Services"
   Version 1.0 — Étape 7
   ========================================================= */

/* ── 1. SEARCH FORM ─────────────────────────────────────── */
.search-panel {
  background: var(--csapa-blanc);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.search-panel-title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--csapa-bleu);
  margin-bottom: 1rem;
}

.search-panel .btn-search {
  background: var(--csapa-bleu);
  color: #fff;
  border: none;
  padding: .6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  transition: opacity .2s;
}

.search-panel .btn-search:hover { opacity: .88; }

/* ── 2. RESULT CARDS ────────────────────────────────────── */
.result-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--csapa-bleu);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow .18s;
}

.result-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }

.result-card-id {
  font-family: 'Courier New', monospace;
  font-size: .75rem;
  font-weight: 700;
  color: var(--csapa-or);
  background: var(--csapa-bleu);
  padding: .15rem .5rem;
  border-radius: 4px;
  letter-spacing: .08em;
}

.result-card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--csapa-bleu);
  margin: .5rem 0 .3rem;
}

.result-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
  color: #6b7280;
}

.result-card-meta i { color: var(--csapa-bleu); margin-right: .2rem; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem .6rem;
  border-radius: 100px;
}

.status-badge.certifie  { background: #dcfce7; color: #166534; }
.status-badge.litige    { background: #fef9c3; color: #713f12; }
.status-badge.suspendu  { background: #fee2e2; color: #7f1d1d; }
.status-badge.en-cours  { background: #dbeafe; color: #1e3a5f; }
.status-badge.raas      { background: #fee2e2; color: #7f1d1d; }
.status-badge.avertissement { background: #fff7ed; color: #7c2d12; }

/* ── 3. EXPERT CARD ─────────────────────────────────────── */
.expert-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: box-shadow .18s, transform .18s;
}

.expert-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.expert-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--csapa-bleu);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.expert-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--csapa-bleu);
}

.expert-cert {
  font-family: 'Courier New', monospace;
  font-size: .68rem;
  color: #9ca3af;
}

.specialite-badge {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem .55rem;
  border-radius: 100px;
  color: #fff;
  background: var(--csapa-bleu);
}

/* ── 4. PROCESS STEPS ───────────────────────────────────── */
.process-step {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.process-step:last-child { border-bottom: none; }

.process-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--csapa-bleu);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.process-step-title {
  font-weight: 600;
  font-size: .88rem;
  color: var(--csapa-bleu);
  margin-bottom: .2rem;
}

.process-step-desc {
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ── 5. WARNING BOX ─────────────────────────────────────── */
.warning-legal {
  background: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.warning-legal-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .92rem;
  color: #7f1d1d;
  margin-bottom: .4rem;
}

.warning-legal p { font-size: .82rem; color: #7f1d1d; margin: 0; line-height: 1.5; }

/* ── 6. BOURSE / MARKET TICKER ──────────────────────────── */
.market-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #e5e7eb;
  margin-bottom: .5rem;
  font-size: .85rem;
}

.market-symbol {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--csapa-bleu);
  min-width: 100px;
}

.market-price {
  font-weight: 700;
  flex: 1;
}

.market-change {
  font-size: .78rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 4px;
  min-width: 60px;
  text-align: center;
}

.market-change.up   { background: #dcfce7; color: #166534; }
.market-change.down { background: #fee2e2; color: #7f1d1d; }
.market-change.flat { background: #f3f4f6; color: #6b7280; }

/* ── 7. BLOCKCHAIN EXPLORER ─────────────────────────────── */
.chain-block {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  font-family: 'Courier New', monospace;
  font-size: .78rem;
  color: #e6edf3;
}

.chain-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
}

.chain-block-num  { color: #58a6ff; font-weight: 700; font-size: .85rem; }
.chain-block-hash { color: #7c3aed; font-size: .72rem; word-break: break-all; }
.chain-block-ts   { color: #8b949e; font-size: .7rem; }
.chain-block-tx   { color: #3fb950; }

/* ── 8. API CODE BLOCK ──────────────────────────────────── */
.code-block {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: .78rem;
  line-height: 1.6;
  color: #e6edf3;
  margin-bottom: 1rem;
}

.code-block .token-keyword { color: #ff7b72; }
.code-block .token-string  { color: #a5d6ff; }
.code-block .token-comment { color: #8b949e; }
.code-block .token-value   { color: #79c0ff; }

/* ── 9. APP MOCKUP ──────────────────────────────────────── */
.app-mockup-frame {
  background: #0C1B3A;
  border-radius: 24px;
  padding: 1.5rem;
  max-width: 260px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  text-align: center;
}

.app-mockup-screen {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.app-dl-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  color: #0C1B3A;
  border-radius: 8px;
  padding: .6rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: .5rem;
  justify-content: center;
}

/* ── 10. LOGIN FORM ─────────────────────────────────────── */
.login-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.login-card .login-logo {
  width: 64px;
  height: 64px;
  background: var(--csapa-bleu);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--csapa-or);
  font-size: 1.5rem;
}

/* ── 11. PROGRESS BAR (encyclopédie) ────────────────────── */
.progress-band {
  background: var(--csapa-bleu);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  color: #fff;
  margin-bottom: 2rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  margin-bottom: .5rem;
}

.progress-track {
  height: 10px;
  background: rgba(255,255,255,.2);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--csapa-or);
  border-radius: 100px;
  transition: width 1.4s ease;
  width: 0;
}
