/* Composants partagés des pages sectorielles (entreprises-de-conseil-secteur-*.html).
   Chargé après le <style> inline de chaque page : ces règles priment. */

/* ── Ligne du haut : retour, date, temps de lecture, partage ── */
.secteur-meta {
  max-width: 880px; margin: 0 auto; padding: 20px 24px 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
}
.secteur-meta .breadcrumb { max-width: none; margin: 0; padding: 6px 0 0; }
.secteur-meta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-left: auto; }
.secteur-date { font-size: var(--fs-xs); color: var(--ink-mute); text-align: right; }
.secteur-date time { color: var(--link); }
.secteur-meta .share-bar { margin: 0; padding: 0; border: 0; gap: 10px; }
.secteur-meta .share-label { font-size: var(--fs-xs); }
.secteur-meta .share-buttons { gap: 7px; }
.secteur-meta .share-btn { width: 32px; height: 32px; }
.secteur-meta .share-btn svg { width: 15px; height: 15px; }
.share-bar--bas { margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--rule); border-bottom: 0; }

/* ── Titres : flèche or horizontale qui scintille, devant le titre ── */
.secteur-body h2 {
  position: relative; border-left: 0; padding-left: 34px;
}
.secteur-body h2::before {
  content: ''; position: absolute; left: 0; top: 0.42em;
  width: 22px; height: 12px;
  background: var(--paper-alt);
  background-size: 250% 100%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M1 6h18M14.5 1.5 19.5 6l-5 4.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M1 6h18M14.5 1.5 19.5 6l-5 4.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (prefers-reduced-motion: reduce) {
  .secteur-body h2::before {background: var(--paper-alt); }
}

/* ── En bref ───────────────────────────────────────────── */
.en-bref {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 22px 26px 18px;
  margin: 0 0 28px;
}
.en-bref-title {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 10px;
}
.en-bref ul { list-style: none; margin: 0; padding: 0; }
.en-bref li { position: relative; padding: 5px 0 5px 26px; font-size: var(--fs-base); line-height: 1.6; color: var(--ink); }
.en-bref li::before { content: '→'; position: absolute; left: 0; top: 5px; color: var(--accent); font-weight: 700; }
.en-bref li strong { color: var(--ink); }

/* ── Photo du secteur : bandeau pleine largeur légendé, comme basque.finance ── */
.secteur-container--haut { padding-bottom: 40px; }
.secteur-container--suite { padding-top: 44px; }
/* Photo placée en haut de page, sous le titre (comme la page Afrique) :
   les deux blocs de contenu se suivent sans double marge. */
.secteur-container--haut + .secteur-container--suite { padding-top: 0; }
.secteur-banner { position: relative; margin: 0; line-height: 0; }
.secteur-banner img { width: 100%; height: min(42vw, 520px); object-fit: cover; display: block; }
.secteur-banner figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 0 22px; line-height: 1.5;
  background: transparent;
}
.secteur-banner-wrap {
  display: block; max-width: 880px; margin: 0 auto; padding: 0 24px;
  color: var(--on-ink); font-size: var(--fs-sm); font-style: italic;
}
.secteur-banner-wrap span { display: block; max-width: 52ch; }
.secteur-banner-credit { display: block; font-style: normal; font-size: var(--fs-xs); opacity: .75; margin-top: 4px; }
@media (max-width: 640px) {
  .secteur-banner img { height: 240px; }
  .secteur-banner-wrap { padding: 0 16px; font-size: var(--fs-xs); }
  .secteur-container--haut { padding-bottom: 32px; }
  .secteur-container--suite { padding-top: 32px; }
}

/* ── Chiffres clés : base commune ───────────────────────── */
.stat-icon {
  width: 42px; height: 42px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-alt); color: var(--ink-soft);
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-src a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink-mute) 50%, transparent); }
.stat-src a:hover { color: var(--accent); }
.stat-value { font-variant-numeric: lining-nums tabular-nums; }

