/* ════════════════════════════════════════════════════════════════
   DECISIO.BE — regions.css (v6 — Mai 2026)
   Styles uniques à /regions/ et aux pages détail de régions
   - Hero key numbers
   - Quick nav régions
   - Region cards XL
   - Compare table
   - By theme grid (avec soon states fusionnés)
   - Pages détail régions (Bruxelles / Wallonie / Flandre)
   ════════════════════════════════════════════════════════════════ */

.page-regions .page-h1 { max-width: 700px; }
.page-regions .page-intro { max-width: 560px; }

/* ─── 1. HERO KEY NUMBERS ───────────────────────────────── */
.hero-key-numbers {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px;
  background: var(--cream);
  border-left: 1.5px solid var(--black);
}
.key-number-card {
  background: white;
  border: 1.5px solid var(--black);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.key-number-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.key-number-card.key-bxl::before { background: var(--bxl); }
.key-number-card.key-wal::before { background: var(--wal); }
.key-number-card.key-fla::before { background: var(--fla); }

.key-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}
.key-number-card.key-bxl .key-num { color: var(--bxl); }
.key-number-card.key-wal .key-num { color: var(--wal); }
.key-number-card.key-fla .key-num { color: var(--fla); }
.key-label {
  font-weight: 600;
  font-size: 14px;
}
.key-sub {
  font-size: 12px;
  color: var(--muted);
}

/* ─── 2. NAVIGATION RAPIDE ──────────────────────────────── */
.region-quicknav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--black);
  border-top: 1.5px solid var(--black);
  border-bottom: 1.5px solid var(--black);
}
.quicknav-item {
  background: white;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  border-right: 1.5px solid var(--black);
  transition: all 0.2s;
  position: relative;
}
.quicknav-item:last-child { border-right: none; }
.quicknav-item::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  transition: height 0.2s;
}
.quicknav-item.nav-bxl::before { background: var(--bxl); }
.quicknav-item.nav-wal::before { background: var(--wal); }
.quicknav-item.nav-fla::before { background: var(--fla); }
.quicknav-item:hover { background: var(--cream); }
.quicknav-item:hover::before { height: 4px; }

.quicknav-emoji { font-size: 32px; }
.quicknav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.quicknav-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.quicknav-sub {
  font-size: 12px;
  color: var(--muted);
}
.quicknav-arrow {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s;
}
.quicknav-item:hover .quicknav-arrow {
  transform: translateX(4px);
  color: var(--black);
}

/* ─── 3. REGION CARDS XL ────────────────────────────────── */
.regions-section { padding: 60px; }
.regions-grid-big {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--black);
  border: 1.5px solid var(--black);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 0;
}
.region-card-big {
  background: white;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.region-card-big:hover { background: var(--cream); }

.region-flag-area {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1.5px solid var(--black);
  overflow: hidden;
  position: relative;
}
.region-flag-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.region-flag-fallback {
  font-size: 60px;
  line-height: 180px;
}

.region-card-content {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.region-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
}
.region-nl {
  font-size: 13px;
  color: var(--muted);
  margin-top: -10px;
}
.region-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.region-key-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.fact-dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  margin-top: 6px;
  flex-shrink: 0;
}
.fact-dot.bxl { background: var(--bxl); }
.fact-dot.wal { background: var(--wal); }
.fact-dot.fla { background: var(--fla); }
.fact-text {
  font-size: 13px;
  color: var(--black);
  line-height: 1.5;
}

.region-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.07);
  color: var(--black);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}
.region-link:hover { color: var(--accent); }
.region-link-arrow {
  width: 28px; height: 28px;
  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;
}
.region-card-big:hover .region-link-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ─── 4. COMPARE TABLE ──────────────────────────────────── */
.compare-section {
  background: var(--cream);
  padding: 60px;
}
.compare-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1.5px solid var(--black);
  border-radius: 16px;
  overflow: hidden;
  min-width: 720px;
}
.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.compare-table th {
  background: var(--black);
  color: white;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.th-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}
.th-pill.bxl { background: var(--bxl); color: white; }
.th-pill.wal { background: var(--wal); color: white; }
.th-pill.fla { background: var(--fla); color: white; }

.compare-table td:first-child { font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--cream); }
.compare-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.6;
}

/* ─── 5. TAGS DANS LE TABLEAU ───────────────────────────── */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}
.tag-green  { background: rgba(26,138,74,0.12);  color: var(--green); }
.tag-red    { background: rgba(232,70,42,0.1);   color: var(--accent); }
.tag-blue   { background: rgba(42,92,232,0.1);   color: var(--accent2); }
.tag-orange { background: rgba(255,153,0,0.12);  color: #B86E00; }
.tag-grey   { background: rgba(0,0,0,0.06);      color: var(--muted); }

/* ─── 6. BY THEME GRID ──────────────────────────────────── */
.bytheme-section { padding: 60px; }
.bytheme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bytheme-card {
  background: white;
  border: 1.5px solid var(--black);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
}
.bytheme-card:not(.soon):hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--black);
}
.bytheme-emoji {
  font-size: 28px;
  margin-bottom: 4px;
}
.bytheme-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.bytheme-regions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.region-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid;
  transition: all 0.15s;
}
.region-pill.pill-bxl { color: var(--bxl); border-color: var(--bxl); }
.region-pill.pill-bxl:hover { background: var(--bxl); color: white; }
.region-pill.pill-wal { color: var(--wal); border-color: var(--wal); }
.region-pill.pill-wal:hover { background: var(--wal); color: white; }
.region-pill.pill-fla { color: var(--fla); border-color: var(--fla); }
.region-pill.pill-fla:hover { background: var(--fla); color: white; }

