/* ═══════════════════════════════════════════════
   types.css — Pages types d'anxiété
   ═══════════════════════════════════════════════ */

/* ── Page hero (fond clair) ─────────────────── */
.page-hero {
  background: #FAFAFA;
  border-bottom: 1px solid #EBEBEB;
  padding: calc(var(--header-height, 64px) + 1.5rem) 2.5rem 0;
  overflow: hidden;
}
.page-hero__inner { max-width: 1180px; margin: 0 auto; }
.page-hero__breadcrumb {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.6336rem; color: #9CA3AF;
  background: #F3F4F6; border: 1px solid #E5E7EB;
  border-radius: 99px; padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem; width: fit-content;
}
.page-hero__breadcrumb a { color: #9CA3AF; text-decoration: none; }
.page-hero__breadcrumb a:hover { color: #0F1F33; }
.page-hero__breadcrumb .bc-sep { color: #D1D5DB; }
.page-hero__breadcrumb span:last-child { color: #0F1F33; font-weight: 600; }
.page-hero__body { padding-bottom: 2rem; }
.page-hero__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800;
  color: #0F1F33; line-height: 1.1; letter-spacing: -0.03em; margin: 0;
}
.page-hero__desc {
  font-size: 1rem; color: #6B7280; line-height: 1.7;
  margin-top: 1rem; max-width: 640px;
}

/* ── Share buttons ───────────────────────────── */
.page-hero__share {
  display: flex; align-items: center; gap: 0.65rem;
  margin-top: 1.25rem; flex-wrap: wrap;
}
.page-hero__share-label { font-size: 0.6336rem; color: #9CA3AF; font-weight: 500; margin-right: 0.15rem; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; text-decoration: none;
  border: 1px solid #E5E7EB; cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.07); color: #6B7280;
}
.share-btn:hover { opacity: 0.75; transform: translateY(-1px); }
.share-btn--copied { color: #059669; }

/* ── Article layout ──────────────────────────── */
/* ── Article body ─────────────────────────────── */

.article-body h2 {
  font-size: 1.35rem; font-weight: 700; color: var(--text-primary);
  margin: 2.5rem 0 0.85rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* ── Symptom table ───────────────────────────── */
.symptom-table {
  width: 100%; border-collapse: collapse; margin: 1.25rem 0;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.symptom-table th {
  background: #F1F5F9; font-size: 0.6336rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary); padding: 0.65rem 1rem; text-align: left;
}
.symptom-table td {
  padding: 0.7rem 1rem; border-top: 1px solid var(--border);
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; vertical-align: top;
}
.symptom-name { font-weight: 600; color: var(--text-primary); }

/* ── Mechanism steps ─────────────────────────── */
.mechanism-steps {
  display: flex; flex-direction: column; gap: 0;
  margin: 1.5rem 0; position: relative;
}
.mechanism-steps::before {
  content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px;
  width: 2px; background: #BFDBFE;
}
.mechanism-step { display: flex; align-items: flex-start; gap: 1rem; padding: 0.75rem 0; position: relative; }
.mechanism-step__num {
  width: 36px; height: 36px; background: #2D52A0; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; flex-shrink: 0; position: relative; z-index: 1;
}
.mechanism-step__body { flex: 1; padding-top: 0.4rem; }
.mechanism-step__title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.mechanism-step__desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Diff grid ───────────────────────────────── */
.diff-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin: 1.25rem 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.diff-col { padding: 1rem 1.1rem; }
.diff-col--a { background: #EFF6FF; border-right: 1px solid var(--border); }
.diff-col--b { background: #F9FAFB; }
.diff-col__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 0.5rem; }
.diff-col--a .diff-col__label { color: #1D4ED8; }
.diff-col--b .diff-col__label { color: #6B7280; }
.diff-col__text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Treatment list ──────────────────────────── */
.treatment-list {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 1.25rem 0;
}
.treatment-item {
  display: flex; gap: 0.9rem; padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.treatment-item:last-child { border-bottom: none; }
.treatment-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 6px; flex-shrink: 0; margin-top: 2px;
}
.treatment-badge--first { background: #DBEAFE; color: #1D4ED8; }
.treatment-badge--second { background: #FEF3C7; color: #B45309; }
.treatment-body .treatment-title { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.treatment-body .treatment-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Info boxes ──────────────────────────────── */
.info-box { border-radius: 12px; padding: 1.1rem 1.25rem; margin: 1.25rem 0; }
.info-box--blue   { background: rgba(27,110,194,0.06); border: 1.5px solid #BFDBFE; }
.info-box--green  { background: #F0FDF4; border: 1.5px solid #BBF7D0; }
.info-box--orange { background: #FFFBEB; border: 1.5px solid #FDE68A; }
.info-box--red    { background: #FFF5F5; border: 1.5px solid #FECACA; }
.info-box__title { font-size: 0.82rem; font-weight: 700; margin-bottom: 0.5rem; }
.info-box--blue   .info-box__title { color: #1D4ED8; }
.info-box--green  .info-box__title { color: #15803D; }
.info-box--orange .info-box__title { color: #B45309; }
.info-box--red    .info-box__title { color: #B91C1C; }
.info-box p, .info-box ul { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.info-box ul { padding-left: 1.1rem; }
.info-box li { margin-bottom: 0.3rem; }

/* ── Types grid ──────────────────────────────── */
.types-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem; margin: 1.25rem 0;
}
.types-card {
  display: block; padding: 1rem; border: 1.5px solid var(--border);
  border-radius: 12px; text-decoration: none !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.types-card:hover { border-color: #2D52A0; box-shadow: 0 2px 8px rgba(45,82,160,0.08); }
.types-card__title { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.types-card__sub { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }


/* ── Ad blocks ───────────────────────────────── */

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
}
@media (max-width: 768px) {
  .page-hero { padding: calc(var(--header-height, 64px) + 1.5rem) 1rem 0; }
  .page-hero__title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .page-hero__desc { font-size: 0.92rem; margin-top: 0.75rem; }
  .page-hero__share-label { display: none; }
  .share-btn { width: 34px; height: 34px; }
  .diff-grid { grid-template-columns: 1fr; }
  .diff-col--a { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .symptom-table { font-size: 0.82rem; }
  .symptom-table th, .symptom-table td { padding: 0.5rem 0.65rem; }
}
