/* Styles partagés par les pages de contenu générées (cryptos, actions, techniques) */

.content-page { max-width: 900px; margin: 0 auto; padding-bottom: 40px; }

.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.content-card h2 { font-size: 1.15rem; margin: 0 0 10px; }
.content-card p { color: var(--text); line-height: 1.65; margin: 0 0 10px; }
.content-card p:last-child { margin-bottom: 0; }

.stat-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-grid-4 .stat .k { font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.stat-grid-4 .stat .v { font-size: 1.05rem; font-weight: 800; }
.stat-grid-4 .stat .v.pos { color: var(--green); }
.stat-grid-4 .stat .v.neg { color: var(--red); }

.content-cta {
  background: rgba(194, 65, 12, 0.06);
  border: 1px solid rgba(194, 65, 12, 0.25);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.content-cta h3 { margin: 0 0 8px; font-size: 1.05rem; }
.content-cta p { color: var(--muted); margin: 0 0 14px; line-height: 1.6; }

/* Table de listing (cryptos, actions) */
.listing-controls { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.listing-controls input[type="search"] {
  flex: 1; min-width: 220px; font: inherit; font-size: 0.92rem; padding: 10px 14px;
  border-radius: 10px; border: 1.5px solid var(--border); background: var(--card); color: var(--text);
}
.listing-count { color: var(--muted); font-size: 0.85rem; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.pagination-info { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.listing-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
table.listing { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.listing th {
  text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em;
  position: sticky; top: 0; background: var(--card);
}
table.listing td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
table.listing tr:last-child td { border-bottom: none; }
table.listing tr:hover td { background: var(--bg-alt); }
table.listing a { text-decoration: none; color: var(--text); font-weight: 600; }
table.listing a:hover { color: var(--accent); }

/* Recherche du site (barre dans le footer / header) */
.site-search { position: relative; }
.site-search input[type="search"] {
  font: inherit; font-size: 0.88rem; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--card); color: var(--text); width: 180px;
}
.site-search-results {
  position: absolute; top: calc(100% + 6px); right: 0; width: 320px; max-height: 380px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 20px 40px -20px rgba(58,38,24,0.35); display: none; z-index: 50;
}
.site-search-results.active { display: block; }
.site-search-results a {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--border); font-size: 0.86rem;
}
.site-search-results a:last-child { border-bottom: none; }
.site-search-results a:hover { background: var(--bg-alt); }
.site-search-results a .type { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; margin-left: 6px; }
.site-search-empty { padding: 14px; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 720px) {
  .stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-search input[type="search"] { width: 130px; }
}
