:root {
    --bg: #faf9f5;
    --bg-2: #f5f4ed;
    --bg-3: #e8e6dc;
    --g200: #e8e6dc;
    --g300: #d1cfc5;
    --g400: #b0aea5;
    --g500: #87867f;
    --g600: #5e5d59;
    --g700: #3d3d3a;
    --g800: #262624;
    --g900: #1a1918;
    --g950: #141413;
    --rule-soft: #e8e6dc;
    --accent: #3F4A2E;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body {
    background: var(--bg);
    color: var(--g800);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .page { max-width: 860px; margin: 0 auto; padding: 40px 48px 96px; }

  /* SITE BREADCRUMB — full-width sticky, applies on every page */
  .site-breadcrumb {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 249, 245, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--g300);
  }
  .site-breadcrumb-inner {
    max-width: 1180px; margin: 0 auto; padding: 14px 32px;
  }
  .site-breadcrumb ol {
    list-style: none; padding: 0; margin: 0;
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 10px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .site-breadcrumb li {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--g500); font-weight: 400;
  }
  .site-breadcrumb li a {
    color: var(--g950); font-weight: 600; text-decoration: none;
    transition: color .15s;
  }
  .site-breadcrumb li a:hover { color: var(--accent); }
  .site-breadcrumb li + li::before {
    content: '/'; color: var(--g400); font-weight: 400;
  }
  .site-breadcrumb li[aria-current="page"] { color: var(--g500); font-weight: 400; }
  @media (max-width: 880px) {
    .site-breadcrumb-inner { padding: 12px 20px; }
    .site-breadcrumb ol { font-size: 10px; gap: 8px; }
    .site-breadcrumb li + li::before { content: '\203A'; }
  }

  /* SITE FOOTER (V6) — shared across all pages */
  footer.site-footer-v2 {
    background: var(--bg);
    padding: 64px 0 28px;
    border-top: 1px solid var(--g300);
    margin-top: 64px;
  }
  .site-footer-v2 .footer-wide {
    max-width: 1180px; margin: 0 auto; padding: 0 32px;
  }
  .site-footer-v2 .footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
    margin-bottom: 32px;
  }
  .site-footer-v2 .footer-grid > div:first-child .brand {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--g950); font-weight: 600;
    margin-bottom: 10px; display: block;
  }
  .site-footer-v2 .footer-grid > div:first-child .brand span {
    color: var(--g500); font-weight: 400;
  }
  .site-footer-v2 .footer-grid > div:first-child p {
    font-size: 0.8125rem; color: var(--g700); line-height: 1.55; max-width: 280px;
  }
  .site-footer-v2 .footer-grid h4 {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--g500); font-weight: 500;
    margin-bottom: 14px;
  }
  .site-footer-v2 .footer-grid ul { list-style: none; padding: 0; margin: 0; }
  .site-footer-v2 .footer-grid li {
    padding: 2px 0; font-size: 0.875rem; color: var(--g700);
  }
  .site-footer-v2 .footer-grid a { color: inherit; text-decoration: none; transition: color .15s; }
  .site-footer-v2 .footer-grid a:hover { color: var(--g950); }
  .site-footer-v2 .footer-grid a.footer-inactive { color: var(--g400); pointer-events: none; cursor: default; }
  .site-footer-v2 .footer-bottom {
    border-top: 1px solid var(--g300); padding-top: 22px;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--g500);
  }
  @media (max-width: 880px) {
    .site-footer-v2 .footer-wide { padding: 0 20px; }
    .site-footer-v2 .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .site-footer-v2 .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  }
  @media (max-width: 720px) {
    footer.site-footer-v2 { padding: 32px 0 20px; margin-top: 32px; }
    .site-footer-v2 .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-bottom: 20px; }
    .site-footer-v2 .footer-grid > div:first-child { grid-column: 1 / -1; margin-bottom: -4px; }
    .site-footer-v2 .footer-grid h4 { margin-bottom: 8px; font-size: 9px; }
    .site-footer-v2 .footer-grid li { padding: 1px 0; font-size: 0.8125rem; line-height: 1.35; }
    .site-footer-v2 .footer-bottom { padding-top: 14px; font-size: 9px; }
  }

  /* META TOP — brand seule au-dessus du filet (legacy, kept for compatibility) */
  .meta-top {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.10em;
    text-transform: uppercase; color: var(--g500);
    padding-bottom: 14px; border-bottom: 1px solid var(--g300);
    margin-bottom: 0;
  }
  .meta-top .brand { font-weight: 600; color: var(--g800); }

  /* META DATE — date de mise à jour alignée à droite, sous le filet */
  .meta-date {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.10em;
    text-transform: uppercase; color: var(--g500);
    text-align: right; padding: 0.5rem 0 1.5rem;
  }

  /* HERO */
  .hero { margin-top: 1rem; margin-bottom: 1.5rem; }
  .hero h1 {
    font-size: clamp(2.75rem, calc(2.25rem + 2.5vw), 4.5rem);
    font-weight: 400; line-height: 1.05; letter-spacing: -0.025em;
    color: var(--g950); margin-bottom: 24px;
  }
  .hero .tagline {
    font-size: 1.0625rem; font-style: italic;
    line-height: 1.7; color: var(--g500); font-weight: 300;
  }

  /* QUICK FACTS */
  .quick-facts {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
    padding: 1.25rem 0; margin-bottom: 2.5rem; gap: 1rem;
  }
  .quick-facts .fact { padding: 0 16px; border-left: 1px solid var(--g300); }
  .quick-facts .fact:first-child { padding-left: 0; border-left: none; }
  .quick-facts .label {
    font-family: var(--mono); font-size: 9px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--g500); margin-bottom: 0.4rem;
  }
  .quick-facts .primary {
    font-size: 1.0625rem; font-weight: 500; line-height: 1.25;
    color: var(--g950); margin-bottom: 0.25rem; letter-spacing: -0.01em;
  }
  .quick-facts .secondary { font-size: 0.8125rem; color: var(--g600); line-height: 1.4; }

  /* SECTION STRUCTURE */
  .section { margin-bottom: 2.75rem; }
  .section h2 {
    font-size: clamp(1.375rem, calc(1.25rem + 0.6vw), 1.75rem);
    font-weight: 500; line-height: 1.2; color: var(--g950);
    margin-bottom: 18px; letter-spacing: -0.015em;
  }
  .section p {
    font-size: 1.0625rem; line-height: 1.7; color: var(--g800);
    margin-bottom: 18px;
  }
  .section p:last-child { margin-bottom: 0; }

  /* DEFINITION — paragraphe de corps standard, sans encadré ni titre */
  .section.definition h2 { display: none; }
  .section.definition { margin-bottom: 2.5rem; }

  /* LIST */
  .section ul { list-style: none; padding-left: 0; }
  .section ul li {
    font-size: 1.0625rem; line-height: 1.65; color: var(--g800);
    padding: 5px 0 5px 0.9rem; position: relative;
  }
  .section ul li::before {
    content: ''; position: absolute; left: 0.1rem; top: 0.65em;
    width: 0.25rem; height: 0.25rem; border-radius: 50%; background: var(--g500);
  }
  .section ul li:last-child { border-bottom: none; }

  /* KEY STATS */
  .key-stats { margin-top: 8px; }
  .key-stats .caption {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--g500); margin-bottom: 16px;
  }
  .key-stats table { border-collapse: collapse; width: 100%; table-layout: fixed; }
  .key-stats td {
    padding: 11px 0; border-bottom: 1px solid var(--rule-soft); font-size: 0.9375rem; vertical-align: top;
  }
  .key-stats td:first-child { color: var(--g600); width: 38%; padding-right: 16px; }
  .key-stats td:last-child { font-weight: 500; color: var(--g950); font-size: 0.9375rem; }
  .key-stats tr:last-child td { border-bottom: none; }

  /* FAQ — encadré bordure fine arrondie */
  .section.faq {
    border: 1px solid var(--g300); border-radius: 10px;
    padding: 1.75rem 2rem;
  }
  .section.faq h2 {
    font-size: clamp(1.375rem, calc(1.25rem + 0.6vw), 1.75rem);
    font-weight: 500; color: var(--g950); margin-bottom: 1.5rem;
  }
  .faq-item { padding: 1.25rem 0; border-top: 1px solid var(--rule-soft); }
  .faq-item:first-of-type { border-top: none; padding-top: 0; }
  .faq-item .question {
    font-family: var(--font); font-size: 1.0625rem; font-weight: 600;
    line-height: 1.45; color: var(--g950); margin-bottom: 0.65rem;
  }
  .faq-item .answer { font-size: 1.0625rem; line-height: 1.7; color: var(--g800); }

  /* EDITORIAL TAKE */
  .section.editorial-take {
    padding: 48px 0; margin: 80px 0;
    border-top: 1px solid var(--g300); border-bottom: 1px solid var(--g300);
    text-align: center;
  }
  .section.editorial-take h2 {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--g500); font-weight: 500; margin-bottom: 22px;
  }
  .section.editorial-take p {
    font-size: clamp(1.25rem, calc(1.125rem + 0.6vw), 1.625rem);
    font-style: italic; line-height: 1.4; color: var(--g800); font-weight: 300;
    max-width: 760px; margin: 0 auto; letter-spacing: -0.01em;
  }

  /* RESOURCES — toujours dernier bloc de contenu avant footer */
  .section.resources table { border-collapse: collapse; width: 100%; margin-top: 8px; }
  .section.resources td {
    padding: 11px 0; border-bottom: 1px solid var(--rule-soft);
    font-size: 0.9375rem; vertical-align: top;
  }
  .section.resources td:first-child {
    color: var(--g500); width: 36%;
    font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; padding-top: 14px;
    text-transform: uppercase;
  }
  .section.resources tr:last-child td { border-bottom: none; }
  .section.resources a { color: var(--accent); text-decoration: none; word-break: break-all; }
  .section.resources a:hover { text-decoration: underline; }
  .muted { color: var(--g400); }

  /* FOOTER — encadré gris, style mono */
  .footer {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    border: 1px solid var(--g300);
    border-radius: 10px;
    background: var(--g200);
    font-family: var(--mono); font-size: 11px; color: var(--g600);
  }
  .footer .line { display: flex; gap: 0.75rem; margin-bottom: 0.5rem; line-height: 1.55; }
  .footer .line:last-child { margin-bottom: 0; }
  .footer .line .label {
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--g500); flex-shrink: 0; min-width: 7rem;
  }

  /* RESPONSIVE */
  @media (max-width: 820px) {
    .page { padding: 32px 24px 56px; }
    .hero h1 { font-size: 2.25rem; }
    .hero .tagline { font-size: 1rem; }
    .quick-facts { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; }
    .quick-facts .fact { padding-left: 20px; border-left: 1px solid var(--g300); }
    .quick-facts .fact:first-child { padding-left: 0; border-left: none; }
    .quick-facts .fact:nth-child(3) { padding-left: 0; border-left: none; padding-top: 1.25rem; border-top: 1px solid var(--rule-soft); }
    .quick-facts .fact:nth-child(4) { padding-top: 1.25rem; border-top: 1px solid var(--rule-soft); }
    .section.editorial-take p { font-size: 1.125rem; }
    .footer .line { flex-direction: column; gap: 0.15rem; }
    .footer .line .label { min-width: 0; }
  }
  @media (max-width: 520px) {
    .page { padding: 24px 18px 48px; }
    .hero h1 { font-size: 1.875rem; line-height: 1.1; }
    .hero .tagline { font-size: 0.9375rem; }
    .quick-facts { grid-template-columns: repeat(2, 1fr); gap: 1rem 0; }
    .quick-facts .fact { padding: 0 0 0 16px; border-left: 1px solid var(--g300); border-top: none; }
    .quick-facts .fact:first-child,
    .quick-facts .fact:nth-child(odd) { padding-left: 0; border-left: none; }
    .quick-facts .fact:nth-child(n+3) { padding-top: 1rem; border-top: 1px solid var(--rule-soft); }
    .quick-facts .fact .primary { font-size: 1.125rem; }
    .quick-facts .fact .secondary { font-size: 0.8125rem; word-break: break-word; }
  }
  @media print {
    body { background: #fff; color: #000; }
    .page { padding: 24mm 18mm; max-width: 100%; }
    .section { page-break-inside: avoid; }
  }

  /* =========================================================
     SECTEUR / VERTICALE PAGE
     Flat editorial layout + chronological events table.
     Scoped to body.secteur to avoid impacting fiche pages.
     ========================================================= */
  body.secteur .page { max-width: 860px; }

  body.secteur .secteur-article h1 {
    font-size: clamp(2.5rem, calc(2rem + 2.2vw), 4rem);
    font-weight: 400; line-height: 1.05; letter-spacing: -0.025em;
    color: var(--g950);
    margin: 0.5rem 0 1.75rem;
  }
  body.secteur .secteur-article > p:first-of-type {
    font-size: 1.1875rem; line-height: 1.65; color: var(--g700);
    font-weight: 300; margin-bottom: 1.5rem;
  }
  body.secteur .secteur-article p {
    font-size: 1.0625rem; line-height: 1.75; color: var(--g800);
    margin-bottom: 1.1rem;
  }
  body.secteur .secteur-article h2 {
    font-size: clamp(1.375rem, calc(1.25rem + 0.5vw), 1.625rem);
    font-weight: 500; line-height: 1.25; color: var(--g950);
    letter-spacing: -0.015em;
    margin: 3rem 0 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--rule-soft);
  }
  body.secteur .secteur-article > h2:first-of-type { /* keep first h2 also separated */ }
  body.secteur .secteur-article strong { color: var(--g950); font-weight: 600; }

  /* Events block */
  body.secteur .secteur-events {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--g300);
  }
  body.secteur .secteur-events .events-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1.5rem; margin-bottom: 1.25rem;
  }
  body.secteur .secteur-events h2 {
    font-size: clamp(1.375rem, calc(1.25rem + 0.5vw), 1.625rem);
    font-weight: 500; color: var(--g950); letter-spacing: -0.015em; margin: 0;
  }
  body.secteur .secteur-events .events-meta {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--g500);
  }

  /* Events table */
  body.secteur .events-table {
    width: 100%; border-collapse: collapse; table-layout: fixed;
    font-size: 0.9375rem;
  }
  body.secteur .events-table thead th {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--g500); font-weight: 500;
    text-align: left; padding: 12px 16px;
    border-bottom: 1px solid var(--g300);
    background: transparent;
  }
  body.secteur .events-table th:nth-child(1) { width: 52%; }
  body.secteur .events-table th:nth-child(2) { width: 26%; }
  body.secteur .events-table th:nth-child(3) { width: 22%; }

  body.secteur .events-table tbody tr {
    cursor: pointer;
    transition: background-color .12s ease;
    border-bottom: 1px solid var(--rule-soft);
  }
  body.secteur .events-table tbody tr:hover {
    background: var(--bg-2);
  }
  body.secteur .events-table tbody tr:hover td:first-child {
    color: var(--accent);
  }
  body.secteur .events-table tbody td {
    padding: 14px 16px; vertical-align: middle;
    color: var(--g800); line-height: 1.45;
  }
  body.secteur .events-table tbody td:first-child {
    font-weight: 500; color: var(--g950);
    transition: color .12s ease;
  }
  body.secteur .events-table tbody td:nth-child(2) { color: var(--g600); }
  body.secteur .events-table tbody td:last-child {
    font-family: var(--mono); font-size: 0.8125rem; color: var(--g600);
    line-height: 1.5;
  }
  body.secteur .events-table a {
    color: inherit; text-decoration: none;
  }
  body.secteur .events-table tbody tr.is-hidden { display: none; }

  body.secteur .events-empty {
    padding: 2rem 0; color: var(--g500); font-style: italic; font-size: 0.9375rem;
  }

  /* Pagination */
  body.secteur .pager {
    display: flex; justify-content: center; align-items: center; gap: 6px;
    margin-top: 2rem; flex-wrap: wrap;
  }
  body.secteur .pager button {
    appearance: none; background: transparent; border: 1px solid var(--g300);
    color: var(--g700); font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 8px 12px; min-width: 36px; border-radius: 6px;
    cursor: pointer; transition: all .12s ease;
  }
  body.secteur .pager button:hover:not([disabled]):not(.is-active) {
    background: var(--bg-2); color: var(--g950); border-color: var(--g400);
  }
  body.secteur .pager button.is-active {
    background: var(--g950); color: var(--bg); border-color: var(--g950);
    cursor: default;
  }
  body.secteur .pager button[disabled] {
    opacity: 0.35; cursor: not-allowed;
  }
  body.secteur .pager .pager-prev,
  body.secteur .pager .pager-next { padding: 8px 14px; }

  @media (max-width: 720px) {
    body.secteur .secteur-article h1 {
      font-size: clamp(1.875rem, 7vw, 2.25rem);
      margin: 0 0 1.25rem;
    }
    body.secteur .secteur-article > p:first-of-type {
      font-size: 1rem; line-height: 1.55;
    }
    body.secteur .secteur-article p { font-size: 0.9375rem; line-height: 1.6; }
    body.secteur .secteur-article h2 {
      font-size: 1.25rem; margin: 2rem 0 0.75rem; padding-top: 1.25rem;
    }
    body.secteur .secteur-events { margin-top: 2.5rem; padding-top: 1.5rem; }
    body.secteur .secteur-events h2 { font-size: 1.25rem; }

    body.secteur .events-table { font-size: 0.875rem; }
    body.secteur .events-table thead th,
    body.secteur .events-table tbody td { padding: 10px 8px; }
    body.secteur .events-table th:nth-child(1) { width: 50%; }
    body.secteur .events-table th:nth-child(2) { width: 25%; }
    body.secteur .events-table th:nth-child(3) { width: 25%; }
    body.secteur .events-table tbody td:last-child { font-size: 0.75rem; }
    body.secteur .pager button { padding: 6px 10px; min-width: 32px; font-size: 10px; }
  }
  @media (max-width: 520px) {
    body.secteur .events-table { font-size: 0.8125rem; }
    body.secteur .events-table thead th,
    body.secteur .events-table tbody td { padding: 10px 6px; }
  }