/* Chiffres clés en bandeau : sans cartes, filets or verticaux comme la home */
.stat-grid--c {
  grid-template-columns: repeat(4, 1fr); gap: 0;
  padding: 8px 0 4px;
}
.stat-grid--c .stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 16px; border: 0; background: none; }
.stat-grid--c .stat-icon { background: none; width: auto; height: auto; margin-bottom: 8px; }
.stat-grid--c .stat-value {
  font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-2xl); line-height: 1; color: var(--ink);
}
.stat-grid--c .stat-delta { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); margin: 6px 0 4px; }
.stat-grid--c .stat-label { font-size: var(--fs-xs); color: var(--link); flex: 1; }
.stat-grid--c .stat-src { font-size: var(--fs-xs); margin-top: 10px; }

/* ── Tableaux triables ─────────────────────────────────── */
table.sortable th[aria-sort] { padding: 0; }
table.sortable th button {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 10px 14px; font-weight: 700; color: var(--ink);
}
table.sortable th.num button { justify-content: flex-end; }
table.sortable th button:hover { color: var(--accent); }
table.sortable th button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
table.sortable th button::after { content: '↕'; font-size: var(--fs-xs); color: var(--ink-mute); font-weight: 400; }
table.sortable th[aria-sort="ascending"] button::after { content: '↑'; color: var(--accent); }
table.sortable th[aria-sort="descending"] button::after { content: '↓'; color: var(--accent); }
.sort-hint { font-size: var(--fs-xs); color: var(--ink-mute); margin: -4px 0 8px; }

/* ── Liens sortants dans le texte ──────────────────────── */
.secteur-body a.src, .secteur-intro a.src, .secteur-asof a.src, .en-bref a.src {
  color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 2px;
}
.secteur-body a.src:hover, .secteur-asof a.src:hover { color: var(--accent); text-decoration-color: currentColor; }

@media (max-width: 960px) {
  .stat-grid--c { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
}
@media (max-width: 640px) {
  .secteur-meta { padding: 20px 16px 0; }
  .secteur-meta-right { align-items: flex-start; margin-left: 0; }
  .secteur-date { text-align: left; }
  .en-bref { padding: 18px 18px 14px; }
}

/* Encadré final : espace entre paragraphes */
.secteur-note p + p { margin-top: 12px; }

/* ── Puces : demi-disque plein, gris très foncé ─────────────
   Dessiné en masque SVG pour que la couleur se règle avec --puce. */
.secteur-body ul li,
.en-bref li { padding-left: 24px; }
.secteur-body ul li::before,
.en-bref li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 12px; height: 12px; border-radius: 0;
  background: var(--ink); font-weight: normal;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 1a5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 1a5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ── Titres : même bleu nuit que le haut de page (barre de navigation) ── */
.secteur-body h2,
.secteur-body h3 { color: var(--ink); }

/* ── Citation en exergue ───────────────────────────────── */
.secteur-citation { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); color: var(--ink); text-align: center; border-radius: var(--radius); padding: 34px 56px; margin: 0 0 30px; font-family: var(--font-serif); font-style: italic; font-size: var(--fs-md); line-height: 1.55; }
.secteur-citation::before { content: "\201D"; position: absolute; z-index: -1; left: 18px; top: -.06em; font-family: var(--font-serif); font-style: normal; font-weight: 400; font-size: var(--fs-3xl); line-height: 1; color: color-mix(in srgb, var(--accent) 32%, transparent); pointer-events: none; user-select: none; }
.secteur-citation span { display: block; margin-top: 4px; font-family: var(--font-sans); font-style: normal; font-size: var(--fs-sm); margin-top: 14px; color: var(--accent); }
.secteur-citation span em { font-style: italic; }

@media (max-width: 640px) {
  .secteur-citation { padding: 28px 24px; }
  .secteur-citation::before { font-size: var(--fs-3xl); left: 6px; }
}
