/* ==========================================================================
   WIDEVIEW — Page « Nos marchés »
   S'ajoute à styles.css (charte validée), sans le modifier.
   ========================================================================== */
:root { --text-soft: #3E4652; }

/* ---------- Bandeau de page ---------- */
.page-hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; isolation: isolate; }
.page-hero__media { position: absolute; inset: 0 0 0 38%; z-index: -2; display: block; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 72%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 38%, rgba(16,36,58,.72) 56%, rgba(16,36,58,.35) 100%); }
.page-hero__inner { padding-top: 56px; padding-bottom: 72px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: #C9D3DE; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: #8FA2B6; }
.breadcrumb a { color: #FFFFFF; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { margin-top: 26px; font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.05; font-weight: 800; }
.page-hero h1::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 22px; background: var(--red); }
.page-hero__sub { margin-top: 22px; max-width: 30em; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.4; font-weight: 700; }
.page-hero__lead { margin: 16px 0 0; max-width: 36em; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.65; color: #E3E9EF; }


.section-head p { font-size: 1.08rem; line-height: 1.65; }

/* ---------- Carte + fiche ---------- */
.mk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.mk-mapbox { padding: 24px; border-radius: 14px; background: var(--navy-deep); }
.mk-mapwrap { position: relative; max-width: 540px; margin: 0 auto; }
.mk-map { display: block; width: 100%; height: auto; }
.mk-map path { stroke: var(--navy-deep); stroke-width: .8; }
.mk-map .m-xx { fill: #24394F; }
.mk-map .m-af { fill: #3A4F66; }
.mk-map .m-eu { fill: #3A4F66; }   /* v1.9.4 : pays européens non sélectionnés en gris, comme l’Afrique */
.mk-map .m-eu.m-eu-sel { fill: #17773C; stroke: #E8F3EA; stroke-width: 1; }   /* 13 marchés européens : vert des pays actifs */
.mk-map .m-net { fill: #17773C; stroke: #E8F3EA; stroke-width: 1; }
/* Survol, focus clavier et état actif identiques pour les 20 marchés (africains et européens) */
.mk-map .m-net, .mk-map .m-eu.m-eu-sel { cursor: pointer; transition: fill .15s; }
.mk-map .m-net:hover, .mk-map .m-net:focus,
.mk-map .m-eu.m-eu-sel:hover, .mk-map .m-eu.m-eu-sel:focus { fill: #2A9A55; outline: none; }
.mk-map .m-net:focus-visible, .mk-map .m-eu.m-eu-sel:focus-visible { stroke: var(--white); stroke-width: 3; }
.mk-map .m-net.is-selected, .mk-map .m-eu.m-eu-sel.is-selected { fill: #1E8A47; stroke: var(--white); stroke-width: 3; }
.mk-map .esh-line { fill: none; stroke: var(--navy-deep); stroke-width: .8; }  /* Maroc / Sahara occidental : trait continu, comme les autres frontières */
.mk-tip { position: absolute; z-index: 3; padding: 7px 12px; border-radius: 4px; background: var(--white); color: var(--black); font-size: 14px; font-weight: 700; white-space: nowrap; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .12s; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.mk-tip.is-visible { opacity: 1; }
.mk-legend { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 20px 0 0; padding: 18px 4px 0; border-top: 1px solid rgba(255,255,255,.12); color: #DCE3EB; font-size: 14.5px; }
.mk-legend li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.mk-legend .sw { flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 3px; }
.mk-legend small { display: block; margin-top: 2px; font-size: 13px; color: #B5C3D2; }

.mk-panel { position: sticky; top: 112px; padding: 30px; border-radius: 14px; background: var(--white); border: 1px solid var(--grey-line); box-shadow: 0 18px 44px rgba(16,36,58,.08); }
.mk-panel__eyebrow { font-size: 14px; font-weight: 700; color: var(--green-net); }
.mk-panel__title { margin-top: 6px; font-size: 1.9rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; outline: none; }
.mk-panel__title::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 14px; background: var(--red); }
.mk-panel__text { margin-top: 16px; font-size: 1.02rem; line-height: 1.65; color: #2F3640; }
.mk-panel__block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--grey-line); }
.mk-panel__block h4 { margin: 0 0 10px; font-size: .98rem; font-weight: 800; }
.mk-panel__muted { font-size: .97rem; color: #4A5260; }
.mk-panel__cta { margin-top: 24px; width: 100%; justify-content: center; }
.mk-panel__more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 14.5px; color: var(--red-dark); }
.mk-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.mk-tags li { padding: 6px 12px; border-radius: 999px; background: var(--grey-bg); font-size: 14px; font-weight: 600; }
.mk-data { margin: 0; display: grid; gap: 4px 0; }
.mk-data dt { font-size: 14px; color: #4A5260; }
.mk-data dd { margin: 0 0 8px; font-weight: 700; }
.mk-data small { display: block; font-weight: 500; font-size: 12.5px; color: #5B6472; }
.mk-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mk-links a { font-weight: 700; color: var(--black); }
.mk-countries { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--grey-line); }
.mk-countries__label { font-size: 14px; font-weight: 700; color: #4A5260; margin-bottom: 12px; }
.mk-countries ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.mk-chip { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #CBD2DA; background: var(--white); font: 600 14.5px var(--font); color: var(--black); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.mk-chip:hover { border-color: var(--green-net); color: var(--green-net); }
.mk-chip[aria-pressed="true"] { background: var(--green-net); border-color: var(--green-net); color: var(--white); }

/* ---------- Drapeaux (SVG flag-icons, format 4:3 homogène) ---------- */
.flag { display: inline-block; flex: none; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.flag--sm { width: 24px; height: 18px; }
.flag--lg { width: 40px; height: 30px; border-radius: 3px; }
.flag--xl { width: 56px; height: 42px; border-radius: 4px; }
.mk-legend__net { flex-basis: 100%; }
.mk-legend__net > span { flex: 1; }
.mk-flags { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 32px; list-style: none; margin: 12px 0 2px; padding: 0; }
.mk-flags li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #E6EBF0; }
.mk-flagbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; margin: -4px -6px; padding: 4px 6px; border: 0; border-radius: 4px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.mk-flagbtn:hover span { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.mk-flagbtn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.mk-flagbtn[aria-pressed="true"] { background: rgba(255,255,255,.12); }
.mk-flagbtn[aria-pressed="true"] span { color: var(--white); font-weight: 700; }
.mk-panel__title--flag { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mk-panel__title--flag::after { flex: 0 0 100%; width: auto; margin-top: 4px; background: linear-gradient(var(--red), var(--red)) left / 40px 3px no-repeat; }

/* ---------- Ancrage ---------- */
.anchor__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.anchor__list li { display: flex; align-items: center; gap: 18px; min-height: 104px; padding: 26px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--grey-line); }
.anchor__ico { grid-row: 1 / span 2; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #FCEDEE; color: var(--red); }
.anchor__ico svg { width: 24px; height: 24px; }
.anchor__name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.anchor__region { font-size: .98rem; color: #4A5260; }

/* ---------- Démarche ---------- */
.mk-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.mk-steps li { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--grey-line); }
.mk-step__n { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; font-size: 15px; }
.mk-steps h3 { margin-top: 18px; font-size: 1.15rem; font-weight: 800; }
.mk-steps p { margin-top: 8px; font-size: 1.02rem; line-height: 1.6; color: #2F3640; }
.mk-steps__more { margin-top: 26px; }
.mk-steps__more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red-dark); text-decoration: none; }
.mk-steps__more svg { width: 16px; height: 16px; }
.mk-steps__more a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Analyses ---------- */
.mk-insights { padding: clamp(56px, 6vw, 80px) 0; }
.mk-insights__bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.mk-insights__bar h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; font-weight: 800; }
.mk-insights__bar h2::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 20px; background: var(--red); }
.mk-insights__bar > div { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.mk-insights__bar p { font-size: 1.08rem; color: #2F3640; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .mk-layout { grid-template-columns: 1fr; gap: 24px; }
  .mk-panel { position: static; scroll-margin-top: 90px; }
  .anchor__list, .mk-insights__bar { grid-template-columns: 1fr; }
  .mk-insights__bar { gap: 24px; }
  .mk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .mk-mapbox { padding: 14px; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .mk-legend { font-size: 14px; gap: 10px; flex-direction: column; }
  .mk-flags { gap: 10px 22px; }
  .mk-panel { padding: 22px; }
  .mk-panel__title { font-size: 1.6rem; }
  .mk-steps { grid-template-columns: 1fr; }
}

.mk-countries__label--eu { margin-top: 16px; }
.mk-map .mk-hitzone { fill: transparent; stroke: none; cursor: pointer; transition: fill .15s; }
/* Très petits pays (Luxembourg) : même vert et même contour blanc que les autres pays sélectionnés */
.mk-map .mk-hitzone:hover { fill: rgba(42,154,85,.55); }
.mk-map .mk-hitzone.is-selected { fill: #1E8A47; stroke: var(--white); stroke-width: 2.5; }
