/* ════════════════════════════════════════════════════════════════
   DECISIO.BE — components.css (v2 — Mai 2026)
   Composants réutilisables (chargé sur toutes les pages sauf accueil)
   - Page header / Breadcrumb / Tags / Section
   - Key numbers / Stat cards
   - Quiz section + box (CTA noir réutilisé partout)
   - Filter bar + Region filters
   - Article cards (incl. soon-cards cliquables et non-cliquables)
   - Outcome tabs
   - Quiz banner
   ════════════════════════════════════════════════════════════════ */

/* ─── 1. PAGE HEADER (commun à toutes les pages internes) ─── */
.page-hero {
  padding: 80px 60px 64px;
  border-bottom: 1.5px solid var(--black);
}
.page-hero.split {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
}
.page-hero.split .hero-left {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1.5px solid var(--black);
}
.page-hero.split .hero-right {
  background: var(--cream);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(0,0,0,0.3); }

.page-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  width: fit-content;
}

.page-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.04;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.page-h1 em { font-style: italic; color: var(--accent); font-weight: 600; }

.page-intro {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -1px;
}
.see-all {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.see-all:hover { text-decoration: underline; }

/* ─── 2. KEY NUMBERS (hero stats) ───────────────────────── */
.key-number {
  background: white;
  border: 1.5px solid var(--black);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.2s;
}
.key-number:hover {
  transform: translateX(4px);
  border-color: var(--accent);
}
.kn-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -1px;
  color: var(--accent);
  min-width: 80px;
}
.kn-label {
  font-size: 14px;
  color: var(--black);
  line-height: 1.4;
}
.kn-label span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ─── 3. STAT CARDS (hero grid) ─────────────────────────── */
.stat-card {
  background: white;
  border: 1.5px solid var(--black);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ─── 4. QUIZ SECTION (commune à plusieurs pages) ───────── */
.quiz-section {
  background: var(--black);
  color: white;
  padding: 80px 60px;
}
.quiz-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.quiz-left h2 {
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -1px;
}
.quiz-left p {
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
  line-height: 1.65;
  font-size: 16px;
  margin-bottom: 32px;
}
.quiz-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.quiz-feature::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.quiz-box {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 36px;
  border: 1px solid #2a2a2a;
}
.quiz-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.q-dot {
  width: 28px;
  height: 4px;
  border-radius: 100px;
  background: #333;
  transition: background 0.3s;
}
.q-dot.active { background: var(--accent); }
.quiz-step-label {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.quiz-q {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
  line-height: 1.3;
}
.quiz-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
  line-height: 1.5;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.quiz-opt {
  background: #222;
  border: 1.5px solid #333;
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  transition: all 0.15s;
  line-height: 1.4;
}
.quiz-opt:hover {
  border-color: #555;
  background: #2a2a2a;
}
.quiz-opt.selected {
  border-color: var(--accent);
  background: rgba(232,70,42,0.12);
}

.calc-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.calc-field label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.calc-field input,
.calc-field select {
  width: 100%;
  background: #222;
  border: 1.5px solid #333;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.calc-field input:focus,
.calc-field select:focus {
  border-color: var(--accent);
}
.calc-field input::placeholder {
  color: rgba(255,255,255,0.2);
}
.calc-result {
  background: #222;
  border: 1.5px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  display: none;
}
.calc-result.visible { display: block; }
.calc-result-label {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.calc-result-main {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: white;
}
.calc-result-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}
.calc-result.warning .calc-result-main { color: #f87171; }
.calc-result.warning {
  border-color: #7f1d1d;
  background: rgba(239,68,68,0.08);
}

.quiz-next-btn {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.35;
  pointer-events: none;
}
.quiz-next-btn.ready {
  opacity: 1;
  pointer-events: all;
}
.quiz-next-btn.ready:hover {
  background: #c73d24;
  transform: translateY(-1px);
}

.quiz-result { text-align: center; padding: 10px 0; }
.result-icon { font-size: 52px; margin-bottom: 16px; }
.result-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
}
.result-subtitle {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.result-badge {
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
  text-align: left;
}
.result-badge.green {
  background: rgba(26,138,74,0.15);
  border: 1.5px solid #1a8a4a;
}
.result-badge.orange {
  background: rgba(217,119,6,0.15);
  border: 1.5px solid #d97706;
}
.result-badge.red {
  background: rgba(239,68,68,0.1);
  border: 1.5px solid #7f1d1d;
}
.result-badge-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.result-badge.green .result-badge-label { color: #4ade80; }
.result-badge.orange .result-badge-label { color: #fbbf24; }
.result-badge.red .result-badge-label { color: #f87171; }
.result-badge-text {
  color: white;
  font-size: 14px;
  line-height: 1.5;
}
.result-articles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.result-article {
  background: #222;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.result-article:hover {
  border-color: var(--accent);
  color: white;
}
.result-article-arrow {
  margin-left: auto;
  color: var(--accent);
}

/* ─── 5. FILTER BAR (themes, articles, regions...) ──────── */
.filter-bar {
  padding: 24px 60px;
  border-bottom: 1.5px solid var(--black);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-right: 4px;
}
.filter-btn {
  background: white;
  border: 1.5px solid var(--black);
  color: var(--black);
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { background: var(--cream); }
.filter-btn.active {
  background: var(--black);
  color: white;
}

/* ─── 6. REGION BUTTONS / INFO BOX ──────────────────────── */
.region-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.region-filter-label {
  font-size: 13px;
  color: var(--muted);
  margin-right: 4px;
}
.region-btn {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid;
  background: white;
  transition: all 0.15s;
  font-family: inherit;
}
.region-btn.all { border-color: var(--black); color: var(--black); }
.region-btn.all.active,
.region-btn.all:hover {
  background: var(--black);
  color: white;
}
.region-btn.bxl { border-color: var(--bxl); color: var(--bxl); }
.region-btn.bxl.active,
.region-btn.bxl:hover {
  background: var(--bxl);
  color: white;
}
.region-btn.wal { border-color: var(--wal); color: var(--wal); }
.region-btn.wal.active,
.region-btn.wal:hover {
  background: var(--wal);
  color: white;
}
.region-btn.fla { border-color: #333; color: #333; }
.region-btn.fla.active,
.region-btn.fla:hover {
  background: #333;
  color: white;
}

.region-info-box {
  background: var(--cream);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-bottom: 32px;
  display: none;
}
.region-info-box.visible { display: block; }
.region-info-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.region-info-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── 7. ARTICLE CARDS ──────────────────────────────────── */
.articles-section { padding: 80px 60px; }
.articles-panel { display: none; }
.articles-panel.active { display: block; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.article-card {
  background: white;
  border: 1.5px solid var(--black);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 3px 3px 0 var(--black);
}
.article-card.featured {
  grid-column: span 2;
  flex-direction: row;
}
.article-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.article-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}
.tag-buy { background: rgba(26,138,74,0.1); color: var(--green); }
.tag-rent { background: rgba(232,70,42,0.1); color: var(--accent); }
.tag-wait { background: rgba(217,119,6,0.1); color: var(--orange); }
.tag-region { background: rgba(42,92,232,0.1); color: var(--accent2); }

.article-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.article-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.article-time {
  font-size: 12px;
  color: var(--muted);
}
.article-arrow {
  width: 30px;
  height: 30px;
  border-radius: 100px;
  background: var(--cream);
  border: 1.5px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}
.article-card:hover .article-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.article-card-visual {
  width: 200px;
  flex-shrink: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  border-left: 1.5px solid var(--black);
}

/* ─── 8. SOON CARDS (articles à venir) ──────────────────── */
/* (Anciennement dans components-soon.css, fusionné ici) */

/* Variante NON-cliquable (article pas encore publié) */
.article-card.soon-card {
  background: var(--cream);
  border: 1.5px dashed rgba(0, 0, 0, 0.25);
  cursor: default;
  opacity: 0.85;
  pointer-events: none;
}
.article-card.soon-card:hover {
  transform: none;
  box-shadow: none;
}
.article-card.soon-card .article-card-body {
  padding: 24px 26px;
  gap: 12px;
}
.article-card.soon-card .article-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--black);
}
.article-card.soon-card .article-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* Variante CLIQUABLE (article publié mais avec visuel "à venir") */
a.article-card.soon-card,
.article-card.soon-card.soon-card-live {
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
a.article-card.soon-card:hover,
.article-card.soon-card.soon-card-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--black);
  border-style: solid;
}
a.article-card.soon-card:hover .article-arrow,
.article-card.soon-card.soon-card-live:hover .article-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Badge "Bientôt" ou "Disponible" sur soon-cards */
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
  width: fit-content;
}
a.article-card.soon-card .soon-badge.live-badge {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

/* Pill disabled (utilisé sur /regions/ pour les pages thème×région du futur Lot B) */
.region-pill.disabled,
span.region-pill.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
  pointer-events: none;
}

/* ─── 9. OUTCOME TABS (panneaux par résultat) ───────────── */
.outcome-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.outcome-tab {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--black);
  background: white;
  transition: all 0.2s;
  font-family: inherit;
}
.outcome-tab:hover { background: var(--cream); }
.outcome-tab.active {
  background: var(--black);
  color: white;
}
.outcome-tab.green-tab.active {
  background: var(--green);
  border-color: var(--green);
}
.outcome-tab.orange-tab.active {
  background: var(--orange);
  border-color: var(--orange);
}
.outcome-tab.red-tab.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ─── 10. QUIZ BANNER (CTA noir) ────────────────────────── */
.quiz-banner {
  margin: 0 60px 60px;
  background: var(--black);
  border-radius: 20px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.quiz-banner-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.quiz-banner-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.quiz-banner .btn-primary { background: var(--accent); }
.quiz-banner .btn-primary:hover { background: #c73d24; }

/* ─── 11. ANIMATIONS COMMUNES ───────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in { animation: fadeIn 0.3s ease both; }

/* ─── 12. MOBILE GLOBAL (≤ 900px) ───────────────────────── */
@media (max-width: 900px) {
  .page-hero { padding: 48px 24px; }
  .page-hero.split { grid-template-columns: 1fr; min-height: auto; }
  .page-hero.split .hero-left {
    padding: 48px 24px;
    border-right: none;
    border-bottom: 1.5px solid var(--black);
  }
  .page-hero.split .hero-right { padding: 40px 24px; }

  .filter-bar { padding: 20px 24px; }

  .quiz-section { padding: 48px 24px; }
  .quiz-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .quiz-box { padding: 24px 20px; }

  .articles-section { padding: 48px 24px; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.featured {
    grid-column: span 1;
    flex-direction: column;
  }
  .article-card-visual {
    width: 100%;
    height: 120px;
    border-left: none;
    border-top: 1.5px solid var(--black);
  }

  .quiz-banner {
    grid-template-columns: 1fr;
    margin: 0 24px 40px;
    padding: 32px;
    gap: 24px;
  }

  .section-header h2 { font-size: 26px; }

  /* Patch soon-card mobile */
  .article-card.soon-card .article-card-body {
    padding: 20px 22px;
  }
  .article-card.soon-card .article-title {
    font-size: 16px;
  }
}

/* ─── 13. MOBILE TRÈS PETITS ÉCRANS (≤ 560px) ───────────── */
@media (max-width: 560px) {
  .quiz-q { font-size: 17px; }
  .quiz-box { padding: 20px 16px; }
  .quiz-opt {
    padding: 12px 14px;
    font-size: 13px;
  }
  .quiz-section { padding: 36px 20px; }
}