/* ─── 7. SOON STATES ────────────────────────────────────── */
/* (Anciennement dans regions-soon.css, fusionné ici) */

.bytheme-card.soon { opacity: 0.62; }
.bytheme-card.soon .bytheme-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.soon-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.region-pill.disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.55;
  background: #ececec !important;
  color: #888 !important;
  border-color: #ddd !important;
  text-decoration: line-through;
}

/* ════════════════════════════════════════════════════════
   PAGES RÉGIONS DÉTAIL (/regions/bruxelles, /wallonie, /flandre)
   ════════════════════════════════════════════════════════ */

.page-region-detail .page-hero { padding-bottom: 0; }

/* ─── 8. BANNIÈRE DRAPEAU ──────────────────────────────── */
.region-hero-banner {
  height: 320px;
  width: 100%;
  overflow: hidden;
  border-bottom: 1.5px solid var(--black);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

/* Fonds dégradés cohérents avec chaque drapeau */
.region-hero-banner.bxl-bg {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%),
    linear-gradient(135deg, #003DA5 0%, #1d57c8 50%, #003DA5 100%);
}
.region-hero-banner.wal-bg {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%),
    linear-gradient(135deg, #f9d048 0%, #fcd116 50%, #f9d048 100%);
}
.region-hero-banner.fla-bg {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%),
    linear-gradient(135deg, #f9d048 0%, #fcd116 50%, #f9d048 100%);
}

.region-flag-img {
  max-width: 360px;
  width: auto;
  max-height: 240px;
  height: auto;
  object-fit: contain;
  display: block;
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.18),
    0 2px 6px rgba(0,0,0,0.12);
  background: white;
  position: relative;
  z-index: 1;
}

.region-hero-label {
  position: absolute;
  bottom: 16px;
  right: 24px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  border: 1.5px solid var(--black);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--black);
}

/* ─── 9. DÉTAIL CONTENU ─────────────────────────────────── */
.region-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  padding: 60px;
  align-items: start;
}
.region-detail-content { max-width: 760px; }
.region-detail-content h2 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.5px;
  margin: 48px 0 16px;
  scroll-margin-top: 80px;
}
.region-detail-content h2:first-child { margin-top: 0; }
.region-detail-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 32px 0 12px;
}
.region-detail-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 16px;
}
.region-detail-content ul,
.region-detail-content ol {
  margin: 16px 0;
  padding-left: 24px;
}
.region-detail-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.region-detail-content strong { font-weight: 700; }

.region-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 32px;
}
.region-stat {
  background: var(--cream);
  border: 1.5px solid var(--black);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.region-stat-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.region-stat.bxl .region-stat-num { color: var(--bxl); }
.region-stat.wal .region-stat-num { color: var(--wal); }
.region-stat.fla .region-stat-num { color: var(--fla); }
.region-stat-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.region-info-callout {
  background: var(--cream);
  border-left: 4px solid var(--black);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 24px 0;
}
.region-info-callout.bxl { border-left-color: var(--bxl); }
.region-info-callout.wal { border-left-color: var(--wal); }
.region-info-callout.fla { border-left-color: var(--fla); }
.region-info-callout-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 15px;
}
.region-info-callout p:last-child { margin-bottom: 0; }

.region-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 32px;
}
.region-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: white;
  border: 1.5px solid var(--black);
  border-radius: 12px;
  text-decoration: none;
  color: var(--black);
  transition: all 0.15s;
}
.region-link-card:hover {
  background: var(--cream);
  transform: translateX(4px);
}
.region-link-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.region-link-card-title {
  font-weight: 600;
  font-size: 15px;
}
.region-link-card-sub {
  font-size: 12px;
  color: var(--muted);
}

.region-detail-sidebar {
  position: sticky;
  top: 24px;
}
.region-sidebar-card {
  background: white;
  border: 1.5px solid var(--black);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
}
.region-sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 14px;
}
.sidebar-toc {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-toc li {
  margin: 0;
  padding: 0;
}
.sidebar-toc a {
  display: block;
  padding: 8px 0;
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.15s;
}
.sidebar-toc a:hover { color: var(--accent); }
.sidebar-toc li:last-child a { border-bottom: none; }

/* ─── 10. MOBILE ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .region-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 24px;
  }
  .region-detail-sidebar { position: static; }
}
@media (max-width: 900px) {
  .hero-key-numbers {
    padding: 32px 24px;
    border-left: none;
    border-top: 1.5px solid var(--black);
  }
  .region-quicknav { grid-template-columns: 1fr; }
  .quicknav-item {
    border-right: none;
    border-bottom: 1.5px solid var(--black);
  }
  .quicknav-item:last-child { border-bottom: none; }
  .regions-section { padding: 40px 24px; }
  .regions-grid-big { grid-template-columns: 1fr; }
  .compare-section { padding: 40px 24px; }
  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
    font-size: 13px;
  }
  .bytheme-section { padding: 40px 24px; }
  .bytheme-grid { grid-template-columns: 1fr 1fr; }
  .region-stat-row { grid-template-columns: 1fr; }

  .region-hero-banner {
    height: 240px;
    padding: 24px 0;
  }
  .region-flag-img {
    max-width: 260px;
    max-height: 170px;
  }
  .region-hero-label {
    bottom: 12px;
    right: 16px;
    font-size: 11px;
    padding: 5px 12px;
  }
}
@media (max-width: 560px) {
  .bytheme-grid { grid-template-columns: 1fr; }
  .region-detail-content h2 { font-size: 24px; }
  .region-hero-banner {
    height: 200px;
    padding: 20px 16px;
  }
  .region-flag-img {
    max-width: 220px;
    max-height: 140px;
  }
}
